From aec44eaae5959e8c82c6a5976e05e3e13939b5f3 Mon Sep 17 00:00:00 2001 From: SergeyRyabinin Date: Thu, 5 Oct 2023 21:56:49 +0000 Subject: [PATCH 1/2] Hash service enum values at compile time --- .../aws/core/utils/ConstExprHashingUtils.h | 87 +++++++++++++++++++ .../include/aws/core/utils/HashingUtils.h | 7 +- .../source/internal/AWSHttpResourceClient.cpp | 8 +- .../source/utils/HashingUtils.cpp | 4 +- .../utils/EnumOverflowTest.cpp | 71 +++++++++++++++ .../velocity/cpp/EnumSource.vm | 6 +- .../velocity/cpp/ServiceErrorsSource.vm | 8 +- .../cpp/json/JsonEventStreamHandlerSource.vm | 4 +- .../xml/XmlRequestEventStreamHandlerSource.vm | 4 +- 9 files changed, 181 insertions(+), 18 deletions(-) create mode 100644 src/aws-cpp-sdk-core/include/aws/core/utils/ConstExprHashingUtils.h diff --git a/src/aws-cpp-sdk-core/include/aws/core/utils/ConstExprHashingUtils.h b/src/aws-cpp-sdk-core/include/aws/core/utils/ConstExprHashingUtils.h new file mode 100644 index 00000000000..16c4206ba47 --- /dev/null +++ b/src/aws-cpp-sdk-core/include/aws/core/utils/ConstExprHashingUtils.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include + +namespace Aws +{ + namespace Utils + { + /** + * Generic constexpr utils for hashing strings + */ + class AWS_CORE_API ConstExprHashingUtils + { + public: + /** + * Calculates hash value of a buffer of a 8-or-less bytes and starting hash value + * Uses the following formula with unsigned int arithmetics (including overflow) + * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] + * + * What happens here is the attempt to reduce the recursion depth + * by computing the hash value of 8 bytes in one step per frame of a callstack. + * + * (the recursion is used to be compliant with C++11 constexpr limitations; + * C++11 does not allow loops and variables within constexpr methods) + */ + static constexpr uint32_t Hash8BytesOfString(const char* bytes, uint32_t currentHashValue) + { +#define AWS_H_GET_CHAR(POSITION) (*(bytes+POSITION)) +#define AWS_H_1ST_CHAR AWS_H_GET_CHAR(0) +#define AWS_H_2ND_CHAR AWS_H_GET_CHAR(1) +#define AWS_H_3RD_CHAR AWS_H_GET_CHAR(2) +#define AWS_H_4TH_CHAR AWS_H_GET_CHAR(3) +#define AWS_H_5TH_CHAR AWS_H_GET_CHAR(4) +#define AWS_H_6TH_CHAR AWS_H_GET_CHAR(5) +#define AWS_H_7TH_CHAR AWS_H_GET_CHAR(6) +#define AWS_H_8TH_CHAR AWS_H_GET_CHAR(7) + return AWS_H_1ST_CHAR == 0 ? currentHashValue : + AWS_H_2ND_CHAR == 0 ? AWS_H_1ST_CHAR + 31 * currentHashValue : + AWS_H_3RD_CHAR == 0 ? AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue) : + AWS_H_4TH_CHAR == 0 ? AWS_H_3RD_CHAR + 31 * (AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue)) : + AWS_H_5TH_CHAR == 0 ? AWS_H_4TH_CHAR + 31 * (AWS_H_3RD_CHAR + 31 * (AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue))) : + AWS_H_6TH_CHAR == 0 ? AWS_H_5TH_CHAR + 31 * (AWS_H_4TH_CHAR + 31 * (AWS_H_3RD_CHAR + 31 * (AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue)))) : + AWS_H_7TH_CHAR == 0 ? AWS_H_6TH_CHAR + 31 * (AWS_H_5TH_CHAR + 31 * (AWS_H_4TH_CHAR + 31 * (AWS_H_3RD_CHAR + 31 * (AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue))))) : + AWS_H_8TH_CHAR == 0 ? AWS_H_7TH_CHAR + 31 * (AWS_H_6TH_CHAR + 31 * (AWS_H_5TH_CHAR + 31 * (AWS_H_4TH_CHAR + 31 * (AWS_H_3RD_CHAR + 31 * (AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue)))))) : + AWS_H_8TH_CHAR + 31 * (AWS_H_7TH_CHAR + 31 * (AWS_H_6TH_CHAR + 31 * (AWS_H_5TH_CHAR + 31 * (AWS_H_4TH_CHAR + 31 * (AWS_H_3RD_CHAR + 31 * (AWS_H_2ND_CHAR + 31 * (AWS_H_1ST_CHAR + 31 * currentHashValue))))))); + } + + /** + * Calculates hash code of a string and a starting hash value + * using following formula with unsigned int arithmetics (including overflow) + * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] + */ + static constexpr uint32_t HashString(const char* bytes, uint32_t currentHashValue) + { + return !bytes ? 0 : + AWS_H_1ST_CHAR && AWS_H_2ND_CHAR && AWS_H_3RD_CHAR && AWS_H_4TH_CHAR && AWS_H_5TH_CHAR && AWS_H_6TH_CHAR && AWS_H_7TH_CHAR && AWS_H_8TH_CHAR ? + HashString(bytes + 8, Hash8BytesOfString(bytes, currentHashValue)) : + Hash8BytesOfString(bytes, currentHashValue); +#undef AWS_H_1ST_CHAR +#undef AWS_H_2ND_CHAR +#undef AWS_H_3RD_CHAR +#undef AWS_H_4TH_CHAR +#undef AWS_H_5TH_CHAR +#undef AWS_H_6TH_CHAR +#undef AWS_H_7TH_CHAR +#undef AWS_H_8TH_CHAR +#undef AWS_H_GET_CHAR + } + + /** + * Calculates hash code of a string using following formula with unsigned int arithmetics (including overflow) + * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] + */ + static constexpr uint32_t HashString(const char* strToHash) + { + return HashString(strToHash, 0); + } + }; + + } // namespace Utils +} // namespace Aws + diff --git a/src/aws-cpp-sdk-core/include/aws/core/utils/HashingUtils.h b/src/aws-cpp-sdk-core/include/aws/core/utils/HashingUtils.h index d09fe5c94f7..9a8d5f71117 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/utils/HashingUtils.h +++ b/src/aws-cpp-sdk-core/include/aws/core/utils/HashingUtils.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -107,7 +108,11 @@ namespace Aws */ static ByteBuffer CalculateCRC32C(Aws::IOStream& stream); - static int HashString(const char* strToHash); + /** + * Calculates hash code of a string using following formula with unsigned int arithmetics (including overflow) + * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] + */ + static uint32_t HashString(const char* strToHash); }; diff --git a/src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp b/src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp index 723747bbf17..c918e38621d 100644 --- a/src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp +++ b/src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp @@ -482,8 +482,8 @@ namespace Aws ss << "https://"; } - static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTH_1); - static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTHWEST_1); + static const uint32_t CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTH_1); + static const uint32_t CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTHWEST_1); auto hash = Aws::Utils::HashingUtils::HashString(clientConfiguration.region.c_str()); ss << "sts." << clientConfiguration.region << ".amazonaws.com"; @@ -601,8 +601,8 @@ namespace Aws ss << "https://"; } - static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTH_1); - static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTHWEST_1); + static const uint32_t CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTH_1); + static const uint32_t CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString(Aws::Region::CN_NORTHWEST_1); auto hash = Aws::Utils::HashingUtils::HashString(clientConfiguration.region.c_str()); AWS_LOGSTREAM_DEBUG(SSO_RESOURCE_CLIENT_LOG_TAG, "Preparing SSO client for region: " << clientConfiguration.region); diff --git a/src/aws-cpp-sdk-core/source/utils/HashingUtils.cpp b/src/aws-cpp-sdk-core/source/utils/HashingUtils.cpp index 0431835a615..8c0ebf00db9 100644 --- a/src/aws-cpp-sdk-core/source/utils/HashingUtils.cpp +++ b/src/aws-cpp-sdk-core/source/utils/HashingUtils.cpp @@ -259,12 +259,12 @@ ByteBuffer HashingUtils::CalculateCRC32C(Aws::IOStream& stream) return hash.Calculate(stream).GetResult(); } -int HashingUtils::HashString(const char* strToHash) +uint32_t HashingUtils::HashString(const char* strToHash) { if (!strToHash) return 0; - unsigned hash = 0; + uint32_t hash = 0; while (char charValue = *strToHash++) { hash = charValue + 31 * hash; diff --git a/tests/aws-cpp-sdk-core-tests/utils/EnumOverflowTest.cpp b/tests/aws-cpp-sdk-core-tests/utils/EnumOverflowTest.cpp index 299fb4da31a..801bf7db32c 100644 --- a/tests/aws-cpp-sdk-core-tests/utils/EnumOverflowTest.cpp +++ b/tests/aws-cpp-sdk-core-tests/utils/EnumOverflowTest.cpp @@ -38,4 +38,75 @@ TEST_F(EnumOverflowTest, TestUseWithEnum) TestEnum nonModeledValue = static_cast(hashCode); ASSERT_EQ("VALUE4", container.RetrieveOverflow(static_cast(nonModeledValue))); +} + +TEST_F(EnumOverflowTest, TestConstExpr) +{ + uint32_t hash0RT = HashingUtils::HashString(""); + constexpr uint32_t hash0CT = ConstExprHashingUtils::HashString(""); + EXPECT_EQ(hash0RT, hash0CT); + + uint32_t hashART = HashingUtils::HashString("A"); + constexpr uint32_t hashACT = ConstExprHashingUtils::HashString("A"); + EXPECT_EQ(hashART, hashACT); + + uint32_t hashAART = HashingUtils::HashString("AA"); + constexpr uint32_t hashAACT = ConstExprHashingUtils::HashString("AA"); + EXPECT_EQ(hashAART, hashAACT); + + uint32_t hashStrRT = HashingUtils::HashString("ObjectNotInActiveTierError"); + constexpr uint32_t hashStrCT = ConstExprHashingUtils::HashString("ObjectNotInActiveTierError"); + EXPECT_EQ(hashStrRT, hashStrCT); + + uint32_t hashStrLongRT = HashingUtils::HashString("ObjectNotInActiveTierErrorObjectNotInActiveTierErrorObjectNotInActiveTierErrorObjectNotInActiveTierError"); + uint32_t hashStrLongConstExprRT = ConstExprHashingUtils::HashString("ObjectNotInActiveTierErrorObjectNotInActiveTierErrorObjectNotInActiveTierErrorObjectNotInActiveTierError"); + constexpr uint32_t hashStrLongConstExprCT = ConstExprHashingUtils::HashString("ObjectNotInActiveTierErrorObjectNotInActiveTierErrorObjectNotInActiveTierErrorObjectNotInActiveTierError"); + EXPECT_EQ(hashStrLongRT, hashStrLongConstExprRT); + EXPECT_EQ(hashStrLongRT, hashStrLongConstExprCT); + + static const char* EXAMPLES[] = { + "", + "s3:ReducedRedundancyLostObject", + "s3:ObjectCreated:*", + "s3:ObjectCreated:Put", + "s3:ObjectCreated:Post", + "s3:ObjectCreated:Copy", + "s3:ObjectCreated:CompleteMultipartUpload", + "s3:ObjectRemoved:*", + "s3:ObjectRemoved:Delete", + "s3:ObjectRemoved:DeleteMarkerCreated", + "s3:ObjectRestore:*", + "s3:ObjectRestore:Post", + "s3:ObjectRestore:Completed", + "s3:Replication:*", + "s3:Replication:OperationFailedReplication", + "s3:Replication:OperationNotTracked", + "s3:Replication:OperationMissedThreshold", + "s3:Replication:OperationReplicatedAfterThreshold", + "s3:ObjectRestore:Delete", + "s3:LifecycleTransition", + "s3:IntelligentTiering", + "s3:ObjectAcl:Put", + "s3:LifecycleExpiration:*", + "s3:LifecycleExpiration:Delete", + "s3:LifecycleExpiration:DeleteMarkerCreated", + "s3:ObjectTagging:*", + "s3:ObjectTagging:Put", + "s3:ObjectTagging:Delete"}; + static const size_t EXAMPLES_NUM = sizeof(EXAMPLES) / sizeof(EXAMPLES[0]); + + Aws::Set hashes; + for(size_t i = 0; i 121) @@ -35,7 +35,7 @@ namespace ${rootNamespace} #if ($enumCounter % 122 == 0) #set($elseText = "") #set ($helperIndex = $enumCounter / 122) - static bool GetEnumForNameHelper${helperIndex}(int hashCode, ${enumModel.name}& enumValue) + static bool GetEnumForNameHelper${helperIndex}(uint32_t hashCode, ${enumModel.name}& enumValue) { #end ${elseText}if (hashCode == ${enum.memberName}_HASH) @@ -76,7 +76,7 @@ namespace ${rootNamespace} ${enumModel.name} Get${enumModel.name}ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); #if($enumModel.members.size() > 0 && $enumModel.members.size() < 122) #set($elseText = "") #foreach($enumMember in $enumModel.members) diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceErrorsSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceErrorsSource.vm index 1f298020210..9388012b22a 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceErrorsSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/ServiceErrorsSource.vm @@ -53,7 +53,7 @@ namespace ${metadata.classNamePrefix}ErrorMapper #foreach($error in $nonCoreServiceErrors) #set($constName = ${ErrorFormatter.formatErrorConstName($error.name)}) -static const int ${constName}_HASH = HashingUtils::HashString("${error.text}"); +static constexpr uint32_t ${constName}_HASH = ConstExprHashingUtils::HashString("${error.text}"); #end #if ($nonCoreServiceErrors.size() > 121) @@ -69,7 +69,7 @@ because MSVC has a maximum of 122 chained if-else blocks. #set($elseText = "") #set ($helperIndex = $errorCounter / 122) -static bool GetErrorForNameHelper${helperIndex}(int hashCode, AWSError& error) +static bool GetErrorForNameHelper${helperIndex}(uint32_t hashCode, AWSError& error) { #end #set($constName = ${ErrorFormatter.formatErrorConstName($error.name)}) @@ -91,7 +91,7 @@ static bool GetErrorForNameHelper${helperIndex}(int hashCode, AWSError GetErrorForName(const char* errorName) { #if($nonCoreServiceErrors.size() > 0 && $nonCoreServiceErrors.size() < 122) - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); #foreach($error in $nonCoreServiceErrors) #set($constName = ${ErrorFormatter.formatErrorConstName($error.name)}) @@ -103,7 +103,7 @@ AWSError GetErrorForName(const char* errorName) #end #elseif ($nonCoreServiceErrors.size() > 121) #set($elseText = "") - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; #set($maxHelperIndex = ($nonCoreServiceErrors.size() - 1) / 122) #foreach($helperIndex in [0..$maxHelperIndex]) diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm index 001d315e87a..0b8f28dda8e 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/JsonEventStreamHandlerSource.vm @@ -232,13 +232,13 @@ namespace ${operation.name}EventMapper #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKey = $eventMemberEntry.key) - static const int ${memberKey.toUpperCase()}_HASH = Aws::Utils::HashingUtils::HashString("${memberKey}"); + static constexpr uint32_t ${memberKey.toUpperCase()}_HASH = Aws::Utils::ConstExprHashingUtils::HashString("${memberKey}"); #end #end ${operation.name}EventType Get${operation.name}EventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); #set($elseText = "") #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm index 48e704752fb..f53b65ae9cc 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/XmlRequestEventStreamHandlerSource.vm @@ -214,13 +214,13 @@ namespace ${operation.name}EventMapper #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) #set($memberKey = $eventMemberEntry.key) - static const int ${memberKey.toUpperCase()}_HASH = Aws::Utils::HashingUtils::HashString("${memberKey}"); + static constexpr uint32_t ${memberKey.toUpperCase()}_HASH = Aws::Utils::ConstExprHashingUtils::HashString("${memberKey}"); #end #end ${operation.name}EventType Get${operation.name}EventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); #set($elseText = "") #foreach($eventMemberEntry in $eventStreamShape.members.entrySet()) #if(!$eventMemberEntry.value.shape.isException()) From 8da8f948732f1a6969d5b3da634eede46d1bf094 Mon Sep 17 00:00:00 2001 From: SergeyRyabinin Date: Thu, 12 Oct 2023 23:28:58 +0000 Subject: [PATCH 2/2] Regenerate code --- .../source/MigrationHubErrors.cpp | 12 +- .../source/model/ApplicationStatus.cpp | 8 +- .../source/model/ResourceAttributeType.cpp | 22 +- .../source/model/Status.cpp | 10 +- .../source/AccessAnalyzerErrors.cpp | 8 +- .../source/model/AccessPreviewStatus.cpp | 8 +- .../model/AccessPreviewStatusReasonCode.cpp | 6 +- .../source/model/AclPermission.cpp | 12 +- .../source/model/AnalyzerStatus.cpp | 10 +- .../source/model/FindingChangeType.cpp | 8 +- .../source/model/FindingSourceType.cpp | 10 +- .../source/model/FindingStatus.cpp | 8 +- .../source/model/FindingStatusUpdate.cpp | 6 +- .../source/model/JobErrorCode.cpp | 10 +- .../source/model/JobStatus.cpp | 10 +- .../source/model/KmsGrantOperation.cpp | 30 +- .../source/model/Locale.cpp | 22 +- .../source/model/OrderBy.cpp | 6 +- .../source/model/PolicyType.cpp | 8 +- .../source/model/ReasonCode.cpp | 10 +- .../source/model/ResourceType.cpp | 28 +- .../source/model/Type.cpp | 6 +- .../model/ValidatePolicyFindingType.cpp | 10 +- .../model/ValidatePolicyResourceType.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/AccountErrors.cpp | 8 +- .../source/model/AlternateContactType.cpp | 8 +- .../source/model/RegionOptStatus.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 6 +- .../source/ACMPCAErrors.cpp | 38 +- .../source/model/AccessMethodType.cpp | 8 +- .../source/model/ActionType.cpp | 8 +- .../model/AuditReportResponseFormat.cpp | 6 +- .../source/model/AuditReportStatus.cpp | 8 +- .../model/CertificateAuthorityStatus.cpp | 16 +- .../source/model/CertificateAuthorityType.cpp | 6 +- .../model/CertificateAuthorityUsageMode.cpp | 6 +- .../source/model/ExtendedKeyUsageType.cpp | 20 +- .../source/model/FailureReason.cpp | 8 +- .../source/model/KeyAlgorithm.cpp | 10 +- .../model/KeyStorageSecurityStandard.cpp | 6 +- .../source/model/PolicyQualifierId.cpp | 4 +- .../source/model/ResourceOwner.cpp | 6 +- .../source/model/RevocationReason.cpp | 18 +- .../source/model/S3ObjectAcl.cpp | 6 +- .../source/model/SigningAlgorithm.cpp | 14 +- .../source/model/ValidityPeriodType.cpp | 12 +- .../src/aws-cpp-sdk-acm/source/ACMErrors.cpp | 26 +- .../source/model/CertificateStatus.cpp | 16 +- ...rtificateTransparencyLoggingPreference.cpp | 6 +- .../source/model/CertificateType.cpp | 8 +- .../source/model/DomainStatus.cpp | 8 +- .../source/model/ExtendedKeyUsageName.cpp | 26 +- .../source/model/FailureReason.cpp | 36 +- .../source/model/KeyAlgorithm.cpp | 16 +- .../source/model/KeyUsageName.cpp | 24 +- .../source/model/RecordType.cpp | 4 +- .../source/model/RenewalEligibility.cpp | 6 +- .../source/model/RenewalStatus.cpp | 10 +- .../source/model/RevocationReason.cpp | 22 +- .../aws-cpp-sdk-acm/source/model/SortBy.cpp | 4 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/ValidationMethod.cpp | 6 +- .../source/AlexaForBusinessErrors.cpp | 6 +- .../model/BusinessReportFailureCode.cpp | 8 +- .../source/model/BusinessReportFormat.cpp | 6 +- .../source/model/BusinessReportInterval.cpp | 8 +- .../source/model/BusinessReportStatus.cpp | 8 +- .../source/model/CommsProtocol.cpp | 8 +- .../source/model/ConferenceProviderType.cpp | 22 +- .../source/model/ConnectionStatus.cpp | 6 +- .../source/model/DeviceEventType.cpp | 6 +- .../source/model/DeviceStatus.cpp | 12 +- .../source/model/DeviceStatusDetailCode.cpp | 36 +- .../source/model/DeviceUsageType.cpp | 4 +- .../source/model/DistanceUnit.cpp | 6 +- .../source/model/EnablementType.cpp | 6 +- .../source/model/EnablementTypeFilter.cpp | 6 +- .../source/model/EndOfMeetingReminderType.cpp | 10 +- .../source/model/EnrollmentStatus.cpp | 12 +- .../source/model/Feature.cpp | 18 +- .../source/model/Locale.cpp | 4 +- .../source/model/NetworkEapMethod.cpp | 4 +- .../source/model/NetworkSecurityType.cpp | 12 +- .../source/model/PhoneNumberType.cpp | 8 +- .../source/model/RequirePin.cpp | 8 +- .../source/model/SipType.cpp | 4 +- .../source/model/SkillType.cpp | 6 +- .../source/model/SkillTypeFilter.cpp | 8 +- .../source/model/SortValue.cpp | 6 +- .../source/model/TemperatureUnit.cpp | 6 +- .../source/model/WakeWord.cpp | 10 +- .../source/PrometheusServiceErrors.cpp | 8 +- .../AlertManagerDefinitionStatusCode.cpp | 14 +- .../model/LoggingConfigurationStatusCode.cpp | 14 +- .../model/RuleGroupsNamespaceStatusCode.cpp | 14 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/model/WorkspaceStatusCode.cpp | 12 +- .../source/AmplifyErrors.cpp | 12 +- .../source/model/DomainStatus.cpp | 18 +- .../source/model/JobStatus.cpp | 16 +- .../source/model/JobType.cpp | 10 +- .../source/model/Platform.cpp | 8 +- .../source/model/RepositoryCloneMethod.cpp | 8 +- .../source/model/Stage.cpp | 12 +- .../source/AmplifyBackendErrors.cpp | 10 +- .../model/AdditionalConstraintsElement.cpp | 10 +- .../source/model/AuthResources.cpp | 6 +- .../source/model/AuthenticatedElement.cpp | 8 +- .../source/model/DeliveryMethod.cpp | 6 +- .../source/model/MFAMode.cpp | 8 +- .../source/model/MfaTypesElement.cpp | 6 +- .../source/model/Mode.cpp | 10 +- .../source/model/OAuthGrantType.cpp | 6 +- .../source/model/OAuthScopesElement.cpp | 12 +- .../model/RequiredSignUpAttributesElement.cpp | 36 +- .../source/model/ResolutionStrategy.cpp | 10 +- .../source/model/Service.cpp | 4 +- .../source/model/ServiceName.cpp | 4 +- .../source/model/SignInMethod.cpp | 10 +- .../source/model/Status.cpp | 6 +- .../source/model/UnAuthenticatedElement.cpp | 8 +- .../source/AmplifyUIBuilderErrors.cpp | 12 +- .../model/CodegenGenericDataFieldDataType.cpp | 36 +- .../model/CodegenJobGenericDataSourceType.cpp | 4 +- .../source/model/CodegenJobStatus.cpp | 8 +- .../source/model/FixedPosition.cpp | 4 +- .../source/model/FormActionType.cpp | 6 +- .../source/model/FormButtonsPosition.cpp | 8 +- .../source/model/FormDataSourceType.cpp | 6 +- .../model/GenericDataRelationshipType.cpp | 8 +- .../source/model/JSModule.cpp | 6 +- .../source/model/JSScript.cpp | 8 +- .../source/model/JSTarget.cpp | 6 +- .../source/model/LabelDecorator.cpp | 8 +- .../source/model/SortDirection.cpp | 6 +- .../source/model/StorageAccessLevel.cpp | 8 +- .../source/model/TokenProviders.cpp | 4 +- .../source/APIGatewayErrors.cpp | 14 +- .../source/model/ApiKeySourceType.cpp | 6 +- .../source/model/ApiKeysFormat.cpp | 4 +- .../source/model/AuthorizerType.cpp | 8 +- .../source/model/CacheClusterSize.cpp | 18 +- .../source/model/CacheClusterStatus.cpp | 12 +- .../source/model/ConnectionType.cpp | 6 +- .../source/model/ContentHandlingStrategy.cpp | 6 +- .../source/model/DocumentationPartType.cpp | 26 +- .../source/model/DomainNameStatus.cpp | 12 +- .../source/model/EndpointType.cpp | 8 +- .../source/model/GatewayResponseType.cpp | 44 +- .../source/model/IntegrationType.cpp | 12 +- .../source/model/LocationStatusType.cpp | 6 +- .../source/model/Op.cpp | 14 +- .../source/model/PutMode.cpp | 6 +- .../source/model/QuotaPeriodType.cpp | 8 +- .../source/model/SecurityPolicy.cpp | 6 +- ...UnauthorizedCacheControlHeaderStrategy.cpp | 8 +- .../source/model/VpcLinkStatus.cpp | 10 +- .../source/ApiGatewayManagementApiErrors.cpp | 10 +- .../source/ApiGatewayV2Errors.cpp | 10 +- .../source/model/AuthorizationType.cpp | 10 +- .../source/model/AuthorizerType.cpp | 6 +- .../source/model/ConnectionType.cpp | 6 +- .../source/model/ContentHandlingStrategy.cpp | 6 +- .../source/model/DeploymentStatus.cpp | 8 +- .../source/model/DomainNameStatus.cpp | 10 +- .../source/model/EndpointType.cpp | 6 +- .../source/model/IntegrationType.cpp | 12 +- .../source/model/LoggingLevel.cpp | 8 +- .../source/model/PassthroughBehavior.cpp | 8 +- .../source/model/ProtocolType.cpp | 6 +- .../source/model/SecurityPolicy.cpp | 6 +- .../source/model/VpcLinkStatus.cpp | 12 +- .../source/model/VpcLinkVersion.cpp | 4 +- .../source/AppConfigErrors.cpp | 12 +- .../source/model/ActionPoint.cpp | 16 +- .../source/model/BadRequestReason.cpp | 4 +- .../source/model/BytesMeasure.cpp | 4 +- .../source/model/DeploymentEventType.cpp | 14 +- .../source/model/DeploymentState.cpp | 14 +- .../source/model/EnvironmentState.cpp | 10 +- .../source/model/GrowthType.cpp | 6 +- .../source/model/ReplicateTo.cpp | 6 +- .../source/model/TriggeredBy.cpp | 10 +- .../source/model/ValidatorType.cpp | 6 +- .../source/AppConfigDataErrors.cpp | 6 +- .../source/model/BadRequestReason.cpp | 4 +- .../source/model/InvalidParameterProblem.cpp | 8 +- .../source/model/ResourceType.cpp | 12 +- .../source/AppFabricErrors.cpp | 8 +- .../source/model/AppAuthorizationStatus.cpp | 10 +- .../source/model/AuthType.cpp | 6 +- .../source/model/Format.cpp | 6 +- .../model/IngestionDestinationStatus.cpp | 6 +- .../source/model/IngestionState.cpp | 6 +- .../source/model/IngestionType.cpp | 4 +- .../source/model/Persona.cpp | 6 +- .../source/model/ResultStatus.cpp | 10 +- .../source/model/Schema.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/AppflowErrors.cpp | 14 +- .../source/model/AggregationType.cpp | 6 +- .../model/AmplitudeConnectorOperator.cpp | 4 +- .../source/model/AuthenticationType.cpp | 10 +- .../source/model/CatalogType.cpp | 4 +- .../source/model/ConnectionMode.cpp | 6 +- .../model/ConnectorProvisioningType.cpp | 4 +- .../source/model/ConnectorType.cpp | 50 +- .../source/model/DataPullMode.cpp | 6 +- .../source/model/DataTransferApiType.cpp | 8 +- .../source/model/DatadogConnectorOperator.cpp | 32 +- .../model/DynatraceConnectorOperator.cpp | 32 +- .../source/model/ExecutionStatus.cpp | 12 +- .../source/model/FileType.cpp | 8 +- .../source/model/FlowStatus.cpp | 14 +- .../GoogleAnalyticsConnectorOperator.cpp | 6 +- .../model/InforNexusConnectorOperator.cpp | 32 +- .../source/model/MarketoConnectorOperator.cpp | 34 +- .../source/model/OAuth2CustomPropType.cpp | 6 +- .../source/model/OAuth2GrantType.cpp | 8 +- .../source/model/Operator.cpp | 44 +- .../source/model/OperatorPropertiesKeys.cpp | 36 +- .../source/model/Operators.cpp | 44 +- .../source/model/PardotConnectorOperator.cpp | 30 +- .../source/model/PathPrefix.cpp | 6 +- .../source/model/PrefixFormat.cpp | 12 +- .../source/model/PrefixType.cpp | 8 +- ...vateConnectionProvisioningFailureCause.cpp | 12 +- .../PrivateConnectionProvisioningStatus.cpp | 8 +- .../source/model/S3ConnectorOperator.cpp | 42 +- .../source/model/S3InputFileType.cpp | 6 +- .../model/SAPODataConnectorOperator.cpp | 44 +- .../model/SalesforceConnectorOperator.cpp | 44 +- .../model/SalesforceDataTransferApi.cpp | 8 +- .../source/model/ScheduleFrequencyType.cpp | 14 +- .../model/ServiceNowConnectorOperator.cpp | 44 +- .../model/SingularConnectorOperator.cpp | 30 +- .../source/model/SlackConnectorOperator.cpp | 40 +- .../model/SupportedDataTransferType.cpp | 6 +- .../source/model/TaskType.cpp | 22 +- .../model/TrendmicroConnectorOperator.cpp | 30 +- .../source/model/TriggerType.cpp | 8 +- .../source/model/VeevaConnectorOperator.cpp | 44 +- .../source/model/WriteOperationType.cpp | 10 +- .../source/model/ZendeskConnectorOperator.cpp | 30 +- .../source/AppIntegrationsServiceErrors.cpp | 10 +- .../source/ApplicationAutoScalingErrors.cpp | 16 +- .../source/model/AdjustmentType.cpp | 8 +- .../source/model/MetricAggregationType.cpp | 8 +- .../source/model/MetricStatistic.cpp | 12 +- .../source/model/MetricType.cpp | 48 +- .../source/model/PolicyType.cpp | 6 +- .../source/model/ScalableDimension.cpp | 44 +- .../model/ScalingActivityStatusCode.cpp | 14 +- .../source/model/ServiceNamespace.cpp | 30 +- .../source/ApplicationInsightsErrors.cpp | 12 +- .../source/model/CloudWatchEventSource.cpp | 10 +- .../model/ConfigurationEventResourceType.cpp | 10 +- .../source/model/ConfigurationEventStatus.cpp | 8 +- .../source/model/DiscoveryType.cpp | 6 +- .../source/model/FeedbackKey.cpp | 4 +- .../source/model/FeedbackValue.cpp | 8 +- .../source/model/GroupingType.cpp | 4 +- .../source/model/LogFilter.cpp | 8 +- .../source/model/OsType.cpp | 6 +- .../source/model/RecommendationType.cpp | 8 +- .../source/model/ResolutionMethod.cpp | 8 +- .../source/model/SeverityLevel.cpp | 10 +- .../source/model/Status.cpp | 12 +- .../source/model/Tier.cpp | 44 +- .../source/model/UpdateStatus.cpp | 4 +- .../source/model/Visibility.cpp | 6 +- .../source/ApplicationCostProfilerErrors.cpp | 6 +- .../source/model/Format.cpp | 6 +- .../source/model/ReportFrequency.cpp | 8 +- .../source/model/S3BucketRegion.cpp | 10 +- .../source/AppMeshErrors.cpp | 20 +- .../model/DefaultGatewayRouteRewrite.cpp | 6 +- .../source/model/DnsResponseType.cpp | 6 +- .../source/model/DurationUnit.cpp | 6 +- .../source/model/EgressFilterType.cpp | 6 +- .../source/model/GatewayRouteStatusCode.cpp | 8 +- .../source/model/GrpcRetryPolicyEvent.cpp | 12 +- .../source/model/HttpMethod.cpp | 20 +- .../source/model/HttpScheme.cpp | 6 +- .../source/model/IpPreference.cpp | 10 +- .../source/model/ListenerTlsMode.cpp | 8 +- .../source/model/MeshStatusCode.cpp | 8 +- .../source/model/PortProtocol.cpp | 10 +- .../source/model/RouteStatusCode.cpp | 8 +- .../source/model/TcpRetryPolicyEvent.cpp | 4 +- .../model/VirtualGatewayListenerTlsMode.cpp | 8 +- .../model/VirtualGatewayPortProtocol.cpp | 8 +- .../source/model/VirtualGatewayStatusCode.cpp | 8 +- .../source/model/VirtualNodeStatusCode.cpp | 8 +- .../source/model/VirtualRouterStatusCode.cpp | 8 +- .../source/model/VirtualServiceStatusCode.cpp | 8 +- .../source/AppRunnerErrors.cpp | 10 +- .../model/AutoScalingConfigurationStatus.cpp | 6 +- .../CertificateValidationRecordStatus.cpp | 8 +- .../source/model/ConfigurationSource.cpp | 6 +- .../source/model/ConnectionStatus.cpp | 10 +- .../model/CustomDomainAssociationStatus.cpp | 16 +- .../source/model/EgressType.cpp | 6 +- .../source/model/HealthCheckProtocol.cpp | 6 +- .../source/model/ImageRepositoryType.cpp | 6 +- .../ObservabilityConfigurationStatus.cpp | 6 +- .../source/model/OperationStatus.cpp | 16 +- .../source/model/OperationType.cpp | 14 +- .../source/model/ProviderType.cpp | 6 +- .../source/model/Runtime.cpp | 22 +- .../source/model/ServiceStatus.cpp | 14 +- .../source/model/SourceCodeVersionType.cpp | 4 +- .../source/model/TracingVendor.cpp | 4 +- .../source/model/VpcConnectorStatus.cpp | 6 +- .../model/VpcIngressConnectionStatus.cpp | 18 +- .../source/AppStreamErrors.cpp | 26 +- .../source/model/AccessEndpointType.cpp | 4 +- .../source/model/Action.cpp | 16 +- .../source/model/AppBlockBuilderAttribute.cpp | 8 +- .../model/AppBlockBuilderPlatformType.cpp | 4 +- .../source/model/AppBlockBuilderState.cpp | 10 +- .../AppBlockBuilderStateChangeReasonCode.cpp | 4 +- .../source/model/AppBlockState.cpp | 6 +- .../source/model/AppVisibility.cpp | 6 +- .../source/model/ApplicationAttribute.cpp | 6 +- .../source/model/AuthenticationType.cpp | 10 +- .../model/CertificateBasedAuthStatus.cpp | 8 +- .../source/model/FleetAttribute.cpp | 14 +- .../source/model/FleetErrorCode.cpp | 62 +- .../source/model/FleetState.cpp | 10 +- .../source/model/FleetType.cpp | 8 +- .../source/model/ImageBuilderState.cpp | 24 +- .../ImageBuilderStateChangeReasonCode.cpp | 6 +- .../source/model/ImageState.cpp | 16 +- .../model/ImageStateChangeReasonCode.cpp | 8 +- .../source/model/MessageAction.cpp | 6 +- .../source/model/PackagingType.cpp | 6 +- .../source/model/Permission.cpp | 6 +- .../source/model/PlatformType.cpp | 10 +- .../source/model/PreferredProtocol.cpp | 6 +- .../source/model/SessionConnectionState.cpp | 6 +- .../source/model/SessionState.cpp | 8 +- .../source/model/StackAttribute.cpp | 26 +- .../source/model/StackErrorCode.cpp | 6 +- .../source/model/StorageConnectorType.cpp | 8 +- .../source/model/StreamView.cpp | 6 +- .../model/UsageReportExecutionErrorCode.cpp | 8 +- .../source/model/UsageReportSchedule.cpp | 4 +- .../model/UserStackAssociationErrorCode.cpp | 10 +- .../source/model/VisibilityType.cpp | 8 +- .../source/AppSyncErrors.cpp | 20 +- .../source/model/ApiCacheStatus.cpp | 12 +- .../source/model/ApiCacheType.cpp | 32 +- .../source/model/ApiCachingBehavior.cpp | 6 +- .../source/model/AssociationStatus.cpp | 8 +- .../source/model/AuthenticationType.cpp | 12 +- .../source/model/AuthorizationType.cpp | 4 +- .../source/model/BadRequestReason.cpp | 4 +- .../source/model/ConflictDetectionType.cpp | 6 +- .../source/model/ConflictHandlerType.cpp | 10 +- .../source/model/DataSourceType.cpp | 18 +- .../source/model/DefaultAction.cpp | 6 +- .../source/model/FieldLogLevel.cpp | 8 +- .../source/model/GraphQLApiType.cpp | 6 +- .../source/model/GraphQLApiVisibility.cpp | 6 +- .../source/model/MergeType.cpp | 6 +- .../source/model/OutputType.cpp | 6 +- .../source/model/Ownership.cpp | 6 +- .../model/RelationalDatabaseSourceType.cpp | 4 +- .../source/model/ResolverKind.cpp | 6 +- .../source/model/RuntimeName.cpp | 4 +- .../source/model/SchemaStatus.cpp | 14 +- .../model/SourceApiAssociationStatus.cpp | 18 +- .../source/model/TypeDefinitionFormat.cpp | 6 +- .../source/ARCZonalShiftErrors.cpp | 6 +- .../source/model/AppliedStatus.cpp | 6 +- .../source/model/ConflictExceptionReason.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 16 +- .../source/model/ZonalShiftStatus.cpp | 8 +- .../source/AthenaErrors.cpp | 12 +- .../model/CalculationExecutionState.cpp | 18 +- .../source/model/CapacityAllocationStatus.cpp | 8 +- .../model/CapacityReservationStatus.cpp | 14 +- .../source/model/ColumnNullable.cpp | 8 +- .../source/model/DataCatalogType.cpp | 8 +- .../source/model/EncryptionOption.cpp | 8 +- .../source/model/ExecutorState.cpp | 14 +- .../source/model/ExecutorType.cpp | 8 +- .../source/model/NotebookType.cpp | 4 +- .../source/model/QueryExecutionState.cpp | 12 +- .../source/model/S3AclOption.cpp | 4 +- .../source/model/SessionState.cpp | 18 +- .../source/model/StatementType.cpp | 8 +- .../source/model/ThrottleReason.cpp | 4 +- .../source/model/WorkGroupState.cpp | 6 +- .../source/AuditManagerErrors.cpp | 6 +- .../source/model/AccountStatus.cpp | 8 +- .../source/model/ActionEnum.cpp | 18 +- .../model/AssessmentReportDestinationType.cpp | 4 +- .../source/model/AssessmentReportStatus.cpp | 8 +- .../source/model/AssessmentStatus.cpp | 6 +- .../source/model/ControlResponse.cpp | 10 +- .../source/model/ControlSetStatus.cpp | 8 +- .../source/model/ControlStatus.cpp | 8 +- .../source/model/ControlType.cpp | 6 +- .../source/model/DelegationStatus.cpp | 8 +- .../source/model/DeleteResources.cpp | 6 +- .../model/EvidenceFinderBackfillStatus.cpp | 8 +- .../model/EvidenceFinderEnablementStatus.cpp | 10 +- .../source/model/ExportDestinationType.cpp | 4 +- .../source/model/FrameworkType.cpp | 6 +- .../source/model/KeywordInputType.cpp | 8 +- .../source/model/ObjectTypeEnum.cpp | 12 +- .../source/model/RoleType.cpp | 6 +- .../source/model/SettingAttribute.cpp | 18 +- .../source/model/ShareRequestAction.cpp | 8 +- .../source/model/ShareRequestStatus.cpp | 18 +- .../source/model/ShareRequestType.cpp | 6 +- .../source/model/SourceFrequency.cpp | 8 +- .../source/model/SourceSetUpOption.cpp | 6 +- .../source/model/SourceType.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/AutoScalingPlansErrors.cpp | 12 +- .../source/model/ForecastDataType.cpp | 10 +- .../source/model/LoadMetricType.cpp | 10 +- .../source/model/MetricStatistic.cpp | 12 +- .../source/model/PolicyType.cpp | 4 +- .../PredictiveScalingMaxCapacityBehavior.cpp | 8 +- .../source/model/PredictiveScalingMode.cpp | 6 +- .../source/model/ScalableDimension.cpp | 18 +- .../source/model/ScalingMetricType.cpp | 28 +- .../source/model/ScalingPlanStatusCode.cpp | 18 +- .../model/ScalingPolicyUpdateBehavior.cpp | 6 +- .../source/model/ScalingStatusCode.cpp | 8 +- .../source/model/ServiceNamespace.cpp | 12 +- .../source/AutoScalingErrors.cpp | 22 +- .../source/model/AcceleratorManufacturer.cpp | 10 +- .../source/model/AcceleratorName.cpp | 16 +- .../source/model/AcceleratorType.cpp | 8 +- .../source/model/BareMetal.cpp | 8 +- .../source/model/BurstablePerformance.cpp | 8 +- .../source/model/CpuManufacturer.cpp | 8 +- .../source/model/InstanceGeneration.cpp | 6 +- .../model/InstanceMetadataEndpointState.cpp | 6 +- .../model/InstanceMetadataHttpTokensState.cpp | 6 +- .../source/model/InstanceRefreshStatus.cpp | 20 +- .../source/model/LifecycleState.cpp | 48 +- .../source/model/LocalStorage.cpp | 8 +- .../source/model/LocalStorageType.cpp | 6 +- .../source/model/MetricStatistic.cpp | 12 +- .../source/model/MetricType.cpp | 10 +- .../source/model/PredefinedLoadMetricType.cpp | 10 +- .../source/model/PredefinedMetricPairType.cpp | 10 +- .../model/PredefinedScalingMetricType.cpp | 10 +- ...ictiveScalingMaxCapacityBreachBehavior.cpp | 6 +- .../source/model/PredictiveScalingMode.cpp | 6 +- .../source/model/RefreshStrategy.cpp | 4 +- .../model/ScaleInProtectedInstances.cpp | 8 +- .../model/ScalingActivityStatusCode.cpp | 28 +- .../source/model/StandbyInstances.cpp | 8 +- .../source/model/WarmPoolState.cpp | 8 +- .../source/model/WarmPoolStatus.cpp | 4 +- .../source/TransferErrors.cpp | 12 +- .../source/model/AgreementStatusType.cpp | 6 +- .../source/model/As2Transport.cpp | 4 +- .../source/model/CertificateStatusType.cpp | 8 +- .../source/model/CertificateType.cpp | 6 +- .../source/model/CertificateUsageType.cpp | 6 +- .../source/model/CompressionEnum.cpp | 6 +- .../source/model/CustomStepStatus.cpp | 6 +- .../source/model/Domain.cpp | 6 +- .../source/model/EncryptionAlg.cpp | 10 +- .../source/model/EncryptionType.cpp | 4 +- .../source/model/EndpointType.cpp | 8 +- .../source/model/ExecutionErrorType.cpp | 18 +- .../source/model/ExecutionStatus.cpp | 10 +- .../source/model/HomeDirectoryType.cpp | 6 +- .../source/model/IdentityProviderType.cpp | 10 +- .../source/model/MdnResponse.cpp | 6 +- .../source/model/MdnSigningAlg.cpp | 14 +- .../source/model/OverwriteExisting.cpp | 6 +- .../source/model/ProfileType.cpp | 6 +- .../source/model/Protocol.cpp | 10 +- .../source/model/SetStatOption.cpp | 6 +- .../model/SftpAuthenticationMethods.cpp | 10 +- .../source/model/SigningAlg.cpp | 12 +- .../source/model/State.cpp | 14 +- .../source/model/TlsSessionResumptionMode.cpp | 8 +- .../source/model/WorkflowStepType.cpp | 12 +- .../source/BackupGatewayErrors.cpp | 6 +- .../source/model/GatewayType.cpp | 4 +- .../source/model/HypervisorState.cpp | 10 +- .../source/model/SyncMetadataStatus.cpp | 12 +- .../source/BackupErrors.cpp | 16 +- .../source/model/BackupJobState.cpp | 20 +- .../source/model/BackupVaultEvent.cpp | 36 +- .../source/model/ConditionType.cpp | 4 +- .../source/model/CopyJobState.cpp | 12 +- .../source/model/LegalHoldStatus.cpp | 10 +- .../source/model/RecoveryPointStatus.cpp | 10 +- .../source/model/RestoreJobStatus.cpp | 12 +- .../source/model/StorageClass.cpp | 8 +- .../source/model/VaultState.cpp | 8 +- .../source/model/VaultType.cpp | 6 +- .../source/BackupStorageErrors.cpp | 14 +- .../source/model/DataChecksumAlgorithm.cpp | 4 +- .../source/model/SummaryChecksumAlgorithm.cpp | 4 +- .../aws-cpp-sdk-batch/source/BatchErrors.cpp | 6 +- .../source/model/ArrayJobDependency.cpp | 6 +- .../source/model/AssignPublicIp.cpp | 6 +- .../source/model/CEState.cpp | 6 +- .../source/model/CEStatus.cpp | 14 +- .../aws-cpp-sdk-batch/source/model/CEType.cpp | 6 +- .../source/model/CRAllocationStrategy.cpp | 10 +- .../aws-cpp-sdk-batch/source/model/CRType.cpp | 10 +- .../model/CRUpdateAllocationStrategy.cpp | 8 +- .../source/model/DeviceCgroupPermission.cpp | 8 +- .../model/EFSAuthorizationConfigIAM.cpp | 6 +- .../source/model/EFSTransitEncryption.cpp | 6 +- .../source/model/JQState.cpp | 6 +- .../source/model/JQStatus.cpp | 14 +- .../source/model/JobDefinitionType.cpp | 6 +- .../source/model/JobStatus.cpp | 16 +- .../source/model/LogDriver.cpp | 16 +- .../source/model/OrchestrationType.cpp | 6 +- .../source/model/PlatformCapability.cpp | 6 +- .../source/model/ResourceType.cpp | 8 +- .../source/model/RetryAction.cpp | 6 +- .../source/BedrockRuntimeErrors.cpp | 14 +- .../InvokeModelWithResponseStreamHandler.cpp | 4 +- .../source/BedrockErrors.cpp | 10 +- .../source/model/CommitmentDuration.cpp | 6 +- .../source/model/FineTuningJobStatus.cpp | 12 +- .../source/model/InferenceType.cpp | 6 +- .../source/model/ModelCustomization.cpp | 4 +- .../model/ModelCustomizationJobStatus.cpp | 12 +- .../source/model/ModelModality.cpp | 8 +- .../source/model/ProvisionedModelStatus.cpp | 10 +- .../source/model/SortByProvisionedModels.cpp | 4 +- .../source/model/SortJobsBy.cpp | 4 +- .../source/model/SortModelsBy.cpp | 4 +- .../source/model/SortOrder.cpp | 6 +- .../source/BillingConductorErrors.cpp | 8 +- .../model/AssociateResourceErrorReason.cpp | 12 +- .../source/model/BillingGroupStatus.cpp | 6 +- .../source/model/ConflictExceptionReason.cpp | 12 +- .../source/model/CurrencyCode.cpp | 6 +- .../model/CustomLineItemRelationship.cpp | 6 +- .../source/model/CustomLineItemType.cpp | 6 +- .../model/LineItemFilterAttributeName.cpp | 4 +- .../source/model/LineItemFilterValue.cpp | 4 +- .../source/model/MatchOption.cpp | 4 +- .../source/model/PricingRuleScope.cpp | 10 +- .../source/model/PricingRuleType.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 120 +- .../source/BraketErrors.cpp | 12 +- .../source/model/CancellationStatus.cpp | 6 +- .../source/model/CompressionType.cpp | 6 +- .../source/model/DeviceStatus.cpp | 8 +- .../source/model/DeviceType.cpp | 6 +- .../HybridJobAdditionalAttributeName.cpp | 4 +- .../source/model/InstanceType.cpp | 80 +- .../source/model/JobEventType.cpp | 24 +- .../source/model/JobPrimaryStatus.cpp | 14 +- .../QuantumTaskAdditionalAttributeName.cpp | 4 +- .../source/model/QuantumTaskStatus.cpp | 16 +- .../source/model/QueueName.cpp | 6 +- .../source/model/QueuePriority.cpp | 6 +- .../source/model/SearchJobsFilterOperator.cpp | 16 +- .../SearchQuantumTasksFilterOperator.cpp | 14 +- .../source/BudgetsErrors.cpp | 18 +- .../source/model/ActionStatus.cpp | 22 +- .../source/model/ActionSubType.cpp | 6 +- .../source/model/ActionType.cpp | 8 +- .../source/model/ApprovalModel.cpp | 6 +- .../source/model/AutoAdjustType.cpp | 6 +- .../source/model/BudgetType.cpp | 14 +- .../source/model/ComparisonOperator.cpp | 8 +- .../source/model/EventType.cpp | 12 +- .../source/model/ExecutionType.cpp | 10 +- .../source/model/NotificationState.cpp | 6 +- .../source/model/NotificationType.cpp | 6 +- .../source/model/SubscriptionType.cpp | 6 +- .../source/model/ThresholdType.cpp | 6 +- .../source/model/TimeUnit.cpp | 10 +- .../source/CostExplorerErrors.cpp | 24 +- .../source/model/AccountScope.cpp | 6 +- .../source/model/AnomalyFeedbackType.cpp | 8 +- .../model/AnomalySubscriptionFrequency.cpp | 8 +- .../aws-cpp-sdk-ce/source/model/Context.cpp | 8 +- .../source/model/CostAllocationTagStatus.cpp | 6 +- .../source/model/CostAllocationTagType.cpp | 6 +- ...ostCategoryInheritedValueDimensionName.cpp | 6 +- .../source/model/CostCategoryRuleType.cpp | 6 +- .../source/model/CostCategoryRuleVersion.cpp | 4 +- .../model/CostCategorySplitChargeMethod.cpp | 8 +- ...stCategorySplitChargeRuleParameterType.cpp | 4 +- .../source/model/CostCategoryStatus.cpp | 6 +- .../model/CostCategoryStatusComponent.cpp | 4 +- .../aws-cpp-sdk-ce/source/model/Dimension.cpp | 70 +- .../source/model/FindingReasonCode.cpp | 34 +- .../source/model/GenerationStatus.cpp | 8 +- .../source/model/Granularity.cpp | 8 +- .../source/model/GroupDefinitionType.cpp | 8 +- .../source/model/LookbackPeriodInDays.cpp | 8 +- .../source/model/MatchOption.cpp | 18 +- .../aws-cpp-sdk-ce/source/model/Metric.cpp | 16 +- .../source/model/MonitorDimension.cpp | 4 +- .../source/model/MonitorType.cpp | 6 +- .../source/model/NumericOperator.cpp | 14 +- .../source/model/OfferingClass.cpp | 6 +- .../source/model/PaymentOption.cpp | 14 +- .../source/model/PlatformDifference.cpp | 12 +- .../source/model/RecommendationTarget.cpp | 6 +- .../source/model/RightsizingType.cpp | 6 +- .../source/model/SavingsPlansDataType.cpp | 10 +- .../aws-cpp-sdk-ce/source/model/SortOrder.cpp | 6 +- .../source/model/SubscriberStatus.cpp | 6 +- .../source/model/SubscriberType.cpp | 6 +- .../model/SupportedSavingsPlansType.cpp | 8 +- .../source/model/TermInYears.cpp | 6 +- .../source/ChimeSDKIdentityErrors.cpp | 18 +- .../source/model/AllowMessages.cpp | 6 +- .../model/AppInstanceUserEndpointType.cpp | 8 +- .../source/model/EndpointStatus.cpp | 6 +- .../source/model/EndpointStatusReason.cpp | 6 +- .../source/model/ErrorCode.cpp | 32 +- .../source/model/ExpirationCriterion.cpp | 4 +- .../source/model/RespondsTo.cpp | 4 +- .../source/model/StandardMessages.cpp | 10 +- .../source/model/TargetedMessages.cpp | 6 +- .../source/ChimeSDKMediaPipelinesErrors.cpp | 18 +- .../source/model/ActiveSpeakerPosition.cpp | 10 +- .../model/ArtifactsConcatenationState.cpp | 6 +- .../source/model/ArtifactsState.cpp | 6 +- .../AudioArtifactsConcatenationState.cpp | 4 +- .../source/model/AudioChannelsOption.cpp | 6 +- .../source/model/AudioMuxType.cpp | 8 +- .../source/model/BorderColor.cpp | 14 +- .../model/CallAnalyticsLanguageCode.cpp | 20 +- .../source/model/CanvasOrientation.cpp | 6 +- .../source/model/ConcatenationSinkType.cpp | 4 +- .../source/model/ConcatenationSourceType.cpp | 4 +- .../source/model/ContentMuxType.cpp | 4 +- .../source/model/ContentRedactionOutput.cpp | 6 +- .../source/model/ContentShareLayoutOption.cpp | 10 +- .../source/model/ContentType.cpp | 4 +- .../source/model/ErrorCode.cpp | 16 +- .../source/model/FragmentSelectorType.cpp | 6 +- .../source/model/HighlightColor.cpp | 14 +- .../source/model/HorizontalTilePosition.cpp | 6 +- .../model/KinesisVideoStreamPoolStatus.cpp | 12 +- .../source/model/LayoutOption.cpp | 4 +- .../source/model/LiveConnectorMuxType.cpp | 6 +- .../source/model/LiveConnectorSinkType.cpp | 4 +- .../source/model/LiveConnectorSourceType.cpp | 4 +- .../source/model/MediaEncoding.cpp | 4 +- ...sightsPipelineConfigurationElementType.cpp | 20 +- .../model/MediaPipelineElementStatus.cpp | 18 +- .../source/model/MediaPipelineSinkType.cpp | 4 +- .../source/model/MediaPipelineSourceType.cpp | 4 +- .../source/model/MediaPipelineStatus.cpp | 16 +- .../model/MediaPipelineStatusUpdate.cpp | 6 +- .../source/model/MediaPipelineTaskStatus.cpp | 14 +- .../model/MediaStreamPipelineSinkType.cpp | 4 +- .../source/model/MediaStreamType.cpp | 6 +- .../source/model/PartialResultsStability.cpp | 8 +- .../source/model/ParticipantRole.cpp | 6 +- .../source/model/PresenterPosition.cpp | 10 +- .../source/model/RealTimeAlertRuleType.cpp | 8 +- .../source/model/RecordingFileFormat.cpp | 6 +- .../source/model/ResolutionOption.cpp | 6 +- .../source/model/SentimentType.cpp | 4 +- .../source/model/TileOrder.cpp | 6 +- .../source/model/VerticalTilePosition.cpp | 6 +- .../source/model/VideoMuxType.cpp | 4 +- .../source/model/VocabularyFilterMethod.cpp | 8 +- .../VoiceAnalyticsConfigurationStatus.cpp | 6 +- .../model/VoiceAnalyticsLanguageCode.cpp | 4 +- .../source/ChimeSDKMeetingsErrors.cpp | 20 +- .../source/model/MediaCapabilities.cpp | 10 +- .../source/model/MeetingFeatureStatus.cpp | 6 +- .../TranscribeContentIdentificationType.cpp | 4 +- .../model/TranscribeContentRedactionType.cpp | 4 +- .../source/model/TranscribeLanguageCode.cpp | 30 +- ...scribeMedicalContentIdentificationType.cpp | 4 +- .../model/TranscribeMedicalLanguageCode.cpp | 4 +- .../source/model/TranscribeMedicalRegion.cpp | 16 +- .../model/TranscribeMedicalSpecialty.cpp | 14 +- .../source/model/TranscribeMedicalType.cpp | 6 +- .../TranscribePartialResultsStability.cpp | 8 +- .../source/model/TranscribeRegion.cpp | 28 +- .../TranscribeVocabularyFilterMethod.cpp | 8 +- .../source/ChimeSDKMessagingErrors.cpp | 18 +- .../source/model/AllowNotifications.cpp | 8 +- .../source/model/ChannelMembershipType.cpp | 6 +- .../model/ChannelMessagePersistenceType.cpp | 6 +- .../source/model/ChannelMessageStatus.cpp | 10 +- .../source/model/ChannelMessageType.cpp | 6 +- .../source/model/ChannelMode.cpp | 6 +- .../source/model/ChannelPrivacy.cpp | 6 +- .../source/model/ErrorCode.cpp | 32 +- .../source/model/ExpirationCriterion.cpp | 6 +- .../source/model/FallbackAction.cpp | 6 +- .../source/model/InvocationType.cpp | 4 +- .../source/model/MessagingDataType.cpp | 6 +- .../source/model/PushNotificationType.cpp | 6 +- .../source/model/SearchFieldKey.cpp | 4 +- .../source/model/SearchFieldOperator.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../source/ChimeSDKVoiceErrors.cpp | 22 +- .../source/model/AlexaSkillStatus.cpp | 6 +- .../source/model/CallLegType.cpp | 6 +- .../source/model/CallingNameStatus.cpp | 10 +- .../source/model/Capability.cpp | 6 +- .../source/model/ErrorCode.cpp | 34 +- .../source/model/GeoMatchLevel.cpp | 6 +- .../source/model/LanguageCode.cpp | 4 +- .../source/model/NotificationTarget.cpp | 8 +- .../source/model/NumberSelectionBehavior.cpp | 6 +- .../source/model/OrderedPhoneNumberStatus.cpp | 8 +- .../source/model/OriginationRouteProtocol.cpp | 6 +- .../model/PhoneNumberAssociationName.cpp | 8 +- .../source/model/PhoneNumberOrderStatus.cpp | 24 +- .../source/model/PhoneNumberOrderType.cpp | 6 +- .../source/model/PhoneNumberProductType.cpp | 6 +- .../source/model/PhoneNumberStatus.cpp | 24 +- .../source/model/PhoneNumberType.cpp | 6 +- .../source/model/ProxySessionStatus.cpp | 8 +- .../source/model/SipRuleTriggerType.cpp | 6 +- .../source/model/VoiceConnectorAwsRegion.cpp | 22 +- .../aws-cpp-sdk-chime/source/ChimeErrors.cpp | 20 +- .../source/model/AccountStatus.cpp | 6 +- .../source/model/AccountType.cpp | 10 +- .../source/model/AppInstanceDataType.cpp | 6 +- .../source/model/ArtifactsState.cpp | 6 +- .../source/model/AudioMuxType.cpp | 6 +- .../source/model/BotType.cpp | 4 +- .../source/model/CallingNameStatus.cpp | 10 +- .../source/model/Capability.cpp | 6 +- .../source/model/ChannelMembershipType.cpp | 6 +- .../model/ChannelMessagePersistenceType.cpp | 6 +- .../source/model/ChannelMessageType.cpp | 6 +- .../source/model/ChannelMode.cpp | 6 +- .../source/model/ChannelPrivacy.cpp | 6 +- .../source/model/ContentMuxType.cpp | 4 +- .../source/model/EmailStatus.cpp | 8 +- .../source/model/ErrorCode.cpp | 32 +- .../source/model/GeoMatchLevel.cpp | 6 +- .../source/model/InviteStatus.cpp | 8 +- .../source/model/License.cpp | 10 +- .../source/model/MediaPipelineSinkType.cpp | 4 +- .../source/model/MediaPipelineSourceType.cpp | 4 +- .../source/model/MediaPipelineStatus.cpp | 12 +- .../source/model/MemberType.cpp | 8 +- .../source/model/NotificationTarget.cpp | 8 +- .../source/model/NumberSelectionBehavior.cpp | 6 +- .../source/model/OrderedPhoneNumberStatus.cpp | 8 +- .../source/model/OriginationRouteProtocol.cpp | 6 +- .../model/PhoneNumberAssociationName.cpp | 12 +- .../source/model/PhoneNumberOrderStatus.cpp | 10 +- .../source/model/PhoneNumberProductType.cpp | 8 +- .../source/model/PhoneNumberStatus.cpp | 18 +- .../source/model/PhoneNumberType.cpp | 6 +- .../source/model/ProxySessionStatus.cpp | 8 +- .../source/model/RegistrationStatus.cpp | 8 +- .../source/model/RoomMembershipRole.cpp | 6 +- .../source/model/SipRuleTriggerType.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../TranscribeContentIdentificationType.cpp | 4 +- .../model/TranscribeContentRedactionType.cpp | 4 +- .../source/model/TranscribeLanguageCode.cpp | 30 +- ...scribeMedicalContentIdentificationType.cpp | 4 +- .../model/TranscribeMedicalLanguageCode.cpp | 4 +- .../source/model/TranscribeMedicalRegion.cpp | 16 +- .../model/TranscribeMedicalSpecialty.cpp | 14 +- .../source/model/TranscribeMedicalType.cpp | 6 +- .../TranscribePartialResultsStability.cpp | 8 +- .../source/model/TranscribeRegion.cpp | 26 +- .../TranscribeVocabularyFilterMethod.cpp | 8 +- .../source/model/UserType.cpp | 6 +- .../source/model/VideoMuxType.cpp | 4 +- .../source/model/VoiceConnectorAwsRegion.cpp | 6 +- .../source/CleanRoomsErrors.cpp | 8 +- .../model/AccessDeniedExceptionReason.cpp | 4 +- .../source/model/AggregateFunctionName.cpp | 12 +- .../source/model/AggregationType.cpp | 4 +- .../source/model/AnalysisFormat.cpp | 4 +- .../source/model/AnalysisMethod.cpp | 4 +- .../source/model/AnalysisRuleType.cpp | 8 +- .../model/CollaborationQueryLogStatus.cpp | 6 +- .../model/ConfiguredTableAnalysisRuleType.cpp | 8 +- .../source/model/ConflictExceptionReason.cpp | 8 +- .../source/model/FilterableMemberStatus.cpp | 6 +- .../source/model/JoinOperator.cpp | 6 +- .../source/model/JoinRequiredOption.cpp | 4 +- .../source/model/MemberAbility.cpp | 6 +- .../source/model/MemberStatus.cpp | 10 +- .../source/model/MembershipQueryLogStatus.cpp | 6 +- .../source/model/MembershipStatus.cpp | 8 +- .../source/model/ParameterType.cpp | 32 +- .../source/model/ProtectedQueryStatus.cpp | 16 +- .../source/model/ProtectedQueryType.cpp | 4 +- .../source/model/ResourceType.cpp | 10 +- .../source/model/ResultFormat.cpp | 6 +- .../source/model/ScalarFunctions.cpp | 28 +- .../source/model/SchemaType.cpp | 4 +- .../model/TargetProtectedQueryStatus.cpp | 4 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/Cloud9Errors.cpp | 18 +- .../source/model/ConnectionType.cpp | 6 +- .../model/EnvironmentLifecycleStatus.cpp | 12 +- .../source/model/EnvironmentStatus.cpp | 16 +- .../source/model/EnvironmentType.cpp | 6 +- .../source/model/ManagedCredentialsAction.cpp | 6 +- .../source/model/ManagedCredentialsStatus.cpp | 24 +- .../source/model/MemberPermissions.cpp | 6 +- .../source/model/Permissions.cpp | 8 +- .../source/CloudControlApiErrors.cpp | 40 +- .../source/model/HandlerErrorCode.cpp | 32 +- .../source/model/Operation.cpp | 8 +- .../source/model/OperationStatus.cpp | 14 +- .../source/CloudDirectoryErrors.cpp | 66 +- .../source/model/BatchReadExceptionType.cpp | 28 +- .../source/model/BatchWriteExceptionType.cpp | 38 +- .../source/model/ConsistencyLevel.cpp | 6 +- .../source/model/DirectoryState.cpp | 8 +- .../source/model/FacetAttributeType.cpp | 14 +- .../source/model/FacetStyle.cpp | 6 +- .../source/model/ObjectType.cpp | 10 +- .../source/model/RangeMode.cpp | 12 +- .../model/RequiredAttributeBehavior.cpp | 6 +- .../source/model/RuleType.cpp | 10 +- .../source/model/UpdateActionType.cpp | 6 +- .../source/CloudFormationErrors.cpp | 46 +- .../source/model/AccountFilterType.cpp | 10 +- .../source/model/AccountGateStatus.cpp | 8 +- .../source/model/CallAs.cpp | 6 +- .../source/model/Capability.cpp | 8 +- .../source/model/Category.cpp | 10 +- .../source/model/ChangeAction.cpp | 12 +- .../source/model/ChangeSetHooksStatus.cpp | 8 +- .../source/model/ChangeSetStatus.cpp | 18 +- .../source/model/ChangeSetType.cpp | 8 +- .../source/model/ChangeSource.cpp | 12 +- .../source/model/ChangeType.cpp | 4 +- .../source/model/DeprecatedStatus.cpp | 6 +- .../source/model/DifferenceType.cpp | 8 +- .../source/model/EvaluationType.cpp | 6 +- .../source/model/ExecutionStatus.cpp | 14 +- .../source/model/HandlerErrorCode.cpp | 40 +- .../source/model/HookFailureMode.cpp | 6 +- .../source/model/HookInvocationPoint.cpp | 4 +- .../source/model/HookStatus.cpp | 10 +- .../source/model/HookTargetType.cpp | 4 +- .../source/model/IdentityProvider.cpp | 8 +- .../source/model/OnFailure.cpp | 8 +- .../source/model/OnStackFailure.cpp | 8 +- .../model/OperationResultFilterName.cpp | 4 +- .../source/model/OperationStatus.cpp | 10 +- .../source/model/OrganizationStatus.cpp | 8 +- .../source/model/PermissionModels.cpp | 6 +- .../source/model/ProvisioningType.cpp | 8 +- .../source/model/PublisherStatus.cpp | 6 +- .../source/model/RegionConcurrencyType.cpp | 6 +- .../source/model/RegistrationStatus.cpp | 8 +- .../source/model/RegistryType.cpp | 8 +- .../source/model/Replacement.cpp | 8 +- .../source/model/RequiresRecreation.cpp | 8 +- .../source/model/ResourceAttribute.cpp | 14 +- .../source/model/ResourceSignalStatus.cpp | 6 +- .../source/model/ResourceStatus.cpp | 46 +- .../model/StackDriftDetectionStatus.cpp | 8 +- .../source/model/StackDriftStatus.cpp | 10 +- .../model/StackInstanceDetailedStatus.cpp | 16 +- .../source/model/StackInstanceFilterName.cpp | 8 +- .../source/model/StackInstanceStatus.cpp | 8 +- .../source/model/StackResourceDriftStatus.cpp | 10 +- .../model/StackSetDriftDetectionStatus.cpp | 12 +- .../source/model/StackSetDriftStatus.cpp | 8 +- .../source/model/StackSetOperationAction.cpp | 10 +- .../model/StackSetOperationResultStatus.cpp | 12 +- .../source/model/StackSetOperationStatus.cpp | 14 +- .../source/model/StackSetStatus.cpp | 6 +- .../source/model/StackStatus.cpp | 48 +- .../source/model/TemplateStage.cpp | 6 +- .../source/model/ThirdPartyType.cpp | 8 +- .../source/model/TypeTestsStatus.cpp | 10 +- .../source/model/VersionBump.cpp | 6 +- .../source/model/Visibility.cpp | 6 +- .../source/CloudFrontErrors.cpp | 292 ++-- .../model/CachePolicyCookieBehavior.cpp | 10 +- .../model/CachePolicyHeaderBehavior.cpp | 6 +- .../model/CachePolicyQueryStringBehavior.cpp | 10 +- .../source/model/CachePolicyType.cpp | 6 +- .../model/ContinuousDeploymentPolicyType.cpp | 6 +- .../source/model/EventType.cpp | 10 +- .../source/model/Format.cpp | 4 +- .../source/model/FrameOptionsList.cpp | 6 +- .../source/model/FunctionRuntime.cpp | 6 +- .../source/model/FunctionStage.cpp | 6 +- .../source/model/GeoRestrictionType.cpp | 8 +- .../source/model/HttpVersion.cpp | 10 +- .../source/model/ICPRecordalStatus.cpp | 8 +- .../source/model/ItemSelection.cpp | 8 +- .../source/model/Method.cpp | 16 +- .../source/model/MinimumProtocolVersion.cpp | 16 +- .../model/OriginAccessControlOriginTypes.cpp | 6 +- .../OriginAccessControlSigningBehaviors.cpp | 8 +- .../OriginAccessControlSigningProtocols.cpp | 4 +- .../source/model/OriginProtocolPolicy.cpp | 8 +- .../OriginRequestPolicyCookieBehavior.cpp | 10 +- .../OriginRequestPolicyHeaderBehavior.cpp | 12 +- ...OriginRequestPolicyQueryStringBehavior.cpp | 10 +- .../source/model/OriginRequestPolicyType.cpp | 6 +- .../source/model/PriceClass.cpp | 8 +- .../RealtimeMetricsSubscriptionStatus.cpp | 6 +- .../source/model/ReferrerPolicyList.cpp | 18 +- ...sPolicyAccessControlAllowMethodsValues.cpp | 18 +- .../model/ResponseHeadersPolicyType.cpp | 6 +- .../source/model/SSLSupportMethod.cpp | 8 +- .../source/model/SslProtocol.cpp | 10 +- .../source/model/ViewerProtocolPolicy.cpp | 8 +- .../source/model/ClientVersion.cpp | 6 +- .../source/model/CloudHsmObjectState.cpp | 8 +- .../source/model/HsmStatus.cpp | 16 +- .../source/model/SubscriptionType.cpp | 4 +- .../source/CloudHSMV2Errors.cpp | 14 +- .../source/model/BackupPolicy.cpp | 4 +- .../source/model/BackupRetentionType.cpp | 4 +- .../source/model/BackupState.cpp | 10 +- .../source/model/ClusterState.cpp | 20 +- .../source/model/HsmState.cpp | 12 +- .../source/CloudSearchErrors.cpp | 14 +- .../source/model/AlgorithmicStemming.cpp | 10 +- .../source/model/AnalysisSchemeLanguage.cpp | 72 +- .../source/model/IndexFieldType.cpp | 24 +- .../source/model/OptionState.cpp | 10 +- .../source/model/PartitionInstanceType.cpp | 36 +- .../source/model/SuggesterFuzzyMatching.cpp | 8 +- .../source/model/TLSSecurityPolicy.cpp | 6 +- .../source/CloudSearchDomainErrors.cpp | 6 +- .../source/model/ContentType.cpp | 6 +- .../source/model/QueryParser.cpp | 10 +- .../source/CloudTrailDataErrors.cpp | 14 +- .../source/CloudTrailErrors.cpp | 156 +- .../source/model/DeliveryStatus.cpp | 20 +- .../source/model/DestinationType.cpp | 6 +- .../source/model/EventCategory.cpp | 4 +- .../source/model/EventDataStoreStatus.cpp | 14 +- .../source/model/ImportFailureStatus.cpp | 8 +- .../source/model/ImportStatus.cpp | 12 +- .../source/model/InsightType.cpp | 6 +- .../source/model/LookupAttributeKey.cpp | 18 +- .../source/model/QueryStatus.cpp | 14 +- .../source/model/ReadWriteType.cpp | 8 +- .../source/CodeArtifactErrors.cpp | 8 +- .../source/model/AllowPublish.cpp | 6 +- .../source/model/AllowUpstream.cpp | 6 +- .../source/model/DomainStatus.cpp | 6 +- .../source/model/ExternalConnectionStatus.cpp | 4 +- .../source/model/HashAlgorithm.cpp | 10 +- .../source/model/PackageFormat.cpp | 14 +- .../source/model/PackageVersionErrorCode.cpp | 14 +- .../source/model/PackageVersionOriginType.cpp | 8 +- .../source/model/PackageVersionSortType.cpp | 4 +- .../source/model/PackageVersionStatus.cpp | 14 +- .../source/model/ResourceType.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 12 +- .../source/CodeBuildErrors.cpp | 10 +- .../source/model/ArtifactNamespace.cpp | 6 +- .../source/model/ArtifactPackaging.cpp | 6 +- .../source/model/ArtifactsType.cpp | 8 +- .../source/model/AuthType.cpp | 8 +- .../source/model/BatchReportModeType.cpp | 6 +- .../source/model/BucketOwnerAccess.cpp | 8 +- .../source/model/BuildBatchPhaseType.cpp | 16 +- .../source/model/BuildPhaseType.cpp | 24 +- .../source/model/CacheMode.cpp | 8 +- .../source/model/CacheType.cpp | 8 +- .../source/model/ComputeType.cpp | 10 +- .../source/model/CredentialProviderType.cpp | 4 +- .../source/model/EnvironmentType.cpp | 12 +- .../source/model/EnvironmentVariableType.cpp | 8 +- .../source/model/FileSystemType.cpp | 4 +- .../source/model/ImagePullCredentialsType.cpp | 6 +- .../source/model/LanguageType.cpp | 22 +- .../source/model/LogsConfigStatusType.cpp | 6 +- .../source/model/PlatformType.cpp | 10 +- .../source/model/ProjectSortByType.cpp | 8 +- .../source/model/ProjectVisibilityType.cpp | 6 +- .../model/ReportCodeCoverageSortByType.cpp | 6 +- .../source/model/ReportExportConfigType.cpp | 6 +- .../source/model/ReportGroupSortByType.cpp | 8 +- .../source/model/ReportGroupStatusType.cpp | 6 +- .../model/ReportGroupTrendFieldType.cpp | 20 +- .../source/model/ReportPackagingType.cpp | 6 +- .../source/model/ReportStatusType.cpp | 12 +- .../source/model/ReportType.cpp | 6 +- .../source/model/RetryBuildBatchType.cpp | 6 +- .../source/model/ServerType.cpp | 8 +- .../source/model/SharedResourceSortByType.cpp | 6 +- .../source/model/SortOrderType.cpp | 6 +- .../source/model/SourceAuthType.cpp | 4 +- .../source/model/SourceType.cpp | 16 +- .../source/model/StatusType.cpp | 14 +- .../source/model/WebhookBuildType.cpp | 6 +- .../source/model/WebhookFilterType.cpp | 14 +- .../source/CodeCatalystErrors.cpp | 6 +- .../source/model/ComparisonOperator.cpp | 12 +- .../model/DevEnvironmentSessionType.cpp | 6 +- .../source/model/DevEnvironmentStatus.cpp | 18 +- .../source/model/FilterKey.cpp | 4 +- .../source/model/InstanceType.cpp | 10 +- .../source/model/OperationType.cpp | 6 +- .../source/model/UserType.cpp | 8 +- .../source/CodeCommitErrors.cpp | 376 ++-- .../source/model/ApprovalState.cpp | 6 +- .../source/model/ChangeTypeEnum.cpp | 8 +- .../model/ConflictDetailLevelTypeEnum.cpp | 6 +- .../ConflictResolutionStrategyTypeEnum.cpp | 10 +- .../source/model/FileModeTypeEnum.cpp | 8 +- .../source/model/MergeOptionTypeEnum.cpp | 8 +- .../source/model/ObjectTypeEnum.cpp | 10 +- .../source/model/OrderEnum.cpp | 6 +- .../source/model/OverrideStatus.cpp | 6 +- .../source/model/PullRequestEventType.cpp | 20 +- .../source/model/PullRequestStatusEnum.cpp | 6 +- .../source/model/RelativeFileVersionEnum.cpp | 6 +- .../source/model/ReplacementTypeEnum.cpp | 10 +- .../model/RepositoryTriggerEventEnum.cpp | 10 +- .../source/model/SortByEnum.cpp | 6 +- .../source/CodeDeployErrors.cpp | 214 +-- .../model/ApplicationRevisionSortBy.cpp | 8 +- .../source/model/AutoRollbackEvent.cpp | 8 +- .../source/model/BundleType.cpp | 12 +- .../source/model/ComputePlatform.cpp | 8 +- .../source/model/DeploymentCreator.cpp | 16 +- .../source/model/DeploymentOption.cpp | 6 +- .../source/model/DeploymentReadyAction.cpp | 6 +- .../source/model/DeploymentStatus.cpp | 18 +- .../source/model/DeploymentTargetType.cpp | 10 +- .../source/model/DeploymentType.cpp | 6 +- .../source/model/DeploymentWaitType.cpp | 6 +- .../source/model/EC2TagFilterType.cpp | 8 +- .../source/model/ErrorCode.cpp | 70 +- .../source/model/FileExistsBehavior.cpp | 8 +- .../model/GreenFleetProvisioningAction.cpp | 6 +- .../source/model/InstanceAction.cpp | 6 +- .../source/model/InstanceStatus.cpp | 16 +- .../source/model/InstanceType.cpp | 6 +- .../source/model/LifecycleErrorCode.cpp | 14 +- .../source/model/LifecycleEventStatus.cpp | 14 +- .../source/model/ListStateFilterAction.cpp | 8 +- .../source/model/MinimumHealthyHostsType.cpp | 6 +- .../model/OutdatedInstancesStrategy.cpp | 6 +- .../source/model/RegistrationStatus.cpp | 6 +- .../source/model/RevisionLocationType.cpp | 10 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/StopStatus.cpp | 6 +- .../source/model/TagFilterType.cpp | 8 +- .../source/model/TargetFilterName.cpp | 6 +- .../source/model/TargetLabel.cpp | 6 +- .../source/model/TargetStatus.cpp | 16 +- .../source/model/TrafficRoutingType.cpp | 8 +- .../source/model/TriggerEventType.cpp | 22 +- .../source/CodeGuruReviewerErrors.cpp | 8 +- .../source/model/AnalysisType.cpp | 6 +- .../source/model/ConfigFileState.cpp | 8 +- .../source/model/EncryptionOption.cpp | 6 +- .../source/model/JobState.cpp | 10 +- .../source/model/ProviderType.cpp | 12 +- .../source/model/Reaction.cpp | 6 +- .../source/model/RecommendationCategory.cpp | 24 +- .../model/RepositoryAssociationState.cpp | 12 +- .../source/model/Severity.cpp | 12 +- .../source/model/Type.cpp | 6 +- .../source/model/VendorName.cpp | 8 +- .../source/CodeGuruSecurityErrors.cpp | 6 +- .../source/model/AnalysisType.cpp | 6 +- .../source/model/ErrorCode.cpp | 12 +- .../source/model/ScanState.cpp | 8 +- .../source/model/ScanType.cpp | 6 +- .../source/model/Severity.cpp | 12 +- .../source/model/Status.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 12 +- .../source/CodeGuruProfilerErrors.cpp | 8 +- .../source/model/ActionGroup.cpp | 4 +- .../source/model/AgentParameterField.cpp | 12 +- .../source/model/AggregationPeriod.cpp | 8 +- .../source/model/ComputePlatform.cpp | 6 +- .../source/model/EventPublisher.cpp | 4 +- .../source/model/FeedbackType.cpp | 6 +- .../source/model/MetadataField.cpp | 20 +- .../source/model/MetricType.cpp | 4 +- .../source/model/OrderBy.cpp | 6 +- .../source/CodePipelineErrors.cpp | 70 +- .../source/model/ActionCategory.cpp | 14 +- .../model/ActionConfigurationPropertyType.cpp | 8 +- .../source/model/ActionExecutionStatus.cpp | 10 +- .../source/model/ActionOwner.cpp | 8 +- .../source/model/ApprovalStatus.cpp | 6 +- .../source/model/ArtifactLocationType.cpp | 4 +- .../source/model/ArtifactStoreType.cpp | 4 +- .../source/model/BlockerType.cpp | 4 +- .../source/model/EncryptionKeyType.cpp | 4 +- .../source/model/ExecutorType.cpp | 6 +- .../source/model/FailureType.cpp | 14 +- .../source/model/JobStatus.cpp | 16 +- .../source/model/PipelineExecutionStatus.cpp | 16 +- .../source/model/StageExecutionStatus.cpp | 14 +- .../source/model/StageRetryMode.cpp | 4 +- .../source/model/StageTransitionType.cpp | 6 +- .../source/model/TriggerType.cpp | 14 +- .../model/WebhookAuthenticationType.cpp | 8 +- .../source/CodeStarconnectionsErrors.cpp | 10 +- .../source/model/ConnectionStatus.cpp | 8 +- .../source/model/ProviderType.cpp | 10 +- .../source/CodeStarNotificationsErrors.cpp | 12 +- .../source/model/DetailType.cpp | 6 +- .../source/model/ListEventTypesFilterName.cpp | 6 +- .../model/ListNotificationRulesFilterName.cpp | 10 +- .../source/model/ListTargetsFilterName.cpp | 8 +- .../source/model/NotificationRuleStatus.cpp | 6 +- .../source/model/TargetStatus.cpp | 12 +- .../source/CodeStarErrors.cpp | 26 +- .../source/CognitoIdentityErrors.cpp | 22 +- .../model/AmbiguousRoleResolutionType.cpp | 6 +- .../source/model/ErrorCode.cpp | 6 +- .../source/model/MappingRuleMatchType.cpp | 10 +- .../source/model/RoleMappingType.cpp | 6 +- .../source/CognitoIdentityProviderErrors.cpp | 82 +- .../model/AccountTakeoverEventActionType.cpp | 10 +- .../source/model/AdvancedSecurityModeType.cpp | 8 +- .../source/model/AliasAttributeType.cpp | 8 +- .../source/model/AttributeDataType.cpp | 10 +- .../source/model/AuthFlowType.cpp | 16 +- .../source/model/ChallengeName.cpp | 6 +- .../source/model/ChallengeNameType.cpp | 22 +- .../source/model/ChallengeResponse.cpp | 6 +- .../CompromisedCredentialsEventActionType.cpp | 6 +- .../CustomEmailSenderLambdaVersionType.cpp | 4 +- .../CustomSMSSenderLambdaVersionType.cpp | 4 +- .../source/model/DefaultEmailOptionType.cpp | 6 +- .../source/model/DeletionProtectionType.cpp | 6 +- .../source/model/DeliveryMediumType.cpp | 6 +- .../model/DeviceRememberedStatusType.cpp | 6 +- .../source/model/DomainStatusType.cpp | 12 +- .../source/model/EmailSendingAccountType.cpp | 6 +- .../source/model/EventFilterType.cpp | 8 +- .../source/model/EventResponseType.cpp | 8 +- .../source/model/EventSourceName.cpp | 4 +- .../source/model/EventType.cpp | 12 +- .../source/model/ExplicitAuthFlowsType.cpp | 18 +- .../source/model/FeedbackValueType.cpp | 6 +- .../source/model/IdentityProviderTypeType.cpp | 14 +- .../source/model/LogLevel.cpp | 4 +- .../source/model/MessageActionType.cpp | 6 +- .../source/model/OAuthFlowType.cpp | 8 +- .../model/PreventUserExistenceErrorTypes.cpp | 6 +- .../source/model/RecoveryOptionNameType.cpp | 8 +- .../source/model/RiskDecisionType.cpp | 8 +- .../source/model/RiskLevelType.cpp | 8 +- .../source/model/TimeUnitsType.cpp | 10 +- .../source/model/UserImportJobStatusType.cpp | 18 +- .../source/model/UserPoolMfaType.cpp | 8 +- .../source/model/UserStatusType.cpp | 16 +- .../source/model/UsernameAttributeType.cpp | 6 +- .../source/model/VerifiedAttributeType.cpp | 6 +- .../model/VerifySoftwareTokenResponseType.cpp | 6 +- .../source/CognitoSyncErrors.cpp | 26 +- .../source/model/BulkPublishStatus.cpp | 10 +- .../source/model/Operation.cpp | 6 +- .../source/model/Platform.cpp | 10 +- .../source/model/StreamingStatus.cpp | 6 +- .../source/ComprehendErrors.cpp | 32 +- .../AugmentedManifestsDocumentTypeFormat.cpp | 6 +- .../source/model/BlockType.cpp | 6 +- .../source/model/DatasetDataFormat.cpp | 6 +- .../source/model/DatasetStatus.cpp | 8 +- .../source/model/DatasetType.cpp | 6 +- .../model/DocumentClassifierDataFormat.cpp | 6 +- .../DocumentClassifierDocumentTypeFormat.cpp | 6 +- .../source/model/DocumentClassifierMode.cpp | 6 +- .../source/model/DocumentReadAction.cpp | 6 +- .../source/model/DocumentReadFeatureTypes.cpp | 6 +- .../source/model/DocumentReadMode.cpp | 6 +- .../source/model/DocumentType.cpp | 16 +- .../source/model/EndpointStatus.cpp | 12 +- .../model/EntityRecognizerDataFormat.cpp | 6 +- .../source/model/EntityType.cpp | 20 +- .../source/model/FlywheelIterationStatus.cpp | 14 +- .../source/model/FlywheelStatus.cpp | 12 +- .../source/model/InputFormat.cpp | 6 +- .../model/InvalidRequestDetailReason.cpp | 10 +- .../source/model/InvalidRequestReason.cpp | 4 +- .../source/model/JobStatus.cpp | 14 +- .../source/model/LanguageCode.cpp | 26 +- .../source/model/ModelStatus.cpp | 18 +- .../source/model/ModelType.cpp | 6 +- .../source/model/PageBasedErrorCode.cpp | 12 +- .../source/model/PageBasedWarningCode.cpp | 6 +- .../source/model/PartOfSpeechTagType.cpp | 38 +- .../model/PiiEntitiesDetectionMaskMode.cpp | 6 +- .../source/model/PiiEntitiesDetectionMode.cpp | 6 +- .../source/model/PiiEntityType.cpp | 76 +- .../source/model/RelationshipType.cpp | 4 +- .../source/model/SentimentType.cpp | 10 +- .../source/model/Split.cpp | 6 +- .../source/model/SyntaxLanguageCode.cpp | 14 +- .../model/TargetedSentimentEntityType.cpp | 36 +- .../source/ComprehendMedicalErrors.cpp | 12 +- .../source/model/AttributeName.cpp | 20 +- .../source/model/EntitySubType.cpp | 92 +- .../source/model/EntityType.cpp | 16 +- .../source/model/ICD10CMAttributeType.cpp | 16 +- .../source/model/ICD10CMEntityCategory.cpp | 4 +- .../source/model/ICD10CMEntityType.cpp | 6 +- .../source/model/ICD10CMRelationshipType.cpp | 8 +- .../source/model/ICD10CMTraitName.cpp | 16 +- .../source/model/JobStatus.cpp | 16 +- .../source/model/LanguageCode.cpp | 4 +- .../source/model/RelationshipType.cpp | 46 +- .../source/model/RxNormAttributeType.cpp | 16 +- .../source/model/RxNormEntityCategory.cpp | 4 +- .../source/model/RxNormEntityType.cpp | 6 +- .../source/model/RxNormTraitName.cpp | 6 +- .../source/model/SNOMEDCTAttributeType.cpp | 14 +- .../source/model/SNOMEDCTEntityCategory.cpp | 8 +- .../source/model/SNOMEDCTEntityType.cpp | 10 +- .../source/model/SNOMEDCTRelationshipType.cpp | 16 +- .../source/model/SNOMEDCTTraitName.cpp | 20 +- .../source/ComputeOptimizerErrors.cpp | 6 +- .../source/model/AutoScalingConfiguration.cpp | 6 +- .../source/model/CpuVendorArchitecture.cpp | 6 +- .../source/model/Currency.cpp | 6 +- .../source/model/CurrentPerformanceRisk.cpp | 10 +- .../source/model/EBSFilterName.cpp | 4 +- .../source/model/EBSFinding.cpp | 6 +- .../source/model/EBSMetricName.cpp | 10 +- .../source/model/ECSServiceLaunchType.cpp | 6 +- .../source/model/ECSServiceMetricName.cpp | 6 +- .../model/ECSServiceMetricStatistic.cpp | 6 +- .../ECSServiceRecommendationFilterName.cpp | 6 +- .../model/ECSServiceRecommendationFinding.cpp | 8 +- ...ServiceRecommendationFindingReasonCode.cpp | 10 +- .../model/EnhancedInfrastructureMetrics.cpp | 6 +- .../source/model/EnrollmentFilterName.cpp | 4 +- .../model/ExportableAutoScalingGroupField.cpp | 122 +- .../model/ExportableECSServiceField.cpp | 50 +- .../source/model/ExportableInstanceField.cpp | 130 +- .../model/ExportableLambdaFunctionField.cpp | 56 +- .../source/model/ExportableLicenseField.cpp | 44 +- .../source/model/ExportableVolumeField.cpp | 64 +- .../source/model/ExternalMetricStatusCode.cpp | 22 +- .../source/model/ExternalMetricsSource.cpp | 10 +- .../source/model/FileFormat.cpp | 4 +- .../source/model/FilterName.cpp | 10 +- .../source/model/Finding.cpp | 10 +- .../source/model/FindingReasonCode.cpp | 6 +- .../source/model/InferredWorkloadType.cpp | 20 +- .../model/InferredWorkloadTypesPreference.cpp | 6 +- .../source/model/InstanceIdle.cpp | 6 +- ...nstanceRecommendationFindingReasonCode.cpp | 42 +- .../source/model/InstanceState.cpp | 14 +- .../source/model/JobFilterName.cpp | 6 +- .../source/model/JobStatus.cpp | 10 +- .../model/LambdaFunctionMemoryMetricName.cpp | 4 +- .../LambdaFunctionMemoryMetricStatistic.cpp | 8 +- .../source/model/LambdaFunctionMetricName.cpp | 6 +- .../model/LambdaFunctionMetricStatistic.cpp | 6 +- ...LambdaFunctionRecommendationFilterName.cpp | 6 +- .../LambdaFunctionRecommendationFinding.cpp | 8 +- ...unctionRecommendationFindingReasonCode.cpp | 10 +- .../source/model/LicenseEdition.cpp | 10 +- .../source/model/LicenseFinding.cpp | 8 +- .../source/model/LicenseFindingReasonCode.cpp | 10 +- .../source/model/LicenseModel.cpp | 6 +- .../source/model/LicenseName.cpp | 4 +- .../model/LicenseRecommendationFilterName.cpp | 8 +- .../source/model/MetricName.cpp | 34 +- .../source/model/MetricSourceProvider.cpp | 4 +- .../source/model/MetricStatistic.cpp | 6 +- .../source/model/MigrationEffort.cpp | 10 +- .../source/model/PlatformDifference.cpp | 14 +- .../model/RecommendationPreferenceName.cpp | 8 +- .../source/model/RecommendationSourceType.cpp | 14 +- .../source/model/ResourceType.cpp | 16 +- .../source/model/ScopeName.cpp | 8 +- .../source/model/Status.cpp | 10 +- .../source/ConfigServiceErrors.cpp | 104 +- ...nformancePackComplianceSummaryGroupKey.cpp | 6 +- .../model/AggregatedSourceStatusType.cpp | 8 +- .../source/model/AggregatedSourceType.cpp | 6 +- .../source/model/ChronologicalOrder.cpp | 6 +- .../source/model/ComplianceType.cpp | 10 +- .../ConfigRuleComplianceSummaryGroupKey.cpp | 6 +- .../source/model/ConfigRuleState.cpp | 10 +- .../source/model/ConfigurationItemStatus.cpp | 12 +- .../model/ConformancePackComplianceType.cpp | 8 +- .../source/model/ConformancePackState.cpp | 12 +- .../source/model/DeliveryStatus.cpp | 8 +- .../source/model/EvaluationMode.cpp | 6 +- .../source/model/EventSource.cpp | 4 +- .../model/MaximumExecutionFrequency.cpp | 12 +- .../source/model/MemberAccountRuleStatus.cpp | 20 +- .../source/model/MessageType.cpp | 10 +- .../OrganizationConfigRuleTriggerType.cpp | 8 +- .../OrganizationConfigRuleTriggerTypeNoSN.cpp | 6 +- .../OrganizationResourceDetailedStatus.cpp | 20 +- .../model/OrganizationResourceStatus.cpp | 20 +- .../source/model/OrganizationRuleStatus.cpp | 20 +- .../aws-cpp-sdk-config/source/model/Owner.cpp | 8 +- .../source/model/RecorderStatus.cpp | 8 +- .../source/model/RecordingStrategyType.cpp | 8 +- .../model/RemediationExecutionState.cpp | 10 +- .../model/RemediationExecutionStepState.cpp | 8 +- .../source/model/RemediationTargetType.cpp | 4 +- .../model/ResourceConfigurationSchemaType.cpp | 4 +- .../source/model/ResourceCountGroupKey.cpp | 8 +- .../source/model/ResourceEvaluationStatus.cpp | 8 +- .../source/model/ResourceType.cpp | 754 ++++---- .../source/model/ResourceValueType.cpp | 4 +- .../source/model/SortBy.cpp | 4 +- .../source/model/SortOrder.cpp | 6 +- .../source/ConnectContactLensErrors.cpp | 6 +- .../source/model/SentimentValue.cpp | 8 +- .../source/ConnectClient.cpp | 614 +++---- .../source/ConnectClient1.cpp | 936 +++++----- .../source/ConnectClient2.cpp | 78 +- .../source/ConnectErrors.cpp | 42 +- .../source/model/ActionType.cpp | 10 +- .../source/model/AgentAvailabilityTimer.cpp | 6 +- .../source/model/AgentStatusState.cpp | 6 +- .../source/model/AgentStatusType.cpp | 8 +- .../source/model/BehaviorType.cpp | 6 +- .../source/model/Channel.cpp | 8 +- .../source/model/Comparison.cpp | 4 +- .../source/model/ContactFlowModuleState.cpp | 6 +- .../source/model/ContactFlowModuleStatus.cpp | 6 +- .../source/model/ContactFlowState.cpp | 6 +- .../source/model/ContactFlowType.cpp | 20 +- .../source/model/ContactInitiationMethod.cpp | 20 +- .../source/model/ContactState.cpp | 20 +- .../source/model/CurrentMetricName.cpp | 28 +- .../source/model/DirectoryType.cpp | 8 +- .../source/model/EncryptionType.cpp | 4 +- .../model/EvaluationFormQuestionType.cpp | 8 +- .../model/EvaluationFormScoringMode.cpp | 6 +- .../model/EvaluationFormScoringStatus.cpp | 6 +- ...ionFormSingleSelectQuestionDisplayMode.cpp | 6 +- .../model/EvaluationFormVersionStatus.cpp | 6 +- .../source/model/EvaluationStatus.cpp | 6 +- .../source/model/EventSourceName.cpp | 18 +- .../source/model/Grouping.cpp | 8 +- .../source/model/HierarchyGroupMatchType.cpp | 6 +- .../source/model/HistoricalMetricName.cpp | 52 +- .../source/model/HoursOfOperationDays.cpp | 16 +- .../source/model/InstanceAttributeType.cpp | 22 +- .../source/model/InstanceStatus.cpp | 8 +- .../model/InstanceStorageResourceType.cpp | 22 +- .../source/model/IntegrationType.cpp | 16 +- .../source/model/IntervalPeriod.cpp | 14 +- .../source/model/LexVersion.cpp | 6 +- .../source/model/MonitorCapability.cpp | 6 +- .../source/model/NotificationContentType.cpp | 4 +- .../source/model/NotificationDeliveryType.cpp | 4 +- ...NumericQuestionPropertyAutomationLabel.cpp | 18 +- .../source/model/ParticipantRole.cpp | 10 +- .../source/model/ParticipantTimerAction.cpp | 4 +- .../source/model/ParticipantTimerType.cpp | 6 +- .../source/model/PhoneNumberCountryCode.cpp | 480 +++--- .../source/model/PhoneNumberType.cpp | 14 +- .../model/PhoneNumberWorkflowStatus.cpp | 8 +- .../source/model/PhoneType.cpp | 6 +- .../PropertyValidationExceptionReason.cpp | 14 +- .../source/model/QueueStatus.cpp | 6 +- .../source/model/QueueType.cpp | 6 +- .../source/model/QuickConnectType.cpp | 8 +- .../source/model/ReferenceStatus.cpp | 6 +- .../source/model/ReferenceType.cpp | 14 +- .../source/model/RehydrationType.cpp | 6 +- .../source/model/ResourceType.cpp | 16 +- .../source/model/RulePublishStatus.cpp | 6 +- .../source/model/SearchableQueueType.cpp | 4 +- ...uestionRuleCategoryAutomationCondition.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SourceType.cpp | 6 +- .../source/model/Statistic.cpp | 8 +- .../source/model/StorageType.cpp | 10 +- .../source/model/StringComparisonType.cpp | 8 +- .../source/model/TaskTemplateFieldType.cpp | 26 +- .../source/model/TaskTemplateStatus.cpp | 6 +- .../model/TimerEligibleParticipantRoles.cpp | 6 +- .../model/TrafficDistributionGroupStatus.cpp | 14 +- .../source/model/TrafficType.cpp | 6 +- .../aws-cpp-sdk-connect/source/model/Unit.cpp | 8 +- .../source/model/UseCaseType.cpp | 6 +- .../source/model/ViewStatus.cpp | 6 +- .../source/model/ViewType.cpp | 6 +- .../source/model/VocabularyLanguageCode.cpp | 48 +- .../source/model/VocabularyState.cpp | 10 +- .../source/model/VoiceRecordingTrack.cpp | 8 +- .../source/ConnectCampaignsErrors.cpp | 12 +- .../source/model/CampaignState.cpp | 12 +- .../source/model/EncryptionType.cpp | 4 +- .../source/model/FailureCode.cpp | 8 +- .../GetCampaignStateBatchFailureCode.cpp | 6 +- .../source/model/InstanceIdFilterOperator.cpp | 4 +- .../InstanceOnboardingJobFailureCode.cpp | 14 +- .../model/InstanceOnboardingJobStatusCode.cpp | 8 +- .../source/ConnectCasesErrors.cpp | 8 +- .../source/model/CommentBodyTextType.cpp | 4 +- .../source/model/DomainStatus.cpp | 8 +- .../source/model/FieldNamespace.cpp | 6 +- .../source/model/FieldType.cpp | 14 +- .../source/model/Order.cpp | 6 +- .../source/model/RelatedItemType.cpp | 6 +- .../source/model/TemplateStatus.cpp | 6 +- .../source/ConnectParticipantErrors.cpp | 8 +- .../source/model/ArtifactStatus.cpp | 8 +- .../source/model/ChatItemType.cpp | 26 +- .../source/model/ConnectionType.cpp | 6 +- .../source/model/ParticipantRole.cpp | 10 +- .../source/model/ResourceType.cpp | 16 +- .../source/model/ScanDirection.cpp | 6 +- .../source/model/SortKey.cpp | 6 +- .../source/ControlTowerErrors.cpp | 8 +- .../source/model/ControlOperationStatus.cpp | 8 +- .../source/model/ControlOperationType.cpp | 6 +- .../source/model/DriftStatus.cpp | 10 +- .../source/model/EnablementStatus.cpp | 8 +- .../CostandUsageReportServiceErrors.cpp | 8 +- .../source/model/AWSRegion.cpp | 58 +- .../source/model/AdditionalArtifact.cpp | 8 +- .../source/model/CompressionFormat.cpp | 8 +- .../source/model/ReportFormat.cpp | 6 +- .../source/model/ReportVersioning.cpp | 6 +- .../source/model/SchemaElement.cpp | 6 +- .../aws-cpp-sdk-cur/source/model/TimeUnit.cpp | 8 +- .../source/CustomerProfilesErrors.cpp | 6 +- .../source/model/AttributeMatchingModel.cpp | 6 +- .../source/model/ConflictResolvingModel.cpp | 6 +- .../source/model/DataPullMode.cpp | 6 +- .../model/EventStreamDestinationStatus.cpp | 6 +- .../source/model/EventStreamState.cpp | 6 +- .../source/model/FieldContentType.cpp | 12 +- .../source/model/Gender.cpp | 8 +- .../model/IdentityResolutionJobStatus.cpp | 16 +- .../source/model/JobScheduleDayOfTheWeek.cpp | 16 +- .../source/model/LogicalOperator.cpp | 6 +- .../source/model/MarketoConnectorOperator.cpp | 34 +- .../source/model/MatchType.cpp | 6 +- .../source/model/Operator.cpp | 10 +- .../source/model/OperatorPropertiesKeys.cpp | 30 +- .../source/model/PartyType.cpp | 8 +- .../source/model/RuleBasedMatchingStatus.cpp | 8 +- .../source/model/S3ConnectorOperator.cpp | 42 +- .../model/SalesforceConnectorOperator.cpp | 44 +- .../model/ServiceNowConnectorOperator.cpp | 44 +- .../source/model/SourceConnectorType.cpp | 12 +- .../source/model/StandardIdentifier.cpp | 18 +- .../source/model/Statistic.cpp | 18 +- .../source/model/Status.cpp | 16 +- .../source/model/TaskType.cpp | 16 +- .../source/model/TriggerType.cpp | 8 +- .../source/model/Unit.cpp | 4 +- .../source/model/WorkflowType.cpp | 4 +- .../source/model/ZendeskConnectorOperator.cpp | 30 +- .../source/GlueDataBrewErrors.cpp | 8 +- .../source/model/AnalyticsMode.cpp | 6 +- .../source/model/CompressionFormat.cpp | 20 +- .../source/model/DatabaseOutputMode.cpp | 4 +- .../source/model/EncryptionMode.cpp | 6 +- .../source/model/InputFormat.cpp | 12 +- .../source/model/JobRunState.cpp | 16 +- .../source/model/JobType.cpp | 6 +- .../source/model/LogSubscription.cpp | 6 +- .../source/model/Order.cpp | 6 +- .../source/model/OrderedBy.cpp | 4 +- .../source/model/OutputFormat.cpp | 18 +- .../source/model/ParameterType.cpp | 8 +- .../source/model/SampleMode.cpp | 6 +- .../source/model/SampleType.cpp | 8 +- .../source/model/SessionStatus.cpp | 22 +- .../source/model/Source.cpp | 8 +- .../source/model/ThresholdType.cpp | 10 +- .../source/model/ThresholdUnit.cpp | 6 +- .../source/model/ValidationMode.cpp | 4 +- .../source/DataExchangeErrors.cpp | 8 +- .../source/model/AssetType.cpp | 12 +- .../source/model/Code.cpp | 16 +- .../model/DatabaseLFTagPolicyPermission.cpp | 4 +- .../source/model/ExceptionCause.cpp | 6 +- .../source/model/JobErrorLimitName.cpp | 12 +- .../source/model/JobErrorResourceTypes.cpp | 8 +- .../source/model/LFPermission.cpp | 6 +- .../source/model/LFResourceType.cpp | 6 +- .../model/LakeFormationDataPermissionType.cpp | 4 +- .../source/model/LimitName.cpp | 58 +- .../source/model/Origin.cpp | 6 +- .../source/model/ProtocolType.cpp | 4 +- .../source/model/ResourceType.cpp | 12 +- .../model/ServerSideEncryptionTypes.cpp | 6 +- .../source/model/State.cpp | 14 +- .../model/TableTagPolicyLFPermission.cpp | 6 +- .../source/model/Type.cpp | 20 +- .../source/DataPipelineErrors.cpp | 12 +- .../source/model/OperatorType.cpp | 12 +- .../source/model/TaskStatus.cpp | 8 +- .../source/DataSyncErrors.cpp | 6 +- .../source/model/AgentStatus.cpp | 6 +- .../source/model/Atime.cpp | 6 +- .../source/model/AzureAccessTier.cpp | 8 +- .../model/AzureBlobAuthenticationType.cpp | 4 +- .../source/model/AzureBlobType.cpp | 4 +- .../source/model/DiscoveryJobStatus.cpp | 16 +- .../source/model/DiscoveryResourceFilter.cpp | 4 +- .../source/model/DiscoveryResourceType.cpp | 8 +- .../source/model/DiscoverySystemType.cpp | 4 +- .../source/model/EfsInTransitEncryption.cpp | 6 +- .../source/model/EndpointType.cpp | 8 +- .../source/model/FilterType.cpp | 4 +- .../aws-cpp-sdk-datasync/source/model/Gid.cpp | 10 +- .../source/model/HdfsAuthenticationType.cpp | 6 +- .../model/HdfsDataTransferProtection.cpp | 10 +- .../source/model/HdfsRpcProtection.cpp | 10 +- .../source/model/LocationFilterName.cpp | 8 +- .../source/model/LogLevel.cpp | 8 +- .../source/model/Mtime.cpp | 6 +- .../source/model/NfsVersion.cpp | 10 +- .../model/ObjectStorageServerProtocol.cpp | 6 +- .../source/model/ObjectTags.cpp | 6 +- .../source/model/ObjectVersionIds.cpp | 6 +- .../source/model/Operator.cpp | 22 +- .../source/model/OverwriteMode.cpp | 6 +- .../source/model/PhaseStatus.cpp | 8 +- .../source/model/PosixPermissions.cpp | 6 +- .../source/model/PreserveDeletedFiles.cpp | 6 +- .../source/model/PreserveDevices.cpp | 6 +- .../source/model/RecommendationStatus.cpp | 10 +- .../source/model/ReportLevel.cpp | 6 +- .../source/model/ReportOutputType.cpp | 6 +- .../source/model/S3StorageClass.cpp | 18 +- .../model/SmbSecurityDescriptorCopyFlags.cpp | 8 +- .../source/model/SmbVersion.cpp | 12 +- .../model/StorageSystemConnectivityStatus.cpp | 8 +- .../source/model/TaskExecutionStatus.cpp | 16 +- .../source/model/TaskFilterName.cpp | 6 +- .../source/model/TaskQueueing.cpp | 6 +- .../source/model/TaskStatus.cpp | 12 +- .../source/model/TransferMode.cpp | 6 +- .../aws-cpp-sdk-datasync/source/model/Uid.cpp | 10 +- .../source/model/VerifyMode.cpp | 8 +- .../source/DataZoneErrors.cpp | 10 +- .../source/model/AcceptRuleBehavior.cpp | 6 +- .../source/model/AuthType.cpp | 6 +- .../source/model/ChangeAction.cpp | 6 +- .../ConfigurableActionTypeAuthorization.cpp | 6 +- .../source/model/DataAssetActivityStatus.cpp | 18 +- .../source/model/DataSourceErrorType.cpp | 16 +- .../source/model/DataSourceRunStatus.cpp | 12 +- .../source/model/DataSourceRunType.cpp | 6 +- .../source/model/DataSourceStatus.cpp | 18 +- .../source/model/DeploymentStatus.cpp | 10 +- .../source/model/DeploymentType.cpp | 8 +- .../source/model/DomainStatus.cpp | 14 +- .../source/model/EnableSetting.cpp | 6 +- .../source/model/EntityType.cpp | 4 +- .../source/model/EnvironmentStatus.cpp | 28 +- .../source/model/FilterExpressionType.cpp | 6 +- .../source/model/FormTypeStatus.cpp | 6 +- .../source/model/GlossaryStatus.cpp | 6 +- .../source/model/GlossaryTermStatus.cpp | 6 +- .../source/model/GroupProfileStatus.cpp | 6 +- .../source/model/GroupSearchType.cpp | 6 +- .../source/model/InventorySearchScope.cpp | 8 +- .../source/model/ListingStatus.cpp | 8 +- .../source/model/NotificationResourceType.cpp | 4 +- .../source/model/NotificationRole.cpp | 12 +- .../source/model/NotificationType.cpp | 6 +- .../source/model/RejectRuleBehavior.cpp | 6 +- .../model/SearchOutputAdditionalAttribute.cpp | 4 +- .../source/model/SortFieldProject.cpp | 4 +- .../source/model/SortKey.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../model/SubscriptionGrantOverallStatus.cpp | 16 +- .../source/model/SubscriptionGrantStatus.cpp | 18 +- .../model/SubscriptionRequestStatus.cpp | 8 +- .../source/model/SubscriptionStatus.cpp | 8 +- .../source/model/TaskStatus.cpp | 6 +- .../source/model/Timezone.cpp | 130 +- .../source/model/TypesSearchScope.cpp | 6 +- .../source/model/UserAssignment.cpp | 6 +- .../source/model/UserDesignation.cpp | 6 +- .../source/model/UserProfileStatus.cpp | 10 +- .../source/model/UserProfileType.cpp | 6 +- .../source/model/UserSearchType.cpp | 10 +- .../source/model/UserType.cpp | 8 +- .../src/aws-cpp-sdk-dax/source/DAXErrors.cpp | 52 +- .../source/model/ChangeType.cpp | 6 +- .../model/ClusterEndpointEncryptionType.cpp | 6 +- .../source/model/IsModifiable.cpp | 8 +- .../source/model/ParameterType.cpp | 6 +- .../source/model/SSEStatus.cpp | 10 +- .../source/model/SourceType.cpp | 8 +- .../source/DetectiveErrors.cpp | 10 +- .../source/model/DatasourcePackage.cpp | 8 +- .../model/DatasourcePackageIngestState.cpp | 8 +- .../source/model/ErrorCode.cpp | 8 +- .../source/model/InvitationType.cpp | 6 +- .../source/model/MemberDisabledReason.cpp | 6 +- .../source/model/MemberStatus.cpp | 12 +- .../source/DeviceFarmErrors.cpp | 26 +- .../source/model/ArtifactCategory.cpp | 8 +- .../source/model/ArtifactType.cpp | 58 +- .../source/model/BillingMethod.cpp | 6 +- .../source/model/CurrencyCode.cpp | 4 +- .../source/model/DeviceAttribute.cpp | 28 +- .../source/model/DeviceAvailability.cpp | 10 +- .../source/model/DeviceFilterAttribute.cpp | 26 +- .../source/model/DeviceFormFactor.cpp | 6 +- .../source/model/DevicePlatform.cpp | 6 +- .../source/model/DevicePoolType.cpp | 6 +- .../source/model/ExecutionResult.cpp | 16 +- .../source/model/ExecutionResultCode.cpp | 6 +- .../source/model/ExecutionStatus.cpp | 20 +- .../source/model/InstanceStatus.cpp | 10 +- .../source/model/InteractionMode.cpp | 8 +- .../source/model/NetworkProfileType.cpp | 6 +- .../source/model/OfferingTransactionType.cpp | 8 +- .../source/model/OfferingType.cpp | 4 +- .../source/model/RecurringChargeFrequency.cpp | 4 +- .../source/model/RuleOperator.cpp | 18 +- .../source/model/SampleType.cpp | 36 +- .../model/TestGridSessionArtifactCategory.cpp | 6 +- .../model/TestGridSessionArtifactType.cpp | 8 +- .../source/model/TestGridSessionStatus.cpp | 8 +- .../source/model/TestType.cpp | 44 +- .../source/model/UploadCategory.cpp | 6 +- .../source/model/UploadStatus.cpp | 10 +- .../source/model/UploadType.cpp | 66 +- .../source/DevOpsGuruErrors.cpp | 8 +- .../source/model/AnomalySeverity.cpp | 8 +- .../source/model/AnomalyStatus.cpp | 6 +- .../source/model/AnomalyType.cpp | 6 +- .../model/CloudWatchMetricDataStatusCode.cpp | 8 +- .../source/model/CloudWatchMetricsStat.cpp | 18 +- .../CostEstimationServiceResourceState.cpp | 6 +- .../source/model/CostEstimationStatus.cpp | 6 +- .../source/model/EventClass.cpp | 12 +- .../source/model/EventDataSource.cpp | 6 +- .../source/model/EventSourceOptInStatus.cpp | 6 +- .../source/model/InsightFeedbackOption.cpp | 12 +- .../source/model/InsightSeverity.cpp | 8 +- .../source/model/InsightStatus.cpp | 6 +- .../source/model/InsightType.cpp | 6 +- .../source/model/Locale.cpp | 24 +- .../source/model/LogAnomalyType.cpp | 18 +- .../source/model/NotificationMessageType.cpp | 12 +- .../source/model/OptInStatus.cpp | 6 +- .../OrganizationResourceCollectionType.cpp | 10 +- .../source/model/ResourceCollectionType.cpp | 8 +- .../source/model/ResourcePermission.cpp | 6 +- .../source/model/ResourceTypeFilter.cpp | 56 +- .../source/model/ServerSideEncryptionType.cpp | 6 +- .../source/model/ServiceName.cpp | 52 +- .../model/UpdateResourceCollectionAction.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 14 +- .../source/DirectConnectErrors.cpp | 10 +- .../source/model/AddressFamily.cpp | 6 +- .../source/model/BGPPeerState.cpp | 12 +- .../source/model/BGPStatus.cpp | 8 +- .../source/model/ConnectionState.cpp | 20 +- ...ConnectGatewayAssociationProposalState.cpp | 8 +- .../DirectConnectGatewayAssociationState.cpp | 12 +- .../DirectConnectGatewayAttachmentState.cpp | 10 +- .../DirectConnectGatewayAttachmentType.cpp | 6 +- .../model/DirectConnectGatewayState.cpp | 10 +- .../source/model/GatewayType.cpp | 6 +- .../source/model/HasLogicalRedundancy.cpp | 8 +- .../source/model/InterconnectState.cpp | 16 +- .../source/model/LagState.cpp | 16 +- .../source/model/LoaContentType.cpp | 4 +- .../source/model/NniPartnerType.cpp | 8 +- .../source/model/VirtualInterfaceState.cpp | 20 +- .../ApplicationDiscoveryServiceErrors.cpp | 16 +- .../source/model/AgentStatus.cpp | 14 +- .../model/BatchDeleteImportDataErrorCode.cpp | 8 +- .../source/model/ConfigurationItemType.cpp | 10 +- .../source/model/ContinuousExportStatus.cpp | 16 +- .../source/model/DataSource.cpp | 4 +- .../source/model/ExportDataFormat.cpp | 4 +- .../source/model/ExportStatus.cpp | 8 +- .../source/model/ImportStatus.cpp | 24 +- .../source/model/ImportTaskFilterName.cpp | 8 +- .../source/model/OfferingClass.cpp | 6 +- .../source/model/OrderString.cpp | 6 +- .../source/model/PurchasingOption.cpp | 8 +- .../source/model/Tenancy.cpp | 6 +- .../source/model/TermLength.cpp | 6 +- .../src/aws-cpp-sdk-dlm/source/DLMErrors.cpp | 8 +- .../source/model/EventSourceValues.cpp | 4 +- .../source/model/EventTypeValues.cpp | 4 +- .../model/GettablePolicyStateValues.cpp | 8 +- .../source/model/IntervalUnitValues.cpp | 4 +- .../source/model/LocationValues.cpp | 6 +- .../source/model/PolicyTypeValues.cpp | 8 +- .../source/model/ResourceLocationValues.cpp | 6 +- .../source/model/ResourceTypeValues.cpp | 6 +- .../model/RetentionIntervalUnitValues.cpp | 10 +- .../model/SettablePolicyStateValues.cpp | 6 +- .../source/DatabaseMigrationServiceErrors.cpp | 52 +- .../source/model/AssessmentReportType.cpp | 6 +- .../source/model/AuthMechanismValue.cpp | 8 +- .../source/model/AuthTypeValue.cpp | 6 +- .../source/model/CannedAclForObjectsValue.cpp | 18 +- .../source/model/CharLengthSemantics.cpp | 8 +- .../source/model/CollectorStatus.cpp | 6 +- .../source/model/CompressionTypeValue.cpp | 6 +- .../source/model/DataFormatValue.cpp | 6 +- .../source/model/DatabaseMode.cpp | 6 +- .../model/DatePartitionDelimiterValue.cpp | 10 +- .../model/DatePartitionSequenceValue.cpp | 12 +- .../source/model/DmsSslModeValue.cpp | 10 +- .../source/model/EncodingTypeValue.cpp | 8 +- .../source/model/EncryptionModeValue.cpp | 6 +- .../source/model/EndpointSettingTypeValue.cpp | 10 +- .../source/model/KafkaSaslMechanism.cpp | 6 +- .../source/model/KafkaSecurityProtocol.cpp | 10 +- ...afkaSslEndpointIdentificationAlgorithm.cpp | 6 +- .../source/model/LongVarcharMappingType.cpp | 8 +- .../source/model/MessageFormatValue.cpp | 6 +- .../source/model/MigrationTypeValue.cpp | 8 +- .../source/model/NestingLevelValue.cpp | 6 +- .../source/model/OriginTypeValue.cpp | 6 +- .../source/model/ParquetVersionValue.cpp | 6 +- .../source/model/PluginNameValue.cpp | 8 +- .../source/model/RedisAuthTypeValue.cpp | 8 +- .../model/RefreshSchemasStatusTypeValue.cpp | 8 +- .../source/model/ReleaseStatusValues.cpp | 6 +- .../source/model/ReloadOptionValue.cpp | 6 +- .../model/ReplicationEndpointTypeValue.cpp | 6 +- .../source/model/SafeguardPolicy.cpp | 8 +- .../source/model/SourceType.cpp | 4 +- .../source/model/SslSecurityProtocolValue.cpp | 6 +- .../model/StartReplicationTaskTypeValue.cpp | 8 +- .../source/model/TargetDbType.cpp | 6 +- .../source/model/TlogAccessMode.cpp | 10 +- .../source/model/VersionStatus.cpp | 8 +- .../source/DocDBElasticErrors.cpp | 8 +- .../source/model/Auth.cpp | 6 +- .../source/model/Status.cpp | 20 +- .../model/ValidationExceptionReason.cpp | 10 +- .../aws-cpp-sdk-docdb/source/DocDBErrors.cpp | 116 +- .../source/model/ApplyMethod.cpp | 6 +- .../source/model/SourceType.cpp | 14 +- .../src/aws-cpp-sdk-drs/source/DrsErrors.cpp | 10 +- .../model/DataReplicationErrorString.cpp | 30 +- .../DataReplicationInitiationStepName.cpp | 24 +- .../DataReplicationInitiationStepStatus.cpp | 12 +- .../source/model/DataReplicationState.cpp | 22 +- .../source/model/EC2InstanceState.cpp | 16 +- .../source/model/ExtensionStatus.cpp | 8 +- .../source/model/FailbackLaunchType.cpp | 6 +- .../source/model/FailbackReplicationError.cpp | 44 +- .../source/model/FailbackState.cpp | 16 +- .../source/model/InitiatedBy.cpp | 20 +- .../source/model/JobLogEvent.cpp | 56 +- .../source/model/JobStatus.cpp | 8 +- .../aws-cpp-sdk-drs/source/model/JobType.cpp | 8 +- .../source/model/LastLaunchResult.cpp | 10 +- .../source/model/LastLaunchType.cpp | 6 +- .../source/model/LaunchActionCategory.cpp | 12 +- .../model/LaunchActionParameterType.cpp | 6 +- .../source/model/LaunchActionRunStatus.cpp | 8 +- .../source/model/LaunchActionType.cpp | 6 +- .../source/model/LaunchDisposition.cpp | 6 +- .../source/model/LaunchStatus.cpp | 12 +- .../source/model/OriginEnvironment.cpp | 6 +- .../source/model/PITPolicyRuleUnits.cpp | 8 +- ...tanceDataReplicationInitiationStepName.cpp | 38 +- ...nceDataReplicationInitiationStepStatus.cpp | 12 +- .../RecoveryInstanceDataReplicationState.cpp | 26 +- .../source/model/RecoveryResult.cpp | 16 +- .../source/model/RecoverySnapshotsOrder.cpp | 6 +- ...plicationConfigurationDataPlaneRouting.cpp | 6 +- ...nfigurationDefaultLargeStagingDiskType.cpp | 10 +- .../ReplicationConfigurationEbsEncryption.cpp | 8 +- ...igurationReplicatedDiskStagingDiskType.cpp | 16 +- .../source/model/ReplicationDirection.cpp | 6 +- .../source/model/ReplicationStatus.cpp | 10 +- .../TargetInstanceTypeRightSizingMethod.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/DirectoryServiceErrors.cpp | 74 +- .../source/model/CertificateState.cpp | 14 +- .../source/model/CertificateType.cpp | 6 +- .../model/ClientAuthenticationStatus.cpp | 6 +- .../source/model/ClientAuthenticationType.cpp | 6 +- .../model/DirectoryConfigurationStatus.cpp | 12 +- .../source/model/DirectoryEdition.cpp | 6 +- .../source/model/DirectorySize.cpp | 6 +- .../source/model/DirectoryStage.cpp | 24 +- .../source/model/DirectoryType.cpp | 10 +- .../source/model/DomainControllerStatus.cpp | 16 +- .../source/model/IpRouteStatusMsg.cpp | 14 +- .../source/model/LDAPSStatus.cpp | 10 +- .../aws-cpp-sdk-ds/source/model/LDAPSType.cpp | 4 +- .../aws-cpp-sdk-ds/source/model/OSVersion.cpp | 6 +- .../model/RadiusAuthenticationProtocol.cpp | 10 +- .../source/model/RadiusStatus.cpp | 8 +- .../source/model/RegionType.cpp | 6 +- .../source/model/ReplicationScope.cpp | 4 +- .../source/model/SchemaExtensionStatus.cpp | 20 +- .../source/model/SelectiveAuth.cpp | 6 +- .../source/model/ShareMethod.cpp | 6 +- .../source/model/ShareStatus.cpp | 20 +- .../source/model/SnapshotStatus.cpp | 8 +- .../source/model/SnapshotType.cpp | 6 +- .../source/model/TargetType.cpp | 4 +- .../source/model/TopicStatus.cpp | 10 +- .../source/model/TrustDirection.cpp | 8 +- .../source/model/TrustState.cpp | 24 +- .../aws-cpp-sdk-ds/source/model/TrustType.cpp | 6 +- .../source/model/UpdateStatus.cpp | 8 +- .../source/model/UpdateType.cpp | 4 +- .../source/DynamoDBErrors.cpp | 60 +- .../source/model/AttributeAction.cpp | 8 +- .../source/model/BackupStatus.cpp | 8 +- .../source/model/BackupType.cpp | 8 +- .../source/model/BackupTypeFilter.cpp | 10 +- .../model/BatchStatementErrorCodeEnum.cpp | 24 +- .../source/model/BillingMode.cpp | 6 +- .../source/model/ComparisonOperator.cpp | 28 +- .../source/model/ConditionalOperator.cpp | 6 +- .../source/model/ContinuousBackupsStatus.cpp | 6 +- .../model/ContributorInsightsAction.cpp | 6 +- .../model/ContributorInsightsStatus.cpp | 12 +- .../source/model/DestinationStatus.cpp | 12 +- .../source/model/ExportFormat.cpp | 6 +- .../source/model/ExportStatus.cpp | 8 +- .../source/model/ExportType.cpp | 6 +- .../source/model/ExportViewType.cpp | 6 +- .../source/model/GlobalTableStatus.cpp | 10 +- .../source/model/ImportStatus.cpp | 12 +- .../source/model/IndexStatus.cpp | 10 +- .../source/model/InputCompressionType.cpp | 8 +- .../source/model/InputFormat.cpp | 8 +- .../source/model/KeyType.cpp | 6 +- .../model/PointInTimeRecoveryStatus.cpp | 6 +- .../source/model/ProjectionType.cpp | 8 +- .../source/model/ReplicaStatus.cpp | 16 +- .../source/model/ReturnConsumedCapacity.cpp | 8 +- .../model/ReturnItemCollectionMetrics.cpp | 6 +- .../source/model/ReturnValue.cpp | 12 +- .../ReturnValuesOnConditionCheckFailure.cpp | 6 +- .../source/model/S3SseAlgorithm.cpp | 6 +- .../source/model/SSEStatus.cpp | 12 +- .../source/model/SSEType.cpp | 6 +- .../source/model/ScalarAttributeType.cpp | 8 +- .../source/model/Select.cpp | 10 +- .../source/model/StreamViewType.cpp | 10 +- .../source/model/TableClass.cpp | 6 +- .../source/model/TableStatus.cpp | 16 +- .../source/model/TimeToLiveStatus.cpp | 10 +- .../source/DynamoDBStreamsErrors.cpp | 8 +- .../source/model/KeyType.cpp | 6 +- .../source/model/OperationType.cpp | 8 +- .../source/model/ShardIteratorType.cpp | 10 +- .../source/model/StreamStatus.cpp | 10 +- .../source/model/StreamViewType.cpp | 10 +- .../src/aws-cpp-sdk-ebs/source/EBSErrors.cpp | 10 +- .../model/AccessDeniedExceptionReason.cpp | 6 +- .../model/ChecksumAggregationMethod.cpp | 4 +- .../source/model/ChecksumAlgorithm.cpp | 4 +- .../model/RequestThrottledExceptionReason.cpp | 8 +- .../model/ResourceNotFoundExceptionReason.cpp | 10 +- .../aws-cpp-sdk-ebs/source/model/SSEType.cpp | 8 +- .../ServiceQuotaExceededExceptionReason.cpp | 4 +- .../aws-cpp-sdk-ebs/source/model/Status.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 32 +- .../source/EC2InstanceConnectErrors.cpp | 22 +- .../src/aws-cpp-sdk-ec2/source/EC2Client.cpp | 496 +++--- .../src/aws-cpp-sdk-ec2/source/EC2Client1.cpp | 780 ++++----- .../src/aws-cpp-sdk-ec2/source/EC2Client2.cpp | 512 +++--- .../src/aws-cpp-sdk-ec2/source/EC2Client3.cpp | 462 ++--- .../src/aws-cpp-sdk-ec2/source/EC2Client4.cpp | 454 ++--- .../src/aws-cpp-sdk-ec2/source/EC2Client5.cpp | 684 ++++---- .../src/aws-cpp-sdk-ec2/source/EC2Errors.cpp | 352 ++-- .../source/model/AcceleratorManufacturer.cpp | 10 +- .../source/model/AcceleratorName.cpp | 20 +- .../source/model/AcceleratorType.cpp | 8 +- .../source/model/AccountAttributeName.cpp | 6 +- .../source/model/ActivityStatus.cpp | 10 +- .../source/model/AddressAttributeName.cpp | 4 +- .../source/model/AddressFamily.cpp | 6 +- .../source/model/AddressTransferStatus.cpp | 8 +- .../aws-cpp-sdk-ec2/source/model/Affinity.cpp | 6 +- .../source/model/AllocationState.cpp | 14 +- .../source/model/AllocationStrategy.cpp | 12 +- .../source/model/AllocationType.cpp | 4 +- .../model/AllowsMultipleInstanceTypes.cpp | 6 +- .../source/model/AmdSevSnpSpecification.cpp | 6 +- .../source/model/AnalysisStatus.cpp | 8 +- .../model/ApplianceModeSupportValue.cpp | 6 +- .../source/model/ArchitectureType.cpp | 12 +- .../source/model/ArchitectureValues.cpp | 12 +- .../source/model/AssociatedNetworkType.cpp | 4 +- .../source/model/AssociationStatusCode.cpp | 12 +- .../source/model/AttachmentStatus.cpp | 10 +- .../AutoAcceptSharedAssociationsValue.cpp | 6 +- .../AutoAcceptSharedAttachmentsValue.cpp | 6 +- .../source/model/AutoPlacement.cpp | 6 +- .../model/AvailabilityZoneOptInStatus.cpp | 8 +- .../source/model/AvailabilityZoneState.cpp | 10 +- .../source/model/BareMetal.cpp | 8 +- .../source/model/BatchState.cpp | 16 +- .../source/model/BgpStatus.cpp | 6 +- .../source/model/BootModeType.cpp | 6 +- .../source/model/BootModeValues.cpp | 8 +- .../source/model/BundleTaskState.cpp | 16 +- .../source/model/BurstablePerformance.cpp | 8 +- .../source/model/ByoipCidrState.cpp | 18 +- .../source/model/CancelBatchErrorCode.cpp | 10 +- .../model/CancelSpotInstanceRequestState.cpp | 12 +- .../model/CapacityReservationFleetState.cpp | 20 +- .../CapacityReservationInstancePlatform.cpp | 38 +- .../model/CapacityReservationPreference.cpp | 6 +- .../source/model/CapacityReservationState.cpp | 12 +- .../model/CapacityReservationTenancy.cpp | 6 +- .../source/model/CarrierGatewayState.cpp | 10 +- ...entCertificateRevocationListStatusCode.cpp | 6 +- .../model/ClientVpnAuthenticationType.cpp | 8 +- .../ClientVpnAuthorizationRuleStatusCode.cpp | 10 +- .../model/ClientVpnConnectionStatusCode.cpp | 10 +- .../ClientVpnEndpointAttributeStatusCode.cpp | 6 +- .../model/ClientVpnEndpointStatusCode.cpp | 10 +- .../source/model/ClientVpnRouteStatusCode.cpp | 10 +- .../model/ConnectionNotificationState.cpp | 6 +- .../model/ConnectionNotificationType.cpp | 4 +- .../source/model/ConnectivityType.cpp | 6 +- .../source/model/ContainerFormat.cpp | 4 +- .../source/model/ConversionTaskState.cpp | 10 +- .../source/model/CopyTagsFromSource.cpp | 4 +- .../source/model/CpuManufacturer.cpp | 8 +- .../source/model/CurrencyCodeValues.cpp | 4 +- .../model/DatafeedSubscriptionState.cpp | 6 +- .../DefaultRouteTableAssociationValue.cpp | 6 +- .../DefaultRouteTablePropagationValue.cpp | 6 +- .../model/DefaultTargetCapacityType.cpp | 6 +- .../source/model/DeleteFleetErrorCode.cpp | 10 +- ...DeleteQueuedReservedInstancesErrorCode.cpp | 8 +- .../source/model/DestinationFileFormat.cpp | 6 +- .../source/model/DeviceTrustProviderType.cpp | 6 +- .../source/model/DeviceType.cpp | 6 +- .../source/model/DiskImageFormat.cpp | 8 +- .../aws-cpp-sdk-ec2/source/model/DiskType.cpp | 6 +- .../source/model/DnsNameState.cpp | 8 +- .../source/model/DnsRecordIpType.cpp | 10 +- .../source/model/DnsSupportValue.cpp | 6 +- .../source/model/DomainType.cpp | 6 +- .../source/model/DynamicRoutingValue.cpp | 6 +- .../source/model/EbsEncryptionSupport.cpp | 6 +- .../source/model/EbsNvmeSupport.cpp | 8 +- .../source/model/EbsOptimizedSupport.cpp | 8 +- .../model/Ec2InstanceConnectEndpointState.cpp | 14 +- .../source/model/ElasticGpuState.cpp | 4 +- .../source/model/ElasticGpuStatus.cpp | 6 +- .../source/model/EnaSupport.cpp | 8 +- .../source/model/EndDateType.cpp | 6 +- .../source/model/EphemeralNvmeSupport.cpp | 8 +- .../source/model/EventCode.cpp | 12 +- .../source/model/EventType.cpp | 10 +- .../model/ExcessCapacityTerminationPolicy.cpp | 6 +- .../source/model/ExportEnvironment.cpp | 8 +- .../source/model/ExportTaskState.cpp | 10 +- .../source/model/FastLaunchResourceType.cpp | 4 +- .../source/model/FastLaunchStateCode.cpp | 14 +- .../model/FastSnapshotRestoreStateCode.cpp | 12 +- .../source/model/FindingsFound.cpp | 8 +- .../source/model/FleetActivityStatus.cpp | 10 +- .../model/FleetCapacityReservationTenancy.cpp | 4 +- .../FleetCapacityReservationUsageStrategy.cpp | 4 +- .../source/model/FleetEventType.cpp | 8 +- .../FleetExcessCapacityTerminationPolicy.cpp | 6 +- .../model/FleetInstanceMatchCriteria.cpp | 4 +- .../model/FleetOnDemandAllocationStrategy.cpp | 6 +- .../source/model/FleetReplacementStrategy.cpp | 6 +- .../source/model/FleetStateCode.cpp | 16 +- .../source/model/FleetType.cpp | 8 +- .../source/model/FlowLogsResourceType.cpp | 12 +- .../source/model/FpgaImageAttributeName.cpp | 10 +- .../source/model/FpgaImageStateCode.cpp | 10 +- .../source/model/GatewayAssociationState.cpp | 10 +- .../source/model/GatewayType.cpp | 4 +- .../source/model/HostMaintenance.cpp | 6 +- .../source/model/HostRecovery.cpp | 6 +- .../source/model/HostTenancy.cpp | 6 +- .../source/model/HostnameType.cpp | 6 +- .../source/model/HttpTokensState.cpp | 6 +- .../source/model/HypervisorType.cpp | 6 +- .../IamInstanceProfileAssociationState.cpp | 10 +- .../source/model/Igmpv2SupportValue.cpp | 6 +- .../source/model/ImageAttributeName.cpp | 26 +- .../ImageBlockPublicAccessDisabledState.cpp | 4 +- .../ImageBlockPublicAccessEnabledState.cpp | 4 +- .../source/model/ImageState.cpp | 18 +- .../source/model/ImageTypeValues.cpp | 8 +- .../source/model/ImdsSupportValues.cpp | 4 +- .../source/model/InstanceAttributeName.cpp | 34 +- .../model/InstanceAutoRecoveryState.cpp | 6 +- .../source/model/InstanceBootModeValues.cpp | 6 +- .../source/model/InstanceEventWindowState.cpp | 10 +- .../source/model/InstanceGeneration.cpp | 6 +- .../source/model/InstanceHealthStatus.cpp | 6 +- .../model/InstanceInterruptionBehavior.cpp | 8 +- .../source/model/InstanceLifecycle.cpp | 6 +- .../source/model/InstanceLifecycleType.cpp | 6 +- .../source/model/InstanceMatchCriteria.cpp | 6 +- .../model/InstanceMetadataEndpointState.cpp | 6 +- .../model/InstanceMetadataOptionsState.cpp | 6 +- .../model/InstanceMetadataProtocolState.cpp | 6 +- .../model/InstanceMetadataTagsState.cpp | 6 +- .../source/model/InstanceStateName.cpp | 14 +- .../InstanceStorageEncryptionSupport.cpp | 6 +- .../source/model/InstanceType.cpp | 1514 ++++++++--------- .../source/model/InstanceTypeHypervisor.cpp | 6 +- .../source/model/InterfacePermissionType.cpp | 6 +- .../source/model/InterfaceProtocolType.cpp | 6 +- .../source/model/IpAddressType.cpp | 8 +- .../model/IpamAddressHistoryResourceType.cpp | 12 +- .../IpamAssociatedResourceDiscoveryStatus.cpp | 6 +- .../source/model/IpamComplianceStatus.cpp | 10 +- .../source/model/IpamDiscoveryFailureCode.cpp | 8 +- .../source/model/IpamManagementState.cpp | 8 +- .../source/model/IpamOverlapStatus.cpp | 8 +- .../model/IpamPoolAllocationResourceType.cpp | 10 +- .../source/model/IpamPoolAwsService.cpp | 4 +- .../source/model/IpamPoolCidrFailureCode.cpp | 6 +- .../source/model/IpamPoolCidrState.cpp | 18 +- .../source/model/IpamPoolPublicIpSource.cpp | 6 +- .../source/model/IpamPoolState.cpp | 26 +- .../IpamResourceDiscoveryAssociationState.cpp | 20 +- .../model/IpamResourceDiscoveryState.cpp | 26 +- .../source/model/IpamResourceType.cpp | 12 +- .../source/model/IpamScopeState.cpp | 26 +- .../source/model/IpamScopeType.cpp | 6 +- .../source/model/IpamState.cpp | 26 +- .../source/model/Ipv6SupportValue.cpp | 6 +- .../source/model/KeyFormat.cpp | 6 +- .../aws-cpp-sdk-ec2/source/model/KeyType.cpp | 6 +- .../model/LaunchTemplateAutoRecoveryState.cpp | 6 +- .../source/model/LaunchTemplateErrorCode.cpp | 14 +- .../model/LaunchTemplateHttpTokensState.cpp | 6 +- ...hTemplateInstanceMetadataEndpointState.cpp | 6 +- ...chTemplateInstanceMetadataOptionsState.cpp | 6 +- ...chTemplateInstanceMetadataProtocolIpv6.cpp | 6 +- ...aunchTemplateInstanceMetadataTagsState.cpp | 6 +- .../source/model/ListingState.cpp | 10 +- .../source/model/ListingStatus.cpp | 10 +- .../source/model/LocalGatewayRouteState.cpp | 12 +- .../model/LocalGatewayRouteTableMode.cpp | 6 +- .../source/model/LocalGatewayRouteType.cpp | 6 +- .../source/model/LocalStorage.cpp | 8 +- .../source/model/LocalStorageType.cpp | 6 +- .../source/model/LocationType.cpp | 10 +- .../source/model/LogDestinationType.cpp | 8 +- .../source/model/MarketType.cpp | 4 +- .../source/model/MembershipType.cpp | 6 +- .../source/model/MetricType.cpp | 4 +- .../ModifyAvailabilityZoneOptInStatus.cpp | 6 +- .../source/model/MonitoringState.cpp | 10 +- .../source/model/MoveStatus.cpp | 6 +- .../source/model/MulticastSupportValue.cpp | 6 +- .../source/model/NatGatewayAddressStatus.cpp | 14 +- .../source/model/NatGatewayState.cpp | 12 +- .../model/NetworkInterfaceAttribute.cpp | 10 +- .../model/NetworkInterfaceCreationType.cpp | 8 +- .../NetworkInterfacePermissionStateCode.cpp | 10 +- .../source/model/NetworkInterfaceStatus.cpp | 12 +- .../source/model/NetworkInterfaceType.cpp | 36 +- .../source/model/NitroEnclavesSupport.cpp | 6 +- .../source/model/NitroTpmSupport.cpp | 6 +- .../source/model/OfferingClassType.cpp | 6 +- .../source/model/OfferingTypeValues.cpp | 14 +- .../model/OnDemandAllocationStrategy.cpp | 6 +- .../source/model/OperationType.cpp | 6 +- .../source/model/PartitionLoadFrequency.cpp | 10 +- .../source/model/PayerResponsibility.cpp | 4 +- .../source/model/PaymentOption.cpp | 8 +- .../source/model/PeriodType.cpp | 14 +- .../source/model/PermissionGroup.cpp | 4 +- .../source/model/PlacementGroupState.cpp | 10 +- .../source/model/PlacementGroupStrategy.cpp | 8 +- .../source/model/PlacementStrategy.cpp | 8 +- .../source/model/PlatformValues.cpp | 4 +- .../source/model/PrefixListState.cpp | 26 +- .../source/model/PrincipalType.cpp | 14 +- .../source/model/ProductCodeValues.cpp | 6 +- .../aws-cpp-sdk-ec2/source/model/Protocol.cpp | 6 +- .../source/model/ProtocolValue.cpp | 4 +- .../source/model/RIProductDescription.cpp | 10 +- .../source/model/RecurringChargeFrequency.cpp | 4 +- .../model/ReplaceRootVolumeTaskState.cpp | 14 +- .../source/model/ReplacementStrategy.cpp | 6 +- .../model/ReportInstanceReasonCodes.cpp | 20 +- .../source/model/ReportStatusType.cpp | 6 +- .../source/model/ReservationState.cpp | 10 +- .../source/model/ReservedInstanceState.cpp | 14 +- .../model/ResetFpgaImageAttributeName.cpp | 4 +- .../source/model/ResetImageAttributeName.cpp | 4 +- .../source/model/ResourceType.cpp | 174 +- .../source/model/RootDeviceType.cpp | 6 +- .../source/model/RouteOrigin.cpp | 8 +- .../source/model/RouteState.cpp | 6 +- .../model/RouteTableAssociationStateCode.cpp | 12 +- .../source/model/RuleAction.cpp | 6 +- .../aws-cpp-sdk-ec2/source/model/SSEType.cpp | 8 +- .../aws-cpp-sdk-ec2/source/model/Scope.cpp | 6 +- .../source/model/SelfServicePortal.cpp | 6 +- .../source/model/ServiceConnectivityType.cpp | 6 +- .../source/model/ServiceState.cpp | 12 +- .../source/model/ServiceType.cpp | 8 +- .../source/model/ShutdownBehavior.cpp | 6 +- .../source/model/SnapshotAttributeName.cpp | 6 +- .../source/model/SnapshotState.cpp | 12 +- .../source/model/SpotAllocationStrategy.cpp | 12 +- .../SpotInstanceInterruptionBehavior.cpp | 8 +- .../source/model/SpotInstanceState.cpp | 14 +- .../source/model/SpotInstanceType.cpp | 6 +- .../source/model/SpreadLevel.cpp | 6 +- .../aws-cpp-sdk-ec2/source/model/State.cpp | 18 +- .../model/StaticSourcesSupportValue.cpp | 6 +- .../source/model/StatisticType.cpp | 4 +- .../aws-cpp-sdk-ec2/source/model/Status.cpp | 8 +- .../source/model/StatusName.cpp | 4 +- .../source/model/StatusType.cpp | 10 +- .../source/model/StorageTier.cpp | 6 +- .../source/model/SubnetCidrBlockStateCode.cpp | 14 +- .../model/SubnetCidrReservationType.cpp | 6 +- .../source/model/SubnetState.cpp | 6 +- .../source/model/SummaryStatus.cpp | 12 +- .../SupportedAdditionalProcessorFeature.cpp | 4 +- .../source/model/TargetCapacityUnitType.cpp | 8 +- .../source/model/TargetStorageTier.cpp | 4 +- .../source/model/TelemetryStatus.cpp | 6 +- .../aws-cpp-sdk-ec2/source/model/Tenancy.cpp | 8 +- .../source/model/TieringOperationStatus.cpp | 20 +- .../source/model/TpmSupportValues.cpp | 4 +- .../source/model/TrafficDirection.cpp | 6 +- .../model/TrafficMirrorFilterRuleField.cpp | 10 +- .../model/TrafficMirrorNetworkService.cpp | 4 +- .../source/model/TrafficMirrorRuleAction.cpp | 6 +- .../model/TrafficMirrorSessionField.cpp | 8 +- .../source/model/TrafficMirrorTargetType.cpp | 8 +- .../source/model/TrafficType.cpp | 8 +- .../model/TransitGatewayAssociationState.cpp | 10 +- .../TransitGatewayAttachmentResourceType.cpp | 14 +- .../model/TransitGatewayAttachmentState.cpp | 28 +- .../model/TransitGatewayConnectPeerState.cpp | 10 +- ...GatewayMulitcastDomainAssociationState.cpp | 16 +- .../TransitGatewayMulticastDomainState.cpp | 10 +- .../model/TransitGatewayPolicyTableState.cpp | 10 +- ...TransitGatewayPrefixListReferenceState.cpp | 10 +- .../model/TransitGatewayPropagationState.cpp | 10 +- .../source/model/TransitGatewayRouteState.cpp | 12 +- ...GatewayRouteTableAnnouncementDirection.cpp | 6 +- ...nsitGatewayRouteTableAnnouncementState.cpp | 14 +- .../model/TransitGatewayRouteTableState.cpp | 10 +- .../source/model/TransitGatewayRouteType.cpp | 6 +- .../source/model/TransitGatewayState.cpp | 12 +- .../source/model/TransportProtocol.cpp | 6 +- .../source/model/TrustProviderType.cpp | 6 +- .../source/model/TunnelInsideIpVersion.cpp | 6 +- .../UnlimitedSupportedInstanceFamily.cpp | 10 +- ...ulInstanceCreditSpecificationErrorCode.cpp | 10 +- .../source/model/UsageClassType.cpp | 6 +- .../source/model/UserTrustProviderType.cpp | 6 +- .../VerifiedAccessEndpointAttachmentType.cpp | 4 +- .../model/VerifiedAccessEndpointProtocol.cpp | 6 +- .../VerifiedAccessEndpointStatusCode.cpp | 12 +- .../model/VerifiedAccessEndpointType.cpp | 6 +- .../VerifiedAccessLogDeliveryStatusCode.cpp | 6 +- .../source/model/VirtualizationType.cpp | 6 +- .../source/model/VolumeAttachmentState.cpp | 12 +- .../source/model/VolumeAttributeName.cpp | 6 +- .../source/model/VolumeModificationState.cpp | 10 +- .../source/model/VolumeState.cpp | 14 +- .../source/model/VolumeStatusInfoStatus.cpp | 8 +- .../source/model/VolumeStatusName.cpp | 6 +- .../source/model/VolumeType.cpp | 16 +- .../source/model/VpcAttributeName.cpp | 8 +- .../source/model/VpcCidrBlockStateCode.cpp | 14 +- .../source/model/VpcEndpointType.cpp | 8 +- .../VpcPeeringConnectionStateReasonCode.cpp | 20 +- .../aws-cpp-sdk-ec2/source/model/VpcState.cpp | 6 +- .../source/model/VpcTenancy.cpp | 4 +- .../source/model/VpnEcmpSupportValue.cpp | 6 +- .../source/model/VpnProtocol.cpp | 4 +- .../aws-cpp-sdk-ec2/source/model/VpnState.cpp | 10 +- .../source/model/VpnStaticRouteSource.cpp | 4 +- .../aws-cpp-sdk-ec2/source/model/WeekDay.cpp | 16 +- .../source/ECRPublicErrors.cpp | 50 +- .../source/model/ImageFailureCode.cpp | 16 +- .../source/model/LayerAvailability.cpp | 6 +- .../source/model/LayerFailureCode.cpp | 6 +- .../source/model/RegistryAliasStatus.cpp | 8 +- .../src/aws-cpp-sdk-ecr/source/ECRErrors.cpp | 66 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/FindingSeverity.cpp | 14 +- .../source/model/ImageActionType.cpp | 4 +- .../source/model/ImageFailureCode.cpp | 16 +- .../source/model/ImageTagMutability.cpp | 6 +- .../source/model/LayerAvailability.cpp | 6 +- .../source/model/LayerFailureCode.cpp | 6 +- .../model/LifecyclePolicyPreviewStatus.cpp | 10 +- .../source/model/ReplicationStatus.cpp | 8 +- .../source/model/RepositoryFilterType.cpp | 4 +- .../source/model/ScanFrequency.cpp | 8 +- .../source/model/ScanStatus.cpp | 18 +- .../aws-cpp-sdk-ecr/source/model/ScanType.cpp | 6 +- .../ScanningConfigurationFailureCode.cpp | 4 +- .../model/ScanningRepositoryFilterType.cpp | 4 +- .../source/model/TagStatus.cpp | 8 +- .../src/aws-cpp-sdk-ecs/source/ECSErrors.cpp | 48 +- .../source/model/AgentUpdateStatus.cpp | 14 +- .../source/model/ApplicationProtocol.cpp | 8 +- .../source/model/AssignPublicIp.cpp | 6 +- .../source/model/CPUArchitecture.cpp | 6 +- .../source/model/CapacityProviderField.cpp | 4 +- .../source/model/CapacityProviderStatus.cpp | 6 +- .../model/CapacityProviderUpdateStatus.cpp | 14 +- .../source/model/ClusterField.cpp | 12 +- .../source/model/ClusterSettingName.cpp | 4 +- .../source/model/Compatibility.cpp | 8 +- .../source/model/Connectivity.cpp | 6 +- .../source/model/ContainerCondition.cpp | 10 +- .../source/model/ContainerInstanceField.cpp | 6 +- .../source/model/ContainerInstanceStatus.cpp | 12 +- .../source/model/DeploymentControllerType.cpp | 8 +- .../source/model/DeploymentRolloutState.cpp | 8 +- .../source/model/DesiredStatus.cpp | 8 +- .../source/model/DeviceCgroupPermission.cpp | 8 +- .../model/EFSAuthorizationConfigIAM.cpp | 6 +- .../source/model/EFSTransitEncryption.cpp | 6 +- .../source/model/EnvironmentFileType.cpp | 4 +- .../source/model/ExecuteCommandLogging.cpp | 8 +- .../model/FirelensConfigurationType.cpp | 6 +- .../source/model/HealthStatus.cpp | 8 +- .../source/model/InstanceHealthCheckState.cpp | 10 +- .../source/model/InstanceHealthCheckType.cpp | 4 +- .../aws-cpp-sdk-ecs/source/model/IpcMode.cpp | 8 +- .../source/model/LaunchType.cpp | 8 +- .../source/model/LogDriver.cpp | 18 +- .../source/model/ManagedAgentName.cpp | 4 +- .../source/model/ManagedScalingStatus.cpp | 6 +- .../model/ManagedTerminationProtection.cpp | 6 +- .../source/model/NetworkMode.cpp | 10 +- .../aws-cpp-sdk-ecs/source/model/OSFamily.cpp | 18 +- .../aws-cpp-sdk-ecs/source/model/PidMode.cpp | 6 +- .../source/model/PlacementConstraintType.cpp | 6 +- .../source/model/PlacementStrategyType.cpp | 8 +- .../source/model/PlatformDeviceType.cpp | 4 +- .../source/model/PropagateTags.cpp | 8 +- .../source/model/ProxyConfigurationType.cpp | 4 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/ScaleUnit.cpp | 4 +- .../source/model/SchedulingStrategy.cpp | 6 +- .../aws-cpp-sdk-ecs/source/model/Scope.cpp | 6 +- .../source/model/ServiceField.cpp | 4 +- .../source/model/SettingName.cpp | 18 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/StabilityStatus.cpp | 6 +- .../source/model/TargetType.cpp | 4 +- .../model/TaskDefinitionFamilyStatus.cpp | 8 +- .../source/model/TaskDefinitionField.cpp | 4 +- .../TaskDefinitionPlacementConstraintType.cpp | 4 +- .../source/model/TaskDefinitionStatus.cpp | 8 +- .../source/model/TaskField.cpp | 4 +- .../source/model/TaskSetField.cpp | 4 +- .../source/model/TaskStopCode.cpp | 14 +- .../source/model/TransportProtocol.cpp | 6 +- .../source/model/UlimitName.cpp | 32 +- .../src/aws-cpp-sdk-eks/source/EKSErrors.cpp | 22 +- .../aws-cpp-sdk-eks/source/model/AMITypes.cpp | 26 +- .../source/model/AddonIssueCode.cpp | 18 +- .../source/model/AddonStatus.cpp | 18 +- .../source/model/CapacityTypes.cpp | 6 +- .../source/model/ClusterIssueCode.cpp | 14 +- .../source/model/ClusterStatus.cpp | 14 +- .../source/model/ConfigStatus.cpp | 8 +- .../source/model/ConnectorConfigProvider.cpp | 20 +- .../source/model/ErrorCode.cpp | 36 +- .../source/model/FargateProfileStatus.cpp | 12 +- .../aws-cpp-sdk-eks/source/model/IpFamily.cpp | 6 +- .../aws-cpp-sdk-eks/source/model/LogType.cpp | 12 +- .../source/model/NodegroupIssueCode.cpp | 68 +- .../source/model/NodegroupStatus.cpp | 16 +- .../source/model/ResolveConflicts.cpp | 8 +- .../source/model/TaintEffect.cpp | 8 +- .../source/model/UpdateParamType.cpp | 48 +- .../source/model/UpdateStatus.cpp | 10 +- .../source/model/UpdateType.cpp | 18 +- .../source/ElasticInferenceErrors.cpp | 6 +- .../source/model/LocationType.cpp | 8 +- .../source/ElastiCacheErrors.cpp | 132 +- .../source/model/AZMode.cpp | 6 +- .../source/model/AuthTokenUpdateStatus.cpp | 6 +- .../model/AuthTokenUpdateStrategyType.cpp | 8 +- .../source/model/AuthenticationType.cpp | 8 +- .../source/model/AutomaticFailoverStatus.cpp | 10 +- .../source/model/ChangeType.cpp | 6 +- .../source/model/ClusterMode.cpp | 8 +- .../source/model/DataTieringStatus.cpp | 6 +- .../source/model/DestinationType.cpp | 6 +- .../source/model/InputAuthenticationType.cpp | 8 +- .../source/model/IpDiscovery.cpp | 6 +- .../model/LogDeliveryConfigurationStatus.cpp | 12 +- .../source/model/LogFormat.cpp | 6 +- .../source/model/LogType.cpp | 6 +- .../source/model/MultiAZStatus.cpp | 6 +- .../source/model/NetworkType.cpp | 8 +- .../source/model/NodeUpdateInitiatedBy.cpp | 6 +- .../source/model/NodeUpdateStatus.cpp | 14 +- .../source/model/OutpostMode.cpp | 6 +- .../model/PendingAutomaticFailoverStatus.cpp | 6 +- .../source/model/ServiceUpdateSeverity.cpp | 10 +- .../source/model/ServiceUpdateStatus.cpp | 8 +- .../source/model/ServiceUpdateType.cpp | 4 +- .../source/model/SlaMet.cpp | 8 +- .../source/model/SourceType.cpp | 16 +- .../source/model/TransitEncryptionMode.cpp | 6 +- .../source/model/UpdateActionStatus.cpp | 20 +- .../source/ElasticBeanstalkErrors.cpp | 38 +- .../source/model/ActionHistoryStatus.cpp | 8 +- .../source/model/ActionStatus.cpp | 10 +- .../source/model/ActionType.cpp | 8 +- .../source/model/ApplicationVersionStatus.cpp | 12 +- .../source/model/ComputeType.cpp | 8 +- .../model/ConfigurationDeploymentStatus.cpp | 8 +- .../model/ConfigurationOptionValueType.cpp | 6 +- .../source/model/EnvironmentHealth.cpp | 10 +- .../model/EnvironmentHealthAttribute.cpp | 18 +- .../source/model/EnvironmentHealthStatus.cpp | 20 +- .../source/model/EnvironmentInfoType.cpp | 6 +- .../source/model/EnvironmentStatus.cpp | 18 +- .../source/model/EventSeverity.cpp | 14 +- .../source/model/FailureType.cpp | 16 +- .../source/model/InstancesHealthAttribute.cpp | 24 +- .../source/model/PlatformStatus.cpp | 12 +- .../source/model/SourceRepository.cpp | 6 +- .../source/model/SourceType.cpp | 6 +- .../source/model/ValidationSeverity.cpp | 6 +- .../source/EFSErrors.cpp | 56 +- .../source/model/LifeCycleState.cpp | 14 +- .../source/model/PerformanceMode.cpp | 6 +- .../source/model/ReplicationStatus.cpp | 14 +- .../source/model/Resource.cpp | 6 +- .../source/model/ResourceIdType.cpp | 6 +- .../source/model/Status.cpp | 10 +- .../source/model/ThroughputMode.cpp | 8 +- .../source/model/TransitionToIARules.cpp | 14 +- .../TransitionToPrimaryStorageClassRules.cpp | 4 +- .../source/ElasticLoadBalancingErrors.cpp | 46 +- .../source/ElasticLoadBalancingv2Errors.cpp | 76 +- .../source/model/ActionTypeEnum.cpp | 12 +- ...teCognitoActionConditionalBehaviorEnum.cpp | 8 +- ...icateOidcActionConditionalBehaviorEnum.cpp | 8 +- ...upInboundRulesOnPrivateLinkTrafficEnum.cpp | 6 +- .../source/model/IpAddressType.cpp | 6 +- .../source/model/LoadBalancerSchemeEnum.cpp | 6 +- .../source/model/LoadBalancerStateEnum.cpp | 10 +- .../source/model/LoadBalancerTypeEnum.cpp | 8 +- .../source/model/ProtocolEnum.cpp | 16 +- .../model/RedirectActionStatusCodeEnum.cpp | 6 +- .../model/TargetGroupIpAddressTypeEnum.cpp | 6 +- .../source/model/TargetHealthReasonEnum.cpp | 26 +- .../source/model/TargetHealthStateEnum.cpp | 14 +- .../source/model/TargetTypeEnum.cpp | 10 +- .../source/EMRErrors.cpp | 6 +- .../source/model/ActionOnFailure.cpp | 10 +- .../source/model/AdjustmentType.cpp | 8 +- .../source/model/AuthMode.cpp | 6 +- .../source/model/AutoScalingPolicyState.cpp | 14 +- ...AutoScalingPolicyStateChangeReasonCode.cpp | 8 +- .../source/model/CancelStepsRequestStatus.cpp | 6 +- .../source/model/ClusterState.cpp | 16 +- .../model/ClusterStateChangeReasonCode.cpp | 18 +- .../source/model/ComparisonOperator.cpp | 10 +- .../source/model/ComputeLimitsUnitType.cpp | 8 +- .../source/model/ExecutionEngineType.cpp | 4 +- .../source/model/IdentityType.cpp | 6 +- .../source/model/InstanceCollectionType.cpp | 6 +- .../source/model/InstanceFleetState.cpp | 16 +- .../InstanceFleetStateChangeReasonCode.cpp | 10 +- .../source/model/InstanceFleetType.cpp | 8 +- .../source/model/InstanceGroupState.cpp | 24 +- .../InstanceGroupStateChangeReasonCode.cpp | 10 +- .../source/model/InstanceGroupType.cpp | 8 +- .../source/model/InstanceRoleType.cpp | 8 +- .../source/model/InstanceState.cpp | 12 +- .../model/InstanceStateChangeReasonCode.cpp | 12 +- .../source/model/JobFlowExecutionState.cpp | 18 +- .../source/model/MarketType.cpp | 6 +- .../source/model/NotebookExecutionStatus.cpp | 22 +- .../OnDemandCapacityReservationPreference.cpp | 6 +- ...DemandCapacityReservationUsageStrategy.cpp | 4 +- ...OnDemandProvisioningAllocationStrategy.cpp | 4 +- .../source/model/OutputNotebookFormat.cpp | 4 +- .../source/model/PlacementGroupStrategy.cpp | 10 +- .../source/model/ReconfigurationType.cpp | 6 +- .../source/model/RepoUpgradeOnBoot.cpp | 6 +- .../source/model/ScaleDownBehavior.cpp | 6 +- .../SpotProvisioningAllocationStrategy.cpp | 10 +- .../model/SpotProvisioningTimeoutAction.cpp | 6 +- .../source/model/Statistic.cpp | 12 +- .../source/model/StepCancellationOption.cpp | 6 +- .../source/model/StepExecutionState.cpp | 16 +- .../source/model/StepState.cpp | 16 +- .../model/StepStateChangeReasonCode.cpp | 4 +- .../source/model/Unit.cpp | 56 +- .../source/ElasticTranscoderErrors.cpp | 10 +- .../aws-cpp-sdk-email/source/SESErrors.cpp | 70 +- .../source/model/BehaviorOnMXFailure.cpp | 6 +- .../source/model/BounceType.cpp | 14 +- .../source/model/BulkEmailStatus.cpp | 30 +- .../model/ConfigurationSetAttribute.cpp | 10 +- .../source/model/CustomMailFromStatus.cpp | 10 +- .../source/model/DimensionValueSource.cpp | 8 +- .../source/model/DsnAction.cpp | 12 +- .../source/model/EventType.cpp | 18 +- .../source/model/IdentityType.cpp | 6 +- .../source/model/InvocationType.cpp | 6 +- .../source/model/NotificationType.cpp | 8 +- .../source/model/ReceiptFilterPolicy.cpp | 6 +- .../source/model/SNSActionEncoding.cpp | 6 +- .../source/model/StopScope.cpp | 4 +- .../source/model/TlsPolicy.cpp | 6 +- .../source/model/VerificationStatus.cpp | 12 +- .../source/EMRContainersErrors.cpp | 4 +- .../source/model/ContainerProviderType.cpp | 4 +- .../source/model/EndpointState.cpp | 12 +- .../source/model/FailureReason.cpp | 10 +- .../source/model/JobRunState.cpp | 16 +- .../source/model/PersistentAppUI.cpp | 6 +- .../model/TemplateParameterDataType.cpp | 6 +- .../source/model/VirtualClusterState.cpp | 10 +- .../source/EMRServerlessErrors.cpp | 8 +- .../source/model/ApplicationState.cpp | 16 +- .../source/model/Architecture.cpp | 6 +- .../source/model/JobRunState.cpp | 18 +- .../source/EntityResolutionErrors.cpp | 8 +- .../source/model/AttributeMatchingModel.cpp | 6 +- .../source/model/IncrementalRunType.cpp | 4 +- .../source/model/JobStatus.cpp | 10 +- .../source/model/ResolutionType.cpp | 6 +- .../source/model/SchemaAttributeType.cpp | 40 +- .../source/ElasticsearchServiceErrors.cpp | 18 +- .../source/model/AutoTuneDesiredState.cpp | 6 +- .../source/model/AutoTuneState.cpp | 20 +- .../source/model/AutoTuneType.cpp | 4 +- .../source/model/DeploymentStatus.cpp | 12 +- .../model/DescribePackagesFilterName.cpp | 8 +- .../source/model/DomainPackageStatus.cpp | 12 +- .../source/model/ESPartitionInstanceType.cpp | 118 +- .../model/ESWarmPartitionInstanceType.cpp | 6 +- .../source/model/EngineType.cpp | 6 +- ...CrossClusterSearchConnectionStatusCode.cpp | 14 +- .../aws-cpp-sdk-es/source/model/LogType.cpp | 10 +- .../source/model/OptionState.cpp | 8 +- ...CrossClusterSearchConnectionStatusCode.cpp | 18 +- .../source/model/OverallChangeStatus.cpp | 10 +- .../source/model/PackageStatus.cpp | 18 +- .../source/model/PackageType.cpp | 4 +- .../source/model/PrincipalType.cpp | 6 +- ...rvedElasticsearchInstancePaymentOption.cpp | 8 +- .../source/model/RollbackOnDisable.cpp | 6 +- .../model/ScheduledAutoTuneActionType.cpp | 6 +- .../model/ScheduledAutoTuneSeverityType.cpp | 8 +- .../source/model/TLSSecurityPolicy.cpp | 6 +- .../aws-cpp-sdk-es/source/model/TimeUnit.cpp | 4 +- .../source/model/UpgradeStatus.cpp | 10 +- .../source/model/UpgradeStep.cpp | 8 +- .../source/model/VolumeType.cpp | 10 +- .../source/model/VpcEndpointErrorCode.cpp | 6 +- .../source/model/VpcEndpointStatus.cpp | 16 +- .../source/EventBridgeErrors.cpp | 22 +- .../source/model/ApiDestinationHttpMethod.cpp | 16 +- .../source/model/ApiDestinationState.cpp | 6 +- .../source/model/ArchiveState.cpp | 14 +- .../source/model/AssignPublicIp.cpp | 6 +- .../model/ConnectionAuthorizationType.cpp | 8 +- .../model/ConnectionOAuthHttpMethod.cpp | 8 +- .../source/model/ConnectionState.cpp | 16 +- .../source/model/EndpointState.cpp | 16 +- .../source/model/EventSourceState.cpp | 8 +- .../source/model/LaunchType.cpp | 8 +- .../source/model/PlacementConstraintType.cpp | 6 +- .../source/model/PlacementStrategyType.cpp | 8 +- .../source/model/PropagateTags.cpp | 4 +- .../source/model/ReplayState.cpp | 14 +- .../source/model/ReplicationState.cpp | 6 +- .../source/model/RuleState.cpp | 6 +- .../source/CloudWatchEventsErrors.cpp | 22 +- .../source/model/ApiDestinationHttpMethod.cpp | 16 +- .../source/model/ApiDestinationState.cpp | 6 +- .../source/model/ArchiveState.cpp | 14 +- .../source/model/AssignPublicIp.cpp | 6 +- .../model/ConnectionAuthorizationType.cpp | 8 +- .../model/ConnectionOAuthHttpMethod.cpp | 8 +- .../source/model/ConnectionState.cpp | 16 +- .../source/model/EventSourceState.cpp | 8 +- .../source/model/LaunchType.cpp | 8 +- .../source/model/PlacementConstraintType.cpp | 6 +- .../source/model/PlacementStrategyType.cpp | 8 +- .../source/model/PropagateTags.cpp | 4 +- .../source/model/ReplayState.cpp | 14 +- .../source/model/RuleState.cpp | 6 +- .../source/CloudWatchEvidentlyErrors.cpp | 8 +- .../source/model/ChangeDirectionEnum.cpp | 6 +- .../source/model/EventType.cpp | 6 +- .../source/model/ExperimentBaseStat.cpp | 4 +- .../source/model/ExperimentReportName.cpp | 4 +- .../model/ExperimentResultRequestType.cpp | 10 +- .../model/ExperimentResultResponseType.cpp | 12 +- .../source/model/ExperimentStatus.cpp | 12 +- .../model/ExperimentStopDesiredState.cpp | 6 +- .../source/model/ExperimentType.cpp | 4 +- .../model/FeatureEvaluationStrategy.cpp | 6 +- .../source/model/FeatureStatus.cpp | 6 +- .../source/model/LaunchStatus.cpp | 12 +- .../source/model/LaunchStopDesiredState.cpp | 6 +- .../source/model/LaunchType.cpp | 4 +- .../source/model/ProjectStatus.cpp | 6 +- .../model/SegmentReferenceResourceType.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/model/VariationValueType.cpp | 10 +- .../source/FinSpaceDataErrors.cpp | 8 +- .../source/model/ApiAccess.cpp | 6 +- .../source/model/ApplicationPermission.cpp | 16 +- .../source/model/ChangeType.cpp | 8 +- .../source/model/ColumnDataType.cpp | 26 +- .../source/model/DataViewStatus.cpp | 18 +- .../source/model/DatasetKind.cpp | 6 +- .../source/model/DatasetStatus.cpp | 10 +- .../source/model/ErrorCategory.cpp | 18 +- .../source/model/ExportFileFormat.cpp | 6 +- .../source/model/IngestionStatus.cpp | 12 +- .../source/model/LocationType.cpp | 6 +- .../model/PermissionGroupMembershipStatus.cpp | 8 +- .../source/model/UserStatus.cpp | 8 +- .../source/model/UserType.cpp | 6 +- .../source/FinspaceErrors.cpp | 14 +- .../source/model/AutoScalingMetric.cpp | 4 +- .../source/model/ChangeType.cpp | 6 +- .../source/model/ChangesetStatus.cpp | 10 +- .../source/model/DnsStatus.cpp | 12 +- .../source/model/EnvironmentStatus.cpp | 28 +- .../source/model/ErrorDetails.cpp | 18 +- .../source/model/FederationMode.cpp | 6 +- .../source/model/IPAddressType.cpp | 4 +- .../source/model/KxAzMode.cpp | 6 +- .../source/model/KxClusterStatus.cpp | 18 +- .../source/model/KxClusterType.cpp | 8 +- .../source/model/KxDeploymentStrategy.cpp | 6 +- .../source/model/KxSavedownStorageType.cpp | 4 +- .../source/model/RuleAction.cpp | 6 +- .../source/model/TgwStatus.cpp | 12 +- .../source/FirehoseErrors.cpp | 12 +- ...AmazonOpenSearchServerlessS3BackupMode.cpp | 6 +- ...onopensearchserviceIndexRotationPeriod.cpp | 12 +- .../AmazonopensearchserviceS3BackupMode.cpp | 6 +- .../source/model/CompressionFormat.cpp | 12 +- .../source/model/Connectivity.cpp | 6 +- .../source/model/ContentEncoding.cpp | 6 +- .../source/model/DefaultDocumentIdFormat.cpp | 6 +- .../model/DeliveryStreamEncryptionStatus.cpp | 14 +- .../model/DeliveryStreamFailureType.cpp | 32 +- .../source/model/DeliveryStreamStatus.cpp | 12 +- .../source/model/DeliveryStreamType.cpp | 8 +- .../ElasticsearchIndexRotationPeriod.cpp | 12 +- .../model/ElasticsearchS3BackupMode.cpp | 6 +- .../source/model/HECEndpointType.cpp | 6 +- .../source/model/HttpEndpointS3BackupMode.cpp | 6 +- .../source/model/KeyType.cpp | 6 +- .../source/model/NoEncryptionConfig.cpp | 4 +- .../source/model/OrcCompression.cpp | 8 +- .../source/model/OrcFormatVersion.cpp | 6 +- .../source/model/ParquetCompression.cpp | 8 +- .../source/model/ParquetWriterVersion.cpp | 6 +- .../source/model/ProcessorParameterName.cpp | 22 +- .../source/model/ProcessorType.cpp | 12 +- .../source/model/RedshiftS3BackupMode.cpp | 6 +- .../source/model/S3BackupMode.cpp | 6 +- .../source/model/SplunkS3BackupMode.cpp | 6 +- .../src/aws-cpp-sdk-fis/source/FISErrors.cpp | 6 +- .../source/model/ExperimentActionStatus.cpp | 18 +- .../source/model/ExperimentStatus.cpp | 16 +- .../src/aws-cpp-sdk-fms/source/FMSErrors.cpp | 12 +- .../source/model/AccountRoleStatus.cpp | 12 +- .../model/CustomerPolicyScopeIdType.cpp | 6 +- .../source/model/CustomerPolicyStatus.cpp | 6 +- .../source/model/DependentServiceName.cpp | 10 +- .../source/model/DestinationType.cpp | 8 +- .../source/model/FailedItemReason.cpp | 14 +- .../source/model/FirewallDeploymentModel.cpp | 6 +- ...arketplaceSubscriptionOnboardingStatus.cpp | 8 +- .../model/NetworkFirewallOverrideAction.cpp | 4 +- .../source/model/OrganizationStatus.cpp | 10 +- .../model/PolicyComplianceStatusType.cpp | 6 +- .../source/model/RemediationActionType.cpp | 6 +- .../source/model/ResourceSetStatus.cpp | 6 +- .../source/model/RuleOrder.cpp | 6 +- .../source/model/SecurityServiceType.cpp | 22 +- .../source/model/TargetType.cpp | 22 +- .../source/model/ThirdPartyFirewall.cpp | 6 +- .../ThirdPartyFirewallAssociationStatus.cpp | 12 +- .../source/model/ViolationReason.cpp | 58 +- .../source/ForecastServiceErrors.cpp | 12 +- .../source/model/AttributeType.cpp | 12 +- .../source/model/AutoMLOverrideStrategy.cpp | 6 +- .../source/model/Condition.cpp | 10 +- .../source/model/DatasetType.cpp | 8 +- .../source/model/DayOfWeek.cpp | 16 +- .../source/model/Domain.cpp | 16 +- .../source/model/EvaluationType.cpp | 6 +- .../source/model/FeaturizationMethodName.cpp | 4 +- .../source/model/FilterConditionString.cpp | 6 +- .../source/model/ImportMode.cpp | 6 +- .../source/model/Month.cpp | 26 +- .../source/model/Operation.cpp | 10 +- .../source/model/OptimizationMetric.cpp | 12 +- .../source/model/ScalingType.cpp | 10 +- .../source/model/State.cpp | 6 +- .../source/model/TimePointGranularity.cpp | 6 +- .../source/model/TimeSeriesGranularity.cpp | 6 +- .../source/ForecastQueryServiceErrors.cpp | 10 +- .../source/FraudDetectorErrors.cpp | 8 +- .../source/model/AsyncJobStatus.cpp | 14 +- .../source/model/DataSource.cpp | 8 +- .../source/model/DataType.cpp | 12 +- .../source/model/DetectorVersionStatus.cpp | 8 +- .../source/model/EventIngestion.cpp | 6 +- .../source/model/Language.cpp | 4 +- .../source/model/ListUpdateMode.cpp | 8 +- .../source/model/ModelEndpointStatus.cpp | 6 +- .../source/model/ModelInputDataFormat.cpp | 6 +- .../source/model/ModelOutputDataFormat.cpp | 6 +- .../source/model/ModelSource.cpp | 4 +- .../source/model/ModelTypeEnum.cpp | 8 +- .../source/model/ModelVersionStatus.cpp | 8 +- .../source/model/RuleExecutionMode.cpp | 6 +- .../source/model/TrainingDataSourceEnum.cpp | 6 +- .../source/model/UnlabeledEventsTreatment.cpp | 10 +- .../src/aws-cpp-sdk-fsx/source/FSxErrors.cpp | 68 +- .../source/model/ActiveDirectoryErrorType.cpp | 10 +- .../source/model/AdministrativeActionType.cpp | 26 +- .../source/model/AliasLifecycle.cpp | 12 +- .../source/model/AutoImportPolicyType.cpp | 10 +- .../source/model/AutocommitPeriodType.cpp | 14 +- .../source/model/BackupLifecycle.cpp | 16 +- .../source/model/BackupType.cpp | 8 +- .../source/model/DataCompressionType.cpp | 6 +- .../source/model/DataRepositoryLifecycle.cpp | 14 +- .../model/DataRepositoryTaskFilterName.cpp | 10 +- .../model/DataRepositoryTaskLifecycle.cpp | 14 +- .../source/model/DataRepositoryTaskType.cpp | 10 +- .../model/DeleteFileSystemOpenZFSOption.cpp | 4 +- .../model/DeleteOpenZFSVolumeOption.cpp | 4 +- .../model/DiskIopsConfigurationMode.cpp | 6 +- .../source/model/DriveCacheType.cpp | 6 +- .../source/model/EventType.cpp | 8 +- .../source/model/FileCacheLifecycle.cpp | 12 +- .../model/FileCacheLustreDeploymentType.cpp | 4 +- .../source/model/FileCacheType.cpp | 4 +- .../source/model/FileSystemLifecycle.cpp | 16 +- .../model/FileSystemMaintenanceOperation.cpp | 6 +- .../source/model/FileSystemType.cpp | 10 +- .../source/model/FilterName.cpp | 16 +- .../source/model/FlexCacheEndpointType.cpp | 8 +- .../source/model/InputOntapVolumeType.cpp | 6 +- .../model/LustreAccessAuditLogLevel.cpp | 10 +- .../source/model/LustreDeploymentType.cpp | 10 +- .../source/model/NfsVersion.cpp | 4 +- .../source/model/OntapDeploymentType.cpp | 6 +- .../source/model/OntapVolumeType.cpp | 8 +- .../source/model/OpenZFSCopyStrategy.cpp | 6 +- .../model/OpenZFSDataCompressionType.cpp | 8 +- .../source/model/OpenZFSDeploymentType.cpp | 8 +- .../source/model/OpenZFSQuotaType.cpp | 6 +- .../source/model/PrivilegedDelete.cpp | 8 +- .../source/model/ReportFormat.cpp | 4 +- .../source/model/ReportScope.cpp | 4 +- .../source/model/ResourceType.cpp | 6 +- .../model/RestoreOpenZFSVolumeOption.cpp | 6 +- .../source/model/RetentionPeriodType.cpp | 18 +- .../source/model/SecurityStyle.cpp | 8 +- .../source/model/ServiceLimit.cpp | 22 +- .../source/model/SnaplockType.cpp | 6 +- .../source/model/SnapshotFilterName.cpp | 6 +- .../source/model/SnapshotLifecycle.cpp | 10 +- .../aws-cpp-sdk-fsx/source/model/Status.cpp | 12 +- .../source/model/StorageType.cpp | 6 +- .../model/StorageVirtualMachineFilterName.cpp | 4 +- .../model/StorageVirtualMachineLifecycle.cpp | 14 +- ...eVirtualMachineRootVolumeSecurityStyle.cpp | 8 +- .../model/StorageVirtualMachineSubtype.cpp | 10 +- .../source/model/TieringPolicyName.cpp | 10 +- .../src/aws-cpp-sdk-fsx/source/model/Unit.cpp | 4 +- .../source/model/VolumeFilterName.cpp | 6 +- .../source/model/VolumeLifecycle.cpp | 16 +- .../source/model/VolumeType.cpp | 6 +- .../model/WindowsAccessAuditLogLevel.cpp | 10 +- .../source/model/WindowsDeploymentType.cpp | 8 +- .../source/GameLiftErrors.cpp | 32 +- .../source/model/AcceptanceType.cpp | 6 +- .../source/model/BackfillMode.cpp | 6 +- .../source/model/BalancingStrategy.cpp | 8 +- .../source/model/BuildStatus.cpp | 8 +- .../source/model/CertificateType.cpp | 6 +- .../source/model/ComparisonOperatorType.cpp | 10 +- .../source/model/ComputeStatus.cpp | 8 +- .../source/model/ComputeType.cpp | 6 +- .../source/model/EC2InstanceType.cpp | 356 ++-- .../source/model/EventCode.cpp | 70 +- .../source/model/FilterInstanceStatus.cpp | 6 +- .../source/model/FleetAction.cpp | 4 +- .../source/model/FleetStatus.cpp | 22 +- .../source/model/FleetType.cpp | 6 +- .../source/model/FlexMatchMode.cpp | 6 +- .../source/model/GameServerClaimStatus.cpp | 4 +- .../source/model/GameServerGroupAction.cpp | 4 +- .../model/GameServerGroupDeleteOption.cpp | 8 +- .../model/GameServerGroupInstanceType.cpp | 178 +- .../source/model/GameServerGroupStatus.cpp | 16 +- .../source/model/GameServerHealthCheck.cpp | 4 +- .../source/model/GameServerInstanceStatus.cpp | 8 +- .../model/GameServerProtectionPolicy.cpp | 6 +- .../model/GameServerUtilizationStatus.cpp | 6 +- .../model/GameSessionPlacementState.cpp | 12 +- .../source/model/GameSessionStatus.cpp | 12 +- .../source/model/GameSessionStatusReason.cpp | 4 +- .../source/model/InstanceStatus.cpp | 8 +- .../source/model/IpProtocol.cpp | 6 +- .../source/model/LocationFilter.cpp | 6 +- .../source/model/LocationUpdateStatus.cpp | 4 +- .../model/MatchmakingConfigurationStatus.cpp | 18 +- .../source/model/MetricName.cpp | 26 +- .../source/model/OperatingSystem.cpp | 12 +- .../model/PlayerSessionCreationPolicy.cpp | 6 +- .../source/model/PlayerSessionStatus.cpp | 10 +- .../source/model/PolicyType.cpp | 6 +- .../source/model/PriorityType.cpp | 10 +- .../source/model/ProtectionPolicy.cpp | 6 +- .../source/model/RoutingStrategyType.cpp | 6 +- .../source/model/ScalingAdjustmentType.cpp | 8 +- .../source/model/ScalingStatusType.cpp | 16 +- .../source/model/SortOrder.cpp | 6 +- .../source/GameSparksErrors.cpp | 8 +- .../source/model/DeploymentAction.cpp | 6 +- .../source/model/DeploymentState.cpp | 10 +- .../source/model/GameState.cpp | 6 +- .../source/model/GeneratedCodeJobState.cpp | 10 +- .../source/model/Operation.cpp | 8 +- .../source/model/ResultCode.cpp | 8 +- .../source/model/StageState.cpp | 6 +- .../source/GlacierErrors.cpp | 10 +- .../source/model/ActionCode.cpp | 8 +- .../source/model/CannedACL.cpp | 16 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/ExpressionType.cpp | 4 +- .../source/model/FileHeaderInfo.cpp | 8 +- .../source/model/Permission.cpp | 12 +- .../source/model/QuoteFields.cpp | 6 +- .../source/model/StatusCode.cpp | 8 +- .../source/model/StorageClass.cpp | 8 +- .../aws-cpp-sdk-glacier/source/model/Type.cpp | 8 +- .../source/GlobalAcceleratorErrors.cpp | 38 +- .../source/model/AcceleratorStatus.cpp | 6 +- .../source/model/ByoipCidrState.cpp | 24 +- .../source/model/ClientAffinity.cpp | 6 +- .../model/CustomRoutingAcceleratorStatus.cpp | 6 +- .../CustomRoutingDestinationTrafficState.cpp | 6 +- .../source/model/CustomRoutingProtocol.cpp | 6 +- .../source/model/HealthCheckProtocol.cpp | 8 +- .../source/model/HealthState.cpp | 8 +- .../source/model/IpAddressFamily.cpp | 6 +- .../source/model/IpAddressType.cpp | 6 +- .../source/model/Protocol.cpp | 6 +- .../aws-cpp-sdk-glue/source/GlueClient.cpp | 414 ++--- .../aws-cpp-sdk-glue/source/GlueClient1.cpp | 466 ++--- .../aws-cpp-sdk-glue/source/GlueErrors.cpp | 62 +- .../source/model/AdditionalOptionKeys.cpp | 4 +- .../source/model/AggFunction.cpp | 32 +- .../source/model/BackfillErrorCode.cpp | 12 +- .../source/model/BlueprintRunState.cpp | 10 +- .../source/model/BlueprintStatus.cpp | 10 +- .../source/model/CatalogEncryptionMode.cpp | 6 +- .../source/model/CloudWatchEncryptionMode.cpp | 6 +- .../source/model/ColumnStatisticsType.cpp | 16 +- .../source/model/Comparator.cpp | 12 +- .../source/model/Compatibility.cpp | 18 +- .../source/model/CompressionType.cpp | 6 +- .../source/model/ConnectionPropertyKey.cpp | 80 +- .../source/model/ConnectionType.cpp | 16 +- .../source/model/CrawlState.cpp | 14 +- .../source/model/CrawlerHistoryState.cpp | 10 +- .../source/model/CrawlerLineageSettings.cpp | 6 +- .../source/model/CrawlerState.cpp | 8 +- .../source/model/CsvHeaderOption.cpp | 8 +- .../source/model/CsvSerdeOption.cpp | 8 +- .../source/model/DQStopJobOnFailureTiming.cpp | 6 +- .../source/model/DQTransformOutput.cpp | 6 +- .../source/model/DataFormat.cpp | 8 +- .../model/DataQualityRuleResultStatus.cpp | 8 +- .../source/model/DeleteBehavior.cpp | 8 +- .../model/DeltaTargetCompressionType.cpp | 6 +- .../source/model/EnableHybridValues.cpp | 6 +- .../source/model/ExecutionClass.cpp | 6 +- .../source/model/ExistCondition.cpp | 8 +- .../model/FederationSourceErrorCode.cpp | 12 +- .../source/model/FieldName.cpp | 12 +- .../source/model/FilterLogicalOperator.cpp | 6 +- .../source/model/FilterOperation.cpp | 16 +- .../source/model/FilterOperator.cpp | 14 +- .../source/model/FilterValueType.cpp | 6 +- .../source/model/GlueRecordType.cpp | 22 +- .../model/HudiTargetCompressionType.cpp | 10 +- .../source/model/JDBCConnectionType.cpp | 12 +- .../source/model/JDBCDataType.cpp | 80 +- .../source/model/JdbcMetadataEntry.cpp | 6 +- .../model/JobBookmarksEncryptionMode.cpp | 6 +- .../source/model/JobRunState.cpp | 20 +- .../source/model/JoinType.cpp | 14 +- .../source/model/Language.cpp | 6 +- .../source/model/LastCrawlStatus.cpp | 8 +- .../aws-cpp-sdk-glue/source/model/Logical.cpp | 6 +- .../source/model/LogicalOperator.cpp | 4 +- .../model/MLUserDataEncryptionModeString.cpp | 6 +- .../source/model/MetadataOperation.cpp | 4 +- .../source/model/NodeType.cpp | 8 +- .../source/model/ParamType.cpp | 16 +- .../source/model/ParquetCompressionType.cpp | 12 +- .../source/model/PartitionIndexStatus.cpp | 10 +- .../source/model/Permission.cpp | 20 +- .../source/model/PermissionType.cpp | 10 +- .../aws-cpp-sdk-glue/source/model/PiiType.cpp | 10 +- .../source/model/PrincipalType.cpp | 8 +- .../source/model/QuoteChar.cpp | 10 +- .../source/model/RecrawlBehavior.cpp | 8 +- .../source/model/RegistryStatus.cpp | 6 +- .../source/model/ResourceShareType.cpp | 8 +- .../source/model/ResourceType.cpp | 8 +- .../source/model/S3EncryptionMode.cpp | 8 +- .../source/model/ScheduleState.cpp | 8 +- .../source/model/SchemaDiffType.cpp | 4 +- .../source/model/SchemaStatus.cpp | 8 +- .../source/model/SchemaVersionStatus.cpp | 10 +- .../source/model/Separator.cpp | 12 +- .../source/model/SessionStatus.cpp | 14 +- .../aws-cpp-sdk-glue/source/model/Sort.cpp | 6 +- .../source/model/SortDirectionType.cpp | 6 +- .../model/SourceControlAuthStrategy.cpp | 6 +- .../source/model/SourceControlProvider.cpp | 10 +- .../source/model/StartingPosition.cpp | 10 +- .../source/model/StatementState.cpp | 14 +- .../source/model/TargetFormat.cpp | 16 +- .../source/model/TaskRunSortColumnType.cpp | 8 +- .../source/model/TaskStatusType.cpp | 16 +- .../source/model/TaskType.cpp | 12 +- .../source/model/TransformSortColumnType.cpp | 12 +- .../source/model/TransformStatusType.cpp | 8 +- .../source/model/TransformType.cpp | 4 +- .../source/model/TriggerState.cpp | 18 +- .../source/model/TriggerType.cpp | 10 +- .../source/model/UnionType.cpp | 6 +- .../source/model/UpdateBehavior.cpp | 6 +- .../source/model/UpdateCatalogBehavior.cpp | 6 +- .../source/model/WorkerType.cpp | 16 +- .../source/model/WorkflowRunStatus.cpp | 12 +- .../source/ManagedGrafanaErrors.cpp | 8 +- .../source/model/AccountAccessType.cpp | 6 +- .../model/AuthenticationProviderTypes.cpp | 6 +- .../source/model/DataSourceType.cpp | 20 +- .../source/model/LicenseType.cpp | 6 +- .../model/NotificationDestinationType.cpp | 4 +- .../source/model/PermissionType.cpp | 6 +- .../aws-cpp-sdk-grafana/source/model/Role.cpp | 8 +- .../source/model/SamlConfigurationStatus.cpp | 6 +- .../source/model/UpdateAction.cpp | 6 +- .../source/model/UserType.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/model/WorkspaceStatus.cpp | 28 +- .../source/GreengrassErrors.cpp | 6 +- .../source/model/BulkDeploymentStatus.cpp | 14 +- .../source/model/ConfigurationSyncStatus.cpp | 6 +- .../source/model/DeploymentType.cpp | 10 +- .../source/model/EncodingType.cpp | 6 +- .../source/model/FunctionIsolationMode.cpp | 6 +- .../source/model/LoggerComponent.cpp | 6 +- .../source/model/LoggerLevel.cpp | 12 +- .../source/model/LoggerType.cpp | 6 +- .../source/model/Permission.cpp | 6 +- .../source/model/SoftwareToUpdate.cpp | 6 +- .../source/model/Telemetry.cpp | 6 +- .../source/model/UpdateAgentLogLevel.cpp | 18 +- .../model/UpdateTargetsArchitecture.cpp | 10 +- .../model/UpdateTargetsOperatingSystem.cpp | 10 +- .../source/GreengrassV2Errors.cpp | 10 +- .../source/model/CloudComponentState.cpp | 12 +- .../source/model/ComponentDependencyType.cpp | 6 +- .../source/model/ComponentVisibilityScope.cpp | 6 +- .../source/model/CoreDeviceStatus.cpp | 6 +- .../DeploymentComponentUpdatePolicyAction.cpp | 6 +- .../model/DeploymentFailureHandlingPolicy.cpp | 6 +- .../source/model/DeploymentHistoryFilter.cpp | 6 +- .../source/model/DeploymentStatus.cpp | 12 +- .../EffectiveDeploymentExecutionStatus.cpp | 18 +- .../InstalledComponentLifecycleState.cpp | 18 +- .../InstalledComponentTopologyFilter.cpp | 6 +- .../source/model/IoTJobAbortAction.cpp | 4 +- .../model/IoTJobExecutionFailureType.cpp | 10 +- .../source/model/LambdaEventSourceType.cpp | 6 +- .../model/LambdaFilesystemPermission.cpp | 6 +- .../model/LambdaInputPayloadEncodingType.cpp | 6 +- .../source/model/LambdaIsolationMode.cpp | 6 +- .../source/model/RecipeOutputFormat.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/model/VendorGuidance.cpp | 8 +- .../source/GroundStationErrors.cpp | 8 +- .../source/model/AgentStatus.cpp | 10 +- .../source/model/AngleUnits.cpp | 6 +- .../source/model/AuditResults.cpp | 6 +- .../source/model/BandwidthUnits.cpp | 8 +- .../source/model/CapabilityHealth.cpp | 6 +- .../source/model/CapabilityHealthReason.cpp | 16 +- .../source/model/ConfigCapabilityType.cpp | 16 +- .../source/model/ContactStatus.cpp | 28 +- .../source/model/Criticality.cpp | 8 +- .../source/model/EirpUnits.cpp | 4 +- .../source/model/EndpointStatus.cpp | 12 +- .../source/model/EphemerisInvalidReason.cpp | 12 +- .../source/model/EphemerisSource.cpp | 6 +- .../source/model/EphemerisStatus.cpp | 14 +- .../source/model/FrequencyUnits.cpp | 8 +- .../source/model/Polarization.cpp | 8 +- .../source/GuardDutyErrors.cpp | 8 +- .../source/model/AdminStatus.cpp | 6 +- .../source/model/AutoEnableMembers.cpp | 8 +- .../model/CoverageFilterCriterionKey.cpp | 16 +- .../source/model/CoverageSortKey.cpp | 16 +- .../source/model/CoverageStatisticsType.cpp | 6 +- .../source/model/CoverageStatus.cpp | 6 +- .../source/model/CriterionKey.cpp | 16 +- .../source/model/DataSource.cpp | 14 +- .../source/model/DataSourceStatus.cpp | 6 +- .../source/model/DestinationType.cpp | 4 +- .../source/model/DetectorFeature.cpp | 14 +- .../source/model/DetectorFeatureResult.cpp | 20 +- .../source/model/DetectorStatus.cpp | 6 +- .../source/model/EbsSnapshotPreservation.cpp | 6 +- .../model/FeatureAdditionalConfiguration.cpp | 4 +- .../source/model/FeatureStatus.cpp | 6 +- .../source/model/Feedback.cpp | 6 +- .../source/model/FilterAction.cpp | 6 +- .../model/FindingPublishingFrequency.cpp | 8 +- .../source/model/FindingStatisticType.cpp | 4 +- .../source/model/FreeTrialFeatureResult.cpp | 20 +- .../source/model/IpSetFormat.cpp | 14 +- .../source/model/IpSetStatus.cpp | 16 +- .../source/model/ManagementType.cpp | 6 +- .../source/model/OrderBy.cpp | 6 +- .../source/model/OrgFeature.cpp | 14 +- .../OrgFeatureAdditionalConfiguration.cpp | 4 +- .../source/model/OrgFeatureStatus.cpp | 8 +- .../source/model/PublishingStatus.cpp | 10 +- .../source/model/ResourceType.cpp | 4 +- .../source/model/ScanCriterionKey.cpp | 4 +- .../source/model/ScanResult.cpp | 6 +- .../source/model/ScanStatus.cpp | 10 +- .../source/model/ScanType.cpp | 6 +- .../source/model/ThreatIntelSetFormat.cpp | 14 +- .../source/model/ThreatIntelSetStatus.cpp | 16 +- .../source/model/UsageFeature.cpp | 20 +- .../source/model/UsageStatisticType.cpp | 12 +- .../source/HealthErrors.cpp | 8 +- .../source/model/EntityStatusCode.cpp | 12 +- .../source/model/EventAggregateField.cpp | 4 +- .../source/model/EventScopeCode.cpp | 8 +- .../source/model/EventStatusCode.cpp | 8 +- .../source/model/EventTypeCategory.cpp | 10 +- .../source/HealthLakeErrors.cpp | 6 +- .../source/model/AuthorizationStrategy.cpp | 6 +- .../source/model/CmkType.cpp | 6 +- .../source/model/DatastoreStatus.cpp | 10 +- .../source/model/FHIRVersion.cpp | 4 +- .../source/model/JobStatus.cpp | 20 +- .../source/model/PreloadDataType.cpp | 4 +- .../source/HoneycodeErrors.cpp | 10 +- .../source/model/ErrorCode.cpp | 30 +- .../source/model/Format.cpp | 26 +- .../model/ImportDataCharacterEncoding.cpp | 14 +- .../source/model/ImportSourceDataFormat.cpp | 4 +- .../source/model/TableDataImportJobStatus.cpp | 10 +- .../source/model/UpsertAction.cpp | 6 +- .../src/aws-cpp-sdk-iam/source/IAMErrors.cpp | 56 +- .../AccessAdvisorUsageGranularityType.cpp | 6 +- .../source/model/AssignmentStatusType.cpp | 8 +- .../source/model/ContextKeyTypeEnum.cpp | 26 +- .../source/model/DeletionTaskStatusType.cpp | 10 +- .../source/model/EncodingType.cpp | 6 +- .../source/model/EntityType.cpp | 12 +- .../model/GlobalEndpointTokenVersion.cpp | 6 +- .../source/model/JobStatusType.cpp | 8 +- .../PermissionsBoundaryAttachmentType.cpp | 4 +- .../model/PolicyEvaluationDecisionType.cpp | 8 +- .../source/model/PolicyOwnerEntityType.cpp | 8 +- .../source/model/PolicyScopeType.cpp | 8 +- .../source/model/PolicySourceType.cpp | 16 +- .../source/model/PolicyType.cpp | 6 +- .../source/model/PolicyUsageType.cpp | 6 +- .../source/model/ReportFormatType.cpp | 4 +- .../source/model/ReportStateType.cpp | 8 +- .../source/model/SortKeyType.cpp | 10 +- .../source/model/StatusType.cpp | 6 +- .../source/model/SummaryKeyType.cpp | 54 +- .../source/IdentityStoreErrors.cpp | 8 +- .../source/model/ConflictExceptionReason.cpp | 6 +- .../source/model/ResourceType.cpp | 10 +- .../source/ImagebuilderErrors.cpp | 28 +- .../source/model/BuildType.cpp | 8 +- .../source/model/ComponentFormat.cpp | 4 +- .../source/model/ComponentStatus.cpp | 4 +- .../source/model/ComponentType.cpp | 6 +- .../model/ContainerRepositoryService.cpp | 4 +- .../source/model/ContainerType.cpp | 4 +- .../source/model/DiskImageFormat.cpp | 8 +- .../source/model/EbsVolumeType.cpp | 16 +- .../source/model/ImageScanStatus.cpp | 16 +- .../source/model/ImageSource.cpp | 10 +- .../source/model/ImageStatus.cpp | 24 +- .../source/model/ImageType.cpp | 6 +- .../source/model/Ownership.cpp | 10 +- .../model/PipelineExecutionStartCondition.cpp | 6 +- .../source/model/PipelineStatus.cpp | 6 +- .../source/model/Platform.cpp | 6 +- .../source/model/WorkflowExecutionStatus.cpp | 16 +- .../WorkflowStepExecutionRollbackStatus.cpp | 10 +- .../model/WorkflowStepExecutionStatus.cpp | 12 +- .../source/model/WorkflowType.cpp | 8 +- .../source/ImportExportErrors.cpp | 38 +- .../source/model/JobType.cpp | 6 +- .../source/InspectorErrors.cpp | 22 +- .../source/model/AccessDeniedErrorCode.cpp | 18 +- .../source/model/AgentHealth.cpp | 8 +- .../source/model/AgentHealthCode.cpp | 14 +- ...AssessmentRunNotificationSnsStatusCode.cpp | 10 +- .../source/model/AssessmentRunState.cpp | 28 +- .../source/model/AssetType.cpp | 4 +- .../source/model/FailedItemErrorCode.cpp | 14 +- .../source/model/InspectorEvent.cpp | 12 +- .../InvalidCrossAccountRoleErrorCode.cpp | 6 +- .../source/model/InvalidInputErrorCode.cpp | 110 +- .../source/model/LimitExceededErrorCode.cpp | 12 +- .../source/model/Locale.cpp | 4 +- .../source/model/NoSuchEntityErrorCode.cpp | 18 +- .../source/model/PreviewStatus.cpp | 6 +- .../source/model/ReportFileFormat.cpp | 6 +- .../source/model/ReportStatus.cpp | 8 +- .../source/model/ReportType.cpp | 6 +- .../source/model/ScopeType.cpp | 6 +- .../source/model/Severity.cpp | 12 +- .../source/model/StopAction.cpp | 6 +- .../source/Inspector2Errors.cpp | 10 +- .../source/model/AccountSortBy.cpp | 8 +- .../source/model/AggregationFindingType.cpp | 8 +- .../source/model/AggregationResourceType.cpp | 8 +- .../source/model/AggregationType.cpp | 24 +- .../source/model/AmiSortBy.cpp | 10 +- .../source/model/Architecture.cpp | 6 +- .../source/model/AwsEcrContainerSortBy.cpp | 8 +- .../source/model/CodeSnippetErrorCode.cpp | 10 +- .../source/model/CoverageMapComparison.cpp | 4 +- .../source/model/CoverageResourceType.cpp | 10 +- .../source/model/CoverageStringComparison.cpp | 6 +- .../source/model/Currency.cpp | 4 +- .../source/model/DelegatedAdminStatus.cpp | 6 +- .../source/model/Ec2DeepInspectionStatus.cpp | 10 +- .../source/model/Ec2InstanceSortBy.cpp | 10 +- .../source/model/Ec2Platform.cpp | 10 +- .../source/model/EcrRescanDuration.cpp | 8 +- .../source/model/EcrRescanDurationStatus.cpp | 8 +- .../source/model/EcrScanFrequency.cpp | 8 +- .../source/model/ErrorCode.cpp | 30 +- .../source/model/ExploitAvailable.cpp | 6 +- .../source/model/ExternalReportStatus.cpp | 10 +- .../source/model/FilterAction.cpp | 6 +- .../source/model/FindingDetailsErrorCode.cpp | 10 +- .../source/model/FindingStatus.cpp | 8 +- .../source/model/FindingType.cpp | 8 +- .../source/model/FindingTypeSortBy.cpp | 8 +- .../source/model/FixAvailable.cpp | 8 +- .../source/model/FreeTrialInfoErrorCode.cpp | 6 +- .../source/model/FreeTrialStatus.cpp | 6 +- .../source/model/FreeTrialType.cpp | 10 +- .../source/model/GroupKey.cpp | 12 +- .../source/model/ImageLayerSortBy.cpp | 8 +- .../source/model/LambdaFunctionSortBy.cpp | 8 +- .../source/model/LambdaLayerSortBy.cpp | 8 +- .../source/model/MapComparison.cpp | 4 +- .../source/model/NetworkProtocol.cpp | 6 +- .../source/model/Operation.cpp | 10 +- .../source/model/PackageManager.cpp | 36 +- .../source/model/PackageSortBy.cpp | 8 +- .../source/model/PackageType.cpp | 6 +- .../source/model/RelationshipStatus.cpp | 26 +- .../source/model/ReportFormat.cpp | 6 +- .../source/model/ReportingErrorCode.cpp | 14 +- .../source/model/RepositorySortBy.cpp | 10 +- .../source/model/ResourceMapComparison.cpp | 4 +- .../source/model/ResourceScanType.cpp | 10 +- .../source/model/ResourceStringComparison.cpp | 6 +- .../source/model/ResourceType.cpp | 10 +- .../source/model/Runtime.cpp | 32 +- .../source/model/SbomReportFormat.cpp | 6 +- .../source/model/ScanStatusCode.cpp | 6 +- .../source/model/ScanStatusReason.cpp | 50 +- .../source/model/ScanType.cpp | 8 +- .../source/model/Service.cpp | 8 +- .../source/model/Severity.cpp | 14 +- .../source/model/SortField.cpp | 36 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/Status.cpp | 14 +- .../source/model/StringComparison.cpp | 8 +- .../source/model/TitleSortBy.cpp | 8 +- .../source/model/UsageType.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 8 +- .../source/model/VulnerabilitySource.cpp | 4 +- .../source/InternetMonitorErrors.cpp | 16 +- .../source/model/HealthEventImpactType.cpp | 10 +- .../source/model/HealthEventStatus.cpp | 6 +- .../model/LocalHealthEventsConfigStatus.cpp | 6 +- .../source/model/LogDeliveryStatus.cpp | 6 +- .../source/model/MonitorConfigState.cpp | 10 +- .../model/MonitorProcessingStatusCode.cpp | 14 +- .../source/model/TriangulationEventType.cpp | 6 +- .../source/IoTDataPlaneErrors.cpp | 14 +- .../source/model/PayloadFormatIndicator.cpp | 6 +- .../source/IoTJobsDataPlaneErrors.cpp | 10 +- .../source/model/JobExecutionStatus.cpp | 18 +- .../source/IoTRoboRunnerErrors.cpp | 8 +- .../source/model/DestinationState.cpp | 8 +- .../src/aws-cpp-sdk-iot/source/IoTClient.cpp | 960 +++++------ .../src/aws-cpp-sdk-iot/source/IoTClient1.cpp | 970 +++++------ .../src/aws-cpp-sdk-iot/source/IoTClient2.cpp | 500 +++--- .../src/aws-cpp-sdk-iot/source/IoTErrors.cpp | 58 +- .../source/model/AbortAction.cpp | 4 +- .../source/model/ActionType.cpp | 10 +- .../source/model/AggregationTypeName.cpp | 8 +- .../source/model/AlertTargetType.cpp | 4 +- .../source/model/AuditCheckRunStatus.cpp | 14 +- .../source/model/AuditFindingSeverity.cpp | 10 +- .../source/model/AuditFrequency.cpp | 10 +- .../AuditMitigationActionsExecutionStatus.cpp | 14 +- .../AuditMitigationActionsTaskStatus.cpp | 10 +- .../source/model/AuditNotificationType.cpp | 4 +- .../source/model/AuditTaskStatus.cpp | 10 +- .../source/model/AuditTaskType.cpp | 6 +- .../source/model/AuthDecision.cpp | 8 +- .../source/model/AuthorizerStatus.cpp | 6 +- .../source/model/AutoRegistrationStatus.cpp | 6 +- .../model/AwsJobAbortCriteriaAbortAction.cpp | 4 +- .../model/AwsJobAbortCriteriaFailureType.cpp | 10 +- .../source/model/BehaviorCriteriaType.cpp | 8 +- .../source/model/CACertificateStatus.cpp | 6 +- .../model/CACertificateUpdateAction.cpp | 4 +- .../source/model/CannedAccessControlList.cpp | 18 +- .../source/model/CertificateMode.cpp | 6 +- .../source/model/CertificateStatus.cpp | 14 +- .../source/model/ComparisonOperator.cpp | 22 +- .../source/model/ConfidenceLevel.cpp | 8 +- .../source/model/CustomMetricType.cpp | 10 +- .../source/model/DayOfWeek.cpp | 16 +- .../DetectMitigationActionExecutionStatus.cpp | 10 +- .../DetectMitigationActionsTaskStatus.cpp | 10 +- .../model/DeviceCertificateUpdateAction.cpp | 4 +- .../model/DeviceDefenderIndexingMode.cpp | 6 +- .../source/model/DimensionType.cpp | 4 +- .../source/model/DimensionValueOperator.cpp | 6 +- .../model/DomainConfigurationStatus.cpp | 6 +- .../source/model/DomainType.cpp | 8 +- .../source/model/DynamicGroupStatus.cpp | 8 +- .../source/model/DynamoKeyType.cpp | 6 +- .../source/model/EventType.cpp | 24 +- .../source/model/FieldType.cpp | 8 +- .../source/model/FleetMetricUnit.cpp | 56 +- .../source/model/IndexStatus.cpp | 8 +- .../source/model/JobEndBehavior.cpp | 8 +- .../source/model/JobExecutionFailureType.cpp | 10 +- .../source/model/JobExecutionStatus.cpp | 18 +- .../source/model/JobStatus.cpp | 12 +- .../aws-cpp-sdk-iot/source/model/LogLevel.cpp | 12 +- .../source/model/LogTargetType.cpp | 16 +- .../source/model/MessageFormat.cpp | 6 +- .../source/model/MitigationActionType.cpp | 14 +- .../source/model/ModelStatus.cpp | 8 +- .../source/model/NamedShadowIndexingMode.cpp | 6 +- .../source/model/OTAUpdateStatus.cpp | 14 +- .../source/model/PackageVersionAction.cpp | 6 +- .../source/model/PackageVersionStatus.cpp | 8 +- .../source/model/PolicyTemplateName.cpp | 4 +- .../aws-cpp-sdk-iot/source/model/Protocol.cpp | 6 +- .../source/model/ReportType.cpp | 6 +- .../source/model/ResourceType.cpp | 20 +- .../source/model/RetryableFailureType.cpp | 8 +- .../source/model/ServerCertificateStatus.cpp | 6 +- .../source/model/ServiceType.cpp | 8 +- .../aws-cpp-sdk-iot/source/model/Status.cpp | 12 +- .../source/model/TargetSelection.cpp | 6 +- .../source/model/TemplateType.cpp | 6 +- .../model/ThingConnectivityIndexingMode.cpp | 6 +- .../source/model/ThingGroupIndexingMode.cpp | 6 +- .../source/model/ThingIndexingMode.cpp | 8 +- .../model/TopicRuleDestinationStatus.cpp | 12 +- .../source/model/VerificationState.cpp | 10 +- .../source/model/ViolationEventType.cpp | 8 +- .../source/IoT1ClickDevicesServiceErrors.cpp | 12 +- .../source/IoT1ClickProjectsErrors.cpp | 8 +- .../source/IoTAnalyticsErrors.cpp | 8 +- .../source/model/ChannelStatus.cpp | 8 +- .../source/model/ComputeType.cpp | 6 +- .../source/model/DatasetActionType.cpp | 6 +- .../source/model/DatasetContentState.cpp | 8 +- .../source/model/DatasetStatus.cpp | 8 +- .../source/model/DatastoreStatus.cpp | 8 +- .../source/model/FileFormatType.cpp | 6 +- .../source/model/LoggingLevel.cpp | 4 +- .../source/model/ReprocessingStatus.cpp | 10 +- .../source/IoTDeviceAdvisorErrors.cpp | 6 +- .../source/model/AuthenticationMethod.cpp | 6 +- .../source/model/Protocol.cpp | 10 +- .../source/model/Status.cpp | 20 +- .../source/model/SuiteRunStatus.cpp | 20 +- .../source/model/TestCaseScenarioStatus.cpp | 20 +- .../source/model/TestCaseScenarioType.cpp | 6 +- .../source/IoTEventsDataErrors.cpp | 4 +- .../source/model/AlarmStateName.cpp | 14 +- .../source/model/ComparisonOperator.cpp | 14 +- .../source/model/CustomerActionName.cpp | 12 +- .../source/model/ErrorCode.cpp | 12 +- .../source/model/EventType.cpp | 4 +- .../source/model/TriggerType.cpp | 4 +- .../source/IoTEventsErrors.cpp | 12 +- .../source/model/AlarmModelVersionStatus.cpp | 10 +- .../source/model/AnalysisResultLevel.cpp | 8 +- .../source/model/AnalysisStatus.cpp | 8 +- .../source/model/ComparisonOperator.cpp | 14 +- .../model/DetectorModelVersionStatus.cpp | 16 +- .../source/model/EvaluationMethod.cpp | 6 +- .../source/model/InputStatus.cpp | 10 +- .../source/model/LoggingLevel.cpp | 8 +- .../source/model/PayloadType.cpp | 6 +- .../source/IoTFleetHubErrors.cpp | 8 +- .../source/model/ApplicationState.cpp | 12 +- .../source/IoTFleetWiseErrors.cpp | 14 +- .../source/model/CampaignStatus.cpp | 10 +- .../source/model/Compression.cpp | 6 +- .../source/model/DataFormat.cpp | 6 +- .../source/model/DiagnosticsMode.cpp | 6 +- .../source/model/EncryptionStatus.cpp | 8 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/LogType.cpp | 6 +- .../source/model/ManifestStatus.cpp | 6 +- .../model/NetworkInterfaceFailureReason.cpp | 14 +- .../source/model/NetworkInterfaceType.cpp | 6 +- .../source/model/NodeDataType.cpp | 56 +- .../source/model/RegistrationStatus.cpp | 8 +- .../model/SignalDecoderFailureReason.cpp | 20 +- .../source/model/SignalDecoderType.cpp | 6 +- .../source/model/SpoolingMode.cpp | 6 +- .../source/model/StorageCompressionFormat.cpp | 6 +- .../source/model/TriggerMode.cpp | 6 +- .../source/model/UpdateCampaignAction.cpp | 10 +- .../source/model/UpdateMode.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../model/VehicleAssociationBehavior.cpp | 6 +- .../source/model/VehicleState.cpp | 12 +- .../source/IoTSecureTunnelingErrors.cpp | 4 +- .../source/model/ClientMode.cpp | 8 +- .../source/model/ConnectionStatus.cpp | 6 +- .../source/model/TunnelStatus.cpp | 6 +- .../source/IoTSiteWiseErrors.cpp | 14 +- .../source/model/AggregateType.cpp | 14 +- .../source/model/AssetErrorCode.cpp | 4 +- .../source/model/AssetModelState.cpp | 14 +- .../source/model/AssetRelationshipType.cpp | 4 +- .../source/model/AssetState.cpp | 12 +- .../source/model/AuthMode.cpp | 6 +- .../model/BatchEntryCompletionStatus.cpp | 6 +- ...tchGetAssetPropertyAggregatesErrorCode.cpp | 8 +- .../BatchGetAssetPropertyValueErrorCode.cpp | 8 +- ...hGetAssetPropertyValueHistoryErrorCode.cpp | 8 +- .../BatchPutAssetPropertyValueErrorCode.cpp | 20 +- .../source/model/CapabilitySyncStatus.cpp | 10 +- .../source/model/ColumnName.cpp | 18 +- .../source/model/ComputeLocation.cpp | 6 +- .../source/model/ConfigurationState.cpp | 8 +- .../source/model/DetailedErrorCode.cpp | 6 +- .../model/DisassociatedDataStorageState.cpp | 6 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/ErrorCode.cpp | 6 +- .../source/model/ForwardingConfigState.cpp | 6 +- .../source/model/IdentityType.cpp | 8 +- .../source/model/ImageFileType.cpp | 4 +- .../source/model/JobStatus.cpp | 14 +- .../model/ListAssetModelPropertiesFilter.cpp | 6 +- .../model/ListAssetPropertiesFilter.cpp | 6 +- .../source/model/ListAssetsFilter.cpp | 6 +- .../source/model/ListBulkImportJobsFilter.cpp | 16 +- .../source/model/ListTimeSeriesType.cpp | 6 +- .../source/model/LoggingLevel.cpp | 8 +- .../source/model/MonitorErrorCode.cpp | 8 +- .../source/model/Permission.cpp | 6 +- .../source/model/PortalState.cpp | 12 +- .../source/model/PropertyDataType.cpp | 12 +- .../model/PropertyNotificationState.cpp | 6 +- .../source/model/Quality.cpp | 8 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/StorageType.cpp | 6 +- .../source/model/TimeOrdering.cpp | 6 +- .../source/model/TraversalDirection.cpp | 6 +- .../source/model/TraversalType.cpp | 4 +- .../source/model/DefinitionLanguage.cpp | 4 +- .../source/model/DeploymentTarget.cpp | 6 +- .../source/model/EntityFilterName.cpp | 10 +- .../source/model/EntityType.cpp | 22 +- .../source/model/FlowExecutionEventType.cpp | 36 +- .../source/model/FlowExecutionStatus.cpp | 10 +- .../source/model/FlowTemplateFilterName.cpp | 4 +- .../source/model/NamespaceDeletionStatus.cpp | 8 +- .../NamespaceDeletionStatusErrorCodes.cpp | 4 +- .../model/SystemInstanceDeploymentStatus.cpp | 18 +- .../source/model/SystemInstanceFilterName.cpp | 8 +- .../source/model/SystemTemplateFilterName.cpp | 4 +- .../source/model/UploadStatus.cpp | 8 +- .../source/IoTTwinMakerErrors.cpp | 16 +- .../source/model/ColumnType.cpp | 8 +- .../source/model/ComponentUpdateType.cpp | 8 +- .../source/model/ErrorCode.cpp | 12 +- .../source/model/GroupType.cpp | 4 +- .../source/model/InterpolationType.cpp | 4 +- .../source/model/Order.cpp | 6 +- .../source/model/OrderByTime.cpp | 6 +- .../source/model/ParentEntityUpdateType.cpp | 6 +- .../source/model/PricingMode.cpp | 8 +- .../source/model/PricingTier.cpp | 10 +- .../source/model/PropertyGroupUpdateType.cpp | 8 +- .../source/model/PropertyUpdateType.cpp | 8 +- .../source/model/SceneErrorCode.cpp | 4 +- .../source/model/Scope.cpp | 6 +- .../source/model/State.cpp | 12 +- .../source/model/SyncJobState.cpp | 12 +- .../source/model/SyncResourceState.cpp | 12 +- .../source/model/SyncResourceType.cpp | 6 +- .../source/model/Type.cpp | 18 +- .../source/model/UpdateReason.cpp | 12 +- .../source/IoTWirelessErrors.cpp | 8 +- .../source/model/ApplicationConfigType.cpp | 4 +- .../source/model/BatteryLevel.cpp | 8 +- .../source/model/ConnectionStatus.cpp | 6 +- .../source/model/DeviceProfileType.cpp | 6 +- .../source/model/DeviceState.cpp | 10 +- .../source/model/DlClass.cpp | 6 +- .../source/model/DownlinkMode.cpp | 8 +- .../source/model/Event.cpp | 12 +- .../model/EventNotificationPartnerType.cpp | 4 +- .../model/EventNotificationResourceType.cpp | 8 +- .../model/EventNotificationTopicStatus.cpp | 6 +- .../source/model/ExpressionType.cpp | 6 +- .../source/model/FuotaDeviceStatus.cpp | 24 +- .../source/model/FuotaTaskStatus.cpp | 12 +- .../source/model/IdentifierType.cpp | 12 +- .../source/model/ImportTaskStatus.cpp | 14 +- .../source/model/LogLevel.cpp | 8 +- .../source/model/MessageType.cpp | 10 +- .../source/model/MulticastFrameInfo.cpp | 6 +- .../source/model/OnboardStatus.cpp | 10 +- .../source/model/PartnerType.cpp | 4 +- .../source/model/PositionConfigurationFec.cpp | 6 +- .../model/PositionConfigurationStatus.cpp | 6 +- .../source/model/PositionResourceType.cpp | 6 +- .../source/model/PositionSolverProvider.cpp | 4 +- .../source/model/PositionSolverType.cpp | 4 +- .../source/model/PositioningConfigStatus.cpp | 6 +- .../source/model/SigningAlg.cpp | 6 +- .../source/model/SupportedRfRegion.cpp | 28 +- .../source/model/WirelessDeviceEvent.cpp | 12 +- .../source/model/WirelessDeviceFrameInfo.cpp | 6 +- .../source/model/WirelessDeviceIdType.cpp | 10 +- .../model/WirelessDeviceSidewalkStatus.cpp | 10 +- .../source/model/WirelessDeviceType.cpp | 6 +- .../source/model/WirelessGatewayEvent.cpp | 6 +- .../source/model/WirelessGatewayIdType.cpp | 8 +- .../model/WirelessGatewayServiceType.cpp | 6 +- .../WirelessGatewayTaskDefinitionType.cpp | 4 +- .../model/WirelessGatewayTaskStatus.cpp | 14 +- .../source/model/WirelessGatewayType.cpp | 4 +- .../source/IvsrealtimeErrors.cpp | 10 +- .../source/model/EventErrorCode.cpp | 8 +- .../source/model/EventName.cpp | 20 +- .../source/model/ParticipantState.cpp | 6 +- .../model/ParticipantTokenCapability.cpp | 6 +- .../src/aws-cpp-sdk-ivs/source/IVSErrors.cpp | 14 +- .../source/model/ChannelLatencyMode.cpp | 6 +- .../source/model/ChannelType.cpp | 10 +- .../model/RecordingConfigurationState.cpp | 8 +- .../source/model/RecordingMode.cpp | 6 +- .../model/RenditionConfigurationRendition.cpp | 10 +- ...nditionConfigurationRenditionSelection.cpp | 8 +- .../source/model/StreamHealth.cpp | 8 +- .../source/model/StreamState.cpp | 6 +- .../ThumbnailConfigurationResolution.cpp | 10 +- .../model/ThumbnailConfigurationStorage.cpp | 6 +- .../source/model/TranscodePreset.cpp | 6 +- .../source/IvschatErrors.cpp | 10 +- .../source/model/ChatTokenCapability.cpp | 8 +- .../model/CreateLoggingConfigurationState.cpp | 4 +- .../source/model/FallbackResult.cpp | 6 +- .../model/LoggingConfigurationState.cpp | 16 +- .../source/model/ResourceType.cpp | 4 +- .../model/UpdateLoggingConfigurationState.cpp | 4 +- .../model/ValidationExceptionReason.cpp | 8 +- .../aws-cpp-sdk-kafka/source/KafkaErrors.cpp | 16 +- .../source/model/BrokerAZDistribution.cpp | 4 +- .../source/model/ClientBroker.cpp | 8 +- .../source/model/ClusterState.cpp | 18 +- .../source/model/ClusterType.cpp | 6 +- .../source/model/ConfigurationState.cpp | 8 +- .../source/model/EnhancedMonitoring.cpp | 10 +- .../source/model/KafkaVersionStatus.cpp | 6 +- .../source/model/NodeType.cpp | 4 +- .../source/model/StorageMode.cpp | 6 +- .../source/model/UserIdentityType.cpp | 6 +- .../source/model/VpcConnectionState.cpp | 18 +- .../source/KafkaConnectErrors.cpp | 16 +- .../source/model/ConnectorState.cpp | 12 +- .../source/model/CustomPluginContentType.cpp | 6 +- .../source/model/CustomPluginState.cpp | 14 +- .../KafkaClusterClientAuthenticationType.cpp | 6 +- .../KafkaClusterEncryptionInTransitType.cpp | 6 +- .../source/KendraRankingErrors.cpp | 10 +- .../model/RescoreExecutionPlanStatus.cpp | 12 +- .../source/KendraErrors.cpp | 18 +- .../AdditionalResultAttributeValueType.cpp | 4 +- .../source/model/AlfrescoEntity.cpp | 8 +- .../source/model/AttributeSuggestionsMode.cpp | 6 +- .../source/model/ConditionOperator.cpp | 24 +- .../model/ConfluenceAttachmentFieldName.cpp | 24 +- .../model/ConfluenceAuthenticationType.cpp | 6 +- .../source/model/ConfluenceBlogFieldName.cpp | 20 +- .../source/model/ConfluencePageFieldName.cpp | 26 +- .../source/model/ConfluenceSpaceFieldName.cpp | 10 +- .../source/model/ConfluenceVersion.cpp | 6 +- .../source/model/ContentType.cpp | 26 +- .../source/model/DataSourceStatus.cpp | 12 +- .../source/model/DataSourceSyncJobStatus.cpp | 16 +- .../source/model/DataSourceType.cpp | 40 +- .../source/model/DatabaseEngineType.cpp | 10 +- .../model/DocumentAttributeValueType.cpp | 10 +- .../source/model/DocumentStatus.cpp | 14 +- .../source/model/EndpointType.cpp | 4 +- .../source/model/EntityType.cpp | 6 +- .../source/model/ErrorCode.cpp | 6 +- .../source/model/ExperienceStatus.cpp | 10 +- .../source/model/FaqFileFormat.cpp | 8 +- .../source/model/FaqStatus.cpp | 12 +- .../source/model/FeaturedResultsSetStatus.cpp | 6 +- .../source/model/FsxFileSystemType.cpp | 4 +- .../source/model/HighlightType.cpp | 6 +- .../source/model/IndexEdition.cpp | 6 +- .../source/model/IndexStatus.cpp | 14 +- .../source/model/Interval.cpp | 14 +- .../source/model/IssueSubEntity.cpp | 8 +- .../source/model/KeyLocation.cpp | 6 +- .../source/model/MetricType.cpp | 14 +- .../aws-cpp-sdk-kendra/source/model/Mode.cpp | 6 +- .../aws-cpp-sdk-kendra/source/model/Order.cpp | 6 +- .../source/model/Persona.cpp | 6 +- .../source/model/PrincipalMappingStatus.cpp | 12 +- .../source/model/PrincipalType.cpp | 6 +- .../model/QueryIdentifiersEnclosingOption.cpp | 6 +- .../source/model/QueryResultFormat.cpp | 6 +- .../source/model/QueryResultType.cpp | 8 +- .../model/QuerySuggestionsBlockListStatus.cpp | 14 +- .../source/model/QuerySuggestionsStatus.cpp | 6 +- .../source/model/ReadAccessType.cpp | 6 +- .../source/model/RelevanceType.cpp | 6 +- ...SalesforceChatterFeedIncludeFilterType.cpp | 6 +- .../model/SalesforceKnowledgeArticleState.cpp | 8 +- .../model/SalesforceStandardObjectName.cpp | 36 +- .../source/model/ScoreConfidence.cpp | 12 +- .../model/ServiceNowAuthenticationType.cpp | 6 +- .../model/ServiceNowBuildVersionType.cpp | 6 +- .../SharePointOnlineAuthenticationType.cpp | 6 +- .../source/model/SharePointVersion.cpp | 10 +- .../source/model/SlackEntity.cpp | 10 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SuggestionType.cpp | 6 +- .../source/model/ThesaurusStatus.cpp | 14 +- .../aws-cpp-sdk-kendra/source/model/Type.cpp | 6 +- .../source/model/UserContextPolicy.cpp | 6 +- .../source/model/UserGroupResolutionMode.cpp | 6 +- .../source/model/WarningCode.cpp | 4 +- .../source/model/WebCrawlerMode.cpp | 8 +- .../source/KeyspacesErrors.cpp | 8 +- .../model/ClientSideTimestampsStatus.cpp | 4 +- .../source/model/EncryptionType.cpp | 6 +- .../model/PointInTimeRecoveryStatus.cpp | 6 +- .../aws-cpp-sdk-keyspaces/source/model/Rs.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/TableStatus.cpp | 16 +- .../source/model/ThroughputMode.cpp | 6 +- .../source/model/TimeToLiveStatus.cpp | 4 +- .../KinesisVideoArchivedMediaErrors.cpp | 18 +- .../source/model/ClipFragmentSelectorType.cpp | 6 +- .../source/model/ContainerFormat.cpp | 6 +- .../model/DASHDisplayFragmentNumber.cpp | 6 +- .../model/DASHDisplayFragmentTimestamp.cpp | 6 +- .../source/model/DASHFragmentSelectorType.cpp | 6 +- .../source/model/DASHPlaybackMode.cpp | 8 +- .../source/model/Format.cpp | 6 +- .../source/model/FormatConfigKey.cpp | 4 +- .../source/model/FragmentSelectorType.cpp | 6 +- .../source/model/HLSDiscontinuityMode.cpp | 8 +- .../model/HLSDisplayFragmentTimestamp.cpp | 6 +- .../source/model/HLSFragmentSelectorType.cpp | 6 +- .../source/model/HLSPlaybackMode.cpp | 8 +- .../source/model/ImageError.cpp | 6 +- .../source/model/ImageSelectorType.cpp | 6 +- .../source/KinesisVideoMediaErrors.cpp | 12 +- .../source/model/StartSelectorType.cpp | 14 +- .../KinesisVideoSignalingChannelsErrors.cpp | 12 +- .../source/model/Service.cpp | 4 +- .../KinesisVideoWebRTCStorageErrors.cpp | 6 +- .../source/KinesisErrors.cpp | 26 +- .../source/model/ConsumerStatus.cpp | 8 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/MetricsName.cpp | 18 +- .../source/model/ScalingType.cpp | 4 +- .../source/model/ShardFilterType.cpp | 14 +- .../source/model/ShardIteratorType.cpp | 12 +- .../source/model/StreamMode.cpp | 6 +- .../source/model/StreamStatus.cpp | 10 +- .../source/model/SubscribeToShardHandler.cpp | 4 +- .../source/KinesisAnalyticsErrors.cpp | 22 +- .../source/model/ApplicationStatus.cpp | 14 +- .../source/model/InputStartingPosition.cpp | 8 +- .../source/model/RecordFormatType.cpp | 6 +- .../source/KinesisAnalyticsV2Errors.cpp | 24 +- .../source/model/ApplicationMode.cpp | 6 +- .../source/model/ApplicationRestoreType.cpp | 8 +- .../source/model/ApplicationStatus.cpp | 24 +- .../source/model/ArtifactType.cpp | 6 +- .../source/model/CodeContentType.cpp | 6 +- .../source/model/ConfigurationType.cpp | 6 +- .../source/model/InputStartingPosition.cpp | 8 +- .../source/model/LogLevel.cpp | 10 +- .../source/model/MetricsLevel.cpp | 10 +- .../source/model/RecordFormatType.cpp | 6 +- .../source/model/RuntimeEnvironment.cpp | 20 +- .../source/model/SnapshotStatus.cpp | 10 +- .../source/model/UrlType.cpp | 6 +- .../source/KinesisVideoErrors.cpp | 28 +- .../source/model/APIName.cpp | 18 +- .../source/model/ChannelProtocol.cpp | 8 +- .../source/model/ChannelRole.cpp | 6 +- .../source/model/ChannelType.cpp | 6 +- .../source/model/ComparisonOperator.cpp | 4 +- .../source/model/ConfigurationStatus.cpp | 6 +- .../source/model/Format.cpp | 6 +- .../source/model/FormatConfigKey.cpp | 4 +- .../source/model/ImageSelectorType.cpp | 6 +- .../model/MediaStorageConfigurationStatus.cpp | 6 +- .../source/model/MediaUriType.cpp | 6 +- .../source/model/RecorderStatus.cpp | 8 +- .../source/model/Status.cpp | 10 +- .../source/model/StrategyOnFullSize.cpp | 6 +- .../source/model/SyncStatus.cpp | 16 +- .../model/UpdateDataRetentionOperation.cpp | 6 +- .../source/model/UploaderStatus.cpp | 8 +- .../src/aws-cpp-sdk-kms/source/KMSErrors.cpp | 96 +- .../source/model/AlgorithmSpec.cpp | 12 +- .../source/model/ConnectionErrorCodeType.cpp | 38 +- .../source/model/ConnectionStateType.cpp | 12 +- .../source/model/CustomKeyStoreType.cpp | 6 +- .../source/model/DataKeyPairSpec.cpp | 18 +- .../source/model/DataKeySpec.cpp | 6 +- .../source/model/EncryptionAlgorithmSpec.cpp | 10 +- .../source/model/ExpirationModelType.cpp | 6 +- .../source/model/GrantOperation.cpp | 34 +- .../source/model/KeyEncryptionMechanism.cpp | 4 +- .../source/model/KeyManagerType.cpp | 6 +- .../aws-cpp-sdk-kms/source/model/KeySpec.cpp | 28 +- .../aws-cpp-sdk-kms/source/model/KeyState.cpp | 18 +- .../source/model/KeyUsageType.cpp | 8 +- .../source/model/MacAlgorithmSpec.cpp | 10 +- .../source/model/MessageType.cpp | 6 +- .../source/model/MultiRegionKeyType.cpp | 6 +- .../source/model/OriginType.cpp | 10 +- .../source/model/SigningAlgorithmSpec.cpp | 22 +- .../source/model/WrappingKeySpec.cpp | 8 +- .../source/model/XksProxyConnectivityType.cpp | 6 +- .../source/LakeFormationErrors.cpp | 34 +- .../source/model/ComparisonOperator.cpp | 24 +- .../source/model/DataLakeResourceType.cpp | 18 +- .../source/model/FieldNameString.cpp | 8 +- .../source/model/OptimizerType.cpp | 8 +- .../source/model/Permission.cpp | 28 +- .../source/model/PermissionType.cpp | 10 +- .../source/model/QueryStateString.cpp | 12 +- .../source/model/ResourceShareType.cpp | 6 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/TransactionStatus.cpp | 10 +- .../source/model/TransactionStatusFilter.cpp | 12 +- .../source/model/TransactionType.cpp | 6 +- .../source/LambdaErrors.cpp | 74 +- .../source/model/Architecture.cpp | 6 +- .../source/model/CodeSigningPolicy.cpp | 6 +- .../source/model/EndPointType.cpp | 4 +- .../source/model/EventSourcePosition.cpp | 8 +- .../source/model/FullDocument.cpp | 6 +- .../source/model/FunctionResponseType.cpp | 4 +- .../source/model/FunctionUrlAuthType.cpp | 6 +- .../source/model/FunctionVersion.cpp | 4 +- .../source/model/InvocationType.cpp | 8 +- .../source/model/InvokeMode.cpp | 6 +- .../model/InvokeWithResponseStreamHandler.cpp | 6 +- .../source/model/LastUpdateStatus.cpp | 8 +- .../model/LastUpdateStatusReasonCode.cpp | 44 +- .../source/model/LogType.cpp | 6 +- .../source/model/PackageType.cpp | 6 +- .../ProvisionedConcurrencyStatusEnum.cpp | 8 +- .../model/ResponseStreamingInvocationType.cpp | 6 +- .../source/model/Runtime.cpp | 66 +- .../source/model/SnapStartApplyOn.cpp | 6 +- .../model/SnapStartOptimizationStatus.cpp | 6 +- .../source/model/SourceAccessType.cpp | 18 +- .../aws-cpp-sdk-lambda/source/model/State.cpp | 10 +- .../source/model/StateReasonCode.cpp | 50 +- .../source/model/ThrottleReason.cpp | 14 +- .../source/model/TracingMode.cpp | 6 +- .../source/model/UpdateRuntimeOn.cpp | 8 +- .../source/LexModelBuildingServiceErrors.cpp | 14 +- .../source/model/ChannelStatus.cpp | 8 +- .../source/model/ChannelType.cpp | 10 +- .../source/model/ContentType.cpp | 8 +- .../source/model/Destination.cpp | 6 +- .../source/model/ExportStatus.cpp | 8 +- .../source/model/ExportType.cpp | 6 +- .../source/model/FulfillmentActivityType.cpp | 6 +- .../source/model/ImportStatus.cpp | 8 +- .../source/model/Locale.cpp | 28 +- .../source/model/LogType.cpp | 6 +- .../source/model/MergeStrategy.cpp | 6 +- .../source/model/MigrationAlertType.cpp | 6 +- .../source/model/MigrationSortAttribute.cpp | 6 +- .../source/model/MigrationStatus.cpp | 8 +- .../source/model/MigrationStrategy.cpp | 6 +- .../source/model/ObfuscationSetting.cpp | 6 +- .../source/model/ProcessBehavior.cpp | 6 +- .../source/model/ReferenceType.cpp | 10 +- .../source/model/ResourceType.cpp | 8 +- .../source/model/SlotConstraint.cpp | 6 +- .../model/SlotValueSelectionStrategy.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/Status.cpp | 12 +- .../source/model/StatusType.cpp | 6 +- .../source/LexRuntimeServiceErrors.cpp | 20 +- .../source/model/ConfirmationStatus.cpp | 8 +- .../source/model/ContentType.cpp | 4 +- .../source/model/DialogActionType.cpp | 12 +- .../source/model/DialogState.cpp | 14 +- .../source/model/FulfillmentState.cpp | 8 +- .../source/model/MessageFormatType.cpp | 10 +- .../source/LexModelsV2Errors.cpp | 10 +- .../model/AggregatedUtterancesFilterName.cpp | 4 +- .../AggregatedUtterancesFilterOperator.cpp | 6 +- .../AggregatedUtterancesSortAttribute.cpp | 6 +- .../source/model/AnalyticsBinByName.cpp | 6 +- .../model/AnalyticsCommonFilterName.cpp | 12 +- .../source/model/AnalyticsFilterOperator.cpp | 8 +- .../source/model/AnalyticsIntentField.cpp | 8 +- .../model/AnalyticsIntentFilterName.cpp | 20 +- .../model/AnalyticsIntentMetricName.cpp | 12 +- .../model/AnalyticsIntentStageField.cpp | 6 +- .../model/AnalyticsIntentStageFilterName.cpp | 20 +- .../model/AnalyticsIntentStageMetricName.cpp | 12 +- .../source/model/AnalyticsInterval.cpp | 6 +- .../source/model/AnalyticsMetricStatistic.cpp | 8 +- .../source/model/AnalyticsModality.cpp | 10 +- .../source/model/AnalyticsNodeType.cpp | 6 +- .../source/model/AnalyticsSessionField.cpp | 6 +- .../model/AnalyticsSessionFilterName.cpp | 22 +- .../model/AnalyticsSessionMetricName.cpp | 16 +- .../model/AnalyticsSessionSortByName.cpp | 8 +- .../source/model/AnalyticsSortOrder.cpp | 6 +- .../model/AnalyticsUtteranceAttributeName.cpp | 4 +- .../source/model/AnalyticsUtteranceField.cpp | 6 +- .../model/AnalyticsUtteranceFilterName.cpp | 20 +- .../model/AnalyticsUtteranceMetricName.cpp | 10 +- .../model/AnalyticsUtteranceSortByName.cpp | 4 +- .../model/AssociatedTranscriptFilterName.cpp | 6 +- .../source/model/AudioRecognitionStrategy.cpp | 4 +- .../source/model/BotAliasStatus.cpp | 10 +- .../source/model/BotFilterName.cpp | 6 +- .../source/model/BotFilterOperator.cpp | 8 +- .../source/model/BotLocaleFilterName.cpp | 4 +- .../source/model/BotLocaleFilterOperator.cpp | 6 +- .../source/model/BotLocaleSortAttribute.cpp | 4 +- .../source/model/BotLocaleStatus.cpp | 20 +- .../source/model/BotRecommendationStatus.cpp | 20 +- .../source/model/BotSortAttribute.cpp | 4 +- .../source/model/BotStatus.cpp | 18 +- .../source/model/BotType.cpp | 6 +- .../source/model/BotVersionSortAttribute.cpp | 4 +- .../model/BuiltInIntentSortAttribute.cpp | 4 +- .../model/BuiltInSlotTypeSortAttribute.cpp | 4 +- .../source/model/ConversationEndState.cpp | 8 +- .../model/ConversationLogsInputModeFilter.cpp | 6 +- .../source/model/CustomVocabularyStatus.cpp | 12 +- .../source/model/DialogActionType.cpp | 20 +- .../source/model/Effect.cpp | 6 +- .../source/model/ErrorCode.cpp | 10 +- .../source/model/ExportFilterName.cpp | 4 +- .../source/model/ExportFilterOperator.cpp | 6 +- .../source/model/ExportSortAttribute.cpp | 4 +- .../source/model/ExportStatus.cpp | 10 +- .../source/model/ImportExportFileFormat.cpp | 8 +- .../source/model/ImportFilterName.cpp | 4 +- .../source/model/ImportFilterOperator.cpp | 6 +- .../source/model/ImportResourceType.cpp | 10 +- .../source/model/ImportSortAttribute.cpp | 4 +- .../source/model/ImportStatus.cpp | 10 +- .../source/model/IntentFilterName.cpp | 4 +- .../source/model/IntentFilterOperator.cpp | 6 +- .../source/model/IntentSortAttribute.cpp | 6 +- .../source/model/IntentState.cpp | 14 +- .../source/model/MergeStrategy.cpp | 8 +- .../source/model/MessageSelectionStrategy.cpp | 6 +- .../source/model/ObfuscationSettingType.cpp | 6 +- .../source/model/PromptAttempt.cpp | 14 +- .../source/model/SearchOrder.cpp | 6 +- .../source/model/SlotConstraint.cpp | 6 +- .../source/model/SlotFilterName.cpp | 4 +- .../source/model/SlotFilterOperator.cpp | 6 +- .../source/model/SlotShape.cpp | 6 +- .../source/model/SlotSortAttribute.cpp | 6 +- .../source/model/SlotTypeCategory.cpp | 10 +- .../source/model/SlotTypeFilterName.cpp | 6 +- .../source/model/SlotTypeFilterOperator.cpp | 6 +- .../source/model/SlotTypeSortAttribute.cpp | 6 +- .../model/SlotValueResolutionStrategy.cpp | 8 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/TestExecutionApiMode.cpp | 6 +- .../source/model/TestExecutionModality.cpp | 6 +- .../model/TestExecutionSortAttribute.cpp | 6 +- .../source/model/TestExecutionStatus.cpp | 16 +- .../source/model/TestResultMatchStatus.cpp | 8 +- .../source/model/TestResultTypeFilter.cpp | 12 +- .../model/TestSetDiscrepancyReportStatus.cpp | 8 +- .../source/model/TestSetGenerationStatus.cpp | 10 +- .../source/model/TestSetModality.cpp | 6 +- .../source/model/TestSetSortAttribute.cpp | 6 +- .../source/model/TestSetStatus.cpp | 12 +- .../source/model/TimeDimension.cpp | 8 +- .../source/model/TranscriptFormat.cpp | 4 +- .../source/model/UtteranceContentType.cpp | 10 +- .../source/model/VoiceEngine.cpp | 6 +- .../source/LexRuntimeV2Errors.cpp | 10 +- .../source/model/ConfirmationState.cpp | 8 +- .../source/model/ConversationMode.cpp | 6 +- .../source/model/DialogActionType.cpp | 14 +- .../source/model/InputMode.cpp | 8 +- .../source/model/IntentState.cpp | 14 +- .../source/model/MessageContentType.cpp | 10 +- .../model/PlaybackInterruptionReason.cpp | 8 +- .../source/model/SentimentType.cpp | 10 +- .../source/model/Shape.cpp | 8 +- .../source/model/StartConversationHandler.cpp | 14 +- .../source/model/StyleType.cpp | 8 +- ...LicenseManagerLinuxSubscriptionsErrors.cpp | 4 +- .../model/LinuxSubscriptionsDiscovery.cpp | 6 +- .../source/model/Operator.cpp | 8 +- .../source/model/OrganizationIntegration.cpp | 6 +- .../source/model/Status.cpp | 10 +- .../LicenseManagerUserSubscriptionsErrors.cpp | 8 +- .../source/LicenseManagerErrors.cpp | 28 +- .../model/ActivationOverrideBehavior.cpp | 6 +- .../source/model/AllowedOperation.cpp | 16 +- .../source/model/CheckoutType.cpp | 6 +- .../source/model/DigitalSignatureMethod.cpp | 4 +- .../source/model/EntitlementDataUnit.cpp | 56 +- .../source/model/EntitlementUnit.cpp | 56 +- .../source/model/GrantStatus.cpp | 20 +- .../source/model/InventoryFilterCondition.cpp | 10 +- .../model/LicenseConfigurationStatus.cpp | 6 +- .../model/LicenseConversionTaskStatus.cpp | 8 +- .../source/model/LicenseCountingType.cpp | 10 +- .../source/model/LicenseDeletionStatus.cpp | 6 +- .../source/model/LicenseStatus.cpp | 16 +- .../source/model/ReceivedStatus.cpp | 18 +- .../source/model/RenewType.cpp | 8 +- .../source/model/ReportFrequencyType.cpp | 8 +- .../source/model/ReportType.cpp | 6 +- .../source/model/ResourceType.cpp | 12 +- .../source/model/TokenType.cpp | 4 +- .../source/LightsailErrors.cpp | 14 +- .../source/model/AccessDirection.cpp | 6 +- .../source/model/AccessType.cpp | 6 +- .../model/AccountLevelBpaSyncStatus.cpp | 10 +- .../source/model/AddOnType.cpp | 6 +- .../source/model/AlarmState.cpp | 8 +- .../source/model/AppCategory.cpp | 4 +- .../source/model/AutoMountStatus.cpp | 10 +- .../source/model/AutoSnapshotStatus.cpp | 10 +- .../source/model/BPAStatusMessage.cpp | 10 +- .../source/model/BehaviorEnum.cpp | 6 +- .../source/model/BlueprintType.cpp | 6 +- .../source/model/BucketMetricName.cpp | 6 +- .../CertificateDomainValidationStatus.cpp | 8 +- .../source/model/CertificateStatus.cpp | 16 +- .../CloudFormationStackRecordSourceType.cpp | 4 +- .../source/model/ComparisonOperator.cpp | 10 +- .../source/model/ContactMethodStatus.cpp | 8 +- .../ContactMethodVerificationProtocol.cpp | 4 +- .../source/model/ContactProtocol.cpp | 6 +- .../model/ContainerServiceDeploymentState.cpp | 10 +- .../model/ContainerServiceMetricName.cpp | 6 +- .../model/ContainerServicePowerName.cpp | 14 +- .../source/model/ContainerServiceProtocol.cpp | 10 +- .../source/model/ContainerServiceState.cpp | 16 +- .../model/ContainerServiceStateDetailCode.cpp | 20 +- .../source/model/Currency.cpp | 4 +- .../source/model/DiskSnapshotState.cpp | 10 +- .../source/model/DiskState.cpp | 12 +- .../source/model/DistributionMetricName.cpp | 14 +- .../model/DnsRecordCreationStateCode.cpp | 8 +- .../model/ExportSnapshotRecordSourceType.cpp | 6 +- .../source/model/ForwardValues.cpp | 8 +- .../source/model/HeaderEnum.cpp | 32 +- .../source/model/HttpEndpoint.cpp | 6 +- .../source/model/HttpProtocolIpv6.cpp | 6 +- .../source/model/HttpTokens.cpp | 6 +- .../source/model/InstanceAccessProtocol.cpp | 6 +- .../source/model/InstanceHealthReason.cpp | 24 +- .../source/model/InstanceHealthState.cpp | 14 +- .../source/model/InstanceMetadataState.cpp | 6 +- .../source/model/InstanceMetricName.cpp | 20 +- .../source/model/InstancePlatform.cpp | 6 +- .../source/model/InstanceSnapshotState.cpp | 8 +- .../source/model/IpAddressType.cpp | 6 +- .../model/LoadBalancerAttributeName.cpp | 12 +- .../source/model/LoadBalancerMetricName.cpp | 26 +- .../source/model/LoadBalancerProtocol.cpp | 6 +- .../source/model/LoadBalancerState.cpp | 12 +- ...sCertificateDnsRecordCreationStateCode.cpp | 8 +- ...LoadBalancerTlsCertificateDomainStatus.cpp | 8 +- ...oadBalancerTlsCertificateFailureReason.cpp | 12 +- ...oadBalancerTlsCertificateRenewalStatus.cpp | 10 +- ...BalancerTlsCertificateRevocationReason.cpp | 22 +- .../LoadBalancerTlsCertificateStatus.cpp | 18 +- .../source/model/MetricName.cpp | 52 +- .../source/model/MetricStatistic.cpp | 12 +- .../source/model/MetricUnit.cpp | 56 +- .../model/NameServersUpdateStateCode.cpp | 10 +- .../source/model/NetworkProtocol.cpp | 10 +- .../source/model/OperationStatus.cpp | 12 +- .../source/model/OperationType.cpp | 166 +- .../source/model/OriginProtocolPolicyEnum.cpp | 6 +- .../source/model/PortAccessType.cpp | 6 +- .../source/model/PortInfoSourceType.cpp | 10 +- .../source/model/PortState.cpp | 6 +- .../source/model/PricingUnit.cpp | 12 +- .../model/R53HostedZoneDeletionStateCode.cpp | 10 +- .../source/model/RecordState.cpp | 8 +- .../source/model/RegionName.cpp | 32 +- .../source/model/RelationalDatabaseEngine.cpp | 4 +- .../model/RelationalDatabaseMetricName.cpp | 14 +- .../RelationalDatabasePasswordVersion.cpp | 8 +- .../source/model/RenewalStatus.cpp | 10 +- .../source/model/ResourceBucketAccess.cpp | 6 +- .../source/model/ResourceType.cpp | 42 +- .../source/model/Status.cpp | 22 +- .../source/model/StatusType.cpp | 6 +- .../source/model/TreatMissingData.cpp | 10 +- .../source/LocationServiceErrors.cpp | 8 +- .../source/model/BatchItemErrorCode.cpp | 14 +- .../source/model/DimensionUnit.cpp | 6 +- .../source/model/DistanceUnit.cpp | 6 +- .../source/model/IntendedUse.cpp | 6 +- .../source/model/PositionFiltering.cpp | 8 +- .../source/model/RouteMatrixErrorCode.cpp | 14 +- .../source/model/Status.cpp | 6 +- .../source/model/TravelMode.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 12 +- .../source/model/VehicleWeightUnit.cpp | 6 +- .../source/CloudWatchLogsErrors.cpp | 20 +- .../source/model/DataProtectionStatus.cpp | 10 +- .../source/model/Distribution.cpp | 6 +- .../source/model/ExportTaskStatusCode.cpp | 14 +- .../source/model/InheritedProperty.cpp | 4 +- .../aws-cpp-sdk-logs/source/model/OrderBy.cpp | 6 +- .../source/model/PolicyType.cpp | 4 +- .../source/model/QueryStatus.cpp | 16 +- .../aws-cpp-sdk-logs/source/model/Scope.cpp | 4 +- .../source/model/StandardUnit.cpp | 56 +- .../source/LookoutEquipmentErrors.cpp | 8 +- .../source/model/AutoPromotionResult.cpp | 12 +- .../source/model/DataUploadFrequency.cpp | 12 +- .../source/model/DatasetStatus.cpp | 10 +- .../model/InferenceDataImportStrategy.cpp | 8 +- .../source/model/InferenceExecutionStatus.cpp | 8 +- .../source/model/InferenceSchedulerStatus.cpp | 10 +- .../source/model/IngestionJobStatus.cpp | 10 +- .../source/model/LabelRating.cpp | 8 +- .../source/model/LatestInferenceResult.cpp | 6 +- .../source/model/ModelPromoteMode.cpp | 6 +- .../source/model/ModelStatus.cpp | 10 +- .../source/model/ModelVersionSourceType.cpp | 8 +- .../source/model/ModelVersionStatus.cpp | 12 +- .../source/model/Monotonicity.cpp | 8 +- .../model/RetrainingSchedulerStatus.cpp | 10 +- .../source/model/StatisticalIssueStatus.cpp | 6 +- .../source/model/TargetSamplingRate.cpp | 24 +- .../source/LookoutMetricsErrors.cpp | 10 +- .../source/model/AggregationFunction.cpp | 6 +- .../source/model/AlertStatus.cpp | 6 +- .../source/model/AlertType.cpp | 6 +- .../model/AnomalyDetectionTaskStatus.cpp | 12 +- .../model/AnomalyDetectorFailureType.cpp | 10 +- .../source/model/AnomalyDetectorStatus.cpp | 24 +- .../source/model/CSVFileCompression.cpp | 6 +- .../source/model/Confidence.cpp | 8 +- .../source/model/DataQualityMetricType.cpp | 22 +- .../source/model/FilterOperation.cpp | 4 +- .../source/model/Frequency.cpp | 10 +- .../source/model/JsonFileCompression.cpp | 6 +- .../source/model/RelationshipType.cpp | 6 +- .../source/model/SnsFormat.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/LookoutforVisionErrors.cpp | 8 +- .../source/model/DatasetStatus.cpp | 22 +- .../source/model/ModelHostingStatus.cpp | 12 +- .../source/model/ModelPackagingJobStatus.cpp | 10 +- .../source/model/ModelStatus.cpp | 20 +- .../source/model/ResourceType.cpp | 12 +- .../source/model/TargetDevice.cpp | 4 +- .../model/TargetPlatformAccelerator.cpp | 4 +- .../source/model/TargetPlatformArch.cpp | 6 +- .../source/model/TargetPlatformOs.cpp | 4 +- .../source/MainframeModernizationErrors.cpp | 8 +- .../model/ApplicationDeploymentLifecycle.cpp | 6 +- .../source/model/ApplicationLifecycle.cpp | 24 +- .../model/ApplicationVersionLifecycle.cpp | 8 +- .../source/model/BatchJobExecutionStatus.cpp | 20 +- .../source/model/BatchJobType.cpp | 8 +- .../source/model/DataSetTaskLifecycle.cpp | 8 +- .../source/model/DeploymentLifecycle.cpp | 8 +- .../source/model/EngineType.cpp | 6 +- .../source/model/EnvironmentLifecycle.cpp | 12 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/MachineLearningErrors.cpp | 16 +- .../source/model/Algorithm.cpp | 4 +- .../model/BatchPredictionFilterVariable.cpp | 18 +- .../source/model/DataSourceFilterVariable.cpp | 14 +- .../source/model/DetailsAttributes.cpp | 6 +- .../source/model/EntityStatus.cpp | 12 +- .../source/model/EvaluationFilterVariable.cpp | 18 +- .../source/model/MLModelFilterVariable.cpp | 22 +- .../source/model/MLModelType.cpp | 8 +- .../source/model/RealtimeEndpointStatus.cpp | 10 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/TaggableResourceType.cpp | 10 +- .../aws-cpp-sdk-macie/source/MacieErrors.cpp | 8 +- .../model/S3ContinuousClassificationType.cpp | 4 +- .../model/S3OneTimeClassificationType.cpp | 6 +- .../source/Macie2Errors.cpp | 10 +- .../source/model/AdminStatus.cpp | 6 +- .../source/model/AllowListStatusCode.cpp | 18 +- .../model/AllowsUnencryptedObjectUploads.cpp | 8 +- .../source/model/AutomatedDiscoveryStatus.cpp | 6 +- .../source/model/AvailabilityCode.cpp | 6 +- .../source/model/BucketMetadataErrorCode.cpp | 4 +- .../ClassificationScopeUpdateOperation.cpp | 8 +- .../source/model/Currency.cpp | 4 +- .../source/model/DataIdentifierSeverity.cpp | 8 +- .../source/model/DataIdentifierType.cpp | 6 +- .../source/model/DayOfWeek.cpp | 16 +- .../source/model/EffectivePermission.cpp | 8 +- .../source/model/EncryptionType.cpp | 10 +- .../source/model/ErrorCode.cpp | 6 +- .../source/model/FindingActionType.cpp | 4 +- .../source/model/FindingCategory.cpp | 6 +- .../model/FindingPublishingFrequency.cpp | 8 +- .../FindingStatisticsSortAttributeName.cpp | 6 +- .../source/model/FindingType.cpp | 24 +- .../source/model/FindingsFilterAction.cpp | 6 +- .../source/model/GroupBy.cpp | 10 +- .../source/model/IsDefinedInJob.cpp | 8 +- .../source/model/IsMonitoredByJob.cpp | 8 +- .../source/model/JobComparator.cpp | 18 +- .../source/model/JobStatus.cpp | 14 +- .../source/model/JobType.cpp | 6 +- .../source/model/LastRunErrorStatusCode.cpp | 6 +- .../source/model/ListJobsFilterKey.cpp | 10 +- .../model/ListJobsSortAttributeName.cpp | 10 +- .../source/model/MacieStatus.cpp | 6 +- .../model/ManagedDataIdentifierSelector.cpp | 12 +- .../source/model/OrderBy.cpp | 6 +- .../source/model/OriginType.cpp | 6 +- .../source/model/RelationshipStatus.cpp | 22 +- .../source/model/RevealRequestStatus.cpp | 8 +- .../source/model/RevealStatus.cpp | 6 +- .../source/model/ScopeFilterKey.cpp | 10 +- .../model/SearchResourcesComparator.cpp | 6 +- .../SearchResourcesSimpleCriterionKey.cpp | 10 +- .../SearchResourcesSortAttributeName.cpp | 10 +- .../model/SensitiveDataItemCategory.cpp | 10 +- .../source/model/SeverityDescription.cpp | 8 +- .../source/model/SharedAccess.cpp | 10 +- .../source/model/SimpleCriterionKeyForJob.cpp | 10 +- .../source/model/StorageClass.cpp | 20 +- .../source/model/TagTarget.cpp | 4 +- .../source/model/TimeRange.cpp | 6 +- .../aws-cpp-sdk-macie2/source/model/Type.cpp | 8 +- .../source/model/UnavailabilityReasonCode.cpp | 12 +- .../aws-cpp-sdk-macie2/source/model/Unit.cpp | 4 +- .../model/UsageStatisticsFilterComparator.cpp | 16 +- .../source/model/UsageStatisticsFilterKey.cpp | 10 +- .../source/model/UsageStatisticsSortKey.cpp | 10 +- .../source/model/UsageType.cpp | 10 +- .../source/model/UserIdentityType.cpp | 14 +- .../source/ManagedBlockchainQueryErrors.cpp | 6 +- .../source/model/ErrorType.cpp | 6 +- .../source/model/ListTransactionsSortBy.cpp | 4 +- .../source/model/QueryNetwork.cpp | 6 +- .../model/QueryTransactionEventType.cpp | 24 +- .../source/model/QueryTransactionStatus.cpp | 6 +- .../source/model/ResourceType.cpp | 4 +- .../source/model/SortOrder.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/ManagedBlockchainErrors.cpp | 16 +- .../source/model/AccessorStatus.cpp | 8 +- .../source/model/AccessorType.cpp | 4 +- .../source/model/Edition.cpp | 6 +- .../source/model/Framework.cpp | 6 +- .../source/model/InvitationStatus.cpp | 12 +- .../source/model/MemberStatus.cpp | 16 +- .../source/model/NetworkStatus.cpp | 12 +- .../source/model/NodeStatus.cpp | 20 +- .../source/model/ProposalStatus.cpp | 12 +- .../source/model/StateDBType.cpp | 6 +- .../source/model/ThresholdComparator.cpp | 6 +- .../source/model/VoteValue.cpp | 6 +- .../source/MarketplaceCatalogErrors.cpp | 10 +- .../source/model/ChangeStatus.cpp | 12 +- .../source/model/FailureCode.cpp | 6 +- .../source/model/OwnershipType.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../MarketplaceEntitlementServiceErrors.cpp | 6 +- .../source/model/GetEntitlementFilterName.cpp | 6 +- .../MarketplaceCommerceAnalyticsErrors.cpp | 4 +- .../source/model/DataSetType.cpp | 52 +- .../source/model/SupportDataSetType.cpp | 6 +- .../source/MediaConnectErrors.cpp | 24 +- .../source/model/Algorithm.cpp | 8 +- .../source/model/BridgePlacement.cpp | 6 +- .../source/model/BridgeState.cpp | 26 +- .../source/model/Colorimetry.cpp | 16 +- .../source/model/ConnectionStatus.cpp | 6 +- .../source/model/DesiredState.cpp | 8 +- .../source/model/DurationUnits.cpp | 4 +- .../source/model/EncoderProfile.cpp | 6 +- .../source/model/EncodingName.cpp | 10 +- .../source/model/EntitlementStatus.cpp | 6 +- .../source/model/FailoverMode.cpp | 6 +- .../source/model/GatewayState.cpp | 14 +- .../source/model/InstanceState.cpp | 14 +- .../source/model/KeyType.cpp | 8 +- .../source/model/MaintenanceDay.cpp | 16 +- .../source/model/MediaStreamType.cpp | 8 +- .../source/model/NetworkInterfaceType.cpp | 6 +- .../source/model/PriceUnits.cpp | 4 +- .../source/model/Protocol.cpp | 24 +- .../source/model/Range.cpp | 8 +- .../source/model/ReservationState.cpp | 10 +- .../source/model/ResourceType.cpp | 4 +- .../source/model/ScanMode.cpp | 8 +- .../source/model/SourceType.cpp | 6 +- .../source/model/State.cpp | 6 +- .../source/model/Status.cpp | 16 +- .../source/model/Tcs.cpp | 20 +- .../source/MediaConvertErrors.cpp | 14 +- .../AacAudioDescriptionBroadcasterMix.cpp | 6 +- .../source/model/AacCodecProfile.cpp | 8 +- .../source/model/AacCodingMode.cpp | 12 +- .../source/model/AacRateControlMode.cpp | 6 +- .../source/model/AacRawFormat.cpp | 6 +- .../source/model/AacSpecification.cpp | 6 +- .../source/model/AacVbrQuality.cpp | 10 +- .../source/model/Ac3BitstreamMode.cpp | 18 +- .../source/model/Ac3CodingMode.cpp | 10 +- .../model/Ac3DynamicRangeCompressionLine.cpp | 14 +- .../Ac3DynamicRangeCompressionProfile.cpp | 6 +- .../model/Ac3DynamicRangeCompressionRf.cpp | 14 +- .../source/model/Ac3LfeFilter.cpp | 6 +- .../source/model/Ac3MetadataControl.cpp | 6 +- .../source/model/AccelerationMode.cpp | 8 +- .../source/model/AccelerationStatus.cpp | 10 +- .../source/model/AdvancedInputFilter.cpp | 6 +- .../model/AdvancedInputFilterAddTexture.cpp | 6 +- .../model/AdvancedInputFilterSharpen.cpp | 8 +- .../source/model/AfdSignaling.cpp | 8 +- .../source/model/AlphaBehavior.cpp | 6 +- .../source/model/AncillaryConvert608To708.cpp | 6 +- .../model/AncillaryTerminateCaptions.cpp | 6 +- .../source/model/AntiAlias.cpp | 6 +- .../source/model/AudioChannelTag.cpp | 58 +- .../source/model/AudioCodec.cpp | 26 +- .../source/model/AudioDefaultSelection.cpp | 6 +- .../source/model/AudioDurationCorrection.cpp | 10 +- .../source/model/AudioLanguageCodeControl.cpp | 6 +- .../model/AudioNormalizationAlgorithm.cpp | 10 +- .../AudioNormalizationAlgorithmControl.cpp | 6 +- .../AudioNormalizationLoudnessLogging.cpp | 6 +- .../AudioNormalizationPeakCalculation.cpp | 6 +- .../source/model/AudioSelectorType.cpp | 10 +- .../source/model/AudioTypeControl.cpp | 6 +- .../source/model/Av1AdaptiveQuantization.cpp | 14 +- .../source/model/Av1BitDepth.cpp | 6 +- .../source/model/Av1FilmGrainSynthesis.cpp | 6 +- .../source/model/Av1FramerateControl.cpp | 6 +- .../model/Av1FramerateConversionAlgorithm.cpp | 8 +- .../source/model/Av1RateControlMode.cpp | 4 +- .../model/Av1SpatialAdaptiveQuantization.cpp | 6 +- .../source/model/AvcIntraClass.cpp | 10 +- .../source/model/AvcIntraFramerateControl.cpp | 6 +- .../AvcIntraFramerateConversionAlgorithm.cpp | 8 +- .../source/model/AvcIntraInterlaceMode.cpp | 12 +- .../model/AvcIntraScanTypeConversionMode.cpp | 6 +- .../source/model/AvcIntraSlowPal.cpp | 6 +- .../source/model/AvcIntraTelecine.cpp | 6 +- .../model/AvcIntraUhdQualityTuningLevel.cpp | 6 +- .../BandwidthReductionFilterSharpening.cpp | 10 +- .../BandwidthReductionFilterStrength.cpp | 12 +- .../source/model/BillingTagsSource.cpp | 10 +- .../model/BurnInSubtitleStylePassthrough.cpp | 6 +- .../source/model/BurninSubtitleAlignment.cpp | 8 +- .../model/BurninSubtitleApplyFontColor.cpp | 6 +- .../model/BurninSubtitleBackgroundColor.cpp | 10 +- .../model/BurninSubtitleFallbackFont.cpp | 12 +- .../source/model/BurninSubtitleFontColor.cpp | 18 +- .../model/BurninSubtitleOutlineColor.cpp | 16 +- .../model/BurninSubtitleShadowColor.cpp | 10 +- .../model/BurninSubtitleTeletextSpacing.cpp | 8 +- .../source/model/CaptionDestinationType.cpp | 26 +- .../CaptionSourceConvertPaintOnToPopOn.cpp | 6 +- .../source/model/CaptionSourceType.cpp | 30 +- .../source/model/CmafClientCache.cpp | 6 +- .../source/model/CmafCodecSpecification.cpp | 6 +- .../source/model/CmafEncryptionType.cpp | 6 +- .../source/model/CmafImageBasedTrickPlay.cpp | 10 +- .../CmafInitializationVectorInManifest.cpp | 6 +- .../source/model/CmafIntervalCadence.cpp | 6 +- .../source/model/CmafKeyProviderType.cpp | 6 +- .../source/model/CmafManifestCompression.cpp | 6 +- .../model/CmafManifestDurationFormat.cpp | 6 +- .../model/CmafMpdManifestBandwidthType.cpp | 6 +- .../source/model/CmafMpdProfile.cpp | 6 +- .../model/CmafPtsOffsetHandlingForBFrames.cpp | 6 +- .../source/model/CmafSegmentControl.cpp | 6 +- .../source/model/CmafSegmentLengthControl.cpp | 6 +- .../source/model/CmafStreamInfResolution.cpp | 6 +- .../CmafTargetDurationCompatibilityMode.cpp | 6 +- .../model/CmafVideoCompositionOffsets.cpp | 6 +- .../source/model/CmafWriteDASHManifest.cpp | 6 +- .../source/model/CmafWriteHLSManifest.cpp | 6 +- ...afWriteSegmentTimelineInRepresentation.cpp | 6 +- .../source/model/CmfcAudioDuration.cpp | 6 +- .../source/model/CmfcAudioTrackType.cpp | 10 +- .../model/CmfcDescriptiveVideoServiceFlag.cpp | 6 +- .../source/model/CmfcIFrameOnlyManifest.cpp | 6 +- .../source/model/CmfcKlvMetadata.cpp | 6 +- .../model/CmfcManifestMetadataSignaling.cpp | 6 +- .../source/model/CmfcScte35Esam.cpp | 6 +- .../source/model/CmfcScte35Source.cpp | 6 +- .../source/model/CmfcTimedMetadata.cpp | 6 +- .../model/CmfcTimedMetadataBoxVersion.cpp | 6 +- .../source/model/ColorMetadata.cpp | 6 +- .../source/model/ColorSpace.cpp | 18 +- .../source/model/ColorSpaceConversion.cpp | 18 +- .../source/model/ColorSpaceUsage.cpp | 6 +- .../source/model/Commitment.cpp | 4 +- .../source/model/ContainerType.cpp | 24 +- .../source/model/CopyProtectionAction.cpp | 6 +- ...hIsoGroupAudioChannelConfigSchemeIdUri.cpp | 6 +- .../source/model/DashIsoHbbtvCompliance.cpp | 6 +- .../model/DashIsoImageBasedTrickPlay.cpp | 10 +- .../source/model/DashIsoIntervalCadence.cpp | 6 +- .../model/DashIsoMpdManifestBandwidthType.cpp | 6 +- .../source/model/DashIsoMpdProfile.cpp | 6 +- .../DashIsoPlaybackDeviceCompatibility.cpp | 6 +- .../DashIsoPtsOffsetHandlingForBFrames.cpp | 6 +- .../source/model/DashIsoSegmentControl.cpp | 6 +- .../model/DashIsoSegmentLengthControl.cpp | 6 +- .../model/DashIsoVideoCompositionOffsets.cpp | 6 +- ...soWriteSegmentTimelineInRepresentation.cpp | 6 +- .../source/model/DashManifestStyle.cpp | 8 +- .../source/model/DecryptionMode.cpp | 8 +- .../source/model/DeinterlaceAlgorithm.cpp | 12 +- .../source/model/DeinterlacerControl.cpp | 6 +- .../source/model/DeinterlacerMode.cpp | 8 +- .../source/model/DescribeEndpointsMode.cpp | 6 +- .../source/model/DolbyVisionLevel6Mode.cpp | 8 +- .../source/model/DolbyVisionMapping.cpp | 6 +- .../source/model/DolbyVisionProfile.cpp | 6 +- .../source/model/DropFrameTimecode.cpp | 6 +- .../model/DvbSubSubtitleFallbackFont.cpp | 12 +- .../source/model/DvbSubtitleAlignment.cpp | 8 +- .../model/DvbSubtitleApplyFontColor.cpp | 6 +- .../model/DvbSubtitleBackgroundColor.cpp | 10 +- .../source/model/DvbSubtitleFontColor.cpp | 18 +- .../source/model/DvbSubtitleOutlineColor.cpp | 16 +- .../source/model/DvbSubtitleShadowColor.cpp | 10 +- .../model/DvbSubtitleStylePassthrough.cpp | 6 +- .../model/DvbSubtitleTeletextSpacing.cpp | 8 +- .../source/model/DvbSubtitlingType.cpp | 6 +- .../source/model/DvbddsHandling.cpp | 8 +- .../source/model/Eac3AtmosBitstreamMode.cpp | 4 +- .../source/model/Eac3AtmosCodingMode.cpp | 10 +- .../model/Eac3AtmosDialogueIntelligence.cpp | 6 +- .../source/model/Eac3AtmosDownmixControl.cpp | 6 +- .../Eac3AtmosDynamicRangeCompressionLine.cpp | 14 +- .../Eac3AtmosDynamicRangeCompressionRf.cpp | 14 +- .../model/Eac3AtmosDynamicRangeControl.cpp | 6 +- .../source/model/Eac3AtmosMeteringMode.cpp | 12 +- .../source/model/Eac3AtmosStereoDownmix.cpp | 10 +- .../source/model/Eac3AtmosSurroundExMode.cpp | 8 +- .../source/model/Eac3AttenuationControl.cpp | 6 +- .../source/model/Eac3BitstreamMode.cpp | 12 +- .../source/model/Eac3CodingMode.cpp | 8 +- .../source/model/Eac3DcFilter.cpp | 6 +- .../model/Eac3DynamicRangeCompressionLine.cpp | 14 +- .../model/Eac3DynamicRangeCompressionRf.cpp | 14 +- .../source/model/Eac3LfeControl.cpp | 6 +- .../source/model/Eac3LfeFilter.cpp | 6 +- .../source/model/Eac3MetadataControl.cpp | 6 +- .../source/model/Eac3PassthroughControl.cpp | 6 +- .../source/model/Eac3PhaseControl.cpp | 6 +- .../source/model/Eac3StereoDownmix.cpp | 10 +- .../source/model/Eac3SurroundExMode.cpp | 8 +- .../source/model/Eac3SurroundMode.cpp | 8 +- .../source/model/EmbeddedConvert608To708.cpp | 6 +- .../model/EmbeddedTerminateCaptions.cpp | 6 +- .../source/model/EmbeddedTimecodeOverride.cpp | 6 +- .../source/model/F4vMoovPlacement.cpp | 6 +- .../model/FileSourceConvert608To708.cpp | 6 +- .../source/model/FileSourceTimeDeltaUnits.cpp | 6 +- .../source/model/FontScript.cpp | 8 +- .../source/model/H264AdaptiveQuantization.cpp | 16 +- .../source/model/H264CodecLevel.cpp | 36 +- .../source/model/H264CodecProfile.cpp | 14 +- .../source/model/H264DynamicSubGop.cpp | 6 +- .../source/model/H264EndOfStreamMarkers.cpp | 6 +- .../source/model/H264EntropyEncoding.cpp | 6 +- .../source/model/H264FieldEncoding.cpp | 8 +- .../model/H264FlickerAdaptiveQuantization.cpp | 6 +- .../source/model/H264FramerateControl.cpp | 6 +- .../H264FramerateConversionAlgorithm.cpp | 8 +- .../source/model/H264GopBReference.cpp | 6 +- .../source/model/H264GopSizeUnits.cpp | 8 +- .../source/model/H264InterlaceMode.cpp | 12 +- .../source/model/H264ParControl.cpp | 6 +- .../source/model/H264QualityTuningLevel.cpp | 8 +- .../source/model/H264RateControlMode.cpp | 8 +- .../source/model/H264RepeatPps.cpp | 6 +- .../model/H264ScanTypeConversionMode.cpp | 6 +- .../source/model/H264SceneChangeDetect.cpp | 8 +- .../source/model/H264SlowPal.cpp | 6 +- .../model/H264SpatialAdaptiveQuantization.cpp | 6 +- .../source/model/H264Syntax.cpp | 6 +- .../source/model/H264Telecine.cpp | 8 +- .../H264TemporalAdaptiveQuantization.cpp | 6 +- .../model/H264UnregisteredSeiTimecode.cpp | 6 +- .../source/model/H265AdaptiveQuantization.cpp | 16 +- .../H265AlternateTransferFunctionSei.cpp | 6 +- .../source/model/H265CodecLevel.cpp | 30 +- .../source/model/H265CodecProfile.cpp | 18 +- .../source/model/H265DynamicSubGop.cpp | 6 +- .../source/model/H265EndOfStreamMarkers.cpp | 6 +- .../model/H265FlickerAdaptiveQuantization.cpp | 6 +- .../source/model/H265FramerateControl.cpp | 6 +- .../H265FramerateConversionAlgorithm.cpp | 8 +- .../source/model/H265GopBReference.cpp | 6 +- .../source/model/H265GopSizeUnits.cpp | 8 +- .../source/model/H265InterlaceMode.cpp | 12 +- .../source/model/H265ParControl.cpp | 6 +- .../source/model/H265QualityTuningLevel.cpp | 8 +- .../source/model/H265RateControlMode.cpp | 8 +- .../H265SampleAdaptiveOffsetFilterMode.cpp | 8 +- .../model/H265ScanTypeConversionMode.cpp | 6 +- .../source/model/H265SceneChangeDetect.cpp | 8 +- .../source/model/H265SlowPal.cpp | 6 +- .../model/H265SpatialAdaptiveQuantization.cpp | 6 +- .../source/model/H265Telecine.cpp | 8 +- .../H265TemporalAdaptiveQuantization.cpp | 6 +- .../source/model/H265TemporalIds.cpp | 6 +- .../source/model/H265Tiles.cpp | 6 +- .../model/H265UnregisteredSeiTimecode.cpp | 6 +- .../model/H265WriteMp4PackagingType.cpp | 6 +- .../source/model/HDRToSDRToneMapper.cpp | 6 +- .../source/model/HlsAdMarkers.cpp | 6 +- .../source/model/HlsAudioOnlyContainer.cpp | 6 +- .../source/model/HlsAudioOnlyHeader.cpp | 6 +- .../source/model/HlsAudioTrackType.cpp | 10 +- .../model/HlsCaptionLanguageSetting.cpp | 8 +- .../model/HlsCaptionSegmentLengthControl.cpp | 6 +- .../source/model/HlsClientCache.cpp | 6 +- .../source/model/HlsCodecSpecification.cpp | 6 +- .../model/HlsDescriptiveVideoServiceFlag.cpp | 6 +- .../source/model/HlsDirectoryStructure.cpp | 6 +- .../source/model/HlsEncryptionType.cpp | 6 +- .../source/model/HlsIFrameOnlyManifest.cpp | 6 +- .../source/model/HlsImageBasedTrickPlay.cpp | 10 +- .../HlsInitializationVectorInManifest.cpp | 6 +- .../source/model/HlsIntervalCadence.cpp | 6 +- .../source/model/HlsKeyProviderType.cpp | 6 +- .../source/model/HlsManifestCompression.cpp | 6 +- .../model/HlsManifestDurationFormat.cpp | 6 +- .../source/model/HlsOfflineEncrypted.cpp | 6 +- .../source/model/HlsOutputSelection.cpp | 6 +- .../source/model/HlsProgramDateTime.cpp | 6 +- .../model/HlsProgressiveWriteHlsManifest.cpp | 6 +- .../source/model/HlsSegmentControl.cpp | 6 +- .../source/model/HlsSegmentLengthControl.cpp | 6 +- .../source/model/HlsStreamInfResolution.cpp | 6 +- .../HlsTargetDurationCompatibilityMode.cpp | 6 +- .../source/model/HlsTimedMetadataId3Frame.cpp | 8 +- .../source/model/ImscAccessibilitySubs.cpp | 6 +- .../source/model/ImscStylePassthrough.cpp | 6 +- .../source/model/InputDeblockFilter.cpp | 6 +- .../source/model/InputDenoiseFilter.cpp | 6 +- .../source/model/InputFilterEnable.cpp | 8 +- .../source/model/InputPolicy.cpp | 6 +- .../source/model/InputPsiControl.cpp | 6 +- .../source/model/InputRotate.cpp | 12 +- .../source/model/InputSampleRange.cpp | 8 +- .../source/model/InputScanType.cpp | 6 +- .../source/model/InputTimecodeSource.cpp | 8 +- .../source/model/JobPhase.cpp | 8 +- .../source/model/JobStatus.cpp | 12 +- .../source/model/JobTemplateListBy.cpp | 8 +- .../source/model/LanguageCode.cpp | 390 ++--- .../source/model/M2tsAudioBufferModel.cpp | 6 +- .../source/model/M2tsAudioDuration.cpp | 6 +- .../source/model/M2tsBufferModel.cpp | 6 +- .../source/model/M2tsDataPtsControl.cpp | 6 +- .../source/model/M2tsEbpAudioInterval.cpp | 6 +- .../source/model/M2tsEbpPlacement.cpp | 6 +- .../source/model/M2tsEsRateInPes.cpp | 6 +- .../source/model/M2tsForceTsVideoEbpOrder.cpp | 6 +- .../source/model/M2tsKlvMetadata.cpp | 6 +- .../source/model/M2tsNielsenId3.cpp | 6 +- .../source/model/M2tsPcrControl.cpp | 6 +- .../source/model/M2tsRateMode.cpp | 6 +- .../source/model/M2tsScte35Source.cpp | 6 +- .../source/model/M2tsSegmentationMarkers.cpp | 14 +- .../source/model/M2tsSegmentationStyle.cpp | 6 +- .../source/model/M3u8AudioDuration.cpp | 6 +- .../source/model/M3u8DataPtsControl.cpp | 6 +- .../source/model/M3u8NielsenId3.cpp | 6 +- .../source/model/M3u8PcrControl.cpp | 6 +- .../source/model/M3u8Scte35Source.cpp | 6 +- .../source/model/MotionImageInsertionMode.cpp | 6 +- .../source/model/MotionImagePlayback.cpp | 6 +- .../source/model/MovClapAtom.cpp | 6 +- .../source/model/MovCslgAtom.cpp | 6 +- .../source/model/MovMpeg2FourCCControl.cpp | 6 +- .../source/model/MovPaddingControl.cpp | 6 +- .../source/model/MovReference.cpp | 6 +- .../source/model/Mp3RateControlMode.cpp | 6 +- .../source/model/Mp4CslgAtom.cpp | 6 +- .../source/model/Mp4FreeSpaceBox.cpp | 6 +- .../source/model/Mp4MoovPlacement.cpp | 6 +- .../model/MpdAccessibilityCaptionHints.cpp | 6 +- .../source/model/MpdAudioDuration.cpp | 6 +- .../source/model/MpdCaptionContainerType.cpp | 6 +- .../source/model/MpdKlvMetadata.cpp | 6 +- .../model/MpdManifestMetadataSignaling.cpp | 6 +- .../source/model/MpdScte35Esam.cpp | 6 +- .../source/model/MpdScte35Source.cpp | 6 +- .../source/model/MpdTimedMetadata.cpp | 6 +- .../model/MpdTimedMetadataBoxVersion.cpp | 6 +- .../model/Mpeg2AdaptiveQuantization.cpp | 10 +- .../source/model/Mpeg2CodecLevel.cpp | 12 +- .../source/model/Mpeg2CodecProfile.cpp | 6 +- .../source/model/Mpeg2DynamicSubGop.cpp | 6 +- .../source/model/Mpeg2FramerateControl.cpp | 6 +- .../Mpeg2FramerateConversionAlgorithm.cpp | 8 +- .../source/model/Mpeg2GopSizeUnits.cpp | 6 +- .../source/model/Mpeg2InterlaceMode.cpp | 12 +- .../source/model/Mpeg2IntraDcPrecision.cpp | 12 +- .../source/model/Mpeg2ParControl.cpp | 6 +- .../source/model/Mpeg2QualityTuningLevel.cpp | 6 +- .../source/model/Mpeg2RateControlMode.cpp | 6 +- .../model/Mpeg2ScanTypeConversionMode.cpp | 6 +- .../source/model/Mpeg2SceneChangeDetect.cpp | 6 +- .../source/model/Mpeg2SlowPal.cpp | 6 +- .../Mpeg2SpatialAdaptiveQuantization.cpp | 6 +- .../source/model/Mpeg2Syntax.cpp | 6 +- .../source/model/Mpeg2Telecine.cpp | 8 +- .../Mpeg2TemporalAdaptiveQuantization.cpp | 6 +- .../model/MsSmoothAudioDeduplication.cpp | 6 +- .../model/MsSmoothFragmentLengthControl.cpp | 6 +- .../source/model/MsSmoothManifestEncoding.cpp | 6 +- .../source/model/MxfAfdSignaling.cpp | 6 +- .../source/model/MxfProfile.cpp | 12 +- .../source/model/MxfXavcDurationMode.cpp | 6 +- .../NielsenActiveWatermarkProcessType.cpp | 8 +- .../NielsenSourceWatermarkStatusType.cpp | 6 +- .../NielsenUniqueTicPerAudioTrackType.cpp | 6 +- .../NoiseFilterPostTemporalSharpening.cpp | 8 +- ...seFilterPostTemporalSharpeningStrength.cpp | 8 +- .../source/model/NoiseReducerFilter.cpp | 18 +- .../source/model/Order.cpp | 6 +- .../source/model/OutputGroupType.cpp | 12 +- .../source/model/OutputSdt.cpp | 10 +- .../source/model/PadVideo.cpp | 6 +- .../source/model/PresetListBy.cpp | 8 +- .../source/model/PricingPlan.cpp | 6 +- .../source/model/ProresChromaSampling.cpp | 6 +- .../source/model/ProresCodecProfile.cpp | 14 +- .../source/model/ProresFramerateControl.cpp | 6 +- .../ProresFramerateConversionAlgorithm.cpp | 8 +- .../source/model/ProresInterlaceMode.cpp | 12 +- .../source/model/ProresParControl.cpp | 6 +- .../model/ProresScanTypeConversionMode.cpp | 6 +- .../source/model/ProresSlowPal.cpp | 6 +- .../source/model/ProresTelecine.cpp | 6 +- .../source/model/QueueListBy.cpp | 6 +- .../source/model/QueueStatus.cpp | 6 +- .../source/model/RenewalType.cpp | 6 +- .../source/model/RequiredFlag.cpp | 6 +- .../source/model/ReservationPlanStatus.cpp | 6 +- .../source/model/RespondToAfd.cpp | 8 +- .../source/model/RuleType.cpp | 10 +- .../source/model/S3ObjectCannedAcl.cpp | 10 +- .../model/S3ServerSideEncryptionType.cpp | 6 +- .../source/model/S3StorageClass.cpp | 16 +- .../source/model/SampleRangeConversion.cpp | 8 +- .../source/model/ScalingBehavior.cpp | 6 +- .../source/model/SccDestinationFramerate.cpp | 12 +- .../source/model/SimulateReservedQueue.cpp | 6 +- .../source/model/SrtStylePassthrough.cpp | 6 +- .../source/model/StatusUpdateInterval.cpp | 32 +- .../source/model/TeletextPageType.cpp | 12 +- .../source/model/TimecodeBurninPosition.cpp | 20 +- .../source/model/TimecodeSource.cpp | 8 +- .../source/model/TimedMetadata.cpp | 6 +- .../source/model/TsPtsOffset.cpp | 6 +- .../source/model/TtmlStylePassthrough.cpp | 6 +- .../source/model/Type.cpp | 6 +- .../source/model/Vc3Class.cpp | 8 +- .../source/model/Vc3FramerateControl.cpp | 6 +- .../model/Vc3FramerateConversionAlgorithm.cpp | 8 +- .../source/model/Vc3InterlaceMode.cpp | 6 +- .../model/Vc3ScanTypeConversionMode.cpp | 6 +- .../source/model/Vc3SlowPal.cpp | 6 +- .../source/model/Vc3Telecine.cpp | 6 +- .../source/model/VchipAction.cpp | 6 +- .../source/model/VideoCodec.cpp | 26 +- .../source/model/VideoTimecodeInsertion.cpp | 6 +- .../source/model/Vp8FramerateControl.cpp | 6 +- .../model/Vp8FramerateConversionAlgorithm.cpp | 8 +- .../source/model/Vp8ParControl.cpp | 6 +- .../source/model/Vp8QualityTuningLevel.cpp | 6 +- .../source/model/Vp8RateControlMode.cpp | 4 +- .../source/model/Vp9FramerateControl.cpp | 6 +- .../model/Vp9FramerateConversionAlgorithm.cpp | 8 +- .../source/model/Vp9ParControl.cpp | 6 +- .../source/model/Vp9QualityTuningLevel.cpp | 6 +- .../source/model/Vp9RateControlMode.cpp | 4 +- .../source/model/WatermarkingStrength.cpp | 12 +- .../source/model/WavFormat.cpp | 6 +- .../source/model/WebvttAccessibilitySubs.cpp | 6 +- .../source/model/WebvttStylePassthrough.cpp | 8 +- .../model/Xavc4kIntraCbgProfileClass.cpp | 8 +- .../model/Xavc4kIntraVbrProfileClass.cpp | 8 +- .../model/Xavc4kProfileBitrateClass.cpp | 8 +- .../model/Xavc4kProfileCodecProfile.cpp | 6 +- .../model/Xavc4kProfileQualityTuningLevel.cpp | 8 +- .../source/model/XavcAdaptiveQuantization.cpp | 16 +- .../source/model/XavcEntropyEncoding.cpp | 8 +- .../model/XavcFlickerAdaptiveQuantization.cpp | 6 +- .../source/model/XavcFramerateControl.cpp | 6 +- .../XavcFramerateConversionAlgorithm.cpp | 8 +- .../source/model/XavcGopBReference.cpp | 6 +- .../model/XavcHdIntraCbgProfileClass.cpp | 8 +- .../model/XavcHdProfileBitrateClass.cpp | 8 +- .../model/XavcHdProfileQualityTuningLevel.cpp | 8 +- .../source/model/XavcHdProfileTelecine.cpp | 6 +- .../source/model/XavcInterlaceMode.cpp | 12 +- .../source/model/XavcProfile.cpp | 12 +- .../source/model/XavcSlowPal.cpp | 6 +- .../model/XavcSpatialAdaptiveQuantization.cpp | 6 +- .../XavcTemporalAdaptiveQuantization.cpp | 6 +- .../source/MediaLiveErrors.cpp | 20 +- .../source/model/AacCodingMode.cpp | 12 +- .../source/model/AacInputType.cpp | 6 +- .../source/model/AacProfile.cpp | 8 +- .../source/model/AacRateControlMode.cpp | 6 +- .../source/model/AacRawFormat.cpp | 6 +- .../source/model/AacSpec.cpp | 6 +- .../source/model/AacVbrQuality.cpp | 10 +- .../source/model/Ac3AttenuationControl.cpp | 6 +- .../source/model/Ac3BitstreamMode.cpp | 18 +- .../source/model/Ac3CodingMode.cpp | 10 +- .../source/model/Ac3DrcProfile.cpp | 6 +- .../source/model/Ac3LfeFilter.cpp | 6 +- .../source/model/Ac3MetadataControl.cpp | 6 +- .../source/model/AcceptHeader.cpp | 4 +- .../source/model/AccessibilityType.cpp | 6 +- .../source/model/AfdSignaling.cpp | 8 +- .../AudioDescriptionAudioTypeControl.cpp | 6 +- .../AudioDescriptionLanguageCodeControl.cpp | 6 +- .../model/AudioLanguageSelectionPolicy.cpp | 6 +- .../model/AudioNormalizationAlgorithm.cpp | 6 +- .../AudioNormalizationAlgorithmControl.cpp | 4 +- .../source/model/AudioOnlyHlsSegmentType.cpp | 6 +- .../source/model/AudioOnlyHlsTrackType.cpp | 10 +- .../source/model/AudioType.cpp | 10 +- .../source/model/AuthenticationScheme.cpp | 6 +- .../source/model/AvailBlankingState.cpp | 6 +- .../model/BlackoutSlateNetworkEndBlackout.cpp | 6 +- .../source/model/BlackoutSlateState.cpp | 6 +- .../source/model/BurnInAlignment.cpp | 8 +- .../source/model/BurnInBackgroundColor.cpp | 8 +- .../source/model/BurnInFontColor.cpp | 14 +- .../source/model/BurnInOutlineColor.cpp | 14 +- .../source/model/BurnInShadowColor.cpp | 8 +- .../model/BurnInTeletextGridControl.cpp | 6 +- .../source/model/CdiInputResolution.cpp | 10 +- .../source/model/ChannelClass.cpp | 6 +- .../source/model/ChannelState.cpp | 24 +- .../source/model/ContentType.cpp | 4 +- .../source/model/DeviceSettingsSyncState.cpp | 6 +- .../source/model/DeviceUpdateStatus.cpp | 8 +- .../source/model/DolbyEProgramSelection.cpp | 20 +- .../source/model/DvbSdtOutputSdt.cpp | 10 +- .../model/DvbSubDestinationAlignment.cpp | 8 +- .../DvbSubDestinationBackgroundColor.cpp | 8 +- .../model/DvbSubDestinationFontColor.cpp | 14 +- .../model/DvbSubDestinationOutlineColor.cpp | 14 +- .../model/DvbSubDestinationShadowColor.cpp | 8 +- .../DvbSubDestinationTeletextGridControl.cpp | 6 +- .../source/model/DvbSubOcrLanguage.cpp | 14 +- .../source/model/Eac3AtmosCodingMode.cpp | 8 +- .../source/model/Eac3AtmosDrcLine.cpp | 14 +- .../source/model/Eac3AtmosDrcRf.cpp | 14 +- .../source/model/Eac3AttenuationControl.cpp | 6 +- .../source/model/Eac3BitstreamMode.cpp | 12 +- .../source/model/Eac3CodingMode.cpp | 8 +- .../source/model/Eac3DcFilter.cpp | 6 +- .../source/model/Eac3DrcLine.cpp | 14 +- .../source/model/Eac3DrcRf.cpp | 14 +- .../source/model/Eac3LfeControl.cpp | 6 +- .../source/model/Eac3LfeFilter.cpp | 6 +- .../source/model/Eac3MetadataControl.cpp | 6 +- .../source/model/Eac3PassthroughControl.cpp | 6 +- .../source/model/Eac3PhaseControl.cpp | 6 +- .../source/model/Eac3StereoDownmix.cpp | 10 +- .../source/model/Eac3SurroundExMode.cpp | 8 +- .../source/model/Eac3SurroundMode.cpp | 8 +- .../model/EbuTtDDestinationStyleControl.cpp | 6 +- .../source/model/EbuTtDFillLineGapControl.cpp | 6 +- .../source/model/EmbeddedConvert608To708.cpp | 6 +- .../source/model/EmbeddedScte20Detection.cpp | 6 +- ...ActivationsInputPrepareScheduleActions.cpp | 6 +- .../source/model/FecOutputIncludeFec.cpp | 6 +- .../source/model/FixedAfd.cpp | 24 +- .../source/model/Fmp4NielsenId3Behavior.cpp | 6 +- .../model/Fmp4TimedMetadataBehavior.cpp | 6 +- .../source/model/FollowPoint.cpp | 6 +- .../source/model/FrameCaptureIntervalUnit.cpp | 6 +- .../GlobalConfigurationInputEndAction.cpp | 6 +- .../GlobalConfigurationLowFramerateInputs.cpp | 6 +- .../GlobalConfigurationOutputLockingMode.cpp | 6 +- .../GlobalConfigurationOutputTimingSource.cpp | 6 +- .../source/model/H264AdaptiveQuantization.cpp | 16 +- .../source/model/H264ColorMetadata.cpp | 6 +- .../source/model/H264EntropyEncoding.cpp | 6 +- .../source/model/H264FlickerAq.cpp | 6 +- .../source/model/H264ForceFieldPictures.cpp | 6 +- .../source/model/H264FramerateControl.cpp | 6 +- .../source/model/H264GopBReference.cpp | 6 +- .../source/model/H264GopSizeUnits.cpp | 6 +- .../source/model/H264Level.cpp | 36 +- .../source/model/H264LookAheadRateControl.cpp | 8 +- .../source/model/H264ParControl.cpp | 6 +- .../source/model/H264Profile.cpp | 14 +- .../source/model/H264QualityLevel.cpp | 6 +- .../source/model/H264RateControlMode.cpp | 10 +- .../source/model/H264ScanType.cpp | 6 +- .../source/model/H264SceneChangeDetect.cpp | 6 +- .../source/model/H264SpatialAq.cpp | 6 +- .../source/model/H264SubGopLength.cpp | 6 +- .../source/model/H264Syntax.cpp | 6 +- .../source/model/H264TemporalAq.cpp | 6 +- .../model/H264TimecodeInsertionBehavior.cpp | 6 +- .../source/model/H265AdaptiveQuantization.cpp | 16 +- .../model/H265AlternativeTransferFunction.cpp | 6 +- .../source/model/H265ColorMetadata.cpp | 6 +- .../source/model/H265FlickerAq.cpp | 6 +- .../source/model/H265GopSizeUnits.cpp | 6 +- .../source/model/H265Level.cpp | 30 +- .../source/model/H265LookAheadRateControl.cpp | 8 +- .../source/model/H265Profile.cpp | 6 +- .../source/model/H265RateControlMode.cpp | 8 +- .../source/model/H265ScanType.cpp | 6 +- .../source/model/H265SceneChangeDetect.cpp | 6 +- .../source/model/H265Tier.cpp | 6 +- .../model/H265TimecodeInsertionBehavior.cpp | 6 +- .../source/model/HlsAdMarkers.cpp | 8 +- .../model/HlsAkamaiHttpTransferMode.cpp | 6 +- .../model/HlsCaptionLanguageSetting.cpp | 8 +- .../source/model/HlsClientCache.cpp | 6 +- .../source/model/HlsCodecSpecification.cpp | 6 +- .../source/model/HlsDirectoryStructure.cpp | 6 +- .../source/model/HlsDiscontinuityTags.cpp | 6 +- .../source/model/HlsEncryptionType.cpp | 6 +- .../source/model/HlsH265PackagingType.cpp | 6 +- .../model/HlsId3SegmentTaggingState.cpp | 6 +- .../model/HlsIncompleteSegmentBehavior.cpp | 6 +- .../source/model/HlsIvInManifest.cpp | 6 +- .../source/model/HlsIvSource.cpp | 6 +- .../source/model/HlsManifestCompression.cpp | 6 +- .../model/HlsManifestDurationFormat.cpp | 6 +- .../model/HlsMediaStoreStorageClass.cpp | 4 +- .../source/model/HlsMode.cpp | 6 +- .../source/model/HlsOutputSelection.cpp | 8 +- .../source/model/HlsProgramDateTime.cpp | 6 +- .../source/model/HlsProgramDateTimeClock.cpp | 6 +- .../source/model/HlsRedundantManifest.cpp | 6 +- .../source/model/HlsScte35SourceType.cpp | 6 +- .../source/model/HlsSegmentationMode.cpp | 6 +- .../source/model/HlsStreamInfResolution.cpp | 6 +- .../source/model/HlsTimedMetadataId3Frame.cpp | 8 +- .../source/model/HlsTsFileMode.cpp | 6 +- .../model/HlsWebdavHttpTransferMode.cpp | 6 +- .../source/model/IFrameOnlyPlaylistType.cpp | 6 +- .../source/model/IncludeFillerNalUnits.cpp | 8 +- .../source/model/InputClass.cpp | 6 +- .../source/model/InputCodec.cpp | 8 +- .../source/model/InputDeblockFilter.cpp | 6 +- .../source/model/InputDenoiseFilter.cpp | 6 +- .../source/model/InputDeviceActiveInput.cpp | 6 +- .../source/model/InputDeviceCodec.cpp | 6 +- .../model/InputDeviceConfiguredInput.cpp | 8 +- .../model/InputDeviceConnectionState.cpp | 6 +- .../source/model/InputDeviceIpScheme.cpp | 6 +- .../source/model/InputDeviceOutputType.cpp | 8 +- .../source/model/InputDeviceScanType.cpp | 6 +- .../source/model/InputDeviceState.cpp | 6 +- .../source/model/InputDeviceTransferType.cpp | 6 +- .../source/model/InputDeviceType.cpp | 6 +- .../source/model/InputFilter.cpp | 8 +- .../source/model/InputLossActionForHlsOut.cpp | 6 +- .../model/InputLossActionForMsSmoothOut.cpp | 6 +- .../model/InputLossActionForRtmpOut.cpp | 6 +- .../source/model/InputLossActionForUdpOut.cpp | 8 +- .../source/model/InputLossImageType.cpp | 6 +- .../source/model/InputMaximumBitrate.cpp | 8 +- .../source/model/InputPreference.cpp | 6 +- .../source/model/InputResolution.cpp | 8 +- .../source/model/InputSecurityGroupState.cpp | 10 +- .../source/model/InputSourceEndBehavior.cpp | 6 +- .../source/model/InputSourceType.cpp | 6 +- .../source/model/InputState.cpp | 12 +- .../source/model/InputTimecodeSource.cpp | 6 +- .../source/model/InputType.cpp | 22 +- .../model/LastFrameClippingBehavior.cpp | 6 +- .../source/model/LogLevel.cpp | 12 +- .../model/M2tsAbsentInputAudioBehavior.cpp | 6 +- .../source/model/M2tsArib.cpp | 6 +- .../model/M2tsAribCaptionsPidControl.cpp | 6 +- .../source/model/M2tsAudioBufferModel.cpp | 6 +- .../source/model/M2tsAudioInterval.cpp | 6 +- .../source/model/M2tsAudioStreamType.cpp | 6 +- .../source/model/M2tsBufferModel.cpp | 6 +- .../source/model/M2tsCcDescriptor.cpp | 6 +- .../source/model/M2tsEbifControl.cpp | 6 +- .../source/model/M2tsEbpPlacement.cpp | 6 +- .../source/model/M2tsEsRateInPes.cpp | 6 +- .../source/model/M2tsKlv.cpp | 6 +- .../source/model/M2tsNielsenId3Behavior.cpp | 6 +- .../source/model/M2tsPcrControl.cpp | 6 +- .../source/model/M2tsRateMode.cpp | 6 +- .../source/model/M2tsScte35Control.cpp | 6 +- .../source/model/M2tsSegmentationMarkers.cpp | 14 +- .../source/model/M2tsSegmentationStyle.cpp | 6 +- .../model/M2tsTimedMetadataBehavior.cpp | 6 +- .../source/model/M3u8KlvBehavior.cpp | 6 +- .../source/model/M3u8NielsenId3Behavior.cpp | 6 +- .../source/model/M3u8PcrControl.cpp | 6 +- .../source/model/M3u8Scte35Behavior.cpp | 6 +- .../model/M3u8TimedMetadataBehavior.cpp | 6 +- .../source/model/MaintenanceDay.cpp | 16 +- .../source/model/MotionGraphicsInsertion.cpp | 6 +- .../source/model/Mp2CodingMode.cpp | 6 +- .../model/Mpeg2AdaptiveQuantization.cpp | 12 +- .../source/model/Mpeg2ColorMetadata.cpp | 6 +- .../source/model/Mpeg2ColorSpace.cpp | 6 +- .../source/model/Mpeg2DisplayRatio.cpp | 6 +- .../source/model/Mpeg2GopSizeUnits.cpp | 6 +- .../source/model/Mpeg2ScanType.cpp | 6 +- .../source/model/Mpeg2SubGopLength.cpp | 6 +- .../model/Mpeg2TimecodeInsertionBehavior.cpp | 6 +- .../model/MsSmoothH265PackagingType.cpp | 6 +- .../source/model/MultiplexState.cpp | 20 +- .../model/NetworkInputServerValidation.cpp | 6 +- .../model/NielsenPcmToId3TaggingState.cpp | 6 +- .../model/NielsenWatermarkTimezones.cpp | 22 +- .../model/NielsenWatermarksCbetStepaside.cpp | 6 +- .../NielsenWatermarksDistributionTypes.cpp | 6 +- .../source/model/OfferingDurationUnits.cpp | 4 +- .../source/model/OfferingType.cpp | 4 +- .../source/model/PipelineId.cpp | 6 +- .../source/model/PreferredChannelPipeline.cpp | 8 +- .../source/model/RebootInputDeviceForce.cpp | 6 +- .../model/ReservationAutomaticRenewal.cpp | 8 +- .../source/model/ReservationCodec.cpp | 12 +- .../model/ReservationMaximumBitrate.cpp | 8 +- .../model/ReservationMaximumFramerate.cpp | 6 +- .../source/model/ReservationResolution.cpp | 10 +- .../source/model/ReservationResourceType.cpp | 10 +- .../model/ReservationSpecialFeature.cpp | 10 +- .../source/model/ReservationState.cpp | 10 +- .../source/model/ReservationVideoQuality.cpp | 8 +- .../source/model/RtmpAdMarkers.cpp | 4 +- .../source/model/RtmpCacheFullBehavior.cpp | 6 +- .../source/model/RtmpCaptionData.cpp | 8 +- .../model/RtmpOutputCertificateMode.cpp | 6 +- .../source/model/S3CannedAcl.cpp | 10 +- .../source/model/Scte20Convert608To708.cpp | 6 +- .../source/model/Scte27OcrLanguage.cpp | 14 +- .../Scte35AposNoRegionalBlackoutBehavior.cpp | 6 +- .../Scte35AposWebDeliveryAllowedBehavior.cpp | 6 +- .../source/model/Scte35ArchiveAllowedFlag.cpp | 6 +- .../source/model/Scte35DeviceRestrictions.cpp | 10 +- .../source/model/Scte35InputMode.cpp | 6 +- .../model/Scte35NoRegionalBlackoutFlag.cpp | 6 +- .../Scte35SegmentationCancelIndicator.cpp | 6 +- ...SpliceInsertNoRegionalBlackoutBehavior.cpp | 6 +- ...SpliceInsertWebDeliveryAllowedBehavior.cpp | 6 +- .../model/Scte35WebDeliveryAllowedFlag.cpp | 6 +- .../SmoothGroupAudioOnlyTimecodeControl.cpp | 6 +- .../model/SmoothGroupCertificateMode.cpp | 6 +- .../source/model/SmoothGroupEventIdMode.cpp | 8 +- .../model/SmoothGroupEventStopBehavior.cpp | 6 +- .../model/SmoothGroupSegmentationMode.cpp | 6 +- .../model/SmoothGroupSparseTrackType.cpp | 8 +- .../SmoothGroupStreamManifestBehavior.cpp | 6 +- .../model/SmoothGroupTimestampOffsetMode.cpp | 6 +- .../source/model/Smpte2038DataPreference.cpp | 6 +- .../TemporalFilterPostFilterSharpening.cpp | 8 +- .../source/model/TemporalFilterStrength.cpp | 36 +- .../source/model/ThumbnailState.cpp | 6 +- .../source/model/ThumbnailType.cpp | 6 +- .../source/model/TimecodeBurninFontSize.cpp | 10 +- .../source/model/TimecodeBurninPosition.cpp | 20 +- .../source/model/TimecodeConfigSource.cpp | 8 +- .../model/TtmlDestinationStyleControl.cpp | 6 +- .../source/model/UdpTimedMetadataId3Frame.cpp | 8 +- .../model/VideoDescriptionRespondToAfd.cpp | 8 +- .../model/VideoDescriptionScalingBehavior.cpp | 6 +- .../source/model/VideoSelectorColorSpace.cpp | 12 +- .../model/VideoSelectorColorSpaceUsage.cpp | 6 +- .../source/model/WavCodingMode.cpp | 10 +- .../model/WebvttDestinationStyleControl.cpp | 6 +- .../source/MediaPackageVodErrors.cpp | 12 +- .../source/model/AdMarkers.cpp | 8 +- .../source/model/EncryptionMethod.cpp | 6 +- .../source/model/ManifestLayout.cpp | 6 +- .../source/model/PresetSpeke20Audio.cpp | 12 +- .../source/model/PresetSpeke20Video.cpp | 22 +- .../source/model/Profile.cpp | 6 +- .../source/model/ScteMarkersSource.cpp | 6 +- .../source/model/SegmentTemplateFormat.cpp | 8 +- .../source/model/StreamOrder.cpp | 8 +- .../source/model/__PeriodTriggersElement.cpp | 4 +- .../source/MediaPackageErrors.cpp | 12 +- .../source/model/AdMarkers.cpp | 10 +- .../model/AdsOnDeliveryRestrictions.cpp | 10 +- .../source/model/CmafEncryptionMethod.cpp | 6 +- .../source/model/EncryptionMethod.cpp | 6 +- .../source/model/ManifestLayout.cpp | 6 +- .../source/model/Origination.cpp | 6 +- .../source/model/PlaylistType.cpp | 8 +- .../source/model/PresetSpeke20Audio.cpp | 12 +- .../source/model/PresetSpeke20Video.cpp | 22 +- .../source/model/Profile.cpp | 10 +- .../source/model/SegmentTemplateFormat.cpp | 8 +- .../source/model/Status.cpp | 8 +- .../source/model/StreamOrder.cpp | 8 +- .../source/model/UtcTiming.cpp | 10 +- .../source/model/__AdTriggersElement.cpp | 18 +- .../source/model/__PeriodTriggersElement.cpp | 4 +- .../source/Mediapackagev2Errors.cpp | 8 +- .../source/model/AdMarkerHls.cpp | 4 +- .../source/model/CmafEncryptionMethod.cpp | 6 +- .../source/model/ConflictExceptionType.cpp | 10 +- .../source/model/ContainerType.cpp | 6 +- .../source/model/DrmSystem.cpp | 10 +- .../source/model/PresetSpeke20Audio.cpp | 12 +- .../source/model/PresetSpeke20Video.cpp | 22 +- .../source/model/ResourceTypeNotFound.cpp | 8 +- .../source/model/ScteFilter.cpp | 20 +- .../source/model/TsEncryptionMethod.cpp | 6 +- .../source/model/ValidationExceptionType.cpp | 70 +- .../source/MediaStoreDataErrors.cpp | 8 +- .../source/model/ItemType.cpp | 6 +- .../source/model/StorageClass.cpp | 4 +- .../source/model/UploadAvailability.cpp | 6 +- .../source/MediaStoreErrors.cpp | 12 +- .../source/model/ContainerLevelMetrics.cpp | 6 +- .../source/model/ContainerStatus.cpp | 8 +- .../source/model/MethodName.cpp | 10 +- .../source/MediaTailorErrors.cpp | 4 +- .../source/model/AccessType.cpp | 8 +- .../source/model/AdMarkupType.cpp | 6 +- .../source/model/AlertCategory.cpp | 8 +- .../source/model/ChannelState.cpp | 6 +- .../source/model/FillPolicy.cpp | 6 +- .../source/model/LogType.cpp | 4 +- .../source/model/MessageType.cpp | 6 +- .../source/model/Mode.cpp | 8 +- .../source/model/Operator.cpp | 4 +- .../source/model/OriginManifestType.cpp | 6 +- .../source/model/PlaybackMode.cpp | 6 +- .../source/model/RelativePosition.cpp | 6 +- .../source/model/ScheduleEntryType.cpp | 6 +- .../source/model/Tier.cpp | 6 +- .../source/model/Type.cpp | 6 +- .../source/MedicalImagingErrors.cpp | 8 +- .../source/model/DatastoreStatus.cpp | 12 +- .../source/model/ImageSetState.cpp | 8 +- .../source/model/ImageSetWorkflowStatus.cpp | 22 +- .../source/model/JobStatus.cpp | 10 +- .../source/model/Operator.cpp | 6 +- .../source/MemoryDBErrors.cpp | 104 +- .../source/model/AZStatus.cpp | 6 +- .../source/model/AuthenticationType.cpp | 8 +- .../source/model/DataTieringStatus.cpp | 6 +- .../source/model/InputAuthenticationType.cpp | 6 +- .../source/model/ServiceUpdateStatus.cpp | 10 +- .../source/model/ServiceUpdateType.cpp | 4 +- .../source/model/SourceType.cpp | 14 +- .../source/MarketplaceMeteringErrors.cpp | 34 +- .../source/model/UsageRecordResultStatus.cpp | 8 +- .../src/aws-cpp-sdk-mgn/source/MgnErrors.cpp | 10 +- .../source/model/ActionCategory.cpp | 22 +- .../source/model/ApplicationHealthStatus.cpp | 8 +- .../model/ApplicationProgressStatus.cpp | 8 +- .../aws-cpp-sdk-mgn/source/model/BootMode.cpp | 6 +- ...feCycleStateSourceServerLifecycleState.cpp | 8 +- .../model/DataReplicationErrorString.cpp | 34 +- .../DataReplicationInitiationStepName.cpp | 24 +- .../DataReplicationInitiationStepStatus.cpp | 12 +- .../source/model/DataReplicationState.cpp | 26 +- .../source/model/ExportStatus.cpp | 10 +- .../source/model/FirstBoot.cpp | 10 +- .../source/model/ImportErrorType.cpp | 6 +- .../source/model/ImportStatus.cpp | 10 +- .../source/model/InitiatedBy.cpp | 10 +- .../source/model/JobLogEvent.cpp | 34 +- .../source/model/JobStatus.cpp | 8 +- .../aws-cpp-sdk-mgn/source/model/JobType.cpp | 6 +- .../source/model/LaunchDisposition.cpp | 6 +- .../source/model/LaunchStatus.cpp | 12 +- .../source/model/LifeCycleState.cpp | 22 +- .../model/PostLaunchActionExecutionStatus.cpp | 8 +- .../model/PostLaunchActionsDeploymentType.cpp | 8 +- ...plicationConfigurationDataPlaneRouting.cpp | 6 +- ...nfigurationDefaultLargeStagingDiskType.cpp | 8 +- .../ReplicationConfigurationEbsEncryption.cpp | 6 +- ...igurationReplicatedDiskStagingDiskType.cpp | 18 +- .../source/model/ReplicationType.cpp | 6 +- .../source/model/SsmDocumentType.cpp | 6 +- .../model/SsmParameterStoreParameterType.cpp | 4 +- .../TargetInstanceTypeRightSizingMethod.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/model/VolumeType.cpp | 16 +- .../source/model/WaveHealthStatus.cpp | 8 +- .../source/model/WaveProgressStatus.cpp | 8 +- .../MigrationHubRefactorSpacesErrors.cpp | 10 +- .../source/model/ApiGatewayEndpointType.cpp | 6 +- .../source/model/ApplicationState.cpp | 12 +- .../source/model/EnvironmentState.cpp | 10 +- .../source/model/ErrorCode.cpp | 26 +- .../source/model/ErrorResourceType.cpp | 40 +- .../source/model/HttpMethod.cpp | 16 +- .../source/model/NetworkFabricType.cpp | 6 +- .../source/model/ProxyType.cpp | 4 +- .../source/model/RouteActivationState.cpp | 6 +- .../source/model/RouteState.cpp | 14 +- .../source/model/RouteType.cpp | 6 +- .../source/model/ServiceEndpointType.cpp | 6 +- .../source/model/ServiceState.cpp | 10 +- .../source/MigrationHubConfigErrors.cpp | 6 +- .../source/model/TargetType.cpp | 4 +- .../source/MigrationHubOrchestratorErrors.cpp | 4 +- .../source/model/DataType.cpp | 10 +- .../model/MigrationWorkflowStatusEnum.cpp | 30 +- .../source/model/Owner.cpp | 6 +- .../source/model/PluginHealth.cpp | 6 +- .../source/model/RunEnvironment.cpp | 6 +- .../source/model/StepActionType.cpp | 6 +- .../source/model/StepGroupStatus.cpp | 18 +- .../source/model/StepStatus.cpp | 16 +- .../source/model/TargetType.cpp | 8 +- .../source/model/TemplateStatus.cpp | 4 +- ...rationHubStrategyRecommendationsErrors.cpp | 12 +- .../source/model/AnalysisType.cpp | 10 +- .../source/model/AntipatternReportStatus.cpp | 8 +- .../source/model/AppType.cpp | 46 +- .../source/model/AppUnitErrorCategory.cpp | 12 +- .../model/ApplicationComponentCriteria.cpp | 18 +- .../source/model/ApplicationMode.cpp | 8 +- .../source/model/AssessmentStatus.cpp | 10 +- .../source/model/AuthType.cpp | 8 +- .../model/AwsManagedTargetDestination.cpp | 8 +- .../source/model/BinaryAnalyzerName.cpp | 6 +- .../source/model/CollectorHealth.cpp | 6 +- .../source/model/Condition.cpp | 10 +- .../source/model/DataSourceType.cpp | 8 +- .../model/DatabaseManagementPreference.cpp | 8 +- .../source/model/GroupName.cpp | 6 +- .../HeterogeneousTargetDatabaseEngine.cpp | 22 +- .../model/HomogeneousTargetDatabaseEngine.cpp | 4 +- .../source/model/ImportFileTaskStatus.cpp | 18 +- .../source/model/InclusionStatus.cpp | 6 +- .../model/NoPreferenceTargetDestination.cpp | 14 +- .../source/model/OSType.cpp | 6 +- .../source/model/OutputFormat.cpp | 6 +- .../source/model/PipelineType.cpp | 4 +- .../model/RecommendationReportStatus.cpp | 8 +- .../source/model/ResourceSubType.cpp | 8 +- .../source/model/RunTimeAnalyzerName.cpp | 12 +- .../source/model/RunTimeAssessmentStatus.cpp | 16 +- .../source/model/RuntimeAnalysisStatus.cpp | 10 +- .../model/SelfManageTargetDestination.cpp | 10 +- .../source/model/ServerCriteria.cpp | 16 +- .../source/model/ServerErrorCategory.cpp | 12 +- .../source/model/ServerOsType.cpp | 12 +- .../source/model/Severity.cpp | 8 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SourceCodeAnalyzerName.cpp | 10 +- .../model/SrcCodeOrDbAnalysisStatus.cpp | 16 +- .../source/model/Strategy.cpp | 16 +- .../source/model/StrategyRecommendation.cpp | 10 +- .../source/model/TargetDatabaseEngine.cpp | 22 +- .../source/model/TargetDestination.cpp | 30 +- .../source/model/TransformationToolName.cpp | 22 +- .../source/model/VersionControl.cpp | 8 +- .../source/model/VersionControlType.cpp | 8 +- .../source/MobileErrors.cpp | 14 +- .../source/model/Platform.cpp | 16 +- .../source/model/ProjectState.cpp | 8 +- .../source/CloudWatchErrors.cpp | 20 +- .../source/model/ActionsSuppressedBy.cpp | 8 +- .../source/model/AlarmType.cpp | 6 +- .../model/AnomalyDetectorStateValue.cpp | 8 +- .../source/model/AnomalyDetectorType.cpp | 6 +- .../source/model/ComparisonOperator.cpp | 16 +- .../source/model/EvaluationState.cpp | 4 +- .../source/model/HistoryItemType.cpp | 8 +- .../source/model/MetricStreamOutputFormat.cpp | 6 +- .../source/model/RecentlyActive.cpp | 4 +- .../source/model/ScanBy.cpp | 6 +- .../source/model/StandardUnit.cpp | 56 +- .../source/model/StateValue.cpp | 8 +- .../source/model/Statistic.cpp | 12 +- .../source/model/StatusCode.cpp | 10 +- .../src/aws-cpp-sdk-mq/source/MQErrors.cpp | 14 +- .../source/model/AuthenticationStrategy.cpp | 6 +- .../source/model/BrokerState.cpp | 16 +- .../source/model/BrokerStorageType.cpp | 6 +- .../source/model/ChangeType.cpp | 8 +- .../source/model/DataReplicationMode.cpp | 6 +- .../aws-cpp-sdk-mq/source/model/DayOfWeek.cpp | 16 +- .../source/model/DeploymentMode.cpp | 8 +- .../source/model/EngineType.cpp | 6 +- .../source/model/PromoteMode.cpp | 6 +- .../model/SanitizationWarningReason.cpp | 8 +- .../source/MTurkErrors.cpp | 6 +- .../source/model/AssignmentStatus.cpp | 8 +- .../source/model/Comparator.cpp | 22 +- .../source/model/EventType.cpp | 26 +- .../source/model/HITAccessActions.cpp | 8 +- .../source/model/HITReviewStatus.cpp | 10 +- .../source/model/HITStatus.cpp | 12 +- .../source/model/NotificationTransport.cpp | 8 +- .../source/model/NotifyWorkersFailureCode.cpp | 6 +- .../source/model/QualificationStatus.cpp | 6 +- .../source/model/QualificationTypeStatus.cpp | 6 +- .../source/model/ReviewActionStatus.cpp | 10 +- .../source/model/ReviewPolicyLevel.cpp | 6 +- .../source/model/ReviewableHITStatus.cpp | 6 +- .../aws-cpp-sdk-mwaa/source/MWAAErrors.cpp | 4 +- .../source/model/EnvironmentStatus.cpp | 22 +- .../source/model/LoggingLevel.cpp | 12 +- .../aws-cpp-sdk-mwaa/source/model/Unit.cpp | 56 +- .../source/model/UpdateStatus.cpp | 8 +- .../source/model/WebserverAccessMode.cpp | 6 +- .../source/NeptuneErrors.cpp | 136 +- .../source/model/ApplyMethod.cpp | 6 +- .../source/model/SourceType.cpp | 14 +- .../source/NeptunedataErrors.cpp | 62 +- .../source/model/Action.cpp | 6 +- .../source/model/Encoding.cpp | 4 +- .../source/model/Format.cpp | 14 +- .../source/model/GraphSummaryType.cpp | 6 +- .../source/model/IteratorType.cpp | 10 +- .../source/model/Mode.cpp | 8 +- .../source/model/OpenCypherExplainMode.cpp | 8 +- .../source/model/Parallelism.cpp | 10 +- .../source/model/S3BucketRegion.cpp | 48 +- .../model/StatisticsAutoGenerationMode.cpp | 8 +- .../source/NetworkFirewallErrors.cpp | 20 +- .../source/model/AttachmentStatus.cpp | 14 +- .../source/model/ConfigurationSyncState.cpp | 8 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/FirewallStatusValue.cpp | 8 +- .../source/model/GeneratedRulesType.cpp | 6 +- .../source/model/IPAddressType.cpp | 8 +- .../source/model/LogDestinationType.cpp | 8 +- .../source/model/LogType.cpp | 6 +- .../source/model/OverrideAction.cpp | 4 +- .../source/model/PerObjectSyncStatus.cpp | 8 +- .../source/model/ResourceManagedStatus.cpp | 6 +- .../source/model/ResourceManagedType.cpp | 6 +- .../source/model/ResourceStatus.cpp | 6 +- .../source/model/RuleGroupType.cpp | 6 +- .../source/model/RuleOrder.cpp | 6 +- .../source/model/StatefulAction.cpp | 10 +- .../source/model/StatefulRuleDirection.cpp | 6 +- .../source/model/StatefulRuleProtocol.cpp | 40 +- .../source/model/StreamExceptionPolicy.cpp | 8 +- .../source/model/TCPFlag.cpp | 18 +- .../source/model/TargetType.cpp | 6 +- .../source/NetworkManagerErrors.cpp | 10 +- .../source/model/AttachmentState.cpp | 20 +- .../source/model/AttachmentType.cpp | 10 +- .../source/model/ChangeAction.cpp | 8 +- .../source/model/ChangeSetState.cpp | 14 +- .../source/model/ChangeStatus.cpp | 10 +- .../source/model/ChangeType.cpp | 20 +- .../model/ConnectPeerAssociationState.cpp | 10 +- .../source/model/ConnectPeerState.cpp | 10 +- .../source/model/ConnectionState.cpp | 10 +- .../source/model/ConnectionStatus.cpp | 6 +- .../source/model/ConnectionType.cpp | 6 +- .../source/model/CoreNetworkPolicyAlias.cpp | 6 +- .../source/model/CoreNetworkState.cpp | 10 +- .../model/CustomerGatewayAssociationState.cpp | 10 +- .../source/model/DeviceState.cpp | 10 +- .../source/model/GlobalNetworkState.cpp | 10 +- .../source/model/LinkAssociationState.cpp | 10 +- .../source/model/LinkState.cpp | 10 +- .../source/model/PeeringState.cpp | 10 +- .../source/model/PeeringType.cpp | 4 +- .../RouteAnalysisCompletionReasonCode.cpp | 24 +- .../RouteAnalysisCompletionResultCode.cpp | 6 +- .../source/model/RouteAnalysisStatus.cpp | 8 +- .../source/model/RouteState.cpp | 6 +- .../source/model/RouteTableType.cpp | 6 +- .../source/model/RouteType.cpp | 6 +- .../source/model/SiteState.cpp | 10 +- ...nsitGatewayConnectPeerAssociationState.cpp | 10 +- .../model/TransitGatewayRegistrationState.cpp | 12 +- .../source/model/TunnelProtocol.cpp | 4 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/NimbleStudioErrors.cpp | 8 +- .../source/model/AutomaticTerminationMode.cpp | 6 +- .../source/model/LaunchProfilePersona.cpp | 4 +- .../source/model/LaunchProfilePlatform.cpp | 6 +- .../source/model/LaunchProfileState.cpp | 18 +- .../source/model/LaunchProfileStatusCode.cpp | 32 +- .../model/LaunchProfileValidationState.cpp | 12 +- .../LaunchProfileValidationStatusCode.cpp | 20 +- .../model/LaunchProfileValidationType.cpp | 10 +- .../source/model/SessionBackupMode.cpp | 6 +- .../source/model/SessionPersistenceMode.cpp | 6 +- .../source/model/StreamingClipboardMode.cpp | 6 +- ...ingImageEncryptionConfigurationKeyType.cpp | 4 +- .../source/model/StreamingImageState.cpp | 18 +- .../source/model/StreamingImageStatusCode.cpp | 16 +- .../source/model/StreamingInstanceType.cpp | 28 +- .../source/model/StreamingSessionState.cpp | 24 +- .../model/StreamingSessionStatusCode.cpp | 34 +- .../model/StreamingSessionStorageMode.cpp | 4 +- .../model/StreamingSessionStreamState.cpp | 14 +- .../StreamingSessionStreamStatusCode.cpp | 14 +- ...omponentInitializationScriptRunContext.cpp | 6 +- .../source/model/StudioComponentState.cpp | 18 +- .../model/StudioComponentStatusCode.cpp | 22 +- .../source/model/StudioComponentSubtype.cpp | 10 +- .../source/model/StudioComponentType.cpp | 12 +- .../StudioEncryptionConfigurationKeyType.cpp | 6 +- .../source/model/StudioPersona.cpp | 4 +- .../source/model/StudioState.cpp | 18 +- .../source/model/StudioStatusCode.cpp | 40 +- .../source/model/VolumeRetentionMode.cpp | 6 +- .../src/aws-cpp-sdk-oam/source/OAMErrors.cpp | 14 +- .../source/model/ResourceType.cpp | 10 +- .../aws-cpp-sdk-omics/source/OmicsErrors.cpp | 12 +- .../source/model/Accelerators.cpp | 4 +- .../source/model/AnnotationType.cpp | 16 +- .../source/model/CreationType.cpp | 6 +- .../source/model/ETagAlgorithm.cpp | 8 +- .../source/model/EncryptionType.cpp | 4 +- .../source/model/FileType.cpp | 8 +- .../source/model/FormatToHeaderKey.cpp | 14 +- .../source/model/JobStatus.cpp | 14 +- .../model/ReadSetActivationJobItemStatus.cpp | 10 +- .../model/ReadSetActivationJobStatus.cpp | 16 +- .../model/ReadSetExportJobItemStatus.cpp | 10 +- .../source/model/ReadSetExportJobStatus.cpp | 16 +- .../source/model/ReadSetFile.cpp | 8 +- .../model/ReadSetImportJobItemStatus.cpp | 10 +- .../source/model/ReadSetImportJobStatus.cpp | 16 +- .../source/model/ReadSetPartSource.cpp | 6 +- .../source/model/ReadSetStatus.cpp | 16 +- .../source/model/ReferenceFile.cpp | 6 +- .../model/ReferenceImportJobItemStatus.cpp | 10 +- .../source/model/ReferenceImportJobStatus.cpp | 16 +- .../source/model/ReferenceStatus.cpp | 8 +- .../source/model/ResourceOwner.cpp | 6 +- .../source/model/RunExport.cpp | 4 +- .../source/model/RunLogLevel.cpp | 10 +- .../source/model/RunRetentionMode.cpp | 6 +- .../source/model/RunStatus.cpp | 18 +- .../source/model/SchemaValueType.cpp | 14 +- .../source/model/ShareStatus.cpp | 14 +- .../source/model/StoreFormat.cpp | 8 +- .../source/model/StoreStatus.cpp | 12 +- .../source/model/TaskStatus.cpp | 16 +- .../source/model/VersionStatus.cpp | 12 +- .../source/model/WorkflowEngine.cpp | 8 +- .../source/model/WorkflowExport.cpp | 4 +- .../source/model/WorkflowStatus.cpp | 14 +- .../source/model/WorkflowType.cpp | 6 +- .../source/OpenSearchServiceErrors.cpp | 22 +- .../source/model/ActionSeverity.cpp | 8 +- .../source/model/ActionStatus.cpp | 14 +- .../source/model/ActionType.cpp | 8 +- .../source/model/AutoTuneDesiredState.cpp | 6 +- .../source/model/AutoTuneState.cpp | 20 +- .../source/model/AutoTuneType.cpp | 4 +- .../source/model/ConnectionMode.cpp | 6 +- .../source/model/DeploymentStatus.cpp | 12 +- .../model/DescribePackagesFilterName.cpp | 8 +- .../source/model/DomainHealth.cpp | 10 +- .../source/model/DomainPackageStatus.cpp | 12 +- .../source/model/DomainState.cpp | 8 +- .../source/model/DryRunMode.cpp | 6 +- .../source/model/EngineType.cpp | 6 +- .../model/InboundConnectionStatusCode.cpp | 18 +- .../source/model/LogType.cpp | 10 +- .../source/model/MasterNodeStatus.cpp | 6 +- .../source/model/NodeStatus.cpp | 8 +- .../source/model/NodeType.cpp | 8 +- .../model/OpenSearchPartitionInstanceType.cpp | 192 +-- .../OpenSearchWarmPartitionInstanceType.cpp | 8 +- .../source/model/OptionState.cpp | 8 +- .../model/OutboundConnectionStatusCode.cpp | 22 +- .../source/model/OverallChangeStatus.cpp | 10 +- .../source/model/PackageStatus.cpp | 18 +- .../source/model/PackageType.cpp | 4 +- .../source/model/PrincipalType.cpp | 6 +- .../model/ReservedInstancePaymentOption.cpp | 8 +- .../source/model/RollbackOnDisable.cpp | 6 +- .../source/model/ScheduleAt.cpp | 8 +- .../model/ScheduledAutoTuneActionType.cpp | 6 +- .../model/ScheduledAutoTuneSeverityType.cpp | 8 +- .../source/model/ScheduledBy.cpp | 6 +- .../source/model/SkipUnavailableStatus.cpp | 6 +- .../source/model/TLSSecurityPolicy.cpp | 6 +- .../source/model/TimeUnit.cpp | 4 +- .../source/model/UpgradeStatus.cpp | 10 +- .../source/model/UpgradeStep.cpp | 8 +- .../source/model/VolumeType.cpp | 10 +- .../source/model/VpcEndpointErrorCode.cpp | 6 +- .../source/model/VpcEndpointStatus.cpp | 16 +- .../source/model/ZoneStatus.cpp | 8 +- .../source/OpenSearchServerlessErrors.cpp | 10 +- .../source/model/AccessPolicyType.cpp | 4 +- .../source/model/CollectionStatus.cpp | 10 +- .../source/model/CollectionType.cpp | 8 +- .../source/model/SecurityConfigType.cpp | 4 +- .../source/model/SecurityPolicyType.cpp | 6 +- .../source/model/VpcEndpointStatus.cpp | 10 +- .../source/model/AppAttributesKeys.cpp | 10 +- .../source/model/AppType.cpp | 16 +- .../source/model/Architecture.cpp | 6 +- .../source/model/AutoScalingType.cpp | 6 +- .../source/model/CloudWatchLogsEncoding.cpp | 186 +- .../model/CloudWatchLogsInitialPosition.cpp | 6 +- .../source/model/CloudWatchLogsTimeZone.cpp | 6 +- .../source/model/DeploymentCommandName.cpp | 26 +- .../source/model/LayerAttributesKeys.cpp | 52 +- .../source/model/LayerType.cpp | 26 +- .../source/model/RootDeviceType.cpp | 6 +- .../source/model/SourceType.cpp | 10 +- .../source/model/StackAttributesKeys.cpp | 4 +- .../source/model/VirtualizationType.cpp | 6 +- .../source/model/VolumeType.cpp | 8 +- .../source/OpsWorksCMErrors.cpp | 10 +- .../source/model/BackupStatus.cpp | 10 +- .../source/model/BackupType.cpp | 6 +- .../source/model/MaintenanceStatus.cpp | 6 +- .../source/model/NodeAssociationStatus.cpp | 8 +- .../source/model/ServerStatus.cpp | 28 +- .../source/OrganizationsErrors.cpp | 94 +- ...cessDeniedForDependencyExceptionReason.cpp | 4 +- .../source/model/AccountJoinedMethod.cpp | 6 +- .../source/model/AccountStatus.cpp | 8 +- .../source/model/ActionType.cpp | 10 +- .../source/model/ChildType.cpp | 6 +- .../ConstraintViolationExceptionReason.cpp | 70 +- .../model/CreateAccountFailureReason.cpp | 32 +- .../source/model/CreateAccountState.cpp | 8 +- .../source/model/EffectivePolicyType.cpp | 8 +- ...hakeConstraintViolationExceptionReason.cpp | 22 +- .../source/model/HandshakePartyType.cpp | 8 +- .../source/model/HandshakeResourceType.cpp | 18 +- .../source/model/HandshakeState.cpp | 14 +- .../source/model/IAMUserAccessToBilling.cpp | 6 +- .../model/InvalidInputExceptionReason.cpp | 58 +- .../source/model/OrganizationFeatureSet.cpp | 6 +- .../source/model/ParentType.cpp | 6 +- .../source/model/PolicyType.cpp | 10 +- .../source/model/PolicyTypeStatus.cpp | 8 +- .../source/model/TargetType.cpp | 8 +- .../aws-cpp-sdk-osis/source/OSISErrors.cpp | 12 +- .../model/ChangeProgressStageStatuses.cpp | 10 +- .../source/model/ChangeProgressStatuses.cpp | 10 +- .../source/model/PipelineStatus.cpp | 22 +- .../source/OutpostsErrors.cpp | 10 +- .../source/model/AddressType.cpp | 6 +- .../source/model/AssetState.cpp | 8 +- .../source/model/AssetType.cpp | 4 +- .../source/model/CatalogItemClass.cpp | 6 +- .../source/model/CatalogItemStatus.cpp | 6 +- .../source/model/ComputeAssetState.cpp | 8 +- .../source/model/FiberOpticCableType.cpp | 6 +- .../source/model/LineItemStatus.cpp | 20 +- .../model/MaximumSupportedWeightLbs.cpp | 12 +- .../source/model/OpticalStandard.cpp | 28 +- .../source/model/OrderStatus.cpp | 22 +- .../source/model/OrderType.cpp | 6 +- .../source/model/PaymentOption.cpp | 8 +- .../source/model/PaymentTerm.cpp | 6 +- .../source/model/PowerConnector.cpp | 10 +- .../source/model/PowerDrawKva.cpp | 10 +- .../source/model/PowerFeedDrop.cpp | 6 +- .../source/model/PowerPhase.cpp | 6 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/ShipmentCarrier.cpp | 10 +- .../source/model/SupportedHardwareType.cpp | 6 +- .../source/model/SupportedStorageEnum.cpp | 6 +- .../source/model/UplinkCount.cpp | 22 +- .../source/model/UplinkGbps.cpp | 10 +- .../source/PanoramaErrors.cpp | 8 +- .../model/ApplicationInstanceHealthStatus.cpp | 8 +- .../model/ApplicationInstanceStatus.cpp | 24 +- .../source/model/ConnectionType.cpp | 6 +- .../source/model/DesiredState.cpp | 8 +- .../source/model/DeviceAggregatedStatus.cpp | 22 +- .../source/model/DeviceBrand.cpp | 6 +- .../source/model/DeviceConnectionStatus.cpp | 12 +- .../source/model/DeviceReportedStatus.cpp | 24 +- .../source/model/DeviceStatus.cpp | 14 +- .../source/model/DeviceType.cpp | 6 +- .../source/model/JobResourceType.cpp | 4 +- .../source/model/JobType.cpp | 6 +- .../source/model/ListDevicesSortBy.cpp | 10 +- .../source/model/NetworkConnectionStatus.cpp | 8 +- .../source/model/NodeCategory.cpp | 10 +- .../model/NodeFromTemplateJobStatus.cpp | 8 +- .../source/model/NodeInstanceStatus.cpp | 10 +- .../source/model/NodeSignalValue.cpp | 6 +- .../source/model/PackageImportJobStatus.cpp | 8 +- .../source/model/PackageImportJobType.cpp | 6 +- .../source/model/PackageVersionStatus.cpp | 10 +- .../source/model/PortType.cpp | 12 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/StatusFilter.cpp | 16 +- .../source/model/TemplateType.cpp | 4 +- .../source/model/UpdateProgress.cpp | 16 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/PaymentCryptographyDataErrors.cpp | 6 +- .../source/model/DukptDerivationType.cpp | 12 +- .../source/model/DukptEncryptionMode.cpp | 6 +- .../source/model/DukptKeyVariant.cpp | 8 +- .../source/model/EncryptionMode.cpp | 18 +- .../source/model/MacAlgorithm.cpp | 16 +- .../source/model/MajorKeyDerivationMode.cpp | 6 +- .../source/model/PaddingType.cpp | 10 +- .../source/model/PinBlockFormatForPinData.cpp | 6 +- .../source/model/SessionKeyDerivationMode.cpp | 12 +- .../source/model/VerificationFailedReason.cpp | 10 +- .../source/PaymentCryptographyErrors.cpp | 8 +- .../source/model/KeyAlgorithm.cpp | 18 +- .../source/model/KeyCheckValueAlgorithm.cpp | 6 +- .../source/model/KeyClass.cpp | 10 +- .../source/model/KeyMaterialType.cpp | 10 +- .../source/model/KeyOrigin.cpp | 6 +- .../source/model/KeyState.cpp | 10 +- .../source/model/KeyUsage.cpp | 46 +- .../source/model/Tr34KeyBlockFormat.cpp | 4 +- .../source/model/WrappedKeyMaterialFormat.cpp | 8 +- .../source/PcaConnectorAdErrors.cpp | 8 +- .../source/model/AccessRight.cpp | 6 +- .../source/model/ApplicationPolicyType.cpp | 136 +- .../source/model/ClientCompatibilityV2.cpp | 14 +- .../source/model/ClientCompatibilityV3.cpp | 12 +- .../source/model/ClientCompatibilityV4.cpp | 8 +- .../source/model/ConnectorStatus.cpp | 10 +- .../source/model/ConnectorStatusReason.cpp | 18 +- .../model/DirectoryRegistrationStatus.cpp | 10 +- .../DirectoryRegistrationStatusReason.cpp | 14 +- .../source/model/HashAlgorithm.cpp | 8 +- .../source/model/KeySpec.cpp | 6 +- .../source/model/KeyUsagePropertyType.cpp | 4 +- .../source/model/PrivateKeyAlgorithm.cpp | 10 +- .../model/ServicePrincipalNameStatus.cpp | 10 +- .../ServicePrincipalNameStatusReason.cpp | 12 +- .../source/model/TemplateStatus.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 18 +- .../source/model/ValidityPeriodType.cpp | 12 +- .../source/PersonalizeEventsErrors.cpp | 6 +- .../source/PersonalizeRuntimeErrors.cpp | 4 +- .../source/PersonalizeErrors.cpp | 16 +- .../source/model/Domain.cpp | 6 +- .../source/model/ImportMode.cpp | 6 +- .../source/model/IngestionMode.cpp | 8 +- .../source/model/ObjectiveSensitivity.cpp | 10 +- .../source/model/RecipeProvider.cpp | 4 +- .../source/model/TrainingMode.cpp | 6 +- .../src/aws-cpp-sdk-pi/source/PIErrors.cpp | 8 +- .../source/model/AcceptLanguage.cpp | 4 +- .../source/model/AnalysisStatus.cpp | 8 +- .../source/model/ContextType.cpp | 6 +- .../source/model/DetailStatus.cpp | 8 +- .../source/model/FeatureStatus.cpp | 14 +- .../source/model/PeriodAlignment.cpp | 6 +- .../source/model/ServiceType.cpp | 6 +- .../aws-cpp-sdk-pi/source/model/Severity.cpp | 8 +- .../source/model/TextFormat.cpp | 6 +- .../source/PinpointEmailErrors.cpp | 22 +- .../source/model/BehaviorOnMxFailure.cpp | 6 +- .../DeliverabilityDashboardAccountStatus.cpp | 8 +- .../source/model/DeliverabilityTestStatus.cpp | 6 +- .../source/model/DimensionValueSource.cpp | 8 +- .../source/model/DkimStatus.cpp | 12 +- .../source/model/EventType.cpp | 18 +- .../source/model/IdentityType.cpp | 8 +- .../source/model/MailFromDomainStatus.cpp | 10 +- .../source/model/TlsPolicy.cpp | 6 +- .../source/model/WarmupStatus.cpp | 6 +- .../source/PinpointSMSVoiceV2Errors.cpp | 8 +- .../model/AccessDeniedExceptionReason.cpp | 6 +- .../source/model/AccountAttributeName.cpp | 4 +- .../source/model/AccountLimitName.cpp | 10 +- .../model/ConfigurationSetFilterName.cpp | 10 +- .../source/model/ConflictExceptionReason.cpp | 40 +- .../model/DestinationCountryParameterKey.cpp | 6 +- .../source/model/EventType.cpp | 52 +- .../source/model/KeywordAction.cpp | 8 +- .../source/model/KeywordFilterName.cpp | 4 +- .../source/model/MessageType.cpp | 6 +- .../source/model/NumberCapability.cpp | 6 +- .../source/model/NumberStatus.cpp | 12 +- .../source/model/NumberType.cpp | 10 +- .../source/model/OptedOutFilterName.cpp | 4 +- .../source/model/PhoneNumberFilterName.cpp | 20 +- .../source/model/PoolFilterName.cpp | 16 +- .../PoolOriginationIdentitiesFilterName.cpp | 6 +- .../source/model/PoolStatus.cpp | 8 +- .../source/model/RequestableNumberType.cpp | 8 +- .../source/model/ResourceType.cpp | 22 +- .../source/model/SenderIdFilterName.cpp | 8 +- .../ServiceQuotaExceededExceptionReason.cpp | 28 +- .../source/model/SpendLimitName.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 50 +- .../source/model/VoiceId.cpp | 120 +- .../source/model/VoiceMessageBodyTextType.cpp | 6 +- .../source/PinpointErrors.cpp | 18 +- .../source/model/Action.cpp | 8 +- .../source/model/Alignment.cpp | 8 +- .../source/model/AttributeType.cpp | 16 +- .../source/model/ButtonAction.cpp | 8 +- .../source/model/CampaignStatus.cpp | 16 +- .../source/model/ChannelType.cpp | 28 +- .../source/model/DayOfWeek.cpp | 16 +- .../source/model/DeliveryStatus.cpp | 16 +- .../source/model/DimensionType.cpp | 6 +- .../source/model/Duration.cpp | 10 +- .../source/model/FilterType.cpp | 6 +- .../source/model/Format.cpp | 6 +- .../source/model/Frequency.cpp | 16 +- .../source/model/Include.cpp | 8 +- .../source/model/JobStatus.cpp | 20 +- .../source/model/JourneyRunStatus.cpp | 10 +- .../source/model/Layout.cpp | 14 +- .../source/model/MessageType.cpp | 6 +- .../source/model/Mode.cpp | 6 +- .../source/model/Operator.cpp | 6 +- .../source/model/RecencyType.cpp | 6 +- .../source/model/SegmentType.cpp | 6 +- .../source/model/SourceType.cpp | 8 +- .../source/model/State.cpp | 14 +- .../source/model/TemplateType.cpp | 12 +- .../source/model/Type.cpp | 8 +- .../source/model/__EndpointTypesElement.cpp | 28 +- .../__TimezoneEstimationMethodsElement.cpp | 6 +- .../aws-cpp-sdk-pipes/source/PipesErrors.cpp | 10 +- .../source/model/AssignPublicIp.cpp | 6 +- .../source/model/BatchJobDependencyType.cpp | 6 +- .../model/BatchResourceRequirementType.cpp | 8 +- .../model/DynamoDBStreamStartPosition.cpp | 6 +- .../source/model/EcsEnvironmentFileType.cpp | 4 +- .../model/EcsResourceRequirementType.cpp | 6 +- .../model/KinesisStreamStartPosition.cpp | 8 +- .../source/model/LaunchType.cpp | 8 +- .../source/model/MSKStartPosition.cpp | 6 +- .../OnPartialBatchItemFailureStreams.cpp | 4 +- .../source/model/PipeState.cpp | 24 +- .../source/model/PipeTargetInvocationType.cpp | 6 +- .../source/model/PlacementConstraintType.cpp | 6 +- .../source/model/PlacementStrategyType.cpp | 8 +- .../source/model/PropagateTags.cpp | 4 +- .../source/model/RequestedPipeState.cpp | 6 +- .../RequestedPipeStateDescribeResponse.cpp | 8 +- .../model/SelfManagedKafkaStartPosition.cpp | 6 +- .../aws-cpp-sdk-polly/source/PollyErrors.cpp | 44 +- .../aws-cpp-sdk-polly/source/model/Engine.cpp | 6 +- .../aws-cpp-sdk-polly/source/model/Gender.cpp | 6 +- .../source/model/LanguageCode.cpp | 80 +- .../source/model/OutputFormat.cpp | 10 +- .../source/model/SpeechMarkType.cpp | 10 +- .../source/model/TaskStatus.cpp | 10 +- .../source/model/TextType.cpp | 6 +- .../source/model/VoiceId.cpp | 188 +- .../source/PricingErrors.cpp | 12 +- .../source/model/FilterType.cpp | 4 +- .../source/PrivateNetworksErrors.cpp | 6 +- .../source/model/AcknowledgmentStatus.cpp | 8 +- .../source/model/CommitmentLength.cpp | 8 +- .../model/DeviceIdentifierFilterKeys.cpp | 8 +- .../source/model/DeviceIdentifierStatus.cpp | 6 +- .../source/model/ElevationReference.cpp | 6 +- .../source/model/ElevationUnit.cpp | 4 +- .../source/model/HealthStatus.cpp | 8 +- .../source/model/NetworkFilterKeys.cpp | 4 +- .../model/NetworkResourceDefinitionType.cpp | 6 +- .../model/NetworkResourceFilterKeys.cpp | 6 +- .../source/model/NetworkResourceStatus.cpp | 20 +- .../source/model/NetworkResourceType.cpp | 4 +- .../source/model/NetworkSiteFilterKeys.cpp | 4 +- .../source/model/NetworkSiteStatus.cpp | 12 +- .../source/model/NetworkStatus.cpp | 12 +- .../source/model/OrderFilterKeys.cpp | 6 +- .../source/model/UpdateType.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 12 +- .../source/ProtonErrors.cpp | 8 +- .../source/model/BlockerStatus.cpp | 6 +- .../source/model/BlockerType.cpp | 4 +- .../model/ComponentDeploymentUpdateType.cpp | 6 +- .../source/model/DeploymentStatus.cpp | 18 +- .../model/DeploymentTargetResourceType.cpp | 10 +- .../source/model/DeploymentUpdateType.cpp | 10 +- ...tAccountConnectionRequesterAccountType.cpp | 6 +- .../EnvironmentAccountConnectionStatus.cpp | 8 +- .../model/ListServiceInstancesFilterBy.cpp | 22 +- .../model/ListServiceInstancesSortBy.cpp | 16 +- .../model/ProvisionedResourceEngine.cpp | 6 +- .../source/model/Provisioning.cpp | 4 +- .../source/model/RepositoryProvider.cpp | 8 +- .../source/model/RepositorySyncStatus.cpp | 12 +- .../source/model/ResourceDeploymentStatus.cpp | 8 +- .../source/model/ResourceSyncStatus.cpp | 10 +- .../source/model/ServiceStatus.cpp | 30 +- ...ceTemplateSupportedComponentSourceType.cpp | 4 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SyncType.cpp | 6 +- .../source/model/TemplateType.cpp | 6 +- .../source/model/TemplateVersionStatus.cpp | 10 +- .../source/QLDBSessionErrors.cpp | 14 +- .../aws-cpp-sdk-qldb/source/QLDBErrors.cpp | 12 +- .../source/model/EncryptionStatus.cpp | 8 +- .../source/model/ErrorCause.cpp | 6 +- .../source/model/ExportStatus.cpp | 8 +- .../source/model/LedgerState.cpp | 10 +- .../source/model/OutputFormat.cpp | 8 +- .../source/model/PermissionsMode.cpp | 6 +- .../source/model/S3ObjectEncryptionType.cpp | 8 +- .../source/model/StreamStatus.cpp | 12 +- .../source/QuickSightErrors.cpp | 30 +- .../source/model/AnalysisErrorType.cpp | 22 +- .../source/model/AnalysisFilterAttribute.cpp | 16 +- .../source/model/AnchorOption.cpp | 4 +- .../source/model/ArcThickness.cpp | 10 +- .../source/model/ArcThicknessOptions.cpp | 8 +- .../source/model/AssetBundleExportFormat.cpp | 6 +- ...dleExportJobAnalysisPropertyToOverride.cpp | 4 +- ...leExportJobDashboardPropertyToOverride.cpp | 4 +- ...ndleExportJobDataSetPropertyToOverride.cpp | 4 +- ...eExportJobDataSourcePropertyToOverride.cpp | 36 +- ...rtJobRefreshSchedulePropertyToOverride.cpp | 4 +- .../model/AssetBundleExportJobStatus.cpp | 10 +- ...BundleExportJobThemePropertyToOverride.cpp | 4 +- ...portJobVPCConnectionPropertyToOverride.cpp | 8 +- .../model/AssetBundleImportFailureAction.cpp | 6 +- .../model/AssetBundleImportJobStatus.cpp | 16 +- .../source/model/AssignmentStatus.cpp | 8 +- .../model/AuthenticationMethodOption.cpp | 10 +- .../model/AuthorSpecifiedAggregation.cpp | 26 +- .../source/model/AxisBinding.cpp | 6 +- .../source/model/BarChartOrientation.cpp | 6 +- .../source/model/BarsArrangement.cpp | 8 +- .../source/model/BaseMapStyleType.cpp | 10 +- .../source/model/BoxPlotFillStyle.cpp | 6 +- .../model/CategoricalAggregationFunction.cpp | 6 +- .../source/model/CategoryFilterFunction.cpp | 6 +- .../model/CategoryFilterMatchOperator.cpp | 14 +- .../model/CategoryFilterSelectAllOptions.cpp | 4 +- .../source/model/CategoryFilterType.cpp | 8 +- .../source/model/ColorFillType.cpp | 6 +- .../source/model/ColumnDataRole.cpp | 6 +- .../source/model/ColumnDataType.cpp | 10 +- .../source/model/ColumnOrderingType.cpp | 8 +- .../source/model/ColumnRole.cpp | 6 +- .../source/model/ColumnTagName.cpp | 6 +- .../source/model/ComparisonMethod.cpp | 8 +- ...ConditionalFormattingIconDisplayOption.cpp | 4 +- .../ConditionalFormattingIconSetType.cpp | 24 +- .../source/model/ConstantType.cpp | 8 +- .../source/model/CrossDatasetTypes.cpp | 6 +- ...CustomContentImageScalingConfiguration.cpp | 10 +- .../source/model/CustomContentType.cpp | 6 +- .../source/model/DashboardBehavior.cpp | 6 +- .../source/model/DashboardErrorType.cpp | 22 +- .../source/model/DashboardFilterAttribute.cpp | 16 +- .../source/model/DashboardUIState.cpp | 6 +- .../source/model/DataLabelContent.cpp | 8 +- .../source/model/DataLabelOverlap.cpp | 6 +- .../source/model/DataLabelPosition.cpp | 14 +- .../source/model/DataSetFilterAttribute.cpp | 14 +- .../source/model/DataSetImportMode.cpp | 6 +- .../source/model/DataSourceErrorInfoType.cpp | 18 +- .../model/DataSourceFilterAttribute.cpp | 10 +- .../source/model/DataSourceType.cpp | 54 +- .../model/DatasetParameterValueType.cpp | 6 +- .../source/model/DateAggregationFunction.cpp | 10 +- .../source/model/DayOfWeek.cpp | 16 +- .../source/model/DefaultAggregation.cpp | 24 +- .../source/model/DisplayFormat.cpp | 14 +- .../source/model/Edition.cpp | 8 +- .../source/model/EmbeddingIdentityType.cpp | 8 +- .../source/model/ExceptionResourceType.cpp | 20 +- .../source/model/FileFormat.cpp | 14 +- .../source/model/FilterClass.cpp | 8 +- .../source/model/FilterNullOption.cpp | 8 +- .../source/model/FilterOperator.cpp | 6 +- .../source/model/FilterVisualScope.cpp | 6 +- .../source/model/FolderFilterAttribute.cpp | 16 +- .../source/model/FolderType.cpp | 4 +- .../source/model/FontDecoration.cpp | 6 +- .../source/model/FontStyle.cpp | 6 +- .../source/model/FontWeightName.cpp | 6 +- .../model/ForecastComputationSeasonality.cpp | 6 +- .../FunnelChartMeasureDataLabelStyle.cpp | 12 +- .../source/model/GeoSpatialCountryCode.cpp | 4 +- .../source/model/GeoSpatialDataRole.cpp | 16 +- .../model/GeospatialSelectedPointStyle.cpp | 8 +- .../source/model/GroupFilterAttribute.cpp | 4 +- .../source/model/GroupFilterOperator.cpp | 4 +- .../source/model/HistogramBinType.cpp | 6 +- .../source/model/HorizontalTextAlignment.cpp | 10 +- .../source/model/Icon.cpp | 54 +- .../source/model/IdentityStore.cpp | 4 +- .../source/model/IdentityType.cpp | 8 +- .../source/model/IngestionErrorType.cpp | 92 +- .../source/model/IngestionRequestSource.cpp | 6 +- .../source/model/IngestionRequestType.cpp | 10 +- .../source/model/IngestionStatus.cpp | 14 +- .../source/model/IngestionType.cpp | 6 +- .../source/model/InputColumnDataType.cpp | 16 +- .../source/model/JoinType.cpp | 10 +- .../source/model/KPISparklineType.cpp | 6 +- .../model/KPIVisualStandardLayoutType.cpp | 6 +- .../source/model/LayoutElementType.cpp | 10 +- .../source/model/LegendPosition.cpp | 10 +- .../source/model/LineChartLineStyle.cpp | 8 +- .../source/model/LineChartMarkerShape.cpp | 12 +- .../source/model/LineChartType.cpp | 8 +- .../source/model/LineInterpolation.cpp | 8 +- .../source/model/LookbackWindowSizeUnit.cpp | 8 +- .../source/model/MapZoomMode.cpp | 6 +- .../model/MaximumMinimumComputationType.cpp | 6 +- .../source/model/MemberType.cpp | 12 +- .../model/MissingDataTreatmentOption.cpp | 8 +- .../source/model/NamedEntityAggType.cpp | 28 +- .../source/model/NamedFilterAggType.cpp | 26 +- .../source/model/NamedFilterType.cpp | 12 +- .../source/model/NamespaceErrorType.cpp | 6 +- .../source/model/NamespaceStatus.cpp | 12 +- .../source/model/NegativeValueDisplayMode.cpp | 6 +- .../source/model/NetworkInterfaceStatus.cpp | 22 +- .../source/model/NumberScale.cpp | 14 +- .../model/NumericEqualityMatchOperator.cpp | 6 +- .../model/NumericFilterSelectAllOptions.cpp | 4 +- .../source/model/NumericSeparatorSymbol.cpp | 8 +- .../source/model/OtherCategories.cpp | 6 +- .../source/model/PanelBorderStyle.cpp | 8 +- .../source/model/PaperOrientation.cpp | 6 +- .../source/model/PaperSize.cpp | 24 +- .../source/model/ParameterValueType.cpp | 6 +- ...votTableConditionalFormattingScopeRole.cpp | 8 +- .../model/PivotTableFieldCollapseState.cpp | 6 +- .../model/PivotTableMetricPlacement.cpp | 6 +- .../source/model/PivotTableRowsLayout.cpp | 6 +- .../source/model/PivotTableSubtotalLevel.cpp | 8 +- .../source/model/PrimaryValueDisplayType.cpp | 8 +- .../source/model/PropertyRole.cpp | 6 +- .../source/model/PropertyUsage.cpp | 8 +- .../source/model/RadarChartAxesRangeScale.cpp | 8 +- .../source/model/RadarChartShape.cpp | 6 +- .../ReferenceLineLabelHorizontalPosition.cpp | 8 +- .../ReferenceLineLabelVerticalPosition.cpp | 6 +- .../source/model/ReferenceLinePatternType.cpp | 8 +- ...eferenceLineValueLabelRelativePosition.cpp | 6 +- .../source/model/RefreshInterval.cpp | 14 +- .../source/model/RelativeDateType.cpp | 12 +- .../source/model/RelativeFontSize.cpp | 12 +- .../source/model/ResizeOption.cpp | 6 +- .../source/model/ResourceStatus.cpp | 16 +- .../model/RowLevelPermissionFormatVersion.cpp | 6 +- .../source/model/RowLevelPermissionPolicy.cpp | 6 +- .../source/model/SectionPageBreakStatus.cpp | 6 +- .../source/model/SelectAllValueOptions.cpp | 4 +- .../source/model/SelectedFieldOptions.cpp | 4 +- .../source/model/SelectedTooltipType.cpp | 6 +- .../source/model/SharingModel.cpp | 6 +- .../source/model/SheetContentType.cpp | 6 +- .../model/SheetControlDateTimePickerType.cpp | 6 +- .../source/model/SheetControlListType.cpp | 6 +- .../source/model/SheetControlSliderType.cpp | 6 +- .../SimpleAttributeAggregationFunction.cpp | 4 +- .../SimpleNumericalAggregationFunction.cpp | 24 +- .../model/SmallMultiplesAxisPlacement.cpp | 6 +- .../source/model/SmallMultiplesAxisScale.cpp | 6 +- .../source/model/SnapshotFileFormatType.cpp | 8 +- .../model/SnapshotFileSheetSelectionScope.cpp | 6 +- .../source/model/SnapshotJobStatus.cpp | 10 +- .../source/model/SortDirection.cpp | 6 +- .../source/model/SpecialValue.cpp | 8 +- .../source/model/Status.cpp | 6 +- .../source/model/StyledCellType.cpp | 8 +- .../source/model/TableBorderStyle.cpp | 6 +- .../TableCellImageScalingConfiguration.cpp | 8 +- .../source/model/TableFieldIconSetType.cpp | 4 +- .../source/model/TableOrientation.cpp | 6 +- .../source/model/TableTotalsPlacement.cpp | 8 +- .../source/model/TableTotalsScrollStatus.cpp | 6 +- .../source/model/TargetVisualOptions.cpp | 4 +- .../source/model/TemplateErrorType.cpp | 10 +- .../source/model/TextQualifier.cpp | 6 +- .../source/model/TextWrap.cpp | 6 +- .../source/model/ThemeErrorType.cpp | 4 +- .../source/model/ThemeType.cpp | 8 +- .../source/model/TimeGranularity.cpp | 20 +- .../source/model/TooltipTitleType.cpp | 6 +- .../source/model/TopBottomComputationType.cpp | 6 +- .../source/model/TopBottomSortOrder.cpp | 6 +- .../model/TopicNumericSeparatorSymbol.cpp | 6 +- .../source/model/TopicRefreshStatus.cpp | 12 +- .../model/TopicRelativeDateFilterFunction.cpp | 12 +- .../source/model/TopicScheduleType.cpp | 10 +- .../source/model/TopicTimeGranularity.cpp | 18 +- .../source/model/URLTargetConfiguration.cpp | 8 +- .../model/UndefinedSpecifiedValueType.cpp | 6 +- .../source/model/UserRole.cpp | 12 +- .../model/VPCConnectionAvailabilityStatus.cpp | 8 +- .../model/VPCConnectionResourceStatus.cpp | 20 +- .../source/model/ValidationStrategyMode.cpp | 6 +- .../source/model/ValueWhenUnsetOption.cpp | 6 +- .../source/model/VerticalTextAlignment.cpp | 10 +- .../source/model/Visibility.cpp | 6 +- .../model/VisualCustomActionTrigger.cpp | 6 +- .../source/model/WidgetStatus.cpp | 6 +- .../source/model/WordCloudCloudLayout.cpp | 6 +- .../source/model/WordCloudWordCasing.cpp | 6 +- .../source/model/WordCloudWordOrientation.cpp | 6 +- .../source/model/WordCloudWordPadding.cpp | 10 +- .../source/model/WordCloudWordScaling.cpp | 6 +- .../src/aws-cpp-sdk-ram/source/RAMErrors.cpp | 54 +- .../source/model/PermissionFeatureSet.cpp | 8 +- .../source/model/PermissionStatus.cpp | 10 +- .../source/model/PermissionType.cpp | 6 +- .../source/model/PermissionTypeFilter.cpp | 8 +- ...eplacePermissionAssociationsWorkStatus.cpp | 8 +- .../source/model/ResourceOwner.cpp | 6 +- .../source/model/ResourceRegionScope.cpp | 6 +- .../model/ResourceRegionScopeFilter.cpp | 8 +- .../model/ResourceShareAssociationStatus.cpp | 12 +- .../model/ResourceShareAssociationType.cpp | 6 +- .../source/model/ResourceShareFeatureSet.cpp | 8 +- .../model/ResourceShareInvitationStatus.cpp | 10 +- .../source/model/ResourceShareStatus.cpp | 12 +- .../source/model/ResourceStatus.cpp | 12 +- .../source/RecycleBinErrors.cpp | 8 +- .../source/model/ConflictExceptionReason.cpp | 4 +- .../source/model/LockState.cpp | 8 +- .../model/ResourceNotFoundExceptionReason.cpp | 4 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/RetentionPeriodUnit.cpp | 4 +- .../source/model/RuleStatus.cpp | 6 +- .../ServiceQuotaExceededExceptionReason.cpp | 4 +- .../source/model/UnlockDelayUnit.cpp | 4 +- .../model/ValidationExceptionReason.cpp | 6 +- .../source/RDSDataServiceErrors.cpp | 12 +- .../source/model/DecimalReturnType.cpp | 6 +- .../source/model/LongReturnType.cpp | 6 +- .../source/model/RecordsFormatType.cpp | 6 +- .../source/model/TypeHint.cpp | 14 +- .../src/aws-cpp-sdk-rds/source/RDSErrors.cpp | 264 +-- .../source/model/ActivityStreamMode.cpp | 6 +- .../model/ActivityStreamPolicyStatus.cpp | 10 +- .../source/model/ActivityStreamStatus.cpp | 10 +- .../source/model/ApplyMethod.cpp | 6 +- .../source/model/AuditPolicyState.cpp | 6 +- .../source/model/AuthScheme.cpp | 4 +- .../source/model/AutomationMode.cpp | 6 +- .../source/model/ClientPasswordAuthType.cpp | 10 +- .../model/CustomEngineVersionStatus.cpp | 8 +- .../source/model/DBProxyEndpointStatus.cpp | 14 +- .../model/DBProxyEndpointTargetRole.cpp | 6 +- .../source/model/DBProxyStatus.cpp | 20 +- .../source/model/EngineFamily.cpp | 8 +- .../source/model/ExportSourceType.cpp | 6 +- .../source/model/FailoverStatus.cpp | 8 +- ...obalClusterMemberSynchronizationStatus.cpp | 6 +- .../source/model/IAMAuthMode.cpp | 8 +- .../model/LocalWriteForwardingStatus.cpp | 12 +- .../source/model/ReplicaMode.cpp | 6 +- .../source/model/SourceType.cpp | 20 +- .../source/model/TargetHealthReason.cpp | 12 +- .../source/model/TargetRole.cpp | 8 +- .../source/model/TargetState.cpp | 8 +- .../source/model/TargetType.cpp | 8 +- .../source/model/WriteForwardingStatus.cpp | 12 +- .../source/RedshiftDataAPIServiceErrors.cpp | 12 +- .../source/model/StatementStatusString.cpp | 14 +- .../source/model/StatusString.cpp | 16 +- .../source/RedshiftServerlessErrors.cpp | 14 +- .../source/model/LogExport.cpp | 8 +- .../source/model/NamespaceStatus.cpp | 8 +- .../source/model/SnapshotStatus.cpp | 14 +- .../source/model/UsageLimitBreachAction.cpp | 8 +- .../source/model/UsageLimitPeriod.cpp | 8 +- .../source/model/UsageLimitUsageType.cpp | 6 +- .../source/model/WorkgroupStatus.cpp | 10 +- .../source/RedshiftErrors.cpp | 262 +-- .../source/model/ActionType.cpp | 8 +- .../source/model/AquaConfigurationStatus.cpp | 8 +- .../source/model/AquaStatus.cpp | 8 +- .../source/model/AuthorizationStatus.cpp | 6 +- .../source/model/DataShareStatus.cpp | 14 +- .../model/DataShareStatusForConsumer.cpp | 6 +- .../model/DataShareStatusForProducer.cpp | 12 +- .../source/model/LogDestinationType.cpp | 6 +- .../source/model/Mode.cpp | 6 +- .../NodeConfigurationOptionsFilterName.cpp | 10 +- .../source/model/OperatorType.cpp | 16 +- .../source/model/ParameterApplyType.cpp | 6 +- .../source/model/PartnerIntegrationStatus.cpp | 10 +- .../model/ReservedNodeExchangeActionType.cpp | 6 +- .../model/ReservedNodeExchangeStatusType.cpp | 14 +- .../source/model/ReservedNodeOfferingType.cpp | 6 +- .../source/model/ScheduleState.cpp | 8 +- .../model/ScheduledActionFilterName.cpp | 6 +- .../source/model/ScheduledActionState.cpp | 6 +- .../model/ScheduledActionTypeValues.cpp | 8 +- .../model/SnapshotAttributeToSortBy.cpp | 8 +- .../source/model/SortByOrder.cpp | 6 +- .../source/model/SourceType.cpp | 12 +- .../source/model/TableRestoreStatusType.cpp | 12 +- .../source/model/UsageLimitBreachAction.cpp | 8 +- .../source/model/UsageLimitFeatureType.cpp | 8 +- .../source/model/UsageLimitLimitType.cpp | 6 +- .../source/model/UsageLimitPeriod.cpp | 8 +- .../source/RekognitionErrors.cpp | 38 +- .../source/model/Attribute.cpp | 30 +- .../source/model/BodyPart.cpp | 10 +- .../model/CelebrityRecognitionSortBy.cpp | 6 +- .../source/model/ContentClassifier.cpp | 6 +- .../model/ContentModerationAggregateBy.cpp | 6 +- .../source/model/ContentModerationSortBy.cpp | 6 +- .../source/model/CustomizationFeature.cpp | 6 +- .../source/model/DatasetStatus.cpp | 16 +- .../source/model/DatasetStatusMessageCode.cpp | 8 +- .../source/model/DatasetType.cpp | 6 +- .../source/model/DetectLabelsFeatureName.cpp | 6 +- .../source/model/EmotionName.cpp | 20 +- .../source/model/FaceAttributes.cpp | 6 +- .../source/model/FaceSearchSortBy.cpp | 6 +- .../source/model/GenderType.cpp | 6 +- .../source/model/KnownGenderType.cpp | 10 +- .../model/LabelDetectionAggregateBy.cpp | 6 +- .../model/LabelDetectionFeatureName.cpp | 4 +- .../source/model/LabelDetectionSortBy.cpp | 6 +- .../source/model/LandmarkType.cpp | 62 +- .../source/model/LivenessSessionStatus.cpp | 12 +- .../source/model/OrientationCorrection.cpp | 10 +- .../source/model/PersonTrackingSortBy.cpp | 6 +- .../source/model/ProjectAutoUpdate.cpp | 6 +- .../source/model/ProjectStatus.cpp | 8 +- .../source/model/ProjectVersionStatus.cpp | 30 +- .../source/model/ProtectiveEquipmentType.cpp | 8 +- .../source/model/QualityFilter.cpp | 12 +- .../source/model/Reason.cpp | 16 +- .../source/model/SegmentType.cpp | 6 +- .../StreamProcessorParameterToDelete.cpp | 6 +- .../source/model/StreamProcessorStatus.cpp | 14 +- .../source/model/TechnicalCueType.cpp | 16 +- .../source/model/TextTypes.cpp | 6 +- .../source/model/UnsearchedFaceReason.cpp | 18 +- .../UnsuccessfulFaceAssociationReason.cpp | 8 +- .../model/UnsuccessfulFaceDeletionReason.cpp | 6 +- .../UnsuccessfulFaceDisassociationReason.cpp | 6 +- .../source/model/UserStatus.cpp | 10 +- .../source/model/VideoColorRange.cpp | 6 +- .../source/model/VideoJobStatus.cpp | 8 +- .../source/ResilienceHubErrors.cpp | 8 +- .../source/model/AlarmType.cpp | 12 +- .../model/AppAssessmentScheduleType.cpp | 6 +- .../source/model/AppComplianceStatusType.cpp | 10 +- .../source/model/AppDriftStatusType.cpp | 8 +- .../source/model/AppStatusType.cpp | 6 +- .../source/model/AssessmentInvoker.cpp | 6 +- .../source/model/AssessmentStatus.cpp | 10 +- .../source/model/ComplianceStatus.cpp | 6 +- .../ConfigRecommendationOptimizationType.cpp | 14 +- .../source/model/CostFrequency.cpp | 10 +- .../source/model/DataLocationConstraint.cpp | 8 +- .../source/model/DifferenceType.cpp | 4 +- .../source/model/DisruptionType.cpp | 10 +- .../source/model/DriftStatus.cpp | 8 +- .../source/model/DriftType.cpp | 4 +- .../source/model/EstimatedCostTier.cpp | 10 +- .../source/model/EventType.cpp | 6 +- .../model/ExcludeRecommendationReason.cpp | 8 +- .../source/model/HaArchitecture.cpp | 12 +- .../source/model/PermissionModelType.cpp | 6 +- .../source/model/PhysicalIdentifierType.cpp | 6 +- .../model/RecommendationComplianceStatus.cpp | 8 +- .../model/RecommendationTemplateStatus.cpp | 10 +- .../source/model/RenderRecommendationType.cpp | 8 +- .../source/model/ResiliencyPolicyTier.cpp | 14 +- .../source/model/ResourceImportStatusType.cpp | 10 +- .../model/ResourceImportStrategyType.cpp | 6 +- .../source/model/ResourceMappingType.cpp | 14 +- .../model/ResourceResolutionStatusType.cpp | 10 +- .../source/model/ResourceSourceType.cpp | 6 +- .../source/model/SopServiceType.cpp | 4 +- .../source/model/TemplateFormat.cpp | 6 +- .../source/model/TestRisk.cpp | 8 +- .../source/model/TestType.cpp | 10 +- .../source/ResourceExplorer2Errors.cpp | 10 +- .../source/model/IndexState.cpp | 12 +- .../source/model/IndexType.cpp | 6 +- .../source/ResourceGroupsErrors.cpp | 16 +- .../source/model/GroupConfigurationStatus.cpp | 8 +- .../source/model/GroupFilterName.cpp | 6 +- .../GroupLifecycleEventsDesiredStatus.cpp | 6 +- .../model/GroupLifecycleEventsStatus.cpp | 10 +- .../source/model/QueryErrorCode.cpp | 8 +- .../source/model/QueryType.cpp | 6 +- .../source/model/ResourceFilterName.cpp | 4 +- .../source/model/ResourceStatusValue.cpp | 4 +- .../source/ResourceGroupsTaggingAPIErrors.cpp | 12 +- .../source/model/ErrorCode.cpp | 6 +- .../source/model/GroupByAttribute.cpp | 8 +- .../source/model/TargetIdType.cpp | 8 +- .../source/RoboMakerErrors.cpp | 12 +- .../source/model/Architecture.cpp | 8 +- .../source/model/ComputeType.cpp | 6 +- .../source/model/DataSourceType.cpp | 8 +- .../source/model/DeploymentJobErrorCode.cpp | 50 +- .../source/model/DeploymentStatus.cpp | 14 +- .../source/model/ExitBehavior.cpp | 6 +- .../source/model/FailureBehavior.cpp | 6 +- .../source/model/RenderingEngineType.cpp | 4 +- .../source/model/RobotDeploymentStep.cpp | 16 +- .../source/model/RobotSoftwareSuiteType.cpp | 8 +- .../model/RobotSoftwareSuiteVersionType.cpp | 10 +- .../source/model/RobotStatus.cpp | 16 +- .../model/SimulationJobBatchErrorCode.cpp | 4 +- .../source/model/SimulationJobBatchStatus.cpp | 20 +- .../source/model/SimulationJobErrorCode.cpp | 64 +- .../source/model/SimulationJobStatus.cpp | 22 +- .../model/SimulationSoftwareSuiteType.cpp | 8 +- .../source/model/UploadBehavior.cpp | 6 +- .../source/model/WorldExportJobErrorCode.cpp | 14 +- .../source/model/WorldExportJobStatus.cpp | 14 +- .../model/WorldGenerationJobErrorCode.cpp | 14 +- .../source/model/WorldGenerationJobStatus.cpp | 16 +- .../source/RolesAnywhereErrors.cpp | 4 +- .../source/model/NotificationChannel.cpp | 4 +- .../source/model/NotificationEvent.cpp | 6 +- .../source/model/TrustAnchorType.cpp | 8 +- .../source/Route53RecoveryClusterErrors.cpp | 10 +- .../source/model/RoutingControlState.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../Route53RecoveryControlConfigErrors.cpp | 8 +- .../source/model/RuleType.cpp | 8 +- .../source/model/Status.cpp | 8 +- .../source/Route53RecoveryReadinessErrors.cpp | 6 +- .../source/model/Readiness.cpp | 10 +- .../source/Route53Errors.cpp | 138 +- .../source/model/AccountLimitType.cpp | 12 +- .../source/model/ChangeAction.cpp | 8 +- .../source/model/ChangeStatus.cpp | 6 +- .../model/CidrCollectionChangeAction.cpp | 6 +- .../source/model/CloudWatchRegion.cpp | 72 +- .../source/model/ComparisonOperator.cpp | 10 +- .../source/model/HealthCheckRegion.cpp | 18 +- .../source/model/HealthCheckType.cpp | 18 +- .../source/model/HostedZoneLimitType.cpp | 6 +- .../source/model/HostedZoneType.cpp | 4 +- .../model/InsufficientDataHealthStatus.cpp | 8 +- .../source/model/RRType.cpp | 28 +- .../source/model/ResettableElementName.cpp | 10 +- .../model/ResourceRecordSetFailover.cpp | 6 +- .../source/model/ResourceRecordSetRegion.cpp | 62 +- .../model/ReusableDelegationSetLimitType.cpp | 4 +- .../source/model/Statistic.cpp | 12 +- .../source/model/TagResourceType.cpp | 6 +- .../source/model/VPCRegion.cpp | 70 +- .../source/Route53DomainsErrors.cpp | 16 +- .../source/model/ContactType.cpp | 12 +- .../source/model/CountryCode.cpp | 510 +++--- .../source/model/DomainAvailability.cpp | 18 +- .../source/model/ExtraParamName.cpp | 64 +- .../source/model/ListDomainsAttributeName.cpp | 6 +- .../model/ListOperationsSortAttributeName.cpp | 4 +- .../source/model/OperationStatus.cpp | 12 +- .../source/model/OperationType.cpp | 38 +- .../source/model/Operator.cpp | 8 +- .../source/model/ReachabilityStatus.cpp | 8 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/StatusFlag.cpp | 12 +- .../source/model/Transferable.cpp | 14 +- .../source/Route53ResolverErrors.cpp | 28 +- .../source/model/Action.cpp | 8 +- .../source/model/AutodefinedReverseFlag.cpp | 8 +- .../source/model/BlockOverrideDnsType.cpp | 4 +- .../source/model/BlockResponse.cpp | 8 +- .../model/FirewallDomainImportOperation.cpp | 4 +- .../source/model/FirewallDomainListStatus.cpp | 12 +- .../model/FirewallDomainUpdateOperation.cpp | 8 +- .../source/model/FirewallFailOpenStatus.cpp | 8 +- .../FirewallRuleGroupAssociationStatus.cpp | 8 +- .../source/model/FirewallRuleGroupStatus.cpp | 8 +- .../source/model/IpAddressStatus.cpp | 26 +- .../source/model/MutationProtectionStatus.cpp | 6 +- .../source/model/OutpostResolverStatus.cpp | 16 +- .../ResolverAutodefinedReverseStatus.cpp | 14 +- .../model/ResolverDNSSECValidationStatus.cpp | 14 +- .../model/ResolverEndpointDirection.cpp | 6 +- .../source/model/ResolverEndpointStatus.cpp | 14 +- .../source/model/ResolverEndpointType.cpp | 8 +- ...ResolverQueryLogConfigAssociationError.cpp | 10 +- ...esolverQueryLogConfigAssociationStatus.cpp | 12 +- .../model/ResolverQueryLogConfigStatus.cpp | 10 +- .../model/ResolverRuleAssociationStatus.cpp | 12 +- .../source/model/ResolverRuleStatus.cpp | 10 +- .../source/model/RuleTypeOption.cpp | 8 +- .../source/model/ShareStatus.cpp | 8 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/Validation.cpp | 8 +- .../source/CloudWatchRUMErrors.cpp | 8 +- .../source/model/CustomEventsStatus.cpp | 6 +- .../source/model/MetricDestination.cpp | 6 +- .../source/model/StateEnum.cpp | 8 +- .../source/model/Telemetry.cpp | 8 +- .../aws-cpp-sdk-s3-crt/source/S3CrtErrors.cpp | 18 +- .../model/AnalyticsS3ExportFileFormat.cpp | 4 +- .../source/model/ArchiveStatus.cpp | 6 +- .../source/model/BucketAccelerateStatus.cpp | 6 +- .../source/model/BucketCannedACL.cpp | 10 +- .../source/model/BucketLocationConstraint.cpp | 62 +- .../source/model/BucketLogsPermission.cpp | 8 +- .../source/model/BucketVersioningStatus.cpp | 6 +- .../source/model/ChecksumAlgorithm.cpp | 10 +- .../source/model/ChecksumMode.cpp | 4 +- .../source/model/CompressionType.cpp | 8 +- .../model/DeleteMarkerReplicationStatus.cpp | 6 +- .../source/model/EncodingType.cpp | 4 +- .../aws-cpp-sdk-s3-crt/source/model/Event.cpp | 56 +- .../model/ExistingObjectReplicationStatus.cpp | 6 +- .../source/model/ExpirationStatus.cpp | 6 +- .../source/model/ExpressionType.cpp | 4 +- .../source/model/FileHeaderInfo.cpp | 8 +- .../source/model/FilterRuleName.cpp | 6 +- .../model/IntelligentTieringAccessTier.cpp | 6 +- .../source/model/IntelligentTieringStatus.cpp | 6 +- .../source/model/InventoryFormat.cpp | 8 +- .../source/model/InventoryFrequency.cpp | 6 +- .../model/InventoryIncludedObjectVersions.cpp | 6 +- .../source/model/InventoryOptionalField.cpp | 32 +- .../source/model/JSONType.cpp | 6 +- .../source/model/MFADelete.cpp | 6 +- .../source/model/MFADeleteStatus.cpp | 6 +- .../source/model/MetadataDirective.cpp | 6 +- .../source/model/MetricsStatus.cpp | 6 +- .../source/model/ObjectAttributes.cpp | 12 +- .../source/model/ObjectCannedACL.cpp | 16 +- .../source/model/ObjectLockEnabled.cpp | 4 +- .../model/ObjectLockLegalHoldStatus.cpp | 6 +- .../source/model/ObjectLockMode.cpp | 6 +- .../source/model/ObjectLockRetentionMode.cpp | 6 +- .../source/model/ObjectOwnership.cpp | 8 +- .../source/model/ObjectStorageClass.cpp | 22 +- .../model/ObjectVersionStorageClass.cpp | 4 +- .../source/model/OptionalObjectAttributes.cpp | 4 +- .../source/model/OwnerOverride.cpp | 4 +- .../aws-cpp-sdk-s3-crt/source/model/Payer.cpp | 6 +- .../source/model/Permission.cpp | 12 +- .../source/model/Protocol.cpp | 6 +- .../source/model/QuoteFields.cpp | 6 +- .../model/ReplicaModificationsStatus.cpp | 6 +- .../source/model/ReplicationRuleStatus.cpp | 6 +- .../source/model/ReplicationStatus.cpp | 10 +- .../source/model/ReplicationTimeStatus.cpp | 6 +- .../source/model/RequestCharged.cpp | 4 +- .../source/model/RequestPayer.cpp | 4 +- .../source/model/RestoreRequestType.cpp | 4 +- .../model/SelectObjectContentHandler.cpp | 12 +- .../source/model/ServerSideEncryption.cpp | 8 +- .../model/SseKmsEncryptedObjectsStatus.cpp | 6 +- .../source/model/StorageClass.cpp | 22 +- .../StorageClassAnalysisSchemaVersion.cpp | 4 +- .../source/model/TaggingDirective.cpp | 6 +- .../aws-cpp-sdk-s3-crt/source/model/Tier.cpp | 8 +- .../source/model/TransitionStorageClass.cpp | 14 +- .../aws-cpp-sdk-s3-crt/source/model/Type.cpp | 8 +- .../src/aws-cpp-sdk-s3/source/S3Errors.cpp | 18 +- .../model/AnalyticsS3ExportFileFormat.cpp | 4 +- .../source/model/ArchiveStatus.cpp | 6 +- .../source/model/BucketAccelerateStatus.cpp | 6 +- .../source/model/BucketCannedACL.cpp | 10 +- .../source/model/BucketLocationConstraint.cpp | 62 +- .../source/model/BucketLogsPermission.cpp | 8 +- .../source/model/BucketVersioningStatus.cpp | 6 +- .../source/model/ChecksumAlgorithm.cpp | 10 +- .../source/model/ChecksumMode.cpp | 4 +- .../source/model/CompressionType.cpp | 8 +- .../model/DeleteMarkerReplicationStatus.cpp | 6 +- .../source/model/EncodingType.cpp | 4 +- .../src/aws-cpp-sdk-s3/source/model/Event.cpp | 56 +- .../model/ExistingObjectReplicationStatus.cpp | 6 +- .../source/model/ExpirationStatus.cpp | 6 +- .../source/model/ExpressionType.cpp | 4 +- .../source/model/FileHeaderInfo.cpp | 8 +- .../source/model/FilterRuleName.cpp | 6 +- .../model/IntelligentTieringAccessTier.cpp | 6 +- .../source/model/IntelligentTieringStatus.cpp | 6 +- .../source/model/InventoryFormat.cpp | 8 +- .../source/model/InventoryFrequency.cpp | 6 +- .../model/InventoryIncludedObjectVersions.cpp | 6 +- .../source/model/InventoryOptionalField.cpp | 32 +- .../aws-cpp-sdk-s3/source/model/JSONType.cpp | 6 +- .../aws-cpp-sdk-s3/source/model/MFADelete.cpp | 6 +- .../source/model/MFADeleteStatus.cpp | 6 +- .../source/model/MetadataDirective.cpp | 6 +- .../source/model/MetricsStatus.cpp | 6 +- .../source/model/ObjectAttributes.cpp | 12 +- .../source/model/ObjectCannedACL.cpp | 16 +- .../source/model/ObjectLockEnabled.cpp | 4 +- .../model/ObjectLockLegalHoldStatus.cpp | 6 +- .../source/model/ObjectLockMode.cpp | 6 +- .../source/model/ObjectLockRetentionMode.cpp | 6 +- .../source/model/ObjectOwnership.cpp | 8 +- .../source/model/ObjectStorageClass.cpp | 22 +- .../model/ObjectVersionStorageClass.cpp | 4 +- .../source/model/OptionalObjectAttributes.cpp | 4 +- .../source/model/OwnerOverride.cpp | 4 +- .../src/aws-cpp-sdk-s3/source/model/Payer.cpp | 6 +- .../source/model/Permission.cpp | 12 +- .../aws-cpp-sdk-s3/source/model/Protocol.cpp | 6 +- .../source/model/QuoteFields.cpp | 6 +- .../model/ReplicaModificationsStatus.cpp | 6 +- .../source/model/ReplicationRuleStatus.cpp | 6 +- .../source/model/ReplicationStatus.cpp | 10 +- .../source/model/ReplicationTimeStatus.cpp | 6 +- .../source/model/RequestCharged.cpp | 4 +- .../source/model/RequestPayer.cpp | 4 +- .../source/model/RestoreRequestType.cpp | 4 +- .../model/SelectObjectContentHandler.cpp | 12 +- .../source/model/ServerSideEncryption.cpp | 8 +- .../model/SseKmsEncryptedObjectsStatus.cpp | 6 +- .../source/model/StorageClass.cpp | 22 +- .../StorageClassAnalysisSchemaVersion.cpp | 4 +- .../source/model/TaggingDirective.cpp | 6 +- .../src/aws-cpp-sdk-s3/source/model/Tier.cpp | 8 +- .../source/model/TransitionStorageClass.cpp | 14 +- .../src/aws-cpp-sdk-s3/source/model/Type.cpp | 8 +- .../source/S3ControlErrors.cpp | 26 +- .../source/model/AsyncOperationName.cpp | 8 +- .../source/model/BucketCannedACL.cpp | 10 +- .../source/model/BucketLocationConstraint.cpp | 24 +- .../source/model/BucketVersioningStatus.cpp | 6 +- .../model/DeleteMarkerReplicationStatus.cpp | 6 +- .../model/ExistingObjectReplicationStatus.cpp | 6 +- .../source/model/ExpirationStatus.cpp | 6 +- .../source/model/Format.cpp | 6 +- .../source/model/GeneratedManifestFormat.cpp | 4 +- .../source/model/JobManifestFieldName.cpp | 10 +- .../source/model/JobManifestFormat.cpp | 6 +- .../source/model/JobReportFormat.cpp | 4 +- .../source/model/JobReportScope.cpp | 6 +- .../source/model/JobStatus.cpp | 28 +- .../source/model/MFADelete.cpp | 6 +- .../source/model/MFADeleteStatus.cpp | 6 +- .../source/model/MetricsStatus.cpp | 6 +- .../model/MultiRegionAccessPointStatus.cpp | 14 +- .../source/model/NetworkOrigin.cpp | 6 +- .../ObjectLambdaAccessPointAliasStatus.cpp | 6 +- .../model/ObjectLambdaAllowedFeature.cpp | 10 +- ...ambdaTransformationConfigurationAction.cpp | 10 +- .../source/model/OperationName.cpp | 20 +- .../source/model/OutputSchemaVersion.cpp | 4 +- .../source/model/OwnerOverride.cpp | 4 +- .../model/ReplicaModificationsStatus.cpp | 6 +- .../source/model/ReplicationRuleStatus.cpp | 6 +- .../source/model/ReplicationStatus.cpp | 10 +- .../source/model/ReplicationStorageClass.cpp | 20 +- .../source/model/ReplicationTimeStatus.cpp | 6 +- .../source/model/RequestedJobStatus.cpp | 6 +- .../model/S3CannedAccessControlList.cpp | 16 +- .../source/model/S3ChecksumAlgorithm.cpp | 10 +- .../source/model/S3GlacierJobTier.cpp | 6 +- .../source/model/S3GranteeTypeIdentifier.cpp | 8 +- .../source/model/S3MetadataDirective.cpp | 6 +- .../model/S3ObjectLockLegalHoldStatus.cpp | 6 +- .../source/model/S3ObjectLockMode.cpp | 6 +- .../model/S3ObjectLockRetentionMode.cpp | 6 +- .../source/model/S3Permission.cpp | 12 +- .../source/model/S3SSEAlgorithm.cpp | 6 +- .../source/model/S3StorageClass.cpp | 16 +- .../model/SseKmsEncryptedObjectsStatus.cpp | 6 +- .../source/model/TransitionStorageClass.cpp | 12 +- .../source/S3OutpostsErrors.cpp | 8 +- .../source/model/EndpointAccessType.cpp | 6 +- .../source/model/EndpointStatus.cpp | 12 +- .../source/AugmentedAIRuntimeErrors.cpp | 8 +- .../source/model/ContentClassifier.cpp | 6 +- .../source/model/HumanLoopStatus.cpp | 12 +- .../source/model/SortOrder.cpp | 6 +- .../source/SagemakerEdgeManagerErrors.cpp | 4 +- .../source/model/ChecksumType.cpp | 4 +- .../source/model/DeploymentStatus.cpp | 6 +- .../source/model/DeploymentType.cpp | 4 +- .../source/model/FailureHandlingPolicy.cpp | 6 +- .../source/model/ModelState.cpp | 6 +- .../SageMakerFeatureStoreRuntimeErrors.cpp | 4 +- .../source/model/DeletionMode.cpp | 6 +- .../source/model/ExpirationTimeResponse.cpp | 6 +- .../source/model/TargetStore.cpp | 6 +- .../source/model/TtlDurationUnit.cpp | 12 +- .../source/SageMakerGeospatialErrors.cpp | 8 +- .../model/AlgorithmNameCloudRemoval.cpp | 4 +- .../source/model/AlgorithmNameGeoMosaic.cpp | 30 +- .../source/model/AlgorithmNameResampling.cpp | 30 +- .../source/model/ComparisonOperator.cpp | 8 +- .../source/model/DataCollectionType.cpp | 8 +- .../model/EarthObservationJobErrorType.cpp | 6 +- .../model/EarthObservationJobExportStatus.cpp | 8 +- .../model/EarthObservationJobStatus.cpp | 18 +- .../source/model/ExportErrorType.cpp | 6 +- .../source/model/GroupBy.cpp | 6 +- .../source/model/LogicalOperator.cpp | 4 +- .../source/model/OutputType.cpp | 12 +- .../source/model/PredefinedResolution.cpp | 8 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/TargetOptions.cpp | 6 +- .../source/model/TemporalStatistics.cpp | 8 +- .../source/model/Unit.cpp | 4 +- .../model/VectorEnrichmentJobDocumentType.cpp | 4 +- .../model/VectorEnrichmentJobErrorType.cpp | 6 +- .../VectorEnrichmentJobExportErrorType.cpp | 6 +- .../model/VectorEnrichmentJobExportStatus.cpp | 8 +- .../model/VectorEnrichmentJobStatus.cpp | 18 +- .../source/model/VectorEnrichmentJobType.cpp | 6 +- .../source/model/ZonalStatistics.cpp | 14 +- .../source/model/PutMetricsErrorCode.cpp | 10 +- .../source/SageMakerRuntimeErrors.cpp | 12 +- ...nvokeEndpointWithResponseStreamHandler.cpp | 4 +- .../source/SageMakerClient.cpp | 606 +++---- .../source/SageMakerClient1.cpp | 680 ++++---- .../source/SageMakerClient2.cpp | 584 +++---- .../source/SageMakerErrors.cpp | 8 +- .../source/model/ActionStatus.cpp | 14 +- .../model/AdditionalS3DataSourceDataType.cpp | 4 +- .../model/AggregationTransformationValue.cpp | 12 +- .../source/model/AlgorithmSortBy.cpp | 6 +- .../source/model/AlgorithmStatus.cpp | 12 +- .../source/model/AppImageConfigSortKey.cpp | 8 +- .../source/model/AppInstanceType.cpp | 122 +- .../source/model/AppNetworkAccessType.cpp | 6 +- .../model/AppSecurityGroupManagement.cpp | 6 +- .../source/model/AppSortKey.cpp | 4 +- .../source/model/AppStatus.cpp | 12 +- .../source/model/AppType.cpp | 12 +- .../source/model/ArtifactSourceIdType.cpp | 10 +- .../source/model/AssemblyType.cpp | 6 +- .../source/model/AssociationEdgeType.cpp | 10 +- .../model/AsyncNotificationTopicTypes.cpp | 6 +- .../model/AthenaResultCompressionType.cpp | 8 +- .../source/model/AthenaResultFormat.cpp | 12 +- .../source/model/AuthMode.cpp | 6 +- .../source/model/AutoMLAlgorithm.cpp | 20 +- .../source/model/AutoMLChannelType.cpp | 6 +- .../source/model/AutoMLJobObjectiveType.cpp | 6 +- .../source/model/AutoMLJobSecondaryStatus.cpp | 40 +- .../source/model/AutoMLJobStatus.cpp | 12 +- .../source/model/AutoMLMetricEnum.cpp | 36 +- .../source/model/AutoMLMetricExtendedEnum.cpp | 40 +- .../source/model/AutoMLMode.cpp | 8 +- .../model/AutoMLProblemTypeConfigName.cpp | 10 +- .../source/model/AutoMLProcessingUnit.cpp | 6 +- .../source/model/AutoMLS3DataType.cpp | 8 +- .../source/model/AutoMLSortBy.cpp | 8 +- .../source/model/AutoMLSortOrder.cpp | 6 +- .../source/model/AutotuneMode.cpp | 4 +- .../AwsManagedHumanLoopRequestSource.cpp | 6 +- .../source/model/BatchStrategy.cpp | 6 +- .../source/model/BooleanOperator.cpp | 6 +- .../source/model/CandidateSortBy.cpp | 8 +- .../source/model/CandidateStatus.cpp | 12 +- .../source/model/CandidateStepType.cpp | 8 +- .../source/model/CapacitySizeType.cpp | 6 +- .../source/model/CaptureMode.cpp | 6 +- .../source/model/CaptureStatus.cpp | 6 +- .../source/model/ClarifyFeatureType.cpp | 8 +- .../source/model/ClarifyTextGranularity.cpp | 8 +- .../source/model/ClarifyTextLanguage.cpp | 122 +- .../source/model/CodeRepositorySortBy.cpp | 8 +- .../source/model/CodeRepositorySortOrder.cpp | 6 +- .../source/model/CollectionType.cpp | 8 +- .../source/model/CompilationJobStatus.cpp | 14 +- .../source/model/CompleteOnConvergence.cpp | 6 +- .../source/model/CompressionType.cpp | 6 +- .../source/model/ConditionOutcome.cpp | 6 +- .../source/model/ContainerMode.cpp | 6 +- .../source/model/ContentClassifier.cpp | 6 +- .../source/model/CrossAccountFilterOption.cpp | 6 +- .../source/model/DataDistributionType.cpp | 6 +- .../source/model/DataSourceName.cpp | 6 +- .../source/model/DetailedAlgorithmStatus.cpp | 10 +- .../model/DetailedModelPackageStatus.cpp | 10 +- .../source/model/DeviceDeploymentStatus.cpp | 14 +- .../source/model/DeviceSubsetType.cpp | 8 +- .../source/model/DirectInternetAccess.cpp | 6 +- .../source/model/Direction.cpp | 8 +- .../source/model/DomainStatus.cpp | 16 +- .../source/model/EdgePackagingJobStatus.cpp | 14 +- .../model/EdgePresetDeploymentStatus.cpp | 6 +- .../source/model/EdgePresetDeploymentType.cpp | 4 +- .../source/model/EndpointConfigSortKey.cpp | 6 +- .../source/model/EndpointSortKey.cpp | 8 +- .../source/model/EndpointStatus.cpp | 20 +- .../model/ExecutionRoleIdentityConfig.cpp | 6 +- .../source/model/ExecutionStatus.cpp | 16 +- .../source/model/FailureHandlingPolicy.cpp | 6 +- .../source/model/FeatureGroupSortBy.cpp | 10 +- .../source/model/FeatureGroupSortOrder.cpp | 6 +- .../source/model/FeatureGroupStatus.cpp | 12 +- .../source/model/FeatureStatus.cpp | 6 +- .../source/model/FeatureType.cpp | 8 +- .../source/model/FileSystemAccessMode.cpp | 6 +- .../source/model/FileSystemType.cpp | 6 +- .../source/model/FillingType.cpp | 18 +- .../source/model/FlatInvocations.cpp | 6 +- .../source/model/FlowDefinitionStatus.cpp | 10 +- .../source/model/Framework.cpp | 20 +- .../source/model/HubContentSortBy.cpp | 8 +- .../source/model/HubContentStatus.cpp | 12 +- .../source/model/HubContentType.cpp | 6 +- .../source/model/HubSortBy.cpp | 10 +- .../source/model/HubStatus.cpp | 16 +- .../source/model/HumanTaskUiStatus.cpp | 6 +- .../model/HyperParameterScalingType.cpp | 10 +- ...HyperParameterTuningAllocationStrategy.cpp | 4 +- .../HyperParameterTuningJobObjectiveType.cpp | 6 +- .../HyperParameterTuningJobSortByOptions.cpp | 8 +- .../model/HyperParameterTuningJobStatus.cpp | 12 +- .../HyperParameterTuningJobStrategyType.cpp | 10 +- .../HyperParameterTuningJobWarmStartType.cpp | 6 +- .../source/model/ImageSortBy.cpp | 8 +- .../source/model/ImageSortOrder.cpp | 6 +- .../source/model/ImageStatus.cpp | 16 +- .../source/model/ImageVersionSortBy.cpp | 8 +- .../source/model/ImageVersionSortOrder.cpp | 6 +- .../source/model/ImageVersionStatus.cpp | 12 +- .../source/model/InferenceExecutionMode.cpp | 6 +- .../model/InferenceExperimentStatus.cpp | 18 +- .../InferenceExperimentStopDesiredState.cpp | 6 +- .../source/model/InferenceExperimentType.cpp | 4 +- .../source/model/InputMode.cpp | 6 +- .../source/model/InstanceType.cpp | 152 +- .../source/model/JobType.cpp | 8 +- .../source/model/JoinSource.cpp | 6 +- .../source/model/LabelingJobStatus.cpp | 14 +- .../source/model/LastUpdateStatusValue.cpp | 8 +- .../source/model/LineageType.cpp | 10 +- .../model/ListCompilationJobsSortBy.cpp | 8 +- .../source/model/ListDeviceFleetsSortBy.cpp | 8 +- .../model/ListEdgeDeploymentPlansSortBy.cpp | 10 +- .../model/ListEdgePackagingJobsSortBy.cpp | 12 +- ...ListInferenceRecommendationsJobsSortBy.cpp | 8 +- ...stLabelingJobsForWorkteamSortByOptions.cpp | 4 +- .../model/ListWorkforcesSortByOptions.cpp | 6 +- .../model/ListWorkteamsSortByOptions.cpp | 6 +- .../source/model/MetricSetSource.cpp | 8 +- .../source/model/ModelApprovalStatus.cpp | 8 +- .../source/model/ModelCacheSetting.cpp | 6 +- .../source/model/ModelCardExportJobSortBy.cpp | 8 +- .../model/ModelCardExportJobSortOrder.cpp | 6 +- .../source/model/ModelCardExportJobStatus.cpp | 8 +- .../model/ModelCardProcessingStatus.cpp | 14 +- .../source/model/ModelCardSortBy.cpp | 6 +- .../source/model/ModelCardSortOrder.cpp | 6 +- .../source/model/ModelCardStatus.cpp | 10 +- .../source/model/ModelCardVersionSortBy.cpp | 4 +- .../source/model/ModelCompressionType.cpp | 6 +- .../source/model/ModelInfrastructureType.cpp | 4 +- .../source/model/ModelMetadataFilterType.cpp | 10 +- .../source/model/ModelPackageGroupSortBy.cpp | 6 +- .../source/model/ModelPackageGroupStatus.cpp | 14 +- .../source/model/ModelPackageSortBy.cpp | 6 +- .../source/model/ModelPackageStatus.cpp | 12 +- .../source/model/ModelPackageType.cpp | 8 +- .../source/model/ModelSortKey.cpp | 6 +- .../source/model/ModelVariantAction.cpp | 8 +- .../source/model/ModelVariantStatus.cpp | 12 +- .../model/MonitoringAlertHistorySortKey.cpp | 6 +- .../source/model/MonitoringAlertStatus.cpp | 6 +- .../model/MonitoringExecutionSortKey.cpp | 8 +- .../model/MonitoringJobDefinitionSortKey.cpp | 6 +- .../source/model/MonitoringProblemType.cpp | 8 +- .../model/MonitoringScheduleSortKey.cpp | 8 +- .../source/model/MonitoringType.cpp | 10 +- .../model/NotebookInstanceAcceleratorType.cpp | 14 +- ...NotebookInstanceLifecycleConfigSortKey.cpp | 8 +- ...tebookInstanceLifecycleConfigSortOrder.cpp | 6 +- .../source/model/NotebookInstanceSortKey.cpp | 8 +- .../model/NotebookInstanceSortOrder.cpp | 6 +- .../source/model/NotebookInstanceStatus.cpp | 16 +- .../source/model/NotebookOutputOption.cpp | 6 +- .../source/model/ObjectiveStatus.cpp | 8 +- .../source/model/OfflineStoreStatusValue.cpp | 8 +- .../source/model/Operator.cpp | 22 +- .../source/model/OrderKey.cpp | 6 +- .../source/model/OutputCompressionType.cpp | 6 +- .../source/model/ParameterType.cpp | 10 +- .../source/model/PipelineExecutionStatus.cpp | 12 +- .../source/model/PipelineStatus.cpp | 4 +- .../source/model/ProblemType.cpp | 8 +- .../source/model/ProcessingInstanceType.cpp | 90 +- .../source/model/ProcessingJobStatus.cpp | 12 +- .../model/ProcessingS3CompressionType.cpp | 6 +- .../ProcessingS3DataDistributionType.cpp | 6 +- .../source/model/ProcessingS3DataType.cpp | 6 +- .../source/model/ProcessingS3InputMode.cpp | 6 +- .../source/model/ProcessingS3UploadMode.cpp | 6 +- .../source/model/Processor.cpp | 6 +- .../ProductionVariantAcceleratorType.cpp | 14 +- .../model/ProductionVariantInstanceType.cpp | 302 ++-- .../source/model/ProfilingStatus.cpp | 6 +- .../source/model/ProjectSortBy.cpp | 6 +- .../source/model/ProjectSortOrder.cpp | 6 +- .../source/model/ProjectStatus.cpp | 22 +- .../model/RStudioServerProAccessStatus.cpp | 6 +- .../model/RStudioServerProUserGroup.cpp | 6 +- .../source/model/RecommendationJobStatus.cpp | 14 +- ...RecommendationJobSupportedEndpointType.cpp | 6 +- .../source/model/RecommendationJobType.cpp | 6 +- .../source/model/RecommendationStatus.cpp | 10 +- .../source/model/RecommendationStepType.cpp | 4 +- .../source/model/RecordWrapper.cpp | 6 +- .../model/RedshiftResultCompressionType.cpp | 12 +- .../source/model/RedshiftResultFormat.cpp | 6 +- .../source/model/RepositoryAccessMode.cpp | 6 +- .../source/model/ResourceCatalogSortBy.cpp | 4 +- .../source/model/ResourceCatalogSortOrder.cpp | 6 +- .../source/model/ResourceType.cpp | 32 +- .../source/model/RetentionType.cpp | 6 +- .../source/model/RootAccess.cpp | 6 +- .../source/model/RuleEvaluationStatus.cpp | 14 +- .../source/model/S3DataDistribution.cpp | 6 +- .../source/model/S3DataType.cpp | 8 +- .../source/model/S3ModelDataType.cpp | 6 +- .../model/SagemakerServicecatalogStatus.cpp | 6 +- .../source/model/ScheduleStatus.cpp | 10 +- .../source/model/SearchSortOrder.cpp | 6 +- .../source/model/SecondaryStatus.cpp | 34 +- .../source/model/SkipModelValidation.cpp | 6 +- .../source/model/SortActionsBy.cpp | 6 +- .../source/model/SortArtifactsBy.cpp | 4 +- .../source/model/SortAssociationsBy.cpp | 12 +- .../source/model/SortBy.cpp | 8 +- .../source/model/SortContextsBy.cpp | 6 +- .../source/model/SortExperimentsBy.cpp | 6 +- .../model/SortInferenceExperimentsBy.cpp | 8 +- .../source/model/SortLineageGroupsBy.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SortPipelineExecutionsBy.cpp | 6 +- .../source/model/SortPipelinesBy.cpp | 6 +- .../source/model/SortTrialComponentsBy.cpp | 6 +- .../source/model/SortTrialsBy.cpp | 6 +- .../source/model/SpaceSortKey.cpp | 6 +- .../source/model/SpaceStatus.cpp | 16 +- .../source/model/SplitType.cpp | 10 +- .../source/model/StageStatus.cpp | 18 +- .../source/model/Statistic.cpp | 12 +- .../source/model/StepStatus.cpp | 14 +- .../source/model/StorageType.cpp | 6 +- .../model/StudioLifecycleConfigAppType.cpp | 6 +- .../model/StudioLifecycleConfigSortKey.cpp | 8 +- .../source/model/TableFormat.cpp | 6 +- .../source/model/TargetDevice.cpp | 70 +- .../model/TargetPlatformAccelerator.cpp | 10 +- .../source/model/TargetPlatformArch.cpp | 12 +- .../source/model/TargetPlatformOs.cpp | 6 +- .../source/model/TrafficRoutingConfigType.cpp | 8 +- .../source/model/TrafficType.cpp | 6 +- .../source/model/TrainingInputMode.cpp | 8 +- .../source/model/TrainingInstanceType.cpp | 104 +- .../model/TrainingJobEarlyStoppingType.cpp | 6 +- .../source/model/TrainingJobSortByOptions.cpp | 10 +- .../source/model/TrainingJobStatus.cpp | 12 +- .../model/TrainingRepositoryAccessMode.cpp | 6 +- .../source/model/TransformInstanceType.cpp | 66 +- .../source/model/TransformJobStatus.cpp | 12 +- .../model/TrialComponentPrimaryStatus.cpp | 12 +- .../source/model/TtlDurationUnit.cpp | 12 +- .../source/model/UserProfileSortKey.cpp | 6 +- .../source/model/UserProfileStatus.cpp | 16 +- .../source/model/VariantPropertyType.cpp | 8 +- .../source/model/VariantStatus.cpp | 12 +- .../source/model/VendorGuidance.cpp | 10 +- .../source/model/WarmPoolResourceStatus.cpp | 10 +- .../source/model/WorkforceStatus.cpp | 12 +- .../source/SavingsPlansErrors.cpp | 6 +- .../source/model/CurrencyCode.cpp | 6 +- .../SavingsPlanOfferingFilterAttribute.cpp | 6 +- .../model/SavingsPlanOfferingPropertyKey.cpp | 6 +- .../source/model/SavingsPlanPaymentOption.cpp | 8 +- .../source/model/SavingsPlanProductType.cpp | 10 +- .../model/SavingsPlanRateFilterAttribute.cpp | 14 +- .../model/SavingsPlanRateFilterName.cpp | 18 +- .../model/SavingsPlanRatePropertyKey.cpp | 12 +- .../model/SavingsPlanRateServiceCode.cpp | 12 +- .../source/model/SavingsPlanRateUnit.cpp | 8 +- .../source/model/SavingsPlanState.cpp | 14 +- .../source/model/SavingsPlanType.cpp | 8 +- .../source/model/SavingsPlansFilterName.cpp | 20 +- .../source/SchedulerErrors.cpp | 8 +- .../source/model/ActionAfterCompletion.cpp | 6 +- .../source/model/AssignPublicIp.cpp | 6 +- .../source/model/FlexibleTimeWindowMode.cpp | 6 +- .../source/model/LaunchType.cpp | 8 +- .../source/model/PlacementConstraintType.cpp | 6 +- .../source/model/PlacementStrategyType.cpp | 8 +- .../source/model/PropagateTags.cpp | 4 +- .../source/model/ScheduleGroupState.cpp | 6 +- .../source/model/ScheduleState.cpp | 6 +- .../source/SchemasErrors.cpp | 20 +- .../source/model/CodeGenerationStatus.cpp | 8 +- .../source/model/DiscovererState.cpp | 6 +- .../aws-cpp-sdk-schemas/source/model/Type.cpp | 6 +- .../aws-cpp-sdk-sdb/source/SimpleDBErrors.cpp | 30 +- .../source/SecretsManagerErrors.cpp | 24 +- .../source/model/FilterNameStringType.cpp | 16 +- .../source/model/SortOrderType.cpp | 6 +- .../source/model/StatusType.cpp | 8 +- .../source/SecurityHubErrors.cpp | 12 +- .../source/model/AdminStatus.cpp | 6 +- .../source/model/AssociationStatus.cpp | 6 +- .../source/model/AutoEnableStandards.cpp | 6 +- .../model/AutomationRulesActionType.cpp | 4 +- .../source/model/AwsIamAccessKeyStatus.cpp | 6 +- ...cationConfigurationS3KeyFilterRuleName.cpp | 6 +- .../source/model/ComplianceStatus.cpp | 10 +- .../source/model/ControlFindingGenerator.cpp | 6 +- .../source/model/ControlStatus.cpp | 6 +- .../source/model/DateRangeUnit.cpp | 4 +- .../model/FindingHistoryUpdateSourceType.cpp | 6 +- .../source/model/IntegrationType.cpp | 8 +- .../source/model/MalwareState.cpp | 8 +- .../source/model/MalwareType.cpp | 32 +- .../source/model/MapFilterComparison.cpp | 10 +- .../source/model/NetworkDirection.cpp | 6 +- .../source/model/Partition.cpp | 8 +- .../source/model/RecordState.cpp | 6 +- .../source/model/RegionAvailabilityStatus.cpp | 6 +- .../source/model/RuleStatus.cpp | 6 +- .../source/model/SeverityLabel.cpp | 12 +- .../source/model/SeverityRating.cpp | 10 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/StandardsStatus.cpp | 12 +- .../source/model/StatusReasonCode.cpp | 6 +- .../source/model/StringFilterComparison.cpp | 14 +- .../model/ThreatIntelIndicatorCategory.cpp | 14 +- .../source/model/ThreatIntelIndicatorType.cpp | 24 +- .../source/model/UnprocessedErrorCode.cpp | 10 +- .../source/model/VerificationState.cpp | 10 +- .../model/VulnerabilityExploitAvailable.cpp | 6 +- .../model/VulnerabilityFixAvailable.cpp | 8 +- .../source/model/WorkflowState.cpp | 12 +- .../source/model/WorkflowStatus.cpp | 10 +- .../source/SecurityLakeErrors.cpp | 8 +- .../source/model/AccessType.cpp | 6 +- .../source/model/AwsLogSourceName.cpp | 14 +- .../source/model/DataLakeStatus.cpp | 10 +- .../source/model/HttpMethod.cpp | 6 +- .../source/model/SourceCollectionStatus.cpp | 8 +- .../source/model/SubscriberStatus.cpp | 10 +- .../ServerlessApplicationRepositoryErrors.cpp | 14 +- .../source/model/Capability.cpp | 10 +- .../source/model/Status.cpp | 8 +- .../source/ServiceQuotasErrors.cpp | 34 +- .../source/model/AppliedLevelEnum.cpp | 8 +- .../source/model/ErrorCode.cpp | 10 +- .../source/model/PeriodUnit.cpp | 16 +- .../source/model/QuotaContextScope.cpp | 6 +- .../source/model/RequestStatus.cpp | 16 +- .../ServiceQuotaTemplateAssociationStatus.cpp | 6 +- .../source/AppRegistryErrors.cpp | 8 +- .../source/model/ResourceGroupState.cpp | 14 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/SyncAction.cpp | 6 +- .../source/ServiceCatalogErrors.cpp | 16 +- .../source/model/AccessLevelFilterKey.cpp | 8 +- .../source/model/AccessStatus.cpp | 8 +- .../source/model/ChangeAction.cpp | 8 +- .../source/model/CopyOption.cpp | 4 +- .../source/model/CopyProductStatus.cpp | 8 +- .../model/DescribePortfolioShareType.cpp | 10 +- .../source/model/EngineWorkflowStatus.cpp | 6 +- .../source/model/EvaluationType.cpp | 6 +- .../source/model/LastSyncStatus.cpp | 6 +- .../source/model/OrganizationNodeType.cpp | 8 +- .../source/model/PortfolioShareType.cpp | 8 +- .../source/model/PrincipalType.cpp | 6 +- .../source/model/ProductSource.cpp | 4 +- .../source/model/ProductType.cpp | 10 +- .../source/model/ProductViewFilterBy.cpp | 10 +- .../source/model/ProductViewSortBy.cpp | 8 +- .../source/model/PropertyKey.cpp | 6 +- .../model/ProvisionedProductPlanStatus.cpp | 14 +- .../model/ProvisionedProductPlanType.cpp | 4 +- .../source/model/ProvisionedProductStatus.cpp | 12 +- .../model/ProvisionedProductViewFilterBy.cpp | 4 +- .../model/ProvisioningArtifactGuidance.cpp | 6 +- .../ProvisioningArtifactPropertyName.cpp | 4 +- .../source/model/ProvisioningArtifactType.cpp | 12 +- .../source/model/RecordStatus.cpp | 12 +- .../source/model/Replacement.cpp | 8 +- .../source/model/RequiresRecreation.cpp | 8 +- .../source/model/ResourceAttribute.cpp | 14 +- .../ServiceActionAssociationErrorCode.cpp | 14 +- .../model/ServiceActionDefinitionKey.cpp | 10 +- .../model/ServiceActionDefinitionType.cpp | 4 +- .../source/model/ShareStatus.cpp | 12 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SourceType.cpp | 4 +- .../source/model/StackInstanceStatus.cpp | 8 +- .../source/model/StackSetOperationType.cpp | 8 +- .../source/model/Status.cpp | 8 +- .../source/ServiceDiscoveryErrors.cpp | 28 +- .../source/model/CustomHealthStatus.cpp | 6 +- .../source/model/FilterCondition.cpp | 10 +- .../source/model/HealthCheckType.cpp | 8 +- .../source/model/HealthStatus.cpp | 8 +- .../source/model/HealthStatusFilter.cpp | 10 +- .../source/model/NamespaceFilterName.cpp | 8 +- .../source/model/NamespaceType.cpp | 8 +- .../source/model/OperationFilterName.cpp | 12 +- .../source/model/OperationStatus.cpp | 10 +- .../source/model/OperationTargetType.cpp | 8 +- .../source/model/OperationType.cpp | 14 +- .../source/model/RecordType.cpp | 10 +- .../source/model/RoutingPolicy.cpp | 6 +- .../source/model/ServiceFilterName.cpp | 4 +- .../source/model/ServiceType.cpp | 8 +- .../source/model/ServiceTypeOption.cpp | 4 +- .../aws-cpp-sdk-sesv2/source/SESV2Errors.cpp | 28 +- .../source/model/BehaviorOnMxFailure.cpp | 6 +- .../source/model/BounceType.cpp | 8 +- .../source/model/BulkEmailStatus.cpp | 30 +- .../source/model/ContactLanguage.cpp | 6 +- .../source/model/ContactListImportAction.cpp | 6 +- .../source/model/DataFormat.cpp | 6 +- .../DeliverabilityDashboardAccountStatus.cpp | 8 +- .../source/model/DeliverabilityTestStatus.cpp | 6 +- .../source/model/DeliveryEventType.cpp | 14 +- .../source/model/DimensionValueSource.cpp | 8 +- .../model/DkimSigningAttributesOrigin.cpp | 6 +- .../source/model/DkimSigningKeyLength.cpp | 6 +- .../source/model/DkimStatus.cpp | 12 +- .../source/model/EngagementEventType.cpp | 6 +- .../source/model/EventType.cpp | 22 +- .../source/model/ExportSourceType.cpp | 6 +- .../source/model/FeatureStatus.cpp | 6 +- .../source/model/IdentityType.cpp | 8 +- .../source/model/ImportDestinationType.cpp | 6 +- .../source/model/JobStatus.cpp | 12 +- .../model/ListRecommendationsFilterKey.cpp | 10 +- .../source/model/MailFromDomainStatus.cpp | 10 +- .../source/model/MailType.cpp | 6 +- .../aws-cpp-sdk-sesv2/source/model/Metric.cpp | 22 +- .../source/model/MetricAggregation.cpp | 6 +- .../source/model/MetricDimensionName.cpp | 8 +- .../source/model/MetricNamespace.cpp | 4 +- .../source/model/QueryErrorCode.cpp | 6 +- .../source/model/RecommendationImpact.cpp | 6 +- .../source/model/RecommendationStatus.cpp | 6 +- .../source/model/RecommendationType.cpp | 10 +- .../source/model/ReviewStatus.cpp | 10 +- .../source/model/ScalingMode.cpp | 6 +- .../source/model/SubscriptionStatus.cpp | 6 +- .../model/SuppressionListImportAction.cpp | 6 +- .../source/model/SuppressionListReason.cpp | 6 +- .../source/model/TlsPolicy.cpp | 6 +- .../source/model/VerificationStatus.cpp | 12 +- .../source/model/WarmupStatus.cpp | 6 +- .../source/ShieldErrors.cpp | 24 +- ...pplicationLayerAutomaticResponseStatus.cpp | 6 +- .../source/model/AttackLayer.cpp | 6 +- .../source/model/AttackPropertyIdentifier.cpp | 18 +- .../source/model/AutoRenew.cpp | 6 +- .../model/ProactiveEngagementStatus.cpp | 8 +- .../source/model/ProtectedResourceType.cpp | 14 +- .../model/ProtectionGroupAggregation.cpp | 8 +- .../source/model/ProtectionGroupPattern.cpp | 8 +- .../source/model/SubResourceType.cpp | 6 +- .../source/model/SubscriptionState.cpp | 6 +- .../aws-cpp-sdk-shield/source/model/Unit.cpp | 10 +- .../model/ValidationExceptionReason.cpp | 6 +- .../source/SignerErrors.cpp | 14 +- .../source/model/Category.cpp | 4 +- .../source/model/EncryptionAlgorithm.cpp | 6 +- .../source/model/HashAlgorithm.cpp | 6 +- .../source/model/ImageFormat.cpp | 8 +- .../source/model/SigningProfileStatus.cpp | 8 +- .../source/model/SigningStatus.cpp | 8 +- .../source/model/ValidityType.cpp | 8 +- .../source/SimSpaceWeaverErrors.cpp | 10 +- .../source/model/ClockStatus.cpp | 12 +- .../source/model/ClockTargetStatus.cpp | 8 +- .../model/LifecycleManagementStrategy.cpp | 10 +- .../source/model/SimulationAppStatus.cpp | 14 +- .../model/SimulationAppTargetStatus.cpp | 8 +- .../source/model/SimulationStatus.cpp | 20 +- .../source/model/SimulationTargetStatus.cpp | 10 +- .../source/PinpointSMSVoiceErrors.cpp | 14 +- .../source/model/EventType.cpp | 16 +- .../src/aws-cpp-sdk-sms/source/SMSErrors.cpp | 24 +- .../model/AppLaunchConfigurationStatus.cpp | 6 +- .../source/model/AppLaunchStatus.cpp | 32 +- .../AppReplicationConfigurationStatus.cpp | 6 +- .../source/model/AppReplicationStatus.cpp | 34 +- .../source/model/AppStatus.cpp | 14 +- .../source/model/AppValidationStrategy.cpp | 4 +- .../source/model/ConnectorCapability.cpp | 12 +- .../source/model/ConnectorStatus.cpp | 6 +- .../source/model/LicenseType.cpp | 6 +- .../source/model/OutputFormat.cpp | 6 +- .../source/model/ReplicationJobState.cpp | 18 +- .../source/model/ReplicationRunState.cpp | 16 +- .../source/model/ReplicationRunType.cpp | 6 +- .../source/model/ScriptType.cpp | 6 +- .../source/model/ServerCatalogStatus.cpp | 12 +- .../source/model/ServerType.cpp | 4 +- .../source/model/ServerValidationStrategy.cpp | 4 +- .../source/model/ValidationStatus.cpp | 12 +- .../source/model/VmManagerType.cpp | 8 +- .../source/SnowDeviceManagementErrors.cpp | 6 +- .../source/model/AttachmentStatus.cpp | 10 +- .../source/model/ExecutionState.cpp | 16 +- .../source/model/InstanceStateName.cpp | 14 +- .../source/model/IpAddressAssignment.cpp | 6 +- .../source/model/PhysicalConnectorType.cpp | 12 +- .../source/model/TaskState.cpp | 8 +- .../source/model/UnlockState.cpp | 8 +- .../source/SnowballErrors.cpp | 24 +- .../source/model/AddressType.cpp | 6 +- .../source/model/ClusterState.cpp | 12 +- .../source/model/DeviceServiceName.cpp | 6 +- .../source/model/ImpactLevel.cpp | 12 +- .../source/model/JobState.cpp | 28 +- .../source/model/JobType.cpp | 8 +- .../source/model/LongTermPricingType.cpp | 8 +- .../source/model/RemoteManagement.cpp | 8 +- .../source/model/ServiceName.cpp | 6 +- .../source/model/ShipmentState.cpp | 6 +- .../source/model/ShippingLabelStatus.cpp | 10 +- .../source/model/ShippingOption.cpp | 10 +- .../source/model/SnowballCapacity.cpp | 24 +- .../source/model/SnowballType.cpp | 22 +- .../source/model/StorageUnit.cpp | 4 +- .../source/model/TransferOption.cpp | 8 +- .../src/aws-cpp-sdk-sns/source/SNSErrors.cpp | 58 +- .../source/model/LanguageCodeString.cpp | 28 +- .../source/model/NumberCapability.cpp | 8 +- .../source/model/RouteType.cpp | 8 +- ...MSSandboxPhoneNumberVerificationStatus.cpp | 6 +- .../src/aws-cpp-sdk-sqs/source/SQSErrors.cpp | 34 +- .../model/MessageSystemAttributeName.cpp | 20 +- .../MessageSystemAttributeNameForSends.cpp | 4 +- .../source/model/QueueAttributeName.cpp | 54 +- .../source/SSMContactsErrors.cpp | 10 +- .../source/model/AcceptCodeValidation.cpp | 6 +- .../source/model/AcceptType.cpp | 6 +- .../source/model/ActivationStatus.cpp | 6 +- .../source/model/ChannelType.cpp | 8 +- .../source/model/ContactType.cpp | 8 +- .../source/model/DayOfWeek.cpp | 16 +- .../source/model/ReceiptType.cpp | 12 +- .../source/model/ShiftType.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/SSMIncidentsErrors.cpp | 8 +- .../source/model/IncidentRecordStatus.cpp | 6 +- .../source/model/ItemType.cpp | 20 +- .../source/model/RegionStatus.cpp | 10 +- .../source/model/ReplicationSetStatus.cpp | 12 +- .../source/model/ResourceType.cpp | 12 +- .../source/model/ServiceCode.cpp | 4 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/SsmTargetAccount.cpp | 6 +- .../source/model/TimelineEventSort.cpp | 4 +- .../source/model/VariableType.cpp | 6 +- .../source/SsmSapErrors.cpp | 6 +- .../model/ApplicationDiscoveryStatus.cpp | 12 +- .../source/model/ApplicationStatus.cpp | 18 +- .../source/model/ApplicationType.cpp | 4 +- .../source/model/BackintMode.cpp | 4 +- .../source/model/ClusterStatus.cpp | 12 +- .../source/model/ComponentStatus.cpp | 16 +- .../source/model/ComponentType.cpp | 6 +- .../source/model/CredentialType.cpp | 4 +- .../source/model/DatabaseStatus.cpp | 14 +- .../source/model/DatabaseType.cpp | 6 +- .../source/model/FilterOperator.cpp | 8 +- .../source/model/HostRole.cpp | 10 +- .../source/model/OperationMode.cpp | 12 +- .../source/model/OperationStatus.cpp | 8 +- .../source/model/PermissionActionType.cpp | 4 +- .../source/model/ReplicationMode.cpp | 12 +- .../src/aws-cpp-sdk-ssm/source/SSMErrors.cpp | 260 +-- .../model/AssociationComplianceSeverity.cpp | 12 +- .../model/AssociationExecutionFilterKey.cpp | 8 +- .../AssociationExecutionTargetsFilterKey.cpp | 8 +- .../source/model/AssociationFilterKey.cpp | 18 +- .../model/AssociationFilterOperatorType.cpp | 8 +- .../source/model/AssociationStatusName.cpp | 8 +- .../model/AssociationSyncCompliance.cpp | 6 +- .../source/model/AttachmentHashType.cpp | 4 +- .../source/model/AttachmentsSourceKey.cpp | 8 +- .../model/AutomationExecutionFilterKey.cpp | 26 +- .../model/AutomationExecutionStatus.cpp | 38 +- .../source/model/AutomationSubtype.cpp | 4 +- .../source/model/AutomationType.cpp | 6 +- .../source/model/CalendarState.cpp | 6 +- .../source/model/CommandFilterKey.cpp | 12 +- .../source/model/CommandInvocationStatus.cpp | 18 +- .../source/model/CommandPluginStatus.cpp | 14 +- .../source/model/CommandStatus.cpp | 16 +- .../model/ComplianceQueryOperatorType.cpp | 12 +- .../source/model/ComplianceSeverity.cpp | 14 +- .../source/model/ComplianceStatus.cpp | 6 +- .../source/model/ComplianceUploadType.cpp | 6 +- .../source/model/ConnectionStatus.cpp | 6 +- .../model/DescribeActivationsFilterKeys.cpp | 8 +- .../source/model/DocumentFilterKey.cpp | 10 +- .../source/model/DocumentFormat.cpp | 8 +- .../source/model/DocumentHashType.cpp | 6 +- .../source/model/DocumentMetadataEnum.cpp | 4 +- .../source/model/DocumentParameterType.cpp | 6 +- .../source/model/DocumentPermissionType.cpp | 4 +- .../source/model/DocumentReviewAction.cpp | 10 +- .../model/DocumentReviewCommentType.cpp | 4 +- .../source/model/DocumentStatus.cpp | 12 +- .../source/model/DocumentType.cpp | 32 +- .../source/model/ExecutionMode.cpp | 6 +- .../source/model/ExternalAlarmState.cpp | 6 +- .../aws-cpp-sdk-ssm/source/model/Fault.cpp | 8 +- .../model/InstanceInformationFilterKey.cpp | 18 +- .../model/InstancePatchStateOperatorType.cpp | 10 +- .../model/InventoryAttributeDataType.cpp | 6 +- .../source/model/InventoryDeletionStatus.cpp | 6 +- .../model/InventoryQueryOperatorType.cpp | 14 +- .../model/InventorySchemaDeleteOption.cpp | 6 +- .../model/LastResourceDataSyncStatus.cpp | 8 +- .../MaintenanceWindowExecutionStatus.cpp | 18 +- .../model/MaintenanceWindowResourceType.cpp | 6 +- .../MaintenanceWindowTaskCutoffBehavior.cpp | 6 +- .../model/MaintenanceWindowTaskType.cpp | 10 +- .../source/model/NotificationEvent.cpp | 14 +- .../source/model/NotificationType.cpp | 6 +- .../source/model/OperatingSystem.cpp | 32 +- .../source/model/OpsFilterOperatorType.cpp | 14 +- .../source/model/OpsItemDataType.cpp | 6 +- .../source/model/OpsItemEventFilterKey.cpp | 4 +- .../model/OpsItemEventFilterOperator.cpp | 4 +- .../source/model/OpsItemFilterKey.cpp | 58 +- .../source/model/OpsItemFilterOperator.cpp | 10 +- .../model/OpsItemRelatedItemsFilterKey.cpp | 8 +- .../OpsItemRelatedItemsFilterOperator.cpp | 4 +- .../source/model/OpsItemStatus.cpp | 40 +- .../source/model/ParameterTier.cpp | 8 +- .../source/model/ParameterType.cpp | 8 +- .../source/model/ParametersFilterKey.cpp | 8 +- .../source/model/PatchAction.cpp | 6 +- .../source/model/PatchComplianceDataState.cpp | 16 +- .../source/model/PatchComplianceLevel.cpp | 14 +- .../source/model/PatchDeploymentStatus.cpp | 10 +- .../source/model/PatchFilterKey.cpp | 40 +- .../source/model/PatchOperationType.cpp | 6 +- .../source/model/PatchProperty.cpp | 14 +- .../aws-cpp-sdk-ssm/source/model/PatchSet.cpp | 6 +- .../source/model/PingStatus.cpp | 8 +- .../source/model/PlatformType.cpp | 8 +- .../source/model/RebootOption.cpp | 6 +- .../source/model/ResourceDataSyncS3Format.cpp | 4 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/ResourceTypeForTagging.cpp | 20 +- .../source/model/ReviewStatus.cpp | 10 +- .../source/model/SessionFilterKey.cpp | 14 +- .../source/model/SessionState.cpp | 6 +- .../source/model/SessionStatus.cpp | 14 +- .../source/model/SignalType.cpp | 12 +- .../source/model/SourceType.cpp | 8 +- .../source/model/StepExecutionFilterKey.cpp | 14 +- .../aws-cpp-sdk-ssm/source/model/StopType.cpp | 6 +- .../source/SSOAdminErrors.cpp | 8 +- ...essControlAttributeConfigurationStatus.cpp | 8 +- .../source/model/PrincipalType.cpp | 6 +- .../source/model/ProvisionTargetType.cpp | 6 +- .../source/model/ProvisioningStatus.cpp | 6 +- .../source/model/StatusValues.cpp | 8 +- .../source/model/TargetType.cpp | 4 +- .../source/SSOOIDCErrors.cpp | 22 +- .../src/aws-cpp-sdk-sso/source/SSOErrors.cpp | 8 +- .../aws-cpp-sdk-states/source/SFNErrors.cpp | 52 +- .../source/model/ExecutionStatus.cpp | 12 +- .../source/model/HistoryEventType.cpp | 120 +- .../source/model/LogLevel.cpp | 10 +- .../source/model/MapRunStatus.cpp | 10 +- .../source/model/StateMachineStatus.cpp | 6 +- .../source/model/StateMachineType.cpp | 6 +- .../source/model/SyncExecutionStatus.cpp | 8 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/StorageGatewayErrors.cpp | 4 +- .../source/model/ActiveDirectoryStatus.cpp | 16 +- .../model/AvailabilityMonitorTestStatus.cpp | 8 +- .../source/model/CaseSensitivity.cpp | 6 +- .../source/model/ErrorCode.cpp | 126 +- .../source/model/FileShareType.cpp | 6 +- .../source/model/GatewayCapacity.cpp | 8 +- .../source/model/HostEnvironment.cpp | 14 +- .../source/model/ObjectACL.cpp | 16 +- .../source/model/PoolStatus.cpp | 6 +- .../source/model/RetentionLockType.cpp | 8 +- .../source/model/SMBSecurityStrategy.cpp | 8 +- .../source/model/TapeStorageClass.cpp | 6 +- .../src/aws-cpp-sdk-sts/source/STSErrors.cpp | 18 +- .../source/SupportAppErrors.cpp | 8 +- .../source/model/AccountType.cpp | 6 +- .../model/NotificationSeverityLevel.cpp | 8 +- .../source/SupportErrors.cpp | 18 +- .../src/aws-cpp-sdk-swf/source/SWFErrors.cpp | 22 +- .../source/model/ActivityTaskTimeoutType.cpp | 10 +- .../source/model/CancelTimerFailedCause.cpp | 6 +- .../CancelWorkflowExecutionFailedCause.cpp | 6 +- .../source/model/ChildPolicy.cpp | 8 +- .../source/model/CloseStatus.cpp | 14 +- .../CompleteWorkflowExecutionFailedCause.cpp | 6 +- ...tinueAsNewWorkflowExecutionFailedCause.cpp | 20 +- .../source/model/DecisionTaskTimeoutType.cpp | 6 +- .../source/model/DecisionType.cpp | 28 +- .../source/model/EventType.cpp | 110 +- .../source/model/ExecutionStatus.cpp | 6 +- .../FailWorkflowExecutionFailedCause.cpp | 6 +- .../model/LambdaFunctionTimeoutType.cpp | 4 +- .../source/model/RecordMarkerFailedCause.cpp | 4 +- .../source/model/RegistrationStatus.cpp | 6 +- .../RequestCancelActivityTaskFailedCause.cpp | 6 +- ...elExternalWorkflowExecutionFailedCause.cpp | 8 +- .../model/ScheduleActivityTaskFailedCause.cpp | 24 +- .../ScheduleLambdaFunctionFailedCause.cpp | 10 +- ...alExternalWorkflowExecutionFailedCause.cpp | 8 +- ...StartChildWorkflowExecutionFailedCause.cpp | 24 +- .../model/StartLambdaFunctionFailedCause.cpp | 4 +- .../source/model/StartTimerFailedCause.cpp | 10 +- .../WorkflowExecutionCancelRequestedCause.cpp | 4 +- .../WorkflowExecutionTerminatedCause.cpp | 8 +- .../model/WorkflowExecutionTimeoutType.cpp | 4 +- .../source/SyntheticsErrors.cpp | 16 +- .../source/model/CanaryRunState.cpp | 8 +- .../source/model/CanaryRunStateReasonCode.cpp | 6 +- .../source/model/CanaryState.cpp | 20 +- .../source/model/CanaryStateReasonCode.cpp | 26 +- .../source/model/EncryptionMode.cpp | 6 +- .../source/TextractErrors.cpp | 28 +- .../source/model/AdapterVersionStatus.cpp | 12 +- .../source/model/AutoUpdate.cpp | 6 +- .../source/model/BlockType.cpp | 50 +- .../source/model/ContentClassifier.cpp | 6 +- .../source/model/EntityType.cpp | 20 +- .../source/model/FeatureType.cpp | 12 +- .../source/model/JobStatus.cpp | 10 +- .../source/model/RelationshipType.cpp | 20 +- .../source/model/SelectionStatus.cpp | 6 +- .../source/model/TextType.cpp | 6 +- .../source/model/ValueType.cpp | 4 +- .../source/TimestreamQueryErrors.cpp | 12 +- .../source/model/DimensionValueType.cpp | 4 +- .../source/model/MeasureValueType.cpp | 12 +- .../source/model/S3EncryptionOption.cpp | 6 +- .../source/model/ScalarMeasureValueType.cpp | 12 +- .../source/model/ScalarType.cpp | 24 +- .../source/model/ScheduledQueryRunStatus.cpp | 10 +- .../source/model/ScheduledQueryState.cpp | 6 +- .../source/TimestreamWriteErrors.cpp | 12 +- .../source/model/BatchLoadDataFormat.cpp | 4 +- .../source/model/BatchLoadStatus.cpp | 14 +- .../source/model/DimensionValueType.cpp | 4 +- .../source/model/MeasureValueType.cpp | 14 +- .../model/PartitionKeyEnforcementLevel.cpp | 6 +- .../source/model/PartitionKeyType.cpp | 6 +- .../source/model/S3EncryptionOption.cpp | 6 +- .../source/model/ScalarMeasureValueType.cpp | 12 +- .../source/model/TableStatus.cpp | 8 +- .../source/model/TimeUnit.cpp | 10 +- .../src/aws-cpp-sdk-tnb/source/TnbErrors.cpp | 6 +- .../source/model/DescriptorContentType.cpp | 4 +- .../source/model/LcmOperationType.cpp | 8 +- .../source/model/NsLcmOperationState.cpp | 12 +- .../aws-cpp-sdk-tnb/source/model/NsState.cpp | 18 +- .../source/model/NsdOnboardingState.cpp | 8 +- .../source/model/NsdOperationalState.cpp | 6 +- .../source/model/NsdUsageState.cpp | 6 +- .../source/model/OnboardingState.cpp | 8 +- .../source/model/OperationalState.cpp | 6 +- .../source/model/PackageContentType.cpp | 4 +- .../source/model/TaskStatus.cpp | 16 +- .../source/model/UpdateSolNetworkType.cpp | 4 +- .../source/model/UsageState.cpp | 6 +- .../source/model/VnfInstantiationState.cpp | 6 +- .../source/model/VnfOperationalState.cpp | 6 +- .../source/TranscribeServiceErrors.cpp | 10 +- .../source/model/BaseModelName.cpp | 6 +- .../source/model/CLMLanguageCode.cpp | 16 +- .../source/model/CallAnalyticsJobStatus.cpp | 10 +- .../source/model/InputType.cpp | 6 +- .../source/model/LanguageCode.cpp | 80 +- .../source/model/MediaFormat.cpp | 18 +- .../MedicalContentIdentificationType.cpp | 4 +- .../source/model/ModelStatus.cpp | 8 +- .../source/model/OutputLocationType.cpp | 6 +- .../source/model/ParticipantRole.cpp | 6 +- .../source/model/PiiEntityType.cpp | 26 +- .../source/model/RedactionOutput.cpp | 6 +- .../source/model/RedactionType.cpp | 4 +- .../source/model/SentimentValue.cpp | 10 +- .../source/model/Specialty.cpp | 4 +- .../source/model/SubtitleFormat.cpp | 6 +- .../source/model/ToxicityCategory.cpp | 4 +- .../source/model/TranscriptFilterType.cpp | 4 +- .../source/model/TranscriptionJobStatus.cpp | 10 +- .../source/model/Type.cpp | 6 +- .../source/model/VocabularyFilterMethod.cpp | 8 +- .../source/model/VocabularyState.cpp | 8 +- .../TranscribeStreamingServiceErrors.cpp | 8 +- .../model/CallAnalyticsLanguageCode.cpp | 20 +- .../model/ContentIdentificationType.cpp | 4 +- .../source/model/ContentRedactionOutput.cpp | 6 +- .../source/model/ContentRedactionType.cpp | 4 +- .../source/model/ItemType.cpp | 6 +- .../source/model/LanguageCode.cpp | 30 +- .../source/model/MediaEncoding.cpp | 8 +- .../MedicalContentIdentificationType.cpp | 4 +- .../source/model/PartialResultsStability.cpp | 8 +- .../source/model/ParticipantRole.cpp | 6 +- .../source/model/Sentiment.cpp | 10 +- .../source/model/Specialty.cpp | 14 +- ...allAnalyticsStreamTranscriptionHandler.cpp | 6 +- ...StartMedicalStreamTranscriptionHandler.cpp | 4 +- .../model/StartStreamTranscriptionHandler.cpp | 4 +- .../source/model/Type.cpp | 6 +- .../source/model/VocabularyFilterMethod.cpp | 8 +- .../source/TranslateErrors.cpp | 26 +- .../source/model/Directionality.cpp | 6 +- .../source/model/DisplayLanguageCode.cpp | 22 +- .../source/model/EncryptionKeyType.cpp | 4 +- .../source/model/Formality.cpp | 6 +- .../source/model/JobStatus.cpp | 16 +- .../source/model/MergeStrategy.cpp | 4 +- .../source/model/ParallelDataFormat.cpp | 8 +- .../source/model/ParallelDataStatus.cpp | 12 +- .../source/model/Profanity.cpp | 4 +- .../source/model/TerminologyDataFormat.cpp | 8 +- .../source/VerifiedPermissionsErrors.cpp | 8 +- .../source/model/Decision.cpp | 6 +- .../source/model/OpenIdIssuer.cpp | 4 +- .../source/model/PolicyType.cpp | 6 +- .../source/model/ResourceType.cpp | 12 +- .../source/model/ValidationMode.cpp | 6 +- .../source/VoiceIDErrors.cpp | 8 +- .../source/model/AuthenticationDecision.cpp | 16 +- .../source/model/ConflictType.cpp | 22 +- .../source/model/DomainStatus.cpp | 8 +- .../model/DuplicateRegistrationAction.cpp | 6 +- .../source/model/ExistingEnrollmentAction.cpp | 6 +- .../source/model/FraudDetectionAction.cpp | 6 +- .../source/model/FraudDetectionDecision.cpp | 8 +- .../source/model/FraudDetectionReason.cpp | 6 +- .../model/FraudsterRegistrationJobStatus.cpp | 12 +- .../source/model/ResourceType.cpp | 16 +- .../ServerSideEncryptionUpdateStatus.cpp | 8 +- .../model/SpeakerEnrollmentJobStatus.cpp | 12 +- .../source/model/SpeakerStatus.cpp | 10 +- .../source/model/StreamingStatus.cpp | 8 +- .../source/VPCLatticeErrors.cpp | 8 +- .../source/model/AuthPolicyState.cpp | 6 +- .../source/model/AuthType.cpp | 6 +- .../model/HealthCheckProtocolVersion.cpp | 6 +- .../source/model/IpAddressType.cpp | 6 +- .../model/LambdaEventStructureVersion.cpp | 6 +- .../source/model/ListenerProtocol.cpp | 6 +- ...ServiceNetworkServiceAssociationStatus.cpp | 12 +- .../ServiceNetworkVpcAssociationStatus.cpp | 16 +- .../source/model/ServiceStatus.cpp | 12 +- .../source/model/TargetGroupProtocol.cpp | 6 +- .../model/TargetGroupProtocolVersion.cpp | 8 +- .../source/model/TargetGroupStatus.cpp | 12 +- .../source/model/TargetGroupType.cpp | 10 +- .../source/model/TargetStatus.cpp | 14 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/WAFRegionalErrors.cpp | 42 +- .../source/model/ChangeAction.cpp | 6 +- .../source/model/ChangeTokenStatus.cpp | 8 +- .../source/model/ComparisonOperator.cpp | 14 +- .../source/model/GeoMatchConstraintType.cpp | 4 +- .../source/model/GeoMatchConstraintValue.cpp | 506 +++--- .../source/model/IPSetDescriptorType.cpp | 6 +- .../source/model/MatchFieldType.cpp | 16 +- .../source/model/MigrationErrorType.cpp | 16 +- .../source/model/ParameterExceptionField.cpp | 38 +- .../source/model/ParameterExceptionReason.cpp | 10 +- .../source/model/PositionalConstraint.cpp | 12 +- .../source/model/PredicateType.cpp | 16 +- .../source/model/RateKey.cpp | 4 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/TextTransformation.cpp | 14 +- .../source/model/WafActionType.cpp | 8 +- .../source/model/WafOverrideActionType.cpp | 6 +- .../source/model/WafRuleType.cpp | 8 +- .../src/aws-cpp-sdk-waf/source/WAFErrors.cpp | 40 +- .../source/model/ChangeAction.cpp | 6 +- .../source/model/ChangeTokenStatus.cpp | 8 +- .../source/model/ComparisonOperator.cpp | 14 +- .../source/model/GeoMatchConstraintType.cpp | 4 +- .../source/model/GeoMatchConstraintValue.cpp | 506 +++--- .../source/model/IPSetDescriptorType.cpp | 6 +- .../source/model/MatchFieldType.cpp | 16 +- .../source/model/MigrationErrorType.cpp | 16 +- .../source/model/ParameterExceptionField.cpp | 38 +- .../source/model/ParameterExceptionReason.cpp | 10 +- .../source/model/PositionalConstraint.cpp | 12 +- .../source/model/PredicateType.cpp | 16 +- .../aws-cpp-sdk-waf/source/model/RateKey.cpp | 4 +- .../source/model/TextTransformation.cpp | 14 +- .../source/model/WafActionType.cpp | 8 +- .../source/model/WafOverrideActionType.cpp | 6 +- .../source/model/WafRuleType.cpp | 8 +- .../aws-cpp-sdk-wafv2/source/WAFV2Errors.cpp | 40 +- .../source/model/ActionValue.cpp | 14 +- .../source/model/AssociatedResourceType.cpp | 4 +- .../model/BodyParsingFallbackBehavior.cpp | 8 +- .../source/model/ComparisonOperator.cpp | 14 +- .../source/model/CountryCode.cpp | 508 +++--- .../source/model/FailureReason.cpp | 10 +- .../source/model/FallbackBehavior.cpp | 6 +- .../source/model/FilterBehavior.cpp | 6 +- .../source/model/FilterRequirement.cpp | 6 +- .../source/model/ForwardedIPPosition.cpp | 8 +- .../source/model/IPAddressVersion.cpp | 6 +- .../source/model/InspectionLevel.cpp | 6 +- .../source/model/JsonMatchScope.cpp | 8 +- .../source/model/LabelMatchScope.cpp | 6 +- .../source/model/MapMatchScope.cpp | 8 +- .../source/model/OversizeHandling.cpp | 8 +- .../source/model/ParameterExceptionField.cpp | 142 +- .../source/model/PayloadType.cpp | 6 +- .../source/model/Platform.cpp | 6 +- .../source/model/PositionalConstraint.cpp | 12 +- .../RateBasedStatementAggregateKeyType.cpp | 10 +- .../source/model/ResourceType.cpp | 14 +- .../source/model/ResponseContentType.cpp | 8 +- .../aws-cpp-sdk-wafv2/source/model/Scope.cpp | 6 +- .../source/model/SensitivityLevel.cpp | 6 +- .../source/model/SizeInspectionLimit.cpp | 10 +- .../source/model/TextTransformationType.cpp | 44 +- .../source/WellArchitectedErrors.cpp | 8 +- .../source/model/AdditionalResourceType.cpp | 6 +- .../source/model/AnswerReason.cpp | 12 +- .../source/model/CheckFailureReason.cpp | 10 +- .../source/model/CheckProvider.cpp | 4 +- .../source/model/CheckStatus.cpp | 12 +- .../source/model/ChoiceReason.cpp | 12 +- .../source/model/ChoiceStatus.cpp | 8 +- .../source/model/DefinitionType.cpp | 6 +- .../source/model/DifferenceStatus.cpp | 8 +- .../model/DiscoveryIntegrationStatus.cpp | 6 +- .../source/model/ImportLensStatus.cpp | 8 +- .../source/model/LensStatus.cpp | 12 +- .../source/model/LensStatusType.cpp | 8 +- .../source/model/LensType.cpp | 8 +- .../source/model/MetricType.cpp | 4 +- .../source/model/NotificationType.cpp | 6 +- .../model/OrganizationSharingStatus.cpp | 6 +- .../source/model/PermissionType.cpp | 6 +- .../source/model/ProfileNotificationType.cpp | 6 +- .../source/model/ProfileOwnerType.cpp | 6 +- .../source/model/Question.cpp | 6 +- .../source/model/QuestionPriority.cpp | 6 +- .../source/model/QuestionType.cpp | 6 +- .../source/model/ReportFormat.cpp | 6 +- .../model/ReviewTemplateAnswerStatus.cpp | 6 +- .../model/ReviewTemplateUpdateStatus.cpp | 6 +- .../source/model/Risk.cpp | 12 +- .../source/model/ShareInvitationAction.cpp | 6 +- .../source/model/ShareResourceType.cpp | 10 +- .../source/model/ShareStatus.cpp | 18 +- .../model/TrustedAdvisorIntegrationStatus.cpp | 6 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/model/WorkloadEnvironment.cpp | 6 +- .../model/WorkloadImprovementStatus.cpp | 12 +- .../source/ConnectWisdomServiceErrors.cpp | 10 +- .../source/model/AssistantStatus.cpp | 14 +- .../source/model/AssistantType.cpp | 4 +- .../source/model/AssociationType.cpp | 4 +- .../source/model/ContentStatus.cpp | 16 +- .../source/model/FilterField.cpp | 4 +- .../source/model/FilterOperator.cpp | 4 +- .../source/model/KnowledgeBaseStatus.cpp | 14 +- .../source/model/KnowledgeBaseType.cpp | 6 +- .../source/model/RecommendationSourceType.cpp | 8 +- .../model/RecommendationTriggerType.cpp | 4 +- .../source/model/RecommendationType.cpp | 4 +- .../source/model/RelevanceLevel.cpp | 8 +- .../source/WorkDocsErrors.cpp | 50 +- .../source/model/ActivityType.cpp | 68 +- .../model/AdditionalResponseFieldType.cpp | 4 +- .../source/model/BooleanEnumType.cpp | 6 +- .../source/model/CommentStatusType.cpp | 8 +- .../source/model/CommentVisibilityType.cpp | 6 +- .../source/model/ContentCategoryType.cpp | 20 +- .../source/model/DocumentSourceType.cpp | 6 +- .../source/model/DocumentStatusType.cpp | 6 +- .../source/model/DocumentThumbnailType.cpp | 8 +- .../source/model/DocumentVersionStatus.cpp | 4 +- .../source/model/FolderContentType.cpp | 8 +- .../source/model/LanguageCodeType.cpp | 64 +- .../source/model/LocaleType.cpp | 24 +- .../source/model/OrderByFieldType.cpp | 12 +- .../source/model/OrderType.cpp | 6 +- .../source/model/PrincipalRoleType.cpp | 10 +- .../source/model/PrincipalType.cpp | 12 +- .../source/model/ResourceCollectionType.cpp | 4 +- .../source/model/ResourceSortType.cpp | 6 +- .../source/model/ResourceStateType.cpp | 10 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/ResponseItemType.cpp | 10 +- .../source/model/RolePermissionType.cpp | 6 +- .../source/model/RoleType.cpp | 10 +- .../source/model/SearchCollectionType.cpp | 6 +- .../source/model/SearchQueryScopeType.cpp | 6 +- .../source/model/SearchResourceType.cpp | 10 +- .../source/model/ShareStatusType.cpp | 6 +- .../source/model/SortOrder.cpp | 6 +- .../source/model/StorageType.cpp | 6 +- .../source/model/SubscriptionProtocolType.cpp | 6 +- .../source/model/SubscriptionType.cpp | 4 +- .../source/model/UserFilterType.cpp | 6 +- .../source/model/UserSortType.cpp | 12 +- .../source/model/UserStatusType.cpp | 8 +- .../source/model/UserType.cpp | 12 +- .../model/AuthorizationProviderType.cpp | 4 +- .../source/model/DeviceStatus.cpp | 6 +- .../source/model/DomainStatus.cpp | 18 +- .../source/model/FleetStatus.cpp | 14 +- .../source/model/IdentityProviderType.cpp | 4 +- .../source/WorkMailErrors.cpp | 44 +- .../source/model/AccessControlRuleEffect.cpp | 6 +- .../source/model/AccessEffect.cpp | 6 +- .../source/model/AvailabilityProviderType.cpp | 6 +- .../model/DnsRecordVerificationStatus.cpp | 8 +- .../source/model/EntityState.cpp | 8 +- .../source/model/EntityType.cpp | 8 +- .../source/model/FolderName.cpp | 12 +- .../source/model/ImpersonationRoleType.cpp | 6 +- .../source/model/MailboxExportJobState.cpp | 10 +- .../source/model/MemberType.cpp | 6 +- .../model/MobileDeviceAccessRuleEffect.cpp | 6 +- .../source/model/PermissionType.cpp | 8 +- .../source/model/ResourceType.cpp | 6 +- .../source/model/RetentionAction.cpp | 8 +- .../source/model/UserRole.cpp | 10 +- .../source/WorkMailMessageFlowErrors.cpp | 8 +- .../source/WorkSpacesWebErrors.cpp | 10 +- .../source/model/AuthenticationType.cpp | 6 +- .../source/model/BrowserType.cpp | 4 +- .../source/model/EnabledType.cpp | 6 +- .../source/model/IdentityProviderType.cpp | 14 +- .../source/model/PortalStatus.cpp | 8 +- .../source/model/RendererType.cpp | 4 +- .../model/ValidationExceptionReason.cpp | 10 +- .../source/WorkSpacesErrors.cpp | 36 +- .../source/model/AccessPropertyValue.cpp | 6 +- .../source/model/Application.cpp | 6 +- .../ApplicationAssociatedResourceType.cpp | 8 +- .../source/model/AssociationErrorCode.cpp | 12 +- .../source/model/AssociationState.cpp | 20 +- .../source/model/AssociationStatus.cpp | 12 +- .../model/BundleAssociatedResourceType.cpp | 4 +- .../source/model/BundleType.cpp | 6 +- .../model/CertificateBasedAuthStatusEnum.cpp | 6 +- .../source/model/ClientDeviceType.cpp | 14 +- .../source/model/Compute.cpp | 20 +- .../source/model/ConnectionAliasState.cpp | 8 +- .../source/model/ConnectionState.cpp | 8 +- .../DedicatedTenancyModificationStateEnum.cpp | 8 +- .../model/DedicatedTenancySupportEnum.cpp | 4 +- .../DedicatedTenancySupportResultEnum.cpp | 6 +- .../DeletableCertificateBasedAuthProperty.cpp | 4 +- .../source/model/DeletableSamlProperty.cpp | 6 +- .../model/ImageAssociatedResourceType.cpp | 4 +- .../source/model/ImageType.cpp | 6 +- .../source/model/LogUploadEnum.cpp | 6 +- .../source/model/ModificationResourceEnum.cpp | 8 +- .../source/model/ModificationStateEnum.cpp | 6 +- .../source/model/OperatingSystemName.cpp | 24 +- .../source/model/OperatingSystemType.cpp | 6 +- .../source/model/Protocol.cpp | 6 +- .../source/model/ReconnectEnum.cpp | 6 +- .../source/model/RunningMode.cpp | 8 +- .../source/model/SamlStatusEnum.cpp | 8 +- .../StandbyWorkspaceRelationshipType.cpp | 6 +- .../source/model/TargetWorkspaceState.cpp | 6 +- .../source/model/Tenancy.cpp | 6 +- .../model/WorkSpaceApplicationLicenseType.cpp | 6 +- .../model/WorkSpaceApplicationState.cpp | 10 +- .../model/WorkSpaceAssociatedResourceType.cpp | 4 +- .../source/model/WorkspaceBundleState.cpp | 8 +- .../source/model/WorkspaceDirectoryState.cpp | 12 +- .../source/model/WorkspaceDirectoryType.cpp | 6 +- .../model/WorkspaceImageErrorDetailCode.cpp | 54 +- .../model/WorkspaceImageIngestionProcess.cpp | 16 +- .../model/WorkspaceImageRequiredTenancy.cpp | 6 +- .../source/model/WorkspaceImageState.cpp | 8 +- .../source/model/WorkspaceState.cpp | 36 +- .../aws-cpp-sdk-xray/source/XRayErrors.cpp | 18 +- .../source/model/EncryptionStatus.cpp | 6 +- .../source/model/EncryptionType.cpp | 6 +- .../source/model/InsightCategory.cpp | 4 +- .../source/model/InsightState.cpp | 6 +- .../source/model/SamplingStrategyName.cpp | 6 +- .../source/model/TimeRangeType.cpp | 6 +- 7308 files changed, 48069 insertions(+), 48069 deletions(-) diff --git a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubErrors.cpp b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubErrors.cpp index 81712da8e2b..38b8926c40e 100644 --- a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubErrors.cpp +++ b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_MIGRATIONHUB_API ThrottlingException MigrationHubError::GetModele namespace MigrationHubErrorMapper { -static const int DRY_RUN_OPERATION_HASH = HashingUtils::HashString("DryRunOperation"); -static const int UNAUTHORIZED_OPERATION_HASH = HashingUtils::HashString("UnauthorizedOperation"); -static const int POLICY_ERROR_HASH = HashingUtils::HashString("PolicyErrorException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int HOME_REGION_NOT_SET_HASH = HashingUtils::HashString("HomeRegionNotSetException"); +static constexpr uint32_t DRY_RUN_OPERATION_HASH = ConstExprHashingUtils::HashString("DryRunOperation"); +static constexpr uint32_t UNAUTHORIZED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnauthorizedOperation"); +static constexpr uint32_t POLICY_ERROR_HASH = ConstExprHashingUtils::HashString("PolicyErrorException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t HOME_REGION_NOT_SET_HASH = ConstExprHashingUtils::HashString("HomeRegionNotSetException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == DRY_RUN_OPERATION_HASH) { diff --git a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ApplicationStatus.cpp b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ApplicationStatus.cpp index 4f176be025a..a7e20e1afa0 100644 --- a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ApplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ApplicationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ApplicationStatus GetApplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ApplicationStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ResourceAttributeType.cpp b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ResourceAttributeType.cpp index 08acc74a84d..4f17f655d81 100644 --- a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ResourceAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/ResourceAttributeType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ResourceAttributeTypeMapper { - static const int IPV4_ADDRESS_HASH = HashingUtils::HashString("IPV4_ADDRESS"); - static const int IPV6_ADDRESS_HASH = HashingUtils::HashString("IPV6_ADDRESS"); - static const int MAC_ADDRESS_HASH = HashingUtils::HashString("MAC_ADDRESS"); - static const int FQDN_HASH = HashingUtils::HashString("FQDN"); - static const int VM_MANAGER_ID_HASH = HashingUtils::HashString("VM_MANAGER_ID"); - static const int VM_MANAGED_OBJECT_REFERENCE_HASH = HashingUtils::HashString("VM_MANAGED_OBJECT_REFERENCE"); - static const int VM_NAME_HASH = HashingUtils::HashString("VM_NAME"); - static const int VM_PATH_HASH = HashingUtils::HashString("VM_PATH"); - static const int BIOS_ID_HASH = HashingUtils::HashString("BIOS_ID"); - static const int MOTHERBOARD_SERIAL_NUMBER_HASH = HashingUtils::HashString("MOTHERBOARD_SERIAL_NUMBER"); + static constexpr uint32_t IPV4_ADDRESS_HASH = ConstExprHashingUtils::HashString("IPV4_ADDRESS"); + static constexpr uint32_t IPV6_ADDRESS_HASH = ConstExprHashingUtils::HashString("IPV6_ADDRESS"); + static constexpr uint32_t MAC_ADDRESS_HASH = ConstExprHashingUtils::HashString("MAC_ADDRESS"); + static constexpr uint32_t FQDN_HASH = ConstExprHashingUtils::HashString("FQDN"); + static constexpr uint32_t VM_MANAGER_ID_HASH = ConstExprHashingUtils::HashString("VM_MANAGER_ID"); + static constexpr uint32_t VM_MANAGED_OBJECT_REFERENCE_HASH = ConstExprHashingUtils::HashString("VM_MANAGED_OBJECT_REFERENCE"); + static constexpr uint32_t VM_NAME_HASH = ConstExprHashingUtils::HashString("VM_NAME"); + static constexpr uint32_t VM_PATH_HASH = ConstExprHashingUtils::HashString("VM_PATH"); + static constexpr uint32_t BIOS_ID_HASH = ConstExprHashingUtils::HashString("BIOS_ID"); + static constexpr uint32_t MOTHERBOARD_SERIAL_NUMBER_HASH = ConstExprHashingUtils::HashString("MOTHERBOARD_SERIAL_NUMBER"); ResourceAttributeType GetResourceAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_ADDRESS_HASH) { return ResourceAttributeType::IPV4_ADDRESS; diff --git a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/Status.cpp b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/Status.cpp index babdd7026c0..f1327130a4d 100644 --- a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/model/Status.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return Status::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerErrors.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerErrors.cpp index f24b33be2a0..b8f7e268aaf 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerErrors.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_ACCESSANALYZER_API ValidationException AccessAnalyzerError::GetMo namespace AccessAnalyzerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatus.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatus.cpp index 88bc4ca589c..c3b0cc377f6 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatus.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccessPreviewStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AccessPreviewStatus GetAccessPreviewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return AccessPreviewStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatusReasonCode.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatusReasonCode.cpp index f556b4f759c..cf86f2e5981 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatusReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AccessPreviewStatusReasonCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessPreviewStatusReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INVALID_CONFIGURATION_HASH = HashingUtils::HashString("INVALID_CONFIGURATION"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INVALID_CONFIGURATION"); AccessPreviewStatusReasonCode GetAccessPreviewStatusReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return AccessPreviewStatusReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AclPermission.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AclPermission.cpp index 232035d6e53..2340fed2f89 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AclPermission.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AclPermission.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AclPermissionMapper { - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); - static const int READ_ACP_HASH = HashingUtils::HashString("READ_ACP"); - static const int WRITE_ACP_HASH = HashingUtils::HashString("WRITE_ACP"); - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); + static constexpr uint32_t READ_ACP_HASH = ConstExprHashingUtils::HashString("READ_ACP"); + static constexpr uint32_t WRITE_ACP_HASH = ConstExprHashingUtils::HashString("WRITE_ACP"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); AclPermission GetAclPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_HASH) { return AclPermission::READ; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AnalyzerStatus.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AnalyzerStatus.cpp index 33a5dadb12e..186060cadf4 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AnalyzerStatus.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/AnalyzerStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AnalyzerStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AnalyzerStatus GetAnalyzerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AnalyzerStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingChangeType.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingChangeType.cpp index 068166dc575..a31f77afeb3 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingChangeType.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingChangeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingChangeTypeMapper { - static const int CHANGED_HASH = HashingUtils::HashString("CHANGED"); - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int UNCHANGED_HASH = HashingUtils::HashString("UNCHANGED"); + static constexpr uint32_t CHANGED_HASH = ConstExprHashingUtils::HashString("CHANGED"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t UNCHANGED_HASH = ConstExprHashingUtils::HashString("UNCHANGED"); FindingChangeType GetFindingChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHANGED_HASH) { return FindingChangeType::CHANGED; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingSourceType.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingSourceType.cpp index 249d7ccb118..8015e1d01d7 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingSourceType.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingSourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FindingSourceTypeMapper { - static const int POLICY_HASH = HashingUtils::HashString("POLICY"); - static const int BUCKET_ACL_HASH = HashingUtils::HashString("BUCKET_ACL"); - static const int S3_ACCESS_POINT_HASH = HashingUtils::HashString("S3_ACCESS_POINT"); - static const int S3_ACCESS_POINT_ACCOUNT_HASH = HashingUtils::HashString("S3_ACCESS_POINT_ACCOUNT"); + static constexpr uint32_t POLICY_HASH = ConstExprHashingUtils::HashString("POLICY"); + static constexpr uint32_t BUCKET_ACL_HASH = ConstExprHashingUtils::HashString("BUCKET_ACL"); + static constexpr uint32_t S3_ACCESS_POINT_HASH = ConstExprHashingUtils::HashString("S3_ACCESS_POINT"); + static constexpr uint32_t S3_ACCESS_POINT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("S3_ACCESS_POINT_ACCOUNT"); FindingSourceType GetFindingSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POLICY_HASH) { return FindingSourceType::POLICY; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatus.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatus.cpp index b80104f98fe..59f5c41f07e 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatus.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); FindingStatus GetFindingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return FindingStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatusUpdate.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatusUpdate.cpp index 743e91839f3..276f3003e8d 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatusUpdate.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/FindingStatusUpdate.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FindingStatusUpdateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); FindingStatusUpdate GetFindingStatusUpdateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return FindingStatusUpdate::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobErrorCode.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobErrorCode.cpp index 04b6f13301d..b99440bcaaa 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobErrorCodeMapper { - static const int AUTHORIZATION_ERROR_HASH = HashingUtils::HashString("AUTHORIZATION_ERROR"); - static const int RESOURCE_NOT_FOUND_ERROR_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND_ERROR"); - static const int SERVICE_QUOTA_EXCEEDED_ERROR_HASH = HashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_ERROR"); - static const int SERVICE_ERROR_HASH = HashingUtils::HashString("SERVICE_ERROR"); + static constexpr uint32_t AUTHORIZATION_ERROR_HASH = ConstExprHashingUtils::HashString("AUTHORIZATION_ERROR"); + static constexpr uint32_t RESOURCE_NOT_FOUND_ERROR_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND_ERROR"); + static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_ERROR_HASH = ConstExprHashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_ERROR"); + static constexpr uint32_t SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("SERVICE_ERROR"); JobErrorCode GetJobErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTHORIZATION_ERROR_HASH) { return JobErrorCode::AUTHORIZATION_ERROR; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobStatus.cpp index bff4c825e80..6754aad2cf2 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/JobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return JobStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/KmsGrantOperation.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/KmsGrantOperation.cpp index 55167c6a032..110e963a38c 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/KmsGrantOperation.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/KmsGrantOperation.cpp @@ -20,25 +20,25 @@ namespace Aws namespace KmsGrantOperationMapper { - static const int CreateGrant_HASH = HashingUtils::HashString("CreateGrant"); - static const int Decrypt_HASH = HashingUtils::HashString("Decrypt"); - static const int DescribeKey_HASH = HashingUtils::HashString("DescribeKey"); - static const int Encrypt_HASH = HashingUtils::HashString("Encrypt"); - static const int GenerateDataKey_HASH = HashingUtils::HashString("GenerateDataKey"); - static const int GenerateDataKeyPair_HASH = HashingUtils::HashString("GenerateDataKeyPair"); - static const int GenerateDataKeyPairWithoutPlaintext_HASH = HashingUtils::HashString("GenerateDataKeyPairWithoutPlaintext"); - static const int GenerateDataKeyWithoutPlaintext_HASH = HashingUtils::HashString("GenerateDataKeyWithoutPlaintext"); - static const int GetPublicKey_HASH = HashingUtils::HashString("GetPublicKey"); - static const int ReEncryptFrom_HASH = HashingUtils::HashString("ReEncryptFrom"); - static const int ReEncryptTo_HASH = HashingUtils::HashString("ReEncryptTo"); - static const int RetireGrant_HASH = HashingUtils::HashString("RetireGrant"); - static const int Sign_HASH = HashingUtils::HashString("Sign"); - static const int Verify_HASH = HashingUtils::HashString("Verify"); + static constexpr uint32_t CreateGrant_HASH = ConstExprHashingUtils::HashString("CreateGrant"); + static constexpr uint32_t Decrypt_HASH = ConstExprHashingUtils::HashString("Decrypt"); + static constexpr uint32_t DescribeKey_HASH = ConstExprHashingUtils::HashString("DescribeKey"); + static constexpr uint32_t Encrypt_HASH = ConstExprHashingUtils::HashString("Encrypt"); + static constexpr uint32_t GenerateDataKey_HASH = ConstExprHashingUtils::HashString("GenerateDataKey"); + static constexpr uint32_t GenerateDataKeyPair_HASH = ConstExprHashingUtils::HashString("GenerateDataKeyPair"); + static constexpr uint32_t GenerateDataKeyPairWithoutPlaintext_HASH = ConstExprHashingUtils::HashString("GenerateDataKeyPairWithoutPlaintext"); + static constexpr uint32_t GenerateDataKeyWithoutPlaintext_HASH = ConstExprHashingUtils::HashString("GenerateDataKeyWithoutPlaintext"); + static constexpr uint32_t GetPublicKey_HASH = ConstExprHashingUtils::HashString("GetPublicKey"); + static constexpr uint32_t ReEncryptFrom_HASH = ConstExprHashingUtils::HashString("ReEncryptFrom"); + static constexpr uint32_t ReEncryptTo_HASH = ConstExprHashingUtils::HashString("ReEncryptTo"); + static constexpr uint32_t RetireGrant_HASH = ConstExprHashingUtils::HashString("RetireGrant"); + static constexpr uint32_t Sign_HASH = ConstExprHashingUtils::HashString("Sign"); + static constexpr uint32_t Verify_HASH = ConstExprHashingUtils::HashString("Verify"); KmsGrantOperation GetKmsGrantOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreateGrant_HASH) { return KmsGrantOperation::CreateGrant; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Locale.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Locale.cpp index da67df9599f..c296e180810 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Locale.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Locale.cpp @@ -20,21 +20,21 @@ namespace Aws namespace LocaleMapper { - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int EN_HASH = HashingUtils::HashString("EN"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int FR_HASH = HashingUtils::HashString("FR"); - 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 PT_BR_HASH = HashingUtils::HashString("PT_BR"); - static const int ZH_CN_HASH = HashingUtils::HashString("ZH_CN"); - static const int ZH_TW_HASH = HashingUtils::HashString("ZH_TW"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t EN_HASH = ConstExprHashingUtils::HashString("EN"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t JA_HASH = ConstExprHashingUtils::HashString("JA"); + static constexpr uint32_t KO_HASH = ConstExprHashingUtils::HashString("KO"); + static constexpr uint32_t PT_BR_HASH = ConstExprHashingUtils::HashString("PT_BR"); + static constexpr uint32_t ZH_CN_HASH = ConstExprHashingUtils::HashString("ZH_CN"); + static constexpr uint32_t ZH_TW_HASH = ConstExprHashingUtils::HashString("ZH_TW"); Locale GetLocaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DE_HASH) { return Locale::DE; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/OrderBy.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/OrderBy.cpp index ee791dbf2e8..feaf4e13e45 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/OrderBy.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/OrderBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderByMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); OrderBy GetOrderByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return OrderBy::ASC; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/PolicyType.cpp index ce49706e15d..19e86df8dfb 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/PolicyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolicyTypeMapper { - static const int IDENTITY_POLICY_HASH = HashingUtils::HashString("IDENTITY_POLICY"); - static const int RESOURCE_POLICY_HASH = HashingUtils::HashString("RESOURCE_POLICY"); - static const int SERVICE_CONTROL_POLICY_HASH = HashingUtils::HashString("SERVICE_CONTROL_POLICY"); + static constexpr uint32_t IDENTITY_POLICY_HASH = ConstExprHashingUtils::HashString("IDENTITY_POLICY"); + static constexpr uint32_t RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("RESOURCE_POLICY"); + static constexpr uint32_t SERVICE_CONTROL_POLICY_HASH = ConstExprHashingUtils::HashString("SERVICE_CONTROL_POLICY"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IDENTITY_POLICY_HASH) { return PolicyType::IDENTITY_POLICY; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ReasonCode.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ReasonCode.cpp index 134d225ece9..716505df385 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ReasonCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReasonCodeMapper { - static const int AWS_SERVICE_ACCESS_DISABLED_HASH = HashingUtils::HashString("AWS_SERVICE_ACCESS_DISABLED"); - static const int DELEGATED_ADMINISTRATOR_DEREGISTERED_HASH = HashingUtils::HashString("DELEGATED_ADMINISTRATOR_DEREGISTERED"); - static const int ORGANIZATION_DELETED_HASH = HashingUtils::HashString("ORGANIZATION_DELETED"); - static const int SERVICE_LINKED_ROLE_CREATION_FAILED_HASH = HashingUtils::HashString("SERVICE_LINKED_ROLE_CREATION_FAILED"); + static constexpr uint32_t AWS_SERVICE_ACCESS_DISABLED_HASH = ConstExprHashingUtils::HashString("AWS_SERVICE_ACCESS_DISABLED"); + static constexpr uint32_t DELEGATED_ADMINISTRATOR_DEREGISTERED_HASH = ConstExprHashingUtils::HashString("DELEGATED_ADMINISTRATOR_DEREGISTERED"); + static constexpr uint32_t ORGANIZATION_DELETED_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_DELETED"); + static constexpr uint32_t SERVICE_LINKED_ROLE_CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("SERVICE_LINKED_ROLE_CREATION_FAILED"); ReasonCode GetReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_SERVICE_ACCESS_DISABLED_HASH) { return ReasonCode::AWS_SERVICE_ACCESS_DISABLED; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ResourceType.cpp index 4d68df171fa..86405883fe2 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ResourceType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ResourceTypeMapper { - static const int AWS_S3_Bucket_HASH = HashingUtils::HashString("AWS::S3::Bucket"); - static const int AWS_IAM_Role_HASH = HashingUtils::HashString("AWS::IAM::Role"); - static const int AWS_SQS_Queue_HASH = HashingUtils::HashString("AWS::SQS::Queue"); - static const int AWS_Lambda_Function_HASH = HashingUtils::HashString("AWS::Lambda::Function"); - static const int AWS_Lambda_LayerVersion_HASH = HashingUtils::HashString("AWS::Lambda::LayerVersion"); - static const int AWS_KMS_Key_HASH = HashingUtils::HashString("AWS::KMS::Key"); - static const int AWS_SecretsManager_Secret_HASH = HashingUtils::HashString("AWS::SecretsManager::Secret"); - static const int AWS_EFS_FileSystem_HASH = HashingUtils::HashString("AWS::EFS::FileSystem"); - static const int AWS_EC2_Snapshot_HASH = HashingUtils::HashString("AWS::EC2::Snapshot"); - static const int AWS_ECR_Repository_HASH = HashingUtils::HashString("AWS::ECR::Repository"); - static const int AWS_RDS_DBSnapshot_HASH = HashingUtils::HashString("AWS::RDS::DBSnapshot"); - static const int AWS_RDS_DBClusterSnapshot_HASH = HashingUtils::HashString("AWS::RDS::DBClusterSnapshot"); - static const int AWS_SNS_Topic_HASH = HashingUtils::HashString("AWS::SNS::Topic"); + static constexpr uint32_t AWS_S3_Bucket_HASH = ConstExprHashingUtils::HashString("AWS::S3::Bucket"); + static constexpr uint32_t AWS_IAM_Role_HASH = ConstExprHashingUtils::HashString("AWS::IAM::Role"); + static constexpr uint32_t AWS_SQS_Queue_HASH = ConstExprHashingUtils::HashString("AWS::SQS::Queue"); + static constexpr uint32_t AWS_Lambda_Function_HASH = ConstExprHashingUtils::HashString("AWS::Lambda::Function"); + static constexpr uint32_t AWS_Lambda_LayerVersion_HASH = ConstExprHashingUtils::HashString("AWS::Lambda::LayerVersion"); + static constexpr uint32_t AWS_KMS_Key_HASH = ConstExprHashingUtils::HashString("AWS::KMS::Key"); + static constexpr uint32_t AWS_SecretsManager_Secret_HASH = ConstExprHashingUtils::HashString("AWS::SecretsManager::Secret"); + static constexpr uint32_t AWS_EFS_FileSystem_HASH = ConstExprHashingUtils::HashString("AWS::EFS::FileSystem"); + static constexpr uint32_t AWS_EC2_Snapshot_HASH = ConstExprHashingUtils::HashString("AWS::EC2::Snapshot"); + static constexpr uint32_t AWS_ECR_Repository_HASH = ConstExprHashingUtils::HashString("AWS::ECR::Repository"); + static constexpr uint32_t AWS_RDS_DBSnapshot_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBSnapshot"); + static constexpr uint32_t AWS_RDS_DBClusterSnapshot_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBClusterSnapshot"); + static constexpr uint32_t AWS_SNS_Topic_HASH = ConstExprHashingUtils::HashString("AWS::SNS::Topic"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_S3_Bucket_HASH) { return ResourceType::AWS_S3_Bucket; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Type.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Type.cpp index 9efd052bcdc..eb4a04fac11 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return Type::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyFindingType.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyFindingType.cpp index b521187e88f..4367b6b0b66 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyFindingType.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyFindingType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidatePolicyFindingTypeMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int SECURITY_WARNING_HASH = HashingUtils::HashString("SECURITY_WARNING"); - static const int SUGGESTION_HASH = HashingUtils::HashString("SUGGESTION"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t SECURITY_WARNING_HASH = ConstExprHashingUtils::HashString("SECURITY_WARNING"); + static constexpr uint32_t SUGGESTION_HASH = ConstExprHashingUtils::HashString("SUGGESTION"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); ValidatePolicyFindingType GetValidatePolicyFindingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return ValidatePolicyFindingType::ERROR_; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyResourceType.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyResourceType.cpp index 363d48a2573..97128dcee83 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyResourceType.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidatePolicyResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidatePolicyResourceTypeMapper { - static const int AWS_S3_Bucket_HASH = HashingUtils::HashString("AWS::S3::Bucket"); - static const int AWS_S3_AccessPoint_HASH = HashingUtils::HashString("AWS::S3::AccessPoint"); - static const int AWS_S3_MultiRegionAccessPoint_HASH = HashingUtils::HashString("AWS::S3::MultiRegionAccessPoint"); - static const int AWS_S3ObjectLambda_AccessPoint_HASH = HashingUtils::HashString("AWS::S3ObjectLambda::AccessPoint"); - static const int AWS_IAM_AssumeRolePolicyDocument_HASH = HashingUtils::HashString("AWS::IAM::AssumeRolePolicyDocument"); + static constexpr uint32_t AWS_S3_Bucket_HASH = ConstExprHashingUtils::HashString("AWS::S3::Bucket"); + static constexpr uint32_t AWS_S3_AccessPoint_HASH = ConstExprHashingUtils::HashString("AWS::S3::AccessPoint"); + static constexpr uint32_t AWS_S3_MultiRegionAccessPoint_HASH = ConstExprHashingUtils::HashString("AWS::S3::MultiRegionAccessPoint"); + static constexpr uint32_t AWS_S3ObjectLambda_AccessPoint_HASH = ConstExprHashingUtils::HashString("AWS::S3ObjectLambda::AccessPoint"); + static constexpr uint32_t AWS_IAM_AssumeRolePolicyDocument_HASH = ConstExprHashingUtils::HashString("AWS::IAM::AssumeRolePolicyDocument"); ValidatePolicyResourceType GetValidatePolicyResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_S3_Bucket_HASH) { return ValidatePolicyResourceType::AWS_S3_Bucket; diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidationExceptionReason.cpp index b61c0ae0461..28e8eb7dbbc 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-account/source/AccountErrors.cpp b/generated/src/aws-cpp-sdk-account/source/AccountErrors.cpp index cf5b4f4d874..117c2d45795 100644 --- a/generated/src/aws-cpp-sdk-account/source/AccountErrors.cpp +++ b/generated/src/aws-cpp-sdk-account/source/AccountErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_ACCOUNT_API ValidationException AccountError::GetModeledError() namespace AccountErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-account/source/model/AlternateContactType.cpp b/generated/src/aws-cpp-sdk-account/source/model/AlternateContactType.cpp index 266c7502071..4538d1db09b 100644 --- a/generated/src/aws-cpp-sdk-account/source/model/AlternateContactType.cpp +++ b/generated/src/aws-cpp-sdk-account/source/model/AlternateContactType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AlternateContactTypeMapper { - static const int BILLING_HASH = HashingUtils::HashString("BILLING"); - static const int OPERATIONS_HASH = HashingUtils::HashString("OPERATIONS"); - static const int SECURITY_HASH = HashingUtils::HashString("SECURITY"); + static constexpr uint32_t BILLING_HASH = ConstExprHashingUtils::HashString("BILLING"); + static constexpr uint32_t OPERATIONS_HASH = ConstExprHashingUtils::HashString("OPERATIONS"); + static constexpr uint32_t SECURITY_HASH = ConstExprHashingUtils::HashString("SECURITY"); AlternateContactType GetAlternateContactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BILLING_HASH) { return AlternateContactType::BILLING; diff --git a/generated/src/aws-cpp-sdk-account/source/model/RegionOptStatus.cpp b/generated/src/aws-cpp-sdk-account/source/model/RegionOptStatus.cpp index 07e4b7ab5c9..96999223782 100644 --- a/generated/src/aws-cpp-sdk-account/source/model/RegionOptStatus.cpp +++ b/generated/src/aws-cpp-sdk-account/source/model/RegionOptStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RegionOptStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_BY_DEFAULT_HASH = HashingUtils::HashString("ENABLED_BY_DEFAULT"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_BY_DEFAULT_HASH = ConstExprHashingUtils::HashString("ENABLED_BY_DEFAULT"); RegionOptStatus GetRegionOptStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RegionOptStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-account/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-account/source/model/ValidationExceptionReason.cpp index a80176412f5..a9bf14e73f7 100644 --- a/generated/src/aws-cpp-sdk-account/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-account/source/model/ValidationExceptionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int invalidRegionOptTarget_HASH = HashingUtils::HashString("invalidRegionOptTarget"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t invalidRegionOptTarget_HASH = ConstExprHashingUtils::HashString("invalidRegionOptTarget"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == invalidRegionOptTarget_HASH) { return ValidationExceptionReason::invalidRegionOptTarget; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAErrors.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAErrors.cpp index 762fde398f1..082b93029f2 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAErrors.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAErrors.cpp @@ -18,29 +18,29 @@ namespace ACMPCA namespace ACMPCAErrorMapper { -static const int REQUEST_ALREADY_PROCESSED_HASH = HashingUtils::HashString("RequestAlreadyProcessedException"); -static const int PERMISSION_ALREADY_EXISTS_HASH = HashingUtils::HashString("PermissionAlreadyExistsException"); -static const int REQUEST_IN_PROGRESS_HASH = HashingUtils::HashString("RequestInProgressException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int REQUEST_FAILED_HASH = HashingUtils::HashString("RequestFailedException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTagException"); -static const int CERTIFICATE_MISMATCH_HASH = HashingUtils::HashString("CertificateMismatchException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); -static const int LOCKOUT_PREVENTED_HASH = HashingUtils::HashString("LockoutPreventedException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_ARGS_HASH = HashingUtils::HashString("InvalidArgsException"); -static const int MALFORMED_CERTIFICATE_HASH = HashingUtils::HashString("MalformedCertificateException"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArnException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int MALFORMED_C_S_R_HASH = HashingUtils::HashString("MalformedCSRException"); -static const int INVALID_POLICY_HASH = HashingUtils::HashString("InvalidPolicyException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t REQUEST_ALREADY_PROCESSED_HASH = ConstExprHashingUtils::HashString("RequestAlreadyProcessedException"); +static constexpr uint32_t PERMISSION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("PermissionAlreadyExistsException"); +static constexpr uint32_t REQUEST_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("RequestInProgressException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t REQUEST_FAILED_HASH = ConstExprHashingUtils::HashString("RequestFailedException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTagException"); +static constexpr uint32_t CERTIFICATE_MISMATCH_HASH = ConstExprHashingUtils::HashString("CertificateMismatchException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t LOCKOUT_PREVENTED_HASH = ConstExprHashingUtils::HashString("LockoutPreventedException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_ARGS_HASH = ConstExprHashingUtils::HashString("InvalidArgsException"); +static constexpr uint32_t MALFORMED_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("MalformedCertificateException"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t MALFORMED_C_S_R_HASH = ConstExprHashingUtils::HashString("MalformedCSRException"); +static constexpr uint32_t INVALID_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidPolicyException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == REQUEST_ALREADY_PROCESSED_HASH) { diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/AccessMethodType.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/AccessMethodType.cpp index d65050e9f51..f636a1c7150 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/AccessMethodType.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/AccessMethodType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccessMethodTypeMapper { - static const int CA_REPOSITORY_HASH = HashingUtils::HashString("CA_REPOSITORY"); - static const int RESOURCE_PKI_MANIFEST_HASH = HashingUtils::HashString("RESOURCE_PKI_MANIFEST"); - static const int RESOURCE_PKI_NOTIFY_HASH = HashingUtils::HashString("RESOURCE_PKI_NOTIFY"); + static constexpr uint32_t CA_REPOSITORY_HASH = ConstExprHashingUtils::HashString("CA_REPOSITORY"); + static constexpr uint32_t RESOURCE_PKI_MANIFEST_HASH = ConstExprHashingUtils::HashString("RESOURCE_PKI_MANIFEST"); + static constexpr uint32_t RESOURCE_PKI_NOTIFY_HASH = ConstExprHashingUtils::HashString("RESOURCE_PKI_NOTIFY"); AccessMethodType GetAccessMethodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CA_REPOSITORY_HASH) { return AccessMethodType::CA_REPOSITORY; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/ActionType.cpp index 40466f7b866..b616b2c943d 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/ActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionTypeMapper { - static const int IssueCertificate_HASH = HashingUtils::HashString("IssueCertificate"); - static const int GetCertificate_HASH = HashingUtils::HashString("GetCertificate"); - static const int ListPermissions_HASH = HashingUtils::HashString("ListPermissions"); + static constexpr uint32_t IssueCertificate_HASH = ConstExprHashingUtils::HashString("IssueCertificate"); + static constexpr uint32_t GetCertificate_HASH = ConstExprHashingUtils::HashString("GetCertificate"); + static constexpr uint32_t ListPermissions_HASH = ConstExprHashingUtils::HashString("ListPermissions"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IssueCertificate_HASH) { return ActionType::IssueCertificate; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportResponseFormat.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportResponseFormat.cpp index 8ba628849ca..d2ed64ed95f 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportResponseFormat.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportResponseFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuditReportResponseFormatMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); AuditReportResponseFormat GetAuditReportResponseFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return AuditReportResponseFormat::JSON; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportStatus.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportStatus.cpp index 8d8fd4b97c2..130af4882ed 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/AuditReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuditReportStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AuditReportStatus GetAuditReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AuditReportStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityStatus.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityStatus.cpp index 82d3a366dc8..f66acfd5eac 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityStatus.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CertificateAuthorityStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int PENDING_CERTIFICATE_HASH = HashingUtils::HashString("PENDING_CERTIFICATE"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t PENDING_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("PENDING_CERTIFICATE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CertificateAuthorityStatus GetCertificateAuthorityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CertificateAuthorityStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityType.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityType.cpp index 3afe53d2c5f..9425ceb1cd3 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityType.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateAuthorityTypeMapper { - static const int ROOT_HASH = HashingUtils::HashString("ROOT"); - static const int SUBORDINATE_HASH = HashingUtils::HashString("SUBORDINATE"); + static constexpr uint32_t ROOT_HASH = ConstExprHashingUtils::HashString("ROOT"); + static constexpr uint32_t SUBORDINATE_HASH = ConstExprHashingUtils::HashString("SUBORDINATE"); CertificateAuthorityType GetCertificateAuthorityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROOT_HASH) { return CertificateAuthorityType::ROOT; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityUsageMode.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityUsageMode.cpp index 900b86e4c5e..150de8a16c7 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityUsageMode.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/CertificateAuthorityUsageMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateAuthorityUsageModeMapper { - static const int GENERAL_PURPOSE_HASH = HashingUtils::HashString("GENERAL_PURPOSE"); - static const int SHORT_LIVED_CERTIFICATE_HASH = HashingUtils::HashString("SHORT_LIVED_CERTIFICATE"); + static constexpr uint32_t GENERAL_PURPOSE_HASH = ConstExprHashingUtils::HashString("GENERAL_PURPOSE"); + static constexpr uint32_t SHORT_LIVED_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("SHORT_LIVED_CERTIFICATE"); CertificateAuthorityUsageMode GetCertificateAuthorityUsageModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERAL_PURPOSE_HASH) { return CertificateAuthorityUsageMode::GENERAL_PURPOSE; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/ExtendedKeyUsageType.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/ExtendedKeyUsageType.cpp index d5294768230..4cde9a560c8 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/ExtendedKeyUsageType.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/ExtendedKeyUsageType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ExtendedKeyUsageTypeMapper { - static const int SERVER_AUTH_HASH = HashingUtils::HashString("SERVER_AUTH"); - static const int CLIENT_AUTH_HASH = HashingUtils::HashString("CLIENT_AUTH"); - static const int CODE_SIGNING_HASH = HashingUtils::HashString("CODE_SIGNING"); - static const int EMAIL_PROTECTION_HASH = HashingUtils::HashString("EMAIL_PROTECTION"); - static const int TIME_STAMPING_HASH = HashingUtils::HashString("TIME_STAMPING"); - static const int OCSP_SIGNING_HASH = HashingUtils::HashString("OCSP_SIGNING"); - static const int SMART_CARD_LOGIN_HASH = HashingUtils::HashString("SMART_CARD_LOGIN"); - static const int DOCUMENT_SIGNING_HASH = HashingUtils::HashString("DOCUMENT_SIGNING"); - static const int CERTIFICATE_TRANSPARENCY_HASH = HashingUtils::HashString("CERTIFICATE_TRANSPARENCY"); + static constexpr uint32_t SERVER_AUTH_HASH = ConstExprHashingUtils::HashString("SERVER_AUTH"); + static constexpr uint32_t CLIENT_AUTH_HASH = ConstExprHashingUtils::HashString("CLIENT_AUTH"); + static constexpr uint32_t CODE_SIGNING_HASH = ConstExprHashingUtils::HashString("CODE_SIGNING"); + static constexpr uint32_t EMAIL_PROTECTION_HASH = ConstExprHashingUtils::HashString("EMAIL_PROTECTION"); + static constexpr uint32_t TIME_STAMPING_HASH = ConstExprHashingUtils::HashString("TIME_STAMPING"); + static constexpr uint32_t OCSP_SIGNING_HASH = ConstExprHashingUtils::HashString("OCSP_SIGNING"); + static constexpr uint32_t SMART_CARD_LOGIN_HASH = ConstExprHashingUtils::HashString("SMART_CARD_LOGIN"); + static constexpr uint32_t DOCUMENT_SIGNING_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SIGNING"); + static constexpr uint32_t CERTIFICATE_TRANSPARENCY_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_TRANSPARENCY"); ExtendedKeyUsageType GetExtendedKeyUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVER_AUTH_HASH) { return ExtendedKeyUsageType::SERVER_AUTH; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/FailureReason.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/FailureReason.cpp index fb21f2d7cb4..d54452f8199 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/FailureReason.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/FailureReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FailureReasonMapper { - static const int REQUEST_TIMED_OUT_HASH = HashingUtils::HashString("REQUEST_TIMED_OUT"); - static const int UNSUPPORTED_ALGORITHM_HASH = HashingUtils::HashString("UNSUPPORTED_ALGORITHM"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t REQUEST_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("REQUEST_TIMED_OUT"); + static constexpr uint32_t UNSUPPORTED_ALGORITHM_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_ALGORITHM"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); FailureReason GetFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUEST_TIMED_OUT_HASH) { return FailureReason::REQUEST_TIMED_OUT; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyAlgorithm.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyAlgorithm.cpp index b289419333e..32ef603f8ac 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace KeyAlgorithmMapper { - static const int RSA_2048_HASH = HashingUtils::HashString("RSA_2048"); - static const int RSA_4096_HASH = HashingUtils::HashString("RSA_4096"); - static const int EC_prime256v1_HASH = HashingUtils::HashString("EC_prime256v1"); - static const int EC_secp384r1_HASH = HashingUtils::HashString("EC_secp384r1"); + static constexpr uint32_t RSA_2048_HASH = ConstExprHashingUtils::HashString("RSA_2048"); + static constexpr uint32_t RSA_4096_HASH = ConstExprHashingUtils::HashString("RSA_4096"); + static constexpr uint32_t EC_prime256v1_HASH = ConstExprHashingUtils::HashString("EC_prime256v1"); + static constexpr uint32_t EC_secp384r1_HASH = ConstExprHashingUtils::HashString("EC_secp384r1"); KeyAlgorithm GetKeyAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_2048_HASH) { return KeyAlgorithm::RSA_2048; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyStorageSecurityStandard.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyStorageSecurityStandard.cpp index 926c8611815..dab433f11fb 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyStorageSecurityStandard.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/KeyStorageSecurityStandard.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyStorageSecurityStandardMapper { - static const int FIPS_140_2_LEVEL_2_OR_HIGHER_HASH = HashingUtils::HashString("FIPS_140_2_LEVEL_2_OR_HIGHER"); - static const int FIPS_140_2_LEVEL_3_OR_HIGHER_HASH = HashingUtils::HashString("FIPS_140_2_LEVEL_3_OR_HIGHER"); + static constexpr uint32_t FIPS_140_2_LEVEL_2_OR_HIGHER_HASH = ConstExprHashingUtils::HashString("FIPS_140_2_LEVEL_2_OR_HIGHER"); + static constexpr uint32_t FIPS_140_2_LEVEL_3_OR_HIGHER_HASH = ConstExprHashingUtils::HashString("FIPS_140_2_LEVEL_3_OR_HIGHER"); KeyStorageSecurityStandard GetKeyStorageSecurityStandardForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIPS_140_2_LEVEL_2_OR_HIGHER_HASH) { return KeyStorageSecurityStandard::FIPS_140_2_LEVEL_2_OR_HIGHER; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/PolicyQualifierId.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/PolicyQualifierId.cpp index 0c3dfd920b0..a1081bae9ff 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/PolicyQualifierId.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/PolicyQualifierId.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PolicyQualifierIdMapper { - static const int CPS_HASH = HashingUtils::HashString("CPS"); + static constexpr uint32_t CPS_HASH = ConstExprHashingUtils::HashString("CPS"); PolicyQualifierId GetPolicyQualifierIdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPS_HASH) { return PolicyQualifierId::CPS; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/ResourceOwner.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/ResourceOwner.cpp index 1e7c46cce53..8e4b330e8a6 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/ResourceOwner.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/ResourceOwner.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceOwnerMapper { - static const int SELF_HASH = HashingUtils::HashString("SELF"); - static const int OTHER_ACCOUNTS_HASH = HashingUtils::HashString("OTHER_ACCOUNTS"); + static constexpr uint32_t SELF_HASH = ConstExprHashingUtils::HashString("SELF"); + static constexpr uint32_t OTHER_ACCOUNTS_HASH = ConstExprHashingUtils::HashString("OTHER_ACCOUNTS"); ResourceOwner GetResourceOwnerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_HASH) { return ResourceOwner::SELF; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/RevocationReason.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/RevocationReason.cpp index 821f495afaa..6ce8fe53764 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/RevocationReason.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/RevocationReason.cpp @@ -20,19 +20,19 @@ namespace Aws namespace RevocationReasonMapper { - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); - static const int KEY_COMPROMISE_HASH = HashingUtils::HashString("KEY_COMPROMISE"); - static const int CERTIFICATE_AUTHORITY_COMPROMISE_HASH = HashingUtils::HashString("CERTIFICATE_AUTHORITY_COMPROMISE"); - static const int AFFILIATION_CHANGED_HASH = HashingUtils::HashString("AFFILIATION_CHANGED"); - static const int SUPERSEDED_HASH = HashingUtils::HashString("SUPERSEDED"); - static const int CESSATION_OF_OPERATION_HASH = HashingUtils::HashString("CESSATION_OF_OPERATION"); - static const int PRIVILEGE_WITHDRAWN_HASH = HashingUtils::HashString("PRIVILEGE_WITHDRAWN"); - static const int A_A_COMPROMISE_HASH = HashingUtils::HashString("A_A_COMPROMISE"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t KEY_COMPROMISE_HASH = ConstExprHashingUtils::HashString("KEY_COMPROMISE"); + static constexpr uint32_t CERTIFICATE_AUTHORITY_COMPROMISE_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_AUTHORITY_COMPROMISE"); + static constexpr uint32_t AFFILIATION_CHANGED_HASH = ConstExprHashingUtils::HashString("AFFILIATION_CHANGED"); + static constexpr uint32_t SUPERSEDED_HASH = ConstExprHashingUtils::HashString("SUPERSEDED"); + static constexpr uint32_t CESSATION_OF_OPERATION_HASH = ConstExprHashingUtils::HashString("CESSATION_OF_OPERATION"); + static constexpr uint32_t PRIVILEGE_WITHDRAWN_HASH = ConstExprHashingUtils::HashString("PRIVILEGE_WITHDRAWN"); + static constexpr uint32_t A_A_COMPROMISE_HASH = ConstExprHashingUtils::HashString("A_A_COMPROMISE"); RevocationReason GetRevocationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNSPECIFIED_HASH) { return RevocationReason::UNSPECIFIED; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/S3ObjectAcl.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/S3ObjectAcl.cpp index a05f0cb9047..9285b653503 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/S3ObjectAcl.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/S3ObjectAcl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3ObjectAclMapper { - static const int PUBLIC_READ_HASH = HashingUtils::HashString("PUBLIC_READ"); - static const int BUCKET_OWNER_FULL_CONTROL_HASH = HashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); + static constexpr uint32_t PUBLIC_READ_HASH = ConstExprHashingUtils::HashString("PUBLIC_READ"); + static constexpr uint32_t BUCKET_OWNER_FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); S3ObjectAcl GetS3ObjectAclForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC_READ_HASH) { return S3ObjectAcl::PUBLIC_READ; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/SigningAlgorithm.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/SigningAlgorithm.cpp index 576719f9c42..2a143fd1953 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/SigningAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/SigningAlgorithm.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SigningAlgorithmMapper { - static const int SHA256WITHECDSA_HASH = HashingUtils::HashString("SHA256WITHECDSA"); - static const int SHA384WITHECDSA_HASH = HashingUtils::HashString("SHA384WITHECDSA"); - static const int SHA512WITHECDSA_HASH = HashingUtils::HashString("SHA512WITHECDSA"); - static const int SHA256WITHRSA_HASH = HashingUtils::HashString("SHA256WITHRSA"); - static const int SHA384WITHRSA_HASH = HashingUtils::HashString("SHA384WITHRSA"); - static const int SHA512WITHRSA_HASH = HashingUtils::HashString("SHA512WITHRSA"); + static constexpr uint32_t SHA256WITHECDSA_HASH = ConstExprHashingUtils::HashString("SHA256WITHECDSA"); + static constexpr uint32_t SHA384WITHECDSA_HASH = ConstExprHashingUtils::HashString("SHA384WITHECDSA"); + static constexpr uint32_t SHA512WITHECDSA_HASH = ConstExprHashingUtils::HashString("SHA512WITHECDSA"); + static constexpr uint32_t SHA256WITHRSA_HASH = ConstExprHashingUtils::HashString("SHA256WITHRSA"); + static constexpr uint32_t SHA384WITHRSA_HASH = ConstExprHashingUtils::HashString("SHA384WITHRSA"); + static constexpr uint32_t SHA512WITHRSA_HASH = ConstExprHashingUtils::HashString("SHA512WITHRSA"); SigningAlgorithm GetSigningAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA256WITHECDSA_HASH) { return SigningAlgorithm::SHA256WITHECDSA; diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/model/ValidityPeriodType.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/model/ValidityPeriodType.cpp index 481e8901e1f..8805593bfb1 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/model/ValidityPeriodType.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/model/ValidityPeriodType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidityPeriodTypeMapper { - static const int END_DATE_HASH = HashingUtils::HashString("END_DATE"); - static const int ABSOLUTE_HASH = HashingUtils::HashString("ABSOLUTE"); - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); - static const int YEARS_HASH = HashingUtils::HashString("YEARS"); + static constexpr uint32_t END_DATE_HASH = ConstExprHashingUtils::HashString("END_DATE"); + static constexpr uint32_t ABSOLUTE_HASH = ConstExprHashingUtils::HashString("ABSOLUTE"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); + static constexpr uint32_t YEARS_HASH = ConstExprHashingUtils::HashString("YEARS"); ValidityPeriodType GetValidityPeriodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == END_DATE_HASH) { return ValidityPeriodType::END_DATE; diff --git a/generated/src/aws-cpp-sdk-acm/source/ACMErrors.cpp b/generated/src/aws-cpp-sdk-acm/source/ACMErrors.cpp index 97c119095f0..dc0a520d2d5 100644 --- a/generated/src/aws-cpp-sdk-acm/source/ACMErrors.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/ACMErrors.cpp @@ -18,23 +18,23 @@ namespace ACM namespace ACMErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INVALID_ARGS_HASH = HashingUtils::HashString("InvalidArgsException"); -static const int INVALID_DOMAIN_VALIDATION_OPTIONS_HASH = HashingUtils::HashString("InvalidDomainValidationOptionsException"); -static const int REQUEST_IN_PROGRESS_HASH = HashingUtils::HashString("RequestInProgressException"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArnException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTagException"); -static const int TAG_POLICY_HASH = HashingUtils::HashString("TagPolicyException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INVALID_ARGS_HASH = ConstExprHashingUtils::HashString("InvalidArgsException"); +static constexpr uint32_t INVALID_DOMAIN_VALIDATION_OPTIONS_HASH = ConstExprHashingUtils::HashString("InvalidDomainValidationOptionsException"); +static constexpr uint32_t REQUEST_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("RequestInProgressException"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTagException"); +static constexpr uint32_t TAG_POLICY_HASH = ConstExprHashingUtils::HashString("TagPolicyException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-acm/source/model/CertificateStatus.cpp b/generated/src/aws-cpp-sdk-acm/source/model/CertificateStatus.cpp index 791c82decf0..07cf6c94a5a 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/CertificateStatus.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/CertificateStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CertificateStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int ISSUED_HASH = HashingUtils::HashString("ISSUED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int VALIDATION_TIMED_OUT_HASH = HashingUtils::HashString("VALIDATION_TIMED_OUT"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t ISSUED_HASH = ConstExprHashingUtils::HashString("ISSUED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t VALIDATION_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("VALIDATION_TIMED_OUT"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CertificateStatus GetCertificateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return CertificateStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/CertificateTransparencyLoggingPreference.cpp b/generated/src/aws-cpp-sdk-acm/source/model/CertificateTransparencyLoggingPreference.cpp index e01038200fa..780412dfade 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/CertificateTransparencyLoggingPreference.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/CertificateTransparencyLoggingPreference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateTransparencyLoggingPreferenceMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CertificateTransparencyLoggingPreference GetCertificateTransparencyLoggingPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CertificateTransparencyLoggingPreference::ENABLED; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/CertificateType.cpp b/generated/src/aws-cpp-sdk-acm/source/model/CertificateType.cpp index ad70ce0c9fb..e91ffbb0157 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/CertificateType.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/CertificateType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CertificateTypeMapper { - static const int IMPORTED_HASH = HashingUtils::HashString("IMPORTED"); - static const int AMAZON_ISSUED_HASH = HashingUtils::HashString("AMAZON_ISSUED"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t IMPORTED_HASH = ConstExprHashingUtils::HashString("IMPORTED"); + static constexpr uint32_t AMAZON_ISSUED_HASH = ConstExprHashingUtils::HashString("AMAZON_ISSUED"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); CertificateType GetCertificateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORTED_HASH) { return CertificateType::IMPORTED; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-acm/source/model/DomainStatus.cpp index b540d2230f1..bd519563692 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/DomainStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DomainStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return DomainStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/ExtendedKeyUsageName.cpp b/generated/src/aws-cpp-sdk-acm/source/model/ExtendedKeyUsageName.cpp index c261fdf8904..ad91c09a1b8 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/ExtendedKeyUsageName.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/ExtendedKeyUsageName.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ExtendedKeyUsageNameMapper { - static const int TLS_WEB_SERVER_AUTHENTICATION_HASH = HashingUtils::HashString("TLS_WEB_SERVER_AUTHENTICATION"); - static const int TLS_WEB_CLIENT_AUTHENTICATION_HASH = HashingUtils::HashString("TLS_WEB_CLIENT_AUTHENTICATION"); - static const int CODE_SIGNING_HASH = HashingUtils::HashString("CODE_SIGNING"); - static const int EMAIL_PROTECTION_HASH = HashingUtils::HashString("EMAIL_PROTECTION"); - static const int TIME_STAMPING_HASH = HashingUtils::HashString("TIME_STAMPING"); - static const int OCSP_SIGNING_HASH = HashingUtils::HashString("OCSP_SIGNING"); - static const int IPSEC_END_SYSTEM_HASH = HashingUtils::HashString("IPSEC_END_SYSTEM"); - static const int IPSEC_TUNNEL_HASH = HashingUtils::HashString("IPSEC_TUNNEL"); - static const int IPSEC_USER_HASH = HashingUtils::HashString("IPSEC_USER"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t TLS_WEB_SERVER_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("TLS_WEB_SERVER_AUTHENTICATION"); + static constexpr uint32_t TLS_WEB_CLIENT_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("TLS_WEB_CLIENT_AUTHENTICATION"); + static constexpr uint32_t CODE_SIGNING_HASH = ConstExprHashingUtils::HashString("CODE_SIGNING"); + static constexpr uint32_t EMAIL_PROTECTION_HASH = ConstExprHashingUtils::HashString("EMAIL_PROTECTION"); + static constexpr uint32_t TIME_STAMPING_HASH = ConstExprHashingUtils::HashString("TIME_STAMPING"); + static constexpr uint32_t OCSP_SIGNING_HASH = ConstExprHashingUtils::HashString("OCSP_SIGNING"); + static constexpr uint32_t IPSEC_END_SYSTEM_HASH = ConstExprHashingUtils::HashString("IPSEC_END_SYSTEM"); + static constexpr uint32_t IPSEC_TUNNEL_HASH = ConstExprHashingUtils::HashString("IPSEC_TUNNEL"); + static constexpr uint32_t IPSEC_USER_HASH = ConstExprHashingUtils::HashString("IPSEC_USER"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ExtendedKeyUsageName GetExtendedKeyUsageNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TLS_WEB_SERVER_AUTHENTICATION_HASH) { return ExtendedKeyUsageName::TLS_WEB_SERVER_AUTHENTICATION; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/FailureReason.cpp b/generated/src/aws-cpp-sdk-acm/source/model/FailureReason.cpp index f9227e020e6..5fd585b76e9 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/FailureReason.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/FailureReason.cpp @@ -20,28 +20,28 @@ namespace Aws namespace FailureReasonMapper { - static const int NO_AVAILABLE_CONTACTS_HASH = HashingUtils::HashString("NO_AVAILABLE_CONTACTS"); - static const int ADDITIONAL_VERIFICATION_REQUIRED_HASH = HashingUtils::HashString("ADDITIONAL_VERIFICATION_REQUIRED"); - static const int DOMAIN_NOT_ALLOWED_HASH = HashingUtils::HashString("DOMAIN_NOT_ALLOWED"); - static const int INVALID_PUBLIC_DOMAIN_HASH = HashingUtils::HashString("INVALID_PUBLIC_DOMAIN"); - static const int DOMAIN_VALIDATION_DENIED_HASH = HashingUtils::HashString("DOMAIN_VALIDATION_DENIED"); - static const int CAA_ERROR_HASH = HashingUtils::HashString("CAA_ERROR"); - static const int PCA_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PCA_LIMIT_EXCEEDED"); - static const int PCA_INVALID_ARN_HASH = HashingUtils::HashString("PCA_INVALID_ARN"); - static const int PCA_INVALID_STATE_HASH = HashingUtils::HashString("PCA_INVALID_STATE"); - static const int PCA_REQUEST_FAILED_HASH = HashingUtils::HashString("PCA_REQUEST_FAILED"); - static const int PCA_NAME_CONSTRAINTS_VALIDATION_HASH = HashingUtils::HashString("PCA_NAME_CONSTRAINTS_VALIDATION"); - static const int PCA_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("PCA_RESOURCE_NOT_FOUND"); - static const int PCA_INVALID_ARGS_HASH = HashingUtils::HashString("PCA_INVALID_ARGS"); - static const int PCA_INVALID_DURATION_HASH = HashingUtils::HashString("PCA_INVALID_DURATION"); - static const int PCA_ACCESS_DENIED_HASH = HashingUtils::HashString("PCA_ACCESS_DENIED"); - static const int SLR_NOT_FOUND_HASH = HashingUtils::HashString("SLR_NOT_FOUND"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t NO_AVAILABLE_CONTACTS_HASH = ConstExprHashingUtils::HashString("NO_AVAILABLE_CONTACTS"); + static constexpr uint32_t ADDITIONAL_VERIFICATION_REQUIRED_HASH = ConstExprHashingUtils::HashString("ADDITIONAL_VERIFICATION_REQUIRED"); + static constexpr uint32_t DOMAIN_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("DOMAIN_NOT_ALLOWED"); + static constexpr uint32_t INVALID_PUBLIC_DOMAIN_HASH = ConstExprHashingUtils::HashString("INVALID_PUBLIC_DOMAIN"); + static constexpr uint32_t DOMAIN_VALIDATION_DENIED_HASH = ConstExprHashingUtils::HashString("DOMAIN_VALIDATION_DENIED"); + static constexpr uint32_t CAA_ERROR_HASH = ConstExprHashingUtils::HashString("CAA_ERROR"); + static constexpr uint32_t PCA_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PCA_LIMIT_EXCEEDED"); + static constexpr uint32_t PCA_INVALID_ARN_HASH = ConstExprHashingUtils::HashString("PCA_INVALID_ARN"); + static constexpr uint32_t PCA_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("PCA_INVALID_STATE"); + static constexpr uint32_t PCA_REQUEST_FAILED_HASH = ConstExprHashingUtils::HashString("PCA_REQUEST_FAILED"); + static constexpr uint32_t PCA_NAME_CONSTRAINTS_VALIDATION_HASH = ConstExprHashingUtils::HashString("PCA_NAME_CONSTRAINTS_VALIDATION"); + static constexpr uint32_t PCA_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PCA_RESOURCE_NOT_FOUND"); + static constexpr uint32_t PCA_INVALID_ARGS_HASH = ConstExprHashingUtils::HashString("PCA_INVALID_ARGS"); + static constexpr uint32_t PCA_INVALID_DURATION_HASH = ConstExprHashingUtils::HashString("PCA_INVALID_DURATION"); + static constexpr uint32_t PCA_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("PCA_ACCESS_DENIED"); + static constexpr uint32_t SLR_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SLR_NOT_FOUND"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); FailureReason GetFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_AVAILABLE_CONTACTS_HASH) { return FailureReason::NO_AVAILABLE_CONTACTS; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/KeyAlgorithm.cpp b/generated/src/aws-cpp-sdk-acm/source/model/KeyAlgorithm.cpp index 6ac31b5d59c..67b7e8fc602 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/KeyAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/KeyAlgorithm.cpp @@ -20,18 +20,18 @@ namespace Aws namespace KeyAlgorithmMapper { - static const int RSA_1024_HASH = HashingUtils::HashString("RSA_1024"); - static const int RSA_2048_HASH = HashingUtils::HashString("RSA_2048"); - static const int RSA_3072_HASH = HashingUtils::HashString("RSA_3072"); - static const int RSA_4096_HASH = HashingUtils::HashString("RSA_4096"); - static const int EC_prime256v1_HASH = HashingUtils::HashString("EC_prime256v1"); - static const int EC_secp384r1_HASH = HashingUtils::HashString("EC_secp384r1"); - static const int EC_secp521r1_HASH = HashingUtils::HashString("EC_secp521r1"); + static constexpr uint32_t RSA_1024_HASH = ConstExprHashingUtils::HashString("RSA_1024"); + static constexpr uint32_t RSA_2048_HASH = ConstExprHashingUtils::HashString("RSA_2048"); + static constexpr uint32_t RSA_3072_HASH = ConstExprHashingUtils::HashString("RSA_3072"); + static constexpr uint32_t RSA_4096_HASH = ConstExprHashingUtils::HashString("RSA_4096"); + static constexpr uint32_t EC_prime256v1_HASH = ConstExprHashingUtils::HashString("EC_prime256v1"); + static constexpr uint32_t EC_secp384r1_HASH = ConstExprHashingUtils::HashString("EC_secp384r1"); + static constexpr uint32_t EC_secp521r1_HASH = ConstExprHashingUtils::HashString("EC_secp521r1"); KeyAlgorithm GetKeyAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_1024_HASH) { return KeyAlgorithm::RSA_1024; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/KeyUsageName.cpp b/generated/src/aws-cpp-sdk-acm/source/model/KeyUsageName.cpp index c4f26460d15..dc083a6f6d3 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/KeyUsageName.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/KeyUsageName.cpp @@ -20,22 +20,22 @@ namespace Aws namespace KeyUsageNameMapper { - static const int DIGITAL_SIGNATURE_HASH = HashingUtils::HashString("DIGITAL_SIGNATURE"); - static const int NON_REPUDIATION_HASH = HashingUtils::HashString("NON_REPUDIATION"); - static const int KEY_ENCIPHERMENT_HASH = HashingUtils::HashString("KEY_ENCIPHERMENT"); - static const int DATA_ENCIPHERMENT_HASH = HashingUtils::HashString("DATA_ENCIPHERMENT"); - static const int KEY_AGREEMENT_HASH = HashingUtils::HashString("KEY_AGREEMENT"); - static const int CERTIFICATE_SIGNING_HASH = HashingUtils::HashString("CERTIFICATE_SIGNING"); - static const int CRL_SIGNING_HASH = HashingUtils::HashString("CRL_SIGNING"); - static const int ENCIPHER_ONLY_HASH = HashingUtils::HashString("ENCIPHER_ONLY"); - static const int DECIPHER_ONLY_HASH = HashingUtils::HashString("DECIPHER_ONLY"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t DIGITAL_SIGNATURE_HASH = ConstExprHashingUtils::HashString("DIGITAL_SIGNATURE"); + static constexpr uint32_t NON_REPUDIATION_HASH = ConstExprHashingUtils::HashString("NON_REPUDIATION"); + static constexpr uint32_t KEY_ENCIPHERMENT_HASH = ConstExprHashingUtils::HashString("KEY_ENCIPHERMENT"); + static constexpr uint32_t DATA_ENCIPHERMENT_HASH = ConstExprHashingUtils::HashString("DATA_ENCIPHERMENT"); + static constexpr uint32_t KEY_AGREEMENT_HASH = ConstExprHashingUtils::HashString("KEY_AGREEMENT"); + static constexpr uint32_t CERTIFICATE_SIGNING_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_SIGNING"); + static constexpr uint32_t CRL_SIGNING_HASH = ConstExprHashingUtils::HashString("CRL_SIGNING"); + static constexpr uint32_t ENCIPHER_ONLY_HASH = ConstExprHashingUtils::HashString("ENCIPHER_ONLY"); + static constexpr uint32_t DECIPHER_ONLY_HASH = ConstExprHashingUtils::HashString("DECIPHER_ONLY"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); KeyUsageName GetKeyUsageNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIGITAL_SIGNATURE_HASH) { return KeyUsageName::DIGITAL_SIGNATURE; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/RecordType.cpp b/generated/src/aws-cpp-sdk-acm/source/model/RecordType.cpp index d69c2de941f..6954f5beba3 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/RecordType.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/RecordType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecordTypeMapper { - static const int CNAME_HASH = HashingUtils::HashString("CNAME"); + static constexpr uint32_t CNAME_HASH = ConstExprHashingUtils::HashString("CNAME"); RecordType GetRecordTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CNAME_HASH) { return RecordType::CNAME; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/RenewalEligibility.cpp b/generated/src/aws-cpp-sdk-acm/source/model/RenewalEligibility.cpp index 243040815c9..0e2fc88bc49 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/RenewalEligibility.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/RenewalEligibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RenewalEligibilityMapper { - static const int ELIGIBLE_HASH = HashingUtils::HashString("ELIGIBLE"); - static const int INELIGIBLE_HASH = HashingUtils::HashString("INELIGIBLE"); + static constexpr uint32_t ELIGIBLE_HASH = ConstExprHashingUtils::HashString("ELIGIBLE"); + static constexpr uint32_t INELIGIBLE_HASH = ConstExprHashingUtils::HashString("INELIGIBLE"); RenewalEligibility GetRenewalEligibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ELIGIBLE_HASH) { return RenewalEligibility::ELIGIBLE; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/RenewalStatus.cpp b/generated/src/aws-cpp-sdk-acm/source/model/RenewalStatus.cpp index f0e287d6167..1d242b97df7 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/RenewalStatus.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/RenewalStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RenewalStatusMapper { - static const int PENDING_AUTO_RENEWAL_HASH = HashingUtils::HashString("PENDING_AUTO_RENEWAL"); - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_AUTO_RENEWAL_HASH = ConstExprHashingUtils::HashString("PENDING_AUTO_RENEWAL"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RenewalStatus GetRenewalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_AUTO_RENEWAL_HASH) { return RenewalStatus::PENDING_AUTO_RENEWAL; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/RevocationReason.cpp b/generated/src/aws-cpp-sdk-acm/source/model/RevocationReason.cpp index c5f3eba6863..4abbdf2994b 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/RevocationReason.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/RevocationReason.cpp @@ -20,21 +20,21 @@ namespace Aws namespace RevocationReasonMapper { - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); - static const int KEY_COMPROMISE_HASH = HashingUtils::HashString("KEY_COMPROMISE"); - static const int CA_COMPROMISE_HASH = HashingUtils::HashString("CA_COMPROMISE"); - static const int AFFILIATION_CHANGED_HASH = HashingUtils::HashString("AFFILIATION_CHANGED"); - static const int SUPERCEDED_HASH = HashingUtils::HashString("SUPERCEDED"); - static const int CESSATION_OF_OPERATION_HASH = HashingUtils::HashString("CESSATION_OF_OPERATION"); - static const int CERTIFICATE_HOLD_HASH = HashingUtils::HashString("CERTIFICATE_HOLD"); - static const int REMOVE_FROM_CRL_HASH = HashingUtils::HashString("REMOVE_FROM_CRL"); - static const int PRIVILEGE_WITHDRAWN_HASH = HashingUtils::HashString("PRIVILEGE_WITHDRAWN"); - static const int A_A_COMPROMISE_HASH = HashingUtils::HashString("A_A_COMPROMISE"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t KEY_COMPROMISE_HASH = ConstExprHashingUtils::HashString("KEY_COMPROMISE"); + static constexpr uint32_t CA_COMPROMISE_HASH = ConstExprHashingUtils::HashString("CA_COMPROMISE"); + static constexpr uint32_t AFFILIATION_CHANGED_HASH = ConstExprHashingUtils::HashString("AFFILIATION_CHANGED"); + static constexpr uint32_t SUPERCEDED_HASH = ConstExprHashingUtils::HashString("SUPERCEDED"); + static constexpr uint32_t CESSATION_OF_OPERATION_HASH = ConstExprHashingUtils::HashString("CESSATION_OF_OPERATION"); + static constexpr uint32_t CERTIFICATE_HOLD_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_HOLD"); + static constexpr uint32_t REMOVE_FROM_CRL_HASH = ConstExprHashingUtils::HashString("REMOVE_FROM_CRL"); + static constexpr uint32_t PRIVILEGE_WITHDRAWN_HASH = ConstExprHashingUtils::HashString("PRIVILEGE_WITHDRAWN"); + static constexpr uint32_t A_A_COMPROMISE_HASH = ConstExprHashingUtils::HashString("A_A_COMPROMISE"); RevocationReason GetRevocationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNSPECIFIED_HASH) { return RevocationReason::UNSPECIFIED; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/SortBy.cpp b/generated/src/aws-cpp-sdk-acm/source/model/SortBy.cpp index fae602c254f..335fc2b5758 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/SortBy.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/SortBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortByMapper { - static const int CREATED_AT_HASH = HashingUtils::HashString("CREATED_AT"); + static constexpr uint32_t CREATED_AT_HASH = ConstExprHashingUtils::HashString("CREATED_AT"); SortBy GetSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_AT_HASH) { return SortBy::CREATED_AT; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-acm/source/model/SortOrder.cpp index dd6c90fb4f3..c76f6b935ef 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-acm/source/model/ValidationMethod.cpp b/generated/src/aws-cpp-sdk-acm/source/model/ValidationMethod.cpp index 157b21135e6..71bff1fa515 100644 --- a/generated/src/aws-cpp-sdk-acm/source/model/ValidationMethod.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/model/ValidationMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationMethodMapper { - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int DNS_HASH = HashingUtils::HashString("DNS"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t DNS_HASH = ConstExprHashingUtils::HashString("DNS"); ValidationMethod GetValidationMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_HASH) { return ValidationMethod::EMAIL; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/AlexaForBusinessErrors.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/AlexaForBusinessErrors.cpp index cd89f24f076..c70459a69c0 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/AlexaForBusinessErrors.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/AlexaForBusinessErrors.cpp @@ -18,13 +18,13 @@ namespace AlexaForBusiness namespace AlexaForBusinessErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFailureCode.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFailureCode.cpp index da06d79dec4..4ea8975bab9 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFailureCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BusinessReportFailureCodeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int NO_SUCH_BUCKET_HASH = HashingUtils::HashString("NO_SUCH_BUCKET"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t NO_SUCH_BUCKET_HASH = ConstExprHashingUtils::HashString("NO_SUCH_BUCKET"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); BusinessReportFailureCode GetBusinessReportFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return BusinessReportFailureCode::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFormat.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFormat.cpp index 5e0e79905c2..ada967988c1 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BusinessReportFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int CSV_ZIP_HASH = HashingUtils::HashString("CSV_ZIP"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_ZIP_HASH = ConstExprHashingUtils::HashString("CSV_ZIP"); BusinessReportFormat GetBusinessReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return BusinessReportFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportInterval.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportInterval.cpp index 53a99803f3d..463db44305e 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportInterval.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportInterval.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BusinessReportIntervalMapper { - static const int ONE_DAY_HASH = HashingUtils::HashString("ONE_DAY"); - static const int ONE_WEEK_HASH = HashingUtils::HashString("ONE_WEEK"); - static const int THIRTY_DAYS_HASH = HashingUtils::HashString("THIRTY_DAYS"); + static constexpr uint32_t ONE_DAY_HASH = ConstExprHashingUtils::HashString("ONE_DAY"); + static constexpr uint32_t ONE_WEEK_HASH = ConstExprHashingUtils::HashString("ONE_WEEK"); + static constexpr uint32_t THIRTY_DAYS_HASH = ConstExprHashingUtils::HashString("THIRTY_DAYS"); BusinessReportInterval GetBusinessReportIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_DAY_HASH) { return BusinessReportInterval::ONE_DAY; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportStatus.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportStatus.cpp index 82a32c17ed7..ff00b1685f0 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/BusinessReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BusinessReportStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); BusinessReportStatus GetBusinessReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return BusinessReportStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/CommsProtocol.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/CommsProtocol.cpp index ed5d62a54a2..c6bbe74c043 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/CommsProtocol.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/CommsProtocol.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CommsProtocolMapper { - static const int SIP_HASH = HashingUtils::HashString("SIP"); - static const int SIPS_HASH = HashingUtils::HashString("SIPS"); - static const int H323_HASH = HashingUtils::HashString("H323"); + static constexpr uint32_t SIP_HASH = ConstExprHashingUtils::HashString("SIP"); + static constexpr uint32_t SIPS_HASH = ConstExprHashingUtils::HashString("SIPS"); + static constexpr uint32_t H323_HASH = ConstExprHashingUtils::HashString("H323"); CommsProtocol GetCommsProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIP_HASH) { return CommsProtocol::SIP; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProviderType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProviderType.cpp index 20bb7efc8ef..212e605039a 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProviderType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConferenceProviderType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ConferenceProviderTypeMapper { - static const int CHIME_HASH = HashingUtils::HashString("CHIME"); - static const int BLUEJEANS_HASH = HashingUtils::HashString("BLUEJEANS"); - static const int FUZE_HASH = HashingUtils::HashString("FUZE"); - static const int GOOGLE_HANGOUTS_HASH = HashingUtils::HashString("GOOGLE_HANGOUTS"); - static const int POLYCOM_HASH = HashingUtils::HashString("POLYCOM"); - static const int RINGCENTRAL_HASH = HashingUtils::HashString("RINGCENTRAL"); - static const int SKYPE_FOR_BUSINESS_HASH = HashingUtils::HashString("SKYPE_FOR_BUSINESS"); - static const int WEBEX_HASH = HashingUtils::HashString("WEBEX"); - static const int ZOOM_HASH = HashingUtils::HashString("ZOOM"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t CHIME_HASH = ConstExprHashingUtils::HashString("CHIME"); + static constexpr uint32_t BLUEJEANS_HASH = ConstExprHashingUtils::HashString("BLUEJEANS"); + static constexpr uint32_t FUZE_HASH = ConstExprHashingUtils::HashString("FUZE"); + static constexpr uint32_t GOOGLE_HANGOUTS_HASH = ConstExprHashingUtils::HashString("GOOGLE_HANGOUTS"); + static constexpr uint32_t POLYCOM_HASH = ConstExprHashingUtils::HashString("POLYCOM"); + static constexpr uint32_t RINGCENTRAL_HASH = ConstExprHashingUtils::HashString("RINGCENTRAL"); + static constexpr uint32_t SKYPE_FOR_BUSINESS_HASH = ConstExprHashingUtils::HashString("SKYPE_FOR_BUSINESS"); + static constexpr uint32_t WEBEX_HASH = ConstExprHashingUtils::HashString("WEBEX"); + static constexpr uint32_t ZOOM_HASH = ConstExprHashingUtils::HashString("ZOOM"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ConferenceProviderType GetConferenceProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHIME_HASH) { return ConferenceProviderType::CHIME; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConnectionStatus.cpp index 3b4a153d53a..ecdc9168db9 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/ConnectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionStatusMapper { - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLINE_HASH) { return ConnectionStatus::ONLINE; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceEventType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceEventType.cpp index e716a70daa5..677c486da26 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceEventType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceEventType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceEventTypeMapper { - static const int CONNECTION_STATUS_HASH = HashingUtils::HashString("CONNECTION_STATUS"); - static const int DEVICE_STATUS_HASH = HashingUtils::HashString("DEVICE_STATUS"); + static constexpr uint32_t CONNECTION_STATUS_HASH = ConstExprHashingUtils::HashString("CONNECTION_STATUS"); + static constexpr uint32_t DEVICE_STATUS_HASH = ConstExprHashingUtils::HashString("DEVICE_STATUS"); DeviceEventType GetDeviceEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTION_STATUS_HASH) { return DeviceEventType::CONNECTION_STATUS; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatus.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatus.cpp index e28fa515ad0..78037b89ffa 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatus.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeviceStatusMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int WAS_OFFLINE_HASH = HashingUtils::HashString("WAS_OFFLINE"); - static const int DEREGISTERED_HASH = HashingUtils::HashString("DEREGISTERED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t WAS_OFFLINE_HASH = ConstExprHashingUtils::HashString("WAS_OFFLINE"); + static constexpr uint32_t DEREGISTERED_HASH = ConstExprHashingUtils::HashString("DEREGISTERED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DeviceStatus GetDeviceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return DeviceStatus::READY; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatusDetailCode.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatusDetailCode.cpp index b8277f4836b..646fd92eec2 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatusDetailCode.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceStatusDetailCode.cpp @@ -20,28 +20,28 @@ namespace Aws namespace DeviceStatusDetailCodeMapper { - static const int DEVICE_SOFTWARE_UPDATE_NEEDED_HASH = HashingUtils::HashString("DEVICE_SOFTWARE_UPDATE_NEEDED"); - static const int DEVICE_WAS_OFFLINE_HASH = HashingUtils::HashString("DEVICE_WAS_OFFLINE"); - static const int CREDENTIALS_ACCESS_FAILURE_HASH = HashingUtils::HashString("CREDENTIALS_ACCESS_FAILURE"); - static const int TLS_VERSION_MISMATCH_HASH = HashingUtils::HashString("TLS_VERSION_MISMATCH"); - static const int ASSOCIATION_REJECTION_HASH = HashingUtils::HashString("ASSOCIATION_REJECTION"); - static const int AUTHENTICATION_FAILURE_HASH = HashingUtils::HashString("AUTHENTICATION_FAILURE"); - static const int DHCP_FAILURE_HASH = HashingUtils::HashString("DHCP_FAILURE"); - static const int INTERNET_UNAVAILABLE_HASH = HashingUtils::HashString("INTERNET_UNAVAILABLE"); - static const int DNS_FAILURE_HASH = HashingUtils::HashString("DNS_FAILURE"); - static const int UNKNOWN_FAILURE_HASH = HashingUtils::HashString("UNKNOWN_FAILURE"); - static const int CERTIFICATE_ISSUING_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CERTIFICATE_ISSUING_LIMIT_EXCEEDED"); - static const int INVALID_CERTIFICATE_AUTHORITY_HASH = HashingUtils::HashString("INVALID_CERTIFICATE_AUTHORITY"); - static const int NETWORK_PROFILE_NOT_FOUND_HASH = HashingUtils::HashString("NETWORK_PROFILE_NOT_FOUND"); - static const int INVALID_PASSWORD_STATE_HASH = HashingUtils::HashString("INVALID_PASSWORD_STATE"); - static const int PASSWORD_NOT_FOUND_HASH = HashingUtils::HashString("PASSWORD_NOT_FOUND"); - static const int PASSWORD_MANAGER_ACCESS_DENIED_HASH = HashingUtils::HashString("PASSWORD_MANAGER_ACCESS_DENIED"); - static const int CERTIFICATE_AUTHORITY_ACCESS_DENIED_HASH = HashingUtils::HashString("CERTIFICATE_AUTHORITY_ACCESS_DENIED"); + static constexpr uint32_t DEVICE_SOFTWARE_UPDATE_NEEDED_HASH = ConstExprHashingUtils::HashString("DEVICE_SOFTWARE_UPDATE_NEEDED"); + static constexpr uint32_t DEVICE_WAS_OFFLINE_HASH = ConstExprHashingUtils::HashString("DEVICE_WAS_OFFLINE"); + static constexpr uint32_t CREDENTIALS_ACCESS_FAILURE_HASH = ConstExprHashingUtils::HashString("CREDENTIALS_ACCESS_FAILURE"); + static constexpr uint32_t TLS_VERSION_MISMATCH_HASH = ConstExprHashingUtils::HashString("TLS_VERSION_MISMATCH"); + static constexpr uint32_t ASSOCIATION_REJECTION_HASH = ConstExprHashingUtils::HashString("ASSOCIATION_REJECTION"); + static constexpr uint32_t AUTHENTICATION_FAILURE_HASH = ConstExprHashingUtils::HashString("AUTHENTICATION_FAILURE"); + static constexpr uint32_t DHCP_FAILURE_HASH = ConstExprHashingUtils::HashString("DHCP_FAILURE"); + static constexpr uint32_t INTERNET_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("INTERNET_UNAVAILABLE"); + static constexpr uint32_t DNS_FAILURE_HASH = ConstExprHashingUtils::HashString("DNS_FAILURE"); + static constexpr uint32_t UNKNOWN_FAILURE_HASH = ConstExprHashingUtils::HashString("UNKNOWN_FAILURE"); + static constexpr uint32_t CERTIFICATE_ISSUING_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_ISSUING_LIMIT_EXCEEDED"); + static constexpr uint32_t INVALID_CERTIFICATE_AUTHORITY_HASH = ConstExprHashingUtils::HashString("INVALID_CERTIFICATE_AUTHORITY"); + static constexpr uint32_t NETWORK_PROFILE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NETWORK_PROFILE_NOT_FOUND"); + static constexpr uint32_t INVALID_PASSWORD_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_PASSWORD_STATE"); + static constexpr uint32_t PASSWORD_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PASSWORD_NOT_FOUND"); + static constexpr uint32_t PASSWORD_MANAGER_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("PASSWORD_MANAGER_ACCESS_DENIED"); + static constexpr uint32_t CERTIFICATE_AUTHORITY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_AUTHORITY_ACCESS_DENIED"); DeviceStatusDetailCode GetDeviceStatusDetailCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVICE_SOFTWARE_UPDATE_NEEDED_HASH) { return DeviceStatusDetailCode::DEVICE_SOFTWARE_UPDATE_NEEDED; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceUsageType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceUsageType.cpp index 32fea228c17..bd1d35dddd9 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceUsageType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DeviceUsageType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DeviceUsageTypeMapper { - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); DeviceUsageType GetDeviceUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VOICE_HASH) { return DeviceUsageType::VOICE; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DistanceUnit.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DistanceUnit.cpp index 88734cbe5fc..4953f5aaa34 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DistanceUnit.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/DistanceUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DistanceUnitMapper { - static const int METRIC_HASH = HashingUtils::HashString("METRIC"); - static const int IMPERIAL_HASH = HashingUtils::HashString("IMPERIAL"); + static constexpr uint32_t METRIC_HASH = ConstExprHashingUtils::HashString("METRIC"); + static constexpr uint32_t IMPERIAL_HASH = ConstExprHashingUtils::HashString("IMPERIAL"); DistanceUnit GetDistanceUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == METRIC_HASH) { return DistanceUnit::METRIC; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementType.cpp index 06ca1b3486a..5d0590c307a 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnablementTypeMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); EnablementType GetEnablementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EnablementType::ENABLED; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementTypeFilter.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementTypeFilter.cpp index 620d2b31e57..320956e6506 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnablementTypeFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnablementTypeFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); EnablementTypeFilter GetEnablementTypeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EnablementTypeFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EndOfMeetingReminderType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EndOfMeetingReminderType.cpp index 8868979e5ed..58844b0f69a 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EndOfMeetingReminderType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EndOfMeetingReminderType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EndOfMeetingReminderTypeMapper { - static const int ANNOUNCEMENT_TIME_CHECK_HASH = HashingUtils::HashString("ANNOUNCEMENT_TIME_CHECK"); - static const int ANNOUNCEMENT_VARIABLE_TIME_LEFT_HASH = HashingUtils::HashString("ANNOUNCEMENT_VARIABLE_TIME_LEFT"); - static const int CHIME_HASH = HashingUtils::HashString("CHIME"); - static const int KNOCK_HASH = HashingUtils::HashString("KNOCK"); + static constexpr uint32_t ANNOUNCEMENT_TIME_CHECK_HASH = ConstExprHashingUtils::HashString("ANNOUNCEMENT_TIME_CHECK"); + static constexpr uint32_t ANNOUNCEMENT_VARIABLE_TIME_LEFT_HASH = ConstExprHashingUtils::HashString("ANNOUNCEMENT_VARIABLE_TIME_LEFT"); + static constexpr uint32_t CHIME_HASH = ConstExprHashingUtils::HashString("CHIME"); + static constexpr uint32_t KNOCK_HASH = ConstExprHashingUtils::HashString("KNOCK"); EndOfMeetingReminderType GetEndOfMeetingReminderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANNOUNCEMENT_TIME_CHECK_HASH) { return EndOfMeetingReminderType::ANNOUNCEMENT_TIME_CHECK; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnrollmentStatus.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnrollmentStatus.cpp index b228f1d55d9..0e5922fe12b 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnrollmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/EnrollmentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EnrollmentStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int REGISTERED_HASH = HashingUtils::HashString("REGISTERED"); - static const int DISASSOCIATING_HASH = HashingUtils::HashString("DISASSOCIATING"); - static const int DEREGISTERING_HASH = HashingUtils::HashString("DEREGISTERING"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t REGISTERED_HASH = ConstExprHashingUtils::HashString("REGISTERED"); + static constexpr uint32_t DISASSOCIATING_HASH = ConstExprHashingUtils::HashString("DISASSOCIATING"); + static constexpr uint32_t DEREGISTERING_HASH = ConstExprHashingUtils::HashString("DEREGISTERING"); EnrollmentStatus GetEnrollmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return EnrollmentStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Feature.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Feature.cpp index f312008b72f..7f3b598838e 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Feature.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Feature.cpp @@ -20,19 +20,19 @@ namespace Aws namespace FeatureMapper { - static const int BLUETOOTH_HASH = HashingUtils::HashString("BLUETOOTH"); - static const int VOLUME_HASH = HashingUtils::HashString("VOLUME"); - static const int NOTIFICATIONS_HASH = HashingUtils::HashString("NOTIFICATIONS"); - static const int LISTS_HASH = HashingUtils::HashString("LISTS"); - static const int SKILLS_HASH = HashingUtils::HashString("SKILLS"); - static const int NETWORK_PROFILE_HASH = HashingUtils::HashString("NETWORK_PROFILE"); - static const int SETTINGS_HASH = HashingUtils::HashString("SETTINGS"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t BLUETOOTH_HASH = ConstExprHashingUtils::HashString("BLUETOOTH"); + static constexpr uint32_t VOLUME_HASH = ConstExprHashingUtils::HashString("VOLUME"); + static constexpr uint32_t NOTIFICATIONS_HASH = ConstExprHashingUtils::HashString("NOTIFICATIONS"); + static constexpr uint32_t LISTS_HASH = ConstExprHashingUtils::HashString("LISTS"); + static constexpr uint32_t SKILLS_HASH = ConstExprHashingUtils::HashString("SKILLS"); + static constexpr uint32_t NETWORK_PROFILE_HASH = ConstExprHashingUtils::HashString("NETWORK_PROFILE"); + static constexpr uint32_t SETTINGS_HASH = ConstExprHashingUtils::HashString("SETTINGS"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); Feature GetFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLUETOOTH_HASH) { return Feature::BLUETOOTH; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Locale.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Locale.cpp index 6b184ba9907..a3a98c9183e 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Locale.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/Locale.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LocaleMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); Locale GetLocaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return Locale::en_US; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkEapMethod.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkEapMethod.cpp index 54b8b79ae35..4d704afee3c 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkEapMethod.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkEapMethod.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NetworkEapMethodMapper { - static const int EAP_TLS_HASH = HashingUtils::HashString("EAP_TLS"); + static constexpr uint32_t EAP_TLS_HASH = ConstExprHashingUtils::HashString("EAP_TLS"); NetworkEapMethod GetNetworkEapMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EAP_TLS_HASH) { return NetworkEapMethod::EAP_TLS; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkSecurityType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkSecurityType.cpp index 336e03b8fdb..c2587095301 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkSecurityType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/NetworkSecurityType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NetworkSecurityTypeMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int WEP_HASH = HashingUtils::HashString("WEP"); - static const int WPA_PSK_HASH = HashingUtils::HashString("WPA_PSK"); - static const int WPA2_PSK_HASH = HashingUtils::HashString("WPA2_PSK"); - static const int WPA2_ENTERPRISE_HASH = HashingUtils::HashString("WPA2_ENTERPRISE"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t WEP_HASH = ConstExprHashingUtils::HashString("WEP"); + static constexpr uint32_t WPA_PSK_HASH = ConstExprHashingUtils::HashString("WPA_PSK"); + static constexpr uint32_t WPA2_PSK_HASH = ConstExprHashingUtils::HashString("WPA2_PSK"); + static constexpr uint32_t WPA2_ENTERPRISE_HASH = ConstExprHashingUtils::HashString("WPA2_ENTERPRISE"); NetworkSecurityType GetNetworkSecurityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return NetworkSecurityType::OPEN; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/PhoneNumberType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/PhoneNumberType.cpp index 6d576a0cdec..e3a239ca0f7 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/PhoneNumberType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/PhoneNumberType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PhoneNumberTypeMapper { - static const int MOBILE_HASH = HashingUtils::HashString("MOBILE"); - static const int WORK_HASH = HashingUtils::HashString("WORK"); - static const int HOME_HASH = HashingUtils::HashString("HOME"); + static constexpr uint32_t MOBILE_HASH = ConstExprHashingUtils::HashString("MOBILE"); + static constexpr uint32_t WORK_HASH = ConstExprHashingUtils::HashString("WORK"); + static constexpr uint32_t HOME_HASH = ConstExprHashingUtils::HashString("HOME"); PhoneNumberType GetPhoneNumberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MOBILE_HASH) { return PhoneNumberType::MOBILE; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/RequirePin.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/RequirePin.cpp index 1d76f94105b..8981f071dc7 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/RequirePin.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/RequirePin.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequirePinMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t OPTIONAL_HASH = ConstExprHashingUtils::HashString("OPTIONAL"); RequirePin GetRequirePinForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return RequirePin::YES; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SipType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SipType.cpp index 67f77f6a25e..5fdb16b32db 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SipType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SipType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SipTypeMapper { - static const int WORK_HASH = HashingUtils::HashString("WORK"); + static constexpr uint32_t WORK_HASH = ConstExprHashingUtils::HashString("WORK"); SipType GetSipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORK_HASH) { return SipType::WORK; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillType.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillType.cpp index ab52c313d0f..5388e9b50d7 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillType.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SkillTypeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); SkillType GetSkillTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return SkillType::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillTypeFilter.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillTypeFilter.cpp index 66d25c95663..93eade1e968 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SkillTypeFilter.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SkillTypeFilterMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); SkillTypeFilter GetSkillTypeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return SkillTypeFilter::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SortValue.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SortValue.cpp index 5e430c604e5..25fb8c8e1f1 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SortValue.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/SortValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortValueMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortValue GetSortValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortValue::ASC; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/TemperatureUnit.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/TemperatureUnit.cpp index 01f49a7600a..b3248f20b96 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/TemperatureUnit.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/TemperatureUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemperatureUnitMapper { - static const int FAHRENHEIT_HASH = HashingUtils::HashString("FAHRENHEIT"); - static const int CELSIUS_HASH = HashingUtils::HashString("CELSIUS"); + static constexpr uint32_t FAHRENHEIT_HASH = ConstExprHashingUtils::HashString("FAHRENHEIT"); + static constexpr uint32_t CELSIUS_HASH = ConstExprHashingUtils::HashString("CELSIUS"); TemperatureUnit GetTemperatureUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAHRENHEIT_HASH) { return TemperatureUnit::FAHRENHEIT; diff --git a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/WakeWord.cpp b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/WakeWord.cpp index 5a2e2b25af4..f273ef4a287 100644 --- a/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/WakeWord.cpp +++ b/generated/src/aws-cpp-sdk-alexaforbusiness/source/model/WakeWord.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WakeWordMapper { - static const int ALEXA_HASH = HashingUtils::HashString("ALEXA"); - static const int AMAZON_HASH = HashingUtils::HashString("AMAZON"); - static const int ECHO_HASH = HashingUtils::HashString("ECHO"); - static const int COMPUTER_HASH = HashingUtils::HashString("COMPUTER"); + static constexpr uint32_t ALEXA_HASH = ConstExprHashingUtils::HashString("ALEXA"); + static constexpr uint32_t AMAZON_HASH = ConstExprHashingUtils::HashString("AMAZON"); + static constexpr uint32_t ECHO_HASH = ConstExprHashingUtils::HashString("ECHO"); + static constexpr uint32_t COMPUTER_HASH = ConstExprHashingUtils::HashString("COMPUTER"); WakeWord GetWakeWordForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALEXA_HASH) { return WakeWord::ALEXA; diff --git a/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp b/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp index ed430fa2898..223a4c5b6d6 100644 --- a/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_PROMETHEUSSERVICE_API ValidationException PrometheusServiceError: namespace PrometheusServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-amp/source/model/AlertManagerDefinitionStatusCode.cpp b/generated/src/aws-cpp-sdk-amp/source/model/AlertManagerDefinitionStatusCode.cpp index 7ae964f548f..d1ff4d49a10 100644 --- a/generated/src/aws-cpp-sdk-amp/source/model/AlertManagerDefinitionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/model/AlertManagerDefinitionStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AlertManagerDefinitionStatusCodeMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); AlertManagerDefinitionStatusCode GetAlertManagerDefinitionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AlertManagerDefinitionStatusCode::CREATING; diff --git a/generated/src/aws-cpp-sdk-amp/source/model/LoggingConfigurationStatusCode.cpp b/generated/src/aws-cpp-sdk-amp/source/model/LoggingConfigurationStatusCode.cpp index 6adbf5fc242..e7dfae35ae8 100644 --- a/generated/src/aws-cpp-sdk-amp/source/model/LoggingConfigurationStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/model/LoggingConfigurationStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LoggingConfigurationStatusCodeMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); LoggingConfigurationStatusCode GetLoggingConfigurationStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return LoggingConfigurationStatusCode::CREATING; diff --git a/generated/src/aws-cpp-sdk-amp/source/model/RuleGroupsNamespaceStatusCode.cpp b/generated/src/aws-cpp-sdk-amp/source/model/RuleGroupsNamespaceStatusCode.cpp index 86983e7b2fd..4cbd437d7c1 100644 --- a/generated/src/aws-cpp-sdk-amp/source/model/RuleGroupsNamespaceStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/model/RuleGroupsNamespaceStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RuleGroupsNamespaceStatusCodeMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); RuleGroupsNamespaceStatusCode GetRuleGroupsNamespaceStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return RuleGroupsNamespaceStatusCode::CREATING; diff --git a/generated/src/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp index 391b6a2b84a..06e2c1f739c 100644 --- a/generated/src/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp b/generated/src/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp index ae060cf0a67..6d1d289acd3 100644 --- a/generated/src/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkspaceStatusCodeMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); WorkspaceStatusCode GetWorkspaceStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return WorkspaceStatusCode::CREATING; diff --git a/generated/src/aws-cpp-sdk-amplify/source/AmplifyErrors.cpp b/generated/src/aws-cpp-sdk-amplify/source/AmplifyErrors.cpp index 97b2b603a80..ceaab4f8a54 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/AmplifyErrors.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/AmplifyErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_AMPLIFY_API ResourceNotFoundException AmplifyError::GetModeledErr namespace AmplifyErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int DEPENDENT_SERVICE_FAILURE_HASH = HashingUtils::HashString("DependentServiceFailureException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t DEPENDENT_SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("DependentServiceFailureException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-amplify/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-amplify/source/model/DomainStatus.cpp index e21ec7ec454..ccbc1069362 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/model/DomainStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DomainStatusMapper { - static const int PENDING_VERIFICATION_HASH = HashingUtils::HashString("PENDING_VERIFICATION"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_DEPLOYMENT_HASH = HashingUtils::HashString("PENDING_DEPLOYMENT"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int REQUESTING_CERTIFICATE_HASH = HashingUtils::HashString("REQUESTING_CERTIFICATE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PENDING_VERIFICATION"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("PENDING_DEPLOYMENT"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t REQUESTING_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("REQUESTING_CERTIFICATE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VERIFICATION_HASH) { return DomainStatus::PENDING_VERIFICATION; diff --git a/generated/src/aws-cpp-sdk-amplify/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-amplify/source/model/JobStatus.cpp index 55499a12e80..b247e573407 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/model/JobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEED_HASH = HashingUtils::HashString("SUCCEED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEED_HASH = ConstExprHashingUtils::HashString("SUCCEED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return JobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-amplify/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-amplify/source/model/JobType.cpp index 598357b3435..8a27a91147b 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/model/JobType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobTypeMapper { - static const int RELEASE_HASH = HashingUtils::HashString("RELEASE"); - static const int RETRY_HASH = HashingUtils::HashString("RETRY"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); - static const int WEB_HOOK_HASH = HashingUtils::HashString("WEB_HOOK"); + static constexpr uint32_t RELEASE_HASH = ConstExprHashingUtils::HashString("RELEASE"); + static constexpr uint32_t RETRY_HASH = ConstExprHashingUtils::HashString("RETRY"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); + static constexpr uint32_t WEB_HOOK_HASH = ConstExprHashingUtils::HashString("WEB_HOOK"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RELEASE_HASH) { return JobType::RELEASE; diff --git a/generated/src/aws-cpp-sdk-amplify/source/model/Platform.cpp b/generated/src/aws-cpp-sdk-amplify/source/model/Platform.cpp index f6cfba7a3a4..c1e5486511c 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/model/Platform.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/model/Platform.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlatformMapper { - static const int WEB_HASH = HashingUtils::HashString("WEB"); - static const int WEB_DYNAMIC_HASH = HashingUtils::HashString("WEB_DYNAMIC"); - static const int WEB_COMPUTE_HASH = HashingUtils::HashString("WEB_COMPUTE"); + static constexpr uint32_t WEB_HASH = ConstExprHashingUtils::HashString("WEB"); + static constexpr uint32_t WEB_DYNAMIC_HASH = ConstExprHashingUtils::HashString("WEB_DYNAMIC"); + static constexpr uint32_t WEB_COMPUTE_HASH = ConstExprHashingUtils::HashString("WEB_COMPUTE"); Platform GetPlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEB_HASH) { return Platform::WEB; diff --git a/generated/src/aws-cpp-sdk-amplify/source/model/RepositoryCloneMethod.cpp b/generated/src/aws-cpp-sdk-amplify/source/model/RepositoryCloneMethod.cpp index 31782a1d25e..1a0ba10cfd7 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/model/RepositoryCloneMethod.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/model/RepositoryCloneMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RepositoryCloneMethodMapper { - static const int SSH_HASH = HashingUtils::HashString("SSH"); - static const int TOKEN_HASH = HashingUtils::HashString("TOKEN"); - static const int SIGV4_HASH = HashingUtils::HashString("SIGV4"); + static constexpr uint32_t SSH_HASH = ConstExprHashingUtils::HashString("SSH"); + static constexpr uint32_t TOKEN_HASH = ConstExprHashingUtils::HashString("TOKEN"); + static constexpr uint32_t SIGV4_HASH = ConstExprHashingUtils::HashString("SIGV4"); RepositoryCloneMethod GetRepositoryCloneMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSH_HASH) { return RepositoryCloneMethod::SSH; diff --git a/generated/src/aws-cpp-sdk-amplify/source/model/Stage.cpp b/generated/src/aws-cpp-sdk-amplify/source/model/Stage.cpp index 9cb31214978..45bd2645fb1 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/model/Stage.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/model/Stage.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StageMapper { - static const int PRODUCTION_HASH = HashingUtils::HashString("PRODUCTION"); - static const int BETA_HASH = HashingUtils::HashString("BETA"); - static const int DEVELOPMENT_HASH = HashingUtils::HashString("DEVELOPMENT"); - static const int EXPERIMENTAL_HASH = HashingUtils::HashString("EXPERIMENTAL"); - static const int PULL_REQUEST_HASH = HashingUtils::HashString("PULL_REQUEST"); + static constexpr uint32_t PRODUCTION_HASH = ConstExprHashingUtils::HashString("PRODUCTION"); + static constexpr uint32_t BETA_HASH = ConstExprHashingUtils::HashString("BETA"); + static constexpr uint32_t DEVELOPMENT_HASH = ConstExprHashingUtils::HashString("DEVELOPMENT"); + static constexpr uint32_t EXPERIMENTAL_HASH = ConstExprHashingUtils::HashString("EXPERIMENTAL"); + static constexpr uint32_t PULL_REQUEST_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST"); Stage GetStageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCTION_HASH) { return Stage::PRODUCTION; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendErrors.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendErrors.cpp index 2fe2caa64f6..5b9e60ba69f 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendErrors.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendErrors.cpp @@ -33,15 +33,15 @@ template<> AWS_AMPLIFYBACKEND_API TooManyRequestsException AmplifyBackendError:: namespace AmplifyBackendErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int GATEWAY_TIMEOUT_HASH = HashingUtils::HashString("GatewayTimeoutException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t GATEWAY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("GatewayTimeoutException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/AdditionalConstraintsElement.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/AdditionalConstraintsElement.cpp index 004eacfc640..e43a6072975 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/AdditionalConstraintsElement.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/AdditionalConstraintsElement.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AdditionalConstraintsElementMapper { - static const int REQUIRE_DIGIT_HASH = HashingUtils::HashString("REQUIRE_DIGIT"); - static const int REQUIRE_LOWERCASE_HASH = HashingUtils::HashString("REQUIRE_LOWERCASE"); - static const int REQUIRE_SYMBOL_HASH = HashingUtils::HashString("REQUIRE_SYMBOL"); - static const int REQUIRE_UPPERCASE_HASH = HashingUtils::HashString("REQUIRE_UPPERCASE"); + static constexpr uint32_t REQUIRE_DIGIT_HASH = ConstExprHashingUtils::HashString("REQUIRE_DIGIT"); + static constexpr uint32_t REQUIRE_LOWERCASE_HASH = ConstExprHashingUtils::HashString("REQUIRE_LOWERCASE"); + static constexpr uint32_t REQUIRE_SYMBOL_HASH = ConstExprHashingUtils::HashString("REQUIRE_SYMBOL"); + static constexpr uint32_t REQUIRE_UPPERCASE_HASH = ConstExprHashingUtils::HashString("REQUIRE_UPPERCASE"); AdditionalConstraintsElement GetAdditionalConstraintsElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUIRE_DIGIT_HASH) { return AdditionalConstraintsElement::REQUIRE_DIGIT; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthResources.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthResources.cpp index 1ef790ea7e8..3687f92084e 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthResources.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthResources.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthResourcesMapper { - static const int USER_POOL_ONLY_HASH = HashingUtils::HashString("USER_POOL_ONLY"); - static const int IDENTITY_POOL_AND_USER_POOL_HASH = HashingUtils::HashString("IDENTITY_POOL_AND_USER_POOL"); + static constexpr uint32_t USER_POOL_ONLY_HASH = ConstExprHashingUtils::HashString("USER_POOL_ONLY"); + static constexpr uint32_t IDENTITY_POOL_AND_USER_POOL_HASH = ConstExprHashingUtils::HashString("IDENTITY_POOL_AND_USER_POOL"); AuthResources GetAuthResourcesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_POOL_ONLY_HASH) { return AuthResources::USER_POOL_ONLY; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthenticatedElement.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthenticatedElement.cpp index 7556bfc4858..7c21b2a7110 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthenticatedElement.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/AuthenticatedElement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthenticatedElementMapper { - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int CREATE_AND_UPDATE_HASH = HashingUtils::HashString("CREATE_AND_UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t CREATE_AND_UPDATE_HASH = ConstExprHashingUtils::HashString("CREATE_AND_UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); AuthenticatedElement GetAuthenticatedElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_HASH) { return AuthenticatedElement::READ; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/DeliveryMethod.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/DeliveryMethod.cpp index e6e7d117bee..f522eccb100 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/DeliveryMethod.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/DeliveryMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeliveryMethodMapper { - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); DeliveryMethod GetDeliveryMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_HASH) { return DeliveryMethod::EMAIL; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/MFAMode.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/MFAMode.cpp index 981b60f08c7..5da2f5d7057 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/MFAMode.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/MFAMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MFAModeMapper { - static const int ON_HASH = HashingUtils::HashString("ON"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t OPTIONAL_HASH = ConstExprHashingUtils::HashString("OPTIONAL"); MFAMode GetMFAModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_HASH) { return MFAMode::ON; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/MfaTypesElement.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/MfaTypesElement.cpp index 10239080ea8..0efe6fc36e6 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/MfaTypesElement.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/MfaTypesElement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MfaTypesElementMapper { - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int TOTP_HASH = HashingUtils::HashString("TOTP"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t TOTP_HASH = ConstExprHashingUtils::HashString("TOTP"); MfaTypesElement GetMfaTypesElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMS_HASH) { return MfaTypesElement::SMS; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/Mode.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/Mode.cpp index 83ffbdc0013..3a98a3c15e3 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/Mode.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/Mode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ModeMapper { - static const int API_KEY_HASH = HashingUtils::HashString("API_KEY"); - static const int AWS_IAM_HASH = HashingUtils::HashString("AWS_IAM"); - static const int AMAZON_COGNITO_USER_POOLS_HASH = HashingUtils::HashString("AMAZON_COGNITO_USER_POOLS"); - static const int OPENID_CONNECT_HASH = HashingUtils::HashString("OPENID_CONNECT"); + static constexpr uint32_t API_KEY_HASH = ConstExprHashingUtils::HashString("API_KEY"); + static constexpr uint32_t AWS_IAM_HASH = ConstExprHashingUtils::HashString("AWS_IAM"); + static constexpr uint32_t AMAZON_COGNITO_USER_POOLS_HASH = ConstExprHashingUtils::HashString("AMAZON_COGNITO_USER_POOLS"); + static constexpr uint32_t OPENID_CONNECT_HASH = ConstExprHashingUtils::HashString("OPENID_CONNECT"); Mode GetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_KEY_HASH) { return Mode::API_KEY; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthGrantType.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthGrantType.cpp index 6dc750c503b..03fcbe68c99 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthGrantType.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthGrantType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OAuthGrantTypeMapper { - static const int CODE_HASH = HashingUtils::HashString("CODE"); - static const int IMPLICIT_HASH = HashingUtils::HashString("IMPLICIT"); + static constexpr uint32_t CODE_HASH = ConstExprHashingUtils::HashString("CODE"); + static constexpr uint32_t IMPLICIT_HASH = ConstExprHashingUtils::HashString("IMPLICIT"); OAuthGrantType GetOAuthGrantTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODE_HASH) { return OAuthGrantType::CODE; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthScopesElement.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthScopesElement.cpp index 88b4ee002e8..c55115ae802 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthScopesElement.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/OAuthScopesElement.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OAuthScopesElementMapper { - static const int PHONE_HASH = HashingUtils::HashString("PHONE"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int OPENID_HASH = HashingUtils::HashString("OPENID"); - static const int PROFILE_HASH = HashingUtils::HashString("PROFILE"); - static const int AWS_COGNITO_SIGNIN_USER_ADMIN_HASH = HashingUtils::HashString("AWS_COGNITO_SIGNIN_USER_ADMIN"); + static constexpr uint32_t PHONE_HASH = ConstExprHashingUtils::HashString("PHONE"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t OPENID_HASH = ConstExprHashingUtils::HashString("OPENID"); + static constexpr uint32_t PROFILE_HASH = ConstExprHashingUtils::HashString("PROFILE"); + static constexpr uint32_t AWS_COGNITO_SIGNIN_USER_ADMIN_HASH = ConstExprHashingUtils::HashString("AWS_COGNITO_SIGNIN_USER_ADMIN"); OAuthScopesElement GetOAuthScopesElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHONE_HASH) { return OAuthScopesElement::PHONE; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/RequiredSignUpAttributesElement.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/RequiredSignUpAttributesElement.cpp index 670d0a3cbd8..b433f992495 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/RequiredSignUpAttributesElement.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/RequiredSignUpAttributesElement.cpp @@ -20,28 +20,28 @@ namespace Aws namespace RequiredSignUpAttributesElementMapper { - static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS"); - static const int BIRTHDATE_HASH = HashingUtils::HashString("BIRTHDATE"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int FAMILY_NAME_HASH = HashingUtils::HashString("FAMILY_NAME"); - static const int GENDER_HASH = HashingUtils::HashString("GENDER"); - static const int GIVEN_NAME_HASH = HashingUtils::HashString("GIVEN_NAME"); - static const int LOCALE_HASH = HashingUtils::HashString("LOCALE"); - static const int MIDDLE_NAME_HASH = HashingUtils::HashString("MIDDLE_NAME"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int NICKNAME_HASH = HashingUtils::HashString("NICKNAME"); - static const int PHONE_NUMBER_HASH = HashingUtils::HashString("PHONE_NUMBER"); - static const int PICTURE_HASH = HashingUtils::HashString("PICTURE"); - static const int PREFERRED_USERNAME_HASH = HashingUtils::HashString("PREFERRED_USERNAME"); - static const int PROFILE_HASH = HashingUtils::HashString("PROFILE"); - static const int UPDATED_AT_HASH = HashingUtils::HashString("UPDATED_AT"); - static const int WEBSITE_HASH = HashingUtils::HashString("WEBSITE"); - static const int ZONE_INFO_HASH = HashingUtils::HashString("ZONE_INFO"); + static constexpr uint32_t ADDRESS_HASH = ConstExprHashingUtils::HashString("ADDRESS"); + static constexpr uint32_t BIRTHDATE_HASH = ConstExprHashingUtils::HashString("BIRTHDATE"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t FAMILY_NAME_HASH = ConstExprHashingUtils::HashString("FAMILY_NAME"); + static constexpr uint32_t GENDER_HASH = ConstExprHashingUtils::HashString("GENDER"); + static constexpr uint32_t GIVEN_NAME_HASH = ConstExprHashingUtils::HashString("GIVEN_NAME"); + static constexpr uint32_t LOCALE_HASH = ConstExprHashingUtils::HashString("LOCALE"); + static constexpr uint32_t MIDDLE_NAME_HASH = ConstExprHashingUtils::HashString("MIDDLE_NAME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t NICKNAME_HASH = ConstExprHashingUtils::HashString("NICKNAME"); + static constexpr uint32_t PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER"); + static constexpr uint32_t PICTURE_HASH = ConstExprHashingUtils::HashString("PICTURE"); + static constexpr uint32_t PREFERRED_USERNAME_HASH = ConstExprHashingUtils::HashString("PREFERRED_USERNAME"); + static constexpr uint32_t PROFILE_HASH = ConstExprHashingUtils::HashString("PROFILE"); + static constexpr uint32_t UPDATED_AT_HASH = ConstExprHashingUtils::HashString("UPDATED_AT"); + static constexpr uint32_t WEBSITE_HASH = ConstExprHashingUtils::HashString("WEBSITE"); + static constexpr uint32_t ZONE_INFO_HASH = ConstExprHashingUtils::HashString("ZONE_INFO"); RequiredSignUpAttributesElement GetRequiredSignUpAttributesElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADDRESS_HASH) { return RequiredSignUpAttributesElement::ADDRESS; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/ResolutionStrategy.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/ResolutionStrategy.cpp index cd7d0b850c7..e5d32be1271 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/ResolutionStrategy.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/ResolutionStrategy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResolutionStrategyMapper { - static const int OPTIMISTIC_CONCURRENCY_HASH = HashingUtils::HashString("OPTIMISTIC_CONCURRENCY"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int AUTOMERGE_HASH = HashingUtils::HashString("AUTOMERGE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t OPTIMISTIC_CONCURRENCY_HASH = ConstExprHashingUtils::HashString("OPTIMISTIC_CONCURRENCY"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t AUTOMERGE_HASH = ConstExprHashingUtils::HashString("AUTOMERGE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ResolutionStrategy GetResolutionStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPTIMISTIC_CONCURRENCY_HASH) { return ResolutionStrategy::OPTIMISTIC_CONCURRENCY; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/Service.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/Service.cpp index b0e022a85c3..b1e4e58981f 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/Service.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/Service.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceMapper { - static const int COGNITO_HASH = HashingUtils::HashString("COGNITO"); + static constexpr uint32_t COGNITO_HASH = ConstExprHashingUtils::HashString("COGNITO"); Service GetServiceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COGNITO_HASH) { return Service::COGNITO; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/ServiceName.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/ServiceName.cpp index ee0c408a436..951e6b98282 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/ServiceName.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/ServiceName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceNameMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); ServiceName GetServiceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return ServiceName::S3; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/SignInMethod.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/SignInMethod.cpp index 02898d90309..7af5bdb75b6 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/SignInMethod.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/SignInMethod.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SignInMethodMapper { - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int EMAIL_AND_PHONE_NUMBER_HASH = HashingUtils::HashString("EMAIL_AND_PHONE_NUMBER"); - static const int PHONE_NUMBER_HASH = HashingUtils::HashString("PHONE_NUMBER"); - static const int USERNAME_HASH = HashingUtils::HashString("USERNAME"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t EMAIL_AND_PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("EMAIL_AND_PHONE_NUMBER"); + static constexpr uint32_t PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER"); + static constexpr uint32_t USERNAME_HASH = ConstExprHashingUtils::HashString("USERNAME"); SignInMethod GetSignInMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_HASH) { return SignInMethod::EMAIL; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/Status.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/Status.cpp index eef0f401214..1f55cd214d9 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/Status.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusMapper { - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); - static const int STALE_HASH = HashingUtils::HashString("STALE"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); + static constexpr uint32_t STALE_HASH = ConstExprHashingUtils::HashString("STALE"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LATEST_HASH) { return Status::LATEST; diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/model/UnAuthenticatedElement.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/model/UnAuthenticatedElement.cpp index 86c66b6c15a..422385bfd71 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/model/UnAuthenticatedElement.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/model/UnAuthenticatedElement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UnAuthenticatedElementMapper { - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int CREATE_AND_UPDATE_HASH = HashingUtils::HashString("CREATE_AND_UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t CREATE_AND_UPDATE_HASH = ConstExprHashingUtils::HashString("CREATE_AND_UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); UnAuthenticatedElement GetUnAuthenticatedElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_HASH) { return UnAuthenticatedElement::READ; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderErrors.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderErrors.cpp index 9e3f70d190c..ac5404d105b 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderErrors.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderErrors.cpp @@ -18,16 +18,16 @@ namespace AmplifyUIBuilder namespace AmplifyUIBuilderErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenGenericDataFieldDataType.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenGenericDataFieldDataType.cpp index 93ef571f21e..d1aa3a9157f 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenGenericDataFieldDataType.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenGenericDataFieldDataType.cpp @@ -20,28 +20,28 @@ namespace Aws namespace CodegenGenericDataFieldDataTypeMapper { - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int String_HASH = HashingUtils::HashString("String"); - static const int Int_HASH = HashingUtils::HashString("Int"); - static const int Float_HASH = HashingUtils::HashString("Float"); - static const int AWSDate_HASH = HashingUtils::HashString("AWSDate"); - static const int AWSTime_HASH = HashingUtils::HashString("AWSTime"); - static const int AWSDateTime_HASH = HashingUtils::HashString("AWSDateTime"); - static const int AWSTimestamp_HASH = HashingUtils::HashString("AWSTimestamp"); - static const int AWSEmail_HASH = HashingUtils::HashString("AWSEmail"); - static const int AWSURL_HASH = HashingUtils::HashString("AWSURL"); - static const int AWSIPAddress_HASH = HashingUtils::HashString("AWSIPAddress"); - static const int Boolean_HASH = HashingUtils::HashString("Boolean"); - static const int AWSJSON_HASH = HashingUtils::HashString("AWSJSON"); - static const int AWSPhone_HASH = HashingUtils::HashString("AWSPhone"); - static const int Enum_HASH = HashingUtils::HashString("Enum"); - static const int Model_HASH = HashingUtils::HashString("Model"); - static const int NonModel_HASH = HashingUtils::HashString("NonModel"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t Int_HASH = ConstExprHashingUtils::HashString("Int"); + static constexpr uint32_t Float_HASH = ConstExprHashingUtils::HashString("Float"); + static constexpr uint32_t AWSDate_HASH = ConstExprHashingUtils::HashString("AWSDate"); + static constexpr uint32_t AWSTime_HASH = ConstExprHashingUtils::HashString("AWSTime"); + static constexpr uint32_t AWSDateTime_HASH = ConstExprHashingUtils::HashString("AWSDateTime"); + static constexpr uint32_t AWSTimestamp_HASH = ConstExprHashingUtils::HashString("AWSTimestamp"); + static constexpr uint32_t AWSEmail_HASH = ConstExprHashingUtils::HashString("AWSEmail"); + static constexpr uint32_t AWSURL_HASH = ConstExprHashingUtils::HashString("AWSURL"); + static constexpr uint32_t AWSIPAddress_HASH = ConstExprHashingUtils::HashString("AWSIPAddress"); + static constexpr uint32_t Boolean_HASH = ConstExprHashingUtils::HashString("Boolean"); + static constexpr uint32_t AWSJSON_HASH = ConstExprHashingUtils::HashString("AWSJSON"); + static constexpr uint32_t AWSPhone_HASH = ConstExprHashingUtils::HashString("AWSPhone"); + static constexpr uint32_t Enum_HASH = ConstExprHashingUtils::HashString("Enum"); + static constexpr uint32_t Model_HASH = ConstExprHashingUtils::HashString("Model"); + static constexpr uint32_t NonModel_HASH = ConstExprHashingUtils::HashString("NonModel"); CodegenGenericDataFieldDataType GetCodegenGenericDataFieldDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ID_HASH) { return CodegenGenericDataFieldDataType::ID; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobGenericDataSourceType.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobGenericDataSourceType.cpp index 891f064235b..0688137268b 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobGenericDataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobGenericDataSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CodegenJobGenericDataSourceTypeMapper { - static const int DataStore_HASH = HashingUtils::HashString("DataStore"); + static constexpr uint32_t DataStore_HASH = ConstExprHashingUtils::HashString("DataStore"); CodegenJobGenericDataSourceType GetCodegenJobGenericDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DataStore_HASH) { return CodegenJobGenericDataSourceType::DataStore; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobStatus.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobStatus.cpp index 207357f8b09..10486e172a3 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/CodegenJobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CodegenJobStatusMapper { - static const int in_progress_HASH = HashingUtils::HashString("in_progress"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int succeeded_HASH = HashingUtils::HashString("succeeded"); + static constexpr uint32_t in_progress_HASH = ConstExprHashingUtils::HashString("in_progress"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t succeeded_HASH = ConstExprHashingUtils::HashString("succeeded"); CodegenJobStatus GetCodegenJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == in_progress_HASH) { return CodegenJobStatus::in_progress; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FixedPosition.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FixedPosition.cpp index fcc132abb9b..15478a20940 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FixedPosition.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FixedPosition.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FixedPositionMapper { - static const int first_HASH = HashingUtils::HashString("first"); + static constexpr uint32_t first_HASH = ConstExprHashingUtils::HashString("first"); FixedPosition GetFixedPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == first_HASH) { return FixedPosition::first; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormActionType.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormActionType.cpp index 87fb09207fa..921bef46815 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormActionType.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormActionTypeMapper { - static const int create_HASH = HashingUtils::HashString("create"); - static const int update_HASH = HashingUtils::HashString("update"); + static constexpr uint32_t create_HASH = ConstExprHashingUtils::HashString("create"); + static constexpr uint32_t update_HASH = ConstExprHashingUtils::HashString("update"); FormActionType GetFormActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_HASH) { return FormActionType::create; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormButtonsPosition.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormButtonsPosition.cpp index 4520b587a45..617fcb1cc4b 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormButtonsPosition.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormButtonsPosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FormButtonsPositionMapper { - static const int top_HASH = HashingUtils::HashString("top"); - static const int bottom_HASH = HashingUtils::HashString("bottom"); - static const int top_and_bottom_HASH = HashingUtils::HashString("top_and_bottom"); + static constexpr uint32_t top_HASH = ConstExprHashingUtils::HashString("top"); + static constexpr uint32_t bottom_HASH = ConstExprHashingUtils::HashString("bottom"); + static constexpr uint32_t top_and_bottom_HASH = ConstExprHashingUtils::HashString("top_and_bottom"); FormButtonsPosition GetFormButtonsPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == top_HASH) { return FormButtonsPosition::top; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormDataSourceType.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormDataSourceType.cpp index 7860fa7773a..d4eff7c4376 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormDataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/FormDataSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormDataSourceTypeMapper { - static const int DataStore_HASH = HashingUtils::HashString("DataStore"); - static const int Custom_HASH = HashingUtils::HashString("Custom"); + static constexpr uint32_t DataStore_HASH = ConstExprHashingUtils::HashString("DataStore"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); FormDataSourceType GetFormDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DataStore_HASH) { return FormDataSourceType::DataStore; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/GenericDataRelationshipType.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/GenericDataRelationshipType.cpp index d4daa16fdd3..8484b0a0a44 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/GenericDataRelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/GenericDataRelationshipType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GenericDataRelationshipTypeMapper { - static const int HAS_MANY_HASH = HashingUtils::HashString("HAS_MANY"); - static const int HAS_ONE_HASH = HashingUtils::HashString("HAS_ONE"); - static const int BELONGS_TO_HASH = HashingUtils::HashString("BELONGS_TO"); + static constexpr uint32_t HAS_MANY_HASH = ConstExprHashingUtils::HashString("HAS_MANY"); + static constexpr uint32_t HAS_ONE_HASH = ConstExprHashingUtils::HashString("HAS_ONE"); + static constexpr uint32_t BELONGS_TO_HASH = ConstExprHashingUtils::HashString("BELONGS_TO"); GenericDataRelationshipType GetGenericDataRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HAS_MANY_HASH) { return GenericDataRelationshipType::HAS_MANY; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSModule.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSModule.cpp index b319f76dfe2..336365e714e 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSModule.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSModule.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JSModuleMapper { - static const int es2020_HASH = HashingUtils::HashString("es2020"); - static const int esnext_HASH = HashingUtils::HashString("esnext"); + static constexpr uint32_t es2020_HASH = ConstExprHashingUtils::HashString("es2020"); + static constexpr uint32_t esnext_HASH = ConstExprHashingUtils::HashString("esnext"); JSModule GetJSModuleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == es2020_HASH) { return JSModule::es2020; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSScript.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSScript.cpp index d4f76f19a39..a3963d963ae 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSScript.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSScript.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JSScriptMapper { - static const int jsx_HASH = HashingUtils::HashString("jsx"); - static const int tsx_HASH = HashingUtils::HashString("tsx"); - static const int js_HASH = HashingUtils::HashString("js"); + static constexpr uint32_t jsx_HASH = ConstExprHashingUtils::HashString("jsx"); + static constexpr uint32_t tsx_HASH = ConstExprHashingUtils::HashString("tsx"); + static constexpr uint32_t js_HASH = ConstExprHashingUtils::HashString("js"); JSScript GetJSScriptForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == jsx_HASH) { return JSScript::jsx; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSTarget.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSTarget.cpp index f480b444a2f..a586f4b0c68 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSTarget.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/JSTarget.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JSTargetMapper { - static const int es2015_HASH = HashingUtils::HashString("es2015"); - static const int es2020_HASH = HashingUtils::HashString("es2020"); + static constexpr uint32_t es2015_HASH = ConstExprHashingUtils::HashString("es2015"); + static constexpr uint32_t es2020_HASH = ConstExprHashingUtils::HashString("es2020"); JSTarget GetJSTargetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == es2015_HASH) { return JSTarget::es2015; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/LabelDecorator.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/LabelDecorator.cpp index 26b91b594be..bd633f975f8 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/LabelDecorator.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/LabelDecorator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LabelDecoratorMapper { - static const int required_HASH = HashingUtils::HashString("required"); - static const int optional_HASH = HashingUtils::HashString("optional"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); + static constexpr uint32_t optional_HASH = ConstExprHashingUtils::HashString("optional"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); LabelDecorator GetLabelDecoratorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == required_HASH) { return LabelDecorator::required; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/SortDirection.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/SortDirection.cpp index 6ccd59039ec..7df182eaa93 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/SortDirection.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/SortDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortDirectionMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortDirection GetSortDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortDirection::ASC; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/StorageAccessLevel.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/StorageAccessLevel.cpp index c5525de6ee7..c32af20a352 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/StorageAccessLevel.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/StorageAccessLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StorageAccessLevelMapper { - static const int public__HASH = HashingUtils::HashString("public"); - static const int protected__HASH = HashingUtils::HashString("protected"); - static const int private__HASH = HashingUtils::HashString("private"); + static constexpr uint32_t public__HASH = ConstExprHashingUtils::HashString("public"); + static constexpr uint32_t protected__HASH = ConstExprHashingUtils::HashString("protected"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); StorageAccessLevel GetStorageAccessLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == public__HASH) { return StorageAccessLevel::public_; diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/TokenProviders.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/TokenProviders.cpp index 4c994ac6d1e..b76fbce5e34 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/TokenProviders.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/model/TokenProviders.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TokenProvidersMapper { - static const int figma_HASH = HashingUtils::HashString("figma"); + static constexpr uint32_t figma_HASH = ConstExprHashingUtils::HashString("figma"); TokenProviders GetTokenProvidersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == figma_HASH) { return TokenProviders::figma; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayErrors.cpp b/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayErrors.cpp index 01e2b82a925..ce29c4444ba 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayErrors.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayErrors.cpp @@ -40,17 +40,17 @@ template<> AWS_APIGATEWAY_API TooManyRequestsException APIGatewayError::GetModel namespace APIGatewayErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeySourceType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeySourceType.cpp index 500656e96f5..50c5ec8c5c1 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeySourceType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeySourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApiKeySourceTypeMapper { - static const int HEADER_HASH = HashingUtils::HashString("HEADER"); - static const int AUTHORIZER_HASH = HashingUtils::HashString("AUTHORIZER"); + static constexpr uint32_t HEADER_HASH = ConstExprHashingUtils::HashString("HEADER"); + static constexpr uint32_t AUTHORIZER_HASH = ConstExprHashingUtils::HashString("AUTHORIZER"); ApiKeySourceType GetApiKeySourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEADER_HASH) { return ApiKeySourceType::HEADER; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeysFormat.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeysFormat.cpp index e5af1eb2dd9..9767446b0e9 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeysFormat.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/ApiKeysFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ApiKeysFormatMapper { - static const int csv_HASH = HashingUtils::HashString("csv"); + static constexpr uint32_t csv_HASH = ConstExprHashingUtils::HashString("csv"); ApiKeysFormat GetApiKeysFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == csv_HASH) { return ApiKeysFormat::csv; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/AuthorizerType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/AuthorizerType.cpp index 253cc556575..9cf7d0f16df 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/AuthorizerType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/AuthorizerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthorizerTypeMapper { - static const int TOKEN_HASH = HashingUtils::HashString("TOKEN"); - static const int REQUEST_HASH = HashingUtils::HashString("REQUEST"); - static const int COGNITO_USER_POOLS_HASH = HashingUtils::HashString("COGNITO_USER_POOLS"); + static constexpr uint32_t TOKEN_HASH = ConstExprHashingUtils::HashString("TOKEN"); + static constexpr uint32_t REQUEST_HASH = ConstExprHashingUtils::HashString("REQUEST"); + static constexpr uint32_t COGNITO_USER_POOLS_HASH = ConstExprHashingUtils::HashString("COGNITO_USER_POOLS"); AuthorizerType GetAuthorizerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOKEN_HASH) { return AuthorizerType::TOKEN; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterSize.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterSize.cpp index efd49d4b2f4..6e0686f0618 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterSize.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterSize.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CacheClusterSizeMapper { - static const int _0_5_HASH = HashingUtils::HashString("0.5"); - static const int _1_6_HASH = HashingUtils::HashString("1.6"); - static const int _6_1_HASH = HashingUtils::HashString("6.1"); - static const int _13_5_HASH = HashingUtils::HashString("13.5"); - static const int _28_4_HASH = HashingUtils::HashString("28.4"); - static const int _58_2_HASH = HashingUtils::HashString("58.2"); - static const int _118_HASH = HashingUtils::HashString("118"); - static const int _237_HASH = HashingUtils::HashString("237"); + static constexpr uint32_t _0_5_HASH = ConstExprHashingUtils::HashString("0.5"); + static constexpr uint32_t _1_6_HASH = ConstExprHashingUtils::HashString("1.6"); + static constexpr uint32_t _6_1_HASH = ConstExprHashingUtils::HashString("6.1"); + static constexpr uint32_t _13_5_HASH = ConstExprHashingUtils::HashString("13.5"); + static constexpr uint32_t _28_4_HASH = ConstExprHashingUtils::HashString("28.4"); + static constexpr uint32_t _58_2_HASH = ConstExprHashingUtils::HashString("58.2"); + static constexpr uint32_t _118_HASH = ConstExprHashingUtils::HashString("118"); + static constexpr uint32_t _237_HASH = ConstExprHashingUtils::HashString("237"); CacheClusterSize GetCacheClusterSizeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == _0_5_HASH) { return CacheClusterSize::_0_5; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterStatus.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterStatus.cpp index 0a62f0e63dd..2fadaa694ec 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterStatus.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/CacheClusterStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CacheClusterStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); - static const int FLUSH_IN_PROGRESS_HASH = HashingUtils::HashString("FLUSH_IN_PROGRESS"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t FLUSH_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("FLUSH_IN_PROGRESS"); CacheClusterStatus GetCacheClusterStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return CacheClusterStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/ConnectionType.cpp index 0428820f5c8..dc0c8b3320e 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/ConnectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionTypeMapper { - static const int INTERNET_HASH = HashingUtils::HashString("INTERNET"); - static const int VPC_LINK_HASH = HashingUtils::HashString("VPC_LINK"); + static constexpr uint32_t INTERNET_HASH = ConstExprHashingUtils::HashString("INTERNET"); + static constexpr uint32_t VPC_LINK_HASH = ConstExprHashingUtils::HashString("VPC_LINK"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNET_HASH) { return ConnectionType::INTERNET; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/ContentHandlingStrategy.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/ContentHandlingStrategy.cpp index 839b07f3dc2..dc92d34f0fe 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/ContentHandlingStrategy.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/ContentHandlingStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentHandlingStrategyMapper { - static const int CONVERT_TO_BINARY_HASH = HashingUtils::HashString("CONVERT_TO_BINARY"); - static const int CONVERT_TO_TEXT_HASH = HashingUtils::HashString("CONVERT_TO_TEXT"); + static constexpr uint32_t CONVERT_TO_BINARY_HASH = ConstExprHashingUtils::HashString("CONVERT_TO_BINARY"); + static constexpr uint32_t CONVERT_TO_TEXT_HASH = ConstExprHashingUtils::HashString("CONVERT_TO_TEXT"); ContentHandlingStrategy GetContentHandlingStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONVERT_TO_BINARY_HASH) { return ContentHandlingStrategy::CONVERT_TO_BINARY; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/DocumentationPartType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/DocumentationPartType.cpp index ccbba50fe1e..eb0dff16191 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/DocumentationPartType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/DocumentationPartType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace DocumentationPartTypeMapper { - static const int API_HASH = HashingUtils::HashString("API"); - static const int AUTHORIZER_HASH = HashingUtils::HashString("AUTHORIZER"); - static const int MODEL_HASH = HashingUtils::HashString("MODEL"); - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int METHOD_HASH = HashingUtils::HashString("METHOD"); - static const int PATH_PARAMETER_HASH = HashingUtils::HashString("PATH_PARAMETER"); - static const int QUERY_PARAMETER_HASH = HashingUtils::HashString("QUERY_PARAMETER"); - static const int REQUEST_HEADER_HASH = HashingUtils::HashString("REQUEST_HEADER"); - static const int REQUEST_BODY_HASH = HashingUtils::HashString("REQUEST_BODY"); - static const int RESPONSE_HASH = HashingUtils::HashString("RESPONSE"); - static const int RESPONSE_HEADER_HASH = HashingUtils::HashString("RESPONSE_HEADER"); - static const int RESPONSE_BODY_HASH = HashingUtils::HashString("RESPONSE_BODY"); + static constexpr uint32_t API_HASH = ConstExprHashingUtils::HashString("API"); + static constexpr uint32_t AUTHORIZER_HASH = ConstExprHashingUtils::HashString("AUTHORIZER"); + static constexpr uint32_t MODEL_HASH = ConstExprHashingUtils::HashString("MODEL"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t METHOD_HASH = ConstExprHashingUtils::HashString("METHOD"); + static constexpr uint32_t PATH_PARAMETER_HASH = ConstExprHashingUtils::HashString("PATH_PARAMETER"); + static constexpr uint32_t QUERY_PARAMETER_HASH = ConstExprHashingUtils::HashString("QUERY_PARAMETER"); + static constexpr uint32_t REQUEST_HEADER_HASH = ConstExprHashingUtils::HashString("REQUEST_HEADER"); + static constexpr uint32_t REQUEST_BODY_HASH = ConstExprHashingUtils::HashString("REQUEST_BODY"); + static constexpr uint32_t RESPONSE_HASH = ConstExprHashingUtils::HashString("RESPONSE"); + static constexpr uint32_t RESPONSE_HEADER_HASH = ConstExprHashingUtils::HashString("RESPONSE_HEADER"); + static constexpr uint32_t RESPONSE_BODY_HASH = ConstExprHashingUtils::HashString("RESPONSE_BODY"); DocumentationPartType GetDocumentationPartTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_HASH) { return DocumentationPartType::API; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/DomainNameStatus.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/DomainNameStatus.cpp index 8ed5bd8c98d..f9f2e80c88a 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/DomainNameStatus.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/DomainNameStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DomainNameStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PENDING_CERTIFICATE_REIMPORT_HASH = HashingUtils::HashString("PENDING_CERTIFICATE_REIMPORT"); - static const int PENDING_OWNERSHIP_VERIFICATION_HASH = HashingUtils::HashString("PENDING_OWNERSHIP_VERIFICATION"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PENDING_CERTIFICATE_REIMPORT_HASH = ConstExprHashingUtils::HashString("PENDING_CERTIFICATE_REIMPORT"); + static constexpr uint32_t PENDING_OWNERSHIP_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PENDING_OWNERSHIP_VERIFICATION"); DomainNameStatus GetDomainNameStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return DomainNameStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/EndpointType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/EndpointType.cpp index dfe4feff1ab..7ab0572759c 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/EndpointType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/EndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EndpointTypeMapper { - static const int REGIONAL_HASH = HashingUtils::HashString("REGIONAL"); - static const int EDGE_HASH = HashingUtils::HashString("EDGE"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t REGIONAL_HASH = ConstExprHashingUtils::HashString("REGIONAL"); + static constexpr uint32_t EDGE_HASH = ConstExprHashingUtils::HashString("EDGE"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); EndpointType GetEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGIONAL_HASH) { return EndpointType::REGIONAL; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/GatewayResponseType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/GatewayResponseType.cpp index c331b1c24c5..62f26907429 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/GatewayResponseType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/GatewayResponseType.cpp @@ -20,32 +20,32 @@ namespace Aws namespace GatewayResponseTypeMapper { - static const int DEFAULT_4XX_HASH = HashingUtils::HashString("DEFAULT_4XX"); - static const int DEFAULT_5XX_HASH = HashingUtils::HashString("DEFAULT_5XX"); - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UNAUTHORIZED"); - static const int INVALID_API_KEY_HASH = HashingUtils::HashString("INVALID_API_KEY"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int AUTHORIZER_FAILURE_HASH = HashingUtils::HashString("AUTHORIZER_FAILURE"); - static const int AUTHORIZER_CONFIGURATION_ERROR_HASH = HashingUtils::HashString("AUTHORIZER_CONFIGURATION_ERROR"); - static const int INVALID_SIGNATURE_HASH = HashingUtils::HashString("INVALID_SIGNATURE"); - static const int EXPIRED_TOKEN_HASH = HashingUtils::HashString("EXPIRED_TOKEN"); - static const int MISSING_AUTHENTICATION_TOKEN_HASH = HashingUtils::HashString("MISSING_AUTHENTICATION_TOKEN"); - static const int INTEGRATION_FAILURE_HASH = HashingUtils::HashString("INTEGRATION_FAILURE"); - static const int INTEGRATION_TIMEOUT_HASH = HashingUtils::HashString("INTEGRATION_TIMEOUT"); - static const int API_CONFIGURATION_ERROR_HASH = HashingUtils::HashString("API_CONFIGURATION_ERROR"); - static const int UNSUPPORTED_MEDIA_TYPE_HASH = HashingUtils::HashString("UNSUPPORTED_MEDIA_TYPE"); - static const int BAD_REQUEST_PARAMETERS_HASH = HashingUtils::HashString("BAD_REQUEST_PARAMETERS"); - static const int BAD_REQUEST_BODY_HASH = HashingUtils::HashString("BAD_REQUEST_BODY"); - static const int REQUEST_TOO_LARGE_HASH = HashingUtils::HashString("REQUEST_TOO_LARGE"); - static const int THROTTLED_HASH = HashingUtils::HashString("THROTTLED"); - static const int QUOTA_EXCEEDED_HASH = HashingUtils::HashString("QUOTA_EXCEEDED"); - static const int WAF_FILTERED_HASH = HashingUtils::HashString("WAF_FILTERED"); + static constexpr uint32_t DEFAULT_4XX_HASH = ConstExprHashingUtils::HashString("DEFAULT_4XX"); + static constexpr uint32_t DEFAULT_5XX_HASH = ConstExprHashingUtils::HashString("DEFAULT_5XX"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UNAUTHORIZED"); + static constexpr uint32_t INVALID_API_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_API_KEY"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t AUTHORIZER_FAILURE_HASH = ConstExprHashingUtils::HashString("AUTHORIZER_FAILURE"); + static constexpr uint32_t AUTHORIZER_CONFIGURATION_ERROR_HASH = ConstExprHashingUtils::HashString("AUTHORIZER_CONFIGURATION_ERROR"); + static constexpr uint32_t INVALID_SIGNATURE_HASH = ConstExprHashingUtils::HashString("INVALID_SIGNATURE"); + static constexpr uint32_t EXPIRED_TOKEN_HASH = ConstExprHashingUtils::HashString("EXPIRED_TOKEN"); + static constexpr uint32_t MISSING_AUTHENTICATION_TOKEN_HASH = ConstExprHashingUtils::HashString("MISSING_AUTHENTICATION_TOKEN"); + static constexpr uint32_t INTEGRATION_FAILURE_HASH = ConstExprHashingUtils::HashString("INTEGRATION_FAILURE"); + static constexpr uint32_t INTEGRATION_TIMEOUT_HASH = ConstExprHashingUtils::HashString("INTEGRATION_TIMEOUT"); + static constexpr uint32_t API_CONFIGURATION_ERROR_HASH = ConstExprHashingUtils::HashString("API_CONFIGURATION_ERROR"); + static constexpr uint32_t UNSUPPORTED_MEDIA_TYPE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_MEDIA_TYPE"); + static constexpr uint32_t BAD_REQUEST_PARAMETERS_HASH = ConstExprHashingUtils::HashString("BAD_REQUEST_PARAMETERS"); + static constexpr uint32_t BAD_REQUEST_BODY_HASH = ConstExprHashingUtils::HashString("BAD_REQUEST_BODY"); + static constexpr uint32_t REQUEST_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("REQUEST_TOO_LARGE"); + static constexpr uint32_t THROTTLED_HASH = ConstExprHashingUtils::HashString("THROTTLED"); + static constexpr uint32_t QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("QUOTA_EXCEEDED"); + static constexpr uint32_t WAF_FILTERED_HASH = ConstExprHashingUtils::HashString("WAF_FILTERED"); GatewayResponseType GetGatewayResponseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_4XX_HASH) { return GatewayResponseType::DEFAULT_4XX; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/IntegrationType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/IntegrationType.cpp index e7468026e38..ff913273f74 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/IntegrationType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/IntegrationType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IntegrationTypeMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int MOCK_HASH = HashingUtils::HashString("MOCK"); - static const int HTTP_PROXY_HASH = HashingUtils::HashString("HTTP_PROXY"); - static const int AWS_PROXY_HASH = HashingUtils::HashString("AWS_PROXY"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t MOCK_HASH = ConstExprHashingUtils::HashString("MOCK"); + static constexpr uint32_t HTTP_PROXY_HASH = ConstExprHashingUtils::HashString("HTTP_PROXY"); + static constexpr uint32_t AWS_PROXY_HASH = ConstExprHashingUtils::HashString("AWS_PROXY"); IntegrationType GetIntegrationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return IntegrationType::HTTP; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/LocationStatusType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/LocationStatusType.cpp index a117ca48b09..e6990882b91 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/LocationStatusType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/LocationStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocationStatusTypeMapper { - static const int DOCUMENTED_HASH = HashingUtils::HashString("DOCUMENTED"); - static const int UNDOCUMENTED_HASH = HashingUtils::HashString("UNDOCUMENTED"); + static constexpr uint32_t DOCUMENTED_HASH = ConstExprHashingUtils::HashString("DOCUMENTED"); + static constexpr uint32_t UNDOCUMENTED_HASH = ConstExprHashingUtils::HashString("UNDOCUMENTED"); LocationStatusType GetLocationStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENTED_HASH) { return LocationStatusType::DOCUMENTED; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/Op.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/Op.cpp index 577de2d0e83..47eb0947bc9 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/Op.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/Op.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OpMapper { - static const int add_HASH = HashingUtils::HashString("add"); - static const int remove_HASH = HashingUtils::HashString("remove"); - static const int replace_HASH = HashingUtils::HashString("replace"); - static const int move_HASH = HashingUtils::HashString("move"); - static const int copy_HASH = HashingUtils::HashString("copy"); - static const int test_HASH = HashingUtils::HashString("test"); + static constexpr uint32_t add_HASH = ConstExprHashingUtils::HashString("add"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); + static constexpr uint32_t replace_HASH = ConstExprHashingUtils::HashString("replace"); + static constexpr uint32_t move_HASH = ConstExprHashingUtils::HashString("move"); + static constexpr uint32_t copy_HASH = ConstExprHashingUtils::HashString("copy"); + static constexpr uint32_t test_HASH = ConstExprHashingUtils::HashString("test"); Op GetOpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == add_HASH) { return Op::add; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/PutMode.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/PutMode.cpp index f851bfdd628..6d5163c0b68 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/PutMode.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/PutMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PutModeMapper { - static const int merge_HASH = HashingUtils::HashString("merge"); - static const int overwrite_HASH = HashingUtils::HashString("overwrite"); + static constexpr uint32_t merge_HASH = ConstExprHashingUtils::HashString("merge"); + static constexpr uint32_t overwrite_HASH = ConstExprHashingUtils::HashString("overwrite"); PutMode GetPutModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == merge_HASH) { return PutMode::merge; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/QuotaPeriodType.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/QuotaPeriodType.cpp index 6fa315b0612..e6d88be2e95 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/QuotaPeriodType.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/QuotaPeriodType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace QuotaPeriodTypeMapper { - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); - static const int MONTH_HASH = HashingUtils::HashString("MONTH"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); + static constexpr uint32_t MONTH_HASH = ConstExprHashingUtils::HashString("MONTH"); QuotaPeriodType GetQuotaPeriodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAY_HASH) { return QuotaPeriodType::DAY; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/SecurityPolicy.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/SecurityPolicy.cpp index b275387fd9d..b4ec8fad975 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/SecurityPolicy.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/SecurityPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SecurityPolicyMapper { - static const int TLS_1_0_HASH = HashingUtils::HashString("TLS_1_0"); - static const int TLS_1_2_HASH = HashingUtils::HashString("TLS_1_2"); + static constexpr uint32_t TLS_1_0_HASH = ConstExprHashingUtils::HashString("TLS_1_0"); + static constexpr uint32_t TLS_1_2_HASH = ConstExprHashingUtils::HashString("TLS_1_2"); SecurityPolicy GetSecurityPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TLS_1_0_HASH) { return SecurityPolicy::TLS_1_0; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/UnauthorizedCacheControlHeaderStrategy.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/UnauthorizedCacheControlHeaderStrategy.cpp index 26ec7f36fec..a0309109207 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/UnauthorizedCacheControlHeaderStrategy.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/UnauthorizedCacheControlHeaderStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UnauthorizedCacheControlHeaderStrategyMapper { - static const int FAIL_WITH_403_HASH = HashingUtils::HashString("FAIL_WITH_403"); - static const int SUCCEED_WITH_RESPONSE_HEADER_HASH = HashingUtils::HashString("SUCCEED_WITH_RESPONSE_HEADER"); - static const int SUCCEED_WITHOUT_RESPONSE_HEADER_HASH = HashingUtils::HashString("SUCCEED_WITHOUT_RESPONSE_HEADER"); + static constexpr uint32_t FAIL_WITH_403_HASH = ConstExprHashingUtils::HashString("FAIL_WITH_403"); + static constexpr uint32_t SUCCEED_WITH_RESPONSE_HEADER_HASH = ConstExprHashingUtils::HashString("SUCCEED_WITH_RESPONSE_HEADER"); + static constexpr uint32_t SUCCEED_WITHOUT_RESPONSE_HEADER_HASH = ConstExprHashingUtils::HashString("SUCCEED_WITHOUT_RESPONSE_HEADER"); UnauthorizedCacheControlHeaderStrategy GetUnauthorizedCacheControlHeaderStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAIL_WITH_403_HASH) { return UnauthorizedCacheControlHeaderStrategy::FAIL_WITH_403; diff --git a/generated/src/aws-cpp-sdk-apigateway/source/model/VpcLinkStatus.cpp b/generated/src/aws-cpp-sdk-apigateway/source/model/VpcLinkStatus.cpp index 6da349f3fd8..5ae963bbccb 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/model/VpcLinkStatus.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/model/VpcLinkStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VpcLinkStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VpcLinkStatus GetVpcLinkStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return VpcLinkStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiErrors.cpp b/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiErrors.cpp index cd403dd33c9..6dea3037f85 100644 --- a/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiErrors.cpp +++ b/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiErrors.cpp @@ -18,15 +18,15 @@ namespace ApiGatewayManagementApi namespace ApiGatewayManagementApiErrorMapper { -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int GONE_HASH = HashingUtils::HashString("GoneException"); -static const int PAYLOAD_TOO_LARGE_HASH = HashingUtils::HashString("PayloadTooLargeException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t GONE_HASH = ConstExprHashingUtils::HashString("GoneException"); +static constexpr uint32_t PAYLOAD_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("PayloadTooLargeException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == FORBIDDEN_HASH) { diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Errors.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Errors.cpp index 6644e5f3b6c..284aa750ded 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Errors.cpp @@ -33,15 +33,15 @@ template<> AWS_APIGATEWAYV2_API TooManyRequestsException ApiGatewayV2Error::GetM namespace ApiGatewayV2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizationType.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizationType.cpp index 3ad201fba74..2e8de53921d 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizationType.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuthorizationTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AWS_IAM_HASH = HashingUtils::HashString("AWS_IAM"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int JWT_HASH = HashingUtils::HashString("JWT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AWS_IAM_HASH = ConstExprHashingUtils::HashString("AWS_IAM"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t JWT_HASH = ConstExprHashingUtils::HashString("JWT"); AuthorizationType GetAuthorizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AuthorizationType::NONE; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizerType.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizerType.cpp index c9401751004..4ef34747354 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizerType.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/AuthorizerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthorizerTypeMapper { - static const int REQUEST_HASH = HashingUtils::HashString("REQUEST"); - static const int JWT_HASH = HashingUtils::HashString("JWT"); + static constexpr uint32_t REQUEST_HASH = ConstExprHashingUtils::HashString("REQUEST"); + static constexpr uint32_t JWT_HASH = ConstExprHashingUtils::HashString("JWT"); AuthorizerType GetAuthorizerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUEST_HASH) { return AuthorizerType::REQUEST; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ConnectionType.cpp index 8ba15d0f1f5..1173fbaf6c6 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ConnectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionTypeMapper { - static const int INTERNET_HASH = HashingUtils::HashString("INTERNET"); - static const int VPC_LINK_HASH = HashingUtils::HashString("VPC_LINK"); + static constexpr uint32_t INTERNET_HASH = ConstExprHashingUtils::HashString("INTERNET"); + static constexpr uint32_t VPC_LINK_HASH = ConstExprHashingUtils::HashString("VPC_LINK"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNET_HASH) { return ConnectionType::INTERNET; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ContentHandlingStrategy.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ContentHandlingStrategy.cpp index 128894d6602..2421f1936b4 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ContentHandlingStrategy.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ContentHandlingStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentHandlingStrategyMapper { - static const int CONVERT_TO_BINARY_HASH = HashingUtils::HashString("CONVERT_TO_BINARY"); - static const int CONVERT_TO_TEXT_HASH = HashingUtils::HashString("CONVERT_TO_TEXT"); + static constexpr uint32_t CONVERT_TO_BINARY_HASH = ConstExprHashingUtils::HashString("CONVERT_TO_BINARY"); + static constexpr uint32_t CONVERT_TO_TEXT_HASH = ConstExprHashingUtils::HashString("CONVERT_TO_TEXT"); ContentHandlingStrategy GetContentHandlingStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONVERT_TO_BINARY_HASH) { return ContentHandlingStrategy::CONVERT_TO_BINARY; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DeploymentStatus.cpp index 7cfcf643da9..26d48919811 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DeploymentStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeploymentStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DEPLOYED_HASH = HashingUtils::HashString("DEPLOYED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DEPLOYED_HASH = ConstExprHashingUtils::HashString("DEPLOYED"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DeploymentStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DomainNameStatus.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DomainNameStatus.cpp index 606af859758..6395f7fd5d5 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DomainNameStatus.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/DomainNameStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DomainNameStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int PENDING_CERTIFICATE_REIMPORT_HASH = HashingUtils::HashString("PENDING_CERTIFICATE_REIMPORT"); - static const int PENDING_OWNERSHIP_VERIFICATION_HASH = HashingUtils::HashString("PENDING_OWNERSHIP_VERIFICATION"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_CERTIFICATE_REIMPORT_HASH = ConstExprHashingUtils::HashString("PENDING_CERTIFICATE_REIMPORT"); + static constexpr uint32_t PENDING_OWNERSHIP_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PENDING_OWNERSHIP_VERIFICATION"); DomainNameStatus GetDomainNameStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return DomainNameStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/EndpointType.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/EndpointType.cpp index d0aad30889b..7b50b236264 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/EndpointType.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/EndpointType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EndpointTypeMapper { - static const int REGIONAL_HASH = HashingUtils::HashString("REGIONAL"); - static const int EDGE_HASH = HashingUtils::HashString("EDGE"); + static constexpr uint32_t REGIONAL_HASH = ConstExprHashingUtils::HashString("REGIONAL"); + static constexpr uint32_t EDGE_HASH = ConstExprHashingUtils::HashString("EDGE"); EndpointType GetEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGIONAL_HASH) { return EndpointType::REGIONAL; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/IntegrationType.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/IntegrationType.cpp index 6db99e64944..83e774049df 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/IntegrationType.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/IntegrationType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IntegrationTypeMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int MOCK_HASH = HashingUtils::HashString("MOCK"); - static const int HTTP_PROXY_HASH = HashingUtils::HashString("HTTP_PROXY"); - static const int AWS_PROXY_HASH = HashingUtils::HashString("AWS_PROXY"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t MOCK_HASH = ConstExprHashingUtils::HashString("MOCK"); + static constexpr uint32_t HTTP_PROXY_HASH = ConstExprHashingUtils::HashString("HTTP_PROXY"); + static constexpr uint32_t AWS_PROXY_HASH = ConstExprHashingUtils::HashString("AWS_PROXY"); IntegrationType GetIntegrationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return IntegrationType::AWS; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/LoggingLevel.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/LoggingLevel.cpp index 6a554d457cc..d911e7f3ff0 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/LoggingLevel.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/LoggingLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LoggingLevelMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); LoggingLevel GetLoggingLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LoggingLevel::ERROR_; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/PassthroughBehavior.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/PassthroughBehavior.cpp index 18c2cae86bc..3b2d7b17b44 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/PassthroughBehavior.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/PassthroughBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PassthroughBehaviorMapper { - static const int WHEN_NO_MATCH_HASH = HashingUtils::HashString("WHEN_NO_MATCH"); - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); - static const int WHEN_NO_TEMPLATES_HASH = HashingUtils::HashString("WHEN_NO_TEMPLATES"); + static constexpr uint32_t WHEN_NO_MATCH_HASH = ConstExprHashingUtils::HashString("WHEN_NO_MATCH"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); + static constexpr uint32_t WHEN_NO_TEMPLATES_HASH = ConstExprHashingUtils::HashString("WHEN_NO_TEMPLATES"); PassthroughBehavior GetPassthroughBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WHEN_NO_MATCH_HASH) { return PassthroughBehavior::WHEN_NO_MATCH; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ProtocolType.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ProtocolType.cpp index 23c9e9591ad..38229e2bb39 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ProtocolType.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/ProtocolType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolTypeMapper { - static const int WEBSOCKET_HASH = HashingUtils::HashString("WEBSOCKET"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t WEBSOCKET_HASH = ConstExprHashingUtils::HashString("WEBSOCKET"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); ProtocolType GetProtocolTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEBSOCKET_HASH) { return ProtocolType::WEBSOCKET; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/SecurityPolicy.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/SecurityPolicy.cpp index d3f45fe2a1c..d8ece1ac2de 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/SecurityPolicy.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/SecurityPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SecurityPolicyMapper { - static const int TLS_1_0_HASH = HashingUtils::HashString("TLS_1_0"); - static const int TLS_1_2_HASH = HashingUtils::HashString("TLS_1_2"); + static constexpr uint32_t TLS_1_0_HASH = ConstExprHashingUtils::HashString("TLS_1_0"); + static constexpr uint32_t TLS_1_2_HASH = ConstExprHashingUtils::HashString("TLS_1_2"); SecurityPolicy GetSecurityPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TLS_1_0_HASH) { return SecurityPolicy::TLS_1_0; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkStatus.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkStatus.cpp index c1a2b78f205..1e6950b1b0b 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkStatus.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VpcLinkStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); VpcLinkStatus GetVpcLinkStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return VpcLinkStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkVersion.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkVersion.cpp index 0a868810583..ef3fa502e50 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkVersion.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/model/VpcLinkVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VpcLinkVersionMapper { - static const int V2_HASH = HashingUtils::HashString("V2"); + static constexpr uint32_t V2_HASH = ConstExprHashingUtils::HashString("V2"); VpcLinkVersion GetVpcLinkVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V2_HASH) { return VpcLinkVersion::V2; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/AppConfigErrors.cpp b/generated/src/aws-cpp-sdk-appconfig/source/AppConfigErrors.cpp index a15e6d19d35..302568e9d56 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/AppConfigErrors.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/AppConfigErrors.cpp @@ -40,16 +40,16 @@ template<> AWS_APPCONFIG_API BadRequestException AppConfigError::GetModeledError namespace AppConfigErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int PAYLOAD_TOO_LARGE_HASH = HashingUtils::HashString("PayloadTooLargeException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t PAYLOAD_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("PayloadTooLargeException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/ActionPoint.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/ActionPoint.cpp index 1d6043eac86..9236aeb726e 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/ActionPoint.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/ActionPoint.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ActionPointMapper { - static const int PRE_CREATE_HOSTED_CONFIGURATION_VERSION_HASH = HashingUtils::HashString("PRE_CREATE_HOSTED_CONFIGURATION_VERSION"); - static const int PRE_START_DEPLOYMENT_HASH = HashingUtils::HashString("PRE_START_DEPLOYMENT"); - static const int ON_DEPLOYMENT_START_HASH = HashingUtils::HashString("ON_DEPLOYMENT_START"); - static const int ON_DEPLOYMENT_STEP_HASH = HashingUtils::HashString("ON_DEPLOYMENT_STEP"); - static const int ON_DEPLOYMENT_BAKING_HASH = HashingUtils::HashString("ON_DEPLOYMENT_BAKING"); - static const int ON_DEPLOYMENT_COMPLETE_HASH = HashingUtils::HashString("ON_DEPLOYMENT_COMPLETE"); - static const int ON_DEPLOYMENT_ROLLED_BACK_HASH = HashingUtils::HashString("ON_DEPLOYMENT_ROLLED_BACK"); + static constexpr uint32_t PRE_CREATE_HOSTED_CONFIGURATION_VERSION_HASH = ConstExprHashingUtils::HashString("PRE_CREATE_HOSTED_CONFIGURATION_VERSION"); + static constexpr uint32_t PRE_START_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("PRE_START_DEPLOYMENT"); + static constexpr uint32_t ON_DEPLOYMENT_START_HASH = ConstExprHashingUtils::HashString("ON_DEPLOYMENT_START"); + static constexpr uint32_t ON_DEPLOYMENT_STEP_HASH = ConstExprHashingUtils::HashString("ON_DEPLOYMENT_STEP"); + static constexpr uint32_t ON_DEPLOYMENT_BAKING_HASH = ConstExprHashingUtils::HashString("ON_DEPLOYMENT_BAKING"); + static constexpr uint32_t ON_DEPLOYMENT_COMPLETE_HASH = ConstExprHashingUtils::HashString("ON_DEPLOYMENT_COMPLETE"); + static constexpr uint32_t ON_DEPLOYMENT_ROLLED_BACK_HASH = ConstExprHashingUtils::HashString("ON_DEPLOYMENT_ROLLED_BACK"); ActionPoint GetActionPointForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRE_CREATE_HOSTED_CONFIGURATION_VERSION_HASH) { return ActionPoint::PRE_CREATE_HOSTED_CONFIGURATION_VERSION; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/BadRequestReason.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/BadRequestReason.cpp index 98f6a3b67f3..619207c9ed4 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/BadRequestReason.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/BadRequestReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BadRequestReasonMapper { - static const int InvalidConfiguration_HASH = HashingUtils::HashString("InvalidConfiguration"); + static constexpr uint32_t InvalidConfiguration_HASH = ConstExprHashingUtils::HashString("InvalidConfiguration"); BadRequestReason GetBadRequestReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidConfiguration_HASH) { return BadRequestReason::InvalidConfiguration; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/BytesMeasure.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/BytesMeasure.cpp index 955a438b66a..d40d73a803d 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/BytesMeasure.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/BytesMeasure.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BytesMeasureMapper { - static const int KILOBYTES_HASH = HashingUtils::HashString("KILOBYTES"); + static constexpr uint32_t KILOBYTES_HASH = ConstExprHashingUtils::HashString("KILOBYTES"); BytesMeasure GetBytesMeasureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KILOBYTES_HASH) { return BytesMeasure::KILOBYTES; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentEventType.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentEventType.cpp index 2d7fe31e73f..fdc110bd457 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentEventType.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentEventType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeploymentEventTypeMapper { - static const int PERCENTAGE_UPDATED_HASH = HashingUtils::HashString("PERCENTAGE_UPDATED"); - static const int ROLLBACK_STARTED_HASH = HashingUtils::HashString("ROLLBACK_STARTED"); - static const int ROLLBACK_COMPLETED_HASH = HashingUtils::HashString("ROLLBACK_COMPLETED"); - static const int BAKE_TIME_STARTED_HASH = HashingUtils::HashString("BAKE_TIME_STARTED"); - static const int DEPLOYMENT_STARTED_HASH = HashingUtils::HashString("DEPLOYMENT_STARTED"); - static const int DEPLOYMENT_COMPLETED_HASH = HashingUtils::HashString("DEPLOYMENT_COMPLETED"); + static constexpr uint32_t PERCENTAGE_UPDATED_HASH = ConstExprHashingUtils::HashString("PERCENTAGE_UPDATED"); + static constexpr uint32_t ROLLBACK_STARTED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_STARTED"); + static constexpr uint32_t ROLLBACK_COMPLETED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_COMPLETED"); + static constexpr uint32_t BAKE_TIME_STARTED_HASH = ConstExprHashingUtils::HashString("BAKE_TIME_STARTED"); + static constexpr uint32_t DEPLOYMENT_STARTED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_STARTED"); + static constexpr uint32_t DEPLOYMENT_COMPLETED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_COMPLETED"); DeploymentEventType GetDeploymentEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERCENTAGE_UPDATED_HASH) { return DeploymentEventType::PERCENTAGE_UPDATED; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentState.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentState.cpp index 9548eb34e02..86a7adf4f6a 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentState.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/DeploymentState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeploymentStateMapper { - static const int BAKING_HASH = HashingUtils::HashString("BAKING"); - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int DEPLOYING_HASH = HashingUtils::HashString("DEPLOYING"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int ROLLING_BACK_HASH = HashingUtils::HashString("ROLLING_BACK"); - static const int ROLLED_BACK_HASH = HashingUtils::HashString("ROLLED_BACK"); + static constexpr uint32_t BAKING_HASH = ConstExprHashingUtils::HashString("BAKING"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t DEPLOYING_HASH = ConstExprHashingUtils::HashString("DEPLOYING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t ROLLING_BACK_HASH = ConstExprHashingUtils::HashString("ROLLING_BACK"); + static constexpr uint32_t ROLLED_BACK_HASH = ConstExprHashingUtils::HashString("ROLLED_BACK"); DeploymentState GetDeploymentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BAKING_HASH) { return DeploymentState::BAKING; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/EnvironmentState.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/EnvironmentState.cpp index cf0e58394ee..1352c0cb14b 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/EnvironmentState.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/EnvironmentState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EnvironmentStateMapper { - static const int READY_FOR_DEPLOYMENT_HASH = HashingUtils::HashString("READY_FOR_DEPLOYMENT"); - static const int DEPLOYING_HASH = HashingUtils::HashString("DEPLOYING"); - static const int ROLLING_BACK_HASH = HashingUtils::HashString("ROLLING_BACK"); - static const int ROLLED_BACK_HASH = HashingUtils::HashString("ROLLED_BACK"); + static constexpr uint32_t READY_FOR_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("READY_FOR_DEPLOYMENT"); + static constexpr uint32_t DEPLOYING_HASH = ConstExprHashingUtils::HashString("DEPLOYING"); + static constexpr uint32_t ROLLING_BACK_HASH = ConstExprHashingUtils::HashString("ROLLING_BACK"); + static constexpr uint32_t ROLLED_BACK_HASH = ConstExprHashingUtils::HashString("ROLLED_BACK"); EnvironmentState GetEnvironmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_FOR_DEPLOYMENT_HASH) { return EnvironmentState::READY_FOR_DEPLOYMENT; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/GrowthType.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/GrowthType.cpp index 07f8987e6e7..dc4c7e823ce 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/GrowthType.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/GrowthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GrowthTypeMapper { - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); - static const int EXPONENTIAL_HASH = HashingUtils::HashString("EXPONENTIAL"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); + static constexpr uint32_t EXPONENTIAL_HASH = ConstExprHashingUtils::HashString("EXPONENTIAL"); GrowthType GetGrowthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINEAR_HASH) { return GrowthType::LINEAR; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/ReplicateTo.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/ReplicateTo.cpp index d6540b2728a..ce3417dc8b5 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/ReplicateTo.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/ReplicateTo.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicateToMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SSM_DOCUMENT_HASH = HashingUtils::HashString("SSM_DOCUMENT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SSM_DOCUMENT_HASH = ConstExprHashingUtils::HashString("SSM_DOCUMENT"); ReplicateTo GetReplicateToForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ReplicateTo::NONE; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/TriggeredBy.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/TriggeredBy.cpp index 30398ec3107..fea4aa91897 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/TriggeredBy.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/TriggeredBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TriggeredByMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int APPCONFIG_HASH = HashingUtils::HashString("APPCONFIG"); - static const int CLOUDWATCH_ALARM_HASH = HashingUtils::HashString("CLOUDWATCH_ALARM"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t APPCONFIG_HASH = ConstExprHashingUtils::HashString("APPCONFIG"); + static constexpr uint32_t CLOUDWATCH_ALARM_HASH = ConstExprHashingUtils::HashString("CLOUDWATCH_ALARM"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); TriggeredBy GetTriggeredByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return TriggeredBy::USER; diff --git a/generated/src/aws-cpp-sdk-appconfig/source/model/ValidatorType.cpp b/generated/src/aws-cpp-sdk-appconfig/source/model/ValidatorType.cpp index 930b93159da..ab839dccce6 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/model/ValidatorType.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/model/ValidatorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidatorTypeMapper { - static const int JSON_SCHEMA_HASH = HashingUtils::HashString("JSON_SCHEMA"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); + static constexpr uint32_t JSON_SCHEMA_HASH = ConstExprHashingUtils::HashString("JSON_SCHEMA"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); ValidatorType GetValidatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_SCHEMA_HASH) { return ValidatorType::JSON_SCHEMA; diff --git a/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataErrors.cpp b/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataErrors.cpp index 00ca11eafb5..0a143b1223c 100644 --- a/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataErrors.cpp +++ b/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataErrors.cpp @@ -33,13 +33,13 @@ template<> AWS_APPCONFIGDATA_API BadRequestException AppConfigDataError::GetMode namespace AppConfigDataErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-appconfigdata/source/model/BadRequestReason.cpp b/generated/src/aws-cpp-sdk-appconfigdata/source/model/BadRequestReason.cpp index 574453cd656..d5440016614 100644 --- a/generated/src/aws-cpp-sdk-appconfigdata/source/model/BadRequestReason.cpp +++ b/generated/src/aws-cpp-sdk-appconfigdata/source/model/BadRequestReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BadRequestReasonMapper { - static const int InvalidParameters_HASH = HashingUtils::HashString("InvalidParameters"); + static constexpr uint32_t InvalidParameters_HASH = ConstExprHashingUtils::HashString("InvalidParameters"); BadRequestReason GetBadRequestReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidParameters_HASH) { return BadRequestReason::InvalidParameters; diff --git a/generated/src/aws-cpp-sdk-appconfigdata/source/model/InvalidParameterProblem.cpp b/generated/src/aws-cpp-sdk-appconfigdata/source/model/InvalidParameterProblem.cpp index 34379339036..e04d85d4370 100644 --- a/generated/src/aws-cpp-sdk-appconfigdata/source/model/InvalidParameterProblem.cpp +++ b/generated/src/aws-cpp-sdk-appconfigdata/source/model/InvalidParameterProblem.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InvalidParameterProblemMapper { - static const int Corrupted_HASH = HashingUtils::HashString("Corrupted"); - static const int Expired_HASH = HashingUtils::HashString("Expired"); - static const int PollIntervalNotSatisfied_HASH = HashingUtils::HashString("PollIntervalNotSatisfied"); + static constexpr uint32_t Corrupted_HASH = ConstExprHashingUtils::HashString("Corrupted"); + static constexpr uint32_t Expired_HASH = ConstExprHashingUtils::HashString("Expired"); + static constexpr uint32_t PollIntervalNotSatisfied_HASH = ConstExprHashingUtils::HashString("PollIntervalNotSatisfied"); InvalidParameterProblem GetInvalidParameterProblemForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Corrupted_HASH) { return InvalidParameterProblem::Corrupted; diff --git a/generated/src/aws-cpp-sdk-appconfigdata/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-appconfigdata/source/model/ResourceType.cpp index 5d6ec70e420..63072be8f40 100644 --- a/generated/src/aws-cpp-sdk-appconfigdata/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-appconfigdata/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int Application_HASH = HashingUtils::HashString("Application"); - static const int ConfigurationProfile_HASH = HashingUtils::HashString("ConfigurationProfile"); - static const int Deployment_HASH = HashingUtils::HashString("Deployment"); - static const int Environment_HASH = HashingUtils::HashString("Environment"); - static const int Configuration_HASH = HashingUtils::HashString("Configuration"); + static constexpr uint32_t Application_HASH = ConstExprHashingUtils::HashString("Application"); + static constexpr uint32_t ConfigurationProfile_HASH = ConstExprHashingUtils::HashString("ConfigurationProfile"); + static constexpr uint32_t Deployment_HASH = ConstExprHashingUtils::HashString("Deployment"); + static constexpr uint32_t Environment_HASH = ConstExprHashingUtils::HashString("Environment"); + static constexpr uint32_t Configuration_HASH = ConstExprHashingUtils::HashString("Configuration"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Application_HASH) { return ResourceType::Application; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/AppFabricErrors.cpp b/generated/src/aws-cpp-sdk-appfabric/source/AppFabricErrors.cpp index 3ecf393a3bb..04c9f1db59d 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/AppFabricErrors.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/AppFabricErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_APPFABRIC_API ValidationException AppFabricError::GetModeledError namespace AppFabricErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/AppAuthorizationStatus.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/AppAuthorizationStatus.cpp index 3e7e0209b35..de16f68a2bd 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/AppAuthorizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/AppAuthorizationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AppAuthorizationStatusMapper { - static const int PendingConnect_HASH = HashingUtils::HashString("PendingConnect"); - static const int Connected_HASH = HashingUtils::HashString("Connected"); - static const int ConnectionValidationFailed_HASH = HashingUtils::HashString("ConnectionValidationFailed"); - static const int TokenAutoRotationFailed_HASH = HashingUtils::HashString("TokenAutoRotationFailed"); + static constexpr uint32_t PendingConnect_HASH = ConstExprHashingUtils::HashString("PendingConnect"); + static constexpr uint32_t Connected_HASH = ConstExprHashingUtils::HashString("Connected"); + static constexpr uint32_t ConnectionValidationFailed_HASH = ConstExprHashingUtils::HashString("ConnectionValidationFailed"); + static constexpr uint32_t TokenAutoRotationFailed_HASH = ConstExprHashingUtils::HashString("TokenAutoRotationFailed"); AppAuthorizationStatus GetAppAuthorizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PendingConnect_HASH) { return AppAuthorizationStatus::PendingConnect; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/AuthType.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/AuthType.cpp index 26bd8a76128..7a40e9513c0 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/AuthType.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/AuthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthTypeMapper { - static const int oauth2_HASH = HashingUtils::HashString("oauth2"); - static const int apiKey_HASH = HashingUtils::HashString("apiKey"); + static constexpr uint32_t oauth2_HASH = ConstExprHashingUtils::HashString("oauth2"); + static constexpr uint32_t apiKey_HASH = ConstExprHashingUtils::HashString("apiKey"); AuthType GetAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == oauth2_HASH) { return AuthType::oauth2; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/Format.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/Format.cpp index fb3a0e3dd66..9032b91bafb 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/Format.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormatMapper { - static const int json_HASH = HashingUtils::HashString("json"); - static const int parquet_HASH = HashingUtils::HashString("parquet"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); + static constexpr uint32_t parquet_HASH = ConstExprHashingUtils::HashString("parquet"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_HASH) { return Format::json; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionDestinationStatus.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionDestinationStatus.cpp index f79121852a9..0c02b241c46 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionDestinationStatus.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionDestinationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IngestionDestinationStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); IngestionDestinationStatus GetIngestionDestinationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return IngestionDestinationStatus::Active; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionState.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionState.cpp index 74441c3f31a..ad5e7d60668 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionState.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IngestionStateMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); IngestionState GetIngestionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return IngestionState::enabled; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionType.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionType.cpp index b2586b014f6..ff5d0fc5183 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionType.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/IngestionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IngestionTypeMapper { - static const int auditLog_HASH = HashingUtils::HashString("auditLog"); + static constexpr uint32_t auditLog_HASH = ConstExprHashingUtils::HashString("auditLog"); IngestionType GetIngestionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == auditLog_HASH) { return IngestionType::auditLog; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/Persona.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/Persona.cpp index cb581acc33f..ff4c9e787d4 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/Persona.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/Persona.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PersonaMapper { - static const int admin_HASH = HashingUtils::HashString("admin"); - static const int endUser_HASH = HashingUtils::HashString("endUser"); + static constexpr uint32_t admin_HASH = ConstExprHashingUtils::HashString("admin"); + static constexpr uint32_t endUser_HASH = ConstExprHashingUtils::HashString("endUser"); Persona GetPersonaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == admin_HASH) { return Persona::admin; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/ResultStatus.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/ResultStatus.cpp index 76155e4e90d..d83deaca7b6 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/ResultStatus.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/ResultStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResultStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ResultStatus GetResultStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ResultStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/Schema.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/Schema.cpp index 7cfaf78ad8d..40d7d9ecf51 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/Schema.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/Schema.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SchemaMapper { - static const int ocsf_HASH = HashingUtils::HashString("ocsf"); - static const int raw_HASH = HashingUtils::HashString("raw"); + static constexpr uint32_t ocsf_HASH = ConstExprHashingUtils::HashString("ocsf"); + static constexpr uint32_t raw_HASH = ConstExprHashingUtils::HashString("raw"); Schema GetSchemaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ocsf_HASH) { return Schema::ocsf; diff --git a/generated/src/aws-cpp-sdk-appfabric/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-appfabric/source/model/ValidationExceptionReason.cpp index eb93ae6bcc2..d90361fb49c 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-appflow/source/AppflowErrors.cpp b/generated/src/aws-cpp-sdk-appflow/source/AppflowErrors.cpp index 2b6a77211dc..0558b88896f 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/AppflowErrors.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/AppflowErrors.cpp @@ -18,17 +18,17 @@ namespace Appflow namespace AppflowErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int CONNECTOR_AUTHENTICATION_HASH = HashingUtils::HashString("ConnectorAuthenticationException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int CONNECTOR_SERVER_HASH = HashingUtils::HashString("ConnectorServerException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t CONNECTOR_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("ConnectorAuthenticationException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONNECTOR_SERVER_HASH = ConstExprHashingUtils::HashString("ConnectorServerException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/AggregationType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/AggregationType.cpp index ff93ec6ebde..09de3421273 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/AggregationType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/AggregationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AggregationTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int SingleFile_HASH = HashingUtils::HashString("SingleFile"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t SingleFile_HASH = ConstExprHashingUtils::HashString("SingleFile"); AggregationType GetAggregationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return AggregationType::None; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/AmplitudeConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/AmplitudeConnectorOperator.cpp index 2fd0e22e93d..96543b9cd12 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/AmplitudeConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/AmplitudeConnectorOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AmplitudeConnectorOperatorMapper { - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); AmplitudeConnectorOperator GetAmplitudeConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BETWEEN_HASH) { return AmplitudeConnectorOperator::BETWEEN; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/AuthenticationType.cpp index 6ee0f3ec801..e1ebc26adf1 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/AuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/AuthenticationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuthenticationTypeMapper { - static const int OAUTH2_HASH = HashingUtils::HashString("OAUTH2"); - static const int APIKEY_HASH = HashingUtils::HashString("APIKEY"); - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t OAUTH2_HASH = ConstExprHashingUtils::HashString("OAUTH2"); + static constexpr uint32_t APIKEY_HASH = ConstExprHashingUtils::HashString("APIKEY"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OAUTH2_HASH) { return AuthenticationType::OAUTH2; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/CatalogType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/CatalogType.cpp index 4fe16f1204d..d6aeb8cfa08 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/CatalogType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/CatalogType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CatalogTypeMapper { - static const int GLUE_HASH = HashingUtils::HashString("GLUE"); + static constexpr uint32_t GLUE_HASH = ConstExprHashingUtils::HashString("GLUE"); CatalogType GetCatalogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GLUE_HASH) { return CatalogType::GLUE; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ConnectionMode.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ConnectionMode.cpp index dd6a9592760..0aed5f23a0e 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ConnectionMode.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ConnectionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionModeMapper { - static const int Public_HASH = HashingUtils::HashString("Public"); - static const int Private_HASH = HashingUtils::HashString("Private"); + static constexpr uint32_t Public_HASH = ConstExprHashingUtils::HashString("Public"); + static constexpr uint32_t Private_HASH = ConstExprHashingUtils::HashString("Private"); ConnectionMode GetConnectionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Public_HASH) { return ConnectionMode::Public; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorProvisioningType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorProvisioningType.cpp index 28edbc864c5..febed715efb 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorProvisioningType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorProvisioningType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConnectorProvisioningTypeMapper { - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); ConnectorProvisioningType GetConnectorProvisioningTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAMBDA_HASH) { return ConnectorProvisioningType::LAMBDA; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorType.cpp index eb11a1b990d..6e53af7282c 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ConnectorType.cpp @@ -20,35 +20,35 @@ namespace Aws namespace ConnectorTypeMapper { - static const int Salesforce_HASH = HashingUtils::HashString("Salesforce"); - static const int Singular_HASH = HashingUtils::HashString("Singular"); - static const int Slack_HASH = HashingUtils::HashString("Slack"); - static const int Redshift_HASH = HashingUtils::HashString("Redshift"); - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int Marketo_HASH = HashingUtils::HashString("Marketo"); - static const int Googleanalytics_HASH = HashingUtils::HashString("Googleanalytics"); - static const int Zendesk_HASH = HashingUtils::HashString("Zendesk"); - static const int Servicenow_HASH = HashingUtils::HashString("Servicenow"); - static const int Datadog_HASH = HashingUtils::HashString("Datadog"); - static const int Trendmicro_HASH = HashingUtils::HashString("Trendmicro"); - static const int Snowflake_HASH = HashingUtils::HashString("Snowflake"); - static const int Dynatrace_HASH = HashingUtils::HashString("Dynatrace"); - static const int Infornexus_HASH = HashingUtils::HashString("Infornexus"); - static const int Amplitude_HASH = HashingUtils::HashString("Amplitude"); - static const int Veeva_HASH = HashingUtils::HashString("Veeva"); - static const int EventBridge_HASH = HashingUtils::HashString("EventBridge"); - static const int LookoutMetrics_HASH = HashingUtils::HashString("LookoutMetrics"); - static const int Upsolver_HASH = HashingUtils::HashString("Upsolver"); - static const int Honeycode_HASH = HashingUtils::HashString("Honeycode"); - static const int CustomerProfiles_HASH = HashingUtils::HashString("CustomerProfiles"); - static const int SAPOData_HASH = HashingUtils::HashString("SAPOData"); - static const int CustomConnector_HASH = HashingUtils::HashString("CustomConnector"); - static const int Pardot_HASH = HashingUtils::HashString("Pardot"); + static constexpr uint32_t Salesforce_HASH = ConstExprHashingUtils::HashString("Salesforce"); + static constexpr uint32_t Singular_HASH = ConstExprHashingUtils::HashString("Singular"); + static constexpr uint32_t Slack_HASH = ConstExprHashingUtils::HashString("Slack"); + static constexpr uint32_t Redshift_HASH = ConstExprHashingUtils::HashString("Redshift"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t Marketo_HASH = ConstExprHashingUtils::HashString("Marketo"); + static constexpr uint32_t Googleanalytics_HASH = ConstExprHashingUtils::HashString("Googleanalytics"); + static constexpr uint32_t Zendesk_HASH = ConstExprHashingUtils::HashString("Zendesk"); + static constexpr uint32_t Servicenow_HASH = ConstExprHashingUtils::HashString("Servicenow"); + static constexpr uint32_t Datadog_HASH = ConstExprHashingUtils::HashString("Datadog"); + static constexpr uint32_t Trendmicro_HASH = ConstExprHashingUtils::HashString("Trendmicro"); + static constexpr uint32_t Snowflake_HASH = ConstExprHashingUtils::HashString("Snowflake"); + static constexpr uint32_t Dynatrace_HASH = ConstExprHashingUtils::HashString("Dynatrace"); + static constexpr uint32_t Infornexus_HASH = ConstExprHashingUtils::HashString("Infornexus"); + static constexpr uint32_t Amplitude_HASH = ConstExprHashingUtils::HashString("Amplitude"); + static constexpr uint32_t Veeva_HASH = ConstExprHashingUtils::HashString("Veeva"); + static constexpr uint32_t EventBridge_HASH = ConstExprHashingUtils::HashString("EventBridge"); + static constexpr uint32_t LookoutMetrics_HASH = ConstExprHashingUtils::HashString("LookoutMetrics"); + static constexpr uint32_t Upsolver_HASH = ConstExprHashingUtils::HashString("Upsolver"); + static constexpr uint32_t Honeycode_HASH = ConstExprHashingUtils::HashString("Honeycode"); + static constexpr uint32_t CustomerProfiles_HASH = ConstExprHashingUtils::HashString("CustomerProfiles"); + static constexpr uint32_t SAPOData_HASH = ConstExprHashingUtils::HashString("SAPOData"); + static constexpr uint32_t CustomConnector_HASH = ConstExprHashingUtils::HashString("CustomConnector"); + static constexpr uint32_t Pardot_HASH = ConstExprHashingUtils::HashString("Pardot"); ConnectorType GetConnectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Salesforce_HASH) { return ConnectorType::Salesforce; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/DataPullMode.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/DataPullMode.cpp index 7d3dabdccba..f0d62d3585e 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/DataPullMode.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/DataPullMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataPullModeMapper { - static const int Incremental_HASH = HashingUtils::HashString("Incremental"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); + static constexpr uint32_t Incremental_HASH = ConstExprHashingUtils::HashString("Incremental"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); DataPullMode GetDataPullModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Incremental_HASH) { return DataPullMode::Incremental; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/DataTransferApiType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/DataTransferApiType.cpp index 3cb56340d01..de888d6e077 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/DataTransferApiType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/DataTransferApiType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataTransferApiTypeMapper { - static const int SYNC_HASH = HashingUtils::HashString("SYNC"); - static const int ASYNC_HASH = HashingUtils::HashString("ASYNC"); - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t SYNC_HASH = ConstExprHashingUtils::HashString("SYNC"); + static constexpr uint32_t ASYNC_HASH = ConstExprHashingUtils::HashString("ASYNC"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); DataTransferApiType GetDataTransferApiTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYNC_HASH) { return DataTransferApiType::SYNC; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/DatadogConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/DatadogConnectorOperator.cpp index bbe1a0f8cc2..70f0e87443b 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/DatadogConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/DatadogConnectorOperator.cpp @@ -20,26 +20,26 @@ namespace Aws namespace DatadogConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); DatadogConnectorOperator GetDatadogConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return DatadogConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/DynatraceConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/DynatraceConnectorOperator.cpp index 19f852249d8..b63bc6f3f7f 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/DynatraceConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/DynatraceConnectorOperator.cpp @@ -20,26 +20,26 @@ namespace Aws namespace DynatraceConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); DynatraceConnectorOperator GetDynatraceConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return DynatraceConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ExecutionStatus.cpp index 5bf68329a9f..b70a1b21388 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ExecutionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ExecutionStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Error_HASH = HashingUtils::HashString("Error"); - static const int CancelStarted_HASH = HashingUtils::HashString("CancelStarted"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Error_HASH = ConstExprHashingUtils::HashString("Error"); + static constexpr uint32_t CancelStarted_HASH = ConstExprHashingUtils::HashString("CancelStarted"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ExecutionStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/FileType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/FileType.cpp index ee823fabb3c..74f96215815 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/FileType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/FileType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileTypeMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); FileType GetFileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return FileType::CSV; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/FlowStatus.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/FlowStatus.cpp index 79cd46553c0..d343fcde106 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/FlowStatus.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/FlowStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FlowStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Deprecated_HASH = HashingUtils::HashString("Deprecated"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Draft_HASH = HashingUtils::HashString("Draft"); - static const int Errored_HASH = HashingUtils::HashString("Errored"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Deprecated_HASH = ConstExprHashingUtils::HashString("Deprecated"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Draft_HASH = ConstExprHashingUtils::HashString("Draft"); + static constexpr uint32_t Errored_HASH = ConstExprHashingUtils::HashString("Errored"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); FlowStatus GetFlowStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return FlowStatus::Active; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/GoogleAnalyticsConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/GoogleAnalyticsConnectorOperator.cpp index 63941158e57..18e08a3172f 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/GoogleAnalyticsConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/GoogleAnalyticsConnectorOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GoogleAnalyticsConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); GoogleAnalyticsConnectorOperator GetGoogleAnalyticsConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return GoogleAnalyticsConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/InforNexusConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/InforNexusConnectorOperator.cpp index 44aa2604084..63282f3704c 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/InforNexusConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/InforNexusConnectorOperator.cpp @@ -20,26 +20,26 @@ namespace Aws namespace InforNexusConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); InforNexusConnectorOperator GetInforNexusConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return InforNexusConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/MarketoConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/MarketoConnectorOperator.cpp index 5b5a370c439..2f24c4ee081 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/MarketoConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/MarketoConnectorOperator.cpp @@ -20,27 +20,27 @@ namespace Aws namespace MarketoConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); MarketoConnectorOperator GetMarketoConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return MarketoConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2CustomPropType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2CustomPropType.cpp index ef4a50a2883..bd25129d3cb 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2CustomPropType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2CustomPropType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OAuth2CustomPropTypeMapper { - static const int TOKEN_URL_HASH = HashingUtils::HashString("TOKEN_URL"); - static const int AUTH_URL_HASH = HashingUtils::HashString("AUTH_URL"); + static constexpr uint32_t TOKEN_URL_HASH = ConstExprHashingUtils::HashString("TOKEN_URL"); + static constexpr uint32_t AUTH_URL_HASH = ConstExprHashingUtils::HashString("AUTH_URL"); OAuth2CustomPropType GetOAuth2CustomPropTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOKEN_URL_HASH) { return OAuth2CustomPropType::TOKEN_URL; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2GrantType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2GrantType.cpp index f3d6af9f1e0..88f34e7668c 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2GrantType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/OAuth2GrantType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OAuth2GrantTypeMapper { - static const int CLIENT_CREDENTIALS_HASH = HashingUtils::HashString("CLIENT_CREDENTIALS"); - static const int AUTHORIZATION_CODE_HASH = HashingUtils::HashString("AUTHORIZATION_CODE"); - static const int JWT_BEARER_HASH = HashingUtils::HashString("JWT_BEARER"); + static constexpr uint32_t CLIENT_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("CLIENT_CREDENTIALS"); + static constexpr uint32_t AUTHORIZATION_CODE_HASH = ConstExprHashingUtils::HashString("AUTHORIZATION_CODE"); + static constexpr uint32_t JWT_BEARER_HASH = ConstExprHashingUtils::HashString("JWT_BEARER"); OAuth2GrantType GetOAuth2GrantTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIENT_CREDENTIALS_HASH) { return OAuth2GrantType::CLIENT_CREDENTIALS; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/Operator.cpp index dec8441627a..b748a4a986d 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/Operator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace OperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return Operator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/OperatorPropertiesKeys.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/OperatorPropertiesKeys.cpp index 0ae93618ac7..dea0fb5de16 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/OperatorPropertiesKeys.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/OperatorPropertiesKeys.cpp @@ -20,28 +20,28 @@ namespace Aws namespace OperatorPropertiesKeysMapper { - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); - static const int VALUES_HASH = HashingUtils::HashString("VALUES"); - static const int DATA_TYPE_HASH = HashingUtils::HashString("DATA_TYPE"); - static const int UPPER_BOUND_HASH = HashingUtils::HashString("UPPER_BOUND"); - static const int LOWER_BOUND_HASH = HashingUtils::HashString("LOWER_BOUND"); - static const int SOURCE_DATA_TYPE_HASH = HashingUtils::HashString("SOURCE_DATA_TYPE"); - static const int DESTINATION_DATA_TYPE_HASH = HashingUtils::HashString("DESTINATION_DATA_TYPE"); - static const int VALIDATION_ACTION_HASH = HashingUtils::HashString("VALIDATION_ACTION"); - static const int MASK_VALUE_HASH = HashingUtils::HashString("MASK_VALUE"); - static const int MASK_LENGTH_HASH = HashingUtils::HashString("MASK_LENGTH"); - static const int TRUNCATE_LENGTH_HASH = HashingUtils::HashString("TRUNCATE_LENGTH"); - static const int MATH_OPERATION_FIELDS_ORDER_HASH = HashingUtils::HashString("MATH_OPERATION_FIELDS_ORDER"); - static const int CONCAT_FORMAT_HASH = HashingUtils::HashString("CONCAT_FORMAT"); - static const int SUBFIELD_CATEGORY_MAP_HASH = HashingUtils::HashString("SUBFIELD_CATEGORY_MAP"); - static const int EXCLUDE_SOURCE_FIELDS_LIST_HASH = HashingUtils::HashString("EXCLUDE_SOURCE_FIELDS_LIST"); - static const int INCLUDE_NEW_FIELDS_HASH = HashingUtils::HashString("INCLUDE_NEW_FIELDS"); - static const int ORDERED_PARTITION_KEYS_LIST_HASH = HashingUtils::HashString("ORDERED_PARTITION_KEYS_LIST"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); + static constexpr uint32_t VALUES_HASH = ConstExprHashingUtils::HashString("VALUES"); + static constexpr uint32_t DATA_TYPE_HASH = ConstExprHashingUtils::HashString("DATA_TYPE"); + static constexpr uint32_t UPPER_BOUND_HASH = ConstExprHashingUtils::HashString("UPPER_BOUND"); + static constexpr uint32_t LOWER_BOUND_HASH = ConstExprHashingUtils::HashString("LOWER_BOUND"); + static constexpr uint32_t SOURCE_DATA_TYPE_HASH = ConstExprHashingUtils::HashString("SOURCE_DATA_TYPE"); + static constexpr uint32_t DESTINATION_DATA_TYPE_HASH = ConstExprHashingUtils::HashString("DESTINATION_DATA_TYPE"); + static constexpr uint32_t VALIDATION_ACTION_HASH = ConstExprHashingUtils::HashString("VALIDATION_ACTION"); + static constexpr uint32_t MASK_VALUE_HASH = ConstExprHashingUtils::HashString("MASK_VALUE"); + static constexpr uint32_t MASK_LENGTH_HASH = ConstExprHashingUtils::HashString("MASK_LENGTH"); + static constexpr uint32_t TRUNCATE_LENGTH_HASH = ConstExprHashingUtils::HashString("TRUNCATE_LENGTH"); + static constexpr uint32_t MATH_OPERATION_FIELDS_ORDER_HASH = ConstExprHashingUtils::HashString("MATH_OPERATION_FIELDS_ORDER"); + static constexpr uint32_t CONCAT_FORMAT_HASH = ConstExprHashingUtils::HashString("CONCAT_FORMAT"); + static constexpr uint32_t SUBFIELD_CATEGORY_MAP_HASH = ConstExprHashingUtils::HashString("SUBFIELD_CATEGORY_MAP"); + static constexpr uint32_t EXCLUDE_SOURCE_FIELDS_LIST_HASH = ConstExprHashingUtils::HashString("EXCLUDE_SOURCE_FIELDS_LIST"); + static constexpr uint32_t INCLUDE_NEW_FIELDS_HASH = ConstExprHashingUtils::HashString("INCLUDE_NEW_FIELDS"); + static constexpr uint32_t ORDERED_PARTITION_KEYS_LIST_HASH = ConstExprHashingUtils::HashString("ORDERED_PARTITION_KEYS_LIST"); OperatorPropertiesKeys GetOperatorPropertiesKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALUE_HASH) { return OperatorPropertiesKeys::VALUE; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/Operators.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/Operators.cpp index 1e2b850c72d..5a24c1b7a2b 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/Operators.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/Operators.cpp @@ -20,32 +20,32 @@ namespace Aws namespace OperatorsMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); Operators GetOperatorsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return Operators::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/PardotConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/PardotConnectorOperator.cpp index 2356e7b2ab9..87a7a8f4e1e 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/PardotConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/PardotConnectorOperator.cpp @@ -20,25 +20,25 @@ namespace Aws namespace PardotConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); PardotConnectorOperator GetPardotConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return PardotConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/PathPrefix.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/PathPrefix.cpp index 42610651618..a52b8175399 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/PathPrefix.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/PathPrefix.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PathPrefixMapper { - static const int EXECUTION_ID_HASH = HashingUtils::HashString("EXECUTION_ID"); - static const int SCHEMA_VERSION_HASH = HashingUtils::HashString("SCHEMA_VERSION"); + static constexpr uint32_t EXECUTION_ID_HASH = ConstExprHashingUtils::HashString("EXECUTION_ID"); + static constexpr uint32_t SCHEMA_VERSION_HASH = ConstExprHashingUtils::HashString("SCHEMA_VERSION"); PathPrefix GetPathPrefixForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXECUTION_ID_HASH) { return PathPrefix::EXECUTION_ID; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/PrefixFormat.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/PrefixFormat.cpp index 625428c9247..68ed6deaf29 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/PrefixFormat.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/PrefixFormat.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PrefixFormatMapper { - static const int YEAR_HASH = HashingUtils::HashString("YEAR"); - static const int MONTH_HASH = HashingUtils::HashString("MONTH"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int MINUTE_HASH = HashingUtils::HashString("MINUTE"); + static constexpr uint32_t YEAR_HASH = ConstExprHashingUtils::HashString("YEAR"); + static constexpr uint32_t MONTH_HASH = ConstExprHashingUtils::HashString("MONTH"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t MINUTE_HASH = ConstExprHashingUtils::HashString("MINUTE"); PrefixFormat GetPrefixFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YEAR_HASH) { return PrefixFormat::YEAR; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/PrefixType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/PrefixType.cpp index b2dcdc76da5..bfa658157f9 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/PrefixType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/PrefixType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PrefixTypeMapper { - static const int FILENAME_HASH = HashingUtils::HashString("FILENAME"); - static const int PATH_HASH = HashingUtils::HashString("PATH"); - static const int PATH_AND_FILENAME_HASH = HashingUtils::HashString("PATH_AND_FILENAME"); + static constexpr uint32_t FILENAME_HASH = ConstExprHashingUtils::HashString("FILENAME"); + static constexpr uint32_t PATH_HASH = ConstExprHashingUtils::HashString("PATH"); + static constexpr uint32_t PATH_AND_FILENAME_HASH = ConstExprHashingUtils::HashString("PATH_AND_FILENAME"); PrefixType GetPrefixTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILENAME_HASH) { return PrefixType::FILENAME; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningFailureCause.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningFailureCause.cpp index db3ea948d38..4c84536821e 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningFailureCause.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningFailureCause.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PrivateConnectionProvisioningFailureCauseMapper { - static const int CONNECTOR_AUTHENTICATION_HASH = HashingUtils::HashString("CONNECTOR_AUTHENTICATION"); - static const int CONNECTOR_SERVER_HASH = HashingUtils::HashString("CONNECTOR_SERVER"); - static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("INTERNAL_SERVER"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int VALIDATION_HASH = HashingUtils::HashString("VALIDATION"); + static constexpr uint32_t CONNECTOR_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("CONNECTOR_AUTHENTICATION"); + static constexpr uint32_t CONNECTOR_SERVER_HASH = ConstExprHashingUtils::HashString("CONNECTOR_SERVER"); + static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t VALIDATION_HASH = ConstExprHashingUtils::HashString("VALIDATION"); PrivateConnectionProvisioningFailureCause GetPrivateConnectionProvisioningFailureCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTOR_AUTHENTICATION_HASH) { return PrivateConnectionProvisioningFailureCause::CONNECTOR_AUTHENTICATION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningStatus.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningStatus.cpp index 74d2bf8075a..d9451517746 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningStatus.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/PrivateConnectionProvisioningStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PrivateConnectionProvisioningStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); PrivateConnectionProvisioningStatus GetPrivateConnectionProvisioningStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return PrivateConnectionProvisioningStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/S3ConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/S3ConnectorOperator.cpp index b8bded3ef15..0bd334b59d5 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/S3ConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/S3ConnectorOperator.cpp @@ -20,31 +20,31 @@ namespace Aws namespace S3ConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); S3ConnectorOperator GetS3ConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return S3ConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/S3InputFileType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/S3InputFileType.cpp index 456a6bfb82e..99973817be7 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/S3InputFileType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/S3InputFileType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3InputFileTypeMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); S3InputFileType GetS3InputFileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return S3InputFileType::CSV; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/SAPODataConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/SAPODataConnectorOperator.cpp index e3f7b71c8ed..6e6ef53087f 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/SAPODataConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/SAPODataConnectorOperator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace SAPODataConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); SAPODataConnectorOperator GetSAPODataConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return SAPODataConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceConnectorOperator.cpp index ad4f95f19ba..3dfc89b36a7 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceConnectorOperator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace SalesforceConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); SalesforceConnectorOperator GetSalesforceConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return SalesforceConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceDataTransferApi.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceDataTransferApi.cpp index d1b3718e08b..a789afdda20 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceDataTransferApi.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/SalesforceDataTransferApi.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SalesforceDataTransferApiMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int BULKV2_HASH = HashingUtils::HashString("BULKV2"); - static const int REST_SYNC_HASH = HashingUtils::HashString("REST_SYNC"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t BULKV2_HASH = ConstExprHashingUtils::HashString("BULKV2"); + static constexpr uint32_t REST_SYNC_HASH = ConstExprHashingUtils::HashString("REST_SYNC"); SalesforceDataTransferApi GetSalesforceDataTransferApiForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return SalesforceDataTransferApi::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ScheduleFrequencyType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ScheduleFrequencyType.cpp index be87f7e9a7b..5f6cf93d1a9 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ScheduleFrequencyType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ScheduleFrequencyType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ScheduleFrequencyTypeMapper { - static const int BYMINUTE_HASH = HashingUtils::HashString("BYMINUTE"); - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); - static const int ONCE_HASH = HashingUtils::HashString("ONCE"); + static constexpr uint32_t BYMINUTE_HASH = ConstExprHashingUtils::HashString("BYMINUTE"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); + static constexpr uint32_t ONCE_HASH = ConstExprHashingUtils::HashString("ONCE"); ScheduleFrequencyType GetScheduleFrequencyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BYMINUTE_HASH) { return ScheduleFrequencyType::BYMINUTE; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ServiceNowConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ServiceNowConnectorOperator.cpp index 9c95a883672..3fe84f7014d 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ServiceNowConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ServiceNowConnectorOperator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace ServiceNowConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); ServiceNowConnectorOperator GetServiceNowConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return ServiceNowConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/SingularConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/SingularConnectorOperator.cpp index cddd4daab30..991d574556c 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/SingularConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/SingularConnectorOperator.cpp @@ -20,25 +20,25 @@ namespace Aws namespace SingularConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); SingularConnectorOperator GetSingularConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return SingularConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/SlackConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/SlackConnectorOperator.cpp index 13c34929600..daff499e9e3 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/SlackConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/SlackConnectorOperator.cpp @@ -20,30 +20,30 @@ namespace Aws namespace SlackConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); SlackConnectorOperator GetSlackConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return SlackConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/SupportedDataTransferType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/SupportedDataTransferType.cpp index ce83b647eb7..62c98b5e7c0 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/SupportedDataTransferType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/SupportedDataTransferType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SupportedDataTransferTypeMapper { - static const int RECORD_HASH = HashingUtils::HashString("RECORD"); - static const int FILE_HASH = HashingUtils::HashString("FILE"); + static constexpr uint32_t RECORD_HASH = ConstExprHashingUtils::HashString("RECORD"); + static constexpr uint32_t FILE_HASH = ConstExprHashingUtils::HashString("FILE"); SupportedDataTransferType GetSupportedDataTransferTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECORD_HASH) { return SupportedDataTransferType::RECORD; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/TaskType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/TaskType.cpp index a9e289c2173..5c2c6de3d70 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/TaskType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/TaskType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace TaskTypeMapper { - static const int Arithmetic_HASH = HashingUtils::HashString("Arithmetic"); - static const int Filter_HASH = HashingUtils::HashString("Filter"); - static const int Map_HASH = HashingUtils::HashString("Map"); - static const int Map_all_HASH = HashingUtils::HashString("Map_all"); - static const int Mask_HASH = HashingUtils::HashString("Mask"); - static const int Merge_HASH = HashingUtils::HashString("Merge"); - static const int Passthrough_HASH = HashingUtils::HashString("Passthrough"); - static const int Truncate_HASH = HashingUtils::HashString("Truncate"); - static const int Validate_HASH = HashingUtils::HashString("Validate"); - static const int Partition_HASH = HashingUtils::HashString("Partition"); + static constexpr uint32_t Arithmetic_HASH = ConstExprHashingUtils::HashString("Arithmetic"); + static constexpr uint32_t Filter_HASH = ConstExprHashingUtils::HashString("Filter"); + static constexpr uint32_t Map_HASH = ConstExprHashingUtils::HashString("Map"); + static constexpr uint32_t Map_all_HASH = ConstExprHashingUtils::HashString("Map_all"); + static constexpr uint32_t Mask_HASH = ConstExprHashingUtils::HashString("Mask"); + static constexpr uint32_t Merge_HASH = ConstExprHashingUtils::HashString("Merge"); + static constexpr uint32_t Passthrough_HASH = ConstExprHashingUtils::HashString("Passthrough"); + static constexpr uint32_t Truncate_HASH = ConstExprHashingUtils::HashString("Truncate"); + static constexpr uint32_t Validate_HASH = ConstExprHashingUtils::HashString("Validate"); + static constexpr uint32_t Partition_HASH = ConstExprHashingUtils::HashString("Partition"); TaskType GetTaskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Arithmetic_HASH) { return TaskType::Arithmetic; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/TrendmicroConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/TrendmicroConnectorOperator.cpp index 42af4609729..bef9b699b9d 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/TrendmicroConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/TrendmicroConnectorOperator.cpp @@ -20,25 +20,25 @@ namespace Aws namespace TrendmicroConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); TrendmicroConnectorOperator GetTrendmicroConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return TrendmicroConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/TriggerType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/TriggerType.cpp index 88b3eb782ad..14ea612eef7 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/TriggerType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/TriggerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TriggerTypeMapper { - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int Event_HASH = HashingUtils::HashString("Event"); - static const int OnDemand_HASH = HashingUtils::HashString("OnDemand"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); + static constexpr uint32_t OnDemand_HASH = ConstExprHashingUtils::HashString("OnDemand"); TriggerType GetTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scheduled_HASH) { return TriggerType::Scheduled; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/VeevaConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/VeevaConnectorOperator.cpp index 82f7a170fd1..7f81ecd75ab 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/VeevaConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/VeevaConnectorOperator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace VeevaConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); VeevaConnectorOperator GetVeevaConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return VeevaConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/WriteOperationType.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/WriteOperationType.cpp index 9b9cd049e28..735b826da05 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/WriteOperationType.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/WriteOperationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WriteOperationTypeMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int UPSERT_HASH = HashingUtils::HashString("UPSERT"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t UPSERT_HASH = ConstExprHashingUtils::HashString("UPSERT"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); WriteOperationType GetWriteOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return WriteOperationType::INSERT; diff --git a/generated/src/aws-cpp-sdk-appflow/source/model/ZendeskConnectorOperator.cpp b/generated/src/aws-cpp-sdk-appflow/source/model/ZendeskConnectorOperator.cpp index 41f2a1110fa..90fa2e75e89 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/model/ZendeskConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/model/ZendeskConnectorOperator.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ZendeskConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); ZendeskConnectorOperator GetZendeskConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return ZendeskConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceErrors.cpp b/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceErrors.cpp index 9a966553616..fe6d4ff5d22 100644 --- a/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceErrors.cpp @@ -18,15 +18,15 @@ namespace AppIntegrationsService namespace AppIntegrationsServiceErrorMapper { -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceError"); -static const int DUPLICATE_RESOURCE_HASH = HashingUtils::HashString("DuplicateResourceException"); -static const int RESOURCE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ResourceQuotaExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); +static constexpr uint32_t DUPLICATE_RESOURCE_HASH = ConstExprHashingUtils::HashString("DuplicateResourceException"); +static constexpr uint32_t RESOURCE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceQuotaExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingErrors.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingErrors.cpp index 157799264e8..b8729ffbaac 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingErrors.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingErrors.cpp @@ -33,18 +33,18 @@ template<> AWS_APPLICATIONAUTOSCALING_API TooManyTagsException ApplicationAutoSc namespace ApplicationAutoScalingErrorMapper { -static const int FAILED_RESOURCE_ACCESS_HASH = HashingUtils::HashString("FailedResourceAccessException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_UPDATE_HASH = HashingUtils::HashString("ConcurrentUpdateException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int OBJECT_NOT_FOUND_HASH = HashingUtils::HashString("ObjectNotFoundException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t FAILED_RESOURCE_ACCESS_HASH = ConstExprHashingUtils::HashString("FailedResourceAccessException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_UPDATE_HASH = ConstExprHashingUtils::HashString("ConcurrentUpdateException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t OBJECT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ObjectNotFoundException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == FAILED_RESOURCE_ACCESS_HASH) { diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/AdjustmentType.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/AdjustmentType.cpp index 6171c6b8c4c..543b16f66de 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/AdjustmentType.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/AdjustmentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AdjustmentTypeMapper { - static const int ChangeInCapacity_HASH = HashingUtils::HashString("ChangeInCapacity"); - static const int PercentChangeInCapacity_HASH = HashingUtils::HashString("PercentChangeInCapacity"); - static const int ExactCapacity_HASH = HashingUtils::HashString("ExactCapacity"); + static constexpr uint32_t ChangeInCapacity_HASH = ConstExprHashingUtils::HashString("ChangeInCapacity"); + static constexpr uint32_t PercentChangeInCapacity_HASH = ConstExprHashingUtils::HashString("PercentChangeInCapacity"); + static constexpr uint32_t ExactCapacity_HASH = ConstExprHashingUtils::HashString("ExactCapacity"); AdjustmentType GetAdjustmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChangeInCapacity_HASH) { return AdjustmentType::ChangeInCapacity; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricAggregationType.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricAggregationType.cpp index 5416ec37c8c..ea07a68b345 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricAggregationType.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricAggregationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MetricAggregationTypeMapper { - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); MetricAggregationType GetMetricAggregationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Average_HASH) { return MetricAggregationType::Average; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricStatistic.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricStatistic.cpp index 2a026b948f9..80bb170afa6 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricStatistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MetricStatisticMapper { - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); MetricStatistic GetMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Average_HASH) { return MetricStatistic::Average; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricType.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricType.cpp index 09ee15092ea..53398be7547 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricType.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/MetricType.cpp @@ -20,34 +20,34 @@ namespace Aws namespace MetricTypeMapper { - static const int DynamoDBReadCapacityUtilization_HASH = HashingUtils::HashString("DynamoDBReadCapacityUtilization"); - static const int DynamoDBWriteCapacityUtilization_HASH = HashingUtils::HashString("DynamoDBWriteCapacityUtilization"); - static const int ALBRequestCountPerTarget_HASH = HashingUtils::HashString("ALBRequestCountPerTarget"); - static const int RDSReaderAverageCPUUtilization_HASH = HashingUtils::HashString("RDSReaderAverageCPUUtilization"); - static const int RDSReaderAverageDatabaseConnections_HASH = HashingUtils::HashString("RDSReaderAverageDatabaseConnections"); - static const int EC2SpotFleetRequestAverageCPUUtilization_HASH = HashingUtils::HashString("EC2SpotFleetRequestAverageCPUUtilization"); - static const int EC2SpotFleetRequestAverageNetworkIn_HASH = HashingUtils::HashString("EC2SpotFleetRequestAverageNetworkIn"); - static const int EC2SpotFleetRequestAverageNetworkOut_HASH = HashingUtils::HashString("EC2SpotFleetRequestAverageNetworkOut"); - static const int SageMakerVariantInvocationsPerInstance_HASH = HashingUtils::HashString("SageMakerVariantInvocationsPerInstance"); - static const int ECSServiceAverageCPUUtilization_HASH = HashingUtils::HashString("ECSServiceAverageCPUUtilization"); - static const int ECSServiceAverageMemoryUtilization_HASH = HashingUtils::HashString("ECSServiceAverageMemoryUtilization"); - static const int AppStreamAverageCapacityUtilization_HASH = HashingUtils::HashString("AppStreamAverageCapacityUtilization"); - static const int ComprehendInferenceUtilization_HASH = HashingUtils::HashString("ComprehendInferenceUtilization"); - static const int LambdaProvisionedConcurrencyUtilization_HASH = HashingUtils::HashString("LambdaProvisionedConcurrencyUtilization"); - static const int CassandraReadCapacityUtilization_HASH = HashingUtils::HashString("CassandraReadCapacityUtilization"); - static const int CassandraWriteCapacityUtilization_HASH = HashingUtils::HashString("CassandraWriteCapacityUtilization"); - static const int KafkaBrokerStorageUtilization_HASH = HashingUtils::HashString("KafkaBrokerStorageUtilization"); - static const int ElastiCachePrimaryEngineCPUUtilization_HASH = HashingUtils::HashString("ElastiCachePrimaryEngineCPUUtilization"); - static const int ElastiCacheReplicaEngineCPUUtilization_HASH = HashingUtils::HashString("ElastiCacheReplicaEngineCPUUtilization"); - static const int ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage_HASH = HashingUtils::HashString("ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage"); - static const int NeptuneReaderAverageCPUUtilization_HASH = HashingUtils::HashString("NeptuneReaderAverageCPUUtilization"); - static const int SageMakerVariantProvisionedConcurrencyUtilization_HASH = HashingUtils::HashString("SageMakerVariantProvisionedConcurrencyUtilization"); - static const int ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage_HASH = HashingUtils::HashString("ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage"); + static constexpr uint32_t DynamoDBReadCapacityUtilization_HASH = ConstExprHashingUtils::HashString("DynamoDBReadCapacityUtilization"); + static constexpr uint32_t DynamoDBWriteCapacityUtilization_HASH = ConstExprHashingUtils::HashString("DynamoDBWriteCapacityUtilization"); + static constexpr uint32_t ALBRequestCountPerTarget_HASH = ConstExprHashingUtils::HashString("ALBRequestCountPerTarget"); + static constexpr uint32_t RDSReaderAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("RDSReaderAverageCPUUtilization"); + static constexpr uint32_t RDSReaderAverageDatabaseConnections_HASH = ConstExprHashingUtils::HashString("RDSReaderAverageDatabaseConnections"); + static constexpr uint32_t EC2SpotFleetRequestAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("EC2SpotFleetRequestAverageCPUUtilization"); + static constexpr uint32_t EC2SpotFleetRequestAverageNetworkIn_HASH = ConstExprHashingUtils::HashString("EC2SpotFleetRequestAverageNetworkIn"); + static constexpr uint32_t EC2SpotFleetRequestAverageNetworkOut_HASH = ConstExprHashingUtils::HashString("EC2SpotFleetRequestAverageNetworkOut"); + static constexpr uint32_t SageMakerVariantInvocationsPerInstance_HASH = ConstExprHashingUtils::HashString("SageMakerVariantInvocationsPerInstance"); + static constexpr uint32_t ECSServiceAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("ECSServiceAverageCPUUtilization"); + static constexpr uint32_t ECSServiceAverageMemoryUtilization_HASH = ConstExprHashingUtils::HashString("ECSServiceAverageMemoryUtilization"); + static constexpr uint32_t AppStreamAverageCapacityUtilization_HASH = ConstExprHashingUtils::HashString("AppStreamAverageCapacityUtilization"); + static constexpr uint32_t ComprehendInferenceUtilization_HASH = ConstExprHashingUtils::HashString("ComprehendInferenceUtilization"); + static constexpr uint32_t LambdaProvisionedConcurrencyUtilization_HASH = ConstExprHashingUtils::HashString("LambdaProvisionedConcurrencyUtilization"); + static constexpr uint32_t CassandraReadCapacityUtilization_HASH = ConstExprHashingUtils::HashString("CassandraReadCapacityUtilization"); + static constexpr uint32_t CassandraWriteCapacityUtilization_HASH = ConstExprHashingUtils::HashString("CassandraWriteCapacityUtilization"); + static constexpr uint32_t KafkaBrokerStorageUtilization_HASH = ConstExprHashingUtils::HashString("KafkaBrokerStorageUtilization"); + static constexpr uint32_t ElastiCachePrimaryEngineCPUUtilization_HASH = ConstExprHashingUtils::HashString("ElastiCachePrimaryEngineCPUUtilization"); + static constexpr uint32_t ElastiCacheReplicaEngineCPUUtilization_HASH = ConstExprHashingUtils::HashString("ElastiCacheReplicaEngineCPUUtilization"); + static constexpr uint32_t ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage_HASH = ConstExprHashingUtils::HashString("ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage"); + static constexpr uint32_t NeptuneReaderAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("NeptuneReaderAverageCPUUtilization"); + static constexpr uint32_t SageMakerVariantProvisionedConcurrencyUtilization_HASH = ConstExprHashingUtils::HashString("SageMakerVariantProvisionedConcurrencyUtilization"); + static constexpr uint32_t ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage_HASH = ConstExprHashingUtils::HashString("ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage"); MetricType GetMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DynamoDBReadCapacityUtilization_HASH) { return MetricType::DynamoDBReadCapacityUtilization; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/PolicyType.cpp index d972eab1856..15b88b50939 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/PolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PolicyTypeMapper { - static const int StepScaling_HASH = HashingUtils::HashString("StepScaling"); - static const int TargetTrackingScaling_HASH = HashingUtils::HashString("TargetTrackingScaling"); + static constexpr uint32_t StepScaling_HASH = ConstExprHashingUtils::HashString("StepScaling"); + static constexpr uint32_t TargetTrackingScaling_HASH = ConstExprHashingUtils::HashString("TargetTrackingScaling"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == StepScaling_HASH) { return PolicyType::StepScaling; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalableDimension.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalableDimension.cpp index d2e56ebca00..4e7bf1ff472 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalableDimension.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalableDimension.cpp @@ -20,32 +20,32 @@ namespace Aws namespace ScalableDimensionMapper { - static const int ecs_service_DesiredCount_HASH = HashingUtils::HashString("ecs:service:DesiredCount"); - static const int ec2_spot_fleet_request_TargetCapacity_HASH = HashingUtils::HashString("ec2:spot-fleet-request:TargetCapacity"); - static const int elasticmapreduce_instancegroup_InstanceCount_HASH = HashingUtils::HashString("elasticmapreduce:instancegroup:InstanceCount"); - static const int appstream_fleet_DesiredCapacity_HASH = HashingUtils::HashString("appstream:fleet:DesiredCapacity"); - static const int dynamodb_table_ReadCapacityUnits_HASH = HashingUtils::HashString("dynamodb:table:ReadCapacityUnits"); - static const int dynamodb_table_WriteCapacityUnits_HASH = HashingUtils::HashString("dynamodb:table:WriteCapacityUnits"); - static const int dynamodb_index_ReadCapacityUnits_HASH = HashingUtils::HashString("dynamodb:index:ReadCapacityUnits"); - static const int dynamodb_index_WriteCapacityUnits_HASH = HashingUtils::HashString("dynamodb:index:WriteCapacityUnits"); - static const int rds_cluster_ReadReplicaCount_HASH = HashingUtils::HashString("rds:cluster:ReadReplicaCount"); - static const int sagemaker_variant_DesiredInstanceCount_HASH = HashingUtils::HashString("sagemaker:variant:DesiredInstanceCount"); - static const int custom_resource_ResourceType_Property_HASH = HashingUtils::HashString("custom-resource:ResourceType:Property"); - static const int comprehend_document_classifier_endpoint_DesiredInferenceUnits_HASH = HashingUtils::HashString("comprehend:document-classifier-endpoint:DesiredInferenceUnits"); - static const int comprehend_entity_recognizer_endpoint_DesiredInferenceUnits_HASH = HashingUtils::HashString("comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"); - static const int lambda_function_ProvisionedConcurrency_HASH = HashingUtils::HashString("lambda:function:ProvisionedConcurrency"); - static const int cassandra_table_ReadCapacityUnits_HASH = HashingUtils::HashString("cassandra:table:ReadCapacityUnits"); - static const int cassandra_table_WriteCapacityUnits_HASH = HashingUtils::HashString("cassandra:table:WriteCapacityUnits"); - static const int kafka_broker_storage_VolumeSize_HASH = HashingUtils::HashString("kafka:broker-storage:VolumeSize"); - static const int elasticache_replication_group_NodeGroups_HASH = HashingUtils::HashString("elasticache:replication-group:NodeGroups"); - static const int elasticache_replication_group_Replicas_HASH = HashingUtils::HashString("elasticache:replication-group:Replicas"); - static const int neptune_cluster_ReadReplicaCount_HASH = HashingUtils::HashString("neptune:cluster:ReadReplicaCount"); - static const int sagemaker_variant_DesiredProvisionedConcurrency_HASH = HashingUtils::HashString("sagemaker:variant:DesiredProvisionedConcurrency"); + static constexpr uint32_t ecs_service_DesiredCount_HASH = ConstExprHashingUtils::HashString("ecs:service:DesiredCount"); + static constexpr uint32_t ec2_spot_fleet_request_TargetCapacity_HASH = ConstExprHashingUtils::HashString("ec2:spot-fleet-request:TargetCapacity"); + static constexpr uint32_t elasticmapreduce_instancegroup_InstanceCount_HASH = ConstExprHashingUtils::HashString("elasticmapreduce:instancegroup:InstanceCount"); + static constexpr uint32_t appstream_fleet_DesiredCapacity_HASH = ConstExprHashingUtils::HashString("appstream:fleet:DesiredCapacity"); + static constexpr uint32_t dynamodb_table_ReadCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:table:ReadCapacityUnits"); + static constexpr uint32_t dynamodb_table_WriteCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:table:WriteCapacityUnits"); + static constexpr uint32_t dynamodb_index_ReadCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:index:ReadCapacityUnits"); + static constexpr uint32_t dynamodb_index_WriteCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:index:WriteCapacityUnits"); + static constexpr uint32_t rds_cluster_ReadReplicaCount_HASH = ConstExprHashingUtils::HashString("rds:cluster:ReadReplicaCount"); + static constexpr uint32_t sagemaker_variant_DesiredInstanceCount_HASH = ConstExprHashingUtils::HashString("sagemaker:variant:DesiredInstanceCount"); + static constexpr uint32_t custom_resource_ResourceType_Property_HASH = ConstExprHashingUtils::HashString("custom-resource:ResourceType:Property"); + static constexpr uint32_t comprehend_document_classifier_endpoint_DesiredInferenceUnits_HASH = ConstExprHashingUtils::HashString("comprehend:document-classifier-endpoint:DesiredInferenceUnits"); + static constexpr uint32_t comprehend_entity_recognizer_endpoint_DesiredInferenceUnits_HASH = ConstExprHashingUtils::HashString("comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"); + static constexpr uint32_t lambda_function_ProvisionedConcurrency_HASH = ConstExprHashingUtils::HashString("lambda:function:ProvisionedConcurrency"); + static constexpr uint32_t cassandra_table_ReadCapacityUnits_HASH = ConstExprHashingUtils::HashString("cassandra:table:ReadCapacityUnits"); + static constexpr uint32_t cassandra_table_WriteCapacityUnits_HASH = ConstExprHashingUtils::HashString("cassandra:table:WriteCapacityUnits"); + static constexpr uint32_t kafka_broker_storage_VolumeSize_HASH = ConstExprHashingUtils::HashString("kafka:broker-storage:VolumeSize"); + static constexpr uint32_t elasticache_replication_group_NodeGroups_HASH = ConstExprHashingUtils::HashString("elasticache:replication-group:NodeGroups"); + static constexpr uint32_t elasticache_replication_group_Replicas_HASH = ConstExprHashingUtils::HashString("elasticache:replication-group:Replicas"); + static constexpr uint32_t neptune_cluster_ReadReplicaCount_HASH = ConstExprHashingUtils::HashString("neptune:cluster:ReadReplicaCount"); + static constexpr uint32_t sagemaker_variant_DesiredProvisionedConcurrency_HASH = ConstExprHashingUtils::HashString("sagemaker:variant:DesiredProvisionedConcurrency"); ScalableDimension GetScalableDimensionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ecs_service_DesiredCount_HASH) { return ScalableDimension::ecs_service_DesiredCount; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalingActivityStatusCode.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalingActivityStatusCode.cpp index a10ed116c10..4f03c757b62 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalingActivityStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ScalingActivityStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ScalingActivityStatusCodeMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Overridden_HASH = HashingUtils::HashString("Overridden"); - static const int Unfulfilled_HASH = HashingUtils::HashString("Unfulfilled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Overridden_HASH = ConstExprHashingUtils::HashString("Overridden"); + static constexpr uint32_t Unfulfilled_HASH = ConstExprHashingUtils::HashString("Unfulfilled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ScalingActivityStatusCode GetScalingActivityStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ScalingActivityStatusCode::Pending; diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ServiceNamespace.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ServiceNamespace.cpp index efdcf5b265a..f99169346f5 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ServiceNamespace.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/model/ServiceNamespace.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ServiceNamespaceMapper { - static const int ecs_HASH = HashingUtils::HashString("ecs"); - static const int elasticmapreduce_HASH = HashingUtils::HashString("elasticmapreduce"); - static const int ec2_HASH = HashingUtils::HashString("ec2"); - static const int appstream_HASH = HashingUtils::HashString("appstream"); - static const int dynamodb_HASH = HashingUtils::HashString("dynamodb"); - static const int rds_HASH = HashingUtils::HashString("rds"); - static const int sagemaker_HASH = HashingUtils::HashString("sagemaker"); - static const int custom_resource_HASH = HashingUtils::HashString("custom-resource"); - static const int comprehend_HASH = HashingUtils::HashString("comprehend"); - static const int lambda_HASH = HashingUtils::HashString("lambda"); - static const int cassandra_HASH = HashingUtils::HashString("cassandra"); - static const int kafka_HASH = HashingUtils::HashString("kafka"); - static const int elasticache_HASH = HashingUtils::HashString("elasticache"); - static const int neptune_HASH = HashingUtils::HashString("neptune"); + static constexpr uint32_t ecs_HASH = ConstExprHashingUtils::HashString("ecs"); + static constexpr uint32_t elasticmapreduce_HASH = ConstExprHashingUtils::HashString("elasticmapreduce"); + static constexpr uint32_t ec2_HASH = ConstExprHashingUtils::HashString("ec2"); + static constexpr uint32_t appstream_HASH = ConstExprHashingUtils::HashString("appstream"); + static constexpr uint32_t dynamodb_HASH = ConstExprHashingUtils::HashString("dynamodb"); + static constexpr uint32_t rds_HASH = ConstExprHashingUtils::HashString("rds"); + static constexpr uint32_t sagemaker_HASH = ConstExprHashingUtils::HashString("sagemaker"); + static constexpr uint32_t custom_resource_HASH = ConstExprHashingUtils::HashString("custom-resource"); + static constexpr uint32_t comprehend_HASH = ConstExprHashingUtils::HashString("comprehend"); + static constexpr uint32_t lambda_HASH = ConstExprHashingUtils::HashString("lambda"); + static constexpr uint32_t cassandra_HASH = ConstExprHashingUtils::HashString("cassandra"); + static constexpr uint32_t kafka_HASH = ConstExprHashingUtils::HashString("kafka"); + static constexpr uint32_t elasticache_HASH = ConstExprHashingUtils::HashString("elasticache"); + static constexpr uint32_t neptune_HASH = ConstExprHashingUtils::HashString("neptune"); ServiceNamespace GetServiceNamespaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ecs_HASH) { return ServiceNamespace::ecs; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsErrors.cpp b/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsErrors.cpp index 19c3666ce51..0423228f32d 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsErrors.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_APPLICATIONINSIGHTS_API TooManyTagsException ApplicationInsightsE namespace ApplicationInsightsErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TAGS_ALREADY_EXIST_HASH = HashingUtils::HashString("TagsAlreadyExistException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TAGS_ALREADY_EXIST_HASH = ConstExprHashingUtils::HashString("TagsAlreadyExistException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/CloudWatchEventSource.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/CloudWatchEventSource.cpp index ad9a078a845..90d230a0ad7 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/CloudWatchEventSource.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/CloudWatchEventSource.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CloudWatchEventSourceMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int CODE_DEPLOY_HASH = HashingUtils::HashString("CODE_DEPLOY"); - static const int HEALTH_HASH = HashingUtils::HashString("HEALTH"); - static const int RDS_HASH = HashingUtils::HashString("RDS"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t CODE_DEPLOY_HASH = ConstExprHashingUtils::HashString("CODE_DEPLOY"); + static constexpr uint32_t HEALTH_HASH = ConstExprHashingUtils::HashString("HEALTH"); + static constexpr uint32_t RDS_HASH = ConstExprHashingUtils::HashString("RDS"); CloudWatchEventSource GetCloudWatchEventSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return CloudWatchEventSource::EC2; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventResourceType.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventResourceType.cpp index e3466755c72..6bfde27fdd9 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventResourceType.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConfigurationEventResourceTypeMapper { - static const int CLOUDWATCH_ALARM_HASH = HashingUtils::HashString("CLOUDWATCH_ALARM"); - static const int CLOUDWATCH_LOG_HASH = HashingUtils::HashString("CLOUDWATCH_LOG"); - static const int CLOUDFORMATION_HASH = HashingUtils::HashString("CLOUDFORMATION"); - static const int SSM_ASSOCIATION_HASH = HashingUtils::HashString("SSM_ASSOCIATION"); + static constexpr uint32_t CLOUDWATCH_ALARM_HASH = ConstExprHashingUtils::HashString("CLOUDWATCH_ALARM"); + static constexpr uint32_t CLOUDWATCH_LOG_HASH = ConstExprHashingUtils::HashString("CLOUDWATCH_LOG"); + static constexpr uint32_t CLOUDFORMATION_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION"); + static constexpr uint32_t SSM_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("SSM_ASSOCIATION"); ConfigurationEventResourceType GetConfigurationEventResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDWATCH_ALARM_HASH) { return ConfigurationEventResourceType::CLOUDWATCH_ALARM; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventStatus.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventStatus.cpp index e99cfefd4f5..1374abcf5f3 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventStatus.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/ConfigurationEventStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigurationEventStatusMapper { - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ConfigurationEventStatus GetConfigurationEventStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFO_HASH) { return ConfigurationEventStatus::INFO; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/DiscoveryType.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/DiscoveryType.cpp index 3caf2e0df5f..374c07fbc15 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/DiscoveryType.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/DiscoveryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DiscoveryTypeMapper { - static const int RESOURCE_GROUP_BASED_HASH = HashingUtils::HashString("RESOURCE_GROUP_BASED"); - static const int ACCOUNT_BASED_HASH = HashingUtils::HashString("ACCOUNT_BASED"); + static constexpr uint32_t RESOURCE_GROUP_BASED_HASH = ConstExprHashingUtils::HashString("RESOURCE_GROUP_BASED"); + static constexpr uint32_t ACCOUNT_BASED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_BASED"); DiscoveryType GetDiscoveryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_GROUP_BASED_HASH) { return DiscoveryType::RESOURCE_GROUP_BASED; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackKey.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackKey.cpp index 20ce0cce476..42fa1f96ef6 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackKey.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FeedbackKeyMapper { - static const int INSIGHTS_FEEDBACK_HASH = HashingUtils::HashString("INSIGHTS_FEEDBACK"); + static constexpr uint32_t INSIGHTS_FEEDBACK_HASH = ConstExprHashingUtils::HashString("INSIGHTS_FEEDBACK"); FeedbackKey GetFeedbackKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSIGHTS_FEEDBACK_HASH) { return FeedbackKey::INSIGHTS_FEEDBACK; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackValue.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackValue.cpp index bbd95c7321f..f13070fcb6a 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackValue.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/FeedbackValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FeedbackValueMapper { - static const int NOT_SPECIFIED_HASH = HashingUtils::HashString("NOT_SPECIFIED"); - static const int USEFUL_HASH = HashingUtils::HashString("USEFUL"); - static const int NOT_USEFUL_HASH = HashingUtils::HashString("NOT_USEFUL"); + static constexpr uint32_t NOT_SPECIFIED_HASH = ConstExprHashingUtils::HashString("NOT_SPECIFIED"); + static constexpr uint32_t USEFUL_HASH = ConstExprHashingUtils::HashString("USEFUL"); + static constexpr uint32_t NOT_USEFUL_HASH = ConstExprHashingUtils::HashString("NOT_USEFUL"); FeedbackValue GetFeedbackValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_SPECIFIED_HASH) { return FeedbackValue::NOT_SPECIFIED; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/GroupingType.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/GroupingType.cpp index c4a8f404063..7f1988f868d 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/GroupingType.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/GroupingType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GroupingTypeMapper { - static const int ACCOUNT_BASED_HASH = HashingUtils::HashString("ACCOUNT_BASED"); + static constexpr uint32_t ACCOUNT_BASED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_BASED"); GroupingType GetGroupingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_BASED_HASH) { return GroupingType::ACCOUNT_BASED; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/LogFilter.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/LogFilter.cpp index 259a21c1803..3f1759a989a 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/LogFilter.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/LogFilter.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LogFilterMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); LogFilter GetLogFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LogFilter::ERROR_; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/OsType.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/OsType.cpp index aadd6d08938..4dd3cf0e42a 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/OsType.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/OsType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OsTypeMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); OsType GetOsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return OsType::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/RecommendationType.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/RecommendationType.cpp index c5f6df82ff9..ba815864373 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/RecommendationType.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/RecommendationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecommendationTypeMapper { - static const int INFRA_ONLY_HASH = HashingUtils::HashString("INFRA_ONLY"); - static const int WORKLOAD_ONLY_HASH = HashingUtils::HashString("WORKLOAD_ONLY"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t INFRA_ONLY_HASH = ConstExprHashingUtils::HashString("INFRA_ONLY"); + static constexpr uint32_t WORKLOAD_ONLY_HASH = ConstExprHashingUtils::HashString("WORKLOAD_ONLY"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); RecommendationType GetRecommendationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFRA_ONLY_HASH) { return RecommendationType::INFRA_ONLY; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/ResolutionMethod.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/ResolutionMethod.cpp index 1f49dd1db1b..9675b392fe7 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/ResolutionMethod.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/ResolutionMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResolutionMethodMapper { - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int UNRESOLVED_HASH = HashingUtils::HashString("UNRESOLVED"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t UNRESOLVED_HASH = ConstExprHashingUtils::HashString("UNRESOLVED"); ResolutionMethod GetResolutionMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANUAL_HASH) { return ResolutionMethod::MANUAL; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/SeverityLevel.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/SeverityLevel.cpp index 2c820b2cc63..1473017a5bc 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/SeverityLevel.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/SeverityLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SeverityLevelMapper { - static const int Informative_HASH = HashingUtils::HashString("Informative"); - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); + static constexpr uint32_t Informative_HASH = ConstExprHashingUtils::HashString("Informative"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); SeverityLevel GetSeverityLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Informative_HASH) { return SeverityLevel::Informative; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/Status.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/Status.cpp index 965b01b4fa2..5f13d2b006d 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/Status.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatusMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RECURRING_HASH = HashingUtils::HashString("RECURRING"); - static const int RECOVERING_HASH = HashingUtils::HashString("RECOVERING"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RECURRING_HASH = ConstExprHashingUtils::HashString("RECURRING"); + static constexpr uint32_t RECOVERING_HASH = ConstExprHashingUtils::HashString("RECOVERING"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return Status::IGNORE; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/Tier.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/Tier.cpp index 89b43dbd74e..5466fd201e7 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/Tier.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/Tier.cpp @@ -20,32 +20,32 @@ namespace Aws namespace TierMapper { - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int DOT_NET_CORE_HASH = HashingUtils::HashString("DOT_NET_CORE"); - static const int DOT_NET_WORKER_HASH = HashingUtils::HashString("DOT_NET_WORKER"); - static const int DOT_NET_WEB_TIER_HASH = HashingUtils::HashString("DOT_NET_WEB_TIER"); - static const int DOT_NET_WEB_HASH = HashingUtils::HashString("DOT_NET_WEB"); - static const int SQL_SERVER_HASH = HashingUtils::HashString("SQL_SERVER"); - static const int SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP_HASH = HashingUtils::HashString("SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP"); - static const int MYSQL_HASH = HashingUtils::HashString("MYSQL"); - static const int POSTGRESQL_HASH = HashingUtils::HashString("POSTGRESQL"); - static const int JAVA_JMX_HASH = HashingUtils::HashString("JAVA_JMX"); - static const int ORACLE_HASH = HashingUtils::HashString("ORACLE"); - static const int SAP_HANA_MULTI_NODE_HASH = HashingUtils::HashString("SAP_HANA_MULTI_NODE"); - static const int SAP_HANA_SINGLE_NODE_HASH = HashingUtils::HashString("SAP_HANA_SINGLE_NODE"); - static const int SAP_HANA_HIGH_AVAILABILITY_HASH = HashingUtils::HashString("SAP_HANA_HIGH_AVAILABILITY"); - static const int SQL_SERVER_FAILOVER_CLUSTER_INSTANCE_HASH = HashingUtils::HashString("SQL_SERVER_FAILOVER_CLUSTER_INSTANCE"); - static const int SHAREPOINT_HASH = HashingUtils::HashString("SHAREPOINT"); - static const int ACTIVE_DIRECTORY_HASH = HashingUtils::HashString("ACTIVE_DIRECTORY"); - static const int SAP_NETWEAVER_STANDARD_HASH = HashingUtils::HashString("SAP_NETWEAVER_STANDARD"); - static const int SAP_NETWEAVER_DISTRIBUTED_HASH = HashingUtils::HashString("SAP_NETWEAVER_DISTRIBUTED"); - static const int SAP_NETWEAVER_HIGH_AVAILABILITY_HASH = HashingUtils::HashString("SAP_NETWEAVER_HIGH_AVAILABILITY"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t DOT_NET_CORE_HASH = ConstExprHashingUtils::HashString("DOT_NET_CORE"); + static constexpr uint32_t DOT_NET_WORKER_HASH = ConstExprHashingUtils::HashString("DOT_NET_WORKER"); + static constexpr uint32_t DOT_NET_WEB_TIER_HASH = ConstExprHashingUtils::HashString("DOT_NET_WEB_TIER"); + static constexpr uint32_t DOT_NET_WEB_HASH = ConstExprHashingUtils::HashString("DOT_NET_WEB"); + static constexpr uint32_t SQL_SERVER_HASH = ConstExprHashingUtils::HashString("SQL_SERVER"); + static constexpr uint32_t SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP_HASH = ConstExprHashingUtils::HashString("SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP"); + static constexpr uint32_t MYSQL_HASH = ConstExprHashingUtils::HashString("MYSQL"); + static constexpr uint32_t POSTGRESQL_HASH = ConstExprHashingUtils::HashString("POSTGRESQL"); + static constexpr uint32_t JAVA_JMX_HASH = ConstExprHashingUtils::HashString("JAVA_JMX"); + static constexpr uint32_t ORACLE_HASH = ConstExprHashingUtils::HashString("ORACLE"); + static constexpr uint32_t SAP_HANA_MULTI_NODE_HASH = ConstExprHashingUtils::HashString("SAP_HANA_MULTI_NODE"); + static constexpr uint32_t SAP_HANA_SINGLE_NODE_HASH = ConstExprHashingUtils::HashString("SAP_HANA_SINGLE_NODE"); + static constexpr uint32_t SAP_HANA_HIGH_AVAILABILITY_HASH = ConstExprHashingUtils::HashString("SAP_HANA_HIGH_AVAILABILITY"); + static constexpr uint32_t SQL_SERVER_FAILOVER_CLUSTER_INSTANCE_HASH = ConstExprHashingUtils::HashString("SQL_SERVER_FAILOVER_CLUSTER_INSTANCE"); + static constexpr uint32_t SHAREPOINT_HASH = ConstExprHashingUtils::HashString("SHAREPOINT"); + static constexpr uint32_t ACTIVE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("ACTIVE_DIRECTORY"); + static constexpr uint32_t SAP_NETWEAVER_STANDARD_HASH = ConstExprHashingUtils::HashString("SAP_NETWEAVER_STANDARD"); + static constexpr uint32_t SAP_NETWEAVER_DISTRIBUTED_HASH = ConstExprHashingUtils::HashString("SAP_NETWEAVER_DISTRIBUTED"); + static constexpr uint32_t SAP_NETWEAVER_HIGH_AVAILABILITY_HASH = ConstExprHashingUtils::HashString("SAP_NETWEAVER_HIGH_AVAILABILITY"); Tier GetTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOM_HASH) { return Tier::CUSTOM; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/UpdateStatus.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/UpdateStatus.cpp index a5bdb2621a2..c073b413365 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/UpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/UpdateStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UpdateStatusMapper { - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); UpdateStatus GetUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOLVED_HASH) { return UpdateStatus::RESOLVED; diff --git a/generated/src/aws-cpp-sdk-application-insights/source/model/Visibility.cpp b/generated/src/aws-cpp-sdk-application-insights/source/model/Visibility.cpp index 6130745b970..4bdccba71ed 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/model/Visibility.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/model/Visibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VisibilityMapper { - static const int IGNORED_HASH = HashingUtils::HashString("IGNORED"); - static const int VISIBLE_HASH = HashingUtils::HashString("VISIBLE"); + static constexpr uint32_t IGNORED_HASH = ConstExprHashingUtils::HashString("IGNORED"); + static constexpr uint32_t VISIBLE_HASH = ConstExprHashingUtils::HashString("VISIBLE"); Visibility GetVisibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORED_HASH) { return Visibility::IGNORED; diff --git a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerErrors.cpp b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerErrors.cpp index cd53b0bf0cd..0e0ac81bc61 100644 --- a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerErrors.cpp +++ b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerErrors.cpp @@ -18,13 +18,13 @@ namespace ApplicationCostProfiler namespace ApplicationCostProfilerErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/Format.cpp b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/Format.cpp index ed837a60971..0531c2c5374 100644 --- a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/Format.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return Format::CSV; diff --git a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/ReportFrequency.cpp b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/ReportFrequency.cpp index 3c92d038793..63d18753266 100644 --- a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/ReportFrequency.cpp +++ b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/ReportFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReportFrequencyMapper { - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ReportFrequency GetReportFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONTHLY_HASH) { return ReportFrequency::MONTHLY; diff --git a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/S3BucketRegion.cpp b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/S3BucketRegion.cpp index 6089fa7b05f..d9460c972a0 100644 --- a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/S3BucketRegion.cpp +++ b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/model/S3BucketRegion.cpp @@ -20,15 +20,15 @@ namespace Aws namespace S3BucketRegionMapper { - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); S3BucketRegion GetS3BucketRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ap_east_1_HASH) { return S3BucketRegion::ap_east_1; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/AppMeshErrors.cpp b/generated/src/aws-cpp-sdk-appmesh/source/AppMeshErrors.cpp index 96ce5ddd1ef..db05095811a 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/AppMeshErrors.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/AppMeshErrors.cpp @@ -18,20 +18,20 @@ namespace AppMesh namespace AppMeshErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/DefaultGatewayRouteRewrite.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/DefaultGatewayRouteRewrite.cpp index 69b47c0c9db..f8b4f3f6f3d 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/DefaultGatewayRouteRewrite.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/DefaultGatewayRouteRewrite.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultGatewayRouteRewriteMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DefaultGatewayRouteRewrite GetDefaultGatewayRouteRewriteForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DefaultGatewayRouteRewrite::ENABLED; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/DnsResponseType.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/DnsResponseType.cpp index 5c49c60cca0..0c510c07814 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/DnsResponseType.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/DnsResponseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DnsResponseTypeMapper { - static const int LOADBALANCER_HASH = HashingUtils::HashString("LOADBALANCER"); - static const int ENDPOINTS_HASH = HashingUtils::HashString("ENDPOINTS"); + static constexpr uint32_t LOADBALANCER_HASH = ConstExprHashingUtils::HashString("LOADBALANCER"); + static constexpr uint32_t ENDPOINTS_HASH = ConstExprHashingUtils::HashString("ENDPOINTS"); DnsResponseType GetDnsResponseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOADBALANCER_HASH) { return DnsResponseType::LOADBALANCER; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/DurationUnit.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/DurationUnit.cpp index 06b8aa8473e..8566d5a9259 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/DurationUnit.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/DurationUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DurationUnitMapper { - static const int s_HASH = HashingUtils::HashString("s"); - static const int ms_HASH = HashingUtils::HashString("ms"); + static constexpr uint32_t s_HASH = ConstExprHashingUtils::HashString("s"); + static constexpr uint32_t ms_HASH = ConstExprHashingUtils::HashString("ms"); DurationUnit GetDurationUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s_HASH) { return DurationUnit::s; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/EgressFilterType.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/EgressFilterType.cpp index 4a2126c1d41..9b0ed947079 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/EgressFilterType.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/EgressFilterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EgressFilterTypeMapper { - static const int ALLOW_ALL_HASH = HashingUtils::HashString("ALLOW_ALL"); - static const int DROP_ALL_HASH = HashingUtils::HashString("DROP_ALL"); + static constexpr uint32_t ALLOW_ALL_HASH = ConstExprHashingUtils::HashString("ALLOW_ALL"); + static constexpr uint32_t DROP_ALL_HASH = ConstExprHashingUtils::HashString("DROP_ALL"); EgressFilterType GetEgressFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_ALL_HASH) { return EgressFilterType::ALLOW_ALL; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/GatewayRouteStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/GatewayRouteStatusCode.cpp index 4d1c09914d3..3dca6657c57 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/GatewayRouteStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/GatewayRouteStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GatewayRouteStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); GatewayRouteStatusCode GetGatewayRouteStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return GatewayRouteStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/GrpcRetryPolicyEvent.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/GrpcRetryPolicyEvent.cpp index adca3204e32..5db8734b3b7 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/GrpcRetryPolicyEvent.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/GrpcRetryPolicyEvent.cpp @@ -20,16 +20,16 @@ namespace Aws namespace GrpcRetryPolicyEventMapper { - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int deadline_exceeded_HASH = HashingUtils::HashString("deadline-exceeded"); - static const int internal_HASH = HashingUtils::HashString("internal"); - static const int resource_exhausted_HASH = HashingUtils::HashString("resource-exhausted"); - static const int unavailable_HASH = HashingUtils::HashString("unavailable"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t deadline_exceeded_HASH = ConstExprHashingUtils::HashString("deadline-exceeded"); + static constexpr uint32_t internal_HASH = ConstExprHashingUtils::HashString("internal"); + static constexpr uint32_t resource_exhausted_HASH = ConstExprHashingUtils::HashString("resource-exhausted"); + static constexpr uint32_t unavailable_HASH = ConstExprHashingUtils::HashString("unavailable"); GrpcRetryPolicyEvent GetGrpcRetryPolicyEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cancelled_HASH) { return GrpcRetryPolicyEvent::cancelled; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/HttpMethod.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/HttpMethod.cpp index 4f2002dd2f1..bcfaf10f004 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/HttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/HttpMethod.cpp @@ -20,20 +20,20 @@ namespace Aws namespace HttpMethodMapper { - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int CONNECT_HASH = HashingUtils::HashString("CONNECT"); - static const int OPTIONS_HASH = HashingUtils::HashString("OPTIONS"); - static const int TRACE_HASH = HashingUtils::HashString("TRACE"); - static const int PATCH_HASH = HashingUtils::HashString("PATCH"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t CONNECT_HASH = ConstExprHashingUtils::HashString("CONNECT"); + static constexpr uint32_t OPTIONS_HASH = ConstExprHashingUtils::HashString("OPTIONS"); + static constexpr uint32_t TRACE_HASH = ConstExprHashingUtils::HashString("TRACE"); + static constexpr uint32_t PATCH_HASH = ConstExprHashingUtils::HashString("PATCH"); HttpMethod GetHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GET__HASH) { return HttpMethod::GET_; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/HttpScheme.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/HttpScheme.cpp index 6356e94cd42..e3075434b29 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/HttpScheme.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/HttpScheme.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpSchemeMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int https_HASH = HashingUtils::HashString("https"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t https_HASH = ConstExprHashingUtils::HashString("https"); HttpScheme GetHttpSchemeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return HttpScheme::http; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/IpPreference.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/IpPreference.cpp index a5951fe3b79..ef5ca900dff 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/IpPreference.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/IpPreference.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IpPreferenceMapper { - static const int IPv6_PREFERRED_HASH = HashingUtils::HashString("IPv6_PREFERRED"); - static const int IPv4_PREFERRED_HASH = HashingUtils::HashString("IPv4_PREFERRED"); - static const int IPv4_ONLY_HASH = HashingUtils::HashString("IPv4_ONLY"); - static const int IPv6_ONLY_HASH = HashingUtils::HashString("IPv6_ONLY"); + static constexpr uint32_t IPv6_PREFERRED_HASH = ConstExprHashingUtils::HashString("IPv6_PREFERRED"); + static constexpr uint32_t IPv4_PREFERRED_HASH = ConstExprHashingUtils::HashString("IPv4_PREFERRED"); + static constexpr uint32_t IPv4_ONLY_HASH = ConstExprHashingUtils::HashString("IPv4_ONLY"); + static constexpr uint32_t IPv6_ONLY_HASH = ConstExprHashingUtils::HashString("IPv6_ONLY"); IpPreference GetIpPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPv6_PREFERRED_HASH) { return IpPreference::IPv6_PREFERRED; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/ListenerTlsMode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/ListenerTlsMode.cpp index 8f70ff32350..7ee6b5ddbc9 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/ListenerTlsMode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/ListenerTlsMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListenerTlsModeMapper { - static const int STRICT_HASH = HashingUtils::HashString("STRICT"); - static const int PERMISSIVE_HASH = HashingUtils::HashString("PERMISSIVE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t STRICT_HASH = ConstExprHashingUtils::HashString("STRICT"); + static constexpr uint32_t PERMISSIVE_HASH = ConstExprHashingUtils::HashString("PERMISSIVE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ListenerTlsMode GetListenerTlsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRICT_HASH) { return ListenerTlsMode::STRICT; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/MeshStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/MeshStatusCode.cpp index f12ec9918ef..e6b9e948b50 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/MeshStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/MeshStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MeshStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); MeshStatusCode GetMeshStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return MeshStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/PortProtocol.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/PortProtocol.cpp index 2ff5057e68f..33b05108af7 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/PortProtocol.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/PortProtocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PortProtocolMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int tcp_HASH = HashingUtils::HashString("tcp"); - static const int http2_HASH = HashingUtils::HashString("http2"); - static const int grpc_HASH = HashingUtils::HashString("grpc"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t tcp_HASH = ConstExprHashingUtils::HashString("tcp"); + static constexpr uint32_t http2_HASH = ConstExprHashingUtils::HashString("http2"); + static constexpr uint32_t grpc_HASH = ConstExprHashingUtils::HashString("grpc"); PortProtocol GetPortProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return PortProtocol::http; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/RouteStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/RouteStatusCode.cpp index ca2a87c9ea5..ee2dcec60ea 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/RouteStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/RouteStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RouteStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); RouteStatusCode GetRouteStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RouteStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/TcpRetryPolicyEvent.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/TcpRetryPolicyEvent.cpp index c7b3f681af2..92acfa7657d 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/TcpRetryPolicyEvent.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/TcpRetryPolicyEvent.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TcpRetryPolicyEventMapper { - static const int connection_error_HASH = HashingUtils::HashString("connection-error"); + static constexpr uint32_t connection_error_HASH = ConstExprHashingUtils::HashString("connection-error"); TcpRetryPolicyEvent GetTcpRetryPolicyEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == connection_error_HASH) { return TcpRetryPolicyEvent::connection_error; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayListenerTlsMode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayListenerTlsMode.cpp index 1332ea654f4..eed1ef029ef 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayListenerTlsMode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayListenerTlsMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VirtualGatewayListenerTlsModeMapper { - static const int STRICT_HASH = HashingUtils::HashString("STRICT"); - static const int PERMISSIVE_HASH = HashingUtils::HashString("PERMISSIVE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t STRICT_HASH = ConstExprHashingUtils::HashString("STRICT"); + static constexpr uint32_t PERMISSIVE_HASH = ConstExprHashingUtils::HashString("PERMISSIVE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); VirtualGatewayListenerTlsMode GetVirtualGatewayListenerTlsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRICT_HASH) { return VirtualGatewayListenerTlsMode::STRICT; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayPortProtocol.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayPortProtocol.cpp index a48e782b1d0..f3c4386be47 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayPortProtocol.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayPortProtocol.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VirtualGatewayPortProtocolMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int http2_HASH = HashingUtils::HashString("http2"); - static const int grpc_HASH = HashingUtils::HashString("grpc"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t http2_HASH = ConstExprHashingUtils::HashString("http2"); + static constexpr uint32_t grpc_HASH = ConstExprHashingUtils::HashString("grpc"); VirtualGatewayPortProtocol GetVirtualGatewayPortProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return VirtualGatewayPortProtocol::http; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayStatusCode.cpp index a9abb2bebf7..029eff46f93 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualGatewayStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VirtualGatewayStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VirtualGatewayStatusCode GetVirtualGatewayStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return VirtualGatewayStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualNodeStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualNodeStatusCode.cpp index b5a5f79b180..a185d987823 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualNodeStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualNodeStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VirtualNodeStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VirtualNodeStatusCode GetVirtualNodeStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return VirtualNodeStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualRouterStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualRouterStatusCode.cpp index c6039ee6d01..eba519bdae9 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualRouterStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualRouterStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VirtualRouterStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VirtualRouterStatusCode GetVirtualRouterStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return VirtualRouterStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualServiceStatusCode.cpp b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualServiceStatusCode.cpp index 3d16027f1ef..4ca3cf62af0 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualServiceStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/model/VirtualServiceStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VirtualServiceStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VirtualServiceStatusCode GetVirtualServiceStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return VirtualServiceStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerErrors.cpp b/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerErrors.cpp index 1068a2e00b0..5fb9b3f5d79 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerErrors.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerErrors.cpp @@ -18,15 +18,15 @@ namespace AppRunner namespace AppRunnerErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/AutoScalingConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/AutoScalingConfigurationStatus.cpp index 56b8cb4ea86..1c6e0e4e7ef 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/AutoScalingConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/AutoScalingConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoScalingConfigurationStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AutoScalingConfigurationStatus GetAutoScalingConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AutoScalingConfigurationStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/CertificateValidationRecordStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/CertificateValidationRecordStatus.cpp index 04339327986..83685463ef8 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/CertificateValidationRecordStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/CertificateValidationRecordStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CertificateValidationRecordStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CertificateValidationRecordStatus GetCertificateValidationRecordStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return CertificateValidationRecordStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/ConfigurationSource.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/ConfigurationSource.cpp index a885c1aa769..4ea2f702da5 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/ConfigurationSource.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/ConfigurationSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigurationSourceMapper { - static const int REPOSITORY_HASH = HashingUtils::HashString("REPOSITORY"); - static const int API_HASH = HashingUtils::HashString("API"); + static constexpr uint32_t REPOSITORY_HASH = ConstExprHashingUtils::HashString("REPOSITORY"); + static constexpr uint32_t API_HASH = ConstExprHashingUtils::HashString("API"); ConfigurationSource GetConfigurationSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPOSITORY_HASH) { return ConfigurationSource::REPOSITORY; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/ConnectionStatus.cpp index f262035d675..f94a4c0ccb0 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/ConnectionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConnectionStatusMapper { - static const int PENDING_HANDSHAKE_HASH = HashingUtils::HashString("PENDING_HANDSHAKE"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HANDSHAKE_HASH = ConstExprHashingUtils::HashString("PENDING_HANDSHAKE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HANDSHAKE_HASH) { return ConnectionStatus::PENDING_HANDSHAKE; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/CustomDomainAssociationStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/CustomDomainAssociationStatus.cpp index 0f319994c79..84f8ecbb6b1 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/CustomDomainAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/CustomDomainAssociationStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CustomDomainAssociationStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int PENDING_CERTIFICATE_DNS_VALIDATION_HASH = HashingUtils::HashString("PENDING_CERTIFICATE_DNS_VALIDATION"); - static const int BINDING_CERTIFICATE_HASH = HashingUtils::HashString("BINDING_CERTIFICATE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t PENDING_CERTIFICATE_DNS_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_CERTIFICATE_DNS_VALIDATION"); + static constexpr uint32_t BINDING_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("BINDING_CERTIFICATE"); CustomDomainAssociationStatus GetCustomDomainAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CustomDomainAssociationStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/EgressType.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/EgressType.cpp index 0f8994809ec..5824777b3a6 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/EgressType.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/EgressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EgressTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int VPC_HASH = HashingUtils::HashString("VPC"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t VPC_HASH = ConstExprHashingUtils::HashString("VPC"); EgressType GetEgressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return EgressType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/HealthCheckProtocol.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/HealthCheckProtocol.cpp index 689c2e87a37..3708805aaac 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/HealthCheckProtocol.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/HealthCheckProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HealthCheckProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); HealthCheckProtocol GetHealthCheckProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return HealthCheckProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/ImageRepositoryType.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/ImageRepositoryType.cpp index 5b954abb7e4..790d5fa2672 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/ImageRepositoryType.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/ImageRepositoryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageRepositoryTypeMapper { - static const int ECR_HASH = HashingUtils::HashString("ECR"); - static const int ECR_PUBLIC_HASH = HashingUtils::HashString("ECR_PUBLIC"); + static constexpr uint32_t ECR_HASH = ConstExprHashingUtils::HashString("ECR"); + static constexpr uint32_t ECR_PUBLIC_HASH = ConstExprHashingUtils::HashString("ECR_PUBLIC"); ImageRepositoryType GetImageRepositoryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECR_HASH) { return ImageRepositoryType::ECR; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/ObservabilityConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/ObservabilityConfigurationStatus.cpp index fd656c46ac3..aa2ab3e62a3 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/ObservabilityConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/ObservabilityConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObservabilityConfigurationStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ObservabilityConfigurationStatus GetObservabilityConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ObservabilityConfigurationStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/OperationStatus.cpp index ea87c06216c..28b3bab6101 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/OperationStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace OperationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("ROLLBACK_IN_PROGRESS"); - static const int ROLLBACK_FAILED_HASH = HashingUtils::HashString("ROLLBACK_FAILED"); - static const int ROLLBACK_SUCCEEDED_HASH = HashingUtils::HashString("ROLLBACK_SUCCEEDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_FAILED"); + static constexpr uint32_t ROLLBACK_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_SUCCEEDED"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return OperationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/OperationType.cpp index b97ea31a3de..e5445cc4756 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/OperationType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OperationTypeMapper { - static const int START_DEPLOYMENT_HASH = HashingUtils::HashString("START_DEPLOYMENT"); - static const int CREATE_SERVICE_HASH = HashingUtils::HashString("CREATE_SERVICE"); - static const int PAUSE_SERVICE_HASH = HashingUtils::HashString("PAUSE_SERVICE"); - static const int RESUME_SERVICE_HASH = HashingUtils::HashString("RESUME_SERVICE"); - static const int DELETE_SERVICE_HASH = HashingUtils::HashString("DELETE_SERVICE"); - static const int UPDATE_SERVICE_HASH = HashingUtils::HashString("UPDATE_SERVICE"); + static constexpr uint32_t START_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("START_DEPLOYMENT"); + static constexpr uint32_t CREATE_SERVICE_HASH = ConstExprHashingUtils::HashString("CREATE_SERVICE"); + static constexpr uint32_t PAUSE_SERVICE_HASH = ConstExprHashingUtils::HashString("PAUSE_SERVICE"); + static constexpr uint32_t RESUME_SERVICE_HASH = ConstExprHashingUtils::HashString("RESUME_SERVICE"); + static constexpr uint32_t DELETE_SERVICE_HASH = ConstExprHashingUtils::HashString("DELETE_SERVICE"); + static constexpr uint32_t UPDATE_SERVICE_HASH = ConstExprHashingUtils::HashString("UPDATE_SERVICE"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_DEPLOYMENT_HASH) { return OperationType::START_DEPLOYMENT; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/ProviderType.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/ProviderType.cpp index 711517acbd6..72cdd2e1f8e 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/ProviderType.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/ProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProviderTypeMapper { - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int BITBUCKET_HASH = HashingUtils::HashString("BITBUCKET"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t BITBUCKET_HASH = ConstExprHashingUtils::HashString("BITBUCKET"); ProviderType GetProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HASH) { return ProviderType::GITHUB; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/Runtime.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/Runtime.cpp index 648f856c44b..ec46894c0bf 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/Runtime.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/Runtime.cpp @@ -20,21 +20,21 @@ namespace Aws namespace RuntimeMapper { - static const int PYTHON_3_HASH = HashingUtils::HashString("PYTHON_3"); - static const int NODEJS_12_HASH = HashingUtils::HashString("NODEJS_12"); - static const int NODEJS_14_HASH = HashingUtils::HashString("NODEJS_14"); - static const int CORRETTO_8_HASH = HashingUtils::HashString("CORRETTO_8"); - static const int CORRETTO_11_HASH = HashingUtils::HashString("CORRETTO_11"); - static const int NODEJS_16_HASH = HashingUtils::HashString("NODEJS_16"); - static const int GO_1_HASH = HashingUtils::HashString("GO_1"); - static const int DOTNET_6_HASH = HashingUtils::HashString("DOTNET_6"); - static const int PHP_81_HASH = HashingUtils::HashString("PHP_81"); - static const int RUBY_31_HASH = HashingUtils::HashString("RUBY_31"); + static constexpr uint32_t PYTHON_3_HASH = ConstExprHashingUtils::HashString("PYTHON_3"); + static constexpr uint32_t NODEJS_12_HASH = ConstExprHashingUtils::HashString("NODEJS_12"); + static constexpr uint32_t NODEJS_14_HASH = ConstExprHashingUtils::HashString("NODEJS_14"); + static constexpr uint32_t CORRETTO_8_HASH = ConstExprHashingUtils::HashString("CORRETTO_8"); + static constexpr uint32_t CORRETTO_11_HASH = ConstExprHashingUtils::HashString("CORRETTO_11"); + static constexpr uint32_t NODEJS_16_HASH = ConstExprHashingUtils::HashString("NODEJS_16"); + static constexpr uint32_t GO_1_HASH = ConstExprHashingUtils::HashString("GO_1"); + static constexpr uint32_t DOTNET_6_HASH = ConstExprHashingUtils::HashString("DOTNET_6"); + static constexpr uint32_t PHP_81_HASH = ConstExprHashingUtils::HashString("PHP_81"); + static constexpr uint32_t RUBY_31_HASH = ConstExprHashingUtils::HashString("RUBY_31"); Runtime GetRuntimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PYTHON_3_HASH) { return Runtime::PYTHON_3; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/ServiceStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/ServiceStatus.cpp index 7b92ede5570..85dd41ce3f0 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/ServiceStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/ServiceStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ServiceStatusMapper { - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int OPERATION_IN_PROGRESS_HASH = HashingUtils::HashString("OPERATION_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t OPERATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("OPERATION_IN_PROGRESS"); ServiceStatus GetServiceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_FAILED_HASH) { return ServiceStatus::CREATE_FAILED; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/SourceCodeVersionType.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/SourceCodeVersionType.cpp index 0041e4e5b7f..b69dea0d4b1 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/SourceCodeVersionType.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/SourceCodeVersionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SourceCodeVersionTypeMapper { - static const int BRANCH_HASH = HashingUtils::HashString("BRANCH"); + static constexpr uint32_t BRANCH_HASH = ConstExprHashingUtils::HashString("BRANCH"); SourceCodeVersionType GetSourceCodeVersionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BRANCH_HASH) { return SourceCodeVersionType::BRANCH; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/TracingVendor.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/TracingVendor.cpp index 5fcd0099041..da8bb042817 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/TracingVendor.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/TracingVendor.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TracingVendorMapper { - static const int AWSXRAY_HASH = HashingUtils::HashString("AWSXRAY"); + static constexpr uint32_t AWSXRAY_HASH = ConstExprHashingUtils::HashString("AWSXRAY"); TracingVendor GetTracingVendorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSXRAY_HASH) { return TracingVendor::AWSXRAY; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/VpcConnectorStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/VpcConnectorStatus.cpp index e05a87aad05..ee25bbca9f9 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/VpcConnectorStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/VpcConnectorStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VpcConnectorStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); VpcConnectorStatus GetVpcConnectorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return VpcConnectorStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-apprunner/source/model/VpcIngressConnectionStatus.cpp b/generated/src/aws-cpp-sdk-apprunner/source/model/VpcIngressConnectionStatus.cpp index 1fa1625eb53..a5726bdb426 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/model/VpcIngressConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/model/VpcIngressConnectionStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace VpcIngressConnectionStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_CREATION_HASH = HashingUtils::HashString("PENDING_CREATION"); - static const int PENDING_UPDATE_HASH = HashingUtils::HashString("PENDING_UPDATE"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); - static const int FAILED_CREATION_HASH = HashingUtils::HashString("FAILED_CREATION"); - static const int FAILED_UPDATE_HASH = HashingUtils::HashString("FAILED_UPDATE"); - static const int FAILED_DELETION_HASH = HashingUtils::HashString("FAILED_DELETION"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_CREATION_HASH = ConstExprHashingUtils::HashString("PENDING_CREATION"); + static constexpr uint32_t PENDING_UPDATE_HASH = ConstExprHashingUtils::HashString("PENDING_UPDATE"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t FAILED_CREATION_HASH = ConstExprHashingUtils::HashString("FAILED_CREATION"); + static constexpr uint32_t FAILED_UPDATE_HASH = ConstExprHashingUtils::HashString("FAILED_UPDATE"); + static constexpr uint32_t FAILED_DELETION_HASH = ConstExprHashingUtils::HashString("FAILED_DELETION"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VpcIngressConnectionStatus GetVpcIngressConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return VpcIngressConnectionStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-appstream/source/AppStreamErrors.cpp b/generated/src/aws-cpp-sdk-appstream/source/AppStreamErrors.cpp index 4a154410ad6..e3e8b95ab62 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/AppStreamErrors.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/AppStreamErrors.cpp @@ -18,23 +18,23 @@ namespace AppStream namespace AppStreamErrorMapper { -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermittedException"); -static const int ENTITLEMENT_NOT_FOUND_HASH = HashingUtils::HashString("EntitlementNotFoundException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int ENTITLEMENT_ALREADY_EXISTS_HASH = HashingUtils::HashString("EntitlementAlreadyExistsException"); -static const int INVALID_ROLE_HASH = HashingUtils::HashString("InvalidRoleException"); -static const int INVALID_ACCOUNT_STATUS_HASH = HashingUtils::HashString("InvalidAccountStatusException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_NOT_AVAILABLE_HASH = HashingUtils::HashString("ResourceNotAvailableException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int REQUEST_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RequestLimitExceededException"); -static const int INCOMPATIBLE_IMAGE_HASH = HashingUtils::HashString("IncompatibleImageException"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermittedException"); +static constexpr uint32_t ENTITLEMENT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EntitlementNotFoundException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t ENTITLEMENT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EntitlementAlreadyExistsException"); +static constexpr uint32_t INVALID_ROLE_HASH = ConstExprHashingUtils::HashString("InvalidRoleException"); +static constexpr uint32_t INVALID_ACCOUNT_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidAccountStatusException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceNotAvailableException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t REQUEST_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RequestLimitExceededException"); +static constexpr uint32_t INCOMPATIBLE_IMAGE_HASH = ConstExprHashingUtils::HashString("IncompatibleImageException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == OPERATION_NOT_PERMITTED_HASH) { diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AccessEndpointType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AccessEndpointType.cpp index 4c704ea50b4..9c6dbea677e 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AccessEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AccessEndpointType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AccessEndpointTypeMapper { - static const int STREAMING_HASH = HashingUtils::HashString("STREAMING"); + static constexpr uint32_t STREAMING_HASH = ConstExprHashingUtils::HashString("STREAMING"); AccessEndpointType GetAccessEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STREAMING_HASH) { return AccessEndpointType::STREAMING; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/Action.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/Action.cpp index 82455688237..de9a33d72e5 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/Action.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/Action.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ActionMapper { - static const int CLIPBOARD_COPY_FROM_LOCAL_DEVICE_HASH = HashingUtils::HashString("CLIPBOARD_COPY_FROM_LOCAL_DEVICE"); - static const int CLIPBOARD_COPY_TO_LOCAL_DEVICE_HASH = HashingUtils::HashString("CLIPBOARD_COPY_TO_LOCAL_DEVICE"); - static const int FILE_UPLOAD_HASH = HashingUtils::HashString("FILE_UPLOAD"); - static const int FILE_DOWNLOAD_HASH = HashingUtils::HashString("FILE_DOWNLOAD"); - static const int PRINTING_TO_LOCAL_DEVICE_HASH = HashingUtils::HashString("PRINTING_TO_LOCAL_DEVICE"); - static const int DOMAIN_PASSWORD_SIGNIN_HASH = HashingUtils::HashString("DOMAIN_PASSWORD_SIGNIN"); - static const int DOMAIN_SMART_CARD_SIGNIN_HASH = HashingUtils::HashString("DOMAIN_SMART_CARD_SIGNIN"); + static constexpr uint32_t CLIPBOARD_COPY_FROM_LOCAL_DEVICE_HASH = ConstExprHashingUtils::HashString("CLIPBOARD_COPY_FROM_LOCAL_DEVICE"); + static constexpr uint32_t CLIPBOARD_COPY_TO_LOCAL_DEVICE_HASH = ConstExprHashingUtils::HashString("CLIPBOARD_COPY_TO_LOCAL_DEVICE"); + static constexpr uint32_t FILE_UPLOAD_HASH = ConstExprHashingUtils::HashString("FILE_UPLOAD"); + static constexpr uint32_t FILE_DOWNLOAD_HASH = ConstExprHashingUtils::HashString("FILE_DOWNLOAD"); + static constexpr uint32_t PRINTING_TO_LOCAL_DEVICE_HASH = ConstExprHashingUtils::HashString("PRINTING_TO_LOCAL_DEVICE"); + static constexpr uint32_t DOMAIN_PASSWORD_SIGNIN_HASH = ConstExprHashingUtils::HashString("DOMAIN_PASSWORD_SIGNIN"); + static constexpr uint32_t DOMAIN_SMART_CARD_SIGNIN_HASH = ConstExprHashingUtils::HashString("DOMAIN_SMART_CARD_SIGNIN"); Action GetActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIPBOARD_COPY_FROM_LOCAL_DEVICE_HASH) { return Action::CLIPBOARD_COPY_FROM_LOCAL_DEVICE; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderAttribute.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderAttribute.cpp index e50808c2bea..d02c8ca61ad 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderAttribute.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderAttribute.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AppBlockBuilderAttributeMapper { - static const int IAM_ROLE_ARN_HASH = HashingUtils::HashString("IAM_ROLE_ARN"); - static const int ACCESS_ENDPOINTS_HASH = HashingUtils::HashString("ACCESS_ENDPOINTS"); - static const int VPC_CONFIGURATION_SECURITY_GROUP_IDS_HASH = HashingUtils::HashString("VPC_CONFIGURATION_SECURITY_GROUP_IDS"); + static constexpr uint32_t IAM_ROLE_ARN_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_ARN"); + static constexpr uint32_t ACCESS_ENDPOINTS_HASH = ConstExprHashingUtils::HashString("ACCESS_ENDPOINTS"); + static constexpr uint32_t VPC_CONFIGURATION_SECURITY_GROUP_IDS_HASH = ConstExprHashingUtils::HashString("VPC_CONFIGURATION_SECURITY_GROUP_IDS"); AppBlockBuilderAttribute GetAppBlockBuilderAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_ROLE_ARN_HASH) { return AppBlockBuilderAttribute::IAM_ROLE_ARN; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderPlatformType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderPlatformType.cpp index 813d3876ff6..307d9274b32 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderPlatformType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderPlatformType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AppBlockBuilderPlatformTypeMapper { - static const int WINDOWS_SERVER_2019_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019"); + static constexpr uint32_t WINDOWS_SERVER_2019_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2019"); AppBlockBuilderPlatformType GetAppBlockBuilderPlatformTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_SERVER_2019_HASH) { return AppBlockBuilderPlatformType::WINDOWS_SERVER_2019; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderState.cpp index 9e58e460781..4f177c600d3 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AppBlockBuilderStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); AppBlockBuilderState GetAppBlockBuilderStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return AppBlockBuilderState::STARTING; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderStateChangeReasonCode.cpp index 3047991b2f6..7c69777f000 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockBuilderStateChangeReasonCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AppBlockBuilderStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); AppBlockBuilderStateChangeReasonCode GetAppBlockBuilderStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return AppBlockBuilderStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockState.cpp index 07885754789..c45141737dc 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AppBlockState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppBlockStateMapper { - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); AppBlockState GetAppBlockStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INACTIVE_HASH) { return AppBlockState::INACTIVE; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AppVisibility.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AppVisibility.cpp index c54ef6a1767..82e2edb09e5 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AppVisibility.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AppVisibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppVisibilityMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ASSOCIATED"); AppVisibility GetAppVisibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return AppVisibility::ALL; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/ApplicationAttribute.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/ApplicationAttribute.cpp index 7bac287551d..2599d969b7e 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/ApplicationAttribute.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/ApplicationAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplicationAttributeMapper { - static const int LAUNCH_PARAMETERS_HASH = HashingUtils::HashString("LAUNCH_PARAMETERS"); - static const int WORKING_DIRECTORY_HASH = HashingUtils::HashString("WORKING_DIRECTORY"); + static constexpr uint32_t LAUNCH_PARAMETERS_HASH = ConstExprHashingUtils::HashString("LAUNCH_PARAMETERS"); + static constexpr uint32_t WORKING_DIRECTORY_HASH = ConstExprHashingUtils::HashString("WORKING_DIRECTORY"); ApplicationAttribute GetApplicationAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAUNCH_PARAMETERS_HASH) { return ApplicationAttribute::LAUNCH_PARAMETERS; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/AuthenticationType.cpp index 77148b1a5c1..204bfa564b8 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/AuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/AuthenticationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuthenticationTypeMapper { - static const int API_HASH = HashingUtils::HashString("API"); - static const int SAML_HASH = HashingUtils::HashString("SAML"); - static const int USERPOOL_HASH = HashingUtils::HashString("USERPOOL"); - static const int AWS_AD_HASH = HashingUtils::HashString("AWS_AD"); + static constexpr uint32_t API_HASH = ConstExprHashingUtils::HashString("API"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); + static constexpr uint32_t USERPOOL_HASH = ConstExprHashingUtils::HashString("USERPOOL"); + static constexpr uint32_t AWS_AD_HASH = ConstExprHashingUtils::HashString("AWS_AD"); AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_HASH) { return AuthenticationType::API; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/CertificateBasedAuthStatus.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/CertificateBasedAuthStatus.cpp index f40284ab154..c97fdb4c0c5 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/CertificateBasedAuthStatus.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/CertificateBasedAuthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CertificateBasedAuthStatusMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENABLED_NO_DIRECTORY_LOGIN_FALLBACK_HASH = HashingUtils::HashString("ENABLED_NO_DIRECTORY_LOGIN_FALLBACK"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_NO_DIRECTORY_LOGIN_FALLBACK_HASH = ConstExprHashingUtils::HashString("ENABLED_NO_DIRECTORY_LOGIN_FALLBACK"); CertificateBasedAuthStatus GetCertificateBasedAuthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CertificateBasedAuthStatus::DISABLED; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/FleetAttribute.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/FleetAttribute.cpp index 7a1ff8b9284..b19a3507c45 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/FleetAttribute.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/FleetAttribute.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FleetAttributeMapper { - static const int VPC_CONFIGURATION_HASH = HashingUtils::HashString("VPC_CONFIGURATION"); - static const int VPC_CONFIGURATION_SECURITY_GROUP_IDS_HASH = HashingUtils::HashString("VPC_CONFIGURATION_SECURITY_GROUP_IDS"); - static const int DOMAIN_JOIN_INFO_HASH = HashingUtils::HashString("DOMAIN_JOIN_INFO"); - static const int IAM_ROLE_ARN_HASH = HashingUtils::HashString("IAM_ROLE_ARN"); - static const int USB_DEVICE_FILTER_STRINGS_HASH = HashingUtils::HashString("USB_DEVICE_FILTER_STRINGS"); - static const int SESSION_SCRIPT_S3_LOCATION_HASH = HashingUtils::HashString("SESSION_SCRIPT_S3_LOCATION"); + static constexpr uint32_t VPC_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("VPC_CONFIGURATION"); + static constexpr uint32_t VPC_CONFIGURATION_SECURITY_GROUP_IDS_HASH = ConstExprHashingUtils::HashString("VPC_CONFIGURATION_SECURITY_GROUP_IDS"); + static constexpr uint32_t DOMAIN_JOIN_INFO_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_INFO"); + static constexpr uint32_t IAM_ROLE_ARN_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_ARN"); + static constexpr uint32_t USB_DEVICE_FILTER_STRINGS_HASH = ConstExprHashingUtils::HashString("USB_DEVICE_FILTER_STRINGS"); + static constexpr uint32_t SESSION_SCRIPT_S3_LOCATION_HASH = ConstExprHashingUtils::HashString("SESSION_SCRIPT_S3_LOCATION"); FleetAttribute GetFleetAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VPC_CONFIGURATION_HASH) { return FleetAttribute::VPC_CONFIGURATION; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/FleetErrorCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/FleetErrorCode.cpp index ed74597d900..d5e920a0b0d 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/FleetErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/FleetErrorCode.cpp @@ -20,41 +20,41 @@ namespace Aws namespace FleetErrorCodeMapper { - static const int IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION_HASH = HashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"); - static const int IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION_HASH = HashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"); - static const int IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION_HASH = HashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"); - static const int NETWORK_INTERFACE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("NETWORK_INTERFACE_LIMIT_EXCEEDED"); - static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVICE_ERROR"); - static const int IAM_SERVICE_ROLE_IS_MISSING_HASH = HashingUtils::HashString("IAM_SERVICE_ROLE_IS_MISSING"); - static const int MACHINE_ROLE_IS_MISSING_HASH = HashingUtils::HashString("MACHINE_ROLE_IS_MISSING"); - static const int STS_DISABLED_IN_REGION_HASH = HashingUtils::HashString("STS_DISABLED_IN_REGION"); - static const int SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES_HASH = HashingUtils::HashString("SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"); - static const int IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION_HASH = HashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"); - static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SUBNET_NOT_FOUND"); - static const int IMAGE_NOT_FOUND_HASH = HashingUtils::HashString("IMAGE_NOT_FOUND"); - static const int INVALID_SUBNET_CONFIGURATION_HASH = HashingUtils::HashString("INVALID_SUBNET_CONFIGURATION"); - static const int SECURITY_GROUPS_NOT_FOUND_HASH = HashingUtils::HashString("SECURITY_GROUPS_NOT_FOUND"); - static const int IGW_NOT_ATTACHED_HASH = HashingUtils::HashString("IGW_NOT_ATTACHED"); - static const int IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION_HASH = HashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"); - static const int FLEET_STOPPED_HASH = HashingUtils::HashString("FLEET_STOPPED"); - static const int FLEET_INSTANCE_PROVISIONING_FAILURE_HASH = HashingUtils::HashString("FLEET_INSTANCE_PROVISIONING_FAILURE"); - static const int DOMAIN_JOIN_ERROR_FILE_NOT_FOUND_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"); - static const int DOMAIN_JOIN_ERROR_ACCESS_DENIED_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_ACCESS_DENIED"); - static const int DOMAIN_JOIN_ERROR_LOGON_FAILURE_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_LOGON_FAILURE"); - static const int DOMAIN_JOIN_ERROR_INVALID_PARAMETER_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_INVALID_PARAMETER"); - static const int DOMAIN_JOIN_ERROR_MORE_DATA_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_MORE_DATA"); - static const int DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"); - static const int DOMAIN_JOIN_ERROR_NOT_SUPPORTED_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_NOT_SUPPORTED"); - static const int DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME_HASH = HashingUtils::HashString("DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"); - static const int DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED_HASH = HashingUtils::HashString("DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"); - static const int DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"); - static const int DOMAIN_JOIN_NERR_PASSWORD_EXPIRED_HASH = HashingUtils::HashString("DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"); - static const int DOMAIN_JOIN_INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION_HASH = ConstExprHashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"); + static constexpr uint32_t IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION_HASH = ConstExprHashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"); + static constexpr uint32_t IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION_HASH = ConstExprHashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"); + static constexpr uint32_t NETWORK_INTERFACE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE_LIMIT_EXCEEDED"); + static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t IAM_SERVICE_ROLE_IS_MISSING_HASH = ConstExprHashingUtils::HashString("IAM_SERVICE_ROLE_IS_MISSING"); + static constexpr uint32_t MACHINE_ROLE_IS_MISSING_HASH = ConstExprHashingUtils::HashString("MACHINE_ROLE_IS_MISSING"); + static constexpr uint32_t STS_DISABLED_IN_REGION_HASH = ConstExprHashingUtils::HashString("STS_DISABLED_IN_REGION"); + static constexpr uint32_t SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES_HASH = ConstExprHashingUtils::HashString("SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"); + static constexpr uint32_t IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION_HASH = ConstExprHashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"); + static constexpr uint32_t SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SUBNET_NOT_FOUND"); + static constexpr uint32_t IMAGE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("IMAGE_NOT_FOUND"); + static constexpr uint32_t INVALID_SUBNET_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INVALID_SUBNET_CONFIGURATION"); + static constexpr uint32_t SECURITY_GROUPS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUPS_NOT_FOUND"); + static constexpr uint32_t IGW_NOT_ATTACHED_HASH = ConstExprHashingUtils::HashString("IGW_NOT_ATTACHED"); + static constexpr uint32_t IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION_HASH = ConstExprHashingUtils::HashString("IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"); + static constexpr uint32_t FLEET_STOPPED_HASH = ConstExprHashingUtils::HashString("FLEET_STOPPED"); + static constexpr uint32_t FLEET_INSTANCE_PROVISIONING_FAILURE_HASH = ConstExprHashingUtils::HashString("FLEET_INSTANCE_PROVISIONING_FAILURE"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_FILE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_ACCESS_DENIED"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_LOGON_FAILURE_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_LOGON_FAILURE"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_INVALID_PARAMETER"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_MORE_DATA_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_MORE_DATA"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_NOT_SUPPORTED"); + static constexpr uint32_t DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"); + static constexpr uint32_t DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"); + static constexpr uint32_t DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"); + static constexpr uint32_t DOMAIN_JOIN_NERR_PASSWORD_EXPIRED_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"); + static constexpr uint32_t DOMAIN_JOIN_INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"); FleetErrorCode GetFleetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION_HASH) { return FleetErrorCode::IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/FleetState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/FleetState.cpp index 4dac760bac0..666df5ff280 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/FleetState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/FleetState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FleetStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); FleetState GetFleetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return FleetState::STARTING; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/FleetType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/FleetType.cpp index 6d7d019cde3..b094b23f5cf 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/FleetType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/FleetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FleetTypeMapper { - static const int ALWAYS_ON_HASH = HashingUtils::HashString("ALWAYS_ON"); - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int ELASTIC_HASH = HashingUtils::HashString("ELASTIC"); + static constexpr uint32_t ALWAYS_ON_HASH = ConstExprHashingUtils::HashString("ALWAYS_ON"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t ELASTIC_HASH = ConstExprHashingUtils::HashString("ELASTIC"); FleetType GetFleetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_ON_HASH) { return FleetType::ALWAYS_ON; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderState.cpp index 0d88f9eed99..9cee737f11d 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ImageBuilderStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int UPDATING_AGENT_HASH = HashingUtils::HashString("UPDATING_AGENT"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int REBOOTING_HASH = HashingUtils::HashString("REBOOTING"); - static const int SNAPSHOTTING_HASH = HashingUtils::HashString("SNAPSHOTTING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int PENDING_QUALIFICATION_HASH = HashingUtils::HashString("PENDING_QUALIFICATION"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t UPDATING_AGENT_HASH = ConstExprHashingUtils::HashString("UPDATING_AGENT"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t REBOOTING_HASH = ConstExprHashingUtils::HashString("REBOOTING"); + static constexpr uint32_t SNAPSHOTTING_HASH = ConstExprHashingUtils::HashString("SNAPSHOTTING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_QUALIFICATION_HASH = ConstExprHashingUtils::HashString("PENDING_QUALIFICATION"); ImageBuilderState GetImageBuilderStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ImageBuilderState::PENDING; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderStateChangeReasonCode.cpp index a5f13d5956f..1144ded08e4 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/ImageBuilderStateChangeReasonCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageBuilderStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int IMAGE_UNAVAILABLE_HASH = HashingUtils::HashString("IMAGE_UNAVAILABLE"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t IMAGE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("IMAGE_UNAVAILABLE"); ImageBuilderStateChangeReasonCode GetImageBuilderStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return ImageBuilderStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/ImageState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/ImageState.cpp index 1fc1068f622..912e3787b68 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/ImageState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/ImageState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ImageStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COPYING_HASH = HashingUtils::HashString("COPYING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int IMPORTING_HASH = HashingUtils::HashString("IMPORTING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COPYING_HASH = ConstExprHashingUtils::HashString("COPYING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t IMPORTING_HASH = ConstExprHashingUtils::HashString("IMPORTING"); ImageState GetImageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ImageState::PENDING; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/ImageStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/ImageStateChangeReasonCode.cpp index b37ab1b4c61..003a3155da3 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/ImageStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/ImageStateChangeReasonCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int IMAGE_BUILDER_NOT_AVAILABLE_HASH = HashingUtils::HashString("IMAGE_BUILDER_NOT_AVAILABLE"); - static const int IMAGE_COPY_FAILURE_HASH = HashingUtils::HashString("IMAGE_COPY_FAILURE"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t IMAGE_BUILDER_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("IMAGE_BUILDER_NOT_AVAILABLE"); + static constexpr uint32_t IMAGE_COPY_FAILURE_HASH = ConstExprHashingUtils::HashString("IMAGE_COPY_FAILURE"); ImageStateChangeReasonCode GetImageStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return ImageStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/MessageAction.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/MessageAction.cpp index ba0ecfdffec..a0633a55de1 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/MessageAction.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/MessageAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageActionMapper { - static const int SUPPRESS_HASH = HashingUtils::HashString("SUPPRESS"); - static const int RESEND_HASH = HashingUtils::HashString("RESEND"); + static constexpr uint32_t SUPPRESS_HASH = ConstExprHashingUtils::HashString("SUPPRESS"); + static constexpr uint32_t RESEND_HASH = ConstExprHashingUtils::HashString("RESEND"); MessageAction GetMessageActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUPPRESS_HASH) { return MessageAction::SUPPRESS; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/PackagingType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/PackagingType.cpp index d7b658f5916..7312f69cd8a 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/PackagingType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/PackagingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PackagingTypeMapper { - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int APPSTREAM2_HASH = HashingUtils::HashString("APPSTREAM2"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t APPSTREAM2_HASH = ConstExprHashingUtils::HashString("APPSTREAM2"); PackagingType GetPackagingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOM_HASH) { return PackagingType::CUSTOM; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/Permission.cpp index 4ea22289695..bf626f2b35f 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/Permission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Permission::ENABLED; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/PlatformType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/PlatformType.cpp index ce25d14b77a..0fed0b8b786 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/PlatformType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/PlatformType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PlatformTypeMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int WINDOWS_SERVER_2016_HASH = HashingUtils::HashString("WINDOWS_SERVER_2016"); - static const int WINDOWS_SERVER_2019_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019"); - static const int AMAZON_LINUX2_HASH = HashingUtils::HashString("AMAZON_LINUX2"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t WINDOWS_SERVER_2016_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2016"); + static constexpr uint32_t WINDOWS_SERVER_2019_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2019"); + static constexpr uint32_t AMAZON_LINUX2_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX2"); PlatformType GetPlatformTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return PlatformType::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/PreferredProtocol.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/PreferredProtocol.cpp index 06cf3815d4b..458d23089d9 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/PreferredProtocol.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/PreferredProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PreferredProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); PreferredProtocol GetPreferredProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return PreferredProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/SessionConnectionState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/SessionConnectionState.cpp index dd3173442c9..fbfa4dc4bd6 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/SessionConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/SessionConnectionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SessionConnectionStateMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int NOT_CONNECTED_HASH = HashingUtils::HashString("NOT_CONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t NOT_CONNECTED_HASH = ConstExprHashingUtils::HashString("NOT_CONNECTED"); SessionConnectionState GetSessionConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return SessionConnectionState::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/SessionState.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/SessionState.cpp index 584a4ed4fda..fc5f8195930 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/SessionState.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/SessionState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SessionStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); SessionState GetSessionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return SessionState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/StackAttribute.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/StackAttribute.cpp index 178b42826b9..0fb83290a37 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/StackAttribute.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/StackAttribute.cpp @@ -20,23 +20,23 @@ namespace Aws namespace StackAttributeMapper { - static const int STORAGE_CONNECTORS_HASH = HashingUtils::HashString("STORAGE_CONNECTORS"); - static const int STORAGE_CONNECTOR_HOMEFOLDERS_HASH = HashingUtils::HashString("STORAGE_CONNECTOR_HOMEFOLDERS"); - static const int STORAGE_CONNECTOR_GOOGLE_DRIVE_HASH = HashingUtils::HashString("STORAGE_CONNECTOR_GOOGLE_DRIVE"); - static const int STORAGE_CONNECTOR_ONE_DRIVE_HASH = HashingUtils::HashString("STORAGE_CONNECTOR_ONE_DRIVE"); - static const int REDIRECT_URL_HASH = HashingUtils::HashString("REDIRECT_URL"); - static const int FEEDBACK_URL_HASH = HashingUtils::HashString("FEEDBACK_URL"); - static const int THEME_NAME_HASH = HashingUtils::HashString("THEME_NAME"); - static const int USER_SETTINGS_HASH = HashingUtils::HashString("USER_SETTINGS"); - static const int EMBED_HOST_DOMAINS_HASH = HashingUtils::HashString("EMBED_HOST_DOMAINS"); - static const int IAM_ROLE_ARN_HASH = HashingUtils::HashString("IAM_ROLE_ARN"); - static const int ACCESS_ENDPOINTS_HASH = HashingUtils::HashString("ACCESS_ENDPOINTS"); - static const int STREAMING_EXPERIENCE_SETTINGS_HASH = HashingUtils::HashString("STREAMING_EXPERIENCE_SETTINGS"); + static constexpr uint32_t STORAGE_CONNECTORS_HASH = ConstExprHashingUtils::HashString("STORAGE_CONNECTORS"); + static constexpr uint32_t STORAGE_CONNECTOR_HOMEFOLDERS_HASH = ConstExprHashingUtils::HashString("STORAGE_CONNECTOR_HOMEFOLDERS"); + static constexpr uint32_t STORAGE_CONNECTOR_GOOGLE_DRIVE_HASH = ConstExprHashingUtils::HashString("STORAGE_CONNECTOR_GOOGLE_DRIVE"); + static constexpr uint32_t STORAGE_CONNECTOR_ONE_DRIVE_HASH = ConstExprHashingUtils::HashString("STORAGE_CONNECTOR_ONE_DRIVE"); + static constexpr uint32_t REDIRECT_URL_HASH = ConstExprHashingUtils::HashString("REDIRECT_URL"); + static constexpr uint32_t FEEDBACK_URL_HASH = ConstExprHashingUtils::HashString("FEEDBACK_URL"); + static constexpr uint32_t THEME_NAME_HASH = ConstExprHashingUtils::HashString("THEME_NAME"); + static constexpr uint32_t USER_SETTINGS_HASH = ConstExprHashingUtils::HashString("USER_SETTINGS"); + static constexpr uint32_t EMBED_HOST_DOMAINS_HASH = ConstExprHashingUtils::HashString("EMBED_HOST_DOMAINS"); + static constexpr uint32_t IAM_ROLE_ARN_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_ARN"); + static constexpr uint32_t ACCESS_ENDPOINTS_HASH = ConstExprHashingUtils::HashString("ACCESS_ENDPOINTS"); + static constexpr uint32_t STREAMING_EXPERIENCE_SETTINGS_HASH = ConstExprHashingUtils::HashString("STREAMING_EXPERIENCE_SETTINGS"); StackAttribute GetStackAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STORAGE_CONNECTORS_HASH) { return StackAttribute::STORAGE_CONNECTORS; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/StackErrorCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/StackErrorCode.cpp index caf88159dd1..364afc0752e 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/StackErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/StackErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StackErrorCodeMapper { - static const int STORAGE_CONNECTOR_ERROR_HASH = HashingUtils::HashString("STORAGE_CONNECTOR_ERROR"); - static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t STORAGE_CONNECTOR_ERROR_HASH = ConstExprHashingUtils::HashString("STORAGE_CONNECTOR_ERROR"); + static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_ERROR"); StackErrorCode GetStackErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STORAGE_CONNECTOR_ERROR_HASH) { return StackErrorCode::STORAGE_CONNECTOR_ERROR; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/StorageConnectorType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/StorageConnectorType.cpp index f5bb552164a..139b22d3929 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/StorageConnectorType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/StorageConnectorType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StorageConnectorTypeMapper { - static const int HOMEFOLDERS_HASH = HashingUtils::HashString("HOMEFOLDERS"); - static const int GOOGLE_DRIVE_HASH = HashingUtils::HashString("GOOGLE_DRIVE"); - static const int ONE_DRIVE_HASH = HashingUtils::HashString("ONE_DRIVE"); + static constexpr uint32_t HOMEFOLDERS_HASH = ConstExprHashingUtils::HashString("HOMEFOLDERS"); + static constexpr uint32_t GOOGLE_DRIVE_HASH = ConstExprHashingUtils::HashString("GOOGLE_DRIVE"); + static constexpr uint32_t ONE_DRIVE_HASH = ConstExprHashingUtils::HashString("ONE_DRIVE"); StorageConnectorType GetStorageConnectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOMEFOLDERS_HASH) { return StorageConnectorType::HOMEFOLDERS; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/StreamView.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/StreamView.cpp index c63650da948..96ba66d2734 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/StreamView.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/StreamView.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StreamViewMapper { - static const int APP_HASH = HashingUtils::HashString("APP"); - static const int DESKTOP_HASH = HashingUtils::HashString("DESKTOP"); + static constexpr uint32_t APP_HASH = ConstExprHashingUtils::HashString("APP"); + static constexpr uint32_t DESKTOP_HASH = ConstExprHashingUtils::HashString("DESKTOP"); StreamView GetStreamViewForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APP_HASH) { return StreamView::APP; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportExecutionErrorCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportExecutionErrorCode.cpp index fbb466561d7..115082ff1d9 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportExecutionErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportExecutionErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageReportExecutionErrorCodeMapper { - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_ERROR"); UsageReportExecutionErrorCode GetUsageReportExecutionErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_NOT_FOUND_HASH) { return UsageReportExecutionErrorCode::RESOURCE_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportSchedule.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportSchedule.cpp index 698a3cc9631..2e910fd7181 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportSchedule.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/UsageReportSchedule.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UsageReportScheduleMapper { - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); UsageReportSchedule GetUsageReportScheduleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAILY_HASH) { return UsageReportSchedule::DAILY; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/UserStackAssociationErrorCode.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/UserStackAssociationErrorCode.cpp index aaa5a8bec2a..b6d688854a9 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/UserStackAssociationErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/UserStackAssociationErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UserStackAssociationErrorCodeMapper { - static const int STACK_NOT_FOUND_HASH = HashingUtils::HashString("STACK_NOT_FOUND"); - static const int USER_NAME_NOT_FOUND_HASH = HashingUtils::HashString("USER_NAME_NOT_FOUND"); - static const int DIRECTORY_NOT_FOUND_HASH = HashingUtils::HashString("DIRECTORY_NOT_FOUND"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t STACK_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("STACK_NOT_FOUND"); + static constexpr uint32_t USER_NAME_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("USER_NAME_NOT_FOUND"); + static constexpr uint32_t DIRECTORY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DIRECTORY_NOT_FOUND"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); UserStackAssociationErrorCode GetUserStackAssociationErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STACK_NOT_FOUND_HASH) { return UserStackAssociationErrorCode::STACK_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/VisibilityType.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/VisibilityType.cpp index 9db7addf587..0490318903a 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/VisibilityType.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/VisibilityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VisibilityTypeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); VisibilityType GetVisibilityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return VisibilityType::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-appsync/source/AppSyncErrors.cpp b/generated/src/aws-cpp-sdk-appsync/source/AppSyncErrors.cpp index 02e87fbf957..32544c523c9 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/AppSyncErrors.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/AppSyncErrors.cpp @@ -26,20 +26,20 @@ template<> AWS_APPSYNC_API BadRequestException AppSyncError::GetModeledError() namespace AppSyncErrorMapper { -static const int GRAPH_Q_L_SCHEMA_HASH = HashingUtils::HashString("GraphQLSchemaException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int API_KEY_VALIDITY_OUT_OF_BOUNDS_HASH = HashingUtils::HashString("ApiKeyValidityOutOfBoundsException"); -static const int API_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ApiLimitExceededException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int API_KEY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ApiKeyLimitExceededException"); +static constexpr uint32_t GRAPH_Q_L_SCHEMA_HASH = ConstExprHashingUtils::HashString("GraphQLSchemaException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t API_KEY_VALIDITY_OUT_OF_BOUNDS_HASH = ConstExprHashingUtils::HashString("ApiKeyValidityOutOfBoundsException"); +static constexpr uint32_t API_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ApiLimitExceededException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t API_KEY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ApiKeyLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == GRAPH_Q_L_SCHEMA_HASH) { diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheStatus.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheStatus.cpp index bda68ee1fc1..ce0c87b6a1a 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheStatus.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ApiCacheStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int MODIFYING_HASH = HashingUtils::HashString("MODIFYING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t MODIFYING_HASH = ConstExprHashingUtils::HashString("MODIFYING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ApiCacheStatus GetApiCacheStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return ApiCacheStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheType.cpp index 7b8f1cc49ff..f346cde5bd7 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/ApiCacheType.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ApiCacheTypeMapper { - static const int T2_SMALL_HASH = HashingUtils::HashString("T2_SMALL"); - static const int T2_MEDIUM_HASH = HashingUtils::HashString("T2_MEDIUM"); - static const int R4_LARGE_HASH = HashingUtils::HashString("R4_LARGE"); - static const int R4_XLARGE_HASH = HashingUtils::HashString("R4_XLARGE"); - static const int R4_2XLARGE_HASH = HashingUtils::HashString("R4_2XLARGE"); - static const int R4_4XLARGE_HASH = HashingUtils::HashString("R4_4XLARGE"); - static const int R4_8XLARGE_HASH = HashingUtils::HashString("R4_8XLARGE"); - static const int SMALL_HASH = HashingUtils::HashString("SMALL"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LARGE_HASH = HashingUtils::HashString("LARGE"); - static const int XLARGE_HASH = HashingUtils::HashString("XLARGE"); - static const int LARGE_2X_HASH = HashingUtils::HashString("LARGE_2X"); - static const int LARGE_4X_HASH = HashingUtils::HashString("LARGE_4X"); - static const int LARGE_8X_HASH = HashingUtils::HashString("LARGE_8X"); - static const int LARGE_12X_HASH = HashingUtils::HashString("LARGE_12X"); + static constexpr uint32_t T2_SMALL_HASH = ConstExprHashingUtils::HashString("T2_SMALL"); + static constexpr uint32_t T2_MEDIUM_HASH = ConstExprHashingUtils::HashString("T2_MEDIUM"); + static constexpr uint32_t R4_LARGE_HASH = ConstExprHashingUtils::HashString("R4_LARGE"); + static constexpr uint32_t R4_XLARGE_HASH = ConstExprHashingUtils::HashString("R4_XLARGE"); + static constexpr uint32_t R4_2XLARGE_HASH = ConstExprHashingUtils::HashString("R4_2XLARGE"); + static constexpr uint32_t R4_4XLARGE_HASH = ConstExprHashingUtils::HashString("R4_4XLARGE"); + static constexpr uint32_t R4_8XLARGE_HASH = ConstExprHashingUtils::HashString("R4_8XLARGE"); + static constexpr uint32_t SMALL_HASH = ConstExprHashingUtils::HashString("SMALL"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LARGE_HASH = ConstExprHashingUtils::HashString("LARGE"); + static constexpr uint32_t XLARGE_HASH = ConstExprHashingUtils::HashString("XLARGE"); + static constexpr uint32_t LARGE_2X_HASH = ConstExprHashingUtils::HashString("LARGE_2X"); + static constexpr uint32_t LARGE_4X_HASH = ConstExprHashingUtils::HashString("LARGE_4X"); + static constexpr uint32_t LARGE_8X_HASH = ConstExprHashingUtils::HashString("LARGE_8X"); + static constexpr uint32_t LARGE_12X_HASH = ConstExprHashingUtils::HashString("LARGE_12X"); ApiCacheType GetApiCacheTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == T2_SMALL_HASH) { return ApiCacheType::T2_SMALL; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/ApiCachingBehavior.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/ApiCachingBehavior.cpp index a11cc293196..2a8b0ae12ba 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/ApiCachingBehavior.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/ApiCachingBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApiCachingBehaviorMapper { - static const int FULL_REQUEST_CACHING_HASH = HashingUtils::HashString("FULL_REQUEST_CACHING"); - static const int PER_RESOLVER_CACHING_HASH = HashingUtils::HashString("PER_RESOLVER_CACHING"); + static constexpr uint32_t FULL_REQUEST_CACHING_HASH = ConstExprHashingUtils::HashString("FULL_REQUEST_CACHING"); + static constexpr uint32_t PER_RESOLVER_CACHING_HASH = ConstExprHashingUtils::HashString("PER_RESOLVER_CACHING"); ApiCachingBehavior GetApiCachingBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_REQUEST_CACHING_HASH) { return ApiCachingBehavior::FULL_REQUEST_CACHING; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/AssociationStatus.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/AssociationStatus.cpp index 4af3b73af1e..ca20cf1d71a 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/AssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/AssociationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssociationStatusMapper { - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); AssociationStatus GetAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROCESSING_HASH) { return AssociationStatus::PROCESSING; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/AuthenticationType.cpp index 20e5c7d6529..ce606774703 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/AuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/AuthenticationType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AuthenticationTypeMapper { - static const int API_KEY_HASH = HashingUtils::HashString("API_KEY"); - static const int AWS_IAM_HASH = HashingUtils::HashString("AWS_IAM"); - static const int AMAZON_COGNITO_USER_POOLS_HASH = HashingUtils::HashString("AMAZON_COGNITO_USER_POOLS"); - static const int OPENID_CONNECT_HASH = HashingUtils::HashString("OPENID_CONNECT"); - static const int AWS_LAMBDA_HASH = HashingUtils::HashString("AWS_LAMBDA"); + static constexpr uint32_t API_KEY_HASH = ConstExprHashingUtils::HashString("API_KEY"); + static constexpr uint32_t AWS_IAM_HASH = ConstExprHashingUtils::HashString("AWS_IAM"); + static constexpr uint32_t AMAZON_COGNITO_USER_POOLS_HASH = ConstExprHashingUtils::HashString("AMAZON_COGNITO_USER_POOLS"); + static constexpr uint32_t OPENID_CONNECT_HASH = ConstExprHashingUtils::HashString("OPENID_CONNECT"); + static constexpr uint32_t AWS_LAMBDA_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA"); AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_KEY_HASH) { return AuthenticationType::API_KEY; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/AuthorizationType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/AuthorizationType.cpp index 4f70d8be012..5a381ef61e6 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/AuthorizationType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/AuthorizationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AuthorizationTypeMapper { - static const int AWS_IAM_HASH = HashingUtils::HashString("AWS_IAM"); + static constexpr uint32_t AWS_IAM_HASH = ConstExprHashingUtils::HashString("AWS_IAM"); AuthorizationType GetAuthorizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_IAM_HASH) { return AuthorizationType::AWS_IAM; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/BadRequestReason.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/BadRequestReason.cpp index 0838f88ba4d..55141661b30 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/BadRequestReason.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/BadRequestReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BadRequestReasonMapper { - static const int CODE_ERROR_HASH = HashingUtils::HashString("CODE_ERROR"); + static constexpr uint32_t CODE_ERROR_HASH = ConstExprHashingUtils::HashString("CODE_ERROR"); BadRequestReason GetBadRequestReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODE_ERROR_HASH) { return BadRequestReason::CODE_ERROR; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/ConflictDetectionType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/ConflictDetectionType.cpp index 302582a452a..73a6f6534a5 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/ConflictDetectionType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/ConflictDetectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConflictDetectionTypeMapper { - static const int VERSION_HASH = HashingUtils::HashString("VERSION"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t VERSION_HASH = ConstExprHashingUtils::HashString("VERSION"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ConflictDetectionType GetConflictDetectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERSION_HASH) { return ConflictDetectionType::VERSION; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/ConflictHandlerType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/ConflictHandlerType.cpp index 017155ab79b..a3e85b38e0d 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/ConflictHandlerType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/ConflictHandlerType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConflictHandlerTypeMapper { - static const int OPTIMISTIC_CONCURRENCY_HASH = HashingUtils::HashString("OPTIMISTIC_CONCURRENCY"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int AUTOMERGE_HASH = HashingUtils::HashString("AUTOMERGE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t OPTIMISTIC_CONCURRENCY_HASH = ConstExprHashingUtils::HashString("OPTIMISTIC_CONCURRENCY"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t AUTOMERGE_HASH = ConstExprHashingUtils::HashString("AUTOMERGE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ConflictHandlerType GetConflictHandlerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPTIMISTIC_CONCURRENCY_HASH) { return ConflictHandlerType::OPTIMISTIC_CONCURRENCY; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/DataSourceType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/DataSourceType.cpp index 4c49c43f920..804a583163c 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/DataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/DataSourceType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataSourceTypeMapper { - static const int AWS_LAMBDA_HASH = HashingUtils::HashString("AWS_LAMBDA"); - static const int AMAZON_DYNAMODB_HASH = HashingUtils::HashString("AMAZON_DYNAMODB"); - static const int AMAZON_ELASTICSEARCH_HASH = HashingUtils::HashString("AMAZON_ELASTICSEARCH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int RELATIONAL_DATABASE_HASH = HashingUtils::HashString("RELATIONAL_DATABASE"); - static const int AMAZON_OPENSEARCH_SERVICE_HASH = HashingUtils::HashString("AMAZON_OPENSEARCH_SERVICE"); - static const int AMAZON_EVENTBRIDGE_HASH = HashingUtils::HashString("AMAZON_EVENTBRIDGE"); + static constexpr uint32_t AWS_LAMBDA_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA"); + static constexpr uint32_t AMAZON_DYNAMODB_HASH = ConstExprHashingUtils::HashString("AMAZON_DYNAMODB"); + static constexpr uint32_t AMAZON_ELASTICSEARCH_HASH = ConstExprHashingUtils::HashString("AMAZON_ELASTICSEARCH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t RELATIONAL_DATABASE_HASH = ConstExprHashingUtils::HashString("RELATIONAL_DATABASE"); + static constexpr uint32_t AMAZON_OPENSEARCH_SERVICE_HASH = ConstExprHashingUtils::HashString("AMAZON_OPENSEARCH_SERVICE"); + static constexpr uint32_t AMAZON_EVENTBRIDGE_HASH = ConstExprHashingUtils::HashString("AMAZON_EVENTBRIDGE"); DataSourceType GetDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_LAMBDA_HASH) { return DataSourceType::AWS_LAMBDA; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/DefaultAction.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/DefaultAction.cpp index 8bc081e7867..833ef77316b 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/DefaultAction.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/DefaultAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultActionMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); DefaultAction GetDefaultActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return DefaultAction::ALLOW; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp index 5177955a5c1..ebb571f58d5 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FieldLogLevelMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); FieldLogLevel GetFieldLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return FieldLogLevel::NONE; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiType.cpp index f637f9d8426..c372b53c560 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GraphQLApiTypeMapper { - static const int GRAPHQL_HASH = HashingUtils::HashString("GRAPHQL"); - static const int MERGED_HASH = HashingUtils::HashString("MERGED"); + static constexpr uint32_t GRAPHQL_HASH = ConstExprHashingUtils::HashString("GRAPHQL"); + static constexpr uint32_t MERGED_HASH = ConstExprHashingUtils::HashString("MERGED"); GraphQLApiType GetGraphQLApiTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GRAPHQL_HASH) { return GraphQLApiType::GRAPHQL; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiVisibility.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiVisibility.cpp index 9885ce0c217..f71eb95f090 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiVisibility.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/GraphQLApiVisibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GraphQLApiVisibilityMapper { - static const int GLOBAL_HASH = HashingUtils::HashString("GLOBAL"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t GLOBAL_HASH = ConstExprHashingUtils::HashString("GLOBAL"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); GraphQLApiVisibility GetGraphQLApiVisibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GLOBAL_HASH) { return GraphQLApiVisibility::GLOBAL; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/MergeType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/MergeType.cpp index 5cd41593887..9d77ab60aba 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/MergeType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/MergeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MergeTypeMapper { - static const int MANUAL_MERGE_HASH = HashingUtils::HashString("MANUAL_MERGE"); - static const int AUTO_MERGE_HASH = HashingUtils::HashString("AUTO_MERGE"); + static constexpr uint32_t MANUAL_MERGE_HASH = ConstExprHashingUtils::HashString("MANUAL_MERGE"); + static constexpr uint32_t AUTO_MERGE_HASH = ConstExprHashingUtils::HashString("AUTO_MERGE"); MergeType GetMergeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANUAL_MERGE_HASH) { return MergeType::MANUAL_MERGE; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/OutputType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/OutputType.cpp index 7e4e02e9f09..0a5d6f4db4a 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/OutputType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/OutputType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutputTypeMapper { - static const int SDL_HASH = HashingUtils::HashString("SDL"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t SDL_HASH = ConstExprHashingUtils::HashString("SDL"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); OutputType GetOutputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SDL_HASH) { return OutputType::SDL; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/Ownership.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/Ownership.cpp index 36fdb4d4301..622d16f71a2 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/Ownership.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/Ownership.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OwnershipMapper { - static const int CURRENT_ACCOUNT_HASH = HashingUtils::HashString("CURRENT_ACCOUNT"); - static const int OTHER_ACCOUNTS_HASH = HashingUtils::HashString("OTHER_ACCOUNTS"); + static constexpr uint32_t CURRENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("CURRENT_ACCOUNT"); + static constexpr uint32_t OTHER_ACCOUNTS_HASH = ConstExprHashingUtils::HashString("OTHER_ACCOUNTS"); Ownership GetOwnershipForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_ACCOUNT_HASH) { return Ownership::CURRENT_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/RelationalDatabaseSourceType.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/RelationalDatabaseSourceType.cpp index fdc998495c8..36838ee40b5 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/RelationalDatabaseSourceType.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/RelationalDatabaseSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RelationalDatabaseSourceTypeMapper { - static const int RDS_HTTP_ENDPOINT_HASH = HashingUtils::HashString("RDS_HTTP_ENDPOINT"); + static constexpr uint32_t RDS_HTTP_ENDPOINT_HASH = ConstExprHashingUtils::HashString("RDS_HTTP_ENDPOINT"); RelationalDatabaseSourceType GetRelationalDatabaseSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RDS_HTTP_ENDPOINT_HASH) { return RelationalDatabaseSourceType::RDS_HTTP_ENDPOINT; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/ResolverKind.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/ResolverKind.cpp index c0574af2272..038450096ee 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/ResolverKind.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/ResolverKind.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResolverKindMapper { - static const int UNIT_HASH = HashingUtils::HashString("UNIT"); - static const int PIPELINE_HASH = HashingUtils::HashString("PIPELINE"); + static constexpr uint32_t UNIT_HASH = ConstExprHashingUtils::HashString("UNIT"); + static constexpr uint32_t PIPELINE_HASH = ConstExprHashingUtils::HashString("PIPELINE"); ResolverKind GetResolverKindForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNIT_HASH) { return ResolverKind::UNIT; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/RuntimeName.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/RuntimeName.cpp index e569ac257ee..a924eee720c 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/RuntimeName.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/RuntimeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RuntimeNameMapper { - static const int APPSYNC_JS_HASH = HashingUtils::HashString("APPSYNC_JS"); + static constexpr uint32_t APPSYNC_JS_HASH = ConstExprHashingUtils::HashString("APPSYNC_JS"); RuntimeName GetRuntimeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPSYNC_JS_HASH) { return RuntimeName::APPSYNC_JS; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/SchemaStatus.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/SchemaStatus.cpp index 15121253670..84644f8aa95 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/SchemaStatus.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/SchemaStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SchemaStatusMapper { - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); SchemaStatus GetSchemaStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROCESSING_HASH) { return SchemaStatus::PROCESSING; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/SourceApiAssociationStatus.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/SourceApiAssociationStatus.cpp index 07689cafd44..3f72b133d51 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/SourceApiAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/SourceApiAssociationStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SourceApiAssociationStatusMapper { - static const int MERGE_SCHEDULED_HASH = HashingUtils::HashString("MERGE_SCHEDULED"); - static const int MERGE_FAILED_HASH = HashingUtils::HashString("MERGE_FAILED"); - static const int MERGE_SUCCESS_HASH = HashingUtils::HashString("MERGE_SUCCESS"); - static const int MERGE_IN_PROGRESS_HASH = HashingUtils::HashString("MERGE_IN_PROGRESS"); - static const int AUTO_MERGE_SCHEDULE_FAILED_HASH = HashingUtils::HashString("AUTO_MERGE_SCHEDULE_FAILED"); - static const int DELETION_SCHEDULED_HASH = HashingUtils::HashString("DELETION_SCHEDULED"); - static const int DELETION_IN_PROGRESS_HASH = HashingUtils::HashString("DELETION_IN_PROGRESS"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t MERGE_SCHEDULED_HASH = ConstExprHashingUtils::HashString("MERGE_SCHEDULED"); + static constexpr uint32_t MERGE_FAILED_HASH = ConstExprHashingUtils::HashString("MERGE_FAILED"); + static constexpr uint32_t MERGE_SUCCESS_HASH = ConstExprHashingUtils::HashString("MERGE_SUCCESS"); + static constexpr uint32_t MERGE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("MERGE_IN_PROGRESS"); + static constexpr uint32_t AUTO_MERGE_SCHEDULE_FAILED_HASH = ConstExprHashingUtils::HashString("AUTO_MERGE_SCHEDULE_FAILED"); + static constexpr uint32_t DELETION_SCHEDULED_HASH = ConstExprHashingUtils::HashString("DELETION_SCHEDULED"); + static constexpr uint32_t DELETION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETION_IN_PROGRESS"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); SourceApiAssociationStatus GetSourceApiAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MERGE_SCHEDULED_HASH) { return SourceApiAssociationStatus::MERGE_SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-appsync/source/model/TypeDefinitionFormat.cpp b/generated/src/aws-cpp-sdk-appsync/source/model/TypeDefinitionFormat.cpp index 7aca593eff8..3ab75fb074c 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/model/TypeDefinitionFormat.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/model/TypeDefinitionFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeDefinitionFormatMapper { - static const int SDL_HASH = HashingUtils::HashString("SDL"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t SDL_HASH = ConstExprHashingUtils::HashString("SDL"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); TypeDefinitionFormat GetTypeDefinitionFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SDL_HASH) { return TypeDefinitionFormat::SDL; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftErrors.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftErrors.cpp index 0ae77e6d0e5..f105d4e4a6a 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftErrors.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftErrors.cpp @@ -33,13 +33,13 @@ template<> AWS_ARCZONALSHIFT_API ValidationException ARCZonalShiftError::GetMode namespace ARCZonalShiftErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AppliedStatus.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AppliedStatus.cpp index 0cd856665c8..0de93059a96 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AppliedStatus.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/AppliedStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppliedStatusMapper { - static const int APPLIED_HASH = HashingUtils::HashString("APPLIED"); - static const int NOT_APPLIED_HASH = HashingUtils::HashString("NOT_APPLIED"); + static constexpr uint32_t APPLIED_HASH = ConstExprHashingUtils::HashString("APPLIED"); + static constexpr uint32_t NOT_APPLIED_HASH = ConstExprHashingUtils::HashString("NOT_APPLIED"); AppliedStatus GetAppliedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLIED_HASH) { return AppliedStatus::APPLIED; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp index ee6ce91e9f6..8c24d0972df 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ConflictExceptionReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConflictExceptionReasonMapper { - static const int ZonalShiftAlreadyExists_HASH = HashingUtils::HashString("ZonalShiftAlreadyExists"); - static const int ZonalShiftStatusNotActive_HASH = HashingUtils::HashString("ZonalShiftStatusNotActive"); - static const int SimultaneousZonalShiftsConflict_HASH = HashingUtils::HashString("SimultaneousZonalShiftsConflict"); + static constexpr uint32_t ZonalShiftAlreadyExists_HASH = ConstExprHashingUtils::HashString("ZonalShiftAlreadyExists"); + static constexpr uint32_t ZonalShiftStatusNotActive_HASH = ConstExprHashingUtils::HashString("ZonalShiftStatusNotActive"); + static constexpr uint32_t SimultaneousZonalShiftsConflict_HASH = ConstExprHashingUtils::HashString("SimultaneousZonalShiftsConflict"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZonalShiftAlreadyExists_HASH) { return ConflictExceptionReason::ZonalShiftAlreadyExists; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp index d4c6ce99869..9593779d764 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ValidationExceptionReason.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int InvalidExpiresIn_HASH = HashingUtils::HashString("InvalidExpiresIn"); - static const int InvalidStatus_HASH = HashingUtils::HashString("InvalidStatus"); - static const int MissingValue_HASH = HashingUtils::HashString("MissingValue"); - static const int InvalidToken_HASH = HashingUtils::HashString("InvalidToken"); - static const int InvalidResourceIdentifier_HASH = HashingUtils::HashString("InvalidResourceIdentifier"); - static const int InvalidAz_HASH = HashingUtils::HashString("InvalidAz"); - static const int UnsupportedAz_HASH = HashingUtils::HashString("UnsupportedAz"); + static constexpr uint32_t InvalidExpiresIn_HASH = ConstExprHashingUtils::HashString("InvalidExpiresIn"); + static constexpr uint32_t InvalidStatus_HASH = ConstExprHashingUtils::HashString("InvalidStatus"); + static constexpr uint32_t MissingValue_HASH = ConstExprHashingUtils::HashString("MissingValue"); + static constexpr uint32_t InvalidToken_HASH = ConstExprHashingUtils::HashString("InvalidToken"); + static constexpr uint32_t InvalidResourceIdentifier_HASH = ConstExprHashingUtils::HashString("InvalidResourceIdentifier"); + static constexpr uint32_t InvalidAz_HASH = ConstExprHashingUtils::HashString("InvalidAz"); + static constexpr uint32_t UnsupportedAz_HASH = ConstExprHashingUtils::HashString("UnsupportedAz"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidExpiresIn_HASH) { return ValidationExceptionReason::InvalidExpiresIn; diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftStatus.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftStatus.cpp index ab4568d9a7e..71f6840474f 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftStatus.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/model/ZonalShiftStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ZonalShiftStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); ZonalShiftStatus GetZonalShiftStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ZonalShiftStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-athena/source/AthenaErrors.cpp b/generated/src/aws-cpp-sdk-athena/source/AthenaErrors.cpp index e6c23118f8e..d317753dfcc 100644 --- a/generated/src/aws-cpp-sdk-athena/source/AthenaErrors.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/AthenaErrors.cpp @@ -40,16 +40,16 @@ template<> AWS_ATHENA_API InvalidRequestException AthenaError::GetModeledError() namespace AthenaErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int METADATA_HASH = HashingUtils::HashString("MetadataException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int SESSION_ALREADY_EXISTS_HASH = HashingUtils::HashString("SessionAlreadyExistsException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t METADATA_HASH = ConstExprHashingUtils::HashString("MetadataException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t SESSION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("SessionAlreadyExistsException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-athena/source/model/CalculationExecutionState.cpp b/generated/src/aws-cpp-sdk-athena/source/model/CalculationExecutionState.cpp index 378f48faad6..b82add39272 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/CalculationExecutionState.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/CalculationExecutionState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CalculationExecutionStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CANCELING_HASH = HashingUtils::HashString("CANCELING"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CANCELING_HASH = ConstExprHashingUtils::HashString("CANCELING"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CalculationExecutionState GetCalculationExecutionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CalculationExecutionState::CREATING; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/CapacityAllocationStatus.cpp b/generated/src/aws-cpp-sdk-athena/source/model/CapacityAllocationStatus.cpp index 541fa4aeed0..d50eaf3b739 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/CapacityAllocationStatus.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/CapacityAllocationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CapacityAllocationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CapacityAllocationStatus GetCapacityAllocationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return CapacityAllocationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/CapacityReservationStatus.cpp b/generated/src/aws-cpp-sdk-athena/source/model/CapacityReservationStatus.cpp index 89b4c3ac2eb..f7c9d20fb43 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/CapacityReservationStatus.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/CapacityReservationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CapacityReservationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATE_PENDING_HASH = HashingUtils::HashString("UPDATE_PENDING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATE_PENDING_HASH = ConstExprHashingUtils::HashString("UPDATE_PENDING"); CapacityReservationStatus GetCapacityReservationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return CapacityReservationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/ColumnNullable.cpp b/generated/src/aws-cpp-sdk-athena/source/model/ColumnNullable.cpp index ca5a2482ac1..82814a8f4af 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/ColumnNullable.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/ColumnNullable.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ColumnNullableMapper { - static const int NOT_NULL_HASH = HashingUtils::HashString("NOT_NULL"); - static const int NULLABLE_HASH = HashingUtils::HashString("NULLABLE"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t NOT_NULL_HASH = ConstExprHashingUtils::HashString("NOT_NULL"); + static constexpr uint32_t NULLABLE_HASH = ConstExprHashingUtils::HashString("NULLABLE"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); ColumnNullable GetColumnNullableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_NULL_HASH) { return ColumnNullable::NOT_NULL; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/DataCatalogType.cpp b/generated/src/aws-cpp-sdk-athena/source/model/DataCatalogType.cpp index 73916e9ab25..5f070f2df8b 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/DataCatalogType.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/DataCatalogType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataCatalogTypeMapper { - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int GLUE_HASH = HashingUtils::HashString("GLUE"); - static const int HIVE_HASH = HashingUtils::HashString("HIVE"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t GLUE_HASH = ConstExprHashingUtils::HashString("GLUE"); + static constexpr uint32_t HIVE_HASH = ConstExprHashingUtils::HashString("HIVE"); DataCatalogType GetDataCatalogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAMBDA_HASH) { return DataCatalogType::LAMBDA; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/EncryptionOption.cpp b/generated/src/aws-cpp-sdk-athena/source/model/EncryptionOption.cpp index 5f5b31dce13..a7b625f411c 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/EncryptionOption.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/EncryptionOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EncryptionOptionMapper { - static const int SSE_S3_HASH = HashingUtils::HashString("SSE_S3"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE_KMS"); - static const int CSE_KMS_HASH = HashingUtils::HashString("CSE_KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE_S3"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE_KMS"); + static constexpr uint32_t CSE_KMS_HASH = ConstExprHashingUtils::HashString("CSE_KMS"); EncryptionOption GetEncryptionOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSE_S3_HASH) { return EncryptionOption::SSE_S3; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/ExecutorState.cpp b/generated/src/aws-cpp-sdk-athena/source/model/ExecutorState.cpp index 75d67b3cd43..2d89f4fdf2b 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/ExecutorState.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/ExecutorState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ExecutorStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int REGISTERED_HASH = HashingUtils::HashString("REGISTERED"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t REGISTERED_HASH = ConstExprHashingUtils::HashString("REGISTERED"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ExecutorState GetExecutorStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ExecutorState::CREATING; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/ExecutorType.cpp b/generated/src/aws-cpp-sdk-athena/source/model/ExecutorType.cpp index cef22d12fa0..38ba41c6d57 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/ExecutorType.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/ExecutorType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExecutorTypeMapper { - static const int COORDINATOR_HASH = HashingUtils::HashString("COORDINATOR"); - static const int GATEWAY_HASH = HashingUtils::HashString("GATEWAY"); - static const int WORKER_HASH = HashingUtils::HashString("WORKER"); + static constexpr uint32_t COORDINATOR_HASH = ConstExprHashingUtils::HashString("COORDINATOR"); + static constexpr uint32_t GATEWAY_HASH = ConstExprHashingUtils::HashString("GATEWAY"); + static constexpr uint32_t WORKER_HASH = ConstExprHashingUtils::HashString("WORKER"); ExecutorType GetExecutorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COORDINATOR_HASH) { return ExecutorType::COORDINATOR; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/NotebookType.cpp b/generated/src/aws-cpp-sdk-athena/source/model/NotebookType.cpp index 4463b83b88e..a2169212583 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/NotebookType.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/NotebookType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NotebookTypeMapper { - static const int IPYNB_HASH = HashingUtils::HashString("IPYNB"); + static constexpr uint32_t IPYNB_HASH = ConstExprHashingUtils::HashString("IPYNB"); NotebookType GetNotebookTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPYNB_HASH) { return NotebookType::IPYNB; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/QueryExecutionState.cpp b/generated/src/aws-cpp-sdk-athena/source/model/QueryExecutionState.cpp index 1de48e93d5d..724abeda58d 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/QueryExecutionState.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/QueryExecutionState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace QueryExecutionStateMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); QueryExecutionState GetQueryExecutionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return QueryExecutionState::QUEUED; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/S3AclOption.cpp b/generated/src/aws-cpp-sdk-athena/source/model/S3AclOption.cpp index d0982a3b3af..db8b209b386 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/S3AclOption.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/S3AclOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace S3AclOptionMapper { - static const int BUCKET_OWNER_FULL_CONTROL_HASH = HashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); + static constexpr uint32_t BUCKET_OWNER_FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); S3AclOption GetS3AclOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUCKET_OWNER_FULL_CONTROL_HASH) { return S3AclOption::BUCKET_OWNER_FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/SessionState.cpp b/generated/src/aws-cpp-sdk-athena/source/model/SessionState.cpp index 993abea80de..8912612265c 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/SessionState.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/SessionState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SessionStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int BUSY_HASH = HashingUtils::HashString("BUSY"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t BUSY_HASH = ConstExprHashingUtils::HashString("BUSY"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); SessionState GetSessionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return SessionState::CREATING; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/StatementType.cpp b/generated/src/aws-cpp-sdk-athena/source/model/StatementType.cpp index 6231106502a..1c935a6f058 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/StatementType.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/StatementType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatementTypeMapper { - static const int DDL_HASH = HashingUtils::HashString("DDL"); - static const int DML_HASH = HashingUtils::HashString("DML"); - static const int UTILITY_HASH = HashingUtils::HashString("UTILITY"); + static constexpr uint32_t DDL_HASH = ConstExprHashingUtils::HashString("DDL"); + static constexpr uint32_t DML_HASH = ConstExprHashingUtils::HashString("DML"); + static constexpr uint32_t UTILITY_HASH = ConstExprHashingUtils::HashString("UTILITY"); StatementType GetStatementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DDL_HASH) { return StatementType::DDL; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/ThrottleReason.cpp b/generated/src/aws-cpp-sdk-athena/source/model/ThrottleReason.cpp index 316af8998db..9643a995a35 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/ThrottleReason.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/ThrottleReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ThrottleReasonMapper { - static const int CONCURRENT_QUERY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CONCURRENT_QUERY_LIMIT_EXCEEDED"); + static constexpr uint32_t CONCURRENT_QUERY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CONCURRENT_QUERY_LIMIT_EXCEEDED"); ThrottleReason GetThrottleReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONCURRENT_QUERY_LIMIT_EXCEEDED_HASH) { return ThrottleReason::CONCURRENT_QUERY_LIMIT_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-athena/source/model/WorkGroupState.cpp b/generated/src/aws-cpp-sdk-athena/source/model/WorkGroupState.cpp index 9d4d27f20fc..8db702aeb7d 100644 --- a/generated/src/aws-cpp-sdk-athena/source/model/WorkGroupState.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/model/WorkGroupState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WorkGroupStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); WorkGroupState GetWorkGroupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return WorkGroupState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerErrors.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerErrors.cpp index 63459aae49d..a7d9d066175 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerErrors.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerErrors.cpp @@ -33,13 +33,13 @@ template<> AWS_AUDITMANAGER_API ValidationException AuditManagerError::GetModele namespace AuditManagerErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/AccountStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/AccountStatus.cpp index 696dc095c36..66c62c5531b 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/AccountStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/AccountStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccountStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int PENDING_ACTIVATION_HASH = HashingUtils::HashString("PENDING_ACTIVATION"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t PENDING_ACTIVATION_HASH = ConstExprHashingUtils::HashString("PENDING_ACTIVATION"); AccountStatus GetAccountStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AccountStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ActionEnum.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ActionEnum.cpp index 9fc69ec8ac2..7749062ab5a 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ActionEnum.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ActionEnum.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ActionEnumMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_METADATA_HASH = HashingUtils::HashString("UPDATE_METADATA"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int UNDER_REVIEW_HASH = HashingUtils::HashString("UNDER_REVIEW"); - static const int REVIEWED_HASH = HashingUtils::HashString("REVIEWED"); - static const int IMPORT_EVIDENCE_HASH = HashingUtils::HashString("IMPORT_EVIDENCE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_METADATA_HASH = ConstExprHashingUtils::HashString("UPDATE_METADATA"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t UNDER_REVIEW_HASH = ConstExprHashingUtils::HashString("UNDER_REVIEW"); + static constexpr uint32_t REVIEWED_HASH = ConstExprHashingUtils::HashString("REVIEWED"); + static constexpr uint32_t IMPORT_EVIDENCE_HASH = ConstExprHashingUtils::HashString("IMPORT_EVIDENCE"); ActionEnum GetActionEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return ActionEnum::CREATE; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportDestinationType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportDestinationType.cpp index b11d4d16685..9d57f404b5e 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportDestinationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssessmentReportDestinationTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); AssessmentReportDestinationType GetAssessmentReportDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return AssessmentReportDestinationType::S3; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportStatus.cpp index cecd17d42ed..9947ff7f0a6 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssessmentReportStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AssessmentReportStatus GetAssessmentReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return AssessmentReportStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentStatus.cpp index ef3749acd94..6bce77841e9 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/AssessmentStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssessmentStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AssessmentStatus GetAssessmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AssessmentStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlResponse.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlResponse.cpp index 6fb623e60f6..93f8b9aae28 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlResponse.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlResponse.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ControlResponseMapper { - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); - static const int AUTOMATE_HASH = HashingUtils::HashString("AUTOMATE"); - static const int DEFER_HASH = HashingUtils::HashString("DEFER"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATE_HASH = ConstExprHashingUtils::HashString("AUTOMATE"); + static constexpr uint32_t DEFER_HASH = ConstExprHashingUtils::HashString("DEFER"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); ControlResponse GetControlResponseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANUAL_HASH) { return ControlResponse::MANUAL; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlSetStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlSetStatus.cpp index 56a0d6873ec..e727fd2f1de 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlSetStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ControlSetStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UNDER_REVIEW_HASH = HashingUtils::HashString("UNDER_REVIEW"); - static const int REVIEWED_HASH = HashingUtils::HashString("REVIEWED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UNDER_REVIEW_HASH = ConstExprHashingUtils::HashString("UNDER_REVIEW"); + static constexpr uint32_t REVIEWED_HASH = ConstExprHashingUtils::HashString("REVIEWED"); ControlSetStatus GetControlSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ControlSetStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlStatus.cpp index c3eaea48b73..3ae553d6c38 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ControlStatusMapper { - static const int UNDER_REVIEW_HASH = HashingUtils::HashString("UNDER_REVIEW"); - static const int REVIEWED_HASH = HashingUtils::HashString("REVIEWED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t UNDER_REVIEW_HASH = ConstExprHashingUtils::HashString("UNDER_REVIEW"); + static constexpr uint32_t REVIEWED_HASH = ConstExprHashingUtils::HashString("REVIEWED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ControlStatus GetControlStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNDER_REVIEW_HASH) { return ControlStatus::UNDER_REVIEW; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlType.cpp index c24702899fb..5608afc6083 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ControlType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ControlTypeMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Custom_HASH = HashingUtils::HashString("Custom"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); ControlType GetControlTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return ControlType::Standard; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/DelegationStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/DelegationStatus.cpp index dbf206703ed..f07baa76fe6 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/DelegationStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/DelegationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DelegationStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int UNDER_REVIEW_HASH = HashingUtils::HashString("UNDER_REVIEW"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t UNDER_REVIEW_HASH = ConstExprHashingUtils::HashString("UNDER_REVIEW"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); DelegationStatus GetDelegationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DelegationStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/DeleteResources.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/DeleteResources.cpp index 2f22d26a520..a7df17806cd 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/DeleteResources.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/DeleteResources.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeleteResourcesMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); DeleteResources GetDeleteResourcesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return DeleteResources::ALL; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderBackfillStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderBackfillStatus.cpp index bb246bff2a6..08afa04583f 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderBackfillStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderBackfillStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EvidenceFinderBackfillStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); EvidenceFinderBackfillStatus GetEvidenceFinderBackfillStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return EvidenceFinderBackfillStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderEnablementStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderEnablementStatus.cpp index b16b756aa5f..b6cc7ffda2b 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderEnablementStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/EvidenceFinderEnablementStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EvidenceFinderEnablementStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLE_IN_PROGRESS_HASH = HashingUtils::HashString("ENABLE_IN_PROGRESS"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ENABLE_IN_PROGRESS"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); EvidenceFinderEnablementStatus GetEvidenceFinderEnablementStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EvidenceFinderEnablementStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ExportDestinationType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ExportDestinationType.cpp index eeddc64cbc4..d92472dfa96 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ExportDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ExportDestinationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExportDestinationTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); ExportDestinationType GetExportDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return ExportDestinationType::S3; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/FrameworkType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/FrameworkType.cpp index 4f62a01d5f9..65917fdbe9d 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/FrameworkType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/FrameworkType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FrameworkTypeMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Custom_HASH = HashingUtils::HashString("Custom"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); FrameworkType GetFrameworkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return FrameworkType::Standard; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/KeywordInputType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/KeywordInputType.cpp index ac54c048f4b..4006e0680ee 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/KeywordInputType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/KeywordInputType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace KeywordInputTypeMapper { - static const int SELECT_FROM_LIST_HASH = HashingUtils::HashString("SELECT_FROM_LIST"); - static const int UPLOAD_FILE_HASH = HashingUtils::HashString("UPLOAD_FILE"); - static const int INPUT_TEXT_HASH = HashingUtils::HashString("INPUT_TEXT"); + static constexpr uint32_t SELECT_FROM_LIST_HASH = ConstExprHashingUtils::HashString("SELECT_FROM_LIST"); + static constexpr uint32_t UPLOAD_FILE_HASH = ConstExprHashingUtils::HashString("UPLOAD_FILE"); + static constexpr uint32_t INPUT_TEXT_HASH = ConstExprHashingUtils::HashString("INPUT_TEXT"); KeywordInputType GetKeywordInputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELECT_FROM_LIST_HASH) { return KeywordInputType::SELECT_FROM_LIST; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ObjectTypeEnum.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ObjectTypeEnum.cpp index c8e16c6cf4e..cbb3a8798a8 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ObjectTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ObjectTypeEnum.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ObjectTypeEnumMapper { - static const int ASSESSMENT_HASH = HashingUtils::HashString("ASSESSMENT"); - static const int CONTROL_SET_HASH = HashingUtils::HashString("CONTROL_SET"); - static const int CONTROL_HASH = HashingUtils::HashString("CONTROL"); - static const int DELEGATION_HASH = HashingUtils::HashString("DELEGATION"); - static const int ASSESSMENT_REPORT_HASH = HashingUtils::HashString("ASSESSMENT_REPORT"); + static constexpr uint32_t ASSESSMENT_HASH = ConstExprHashingUtils::HashString("ASSESSMENT"); + static constexpr uint32_t CONTROL_SET_HASH = ConstExprHashingUtils::HashString("CONTROL_SET"); + static constexpr uint32_t CONTROL_HASH = ConstExprHashingUtils::HashString("CONTROL"); + static constexpr uint32_t DELEGATION_HASH = ConstExprHashingUtils::HashString("DELEGATION"); + static constexpr uint32_t ASSESSMENT_REPORT_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_REPORT"); ObjectTypeEnum GetObjectTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSESSMENT_HASH) { return ObjectTypeEnum::ASSESSMENT; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/RoleType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/RoleType.cpp index 6c808f7f464..a409b9a0c60 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/RoleType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/RoleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RoleTypeMapper { - static const int PROCESS_OWNER_HASH = HashingUtils::HashString("PROCESS_OWNER"); - static const int RESOURCE_OWNER_HASH = HashingUtils::HashString("RESOURCE_OWNER"); + static constexpr uint32_t PROCESS_OWNER_HASH = ConstExprHashingUtils::HashString("PROCESS_OWNER"); + static constexpr uint32_t RESOURCE_OWNER_HASH = ConstExprHashingUtils::HashString("RESOURCE_OWNER"); RoleType GetRoleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROCESS_OWNER_HASH) { return RoleType::PROCESS_OWNER; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/SettingAttribute.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/SettingAttribute.cpp index de67d655b83..35e1c9595b6 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/SettingAttribute.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/SettingAttribute.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SettingAttributeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int IS_AWS_ORG_ENABLED_HASH = HashingUtils::HashString("IS_AWS_ORG_ENABLED"); - static const int SNS_TOPIC_HASH = HashingUtils::HashString("SNS_TOPIC"); - static const int DEFAULT_ASSESSMENT_REPORTS_DESTINATION_HASH = HashingUtils::HashString("DEFAULT_ASSESSMENT_REPORTS_DESTINATION"); - static const int DEFAULT_PROCESS_OWNERS_HASH = HashingUtils::HashString("DEFAULT_PROCESS_OWNERS"); - static const int EVIDENCE_FINDER_ENABLEMENT_HASH = HashingUtils::HashString("EVIDENCE_FINDER_ENABLEMENT"); - static const int DEREGISTRATION_POLICY_HASH = HashingUtils::HashString("DEREGISTRATION_POLICY"); - static const int DEFAULT_EXPORT_DESTINATION_HASH = HashingUtils::HashString("DEFAULT_EXPORT_DESTINATION"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t IS_AWS_ORG_ENABLED_HASH = ConstExprHashingUtils::HashString("IS_AWS_ORG_ENABLED"); + static constexpr uint32_t SNS_TOPIC_HASH = ConstExprHashingUtils::HashString("SNS_TOPIC"); + static constexpr uint32_t DEFAULT_ASSESSMENT_REPORTS_DESTINATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_ASSESSMENT_REPORTS_DESTINATION"); + static constexpr uint32_t DEFAULT_PROCESS_OWNERS_HASH = ConstExprHashingUtils::HashString("DEFAULT_PROCESS_OWNERS"); + static constexpr uint32_t EVIDENCE_FINDER_ENABLEMENT_HASH = ConstExprHashingUtils::HashString("EVIDENCE_FINDER_ENABLEMENT"); + static constexpr uint32_t DEREGISTRATION_POLICY_HASH = ConstExprHashingUtils::HashString("DEREGISTRATION_POLICY"); + static constexpr uint32_t DEFAULT_EXPORT_DESTINATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_EXPORT_DESTINATION"); SettingAttribute GetSettingAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return SettingAttribute::ALL; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestAction.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestAction.cpp index ea3ba0dfb65..28e5db223b9 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestAction.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ShareRequestActionMapper { - static const int ACCEPT_HASH = HashingUtils::HashString("ACCEPT"); - static const int DECLINE_HASH = HashingUtils::HashString("DECLINE"); - static const int REVOKE_HASH = HashingUtils::HashString("REVOKE"); + static constexpr uint32_t ACCEPT_HASH = ConstExprHashingUtils::HashString("ACCEPT"); + static constexpr uint32_t DECLINE_HASH = ConstExprHashingUtils::HashString("DECLINE"); + static constexpr uint32_t REVOKE_HASH = ConstExprHashingUtils::HashString("REVOKE"); ShareRequestAction GetShareRequestActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPT_HASH) { return ShareRequestAction::ACCEPT; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestStatus.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestStatus.cpp index 2a9306f0299..3720ce99eb5 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestStatus.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ShareRequestStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int REPLICATING_HASH = HashingUtils::HashString("REPLICATING"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int EXPIRING_HASH = HashingUtils::HashString("EXPIRING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int DECLINED_HASH = HashingUtils::HashString("DECLINED"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t REPLICATING_HASH = ConstExprHashingUtils::HashString("REPLICATING"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t EXPIRING_HASH = ConstExprHashingUtils::HashString("EXPIRING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t DECLINED_HASH = ConstExprHashingUtils::HashString("DECLINED"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); ShareRequestStatus GetShareRequestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ShareRequestStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestType.cpp index 6389248b0e7..3b07903ab4c 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ShareRequestType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShareRequestTypeMapper { - static const int SENT_HASH = HashingUtils::HashString("SENT"); - static const int RECEIVED_HASH = HashingUtils::HashString("RECEIVED"); + static constexpr uint32_t SENT_HASH = ConstExprHashingUtils::HashString("SENT"); + static constexpr uint32_t RECEIVED_HASH = ConstExprHashingUtils::HashString("RECEIVED"); ShareRequestType GetShareRequestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SENT_HASH) { return ShareRequestType::SENT; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceFrequency.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceFrequency.cpp index ecfc954fd76..8da10c81e1d 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceFrequency.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SourceFrequencyMapper { - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); SourceFrequency GetSourceFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAILY_HASH) { return SourceFrequency::DAILY; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceSetUpOption.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceSetUpOption.cpp index b3063e348b7..99a9ef590fa 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceSetUpOption.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceSetUpOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SourceSetUpOptionMapper { - static const int System_Controls_Mapping_HASH = HashingUtils::HashString("System_Controls_Mapping"); - static const int Procedural_Controls_Mapping_HASH = HashingUtils::HashString("Procedural_Controls_Mapping"); + static constexpr uint32_t System_Controls_Mapping_HASH = ConstExprHashingUtils::HashString("System_Controls_Mapping"); + static constexpr uint32_t Procedural_Controls_Mapping_HASH = ConstExprHashingUtils::HashString("Procedural_Controls_Mapping"); SourceSetUpOption GetSourceSetUpOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == System_Controls_Mapping_HASH) { return SourceSetUpOption::System_Controls_Mapping; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceType.cpp index bc266616d14..208f25d1487 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/SourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SourceTypeMapper { - static const int AWS_Cloudtrail_HASH = HashingUtils::HashString("AWS_Cloudtrail"); - static const int AWS_Config_HASH = HashingUtils::HashString("AWS_Config"); - static const int AWS_Security_Hub_HASH = HashingUtils::HashString("AWS_Security_Hub"); - static const int AWS_API_Call_HASH = HashingUtils::HashString("AWS_API_Call"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AWS_Cloudtrail_HASH = ConstExprHashingUtils::HashString("AWS_Cloudtrail"); + static constexpr uint32_t AWS_Config_HASH = ConstExprHashingUtils::HashString("AWS_Config"); + static constexpr uint32_t AWS_Security_Hub_HASH = ConstExprHashingUtils::HashString("AWS_Security_Hub"); + static constexpr uint32_t AWS_API_Call_HASH = ConstExprHashingUtils::HashString("AWS_API_Call"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_Cloudtrail_HASH) { return SourceType::AWS_Cloudtrail; diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/model/ValidationExceptionReason.cpp index 8b4bc743910..a1d1e19ecde 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansErrors.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansErrors.cpp index 2286e60a063..d4ace726be8 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansErrors.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansErrors.cpp @@ -18,16 +18,16 @@ namespace AutoScalingPlans namespace AutoScalingPlansErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_UPDATE_HASH = HashingUtils::HashString("ConcurrentUpdateException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int OBJECT_NOT_FOUND_HASH = HashingUtils::HashString("ObjectNotFoundException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_UPDATE_HASH = ConstExprHashingUtils::HashString("ConcurrentUpdateException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t OBJECT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ObjectNotFoundException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ForecastDataType.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ForecastDataType.cpp index 1a49107f447..1ed407bc249 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ForecastDataType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ForecastDataType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ForecastDataTypeMapper { - static const int CapacityForecast_HASH = HashingUtils::HashString("CapacityForecast"); - static const int LoadForecast_HASH = HashingUtils::HashString("LoadForecast"); - static const int ScheduledActionMinCapacity_HASH = HashingUtils::HashString("ScheduledActionMinCapacity"); - static const int ScheduledActionMaxCapacity_HASH = HashingUtils::HashString("ScheduledActionMaxCapacity"); + static constexpr uint32_t CapacityForecast_HASH = ConstExprHashingUtils::HashString("CapacityForecast"); + static constexpr uint32_t LoadForecast_HASH = ConstExprHashingUtils::HashString("LoadForecast"); + static constexpr uint32_t ScheduledActionMinCapacity_HASH = ConstExprHashingUtils::HashString("ScheduledActionMinCapacity"); + static constexpr uint32_t ScheduledActionMaxCapacity_HASH = ConstExprHashingUtils::HashString("ScheduledActionMaxCapacity"); ForecastDataType GetForecastDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CapacityForecast_HASH) { return ForecastDataType::CapacityForecast; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/LoadMetricType.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/LoadMetricType.cpp index ef72dbf0c31..c18109e3bd9 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/LoadMetricType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/LoadMetricType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LoadMetricTypeMapper { - static const int ASGTotalCPUUtilization_HASH = HashingUtils::HashString("ASGTotalCPUUtilization"); - static const int ASGTotalNetworkIn_HASH = HashingUtils::HashString("ASGTotalNetworkIn"); - static const int ASGTotalNetworkOut_HASH = HashingUtils::HashString("ASGTotalNetworkOut"); - static const int ALBTargetGroupRequestCount_HASH = HashingUtils::HashString("ALBTargetGroupRequestCount"); + static constexpr uint32_t ASGTotalCPUUtilization_HASH = ConstExprHashingUtils::HashString("ASGTotalCPUUtilization"); + static constexpr uint32_t ASGTotalNetworkIn_HASH = ConstExprHashingUtils::HashString("ASGTotalNetworkIn"); + static constexpr uint32_t ASGTotalNetworkOut_HASH = ConstExprHashingUtils::HashString("ASGTotalNetworkOut"); + static constexpr uint32_t ALBTargetGroupRequestCount_HASH = ConstExprHashingUtils::HashString("ALBTargetGroupRequestCount"); LoadMetricType GetLoadMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASGTotalCPUUtilization_HASH) { return LoadMetricType::ASGTotalCPUUtilization; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/MetricStatistic.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/MetricStatistic.cpp index 7ab0e4c2318..7505f0b669a 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/MetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/MetricStatistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MetricStatisticMapper { - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); MetricStatistic GetMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Average_HASH) { return MetricStatistic::Average; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PolicyType.cpp index 49f72d43cf9..267078daa4b 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PolicyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PolicyTypeMapper { - static const int TargetTrackingScaling_HASH = HashingUtils::HashString("TargetTrackingScaling"); + static constexpr uint32_t TargetTrackingScaling_HASH = ConstExprHashingUtils::HashString("TargetTrackingScaling"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TargetTrackingScaling_HASH) { return PolicyType::TargetTrackingScaling; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMaxCapacityBehavior.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMaxCapacityBehavior.cpp index fb2f5613a5b..3507895dc91 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMaxCapacityBehavior.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMaxCapacityBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PredictiveScalingMaxCapacityBehaviorMapper { - static const int SetForecastCapacityToMaxCapacity_HASH = HashingUtils::HashString("SetForecastCapacityToMaxCapacity"); - static const int SetMaxCapacityToForecastCapacity_HASH = HashingUtils::HashString("SetMaxCapacityToForecastCapacity"); - static const int SetMaxCapacityAboveForecastCapacity_HASH = HashingUtils::HashString("SetMaxCapacityAboveForecastCapacity"); + static constexpr uint32_t SetForecastCapacityToMaxCapacity_HASH = ConstExprHashingUtils::HashString("SetForecastCapacityToMaxCapacity"); + static constexpr uint32_t SetMaxCapacityToForecastCapacity_HASH = ConstExprHashingUtils::HashString("SetMaxCapacityToForecastCapacity"); + static constexpr uint32_t SetMaxCapacityAboveForecastCapacity_HASH = ConstExprHashingUtils::HashString("SetMaxCapacityAboveForecastCapacity"); PredictiveScalingMaxCapacityBehavior GetPredictiveScalingMaxCapacityBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SetForecastCapacityToMaxCapacity_HASH) { return PredictiveScalingMaxCapacityBehavior::SetForecastCapacityToMaxCapacity; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMode.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMode.cpp index 80cfd1517bc..effb7e11a6a 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMode.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/PredictiveScalingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PredictiveScalingModeMapper { - static const int ForecastAndScale_HASH = HashingUtils::HashString("ForecastAndScale"); - static const int ForecastOnly_HASH = HashingUtils::HashString("ForecastOnly"); + static constexpr uint32_t ForecastAndScale_HASH = ConstExprHashingUtils::HashString("ForecastAndScale"); + static constexpr uint32_t ForecastOnly_HASH = ConstExprHashingUtils::HashString("ForecastOnly"); PredictiveScalingMode GetPredictiveScalingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ForecastAndScale_HASH) { return PredictiveScalingMode::ForecastAndScale; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalableDimension.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalableDimension.cpp index c9623ac8360..6c5e3e7eea0 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalableDimension.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalableDimension.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ScalableDimensionMapper { - static const int autoscaling_autoScalingGroup_DesiredCapacity_HASH = HashingUtils::HashString("autoscaling:autoScalingGroup:DesiredCapacity"); - static const int ecs_service_DesiredCount_HASH = HashingUtils::HashString("ecs:service:DesiredCount"); - static const int ec2_spot_fleet_request_TargetCapacity_HASH = HashingUtils::HashString("ec2:spot-fleet-request:TargetCapacity"); - static const int rds_cluster_ReadReplicaCount_HASH = HashingUtils::HashString("rds:cluster:ReadReplicaCount"); - static const int dynamodb_table_ReadCapacityUnits_HASH = HashingUtils::HashString("dynamodb:table:ReadCapacityUnits"); - static const int dynamodb_table_WriteCapacityUnits_HASH = HashingUtils::HashString("dynamodb:table:WriteCapacityUnits"); - static const int dynamodb_index_ReadCapacityUnits_HASH = HashingUtils::HashString("dynamodb:index:ReadCapacityUnits"); - static const int dynamodb_index_WriteCapacityUnits_HASH = HashingUtils::HashString("dynamodb:index:WriteCapacityUnits"); + static constexpr uint32_t autoscaling_autoScalingGroup_DesiredCapacity_HASH = ConstExprHashingUtils::HashString("autoscaling:autoScalingGroup:DesiredCapacity"); + static constexpr uint32_t ecs_service_DesiredCount_HASH = ConstExprHashingUtils::HashString("ecs:service:DesiredCount"); + static constexpr uint32_t ec2_spot_fleet_request_TargetCapacity_HASH = ConstExprHashingUtils::HashString("ec2:spot-fleet-request:TargetCapacity"); + static constexpr uint32_t rds_cluster_ReadReplicaCount_HASH = ConstExprHashingUtils::HashString("rds:cluster:ReadReplicaCount"); + static constexpr uint32_t dynamodb_table_ReadCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:table:ReadCapacityUnits"); + static constexpr uint32_t dynamodb_table_WriteCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:table:WriteCapacityUnits"); + static constexpr uint32_t dynamodb_index_ReadCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:index:ReadCapacityUnits"); + static constexpr uint32_t dynamodb_index_WriteCapacityUnits_HASH = ConstExprHashingUtils::HashString("dynamodb:index:WriteCapacityUnits"); ScalableDimension GetScalableDimensionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == autoscaling_autoScalingGroup_DesiredCapacity_HASH) { return ScalableDimension::autoscaling_autoScalingGroup_DesiredCapacity; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingMetricType.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingMetricType.cpp index 1a3f96c5a96..94d48bd2835 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingMetricType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingMetricType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ScalingMetricTypeMapper { - static const int ASGAverageCPUUtilization_HASH = HashingUtils::HashString("ASGAverageCPUUtilization"); - static const int ASGAverageNetworkIn_HASH = HashingUtils::HashString("ASGAverageNetworkIn"); - static const int ASGAverageNetworkOut_HASH = HashingUtils::HashString("ASGAverageNetworkOut"); - static const int DynamoDBReadCapacityUtilization_HASH = HashingUtils::HashString("DynamoDBReadCapacityUtilization"); - static const int DynamoDBWriteCapacityUtilization_HASH = HashingUtils::HashString("DynamoDBWriteCapacityUtilization"); - static const int ECSServiceAverageCPUUtilization_HASH = HashingUtils::HashString("ECSServiceAverageCPUUtilization"); - static const int ECSServiceAverageMemoryUtilization_HASH = HashingUtils::HashString("ECSServiceAverageMemoryUtilization"); - static const int ALBRequestCountPerTarget_HASH = HashingUtils::HashString("ALBRequestCountPerTarget"); - static const int RDSReaderAverageCPUUtilization_HASH = HashingUtils::HashString("RDSReaderAverageCPUUtilization"); - static const int RDSReaderAverageDatabaseConnections_HASH = HashingUtils::HashString("RDSReaderAverageDatabaseConnections"); - static const int EC2SpotFleetRequestAverageCPUUtilization_HASH = HashingUtils::HashString("EC2SpotFleetRequestAverageCPUUtilization"); - static const int EC2SpotFleetRequestAverageNetworkIn_HASH = HashingUtils::HashString("EC2SpotFleetRequestAverageNetworkIn"); - static const int EC2SpotFleetRequestAverageNetworkOut_HASH = HashingUtils::HashString("EC2SpotFleetRequestAverageNetworkOut"); + static constexpr uint32_t ASGAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("ASGAverageCPUUtilization"); + static constexpr uint32_t ASGAverageNetworkIn_HASH = ConstExprHashingUtils::HashString("ASGAverageNetworkIn"); + static constexpr uint32_t ASGAverageNetworkOut_HASH = ConstExprHashingUtils::HashString("ASGAverageNetworkOut"); + static constexpr uint32_t DynamoDBReadCapacityUtilization_HASH = ConstExprHashingUtils::HashString("DynamoDBReadCapacityUtilization"); + static constexpr uint32_t DynamoDBWriteCapacityUtilization_HASH = ConstExprHashingUtils::HashString("DynamoDBWriteCapacityUtilization"); + static constexpr uint32_t ECSServiceAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("ECSServiceAverageCPUUtilization"); + static constexpr uint32_t ECSServiceAverageMemoryUtilization_HASH = ConstExprHashingUtils::HashString("ECSServiceAverageMemoryUtilization"); + static constexpr uint32_t ALBRequestCountPerTarget_HASH = ConstExprHashingUtils::HashString("ALBRequestCountPerTarget"); + static constexpr uint32_t RDSReaderAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("RDSReaderAverageCPUUtilization"); + static constexpr uint32_t RDSReaderAverageDatabaseConnections_HASH = ConstExprHashingUtils::HashString("RDSReaderAverageDatabaseConnections"); + static constexpr uint32_t EC2SpotFleetRequestAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("EC2SpotFleetRequestAverageCPUUtilization"); + static constexpr uint32_t EC2SpotFleetRequestAverageNetworkIn_HASH = ConstExprHashingUtils::HashString("EC2SpotFleetRequestAverageNetworkIn"); + static constexpr uint32_t EC2SpotFleetRequestAverageNetworkOut_HASH = ConstExprHashingUtils::HashString("EC2SpotFleetRequestAverageNetworkOut"); ScalingMetricType GetScalingMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASGAverageCPUUtilization_HASH) { return ScalingMetricType::ASGAverageCPUUtilization; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPlanStatusCode.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPlanStatusCode.cpp index 301315d7856..82fc993b475 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPlanStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPlanStatusCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ScalingPlanStatusCodeMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int ActiveWithProblems_HASH = HashingUtils::HashString("ActiveWithProblems"); - static const int CreationInProgress_HASH = HashingUtils::HashString("CreationInProgress"); - static const int CreationFailed_HASH = HashingUtils::HashString("CreationFailed"); - static const int DeletionInProgress_HASH = HashingUtils::HashString("DeletionInProgress"); - static const int DeletionFailed_HASH = HashingUtils::HashString("DeletionFailed"); - static const int UpdateInProgress_HASH = HashingUtils::HashString("UpdateInProgress"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t ActiveWithProblems_HASH = ConstExprHashingUtils::HashString("ActiveWithProblems"); + static constexpr uint32_t CreationInProgress_HASH = ConstExprHashingUtils::HashString("CreationInProgress"); + static constexpr uint32_t CreationFailed_HASH = ConstExprHashingUtils::HashString("CreationFailed"); + static constexpr uint32_t DeletionInProgress_HASH = ConstExprHashingUtils::HashString("DeletionInProgress"); + static constexpr uint32_t DeletionFailed_HASH = ConstExprHashingUtils::HashString("DeletionFailed"); + static constexpr uint32_t UpdateInProgress_HASH = ConstExprHashingUtils::HashString("UpdateInProgress"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); ScalingPlanStatusCode GetScalingPlanStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return ScalingPlanStatusCode::Active; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPolicyUpdateBehavior.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPolicyUpdateBehavior.cpp index e8e4b226ec8..b054cb21e2a 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPolicyUpdateBehavior.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingPolicyUpdateBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScalingPolicyUpdateBehaviorMapper { - static const int KeepExternalPolicies_HASH = HashingUtils::HashString("KeepExternalPolicies"); - static const int ReplaceExternalPolicies_HASH = HashingUtils::HashString("ReplaceExternalPolicies"); + static constexpr uint32_t KeepExternalPolicies_HASH = ConstExprHashingUtils::HashString("KeepExternalPolicies"); + static constexpr uint32_t ReplaceExternalPolicies_HASH = ConstExprHashingUtils::HashString("ReplaceExternalPolicies"); ScalingPolicyUpdateBehavior GetScalingPolicyUpdateBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KeepExternalPolicies_HASH) { return ScalingPolicyUpdateBehavior::KeepExternalPolicies; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingStatusCode.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingStatusCode.cpp index 3675eb13b80..459d076afea 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ScalingStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScalingStatusCodeMapper { - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); - static const int PartiallyActive_HASH = HashingUtils::HashString("PartiallyActive"); - static const int Active_HASH = HashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); + static constexpr uint32_t PartiallyActive_HASH = ConstExprHashingUtils::HashString("PartiallyActive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); ScalingStatusCode GetScalingStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Inactive_HASH) { return ScalingStatusCode::Inactive; diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ServiceNamespace.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ServiceNamespace.cpp index 1f49f0e902d..d7a55f960d1 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ServiceNamespace.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/model/ServiceNamespace.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServiceNamespaceMapper { - static const int autoscaling_HASH = HashingUtils::HashString("autoscaling"); - static const int ecs_HASH = HashingUtils::HashString("ecs"); - static const int ec2_HASH = HashingUtils::HashString("ec2"); - static const int rds_HASH = HashingUtils::HashString("rds"); - static const int dynamodb_HASH = HashingUtils::HashString("dynamodb"); + static constexpr uint32_t autoscaling_HASH = ConstExprHashingUtils::HashString("autoscaling"); + static constexpr uint32_t ecs_HASH = ConstExprHashingUtils::HashString("ecs"); + static constexpr uint32_t ec2_HASH = ConstExprHashingUtils::HashString("ec2"); + static constexpr uint32_t rds_HASH = ConstExprHashingUtils::HashString("rds"); + static constexpr uint32_t dynamodb_HASH = ConstExprHashingUtils::HashString("dynamodb"); ServiceNamespace GetServiceNamespaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == autoscaling_HASH) { return ServiceNamespace::autoscaling; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingErrors.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingErrors.cpp index 757f8e2d5ca..6569b49df0c 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingErrors.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingErrors.cpp @@ -18,21 +18,21 @@ namespace AutoScaling namespace AutoScalingErrorMapper { -static const int INSTANCE_REFRESH_IN_PROGRESS_FAULT_HASH = HashingUtils::HashString("InstanceRefreshInProgress"); -static const int ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("AlreadyExists"); -static const int LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("LimitExceeded"); -static const int RESOURCE_CONTENTION_FAULT_HASH = HashingUtils::HashString("ResourceContention"); -static const int SERVICE_LINKED_ROLE_FAILURE_HASH = HashingUtils::HashString("ServiceLinkedRoleFailure"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextToken"); -static const int SCALING_ACTIVITY_IN_PROGRESS_FAULT_HASH = HashingUtils::HashString("ScalingActivityInProgress"); -static const int IRREVERSIBLE_INSTANCE_REFRESH_FAULT_HASH = HashingUtils::HashString("IrreversibleInstanceRefresh"); -static const int ACTIVE_INSTANCE_REFRESH_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ActiveInstanceRefreshNotFound"); -static const int RESOURCE_IN_USE_FAULT_HASH = HashingUtils::HashString("ResourceInUse"); +static constexpr uint32_t INSTANCE_REFRESH_IN_PROGRESS_FAULT_HASH = ConstExprHashingUtils::HashString("InstanceRefreshInProgress"); +static constexpr uint32_t ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("AlreadyExists"); +static constexpr uint32_t LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); +static constexpr uint32_t RESOURCE_CONTENTION_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceContention"); +static constexpr uint32_t SERVICE_LINKED_ROLE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceLinkedRoleFailure"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextToken"); +static constexpr uint32_t SCALING_ACTIVITY_IN_PROGRESS_FAULT_HASH = ConstExprHashingUtils::HashString("ScalingActivityInProgress"); +static constexpr uint32_t IRREVERSIBLE_INSTANCE_REFRESH_FAULT_HASH = ConstExprHashingUtils::HashString("IrreversibleInstanceRefresh"); +static constexpr uint32_t ACTIVE_INSTANCE_REFRESH_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ActiveInstanceRefreshNotFound"); +static constexpr uint32_t RESOURCE_IN_USE_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceInUse"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INSTANCE_REFRESH_IN_PROGRESS_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorManufacturer.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorManufacturer.cpp index 027f07299c5..3d134311c7b 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorManufacturer.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorManufacturer.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AcceleratorManufacturerMapper { - static const int nvidia_HASH = HashingUtils::HashString("nvidia"); - static const int amd_HASH = HashingUtils::HashString("amd"); - static const int amazon_web_services_HASH = HashingUtils::HashString("amazon-web-services"); - static const int xilinx_HASH = HashingUtils::HashString("xilinx"); + static constexpr uint32_t nvidia_HASH = ConstExprHashingUtils::HashString("nvidia"); + static constexpr uint32_t amd_HASH = ConstExprHashingUtils::HashString("amd"); + static constexpr uint32_t amazon_web_services_HASH = ConstExprHashingUtils::HashString("amazon-web-services"); + static constexpr uint32_t xilinx_HASH = ConstExprHashingUtils::HashString("xilinx"); AcceleratorManufacturer GetAcceleratorManufacturerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == nvidia_HASH) { return AcceleratorManufacturer::nvidia; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorName.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorName.cpp index 5b9ca227210..e7041d3b679 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorName.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorName.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AcceleratorNameMapper { - static const int a100_HASH = HashingUtils::HashString("a100"); - static const int v100_HASH = HashingUtils::HashString("v100"); - static const int k80_HASH = HashingUtils::HashString("k80"); - static const int t4_HASH = HashingUtils::HashString("t4"); - static const int m60_HASH = HashingUtils::HashString("m60"); - static const int radeon_pro_v520_HASH = HashingUtils::HashString("radeon-pro-v520"); - static const int vu9p_HASH = HashingUtils::HashString("vu9p"); + static constexpr uint32_t a100_HASH = ConstExprHashingUtils::HashString("a100"); + static constexpr uint32_t v100_HASH = ConstExprHashingUtils::HashString("v100"); + static constexpr uint32_t k80_HASH = ConstExprHashingUtils::HashString("k80"); + static constexpr uint32_t t4_HASH = ConstExprHashingUtils::HashString("t4"); + static constexpr uint32_t m60_HASH = ConstExprHashingUtils::HashString("m60"); + static constexpr uint32_t radeon_pro_v520_HASH = ConstExprHashingUtils::HashString("radeon-pro-v520"); + static constexpr uint32_t vu9p_HASH = ConstExprHashingUtils::HashString("vu9p"); AcceleratorName GetAcceleratorNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == a100_HASH) { return AcceleratorName::a100; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorType.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorType.cpp index c85f6e47148..34dc4cb9259 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/AcceleratorType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AcceleratorTypeMapper { - static const int gpu_HASH = HashingUtils::HashString("gpu"); - static const int fpga_HASH = HashingUtils::HashString("fpga"); - static const int inference_HASH = HashingUtils::HashString("inference"); + static constexpr uint32_t gpu_HASH = ConstExprHashingUtils::HashString("gpu"); + static constexpr uint32_t fpga_HASH = ConstExprHashingUtils::HashString("fpga"); + static constexpr uint32_t inference_HASH = ConstExprHashingUtils::HashString("inference"); AcceleratorType GetAcceleratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gpu_HASH) { return AcceleratorType::gpu; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/BareMetal.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/BareMetal.cpp index d0c2f46d9bd..30f42c91037 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/BareMetal.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/BareMetal.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BareMetalMapper { - static const int included_HASH = HashingUtils::HashString("included"); - static const int excluded_HASH = HashingUtils::HashString("excluded"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t included_HASH = ConstExprHashingUtils::HashString("included"); + static constexpr uint32_t excluded_HASH = ConstExprHashingUtils::HashString("excluded"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); BareMetal GetBareMetalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == included_HASH) { return BareMetal::included; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/BurstablePerformance.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/BurstablePerformance.cpp index 6034f51a2a1..6d2fed29dbd 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/BurstablePerformance.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/BurstablePerformance.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurstablePerformanceMapper { - static const int included_HASH = HashingUtils::HashString("included"); - static const int excluded_HASH = HashingUtils::HashString("excluded"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t included_HASH = ConstExprHashingUtils::HashString("included"); + static constexpr uint32_t excluded_HASH = ConstExprHashingUtils::HashString("excluded"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); BurstablePerformance GetBurstablePerformanceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == included_HASH) { return BurstablePerformance::included; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuManufacturer.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuManufacturer.cpp index 3e7d9ee0988..61293e812cb 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuManufacturer.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/CpuManufacturer.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CpuManufacturerMapper { - static const int intel_HASH = HashingUtils::HashString("intel"); - static const int amd_HASH = HashingUtils::HashString("amd"); - static const int amazon_web_services_HASH = HashingUtils::HashString("amazon-web-services"); + static constexpr uint32_t intel_HASH = ConstExprHashingUtils::HashString("intel"); + static constexpr uint32_t amd_HASH = ConstExprHashingUtils::HashString("amd"); + static constexpr uint32_t amazon_web_services_HASH = ConstExprHashingUtils::HashString("amazon-web-services"); CpuManufacturer GetCpuManufacturerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == intel_HASH) { return CpuManufacturer::intel; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceGeneration.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceGeneration.cpp index 76153851420..86806c59f25 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceGeneration.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceGeneration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceGenerationMapper { - static const int current_HASH = HashingUtils::HashString("current"); - static const int previous_HASH = HashingUtils::HashString("previous"); + static constexpr uint32_t current_HASH = ConstExprHashingUtils::HashString("current"); + static constexpr uint32_t previous_HASH = ConstExprHashingUtils::HashString("previous"); InstanceGeneration GetInstanceGenerationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == current_HASH) { return InstanceGeneration::current; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataEndpointState.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataEndpointState.cpp index 71efc2d4701..a5002951547 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataEndpointState.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataEndpointState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataEndpointStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); InstanceMetadataEndpointState GetInstanceMetadataEndpointStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return InstanceMetadataEndpointState::disabled; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataHttpTokensState.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataHttpTokensState.cpp index a676c2784b1..0d6453f1d1a 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataHttpTokensState.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceMetadataHttpTokensState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataHttpTokensStateMapper { - static const int optional_HASH = HashingUtils::HashString("optional"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t optional_HASH = ConstExprHashingUtils::HashString("optional"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); InstanceMetadataHttpTokensState GetInstanceMetadataHttpTokensStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == optional_HASH) { return InstanceMetadataHttpTokensState::optional; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRefreshStatus.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRefreshStatus.cpp index fb8ec92332e..46145a9b968 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRefreshStatus.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/InstanceRefreshStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace InstanceRefreshStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int RollbackInProgress_HASH = HashingUtils::HashString("RollbackInProgress"); - static const int RollbackFailed_HASH = HashingUtils::HashString("RollbackFailed"); - static const int RollbackSuccessful_HASH = HashingUtils::HashString("RollbackSuccessful"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t RollbackInProgress_HASH = ConstExprHashingUtils::HashString("RollbackInProgress"); + static constexpr uint32_t RollbackFailed_HASH = ConstExprHashingUtils::HashString("RollbackFailed"); + static constexpr uint32_t RollbackSuccessful_HASH = ConstExprHashingUtils::HashString("RollbackSuccessful"); InstanceRefreshStatus GetInstanceRefreshStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return InstanceRefreshStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/LifecycleState.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/LifecycleState.cpp index 88a070d8117..c13e46433b2 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/LifecycleState.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/LifecycleState.cpp @@ -20,34 +20,34 @@ namespace Aws namespace LifecycleStateMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Pending_Wait_HASH = HashingUtils::HashString("Pending:Wait"); - static const int Pending_Proceed_HASH = HashingUtils::HashString("Pending:Proceed"); - static const int Quarantined_HASH = HashingUtils::HashString("Quarantined"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Terminating_HASH = HashingUtils::HashString("Terminating"); - static const int Terminating_Wait_HASH = HashingUtils::HashString("Terminating:Wait"); - static const int Terminating_Proceed_HASH = HashingUtils::HashString("Terminating:Proceed"); - static const int Terminated_HASH = HashingUtils::HashString("Terminated"); - static const int Detaching_HASH = HashingUtils::HashString("Detaching"); - static const int Detached_HASH = HashingUtils::HashString("Detached"); - static const int EnteringStandby_HASH = HashingUtils::HashString("EnteringStandby"); - static const int Standby_HASH = HashingUtils::HashString("Standby"); - static const int Warmed_Pending_HASH = HashingUtils::HashString("Warmed:Pending"); - static const int Warmed_Pending_Wait_HASH = HashingUtils::HashString("Warmed:Pending:Wait"); - static const int Warmed_Pending_Proceed_HASH = HashingUtils::HashString("Warmed:Pending:Proceed"); - static const int Warmed_Terminating_HASH = HashingUtils::HashString("Warmed:Terminating"); - static const int Warmed_Terminating_Wait_HASH = HashingUtils::HashString("Warmed:Terminating:Wait"); - static const int Warmed_Terminating_Proceed_HASH = HashingUtils::HashString("Warmed:Terminating:Proceed"); - static const int Warmed_Terminated_HASH = HashingUtils::HashString("Warmed:Terminated"); - static const int Warmed_Stopped_HASH = HashingUtils::HashString("Warmed:Stopped"); - static const int Warmed_Running_HASH = HashingUtils::HashString("Warmed:Running"); - static const int Warmed_Hibernated_HASH = HashingUtils::HashString("Warmed:Hibernated"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Pending_Wait_HASH = ConstExprHashingUtils::HashString("Pending:Wait"); + static constexpr uint32_t Pending_Proceed_HASH = ConstExprHashingUtils::HashString("Pending:Proceed"); + static constexpr uint32_t Quarantined_HASH = ConstExprHashingUtils::HashString("Quarantined"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Terminating_HASH = ConstExprHashingUtils::HashString("Terminating"); + static constexpr uint32_t Terminating_Wait_HASH = ConstExprHashingUtils::HashString("Terminating:Wait"); + static constexpr uint32_t Terminating_Proceed_HASH = ConstExprHashingUtils::HashString("Terminating:Proceed"); + static constexpr uint32_t Terminated_HASH = ConstExprHashingUtils::HashString("Terminated"); + static constexpr uint32_t Detaching_HASH = ConstExprHashingUtils::HashString("Detaching"); + static constexpr uint32_t Detached_HASH = ConstExprHashingUtils::HashString("Detached"); + static constexpr uint32_t EnteringStandby_HASH = ConstExprHashingUtils::HashString("EnteringStandby"); + static constexpr uint32_t Standby_HASH = ConstExprHashingUtils::HashString("Standby"); + static constexpr uint32_t Warmed_Pending_HASH = ConstExprHashingUtils::HashString("Warmed:Pending"); + static constexpr uint32_t Warmed_Pending_Wait_HASH = ConstExprHashingUtils::HashString("Warmed:Pending:Wait"); + static constexpr uint32_t Warmed_Pending_Proceed_HASH = ConstExprHashingUtils::HashString("Warmed:Pending:Proceed"); + static constexpr uint32_t Warmed_Terminating_HASH = ConstExprHashingUtils::HashString("Warmed:Terminating"); + static constexpr uint32_t Warmed_Terminating_Wait_HASH = ConstExprHashingUtils::HashString("Warmed:Terminating:Wait"); + static constexpr uint32_t Warmed_Terminating_Proceed_HASH = ConstExprHashingUtils::HashString("Warmed:Terminating:Proceed"); + static constexpr uint32_t Warmed_Terminated_HASH = ConstExprHashingUtils::HashString("Warmed:Terminated"); + static constexpr uint32_t Warmed_Stopped_HASH = ConstExprHashingUtils::HashString("Warmed:Stopped"); + static constexpr uint32_t Warmed_Running_HASH = ConstExprHashingUtils::HashString("Warmed:Running"); + static constexpr uint32_t Warmed_Hibernated_HASH = ConstExprHashingUtils::HashString("Warmed:Hibernated"); LifecycleState GetLifecycleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return LifecycleState::Pending; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorage.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorage.cpp index ebcb83b2306..4e6669560f0 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorage.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorage.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LocalStorageMapper { - static const int included_HASH = HashingUtils::HashString("included"); - static const int excluded_HASH = HashingUtils::HashString("excluded"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t included_HASH = ConstExprHashingUtils::HashString("included"); + static constexpr uint32_t excluded_HASH = ConstExprHashingUtils::HashString("excluded"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); LocalStorage GetLocalStorageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == included_HASH) { return LocalStorage::included; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorageType.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorageType.cpp index 833c66f9ed2..48a27920bb4 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorageType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/LocalStorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocalStorageTypeMapper { - static const int hdd_HASH = HashingUtils::HashString("hdd"); - static const int ssd_HASH = HashingUtils::HashString("ssd"); + static constexpr uint32_t hdd_HASH = ConstExprHashingUtils::HashString("hdd"); + static constexpr uint32_t ssd_HASH = ConstExprHashingUtils::HashString("ssd"); LocalStorageType GetLocalStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hdd_HASH) { return LocalStorageType::hdd; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricStatistic.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricStatistic.cpp index 66bcffb0249..065ef9e40bb 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricStatistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MetricStatisticMapper { - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); MetricStatistic GetMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Average_HASH) { return MetricStatistic::Average; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricType.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricType.cpp index f0bb3c9de3c..828f8bfe1f8 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/MetricType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MetricTypeMapper { - static const int ASGAverageCPUUtilization_HASH = HashingUtils::HashString("ASGAverageCPUUtilization"); - static const int ASGAverageNetworkIn_HASH = HashingUtils::HashString("ASGAverageNetworkIn"); - static const int ASGAverageNetworkOut_HASH = HashingUtils::HashString("ASGAverageNetworkOut"); - static const int ALBRequestCountPerTarget_HASH = HashingUtils::HashString("ALBRequestCountPerTarget"); + static constexpr uint32_t ASGAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("ASGAverageCPUUtilization"); + static constexpr uint32_t ASGAverageNetworkIn_HASH = ConstExprHashingUtils::HashString("ASGAverageNetworkIn"); + static constexpr uint32_t ASGAverageNetworkOut_HASH = ConstExprHashingUtils::HashString("ASGAverageNetworkOut"); + static constexpr uint32_t ALBRequestCountPerTarget_HASH = ConstExprHashingUtils::HashString("ALBRequestCountPerTarget"); MetricType GetMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASGAverageCPUUtilization_HASH) { return MetricType::ASGAverageCPUUtilization; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedLoadMetricType.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedLoadMetricType.cpp index 99e31a31c84..b34de6792f8 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedLoadMetricType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedLoadMetricType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PredefinedLoadMetricTypeMapper { - static const int ASGTotalCPUUtilization_HASH = HashingUtils::HashString("ASGTotalCPUUtilization"); - static const int ASGTotalNetworkIn_HASH = HashingUtils::HashString("ASGTotalNetworkIn"); - static const int ASGTotalNetworkOut_HASH = HashingUtils::HashString("ASGTotalNetworkOut"); - static const int ALBTargetGroupRequestCount_HASH = HashingUtils::HashString("ALBTargetGroupRequestCount"); + static constexpr uint32_t ASGTotalCPUUtilization_HASH = ConstExprHashingUtils::HashString("ASGTotalCPUUtilization"); + static constexpr uint32_t ASGTotalNetworkIn_HASH = ConstExprHashingUtils::HashString("ASGTotalNetworkIn"); + static constexpr uint32_t ASGTotalNetworkOut_HASH = ConstExprHashingUtils::HashString("ASGTotalNetworkOut"); + static constexpr uint32_t ALBTargetGroupRequestCount_HASH = ConstExprHashingUtils::HashString("ALBTargetGroupRequestCount"); PredefinedLoadMetricType GetPredefinedLoadMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASGTotalCPUUtilization_HASH) { return PredefinedLoadMetricType::ASGTotalCPUUtilization; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedMetricPairType.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedMetricPairType.cpp index a9f0534545c..6c3cab2f262 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedMetricPairType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedMetricPairType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PredefinedMetricPairTypeMapper { - static const int ASGCPUUtilization_HASH = HashingUtils::HashString("ASGCPUUtilization"); - static const int ASGNetworkIn_HASH = HashingUtils::HashString("ASGNetworkIn"); - static const int ASGNetworkOut_HASH = HashingUtils::HashString("ASGNetworkOut"); - static const int ALBRequestCount_HASH = HashingUtils::HashString("ALBRequestCount"); + static constexpr uint32_t ASGCPUUtilization_HASH = ConstExprHashingUtils::HashString("ASGCPUUtilization"); + static constexpr uint32_t ASGNetworkIn_HASH = ConstExprHashingUtils::HashString("ASGNetworkIn"); + static constexpr uint32_t ASGNetworkOut_HASH = ConstExprHashingUtils::HashString("ASGNetworkOut"); + static constexpr uint32_t ALBRequestCount_HASH = ConstExprHashingUtils::HashString("ALBRequestCount"); PredefinedMetricPairType GetPredefinedMetricPairTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASGCPUUtilization_HASH) { return PredefinedMetricPairType::ASGCPUUtilization; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedScalingMetricType.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedScalingMetricType.cpp index 70818912a14..c889e587858 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedScalingMetricType.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredefinedScalingMetricType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PredefinedScalingMetricTypeMapper { - static const int ASGAverageCPUUtilization_HASH = HashingUtils::HashString("ASGAverageCPUUtilization"); - static const int ASGAverageNetworkIn_HASH = HashingUtils::HashString("ASGAverageNetworkIn"); - static const int ASGAverageNetworkOut_HASH = HashingUtils::HashString("ASGAverageNetworkOut"); - static const int ALBRequestCountPerTarget_HASH = HashingUtils::HashString("ALBRequestCountPerTarget"); + static constexpr uint32_t ASGAverageCPUUtilization_HASH = ConstExprHashingUtils::HashString("ASGAverageCPUUtilization"); + static constexpr uint32_t ASGAverageNetworkIn_HASH = ConstExprHashingUtils::HashString("ASGAverageNetworkIn"); + static constexpr uint32_t ASGAverageNetworkOut_HASH = ConstExprHashingUtils::HashString("ASGAverageNetworkOut"); + static constexpr uint32_t ALBRequestCountPerTarget_HASH = ConstExprHashingUtils::HashString("ALBRequestCountPerTarget"); PredefinedScalingMetricType GetPredefinedScalingMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASGAverageCPUUtilization_HASH) { return PredefinedScalingMetricType::ASGAverageCPUUtilization; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMaxCapacityBreachBehavior.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMaxCapacityBreachBehavior.cpp index 29c20951ddb..2464899d938 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMaxCapacityBreachBehavior.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMaxCapacityBreachBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PredictiveScalingMaxCapacityBreachBehaviorMapper { - static const int HonorMaxCapacity_HASH = HashingUtils::HashString("HonorMaxCapacity"); - static const int IncreaseMaxCapacity_HASH = HashingUtils::HashString("IncreaseMaxCapacity"); + static constexpr uint32_t HonorMaxCapacity_HASH = ConstExprHashingUtils::HashString("HonorMaxCapacity"); + static constexpr uint32_t IncreaseMaxCapacity_HASH = ConstExprHashingUtils::HashString("IncreaseMaxCapacity"); PredictiveScalingMaxCapacityBreachBehavior GetPredictiveScalingMaxCapacityBreachBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HonorMaxCapacity_HASH) { return PredictiveScalingMaxCapacityBreachBehavior::HonorMaxCapacity; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMode.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMode.cpp index 2d6b467f7eb..a7b4bcd9438 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMode.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/PredictiveScalingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PredictiveScalingModeMapper { - static const int ForecastAndScale_HASH = HashingUtils::HashString("ForecastAndScale"); - static const int ForecastOnly_HASH = HashingUtils::HashString("ForecastOnly"); + static constexpr uint32_t ForecastAndScale_HASH = ConstExprHashingUtils::HashString("ForecastAndScale"); + static constexpr uint32_t ForecastOnly_HASH = ConstExprHashingUtils::HashString("ForecastOnly"); PredictiveScalingMode GetPredictiveScalingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ForecastAndScale_HASH) { return PredictiveScalingMode::ForecastAndScale; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/RefreshStrategy.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/RefreshStrategy.cpp index 45a9b66eb30..b5bd11df517 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/RefreshStrategy.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/RefreshStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RefreshStrategyMapper { - static const int Rolling_HASH = HashingUtils::HashString("Rolling"); + static constexpr uint32_t Rolling_HASH = ConstExprHashingUtils::HashString("Rolling"); RefreshStrategy GetRefreshStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Rolling_HASH) { return RefreshStrategy::Rolling; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/ScaleInProtectedInstances.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/ScaleInProtectedInstances.cpp index d818de8369e..3fe2c8ca2d9 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/ScaleInProtectedInstances.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/ScaleInProtectedInstances.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScaleInProtectedInstancesMapper { - static const int Refresh_HASH = HashingUtils::HashString("Refresh"); - static const int Ignore_HASH = HashingUtils::HashString("Ignore"); - static const int Wait_HASH = HashingUtils::HashString("Wait"); + static constexpr uint32_t Refresh_HASH = ConstExprHashingUtils::HashString("Refresh"); + static constexpr uint32_t Ignore_HASH = ConstExprHashingUtils::HashString("Ignore"); + static constexpr uint32_t Wait_HASH = ConstExprHashingUtils::HashString("Wait"); ScaleInProtectedInstances GetScaleInProtectedInstancesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Refresh_HASH) { return ScaleInProtectedInstances::Refresh; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/ScalingActivityStatusCode.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/ScalingActivityStatusCode.cpp index ab0a75215af..5cf1bf97de3 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/ScalingActivityStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/ScalingActivityStatusCode.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ScalingActivityStatusCodeMapper { - static const int PendingSpotBidPlacement_HASH = HashingUtils::HashString("PendingSpotBidPlacement"); - static const int WaitingForSpotInstanceRequestId_HASH = HashingUtils::HashString("WaitingForSpotInstanceRequestId"); - static const int WaitingForSpotInstanceId_HASH = HashingUtils::HashString("WaitingForSpotInstanceId"); - static const int WaitingForInstanceId_HASH = HashingUtils::HashString("WaitingForInstanceId"); - static const int PreInService_HASH = HashingUtils::HashString("PreInService"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int WaitingForELBConnectionDraining_HASH = HashingUtils::HashString("WaitingForELBConnectionDraining"); - static const int MidLifecycleAction_HASH = HashingUtils::HashString("MidLifecycleAction"); - static const int WaitingForInstanceWarmup_HASH = HashingUtils::HashString("WaitingForInstanceWarmup"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int WaitingForConnectionDraining_HASH = HashingUtils::HashString("WaitingForConnectionDraining"); + static constexpr uint32_t PendingSpotBidPlacement_HASH = ConstExprHashingUtils::HashString("PendingSpotBidPlacement"); + static constexpr uint32_t WaitingForSpotInstanceRequestId_HASH = ConstExprHashingUtils::HashString("WaitingForSpotInstanceRequestId"); + static constexpr uint32_t WaitingForSpotInstanceId_HASH = ConstExprHashingUtils::HashString("WaitingForSpotInstanceId"); + static constexpr uint32_t WaitingForInstanceId_HASH = ConstExprHashingUtils::HashString("WaitingForInstanceId"); + static constexpr uint32_t PreInService_HASH = ConstExprHashingUtils::HashString("PreInService"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t WaitingForELBConnectionDraining_HASH = ConstExprHashingUtils::HashString("WaitingForELBConnectionDraining"); + static constexpr uint32_t MidLifecycleAction_HASH = ConstExprHashingUtils::HashString("MidLifecycleAction"); + static constexpr uint32_t WaitingForInstanceWarmup_HASH = ConstExprHashingUtils::HashString("WaitingForInstanceWarmup"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t WaitingForConnectionDraining_HASH = ConstExprHashingUtils::HashString("WaitingForConnectionDraining"); ScalingActivityStatusCode GetScalingActivityStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PendingSpotBidPlacement_HASH) { return ScalingActivityStatusCode::PendingSpotBidPlacement; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/StandbyInstances.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/StandbyInstances.cpp index 05d482e9e91..1a4b906c538 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/StandbyInstances.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/StandbyInstances.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StandbyInstancesMapper { - static const int Terminate_HASH = HashingUtils::HashString("Terminate"); - static const int Ignore_HASH = HashingUtils::HashString("Ignore"); - static const int Wait_HASH = HashingUtils::HashString("Wait"); + static constexpr uint32_t Terminate_HASH = ConstExprHashingUtils::HashString("Terminate"); + static constexpr uint32_t Ignore_HASH = ConstExprHashingUtils::HashString("Ignore"); + static constexpr uint32_t Wait_HASH = ConstExprHashingUtils::HashString("Wait"); StandbyInstances GetStandbyInstancesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Terminate_HASH) { return StandbyInstances::Terminate; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolState.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolState.cpp index 6301559550f..bea6098bcb7 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolState.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WarmPoolStateMapper { - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Hibernated_HASH = HashingUtils::HashString("Hibernated"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Hibernated_HASH = ConstExprHashingUtils::HashString("Hibernated"); WarmPoolState GetWarmPoolStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Stopped_HASH) { return WarmPoolState::Stopped; diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolStatus.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolStatus.cpp index dd2e11dcf34..0451c70143b 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolStatus.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/model/WarmPoolStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WarmPoolStatusMapper { - static const int PendingDelete_HASH = HashingUtils::HashString("PendingDelete"); + static constexpr uint32_t PendingDelete_HASH = ConstExprHashingUtils::HashString("PendingDelete"); WarmPoolStatus GetWarmPoolStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PendingDelete_HASH) { return WarmPoolStatus::PendingDelete; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/TransferErrors.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/TransferErrors.cpp index c19b13b03cc..edc28fdd997 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/TransferErrors.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/TransferErrors.cpp @@ -40,16 +40,16 @@ template<> AWS_TRANSFER_API ResourceNotFoundException TransferError::GetModeledE namespace TransferErrorMapper { -static const int RESOURCE_EXISTS_HASH = HashingUtils::HashString("ResourceExistsException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceError"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceExistsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/AgreementStatusType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/AgreementStatusType.cpp index 7aa26921c54..9ca2a172a14 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/AgreementStatusType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/AgreementStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AgreementStatusTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AgreementStatusType GetAgreementStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AgreementStatusType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/As2Transport.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/As2Transport.cpp index 28ef363d1e9..af3437c489e 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/As2Transport.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/As2Transport.cpp @@ -20,12 +20,12 @@ namespace Aws namespace As2TransportMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); As2Transport GetAs2TransportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return As2Transport::HTTP; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateStatusType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateStatusType.cpp index 554d39d2935..c522e5ac891 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateStatusType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CertificateStatusTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_ROTATION_HASH = HashingUtils::HashString("PENDING_ROTATION"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_ROTATION_HASH = ConstExprHashingUtils::HashString("PENDING_ROTATION"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); CertificateStatusType GetCertificateStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CertificateStatusType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateType.cpp index 952b2416d8d..b21115f3030 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateTypeMapper { - static const int CERTIFICATE_HASH = HashingUtils::HashString("CERTIFICATE"); - static const int CERTIFICATE_WITH_PRIVATE_KEY_HASH = HashingUtils::HashString("CERTIFICATE_WITH_PRIVATE_KEY"); + static constexpr uint32_t CERTIFICATE_HASH = ConstExprHashingUtils::HashString("CERTIFICATE"); + static constexpr uint32_t CERTIFICATE_WITH_PRIVATE_KEY_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_WITH_PRIVATE_KEY"); CertificateType GetCertificateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CERTIFICATE_HASH) { return CertificateType::CERTIFICATE; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateUsageType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateUsageType.cpp index fde58135ed2..25b41430541 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateUsageType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/CertificateUsageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateUsageTypeMapper { - static const int SIGNING_HASH = HashingUtils::HashString("SIGNING"); - static const int ENCRYPTION_HASH = HashingUtils::HashString("ENCRYPTION"); + static constexpr uint32_t SIGNING_HASH = ConstExprHashingUtils::HashString("SIGNING"); + static constexpr uint32_t ENCRYPTION_HASH = ConstExprHashingUtils::HashString("ENCRYPTION"); CertificateUsageType GetCertificateUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIGNING_HASH) { return CertificateUsageType::SIGNING; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/CompressionEnum.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/CompressionEnum.cpp index a341fcd1891..37d49851d87 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/CompressionEnum.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/CompressionEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompressionEnumMapper { - static const int ZLIB_HASH = HashingUtils::HashString("ZLIB"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ZLIB_HASH = ConstExprHashingUtils::HashString("ZLIB"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CompressionEnum GetCompressionEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZLIB_HASH) { return CompressionEnum::ZLIB; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/CustomStepStatus.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/CustomStepStatus.cpp index d9611d3e388..19d96b81059 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/CustomStepStatus.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/CustomStepStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomStepStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILURE_HASH = HashingUtils::HashString("FAILURE"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILURE_HASH = ConstExprHashingUtils::HashString("FAILURE"); CustomStepStatus GetCustomStepStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return CustomStepStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/Domain.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/Domain.cpp index 04fb0d9ebfc..0fd2310213d 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/Domain.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/Domain.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DomainMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int EFS_HASH = HashingUtils::HashString("EFS"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t EFS_HASH = ConstExprHashingUtils::HashString("EFS"); Domain GetDomainForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return Domain::S3; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionAlg.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionAlg.cpp index e4ee72acb1d..0ecfb7f4a6c 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionAlg.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionAlg.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EncryptionAlgMapper { - static const int AES128_CBC_HASH = HashingUtils::HashString("AES128_CBC"); - static const int AES192_CBC_HASH = HashingUtils::HashString("AES192_CBC"); - static const int AES256_CBC_HASH = HashingUtils::HashString("AES256_CBC"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t AES128_CBC_HASH = ConstExprHashingUtils::HashString("AES128_CBC"); + static constexpr uint32_t AES192_CBC_HASH = ConstExprHashingUtils::HashString("AES192_CBC"); + static constexpr uint32_t AES256_CBC_HASH = ConstExprHashingUtils::HashString("AES256_CBC"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); EncryptionAlg GetEncryptionAlgForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES128_CBC_HASH) { return EncryptionAlg::AES128_CBC; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionType.cpp index fcb95550aa1..9a1cfb91e75 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/EncryptionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncryptionTypeMapper { - static const int PGP_HASH = HashingUtils::HashString("PGP"); + static constexpr uint32_t PGP_HASH = ConstExprHashingUtils::HashString("PGP"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PGP_HASH) { return EncryptionType::PGP; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/EndpointType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/EndpointType.cpp index a4ae40bd560..36423a86ab7 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/EndpointType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/EndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EndpointTypeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int VPC_HASH = HashingUtils::HashString("VPC"); - static const int VPC_ENDPOINT_HASH = HashingUtils::HashString("VPC_ENDPOINT"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t VPC_HASH = ConstExprHashingUtils::HashString("VPC"); + static constexpr uint32_t VPC_ENDPOINT_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT"); EndpointType GetEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return EndpointType::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionErrorType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionErrorType.cpp index 841d2c83747..03cb8dafcd3 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionErrorType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionErrorType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ExecutionErrorTypeMapper { - static const int PERMISSION_DENIED_HASH = HashingUtils::HashString("PERMISSION_DENIED"); - static const int CUSTOM_STEP_FAILED_HASH = HashingUtils::HashString("CUSTOM_STEP_FAILED"); - static const int THROTTLED_HASH = HashingUtils::HashString("THROTTLED"); - static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("ALREADY_EXISTS"); - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); - static const int BAD_REQUEST_HASH = HashingUtils::HashString("BAD_REQUEST"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVER_ERROR"); + static constexpr uint32_t PERMISSION_DENIED_HASH = ConstExprHashingUtils::HashString("PERMISSION_DENIED"); + static constexpr uint32_t CUSTOM_STEP_FAILED_HASH = ConstExprHashingUtils::HashString("CUSTOM_STEP_FAILED"); + static constexpr uint32_t THROTTLED_HASH = ConstExprHashingUtils::HashString("THROTTLED"); + static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ALREADY_EXISTS"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BAD_REQUEST"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_ERROR"); ExecutionErrorType GetExecutionErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERMISSION_DENIED_HASH) { return ExecutionErrorType::PERMISSION_DENIED; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionStatus.cpp index 2f9702a52d5..f131c99f4b2 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/ExecutionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExecutionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int EXCEPTION_HASH = HashingUtils::HashString("EXCEPTION"); - static const int HANDLING_EXCEPTION_HASH = HashingUtils::HashString("HANDLING_EXCEPTION"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t EXCEPTION_HASH = ConstExprHashingUtils::HashString("EXCEPTION"); + static constexpr uint32_t HANDLING_EXCEPTION_HASH = ConstExprHashingUtils::HashString("HANDLING_EXCEPTION"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ExecutionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/HomeDirectoryType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/HomeDirectoryType.cpp index 46964f90ce3..92decde91c6 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/HomeDirectoryType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/HomeDirectoryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HomeDirectoryTypeMapper { - static const int PATH_HASH = HashingUtils::HashString("PATH"); - static const int LOGICAL_HASH = HashingUtils::HashString("LOGICAL"); + static constexpr uint32_t PATH_HASH = ConstExprHashingUtils::HashString("PATH"); + static constexpr uint32_t LOGICAL_HASH = ConstExprHashingUtils::HashString("LOGICAL"); HomeDirectoryType GetHomeDirectoryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PATH_HASH) { return HomeDirectoryType::PATH; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/IdentityProviderType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/IdentityProviderType.cpp index 20193644de3..11170cc429e 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/IdentityProviderType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/IdentityProviderType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IdentityProviderTypeMapper { - static const int SERVICE_MANAGED_HASH = HashingUtils::HashString("SERVICE_MANAGED"); - static const int API_GATEWAY_HASH = HashingUtils::HashString("API_GATEWAY"); - static const int AWS_DIRECTORY_SERVICE_HASH = HashingUtils::HashString("AWS_DIRECTORY_SERVICE"); - static const int AWS_LAMBDA_HASH = HashingUtils::HashString("AWS_LAMBDA"); + static constexpr uint32_t SERVICE_MANAGED_HASH = ConstExprHashingUtils::HashString("SERVICE_MANAGED"); + static constexpr uint32_t API_GATEWAY_HASH = ConstExprHashingUtils::HashString("API_GATEWAY"); + static constexpr uint32_t AWS_DIRECTORY_SERVICE_HASH = ConstExprHashingUtils::HashString("AWS_DIRECTORY_SERVICE"); + static constexpr uint32_t AWS_LAMBDA_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA"); IdentityProviderType GetIdentityProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_MANAGED_HASH) { return IdentityProviderType::SERVICE_MANAGED; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnResponse.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnResponse.cpp index 3506ac01b9d..b3ca9ec269d 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnResponse.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnResponse.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MdnResponseMapper { - static const int SYNC_HASH = HashingUtils::HashString("SYNC"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SYNC_HASH = ConstExprHashingUtils::HashString("SYNC"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); MdnResponse GetMdnResponseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYNC_HASH) { return MdnResponse::SYNC; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnSigningAlg.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnSigningAlg.cpp index 61ef54e82a7..a67452783f6 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnSigningAlg.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/MdnSigningAlg.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MdnSigningAlgMapper { - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); - static const int SHA384_HASH = HashingUtils::HashString("SHA384"); - static const int SHA512_HASH = HashingUtils::HashString("SHA512"); - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); + static constexpr uint32_t SHA384_HASH = ConstExprHashingUtils::HashString("SHA384"); + static constexpr uint32_t SHA512_HASH = ConstExprHashingUtils::HashString("SHA512"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); MdnSigningAlg GetMdnSigningAlgForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA256_HASH) { return MdnSigningAlg::SHA256; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/OverwriteExisting.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/OverwriteExisting.cpp index 1d5f1d638a3..e6d24cfd850 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/OverwriteExisting.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/OverwriteExisting.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OverwriteExistingMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); OverwriteExisting GetOverwriteExistingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return OverwriteExisting::TRUE; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/ProfileType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/ProfileType.cpp index b7a0b86d975..03737fb7f79 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/ProfileType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/ProfileType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProfileTypeMapper { - static const int LOCAL_HASH = HashingUtils::HashString("LOCAL"); - static const int PARTNER_HASH = HashingUtils::HashString("PARTNER"); + static constexpr uint32_t LOCAL_HASH = ConstExprHashingUtils::HashString("LOCAL"); + static constexpr uint32_t PARTNER_HASH = ConstExprHashingUtils::HashString("PARTNER"); ProfileType GetProfileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOCAL_HASH) { return ProfileType::LOCAL; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/Protocol.cpp index 102522e7bad..f2473deffd1 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/Protocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProtocolMapper { - static const int SFTP_HASH = HashingUtils::HashString("SFTP"); - static const int FTP_HASH = HashingUtils::HashString("FTP"); - static const int FTPS_HASH = HashingUtils::HashString("FTPS"); - static const int AS2_HASH = HashingUtils::HashString("AS2"); + static constexpr uint32_t SFTP_HASH = ConstExprHashingUtils::HashString("SFTP"); + static constexpr uint32_t FTP_HASH = ConstExprHashingUtils::HashString("FTP"); + static constexpr uint32_t FTPS_HASH = ConstExprHashingUtils::HashString("FTPS"); + static constexpr uint32_t AS2_HASH = ConstExprHashingUtils::HashString("AS2"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SFTP_HASH) { return Protocol::SFTP; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/SetStatOption.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/SetStatOption.cpp index d911d63d244..3224578f442 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/SetStatOption.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/SetStatOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SetStatOptionMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int ENABLE_NO_OP_HASH = HashingUtils::HashString("ENABLE_NO_OP"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t ENABLE_NO_OP_HASH = ConstExprHashingUtils::HashString("ENABLE_NO_OP"); SetStatOption GetSetStatOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return SetStatOption::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/SftpAuthenticationMethods.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/SftpAuthenticationMethods.cpp index 2d57178cf6d..842f349264e 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/SftpAuthenticationMethods.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/SftpAuthenticationMethods.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SftpAuthenticationMethodsMapper { - static const int PASSWORD_HASH = HashingUtils::HashString("PASSWORD"); - static const int PUBLIC_KEY_HASH = HashingUtils::HashString("PUBLIC_KEY"); - static const int PUBLIC_KEY_OR_PASSWORD_HASH = HashingUtils::HashString("PUBLIC_KEY_OR_PASSWORD"); - static const int PUBLIC_KEY_AND_PASSWORD_HASH = HashingUtils::HashString("PUBLIC_KEY_AND_PASSWORD"); + static constexpr uint32_t PASSWORD_HASH = ConstExprHashingUtils::HashString("PASSWORD"); + static constexpr uint32_t PUBLIC_KEY_HASH = ConstExprHashingUtils::HashString("PUBLIC_KEY"); + static constexpr uint32_t PUBLIC_KEY_OR_PASSWORD_HASH = ConstExprHashingUtils::HashString("PUBLIC_KEY_OR_PASSWORD"); + static constexpr uint32_t PUBLIC_KEY_AND_PASSWORD_HASH = ConstExprHashingUtils::HashString("PUBLIC_KEY_AND_PASSWORD"); SftpAuthenticationMethods GetSftpAuthenticationMethodsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSWORD_HASH) { return SftpAuthenticationMethods::PASSWORD; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/SigningAlg.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/SigningAlg.cpp index ec34266d65c..9994eed8b6b 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/SigningAlg.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/SigningAlg.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SigningAlgMapper { - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); - static const int SHA384_HASH = HashingUtils::HashString("SHA384"); - static const int SHA512_HASH = HashingUtils::HashString("SHA512"); - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); + static constexpr uint32_t SHA384_HASH = ConstExprHashingUtils::HashString("SHA384"); + static constexpr uint32_t SHA512_HASH = ConstExprHashingUtils::HashString("SHA512"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); SigningAlg GetSigningAlgForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA256_HASH) { return SigningAlg::SHA256; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/State.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/State.cpp index 8fdb8e5ee46..2a8f6104748 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/State.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StateMapper { - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int START_FAILED_HASH = HashingUtils::HashString("START_FAILED"); - static const int STOP_FAILED_HASH = HashingUtils::HashString("STOP_FAILED"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t START_FAILED_HASH = ConstExprHashingUtils::HashString("START_FAILED"); + static constexpr uint32_t STOP_FAILED_HASH = ConstExprHashingUtils::HashString("STOP_FAILED"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFFLINE_HASH) { return State::OFFLINE; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/TlsSessionResumptionMode.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/TlsSessionResumptionMode.cpp index 800a37c57fc..bb23658cc18 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/TlsSessionResumptionMode.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/TlsSessionResumptionMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TlsSessionResumptionModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENFORCED_HASH = HashingUtils::HashString("ENFORCED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENFORCED_HASH = ConstExprHashingUtils::HashString("ENFORCED"); TlsSessionResumptionMode GetTlsSessionResumptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return TlsSessionResumptionMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/WorkflowStepType.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/WorkflowStepType.cpp index c4923b8688d..46d1f6c0346 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/model/WorkflowStepType.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/WorkflowStepType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkflowStepTypeMapper { - static const int COPY_HASH = HashingUtils::HashString("COPY"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int TAG_HASH = HashingUtils::HashString("TAG"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int DECRYPT_HASH = HashingUtils::HashString("DECRYPT"); + static constexpr uint32_t COPY_HASH = ConstExprHashingUtils::HashString("COPY"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t TAG_HASH = ConstExprHashingUtils::HashString("TAG"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t DECRYPT_HASH = ConstExprHashingUtils::HashString("DECRYPT"); WorkflowStepType GetWorkflowStepTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPY_HASH) { return WorkflowStepType::COPY; diff --git a/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayErrors.cpp b/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayErrors.cpp index dca6996176e..a11ebdab8c3 100644 --- a/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayErrors.cpp +++ b/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayErrors.cpp @@ -61,13 +61,13 @@ template<> AWS_BACKUPGATEWAY_API AccessDeniedException BackupGatewayError::GetMo namespace BackupGatewayErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-backup-gateway/source/model/GatewayType.cpp b/generated/src/aws-cpp-sdk-backup-gateway/source/model/GatewayType.cpp index 4bb94859b2a..9873521af5d 100644 --- a/generated/src/aws-cpp-sdk-backup-gateway/source/model/GatewayType.cpp +++ b/generated/src/aws-cpp-sdk-backup-gateway/source/model/GatewayType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GatewayTypeMapper { - static const int BACKUP_VM_HASH = HashingUtils::HashString("BACKUP_VM"); + static constexpr uint32_t BACKUP_VM_HASH = ConstExprHashingUtils::HashString("BACKUP_VM"); GatewayType GetGatewayTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BACKUP_VM_HASH) { return GatewayType::BACKUP_VM; diff --git a/generated/src/aws-cpp-sdk-backup-gateway/source/model/HypervisorState.cpp b/generated/src/aws-cpp-sdk-backup-gateway/source/model/HypervisorState.cpp index 585d3242e68..2aaa7ee2d9f 100644 --- a/generated/src/aws-cpp-sdk-backup-gateway/source/model/HypervisorState.cpp +++ b/generated/src/aws-cpp-sdk-backup-gateway/source/model/HypervisorState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HypervisorStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); HypervisorState GetHypervisorStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return HypervisorState::PENDING; diff --git a/generated/src/aws-cpp-sdk-backup-gateway/source/model/SyncMetadataStatus.cpp b/generated/src/aws-cpp-sdk-backup-gateway/source/model/SyncMetadataStatus.cpp index 39859fb640b..e0da63aace8 100644 --- a/generated/src/aws-cpp-sdk-backup-gateway/source/model/SyncMetadataStatus.cpp +++ b/generated/src/aws-cpp-sdk-backup-gateway/source/model/SyncMetadataStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SyncMetadataStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PARTIALLY_FAILED_HASH = HashingUtils::HashString("PARTIALLY_FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PARTIALLY_FAILED_HASH = ConstExprHashingUtils::HashString("PARTIALLY_FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); SyncMetadataStatus GetSyncMetadataStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return SyncMetadataStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-backup/source/BackupErrors.cpp b/generated/src/aws-cpp-sdk-backup/source/BackupErrors.cpp index e41936b1d05..e1c61c06264 100644 --- a/generated/src/aws-cpp-sdk-backup/source/BackupErrors.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/BackupErrors.cpp @@ -89,18 +89,18 @@ template<> AWS_BACKUP_API InvalidRequestException BackupError::GetModeledError() namespace BackupErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int DEPENDENCY_FAILURE_HASH = HashingUtils::HashString("DependencyFailureException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int INVALID_RESOURCE_STATE_HASH = HashingUtils::HashString("InvalidResourceStateException"); -static const int MISSING_PARAMETER_VALUE_HASH = HashingUtils::HashString("MissingParameterValueException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t DEPENDENCY_FAILURE_HASH = ConstExprHashingUtils::HashString("DependencyFailureException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t INVALID_RESOURCE_STATE_HASH = ConstExprHashingUtils::HashString("InvalidResourceStateException"); +static constexpr uint32_t MISSING_PARAMETER_VALUE_HASH = ConstExprHashingUtils::HashString("MissingParameterValueException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-backup/source/model/BackupJobState.cpp b/generated/src/aws-cpp-sdk-backup/source/model/BackupJobState.cpp index 43c23b5cc84..fe8d4f9f4df 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/BackupJobState.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/BackupJobState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace BackupJobStateMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int ABORTING_HASH = HashingUtils::HashString("ABORTING"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int PARTIAL_HASH = HashingUtils::HashString("PARTIAL"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t ABORTING_HASH = ConstExprHashingUtils::HashString("ABORTING"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PARTIAL_HASH = ConstExprHashingUtils::HashString("PARTIAL"); BackupJobState GetBackupJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return BackupJobState::CREATED; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/BackupVaultEvent.cpp b/generated/src/aws-cpp-sdk-backup/source/model/BackupVaultEvent.cpp index 9dbe7e5d178..f292c904d55 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/BackupVaultEvent.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/BackupVaultEvent.cpp @@ -20,28 +20,28 @@ namespace Aws namespace BackupVaultEventMapper { - static const int BACKUP_JOB_STARTED_HASH = HashingUtils::HashString("BACKUP_JOB_STARTED"); - static const int BACKUP_JOB_COMPLETED_HASH = HashingUtils::HashString("BACKUP_JOB_COMPLETED"); - static const int BACKUP_JOB_SUCCESSFUL_HASH = HashingUtils::HashString("BACKUP_JOB_SUCCESSFUL"); - static const int BACKUP_JOB_FAILED_HASH = HashingUtils::HashString("BACKUP_JOB_FAILED"); - static const int BACKUP_JOB_EXPIRED_HASH = HashingUtils::HashString("BACKUP_JOB_EXPIRED"); - static const int RESTORE_JOB_STARTED_HASH = HashingUtils::HashString("RESTORE_JOB_STARTED"); - static const int RESTORE_JOB_COMPLETED_HASH = HashingUtils::HashString("RESTORE_JOB_COMPLETED"); - static const int RESTORE_JOB_SUCCESSFUL_HASH = HashingUtils::HashString("RESTORE_JOB_SUCCESSFUL"); - static const int RESTORE_JOB_FAILED_HASH = HashingUtils::HashString("RESTORE_JOB_FAILED"); - static const int COPY_JOB_STARTED_HASH = HashingUtils::HashString("COPY_JOB_STARTED"); - static const int COPY_JOB_SUCCESSFUL_HASH = HashingUtils::HashString("COPY_JOB_SUCCESSFUL"); - static const int COPY_JOB_FAILED_HASH = HashingUtils::HashString("COPY_JOB_FAILED"); - static const int RECOVERY_POINT_MODIFIED_HASH = HashingUtils::HashString("RECOVERY_POINT_MODIFIED"); - static const int BACKUP_PLAN_CREATED_HASH = HashingUtils::HashString("BACKUP_PLAN_CREATED"); - static const int BACKUP_PLAN_MODIFIED_HASH = HashingUtils::HashString("BACKUP_PLAN_MODIFIED"); - static const int S3_BACKUP_OBJECT_FAILED_HASH = HashingUtils::HashString("S3_BACKUP_OBJECT_FAILED"); - static const int S3_RESTORE_OBJECT_FAILED_HASH = HashingUtils::HashString("S3_RESTORE_OBJECT_FAILED"); + static constexpr uint32_t BACKUP_JOB_STARTED_HASH = ConstExprHashingUtils::HashString("BACKUP_JOB_STARTED"); + static constexpr uint32_t BACKUP_JOB_COMPLETED_HASH = ConstExprHashingUtils::HashString("BACKUP_JOB_COMPLETED"); + static constexpr uint32_t BACKUP_JOB_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("BACKUP_JOB_SUCCESSFUL"); + static constexpr uint32_t BACKUP_JOB_FAILED_HASH = ConstExprHashingUtils::HashString("BACKUP_JOB_FAILED"); + static constexpr uint32_t BACKUP_JOB_EXPIRED_HASH = ConstExprHashingUtils::HashString("BACKUP_JOB_EXPIRED"); + static constexpr uint32_t RESTORE_JOB_STARTED_HASH = ConstExprHashingUtils::HashString("RESTORE_JOB_STARTED"); + static constexpr uint32_t RESTORE_JOB_COMPLETED_HASH = ConstExprHashingUtils::HashString("RESTORE_JOB_COMPLETED"); + static constexpr uint32_t RESTORE_JOB_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("RESTORE_JOB_SUCCESSFUL"); + static constexpr uint32_t RESTORE_JOB_FAILED_HASH = ConstExprHashingUtils::HashString("RESTORE_JOB_FAILED"); + static constexpr uint32_t COPY_JOB_STARTED_HASH = ConstExprHashingUtils::HashString("COPY_JOB_STARTED"); + static constexpr uint32_t COPY_JOB_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("COPY_JOB_SUCCESSFUL"); + static constexpr uint32_t COPY_JOB_FAILED_HASH = ConstExprHashingUtils::HashString("COPY_JOB_FAILED"); + static constexpr uint32_t RECOVERY_POINT_MODIFIED_HASH = ConstExprHashingUtils::HashString("RECOVERY_POINT_MODIFIED"); + static constexpr uint32_t BACKUP_PLAN_CREATED_HASH = ConstExprHashingUtils::HashString("BACKUP_PLAN_CREATED"); + static constexpr uint32_t BACKUP_PLAN_MODIFIED_HASH = ConstExprHashingUtils::HashString("BACKUP_PLAN_MODIFIED"); + static constexpr uint32_t S3_BACKUP_OBJECT_FAILED_HASH = ConstExprHashingUtils::HashString("S3_BACKUP_OBJECT_FAILED"); + static constexpr uint32_t S3_RESTORE_OBJECT_FAILED_HASH = ConstExprHashingUtils::HashString("S3_RESTORE_OBJECT_FAILED"); BackupVaultEvent GetBackupVaultEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BACKUP_JOB_STARTED_HASH) { return BackupVaultEvent::BACKUP_JOB_STARTED; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/ConditionType.cpp b/generated/src/aws-cpp-sdk-backup/source/model/ConditionType.cpp index a2bd1c5ec70..0a19c61c9a4 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/ConditionType.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/ConditionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConditionTypeMapper { - static const int STRINGEQUALS_HASH = HashingUtils::HashString("STRINGEQUALS"); + static constexpr uint32_t STRINGEQUALS_HASH = ConstExprHashingUtils::HashString("STRINGEQUALS"); ConditionType GetConditionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRINGEQUALS_HASH) { return ConditionType::STRINGEQUALS; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/CopyJobState.cpp b/generated/src/aws-cpp-sdk-backup/source/model/CopyJobState.cpp index 07aaf5ca841..16e08c88cc0 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/CopyJobState.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/CopyJobState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CopyJobStateMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PARTIAL_HASH = HashingUtils::HashString("PARTIAL"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PARTIAL_HASH = ConstExprHashingUtils::HashString("PARTIAL"); CopyJobState GetCopyJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return CopyJobState::CREATED; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/LegalHoldStatus.cpp b/generated/src/aws-cpp-sdk-backup/source/model/LegalHoldStatus.cpp index e3c7ab89269..cb5316e7ee8 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/LegalHoldStatus.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/LegalHoldStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LegalHoldStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CANCELING_HASH = HashingUtils::HashString("CANCELING"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CANCELING_HASH = ConstExprHashingUtils::HashString("CANCELING"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); LegalHoldStatus GetLegalHoldStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return LegalHoldStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/RecoveryPointStatus.cpp b/generated/src/aws-cpp-sdk-backup/source/model/RecoveryPointStatus.cpp index f6914e7a22f..551f53aa71d 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/RecoveryPointStatus.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/RecoveryPointStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RecoveryPointStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PARTIAL_HASH = HashingUtils::HashString("PARTIAL"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PARTIAL_HASH = ConstExprHashingUtils::HashString("PARTIAL"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); RecoveryPointStatus GetRecoveryPointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return RecoveryPointStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/RestoreJobStatus.cpp b/generated/src/aws-cpp-sdk-backup/source/model/RestoreJobStatus.cpp index 21f00275591..f9643aad397 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/RestoreJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/RestoreJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RestoreJobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RestoreJobStatus GetRestoreJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return RestoreJobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/StorageClass.cpp b/generated/src/aws-cpp-sdk-backup/source/model/StorageClass.cpp index 32a757d4037..b606fe82c59 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/StorageClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StorageClassMapper { - static const int WARM_HASH = HashingUtils::HashString("WARM"); - static const int COLD_HASH = HashingUtils::HashString("COLD"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t WARM_HASH = ConstExprHashingUtils::HashString("WARM"); + static constexpr uint32_t COLD_HASH = ConstExprHashingUtils::HashString("COLD"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); StorageClass GetStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WARM_HASH) { return StorageClass::WARM; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/VaultState.cpp b/generated/src/aws-cpp-sdk-backup/source/model/VaultState.cpp index 767084ca9f2..136f5b911dd 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/VaultState.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/VaultState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VaultStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VaultState GetVaultStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return VaultState::CREATING; diff --git a/generated/src/aws-cpp-sdk-backup/source/model/VaultType.cpp b/generated/src/aws-cpp-sdk-backup/source/model/VaultType.cpp index 21d8cb5c8c9..1e8b5bd661a 100644 --- a/generated/src/aws-cpp-sdk-backup/source/model/VaultType.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/model/VaultType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VaultTypeMapper { - static const int BACKUP_VAULT_HASH = HashingUtils::HashString("BACKUP_VAULT"); - static const int LOGICALLY_AIR_GAPPED_BACKUP_VAULT_HASH = HashingUtils::HashString("LOGICALLY_AIR_GAPPED_BACKUP_VAULT"); + static constexpr uint32_t BACKUP_VAULT_HASH = ConstExprHashingUtils::HashString("BACKUP_VAULT"); + static constexpr uint32_t LOGICALLY_AIR_GAPPED_BACKUP_VAULT_HASH = ConstExprHashingUtils::HashString("LOGICALLY_AIR_GAPPED_BACKUP_VAULT"); VaultType GetVaultTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BACKUP_VAULT_HASH) { return VaultType::BACKUP_VAULT; diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp index bd0436b32be..21879e4a6c2 100644 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp +++ b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp @@ -26,17 +26,17 @@ template<> AWS_BACKUPSTORAGE_API DataAlreadyExistsException BackupStorageError:: namespace BackupStorageErrorMapper { -static const int NOT_READABLE_INPUT_STREAM_HASH = HashingUtils::HashString("NotReadableInputStreamException"); -static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("IllegalArgumentException"); -static const int RETRYABLE_HASH = HashingUtils::HashString("RetryableException"); -static const int DATA_ALREADY_EXISTS_HASH = HashingUtils::HashString("DataAlreadyExistsException"); -static const int SERVICE_INTERNAL_HASH = HashingUtils::HashString("ServiceInternalException"); -static const int K_M_S_INVALID_KEY_USAGE_HASH = HashingUtils::HashString("KMSInvalidKeyUsageException"); +static constexpr uint32_t NOT_READABLE_INPUT_STREAM_HASH = ConstExprHashingUtils::HashString("NotReadableInputStreamException"); +static constexpr uint32_t ILLEGAL_ARGUMENT_HASH = ConstExprHashingUtils::HashString("IllegalArgumentException"); +static constexpr uint32_t RETRYABLE_HASH = ConstExprHashingUtils::HashString("RetryableException"); +static constexpr uint32_t DATA_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("DataAlreadyExistsException"); +static constexpr uint32_t SERVICE_INTERNAL_HASH = ConstExprHashingUtils::HashString("ServiceInternalException"); +static constexpr uint32_t K_M_S_INVALID_KEY_USAGE_HASH = ConstExprHashingUtils::HashString("KMSInvalidKeyUsageException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_READABLE_INPUT_STREAM_HASH) { diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp index 9edac14f9c2..3b68263c9aa 100644 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DataChecksumAlgorithmMapper { - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); DataChecksumAlgorithm GetDataChecksumAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA256_HASH) { return DataChecksumAlgorithm::SHA256; diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp index ae58dfcb02e..f79634abbfd 100644 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SummaryChecksumAlgorithmMapper { - static const int SUMMARY_HASH = HashingUtils::HashString("SUMMARY"); + static constexpr uint32_t SUMMARY_HASH = ConstExprHashingUtils::HashString("SUMMARY"); SummaryChecksumAlgorithm GetSummaryChecksumAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUMMARY_HASH) { return SummaryChecksumAlgorithm::SUMMARY; diff --git a/generated/src/aws-cpp-sdk-batch/source/BatchErrors.cpp b/generated/src/aws-cpp-sdk-batch/source/BatchErrors.cpp index 8a6d00a7cc2..6e8f86c5ac5 100644 --- a/generated/src/aws-cpp-sdk-batch/source/BatchErrors.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/BatchErrors.cpp @@ -18,13 +18,13 @@ namespace Batch namespace BatchErrorMapper { -static const int CLIENT_HASH = HashingUtils::HashString("ClientException"); -static const int SERVER_HASH = HashingUtils::HashString("ServerException"); +static constexpr uint32_t CLIENT_HASH = ConstExprHashingUtils::HashString("ClientException"); +static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("ServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLIENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-batch/source/model/ArrayJobDependency.cpp b/generated/src/aws-cpp-sdk-batch/source/model/ArrayJobDependency.cpp index 007cacc7de8..ed90e21efaa 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/ArrayJobDependency.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/ArrayJobDependency.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArrayJobDependencyMapper { - static const int N_TO_N_HASH = HashingUtils::HashString("N_TO_N"); - static const int SEQUENTIAL_HASH = HashingUtils::HashString("SEQUENTIAL"); + static constexpr uint32_t N_TO_N_HASH = ConstExprHashingUtils::HashString("N_TO_N"); + static constexpr uint32_t SEQUENTIAL_HASH = ConstExprHashingUtils::HashString("SEQUENTIAL"); ArrayJobDependency GetArrayJobDependencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == N_TO_N_HASH) { return ArrayJobDependency::N_TO_N; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/AssignPublicIp.cpp b/generated/src/aws-cpp-sdk-batch/source/model/AssignPublicIp.cpp index 21c26455d6a..f2dc86a54b8 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/AssignPublicIp.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/AssignPublicIp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssignPublicIpMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignPublicIp GetAssignPublicIpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignPublicIp::ENABLED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/CEState.cpp b/generated/src/aws-cpp-sdk-batch/source/model/CEState.cpp index ee331573a0c..e2a9ad5a2d5 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/CEState.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/CEState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CEStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CEState GetCEStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CEState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/CEStatus.cpp b/generated/src/aws-cpp-sdk-batch/source/model/CEStatus.cpp index d63f2e36643..2240c9880cb 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/CEStatus.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/CEStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CEStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int VALID_HASH = HashingUtils::HashString("VALID"); - static const int INVALID_HASH = HashingUtils::HashString("INVALID"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t VALID_HASH = ConstExprHashingUtils::HashString("VALID"); + static constexpr uint32_t INVALID_HASH = ConstExprHashingUtils::HashString("INVALID"); CEStatus GetCEStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CEStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/CEType.cpp b/generated/src/aws-cpp-sdk-batch/source/model/CEType.cpp index b3084a14565..a04008009ab 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/CEType.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/CEType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CETypeMapper { - static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); - static const int UNMANAGED_HASH = HashingUtils::HashString("UNMANAGED"); + static constexpr uint32_t MANAGED_HASH = ConstExprHashingUtils::HashString("MANAGED"); + static constexpr uint32_t UNMANAGED_HASH = ConstExprHashingUtils::HashString("UNMANAGED"); CEType GetCETypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANAGED_HASH) { return CEType::MANAGED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/CRAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-batch/source/model/CRAllocationStrategy.cpp index 5cabf444777..f8635c4e1c8 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/CRAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/CRAllocationStrategy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CRAllocationStrategyMapper { - static const int BEST_FIT_HASH = HashingUtils::HashString("BEST_FIT"); - static const int BEST_FIT_PROGRESSIVE_HASH = HashingUtils::HashString("BEST_FIT_PROGRESSIVE"); - static const int SPOT_CAPACITY_OPTIMIZED_HASH = HashingUtils::HashString("SPOT_CAPACITY_OPTIMIZED"); - static const int SPOT_PRICE_CAPACITY_OPTIMIZED_HASH = HashingUtils::HashString("SPOT_PRICE_CAPACITY_OPTIMIZED"); + static constexpr uint32_t BEST_FIT_HASH = ConstExprHashingUtils::HashString("BEST_FIT"); + static constexpr uint32_t BEST_FIT_PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("BEST_FIT_PROGRESSIVE"); + static constexpr uint32_t SPOT_CAPACITY_OPTIMIZED_HASH = ConstExprHashingUtils::HashString("SPOT_CAPACITY_OPTIMIZED"); + static constexpr uint32_t SPOT_PRICE_CAPACITY_OPTIMIZED_HASH = ConstExprHashingUtils::HashString("SPOT_PRICE_CAPACITY_OPTIMIZED"); CRAllocationStrategy GetCRAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEST_FIT_HASH) { return CRAllocationStrategy::BEST_FIT; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/CRType.cpp b/generated/src/aws-cpp-sdk-batch/source/model/CRType.cpp index f7db287065d..67125bc3350 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/CRType.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/CRType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CRTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int SPOT_HASH = HashingUtils::HashString("SPOT"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int FARGATE_SPOT_HASH = HashingUtils::HashString("FARGATE_SPOT"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t SPOT_HASH = ConstExprHashingUtils::HashString("SPOT"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t FARGATE_SPOT_HASH = ConstExprHashingUtils::HashString("FARGATE_SPOT"); CRType GetCRTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return CRType::EC2; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/CRUpdateAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-batch/source/model/CRUpdateAllocationStrategy.cpp index 3cb9528da71..3c22d47b8c4 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/CRUpdateAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/CRUpdateAllocationStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CRUpdateAllocationStrategyMapper { - static const int BEST_FIT_PROGRESSIVE_HASH = HashingUtils::HashString("BEST_FIT_PROGRESSIVE"); - static const int SPOT_CAPACITY_OPTIMIZED_HASH = HashingUtils::HashString("SPOT_CAPACITY_OPTIMIZED"); - static const int SPOT_PRICE_CAPACITY_OPTIMIZED_HASH = HashingUtils::HashString("SPOT_PRICE_CAPACITY_OPTIMIZED"); + static constexpr uint32_t BEST_FIT_PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("BEST_FIT_PROGRESSIVE"); + static constexpr uint32_t SPOT_CAPACITY_OPTIMIZED_HASH = ConstExprHashingUtils::HashString("SPOT_CAPACITY_OPTIMIZED"); + static constexpr uint32_t SPOT_PRICE_CAPACITY_OPTIMIZED_HASH = ConstExprHashingUtils::HashString("SPOT_PRICE_CAPACITY_OPTIMIZED"); CRUpdateAllocationStrategy GetCRUpdateAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEST_FIT_PROGRESSIVE_HASH) { return CRUpdateAllocationStrategy::BEST_FIT_PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/DeviceCgroupPermission.cpp b/generated/src/aws-cpp-sdk-batch/source/model/DeviceCgroupPermission.cpp index c5a228b5cf9..09f902b7b1e 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/DeviceCgroupPermission.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/DeviceCgroupPermission.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeviceCgroupPermissionMapper { - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); - static const int MKNOD_HASH = HashingUtils::HashString("MKNOD"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); + static constexpr uint32_t MKNOD_HASH = ConstExprHashingUtils::HashString("MKNOD"); DeviceCgroupPermission GetDeviceCgroupPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_HASH) { return DeviceCgroupPermission::READ; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/EFSAuthorizationConfigIAM.cpp b/generated/src/aws-cpp-sdk-batch/source/model/EFSAuthorizationConfigIAM.cpp index aa7c18a2f34..37d91838408 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/EFSAuthorizationConfigIAM.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/EFSAuthorizationConfigIAM.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EFSAuthorizationConfigIAMMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EFSAuthorizationConfigIAM GetEFSAuthorizationConfigIAMForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EFSAuthorizationConfigIAM::ENABLED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/EFSTransitEncryption.cpp b/generated/src/aws-cpp-sdk-batch/source/model/EFSTransitEncryption.cpp index 23a9bd20a73..244bf2f16b0 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/EFSTransitEncryption.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/EFSTransitEncryption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EFSTransitEncryptionMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EFSTransitEncryption GetEFSTransitEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EFSTransitEncryption::ENABLED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/JQState.cpp b/generated/src/aws-cpp-sdk-batch/source/model/JQState.cpp index 2c01fc4ffb5..d76ffbf170d 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/JQState.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/JQState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JQStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); JQState GetJQStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return JQState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/JQStatus.cpp b/generated/src/aws-cpp-sdk-batch/source/model/JQStatus.cpp index 395bf7ef298..94b2160fbc5 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/JQStatus.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/JQStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JQStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int VALID_HASH = HashingUtils::HashString("VALID"); - static const int INVALID_HASH = HashingUtils::HashString("INVALID"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t VALID_HASH = ConstExprHashingUtils::HashString("VALID"); + static constexpr uint32_t INVALID_HASH = ConstExprHashingUtils::HashString("INVALID"); JQStatus GetJQStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return JQStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/JobDefinitionType.cpp b/generated/src/aws-cpp-sdk-batch/source/model/JobDefinitionType.cpp index fd5f8e6a8d5..83cb4522a9c 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/JobDefinitionType.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/JobDefinitionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobDefinitionTypeMapper { - static const int container_HASH = HashingUtils::HashString("container"); - static const int multinode_HASH = HashingUtils::HashString("multinode"); + static constexpr uint32_t container_HASH = ConstExprHashingUtils::HashString("container"); + static constexpr uint32_t multinode_HASH = ConstExprHashingUtils::HashString("multinode"); JobDefinitionType GetJobDefinitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == container_HASH) { return JobDefinitionType::container; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-batch/source/model/JobStatus.cpp index f6ff4b26485..4c5e2e6009f 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/JobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNABLE_HASH = HashingUtils::HashString("RUNNABLE"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNABLE_HASH = ConstExprHashingUtils::HashString("RUNNABLE"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/LogDriver.cpp b/generated/src/aws-cpp-sdk-batch/source/model/LogDriver.cpp index 02181c7c6a8..76fee8ffa77 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/LogDriver.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/LogDriver.cpp @@ -20,18 +20,18 @@ namespace Aws namespace LogDriverMapper { - static const int json_file_HASH = HashingUtils::HashString("json-file"); - static const int syslog_HASH = HashingUtils::HashString("syslog"); - static const int journald_HASH = HashingUtils::HashString("journald"); - static const int gelf_HASH = HashingUtils::HashString("gelf"); - static const int fluentd_HASH = HashingUtils::HashString("fluentd"); - static const int awslogs_HASH = HashingUtils::HashString("awslogs"); - static const int splunk_HASH = HashingUtils::HashString("splunk"); + static constexpr uint32_t json_file_HASH = ConstExprHashingUtils::HashString("json-file"); + static constexpr uint32_t syslog_HASH = ConstExprHashingUtils::HashString("syslog"); + static constexpr uint32_t journald_HASH = ConstExprHashingUtils::HashString("journald"); + static constexpr uint32_t gelf_HASH = ConstExprHashingUtils::HashString("gelf"); + static constexpr uint32_t fluentd_HASH = ConstExprHashingUtils::HashString("fluentd"); + static constexpr uint32_t awslogs_HASH = ConstExprHashingUtils::HashString("awslogs"); + static constexpr uint32_t splunk_HASH = ConstExprHashingUtils::HashString("splunk"); LogDriver GetLogDriverForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_file_HASH) { return LogDriver::json_file; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/OrchestrationType.cpp b/generated/src/aws-cpp-sdk-batch/source/model/OrchestrationType.cpp index 163f4182332..255afb4a308 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/OrchestrationType.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/OrchestrationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrchestrationTypeMapper { - static const int ECS_HASH = HashingUtils::HashString("ECS"); - static const int EKS_HASH = HashingUtils::HashString("EKS"); + static constexpr uint32_t ECS_HASH = ConstExprHashingUtils::HashString("ECS"); + static constexpr uint32_t EKS_HASH = ConstExprHashingUtils::HashString("EKS"); OrchestrationType GetOrchestrationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECS_HASH) { return OrchestrationType::ECS; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/PlatformCapability.cpp b/generated/src/aws-cpp-sdk-batch/source/model/PlatformCapability.cpp index eb8f5801320..d521d41db27 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/PlatformCapability.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/PlatformCapability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlatformCapabilityMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); PlatformCapability GetPlatformCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return PlatformCapability::EC2; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-batch/source/model/ResourceType.cpp index 8f1df96d21c..1a2f7b390c7 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/ResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceTypeMapper { - static const int GPU_HASH = HashingUtils::HashString("GPU"); - static const int VCPU_HASH = HashingUtils::HashString("VCPU"); - static const int MEMORY_HASH = HashingUtils::HashString("MEMORY"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); + static constexpr uint32_t VCPU_HASH = ConstExprHashingUtils::HashString("VCPU"); + static constexpr uint32_t MEMORY_HASH = ConstExprHashingUtils::HashString("MEMORY"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GPU_HASH) { return ResourceType::GPU; diff --git a/generated/src/aws-cpp-sdk-batch/source/model/RetryAction.cpp b/generated/src/aws-cpp-sdk-batch/source/model/RetryAction.cpp index ade4bcab198..636191827c9 100644 --- a/generated/src/aws-cpp-sdk-batch/source/model/RetryAction.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/model/RetryAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RetryActionMapper { - static const int RETRY_HASH = HashingUtils::HashString("RETRY"); - static const int EXIT_HASH = HashingUtils::HashString("EXIT"); + static constexpr uint32_t RETRY_HASH = ConstExprHashingUtils::HashString("RETRY"); + static constexpr uint32_t EXIT_HASH = ConstExprHashingUtils::HashString("EXIT"); RetryAction GetRetryActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RETRY_HASH) { return RetryAction::RETRY; diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp b/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp index 428a8306171..de63a20650f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp @@ -33,17 +33,17 @@ template<> AWS_BEDROCKRUNTIME_API ModelErrorException BedrockRuntimeError::GetMo namespace BedrockRuntimeErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int MODEL_TIMEOUT_HASH = HashingUtils::HashString("ModelTimeoutException"); -static const int MODEL_STREAM_ERROR_HASH = HashingUtils::HashString("ModelStreamErrorException"); -static const int MODEL_NOT_READY_HASH = HashingUtils::HashString("ModelNotReadyException"); -static const int MODEL_ERROR_HASH = HashingUtils::HashString("ModelErrorException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t MODEL_TIMEOUT_HASH = ConstExprHashingUtils::HashString("ModelTimeoutException"); +static constexpr uint32_t MODEL_STREAM_ERROR_HASH = ConstExprHashingUtils::HashString("ModelStreamErrorException"); +static constexpr uint32_t MODEL_NOT_READY_HASH = ConstExprHashingUtils::HashString("ModelNotReadyException"); +static constexpr uint32_t MODEL_ERROR_HASH = ConstExprHashingUtils::HashString("ModelErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp b/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp index baea742db73..5d71c5c9ba6 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/source/model/InvokeModelWithResponseStreamHandler.cpp @@ -186,11 +186,11 @@ namespace Model namespace InvokeModelWithResponseStreamEventMapper { - static const int CHUNK_HASH = Aws::Utils::HashingUtils::HashString("chunk"); + static constexpr uint32_t CHUNK_HASH = Aws::Utils::ConstExprHashingUtils::HashString("chunk"); InvokeModelWithResponseStreamEventType GetInvokeModelWithResponseStreamEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == CHUNK_HASH) { return InvokeModelWithResponseStreamEventType::CHUNK; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/BedrockErrors.cpp b/generated/src/aws-cpp-sdk-bedrock/source/BedrockErrors.cpp index 8d85dd0c2cf..62d47a9a12b 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/BedrockErrors.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/BedrockErrors.cpp @@ -26,15 +26,15 @@ template<> AWS_BEDROCK_API TooManyTagsException BedrockError::GetModeledError() namespace BedrockErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/CommitmentDuration.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/CommitmentDuration.cpp index a90cb4be954..13bd54f1ebc 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/CommitmentDuration.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/CommitmentDuration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CommitmentDurationMapper { - static const int OneMonth_HASH = HashingUtils::HashString("OneMonth"); - static const int SixMonths_HASH = HashingUtils::HashString("SixMonths"); + static constexpr uint32_t OneMonth_HASH = ConstExprHashingUtils::HashString("OneMonth"); + static constexpr uint32_t SixMonths_HASH = ConstExprHashingUtils::HashString("SixMonths"); CommitmentDuration GetCommitmentDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OneMonth_HASH) { return CommitmentDuration::OneMonth; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/FineTuningJobStatus.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/FineTuningJobStatus.cpp index f6adbec3f03..455399fd70b 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/FineTuningJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/FineTuningJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FineTuningJobStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); FineTuningJobStatus GetFineTuningJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return FineTuningJobStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/InferenceType.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/InferenceType.cpp index e75d11e64ac..28e5b637a69 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/InferenceType.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/InferenceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InferenceTypeMapper { - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); InferenceType GetInferenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_HASH) { return InferenceType::ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomization.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomization.cpp index 68e7397ae3a..0ac08d14d16 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomization.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomization.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ModelCustomizationMapper { - static const int FINE_TUNING_HASH = HashingUtils::HashString("FINE_TUNING"); + static constexpr uint32_t FINE_TUNING_HASH = ConstExprHashingUtils::HashString("FINE_TUNING"); ModelCustomization GetModelCustomizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINE_TUNING_HASH) { return ModelCustomization::FINE_TUNING; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomizationJobStatus.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomizationJobStatus.cpp index 1662236970b..5a81fa9b2b0 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomizationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelCustomizationJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ModelCustomizationJobStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); ModelCustomizationJobStatus GetModelCustomizationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ModelCustomizationJobStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelModality.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelModality.cpp index 8aaeb27e983..b360e681051 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelModality.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelModality.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelModalityMapper { - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); - static const int IMAGE_HASH = HashingUtils::HashString("IMAGE"); - static const int EMBEDDING_HASH = HashingUtils::HashString("EMBEDDING"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); + static constexpr uint32_t IMAGE_HASH = ConstExprHashingUtils::HashString("IMAGE"); + static constexpr uint32_t EMBEDDING_HASH = ConstExprHashingUtils::HashString("EMBEDDING"); ModelModality GetModelModalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_HASH) { return ModelModality::TEXT; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ProvisionedModelStatus.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ProvisionedModelStatus.cpp index f4bf3df32a2..d4d218e5f0d 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/ProvisionedModelStatus.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ProvisionedModelStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProvisionedModelStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ProvisionedModelStatus GetProvisionedModelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return ProvisionedModelStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/SortByProvisionedModels.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/SortByProvisionedModels.cpp index 25640d3027d..12a965cea9c 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/SortByProvisionedModels.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/SortByProvisionedModels.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortByProvisionedModelsMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortByProvisionedModels GetSortByProvisionedModelsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return SortByProvisionedModels::CreationTime; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/SortJobsBy.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/SortJobsBy.cpp index 165071e6741..4c7c40556fd 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/SortJobsBy.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/SortJobsBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortJobsByMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortJobsBy GetSortJobsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return SortJobsBy::CreationTime; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/SortModelsBy.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/SortModelsBy.cpp index d3ee16e201e..cf73cf939b5 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/SortModelsBy.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/SortModelsBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortModelsByMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortModelsBy GetSortModelsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return SortModelsBy::CreationTime; diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/SortOrder.cpp index fa07938a620..694c116086d 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return SortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorErrors.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorErrors.cpp index e6fe3111491..a9fa66288ba 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorErrors.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_BILLINGCONDUCTOR_API ServiceLimitExceededException BillingConduct namespace BillingConductorErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/AssociateResourceErrorReason.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/AssociateResourceErrorReason.cpp index a93283a1f4d..8911a70c419 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/AssociateResourceErrorReason.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/AssociateResourceErrorReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssociateResourceErrorReasonMapper { - static const int INVALID_ARN_HASH = HashingUtils::HashString("INVALID_ARN"); - static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SERVICE_LIMIT_EXCEEDED"); - static const int ILLEGAL_CUSTOMLINEITEM_HASH = HashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM"); - static const int INTERNAL_SERVER_EXCEPTION_HASH = HashingUtils::HashString("INTERNAL_SERVER_EXCEPTION"); - static const int INVALID_BILLING_PERIOD_RANGE_HASH = HashingUtils::HashString("INVALID_BILLING_PERIOD_RANGE"); + static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ARN"); + static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SERVICE_LIMIT_EXCEEDED"); + static constexpr uint32_t ILLEGAL_CUSTOMLINEITEM_HASH = ConstExprHashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM"); + static constexpr uint32_t INTERNAL_SERVER_EXCEPTION_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_EXCEPTION"); + static constexpr uint32_t INVALID_BILLING_PERIOD_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_BILLING_PERIOD_RANGE"); AssociateResourceErrorReason GetAssociateResourceErrorReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_ARN_HASH) { return AssociateResourceErrorReason::INVALID_ARN; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/BillingGroupStatus.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/BillingGroupStatus.cpp index 2e40d20165f..719ca8e4e2a 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/BillingGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/BillingGroupStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BillingGroupStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PRIMARY_ACCOUNT_MISSING_HASH = HashingUtils::HashString("PRIMARY_ACCOUNT_MISSING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PRIMARY_ACCOUNT_MISSING_HASH = ConstExprHashingUtils::HashString("PRIMARY_ACCOUNT_MISSING"); BillingGroupStatus GetBillingGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return BillingGroupStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/ConflictExceptionReason.cpp index 42111aee4e3..0a7c43c8969 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/ConflictExceptionReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ConflictExceptionReasonMapper { - static const int RESOURCE_NAME_CONFLICT_HASH = HashingUtils::HashString("RESOURCE_NAME_CONFLICT"); - static const int PRICING_RULE_IN_PRICING_PLAN_CONFLICT_HASH = HashingUtils::HashString("PRICING_RULE_IN_PRICING_PLAN_CONFLICT"); - static const int PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT_HASH = HashingUtils::HashString("PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT"); - static const int PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT_HASH = HashingUtils::HashString("PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT"); - static const int WRITE_CONFLICT_RETRY_HASH = HashingUtils::HashString("WRITE_CONFLICT_RETRY"); + static constexpr uint32_t RESOURCE_NAME_CONFLICT_HASH = ConstExprHashingUtils::HashString("RESOURCE_NAME_CONFLICT"); + static constexpr uint32_t PRICING_RULE_IN_PRICING_PLAN_CONFLICT_HASH = ConstExprHashingUtils::HashString("PRICING_RULE_IN_PRICING_PLAN_CONFLICT"); + static constexpr uint32_t PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT_HASH = ConstExprHashingUtils::HashString("PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT"); + static constexpr uint32_t PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT_HASH = ConstExprHashingUtils::HashString("PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT"); + static constexpr uint32_t WRITE_CONFLICT_RETRY_HASH = ConstExprHashingUtils::HashString("WRITE_CONFLICT_RETRY"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_NAME_CONFLICT_HASH) { return ConflictExceptionReason::RESOURCE_NAME_CONFLICT; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/CurrencyCode.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/CurrencyCode.cpp index 268a494fd1f..0c91e7eb77a 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/CurrencyCode.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/CurrencyCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CurrencyCodeMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); - static const int CNY_HASH = HashingUtils::HashString("CNY"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); + static constexpr uint32_t CNY_HASH = ConstExprHashingUtils::HashString("CNY"); CurrencyCode GetCurrencyCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return CurrencyCode::USD; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemRelationship.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemRelationship.cpp index 9bd54468bbd..c921f6505b3 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemRelationship.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemRelationship.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomLineItemRelationshipMapper { - static const int PARENT_HASH = HashingUtils::HashString("PARENT"); - static const int CHILD_HASH = HashingUtils::HashString("CHILD"); + static constexpr uint32_t PARENT_HASH = ConstExprHashingUtils::HashString("PARENT"); + static constexpr uint32_t CHILD_HASH = ConstExprHashingUtils::HashString("CHILD"); CustomLineItemRelationship GetCustomLineItemRelationshipForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARENT_HASH) { return CustomLineItemRelationship::PARENT; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemType.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemType.cpp index f27d1af4841..e23711227d6 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemType.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/CustomLineItemType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomLineItemTypeMapper { - static const int CREDIT_HASH = HashingUtils::HashString("CREDIT"); - static const int FEE_HASH = HashingUtils::HashString("FEE"); + static constexpr uint32_t CREDIT_HASH = ConstExprHashingUtils::HashString("CREDIT"); + static constexpr uint32_t FEE_HASH = ConstExprHashingUtils::HashString("FEE"); CustomLineItemType GetCustomLineItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREDIT_HASH) { return CustomLineItemType::CREDIT; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterAttributeName.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterAttributeName.cpp index 1e8979f0d1c..f36c81b6072 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LineItemFilterAttributeNameMapper { - static const int LINE_ITEM_TYPE_HASH = HashingUtils::HashString("LINE_ITEM_TYPE"); + static constexpr uint32_t LINE_ITEM_TYPE_HASH = ConstExprHashingUtils::HashString("LINE_ITEM_TYPE"); LineItemFilterAttributeName GetLineItemFilterAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINE_ITEM_TYPE_HASH) { return LineItemFilterAttributeName::LINE_ITEM_TYPE; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterValue.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterValue.cpp index 485e4dba650..7eddcb2dedb 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterValue.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/LineItemFilterValue.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LineItemFilterValueMapper { - static const int SAVINGS_PLAN_NEGATION_HASH = HashingUtils::HashString("SAVINGS_PLAN_NEGATION"); + static constexpr uint32_t SAVINGS_PLAN_NEGATION_HASH = ConstExprHashingUtils::HashString("SAVINGS_PLAN_NEGATION"); LineItemFilterValue GetLineItemFilterValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAVINGS_PLAN_NEGATION_HASH) { return LineItemFilterValue::SAVINGS_PLAN_NEGATION; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/MatchOption.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/MatchOption.cpp index 58fcce7bdf0..bb0651e1420 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/MatchOption.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/MatchOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MatchOptionMapper { - static const int NOT_EQUAL_HASH = HashingUtils::HashString("NOT_EQUAL"); + static constexpr uint32_t NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL"); MatchOption GetMatchOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_EQUAL_HASH) { return MatchOption::NOT_EQUAL; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleScope.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleScope.cpp index be088ee2e51..bbb43207fd5 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleScope.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleScope.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PricingRuleScopeMapper { - static const int GLOBAL_HASH = HashingUtils::HashString("GLOBAL"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); - static const int BILLING_ENTITY_HASH = HashingUtils::HashString("BILLING_ENTITY"); - static const int SKU_HASH = HashingUtils::HashString("SKU"); + static constexpr uint32_t GLOBAL_HASH = ConstExprHashingUtils::HashString("GLOBAL"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); + static constexpr uint32_t BILLING_ENTITY_HASH = ConstExprHashingUtils::HashString("BILLING_ENTITY"); + static constexpr uint32_t SKU_HASH = ConstExprHashingUtils::HashString("SKU"); PricingRuleScope GetPricingRuleScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GLOBAL_HASH) { return PricingRuleScope::GLOBAL; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleType.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleType.cpp index 05fe4d35d54..dd5957e97db 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleType.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/PricingRuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PricingRuleTypeMapper { - static const int MARKUP_HASH = HashingUtils::HashString("MARKUP"); - static const int DISCOUNT_HASH = HashingUtils::HashString("DISCOUNT"); - static const int TIERING_HASH = HashingUtils::HashString("TIERING"); + static constexpr uint32_t MARKUP_HASH = ConstExprHashingUtils::HashString("MARKUP"); + static constexpr uint32_t DISCOUNT_HASH = ConstExprHashingUtils::HashString("DISCOUNT"); + static constexpr uint32_t TIERING_HASH = ConstExprHashingUtils::HashString("TIERING"); PricingRuleType GetPricingRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MARKUP_HASH) { return PricingRuleType::MARKUP; diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/model/ValidationExceptionReason.cpp index fac1366e074..2b222dd7f28 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/model/ValidationExceptionReason.cpp @@ -20,70 +20,70 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int PRIMARY_NOT_ASSOCIATED_HASH = HashingUtils::HashString("PRIMARY_NOT_ASSOCIATED"); - static const int PRIMARY_CANNOT_DISASSOCIATE_HASH = HashingUtils::HashString("PRIMARY_CANNOT_DISASSOCIATE"); - static const int ACCOUNTS_NOT_ASSOCIATED_HASH = HashingUtils::HashString("ACCOUNTS_NOT_ASSOCIATED"); - static const int ACCOUNTS_ALREADY_ASSOCIATED_HASH = HashingUtils::HashString("ACCOUNTS_ALREADY_ASSOCIATED"); - static const int ILLEGAL_PRIMARY_ACCOUNT_HASH = HashingUtils::HashString("ILLEGAL_PRIMARY_ACCOUNT"); - static const int ILLEGAL_ACCOUNTS_HASH = HashingUtils::HashString("ILLEGAL_ACCOUNTS"); - static const int MISMATCHED_BILLINGGROUP_ARN_HASH = HashingUtils::HashString("MISMATCHED_BILLINGGROUP_ARN"); - static const int MISSING_BILLINGGROUP_HASH = HashingUtils::HashString("MISSING_BILLINGGROUP"); - static const int MISMATCHED_CUSTOMLINEITEM_ARN_HASH = HashingUtils::HashString("MISMATCHED_CUSTOMLINEITEM_ARN"); - static const int ILLEGAL_BILLING_PERIOD_HASH = HashingUtils::HashString("ILLEGAL_BILLING_PERIOD"); - static const int ILLEGAL_BILLING_PERIOD_RANGE_HASH = HashingUtils::HashString("ILLEGAL_BILLING_PERIOD_RANGE"); - static const int TOO_MANY_ACCOUNTS_IN_REQUEST_HASH = HashingUtils::HashString("TOO_MANY_ACCOUNTS_IN_REQUEST"); - static const int DUPLICATE_ACCOUNT_HASH = HashingUtils::HashString("DUPLICATE_ACCOUNT"); - static const int INVALID_BILLING_GROUP_STATUS_HASH = HashingUtils::HashString("INVALID_BILLING_GROUP_STATUS"); - static const int MISMATCHED_PRICINGPLAN_ARN_HASH = HashingUtils::HashString("MISMATCHED_PRICINGPLAN_ARN"); - static const int MISSING_PRICINGPLAN_HASH = HashingUtils::HashString("MISSING_PRICINGPLAN"); - static const int MISMATCHED_PRICINGRULE_ARN_HASH = HashingUtils::HashString("MISMATCHED_PRICINGRULE_ARN"); - static const int DUPLICATE_PRICINGRULE_ARNS_HASH = HashingUtils::HashString("DUPLICATE_PRICINGRULE_ARNS"); - static const int ILLEGAL_EXPRESSION_HASH = HashingUtils::HashString("ILLEGAL_EXPRESSION"); - static const int ILLEGAL_SCOPE_HASH = HashingUtils::HashString("ILLEGAL_SCOPE"); - static const int ILLEGAL_SERVICE_HASH = HashingUtils::HashString("ILLEGAL_SERVICE"); - static const int PRICINGRULES_NOT_EXIST_HASH = HashingUtils::HashString("PRICINGRULES_NOT_EXIST"); - static const int PRICINGRULES_ALREADY_ASSOCIATED_HASH = HashingUtils::HashString("PRICINGRULES_ALREADY_ASSOCIATED"); - static const int PRICINGRULES_NOT_ASSOCIATED_HASH = HashingUtils::HashString("PRICINGRULES_NOT_ASSOCIATED"); - static const int INVALID_TIME_RANGE_HASH = HashingUtils::HashString("INVALID_TIME_RANGE"); - static const int INVALID_BILLINGVIEW_ARN_HASH = HashingUtils::HashString("INVALID_BILLINGVIEW_ARN"); - static const int MISMATCHED_BILLINGVIEW_ARN_HASH = HashingUtils::HashString("MISMATCHED_BILLINGVIEW_ARN"); - static const int ILLEGAL_CUSTOMLINEITEM_HASH = HashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM"); - static const int MISSING_CUSTOMLINEITEM_HASH = HashingUtils::HashString("MISSING_CUSTOMLINEITEM"); - static const int ILLEGAL_CUSTOMLINEITEM_UPDATE_HASH = HashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM_UPDATE"); - static const int TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST_HASH = HashingUtils::HashString("TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST"); - static const int ILLEGAL_CHARGE_DETAILS_HASH = HashingUtils::HashString("ILLEGAL_CHARGE_DETAILS"); - static const int ILLEGAL_UPDATE_CHARGE_DETAILS_HASH = HashingUtils::HashString("ILLEGAL_UPDATE_CHARGE_DETAILS"); - static const int INVALID_ARN_HASH = HashingUtils::HashString("INVALID_ARN"); - static const int ILLEGAL_RESOURCE_ARNS_HASH = HashingUtils::HashString("ILLEGAL_RESOURCE_ARNS"); - static const int ILLEGAL_CUSTOMLINEITEM_MODIFICATION_HASH = HashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM_MODIFICATION"); - static const int MISSING_LINKED_ACCOUNT_IDS_HASH = HashingUtils::HashString("MISSING_LINKED_ACCOUNT_IDS"); - static const int MULTIPLE_LINKED_ACCOUNT_IDS_HASH = HashingUtils::HashString("MULTIPLE_LINKED_ACCOUNT_IDS"); - static const int MISSING_PRICING_PLAN_ARN_HASH = HashingUtils::HashString("MISSING_PRICING_PLAN_ARN"); - static const int MULTIPLE_PRICING_PLAN_ARN_HASH = HashingUtils::HashString("MULTIPLE_PRICING_PLAN_ARN"); - static const int ILLEGAL_CHILD_ASSOCIATE_RESOURCE_HASH = HashingUtils::HashString("ILLEGAL_CHILD_ASSOCIATE_RESOURCE"); - static const int CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS_HASH = HashingUtils::HashString("CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS"); - static const int INVALID_BILLING_GROUP_HASH = HashingUtils::HashString("INVALID_BILLING_GROUP"); - static const int INVALID_BILLING_PERIOD_FOR_OPERATION_HASH = HashingUtils::HashString("INVALID_BILLING_PERIOD_FOR_OPERATION"); - static const int ILLEGAL_BILLING_ENTITY_HASH = HashingUtils::HashString("ILLEGAL_BILLING_ENTITY"); - static const int ILLEGAL_MODIFIER_PERCENTAGE_HASH = HashingUtils::HashString("ILLEGAL_MODIFIER_PERCENTAGE"); - static const int ILLEGAL_TYPE_HASH = HashingUtils::HashString("ILLEGAL_TYPE"); - static const int ILLEGAL_ENDED_BILLINGGROUP_HASH = HashingUtils::HashString("ILLEGAL_ENDED_BILLINGGROUP"); - static const int ILLEGAL_TIERING_INPUT_HASH = HashingUtils::HashString("ILLEGAL_TIERING_INPUT"); - static const int ILLEGAL_OPERATION_HASH = HashingUtils::HashString("ILLEGAL_OPERATION"); - static const int ILLEGAL_USAGE_TYPE_HASH = HashingUtils::HashString("ILLEGAL_USAGE_TYPE"); - static const int INVALID_SKU_COMBO_HASH = HashingUtils::HashString("INVALID_SKU_COMBO"); - static const int INVALID_FILTER_HASH = HashingUtils::HashString("INVALID_FILTER"); - static const int TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS_HASH = HashingUtils::HashString("TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS"); - static const int CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP_HASH = HashingUtils::HashString("CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t PRIMARY_NOT_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("PRIMARY_NOT_ASSOCIATED"); + static constexpr uint32_t PRIMARY_CANNOT_DISASSOCIATE_HASH = ConstExprHashingUtils::HashString("PRIMARY_CANNOT_DISASSOCIATE"); + static constexpr uint32_t ACCOUNTS_NOT_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ACCOUNTS_NOT_ASSOCIATED"); + static constexpr uint32_t ACCOUNTS_ALREADY_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ACCOUNTS_ALREADY_ASSOCIATED"); + static constexpr uint32_t ILLEGAL_PRIMARY_ACCOUNT_HASH = ConstExprHashingUtils::HashString("ILLEGAL_PRIMARY_ACCOUNT"); + static constexpr uint32_t ILLEGAL_ACCOUNTS_HASH = ConstExprHashingUtils::HashString("ILLEGAL_ACCOUNTS"); + static constexpr uint32_t MISMATCHED_BILLINGGROUP_ARN_HASH = ConstExprHashingUtils::HashString("MISMATCHED_BILLINGGROUP_ARN"); + static constexpr uint32_t MISSING_BILLINGGROUP_HASH = ConstExprHashingUtils::HashString("MISSING_BILLINGGROUP"); + static constexpr uint32_t MISMATCHED_CUSTOMLINEITEM_ARN_HASH = ConstExprHashingUtils::HashString("MISMATCHED_CUSTOMLINEITEM_ARN"); + static constexpr uint32_t ILLEGAL_BILLING_PERIOD_HASH = ConstExprHashingUtils::HashString("ILLEGAL_BILLING_PERIOD"); + static constexpr uint32_t ILLEGAL_BILLING_PERIOD_RANGE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_BILLING_PERIOD_RANGE"); + static constexpr uint32_t TOO_MANY_ACCOUNTS_IN_REQUEST_HASH = ConstExprHashingUtils::HashString("TOO_MANY_ACCOUNTS_IN_REQUEST"); + static constexpr uint32_t DUPLICATE_ACCOUNT_HASH = ConstExprHashingUtils::HashString("DUPLICATE_ACCOUNT"); + static constexpr uint32_t INVALID_BILLING_GROUP_STATUS_HASH = ConstExprHashingUtils::HashString("INVALID_BILLING_GROUP_STATUS"); + static constexpr uint32_t MISMATCHED_PRICINGPLAN_ARN_HASH = ConstExprHashingUtils::HashString("MISMATCHED_PRICINGPLAN_ARN"); + static constexpr uint32_t MISSING_PRICINGPLAN_HASH = ConstExprHashingUtils::HashString("MISSING_PRICINGPLAN"); + static constexpr uint32_t MISMATCHED_PRICINGRULE_ARN_HASH = ConstExprHashingUtils::HashString("MISMATCHED_PRICINGRULE_ARN"); + static constexpr uint32_t DUPLICATE_PRICINGRULE_ARNS_HASH = ConstExprHashingUtils::HashString("DUPLICATE_PRICINGRULE_ARNS"); + static constexpr uint32_t ILLEGAL_EXPRESSION_HASH = ConstExprHashingUtils::HashString("ILLEGAL_EXPRESSION"); + static constexpr uint32_t ILLEGAL_SCOPE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_SCOPE"); + static constexpr uint32_t ILLEGAL_SERVICE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_SERVICE"); + static constexpr uint32_t PRICINGRULES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("PRICINGRULES_NOT_EXIST"); + static constexpr uint32_t PRICINGRULES_ALREADY_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("PRICINGRULES_ALREADY_ASSOCIATED"); + static constexpr uint32_t PRICINGRULES_NOT_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("PRICINGRULES_NOT_ASSOCIATED"); + static constexpr uint32_t INVALID_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_TIME_RANGE"); + static constexpr uint32_t INVALID_BILLINGVIEW_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_BILLINGVIEW_ARN"); + static constexpr uint32_t MISMATCHED_BILLINGVIEW_ARN_HASH = ConstExprHashingUtils::HashString("MISMATCHED_BILLINGVIEW_ARN"); + static constexpr uint32_t ILLEGAL_CUSTOMLINEITEM_HASH = ConstExprHashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM"); + static constexpr uint32_t MISSING_CUSTOMLINEITEM_HASH = ConstExprHashingUtils::HashString("MISSING_CUSTOMLINEITEM"); + static constexpr uint32_t ILLEGAL_CUSTOMLINEITEM_UPDATE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM_UPDATE"); + static constexpr uint32_t TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST_HASH = ConstExprHashingUtils::HashString("TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST"); + static constexpr uint32_t ILLEGAL_CHARGE_DETAILS_HASH = ConstExprHashingUtils::HashString("ILLEGAL_CHARGE_DETAILS"); + static constexpr uint32_t ILLEGAL_UPDATE_CHARGE_DETAILS_HASH = ConstExprHashingUtils::HashString("ILLEGAL_UPDATE_CHARGE_DETAILS"); + static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ARN"); + static constexpr uint32_t ILLEGAL_RESOURCE_ARNS_HASH = ConstExprHashingUtils::HashString("ILLEGAL_RESOURCE_ARNS"); + static constexpr uint32_t ILLEGAL_CUSTOMLINEITEM_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ILLEGAL_CUSTOMLINEITEM_MODIFICATION"); + static constexpr uint32_t MISSING_LINKED_ACCOUNT_IDS_HASH = ConstExprHashingUtils::HashString("MISSING_LINKED_ACCOUNT_IDS"); + static constexpr uint32_t MULTIPLE_LINKED_ACCOUNT_IDS_HASH = ConstExprHashingUtils::HashString("MULTIPLE_LINKED_ACCOUNT_IDS"); + static constexpr uint32_t MISSING_PRICING_PLAN_ARN_HASH = ConstExprHashingUtils::HashString("MISSING_PRICING_PLAN_ARN"); + static constexpr uint32_t MULTIPLE_PRICING_PLAN_ARN_HASH = ConstExprHashingUtils::HashString("MULTIPLE_PRICING_PLAN_ARN"); + static constexpr uint32_t ILLEGAL_CHILD_ASSOCIATE_RESOURCE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_CHILD_ASSOCIATE_RESOURCE"); + static constexpr uint32_t CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS_HASH = ConstExprHashingUtils::HashString("CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS"); + static constexpr uint32_t INVALID_BILLING_GROUP_HASH = ConstExprHashingUtils::HashString("INVALID_BILLING_GROUP"); + static constexpr uint32_t INVALID_BILLING_PERIOD_FOR_OPERATION_HASH = ConstExprHashingUtils::HashString("INVALID_BILLING_PERIOD_FOR_OPERATION"); + static constexpr uint32_t ILLEGAL_BILLING_ENTITY_HASH = ConstExprHashingUtils::HashString("ILLEGAL_BILLING_ENTITY"); + static constexpr uint32_t ILLEGAL_MODIFIER_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_MODIFIER_PERCENTAGE"); + static constexpr uint32_t ILLEGAL_TYPE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_TYPE"); + static constexpr uint32_t ILLEGAL_ENDED_BILLINGGROUP_HASH = ConstExprHashingUtils::HashString("ILLEGAL_ENDED_BILLINGGROUP"); + static constexpr uint32_t ILLEGAL_TIERING_INPUT_HASH = ConstExprHashingUtils::HashString("ILLEGAL_TIERING_INPUT"); + static constexpr uint32_t ILLEGAL_OPERATION_HASH = ConstExprHashingUtils::HashString("ILLEGAL_OPERATION"); + static constexpr uint32_t ILLEGAL_USAGE_TYPE_HASH = ConstExprHashingUtils::HashString("ILLEGAL_USAGE_TYPE"); + static constexpr uint32_t INVALID_SKU_COMBO_HASH = ConstExprHashingUtils::HashString("INVALID_SKU_COMBO"); + static constexpr uint32_t INVALID_FILTER_HASH = ConstExprHashingUtils::HashString("INVALID_FILTER"); + static constexpr uint32_t TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS_HASH = ConstExprHashingUtils::HashString("TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS"); + static constexpr uint32_t CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP_HASH = ConstExprHashingUtils::HashString("CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-braket/source/BraketErrors.cpp b/generated/src/aws-cpp-sdk-braket/source/BraketErrors.cpp index bb5a0a7d26d..53b95a4bdee 100644 --- a/generated/src/aws-cpp-sdk-braket/source/BraketErrors.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/BraketErrors.cpp @@ -18,16 +18,16 @@ namespace Braket namespace BraketErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int DEVICE_RETIRED_HASH = HashingUtils::HashString("DeviceRetiredException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int DEVICE_OFFLINE_HASH = HashingUtils::HashString("DeviceOfflineException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t DEVICE_RETIRED_HASH = ConstExprHashingUtils::HashString("DeviceRetiredException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t DEVICE_OFFLINE_HASH = ConstExprHashingUtils::HashString("DeviceOfflineException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-braket/source/model/CancellationStatus.cpp b/generated/src/aws-cpp-sdk-braket/source/model/CancellationStatus.cpp index 89371276762..8be6345a329 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/CancellationStatus.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/CancellationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CancellationStatusMapper { - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); CancellationStatus GetCancellationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCELLING_HASH) { return CancellationStatus::CANCELLING; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/CompressionType.cpp b/generated/src/aws-cpp-sdk-braket/source/model/CompressionType.cpp index 6477e6af8c4..1deb624b2cd 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/CompressionType.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/CompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompressionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); CompressionType GetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return CompressionType::NONE; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/DeviceStatus.cpp b/generated/src/aws-cpp-sdk-braket/source/model/DeviceStatus.cpp index 3efb0a1d865..e84b6cb4fd2 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/DeviceStatus.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/DeviceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeviceStatusMapper { - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); - static const int RETIRED_HASH = HashingUtils::HashString("RETIRED"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); + static constexpr uint32_t RETIRED_HASH = ConstExprHashingUtils::HashString("RETIRED"); DeviceStatus GetDeviceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLINE_HASH) { return DeviceStatus::ONLINE; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/DeviceType.cpp b/generated/src/aws-cpp-sdk-braket/source/model/DeviceType.cpp index 35487a639c3..e3583bc7f47 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/DeviceType.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/DeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceTypeMapper { - static const int QPU_HASH = HashingUtils::HashString("QPU"); - static const int SIMULATOR_HASH = HashingUtils::HashString("SIMULATOR"); + static constexpr uint32_t QPU_HASH = ConstExprHashingUtils::HashString("QPU"); + static constexpr uint32_t SIMULATOR_HASH = ConstExprHashingUtils::HashString("SIMULATOR"); DeviceType GetDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QPU_HASH) { return DeviceType::QPU; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/HybridJobAdditionalAttributeName.cpp b/generated/src/aws-cpp-sdk-braket/source/model/HybridJobAdditionalAttributeName.cpp index aa9dadfe1db..b38a8e77f66 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/HybridJobAdditionalAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/HybridJobAdditionalAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HybridJobAdditionalAttributeNameMapper { - static const int QueueInfo_HASH = HashingUtils::HashString("QueueInfo"); + static constexpr uint32_t QueueInfo_HASH = ConstExprHashingUtils::HashString("QueueInfo"); HybridJobAdditionalAttributeName GetHybridJobAdditionalAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QueueInfo_HASH) { return HybridJobAdditionalAttributeName::QueueInfo; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/InstanceType.cpp b/generated/src/aws-cpp-sdk-braket/source/model/InstanceType.cpp index 5044acec1ee..be8dc96eaa6 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/InstanceType.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/InstanceType.cpp @@ -20,50 +20,50 @@ namespace Aws namespace InstanceTypeMapper { - static const int ml_m4_xlarge_HASH = HashingUtils::HashString("ml.m4.xlarge"); - static const int ml_m4_2xlarge_HASH = HashingUtils::HashString("ml.m4.2xlarge"); - static const int ml_m4_4xlarge_HASH = HashingUtils::HashString("ml.m4.4xlarge"); - static const int ml_m4_10xlarge_HASH = HashingUtils::HashString("ml.m4.10xlarge"); - static const int ml_m4_16xlarge_HASH = HashingUtils::HashString("ml.m4.16xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); - static const int ml_m5_large_HASH = HashingUtils::HashString("ml.m5.large"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_c4_xlarge_HASH = HashingUtils::HashString("ml.c4.xlarge"); - static const int ml_c4_2xlarge_HASH = HashingUtils::HashString("ml.c4.2xlarge"); - static const int ml_c4_4xlarge_HASH = HashingUtils::HashString("ml.c4.4xlarge"); - static const int ml_c4_8xlarge_HASH = HashingUtils::HashString("ml.c4.8xlarge"); - static const int ml_p2_xlarge_HASH = HashingUtils::HashString("ml.p2.xlarge"); - static const int ml_p2_8xlarge_HASH = HashingUtils::HashString("ml.p2.8xlarge"); - static const int ml_p2_16xlarge_HASH = HashingUtils::HashString("ml.p2.16xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_p3dn_24xlarge_HASH = HashingUtils::HashString("ml.p3dn.24xlarge"); - static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_c5n_xlarge_HASH = HashingUtils::HashString("ml.c5n.xlarge"); - static const int ml_c5n_2xlarge_HASH = HashingUtils::HashString("ml.c5n.2xlarge"); - static const int ml_c5n_4xlarge_HASH = HashingUtils::HashString("ml.c5n.4xlarge"); - static const int ml_c5n_9xlarge_HASH = HashingUtils::HashString("ml.c5n.9xlarge"); - static const int ml_c5n_18xlarge_HASH = HashingUtils::HashString("ml.c5n.18xlarge"); + static constexpr uint32_t ml_m4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.xlarge"); + static constexpr uint32_t ml_m4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.2xlarge"); + static constexpr uint32_t ml_m4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.4xlarge"); + static constexpr uint32_t ml_m4_10xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.10xlarge"); + static constexpr uint32_t ml_m4_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.16xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_m5_large_HASH = ConstExprHashingUtils::HashString("ml.m5.large"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_c4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.xlarge"); + static constexpr uint32_t ml_c4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.2xlarge"); + static constexpr uint32_t ml_c4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.4xlarge"); + static constexpr uint32_t ml_c4_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.8xlarge"); + static constexpr uint32_t ml_p2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.xlarge"); + static constexpr uint32_t ml_p2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.8xlarge"); + static constexpr uint32_t ml_p2_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.16xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_p3dn_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3dn.24xlarge"); + static constexpr uint32_t ml_p4d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4d.24xlarge"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_c5n_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.xlarge"); + static constexpr uint32_t ml_c5n_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.2xlarge"); + static constexpr uint32_t ml_c5n_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.4xlarge"); + static constexpr uint32_t ml_c5n_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.9xlarge"); + static constexpr uint32_t ml_c5n_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.18xlarge"); InstanceType GetInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_m4_xlarge_HASH) { return InstanceType::ml_m4_xlarge; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/JobEventType.cpp b/generated/src/aws-cpp-sdk-braket/source/model/JobEventType.cpp index ee297326b81..cdecabc7d76 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/JobEventType.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/JobEventType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace JobEventTypeMapper { - static const int WAITING_FOR_PRIORITY_HASH = HashingUtils::HashString("WAITING_FOR_PRIORITY"); - static const int QUEUED_FOR_EXECUTION_HASH = HashingUtils::HashString("QUEUED_FOR_EXECUTION"); - static const int STARTING_INSTANCE_HASH = HashingUtils::HashString("STARTING_INSTANCE"); - static const int DOWNLOADING_DATA_HASH = HashingUtils::HashString("DOWNLOADING_DATA"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int DEPRIORITIZED_DUE_TO_INACTIVITY_HASH = HashingUtils::HashString("DEPRIORITIZED_DUE_TO_INACTIVITY"); - static const int UPLOADING_RESULTS_HASH = HashingUtils::HashString("UPLOADING_RESULTS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int MAX_RUNTIME_EXCEEDED_HASH = HashingUtils::HashString("MAX_RUNTIME_EXCEEDED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t WAITING_FOR_PRIORITY_HASH = ConstExprHashingUtils::HashString("WAITING_FOR_PRIORITY"); + static constexpr uint32_t QUEUED_FOR_EXECUTION_HASH = ConstExprHashingUtils::HashString("QUEUED_FOR_EXECUTION"); + static constexpr uint32_t STARTING_INSTANCE_HASH = ConstExprHashingUtils::HashString("STARTING_INSTANCE"); + static constexpr uint32_t DOWNLOADING_DATA_HASH = ConstExprHashingUtils::HashString("DOWNLOADING_DATA"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t DEPRIORITIZED_DUE_TO_INACTIVITY_HASH = ConstExprHashingUtils::HashString("DEPRIORITIZED_DUE_TO_INACTIVITY"); + static constexpr uint32_t UPLOADING_RESULTS_HASH = ConstExprHashingUtils::HashString("UPLOADING_RESULTS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t MAX_RUNTIME_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_RUNTIME_EXCEEDED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); JobEventType GetJobEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAITING_FOR_PRIORITY_HASH) { return JobEventType::WAITING_FOR_PRIORITY; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/JobPrimaryStatus.cpp b/generated/src/aws-cpp-sdk-braket/source/model/JobPrimaryStatus.cpp index c32d501bfc5..f6a2d4751bc 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/JobPrimaryStatus.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/JobPrimaryStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JobPrimaryStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); JobPrimaryStatus GetJobPrimaryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return JobPrimaryStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskAdditionalAttributeName.cpp b/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskAdditionalAttributeName.cpp index 3bff53d84c6..4c10c89569b 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskAdditionalAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskAdditionalAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace QuantumTaskAdditionalAttributeNameMapper { - static const int QueueInfo_HASH = HashingUtils::HashString("QueueInfo"); + static constexpr uint32_t QueueInfo_HASH = ConstExprHashingUtils::HashString("QueueInfo"); QuantumTaskAdditionalAttributeName GetQuantumTaskAdditionalAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QueueInfo_HASH) { return QuantumTaskAdditionalAttributeName::QueueInfo; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskStatus.cpp b/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskStatus.cpp index 298220a7e84..b3d92804926 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/QuantumTaskStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace QuantumTaskStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); QuantumTaskStatus GetQuantumTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return QuantumTaskStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/QueueName.cpp b/generated/src/aws-cpp-sdk-braket/source/model/QueueName.cpp index 36abcc62dae..72251c71140 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/QueueName.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/QueueName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueueNameMapper { - static const int QUANTUM_TASKS_QUEUE_HASH = HashingUtils::HashString("QUANTUM_TASKS_QUEUE"); - static const int JOBS_QUEUE_HASH = HashingUtils::HashString("JOBS_QUEUE"); + static constexpr uint32_t QUANTUM_TASKS_QUEUE_HASH = ConstExprHashingUtils::HashString("QUANTUM_TASKS_QUEUE"); + static constexpr uint32_t JOBS_QUEUE_HASH = ConstExprHashingUtils::HashString("JOBS_QUEUE"); QueueName GetQueueNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUANTUM_TASKS_QUEUE_HASH) { return QueueName::QUANTUM_TASKS_QUEUE; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/QueuePriority.cpp b/generated/src/aws-cpp-sdk-braket/source/model/QueuePriority.cpp index ccdf9756f3f..6120c50e4cc 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/QueuePriority.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/QueuePriority.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueuePriorityMapper { - static const int Normal_HASH = HashingUtils::HashString("Normal"); - static const int Priority_HASH = HashingUtils::HashString("Priority"); + static constexpr uint32_t Normal_HASH = ConstExprHashingUtils::HashString("Normal"); + static constexpr uint32_t Priority_HASH = ConstExprHashingUtils::HashString("Priority"); QueuePriority GetQueuePriorityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Normal_HASH) { return QueuePriority::Normal; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/SearchJobsFilterOperator.cpp b/generated/src/aws-cpp-sdk-braket/source/model/SearchJobsFilterOperator.cpp index 3cefd6d81b5..55bf7dda99e 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/SearchJobsFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/SearchJobsFilterOperator.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SearchJobsFilterOperatorMapper { - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LTE_HASH = HashingUtils::HashString("LTE"); - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GTE_HASH = HashingUtils::HashString("GTE"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LTE_HASH = ConstExprHashingUtils::HashString("LTE"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GTE_HASH = ConstExprHashingUtils::HashString("GTE"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); SearchJobsFilterOperator GetSearchJobsFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LT_HASH) { return SearchJobsFilterOperator::LT; diff --git a/generated/src/aws-cpp-sdk-braket/source/model/SearchQuantumTasksFilterOperator.cpp b/generated/src/aws-cpp-sdk-braket/source/model/SearchQuantumTasksFilterOperator.cpp index 16e4e6e64ea..516641b3500 100644 --- a/generated/src/aws-cpp-sdk-braket/source/model/SearchQuantumTasksFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/model/SearchQuantumTasksFilterOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SearchQuantumTasksFilterOperatorMapper { - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LTE_HASH = HashingUtils::HashString("LTE"); - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GTE_HASH = HashingUtils::HashString("GTE"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LTE_HASH = ConstExprHashingUtils::HashString("LTE"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GTE_HASH = ConstExprHashingUtils::HashString("GTE"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); SearchQuantumTasksFilterOperator GetSearchQuantumTasksFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LT_HASH) { return SearchQuantumTasksFilterOperator::LT; diff --git a/generated/src/aws-cpp-sdk-budgets/source/BudgetsErrors.cpp b/generated/src/aws-cpp-sdk-budgets/source/BudgetsErrors.cpp index 819045709e8..2ec13a822bf 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/BudgetsErrors.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/BudgetsErrors.cpp @@ -18,19 +18,19 @@ namespace Budgets namespace BudgetsErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int RESOURCE_LOCKED_HASH = HashingUtils::HashString("ResourceLockedException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int DUPLICATE_RECORD_HASH = HashingUtils::HashString("DuplicateRecordException"); -static const int CREATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CreationLimitExceededException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int EXPIRED_NEXT_TOKEN_HASH = HashingUtils::HashString("ExpiredNextTokenException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t RESOURCE_LOCKED_HASH = ConstExprHashingUtils::HashString("ResourceLockedException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t DUPLICATE_RECORD_HASH = ConstExprHashingUtils::HashString("DuplicateRecordException"); +static constexpr uint32_t CREATION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CreationLimitExceededException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t EXPIRED_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ActionStatus.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ActionStatus.cpp index cfbb8888874..973b3fe0b4c 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ActionStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ActionStatusMapper { - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int EXECUTION_IN_PROGRESS_HASH = HashingUtils::HashString("EXECUTION_IN_PROGRESS"); - static const int EXECUTION_SUCCESS_HASH = HashingUtils::HashString("EXECUTION_SUCCESS"); - static const int EXECUTION_FAILURE_HASH = HashingUtils::HashString("EXECUTION_FAILURE"); - static const int REVERSE_IN_PROGRESS_HASH = HashingUtils::HashString("REVERSE_IN_PROGRESS"); - static const int REVERSE_SUCCESS_HASH = HashingUtils::HashString("REVERSE_SUCCESS"); - static const int REVERSE_FAILURE_HASH = HashingUtils::HashString("REVERSE_FAILURE"); - static const int RESET_IN_PROGRESS_HASH = HashingUtils::HashString("RESET_IN_PROGRESS"); - static const int RESET_FAILURE_HASH = HashingUtils::HashString("RESET_FAILURE"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t EXECUTION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("EXECUTION_IN_PROGRESS"); + static constexpr uint32_t EXECUTION_SUCCESS_HASH = ConstExprHashingUtils::HashString("EXECUTION_SUCCESS"); + static constexpr uint32_t EXECUTION_FAILURE_HASH = ConstExprHashingUtils::HashString("EXECUTION_FAILURE"); + static constexpr uint32_t REVERSE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REVERSE_IN_PROGRESS"); + static constexpr uint32_t REVERSE_SUCCESS_HASH = ConstExprHashingUtils::HashString("REVERSE_SUCCESS"); + static constexpr uint32_t REVERSE_FAILURE_HASH = ConstExprHashingUtils::HashString("REVERSE_FAILURE"); + static constexpr uint32_t RESET_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("RESET_IN_PROGRESS"); + static constexpr uint32_t RESET_FAILURE_HASH = ConstExprHashingUtils::HashString("RESET_FAILURE"); ActionStatus GetActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDBY_HASH) { return ActionStatus::STANDBY; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ActionSubType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ActionSubType.cpp index 4666ffce1f4..4ba0d9a6aba 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ActionSubType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ActionSubType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ActionSubTypeMapper { - static const int STOP_EC2_INSTANCES_HASH = HashingUtils::HashString("STOP_EC2_INSTANCES"); - static const int STOP_RDS_INSTANCES_HASH = HashingUtils::HashString("STOP_RDS_INSTANCES"); + static constexpr uint32_t STOP_EC2_INSTANCES_HASH = ConstExprHashingUtils::HashString("STOP_EC2_INSTANCES"); + static constexpr uint32_t STOP_RDS_INSTANCES_HASH = ConstExprHashingUtils::HashString("STOP_RDS_INSTANCES"); ActionSubType GetActionSubTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOP_EC2_INSTANCES_HASH) { return ActionSubType::STOP_EC2_INSTANCES; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ActionType.cpp index fa1c1e78968..74f725e1eb8 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionTypeMapper { - static const int APPLY_IAM_POLICY_HASH = HashingUtils::HashString("APPLY_IAM_POLICY"); - static const int APPLY_SCP_POLICY_HASH = HashingUtils::HashString("APPLY_SCP_POLICY"); - static const int RUN_SSM_DOCUMENTS_HASH = HashingUtils::HashString("RUN_SSM_DOCUMENTS"); + static constexpr uint32_t APPLY_IAM_POLICY_HASH = ConstExprHashingUtils::HashString("APPLY_IAM_POLICY"); + static constexpr uint32_t APPLY_SCP_POLICY_HASH = ConstExprHashingUtils::HashString("APPLY_SCP_POLICY"); + static constexpr uint32_t RUN_SSM_DOCUMENTS_HASH = ConstExprHashingUtils::HashString("RUN_SSM_DOCUMENTS"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLY_IAM_POLICY_HASH) { return ActionType::APPLY_IAM_POLICY; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ApprovalModel.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ApprovalModel.cpp index d8a4fbe125d..4a705c351d1 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ApprovalModel.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ApprovalModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApprovalModelMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); ApprovalModel GetApprovalModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return ApprovalModel::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/AutoAdjustType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/AutoAdjustType.cpp index e6b476fb906..03b9b9f0de7 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/AutoAdjustType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/AutoAdjustType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoAdjustTypeMapper { - static const int HISTORICAL_HASH = HashingUtils::HashString("HISTORICAL"); - static const int FORECAST_HASH = HashingUtils::HashString("FORECAST"); + static constexpr uint32_t HISTORICAL_HASH = ConstExprHashingUtils::HashString("HISTORICAL"); + static constexpr uint32_t FORECAST_HASH = ConstExprHashingUtils::HashString("FORECAST"); AutoAdjustType GetAutoAdjustTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HISTORICAL_HASH) { return AutoAdjustType::HISTORICAL; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/BudgetType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/BudgetType.cpp index d5635fa3e0d..5e2ccbea79f 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/BudgetType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/BudgetType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BudgetTypeMapper { - static const int USAGE_HASH = HashingUtils::HashString("USAGE"); - static const int COST_HASH = HashingUtils::HashString("COST"); - static const int RI_UTILIZATION_HASH = HashingUtils::HashString("RI_UTILIZATION"); - static const int RI_COVERAGE_HASH = HashingUtils::HashString("RI_COVERAGE"); - static const int SAVINGS_PLANS_UTILIZATION_HASH = HashingUtils::HashString("SAVINGS_PLANS_UTILIZATION"); - static const int SAVINGS_PLANS_COVERAGE_HASH = HashingUtils::HashString("SAVINGS_PLANS_COVERAGE"); + static constexpr uint32_t USAGE_HASH = ConstExprHashingUtils::HashString("USAGE"); + static constexpr uint32_t COST_HASH = ConstExprHashingUtils::HashString("COST"); + static constexpr uint32_t RI_UTILIZATION_HASH = ConstExprHashingUtils::HashString("RI_UTILIZATION"); + static constexpr uint32_t RI_COVERAGE_HASH = ConstExprHashingUtils::HashString("RI_COVERAGE"); + static constexpr uint32_t SAVINGS_PLANS_UTILIZATION_HASH = ConstExprHashingUtils::HashString("SAVINGS_PLANS_UTILIZATION"); + static constexpr uint32_t SAVINGS_PLANS_COVERAGE_HASH = ConstExprHashingUtils::HashString("SAVINGS_PLANS_COVERAGE"); BudgetType GetBudgetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USAGE_HASH) { return BudgetType::USAGE; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ComparisonOperator.cpp index f5a6b6f7c11..cb95817f9f2 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ComparisonOperator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_THAN_HASH) { return ComparisonOperator::GREATER_THAN; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/EventType.cpp index 17c99d5e1cb..fa9a828afb1 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/EventType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EventTypeMapper { - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int CREATE_ACTION_HASH = HashingUtils::HashString("CREATE_ACTION"); - static const int DELETE_ACTION_HASH = HashingUtils::HashString("DELETE_ACTION"); - static const int UPDATE_ACTION_HASH = HashingUtils::HashString("UPDATE_ACTION"); - static const int EXECUTE_ACTION_HASH = HashingUtils::HashString("EXECUTE_ACTION"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t CREATE_ACTION_HASH = ConstExprHashingUtils::HashString("CREATE_ACTION"); + static constexpr uint32_t DELETE_ACTION_HASH = ConstExprHashingUtils::HashString("DELETE_ACTION"); + static constexpr uint32_t UPDATE_ACTION_HASH = ConstExprHashingUtils::HashString("UPDATE_ACTION"); + static constexpr uint32_t EXECUTE_ACTION_HASH = ConstExprHashingUtils::HashString("EXECUTE_ACTION"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYSTEM_HASH) { return EventType::SYSTEM; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ExecutionType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ExecutionType.cpp index a03a2fd782c..77d9eb928a3 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ExecutionType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ExecutionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExecutionTypeMapper { - static const int APPROVE_BUDGET_ACTION_HASH = HashingUtils::HashString("APPROVE_BUDGET_ACTION"); - static const int RETRY_BUDGET_ACTION_HASH = HashingUtils::HashString("RETRY_BUDGET_ACTION"); - static const int REVERSE_BUDGET_ACTION_HASH = HashingUtils::HashString("REVERSE_BUDGET_ACTION"); - static const int RESET_BUDGET_ACTION_HASH = HashingUtils::HashString("RESET_BUDGET_ACTION"); + static constexpr uint32_t APPROVE_BUDGET_ACTION_HASH = ConstExprHashingUtils::HashString("APPROVE_BUDGET_ACTION"); + static constexpr uint32_t RETRY_BUDGET_ACTION_HASH = ConstExprHashingUtils::HashString("RETRY_BUDGET_ACTION"); + static constexpr uint32_t REVERSE_BUDGET_ACTION_HASH = ConstExprHashingUtils::HashString("REVERSE_BUDGET_ACTION"); + static constexpr uint32_t RESET_BUDGET_ACTION_HASH = ConstExprHashingUtils::HashString("RESET_BUDGET_ACTION"); ExecutionType GetExecutionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVE_BUDGET_ACTION_HASH) { return ExecutionType::APPROVE_BUDGET_ACTION; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/NotificationState.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/NotificationState.cpp index 7edd63f7be3..a437ce033de 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/NotificationState.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/NotificationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationStateMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int ALARM_HASH = HashingUtils::HashString("ALARM"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t ALARM_HASH = ConstExprHashingUtils::HashString("ALARM"); NotificationState GetNotificationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return NotificationState::OK; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/NotificationType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/NotificationType.cpp index 06ca2b6ba20..c67f47aec72 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/NotificationType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/NotificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationTypeMapper { - static const int ACTUAL_HASH = HashingUtils::HashString("ACTUAL"); - static const int FORECASTED_HASH = HashingUtils::HashString("FORECASTED"); + static constexpr uint32_t ACTUAL_HASH = ConstExprHashingUtils::HashString("ACTUAL"); + static constexpr uint32_t FORECASTED_HASH = ConstExprHashingUtils::HashString("FORECASTED"); NotificationType GetNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTUAL_HASH) { return NotificationType::ACTUAL; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/SubscriptionType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/SubscriptionType.cpp index 928d757ee1f..ea53c06db78 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/SubscriptionType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/SubscriptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubscriptionTypeMapper { - static const int SNS_HASH = HashingUtils::HashString("SNS"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); SubscriptionType GetSubscriptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNS_HASH) { return SubscriptionType::SNS; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/ThresholdType.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/ThresholdType.cpp index fd6d043a46c..3c0df18aa83 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/ThresholdType.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/ThresholdType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThresholdTypeMapper { - static const int PERCENTAGE_HASH = HashingUtils::HashString("PERCENTAGE"); - static const int ABSOLUTE_VALUE_HASH = HashingUtils::HashString("ABSOLUTE_VALUE"); + static constexpr uint32_t PERCENTAGE_HASH = ConstExprHashingUtils::HashString("PERCENTAGE"); + static constexpr uint32_t ABSOLUTE_VALUE_HASH = ConstExprHashingUtils::HashString("ABSOLUTE_VALUE"); ThresholdType GetThresholdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERCENTAGE_HASH) { return ThresholdType::PERCENTAGE; diff --git a/generated/src/aws-cpp-sdk-budgets/source/model/TimeUnit.cpp b/generated/src/aws-cpp-sdk-budgets/source/model/TimeUnit.cpp index bc68f67b2e0..258ca1f1740 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/model/TimeUnit.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/model/TimeUnit.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TimeUnitMapper { - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); - static const int QUARTERLY_HASH = HashingUtils::HashString("QUARTERLY"); - static const int ANNUALLY_HASH = HashingUtils::HashString("ANNUALLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); + static constexpr uint32_t QUARTERLY_HASH = ConstExprHashingUtils::HashString("QUARTERLY"); + static constexpr uint32_t ANNUALLY_HASH = ConstExprHashingUtils::HashString("ANNUALLY"); TimeUnit GetTimeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAILY_HASH) { return TimeUnit::DAILY; diff --git a/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp b/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp index 6b81b89cf07..72a82efc1ae 100644 --- a/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp @@ -33,22 +33,22 @@ template<> AWS_COSTEXPLORER_API TooManyTagsException CostExplorerError::GetModel namespace CostExplorerErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int REQUEST_CHANGED_HASH = HashingUtils::HashString("RequestChangedException"); -static const int UNRESOLVABLE_USAGE_UNIT_HASH = HashingUtils::HashString("UnresolvableUsageUnitException"); -static const int UNKNOWN_SUBSCRIPTION_HASH = HashingUtils::HashString("UnknownSubscriptionException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int UNKNOWN_MONITOR_HASH = HashingUtils::HashString("UnknownMonitorException"); -static const int BILL_EXPIRATION_HASH = HashingUtils::HashString("BillExpirationException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int DATA_UNAVAILABLE_HASH = HashingUtils::HashString("DataUnavailableException"); -static const int GENERATION_EXISTS_HASH = HashingUtils::HashString("GenerationExistsException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t REQUEST_CHANGED_HASH = ConstExprHashingUtils::HashString("RequestChangedException"); +static constexpr uint32_t UNRESOLVABLE_USAGE_UNIT_HASH = ConstExprHashingUtils::HashString("UnresolvableUsageUnitException"); +static constexpr uint32_t UNKNOWN_SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("UnknownSubscriptionException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t UNKNOWN_MONITOR_HASH = ConstExprHashingUtils::HashString("UnknownMonitorException"); +static constexpr uint32_t BILL_EXPIRATION_HASH = ConstExprHashingUtils::HashString("BillExpirationException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t DATA_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("DataUnavailableException"); +static constexpr uint32_t GENERATION_EXISTS_HASH = ConstExprHashingUtils::HashString("GenerationExistsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-ce/source/model/AccountScope.cpp b/generated/src/aws-cpp-sdk-ce/source/model/AccountScope.cpp index 5333eaa7460..3a9bd961802 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/AccountScope.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/AccountScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccountScopeMapper { - static const int PAYER_HASH = HashingUtils::HashString("PAYER"); - static const int LINKED_HASH = HashingUtils::HashString("LINKED"); + static constexpr uint32_t PAYER_HASH = ConstExprHashingUtils::HashString("PAYER"); + static constexpr uint32_t LINKED_HASH = ConstExprHashingUtils::HashString("LINKED"); AccountScope GetAccountScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAYER_HASH) { return AccountScope::PAYER; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/AnomalyFeedbackType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/AnomalyFeedbackType.cpp index f646a9e315c..4d6aab66684 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/AnomalyFeedbackType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/AnomalyFeedbackType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnomalyFeedbackTypeMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int PLANNED_ACTIVITY_HASH = HashingUtils::HashString("PLANNED_ACTIVITY"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t PLANNED_ACTIVITY_HASH = ConstExprHashingUtils::HashString("PLANNED_ACTIVITY"); AnomalyFeedbackType GetAnomalyFeedbackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return AnomalyFeedbackType::YES; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/AnomalySubscriptionFrequency.cpp b/generated/src/aws-cpp-sdk-ce/source/model/AnomalySubscriptionFrequency.cpp index aa95f761158..e0eabae2f5d 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/AnomalySubscriptionFrequency.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/AnomalySubscriptionFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnomalySubscriptionFrequencyMapper { - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int IMMEDIATE_HASH = HashingUtils::HashString("IMMEDIATE"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t IMMEDIATE_HASH = ConstExprHashingUtils::HashString("IMMEDIATE"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); AnomalySubscriptionFrequency GetAnomalySubscriptionFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAILY_HASH) { return AnomalySubscriptionFrequency::DAILY; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/Context.cpp b/generated/src/aws-cpp-sdk-ce/source/model/Context.cpp index d977e561cb4..d0b04cbb568 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/Context.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/Context.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ContextMapper { - static const int COST_AND_USAGE_HASH = HashingUtils::HashString("COST_AND_USAGE"); - static const int RESERVATIONS_HASH = HashingUtils::HashString("RESERVATIONS"); - static const int SAVINGS_PLANS_HASH = HashingUtils::HashString("SAVINGS_PLANS"); + static constexpr uint32_t COST_AND_USAGE_HASH = ConstExprHashingUtils::HashString("COST_AND_USAGE"); + static constexpr uint32_t RESERVATIONS_HASH = ConstExprHashingUtils::HashString("RESERVATIONS"); + static constexpr uint32_t SAVINGS_PLANS_HASH = ConstExprHashingUtils::HashString("SAVINGS_PLANS"); Context GetContextForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COST_AND_USAGE_HASH) { return Context::COST_AND_USAGE; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagStatus.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagStatus.cpp index 31f0b7ca95a..c76d36e1f34 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagStatus.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostAllocationTagStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); CostAllocationTagStatus GetCostAllocationTagStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return CostAllocationTagStatus::Active; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagType.cpp index 051529a71f9..11ceeb9b9f8 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostAllocationTagTypeMapper { - static const int AWSGenerated_HASH = HashingUtils::HashString("AWSGenerated"); - static const int UserDefined_HASH = HashingUtils::HashString("UserDefined"); + static constexpr uint32_t AWSGenerated_HASH = ConstExprHashingUtils::HashString("AWSGenerated"); + static constexpr uint32_t UserDefined_HASH = ConstExprHashingUtils::HashString("UserDefined"); CostAllocationTagType GetCostAllocationTagTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSGenerated_HASH) { return CostAllocationTagType::AWSGenerated; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryInheritedValueDimensionName.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryInheritedValueDimensionName.cpp index ea8610bab76..d70119152da 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryInheritedValueDimensionName.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryInheritedValueDimensionName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostCategoryInheritedValueDimensionNameMapper { - static const int LINKED_ACCOUNT_NAME_HASH = HashingUtils::HashString("LINKED_ACCOUNT_NAME"); - static const int TAG_HASH = HashingUtils::HashString("TAG"); + static constexpr uint32_t LINKED_ACCOUNT_NAME_HASH = ConstExprHashingUtils::HashString("LINKED_ACCOUNT_NAME"); + static constexpr uint32_t TAG_HASH = ConstExprHashingUtils::HashString("TAG"); CostCategoryInheritedValueDimensionName GetCostCategoryInheritedValueDimensionNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINKED_ACCOUNT_NAME_HASH) { return CostCategoryInheritedValueDimensionName::LINKED_ACCOUNT_NAME; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleType.cpp index 1d1062ac792..01e27dc7ac9 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostCategoryRuleTypeMapper { - static const int REGULAR_HASH = HashingUtils::HashString("REGULAR"); - static const int INHERITED_VALUE_HASH = HashingUtils::HashString("INHERITED_VALUE"); + static constexpr uint32_t REGULAR_HASH = ConstExprHashingUtils::HashString("REGULAR"); + static constexpr uint32_t INHERITED_VALUE_HASH = ConstExprHashingUtils::HashString("INHERITED_VALUE"); CostCategoryRuleType GetCostCategoryRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGULAR_HASH) { return CostCategoryRuleType::REGULAR; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleVersion.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleVersion.cpp index 92b61aa1de3..8ec9521d803 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleVersion.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryRuleVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CostCategoryRuleVersionMapper { - static const int CostCategoryExpression_v1_HASH = HashingUtils::HashString("CostCategoryExpression.v1"); + static constexpr uint32_t CostCategoryExpression_v1_HASH = ConstExprHashingUtils::HashString("CostCategoryExpression.v1"); CostCategoryRuleVersion GetCostCategoryRuleVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CostCategoryExpression_v1_HASH) { return CostCategoryRuleVersion::CostCategoryExpression_v1; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeMethod.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeMethod.cpp index 9eb37f0cd66..2f38291b51a 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeMethod.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CostCategorySplitChargeMethodMapper { - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); - static const int PROPORTIONAL_HASH = HashingUtils::HashString("PROPORTIONAL"); - static const int EVEN_HASH = HashingUtils::HashString("EVEN"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); + static constexpr uint32_t PROPORTIONAL_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL"); + static constexpr uint32_t EVEN_HASH = ConstExprHashingUtils::HashString("EVEN"); CostCategorySplitChargeMethod GetCostCategorySplitChargeMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_HASH) { return CostCategorySplitChargeMethod::FIXED; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeRuleParameterType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeRuleParameterType.cpp index 0c08643c5b9..64dfb70404e 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeRuleParameterType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategorySplitChargeRuleParameterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CostCategorySplitChargeRuleParameterTypeMapper { - static const int ALLOCATION_PERCENTAGES_HASH = HashingUtils::HashString("ALLOCATION_PERCENTAGES"); + static constexpr uint32_t ALLOCATION_PERCENTAGES_HASH = ConstExprHashingUtils::HashString("ALLOCATION_PERCENTAGES"); CostCategorySplitChargeRuleParameterType GetCostCategorySplitChargeRuleParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOCATION_PERCENTAGES_HASH) { return CostCategorySplitChargeRuleParameterType::ALLOCATION_PERCENTAGES; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatus.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatus.cpp index 95472d5a7d0..65632eb34dd 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatus.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostCategoryStatusMapper { - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int APPLIED_HASH = HashingUtils::HashString("APPLIED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t APPLIED_HASH = ConstExprHashingUtils::HashString("APPLIED"); CostCategoryStatus GetCostCategoryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROCESSING_HASH) { return CostCategoryStatus::PROCESSING; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatusComponent.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatusComponent.cpp index a9117ffa620..1948634afbf 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatusComponent.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostCategoryStatusComponent.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CostCategoryStatusComponentMapper { - static const int COST_EXPLORER_HASH = HashingUtils::HashString("COST_EXPLORER"); + static constexpr uint32_t COST_EXPLORER_HASH = ConstExprHashingUtils::HashString("COST_EXPLORER"); CostCategoryStatusComponent GetCostCategoryStatusComponentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COST_EXPLORER_HASH) { return CostCategoryStatusComponent::COST_EXPLORER; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/Dimension.cpp b/generated/src/aws-cpp-sdk-ce/source/model/Dimension.cpp index c3bdb92b467..aa43d4d1d15 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/Dimension.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/Dimension.cpp @@ -20,45 +20,45 @@ namespace Aws namespace DimensionMapper { - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int INSTANCE_TYPE_HASH = HashingUtils::HashString("INSTANCE_TYPE"); - static const int LINKED_ACCOUNT_HASH = HashingUtils::HashString("LINKED_ACCOUNT"); - static const int LINKED_ACCOUNT_NAME_HASH = HashingUtils::HashString("LINKED_ACCOUNT_NAME"); - static const int OPERATION_HASH = HashingUtils::HashString("OPERATION"); - static const int PURCHASE_TYPE_HASH = HashingUtils::HashString("PURCHASE_TYPE"); - static const int REGION_HASH = HashingUtils::HashString("REGION"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); - static const int SERVICE_CODE_HASH = HashingUtils::HashString("SERVICE_CODE"); - static const int USAGE_TYPE_HASH = HashingUtils::HashString("USAGE_TYPE"); - static const int USAGE_TYPE_GROUP_HASH = HashingUtils::HashString("USAGE_TYPE_GROUP"); - static const int RECORD_TYPE_HASH = HashingUtils::HashString("RECORD_TYPE"); - static const int OPERATING_SYSTEM_HASH = HashingUtils::HashString("OPERATING_SYSTEM"); - static const int TENANCY_HASH = HashingUtils::HashString("TENANCY"); - static const int SCOPE_HASH = HashingUtils::HashString("SCOPE"); - static const int PLATFORM_HASH = HashingUtils::HashString("PLATFORM"); - static const int SUBSCRIPTION_ID_HASH = HashingUtils::HashString("SUBSCRIPTION_ID"); - static const int LEGAL_ENTITY_NAME_HASH = HashingUtils::HashString("LEGAL_ENTITY_NAME"); - static const int DEPLOYMENT_OPTION_HASH = HashingUtils::HashString("DEPLOYMENT_OPTION"); - static const int DATABASE_ENGINE_HASH = HashingUtils::HashString("DATABASE_ENGINE"); - static const int CACHE_ENGINE_HASH = HashingUtils::HashString("CACHE_ENGINE"); - static const int INSTANCE_TYPE_FAMILY_HASH = HashingUtils::HashString("INSTANCE_TYPE_FAMILY"); - static const int BILLING_ENTITY_HASH = HashingUtils::HashString("BILLING_ENTITY"); - static const int RESERVATION_ID_HASH = HashingUtils::HashString("RESERVATION_ID"); - static const int RESOURCE_ID_HASH = HashingUtils::HashString("RESOURCE_ID"); - static const int RIGHTSIZING_TYPE_HASH = HashingUtils::HashString("RIGHTSIZING_TYPE"); - static const int SAVINGS_PLANS_TYPE_HASH = HashingUtils::HashString("SAVINGS_PLANS_TYPE"); - static const int SAVINGS_PLAN_ARN_HASH = HashingUtils::HashString("SAVINGS_PLAN_ARN"); - static const int PAYMENT_OPTION_HASH = HashingUtils::HashString("PAYMENT_OPTION"); - static const int AGREEMENT_END_DATE_TIME_AFTER_HASH = HashingUtils::HashString("AGREEMENT_END_DATE_TIME_AFTER"); - static const int AGREEMENT_END_DATE_TIME_BEFORE_HASH = HashingUtils::HashString("AGREEMENT_END_DATE_TIME_BEFORE"); - static const int INVOICING_ENTITY_HASH = HashingUtils::HashString("INVOICING_ENTITY"); - static const int ANOMALY_TOTAL_IMPACT_ABSOLUTE_HASH = HashingUtils::HashString("ANOMALY_TOTAL_IMPACT_ABSOLUTE"); - static const int ANOMALY_TOTAL_IMPACT_PERCENTAGE_HASH = HashingUtils::HashString("ANOMALY_TOTAL_IMPACT_PERCENTAGE"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t INSTANCE_TYPE_HASH = ConstExprHashingUtils::HashString("INSTANCE_TYPE"); + static constexpr uint32_t LINKED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("LINKED_ACCOUNT"); + static constexpr uint32_t LINKED_ACCOUNT_NAME_HASH = ConstExprHashingUtils::HashString("LINKED_ACCOUNT_NAME"); + static constexpr uint32_t OPERATION_HASH = ConstExprHashingUtils::HashString("OPERATION"); + static constexpr uint32_t PURCHASE_TYPE_HASH = ConstExprHashingUtils::HashString("PURCHASE_TYPE"); + static constexpr uint32_t REGION_HASH = ConstExprHashingUtils::HashString("REGION"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); + static constexpr uint32_t SERVICE_CODE_HASH = ConstExprHashingUtils::HashString("SERVICE_CODE"); + static constexpr uint32_t USAGE_TYPE_HASH = ConstExprHashingUtils::HashString("USAGE_TYPE"); + static constexpr uint32_t USAGE_TYPE_GROUP_HASH = ConstExprHashingUtils::HashString("USAGE_TYPE_GROUP"); + static constexpr uint32_t RECORD_TYPE_HASH = ConstExprHashingUtils::HashString("RECORD_TYPE"); + static constexpr uint32_t OPERATING_SYSTEM_HASH = ConstExprHashingUtils::HashString("OPERATING_SYSTEM"); + static constexpr uint32_t TENANCY_HASH = ConstExprHashingUtils::HashString("TENANCY"); + static constexpr uint32_t SCOPE_HASH = ConstExprHashingUtils::HashString("SCOPE"); + static constexpr uint32_t PLATFORM_HASH = ConstExprHashingUtils::HashString("PLATFORM"); + static constexpr uint32_t SUBSCRIPTION_ID_HASH = ConstExprHashingUtils::HashString("SUBSCRIPTION_ID"); + static constexpr uint32_t LEGAL_ENTITY_NAME_HASH = ConstExprHashingUtils::HashString("LEGAL_ENTITY_NAME"); + static constexpr uint32_t DEPLOYMENT_OPTION_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_OPTION"); + static constexpr uint32_t DATABASE_ENGINE_HASH = ConstExprHashingUtils::HashString("DATABASE_ENGINE"); + static constexpr uint32_t CACHE_ENGINE_HASH = ConstExprHashingUtils::HashString("CACHE_ENGINE"); + static constexpr uint32_t INSTANCE_TYPE_FAMILY_HASH = ConstExprHashingUtils::HashString("INSTANCE_TYPE_FAMILY"); + static constexpr uint32_t BILLING_ENTITY_HASH = ConstExprHashingUtils::HashString("BILLING_ENTITY"); + static constexpr uint32_t RESERVATION_ID_HASH = ConstExprHashingUtils::HashString("RESERVATION_ID"); + static constexpr uint32_t RESOURCE_ID_HASH = ConstExprHashingUtils::HashString("RESOURCE_ID"); + static constexpr uint32_t RIGHTSIZING_TYPE_HASH = ConstExprHashingUtils::HashString("RIGHTSIZING_TYPE"); + static constexpr uint32_t SAVINGS_PLANS_TYPE_HASH = ConstExprHashingUtils::HashString("SAVINGS_PLANS_TYPE"); + static constexpr uint32_t SAVINGS_PLAN_ARN_HASH = ConstExprHashingUtils::HashString("SAVINGS_PLAN_ARN"); + static constexpr uint32_t PAYMENT_OPTION_HASH = ConstExprHashingUtils::HashString("PAYMENT_OPTION"); + static constexpr uint32_t AGREEMENT_END_DATE_TIME_AFTER_HASH = ConstExprHashingUtils::HashString("AGREEMENT_END_DATE_TIME_AFTER"); + static constexpr uint32_t AGREEMENT_END_DATE_TIME_BEFORE_HASH = ConstExprHashingUtils::HashString("AGREEMENT_END_DATE_TIME_BEFORE"); + static constexpr uint32_t INVOICING_ENTITY_HASH = ConstExprHashingUtils::HashString("INVOICING_ENTITY"); + static constexpr uint32_t ANOMALY_TOTAL_IMPACT_ABSOLUTE_HASH = ConstExprHashingUtils::HashString("ANOMALY_TOTAL_IMPACT_ABSOLUTE"); + static constexpr uint32_t ANOMALY_TOTAL_IMPACT_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("ANOMALY_TOTAL_IMPACT_PERCENTAGE"); Dimension GetDimensionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AZ_HASH) { return Dimension::AZ; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/FindingReasonCode.cpp b/generated/src/aws-cpp-sdk-ce/source/model/FindingReasonCode.cpp index 353ca69c3c3..f6621af4629 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/FindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/FindingReasonCode.cpp @@ -20,27 +20,27 @@ namespace Aws namespace FindingReasonCodeMapper { - static const int CPU_OVER_PROVISIONED_HASH = HashingUtils::HashString("CPU_OVER_PROVISIONED"); - static const int CPU_UNDER_PROVISIONED_HASH = HashingUtils::HashString("CPU_UNDER_PROVISIONED"); - static const int MEMORY_OVER_PROVISIONED_HASH = HashingUtils::HashString("MEMORY_OVER_PROVISIONED"); - static const int MEMORY_UNDER_PROVISIONED_HASH = HashingUtils::HashString("MEMORY_UNDER_PROVISIONED"); - static const int EBS_THROUGHPUT_OVER_PROVISIONED_HASH = HashingUtils::HashString("EBS_THROUGHPUT_OVER_PROVISIONED"); - static const int EBS_THROUGHPUT_UNDER_PROVISIONED_HASH = HashingUtils::HashString("EBS_THROUGHPUT_UNDER_PROVISIONED"); - static const int EBS_IOPS_OVER_PROVISIONED_HASH = HashingUtils::HashString("EBS_IOPS_OVER_PROVISIONED"); - static const int EBS_IOPS_UNDER_PROVISIONED_HASH = HashingUtils::HashString("EBS_IOPS_UNDER_PROVISIONED"); - static const int NETWORK_BANDWIDTH_OVER_PROVISIONED_HASH = HashingUtils::HashString("NETWORK_BANDWIDTH_OVER_PROVISIONED"); - static const int NETWORK_BANDWIDTH_UNDER_PROVISIONED_HASH = HashingUtils::HashString("NETWORK_BANDWIDTH_UNDER_PROVISIONED"); - static const int NETWORK_PPS_OVER_PROVISIONED_HASH = HashingUtils::HashString("NETWORK_PPS_OVER_PROVISIONED"); - static const int NETWORK_PPS_UNDER_PROVISIONED_HASH = HashingUtils::HashString("NETWORK_PPS_UNDER_PROVISIONED"); - static const int DISK_IOPS_OVER_PROVISIONED_HASH = HashingUtils::HashString("DISK_IOPS_OVER_PROVISIONED"); - static const int DISK_IOPS_UNDER_PROVISIONED_HASH = HashingUtils::HashString("DISK_IOPS_UNDER_PROVISIONED"); - static const int DISK_THROUGHPUT_OVER_PROVISIONED_HASH = HashingUtils::HashString("DISK_THROUGHPUT_OVER_PROVISIONED"); - static const int DISK_THROUGHPUT_UNDER_PROVISIONED_HASH = HashingUtils::HashString("DISK_THROUGHPUT_UNDER_PROVISIONED"); + static constexpr uint32_t CPU_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("CPU_OVER_PROVISIONED"); + static constexpr uint32_t CPU_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("CPU_UNDER_PROVISIONED"); + static constexpr uint32_t MEMORY_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("MEMORY_OVER_PROVISIONED"); + static constexpr uint32_t MEMORY_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("MEMORY_UNDER_PROVISIONED"); + static constexpr uint32_t EBS_THROUGHPUT_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("EBS_THROUGHPUT_OVER_PROVISIONED"); + static constexpr uint32_t EBS_THROUGHPUT_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("EBS_THROUGHPUT_UNDER_PROVISIONED"); + static constexpr uint32_t EBS_IOPS_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("EBS_IOPS_OVER_PROVISIONED"); + static constexpr uint32_t EBS_IOPS_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("EBS_IOPS_UNDER_PROVISIONED"); + static constexpr uint32_t NETWORK_BANDWIDTH_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("NETWORK_BANDWIDTH_OVER_PROVISIONED"); + static constexpr uint32_t NETWORK_BANDWIDTH_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("NETWORK_BANDWIDTH_UNDER_PROVISIONED"); + static constexpr uint32_t NETWORK_PPS_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("NETWORK_PPS_OVER_PROVISIONED"); + static constexpr uint32_t NETWORK_PPS_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("NETWORK_PPS_UNDER_PROVISIONED"); + static constexpr uint32_t DISK_IOPS_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("DISK_IOPS_OVER_PROVISIONED"); + static constexpr uint32_t DISK_IOPS_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("DISK_IOPS_UNDER_PROVISIONED"); + static constexpr uint32_t DISK_THROUGHPUT_OVER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("DISK_THROUGHPUT_OVER_PROVISIONED"); + static constexpr uint32_t DISK_THROUGHPUT_UNDER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("DISK_THROUGHPUT_UNDER_PROVISIONED"); FindingReasonCode GetFindingReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPU_OVER_PROVISIONED_HASH) { return FindingReasonCode::CPU_OVER_PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/GenerationStatus.cpp b/generated/src/aws-cpp-sdk-ce/source/model/GenerationStatus.cpp index 2a655f76902..0bc94c09dd6 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/GenerationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/GenerationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GenerationStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); GenerationStatus GetGenerationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return GenerationStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/Granularity.cpp b/generated/src/aws-cpp-sdk-ce/source/model/Granularity.cpp index 37f9f656ba5..cb2746c4aac 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/Granularity.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/Granularity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GranularityMapper { - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); Granularity GetGranularityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAILY_HASH) { return Granularity::DAILY; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/GroupDefinitionType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/GroupDefinitionType.cpp index ceb4b8aa940..77b6851bf79 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/GroupDefinitionType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/GroupDefinitionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GroupDefinitionTypeMapper { - static const int DIMENSION_HASH = HashingUtils::HashString("DIMENSION"); - static const int TAG_HASH = HashingUtils::HashString("TAG"); - static const int COST_CATEGORY_HASH = HashingUtils::HashString("COST_CATEGORY"); + static constexpr uint32_t DIMENSION_HASH = ConstExprHashingUtils::HashString("DIMENSION"); + static constexpr uint32_t TAG_HASH = ConstExprHashingUtils::HashString("TAG"); + static constexpr uint32_t COST_CATEGORY_HASH = ConstExprHashingUtils::HashString("COST_CATEGORY"); GroupDefinitionType GetGroupDefinitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIMENSION_HASH) { return GroupDefinitionType::DIMENSION; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/LookbackPeriodInDays.cpp b/generated/src/aws-cpp-sdk-ce/source/model/LookbackPeriodInDays.cpp index 04440807917..a8b2f105883 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/LookbackPeriodInDays.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/LookbackPeriodInDays.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LookbackPeriodInDaysMapper { - static const int SEVEN_DAYS_HASH = HashingUtils::HashString("SEVEN_DAYS"); - static const int THIRTY_DAYS_HASH = HashingUtils::HashString("THIRTY_DAYS"); - static const int SIXTY_DAYS_HASH = HashingUtils::HashString("SIXTY_DAYS"); + static constexpr uint32_t SEVEN_DAYS_HASH = ConstExprHashingUtils::HashString("SEVEN_DAYS"); + static constexpr uint32_t THIRTY_DAYS_HASH = ConstExprHashingUtils::HashString("THIRTY_DAYS"); + static constexpr uint32_t SIXTY_DAYS_HASH = ConstExprHashingUtils::HashString("SIXTY_DAYS"); LookbackPeriodInDays GetLookbackPeriodInDaysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEVEN_DAYS_HASH) { return LookbackPeriodInDays::SEVEN_DAYS; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/MatchOption.cpp b/generated/src/aws-cpp-sdk-ce/source/model/MatchOption.cpp index 9d642b57a82..beceb9be3ee 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/MatchOption.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/MatchOption.cpp @@ -20,19 +20,19 @@ namespace Aws namespace MatchOptionMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int ABSENT_HASH = HashingUtils::HashString("ABSENT"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); - static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int CASE_SENSITIVE_HASH = HashingUtils::HashString("CASE_SENSITIVE"); - static const int CASE_INSENSITIVE_HASH = HashingUtils::HashString("CASE_INSENSITIVE"); - static const int GREATER_THAN_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t ABSENT_HASH = ConstExprHashingUtils::HashString("ABSENT"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t ENDS_WITH_HASH = ConstExprHashingUtils::HashString("ENDS_WITH"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t CASE_SENSITIVE_HASH = ConstExprHashingUtils::HashString("CASE_SENSITIVE"); + static constexpr uint32_t CASE_INSENSITIVE_HASH = ConstExprHashingUtils::HashString("CASE_INSENSITIVE"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL"); MatchOption GetMatchOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return MatchOption::EQUALS; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/Metric.cpp b/generated/src/aws-cpp-sdk-ce/source/model/Metric.cpp index 6eda7d541a5..22760f0e3dd 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/Metric.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/Metric.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MetricMapper { - static const int BLENDED_COST_HASH = HashingUtils::HashString("BLENDED_COST"); - static const int UNBLENDED_COST_HASH = HashingUtils::HashString("UNBLENDED_COST"); - static const int AMORTIZED_COST_HASH = HashingUtils::HashString("AMORTIZED_COST"); - static const int NET_UNBLENDED_COST_HASH = HashingUtils::HashString("NET_UNBLENDED_COST"); - static const int NET_AMORTIZED_COST_HASH = HashingUtils::HashString("NET_AMORTIZED_COST"); - static const int USAGE_QUANTITY_HASH = HashingUtils::HashString("USAGE_QUANTITY"); - static const int NORMALIZED_USAGE_AMOUNT_HASH = HashingUtils::HashString("NORMALIZED_USAGE_AMOUNT"); + static constexpr uint32_t BLENDED_COST_HASH = ConstExprHashingUtils::HashString("BLENDED_COST"); + static constexpr uint32_t UNBLENDED_COST_HASH = ConstExprHashingUtils::HashString("UNBLENDED_COST"); + static constexpr uint32_t AMORTIZED_COST_HASH = ConstExprHashingUtils::HashString("AMORTIZED_COST"); + static constexpr uint32_t NET_UNBLENDED_COST_HASH = ConstExprHashingUtils::HashString("NET_UNBLENDED_COST"); + static constexpr uint32_t NET_AMORTIZED_COST_HASH = ConstExprHashingUtils::HashString("NET_AMORTIZED_COST"); + static constexpr uint32_t USAGE_QUANTITY_HASH = ConstExprHashingUtils::HashString("USAGE_QUANTITY"); + static constexpr uint32_t NORMALIZED_USAGE_AMOUNT_HASH = ConstExprHashingUtils::HashString("NORMALIZED_USAGE_AMOUNT"); Metric GetMetricForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLENDED_COST_HASH) { return Metric::BLENDED_COST; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/MonitorDimension.cpp b/generated/src/aws-cpp-sdk-ce/source/model/MonitorDimension.cpp index 85334df0ddc..b016e47e373 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/MonitorDimension.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/MonitorDimension.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MonitorDimensionMapper { - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); MonitorDimension GetMonitorDimensionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_HASH) { return MonitorDimension::SERVICE; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/MonitorType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/MonitorType.cpp index 060879f6347..1933f284f74 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/MonitorType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/MonitorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MonitorTypeMapper { - static const int DIMENSIONAL_HASH = HashingUtils::HashString("DIMENSIONAL"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t DIMENSIONAL_HASH = ConstExprHashingUtils::HashString("DIMENSIONAL"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); MonitorType GetMonitorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIMENSIONAL_HASH) { return MonitorType::DIMENSIONAL; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/NumericOperator.cpp b/generated/src/aws-cpp-sdk-ce/source/model/NumericOperator.cpp index 742eb1f1a1b..4de26cdf62f 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/NumericOperator.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/NumericOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NumericOperatorMapper { - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int GREATER_THAN_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL"); - static const int LESS_THAN_OR_EQUAL_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); NumericOperator GetNumericOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUAL_HASH) { return NumericOperator::EQUAL; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/OfferingClass.cpp b/generated/src/aws-cpp-sdk-ce/source/model/OfferingClass.cpp index da55685813b..6f2db268b5d 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/OfferingClass.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/OfferingClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OfferingClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int CONVERTIBLE_HASH = HashingUtils::HashString("CONVERTIBLE"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t CONVERTIBLE_HASH = ConstExprHashingUtils::HashString("CONVERTIBLE"); OfferingClass GetOfferingClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return OfferingClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/PaymentOption.cpp b/generated/src/aws-cpp-sdk-ce/source/model/PaymentOption.cpp index 444da74dac3..4d99feb66a6 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/PaymentOption.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/PaymentOption.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PaymentOptionMapper { - static const int NO_UPFRONT_HASH = HashingUtils::HashString("NO_UPFRONT"); - static const int PARTIAL_UPFRONT_HASH = HashingUtils::HashString("PARTIAL_UPFRONT"); - static const int ALL_UPFRONT_HASH = HashingUtils::HashString("ALL_UPFRONT"); - static const int LIGHT_UTILIZATION_HASH = HashingUtils::HashString("LIGHT_UTILIZATION"); - static const int MEDIUM_UTILIZATION_HASH = HashingUtils::HashString("MEDIUM_UTILIZATION"); - static const int HEAVY_UTILIZATION_HASH = HashingUtils::HashString("HEAVY_UTILIZATION"); + static constexpr uint32_t NO_UPFRONT_HASH = ConstExprHashingUtils::HashString("NO_UPFRONT"); + static constexpr uint32_t PARTIAL_UPFRONT_HASH = ConstExprHashingUtils::HashString("PARTIAL_UPFRONT"); + static constexpr uint32_t ALL_UPFRONT_HASH = ConstExprHashingUtils::HashString("ALL_UPFRONT"); + static constexpr uint32_t LIGHT_UTILIZATION_HASH = ConstExprHashingUtils::HashString("LIGHT_UTILIZATION"); + static constexpr uint32_t MEDIUM_UTILIZATION_HASH = ConstExprHashingUtils::HashString("MEDIUM_UTILIZATION"); + static constexpr uint32_t HEAVY_UTILIZATION_HASH = ConstExprHashingUtils::HashString("HEAVY_UTILIZATION"); PaymentOption GetPaymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_UPFRONT_HASH) { return PaymentOption::NO_UPFRONT; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/PlatformDifference.cpp b/generated/src/aws-cpp-sdk-ce/source/model/PlatformDifference.cpp index dc7ee36796c..189c148cfe8 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/PlatformDifference.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/PlatformDifference.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PlatformDifferenceMapper { - static const int HYPERVISOR_HASH = HashingUtils::HashString("HYPERVISOR"); - static const int NETWORK_INTERFACE_HASH = HashingUtils::HashString("NETWORK_INTERFACE"); - static const int STORAGE_INTERFACE_HASH = HashingUtils::HashString("STORAGE_INTERFACE"); - static const int INSTANCE_STORE_AVAILABILITY_HASH = HashingUtils::HashString("INSTANCE_STORE_AVAILABILITY"); - static const int VIRTUALIZATION_TYPE_HASH = HashingUtils::HashString("VIRTUALIZATION_TYPE"); + static constexpr uint32_t HYPERVISOR_HASH = ConstExprHashingUtils::HashString("HYPERVISOR"); + static constexpr uint32_t NETWORK_INTERFACE_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE"); + static constexpr uint32_t STORAGE_INTERFACE_HASH = ConstExprHashingUtils::HashString("STORAGE_INTERFACE"); + static constexpr uint32_t INSTANCE_STORE_AVAILABILITY_HASH = ConstExprHashingUtils::HashString("INSTANCE_STORE_AVAILABILITY"); + static constexpr uint32_t VIRTUALIZATION_TYPE_HASH = ConstExprHashingUtils::HashString("VIRTUALIZATION_TYPE"); PlatformDifference GetPlatformDifferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HYPERVISOR_HASH) { return PlatformDifference::HYPERVISOR; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/RecommendationTarget.cpp b/generated/src/aws-cpp-sdk-ce/source/model/RecommendationTarget.cpp index 62ff5a8489c..a0b957510c4 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/RecommendationTarget.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/RecommendationTarget.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecommendationTargetMapper { - static const int SAME_INSTANCE_FAMILY_HASH = HashingUtils::HashString("SAME_INSTANCE_FAMILY"); - static const int CROSS_INSTANCE_FAMILY_HASH = HashingUtils::HashString("CROSS_INSTANCE_FAMILY"); + static constexpr uint32_t SAME_INSTANCE_FAMILY_HASH = ConstExprHashingUtils::HashString("SAME_INSTANCE_FAMILY"); + static constexpr uint32_t CROSS_INSTANCE_FAMILY_HASH = ConstExprHashingUtils::HashString("CROSS_INSTANCE_FAMILY"); RecommendationTarget GetRecommendationTargetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAME_INSTANCE_FAMILY_HASH) { return RecommendationTarget::SAME_INSTANCE_FAMILY; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/RightsizingType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/RightsizingType.cpp index f433e311cf4..ee44db27317 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/RightsizingType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/RightsizingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RightsizingTypeMapper { - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); - static const int MODIFY_HASH = HashingUtils::HashString("MODIFY"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); + static constexpr uint32_t MODIFY_HASH = ConstExprHashingUtils::HashString("MODIFY"); RightsizingType GetRightsizingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERMINATE_HASH) { return RightsizingType::TERMINATE; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/SavingsPlansDataType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/SavingsPlansDataType.cpp index a56c7292270..45219990df1 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/SavingsPlansDataType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/SavingsPlansDataType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SavingsPlansDataTypeMapper { - static const int ATTRIBUTES_HASH = HashingUtils::HashString("ATTRIBUTES"); - static const int UTILIZATION_HASH = HashingUtils::HashString("UTILIZATION"); - static const int AMORTIZED_COMMITMENT_HASH = HashingUtils::HashString("AMORTIZED_COMMITMENT"); - static const int SAVINGS_HASH = HashingUtils::HashString("SAVINGS"); + static constexpr uint32_t ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("ATTRIBUTES"); + static constexpr uint32_t UTILIZATION_HASH = ConstExprHashingUtils::HashString("UTILIZATION"); + static constexpr uint32_t AMORTIZED_COMMITMENT_HASH = ConstExprHashingUtils::HashString("AMORTIZED_COMMITMENT"); + static constexpr uint32_t SAVINGS_HASH = ConstExprHashingUtils::HashString("SAVINGS"); SavingsPlansDataType GetSavingsPlansDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTRIBUTES_HASH) { return SavingsPlansDataType::ATTRIBUTES; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-ce/source/model/SortOrder.cpp index 701ddc881f6..7510465764d 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/SubscriberStatus.cpp b/generated/src/aws-cpp-sdk-ce/source/model/SubscriberStatus.cpp index aed41023bd9..39ba1aedbb1 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/SubscriberStatus.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/SubscriberStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubscriberStatusMapper { - static const int CONFIRMED_HASH = HashingUtils::HashString("CONFIRMED"); - static const int DECLINED_HASH = HashingUtils::HashString("DECLINED"); + static constexpr uint32_t CONFIRMED_HASH = ConstExprHashingUtils::HashString("CONFIRMED"); + static constexpr uint32_t DECLINED_HASH = ConstExprHashingUtils::HashString("DECLINED"); SubscriberStatus GetSubscriberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIRMED_HASH) { return SubscriberStatus::CONFIRMED; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/SubscriberType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/SubscriberType.cpp index 7a8d0edcad8..63573d7dcdd 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/SubscriberType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/SubscriberType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubscriberTypeMapper { - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int SNS_HASH = HashingUtils::HashString("SNS"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); SubscriberType GetSubscriberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_HASH) { return SubscriberType::EMAIL; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/SupportedSavingsPlansType.cpp b/generated/src/aws-cpp-sdk-ce/source/model/SupportedSavingsPlansType.cpp index a42c1b20570..845291690d6 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/SupportedSavingsPlansType.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/SupportedSavingsPlansType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SupportedSavingsPlansTypeMapper { - static const int COMPUTE_SP_HASH = HashingUtils::HashString("COMPUTE_SP"); - static const int EC2_INSTANCE_SP_HASH = HashingUtils::HashString("EC2_INSTANCE_SP"); - static const int SAGEMAKER_SP_HASH = HashingUtils::HashString("SAGEMAKER_SP"); + static constexpr uint32_t COMPUTE_SP_HASH = ConstExprHashingUtils::HashString("COMPUTE_SP"); + static constexpr uint32_t EC2_INSTANCE_SP_HASH = ConstExprHashingUtils::HashString("EC2_INSTANCE_SP"); + static constexpr uint32_t SAGEMAKER_SP_HASH = ConstExprHashingUtils::HashString("SAGEMAKER_SP"); SupportedSavingsPlansType GetSupportedSavingsPlansTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPUTE_SP_HASH) { return SupportedSavingsPlansType::COMPUTE_SP; diff --git a/generated/src/aws-cpp-sdk-ce/source/model/TermInYears.cpp b/generated/src/aws-cpp-sdk-ce/source/model/TermInYears.cpp index 30bf6e3dbc0..18605a2af5a 100644 --- a/generated/src/aws-cpp-sdk-ce/source/model/TermInYears.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/model/TermInYears.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TermInYearsMapper { - static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); - static const int THREE_YEARS_HASH = HashingUtils::HashString("THREE_YEARS"); + static constexpr uint32_t ONE_YEAR_HASH = ConstExprHashingUtils::HashString("ONE_YEAR"); + static constexpr uint32_t THREE_YEARS_HASH = ConstExprHashingUtils::HashString("THREE_YEARS"); TermInYears GetTermInYearsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_YEAR_HASH) { return TermInYears::ONE_YEAR; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityErrors.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityErrors.cpp index 5c80297b9aa..a9abc4b586b 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityErrors.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityErrors.cpp @@ -82,19 +82,19 @@ template<> AWS_CHIMESDKIDENTITY_API UnauthorizedClientException ChimeSDKIdentity namespace ChimeSDKIdentityErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int THROTTLED_CLIENT_HASH = HashingUtils::HashString("ThrottledClientException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int UNAUTHORIZED_CLIENT_HASH = HashingUtils::HashString("UnauthorizedClientException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t THROTTLED_CLIENT_HASH = ConstExprHashingUtils::HashString("ThrottledClientException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t UNAUTHORIZED_CLIENT_HASH = ConstExprHashingUtils::HashString("UnauthorizedClientException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AllowMessages.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AllowMessages.cpp index ca4fb0c6d36..7ff73b72fa5 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AllowMessages.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AllowMessages.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AllowMessagesMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AllowMessages GetAllowMessagesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return AllowMessages::ALL; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AppInstanceUserEndpointType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AppInstanceUserEndpointType.cpp index 52079bacaf3..4763933d8ad 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AppInstanceUserEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/AppInstanceUserEndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AppInstanceUserEndpointTypeMapper { - static const int APNS_HASH = HashingUtils::HashString("APNS"); - static const int APNS_SANDBOX_HASH = HashingUtils::HashString("APNS_SANDBOX"); - static const int GCM_HASH = HashingUtils::HashString("GCM"); + static constexpr uint32_t APNS_HASH = ConstExprHashingUtils::HashString("APNS"); + static constexpr uint32_t APNS_SANDBOX_HASH = ConstExprHashingUtils::HashString("APNS_SANDBOX"); + static constexpr uint32_t GCM_HASH = ConstExprHashingUtils::HashString("GCM"); AppInstanceUserEndpointType GetAppInstanceUserEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APNS_HASH) { return AppInstanceUserEndpointType::APNS; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatus.cpp index 85dfa8da7be..c89d1ba2d9f 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EndpointStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); EndpointStatus GetEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return EndpointStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp index cbe53560fbc..772f9c4f841 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EndpointStatusReasonMapper { - static const int INVALID_DEVICE_TOKEN_HASH = HashingUtils::HashString("INVALID_DEVICE_TOKEN"); - static const int INVALID_PINPOINT_ARN_HASH = HashingUtils::HashString("INVALID_PINPOINT_ARN"); + static constexpr uint32_t INVALID_DEVICE_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_DEVICE_TOKEN"); + static constexpr uint32_t INVALID_PINPOINT_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_PINPOINT_ARN"); EndpointStatusReason GetEndpointStatusReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_DEVICE_TOKEN_HASH) { return EndpointStatusReason::INVALID_DEVICE_TOKEN; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ErrorCode.cpp index 88baefd1de0..b8358dcb51d 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ErrorCode.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ErrorCodeMapper { - static const int BadRequest_HASH = HashingUtils::HashString("BadRequest"); - static const int Conflict_HASH = HashingUtils::HashString("Conflict"); - static const int Forbidden_HASH = HashingUtils::HashString("Forbidden"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int PreconditionFailed_HASH = HashingUtils::HashString("PreconditionFailed"); - static const int ResourceLimitExceeded_HASH = HashingUtils::HashString("ResourceLimitExceeded"); - static const int ServiceFailure_HASH = HashingUtils::HashString("ServiceFailure"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int ServiceUnavailable_HASH = HashingUtils::HashString("ServiceUnavailable"); - static const int Throttled_HASH = HashingUtils::HashString("Throttled"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); - static const int Unauthorized_HASH = HashingUtils::HashString("Unauthorized"); - static const int Unprocessable_HASH = HashingUtils::HashString("Unprocessable"); - static const int VoiceConnectorGroupAssociationsExist_HASH = HashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); - static const int PhoneNumberAssociationsExist_HASH = HashingUtils::HashString("PhoneNumberAssociationsExist"); + static constexpr uint32_t BadRequest_HASH = ConstExprHashingUtils::HashString("BadRequest"); + static constexpr uint32_t Conflict_HASH = ConstExprHashingUtils::HashString("Conflict"); + static constexpr uint32_t Forbidden_HASH = ConstExprHashingUtils::HashString("Forbidden"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t PreconditionFailed_HASH = ConstExprHashingUtils::HashString("PreconditionFailed"); + static constexpr uint32_t ResourceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); + static constexpr uint32_t ServiceFailure_HASH = ConstExprHashingUtils::HashString("ServiceFailure"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t ServiceUnavailable_HASH = ConstExprHashingUtils::HashString("ServiceUnavailable"); + static constexpr uint32_t Throttled_HASH = ConstExprHashingUtils::HashString("Throttled"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); + static constexpr uint32_t Unauthorized_HASH = ConstExprHashingUtils::HashString("Unauthorized"); + static constexpr uint32_t Unprocessable_HASH = ConstExprHashingUtils::HashString("Unprocessable"); + static constexpr uint32_t VoiceConnectorGroupAssociationsExist_HASH = ConstExprHashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); + static constexpr uint32_t PhoneNumberAssociationsExist_HASH = ConstExprHashingUtils::HashString("PhoneNumberAssociationsExist"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BadRequest_HASH) { return ErrorCode::BadRequest; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ExpirationCriterion.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ExpirationCriterion.cpp index 0bcb13ee633..b2f93727e26 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ExpirationCriterion.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/ExpirationCriterion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExpirationCriterionMapper { - static const int CREATED_TIMESTAMP_HASH = HashingUtils::HashString("CREATED_TIMESTAMP"); + static constexpr uint32_t CREATED_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("CREATED_TIMESTAMP"); ExpirationCriterion GetExpirationCriterionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_TIMESTAMP_HASH) { return ExpirationCriterion::CREATED_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/RespondsTo.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/RespondsTo.cpp index 8cc59bc77af..f61cdf2a37a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/RespondsTo.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/RespondsTo.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RespondsToMapper { - static const int STANDARD_MESSAGES_HASH = HashingUtils::HashString("STANDARD_MESSAGES"); + static constexpr uint32_t STANDARD_MESSAGES_HASH = ConstExprHashingUtils::HashString("STANDARD_MESSAGES"); RespondsTo GetRespondsToForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_MESSAGES_HASH) { return RespondsTo::STANDARD_MESSAGES; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/StandardMessages.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/StandardMessages.cpp index d167c3372da..e695b5bd22e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/StandardMessages.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/StandardMessages.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StandardMessagesMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int MENTIONS_HASH = HashingUtils::HashString("MENTIONS"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t MENTIONS_HASH = ConstExprHashingUtils::HashString("MENTIONS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); StandardMessages GetStandardMessagesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return StandardMessages::AUTO; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/TargetedMessages.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/TargetedMessages.cpp index 2578ea8f428..97e23e0924a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/TargetedMessages.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/model/TargetedMessages.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetedMessagesMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); TargetedMessages GetTargetedMessagesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return TargetedMessages::ALL; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesErrors.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesErrors.cpp index 6a445bbe068..74b3f721cb6 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesErrors.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesErrors.cpp @@ -82,19 +82,19 @@ template<> AWS_CHIMESDKMEDIAPIPELINES_API UnauthorizedClientException ChimeSDKMe namespace ChimeSDKMediaPipelinesErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int THROTTLED_CLIENT_HASH = HashingUtils::HashString("ThrottledClientException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int UNAUTHORIZED_CLIENT_HASH = HashingUtils::HashString("UnauthorizedClientException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t THROTTLED_CLIENT_HASH = ConstExprHashingUtils::HashString("ThrottledClientException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t UNAUTHORIZED_CLIENT_HASH = ConstExprHashingUtils::HashString("UnauthorizedClientException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ActiveSpeakerPosition.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ActiveSpeakerPosition.cpp index d8da442f923..39209ca4811 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ActiveSpeakerPosition.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ActiveSpeakerPosition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActiveSpeakerPositionMapper { - static const int TopLeft_HASH = HashingUtils::HashString("TopLeft"); - static const int TopRight_HASH = HashingUtils::HashString("TopRight"); - static const int BottomLeft_HASH = HashingUtils::HashString("BottomLeft"); - static const int BottomRight_HASH = HashingUtils::HashString("BottomRight"); + static constexpr uint32_t TopLeft_HASH = ConstExprHashingUtils::HashString("TopLeft"); + static constexpr uint32_t TopRight_HASH = ConstExprHashingUtils::HashString("TopRight"); + static constexpr uint32_t BottomLeft_HASH = ConstExprHashingUtils::HashString("BottomLeft"); + static constexpr uint32_t BottomRight_HASH = ConstExprHashingUtils::HashString("BottomRight"); ActiveSpeakerPosition GetActiveSpeakerPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TopLeft_HASH) { return ActiveSpeakerPosition::TopLeft; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsConcatenationState.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsConcatenationState.cpp index 7b68114a56e..e376fe04d48 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsConcatenationState.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsConcatenationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArtifactsConcatenationStateMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ArtifactsConcatenationState GetArtifactsConcatenationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ArtifactsConcatenationState::Enabled; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsState.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsState.cpp index e19eb25c14a..d68a8812bce 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsState.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ArtifactsState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArtifactsStateMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ArtifactsState GetArtifactsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ArtifactsState::Enabled; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioArtifactsConcatenationState.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioArtifactsConcatenationState.cpp index 248be394f95..c488676634b 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioArtifactsConcatenationState.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioArtifactsConcatenationState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AudioArtifactsConcatenationStateMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); AudioArtifactsConcatenationState GetAudioArtifactsConcatenationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return AudioArtifactsConcatenationState::Enabled; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioChannelsOption.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioChannelsOption.cpp index b3cc4d6782d..c2328fa2c78 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioChannelsOption.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioChannelsOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioChannelsOptionMapper { - static const int Stereo_HASH = HashingUtils::HashString("Stereo"); - static const int Mono_HASH = HashingUtils::HashString("Mono"); + static constexpr uint32_t Stereo_HASH = ConstExprHashingUtils::HashString("Stereo"); + static constexpr uint32_t Mono_HASH = ConstExprHashingUtils::HashString("Mono"); AudioChannelsOption GetAudioChannelsOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Stereo_HASH) { return AudioChannelsOption::Stereo; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioMuxType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioMuxType.cpp index e7848f72381..4f22778284c 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/AudioMuxType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AudioMuxTypeMapper { - static const int AudioOnly_HASH = HashingUtils::HashString("AudioOnly"); - static const int AudioWithActiveSpeakerVideo_HASH = HashingUtils::HashString("AudioWithActiveSpeakerVideo"); - static const int AudioWithCompositedVideo_HASH = HashingUtils::HashString("AudioWithCompositedVideo"); + static constexpr uint32_t AudioOnly_HASH = ConstExprHashingUtils::HashString("AudioOnly"); + static constexpr uint32_t AudioWithActiveSpeakerVideo_HASH = ConstExprHashingUtils::HashString("AudioWithActiveSpeakerVideo"); + static constexpr uint32_t AudioWithCompositedVideo_HASH = ConstExprHashingUtils::HashString("AudioWithCompositedVideo"); AudioMuxType GetAudioMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AudioOnly_HASH) { return AudioMuxType::AudioOnly; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/BorderColor.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/BorderColor.cpp index 5cd64e3a8c4..82ff217279f 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/BorderColor.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/BorderColor.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BorderColorMapper { - static const int Black_HASH = HashingUtils::HashString("Black"); - static const int Blue_HASH = HashingUtils::HashString("Blue"); - static const int Red_HASH = HashingUtils::HashString("Red"); - static const int Green_HASH = HashingUtils::HashString("Green"); - static const int White_HASH = HashingUtils::HashString("White"); - static const int Yellow_HASH = HashingUtils::HashString("Yellow"); + static constexpr uint32_t Black_HASH = ConstExprHashingUtils::HashString("Black"); + static constexpr uint32_t Blue_HASH = ConstExprHashingUtils::HashString("Blue"); + static constexpr uint32_t Red_HASH = ConstExprHashingUtils::HashString("Red"); + static constexpr uint32_t Green_HASH = ConstExprHashingUtils::HashString("Green"); + static constexpr uint32_t White_HASH = ConstExprHashingUtils::HashString("White"); + static constexpr uint32_t Yellow_HASH = ConstExprHashingUtils::HashString("Yellow"); BorderColor GetBorderColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Black_HASH) { return BorderColor::Black; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CallAnalyticsLanguageCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CallAnalyticsLanguageCode.cpp index e990d61ebc3..9d716a145bf 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CallAnalyticsLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CallAnalyticsLanguageCode.cpp @@ -20,20 +20,20 @@ namespace Aws namespace CallAnalyticsLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); CallAnalyticsLanguageCode GetCallAnalyticsLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return CallAnalyticsLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CanvasOrientation.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CanvasOrientation.cpp index a72bebe668e..2f7c75f6210 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CanvasOrientation.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/CanvasOrientation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CanvasOrientationMapper { - static const int Landscape_HASH = HashingUtils::HashString("Landscape"); - static const int Portrait_HASH = HashingUtils::HashString("Portrait"); + static constexpr uint32_t Landscape_HASH = ConstExprHashingUtils::HashString("Landscape"); + static constexpr uint32_t Portrait_HASH = ConstExprHashingUtils::HashString("Portrait"); CanvasOrientation GetCanvasOrientationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Landscape_HASH) { return CanvasOrientation::Landscape; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSinkType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSinkType.cpp index 7aaf269dcfc..352cb2b3b48 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSinkType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSinkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConcatenationSinkTypeMapper { - static const int S3Bucket_HASH = HashingUtils::HashString("S3Bucket"); + static constexpr uint32_t S3Bucket_HASH = ConstExprHashingUtils::HashString("S3Bucket"); ConcatenationSinkType GetConcatenationSinkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3Bucket_HASH) { return ConcatenationSinkType::S3Bucket; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSourceType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSourceType.cpp index c780b74ff70..ba50fa69776 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSourceType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ConcatenationSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConcatenationSourceTypeMapper { - static const int MediaCapturePipeline_HASH = HashingUtils::HashString("MediaCapturePipeline"); + static constexpr uint32_t MediaCapturePipeline_HASH = ConstExprHashingUtils::HashString("MediaCapturePipeline"); ConcatenationSourceType GetConcatenationSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MediaCapturePipeline_HASH) { return ConcatenationSourceType::MediaCapturePipeline; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentMuxType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentMuxType.cpp index cbe0b7a152c..0cfe4966299 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentMuxType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentMuxTypeMapper { - static const int ContentOnly_HASH = HashingUtils::HashString("ContentOnly"); + static constexpr uint32_t ContentOnly_HASH = ConstExprHashingUtils::HashString("ContentOnly"); ContentMuxType GetContentMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ContentOnly_HASH) { return ContentMuxType::ContentOnly; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentRedactionOutput.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentRedactionOutput.cpp index c896e8a6cb2..6f27608a945 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentRedactionOutput.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentRedactionOutput.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentRedactionOutputMapper { - static const int redacted_HASH = HashingUtils::HashString("redacted"); - static const int redacted_and_unredacted_HASH = HashingUtils::HashString("redacted_and_unredacted"); + static constexpr uint32_t redacted_HASH = ConstExprHashingUtils::HashString("redacted"); + static constexpr uint32_t redacted_and_unredacted_HASH = ConstExprHashingUtils::HashString("redacted_and_unredacted"); ContentRedactionOutput GetContentRedactionOutputForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == redacted_HASH) { return ContentRedactionOutput::redacted; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentShareLayoutOption.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentShareLayoutOption.cpp index f8a8ac7de8e..8068ebc9fc4 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentShareLayoutOption.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentShareLayoutOption.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ContentShareLayoutOptionMapper { - static const int PresenterOnly_HASH = HashingUtils::HashString("PresenterOnly"); - static const int Horizontal_HASH = HashingUtils::HashString("Horizontal"); - static const int Vertical_HASH = HashingUtils::HashString("Vertical"); - static const int ActiveSpeakerOnly_HASH = HashingUtils::HashString("ActiveSpeakerOnly"); + static constexpr uint32_t PresenterOnly_HASH = ConstExprHashingUtils::HashString("PresenterOnly"); + static constexpr uint32_t Horizontal_HASH = ConstExprHashingUtils::HashString("Horizontal"); + static constexpr uint32_t Vertical_HASH = ConstExprHashingUtils::HashString("Vertical"); + static constexpr uint32_t ActiveSpeakerOnly_HASH = ConstExprHashingUtils::HashString("ActiveSpeakerOnly"); ContentShareLayoutOption GetContentShareLayoutOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PresenterOnly_HASH) { return ContentShareLayoutOption::PresenterOnly; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentType.cpp index 891f5873f9f..5bbaba85f86 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); ContentType GetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return ContentType::PII; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ErrorCode.cpp index 91421ecfe04..cf27be5bb22 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ErrorCode.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ErrorCodeMapper { - static const int BadRequest_HASH = HashingUtils::HashString("BadRequest"); - static const int Forbidden_HASH = HashingUtils::HashString("Forbidden"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int ResourceLimitExceeded_HASH = HashingUtils::HashString("ResourceLimitExceeded"); - static const int ServiceFailure_HASH = HashingUtils::HashString("ServiceFailure"); - static const int ServiceUnavailable_HASH = HashingUtils::HashString("ServiceUnavailable"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); + static constexpr uint32_t BadRequest_HASH = ConstExprHashingUtils::HashString("BadRequest"); + static constexpr uint32_t Forbidden_HASH = ConstExprHashingUtils::HashString("Forbidden"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t ResourceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); + static constexpr uint32_t ServiceFailure_HASH = ConstExprHashingUtils::HashString("ServiceFailure"); + static constexpr uint32_t ServiceUnavailable_HASH = ConstExprHashingUtils::HashString("ServiceUnavailable"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BadRequest_HASH) { return ErrorCode::BadRequest; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/FragmentSelectorType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/FragmentSelectorType.cpp index 3fcfec0ef68..e2f39e4ba28 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/FragmentSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/FragmentSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FragmentSelectorTypeMapper { - static const int ProducerTimestamp_HASH = HashingUtils::HashString("ProducerTimestamp"); - static const int ServerTimestamp_HASH = HashingUtils::HashString("ServerTimestamp"); + static constexpr uint32_t ProducerTimestamp_HASH = ConstExprHashingUtils::HashString("ProducerTimestamp"); + static constexpr uint32_t ServerTimestamp_HASH = ConstExprHashingUtils::HashString("ServerTimestamp"); FragmentSelectorType GetFragmentSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ProducerTimestamp_HASH) { return FragmentSelectorType::ProducerTimestamp; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HighlightColor.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HighlightColor.cpp index c16084f0b46..568b3d74a6c 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HighlightColor.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HighlightColor.cpp @@ -20,17 +20,17 @@ namespace Aws namespace HighlightColorMapper { - static const int Black_HASH = HashingUtils::HashString("Black"); - static const int Blue_HASH = HashingUtils::HashString("Blue"); - static const int Red_HASH = HashingUtils::HashString("Red"); - static const int Green_HASH = HashingUtils::HashString("Green"); - static const int White_HASH = HashingUtils::HashString("White"); - static const int Yellow_HASH = HashingUtils::HashString("Yellow"); + static constexpr uint32_t Black_HASH = ConstExprHashingUtils::HashString("Black"); + static constexpr uint32_t Blue_HASH = ConstExprHashingUtils::HashString("Blue"); + static constexpr uint32_t Red_HASH = ConstExprHashingUtils::HashString("Red"); + static constexpr uint32_t Green_HASH = ConstExprHashingUtils::HashString("Green"); + static constexpr uint32_t White_HASH = ConstExprHashingUtils::HashString("White"); + static constexpr uint32_t Yellow_HASH = ConstExprHashingUtils::HashString("Yellow"); HighlightColor GetHighlightColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Black_HASH) { return HighlightColor::Black; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HorizontalTilePosition.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HorizontalTilePosition.cpp index ff2de216ea1..ccbb5ae8b0c 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HorizontalTilePosition.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/HorizontalTilePosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HorizontalTilePositionMapper { - static const int Top_HASH = HashingUtils::HashString("Top"); - static const int Bottom_HASH = HashingUtils::HashString("Bottom"); + static constexpr uint32_t Top_HASH = ConstExprHashingUtils::HashString("Top"); + static constexpr uint32_t Bottom_HASH = ConstExprHashingUtils::HashString("Bottom"); HorizontalTilePosition GetHorizontalTilePositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Top_HASH) { return HorizontalTilePosition::Top; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/KinesisVideoStreamPoolStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/KinesisVideoStreamPoolStatus.cpp index a3009c521e5..1ee84cf6e8e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/KinesisVideoStreamPoolStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/KinesisVideoStreamPoolStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace KinesisVideoStreamPoolStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); KinesisVideoStreamPoolStatus GetKinesisVideoStreamPoolStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return KinesisVideoStreamPoolStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LayoutOption.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LayoutOption.cpp index 769ffacabb2..b82e54920b0 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LayoutOption.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LayoutOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LayoutOptionMapper { - static const int GridView_HASH = HashingUtils::HashString("GridView"); + static constexpr uint32_t GridView_HASH = ConstExprHashingUtils::HashString("GridView"); LayoutOption GetLayoutOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GridView_HASH) { return LayoutOption::GridView; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorMuxType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorMuxType.cpp index ac602b73437..3f107848dd3 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorMuxType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LiveConnectorMuxTypeMapper { - static const int AudioWithCompositedVideo_HASH = HashingUtils::HashString("AudioWithCompositedVideo"); - static const int AudioWithActiveSpeakerVideo_HASH = HashingUtils::HashString("AudioWithActiveSpeakerVideo"); + static constexpr uint32_t AudioWithCompositedVideo_HASH = ConstExprHashingUtils::HashString("AudioWithCompositedVideo"); + static constexpr uint32_t AudioWithActiveSpeakerVideo_HASH = ConstExprHashingUtils::HashString("AudioWithActiveSpeakerVideo"); LiveConnectorMuxType GetLiveConnectorMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AudioWithCompositedVideo_HASH) { return LiveConnectorMuxType::AudioWithCompositedVideo; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSinkType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSinkType.cpp index a5400afae28..e8d744a76d0 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSinkType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSinkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LiveConnectorSinkTypeMapper { - static const int RTMP_HASH = HashingUtils::HashString("RTMP"); + static constexpr uint32_t RTMP_HASH = ConstExprHashingUtils::HashString("RTMP"); LiveConnectorSinkType GetLiveConnectorSinkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RTMP_HASH) { return LiveConnectorSinkType::RTMP; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSourceType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSourceType.cpp index fecee1489cf..0fb4957177f 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSourceType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/LiveConnectorSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LiveConnectorSourceTypeMapper { - static const int ChimeSdkMeeting_HASH = HashingUtils::HashString("ChimeSdkMeeting"); + static constexpr uint32_t ChimeSdkMeeting_HASH = ConstExprHashingUtils::HashString("ChimeSdkMeeting"); LiveConnectorSourceType GetLiveConnectorSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChimeSdkMeeting_HASH) { return LiveConnectorSourceType::ChimeSdkMeeting; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaEncoding.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaEncoding.cpp index 49c4ed3bc67..5a097d81dea 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaEncoding.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaEncoding.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MediaEncodingMapper { - static const int pcm_HASH = HashingUtils::HashString("pcm"); + static constexpr uint32_t pcm_HASH = ConstExprHashingUtils::HashString("pcm"); MediaEncoding GetMediaEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pcm_HASH) { return MediaEncoding::pcm; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaInsightsPipelineConfigurationElementType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaInsightsPipelineConfigurationElementType.cpp index 2cd6dc8632c..7c393367c41 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaInsightsPipelineConfigurationElementType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaInsightsPipelineConfigurationElementType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace MediaInsightsPipelineConfigurationElementTypeMapper { - static const int AmazonTranscribeCallAnalyticsProcessor_HASH = HashingUtils::HashString("AmazonTranscribeCallAnalyticsProcessor"); - static const int VoiceAnalyticsProcessor_HASH = HashingUtils::HashString("VoiceAnalyticsProcessor"); - static const int AmazonTranscribeProcessor_HASH = HashingUtils::HashString("AmazonTranscribeProcessor"); - static const int KinesisDataStreamSink_HASH = HashingUtils::HashString("KinesisDataStreamSink"); - static const int LambdaFunctionSink_HASH = HashingUtils::HashString("LambdaFunctionSink"); - static const int SqsQueueSink_HASH = HashingUtils::HashString("SqsQueueSink"); - static const int SnsTopicSink_HASH = HashingUtils::HashString("SnsTopicSink"); - static const int S3RecordingSink_HASH = HashingUtils::HashString("S3RecordingSink"); - static const int VoiceEnhancementSink_HASH = HashingUtils::HashString("VoiceEnhancementSink"); + static constexpr uint32_t AmazonTranscribeCallAnalyticsProcessor_HASH = ConstExprHashingUtils::HashString("AmazonTranscribeCallAnalyticsProcessor"); + static constexpr uint32_t VoiceAnalyticsProcessor_HASH = ConstExprHashingUtils::HashString("VoiceAnalyticsProcessor"); + static constexpr uint32_t AmazonTranscribeProcessor_HASH = ConstExprHashingUtils::HashString("AmazonTranscribeProcessor"); + static constexpr uint32_t KinesisDataStreamSink_HASH = ConstExprHashingUtils::HashString("KinesisDataStreamSink"); + static constexpr uint32_t LambdaFunctionSink_HASH = ConstExprHashingUtils::HashString("LambdaFunctionSink"); + static constexpr uint32_t SqsQueueSink_HASH = ConstExprHashingUtils::HashString("SqsQueueSink"); + static constexpr uint32_t SnsTopicSink_HASH = ConstExprHashingUtils::HashString("SnsTopicSink"); + static constexpr uint32_t S3RecordingSink_HASH = ConstExprHashingUtils::HashString("S3RecordingSink"); + static constexpr uint32_t VoiceEnhancementSink_HASH = ConstExprHashingUtils::HashString("VoiceEnhancementSink"); MediaInsightsPipelineConfigurationElementType GetMediaInsightsPipelineConfigurationElementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AmazonTranscribeCallAnalyticsProcessor_HASH) { return MediaInsightsPipelineConfigurationElementType::AmazonTranscribeCallAnalyticsProcessor; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineElementStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineElementStatus.cpp index 52b01bfd905..a5f6dab7902 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineElementStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineElementStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace MediaPipelineElementStatusMapper { - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); - static const int NotSupported_HASH = HashingUtils::HashString("NotSupported"); - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Paused_HASH = HashingUtils::HashString("Paused"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); + static constexpr uint32_t NotSupported_HASH = ConstExprHashingUtils::HashString("NotSupported"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Paused_HASH = ConstExprHashingUtils::HashString("Paused"); MediaPipelineElementStatus GetMediaPipelineElementStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotStarted_HASH) { return MediaPipelineElementStatus::NotStarted; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSinkType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSinkType.cpp index 3f9cc51832a..c7c00f0a92a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSinkType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSinkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MediaPipelineSinkTypeMapper { - static const int S3Bucket_HASH = HashingUtils::HashString("S3Bucket"); + static constexpr uint32_t S3Bucket_HASH = ConstExprHashingUtils::HashString("S3Bucket"); MediaPipelineSinkType GetMediaPipelineSinkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3Bucket_HASH) { return MediaPipelineSinkType::S3Bucket; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSourceType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSourceType.cpp index 683cbf438f8..2b89627acff 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSourceType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MediaPipelineSourceTypeMapper { - static const int ChimeSdkMeeting_HASH = HashingUtils::HashString("ChimeSdkMeeting"); + static constexpr uint32_t ChimeSdkMeeting_HASH = ConstExprHashingUtils::HashString("ChimeSdkMeeting"); MediaPipelineSourceType GetMediaPipelineSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChimeSdkMeeting_HASH) { return MediaPipelineSourceType::ChimeSdkMeeting; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatus.cpp index afa5b230a54..633dfe8edf3 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MediaPipelineStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Paused_HASH = HashingUtils::HashString("Paused"); - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Paused_HASH = ConstExprHashingUtils::HashString("Paused"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); MediaPipelineStatus GetMediaPipelineStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return MediaPipelineStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatusUpdate.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatusUpdate.cpp index 16bbb26e610..0609d18908e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatusUpdate.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineStatusUpdate.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MediaPipelineStatusUpdateMapper { - static const int Pause_HASH = HashingUtils::HashString("Pause"); - static const int Resume_HASH = HashingUtils::HashString("Resume"); + static constexpr uint32_t Pause_HASH = ConstExprHashingUtils::HashString("Pause"); + static constexpr uint32_t Resume_HASH = ConstExprHashingUtils::HashString("Resume"); MediaPipelineStatusUpdate GetMediaPipelineStatusUpdateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pause_HASH) { return MediaPipelineStatusUpdate::Pause; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineTaskStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineTaskStatus.cpp index 5c0a589c384..6d4b684b626 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaPipelineTaskStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MediaPipelineTaskStatusMapper { - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); MediaPipelineTaskStatus GetMediaPipelineTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotStarted_HASH) { return MediaPipelineTaskStatus::NotStarted; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamPipelineSinkType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamPipelineSinkType.cpp index 674c7fa0355..eb1d18823c6 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamPipelineSinkType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamPipelineSinkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MediaStreamPipelineSinkTypeMapper { - static const int KinesisVideoStreamPool_HASH = HashingUtils::HashString("KinesisVideoStreamPool"); + static constexpr uint32_t KinesisVideoStreamPool_HASH = ConstExprHashingUtils::HashString("KinesisVideoStreamPool"); MediaStreamPipelineSinkType GetMediaStreamPipelineSinkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KinesisVideoStreamPool_HASH) { return MediaStreamPipelineSinkType::KinesisVideoStreamPool; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamType.cpp index c757c9ea33c..1f85182e849 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/MediaStreamType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MediaStreamTypeMapper { - static const int MixedAudio_HASH = HashingUtils::HashString("MixedAudio"); - static const int IndividualAudio_HASH = HashingUtils::HashString("IndividualAudio"); + static constexpr uint32_t MixedAudio_HASH = ConstExprHashingUtils::HashString("MixedAudio"); + static constexpr uint32_t IndividualAudio_HASH = ConstExprHashingUtils::HashString("IndividualAudio"); MediaStreamType GetMediaStreamTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MixedAudio_HASH) { return MediaStreamType::MixedAudio; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PartialResultsStability.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PartialResultsStability.cpp index b25cd9e2913..7fb5afe538b 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PartialResultsStability.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PartialResultsStability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PartialResultsStabilityMapper { - static const int high_HASH = HashingUtils::HashString("high"); - static const int medium_HASH = HashingUtils::HashString("medium"); - static const int low_HASH = HashingUtils::HashString("low"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); + static constexpr uint32_t medium_HASH = ConstExprHashingUtils::HashString("medium"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); PartialResultsStability GetPartialResultsStabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == high_HASH) { return PartialResultsStability::high; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ParticipantRole.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ParticipantRole.cpp index 76a3937af9e..f75fe15d029 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ParticipantRole.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ParticipantRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParticipantRoleMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); ParticipantRole GetParticipantRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return ParticipantRole::AGENT; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PresenterPosition.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PresenterPosition.cpp index ccacd162d24..e5602278cb1 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PresenterPosition.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/PresenterPosition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PresenterPositionMapper { - static const int TopLeft_HASH = HashingUtils::HashString("TopLeft"); - static const int TopRight_HASH = HashingUtils::HashString("TopRight"); - static const int BottomLeft_HASH = HashingUtils::HashString("BottomLeft"); - static const int BottomRight_HASH = HashingUtils::HashString("BottomRight"); + static constexpr uint32_t TopLeft_HASH = ConstExprHashingUtils::HashString("TopLeft"); + static constexpr uint32_t TopRight_HASH = ConstExprHashingUtils::HashString("TopRight"); + static constexpr uint32_t BottomLeft_HASH = ConstExprHashingUtils::HashString("BottomLeft"); + static constexpr uint32_t BottomRight_HASH = ConstExprHashingUtils::HashString("BottomRight"); PresenterPosition GetPresenterPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TopLeft_HASH) { return PresenterPosition::TopLeft; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RealTimeAlertRuleType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RealTimeAlertRuleType.cpp index 99e97ff8fe1..2b10b97cf23 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RealTimeAlertRuleType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RealTimeAlertRuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RealTimeAlertRuleTypeMapper { - static const int KeywordMatch_HASH = HashingUtils::HashString("KeywordMatch"); - static const int Sentiment_HASH = HashingUtils::HashString("Sentiment"); - static const int IssueDetection_HASH = HashingUtils::HashString("IssueDetection"); + static constexpr uint32_t KeywordMatch_HASH = ConstExprHashingUtils::HashString("KeywordMatch"); + static constexpr uint32_t Sentiment_HASH = ConstExprHashingUtils::HashString("Sentiment"); + static constexpr uint32_t IssueDetection_HASH = ConstExprHashingUtils::HashString("IssueDetection"); RealTimeAlertRuleType GetRealTimeAlertRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KeywordMatch_HASH) { return RealTimeAlertRuleType::KeywordMatch; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RecordingFileFormat.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RecordingFileFormat.cpp index 0aeef2cace6..b8d43f40495 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RecordingFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/RecordingFileFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordingFileFormatMapper { - static const int Wav_HASH = HashingUtils::HashString("Wav"); - static const int Opus_HASH = HashingUtils::HashString("Opus"); + static constexpr uint32_t Wav_HASH = ConstExprHashingUtils::HashString("Wav"); + static constexpr uint32_t Opus_HASH = ConstExprHashingUtils::HashString("Opus"); RecordingFileFormat GetRecordingFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Wav_HASH) { return RecordingFileFormat::Wav; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ResolutionOption.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ResolutionOption.cpp index 251bb9c5b7f..83efec87ffb 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ResolutionOption.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/ResolutionOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResolutionOptionMapper { - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int FHD_HASH = HashingUtils::HashString("FHD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t FHD_HASH = ConstExprHashingUtils::HashString("FHD"); ResolutionOption GetResolutionOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HD_HASH) { return ResolutionOption::HD; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/SentimentType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/SentimentType.cpp index d0ec8688300..2087d144efd 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/SentimentType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/SentimentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SentimentTypeMapper { - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); SentimentType GetSentimentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEGATIVE_HASH) { return SentimentType::NEGATIVE; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/TileOrder.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/TileOrder.cpp index ca1842abf15..8ec2f6fac5f 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/TileOrder.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/TileOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TileOrderMapper { - static const int JoinSequence_HASH = HashingUtils::HashString("JoinSequence"); - static const int SpeakerSequence_HASH = HashingUtils::HashString("SpeakerSequence"); + static constexpr uint32_t JoinSequence_HASH = ConstExprHashingUtils::HashString("JoinSequence"); + static constexpr uint32_t SpeakerSequence_HASH = ConstExprHashingUtils::HashString("SpeakerSequence"); TileOrder GetTileOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JoinSequence_HASH) { return TileOrder::JoinSequence; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VerticalTilePosition.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VerticalTilePosition.cpp index 937a9debc99..aa12a9fdc11 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VerticalTilePosition.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VerticalTilePosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VerticalTilePositionMapper { - static const int Left_HASH = HashingUtils::HashString("Left"); - static const int Right_HASH = HashingUtils::HashString("Right"); + static constexpr uint32_t Left_HASH = ConstExprHashingUtils::HashString("Left"); + static constexpr uint32_t Right_HASH = ConstExprHashingUtils::HashString("Right"); VerticalTilePosition GetVerticalTilePositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Left_HASH) { return VerticalTilePosition::Left; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VideoMuxType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VideoMuxType.cpp index cf04340f29c..83283ea9776 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VideoMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VideoMuxType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VideoMuxTypeMapper { - static const int VideoOnly_HASH = HashingUtils::HashString("VideoOnly"); + static constexpr uint32_t VideoOnly_HASH = ConstExprHashingUtils::HashString("VideoOnly"); VideoMuxType GetVideoMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VideoOnly_HASH) { return VideoMuxType::VideoOnly; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VocabularyFilterMethod.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VocabularyFilterMethod.cpp index c9f09227ab1..32dce1c13e9 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VocabularyFilterMethod.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VocabularyFilterMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VocabularyFilterMethodMapper { - static const int remove_HASH = HashingUtils::HashString("remove"); - static const int mask_HASH = HashingUtils::HashString("mask"); - static const int tag_HASH = HashingUtils::HashString("tag"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); + static constexpr uint32_t mask_HASH = ConstExprHashingUtils::HashString("mask"); + static constexpr uint32_t tag_HASH = ConstExprHashingUtils::HashString("tag"); VocabularyFilterMethod GetVocabularyFilterMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == remove_HASH) { return VocabularyFilterMethod::remove; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsConfigurationStatus.cpp index 03cb7df4248..2497be25286 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VoiceAnalyticsConfigurationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); VoiceAnalyticsConfigurationStatus GetVoiceAnalyticsConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return VoiceAnalyticsConfigurationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsLanguageCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsLanguageCode.cpp index 9c7a40abb11..24f195839ae 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/model/VoiceAnalyticsLanguageCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VoiceAnalyticsLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); VoiceAnalyticsLanguageCode GetVoiceAnalyticsLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return VoiceAnalyticsLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsErrors.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsErrors.cpp index a80e378e5c8..c90bbe2fcd5 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsErrors.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsErrors.cpp @@ -103,20 +103,20 @@ template<> AWS_CHIMESDKMEETINGS_API BadRequestException ChimeSDKMeetingsError::G namespace ChimeSDKMeetingsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MediaCapabilities.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MediaCapabilities.cpp index 4adce770baa..207c5b71ef3 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MediaCapabilities.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MediaCapabilities.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MediaCapabilitiesMapper { - static const int SendReceive_HASH = HashingUtils::HashString("SendReceive"); - static const int Send_HASH = HashingUtils::HashString("Send"); - static const int Receive_HASH = HashingUtils::HashString("Receive"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t SendReceive_HASH = ConstExprHashingUtils::HashString("SendReceive"); + static constexpr uint32_t Send_HASH = ConstExprHashingUtils::HashString("Send"); + static constexpr uint32_t Receive_HASH = ConstExprHashingUtils::HashString("Receive"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); MediaCapabilities GetMediaCapabilitiesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SendReceive_HASH) { return MediaCapabilities::SendReceive; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MeetingFeatureStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MeetingFeatureStatus.cpp index 94875797145..c7ec896c16a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MeetingFeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/MeetingFeatureStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MeetingFeatureStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); MeetingFeatureStatus GetMeetingFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return MeetingFeatureStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentIdentificationType.cpp index 4023a402ac0..7170ec097c9 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeContentIdentificationTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); TranscribeContentIdentificationType GetTranscribeContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return TranscribeContentIdentificationType::PII; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentRedactionType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentRedactionType.cpp index 7c9656a2c19..932c7668fe1 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentRedactionType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeContentRedactionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeContentRedactionTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); TranscribeContentRedactionType GetTranscribeContentRedactionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return TranscribeContentRedactionType::PII; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeLanguageCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeLanguageCode.cpp index 08958c404d1..a40fade547f 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeLanguageCode.cpp @@ -20,25 +20,25 @@ namespace Aws namespace TranscribeLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); - static const int zh_CN_HASH = HashingUtils::HashString("zh-CN"); - static const int th_TH_HASH = HashingUtils::HashString("th-TH"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh-CN"); + static constexpr uint32_t th_TH_HASH = ConstExprHashingUtils::HashString("th-TH"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); TranscribeLanguageCode GetTranscribeLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return TranscribeLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalContentIdentificationType.cpp index 10d6edce480..200aea220aa 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeMedicalContentIdentificationTypeMapper { - static const int PHI_HASH = HashingUtils::HashString("PHI"); + static constexpr uint32_t PHI_HASH = ConstExprHashingUtils::HashString("PHI"); TranscribeMedicalContentIdentificationType GetTranscribeMedicalContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHI_HASH) { return TranscribeMedicalContentIdentificationType::PHI; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalLanguageCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalLanguageCode.cpp index 358ea8dca62..4c45eb490dc 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalLanguageCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeMedicalLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); TranscribeMedicalLanguageCode GetTranscribeMedicalLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return TranscribeMedicalLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalRegion.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalRegion.cpp index 5e67fdf33ec..1b2b934045c 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalRegion.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalRegion.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TranscribeMedicalRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int auto__HASH = HashingUtils::HashString("auto"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t auto__HASH = ConstExprHashingUtils::HashString("auto"); TranscribeMedicalRegion GetTranscribeMedicalRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return TranscribeMedicalRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalSpecialty.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalSpecialty.cpp index 15840df2835..b5ea5494b6e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalSpecialty.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalSpecialty.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TranscribeMedicalSpecialtyMapper { - static const int PRIMARYCARE_HASH = HashingUtils::HashString("PRIMARYCARE"); - static const int CARDIOLOGY_HASH = HashingUtils::HashString("CARDIOLOGY"); - static const int NEUROLOGY_HASH = HashingUtils::HashString("NEUROLOGY"); - static const int ONCOLOGY_HASH = HashingUtils::HashString("ONCOLOGY"); - static const int RADIOLOGY_HASH = HashingUtils::HashString("RADIOLOGY"); - static const int UROLOGY_HASH = HashingUtils::HashString("UROLOGY"); + static constexpr uint32_t PRIMARYCARE_HASH = ConstExprHashingUtils::HashString("PRIMARYCARE"); + static constexpr uint32_t CARDIOLOGY_HASH = ConstExprHashingUtils::HashString("CARDIOLOGY"); + static constexpr uint32_t NEUROLOGY_HASH = ConstExprHashingUtils::HashString("NEUROLOGY"); + static constexpr uint32_t ONCOLOGY_HASH = ConstExprHashingUtils::HashString("ONCOLOGY"); + static constexpr uint32_t RADIOLOGY_HASH = ConstExprHashingUtils::HashString("RADIOLOGY"); + static constexpr uint32_t UROLOGY_HASH = ConstExprHashingUtils::HashString("UROLOGY"); TranscribeMedicalSpecialty GetTranscribeMedicalSpecialtyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARYCARE_HASH) { return TranscribeMedicalSpecialty::PRIMARYCARE; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalType.cpp index df5499012cc..2ba66c48947 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeMedicalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TranscribeMedicalTypeMapper { - static const int CONVERSATION_HASH = HashingUtils::HashString("CONVERSATION"); - static const int DICTATION_HASH = HashingUtils::HashString("DICTATION"); + static constexpr uint32_t CONVERSATION_HASH = ConstExprHashingUtils::HashString("CONVERSATION"); + static constexpr uint32_t DICTATION_HASH = ConstExprHashingUtils::HashString("DICTATION"); TranscribeMedicalType GetTranscribeMedicalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONVERSATION_HASH) { return TranscribeMedicalType::CONVERSATION; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribePartialResultsStability.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribePartialResultsStability.cpp index 0ff21264d1b..e348d75b109 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribePartialResultsStability.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribePartialResultsStability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TranscribePartialResultsStabilityMapper { - static const int low_HASH = HashingUtils::HashString("low"); - static const int medium_HASH = HashingUtils::HashString("medium"); - static const int high_HASH = HashingUtils::HashString("high"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); + static constexpr uint32_t medium_HASH = ConstExprHashingUtils::HashString("medium"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); TranscribePartialResultsStability GetTranscribePartialResultsStabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == low_HASH) { return TranscribePartialResultsStability::low; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeRegion.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeRegion.cpp index 735ac1a8d59..b6778bc6be4 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeRegion.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeRegion.cpp @@ -20,24 +20,24 @@ namespace Aws namespace TranscribeRegionMapper { - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int auto__HASH = HashingUtils::HashString("auto"); - static const int us_gov_west_1_HASH = HashingUtils::HashString("us-gov-west-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t auto__HASH = ConstExprHashingUtils::HashString("auto"); + static constexpr uint32_t us_gov_west_1_HASH = ConstExprHashingUtils::HashString("us-gov-west-1"); TranscribeRegion GetTranscribeRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_2_HASH) { return TranscribeRegion::us_east_2; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeVocabularyFilterMethod.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeVocabularyFilterMethod.cpp index 8aa8fe55e75..4a544ad2ac2 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeVocabularyFilterMethod.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/model/TranscribeVocabularyFilterMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TranscribeVocabularyFilterMethodMapper { - static const int remove_HASH = HashingUtils::HashString("remove"); - static const int mask_HASH = HashingUtils::HashString("mask"); - static const int tag_HASH = HashingUtils::HashString("tag"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); + static constexpr uint32_t mask_HASH = ConstExprHashingUtils::HashString("mask"); + static constexpr uint32_t tag_HASH = ConstExprHashingUtils::HashString("tag"); TranscribeVocabularyFilterMethod GetTranscribeVocabularyFilterMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == remove_HASH) { return TranscribeVocabularyFilterMethod::remove; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingErrors.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingErrors.cpp index aba6417ba2a..c1ea60557fa 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingErrors.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingErrors.cpp @@ -82,19 +82,19 @@ template<> AWS_CHIMESDKMESSAGING_API UnauthorizedClientException ChimeSDKMessagi namespace ChimeSDKMessagingErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int THROTTLED_CLIENT_HASH = HashingUtils::HashString("ThrottledClientException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int UNAUTHORIZED_CLIENT_HASH = HashingUtils::HashString("UnauthorizedClientException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t THROTTLED_CLIENT_HASH = ConstExprHashingUtils::HashString("ThrottledClientException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t UNAUTHORIZED_CLIENT_HASH = ConstExprHashingUtils::HashString("UnauthorizedClientException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/AllowNotifications.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/AllowNotifications.cpp index b499ea6bfb4..a39c0533551 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/AllowNotifications.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/AllowNotifications.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AllowNotificationsMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int FILTERED_HASH = HashingUtils::HashString("FILTERED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t FILTERED_HASH = ConstExprHashingUtils::HashString("FILTERED"); AllowNotifications GetAllowNotificationsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return AllowNotifications::ALL; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMembershipType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMembershipType.cpp index 9b0d6d4e0c4..45d172180d5 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMembershipType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMembershipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelMembershipTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int HIDDEN_HASH = HashingUtils::HashString("HIDDEN"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t HIDDEN_HASH = ConstExprHashingUtils::HashString("HIDDEN"); ChannelMembershipType GetChannelMembershipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ChannelMembershipType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessagePersistenceType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessagePersistenceType.cpp index 477d7f3e50a..12d2e092970 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessagePersistenceType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessagePersistenceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelMessagePersistenceTypeMapper { - static const int PERSISTENT_HASH = HashingUtils::HashString("PERSISTENT"); - static const int NON_PERSISTENT_HASH = HashingUtils::HashString("NON_PERSISTENT"); + static constexpr uint32_t PERSISTENT_HASH = ConstExprHashingUtils::HashString("PERSISTENT"); + static constexpr uint32_t NON_PERSISTENT_HASH = ConstExprHashingUtils::HashString("NON_PERSISTENT"); ChannelMessagePersistenceType GetChannelMessagePersistenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSISTENT_HASH) { return ChannelMessagePersistenceType::PERSISTENT; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageStatus.cpp index c9507451a1c..ecc62bca066 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChannelMessageStatusMapper { - static const int SENT_HASH = HashingUtils::HashString("SENT"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DENIED_HASH = HashingUtils::HashString("DENIED"); + static constexpr uint32_t SENT_HASH = ConstExprHashingUtils::HashString("SENT"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DENIED_HASH = ConstExprHashingUtils::HashString("DENIED"); ChannelMessageStatus GetChannelMessageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SENT_HASH) { return ChannelMessageStatus::SENT; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageType.cpp index bd5cab8be87..02d2b3d8f42 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMessageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelMessageTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int CONTROL_HASH = HashingUtils::HashString("CONTROL"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t CONTROL_HASH = ConstExprHashingUtils::HashString("CONTROL"); ChannelMessageType GetChannelMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ChannelMessageType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMode.cpp index bf64aaf554f..ebe51cd2af5 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelModeMapper { - static const int UNRESTRICTED_HASH = HashingUtils::HashString("UNRESTRICTED"); - static const int RESTRICTED_HASH = HashingUtils::HashString("RESTRICTED"); + static constexpr uint32_t UNRESTRICTED_HASH = ConstExprHashingUtils::HashString("UNRESTRICTED"); + static constexpr uint32_t RESTRICTED_HASH = ConstExprHashingUtils::HashString("RESTRICTED"); ChannelMode GetChannelModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNRESTRICTED_HASH) { return ChannelMode::UNRESTRICTED; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelPrivacy.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelPrivacy.cpp index 732ebbd2dd1..66860f83ab3 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelPrivacy.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ChannelPrivacy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelPrivacyMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); ChannelPrivacy GetChannelPrivacyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return ChannelPrivacy::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ErrorCode.cpp index 556f8313d1e..96821a44440 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ErrorCode.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ErrorCodeMapper { - static const int BadRequest_HASH = HashingUtils::HashString("BadRequest"); - static const int Conflict_HASH = HashingUtils::HashString("Conflict"); - static const int Forbidden_HASH = HashingUtils::HashString("Forbidden"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int PreconditionFailed_HASH = HashingUtils::HashString("PreconditionFailed"); - static const int ResourceLimitExceeded_HASH = HashingUtils::HashString("ResourceLimitExceeded"); - static const int ServiceFailure_HASH = HashingUtils::HashString("ServiceFailure"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int ServiceUnavailable_HASH = HashingUtils::HashString("ServiceUnavailable"); - static const int Throttled_HASH = HashingUtils::HashString("Throttled"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); - static const int Unauthorized_HASH = HashingUtils::HashString("Unauthorized"); - static const int Unprocessable_HASH = HashingUtils::HashString("Unprocessable"); - static const int VoiceConnectorGroupAssociationsExist_HASH = HashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); - static const int PhoneNumberAssociationsExist_HASH = HashingUtils::HashString("PhoneNumberAssociationsExist"); + static constexpr uint32_t BadRequest_HASH = ConstExprHashingUtils::HashString("BadRequest"); + static constexpr uint32_t Conflict_HASH = ConstExprHashingUtils::HashString("Conflict"); + static constexpr uint32_t Forbidden_HASH = ConstExprHashingUtils::HashString("Forbidden"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t PreconditionFailed_HASH = ConstExprHashingUtils::HashString("PreconditionFailed"); + static constexpr uint32_t ResourceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); + static constexpr uint32_t ServiceFailure_HASH = ConstExprHashingUtils::HashString("ServiceFailure"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t ServiceUnavailable_HASH = ConstExprHashingUtils::HashString("ServiceUnavailable"); + static constexpr uint32_t Throttled_HASH = ConstExprHashingUtils::HashString("Throttled"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); + static constexpr uint32_t Unauthorized_HASH = ConstExprHashingUtils::HashString("Unauthorized"); + static constexpr uint32_t Unprocessable_HASH = ConstExprHashingUtils::HashString("Unprocessable"); + static constexpr uint32_t VoiceConnectorGroupAssociationsExist_HASH = ConstExprHashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); + static constexpr uint32_t PhoneNumberAssociationsExist_HASH = ConstExprHashingUtils::HashString("PhoneNumberAssociationsExist"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BadRequest_HASH) { return ErrorCode::BadRequest; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ExpirationCriterion.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ExpirationCriterion.cpp index 95b9204fca4..d6b1ce5d5f2 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ExpirationCriterion.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/ExpirationCriterion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpirationCriterionMapper { - static const int CREATED_TIMESTAMP_HASH = HashingUtils::HashString("CREATED_TIMESTAMP"); - static const int LAST_MESSAGE_TIMESTAMP_HASH = HashingUtils::HashString("LAST_MESSAGE_TIMESTAMP"); + static constexpr uint32_t CREATED_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("CREATED_TIMESTAMP"); + static constexpr uint32_t LAST_MESSAGE_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("LAST_MESSAGE_TIMESTAMP"); ExpirationCriterion GetExpirationCriterionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_TIMESTAMP_HASH) { return ExpirationCriterion::CREATED_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/FallbackAction.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/FallbackAction.cpp index 12d95a46d1b..e1bcaeb156e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/FallbackAction.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/FallbackAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FallbackActionMapper { - static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); - static const int ABORT_HASH = HashingUtils::HashString("ABORT"); + static constexpr uint32_t CONTINUE_HASH = ConstExprHashingUtils::HashString("CONTINUE"); + static constexpr uint32_t ABORT_HASH = ConstExprHashingUtils::HashString("ABORT"); FallbackAction GetFallbackActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTINUE_HASH) { return FallbackAction::CONTINUE; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/InvocationType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/InvocationType.cpp index b72e4a2074e..18989ac99f4 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/InvocationType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/InvocationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InvocationTypeMapper { - static const int ASYNC_HASH = HashingUtils::HashString("ASYNC"); + static constexpr uint32_t ASYNC_HASH = ConstExprHashingUtils::HashString("ASYNC"); InvocationType GetInvocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASYNC_HASH) { return InvocationType::ASYNC; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/MessagingDataType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/MessagingDataType.cpp index fb9f6b517df..ea948c3f2db 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/MessagingDataType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/MessagingDataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessagingDataTypeMapper { - static const int Channel_HASH = HashingUtils::HashString("Channel"); - static const int ChannelMessage_HASH = HashingUtils::HashString("ChannelMessage"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); + static constexpr uint32_t ChannelMessage_HASH = ConstExprHashingUtils::HashString("ChannelMessage"); MessagingDataType GetMessagingDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Channel_HASH) { return MessagingDataType::Channel; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/PushNotificationType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/PushNotificationType.cpp index 281a8e842cc..82667679f8e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/PushNotificationType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/PushNotificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PushNotificationTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int VOIP_HASH = HashingUtils::HashString("VOIP"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t VOIP_HASH = ConstExprHashingUtils::HashString("VOIP"); PushNotificationType GetPushNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return PushNotificationType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldKey.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldKey.cpp index d424e701fe2..d07eb03275a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldKey.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SearchFieldKeyMapper { - static const int MEMBERS_HASH = HashingUtils::HashString("MEMBERS"); + static constexpr uint32_t MEMBERS_HASH = ConstExprHashingUtils::HashString("MEMBERS"); SearchFieldKey GetSearchFieldKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEMBERS_HASH) { return SearchFieldKey::MEMBERS; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldOperator.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldOperator.cpp index 36958249e7a..71b0c375af9 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldOperator.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SearchFieldOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SearchFieldOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int INCLUDES_HASH = HashingUtils::HashString("INCLUDES"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t INCLUDES_HASH = ConstExprHashingUtils::HashString("INCLUDES"); SearchFieldOperator GetSearchFieldOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return SearchFieldOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SortOrder.cpp index baea1b786a7..04ea0e36fd2 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceErrors.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceErrors.cpp index a309ebd1c20..71b29479fe7 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceErrors.cpp @@ -18,21 +18,21 @@ namespace ChimeSDKVoice namespace ChimeSDKVoiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int GONE_HASH = HashingUtils::HashString("GoneException"); -static const int THROTTLED_CLIENT_HASH = HashingUtils::HashString("ThrottledClientException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); -static const int UNAUTHORIZED_CLIENT_HASH = HashingUtils::HashString("UnauthorizedClientException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t GONE_HASH = ConstExprHashingUtils::HashString("GoneException"); +static constexpr uint32_t THROTTLED_CLIENT_HASH = ConstExprHashingUtils::HashString("ThrottledClientException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t UNAUTHORIZED_CLIENT_HASH = ConstExprHashingUtils::HashString("UnauthorizedClientException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/AlexaSkillStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/AlexaSkillStatus.cpp index 05c5636585c..3dcf58027ec 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/AlexaSkillStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/AlexaSkillStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AlexaSkillStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AlexaSkillStatus GetAlexaSkillStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AlexaSkillStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallLegType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallLegType.cpp index f595a8e3909..82d6d08ab0a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallLegType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallLegType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CallLegTypeMapper { - static const int Caller_HASH = HashingUtils::HashString("Caller"); - static const int Callee_HASH = HashingUtils::HashString("Callee"); + static constexpr uint32_t Caller_HASH = ConstExprHashingUtils::HashString("Caller"); + static constexpr uint32_t Callee_HASH = ConstExprHashingUtils::HashString("Callee"); CallLegType GetCallLegTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Caller_HASH) { return CallLegType::Caller; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallingNameStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallingNameStatus.cpp index 14cb9ba948e..71530020815 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallingNameStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/CallingNameStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CallingNameStatusMapper { - static const int Unassigned_HASH = HashingUtils::HashString("Unassigned"); - static const int UpdateInProgress_HASH = HashingUtils::HashString("UpdateInProgress"); - static const int UpdateSucceeded_HASH = HashingUtils::HashString("UpdateSucceeded"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t Unassigned_HASH = ConstExprHashingUtils::HashString("Unassigned"); + static constexpr uint32_t UpdateInProgress_HASH = ConstExprHashingUtils::HashString("UpdateInProgress"); + static constexpr uint32_t UpdateSucceeded_HASH = ConstExprHashingUtils::HashString("UpdateSucceeded"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); CallingNameStatus GetCallingNameStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Unassigned_HASH) { return CallingNameStatus::Unassigned; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/Capability.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/Capability.cpp index bb4bdc22971..7e7447aa806 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/Capability.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/Capability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapabilityMapper { - static const int Voice_HASH = HashingUtils::HashString("Voice"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); + static constexpr uint32_t Voice_HASH = ConstExprHashingUtils::HashString("Voice"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); Capability GetCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Voice_HASH) { return Capability::Voice; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ErrorCode.cpp index 214e4a67c0c..c38defbc81b 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ErrorCode.cpp @@ -20,27 +20,27 @@ namespace Aws namespace ErrorCodeMapper { - static const int BadRequest_HASH = HashingUtils::HashString("BadRequest"); - static const int Conflict_HASH = HashingUtils::HashString("Conflict"); - static const int Forbidden_HASH = HashingUtils::HashString("Forbidden"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int PreconditionFailed_HASH = HashingUtils::HashString("PreconditionFailed"); - static const int ResourceLimitExceeded_HASH = HashingUtils::HashString("ResourceLimitExceeded"); - static const int ServiceFailure_HASH = HashingUtils::HashString("ServiceFailure"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int ServiceUnavailable_HASH = HashingUtils::HashString("ServiceUnavailable"); - static const int Throttled_HASH = HashingUtils::HashString("Throttled"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); - static const int Unauthorized_HASH = HashingUtils::HashString("Unauthorized"); - static const int Unprocessable_HASH = HashingUtils::HashString("Unprocessable"); - static const int VoiceConnectorGroupAssociationsExist_HASH = HashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); - static const int PhoneNumberAssociationsExist_HASH = HashingUtils::HashString("PhoneNumberAssociationsExist"); - static const int Gone_HASH = HashingUtils::HashString("Gone"); + static constexpr uint32_t BadRequest_HASH = ConstExprHashingUtils::HashString("BadRequest"); + static constexpr uint32_t Conflict_HASH = ConstExprHashingUtils::HashString("Conflict"); + static constexpr uint32_t Forbidden_HASH = ConstExprHashingUtils::HashString("Forbidden"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t PreconditionFailed_HASH = ConstExprHashingUtils::HashString("PreconditionFailed"); + static constexpr uint32_t ResourceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); + static constexpr uint32_t ServiceFailure_HASH = ConstExprHashingUtils::HashString("ServiceFailure"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t ServiceUnavailable_HASH = ConstExprHashingUtils::HashString("ServiceUnavailable"); + static constexpr uint32_t Throttled_HASH = ConstExprHashingUtils::HashString("Throttled"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); + static constexpr uint32_t Unauthorized_HASH = ConstExprHashingUtils::HashString("Unauthorized"); + static constexpr uint32_t Unprocessable_HASH = ConstExprHashingUtils::HashString("Unprocessable"); + static constexpr uint32_t VoiceConnectorGroupAssociationsExist_HASH = ConstExprHashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); + static constexpr uint32_t PhoneNumberAssociationsExist_HASH = ConstExprHashingUtils::HashString("PhoneNumberAssociationsExist"); + static constexpr uint32_t Gone_HASH = ConstExprHashingUtils::HashString("Gone"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BadRequest_HASH) { return ErrorCode::BadRequest; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/GeoMatchLevel.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/GeoMatchLevel.cpp index dcd67c3e38a..241feb38eaa 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/GeoMatchLevel.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/GeoMatchLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GeoMatchLevelMapper { - static const int Country_HASH = HashingUtils::HashString("Country"); - static const int AreaCode_HASH = HashingUtils::HashString("AreaCode"); + static constexpr uint32_t Country_HASH = ConstExprHashingUtils::HashString("Country"); + static constexpr uint32_t AreaCode_HASH = ConstExprHashingUtils::HashString("AreaCode"); GeoMatchLevel GetGeoMatchLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Country_HASH) { return GeoMatchLevel::Country; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/LanguageCode.cpp index 44b293d7762..1478b6307c1 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/LanguageCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return LanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NotificationTarget.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NotificationTarget.cpp index ce62dccbf5b..7f7a36d9a17 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NotificationTarget.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NotificationTarget.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotificationTargetMapper { - static const int EventBridge_HASH = HashingUtils::HashString("EventBridge"); - static const int SNS_HASH = HashingUtils::HashString("SNS"); - static const int SQS_HASH = HashingUtils::HashString("SQS"); + static constexpr uint32_t EventBridge_HASH = ConstExprHashingUtils::HashString("EventBridge"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); + static constexpr uint32_t SQS_HASH = ConstExprHashingUtils::HashString("SQS"); NotificationTarget GetNotificationTargetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EventBridge_HASH) { return NotificationTarget::EventBridge; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NumberSelectionBehavior.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NumberSelectionBehavior.cpp index 9c4a47a0a44..e8fa6644d8b 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NumberSelectionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/NumberSelectionBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NumberSelectionBehaviorMapper { - static const int PreferSticky_HASH = HashingUtils::HashString("PreferSticky"); - static const int AvoidSticky_HASH = HashingUtils::HashString("AvoidSticky"); + static constexpr uint32_t PreferSticky_HASH = ConstExprHashingUtils::HashString("PreferSticky"); + static constexpr uint32_t AvoidSticky_HASH = ConstExprHashingUtils::HashString("AvoidSticky"); NumberSelectionBehavior GetNumberSelectionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PreferSticky_HASH) { return NumberSelectionBehavior::PreferSticky; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OrderedPhoneNumberStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OrderedPhoneNumberStatus.cpp index 5d81f24df0f..6f04341b947 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OrderedPhoneNumberStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OrderedPhoneNumberStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrderedPhoneNumberStatusMapper { - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int Acquired_HASH = HashingUtils::HashString("Acquired"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Acquired_HASH = ConstExprHashingUtils::HashString("Acquired"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); OrderedPhoneNumberStatus GetOrderedPhoneNumberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Processing_HASH) { return OrderedPhoneNumberStatus::Processing; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OriginationRouteProtocol.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OriginationRouteProtocol.cpp index 9464abce3d6..623c61d8e4e 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OriginationRouteProtocol.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/OriginationRouteProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginationRouteProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); OriginationRouteProtocol GetOriginationRouteProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return OriginationRouteProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberAssociationName.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberAssociationName.cpp index 0483f431abc..6be71bcbfc9 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberAssociationName.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberAssociationName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PhoneNumberAssociationNameMapper { - static const int VoiceConnectorId_HASH = HashingUtils::HashString("VoiceConnectorId"); - static const int VoiceConnectorGroupId_HASH = HashingUtils::HashString("VoiceConnectorGroupId"); - static const int SipRuleId_HASH = HashingUtils::HashString("SipRuleId"); + static constexpr uint32_t VoiceConnectorId_HASH = ConstExprHashingUtils::HashString("VoiceConnectorId"); + static constexpr uint32_t VoiceConnectorGroupId_HASH = ConstExprHashingUtils::HashString("VoiceConnectorGroupId"); + static constexpr uint32_t SipRuleId_HASH = ConstExprHashingUtils::HashString("SipRuleId"); PhoneNumberAssociationName GetPhoneNumberAssociationNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VoiceConnectorId_HASH) { return PhoneNumberAssociationName::VoiceConnectorId; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderStatus.cpp index 2ba84b699c7..3d218e376ec 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace PhoneNumberOrderStatusMapper { - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Partial_HASH = HashingUtils::HashString("Partial"); - static const int PendingDocuments_HASH = HashingUtils::HashString("PendingDocuments"); - static const int Submitted_HASH = HashingUtils::HashString("Submitted"); - static const int FOC_HASH = HashingUtils::HashString("FOC"); - static const int ChangeRequested_HASH = HashingUtils::HashString("ChangeRequested"); - static const int Exception_HASH = HashingUtils::HashString("Exception"); - static const int CancelRequested_HASH = HashingUtils::HashString("CancelRequested"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Partial_HASH = ConstExprHashingUtils::HashString("Partial"); + static constexpr uint32_t PendingDocuments_HASH = ConstExprHashingUtils::HashString("PendingDocuments"); + static constexpr uint32_t Submitted_HASH = ConstExprHashingUtils::HashString("Submitted"); + static constexpr uint32_t FOC_HASH = ConstExprHashingUtils::HashString("FOC"); + static constexpr uint32_t ChangeRequested_HASH = ConstExprHashingUtils::HashString("ChangeRequested"); + static constexpr uint32_t Exception_HASH = ConstExprHashingUtils::HashString("Exception"); + static constexpr uint32_t CancelRequested_HASH = ConstExprHashingUtils::HashString("CancelRequested"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); PhoneNumberOrderStatus GetPhoneNumberOrderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Processing_HASH) { return PhoneNumberOrderStatus::Processing; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderType.cpp index 4eca3a8e138..ddc1e9f6cb8 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberOrderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PhoneNumberOrderTypeMapper { - static const int New_HASH = HashingUtils::HashString("New"); - static const int Porting_HASH = HashingUtils::HashString("Porting"); + static constexpr uint32_t New_HASH = ConstExprHashingUtils::HashString("New"); + static constexpr uint32_t Porting_HASH = ConstExprHashingUtils::HashString("Porting"); PhoneNumberOrderType GetPhoneNumberOrderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == New_HASH) { return PhoneNumberOrderType::New; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberProductType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberProductType.cpp index 2ea5af6dbd7..5044ad5ad8a 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberProductType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberProductType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PhoneNumberProductTypeMapper { - static const int VoiceConnector_HASH = HashingUtils::HashString("VoiceConnector"); - static const int SipMediaApplicationDialIn_HASH = HashingUtils::HashString("SipMediaApplicationDialIn"); + static constexpr uint32_t VoiceConnector_HASH = ConstExprHashingUtils::HashString("VoiceConnector"); + static constexpr uint32_t SipMediaApplicationDialIn_HASH = ConstExprHashingUtils::HashString("SipMediaApplicationDialIn"); PhoneNumberProductType GetPhoneNumberProductTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VoiceConnector_HASH) { return PhoneNumberProductType::VoiceConnector; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberStatus.cpp index c4c2c01dc6c..74d9021cb95 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace PhoneNumberStatusMapper { - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int PortinCancelRequested_HASH = HashingUtils::HashString("PortinCancelRequested"); - static const int PortinInProgress_HASH = HashingUtils::HashString("PortinInProgress"); - static const int AcquireInProgress_HASH = HashingUtils::HashString("AcquireInProgress"); - static const int AcquireFailed_HASH = HashingUtils::HashString("AcquireFailed"); - static const int Unassigned_HASH = HashingUtils::HashString("Unassigned"); - static const int Assigned_HASH = HashingUtils::HashString("Assigned"); - static const int ReleaseInProgress_HASH = HashingUtils::HashString("ReleaseInProgress"); - static const int DeleteInProgress_HASH = HashingUtils::HashString("DeleteInProgress"); - static const int ReleaseFailed_HASH = HashingUtils::HashString("ReleaseFailed"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t PortinCancelRequested_HASH = ConstExprHashingUtils::HashString("PortinCancelRequested"); + static constexpr uint32_t PortinInProgress_HASH = ConstExprHashingUtils::HashString("PortinInProgress"); + static constexpr uint32_t AcquireInProgress_HASH = ConstExprHashingUtils::HashString("AcquireInProgress"); + static constexpr uint32_t AcquireFailed_HASH = ConstExprHashingUtils::HashString("AcquireFailed"); + static constexpr uint32_t Unassigned_HASH = ConstExprHashingUtils::HashString("Unassigned"); + static constexpr uint32_t Assigned_HASH = ConstExprHashingUtils::HashString("Assigned"); + static constexpr uint32_t ReleaseInProgress_HASH = ConstExprHashingUtils::HashString("ReleaseInProgress"); + static constexpr uint32_t DeleteInProgress_HASH = ConstExprHashingUtils::HashString("DeleteInProgress"); + static constexpr uint32_t ReleaseFailed_HASH = ConstExprHashingUtils::HashString("ReleaseFailed"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); PhoneNumberStatus GetPhoneNumberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Cancelled_HASH) { return PhoneNumberStatus::Cancelled; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberType.cpp index 46ba31cb37d..654c565534d 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/PhoneNumberType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PhoneNumberTypeMapper { - static const int Local_HASH = HashingUtils::HashString("Local"); - static const int TollFree_HASH = HashingUtils::HashString("TollFree"); + static constexpr uint32_t Local_HASH = ConstExprHashingUtils::HashString("Local"); + static constexpr uint32_t TollFree_HASH = ConstExprHashingUtils::HashString("TollFree"); PhoneNumberType GetPhoneNumberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Local_HASH) { return PhoneNumberType::Local; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ProxySessionStatus.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ProxySessionStatus.cpp index 88ecae7dbcc..ab335a5644d 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ProxySessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/ProxySessionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProxySessionStatusMapper { - static const int Open_HASH = HashingUtils::HashString("Open"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Closed_HASH = HashingUtils::HashString("Closed"); + static constexpr uint32_t Open_HASH = ConstExprHashingUtils::HashString("Open"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Closed_HASH = ConstExprHashingUtils::HashString("Closed"); ProxySessionStatus GetProxySessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Open_HASH) { return ProxySessionStatus::Open; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/SipRuleTriggerType.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/SipRuleTriggerType.cpp index 0d665f6c564..2280d71d98c 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/SipRuleTriggerType.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/SipRuleTriggerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SipRuleTriggerTypeMapper { - static const int ToPhoneNumber_HASH = HashingUtils::HashString("ToPhoneNumber"); - static const int RequestUriHostname_HASH = HashingUtils::HashString("RequestUriHostname"); + static constexpr uint32_t ToPhoneNumber_HASH = ConstExprHashingUtils::HashString("ToPhoneNumber"); + static constexpr uint32_t RequestUriHostname_HASH = ConstExprHashingUtils::HashString("RequestUriHostname"); SipRuleTriggerType GetSipRuleTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ToPhoneNumber_HASH) { return SipRuleTriggerType::ToPhoneNumber; diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/VoiceConnectorAwsRegion.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/VoiceConnectorAwsRegion.cpp index 2b340aa568a..8a999bef104 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/VoiceConnectorAwsRegion.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/model/VoiceConnectorAwsRegion.cpp @@ -20,21 +20,21 @@ namespace Aws namespace VoiceConnectorAwsRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); VoiceConnectorAwsRegion GetVoiceConnectorAwsRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return VoiceConnectorAwsRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-chime/source/ChimeErrors.cpp b/generated/src/aws-cpp-sdk-chime/source/ChimeErrors.cpp index 629854d41cd..738c59c89b2 100644 --- a/generated/src/aws-cpp-sdk-chime/source/ChimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/ChimeErrors.cpp @@ -96,20 +96,20 @@ template<> AWS_CHIME_API BadRequestException ChimeError::GetModeledError() namespace ChimeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int THROTTLED_CLIENT_HASH = HashingUtils::HashString("ThrottledClientException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); -static const int UNAUTHORIZED_CLIENT_HASH = HashingUtils::HashString("UnauthorizedClientException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t THROTTLED_CLIENT_HASH = ConstExprHashingUtils::HashString("ThrottledClientException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t UNAUTHORIZED_CLIENT_HASH = ConstExprHashingUtils::HashString("UnauthorizedClientException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-chime/source/model/AccountStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/AccountStatus.cpp index 908a575c92c..1cf019063d1 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/AccountStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/AccountStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccountStatusMapper { - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); - static const int Active_HASH = HashingUtils::HashString("Active"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); AccountStatus GetAccountStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Suspended_HASH) { return AccountStatus::Suspended; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/AccountType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/AccountType.cpp index b5b45b1ebc7..cd2a6a7b766 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/AccountType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/AccountType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AccountTypeMapper { - static const int Team_HASH = HashingUtils::HashString("Team"); - static const int EnterpriseDirectory_HASH = HashingUtils::HashString("EnterpriseDirectory"); - static const int EnterpriseLWA_HASH = HashingUtils::HashString("EnterpriseLWA"); - static const int EnterpriseOIDC_HASH = HashingUtils::HashString("EnterpriseOIDC"); + static constexpr uint32_t Team_HASH = ConstExprHashingUtils::HashString("Team"); + static constexpr uint32_t EnterpriseDirectory_HASH = ConstExprHashingUtils::HashString("EnterpriseDirectory"); + static constexpr uint32_t EnterpriseLWA_HASH = ConstExprHashingUtils::HashString("EnterpriseLWA"); + static constexpr uint32_t EnterpriseOIDC_HASH = ConstExprHashingUtils::HashString("EnterpriseOIDC"); AccountType GetAccountTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Team_HASH) { return AccountType::Team; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/AppInstanceDataType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/AppInstanceDataType.cpp index 36ae71da14a..6bbeaf0bbc3 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/AppInstanceDataType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/AppInstanceDataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppInstanceDataTypeMapper { - static const int Channel_HASH = HashingUtils::HashString("Channel"); - static const int ChannelMessage_HASH = HashingUtils::HashString("ChannelMessage"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); + static constexpr uint32_t ChannelMessage_HASH = ConstExprHashingUtils::HashString("ChannelMessage"); AppInstanceDataType GetAppInstanceDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Channel_HASH) { return AppInstanceDataType::Channel; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ArtifactsState.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ArtifactsState.cpp index a7903c9529f..d3c637c5b80 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ArtifactsState.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ArtifactsState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArtifactsStateMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ArtifactsState GetArtifactsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ArtifactsState::Enabled; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/AudioMuxType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/AudioMuxType.cpp index 646cc6cb081..0d7e87d9ac1 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/AudioMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/AudioMuxType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioMuxTypeMapper { - static const int AudioOnly_HASH = HashingUtils::HashString("AudioOnly"); - static const int AudioWithActiveSpeakerVideo_HASH = HashingUtils::HashString("AudioWithActiveSpeakerVideo"); + static constexpr uint32_t AudioOnly_HASH = ConstExprHashingUtils::HashString("AudioOnly"); + static constexpr uint32_t AudioWithActiveSpeakerVideo_HASH = ConstExprHashingUtils::HashString("AudioWithActiveSpeakerVideo"); AudioMuxType GetAudioMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AudioOnly_HASH) { return AudioMuxType::AudioOnly; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/BotType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/BotType.cpp index 620819c0552..e4b582b5f28 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/BotType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/BotType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BotTypeMapper { - static const int ChatBot_HASH = HashingUtils::HashString("ChatBot"); + static constexpr uint32_t ChatBot_HASH = ConstExprHashingUtils::HashString("ChatBot"); BotType GetBotTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChatBot_HASH) { return BotType::ChatBot; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/CallingNameStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/CallingNameStatus.cpp index c30d5965b9d..13dc1f5300a 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/CallingNameStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/CallingNameStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CallingNameStatusMapper { - static const int Unassigned_HASH = HashingUtils::HashString("Unassigned"); - static const int UpdateInProgress_HASH = HashingUtils::HashString("UpdateInProgress"); - static const int UpdateSucceeded_HASH = HashingUtils::HashString("UpdateSucceeded"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t Unassigned_HASH = ConstExprHashingUtils::HashString("Unassigned"); + static constexpr uint32_t UpdateInProgress_HASH = ConstExprHashingUtils::HashString("UpdateInProgress"); + static constexpr uint32_t UpdateSucceeded_HASH = ConstExprHashingUtils::HashString("UpdateSucceeded"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); CallingNameStatus GetCallingNameStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Unassigned_HASH) { return CallingNameStatus::Unassigned; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/Capability.cpp b/generated/src/aws-cpp-sdk-chime/source/model/Capability.cpp index 2efb0bb1e39..c893baa43af 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/Capability.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/Capability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapabilityMapper { - static const int Voice_HASH = HashingUtils::HashString("Voice"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); + static constexpr uint32_t Voice_HASH = ConstExprHashingUtils::HashString("Voice"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); Capability GetCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Voice_HASH) { return Capability::Voice; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMembershipType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMembershipType.cpp index 9901096cc78..cff60de347c 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMembershipType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMembershipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelMembershipTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int HIDDEN_HASH = HashingUtils::HashString("HIDDEN"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t HIDDEN_HASH = ConstExprHashingUtils::HashString("HIDDEN"); ChannelMembershipType GetChannelMembershipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ChannelMembershipType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessagePersistenceType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessagePersistenceType.cpp index afa8da1708c..f27bb5366dc 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessagePersistenceType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessagePersistenceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelMessagePersistenceTypeMapper { - static const int PERSISTENT_HASH = HashingUtils::HashString("PERSISTENT"); - static const int NON_PERSISTENT_HASH = HashingUtils::HashString("NON_PERSISTENT"); + static constexpr uint32_t PERSISTENT_HASH = ConstExprHashingUtils::HashString("PERSISTENT"); + static constexpr uint32_t NON_PERSISTENT_HASH = ConstExprHashingUtils::HashString("NON_PERSISTENT"); ChannelMessagePersistenceType GetChannelMessagePersistenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSISTENT_HASH) { return ChannelMessagePersistenceType::PERSISTENT; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessageType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessageType.cpp index 703e4002e2e..49c4a5674a3 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessageType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMessageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelMessageTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int CONTROL_HASH = HashingUtils::HashString("CONTROL"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t CONTROL_HASH = ConstExprHashingUtils::HashString("CONTROL"); ChannelMessageType GetChannelMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ChannelMessageType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMode.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMode.cpp index 5f10b3d7469..a2b43da7ca7 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ChannelMode.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ChannelMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelModeMapper { - static const int UNRESTRICTED_HASH = HashingUtils::HashString("UNRESTRICTED"); - static const int RESTRICTED_HASH = HashingUtils::HashString("RESTRICTED"); + static constexpr uint32_t UNRESTRICTED_HASH = ConstExprHashingUtils::HashString("UNRESTRICTED"); + static constexpr uint32_t RESTRICTED_HASH = ConstExprHashingUtils::HashString("RESTRICTED"); ChannelMode GetChannelModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNRESTRICTED_HASH) { return ChannelMode::UNRESTRICTED; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ChannelPrivacy.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ChannelPrivacy.cpp index 846b1218572..33f6874451b 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ChannelPrivacy.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ChannelPrivacy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelPrivacyMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); ChannelPrivacy GetChannelPrivacyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return ChannelPrivacy::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ContentMuxType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ContentMuxType.cpp index bab68f4d990..eafbed07d2b 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ContentMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ContentMuxType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentMuxTypeMapper { - static const int ContentOnly_HASH = HashingUtils::HashString("ContentOnly"); + static constexpr uint32_t ContentOnly_HASH = ConstExprHashingUtils::HashString("ContentOnly"); ContentMuxType GetContentMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ContentOnly_HASH) { return ContentMuxType::ContentOnly; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/EmailStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/EmailStatus.cpp index 599b824fc27..08b3ab7f026 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/EmailStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/EmailStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EmailStatusMapper { - static const int NotSent_HASH = HashingUtils::HashString("NotSent"); - static const int Sent_HASH = HashingUtils::HashString("Sent"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t NotSent_HASH = ConstExprHashingUtils::HashString("NotSent"); + static constexpr uint32_t Sent_HASH = ConstExprHashingUtils::HashString("Sent"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); EmailStatus GetEmailStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotSent_HASH) { return EmailStatus::NotSent; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ErrorCode.cpp index a8d832ae8d8..eac446ddf92 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ErrorCode.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ErrorCodeMapper { - static const int BadRequest_HASH = HashingUtils::HashString("BadRequest"); - static const int Conflict_HASH = HashingUtils::HashString("Conflict"); - static const int Forbidden_HASH = HashingUtils::HashString("Forbidden"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int PreconditionFailed_HASH = HashingUtils::HashString("PreconditionFailed"); - static const int ResourceLimitExceeded_HASH = HashingUtils::HashString("ResourceLimitExceeded"); - static const int ServiceFailure_HASH = HashingUtils::HashString("ServiceFailure"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int ServiceUnavailable_HASH = HashingUtils::HashString("ServiceUnavailable"); - static const int Throttled_HASH = HashingUtils::HashString("Throttled"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); - static const int Unauthorized_HASH = HashingUtils::HashString("Unauthorized"); - static const int Unprocessable_HASH = HashingUtils::HashString("Unprocessable"); - static const int VoiceConnectorGroupAssociationsExist_HASH = HashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); - static const int PhoneNumberAssociationsExist_HASH = HashingUtils::HashString("PhoneNumberAssociationsExist"); + static constexpr uint32_t BadRequest_HASH = ConstExprHashingUtils::HashString("BadRequest"); + static constexpr uint32_t Conflict_HASH = ConstExprHashingUtils::HashString("Conflict"); + static constexpr uint32_t Forbidden_HASH = ConstExprHashingUtils::HashString("Forbidden"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t PreconditionFailed_HASH = ConstExprHashingUtils::HashString("PreconditionFailed"); + static constexpr uint32_t ResourceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); + static constexpr uint32_t ServiceFailure_HASH = ConstExprHashingUtils::HashString("ServiceFailure"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t ServiceUnavailable_HASH = ConstExprHashingUtils::HashString("ServiceUnavailable"); + static constexpr uint32_t Throttled_HASH = ConstExprHashingUtils::HashString("Throttled"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); + static constexpr uint32_t Unauthorized_HASH = ConstExprHashingUtils::HashString("Unauthorized"); + static constexpr uint32_t Unprocessable_HASH = ConstExprHashingUtils::HashString("Unprocessable"); + static constexpr uint32_t VoiceConnectorGroupAssociationsExist_HASH = ConstExprHashingUtils::HashString("VoiceConnectorGroupAssociationsExist"); + static constexpr uint32_t PhoneNumberAssociationsExist_HASH = ConstExprHashingUtils::HashString("PhoneNumberAssociationsExist"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BadRequest_HASH) { return ErrorCode::BadRequest; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/GeoMatchLevel.cpp b/generated/src/aws-cpp-sdk-chime/source/model/GeoMatchLevel.cpp index 205f898019d..e8c917adc58 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/GeoMatchLevel.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/GeoMatchLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GeoMatchLevelMapper { - static const int Country_HASH = HashingUtils::HashString("Country"); - static const int AreaCode_HASH = HashingUtils::HashString("AreaCode"); + static constexpr uint32_t Country_HASH = ConstExprHashingUtils::HashString("Country"); + static constexpr uint32_t AreaCode_HASH = ConstExprHashingUtils::HashString("AreaCode"); GeoMatchLevel GetGeoMatchLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Country_HASH) { return GeoMatchLevel::Country; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/InviteStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/InviteStatus.cpp index 3ca20127cd7..380addca5fe 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/InviteStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/InviteStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InviteStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Accepted_HASH = HashingUtils::HashString("Accepted"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Accepted_HASH = ConstExprHashingUtils::HashString("Accepted"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); InviteStatus GetInviteStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return InviteStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/License.cpp b/generated/src/aws-cpp-sdk-chime/source/model/License.cpp index cd4d1172097..0d8279d3c6f 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/License.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/License.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LicenseMapper { - static const int Basic_HASH = HashingUtils::HashString("Basic"); - static const int Plus_HASH = HashingUtils::HashString("Plus"); - static const int Pro_HASH = HashingUtils::HashString("Pro"); - static const int ProTrial_HASH = HashingUtils::HashString("ProTrial"); + static constexpr uint32_t Basic_HASH = ConstExprHashingUtils::HashString("Basic"); + static constexpr uint32_t Plus_HASH = ConstExprHashingUtils::HashString("Plus"); + static constexpr uint32_t Pro_HASH = ConstExprHashingUtils::HashString("Pro"); + static constexpr uint32_t ProTrial_HASH = ConstExprHashingUtils::HashString("ProTrial"); License GetLicenseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Basic_HASH) { return License::Basic; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSinkType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSinkType.cpp index 2c9972b1452..7e016eb5050 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSinkType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSinkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MediaPipelineSinkTypeMapper { - static const int S3Bucket_HASH = HashingUtils::HashString("S3Bucket"); + static constexpr uint32_t S3Bucket_HASH = ConstExprHashingUtils::HashString("S3Bucket"); MediaPipelineSinkType GetMediaPipelineSinkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3Bucket_HASH) { return MediaPipelineSinkType::S3Bucket; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSourceType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSourceType.cpp index 7ac10c37150..2f567a241da 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSourceType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MediaPipelineSourceTypeMapper { - static const int ChimeSdkMeeting_HASH = HashingUtils::HashString("ChimeSdkMeeting"); + static constexpr uint32_t ChimeSdkMeeting_HASH = ConstExprHashingUtils::HashString("ChimeSdkMeeting"); MediaPipelineSourceType GetMediaPipelineSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChimeSdkMeeting_HASH) { return MediaPipelineSourceType::ChimeSdkMeeting; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineStatus.cpp index 34f933a59be..01e9362ebdf 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/MediaPipelineStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MediaPipelineStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); MediaPipelineStatus GetMediaPipelineStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return MediaPipelineStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/MemberType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/MemberType.cpp index 3e262cb8b13..81037ce6d98 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/MemberType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/MemberType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MemberTypeMapper { - static const int User_HASH = HashingUtils::HashString("User"); - static const int Bot_HASH = HashingUtils::HashString("Bot"); - static const int Webhook_HASH = HashingUtils::HashString("Webhook"); + static constexpr uint32_t User_HASH = ConstExprHashingUtils::HashString("User"); + static constexpr uint32_t Bot_HASH = ConstExprHashingUtils::HashString("Bot"); + static constexpr uint32_t Webhook_HASH = ConstExprHashingUtils::HashString("Webhook"); MemberType GetMemberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == User_HASH) { return MemberType::User; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/NotificationTarget.cpp b/generated/src/aws-cpp-sdk-chime/source/model/NotificationTarget.cpp index 7901c8b45b1..c6738b9bf3a 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/NotificationTarget.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/NotificationTarget.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotificationTargetMapper { - static const int EventBridge_HASH = HashingUtils::HashString("EventBridge"); - static const int SNS_HASH = HashingUtils::HashString("SNS"); - static const int SQS_HASH = HashingUtils::HashString("SQS"); + static constexpr uint32_t EventBridge_HASH = ConstExprHashingUtils::HashString("EventBridge"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); + static constexpr uint32_t SQS_HASH = ConstExprHashingUtils::HashString("SQS"); NotificationTarget GetNotificationTargetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EventBridge_HASH) { return NotificationTarget::EventBridge; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/NumberSelectionBehavior.cpp b/generated/src/aws-cpp-sdk-chime/source/model/NumberSelectionBehavior.cpp index 00cbe2f98e6..b211b15f759 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/NumberSelectionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/NumberSelectionBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NumberSelectionBehaviorMapper { - static const int PreferSticky_HASH = HashingUtils::HashString("PreferSticky"); - static const int AvoidSticky_HASH = HashingUtils::HashString("AvoidSticky"); + static constexpr uint32_t PreferSticky_HASH = ConstExprHashingUtils::HashString("PreferSticky"); + static constexpr uint32_t AvoidSticky_HASH = ConstExprHashingUtils::HashString("AvoidSticky"); NumberSelectionBehavior GetNumberSelectionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PreferSticky_HASH) { return NumberSelectionBehavior::PreferSticky; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/OrderedPhoneNumberStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/OrderedPhoneNumberStatus.cpp index fea93e67d86..014e091972d 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/OrderedPhoneNumberStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/OrderedPhoneNumberStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrderedPhoneNumberStatusMapper { - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int Acquired_HASH = HashingUtils::HashString("Acquired"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Acquired_HASH = ConstExprHashingUtils::HashString("Acquired"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); OrderedPhoneNumberStatus GetOrderedPhoneNumberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Processing_HASH) { return OrderedPhoneNumberStatus::Processing; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/OriginationRouteProtocol.cpp b/generated/src/aws-cpp-sdk-chime/source/model/OriginationRouteProtocol.cpp index 861412fcf0a..57d5aab33dd 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/OriginationRouteProtocol.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/OriginationRouteProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginationRouteProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); OriginationRouteProtocol GetOriginationRouteProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return OriginationRouteProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberAssociationName.cpp b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberAssociationName.cpp index ddb1f8ad35a..553040fe311 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberAssociationName.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberAssociationName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PhoneNumberAssociationNameMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int UserId_HASH = HashingUtils::HashString("UserId"); - static const int VoiceConnectorId_HASH = HashingUtils::HashString("VoiceConnectorId"); - static const int VoiceConnectorGroupId_HASH = HashingUtils::HashString("VoiceConnectorGroupId"); - static const int SipRuleId_HASH = HashingUtils::HashString("SipRuleId"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t UserId_HASH = ConstExprHashingUtils::HashString("UserId"); + static constexpr uint32_t VoiceConnectorId_HASH = ConstExprHashingUtils::HashString("VoiceConnectorId"); + static constexpr uint32_t VoiceConnectorGroupId_HASH = ConstExprHashingUtils::HashString("VoiceConnectorGroupId"); + static constexpr uint32_t SipRuleId_HASH = ConstExprHashingUtils::HashString("SipRuleId"); PhoneNumberAssociationName GetPhoneNumberAssociationNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return PhoneNumberAssociationName::AccountId; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberOrderStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberOrderStatus.cpp index 3a7be334e8d..9c289a23f31 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberOrderStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberOrderStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PhoneNumberOrderStatusMapper { - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Partial_HASH = HashingUtils::HashString("Partial"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Partial_HASH = ConstExprHashingUtils::HashString("Partial"); PhoneNumberOrderStatus GetPhoneNumberOrderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Processing_HASH) { return PhoneNumberOrderStatus::Processing; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberProductType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberProductType.cpp index 88680a8c9ac..29fb0a85125 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberProductType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberProductType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PhoneNumberProductTypeMapper { - static const int BusinessCalling_HASH = HashingUtils::HashString("BusinessCalling"); - static const int VoiceConnector_HASH = HashingUtils::HashString("VoiceConnector"); - static const int SipMediaApplicationDialIn_HASH = HashingUtils::HashString("SipMediaApplicationDialIn"); + static constexpr uint32_t BusinessCalling_HASH = ConstExprHashingUtils::HashString("BusinessCalling"); + static constexpr uint32_t VoiceConnector_HASH = ConstExprHashingUtils::HashString("VoiceConnector"); + static constexpr uint32_t SipMediaApplicationDialIn_HASH = ConstExprHashingUtils::HashString("SipMediaApplicationDialIn"); PhoneNumberProductType GetPhoneNumberProductTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BusinessCalling_HASH) { return PhoneNumberProductType::BusinessCalling; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberStatus.cpp index 90717c83640..44e03ef1818 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace PhoneNumberStatusMapper { - static const int AcquireInProgress_HASH = HashingUtils::HashString("AcquireInProgress"); - static const int AcquireFailed_HASH = HashingUtils::HashString("AcquireFailed"); - static const int Unassigned_HASH = HashingUtils::HashString("Unassigned"); - static const int Assigned_HASH = HashingUtils::HashString("Assigned"); - static const int ReleaseInProgress_HASH = HashingUtils::HashString("ReleaseInProgress"); - static const int DeleteInProgress_HASH = HashingUtils::HashString("DeleteInProgress"); - static const int ReleaseFailed_HASH = HashingUtils::HashString("ReleaseFailed"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t AcquireInProgress_HASH = ConstExprHashingUtils::HashString("AcquireInProgress"); + static constexpr uint32_t AcquireFailed_HASH = ConstExprHashingUtils::HashString("AcquireFailed"); + static constexpr uint32_t Unassigned_HASH = ConstExprHashingUtils::HashString("Unassigned"); + static constexpr uint32_t Assigned_HASH = ConstExprHashingUtils::HashString("Assigned"); + static constexpr uint32_t ReleaseInProgress_HASH = ConstExprHashingUtils::HashString("ReleaseInProgress"); + static constexpr uint32_t DeleteInProgress_HASH = ConstExprHashingUtils::HashString("DeleteInProgress"); + static constexpr uint32_t ReleaseFailed_HASH = ConstExprHashingUtils::HashString("ReleaseFailed"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); PhoneNumberStatus GetPhoneNumberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AcquireInProgress_HASH) { return PhoneNumberStatus::AcquireInProgress; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp index 6085e101418..46c91a10478 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PhoneNumberTypeMapper { - static const int Local_HASH = HashingUtils::HashString("Local"); - static const int TollFree_HASH = HashingUtils::HashString("TollFree"); + static constexpr uint32_t Local_HASH = ConstExprHashingUtils::HashString("Local"); + static constexpr uint32_t TollFree_HASH = ConstExprHashingUtils::HashString("TollFree"); PhoneNumberType GetPhoneNumberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Local_HASH) { return PhoneNumberType::Local; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/ProxySessionStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/ProxySessionStatus.cpp index 202bc659906..d3e5d04d95e 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/ProxySessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/ProxySessionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProxySessionStatusMapper { - static const int Open_HASH = HashingUtils::HashString("Open"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Closed_HASH = HashingUtils::HashString("Closed"); + static constexpr uint32_t Open_HASH = ConstExprHashingUtils::HashString("Open"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Closed_HASH = ConstExprHashingUtils::HashString("Closed"); ProxySessionStatus GetProxySessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Open_HASH) { return ProxySessionStatus::Open; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/RegistrationStatus.cpp b/generated/src/aws-cpp-sdk-chime/source/model/RegistrationStatus.cpp index 553c559fca3..7e19d1d114e 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/RegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/RegistrationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RegistrationStatusMapper { - static const int Unregistered_HASH = HashingUtils::HashString("Unregistered"); - static const int Registered_HASH = HashingUtils::HashString("Registered"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Unregistered_HASH = ConstExprHashingUtils::HashString("Unregistered"); + static constexpr uint32_t Registered_HASH = ConstExprHashingUtils::HashString("Registered"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); RegistrationStatus GetRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Unregistered_HASH) { return RegistrationStatus::Unregistered; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/RoomMembershipRole.cpp b/generated/src/aws-cpp-sdk-chime/source/model/RoomMembershipRole.cpp index 60f8772c03c..502648629b5 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/RoomMembershipRole.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/RoomMembershipRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RoomMembershipRoleMapper { - static const int Administrator_HASH = HashingUtils::HashString("Administrator"); - static const int Member_HASH = HashingUtils::HashString("Member"); + static constexpr uint32_t Administrator_HASH = ConstExprHashingUtils::HashString("Administrator"); + static constexpr uint32_t Member_HASH = ConstExprHashingUtils::HashString("Member"); RoomMembershipRole GetRoomMembershipRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Administrator_HASH) { return RoomMembershipRole::Administrator; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/SipRuleTriggerType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/SipRuleTriggerType.cpp index 38b71401ba8..7a1b3393785 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/SipRuleTriggerType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/SipRuleTriggerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SipRuleTriggerTypeMapper { - static const int ToPhoneNumber_HASH = HashingUtils::HashString("ToPhoneNumber"); - static const int RequestUriHostname_HASH = HashingUtils::HashString("RequestUriHostname"); + static constexpr uint32_t ToPhoneNumber_HASH = ConstExprHashingUtils::HashString("ToPhoneNumber"); + static constexpr uint32_t RequestUriHostname_HASH = ConstExprHashingUtils::HashString("RequestUriHostname"); SipRuleTriggerType GetSipRuleTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ToPhoneNumber_HASH) { return SipRuleTriggerType::ToPhoneNumber; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-chime/source/model/SortOrder.cpp index 9cb3cc74842..9b4a95da0fc 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentIdentificationType.cpp index 9250b80d935..95fe2a44ade 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeContentIdentificationTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); TranscribeContentIdentificationType GetTranscribeContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return TranscribeContentIdentificationType::PII; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentRedactionType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentRedactionType.cpp index 97f16ec3640..d18f95e8145 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentRedactionType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeContentRedactionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeContentRedactionTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); TranscribeContentRedactionType GetTranscribeContentRedactionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return TranscribeContentRedactionType::PII; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeLanguageCode.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeLanguageCode.cpp index e7c0f6db7c4..7ff3929083d 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeLanguageCode.cpp @@ -20,25 +20,25 @@ namespace Aws namespace TranscribeLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); - static const int zh_CN_HASH = HashingUtils::HashString("zh-CN"); - static const int th_TH_HASH = HashingUtils::HashString("th-TH"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh-CN"); + static constexpr uint32_t th_TH_HASH = ConstExprHashingUtils::HashString("th-TH"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); TranscribeLanguageCode GetTranscribeLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return TranscribeLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalContentIdentificationType.cpp index 358eaa76bcf..7038bba508a 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeMedicalContentIdentificationTypeMapper { - static const int PHI_HASH = HashingUtils::HashString("PHI"); + static constexpr uint32_t PHI_HASH = ConstExprHashingUtils::HashString("PHI"); TranscribeMedicalContentIdentificationType GetTranscribeMedicalContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHI_HASH) { return TranscribeMedicalContentIdentificationType::PHI; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalLanguageCode.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalLanguageCode.cpp index a80083d936e..572ea23b4f5 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalLanguageCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscribeMedicalLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); TranscribeMedicalLanguageCode GetTranscribeMedicalLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return TranscribeMedicalLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalRegion.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalRegion.cpp index 0a59449bfd1..186d613758f 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalRegion.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalRegion.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TranscribeMedicalRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int auto__HASH = HashingUtils::HashString("auto"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t auto__HASH = ConstExprHashingUtils::HashString("auto"); TranscribeMedicalRegion GetTranscribeMedicalRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return TranscribeMedicalRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalSpecialty.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalSpecialty.cpp index 09d07c85507..0a577b7de29 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalSpecialty.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalSpecialty.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TranscribeMedicalSpecialtyMapper { - static const int PRIMARYCARE_HASH = HashingUtils::HashString("PRIMARYCARE"); - static const int CARDIOLOGY_HASH = HashingUtils::HashString("CARDIOLOGY"); - static const int NEUROLOGY_HASH = HashingUtils::HashString("NEUROLOGY"); - static const int ONCOLOGY_HASH = HashingUtils::HashString("ONCOLOGY"); - static const int RADIOLOGY_HASH = HashingUtils::HashString("RADIOLOGY"); - static const int UROLOGY_HASH = HashingUtils::HashString("UROLOGY"); + static constexpr uint32_t PRIMARYCARE_HASH = ConstExprHashingUtils::HashString("PRIMARYCARE"); + static constexpr uint32_t CARDIOLOGY_HASH = ConstExprHashingUtils::HashString("CARDIOLOGY"); + static constexpr uint32_t NEUROLOGY_HASH = ConstExprHashingUtils::HashString("NEUROLOGY"); + static constexpr uint32_t ONCOLOGY_HASH = ConstExprHashingUtils::HashString("ONCOLOGY"); + static constexpr uint32_t RADIOLOGY_HASH = ConstExprHashingUtils::HashString("RADIOLOGY"); + static constexpr uint32_t UROLOGY_HASH = ConstExprHashingUtils::HashString("UROLOGY"); TranscribeMedicalSpecialty GetTranscribeMedicalSpecialtyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARYCARE_HASH) { return TranscribeMedicalSpecialty::PRIMARYCARE; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalType.cpp index 819de6f6034..0c66c9ca4be 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeMedicalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TranscribeMedicalTypeMapper { - static const int CONVERSATION_HASH = HashingUtils::HashString("CONVERSATION"); - static const int DICTATION_HASH = HashingUtils::HashString("DICTATION"); + static constexpr uint32_t CONVERSATION_HASH = ConstExprHashingUtils::HashString("CONVERSATION"); + static constexpr uint32_t DICTATION_HASH = ConstExprHashingUtils::HashString("DICTATION"); TranscribeMedicalType GetTranscribeMedicalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONVERSATION_HASH) { return TranscribeMedicalType::CONVERSATION; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribePartialResultsStability.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribePartialResultsStability.cpp index 9564760621f..08218693194 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribePartialResultsStability.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribePartialResultsStability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TranscribePartialResultsStabilityMapper { - static const int low_HASH = HashingUtils::HashString("low"); - static const int medium_HASH = HashingUtils::HashString("medium"); - static const int high_HASH = HashingUtils::HashString("high"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); + static constexpr uint32_t medium_HASH = ConstExprHashingUtils::HashString("medium"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); TranscribePartialResultsStability GetTranscribePartialResultsStabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == low_HASH) { return TranscribePartialResultsStability::low; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeRegion.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeRegion.cpp index c65f3f355f4..cf9775b564f 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeRegion.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeRegion.cpp @@ -20,23 +20,23 @@ namespace Aws namespace TranscribeRegionMapper { - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int auto__HASH = HashingUtils::HashString("auto"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t auto__HASH = ConstExprHashingUtils::HashString("auto"); TranscribeRegion GetTranscribeRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_2_HASH) { return TranscribeRegion::us_east_2; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeVocabularyFilterMethod.cpp b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeVocabularyFilterMethod.cpp index 07dc9bfa5dc..027ef32abd5 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/TranscribeVocabularyFilterMethod.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/TranscribeVocabularyFilterMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TranscribeVocabularyFilterMethodMapper { - static const int remove_HASH = HashingUtils::HashString("remove"); - static const int mask_HASH = HashingUtils::HashString("mask"); - static const int tag_HASH = HashingUtils::HashString("tag"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); + static constexpr uint32_t mask_HASH = ConstExprHashingUtils::HashString("mask"); + static constexpr uint32_t tag_HASH = ConstExprHashingUtils::HashString("tag"); TranscribeVocabularyFilterMethod GetTranscribeVocabularyFilterMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == remove_HASH) { return TranscribeVocabularyFilterMethod::remove; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/UserType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/UserType.cpp index 6d4eec874be..a6b38dd82ba 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/UserType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/UserType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserTypeMapper { - static const int PrivateUser_HASH = HashingUtils::HashString("PrivateUser"); - static const int SharedDevice_HASH = HashingUtils::HashString("SharedDevice"); + static constexpr uint32_t PrivateUser_HASH = ConstExprHashingUtils::HashString("PrivateUser"); + static constexpr uint32_t SharedDevice_HASH = ConstExprHashingUtils::HashString("SharedDevice"); UserType GetUserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PrivateUser_HASH) { return UserType::PrivateUser; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/VideoMuxType.cpp b/generated/src/aws-cpp-sdk-chime/source/model/VideoMuxType.cpp index 4095c6b6af8..e39c85fb146 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/VideoMuxType.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/VideoMuxType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VideoMuxTypeMapper { - static const int VideoOnly_HASH = HashingUtils::HashString("VideoOnly"); + static constexpr uint32_t VideoOnly_HASH = ConstExprHashingUtils::HashString("VideoOnly"); VideoMuxType GetVideoMuxTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VideoOnly_HASH) { return VideoMuxType::VideoOnly; diff --git a/generated/src/aws-cpp-sdk-chime/source/model/VoiceConnectorAwsRegion.cpp b/generated/src/aws-cpp-sdk-chime/source/model/VoiceConnectorAwsRegion.cpp index 9dba90efddc..81c1995d757 100644 --- a/generated/src/aws-cpp-sdk-chime/source/model/VoiceConnectorAwsRegion.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/model/VoiceConnectorAwsRegion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VoiceConnectorAwsRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); VoiceConnectorAwsRegion GetVoiceConnectorAwsRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return VoiceConnectorAwsRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsErrors.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsErrors.cpp index 98bb12ba931..52e7c37b6b1 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsErrors.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_CLEANROOMS_API AccessDeniedException CleanRoomsError::GetModeledE namespace CleanRoomsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AccessDeniedExceptionReason.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AccessDeniedExceptionReason.cpp index 5ecdd943ff1..6423449ca9a 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AccessDeniedExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AccessDeniedExceptionReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AccessDeniedExceptionReasonMapper { - static const int INSUFFICIENT_PERMISSIONS_HASH = HashingUtils::HashString("INSUFFICIENT_PERMISSIONS"); + static constexpr uint32_t INSUFFICIENT_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_PERMISSIONS"); AccessDeniedExceptionReason GetAccessDeniedExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSUFFICIENT_PERMISSIONS_HASH) { return AccessDeniedExceptionReason::INSUFFICIENT_PERMISSIONS; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregateFunctionName.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregateFunctionName.cpp index 3a25cb95a3e..cb35140f050 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregateFunctionName.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregateFunctionName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AggregateFunctionNameMapper { - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int SUM_DISTINCT_HASH = HashingUtils::HashString("SUM_DISTINCT"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int COUNT_DISTINCT_HASH = HashingUtils::HashString("COUNT_DISTINCT"); - static const int AVG_HASH = HashingUtils::HashString("AVG"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t SUM_DISTINCT_HASH = ConstExprHashingUtils::HashString("SUM_DISTINCT"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t COUNT_DISTINCT_HASH = ConstExprHashingUtils::HashString("COUNT_DISTINCT"); + static constexpr uint32_t AVG_HASH = ConstExprHashingUtils::HashString("AVG"); AggregateFunctionName GetAggregateFunctionNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_HASH) { return AggregateFunctionName::SUM; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregationType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregationType.cpp index 32d8764ebf9..5b2c3ecefae 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregationType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AggregationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AggregationTypeMapper { - static const int COUNT_DISTINCT_HASH = HashingUtils::HashString("COUNT_DISTINCT"); + static constexpr uint32_t COUNT_DISTINCT_HASH = ConstExprHashingUtils::HashString("COUNT_DISTINCT"); AggregationType GetAggregationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_DISTINCT_HASH) { return AggregationType::COUNT_DISTINCT; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisFormat.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisFormat.cpp index 3aff111b860..e75b03a53fe 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisFormat.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnalysisFormatMapper { - static const int SQL_HASH = HashingUtils::HashString("SQL"); + static constexpr uint32_t SQL_HASH = ConstExprHashingUtils::HashString("SQL"); AnalysisFormat GetAnalysisFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQL_HASH) { return AnalysisFormat::SQL; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisMethod.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisMethod.cpp index da0ab41c8a0..9f9ea888e70 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisMethod.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisMethod.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnalysisMethodMapper { - static const int DIRECT_QUERY_HASH = HashingUtils::HashString("DIRECT_QUERY"); + static constexpr uint32_t DIRECT_QUERY_HASH = ConstExprHashingUtils::HashString("DIRECT_QUERY"); AnalysisMethod GetAnalysisMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECT_QUERY_HASH) { return AnalysisMethod::DIRECT_QUERY; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisRuleType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisRuleType.cpp index 4cb2c1bc13e..9e986160d2c 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisRuleType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/AnalysisRuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalysisRuleTypeMapper { - static const int AGGREGATION_HASH = HashingUtils::HashString("AGGREGATION"); - static const int LIST_HASH = HashingUtils::HashString("LIST"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AGGREGATION_HASH = ConstExprHashingUtils::HashString("AGGREGATION"); + static constexpr uint32_t LIST_HASH = ConstExprHashingUtils::HashString("LIST"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); AnalysisRuleType GetAnalysisRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGGREGATION_HASH) { return AnalysisRuleType::AGGREGATION; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/CollaborationQueryLogStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/CollaborationQueryLogStatus.cpp index 88f7fe53795..8c79dd6ba12 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/CollaborationQueryLogStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/CollaborationQueryLogStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CollaborationQueryLogStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CollaborationQueryLogStatus GetCollaborationQueryLogStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CollaborationQueryLogStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConfiguredTableAnalysisRuleType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConfiguredTableAnalysisRuleType.cpp index 243b8302034..d5d5ec6f09c 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConfiguredTableAnalysisRuleType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConfiguredTableAnalysisRuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfiguredTableAnalysisRuleTypeMapper { - static const int AGGREGATION_HASH = HashingUtils::HashString("AGGREGATION"); - static const int LIST_HASH = HashingUtils::HashString("LIST"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AGGREGATION_HASH = ConstExprHashingUtils::HashString("AGGREGATION"); + static constexpr uint32_t LIST_HASH = ConstExprHashingUtils::HashString("LIST"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ConfiguredTableAnalysisRuleType GetConfiguredTableAnalysisRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGGREGATION_HASH) { return ConfiguredTableAnalysisRuleType::AGGREGATION; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConflictExceptionReason.cpp index 4d8a79df6d1..b70a8f838f7 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ConflictExceptionReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConflictExceptionReasonMapper { - static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("ALREADY_EXISTS"); - static const int SUBRESOURCES_EXIST_HASH = HashingUtils::HashString("SUBRESOURCES_EXIST"); - static const int INVALID_STATE_HASH = HashingUtils::HashString("INVALID_STATE"); + static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ALREADY_EXISTS"); + static constexpr uint32_t SUBRESOURCES_EXIST_HASH = ConstExprHashingUtils::HashString("SUBRESOURCES_EXIST"); + static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_STATE"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALREADY_EXISTS_HASH) { return ConflictExceptionReason::ALREADY_EXISTS; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/FilterableMemberStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/FilterableMemberStatus.cpp index 3d487b831d2..6929292be06 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/FilterableMemberStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/FilterableMemberStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterableMemberStatusMapper { - static const int INVITED_HASH = HashingUtils::HashString("INVITED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INVITED_HASH = ConstExprHashingUtils::HashString("INVITED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); FilterableMemberStatus GetFilterableMemberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVITED_HASH) { return FilterableMemberStatus::INVITED; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinOperator.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinOperator.cpp index 43285d6f572..efa0c3fbbde 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinOperator.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JoinOperatorMapper { - static const int OR_HASH = HashingUtils::HashString("OR"); - static const int AND_HASH = HashingUtils::HashString("AND"); + static constexpr uint32_t OR_HASH = ConstExprHashingUtils::HashString("OR"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); JoinOperator GetJoinOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OR_HASH) { return JoinOperator::OR; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinRequiredOption.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinRequiredOption.cpp index 0c55af50dd5..9cce0220574 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinRequiredOption.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/JoinRequiredOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace JoinRequiredOptionMapper { - static const int QUERY_RUNNER_HASH = HashingUtils::HashString("QUERY_RUNNER"); + static constexpr uint32_t QUERY_RUNNER_HASH = ConstExprHashingUtils::HashString("QUERY_RUNNER"); JoinRequiredOption GetJoinRequiredOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUERY_RUNNER_HASH) { return JoinRequiredOption::QUERY_RUNNER; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberAbility.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberAbility.cpp index 7c741ebab4e..a2b6586ddd8 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberAbility.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberAbility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MemberAbilityMapper { - static const int CAN_QUERY_HASH = HashingUtils::HashString("CAN_QUERY"); - static const int CAN_RECEIVE_RESULTS_HASH = HashingUtils::HashString("CAN_RECEIVE_RESULTS"); + static constexpr uint32_t CAN_QUERY_HASH = ConstExprHashingUtils::HashString("CAN_QUERY"); + static constexpr uint32_t CAN_RECEIVE_RESULTS_HASH = ConstExprHashingUtils::HashString("CAN_RECEIVE_RESULTS"); MemberAbility GetMemberAbilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAN_QUERY_HASH) { return MemberAbility::CAN_QUERY; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberStatus.cpp index 7c2061ba4d7..1f3bb4cedd7 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MemberStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MemberStatusMapper { - static const int INVITED_HASH = HashingUtils::HashString("INVITED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); + static constexpr uint32_t INVITED_HASH = ConstExprHashingUtils::HashString("INVITED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); MemberStatus GetMemberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVITED_HASH) { return MemberStatus::INVITED; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipQueryLogStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipQueryLogStatus.cpp index 08e1d073187..cbb45a7ae33 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipQueryLogStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipQueryLogStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MembershipQueryLogStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); MembershipQueryLogStatus GetMembershipQueryLogStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return MembershipQueryLogStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipStatus.cpp index dbb8629c33b..782c69b8749 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/MembershipStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MembershipStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); - static const int COLLABORATION_DELETED_HASH = HashingUtils::HashString("COLLABORATION_DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); + static constexpr uint32_t COLLABORATION_DELETED_HASH = ConstExprHashingUtils::HashString("COLLABORATION_DELETED"); MembershipStatus GetMembershipStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return MembershipStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ParameterType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ParameterType.cpp index 9b5a43dd321..d92fee7a6d0 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ParameterType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ParameterType.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ParameterTypeMapper { - static const int SMALLINT_HASH = HashingUtils::HashString("SMALLINT"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int DECIMAL_HASH = HashingUtils::HashString("DECIMAL"); - static const int REAL_HASH = HashingUtils::HashString("REAL"); - static const int DOUBLE_PRECISION_HASH = HashingUtils::HashString("DOUBLE_PRECISION"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int CHAR__HASH = HashingUtils::HashString("CHAR"); - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int TIMESTAMPTZ_HASH = HashingUtils::HashString("TIMESTAMPTZ"); - static const int TIME_HASH = HashingUtils::HashString("TIME"); - static const int TIMETZ_HASH = HashingUtils::HashString("TIMETZ"); - static const int VARBYTE_HASH = HashingUtils::HashString("VARBYTE"); + static constexpr uint32_t SMALLINT_HASH = ConstExprHashingUtils::HashString("SMALLINT"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t DECIMAL_HASH = ConstExprHashingUtils::HashString("DECIMAL"); + static constexpr uint32_t REAL_HASH = ConstExprHashingUtils::HashString("REAL"); + static constexpr uint32_t DOUBLE_PRECISION_HASH = ConstExprHashingUtils::HashString("DOUBLE_PRECISION"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t CHAR__HASH = ConstExprHashingUtils::HashString("CHAR"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t TIMESTAMPTZ_HASH = ConstExprHashingUtils::HashString("TIMESTAMPTZ"); + static constexpr uint32_t TIME_HASH = ConstExprHashingUtils::HashString("TIME"); + static constexpr uint32_t TIMETZ_HASH = ConstExprHashingUtils::HashString("TIMETZ"); + static constexpr uint32_t VARBYTE_HASH = ConstExprHashingUtils::HashString("VARBYTE"); ParameterType GetParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMALLINT_HASH) { return ParameterType::SMALLINT; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryStatus.cpp index d469e983ca7..821154daadd 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ProtectedQueryStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); ProtectedQueryStatus GetProtectedQueryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return ProtectedQueryStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryType.cpp index 191cb9eefb3..a17b3c85292 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ProtectedQueryType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProtectedQueryTypeMapper { - static const int SQL_HASH = HashingUtils::HashString("SQL"); + static constexpr uint32_t SQL_HASH = ConstExprHashingUtils::HashString("SQL"); ProtectedQueryType GetProtectedQueryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQL_HASH) { return ProtectedQueryType::SQL; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResourceType.cpp index 502aaeab47a..7a5f44b4bcf 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceTypeMapper { - static const int CONFIGURED_TABLE_HASH = HashingUtils::HashString("CONFIGURED_TABLE"); - static const int COLLABORATION_HASH = HashingUtils::HashString("COLLABORATION"); - static const int MEMBERSHIP_HASH = HashingUtils::HashString("MEMBERSHIP"); - static const int CONFIGURED_TABLE_ASSOCIATION_HASH = HashingUtils::HashString("CONFIGURED_TABLE_ASSOCIATION"); + static constexpr uint32_t CONFIGURED_TABLE_HASH = ConstExprHashingUtils::HashString("CONFIGURED_TABLE"); + static constexpr uint32_t COLLABORATION_HASH = ConstExprHashingUtils::HashString("COLLABORATION"); + static constexpr uint32_t MEMBERSHIP_HASH = ConstExprHashingUtils::HashString("MEMBERSHIP"); + static constexpr uint32_t CONFIGURED_TABLE_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("CONFIGURED_TABLE_ASSOCIATION"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIGURED_TABLE_HASH) { return ResourceType::CONFIGURED_TABLE; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResultFormat.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResultFormat.cpp index 1cc3543cb36..78ef1add464 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResultFormat.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ResultFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResultFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); ResultFormat GetResultFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return ResultFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ScalarFunctions.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ScalarFunctions.cpp index b74ea9ddbe3..c20800fb820 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ScalarFunctions.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ScalarFunctions.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ScalarFunctionsMapper { - static const int TRUNC_HASH = HashingUtils::HashString("TRUNC"); - static const int ABS_HASH = HashingUtils::HashString("ABS"); - static const int CEILING_HASH = HashingUtils::HashString("CEILING"); - static const int FLOOR_HASH = HashingUtils::HashString("FLOOR"); - static const int LN_HASH = HashingUtils::HashString("LN"); - static const int LOG_HASH = HashingUtils::HashString("LOG"); - static const int ROUND_HASH = HashingUtils::HashString("ROUND"); - static const int SQRT_HASH = HashingUtils::HashString("SQRT"); - static const int CAST_HASH = HashingUtils::HashString("CAST"); - static const int LOWER_HASH = HashingUtils::HashString("LOWER"); - static const int RTRIM_HASH = HashingUtils::HashString("RTRIM"); - static const int UPPER_HASH = HashingUtils::HashString("UPPER"); - static const int COALESCE_HASH = HashingUtils::HashString("COALESCE"); + static constexpr uint32_t TRUNC_HASH = ConstExprHashingUtils::HashString("TRUNC"); + static constexpr uint32_t ABS_HASH = ConstExprHashingUtils::HashString("ABS"); + static constexpr uint32_t CEILING_HASH = ConstExprHashingUtils::HashString("CEILING"); + static constexpr uint32_t FLOOR_HASH = ConstExprHashingUtils::HashString("FLOOR"); + static constexpr uint32_t LN_HASH = ConstExprHashingUtils::HashString("LN"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); + static constexpr uint32_t ROUND_HASH = ConstExprHashingUtils::HashString("ROUND"); + static constexpr uint32_t SQRT_HASH = ConstExprHashingUtils::HashString("SQRT"); + static constexpr uint32_t CAST_HASH = ConstExprHashingUtils::HashString("CAST"); + static constexpr uint32_t LOWER_HASH = ConstExprHashingUtils::HashString("LOWER"); + static constexpr uint32_t RTRIM_HASH = ConstExprHashingUtils::HashString("RTRIM"); + static constexpr uint32_t UPPER_HASH = ConstExprHashingUtils::HashString("UPPER"); + static constexpr uint32_t COALESCE_HASH = ConstExprHashingUtils::HashString("COALESCE"); ScalarFunctions GetScalarFunctionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUNC_HASH) { return ScalarFunctions::TRUNC; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/SchemaType.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/SchemaType.cpp index 2014b5af91c..cb2a7a22a5c 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/SchemaType.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/SchemaType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SchemaTypeMapper { - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); SchemaType GetSchemaTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABLE_HASH) { return SchemaType::TABLE; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/TargetProtectedQueryStatus.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/TargetProtectedQueryStatus.cpp index 5f5e1d21368..a3a6c209a3a 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/TargetProtectedQueryStatus.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/TargetProtectedQueryStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetProtectedQueryStatusMapper { - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); TargetProtectedQueryStatus GetTargetProtectedQueryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCELLED_HASH) { return TargetProtectedQueryStatus::CANCELLED; diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ValidationExceptionReason.cpp index bab4874645c..32af6570228 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int INVALID_CONFIGURATION_HASH = HashingUtils::HashString("INVALID_CONFIGURATION"); - static const int INVALID_QUERY_HASH = HashingUtils::HashString("INVALID_QUERY"); - static const int IAM_SYNCHRONIZATION_DELAY_HASH = HashingUtils::HashString("IAM_SYNCHRONIZATION_DELAY"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INVALID_CONFIGURATION"); + static constexpr uint32_t INVALID_QUERY_HASH = ConstExprHashingUtils::HashString("INVALID_QUERY"); + static constexpr uint32_t IAM_SYNCHRONIZATION_DELAY_HASH = ConstExprHashingUtils::HashString("IAM_SYNCHRONIZATION_DELAY"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIELD_VALIDATION_FAILED_HASH) { return ValidationExceptionReason::FIELD_VALIDATION_FAILED; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Errors.cpp b/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Errors.cpp index 5e5cdc1c79b..49fee81ab19 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Errors.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Errors.cpp @@ -18,19 +18,19 @@ namespace Cloud9 namespace Cloud9ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int CONCURRENT_ACCESS_HASH = HashingUtils::HashString("ConcurrentAccessException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t CONCURRENT_ACCESS_HASH = ConstExprHashingUtils::HashString("ConcurrentAccessException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/ConnectionType.cpp index 03a07fae73c..3c0bd02b08f 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/ConnectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionTypeMapper { - static const int CONNECT_SSH_HASH = HashingUtils::HashString("CONNECT_SSH"); - static const int CONNECT_SSM_HASH = HashingUtils::HashString("CONNECT_SSM"); + static constexpr uint32_t CONNECT_SSH_HASH = ConstExprHashingUtils::HashString("CONNECT_SSH"); + static constexpr uint32_t CONNECT_SSM_HASH = ConstExprHashingUtils::HashString("CONNECT_SSM"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECT_SSH_HASH) { return ConnectionType::CONNECT_SSH; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentLifecycleStatus.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentLifecycleStatus.cpp index d1a7777b4a2..f58bbace986 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentLifecycleStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentLifecycleStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EnvironmentLifecycleStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); EnvironmentLifecycleStatus GetEnvironmentLifecycleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return EnvironmentLifecycleStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentStatus.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentStatus.cpp index a2d98a0bb9a..40d02bd1600 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace EnvironmentStatusMapper { - static const int error_HASH = HashingUtils::HashString("error"); - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int connecting_HASH = HashingUtils::HashString("connecting"); - static const int ready_HASH = HashingUtils::HashString("ready"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t connecting_HASH = ConstExprHashingUtils::HashString("connecting"); + static constexpr uint32_t ready_HASH = ConstExprHashingUtils::HashString("ready"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); EnvironmentStatus GetEnvironmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == error_HASH) { return EnvironmentStatus::error; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentType.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentType.cpp index 8a0ab514dce..8f57ece1a22 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentType.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/EnvironmentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnvironmentTypeMapper { - static const int ssh_HASH = HashingUtils::HashString("ssh"); - static const int ec2_HASH = HashingUtils::HashString("ec2"); + static constexpr uint32_t ssh_HASH = ConstExprHashingUtils::HashString("ssh"); + static constexpr uint32_t ec2_HASH = ConstExprHashingUtils::HashString("ec2"); EnvironmentType GetEnvironmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ssh_HASH) { return EnvironmentType::ssh; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsAction.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsAction.cpp index 4b5ac67eb7f..dcc577b0b82 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsAction.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManagedCredentialsActionMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); ManagedCredentialsAction GetManagedCredentialsActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return ManagedCredentialsAction::ENABLE; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsStatus.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsStatus.cpp index 9592fbe70c9..b7b01e4753a 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/ManagedCredentialsStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ManagedCredentialsStatusMapper { - static const int ENABLED_ON_CREATE_HASH = HashingUtils::HashString("ENABLED_ON_CREATE"); - static const int ENABLED_BY_OWNER_HASH = HashingUtils::HashString("ENABLED_BY_OWNER"); - static const int DISABLED_BY_DEFAULT_HASH = HashingUtils::HashString("DISABLED_BY_DEFAULT"); - static const int DISABLED_BY_OWNER_HASH = HashingUtils::HashString("DISABLED_BY_OWNER"); - static const int DISABLED_BY_COLLABORATOR_HASH = HashingUtils::HashString("DISABLED_BY_COLLABORATOR"); - static const int PENDING_REMOVAL_BY_COLLABORATOR_HASH = HashingUtils::HashString("PENDING_REMOVAL_BY_COLLABORATOR"); - static const int PENDING_START_REMOVAL_BY_COLLABORATOR_HASH = HashingUtils::HashString("PENDING_START_REMOVAL_BY_COLLABORATOR"); - static const int PENDING_REMOVAL_BY_OWNER_HASH = HashingUtils::HashString("PENDING_REMOVAL_BY_OWNER"); - static const int PENDING_START_REMOVAL_BY_OWNER_HASH = HashingUtils::HashString("PENDING_START_REMOVAL_BY_OWNER"); - static const int FAILED_REMOVAL_BY_COLLABORATOR_HASH = HashingUtils::HashString("FAILED_REMOVAL_BY_COLLABORATOR"); - static const int FAILED_REMOVAL_BY_OWNER_HASH = HashingUtils::HashString("FAILED_REMOVAL_BY_OWNER"); + static constexpr uint32_t ENABLED_ON_CREATE_HASH = ConstExprHashingUtils::HashString("ENABLED_ON_CREATE"); + static constexpr uint32_t ENABLED_BY_OWNER_HASH = ConstExprHashingUtils::HashString("ENABLED_BY_OWNER"); + static constexpr uint32_t DISABLED_BY_DEFAULT_HASH = ConstExprHashingUtils::HashString("DISABLED_BY_DEFAULT"); + static constexpr uint32_t DISABLED_BY_OWNER_HASH = ConstExprHashingUtils::HashString("DISABLED_BY_OWNER"); + static constexpr uint32_t DISABLED_BY_COLLABORATOR_HASH = ConstExprHashingUtils::HashString("DISABLED_BY_COLLABORATOR"); + static constexpr uint32_t PENDING_REMOVAL_BY_COLLABORATOR_HASH = ConstExprHashingUtils::HashString("PENDING_REMOVAL_BY_COLLABORATOR"); + static constexpr uint32_t PENDING_START_REMOVAL_BY_COLLABORATOR_HASH = ConstExprHashingUtils::HashString("PENDING_START_REMOVAL_BY_COLLABORATOR"); + static constexpr uint32_t PENDING_REMOVAL_BY_OWNER_HASH = ConstExprHashingUtils::HashString("PENDING_REMOVAL_BY_OWNER"); + static constexpr uint32_t PENDING_START_REMOVAL_BY_OWNER_HASH = ConstExprHashingUtils::HashString("PENDING_START_REMOVAL_BY_OWNER"); + static constexpr uint32_t FAILED_REMOVAL_BY_COLLABORATOR_HASH = ConstExprHashingUtils::HashString("FAILED_REMOVAL_BY_COLLABORATOR"); + static constexpr uint32_t FAILED_REMOVAL_BY_OWNER_HASH = ConstExprHashingUtils::HashString("FAILED_REMOVAL_BY_OWNER"); ManagedCredentialsStatus GetManagedCredentialsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_ON_CREATE_HASH) { return ManagedCredentialsStatus::ENABLED_ON_CREATE; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/MemberPermissions.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/MemberPermissions.cpp index c993bc73f6d..5223e46cbc9 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/MemberPermissions.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/MemberPermissions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MemberPermissionsMapper { - static const int read_write_HASH = HashingUtils::HashString("read-write"); - static const int read_only_HASH = HashingUtils::HashString("read-only"); + static constexpr uint32_t read_write_HASH = ConstExprHashingUtils::HashString("read-write"); + static constexpr uint32_t read_only_HASH = ConstExprHashingUtils::HashString("read-only"); MemberPermissions GetMemberPermissionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == read_write_HASH) { return MemberPermissions::read_write; diff --git a/generated/src/aws-cpp-sdk-cloud9/source/model/Permissions.cpp b/generated/src/aws-cpp-sdk-cloud9/source/model/Permissions.cpp index 1602a7cfde3..464765ad41b 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/model/Permissions.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/model/Permissions.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PermissionsMapper { - static const int owner_HASH = HashingUtils::HashString("owner"); - static const int read_write_HASH = HashingUtils::HashString("read-write"); - static const int read_only_HASH = HashingUtils::HashString("read-only"); + static constexpr uint32_t owner_HASH = ConstExprHashingUtils::HashString("owner"); + static constexpr uint32_t read_write_HASH = ConstExprHashingUtils::HashString("read-write"); + static constexpr uint32_t read_only_HASH = ConstExprHashingUtils::HashString("read-only"); Permissions GetPermissionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == owner_HASH) { return Permissions::owner; diff --git a/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiErrors.cpp b/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiErrors.cpp index ef06e1b6ed3..4492a5e48ed 100644 --- a/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiErrors.cpp @@ -18,30 +18,30 @@ namespace CloudControlApi namespace CloudControlApiErrorMapper { -static const int HANDLER_INTERNAL_FAILURE_HASH = HashingUtils::HashString("HandlerInternalFailureException"); -static const int NETWORK_FAILURE_HASH = HashingUtils::HashString("NetworkFailureException"); -static const int HANDLER_FAILURE_HASH = HashingUtils::HashString("HandlerFailureException"); -static const int GENERAL_SERVICE_HASH = HashingUtils::HashString("GeneralServiceException"); -static const int CONCURRENT_OPERATION_HASH = HashingUtils::HashString("ConcurrentOperationException"); -static const int PRIVATE_TYPE_HASH = HashingUtils::HashString("PrivateTypeException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException"); -static const int NOT_UPDATABLE_HASH = HashingUtils::HashString("NotUpdatableException"); -static const int TYPE_NOT_FOUND_HASH = HashingUtils::HashString("TypeNotFoundException"); -static const int UNSUPPORTED_ACTION_HASH = HashingUtils::HashString("UnsupportedActionException"); -static const int NOT_STABILIZED_HASH = HashingUtils::HashString("NotStabilizedException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int INVALID_CREDENTIALS_HASH = HashingUtils::HashString("InvalidCredentialsException"); -static const int SERVICE_INTERNAL_ERROR_HASH = HashingUtils::HashString("ServiceInternalErrorException"); -static const int CLIENT_TOKEN_CONFLICT_HASH = HashingUtils::HashString("ClientTokenConflictException"); -static const int REQUEST_TOKEN_NOT_FOUND_HASH = HashingUtils::HashString("RequestTokenNotFoundException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t HANDLER_INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("HandlerInternalFailureException"); +static constexpr uint32_t NETWORK_FAILURE_HASH = ConstExprHashingUtils::HashString("NetworkFailureException"); +static constexpr uint32_t HANDLER_FAILURE_HASH = ConstExprHashingUtils::HashString("HandlerFailureException"); +static constexpr uint32_t GENERAL_SERVICE_HASH = ConstExprHashingUtils::HashString("GeneralServiceException"); +static constexpr uint32_t CONCURRENT_OPERATION_HASH = ConstExprHashingUtils::HashString("ConcurrentOperationException"); +static constexpr uint32_t PRIVATE_TYPE_HASH = ConstExprHashingUtils::HashString("PrivateTypeException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceededException"); +static constexpr uint32_t NOT_UPDATABLE_HASH = ConstExprHashingUtils::HashString("NotUpdatableException"); +static constexpr uint32_t TYPE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TypeNotFoundException"); +static constexpr uint32_t UNSUPPORTED_ACTION_HASH = ConstExprHashingUtils::HashString("UnsupportedActionException"); +static constexpr uint32_t NOT_STABILIZED_HASH = ConstExprHashingUtils::HashString("NotStabilizedException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t INVALID_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("InvalidCredentialsException"); +static constexpr uint32_t SERVICE_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("ServiceInternalErrorException"); +static constexpr uint32_t CLIENT_TOKEN_CONFLICT_HASH = ConstExprHashingUtils::HashString("ClientTokenConflictException"); +static constexpr uint32_t REQUEST_TOKEN_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RequestTokenNotFoundException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == HANDLER_INTERNAL_FAILURE_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudcontrol/source/model/HandlerErrorCode.cpp b/generated/src/aws-cpp-sdk-cloudcontrol/source/model/HandlerErrorCode.cpp index 402f3b33188..c3727b9e2a9 100644 --- a/generated/src/aws-cpp-sdk-cloudcontrol/source/model/HandlerErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-cloudcontrol/source/model/HandlerErrorCode.cpp @@ -20,26 +20,26 @@ namespace Aws namespace HandlerErrorCodeMapper { - static const int NotUpdatable_HASH = HashingUtils::HashString("NotUpdatable"); - static const int InvalidRequest_HASH = HashingUtils::HashString("InvalidRequest"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int InvalidCredentials_HASH = HashingUtils::HashString("InvalidCredentials"); - static const int AlreadyExists_HASH = HashingUtils::HashString("AlreadyExists"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int ResourceConflict_HASH = HashingUtils::HashString("ResourceConflict"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); - static const int ServiceLimitExceeded_HASH = HashingUtils::HashString("ServiceLimitExceeded"); - static const int NotStabilized_HASH = HashingUtils::HashString("NotStabilized"); - static const int GeneralServiceException_HASH = HashingUtils::HashString("GeneralServiceException"); - static const int ServiceInternalError_HASH = HashingUtils::HashString("ServiceInternalError"); - static const int ServiceTimeout_HASH = HashingUtils::HashString("ServiceTimeout"); - static const int NetworkFailure_HASH = HashingUtils::HashString("NetworkFailure"); - static const int InternalFailure_HASH = HashingUtils::HashString("InternalFailure"); + static constexpr uint32_t NotUpdatable_HASH = ConstExprHashingUtils::HashString("NotUpdatable"); + static constexpr uint32_t InvalidRequest_HASH = ConstExprHashingUtils::HashString("InvalidRequest"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t InvalidCredentials_HASH = ConstExprHashingUtils::HashString("InvalidCredentials"); + static constexpr uint32_t AlreadyExists_HASH = ConstExprHashingUtils::HashString("AlreadyExists"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t ResourceConflict_HASH = ConstExprHashingUtils::HashString("ResourceConflict"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); + static constexpr uint32_t ServiceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceeded"); + static constexpr uint32_t NotStabilized_HASH = ConstExprHashingUtils::HashString("NotStabilized"); + static constexpr uint32_t GeneralServiceException_HASH = ConstExprHashingUtils::HashString("GeneralServiceException"); + static constexpr uint32_t ServiceInternalError_HASH = ConstExprHashingUtils::HashString("ServiceInternalError"); + static constexpr uint32_t ServiceTimeout_HASH = ConstExprHashingUtils::HashString("ServiceTimeout"); + static constexpr uint32_t NetworkFailure_HASH = ConstExprHashingUtils::HashString("NetworkFailure"); + static constexpr uint32_t InternalFailure_HASH = ConstExprHashingUtils::HashString("InternalFailure"); HandlerErrorCode GetHandlerErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotUpdatable_HASH) { return HandlerErrorCode::NotUpdatable; diff --git a/generated/src/aws-cpp-sdk-cloudcontrol/source/model/Operation.cpp b/generated/src/aws-cpp-sdk-cloudcontrol/source/model/Operation.cpp index e08f61df18f..c25dff691da 100644 --- a/generated/src/aws-cpp-sdk-cloudcontrol/source/model/Operation.cpp +++ b/generated/src/aws-cpp-sdk-cloudcontrol/source/model/Operation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperationMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); Operation GetOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return Operation::CREATE; diff --git a/generated/src/aws-cpp-sdk-cloudcontrol/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-cloudcontrol/source/model/OperationStatus.cpp index 8304e336c5a..1799527ad27 100644 --- a/generated/src/aws-cpp-sdk-cloudcontrol/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudcontrol/source/model/OperationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OperationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCEL_IN_PROGRESS_HASH = HashingUtils::HashString("CANCEL_IN_PROGRESS"); - static const int CANCEL_COMPLETE_HASH = HashingUtils::HashString("CANCEL_COMPLETE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCEL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CANCEL_IN_PROGRESS"); + static constexpr uint32_t CANCEL_COMPLETE_HASH = ConstExprHashingUtils::HashString("CANCEL_COMPLETE"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return OperationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryErrors.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryErrors.cpp index 3e9d725ad8a..9732d7c2669 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryErrors.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryErrors.cpp @@ -26,43 +26,43 @@ template<> AWS_CLOUDDIRECTORY_API BatchWriteException CloudDirectoryError::GetMo namespace CloudDirectoryErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_ATTACHMENT_HASH = HashingUtils::HashString("InvalidAttachmentException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int BATCH_WRITE_HASH = HashingUtils::HashString("BatchWriteException"); -static const int STILL_CONTAINS_LINKS_HASH = HashingUtils::HashString("StillContainsLinksException"); -static const int INVALID_TAGGING_REQUEST_HASH = HashingUtils::HashString("InvalidTaggingRequestException"); -static const int INVALID_RULE_HASH = HashingUtils::HashString("InvalidRuleException"); -static const int OBJECT_NOT_DETACHED_HASH = HashingUtils::HashString("ObjectNotDetachedException"); -static const int LINK_NAME_ALREADY_IN_USE_HASH = HashingUtils::HashString("LinkNameAlreadyInUseException"); -static const int CANNOT_LIST_PARENT_OF_ROOT_HASH = HashingUtils::HashString("CannotListParentOfRootException"); -static const int FACET_VALIDATION_HASH = HashingUtils::HashString("FacetValidationException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int FACET_ALREADY_EXISTS_HASH = HashingUtils::HashString("FacetAlreadyExistsException"); -static const int RETRYABLE_CONFLICT_HASH = HashingUtils::HashString("RetryableConflictException"); -static const int NOT_INDEX_HASH = HashingUtils::HashString("NotIndexException"); -static const int NOT_NODE_HASH = HashingUtils::HashString("NotNodeException"); -static const int DIRECTORY_NOT_DISABLED_HASH = HashingUtils::HashString("DirectoryNotDisabledException"); -static const int UNSUPPORTED_INDEX_TYPE_HASH = HashingUtils::HashString("UnsupportedIndexTypeException"); -static const int DIRECTORY_DELETED_HASH = HashingUtils::HashString("DirectoryDeletedException"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArnException"); -static const int INCOMPATIBLE_SCHEMA_HASH = HashingUtils::HashString("IncompatibleSchemaException"); -static const int INVALID_FACET_UPDATE_HASH = HashingUtils::HashString("InvalidFacetUpdateException"); -static const int FACET_IN_USE_HASH = HashingUtils::HashString("FacetInUseException"); -static const int INDEXED_ATTRIBUTE_MISSING_HASH = HashingUtils::HashString("IndexedAttributeMissingException"); -static const int DIRECTORY_ALREADY_EXISTS_HASH = HashingUtils::HashString("DirectoryAlreadyExistsException"); -static const int OBJECT_ALREADY_DETACHED_HASH = HashingUtils::HashString("ObjectAlreadyDetachedException"); -static const int SCHEMA_ALREADY_EXISTS_HASH = HashingUtils::HashString("SchemaAlreadyExistsException"); -static const int FACET_NOT_FOUND_HASH = HashingUtils::HashString("FacetNotFoundException"); -static const int DIRECTORY_NOT_ENABLED_HASH = HashingUtils::HashString("DirectoryNotEnabledException"); -static const int SCHEMA_ALREADY_PUBLISHED_HASH = HashingUtils::HashString("SchemaAlreadyPublishedException"); -static const int INVALID_SCHEMA_DOC_HASH = HashingUtils::HashString("InvalidSchemaDocException"); -static const int NOT_POLICY_HASH = HashingUtils::HashString("NotPolicyException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_ATTACHMENT_HASH = ConstExprHashingUtils::HashString("InvalidAttachmentException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t BATCH_WRITE_HASH = ConstExprHashingUtils::HashString("BatchWriteException"); +static constexpr uint32_t STILL_CONTAINS_LINKS_HASH = ConstExprHashingUtils::HashString("StillContainsLinksException"); +static constexpr uint32_t INVALID_TAGGING_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidTaggingRequestException"); +static constexpr uint32_t INVALID_RULE_HASH = ConstExprHashingUtils::HashString("InvalidRuleException"); +static constexpr uint32_t OBJECT_NOT_DETACHED_HASH = ConstExprHashingUtils::HashString("ObjectNotDetachedException"); +static constexpr uint32_t LINK_NAME_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("LinkNameAlreadyInUseException"); +static constexpr uint32_t CANNOT_LIST_PARENT_OF_ROOT_HASH = ConstExprHashingUtils::HashString("CannotListParentOfRootException"); +static constexpr uint32_t FACET_VALIDATION_HASH = ConstExprHashingUtils::HashString("FacetValidationException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t FACET_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FacetAlreadyExistsException"); +static constexpr uint32_t RETRYABLE_CONFLICT_HASH = ConstExprHashingUtils::HashString("RetryableConflictException"); +static constexpr uint32_t NOT_INDEX_HASH = ConstExprHashingUtils::HashString("NotIndexException"); +static constexpr uint32_t NOT_NODE_HASH = ConstExprHashingUtils::HashString("NotNodeException"); +static constexpr uint32_t DIRECTORY_NOT_DISABLED_HASH = ConstExprHashingUtils::HashString("DirectoryNotDisabledException"); +static constexpr uint32_t UNSUPPORTED_INDEX_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedIndexTypeException"); +static constexpr uint32_t DIRECTORY_DELETED_HASH = ConstExprHashingUtils::HashString("DirectoryDeletedException"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); +static constexpr uint32_t INCOMPATIBLE_SCHEMA_HASH = ConstExprHashingUtils::HashString("IncompatibleSchemaException"); +static constexpr uint32_t INVALID_FACET_UPDATE_HASH = ConstExprHashingUtils::HashString("InvalidFacetUpdateException"); +static constexpr uint32_t FACET_IN_USE_HASH = ConstExprHashingUtils::HashString("FacetInUseException"); +static constexpr uint32_t INDEXED_ATTRIBUTE_MISSING_HASH = ConstExprHashingUtils::HashString("IndexedAttributeMissingException"); +static constexpr uint32_t DIRECTORY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("DirectoryAlreadyExistsException"); +static constexpr uint32_t OBJECT_ALREADY_DETACHED_HASH = ConstExprHashingUtils::HashString("ObjectAlreadyDetachedException"); +static constexpr uint32_t SCHEMA_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("SchemaAlreadyExistsException"); +static constexpr uint32_t FACET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FacetNotFoundException"); +static constexpr uint32_t DIRECTORY_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("DirectoryNotEnabledException"); +static constexpr uint32_t SCHEMA_ALREADY_PUBLISHED_HASH = ConstExprHashingUtils::HashString("SchemaAlreadyPublishedException"); +static constexpr uint32_t INVALID_SCHEMA_DOC_HASH = ConstExprHashingUtils::HashString("InvalidSchemaDocException"); +static constexpr uint32_t NOT_POLICY_HASH = ConstExprHashingUtils::HashString("NotPolicyException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchReadExceptionType.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchReadExceptionType.cpp index 29bc5e5be75..3b57ce2872d 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchReadExceptionType.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchReadExceptionType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace BatchReadExceptionTypeMapper { - static const int ValidationException_HASH = HashingUtils::HashString("ValidationException"); - static const int InvalidArnException_HASH = HashingUtils::HashString("InvalidArnException"); - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int InvalidNextTokenException_HASH = HashingUtils::HashString("InvalidNextTokenException"); - static const int AccessDeniedException_HASH = HashingUtils::HashString("AccessDeniedException"); - static const int NotNodeException_HASH = HashingUtils::HashString("NotNodeException"); - static const int FacetValidationException_HASH = HashingUtils::HashString("FacetValidationException"); - static const int CannotListParentOfRootException_HASH = HashingUtils::HashString("CannotListParentOfRootException"); - static const int NotIndexException_HASH = HashingUtils::HashString("NotIndexException"); - static const int NotPolicyException_HASH = HashingUtils::HashString("NotPolicyException"); - static const int DirectoryNotEnabledException_HASH = HashingUtils::HashString("DirectoryNotEnabledException"); - static const int LimitExceededException_HASH = HashingUtils::HashString("LimitExceededException"); - static const int InternalServiceException_HASH = HashingUtils::HashString("InternalServiceException"); + static constexpr uint32_t ValidationException_HASH = ConstExprHashingUtils::HashString("ValidationException"); + static constexpr uint32_t InvalidArnException_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t InvalidNextTokenException_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); + static constexpr uint32_t AccessDeniedException_HASH = ConstExprHashingUtils::HashString("AccessDeniedException"); + static constexpr uint32_t NotNodeException_HASH = ConstExprHashingUtils::HashString("NotNodeException"); + static constexpr uint32_t FacetValidationException_HASH = ConstExprHashingUtils::HashString("FacetValidationException"); + static constexpr uint32_t CannotListParentOfRootException_HASH = ConstExprHashingUtils::HashString("CannotListParentOfRootException"); + static constexpr uint32_t NotIndexException_HASH = ConstExprHashingUtils::HashString("NotIndexException"); + static constexpr uint32_t NotPolicyException_HASH = ConstExprHashingUtils::HashString("NotPolicyException"); + static constexpr uint32_t DirectoryNotEnabledException_HASH = ConstExprHashingUtils::HashString("DirectoryNotEnabledException"); + static constexpr uint32_t LimitExceededException_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); + static constexpr uint32_t InternalServiceException_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); BatchReadExceptionType GetBatchReadExceptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ValidationException_HASH) { return BatchReadExceptionType::ValidationException; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchWriteExceptionType.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchWriteExceptionType.cpp index 7f33ec5a58b..dac312c5165 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchWriteExceptionType.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchWriteExceptionType.cpp @@ -20,29 +20,29 @@ namespace Aws namespace BatchWriteExceptionTypeMapper { - static const int InternalServiceException_HASH = HashingUtils::HashString("InternalServiceException"); - static const int ValidationException_HASH = HashingUtils::HashString("ValidationException"); - static const int InvalidArnException_HASH = HashingUtils::HashString("InvalidArnException"); - static const int LinkNameAlreadyInUseException_HASH = HashingUtils::HashString("LinkNameAlreadyInUseException"); - static const int StillContainsLinksException_HASH = HashingUtils::HashString("StillContainsLinksException"); - static const int FacetValidationException_HASH = HashingUtils::HashString("FacetValidationException"); - static const int ObjectNotDetachedException_HASH = HashingUtils::HashString("ObjectNotDetachedException"); - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int AccessDeniedException_HASH = HashingUtils::HashString("AccessDeniedException"); - static const int InvalidAttachmentException_HASH = HashingUtils::HashString("InvalidAttachmentException"); - static const int NotIndexException_HASH = HashingUtils::HashString("NotIndexException"); - static const int NotNodeException_HASH = HashingUtils::HashString("NotNodeException"); - static const int IndexedAttributeMissingException_HASH = HashingUtils::HashString("IndexedAttributeMissingException"); - static const int ObjectAlreadyDetachedException_HASH = HashingUtils::HashString("ObjectAlreadyDetachedException"); - static const int NotPolicyException_HASH = HashingUtils::HashString("NotPolicyException"); - static const int DirectoryNotEnabledException_HASH = HashingUtils::HashString("DirectoryNotEnabledException"); - static const int LimitExceededException_HASH = HashingUtils::HashString("LimitExceededException"); - static const int UnsupportedIndexTypeException_HASH = HashingUtils::HashString("UnsupportedIndexTypeException"); + static constexpr uint32_t InternalServiceException_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); + static constexpr uint32_t ValidationException_HASH = ConstExprHashingUtils::HashString("ValidationException"); + static constexpr uint32_t InvalidArnException_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); + static constexpr uint32_t LinkNameAlreadyInUseException_HASH = ConstExprHashingUtils::HashString("LinkNameAlreadyInUseException"); + static constexpr uint32_t StillContainsLinksException_HASH = ConstExprHashingUtils::HashString("StillContainsLinksException"); + static constexpr uint32_t FacetValidationException_HASH = ConstExprHashingUtils::HashString("FacetValidationException"); + static constexpr uint32_t ObjectNotDetachedException_HASH = ConstExprHashingUtils::HashString("ObjectNotDetachedException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t AccessDeniedException_HASH = ConstExprHashingUtils::HashString("AccessDeniedException"); + static constexpr uint32_t InvalidAttachmentException_HASH = ConstExprHashingUtils::HashString("InvalidAttachmentException"); + static constexpr uint32_t NotIndexException_HASH = ConstExprHashingUtils::HashString("NotIndexException"); + static constexpr uint32_t NotNodeException_HASH = ConstExprHashingUtils::HashString("NotNodeException"); + static constexpr uint32_t IndexedAttributeMissingException_HASH = ConstExprHashingUtils::HashString("IndexedAttributeMissingException"); + static constexpr uint32_t ObjectAlreadyDetachedException_HASH = ConstExprHashingUtils::HashString("ObjectAlreadyDetachedException"); + static constexpr uint32_t NotPolicyException_HASH = ConstExprHashingUtils::HashString("NotPolicyException"); + static constexpr uint32_t DirectoryNotEnabledException_HASH = ConstExprHashingUtils::HashString("DirectoryNotEnabledException"); + static constexpr uint32_t LimitExceededException_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); + static constexpr uint32_t UnsupportedIndexTypeException_HASH = ConstExprHashingUtils::HashString("UnsupportedIndexTypeException"); BatchWriteExceptionType GetBatchWriteExceptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalServiceException_HASH) { return BatchWriteExceptionType::InternalServiceException; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/ConsistencyLevel.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/ConsistencyLevel.cpp index 8f2715fb425..4ebd9735e0d 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/ConsistencyLevel.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/ConsistencyLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConsistencyLevelMapper { - static const int SERIALIZABLE_HASH = HashingUtils::HashString("SERIALIZABLE"); - static const int EVENTUAL_HASH = HashingUtils::HashString("EVENTUAL"); + static constexpr uint32_t SERIALIZABLE_HASH = ConstExprHashingUtils::HashString("SERIALIZABLE"); + static constexpr uint32_t EVENTUAL_HASH = ConstExprHashingUtils::HashString("EVENTUAL"); ConsistencyLevel GetConsistencyLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERIALIZABLE_HASH) { return ConsistencyLevel::SERIALIZABLE; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/DirectoryState.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/DirectoryState.cpp index 9e7aa61a6d4..bafca21a553 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/DirectoryState.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/DirectoryState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DirectoryStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); DirectoryState GetDirectoryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DirectoryState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetAttributeType.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetAttributeType.cpp index 83c4b36fd6f..427aa7df857 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetAttributeType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FacetAttributeTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int BINARY_HASH = HashingUtils::HashString("BINARY"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int DATETIME_HASH = HashingUtils::HashString("DATETIME"); - static const int VARIANT_HASH = HashingUtils::HashString("VARIANT"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t BINARY_HASH = ConstExprHashingUtils::HashString("BINARY"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t DATETIME_HASH = ConstExprHashingUtils::HashString("DATETIME"); + static constexpr uint32_t VARIANT_HASH = ConstExprHashingUtils::HashString("VARIANT"); FacetAttributeType GetFacetAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return FacetAttributeType::STRING; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetStyle.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetStyle.cpp index 3d501e32694..13e7cc4dffd 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetStyle.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/FacetStyle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FacetStyleMapper { - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); - static const int DYNAMIC_HASH = HashingUtils::HashString("DYNAMIC"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); + static constexpr uint32_t DYNAMIC_HASH = ConstExprHashingUtils::HashString("DYNAMIC"); FacetStyle GetFacetStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC__HASH) { return FacetStyle::STATIC_; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/ObjectType.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/ObjectType.cpp index f66b26caf93..cf6b1471952 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/ObjectType.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/ObjectType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ObjectTypeMapper { - static const int NODE_HASH = HashingUtils::HashString("NODE"); - static const int LEAF_NODE_HASH = HashingUtils::HashString("LEAF_NODE"); - static const int POLICY_HASH = HashingUtils::HashString("POLICY"); - static const int INDEX_HASH = HashingUtils::HashString("INDEX"); + static constexpr uint32_t NODE_HASH = ConstExprHashingUtils::HashString("NODE"); + static constexpr uint32_t LEAF_NODE_HASH = ConstExprHashingUtils::HashString("LEAF_NODE"); + static constexpr uint32_t POLICY_HASH = ConstExprHashingUtils::HashString("POLICY"); + static constexpr uint32_t INDEX_HASH = ConstExprHashingUtils::HashString("INDEX"); ObjectType GetObjectTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NODE_HASH) { return ObjectType::NODE; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/RangeMode.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/RangeMode.cpp index a45dd6123c1..dea1faf5c6c 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/RangeMode.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/RangeMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RangeModeMapper { - static const int FIRST_HASH = HashingUtils::HashString("FIRST"); - static const int LAST_HASH = HashingUtils::HashString("LAST"); - static const int LAST_BEFORE_MISSING_VALUES_HASH = HashingUtils::HashString("LAST_BEFORE_MISSING_VALUES"); - static const int INCLUSIVE_HASH = HashingUtils::HashString("INCLUSIVE"); - static const int EXCLUSIVE_HASH = HashingUtils::HashString("EXCLUSIVE"); + static constexpr uint32_t FIRST_HASH = ConstExprHashingUtils::HashString("FIRST"); + static constexpr uint32_t LAST_HASH = ConstExprHashingUtils::HashString("LAST"); + static constexpr uint32_t LAST_BEFORE_MISSING_VALUES_HASH = ConstExprHashingUtils::HashString("LAST_BEFORE_MISSING_VALUES"); + static constexpr uint32_t INCLUSIVE_HASH = ConstExprHashingUtils::HashString("INCLUSIVE"); + static constexpr uint32_t EXCLUSIVE_HASH = ConstExprHashingUtils::HashString("EXCLUSIVE"); RangeMode GetRangeModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIRST_HASH) { return RangeMode::FIRST; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/RequiredAttributeBehavior.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/RequiredAttributeBehavior.cpp index 071d6712983..b71e5e1800d 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/RequiredAttributeBehavior.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/RequiredAttributeBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RequiredAttributeBehaviorMapper { - static const int REQUIRED_ALWAYS_HASH = HashingUtils::HashString("REQUIRED_ALWAYS"); - static const int NOT_REQUIRED_HASH = HashingUtils::HashString("NOT_REQUIRED"); + static constexpr uint32_t REQUIRED_ALWAYS_HASH = ConstExprHashingUtils::HashString("REQUIRED_ALWAYS"); + static constexpr uint32_t NOT_REQUIRED_HASH = ConstExprHashingUtils::HashString("NOT_REQUIRED"); RequiredAttributeBehavior GetRequiredAttributeBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUIRED_ALWAYS_HASH) { return RequiredAttributeBehavior::REQUIRED_ALWAYS; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/RuleType.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/RuleType.cpp index e4cd7c1b6e4..5204151e542 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/RuleType.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/RuleType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RuleTypeMapper { - static const int BINARY_LENGTH_HASH = HashingUtils::HashString("BINARY_LENGTH"); - static const int NUMBER_COMPARISON_HASH = HashingUtils::HashString("NUMBER_COMPARISON"); - static const int STRING_FROM_SET_HASH = HashingUtils::HashString("STRING_FROM_SET"); - static const int STRING_LENGTH_HASH = HashingUtils::HashString("STRING_LENGTH"); + static constexpr uint32_t BINARY_LENGTH_HASH = ConstExprHashingUtils::HashString("BINARY_LENGTH"); + static constexpr uint32_t NUMBER_COMPARISON_HASH = ConstExprHashingUtils::HashString("NUMBER_COMPARISON"); + static constexpr uint32_t STRING_FROM_SET_HASH = ConstExprHashingUtils::HashString("STRING_FROM_SET"); + static constexpr uint32_t STRING_LENGTH_HASH = ConstExprHashingUtils::HashString("STRING_LENGTH"); RuleType GetRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BINARY_LENGTH_HASH) { return RuleType::BINARY_LENGTH; diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/model/UpdateActionType.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/model/UpdateActionType.cpp index 29ab0ac3214..d016580d33d 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/model/UpdateActionType.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/model/UpdateActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateActionTypeMapper { - static const int CREATE_OR_UPDATE_HASH = HashingUtils::HashString("CREATE_OR_UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_OR_UPDATE_HASH = ConstExprHashingUtils::HashString("CREATE_OR_UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); UpdateActionType GetUpdateActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_OR_UPDATE_HASH) { return UpdateActionType::CREATE_OR_UPDATE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp index 42ce1780928..35baa5e97f8 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationErrors.cpp @@ -18,33 +18,33 @@ namespace CloudFormation namespace CloudFormationErrorMapper { -static const int STACK_INSTANCE_NOT_FOUND_HASH = HashingUtils::HashString("StackInstanceNotFoundException"); -static const int TYPE_CONFIGURATION_NOT_FOUND_HASH = HashingUtils::HashString("TypeConfigurationNotFoundException"); -static const int STACK_SET_NOT_FOUND_HASH = HashingUtils::HashString("StackSetNotFoundException"); -static const int OPERATION_STATUS_CHECK_FAILED_HASH = HashingUtils::HashString("ConditionalCheckFailed"); -static const int C_F_N_REGISTRY_HASH = HashingUtils::HashString("CFNRegistryException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int OPERATION_IN_PROGRESS_HASH = HashingUtils::HashString("OperationInProgressException"); -static const int CHANGE_SET_NOT_FOUND_HASH = HashingUtils::HashString("ChangeSetNotFound"); -static const int OPERATION_ID_ALREADY_EXISTS_HASH = HashingUtils::HashString("OperationIdAlreadyExistsException"); -static const int STALE_REQUEST_HASH = HashingUtils::HashString("StaleRequestException"); -static const int OPERATION_NOT_FOUND_HASH = HashingUtils::HashString("OperationNotFoundException"); -static const int TYPE_NOT_FOUND_HASH = HashingUtils::HashString("TypeNotFoundException"); -static const int INVALID_CHANGE_SET_STATUS_HASH = HashingUtils::HashString("InvalidChangeSetStatus"); -static const int STACK_NOT_FOUND_HASH = HashingUtils::HashString("StackNotFoundException"); -static const int INSUFFICIENT_CAPABILITIES_HASH = HashingUtils::HashString("InsufficientCapabilitiesException"); -static const int CREATED_BUT_MODIFIED_HASH = HashingUtils::HashString("CreatedButModifiedException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int TOKEN_ALREADY_EXISTS_HASH = HashingUtils::HashString("TokenAlreadyExistsException"); -static const int NAME_ALREADY_EXISTS_HASH = HashingUtils::HashString("NameAlreadyExistsException"); -static const int STACK_SET_NOT_EMPTY_HASH = HashingUtils::HashString("StackSetNotEmptyException"); -static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransition"); +static constexpr uint32_t STACK_INSTANCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StackInstanceNotFoundException"); +static constexpr uint32_t TYPE_CONFIGURATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TypeConfigurationNotFoundException"); +static constexpr uint32_t STACK_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StackSetNotFoundException"); +static constexpr uint32_t OPERATION_STATUS_CHECK_FAILED_HASH = ConstExprHashingUtils::HashString("ConditionalCheckFailed"); +static constexpr uint32_t C_F_N_REGISTRY_HASH = ConstExprHashingUtils::HashString("CFNRegistryException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t OPERATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("OperationInProgressException"); +static constexpr uint32_t CHANGE_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ChangeSetNotFound"); +static constexpr uint32_t OPERATION_ID_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("OperationIdAlreadyExistsException"); +static constexpr uint32_t STALE_REQUEST_HASH = ConstExprHashingUtils::HashString("StaleRequestException"); +static constexpr uint32_t OPERATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OperationNotFoundException"); +static constexpr uint32_t TYPE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TypeNotFoundException"); +static constexpr uint32_t INVALID_CHANGE_SET_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidChangeSetStatus"); +static constexpr uint32_t STACK_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StackNotFoundException"); +static constexpr uint32_t INSUFFICIENT_CAPABILITIES_HASH = ConstExprHashingUtils::HashString("InsufficientCapabilitiesException"); +static constexpr uint32_t CREATED_BUT_MODIFIED_HASH = ConstExprHashingUtils::HashString("CreatedButModifiedException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t TOKEN_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TokenAlreadyExistsException"); +static constexpr uint32_t NAME_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("NameAlreadyExistsException"); +static constexpr uint32_t STACK_SET_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("StackSetNotEmptyException"); +static constexpr uint32_t INVALID_STATE_TRANSITION_HASH = ConstExprHashingUtils::HashString("InvalidStateTransition"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == STACK_INSTANCE_NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountFilterType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountFilterType.cpp index c896ac071be..ccf8e2cd471 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountFilterType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountFilterType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AccountFilterTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int INTERSECTION_HASH = HashingUtils::HashString("INTERSECTION"); - static const int DIFFERENCE_HASH = HashingUtils::HashString("DIFFERENCE"); - static const int UNION_HASH = HashingUtils::HashString("UNION"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t INTERSECTION_HASH = ConstExprHashingUtils::HashString("INTERSECTION"); + static constexpr uint32_t DIFFERENCE_HASH = ConstExprHashingUtils::HashString("DIFFERENCE"); + static constexpr uint32_t UNION_HASH = ConstExprHashingUtils::HashString("UNION"); AccountFilterType GetAccountFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AccountFilterType::NONE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountGateStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountGateStatus.cpp index cce674e490e..404b5c3f9e7 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountGateStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/AccountGateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccountGateStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); AccountGateStatus GetAccountGateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return AccountGateStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/CallAs.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/CallAs.cpp index 721662468d2..ad888dd3cb9 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/CallAs.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/CallAs.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CallAsMapper { - static const int SELF_HASH = HashingUtils::HashString("SELF"); - static const int DELEGATED_ADMIN_HASH = HashingUtils::HashString("DELEGATED_ADMIN"); + static constexpr uint32_t SELF_HASH = ConstExprHashingUtils::HashString("SELF"); + static constexpr uint32_t DELEGATED_ADMIN_HASH = ConstExprHashingUtils::HashString("DELEGATED_ADMIN"); CallAs GetCallAsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_HASH) { return CallAs::SELF; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/Capability.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/Capability.cpp index 433901a4e11..364eda77f7f 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/Capability.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/Capability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CapabilityMapper { - static const int CAPABILITY_IAM_HASH = HashingUtils::HashString("CAPABILITY_IAM"); - static const int CAPABILITY_NAMED_IAM_HASH = HashingUtils::HashString("CAPABILITY_NAMED_IAM"); - static const int CAPABILITY_AUTO_EXPAND_HASH = HashingUtils::HashString("CAPABILITY_AUTO_EXPAND"); + static constexpr uint32_t CAPABILITY_IAM_HASH = ConstExprHashingUtils::HashString("CAPABILITY_IAM"); + static constexpr uint32_t CAPABILITY_NAMED_IAM_HASH = ConstExprHashingUtils::HashString("CAPABILITY_NAMED_IAM"); + static constexpr uint32_t CAPABILITY_AUTO_EXPAND_HASH = ConstExprHashingUtils::HashString("CAPABILITY_AUTO_EXPAND"); Capability GetCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAPABILITY_IAM_HASH) { return Capability::CAPABILITY_IAM; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/Category.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/Category.cpp index 553a15f928b..465dba2d2c7 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/Category.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/Category.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CategoryMapper { - static const int REGISTERED_HASH = HashingUtils::HashString("REGISTERED"); - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int THIRD_PARTY_HASH = HashingUtils::HashString("THIRD_PARTY"); - static const int AWS_TYPES_HASH = HashingUtils::HashString("AWS_TYPES"); + static constexpr uint32_t REGISTERED_HASH = ConstExprHashingUtils::HashString("REGISTERED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t THIRD_PARTY_HASH = ConstExprHashingUtils::HashString("THIRD_PARTY"); + static constexpr uint32_t AWS_TYPES_HASH = ConstExprHashingUtils::HashString("AWS_TYPES"); Category GetCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTERED_HASH) { return Category::REGISTERED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeAction.cpp index 3f6cf6e3047..b9666e65ecc 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeAction.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ChangeActionMapper { - static const int Add_HASH = HashingUtils::HashString("Add"); - static const int Modify_HASH = HashingUtils::HashString("Modify"); - static const int Remove_HASH = HashingUtils::HashString("Remove"); - static const int Import_HASH = HashingUtils::HashString("Import"); - static const int Dynamic_HASH = HashingUtils::HashString("Dynamic"); + static constexpr uint32_t Add_HASH = ConstExprHashingUtils::HashString("Add"); + static constexpr uint32_t Modify_HASH = ConstExprHashingUtils::HashString("Modify"); + static constexpr uint32_t Remove_HASH = ConstExprHashingUtils::HashString("Remove"); + static constexpr uint32_t Import_HASH = ConstExprHashingUtils::HashString("Import"); + static constexpr uint32_t Dynamic_HASH = ConstExprHashingUtils::HashString("Dynamic"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Add_HASH) { return ChangeAction::Add; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetHooksStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetHooksStatus.cpp index bede7d7b885..cd88e015eab 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetHooksStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetHooksStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeSetHooksStatusMapper { - static const int PLANNING_HASH = HashingUtils::HashString("PLANNING"); - static const int PLANNED_HASH = HashingUtils::HashString("PLANNED"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t PLANNING_HASH = ConstExprHashingUtils::HashString("PLANNING"); + static constexpr uint32_t PLANNED_HASH = ConstExprHashingUtils::HashString("PLANNED"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); ChangeSetHooksStatus GetChangeSetHooksStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLANNING_HASH) { return ChangeSetHooksStatus::PLANNING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetStatus.cpp index 1ada84e1256..6d766804d8d 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ChangeSetStatusMapper { - static const int CREATE_PENDING_HASH = HashingUtils::HashString("CREATE_PENDING"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int DELETE_PENDING_HASH = HashingUtils::HashString("DELETE_PENDING"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATE_PENDING_HASH = ConstExprHashingUtils::HashString("CREATE_PENDING"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t DELETE_PENDING_HASH = ConstExprHashingUtils::HashString("DELETE_PENDING"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ChangeSetStatus GetChangeSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_PENDING_HASH) { return ChangeSetStatus::CREATE_PENDING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetType.cpp index ecc4aa90466..0ce5cb577f2 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeSetTypeMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); ChangeSetType GetChangeSetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return ChangeSetType::CREATE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSource.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSource.cpp index abd4f209cf5..dfff023e37d 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSource.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeSource.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ChangeSourceMapper { - static const int ResourceReference_HASH = HashingUtils::HashString("ResourceReference"); - static const int ParameterReference_HASH = HashingUtils::HashString("ParameterReference"); - static const int ResourceAttribute_HASH = HashingUtils::HashString("ResourceAttribute"); - static const int DirectModification_HASH = HashingUtils::HashString("DirectModification"); - static const int Automatic_HASH = HashingUtils::HashString("Automatic"); + static constexpr uint32_t ResourceReference_HASH = ConstExprHashingUtils::HashString("ResourceReference"); + static constexpr uint32_t ParameterReference_HASH = ConstExprHashingUtils::HashString("ParameterReference"); + static constexpr uint32_t ResourceAttribute_HASH = ConstExprHashingUtils::HashString("ResourceAttribute"); + static constexpr uint32_t DirectModification_HASH = ConstExprHashingUtils::HashString("DirectModification"); + static constexpr uint32_t Automatic_HASH = ConstExprHashingUtils::HashString("Automatic"); ChangeSource GetChangeSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceReference_HASH) { return ChangeSource::ResourceReference; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeType.cpp index c3c7c0c8c7a..e43d33cfba5 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ChangeType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ChangeTypeMapper { - static const int Resource_HASH = HashingUtils::HashString("Resource"); + static constexpr uint32_t Resource_HASH = ConstExprHashingUtils::HashString("Resource"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Resource_HASH) { return ChangeType::Resource; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DeprecatedStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DeprecatedStatus.cpp index 6f31e013ea4..144d28cf3cb 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/DeprecatedStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DeprecatedStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeprecatedStatusMapper { - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); DeprecatedStatus GetDeprecatedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIVE_HASH) { return DeprecatedStatus::LIVE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/DifferenceType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/DifferenceType.cpp index 270e35c06db..5ad1ff492f9 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/DifferenceType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/DifferenceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DifferenceTypeMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); - static const int NOT_EQUAL_HASH = HashingUtils::HashString("NOT_EQUAL"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); + static constexpr uint32_t NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL"); DifferenceType GetDifferenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return DifferenceType::ADD; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/EvaluationType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/EvaluationType.cpp index 830924b291e..f7026152b99 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/EvaluationType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/EvaluationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationTypeMapper { - static const int Static_HASH = HashingUtils::HashString("Static"); - static const int Dynamic_HASH = HashingUtils::HashString("Dynamic"); + static constexpr uint32_t Static_HASH = ConstExprHashingUtils::HashString("Static"); + static constexpr uint32_t Dynamic_HASH = ConstExprHashingUtils::HashString("Dynamic"); EvaluationType GetEvaluationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Static_HASH) { return EvaluationType::Static; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ExecutionStatus.cpp index 492b847df78..342f64ecc1d 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ExecutionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ExecutionStatusMapper { - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int EXECUTE_IN_PROGRESS_HASH = HashingUtils::HashString("EXECUTE_IN_PROGRESS"); - static const int EXECUTE_COMPLETE_HASH = HashingUtils::HashString("EXECUTE_COMPLETE"); - static const int EXECUTE_FAILED_HASH = HashingUtils::HashString("EXECUTE_FAILED"); - static const int OBSOLETE_HASH = HashingUtils::HashString("OBSOLETE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t EXECUTE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("EXECUTE_IN_PROGRESS"); + static constexpr uint32_t EXECUTE_COMPLETE_HASH = ConstExprHashingUtils::HashString("EXECUTE_COMPLETE"); + static constexpr uint32_t EXECUTE_FAILED_HASH = ConstExprHashingUtils::HashString("EXECUTE_FAILED"); + static constexpr uint32_t OBSOLETE_HASH = ConstExprHashingUtils::HashString("OBSOLETE"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNAVAILABLE_HASH) { return ExecutionStatus::UNAVAILABLE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/HandlerErrorCode.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/HandlerErrorCode.cpp index d21e4f02a76..a503da03bd6 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/HandlerErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/HandlerErrorCode.cpp @@ -20,30 +20,30 @@ namespace Aws namespace HandlerErrorCodeMapper { - static const int NotUpdatable_HASH = HashingUtils::HashString("NotUpdatable"); - static const int InvalidRequest_HASH = HashingUtils::HashString("InvalidRequest"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int InvalidCredentials_HASH = HashingUtils::HashString("InvalidCredentials"); - static const int AlreadyExists_HASH = HashingUtils::HashString("AlreadyExists"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); - static const int ResourceConflict_HASH = HashingUtils::HashString("ResourceConflict"); - static const int Throttling_HASH = HashingUtils::HashString("Throttling"); - static const int ServiceLimitExceeded_HASH = HashingUtils::HashString("ServiceLimitExceeded"); - static const int NotStabilized_HASH = HashingUtils::HashString("NotStabilized"); - static const int GeneralServiceException_HASH = HashingUtils::HashString("GeneralServiceException"); - static const int ServiceInternalError_HASH = HashingUtils::HashString("ServiceInternalError"); - static const int NetworkFailure_HASH = HashingUtils::HashString("NetworkFailure"); - static const int InternalFailure_HASH = HashingUtils::HashString("InternalFailure"); - static const int InvalidTypeConfiguration_HASH = HashingUtils::HashString("InvalidTypeConfiguration"); - static const int HandlerInternalFailure_HASH = HashingUtils::HashString("HandlerInternalFailure"); - static const int NonCompliant_HASH = HashingUtils::HashString("NonCompliant"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int UnsupportedTarget_HASH = HashingUtils::HashString("UnsupportedTarget"); + static constexpr uint32_t NotUpdatable_HASH = ConstExprHashingUtils::HashString("NotUpdatable"); + static constexpr uint32_t InvalidRequest_HASH = ConstExprHashingUtils::HashString("InvalidRequest"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t InvalidCredentials_HASH = ConstExprHashingUtils::HashString("InvalidCredentials"); + static constexpr uint32_t AlreadyExists_HASH = ConstExprHashingUtils::HashString("AlreadyExists"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); + static constexpr uint32_t ResourceConflict_HASH = ConstExprHashingUtils::HashString("ResourceConflict"); + static constexpr uint32_t Throttling_HASH = ConstExprHashingUtils::HashString("Throttling"); + static constexpr uint32_t ServiceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceeded"); + static constexpr uint32_t NotStabilized_HASH = ConstExprHashingUtils::HashString("NotStabilized"); + static constexpr uint32_t GeneralServiceException_HASH = ConstExprHashingUtils::HashString("GeneralServiceException"); + static constexpr uint32_t ServiceInternalError_HASH = ConstExprHashingUtils::HashString("ServiceInternalError"); + static constexpr uint32_t NetworkFailure_HASH = ConstExprHashingUtils::HashString("NetworkFailure"); + static constexpr uint32_t InternalFailure_HASH = ConstExprHashingUtils::HashString("InternalFailure"); + static constexpr uint32_t InvalidTypeConfiguration_HASH = ConstExprHashingUtils::HashString("InvalidTypeConfiguration"); + static constexpr uint32_t HandlerInternalFailure_HASH = ConstExprHashingUtils::HashString("HandlerInternalFailure"); + static constexpr uint32_t NonCompliant_HASH = ConstExprHashingUtils::HashString("NonCompliant"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t UnsupportedTarget_HASH = ConstExprHashingUtils::HashString("UnsupportedTarget"); HandlerErrorCode GetHandlerErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotUpdatable_HASH) { return HandlerErrorCode::NotUpdatable; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookFailureMode.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookFailureMode.cpp index df1dc725da6..731a9e1bc54 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookFailureMode.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookFailureMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HookFailureModeMapper { - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); HookFailureMode GetHookFailureModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAIL_HASH) { return HookFailureMode::FAIL; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookInvocationPoint.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookInvocationPoint.cpp index 3e2f79a5d2c..ea1c0258960 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookInvocationPoint.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookInvocationPoint.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HookInvocationPointMapper { - static const int PRE_PROVISION_HASH = HashingUtils::HashString("PRE_PROVISION"); + static constexpr uint32_t PRE_PROVISION_HASH = ConstExprHashingUtils::HashString("PRE_PROVISION"); HookInvocationPoint GetHookInvocationPointForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRE_PROVISION_HASH) { return HookInvocationPoint::PRE_PROVISION; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookStatus.cpp index 2951ab5651e..11a599a5954 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HookStatusMapper { - static const int HOOK_IN_PROGRESS_HASH = HashingUtils::HashString("HOOK_IN_PROGRESS"); - static const int HOOK_COMPLETE_SUCCEEDED_HASH = HashingUtils::HashString("HOOK_COMPLETE_SUCCEEDED"); - static const int HOOK_COMPLETE_FAILED_HASH = HashingUtils::HashString("HOOK_COMPLETE_FAILED"); - static const int HOOK_FAILED_HASH = HashingUtils::HashString("HOOK_FAILED"); + static constexpr uint32_t HOOK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("HOOK_IN_PROGRESS"); + static constexpr uint32_t HOOK_COMPLETE_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("HOOK_COMPLETE_SUCCEEDED"); + static constexpr uint32_t HOOK_COMPLETE_FAILED_HASH = ConstExprHashingUtils::HashString("HOOK_COMPLETE_FAILED"); + static constexpr uint32_t HOOK_FAILED_HASH = ConstExprHashingUtils::HashString("HOOK_FAILED"); HookStatus GetHookStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOOK_IN_PROGRESS_HASH) { return HookStatus::HOOK_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookTargetType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookTargetType.cpp index 11e10936a12..60d05746b33 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/HookTargetType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/HookTargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HookTargetTypeMapper { - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); HookTargetType GetHookTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_HASH) { return HookTargetType::RESOURCE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/IdentityProvider.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/IdentityProvider.cpp index fbd38c16dc9..647b6234f43 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/IdentityProvider.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/IdentityProvider.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IdentityProviderMapper { - static const int AWS_Marketplace_HASH = HashingUtils::HashString("AWS_Marketplace"); - static const int GitHub_HASH = HashingUtils::HashString("GitHub"); - static const int Bitbucket_HASH = HashingUtils::HashString("Bitbucket"); + static constexpr uint32_t AWS_Marketplace_HASH = ConstExprHashingUtils::HashString("AWS_Marketplace"); + static constexpr uint32_t GitHub_HASH = ConstExprHashingUtils::HashString("GitHub"); + static constexpr uint32_t Bitbucket_HASH = ConstExprHashingUtils::HashString("Bitbucket"); IdentityProvider GetIdentityProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_Marketplace_HASH) { return IdentityProvider::AWS_Marketplace; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/OnFailure.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/OnFailure.cpp index 476ea1173da..a0cf9b25416 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/OnFailure.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/OnFailure.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OnFailureMapper { - static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); - static const int ROLLBACK_HASH = HashingUtils::HashString("ROLLBACK"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t DO_NOTHING_HASH = ConstExprHashingUtils::HashString("DO_NOTHING"); + static constexpr uint32_t ROLLBACK_HASH = ConstExprHashingUtils::HashString("ROLLBACK"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); OnFailure GetOnFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DO_NOTHING_HASH) { return OnFailure::DO_NOTHING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/OnStackFailure.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/OnStackFailure.cpp index 6773aee47dc..935ae5a1486 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/OnStackFailure.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/OnStackFailure.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OnStackFailureMapper { - static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); - static const int ROLLBACK_HASH = HashingUtils::HashString("ROLLBACK"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t DO_NOTHING_HASH = ConstExprHashingUtils::HashString("DO_NOTHING"); + static constexpr uint32_t ROLLBACK_HASH = ConstExprHashingUtils::HashString("ROLLBACK"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); OnStackFailure GetOnStackFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DO_NOTHING_HASH) { return OnStackFailure::DO_NOTHING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationResultFilterName.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationResultFilterName.cpp index c971fc3df81..741e19d203b 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationResultFilterName.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationResultFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OperationResultFilterNameMapper { - static const int OPERATION_RESULT_STATUS_HASH = HashingUtils::HashString("OPERATION_RESULT_STATUS"); + static constexpr uint32_t OPERATION_RESULT_STATUS_HASH = ConstExprHashingUtils::HashString("OPERATION_RESULT_STATUS"); OperationResultFilterName GetOperationResultFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPERATION_RESULT_STATUS_HASH) { return OperationResultFilterName::OPERATION_RESULT_STATUS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationStatus.cpp index d73deb4ae4b..4790b0cf1d4 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/OperationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OperationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return OperationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/OrganizationStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/OrganizationStatus.cpp index fb833895351..d382286a422 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/OrganizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/OrganizationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrganizationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DISABLED_PERMANENTLY_HASH = HashingUtils::HashString("DISABLED_PERMANENTLY"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DISABLED_PERMANENTLY_HASH = ConstExprHashingUtils::HashString("DISABLED_PERMANENTLY"); OrganizationStatus GetOrganizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return OrganizationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/PermissionModels.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/PermissionModels.cpp index 45ce2e0c374..92fd87f0f1f 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/PermissionModels.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/PermissionModels.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionModelsMapper { - static const int SERVICE_MANAGED_HASH = HashingUtils::HashString("SERVICE_MANAGED"); - static const int SELF_MANAGED_HASH = HashingUtils::HashString("SELF_MANAGED"); + static constexpr uint32_t SERVICE_MANAGED_HASH = ConstExprHashingUtils::HashString("SERVICE_MANAGED"); + static constexpr uint32_t SELF_MANAGED_HASH = ConstExprHashingUtils::HashString("SELF_MANAGED"); PermissionModels GetPermissionModelsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_MANAGED_HASH) { return PermissionModels::SERVICE_MANAGED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ProvisioningType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ProvisioningType.cpp index ffaf8e77d07..379e508a0c9 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ProvisioningType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ProvisioningType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProvisioningTypeMapper { - static const int NON_PROVISIONABLE_HASH = HashingUtils::HashString("NON_PROVISIONABLE"); - static const int IMMUTABLE_HASH = HashingUtils::HashString("IMMUTABLE"); - static const int FULLY_MUTABLE_HASH = HashingUtils::HashString("FULLY_MUTABLE"); + static constexpr uint32_t NON_PROVISIONABLE_HASH = ConstExprHashingUtils::HashString("NON_PROVISIONABLE"); + static constexpr uint32_t IMMUTABLE_HASH = ConstExprHashingUtils::HashString("IMMUTABLE"); + static constexpr uint32_t FULLY_MUTABLE_HASH = ConstExprHashingUtils::HashString("FULLY_MUTABLE"); ProvisioningType GetProvisioningTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NON_PROVISIONABLE_HASH) { return ProvisioningType::NON_PROVISIONABLE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/PublisherStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/PublisherStatus.cpp index 47d8c4e9f99..a0cf03d28d5 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/PublisherStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/PublisherStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PublisherStatusMapper { - static const int VERIFIED_HASH = HashingUtils::HashString("VERIFIED"); - static const int UNVERIFIED_HASH = HashingUtils::HashString("UNVERIFIED"); + static constexpr uint32_t VERIFIED_HASH = ConstExprHashingUtils::HashString("VERIFIED"); + static constexpr uint32_t UNVERIFIED_HASH = ConstExprHashingUtils::HashString("UNVERIFIED"); PublisherStatus GetPublisherStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERIFIED_HASH) { return PublisherStatus::VERIFIED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/RegionConcurrencyType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/RegionConcurrencyType.cpp index cf0c8978f96..147b279a65c 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/RegionConcurrencyType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/RegionConcurrencyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RegionConcurrencyTypeMapper { - static const int SEQUENTIAL_HASH = HashingUtils::HashString("SEQUENTIAL"); - static const int PARALLEL_HASH = HashingUtils::HashString("PARALLEL"); + static constexpr uint32_t SEQUENTIAL_HASH = ConstExprHashingUtils::HashString("SEQUENTIAL"); + static constexpr uint32_t PARALLEL_HASH = ConstExprHashingUtils::HashString("PARALLEL"); RegionConcurrencyType GetRegionConcurrencyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEQUENTIAL_HASH) { return RegionConcurrencyType::SEQUENTIAL; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistrationStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistrationStatus.cpp index 7ff9d3e48ce..388a2a7b5f3 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistrationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RegistrationStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RegistrationStatus GetRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return RegistrationStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistryType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistryType.cpp index d5861066251..88bf8a2636c 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistryType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/RegistryType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RegistryTypeMapper { - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int MODULE_HASH = HashingUtils::HashString("MODULE"); - static const int HOOK_HASH = HashingUtils::HashString("HOOK"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t MODULE_HASH = ConstExprHashingUtils::HashString("MODULE"); + static constexpr uint32_t HOOK_HASH = ConstExprHashingUtils::HashString("HOOK"); RegistryType GetRegistryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_HASH) { return RegistryType::RESOURCE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/Replacement.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/Replacement.cpp index fbc2c93f755..1d2f2457f72 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/Replacement.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/Replacement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReplacementMapper { - static const int True_HASH = HashingUtils::HashString("True"); - static const int False_HASH = HashingUtils::HashString("False"); - static const int Conditional_HASH = HashingUtils::HashString("Conditional"); + static constexpr uint32_t True_HASH = ConstExprHashingUtils::HashString("True"); + static constexpr uint32_t False_HASH = ConstExprHashingUtils::HashString("False"); + static constexpr uint32_t Conditional_HASH = ConstExprHashingUtils::HashString("Conditional"); Replacement GetReplacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == True_HASH) { return Replacement::True; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/RequiresRecreation.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/RequiresRecreation.cpp index 6cbd660fe0a..6da1895016c 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/RequiresRecreation.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/RequiresRecreation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequiresRecreationMapper { - static const int Never_HASH = HashingUtils::HashString("Never"); - static const int Conditionally_HASH = HashingUtils::HashString("Conditionally"); - static const int Always_HASH = HashingUtils::HashString("Always"); + static constexpr uint32_t Never_HASH = ConstExprHashingUtils::HashString("Never"); + static constexpr uint32_t Conditionally_HASH = ConstExprHashingUtils::HashString("Conditionally"); + static constexpr uint32_t Always_HASH = ConstExprHashingUtils::HashString("Always"); RequiresRecreation GetRequiresRecreationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Never_HASH) { return RequiresRecreation::Never; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceAttribute.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceAttribute.cpp index d6bdf0b8eb7..46d22211bde 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceAttribute.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceAttribute.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResourceAttributeMapper { - static const int Properties_HASH = HashingUtils::HashString("Properties"); - static const int Metadata_HASH = HashingUtils::HashString("Metadata"); - static const int CreationPolicy_HASH = HashingUtils::HashString("CreationPolicy"); - static const int UpdatePolicy_HASH = HashingUtils::HashString("UpdatePolicy"); - static const int DeletionPolicy_HASH = HashingUtils::HashString("DeletionPolicy"); - static const int Tags_HASH = HashingUtils::HashString("Tags"); + static constexpr uint32_t Properties_HASH = ConstExprHashingUtils::HashString("Properties"); + static constexpr uint32_t Metadata_HASH = ConstExprHashingUtils::HashString("Metadata"); + static constexpr uint32_t CreationPolicy_HASH = ConstExprHashingUtils::HashString("CreationPolicy"); + static constexpr uint32_t UpdatePolicy_HASH = ConstExprHashingUtils::HashString("UpdatePolicy"); + static constexpr uint32_t DeletionPolicy_HASH = ConstExprHashingUtils::HashString("DeletionPolicy"); + static constexpr uint32_t Tags_HASH = ConstExprHashingUtils::HashString("Tags"); ResourceAttribute GetResourceAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Properties_HASH) { return ResourceAttribute::Properties; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceSignalStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceSignalStatus.cpp index 907e2f3431e..4976f494198 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceSignalStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceSignalStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceSignalStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILURE_HASH = HashingUtils::HashString("FAILURE"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILURE_HASH = ConstExprHashingUtils::HashString("FAILURE"); ResourceSignalStatus GetResourceSignalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return ResourceSignalStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceStatus.cpp index c414088cfe5..bdcb7e131ef 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ResourceStatus.cpp @@ -20,33 +20,33 @@ namespace Aws namespace ResourceStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int DELETE_SKIPPED_HASH = HashingUtils::HashString("DELETE_SKIPPED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int IMPORT_FAILED_HASH = HashingUtils::HashString("IMPORT_FAILED"); - static const int IMPORT_COMPLETE_HASH = HashingUtils::HashString("IMPORT_COMPLETE"); - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); - static const int IMPORT_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_ROLLBACK_IN_PROGRESS"); - static const int IMPORT_ROLLBACK_FAILED_HASH = HashingUtils::HashString("IMPORT_ROLLBACK_FAILED"); - static const int IMPORT_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("IMPORT_ROLLBACK_COMPLETE"); - static const int UPDATE_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_IN_PROGRESS"); - static const int UPDATE_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_COMPLETE"); - static const int UPDATE_ROLLBACK_FAILED_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_FAILED"); - static const int ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("ROLLBACK_IN_PROGRESS"); - static const int ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("ROLLBACK_COMPLETE"); - static const int ROLLBACK_FAILED_HASH = HashingUtils::HashString("ROLLBACK_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t DELETE_SKIPPED_HASH = ConstExprHashingUtils::HashString("DELETE_SKIPPED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t IMPORT_FAILED_HASH = ConstExprHashingUtils::HashString("IMPORT_FAILED"); + static constexpr uint32_t IMPORT_COMPLETE_HASH = ConstExprHashingUtils::HashString("IMPORT_COMPLETE"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t IMPORT_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t IMPORT_ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("IMPORT_ROLLBACK_FAILED"); + static constexpr uint32_t IMPORT_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("IMPORT_ROLLBACK_COMPLETE"); + static constexpr uint32_t UPDATE_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t UPDATE_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_COMPLETE"); + static constexpr uint32_t UPDATE_ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_FAILED"); + static constexpr uint32_t ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("ROLLBACK_COMPLETE"); + static constexpr uint32_t ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_FAILED"); ResourceStatus GetResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ResourceStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp index 202a8b6dd26..8ec140e682d 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftDetectionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StackDriftDetectionStatusMapper { - static const int DETECTION_IN_PROGRESS_HASH = HashingUtils::HashString("DETECTION_IN_PROGRESS"); - static const int DETECTION_FAILED_HASH = HashingUtils::HashString("DETECTION_FAILED"); - static const int DETECTION_COMPLETE_HASH = HashingUtils::HashString("DETECTION_COMPLETE"); + static constexpr uint32_t DETECTION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DETECTION_IN_PROGRESS"); + static constexpr uint32_t DETECTION_FAILED_HASH = ConstExprHashingUtils::HashString("DETECTION_FAILED"); + static constexpr uint32_t DETECTION_COMPLETE_HASH = ConstExprHashingUtils::HashString("DETECTION_COMPLETE"); StackDriftDetectionStatus GetStackDriftDetectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DETECTION_IN_PROGRESS_HASH) { return StackDriftDetectionStatus::DETECTION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftStatus.cpp index 53e49e56dc9..fc355f0804b 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackDriftStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StackDriftStatusMapper { - static const int DRIFTED_HASH = HashingUtils::HashString("DRIFTED"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int NOT_CHECKED_HASH = HashingUtils::HashString("NOT_CHECKED"); + static constexpr uint32_t DRIFTED_HASH = ConstExprHashingUtils::HashString("DRIFTED"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t NOT_CHECKED_HASH = ConstExprHashingUtils::HashString("NOT_CHECKED"); StackDriftStatus GetStackDriftStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRIFTED_HASH) { return StackDriftStatus::DRIFTED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceDetailedStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceDetailedStatus.cpp index 3eb100b181e..2a8dc20e350 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceDetailedStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceDetailedStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StackInstanceDetailedStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int INOPERABLE_HASH = HashingUtils::HashString("INOPERABLE"); - static const int SKIPPED_SUSPENDED_ACCOUNT_HASH = HashingUtils::HashString("SKIPPED_SUSPENDED_ACCOUNT"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t INOPERABLE_HASH = ConstExprHashingUtils::HashString("INOPERABLE"); + static constexpr uint32_t SKIPPED_SUSPENDED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("SKIPPED_SUSPENDED_ACCOUNT"); StackInstanceDetailedStatus GetStackInstanceDetailedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return StackInstanceDetailedStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceFilterName.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceFilterName.cpp index 928bf94288b..5988acf98f8 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceFilterName.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StackInstanceFilterNameMapper { - static const int DETAILED_STATUS_HASH = HashingUtils::HashString("DETAILED_STATUS"); - static const int LAST_OPERATION_ID_HASH = HashingUtils::HashString("LAST_OPERATION_ID"); - static const int DRIFT_STATUS_HASH = HashingUtils::HashString("DRIFT_STATUS"); + static constexpr uint32_t DETAILED_STATUS_HASH = ConstExprHashingUtils::HashString("DETAILED_STATUS"); + static constexpr uint32_t LAST_OPERATION_ID_HASH = ConstExprHashingUtils::HashString("LAST_OPERATION_ID"); + static constexpr uint32_t DRIFT_STATUS_HASH = ConstExprHashingUtils::HashString("DRIFT_STATUS"); StackInstanceFilterName GetStackInstanceFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DETAILED_STATUS_HASH) { return StackInstanceFilterName::DETAILED_STATUS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceStatus.cpp index 9dde3537f06..0e5ef0e4631 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackInstanceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StackInstanceStatusMapper { - static const int CURRENT_HASH = HashingUtils::HashString("CURRENT"); - static const int OUTDATED_HASH = HashingUtils::HashString("OUTDATED"); - static const int INOPERABLE_HASH = HashingUtils::HashString("INOPERABLE"); + static constexpr uint32_t CURRENT_HASH = ConstExprHashingUtils::HashString("CURRENT"); + static constexpr uint32_t OUTDATED_HASH = ConstExprHashingUtils::HashString("OUTDATED"); + static constexpr uint32_t INOPERABLE_HASH = ConstExprHashingUtils::HashString("INOPERABLE"); StackInstanceStatus GetStackInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_HASH) { return StackInstanceStatus::CURRENT; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackResourceDriftStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackResourceDriftStatus.cpp index 799ed6cf87b..81983cc44c1 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackResourceDriftStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackResourceDriftStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StackResourceDriftStatusMapper { - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int MODIFIED_HASH = HashingUtils::HashString("MODIFIED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int NOT_CHECKED_HASH = HashingUtils::HashString("NOT_CHECKED"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t MODIFIED_HASH = ConstExprHashingUtils::HashString("MODIFIED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t NOT_CHECKED_HASH = ConstExprHashingUtils::HashString("NOT_CHECKED"); StackResourceDriftStatus GetStackResourceDriftStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_SYNC_HASH) { return StackResourceDriftStatus::IN_SYNC; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftDetectionStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftDetectionStatus.cpp index 57a11e5bffb..afc15a10d03 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftDetectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftDetectionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StackSetDriftDetectionStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PARTIAL_SUCCESS_HASH = HashingUtils::HashString("PARTIAL_SUCCESS"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PARTIAL_SUCCESS_HASH = ConstExprHashingUtils::HashString("PARTIAL_SUCCESS"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); StackSetDriftDetectionStatus GetStackSetDriftDetectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return StackSetDriftDetectionStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftStatus.cpp index 901adcd6835..88f7bc2e318 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetDriftStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StackSetDriftStatusMapper { - static const int DRIFTED_HASH = HashingUtils::HashString("DRIFTED"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int NOT_CHECKED_HASH = HashingUtils::HashString("NOT_CHECKED"); + static constexpr uint32_t DRIFTED_HASH = ConstExprHashingUtils::HashString("DRIFTED"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t NOT_CHECKED_HASH = ConstExprHashingUtils::HashString("NOT_CHECKED"); StackSetDriftStatus GetStackSetDriftStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRIFTED_HASH) { return StackSetDriftStatus::DRIFTED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationAction.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationAction.cpp index 30cb1ac2fc5..676439bd6ec 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationAction.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationAction.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StackSetOperationActionMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int DETECT_DRIFT_HASH = HashingUtils::HashString("DETECT_DRIFT"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t DETECT_DRIFT_HASH = ConstExprHashingUtils::HashString("DETECT_DRIFT"); StackSetOperationAction GetStackSetOperationActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return StackSetOperationAction::CREATE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationResultStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationResultStatus.cpp index 8b8e37b3aab..da67b3f8e37 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationResultStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationResultStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StackSetOperationResultStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); StackSetOperationResultStatus GetStackSetOperationResultStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return StackSetOperationResultStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationStatus.cpp index 7890a11b423..d4af3a28021 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetOperationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StackSetOperationStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); StackSetOperationStatus GetStackSetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return StackSetOperationStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetStatus.cpp index b135ee47df0..884d3662f4a 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackSetStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StackSetStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); StackSetStatus GetStackSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return StackSetStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackStatus.cpp index 732af709fac..a2e643341aa 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/StackStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/StackStatus.cpp @@ -20,34 +20,34 @@ namespace Aws namespace StackStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("ROLLBACK_IN_PROGRESS"); - static const int ROLLBACK_FAILED_HASH = HashingUtils::HashString("ROLLBACK_FAILED"); - static const int ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("ROLLBACK_COMPLETE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_COMPLETE_CLEANUP_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int UPDATE_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_IN_PROGRESS"); - static const int UPDATE_ROLLBACK_FAILED_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_FAILED"); - static const int UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"); - static const int UPDATE_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("UPDATE_ROLLBACK_COMPLETE"); - static const int REVIEW_IN_PROGRESS_HASH = HashingUtils::HashString("REVIEW_IN_PROGRESS"); - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); - static const int IMPORT_COMPLETE_HASH = HashingUtils::HashString("IMPORT_COMPLETE"); - static const int IMPORT_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_ROLLBACK_IN_PROGRESS"); - static const int IMPORT_ROLLBACK_FAILED_HASH = HashingUtils::HashString("IMPORT_ROLLBACK_FAILED"); - static const int IMPORT_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("IMPORT_ROLLBACK_COMPLETE"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_FAILED"); + static constexpr uint32_t ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("ROLLBACK_COMPLETE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_COMPLETE_CLEANUP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t UPDATE_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t UPDATE_ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_FAILED"); + static constexpr uint32_t UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"); + static constexpr uint32_t UPDATE_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_ROLLBACK_COMPLETE"); + static constexpr uint32_t REVIEW_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REVIEW_IN_PROGRESS"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t IMPORT_COMPLETE_HASH = ConstExprHashingUtils::HashString("IMPORT_COMPLETE"); + static constexpr uint32_t IMPORT_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t IMPORT_ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("IMPORT_ROLLBACK_FAILED"); + static constexpr uint32_t IMPORT_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("IMPORT_ROLLBACK_COMPLETE"); StackStatus GetStackStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return StackStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateStage.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateStage.cpp index 2d08defda6a..555fe286e9b 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateStage.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/TemplateStage.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateStageMapper { - static const int Original_HASH = HashingUtils::HashString("Original"); - static const int Processed_HASH = HashingUtils::HashString("Processed"); + static constexpr uint32_t Original_HASH = ConstExprHashingUtils::HashString("Original"); + static constexpr uint32_t Processed_HASH = ConstExprHashingUtils::HashString("Processed"); TemplateStage GetTemplateStageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Original_HASH) { return TemplateStage::Original; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/ThirdPartyType.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/ThirdPartyType.cpp index 07182ed0e5a..ffc3e95cd8e 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/ThirdPartyType.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/ThirdPartyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ThirdPartyTypeMapper { - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int MODULE_HASH = HashingUtils::HashString("MODULE"); - static const int HOOK_HASH = HashingUtils::HashString("HOOK"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t MODULE_HASH = ConstExprHashingUtils::HashString("MODULE"); + static constexpr uint32_t HOOK_HASH = ConstExprHashingUtils::HashString("HOOK"); ThirdPartyType GetThirdPartyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_HASH) { return ThirdPartyType::RESOURCE; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/TypeTestsStatus.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/TypeTestsStatus.cpp index 7060fb09b7d..4e1b94da8c3 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/TypeTestsStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/TypeTestsStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TypeTestsStatusMapper { - static const int PASSED_HASH = HashingUtils::HashString("PASSED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int NOT_TESTED_HASH = HashingUtils::HashString("NOT_TESTED"); + static constexpr uint32_t PASSED_HASH = ConstExprHashingUtils::HashString("PASSED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t NOT_TESTED_HASH = ConstExprHashingUtils::HashString("NOT_TESTED"); TypeTestsStatus GetTypeTestsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSED_HASH) { return TypeTestsStatus::PASSED; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/VersionBump.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/VersionBump.cpp index 24d3b170b8c..c82abe8e77f 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/VersionBump.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/VersionBump.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VersionBumpMapper { - static const int MAJOR_HASH = HashingUtils::HashString("MAJOR"); - static const int MINOR_HASH = HashingUtils::HashString("MINOR"); + static constexpr uint32_t MAJOR_HASH = ConstExprHashingUtils::HashString("MAJOR"); + static constexpr uint32_t MINOR_HASH = ConstExprHashingUtils::HashString("MINOR"); VersionBump GetVersionBumpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAJOR_HASH) { return VersionBump::MAJOR; diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/model/Visibility.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/model/Visibility.cpp index 09bf1149afc..63f14e7c881 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/model/Visibility.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/model/Visibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VisibilityMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); Visibility GetVisibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return Visibility::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp index 809ac3e06e8..03faaf7f110 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp @@ -18,149 +18,149 @@ namespace CloudFront namespace CloudFrontErrorMapper { -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUse"); -static const int INVALID_ERROR_CODE_HASH = HashingUtils::HashString("InvalidErrorCode"); -static const int TOO_MANY_STREAMING_DISTRIBUTION_C_N_A_M_ES_HASH = HashingUtils::HashString("TooManyStreamingDistributionCNAMEs"); -static const int ORIGIN_REQUEST_POLICY_ALREADY_EXISTS_HASH = HashingUtils::HashString("OriginRequestPolicyAlreadyExists"); -static const int NO_SUCH_ORIGIN_HASH = HashingUtils::HashString("NoSuchOrigin"); -static const int NO_SUCH_RESOURCE_HASH = HashingUtils::HashString("NoSuchResource"); -static const int TOO_MANY_ORIGIN_REQUEST_POLICIES_HASH = HashingUtils::HashString("TooManyOriginRequestPolicies"); -static const int FIELD_LEVEL_ENCRYPTION_CONFIG_ALREADY_EXISTS_HASH = HashingUtils::HashString("FieldLevelEncryptionConfigAlreadyExists"); -static const int TOO_MANY_HEADERS_IN_FORWARDED_VALUES_HASH = HashingUtils::HashString("TooManyHeadersInForwardedValues"); -static const int TOO_MANY_ORIGIN_ACCESS_CONTROLS_HASH = HashingUtils::HashString("TooManyOriginAccessControls"); -static const int INCONSISTENT_QUANTITIES_HASH = HashingUtils::HashString("InconsistentQuantities"); -static const int TOO_MANY_COOKIES_IN_ORIGIN_REQUEST_POLICY_HASH = HashingUtils::HashString("TooManyCookiesInOriginRequestPolicy"); -static const int INVALID_IF_MATCH_VERSION_HASH = HashingUtils::HashString("InvalidIfMatchVersion"); -static const int FUNCTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("FunctionAlreadyExists"); -static const int INVALID_TAGGING_HASH = HashingUtils::HashString("InvalidTagging"); -static const int NO_SUCH_FUNCTION_EXISTS_HASH = HashingUtils::HashString("NoSuchFunctionExists"); -static const int REALTIME_LOG_CONFIG_OWNER_MISMATCH_HASH = HashingUtils::HashString("RealtimeLogConfigOwnerMismatch"); -static const int TOO_MANY_DISTRIBUTIONS_HASH = HashingUtils::HashString("TooManyDistributions"); -static const int CACHE_POLICY_IN_USE_HASH = HashingUtils::HashString("CachePolicyInUse"); -static const int INVALID_LOCATION_CODE_HASH = HashingUtils::HashString("InvalidLocationCode"); -static const int PUBLIC_KEY_IN_USE_HASH = HashingUtils::HashString("PublicKeyInUse"); -static const int TOO_MANY_QUERY_STRING_PARAMETERS_HASH = HashingUtils::HashString("TooManyQueryStringParameters"); -static const int TOO_MANY_CERTIFICATES_HASH = HashingUtils::HashString("TooManyCertificates"); -static const int MONITORING_SUBSCRIPTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("MonitoringSubscriptionAlreadyExists"); -static const int REALTIME_LOG_CONFIG_ALREADY_EXISTS_HASH = HashingUtils::HashString("RealtimeLogConfigAlreadyExists"); -static const int NO_SUCH_PUBLIC_KEY_HASH = HashingUtils::HashString("NoSuchPublicKey"); -static const int TOO_MANY_DISTRIBUTIONS_WITH_FUNCTION_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyDistributionsWithFunctionAssociations"); -static const int TOO_MANY_CACHE_POLICIES_HASH = HashingUtils::HashString("TooManyCachePolicies"); -static const int ORIGIN_REQUEST_POLICY_IN_USE_HASH = HashingUtils::HashString("OriginRequestPolicyInUse"); -static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_ORIGIN_ACCESS_CONTROL_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToOriginAccessControl"); -static const int NO_SUCH_CACHE_POLICY_HASH = HashingUtils::HashString("NoSuchCachePolicy"); -static const int NO_SUCH_FIELD_LEVEL_ENCRYPTION_PROFILE_HASH = HashingUtils::HashString("NoSuchFieldLevelEncryptionProfile"); -static const int INVALID_ORIGIN_READ_TIMEOUT_HASH = HashingUtils::HashString("InvalidOriginReadTimeout"); -static const int INVALID_ORIGIN_KEEPALIVE_TIMEOUT_HASH = HashingUtils::HashString("InvalidOriginKeepaliveTimeout"); -static const int TOO_MANY_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES_HASH = HashingUtils::HashString("TooManyCloudFrontOriginAccessIdentities"); -static const int INVALID_HEADERS_FOR_S3_ORIGIN_HASH = HashingUtils::HashString("InvalidHeadersForS3Origin"); -static const int FIELD_LEVEL_ENCRYPTION_PROFILE_ALREADY_EXISTS_HASH = HashingUtils::HashString("FieldLevelEncryptionProfileAlreadyExists"); -static const int TOO_MANY_HEADERS_IN_ORIGIN_REQUEST_POLICY_HASH = HashingUtils::HashString("TooManyHeadersInOriginRequestPolicy"); -static const int CONTINUOUS_DEPLOYMENT_POLICY_IN_USE_HASH = HashingUtils::HashString("ContinuousDeploymentPolicyInUse"); -static const int CONTINUOUS_DEPLOYMENT_POLICY_ALREADY_EXISTS_HASH = HashingUtils::HashString("ContinuousDeploymentPolicyAlreadyExists"); -static const int TOO_MANY_KEY_GROUPS_ASSOCIATED_TO_DISTRIBUTION_HASH = HashingUtils::HashString("TooManyKeyGroupsAssociatedToDistribution"); -static const int KEY_GROUP_ALREADY_EXISTS_HASH = HashingUtils::HashString("KeyGroupAlreadyExists"); -static const int TOO_MANY_ORIGIN_CUSTOM_HEADERS_HASH = HashingUtils::HashString("TooManyOriginCustomHeaders"); -static const int INVALID_GEO_RESTRICTION_PARAMETER_HASH = HashingUtils::HashString("InvalidGeoRestrictionParameter"); -static const int TOO_MANY_REALTIME_LOG_CONFIGS_HASH = HashingUtils::HashString("TooManyRealtimeLogConfigs"); -static const int TOO_MANY_FIELD_LEVEL_ENCRYPTION_PROFILES_HASH = HashingUtils::HashString("TooManyFieldLevelEncryptionProfiles"); -static const int RESPONSE_HEADERS_POLICY_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResponseHeadersPolicyAlreadyExists"); -static const int ILLEGAL_DELETE_HASH = HashingUtils::HashString("IllegalDelete"); -static const int NO_SUCH_MONITORING_SUBSCRIPTION_HASH = HashingUtils::HashString("NoSuchMonitoringSubscription"); -static const int TOO_MANY_FIELD_LEVEL_ENCRYPTION_FIELD_PATTERNS_HASH = HashingUtils::HashString("TooManyFieldLevelEncryptionFieldPatterns"); -static const int NO_SUCH_STREAMING_DISTRIBUTION_HASH = HashingUtils::HashString("NoSuchStreamingDistribution"); -static const int INVALID_T_T_L_ORDER_HASH = HashingUtils::HashString("InvalidTTLOrder"); -static const int TOO_MANY_FIELD_LEVEL_ENCRYPTION_QUERY_ARG_PROFILES_HASH = HashingUtils::HashString("TooManyFieldLevelEncryptionQueryArgProfiles"); -static const int C_N_A_M_E_ALREADY_EXISTS_HASH = HashingUtils::HashString("CNAMEAlreadyExists"); -static const int TOO_MANY_RESPONSE_HEADERS_POLICIES_HASH = HashingUtils::HashString("TooManyResponseHeadersPolicies"); -static const int INVALID_REQUIRED_PROTOCOL_HASH = HashingUtils::HashString("InvalidRequiredProtocol"); -static const int TOO_MANY_DISTRIBUTIONS_WITH_LAMBDA_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyDistributionsWithLambdaAssociations"); -static const int TOO_MANY_COOKIES_IN_CACHE_POLICY_HASH = HashingUtils::HashString("TooManyCookiesInCachePolicy"); -static const int FUNCTION_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FunctionSizeLimitExceeded"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperation"); -static const int INVALID_FUNCTION_ASSOCIATION_HASH = HashingUtils::HashString("InvalidFunctionAssociation"); -static const int TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyLambdaFunctionAssociations"); -static const int TOO_MANY_FUNCTION_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyFunctionAssociations"); -static const int TOO_MANY_QUERY_STRINGS_IN_ORIGIN_REQUEST_POLICY_HASH = HashingUtils::HashString("TooManyQueryStringsInOriginRequestPolicy"); -static const int TOO_MANY_PUBLIC_KEYS_HASH = HashingUtils::HashString("TooManyPublicKeys"); -static const int TOO_MANY_CONTINUOUS_DEPLOYMENT_POLICIES_HASH = HashingUtils::HashString("TooManyContinuousDeploymentPolicies"); -static const int TOO_MANY_STREAMING_DISTRIBUTIONS_HASH = HashingUtils::HashString("TooManyStreamingDistributions"); -static const int ILLEGAL_FIELD_LEVEL_ENCRYPTION_CONFIG_ASSOCIATION_WITH_CACHE_BEHAVIOR_HASH = HashingUtils::HashString("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"); -static const int INVALID_ORIGIN_HASH = HashingUtils::HashString("InvalidOrigin"); -static const int TRUSTED_SIGNER_DOES_NOT_EXIST_HASH = HashingUtils::HashString("TrustedSignerDoesNotExist"); -static const int TOO_LONG_C_S_P_IN_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("TooLongCSPInResponseHeadersPolicy"); -static const int TOO_MANY_FIELD_LEVEL_ENCRYPTION_CONFIGS_HASH = HashingUtils::HashString("TooManyFieldLevelEncryptionConfigs"); -static const int NO_SUCH_INVALIDATION_HASH = HashingUtils::HashString("NoSuchInvalidation"); -static const int RESPONSE_HEADERS_POLICY_IN_USE_HASH = HashingUtils::HashString("ResponseHeadersPolicyInUse"); -static const int NO_SUCH_CONTINUOUS_DEPLOYMENT_POLICY_HASH = HashingUtils::HashString("NoSuchContinuousDeploymentPolicy"); -static const int NO_SUCH_REALTIME_LOG_CONFIG_HASH = HashingUtils::HashString("NoSuchRealtimeLogConfig"); -static const int TOO_MANY_ORIGINS_HASH = HashingUtils::HashString("TooManyOrigins"); -static const int TOO_MANY_QUERY_STRINGS_IN_CACHE_POLICY_HASH = HashingUtils::HashString("TooManyQueryStringsInCachePolicy"); -static const int DISTRIBUTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("DistributionAlreadyExists"); -static const int FUNCTION_IN_USE_HASH = HashingUtils::HashString("FunctionInUse"); -static const int TOO_MANY_FUNCTIONS_HASH = HashingUtils::HashString("TooManyFunctions"); -static const int FIELD_LEVEL_ENCRYPTION_PROFILE_SIZE_EXCEEDED_HASH = HashingUtils::HashString("FieldLevelEncryptionProfileSizeExceeded"); -static const int TOO_MANY_CACHE_BEHAVIORS_HASH = HashingUtils::HashString("TooManyCacheBehaviors"); -static const int TOO_MANY_ORIGIN_GROUPS_PER_DISTRIBUTION_HASH = HashingUtils::HashString("TooManyOriginGroupsPerDistribution"); -static const int TOO_MANY_HEADERS_IN_CACHE_POLICY_HASH = HashingUtils::HashString("TooManyHeadersInCachePolicy"); -static const int FIELD_LEVEL_ENCRYPTION_CONFIG_IN_USE_HASH = HashingUtils::HashString("FieldLevelEncryptionConfigInUse"); -static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_ORIGIN_REQUEST_POLICY_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToOriginRequestPolicy"); -static const int FIELD_LEVEL_ENCRYPTION_PROFILE_IN_USE_HASH = HashingUtils::HashString("FieldLevelEncryptionProfileInUse"); -static const int TOO_MANY_INVALIDATIONS_IN_PROGRESS_HASH = HashingUtils::HashString("TooManyInvalidationsInProgress"); -static const int NO_SUCH_DISTRIBUTION_HASH = HashingUtils::HashString("NoSuchDistribution"); -static const int INVALID_RESPONSE_CODE_HASH = HashingUtils::HashString("InvalidResponseCode"); -static const int TOO_MANY_PUBLIC_KEYS_IN_KEY_GROUP_HASH = HashingUtils::HashString("TooManyPublicKeysInKeyGroup"); -static const int INVALID_DEFAULT_ROOT_OBJECT_HASH = HashingUtils::HashString("InvalidDefaultRootObject"); -static const int ORIGIN_ACCESS_CONTROL_ALREADY_EXISTS_HASH = HashingUtils::HashString("OriginAccessControlAlreadyExists"); -static const int NO_SUCH_FIELD_LEVEL_ENCRYPTION_CONFIG_HASH = HashingUtils::HashString("NoSuchFieldLevelEncryptionConfig"); -static const int STAGING_DISTRIBUTION_IN_USE_HASH = HashingUtils::HashString("StagingDistributionInUse"); -static const int INVALID_WEB_A_C_L_ID_HASH = HashingUtils::HashString("InvalidWebACLId"); -static const int INVALID_ORIGIN_ACCESS_CONTROL_HASH = HashingUtils::HashString("InvalidOriginAccessControl"); -static const int STREAMING_DISTRIBUTION_NOT_DISABLED_HASH = HashingUtils::HashString("StreamingDistributionNotDisabled"); -static const int TOO_MANY_TRUSTED_SIGNERS_HASH = HashingUtils::HashString("TooManyTrustedSigners"); -static const int NO_SUCH_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_HASH = HashingUtils::HashString("NoSuchCloudFrontOriginAccessIdentity"); -static const int CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_ALREADY_EXISTS_HASH = HashingUtils::HashString("CloudFrontOriginAccessIdentityAlreadyExists"); -static const int INVALID_FORWARD_COOKIES_HASH = HashingUtils::HashString("InvalidForwardCookies"); -static const int TRUSTED_KEY_GROUP_DOES_NOT_EXIST_HASH = HashingUtils::HashString("TrustedKeyGroupDoesNotExist"); -static const int ILLEGAL_ORIGIN_ACCESS_CONFIGURATION_HASH = HashingUtils::HashString("IllegalOriginAccessConfiguration"); -static const int QUERY_ARG_PROFILE_EMPTY_HASH = HashingUtils::HashString("QueryArgProfileEmpty"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailed"); -static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToCachePolicy"); -static const int NO_SUCH_ORIGIN_ACCESS_CONTROL_HASH = HashingUtils::HashString("NoSuchOriginAccessControl"); -static const int TOO_MANY_COOKIE_NAMES_IN_WHITE_LIST_HASH = HashingUtils::HashString("TooManyCookieNamesInWhiteList"); -static const int TEST_FUNCTION_FAILED_HASH = HashingUtils::HashString("TestFunctionFailed"); -static const int INVALID_DOMAIN_NAME_FOR_ORIGIN_ACCESS_CONTROL_HASH = HashingUtils::HashString("InvalidDomainNameForOriginAccessControl"); -static const int INVALID_LAMBDA_FUNCTION_ASSOCIATION_HASH = HashingUtils::HashString("InvalidLambdaFunctionAssociation"); -static const int TOO_MANY_FIELD_LEVEL_ENCRYPTION_CONTENT_TYPE_PROFILES_HASH = HashingUtils::HashString("TooManyFieldLevelEncryptionContentTypeProfiles"); -static const int TOO_MANY_FIELD_LEVEL_ENCRYPTION_ENCRYPTION_ENTITIES_HASH = HashingUtils::HashString("TooManyFieldLevelEncryptionEncryptionEntities"); -static const int INVALID_QUERY_STRING_PARAMETERS_HASH = HashingUtils::HashString("InvalidQueryStringParameters"); -static const int INVALID_PROTOCOL_SETTINGS_HASH = HashingUtils::HashString("InvalidProtocolSettings"); -static const int BATCH_TOO_LARGE_HASH = HashingUtils::HashString("BatchTooLarge"); -static const int INVALID_ORIGIN_ACCESS_IDENTITY_HASH = HashingUtils::HashString("InvalidOriginAccessIdentity"); -static const int INVALID_MINIMUM_PROTOCOL_VERSION_HASH = HashingUtils::HashString("InvalidMinimumProtocolVersion"); -static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToResponseHeadersPolicy"); -static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_KEY_GROUP_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToKeyGroup"); -static const int STREAMING_DISTRIBUTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("StreamingDistributionAlreadyExists"); -static const int NO_SUCH_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("NoSuchResponseHeadersPolicy"); -static const int ILLEGAL_UPDATE_HASH = HashingUtils::HashString("IllegalUpdate"); -static const int TOO_MANY_DISTRIBUTIONS_WITH_SINGLE_FUNCTION_A_R_N_HASH = HashingUtils::HashString("TooManyDistributionsWithSingleFunctionARN"); -static const int NO_SUCH_ORIGIN_REQUEST_POLICY_HASH = HashingUtils::HashString("NoSuchOriginRequestPolicy"); -static const int CACHE_POLICY_ALREADY_EXISTS_HASH = HashingUtils::HashString("CachePolicyAlreadyExists"); -static const int TOO_MANY_DISTRIBUTION_C_N_A_M_ES_HASH = HashingUtils::HashString("TooManyDistributionCNAMEs"); -static const int INVALID_RELATIVE_PATH_HASH = HashingUtils::HashString("InvalidRelativePath"); -static const int INVALID_VIEWER_CERTIFICATE_HASH = HashingUtils::HashString("InvalidViewerCertificate"); -static const int CANNOT_CHANGE_IMMUTABLE_PUBLIC_KEY_FIELDS_HASH = HashingUtils::HashString("CannotChangeImmutablePublicKeyFields"); -static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_FIELD_LEVEL_ENCRYPTION_CONFIG_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"); -static const int DISTRIBUTION_NOT_DISABLED_HASH = HashingUtils::HashString("DistributionNotDisabled"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgument"); -static const int TOO_MANY_KEY_GROUPS_HASH = HashingUtils::HashString("TooManyKeyGroups"); -static const int PUBLIC_KEY_ALREADY_EXISTS_HASH = HashingUtils::HashString("PublicKeyAlreadyExists"); -static const int TOO_MANY_REMOVE_HEADERS_IN_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("TooManyRemoveHeadersInResponseHeadersPolicy"); -static const int REALTIME_LOG_CONFIG_IN_USE_HASH = HashingUtils::HashString("RealtimeLogConfigInUse"); -static const int CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_IN_USE_HASH = HashingUtils::HashString("CloudFrontOriginAccessIdentityInUse"); -static const int TOO_MANY_CUSTOM_HEADERS_IN_RESPONSE_HEADERS_POLICY_HASH = HashingUtils::HashString("TooManyCustomHeadersInResponseHeadersPolicy"); -static const int ORIGIN_ACCESS_CONTROL_IN_USE_HASH = HashingUtils::HashString("OriginAccessControlInUse"); -static const int MISSING_BODY_HASH = HashingUtils::HashString("MissingBody"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUse"); +static constexpr uint32_t INVALID_ERROR_CODE_HASH = ConstExprHashingUtils::HashString("InvalidErrorCode"); +static constexpr uint32_t TOO_MANY_STREAMING_DISTRIBUTION_C_N_A_M_ES_HASH = ConstExprHashingUtils::HashString("TooManyStreamingDistributionCNAMEs"); +static constexpr uint32_t ORIGIN_REQUEST_POLICY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("OriginRequestPolicyAlreadyExists"); +static constexpr uint32_t NO_SUCH_ORIGIN_HASH = ConstExprHashingUtils::HashString("NoSuchOrigin"); +static constexpr uint32_t NO_SUCH_RESOURCE_HASH = ConstExprHashingUtils::HashString("NoSuchResource"); +static constexpr uint32_t TOO_MANY_ORIGIN_REQUEST_POLICIES_HASH = ConstExprHashingUtils::HashString("TooManyOriginRequestPolicies"); +static constexpr uint32_t FIELD_LEVEL_ENCRYPTION_CONFIG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FieldLevelEncryptionConfigAlreadyExists"); +static constexpr uint32_t TOO_MANY_HEADERS_IN_FORWARDED_VALUES_HASH = ConstExprHashingUtils::HashString("TooManyHeadersInForwardedValues"); +static constexpr uint32_t TOO_MANY_ORIGIN_ACCESS_CONTROLS_HASH = ConstExprHashingUtils::HashString("TooManyOriginAccessControls"); +static constexpr uint32_t INCONSISTENT_QUANTITIES_HASH = ConstExprHashingUtils::HashString("InconsistentQuantities"); +static constexpr uint32_t TOO_MANY_COOKIES_IN_ORIGIN_REQUEST_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyCookiesInOriginRequestPolicy"); +static constexpr uint32_t INVALID_IF_MATCH_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidIfMatchVersion"); +static constexpr uint32_t FUNCTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FunctionAlreadyExists"); +static constexpr uint32_t INVALID_TAGGING_HASH = ConstExprHashingUtils::HashString("InvalidTagging"); +static constexpr uint32_t NO_SUCH_FUNCTION_EXISTS_HASH = ConstExprHashingUtils::HashString("NoSuchFunctionExists"); +static constexpr uint32_t REALTIME_LOG_CONFIG_OWNER_MISMATCH_HASH = ConstExprHashingUtils::HashString("RealtimeLogConfigOwnerMismatch"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_HASH = ConstExprHashingUtils::HashString("TooManyDistributions"); +static constexpr uint32_t CACHE_POLICY_IN_USE_HASH = ConstExprHashingUtils::HashString("CachePolicyInUse"); +static constexpr uint32_t INVALID_LOCATION_CODE_HASH = ConstExprHashingUtils::HashString("InvalidLocationCode"); +static constexpr uint32_t PUBLIC_KEY_IN_USE_HASH = ConstExprHashingUtils::HashString("PublicKeyInUse"); +static constexpr uint32_t TOO_MANY_QUERY_STRING_PARAMETERS_HASH = ConstExprHashingUtils::HashString("TooManyQueryStringParameters"); +static constexpr uint32_t TOO_MANY_CERTIFICATES_HASH = ConstExprHashingUtils::HashString("TooManyCertificates"); +static constexpr uint32_t MONITORING_SUBSCRIPTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("MonitoringSubscriptionAlreadyExists"); +static constexpr uint32_t REALTIME_LOG_CONFIG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RealtimeLogConfigAlreadyExists"); +static constexpr uint32_t NO_SUCH_PUBLIC_KEY_HASH = ConstExprHashingUtils::HashString("NoSuchPublicKey"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_WITH_FUNCTION_ASSOCIATIONS_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsWithFunctionAssociations"); +static constexpr uint32_t TOO_MANY_CACHE_POLICIES_HASH = ConstExprHashingUtils::HashString("TooManyCachePolicies"); +static constexpr uint32_t ORIGIN_REQUEST_POLICY_IN_USE_HASH = ConstExprHashingUtils::HashString("OriginRequestPolicyInUse"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_ORIGIN_ACCESS_CONTROL_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsAssociatedToOriginAccessControl"); +static constexpr uint32_t NO_SUCH_CACHE_POLICY_HASH = ConstExprHashingUtils::HashString("NoSuchCachePolicy"); +static constexpr uint32_t NO_SUCH_FIELD_LEVEL_ENCRYPTION_PROFILE_HASH = ConstExprHashingUtils::HashString("NoSuchFieldLevelEncryptionProfile"); +static constexpr uint32_t INVALID_ORIGIN_READ_TIMEOUT_HASH = ConstExprHashingUtils::HashString("InvalidOriginReadTimeout"); +static constexpr uint32_t INVALID_ORIGIN_KEEPALIVE_TIMEOUT_HASH = ConstExprHashingUtils::HashString("InvalidOriginKeepaliveTimeout"); +static constexpr uint32_t TOO_MANY_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES_HASH = ConstExprHashingUtils::HashString("TooManyCloudFrontOriginAccessIdentities"); +static constexpr uint32_t INVALID_HEADERS_FOR_S3_ORIGIN_HASH = ConstExprHashingUtils::HashString("InvalidHeadersForS3Origin"); +static constexpr uint32_t FIELD_LEVEL_ENCRYPTION_PROFILE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FieldLevelEncryptionProfileAlreadyExists"); +static constexpr uint32_t TOO_MANY_HEADERS_IN_ORIGIN_REQUEST_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyHeadersInOriginRequestPolicy"); +static constexpr uint32_t CONTINUOUS_DEPLOYMENT_POLICY_IN_USE_HASH = ConstExprHashingUtils::HashString("ContinuousDeploymentPolicyInUse"); +static constexpr uint32_t CONTINUOUS_DEPLOYMENT_POLICY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ContinuousDeploymentPolicyAlreadyExists"); +static constexpr uint32_t TOO_MANY_KEY_GROUPS_ASSOCIATED_TO_DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("TooManyKeyGroupsAssociatedToDistribution"); +static constexpr uint32_t KEY_GROUP_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("KeyGroupAlreadyExists"); +static constexpr uint32_t TOO_MANY_ORIGIN_CUSTOM_HEADERS_HASH = ConstExprHashingUtils::HashString("TooManyOriginCustomHeaders"); +static constexpr uint32_t INVALID_GEO_RESTRICTION_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidGeoRestrictionParameter"); +static constexpr uint32_t TOO_MANY_REALTIME_LOG_CONFIGS_HASH = ConstExprHashingUtils::HashString("TooManyRealtimeLogConfigs"); +static constexpr uint32_t TOO_MANY_FIELD_LEVEL_ENCRYPTION_PROFILES_HASH = ConstExprHashingUtils::HashString("TooManyFieldLevelEncryptionProfiles"); +static constexpr uint32_t RESPONSE_HEADERS_POLICY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResponseHeadersPolicyAlreadyExists"); +static constexpr uint32_t ILLEGAL_DELETE_HASH = ConstExprHashingUtils::HashString("IllegalDelete"); +static constexpr uint32_t NO_SUCH_MONITORING_SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("NoSuchMonitoringSubscription"); +static constexpr uint32_t TOO_MANY_FIELD_LEVEL_ENCRYPTION_FIELD_PATTERNS_HASH = ConstExprHashingUtils::HashString("TooManyFieldLevelEncryptionFieldPatterns"); +static constexpr uint32_t NO_SUCH_STREAMING_DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("NoSuchStreamingDistribution"); +static constexpr uint32_t INVALID_T_T_L_ORDER_HASH = ConstExprHashingUtils::HashString("InvalidTTLOrder"); +static constexpr uint32_t TOO_MANY_FIELD_LEVEL_ENCRYPTION_QUERY_ARG_PROFILES_HASH = ConstExprHashingUtils::HashString("TooManyFieldLevelEncryptionQueryArgProfiles"); +static constexpr uint32_t C_N_A_M_E_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("CNAMEAlreadyExists"); +static constexpr uint32_t TOO_MANY_RESPONSE_HEADERS_POLICIES_HASH = ConstExprHashingUtils::HashString("TooManyResponseHeadersPolicies"); +static constexpr uint32_t INVALID_REQUIRED_PROTOCOL_HASH = ConstExprHashingUtils::HashString("InvalidRequiredProtocol"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_WITH_LAMBDA_ASSOCIATIONS_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsWithLambdaAssociations"); +static constexpr uint32_t TOO_MANY_COOKIES_IN_CACHE_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyCookiesInCachePolicy"); +static constexpr uint32_t FUNCTION_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FunctionSizeLimitExceeded"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperation"); +static constexpr uint32_t INVALID_FUNCTION_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("InvalidFunctionAssociation"); +static constexpr uint32_t TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS_HASH = ConstExprHashingUtils::HashString("TooManyLambdaFunctionAssociations"); +static constexpr uint32_t TOO_MANY_FUNCTION_ASSOCIATIONS_HASH = ConstExprHashingUtils::HashString("TooManyFunctionAssociations"); +static constexpr uint32_t TOO_MANY_QUERY_STRINGS_IN_ORIGIN_REQUEST_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyQueryStringsInOriginRequestPolicy"); +static constexpr uint32_t TOO_MANY_PUBLIC_KEYS_HASH = ConstExprHashingUtils::HashString("TooManyPublicKeys"); +static constexpr uint32_t TOO_MANY_CONTINUOUS_DEPLOYMENT_POLICIES_HASH = ConstExprHashingUtils::HashString("TooManyContinuousDeploymentPolicies"); +static constexpr uint32_t TOO_MANY_STREAMING_DISTRIBUTIONS_HASH = ConstExprHashingUtils::HashString("TooManyStreamingDistributions"); +static constexpr uint32_t ILLEGAL_FIELD_LEVEL_ENCRYPTION_CONFIG_ASSOCIATION_WITH_CACHE_BEHAVIOR_HASH = ConstExprHashingUtils::HashString("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"); +static constexpr uint32_t INVALID_ORIGIN_HASH = ConstExprHashingUtils::HashString("InvalidOrigin"); +static constexpr uint32_t TRUSTED_SIGNER_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("TrustedSignerDoesNotExist"); +static constexpr uint32_t TOO_LONG_C_S_P_IN_RESPONSE_HEADERS_POLICY_HASH = ConstExprHashingUtils::HashString("TooLongCSPInResponseHeadersPolicy"); +static constexpr uint32_t TOO_MANY_FIELD_LEVEL_ENCRYPTION_CONFIGS_HASH = ConstExprHashingUtils::HashString("TooManyFieldLevelEncryptionConfigs"); +static constexpr uint32_t NO_SUCH_INVALIDATION_HASH = ConstExprHashingUtils::HashString("NoSuchInvalidation"); +static constexpr uint32_t RESPONSE_HEADERS_POLICY_IN_USE_HASH = ConstExprHashingUtils::HashString("ResponseHeadersPolicyInUse"); +static constexpr uint32_t NO_SUCH_CONTINUOUS_DEPLOYMENT_POLICY_HASH = ConstExprHashingUtils::HashString("NoSuchContinuousDeploymentPolicy"); +static constexpr uint32_t NO_SUCH_REALTIME_LOG_CONFIG_HASH = ConstExprHashingUtils::HashString("NoSuchRealtimeLogConfig"); +static constexpr uint32_t TOO_MANY_ORIGINS_HASH = ConstExprHashingUtils::HashString("TooManyOrigins"); +static constexpr uint32_t TOO_MANY_QUERY_STRINGS_IN_CACHE_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyQueryStringsInCachePolicy"); +static constexpr uint32_t DISTRIBUTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("DistributionAlreadyExists"); +static constexpr uint32_t FUNCTION_IN_USE_HASH = ConstExprHashingUtils::HashString("FunctionInUse"); +static constexpr uint32_t TOO_MANY_FUNCTIONS_HASH = ConstExprHashingUtils::HashString("TooManyFunctions"); +static constexpr uint32_t FIELD_LEVEL_ENCRYPTION_PROFILE_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FieldLevelEncryptionProfileSizeExceeded"); +static constexpr uint32_t TOO_MANY_CACHE_BEHAVIORS_HASH = ConstExprHashingUtils::HashString("TooManyCacheBehaviors"); +static constexpr uint32_t TOO_MANY_ORIGIN_GROUPS_PER_DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("TooManyOriginGroupsPerDistribution"); +static constexpr uint32_t TOO_MANY_HEADERS_IN_CACHE_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyHeadersInCachePolicy"); +static constexpr uint32_t FIELD_LEVEL_ENCRYPTION_CONFIG_IN_USE_HASH = ConstExprHashingUtils::HashString("FieldLevelEncryptionConfigInUse"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_ORIGIN_REQUEST_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsAssociatedToOriginRequestPolicy"); +static constexpr uint32_t FIELD_LEVEL_ENCRYPTION_PROFILE_IN_USE_HASH = ConstExprHashingUtils::HashString("FieldLevelEncryptionProfileInUse"); +static constexpr uint32_t TOO_MANY_INVALIDATIONS_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TooManyInvalidationsInProgress"); +static constexpr uint32_t NO_SUCH_DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("NoSuchDistribution"); +static constexpr uint32_t INVALID_RESPONSE_CODE_HASH = ConstExprHashingUtils::HashString("InvalidResponseCode"); +static constexpr uint32_t TOO_MANY_PUBLIC_KEYS_IN_KEY_GROUP_HASH = ConstExprHashingUtils::HashString("TooManyPublicKeysInKeyGroup"); +static constexpr uint32_t INVALID_DEFAULT_ROOT_OBJECT_HASH = ConstExprHashingUtils::HashString("InvalidDefaultRootObject"); +static constexpr uint32_t ORIGIN_ACCESS_CONTROL_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("OriginAccessControlAlreadyExists"); +static constexpr uint32_t NO_SUCH_FIELD_LEVEL_ENCRYPTION_CONFIG_HASH = ConstExprHashingUtils::HashString("NoSuchFieldLevelEncryptionConfig"); +static constexpr uint32_t STAGING_DISTRIBUTION_IN_USE_HASH = ConstExprHashingUtils::HashString("StagingDistributionInUse"); +static constexpr uint32_t INVALID_WEB_A_C_L_ID_HASH = ConstExprHashingUtils::HashString("InvalidWebACLId"); +static constexpr uint32_t INVALID_ORIGIN_ACCESS_CONTROL_HASH = ConstExprHashingUtils::HashString("InvalidOriginAccessControl"); +static constexpr uint32_t STREAMING_DISTRIBUTION_NOT_DISABLED_HASH = ConstExprHashingUtils::HashString("StreamingDistributionNotDisabled"); +static constexpr uint32_t TOO_MANY_TRUSTED_SIGNERS_HASH = ConstExprHashingUtils::HashString("TooManyTrustedSigners"); +static constexpr uint32_t NO_SUCH_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_HASH = ConstExprHashingUtils::HashString("NoSuchCloudFrontOriginAccessIdentity"); +static constexpr uint32_t CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("CloudFrontOriginAccessIdentityAlreadyExists"); +static constexpr uint32_t INVALID_FORWARD_COOKIES_HASH = ConstExprHashingUtils::HashString("InvalidForwardCookies"); +static constexpr uint32_t TRUSTED_KEY_GROUP_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("TrustedKeyGroupDoesNotExist"); +static constexpr uint32_t ILLEGAL_ORIGIN_ACCESS_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("IllegalOriginAccessConfiguration"); +static constexpr uint32_t QUERY_ARG_PROFILE_EMPTY_HASH = ConstExprHashingUtils::HashString("QueryArgProfileEmpty"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailed"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsAssociatedToCachePolicy"); +static constexpr uint32_t NO_SUCH_ORIGIN_ACCESS_CONTROL_HASH = ConstExprHashingUtils::HashString("NoSuchOriginAccessControl"); +static constexpr uint32_t TOO_MANY_COOKIE_NAMES_IN_WHITE_LIST_HASH = ConstExprHashingUtils::HashString("TooManyCookieNamesInWhiteList"); +static constexpr uint32_t TEST_FUNCTION_FAILED_HASH = ConstExprHashingUtils::HashString("TestFunctionFailed"); +static constexpr uint32_t INVALID_DOMAIN_NAME_FOR_ORIGIN_ACCESS_CONTROL_HASH = ConstExprHashingUtils::HashString("InvalidDomainNameForOriginAccessControl"); +static constexpr uint32_t INVALID_LAMBDA_FUNCTION_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("InvalidLambdaFunctionAssociation"); +static constexpr uint32_t TOO_MANY_FIELD_LEVEL_ENCRYPTION_CONTENT_TYPE_PROFILES_HASH = ConstExprHashingUtils::HashString("TooManyFieldLevelEncryptionContentTypeProfiles"); +static constexpr uint32_t TOO_MANY_FIELD_LEVEL_ENCRYPTION_ENCRYPTION_ENTITIES_HASH = ConstExprHashingUtils::HashString("TooManyFieldLevelEncryptionEncryptionEntities"); +static constexpr uint32_t INVALID_QUERY_STRING_PARAMETERS_HASH = ConstExprHashingUtils::HashString("InvalidQueryStringParameters"); +static constexpr uint32_t INVALID_PROTOCOL_SETTINGS_HASH = ConstExprHashingUtils::HashString("InvalidProtocolSettings"); +static constexpr uint32_t BATCH_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("BatchTooLarge"); +static constexpr uint32_t INVALID_ORIGIN_ACCESS_IDENTITY_HASH = ConstExprHashingUtils::HashString("InvalidOriginAccessIdentity"); +static constexpr uint32_t INVALID_MINIMUM_PROTOCOL_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidMinimumProtocolVersion"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_RESPONSE_HEADERS_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsAssociatedToResponseHeadersPolicy"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_KEY_GROUP_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsAssociatedToKeyGroup"); +static constexpr uint32_t STREAMING_DISTRIBUTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("StreamingDistributionAlreadyExists"); +static constexpr uint32_t NO_SUCH_RESPONSE_HEADERS_POLICY_HASH = ConstExprHashingUtils::HashString("NoSuchResponseHeadersPolicy"); +static constexpr uint32_t ILLEGAL_UPDATE_HASH = ConstExprHashingUtils::HashString("IllegalUpdate"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_WITH_SINGLE_FUNCTION_A_R_N_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsWithSingleFunctionARN"); +static constexpr uint32_t NO_SUCH_ORIGIN_REQUEST_POLICY_HASH = ConstExprHashingUtils::HashString("NoSuchOriginRequestPolicy"); +static constexpr uint32_t CACHE_POLICY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("CachePolicyAlreadyExists"); +static constexpr uint32_t TOO_MANY_DISTRIBUTION_C_N_A_M_ES_HASH = ConstExprHashingUtils::HashString("TooManyDistributionCNAMEs"); +static constexpr uint32_t INVALID_RELATIVE_PATH_HASH = ConstExprHashingUtils::HashString("InvalidRelativePath"); +static constexpr uint32_t INVALID_VIEWER_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("InvalidViewerCertificate"); +static constexpr uint32_t CANNOT_CHANGE_IMMUTABLE_PUBLIC_KEY_FIELDS_HASH = ConstExprHashingUtils::HashString("CannotChangeImmutablePublicKeyFields"); +static constexpr uint32_t TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_FIELD_LEVEL_ENCRYPTION_CONFIG_HASH = ConstExprHashingUtils::HashString("TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"); +static constexpr uint32_t DISTRIBUTION_NOT_DISABLED_HASH = ConstExprHashingUtils::HashString("DistributionNotDisabled"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgument"); +static constexpr uint32_t TOO_MANY_KEY_GROUPS_HASH = ConstExprHashingUtils::HashString("TooManyKeyGroups"); +static constexpr uint32_t PUBLIC_KEY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("PublicKeyAlreadyExists"); +static constexpr uint32_t TOO_MANY_REMOVE_HEADERS_IN_RESPONSE_HEADERS_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyRemoveHeadersInResponseHeadersPolicy"); +static constexpr uint32_t REALTIME_LOG_CONFIG_IN_USE_HASH = ConstExprHashingUtils::HashString("RealtimeLogConfigInUse"); +static constexpr uint32_t CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_IN_USE_HASH = ConstExprHashingUtils::HashString("CloudFrontOriginAccessIdentityInUse"); +static constexpr uint32_t TOO_MANY_CUSTOM_HEADERS_IN_RESPONSE_HEADERS_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyCustomHeadersInResponseHeadersPolicy"); +static constexpr uint32_t ORIGIN_ACCESS_CONTROL_IN_USE_HASH = ConstExprHashingUtils::HashString("OriginAccessControlInUse"); +static constexpr uint32_t MISSING_BODY_HASH = ConstExprHashingUtils::HashString("MissingBody"); /* @@ -169,7 +169,7 @@ which allows constant time lookup. The chain has been broken into helper functio because MSVC has a maximum of 122 chained if-else blocks. */ -static bool GetErrorForNameHelper0(int hashCode, AWSError& error) +static bool GetErrorForNameHelper0(uint32_t hashCode, AWSError& error) { if (hashCode == RESOURCE_IN_USE_HASH) { @@ -784,7 +784,7 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) return false; } -static bool GetErrorForNameHelper1(int hashCode, AWSError& error) +static bool GetErrorForNameHelper1(uint32_t hashCode, AWSError& error) { if (hashCode == STREAMING_DISTRIBUTION_ALREADY_EXISTS_HASH) { @@ -896,7 +896,7 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyCookieBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyCookieBehavior.cpp index 7c8bf4eb1ef..04942a7f066 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyCookieBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyCookieBehavior.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CachePolicyCookieBehaviorMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int allExcept_HASH = HashingUtils::HashString("allExcept"); - static const int all_HASH = HashingUtils::HashString("all"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t allExcept_HASH = ConstExprHashingUtils::HashString("allExcept"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); CachePolicyCookieBehavior GetCachePolicyCookieBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return CachePolicyCookieBehavior::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyHeaderBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyHeaderBehavior.cpp index b03177aed91..61d3855519d 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyHeaderBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyHeaderBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CachePolicyHeaderBehaviorMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); CachePolicyHeaderBehavior GetCachePolicyHeaderBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return CachePolicyHeaderBehavior::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyQueryStringBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyQueryStringBehavior.cpp index 34994d36924..e6d613ae11b 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyQueryStringBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyQueryStringBehavior.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CachePolicyQueryStringBehaviorMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int allExcept_HASH = HashingUtils::HashString("allExcept"); - static const int all_HASH = HashingUtils::HashString("all"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t allExcept_HASH = ConstExprHashingUtils::HashString("allExcept"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); CachePolicyQueryStringBehavior GetCachePolicyQueryStringBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return CachePolicyQueryStringBehavior::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyType.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyType.cpp index e0c94f56779..a9978fd9f5c 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyType.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/CachePolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CachePolicyTypeMapper { - static const int managed_HASH = HashingUtils::HashString("managed"); - static const int custom_HASH = HashingUtils::HashString("custom"); + static constexpr uint32_t managed_HASH = ConstExprHashingUtils::HashString("managed"); + static constexpr uint32_t custom_HASH = ConstExprHashingUtils::HashString("custom"); CachePolicyType GetCachePolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == managed_HASH) { return CachePolicyType::managed; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ContinuousDeploymentPolicyType.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ContinuousDeploymentPolicyType.cpp index 4f106640f71..4a793122649 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ContinuousDeploymentPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ContinuousDeploymentPolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContinuousDeploymentPolicyTypeMapper { - static const int SingleWeight_HASH = HashingUtils::HashString("SingleWeight"); - static const int SingleHeader_HASH = HashingUtils::HashString("SingleHeader"); + static constexpr uint32_t SingleWeight_HASH = ConstExprHashingUtils::HashString("SingleWeight"); + static constexpr uint32_t SingleHeader_HASH = ConstExprHashingUtils::HashString("SingleHeader"); ContinuousDeploymentPolicyType GetContinuousDeploymentPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SingleWeight_HASH) { return ContinuousDeploymentPolicyType::SingleWeight; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/EventType.cpp index e58d06de298..341f25f96fc 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/EventType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EventTypeMapper { - static const int viewer_request_HASH = HashingUtils::HashString("viewer-request"); - static const int viewer_response_HASH = HashingUtils::HashString("viewer-response"); - static const int origin_request_HASH = HashingUtils::HashString("origin-request"); - static const int origin_response_HASH = HashingUtils::HashString("origin-response"); + static constexpr uint32_t viewer_request_HASH = ConstExprHashingUtils::HashString("viewer-request"); + static constexpr uint32_t viewer_response_HASH = ConstExprHashingUtils::HashString("viewer-response"); + static constexpr uint32_t origin_request_HASH = ConstExprHashingUtils::HashString("origin-request"); + static constexpr uint32_t origin_response_HASH = ConstExprHashingUtils::HashString("origin-response"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == viewer_request_HASH) { return EventType::viewer_request; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/Format.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/Format.cpp index 33cfd61d365..2e7071ebbe0 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/Format.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FormatMapper { - static const int URLEncoded_HASH = HashingUtils::HashString("URLEncoded"); + static constexpr uint32_t URLEncoded_HASH = ConstExprHashingUtils::HashString("URLEncoded"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == URLEncoded_HASH) { return Format::URLEncoded; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/FrameOptionsList.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/FrameOptionsList.cpp index 0c2f17797d5..cbf28699635 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/FrameOptionsList.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/FrameOptionsList.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FrameOptionsListMapper { - static const int DENY_HASH = HashingUtils::HashString("DENY"); - static const int SAMEORIGIN_HASH = HashingUtils::HashString("SAMEORIGIN"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); + static constexpr uint32_t SAMEORIGIN_HASH = ConstExprHashingUtils::HashString("SAMEORIGIN"); FrameOptionsList GetFrameOptionsListForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DENY_HASH) { return FrameOptionsList::DENY; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionRuntime.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionRuntime.cpp index 4d8f88760f4..0c4fab65abb 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionRuntime.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionRuntime.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FunctionRuntimeMapper { - static const int cloudfront_js_1_0_HASH = HashingUtils::HashString("cloudfront-js-1.0"); - static const int cloudfront_js_2_0_HASH = HashingUtils::HashString("cloudfront-js-2.0"); + static constexpr uint32_t cloudfront_js_1_0_HASH = ConstExprHashingUtils::HashString("cloudfront-js-1.0"); + static constexpr uint32_t cloudfront_js_2_0_HASH = ConstExprHashingUtils::HashString("cloudfront-js-2.0"); FunctionRuntime GetFunctionRuntimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cloudfront_js_1_0_HASH) { return FunctionRuntime::cloudfront_js_1_0; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionStage.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionStage.cpp index 3feb5ef5615..fa2718b45c0 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionStage.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/FunctionStage.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FunctionStageMapper { - static const int DEVELOPMENT_HASH = HashingUtils::HashString("DEVELOPMENT"); - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); + static constexpr uint32_t DEVELOPMENT_HASH = ConstExprHashingUtils::HashString("DEVELOPMENT"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); FunctionStage GetFunctionStageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVELOPMENT_HASH) { return FunctionStage::DEVELOPMENT; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/GeoRestrictionType.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/GeoRestrictionType.cpp index 91551141290..cf8051dc66b 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/GeoRestrictionType.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/GeoRestrictionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GeoRestrictionTypeMapper { - static const int blacklist_HASH = HashingUtils::HashString("blacklist"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t blacklist_HASH = ConstExprHashingUtils::HashString("blacklist"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); GeoRestrictionType GetGeoRestrictionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == blacklist_HASH) { return GeoRestrictionType::blacklist; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/HttpVersion.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/HttpVersion.cpp index b022c504048..6b06a15c079 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/HttpVersion.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/HttpVersion.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HttpVersionMapper { - static const int http1_1_HASH = HashingUtils::HashString("http1.1"); - static const int http2_HASH = HashingUtils::HashString("http2"); - static const int http3_HASH = HashingUtils::HashString("http3"); - static const int http2and3_HASH = HashingUtils::HashString("http2and3"); + static constexpr uint32_t http1_1_HASH = ConstExprHashingUtils::HashString("http1.1"); + static constexpr uint32_t http2_HASH = ConstExprHashingUtils::HashString("http2"); + static constexpr uint32_t http3_HASH = ConstExprHashingUtils::HashString("http3"); + static constexpr uint32_t http2and3_HASH = ConstExprHashingUtils::HashString("http2and3"); HttpVersion GetHttpVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http1_1_HASH) { return HttpVersion::http1_1; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ICPRecordalStatus.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ICPRecordalStatus.cpp index 5876e236af5..cddd61826e6 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ICPRecordalStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ICPRecordalStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ICPRecordalStatusMapper { - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); ICPRecordalStatus GetICPRecordalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVED_HASH) { return ICPRecordalStatus::APPROVED; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ItemSelection.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ItemSelection.cpp index 34152b8dd00..50664f7a046 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ItemSelection.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ItemSelection.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ItemSelectionMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int all_HASH = HashingUtils::HashString("all"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); ItemSelection GetItemSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return ItemSelection::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/Method.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/Method.cpp index 6986ce077f0..b249995ca9f 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/Method.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/Method.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MethodMapper { - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int PATCH_HASH = HashingUtils::HashString("PATCH"); - static const int OPTIONS_HASH = HashingUtils::HashString("OPTIONS"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t PATCH_HASH = ConstExprHashingUtils::HashString("PATCH"); + static constexpr uint32_t OPTIONS_HASH = ConstExprHashingUtils::HashString("OPTIONS"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); Method GetMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GET__HASH) { return Method::GET_; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/MinimumProtocolVersion.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/MinimumProtocolVersion.cpp index cfcda667d21..063e107bde4 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/MinimumProtocolVersion.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/MinimumProtocolVersion.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MinimumProtocolVersionMapper { - static const int SSLv3_HASH = HashingUtils::HashString("SSLv3"); - static const int TLSv1_HASH = HashingUtils::HashString("TLSv1"); - static const int TLSv1_2016_HASH = HashingUtils::HashString("TLSv1_2016"); - static const int TLSv1_1_2016_HASH = HashingUtils::HashString("TLSv1.1_2016"); - static const int TLSv1_2_2018_HASH = HashingUtils::HashString("TLSv1.2_2018"); - static const int TLSv1_2_2019_HASH = HashingUtils::HashString("TLSv1.2_2019"); - static const int TLSv1_2_2021_HASH = HashingUtils::HashString("TLSv1.2_2021"); + static constexpr uint32_t SSLv3_HASH = ConstExprHashingUtils::HashString("SSLv3"); + static constexpr uint32_t TLSv1_HASH = ConstExprHashingUtils::HashString("TLSv1"); + static constexpr uint32_t TLSv1_2016_HASH = ConstExprHashingUtils::HashString("TLSv1_2016"); + static constexpr uint32_t TLSv1_1_2016_HASH = ConstExprHashingUtils::HashString("TLSv1.1_2016"); + static constexpr uint32_t TLSv1_2_2018_HASH = ConstExprHashingUtils::HashString("TLSv1.2_2018"); + static constexpr uint32_t TLSv1_2_2019_HASH = ConstExprHashingUtils::HashString("TLSv1.2_2019"); + static constexpr uint32_t TLSv1_2_2021_HASH = ConstExprHashingUtils::HashString("TLSv1.2_2021"); MinimumProtocolVersion GetMinimumProtocolVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSLv3_HASH) { return MinimumProtocolVersion::SSLv3; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlOriginTypes.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlOriginTypes.cpp index f224c007137..3bb6ac91c58 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlOriginTypes.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlOriginTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginAccessControlOriginTypesMapper { - static const int s3_HASH = HashingUtils::HashString("s3"); - static const int mediastore_HASH = HashingUtils::HashString("mediastore"); + static constexpr uint32_t s3_HASH = ConstExprHashingUtils::HashString("s3"); + static constexpr uint32_t mediastore_HASH = ConstExprHashingUtils::HashString("mediastore"); OriginAccessControlOriginTypes GetOriginAccessControlOriginTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s3_HASH) { return OriginAccessControlOriginTypes::s3; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningBehaviors.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningBehaviors.cpp index 8efbcf021da..ebe5463709b 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningBehaviors.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningBehaviors.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OriginAccessControlSigningBehaviorsMapper { - static const int never_HASH = HashingUtils::HashString("never"); - static const int always_HASH = HashingUtils::HashString("always"); - static const int no_override_HASH = HashingUtils::HashString("no-override"); + static constexpr uint32_t never_HASH = ConstExprHashingUtils::HashString("never"); + static constexpr uint32_t always_HASH = ConstExprHashingUtils::HashString("always"); + static constexpr uint32_t no_override_HASH = ConstExprHashingUtils::HashString("no-override"); OriginAccessControlSigningBehaviors GetOriginAccessControlSigningBehaviorsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == never_HASH) { return OriginAccessControlSigningBehaviors::never; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningProtocols.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningProtocols.cpp index ea9ab448933..235dc4a1174 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningProtocols.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginAccessControlSigningProtocols.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OriginAccessControlSigningProtocolsMapper { - static const int sigv4_HASH = HashingUtils::HashString("sigv4"); + static constexpr uint32_t sigv4_HASH = ConstExprHashingUtils::HashString("sigv4"); OriginAccessControlSigningProtocols GetOriginAccessControlSigningProtocolsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sigv4_HASH) { return OriginAccessControlSigningProtocols::sigv4; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginProtocolPolicy.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginProtocolPolicy.cpp index f27de126b55..e2de8134046 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginProtocolPolicy.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginProtocolPolicy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OriginProtocolPolicyMapper { - static const int http_only_HASH = HashingUtils::HashString("http-only"); - static const int match_viewer_HASH = HashingUtils::HashString("match-viewer"); - static const int https_only_HASH = HashingUtils::HashString("https-only"); + static constexpr uint32_t http_only_HASH = ConstExprHashingUtils::HashString("http-only"); + static constexpr uint32_t match_viewer_HASH = ConstExprHashingUtils::HashString("match-viewer"); + static constexpr uint32_t https_only_HASH = ConstExprHashingUtils::HashString("https-only"); OriginProtocolPolicy GetOriginProtocolPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_only_HASH) { return OriginProtocolPolicy::http_only; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyCookieBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyCookieBehavior.cpp index cc2e059a6c2..f0a6bcb13c4 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyCookieBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyCookieBehavior.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OriginRequestPolicyCookieBehaviorMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int all_HASH = HashingUtils::HashString("all"); - static const int allExcept_HASH = HashingUtils::HashString("allExcept"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); + static constexpr uint32_t allExcept_HASH = ConstExprHashingUtils::HashString("allExcept"); OriginRequestPolicyCookieBehavior GetOriginRequestPolicyCookieBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return OriginRequestPolicyCookieBehavior::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyHeaderBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyHeaderBehavior.cpp index 29181947242..3ff4aef5c17 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyHeaderBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyHeaderBehavior.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OriginRequestPolicyHeaderBehaviorMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int allViewer_HASH = HashingUtils::HashString("allViewer"); - static const int allViewerAndWhitelistCloudFront_HASH = HashingUtils::HashString("allViewerAndWhitelistCloudFront"); - static const int allExcept_HASH = HashingUtils::HashString("allExcept"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t allViewer_HASH = ConstExprHashingUtils::HashString("allViewer"); + static constexpr uint32_t allViewerAndWhitelistCloudFront_HASH = ConstExprHashingUtils::HashString("allViewerAndWhitelistCloudFront"); + static constexpr uint32_t allExcept_HASH = ConstExprHashingUtils::HashString("allExcept"); OriginRequestPolicyHeaderBehavior GetOriginRequestPolicyHeaderBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return OriginRequestPolicyHeaderBehavior::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyQueryStringBehavior.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyQueryStringBehavior.cpp index 2805cbc4152..5a6b9f7287d 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyQueryStringBehavior.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyQueryStringBehavior.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OriginRequestPolicyQueryStringBehaviorMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int whitelist_HASH = HashingUtils::HashString("whitelist"); - static const int all_HASH = HashingUtils::HashString("all"); - static const int allExcept_HASH = HashingUtils::HashString("allExcept"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t whitelist_HASH = ConstExprHashingUtils::HashString("whitelist"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); + static constexpr uint32_t allExcept_HASH = ConstExprHashingUtils::HashString("allExcept"); OriginRequestPolicyQueryStringBehavior GetOriginRequestPolicyQueryStringBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return OriginRequestPolicyQueryStringBehavior::none; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyType.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyType.cpp index 15deba2791a..e3d026dcfb1 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/OriginRequestPolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginRequestPolicyTypeMapper { - static const int managed_HASH = HashingUtils::HashString("managed"); - static const int custom_HASH = HashingUtils::HashString("custom"); + static constexpr uint32_t managed_HASH = ConstExprHashingUtils::HashString("managed"); + static constexpr uint32_t custom_HASH = ConstExprHashingUtils::HashString("custom"); OriginRequestPolicyType GetOriginRequestPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == managed_HASH) { return OriginRequestPolicyType::managed; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/PriceClass.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/PriceClass.cpp index 547e4b20134..d5205b3ffab 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/PriceClass.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/PriceClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PriceClassMapper { - static const int PriceClass_100_HASH = HashingUtils::HashString("PriceClass_100"); - static const int PriceClass_200_HASH = HashingUtils::HashString("PriceClass_200"); - static const int PriceClass_All_HASH = HashingUtils::HashString("PriceClass_All"); + static constexpr uint32_t PriceClass_100_HASH = ConstExprHashingUtils::HashString("PriceClass_100"); + static constexpr uint32_t PriceClass_200_HASH = ConstExprHashingUtils::HashString("PriceClass_200"); + static constexpr uint32_t PriceClass_All_HASH = ConstExprHashingUtils::HashString("PriceClass_All"); PriceClass GetPriceClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PriceClass_100_HASH) { return PriceClass::PriceClass_100; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/RealtimeMetricsSubscriptionStatus.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/RealtimeMetricsSubscriptionStatus.cpp index 4f957c93ffa..de40bf6f864 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/RealtimeMetricsSubscriptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/RealtimeMetricsSubscriptionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RealtimeMetricsSubscriptionStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); RealtimeMetricsSubscriptionStatus GetRealtimeMetricsSubscriptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return RealtimeMetricsSubscriptionStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ReferrerPolicyList.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ReferrerPolicyList.cpp index f08f4a60cfe..022d21f3a7b 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ReferrerPolicyList.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ReferrerPolicyList.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ReferrerPolicyListMapper { - static const int no_referrer_HASH = HashingUtils::HashString("no-referrer"); - static const int no_referrer_when_downgrade_HASH = HashingUtils::HashString("no-referrer-when-downgrade"); - static const int origin_HASH = HashingUtils::HashString("origin"); - static const int origin_when_cross_origin_HASH = HashingUtils::HashString("origin-when-cross-origin"); - static const int same_origin_HASH = HashingUtils::HashString("same-origin"); - static const int strict_origin_HASH = HashingUtils::HashString("strict-origin"); - static const int strict_origin_when_cross_origin_HASH = HashingUtils::HashString("strict-origin-when-cross-origin"); - static const int unsafe_url_HASH = HashingUtils::HashString("unsafe-url"); + static constexpr uint32_t no_referrer_HASH = ConstExprHashingUtils::HashString("no-referrer"); + static constexpr uint32_t no_referrer_when_downgrade_HASH = ConstExprHashingUtils::HashString("no-referrer-when-downgrade"); + static constexpr uint32_t origin_HASH = ConstExprHashingUtils::HashString("origin"); + static constexpr uint32_t origin_when_cross_origin_HASH = ConstExprHashingUtils::HashString("origin-when-cross-origin"); + static constexpr uint32_t same_origin_HASH = ConstExprHashingUtils::HashString("same-origin"); + static constexpr uint32_t strict_origin_HASH = ConstExprHashingUtils::HashString("strict-origin"); + static constexpr uint32_t strict_origin_when_cross_origin_HASH = ConstExprHashingUtils::HashString("strict-origin-when-cross-origin"); + static constexpr uint32_t unsafe_url_HASH = ConstExprHashingUtils::HashString("unsafe-url"); ReferrerPolicyList GetReferrerPolicyListForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == no_referrer_HASH) { return ReferrerPolicyList::no_referrer; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyAccessControlAllowMethodsValues.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyAccessControlAllowMethodsValues.cpp index b1d7d08a2d5..36c10ab1e8e 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyAccessControlAllowMethodsValues.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyAccessControlAllowMethodsValues.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ResponseHeadersPolicyAccessControlAllowMethodsValuesMapper { - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int OPTIONS_HASH = HashingUtils::HashString("OPTIONS"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int PATCH_HASH = HashingUtils::HashString("PATCH"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t OPTIONS_HASH = ConstExprHashingUtils::HashString("OPTIONS"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t PATCH_HASH = ConstExprHashingUtils::HashString("PATCH"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ResponseHeadersPolicyAccessControlAllowMethodsValues GetResponseHeadersPolicyAccessControlAllowMethodsValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GET__HASH) { return ResponseHeadersPolicyAccessControlAllowMethodsValues::GET_; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyType.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyType.cpp index 609b9973694..d1e7fde090f 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResponseHeadersPolicyTypeMapper { - static const int managed_HASH = HashingUtils::HashString("managed"); - static const int custom_HASH = HashingUtils::HashString("custom"); + static constexpr uint32_t managed_HASH = ConstExprHashingUtils::HashString("managed"); + static constexpr uint32_t custom_HASH = ConstExprHashingUtils::HashString("custom"); ResponseHeadersPolicyType GetResponseHeadersPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == managed_HASH) { return ResponseHeadersPolicyType::managed; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/SSLSupportMethod.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/SSLSupportMethod.cpp index 4c5d1014f15..753700ea374 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/SSLSupportMethod.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/SSLSupportMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SSLSupportMethodMapper { - static const int sni_only_HASH = HashingUtils::HashString("sni-only"); - static const int vip_HASH = HashingUtils::HashString("vip"); - static const int static_ip_HASH = HashingUtils::HashString("static-ip"); + static constexpr uint32_t sni_only_HASH = ConstExprHashingUtils::HashString("sni-only"); + static constexpr uint32_t vip_HASH = ConstExprHashingUtils::HashString("vip"); + static constexpr uint32_t static_ip_HASH = ConstExprHashingUtils::HashString("static-ip"); SSLSupportMethod GetSSLSupportMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sni_only_HASH) { return SSLSupportMethod::sni_only; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/SslProtocol.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/SslProtocol.cpp index 0982607634a..42f5f94a274 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/SslProtocol.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/SslProtocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SslProtocolMapper { - static const int SSLv3_HASH = HashingUtils::HashString("SSLv3"); - static const int TLSv1_HASH = HashingUtils::HashString("TLSv1"); - static const int TLSv1_1_HASH = HashingUtils::HashString("TLSv1.1"); - static const int TLSv1_2_HASH = HashingUtils::HashString("TLSv1.2"); + static constexpr uint32_t SSLv3_HASH = ConstExprHashingUtils::HashString("SSLv3"); + static constexpr uint32_t TLSv1_HASH = ConstExprHashingUtils::HashString("TLSv1"); + static constexpr uint32_t TLSv1_1_HASH = ConstExprHashingUtils::HashString("TLSv1.1"); + static constexpr uint32_t TLSv1_2_HASH = ConstExprHashingUtils::HashString("TLSv1.2"); SslProtocol GetSslProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSLv3_HASH) { return SslProtocol::SSLv3; diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/model/ViewerProtocolPolicy.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/model/ViewerProtocolPolicy.cpp index bdd5e6dee20..f2bbf6ea8c8 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/model/ViewerProtocolPolicy.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/model/ViewerProtocolPolicy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ViewerProtocolPolicyMapper { - static const int allow_all_HASH = HashingUtils::HashString("allow-all"); - static const int https_only_HASH = HashingUtils::HashString("https-only"); - static const int redirect_to_https_HASH = HashingUtils::HashString("redirect-to-https"); + static constexpr uint32_t allow_all_HASH = ConstExprHashingUtils::HashString("allow-all"); + static constexpr uint32_t https_only_HASH = ConstExprHashingUtils::HashString("https-only"); + static constexpr uint32_t redirect_to_https_HASH = ConstExprHashingUtils::HashString("redirect-to-https"); ViewerProtocolPolicy GetViewerProtocolPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == allow_all_HASH) { return ViewerProtocolPolicy::allow_all; diff --git a/generated/src/aws-cpp-sdk-cloudhsm/source/model/ClientVersion.cpp b/generated/src/aws-cpp-sdk-cloudhsm/source/model/ClientVersion.cpp index 394b56bc56a..07a9e3a09aa 100644 --- a/generated/src/aws-cpp-sdk-cloudhsm/source/model/ClientVersion.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsm/source/model/ClientVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClientVersionMapper { - static const int _5_1_HASH = HashingUtils::HashString("5.1"); - static const int _5_3_HASH = HashingUtils::HashString("5.3"); + static constexpr uint32_t _5_1_HASH = ConstExprHashingUtils::HashString("5.1"); + static constexpr uint32_t _5_3_HASH = ConstExprHashingUtils::HashString("5.3"); ClientVersion GetClientVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == _5_1_HASH) { return ClientVersion::_5_1; diff --git a/generated/src/aws-cpp-sdk-cloudhsm/source/model/CloudHsmObjectState.cpp b/generated/src/aws-cpp-sdk-cloudhsm/source/model/CloudHsmObjectState.cpp index e59d6761910..7bb46f4e93b 100644 --- a/generated/src/aws-cpp-sdk-cloudhsm/source/model/CloudHsmObjectState.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsm/source/model/CloudHsmObjectState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CloudHsmObjectStateMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); CloudHsmObjectState GetCloudHsmObjectStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return CloudHsmObjectState::READY; diff --git a/generated/src/aws-cpp-sdk-cloudhsm/source/model/HsmStatus.cpp b/generated/src/aws-cpp-sdk-cloudhsm/source/model/HsmStatus.cpp index 49e0d50d286..b4edf7b21cd 100644 --- a/generated/src/aws-cpp-sdk-cloudhsm/source/model/HsmStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsm/source/model/HsmStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace HsmStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); HsmStatus GetHsmStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return HsmStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-cloudhsm/source/model/SubscriptionType.cpp b/generated/src/aws-cpp-sdk-cloudhsm/source/model/SubscriptionType.cpp index e9c0f97b7e9..2562c476c3e 100644 --- a/generated/src/aws-cpp-sdk-cloudhsm/source/model/SubscriptionType.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsm/source/model/SubscriptionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SubscriptionTypeMapper { - static const int PRODUCTION_HASH = HashingUtils::HashString("PRODUCTION"); + static constexpr uint32_t PRODUCTION_HASH = ConstExprHashingUtils::HashString("PRODUCTION"); SubscriptionType GetSubscriptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCTION_HASH) { return SubscriptionType::PRODUCTION; diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Errors.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Errors.cpp index b70f873cd60..1a6697790d9 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Errors.cpp @@ -18,17 +18,17 @@ namespace CloudHSMV2 namespace CloudHSMV2ErrorMapper { -static const int CLOUD_HSM_INVALID_REQUEST_HASH = HashingUtils::HashString("CloudHsmInvalidRequestException"); -static const int CLOUD_HSM_TAG_HASH = HashingUtils::HashString("CloudHsmTagException"); -static const int CLOUD_HSM_ACCESS_DENIED_HASH = HashingUtils::HashString("CloudHsmAccessDeniedException"); -static const int CLOUD_HSM_INTERNAL_FAILURE_HASH = HashingUtils::HashString("CloudHsmInternalFailureException"); -static const int CLOUD_HSM_SERVICE_HASH = HashingUtils::HashString("CloudHsmServiceException"); -static const int CLOUD_HSM_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("CloudHsmResourceNotFoundException"); +static constexpr uint32_t CLOUD_HSM_INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("CloudHsmInvalidRequestException"); +static constexpr uint32_t CLOUD_HSM_TAG_HASH = ConstExprHashingUtils::HashString("CloudHsmTagException"); +static constexpr uint32_t CLOUD_HSM_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("CloudHsmAccessDeniedException"); +static constexpr uint32_t CLOUD_HSM_INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("CloudHsmInternalFailureException"); +static constexpr uint32_t CLOUD_HSM_SERVICE_HASH = ConstExprHashingUtils::HashString("CloudHsmServiceException"); +static constexpr uint32_t CLOUD_HSM_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CloudHsmResourceNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLOUD_HSM_INVALID_REQUEST_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupPolicy.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupPolicy.cpp index 088676c4f0a..5e4a6aaef59 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupPolicy.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupPolicy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BackupPolicyMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); BackupPolicy GetBackupPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return BackupPolicy::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupRetentionType.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupRetentionType.cpp index e520e8c72e1..4001e47246e 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupRetentionType.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupRetentionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BackupRetentionTypeMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); BackupRetentionType GetBackupRetentionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return BackupRetentionType::DAYS; diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupState.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupState.cpp index 8a6c7631bf2..2c571123a39 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupState.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/BackupState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BackupStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); BackupState GetBackupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return BackupState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/ClusterState.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/ClusterState.cpp index e0f2dd1a64c..a34e0ff0261 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/ClusterState.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/ClusterState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ClusterStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int UNINITIALIZED_HASH = HashingUtils::HashString("UNINITIALIZED"); - static const int INITIALIZE_IN_PROGRESS_HASH = HashingUtils::HashString("INITIALIZE_IN_PROGRESS"); - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t UNINITIALIZED_HASH = ConstExprHashingUtils::HashString("UNINITIALIZED"); + static constexpr uint32_t INITIALIZE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("INITIALIZE_IN_PROGRESS"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); ClusterState GetClusterStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ClusterState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/HsmState.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/HsmState.cpp index 1fce0ae3e6b..4a5a69fc70d 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/HsmState.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/model/HsmState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace HsmStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); HsmState GetHsmStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return HsmState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchErrors.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchErrors.cpp index 1de7fb20dd5..12c3c1fa7a8 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchErrors.cpp @@ -18,17 +18,17 @@ namespace CloudSearch namespace CloudSearchErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int DISABLED_OPERATION_HASH = HashingUtils::HashString("DisabledAction"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExists"); -static const int BASE_HASH = HashingUtils::HashString("BaseException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceeded"); -static const int INVALID_TYPE_HASH = HashingUtils::HashString("InvalidType"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t DISABLED_OPERATION_HASH = ConstExprHashingUtils::HashString("DisabledAction"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExists"); +static constexpr uint32_t BASE_HASH = ConstExprHashingUtils::HashString("BaseException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); +static constexpr uint32_t INVALID_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidType"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/AlgorithmicStemming.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/AlgorithmicStemming.cpp index 4ef389a40b6..9a8f5d72223 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/AlgorithmicStemming.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/AlgorithmicStemming.cpp @@ -20,15 +20,15 @@ namespace Aws 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"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t minimal_HASH = ConstExprHashingUtils::HashString("minimal"); + static constexpr uint32_t light_HASH = ConstExprHashingUtils::HashString("light"); + static constexpr uint32_t full_HASH = ConstExprHashingUtils::HashString("full"); AlgorithmicStemming GetAlgorithmicStemmingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return AlgorithmicStemming::none; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/AnalysisSchemeLanguage.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/AnalysisSchemeLanguage.cpp index 9b23ba02cce..8c02d254425 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/AnalysisSchemeLanguage.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/AnalysisSchemeLanguage.cpp @@ -20,46 +20,46 @@ namespace Aws 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"); + static constexpr uint32_t ar_HASH = ConstExprHashingUtils::HashString("ar"); + static constexpr uint32_t bg_HASH = ConstExprHashingUtils::HashString("bg"); + static constexpr uint32_t ca_HASH = ConstExprHashingUtils::HashString("ca"); + static constexpr uint32_t cs_HASH = ConstExprHashingUtils::HashString("cs"); + static constexpr uint32_t da_HASH = ConstExprHashingUtils::HashString("da"); + static constexpr uint32_t de_HASH = ConstExprHashingUtils::HashString("de"); + static constexpr uint32_t el_HASH = ConstExprHashingUtils::HashString("el"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); + static constexpr uint32_t es_HASH = ConstExprHashingUtils::HashString("es"); + static constexpr uint32_t eu_HASH = ConstExprHashingUtils::HashString("eu"); + static constexpr uint32_t fa_HASH = ConstExprHashingUtils::HashString("fa"); + static constexpr uint32_t fi_HASH = ConstExprHashingUtils::HashString("fi"); + static constexpr uint32_t fr_HASH = ConstExprHashingUtils::HashString("fr"); + static constexpr uint32_t ga_HASH = ConstExprHashingUtils::HashString("ga"); + static constexpr uint32_t gl_HASH = ConstExprHashingUtils::HashString("gl"); + static constexpr uint32_t he_HASH = ConstExprHashingUtils::HashString("he"); + static constexpr uint32_t hi_HASH = ConstExprHashingUtils::HashString("hi"); + static constexpr uint32_t hu_HASH = ConstExprHashingUtils::HashString("hu"); + static constexpr uint32_t hy_HASH = ConstExprHashingUtils::HashString("hy"); + static constexpr uint32_t id_HASH = ConstExprHashingUtils::HashString("id"); + static constexpr uint32_t it_HASH = ConstExprHashingUtils::HashString("it"); + static constexpr uint32_t ja_HASH = ConstExprHashingUtils::HashString("ja"); + static constexpr uint32_t ko_HASH = ConstExprHashingUtils::HashString("ko"); + static constexpr uint32_t lv_HASH = ConstExprHashingUtils::HashString("lv"); + static constexpr uint32_t mul_HASH = ConstExprHashingUtils::HashString("mul"); + static constexpr uint32_t nl_HASH = ConstExprHashingUtils::HashString("nl"); + static constexpr uint32_t no_HASH = ConstExprHashingUtils::HashString("no"); + static constexpr uint32_t pt_HASH = ConstExprHashingUtils::HashString("pt"); + static constexpr uint32_t ro_HASH = ConstExprHashingUtils::HashString("ro"); + static constexpr uint32_t ru_HASH = ConstExprHashingUtils::HashString("ru"); + static constexpr uint32_t sv_HASH = ConstExprHashingUtils::HashString("sv"); + static constexpr uint32_t th_HASH = ConstExprHashingUtils::HashString("th"); + static constexpr uint32_t tr_HASH = ConstExprHashingUtils::HashString("tr"); + static constexpr uint32_t zh_Hans_HASH = ConstExprHashingUtils::HashString("zh-Hans"); + static constexpr uint32_t zh_Hant_HASH = ConstExprHashingUtils::HashString("zh-Hant"); AnalysisSchemeLanguage GetAnalysisSchemeLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ar_HASH) { return AnalysisSchemeLanguage::ar; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/IndexFieldType.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/IndexFieldType.cpp index 498a7f42ad1..8de94b58300 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/IndexFieldType.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/IndexFieldType.cpp @@ -20,22 +20,22 @@ namespace Aws 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"); + static constexpr uint32_t int__HASH = ConstExprHashingUtils::HashString("int"); + static constexpr uint32_t double__HASH = ConstExprHashingUtils::HashString("double"); + static constexpr uint32_t literal_HASH = ConstExprHashingUtils::HashString("literal"); + static constexpr uint32_t text_HASH = ConstExprHashingUtils::HashString("text"); + static constexpr uint32_t date_HASH = ConstExprHashingUtils::HashString("date"); + static constexpr uint32_t latlon_HASH = ConstExprHashingUtils::HashString("latlon"); + static constexpr uint32_t int_array_HASH = ConstExprHashingUtils::HashString("int-array"); + static constexpr uint32_t double_array_HASH = ConstExprHashingUtils::HashString("double-array"); + static constexpr uint32_t literal_array_HASH = ConstExprHashingUtils::HashString("literal-array"); + static constexpr uint32_t text_array_HASH = ConstExprHashingUtils::HashString("text-array"); + static constexpr uint32_t date_array_HASH = ConstExprHashingUtils::HashString("date-array"); IndexFieldType GetIndexFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == int__HASH) { return IndexFieldType::int_; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/OptionState.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/OptionState.cpp index 8ef3cb00912..6da5edf98f2 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/OptionState.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/OptionState.cpp @@ -20,15 +20,15 @@ namespace Aws 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"); + static constexpr uint32_t RequiresIndexDocuments_HASH = ConstExprHashingUtils::HashString("RequiresIndexDocuments"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t FailedToValidate_HASH = ConstExprHashingUtils::HashString("FailedToValidate"); OptionState GetOptionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RequiresIndexDocuments_HASH) { return OptionState::RequiresIndexDocuments; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/PartitionInstanceType.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/PartitionInstanceType.cpp index b333204fb6a..4625bc19b7a 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/PartitionInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/PartitionInstanceType.cpp @@ -20,28 +20,28 @@ namespace Aws 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"); - static const int search_small_HASH = HashingUtils::HashString("search.small"); - static const int search_medium_HASH = HashingUtils::HashString("search.medium"); - static const int search_large_HASH = HashingUtils::HashString("search.large"); - static const int search_xlarge_HASH = HashingUtils::HashString("search.xlarge"); - static const int search_2xlarge_HASH = HashingUtils::HashString("search.2xlarge"); - static const int search_previousgeneration_small_HASH = HashingUtils::HashString("search.previousgeneration.small"); - static const int search_previousgeneration_large_HASH = HashingUtils::HashString("search.previousgeneration.large"); - static const int search_previousgeneration_xlarge_HASH = HashingUtils::HashString("search.previousgeneration.xlarge"); - static const int search_previousgeneration_2xlarge_HASH = HashingUtils::HashString("search.previousgeneration.2xlarge"); + static constexpr uint32_t search_m1_small_HASH = ConstExprHashingUtils::HashString("search.m1.small"); + static constexpr uint32_t search_m1_large_HASH = ConstExprHashingUtils::HashString("search.m1.large"); + static constexpr uint32_t search_m2_xlarge_HASH = ConstExprHashingUtils::HashString("search.m2.xlarge"); + static constexpr uint32_t search_m2_2xlarge_HASH = ConstExprHashingUtils::HashString("search.m2.2xlarge"); + static constexpr uint32_t search_m3_medium_HASH = ConstExprHashingUtils::HashString("search.m3.medium"); + static constexpr uint32_t search_m3_large_HASH = ConstExprHashingUtils::HashString("search.m3.large"); + static constexpr uint32_t search_m3_xlarge_HASH = ConstExprHashingUtils::HashString("search.m3.xlarge"); + static constexpr uint32_t search_m3_2xlarge_HASH = ConstExprHashingUtils::HashString("search.m3.2xlarge"); + static constexpr uint32_t search_small_HASH = ConstExprHashingUtils::HashString("search.small"); + static constexpr uint32_t search_medium_HASH = ConstExprHashingUtils::HashString("search.medium"); + static constexpr uint32_t search_large_HASH = ConstExprHashingUtils::HashString("search.large"); + static constexpr uint32_t search_xlarge_HASH = ConstExprHashingUtils::HashString("search.xlarge"); + static constexpr uint32_t search_2xlarge_HASH = ConstExprHashingUtils::HashString("search.2xlarge"); + static constexpr uint32_t search_previousgeneration_small_HASH = ConstExprHashingUtils::HashString("search.previousgeneration.small"); + static constexpr uint32_t search_previousgeneration_large_HASH = ConstExprHashingUtils::HashString("search.previousgeneration.large"); + static constexpr uint32_t search_previousgeneration_xlarge_HASH = ConstExprHashingUtils::HashString("search.previousgeneration.xlarge"); + static constexpr uint32_t search_previousgeneration_2xlarge_HASH = ConstExprHashingUtils::HashString("search.previousgeneration.2xlarge"); PartitionInstanceType GetPartitionInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == search_m1_small_HASH) { return PartitionInstanceType::search_m1_small; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/SuggesterFuzzyMatching.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/SuggesterFuzzyMatching.cpp index 60b47a67b08..ecc76a3355a 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/SuggesterFuzzyMatching.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/SuggesterFuzzyMatching.cpp @@ -20,14 +20,14 @@ namespace Aws 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"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); SuggesterFuzzyMatching GetSuggesterFuzzyMatchingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return SuggesterFuzzyMatching::none; diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/model/TLSSecurityPolicy.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/model/TLSSecurityPolicy.cpp index 6768ae3cd6f..8a2b2709086 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/model/TLSSecurityPolicy.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/model/TLSSecurityPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws 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"); + static constexpr uint32_t Policy_Min_TLS_1_0_2019_07_HASH = ConstExprHashingUtils::HashString("Policy-Min-TLS-1-0-2019-07"); + static constexpr uint32_t Policy_Min_TLS_1_2_2019_07_HASH = ConstExprHashingUtils::HashString("Policy-Min-TLS-1-2-2019-07"); TLSSecurityPolicy GetTLSSecurityPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t 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; diff --git a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainErrors.cpp b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainErrors.cpp index c9a9ea66c6d..246bfd658d8 100644 --- a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainErrors.cpp @@ -26,13 +26,13 @@ template<> AWS_CLOUDSEARCHDOMAIN_API DocumentServiceException CloudSearchDomainE namespace CloudSearchDomainErrorMapper { -static const int DOCUMENT_SERVICE_HASH = HashingUtils::HashString("DocumentServiceException"); -static const int SEARCH_HASH = HashingUtils::HashString("SearchException"); +static constexpr uint32_t DOCUMENT_SERVICE_HASH = ConstExprHashingUtils::HashString("DocumentServiceException"); +static constexpr uint32_t SEARCH_HASH = ConstExprHashingUtils::HashString("SearchException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == DOCUMENT_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/ContentType.cpp b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/ContentType.cpp index 94b6c7a00f8..3ac4b8173d3 100644 --- a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/ContentType.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/ContentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentTypeMapper { - static const int application_json_HASH = HashingUtils::HashString("application/json"); - static const int application_xml_HASH = HashingUtils::HashString("application/xml"); + static constexpr uint32_t application_json_HASH = ConstExprHashingUtils::HashString("application/json"); + static constexpr uint32_t application_xml_HASH = ConstExprHashingUtils::HashString("application/xml"); ContentType GetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == application_json_HASH) { return ContentType::application_json; diff --git a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/QueryParser.cpp b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/QueryParser.cpp index ebc81ec175f..cc2d16fde54 100644 --- a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/QueryParser.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/model/QueryParser.cpp @@ -20,15 +20,15 @@ namespace Aws namespace QueryParserMapper { - static const int simple_HASH = HashingUtils::HashString("simple"); - static const int structured_HASH = HashingUtils::HashString("structured"); - static const int lucene_HASH = HashingUtils::HashString("lucene"); - static const int dismax_HASH = HashingUtils::HashString("dismax"); + static constexpr uint32_t simple_HASH = ConstExprHashingUtils::HashString("simple"); + static constexpr uint32_t structured_HASH = ConstExprHashingUtils::HashString("structured"); + static constexpr uint32_t lucene_HASH = ConstExprHashingUtils::HashString("lucene"); + static constexpr uint32_t dismax_HASH = ConstExprHashingUtils::HashString("dismax"); QueryParser GetQueryParserForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == simple_HASH) { return QueryParser::simple; diff --git a/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataErrors.cpp b/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataErrors.cpp index c32d236527a..44b3c29e41f 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataErrors.cpp @@ -18,17 +18,17 @@ namespace CloudTrailData namespace CloudTrailDataErrorMapper { -static const int CHANNEL_NOT_FOUND_HASH = HashingUtils::HashString("ChannelNotFound"); -static const int INVALID_CHANNEL_A_R_N_HASH = HashingUtils::HashString("InvalidChannelARN"); -static const int CHANNEL_UNSUPPORTED_SCHEMA_HASH = HashingUtils::HashString("ChannelUnsupportedSchema"); -static const int DUPLICATED_AUDIT_EVENT_ID_HASH = HashingUtils::HashString("DuplicatedAuditEventId"); -static const int CHANNEL_INSUFFICIENT_PERMISSION_HASH = HashingUtils::HashString("ChannelInsufficientPermission"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t CHANNEL_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ChannelNotFound"); +static constexpr uint32_t INVALID_CHANNEL_A_R_N_HASH = ConstExprHashingUtils::HashString("InvalidChannelARN"); +static constexpr uint32_t CHANNEL_UNSUPPORTED_SCHEMA_HASH = ConstExprHashingUtils::HashString("ChannelUnsupportedSchema"); +static constexpr uint32_t DUPLICATED_AUDIT_EVENT_ID_HASH = ConstExprHashingUtils::HashString("DuplicatedAuditEventId"); +static constexpr uint32_t CHANNEL_INSUFFICIENT_PERMISSION_HASH = ConstExprHashingUtils::HashString("ChannelInsufficientPermission"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CHANNEL_NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailErrors.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailErrors.cpp index 5b305859506..d87cb125e0f 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailErrors.cpp @@ -18,88 +18,88 @@ namespace CloudTrail namespace CloudTrailErrorMapper { -static const int TRAIL_ALREADY_EXISTS_HASH = HashingUtils::HashString("TrailAlreadyExistsException"); -static const int CANNOT_DELEGATE_MANAGEMENT_ACCOUNT_HASH = HashingUtils::HashString("CannotDelegateManagementAccountException"); -static const int NO_MANAGEMENT_ACCOUNT_S_L_R_EXISTS_HASH = HashingUtils::HashString("NoManagementAccountSLRExistsException"); -static const int KMS_KEY_NOT_FOUND_HASH = HashingUtils::HashString("KmsKeyNotFoundException"); -static const int INVALID_MAX_RESULTS_HASH = HashingUtils::HashString("InvalidMaxResultsException"); -static const int TAGS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagsLimitExceededException"); -static const int CLOUD_TRAIL_ACCESS_NOT_ENABLED_HASH = HashingUtils::HashString("CloudTrailAccessNotEnabledException"); -static const int CLOUD_WATCH_LOGS_DELIVERY_UNAVAILABLE_HASH = HashingUtils::HashString("CloudWatchLogsDeliveryUnavailableException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_TRAIL_NAME_HASH = HashingUtils::HashString("InvalidTrailNameException"); -static const int ORGANIZATIONS_NOT_IN_USE_HASH = HashingUtils::HashString("OrganizationsNotInUseException"); -static const int INVALID_SNS_TOPIC_NAME_HASH = HashingUtils::HashString("InvalidSnsTopicNameException"); -static const int TRAIL_NOT_FOUND_HASH = HashingUtils::HashString("TrailNotFoundException"); -static const int NOT_ORGANIZATION_MASTER_ACCOUNT_HASH = HashingUtils::HashString("NotOrganizationMasterAccountException"); -static const int INVALID_TAG_PARAMETER_HASH = HashingUtils::HashString("InvalidTagParameterException"); -static const int INACTIVE_QUERY_HASH = HashingUtils::HashString("InactiveQueryException"); -static const int CHANNEL_EXISTS_FOR_E_D_S_HASH = HashingUtils::HashString("ChannelExistsForEDSException"); -static const int INSUFFICIENT_ENCRYPTION_POLICY_HASH = HashingUtils::HashString("InsufficientEncryptionPolicyException"); -static const int INVALID_IMPORT_SOURCE_HASH = HashingUtils::HashString("InvalidImportSourceException"); -static const int CLOUD_TRAIL_INVALID_CLIENT_TOKEN_ID_HASH = HashingUtils::HashString("CloudTrailInvalidClientTokenIdException"); -static const int INVALID_INSIGHT_SELECTORS_HASH = HashingUtils::HashString("InvalidInsightSelectorsException"); -static const int ACCOUNT_HAS_ONGOING_IMPORT_HASH = HashingUtils::HashString("AccountHasOngoingImportException"); -static const int INSUFFICIENT_S3_BUCKET_POLICY_HASH = HashingUtils::HashString("InsufficientS3BucketPolicyException"); -static const int EVENT_DATA_STORE_HAS_ONGOING_IMPORT_HASH = HashingUtils::HashString("EventDataStoreHasOngoingImportException"); -static const int EVENT_DATA_STORE_NOT_FOUND_HASH = HashingUtils::HashString("EventDataStoreNotFoundException"); -static const int INVALID_LOOKUP_ATTRIBUTES_HASH = HashingUtils::HashString("InvalidLookupAttributesException"); -static const int ACCOUNT_REGISTERED_HASH = HashingUtils::HashString("AccountRegisteredException"); -static const int DELEGATED_ADMIN_ACCOUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DelegatedAdminAccountLimitExceededException"); -static const int INVALID_DATE_RANGE_HASH = HashingUtils::HashString("InvalidDateRangeException"); -static const int MAXIMUM_NUMBER_OF_TRAILS_EXCEEDED_HASH = HashingUtils::HashString("MaximumNumberOfTrailsExceededException"); -static const int INVALID_S3_PREFIX_HASH = HashingUtils::HashString("InvalidS3PrefixException"); -static const int RESOURCE_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("ResourceTypeNotSupportedException"); -static const int CHANNEL_NOT_FOUND_HASH = HashingUtils::HashString("ChannelNotFoundException"); -static const int INSIGHT_NOT_ENABLED_HASH = HashingUtils::HashString("InsightNotEnabledException"); -static const int CHANNEL_MAX_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ChannelMaxLimitExceededException"); -static const int KMS_KEY_DISABLED_HASH = HashingUtils::HashString("KmsKeyDisabledException"); -static const int INVALID_S3_BUCKET_NAME_HASH = HashingUtils::HashString("InvalidS3BucketNameException"); -static const int INVALID_HOME_REGION_HASH = HashingUtils::HashString("InvalidHomeRegionException"); -static const int NOT_ORGANIZATION_MANAGEMENT_ACCOUNT_HASH = HashingUtils::HashString("NotOrganizationManagementAccountException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int CHANNEL_A_R_N_INVALID_HASH = HashingUtils::HashString("ChannelARNInvalidException"); -static const int INVALID_TOKEN_HASH = HashingUtils::HashString("InvalidTokenException"); -static const int INSUFFICIENT_DEPENDENCY_SERVICE_ACCESS_PERMISSION_HASH = HashingUtils::HashString("InsufficientDependencyServiceAccessPermissionException"); -static const int EVENT_DATA_STORE_TERMINATION_PROTECTED_HASH = HashingUtils::HashString("EventDataStoreTerminationProtectedException"); -static const int EVENT_DATA_STORE_MAX_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EventDataStoreMaxLimitExceededException"); -static const int INSUFFICIENT_SNS_TOPIC_POLICY_HASH = HashingUtils::HashString("InsufficientSnsTopicPolicyException"); -static const int INVALID_CLOUD_WATCH_LOGS_ROLE_ARN_HASH = HashingUtils::HashString("InvalidCloudWatchLogsRoleArnException"); -static const int MAX_CONCURRENT_QUERIES_HASH = HashingUtils::HashString("MaxConcurrentQueriesException"); -static const int CHANNEL_ALREADY_EXISTS_HASH = HashingUtils::HashString("ChannelAlreadyExistsException"); -static const int INVALID_QUERY_STATEMENT_HASH = HashingUtils::HashString("InvalidQueryStatementException"); -static const int INVALID_KMS_KEY_ID_HASH = HashingUtils::HashString("InvalidKmsKeyIdException"); -static const int EVENT_DATA_STORE_A_R_N_INVALID_HASH = HashingUtils::HashString("EventDataStoreARNInvalidException"); -static const int RESOURCE_A_R_N_NOT_VALID_HASH = HashingUtils::HashString("ResourceARNNotValidException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_POLICY_NOT_VALID_HASH = HashingUtils::HashString("ResourcePolicyNotValidException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_EVENT_SELECTORS_HASH = HashingUtils::HashString("InvalidEventSelectorsException"); -static const int INVALID_TIME_RANGE_HASH = HashingUtils::HashString("InvalidTimeRangeException"); -static const int QUERY_ID_NOT_FOUND_HASH = HashingUtils::HashString("QueryIdNotFoundException"); -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermittedException"); -static const int ACCOUNT_NOT_FOUND_HASH = HashingUtils::HashString("AccountNotFoundException"); -static const int INVALID_EVENT_DATA_STORE_STATUS_HASH = HashingUtils::HashString("InvalidEventDataStoreStatusException"); -static const int TRAIL_NOT_PROVIDED_HASH = HashingUtils::HashString("TrailNotProvidedException"); -static const int RESOURCE_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("ResourcePolicyNotFoundException"); -static const int INVALID_QUERY_STATUS_HASH = HashingUtils::HashString("InvalidQueryStatusException"); -static const int INACTIVE_EVENT_DATA_STORE_HASH = HashingUtils::HashString("InactiveEventDataStoreException"); -static const int ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = HashingUtils::HashString("OrganizationNotInAllFeaturesModeException"); -static const int INVALID_EVENT_DATA_STORE_CATEGORY_HASH = HashingUtils::HashString("InvalidEventDataStoreCategoryException"); -static const int ACCOUNT_NOT_REGISTERED_HASH = HashingUtils::HashString("AccountNotRegisteredException"); -static const int INVALID_CLOUD_WATCH_LOGS_LOG_GROUP_ARN_HASH = HashingUtils::HashString("InvalidCloudWatchLogsLogGroupArnException"); -static const int S3_BUCKET_DOES_NOT_EXIST_HASH = HashingUtils::HashString("S3BucketDoesNotExistException"); -static const int KMS_HASH = HashingUtils::HashString("KmsException"); -static const int INVALID_SOURCE_HASH = HashingUtils::HashString("InvalidSourceException"); -static const int INVALID_EVENT_CATEGORY_HASH = HashingUtils::HashString("InvalidEventCategoryException"); -static const int CLOUD_TRAIL_A_R_N_INVALID_HASH = HashingUtils::HashString("CloudTrailARNInvalidException"); -static const int IMPORT_NOT_FOUND_HASH = HashingUtils::HashString("ImportNotFoundException"); -static const int EVENT_DATA_STORE_ALREADY_EXISTS_HASH = HashingUtils::HashString("EventDataStoreAlreadyExistsException"); +static constexpr uint32_t TRAIL_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TrailAlreadyExistsException"); +static constexpr uint32_t CANNOT_DELEGATE_MANAGEMENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("CannotDelegateManagementAccountException"); +static constexpr uint32_t NO_MANAGEMENT_ACCOUNT_S_L_R_EXISTS_HASH = ConstExprHashingUtils::HashString("NoManagementAccountSLRExistsException"); +static constexpr uint32_t KMS_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KmsKeyNotFoundException"); +static constexpr uint32_t INVALID_MAX_RESULTS_HASH = ConstExprHashingUtils::HashString("InvalidMaxResultsException"); +static constexpr uint32_t TAGS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagsLimitExceededException"); +static constexpr uint32_t CLOUD_TRAIL_ACCESS_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("CloudTrailAccessNotEnabledException"); +static constexpr uint32_t CLOUD_WATCH_LOGS_DELIVERY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("CloudWatchLogsDeliveryUnavailableException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_TRAIL_NAME_HASH = ConstExprHashingUtils::HashString("InvalidTrailNameException"); +static constexpr uint32_t ORGANIZATIONS_NOT_IN_USE_HASH = ConstExprHashingUtils::HashString("OrganizationsNotInUseException"); +static constexpr uint32_t INVALID_SNS_TOPIC_NAME_HASH = ConstExprHashingUtils::HashString("InvalidSnsTopicNameException"); +static constexpr uint32_t TRAIL_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TrailNotFoundException"); +static constexpr uint32_t NOT_ORGANIZATION_MASTER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("NotOrganizationMasterAccountException"); +static constexpr uint32_t INVALID_TAG_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidTagParameterException"); +static constexpr uint32_t INACTIVE_QUERY_HASH = ConstExprHashingUtils::HashString("InactiveQueryException"); +static constexpr uint32_t CHANNEL_EXISTS_FOR_E_D_S_HASH = ConstExprHashingUtils::HashString("ChannelExistsForEDSException"); +static constexpr uint32_t INSUFFICIENT_ENCRYPTION_POLICY_HASH = ConstExprHashingUtils::HashString("InsufficientEncryptionPolicyException"); +static constexpr uint32_t INVALID_IMPORT_SOURCE_HASH = ConstExprHashingUtils::HashString("InvalidImportSourceException"); +static constexpr uint32_t CLOUD_TRAIL_INVALID_CLIENT_TOKEN_ID_HASH = ConstExprHashingUtils::HashString("CloudTrailInvalidClientTokenIdException"); +static constexpr uint32_t INVALID_INSIGHT_SELECTORS_HASH = ConstExprHashingUtils::HashString("InvalidInsightSelectorsException"); +static constexpr uint32_t ACCOUNT_HAS_ONGOING_IMPORT_HASH = ConstExprHashingUtils::HashString("AccountHasOngoingImportException"); +static constexpr uint32_t INSUFFICIENT_S3_BUCKET_POLICY_HASH = ConstExprHashingUtils::HashString("InsufficientS3BucketPolicyException"); +static constexpr uint32_t EVENT_DATA_STORE_HAS_ONGOING_IMPORT_HASH = ConstExprHashingUtils::HashString("EventDataStoreHasOngoingImportException"); +static constexpr uint32_t EVENT_DATA_STORE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EventDataStoreNotFoundException"); +static constexpr uint32_t INVALID_LOOKUP_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("InvalidLookupAttributesException"); +static constexpr uint32_t ACCOUNT_REGISTERED_HASH = ConstExprHashingUtils::HashString("AccountRegisteredException"); +static constexpr uint32_t DELEGATED_ADMIN_ACCOUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DelegatedAdminAccountLimitExceededException"); +static constexpr uint32_t INVALID_DATE_RANGE_HASH = ConstExprHashingUtils::HashString("InvalidDateRangeException"); +static constexpr uint32_t MAXIMUM_NUMBER_OF_TRAILS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumNumberOfTrailsExceededException"); +static constexpr uint32_t INVALID_S3_PREFIX_HASH = ConstExprHashingUtils::HashString("InvalidS3PrefixException"); +static constexpr uint32_t RESOURCE_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ResourceTypeNotSupportedException"); +static constexpr uint32_t CHANNEL_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ChannelNotFoundException"); +static constexpr uint32_t INSIGHT_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("InsightNotEnabledException"); +static constexpr uint32_t CHANNEL_MAX_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ChannelMaxLimitExceededException"); +static constexpr uint32_t KMS_KEY_DISABLED_HASH = ConstExprHashingUtils::HashString("KmsKeyDisabledException"); +static constexpr uint32_t INVALID_S3_BUCKET_NAME_HASH = ConstExprHashingUtils::HashString("InvalidS3BucketNameException"); +static constexpr uint32_t INVALID_HOME_REGION_HASH = ConstExprHashingUtils::HashString("InvalidHomeRegionException"); +static constexpr uint32_t NOT_ORGANIZATION_MANAGEMENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("NotOrganizationManagementAccountException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t CHANNEL_A_R_N_INVALID_HASH = ConstExprHashingUtils::HashString("ChannelARNInvalidException"); +static constexpr uint32_t INVALID_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidTokenException"); +static constexpr uint32_t INSUFFICIENT_DEPENDENCY_SERVICE_ACCESS_PERMISSION_HASH = ConstExprHashingUtils::HashString("InsufficientDependencyServiceAccessPermissionException"); +static constexpr uint32_t EVENT_DATA_STORE_TERMINATION_PROTECTED_HASH = ConstExprHashingUtils::HashString("EventDataStoreTerminationProtectedException"); +static constexpr uint32_t EVENT_DATA_STORE_MAX_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("EventDataStoreMaxLimitExceededException"); +static constexpr uint32_t INSUFFICIENT_SNS_TOPIC_POLICY_HASH = ConstExprHashingUtils::HashString("InsufficientSnsTopicPolicyException"); +static constexpr uint32_t INVALID_CLOUD_WATCH_LOGS_ROLE_ARN_HASH = ConstExprHashingUtils::HashString("InvalidCloudWatchLogsRoleArnException"); +static constexpr uint32_t MAX_CONCURRENT_QUERIES_HASH = ConstExprHashingUtils::HashString("MaxConcurrentQueriesException"); +static constexpr uint32_t CHANNEL_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ChannelAlreadyExistsException"); +static constexpr uint32_t INVALID_QUERY_STATEMENT_HASH = ConstExprHashingUtils::HashString("InvalidQueryStatementException"); +static constexpr uint32_t INVALID_KMS_KEY_ID_HASH = ConstExprHashingUtils::HashString("InvalidKmsKeyIdException"); +static constexpr uint32_t EVENT_DATA_STORE_A_R_N_INVALID_HASH = ConstExprHashingUtils::HashString("EventDataStoreARNInvalidException"); +static constexpr uint32_t RESOURCE_A_R_N_NOT_VALID_HASH = ConstExprHashingUtils::HashString("ResourceARNNotValidException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_POLICY_NOT_VALID_HASH = ConstExprHashingUtils::HashString("ResourcePolicyNotValidException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_EVENT_SELECTORS_HASH = ConstExprHashingUtils::HashString("InvalidEventSelectorsException"); +static constexpr uint32_t INVALID_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("InvalidTimeRangeException"); +static constexpr uint32_t QUERY_ID_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("QueryIdNotFoundException"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermittedException"); +static constexpr uint32_t ACCOUNT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AccountNotFoundException"); +static constexpr uint32_t INVALID_EVENT_DATA_STORE_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidEventDataStoreStatusException"); +static constexpr uint32_t TRAIL_NOT_PROVIDED_HASH = ConstExprHashingUtils::HashString("TrailNotProvidedException"); +static constexpr uint32_t RESOURCE_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ResourcePolicyNotFoundException"); +static constexpr uint32_t INVALID_QUERY_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidQueryStatusException"); +static constexpr uint32_t INACTIVE_EVENT_DATA_STORE_HASH = ConstExprHashingUtils::HashString("InactiveEventDataStoreException"); +static constexpr uint32_t ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = ConstExprHashingUtils::HashString("OrganizationNotInAllFeaturesModeException"); +static constexpr uint32_t INVALID_EVENT_DATA_STORE_CATEGORY_HASH = ConstExprHashingUtils::HashString("InvalidEventDataStoreCategoryException"); +static constexpr uint32_t ACCOUNT_NOT_REGISTERED_HASH = ConstExprHashingUtils::HashString("AccountNotRegisteredException"); +static constexpr uint32_t INVALID_CLOUD_WATCH_LOGS_LOG_GROUP_ARN_HASH = ConstExprHashingUtils::HashString("InvalidCloudWatchLogsLogGroupArnException"); +static constexpr uint32_t S3_BUCKET_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("S3BucketDoesNotExistException"); +static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KmsException"); +static constexpr uint32_t INVALID_SOURCE_HASH = ConstExprHashingUtils::HashString("InvalidSourceException"); +static constexpr uint32_t INVALID_EVENT_CATEGORY_HASH = ConstExprHashingUtils::HashString("InvalidEventCategoryException"); +static constexpr uint32_t CLOUD_TRAIL_A_R_N_INVALID_HASH = ConstExprHashingUtils::HashString("CloudTrailARNInvalidException"); +static constexpr uint32_t IMPORT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ImportNotFoundException"); +static constexpr uint32_t EVENT_DATA_STORE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EventDataStoreAlreadyExistsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TRAIL_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/DeliveryStatus.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/DeliveryStatus.cpp index e90efbbd422..48deeade607 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/DeliveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/DeliveryStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace DeliveryStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int FAILED_SIGNING_FILE_HASH = HashingUtils::HashString("FAILED_SIGNING_FILE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int ACCESS_DENIED_SIGNING_FILE_HASH = HashingUtils::HashString("ACCESS_DENIED_SIGNING_FILE"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t FAILED_SIGNING_FILE_HASH = ConstExprHashingUtils::HashString("FAILED_SIGNING_FILE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t ACCESS_DENIED_SIGNING_FILE_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_SIGNING_FILE"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); DeliveryStatus GetDeliveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return DeliveryStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/DestinationType.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/DestinationType.cpp index a86ce895ad8..c2555b3af8b 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/DestinationType.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/DestinationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DestinationTypeMapper { - static const int EVENT_DATA_STORE_HASH = HashingUtils::HashString("EVENT_DATA_STORE"); - static const int AWS_SERVICE_HASH = HashingUtils::HashString("AWS_SERVICE"); + static constexpr uint32_t EVENT_DATA_STORE_HASH = ConstExprHashingUtils::HashString("EVENT_DATA_STORE"); + static constexpr uint32_t AWS_SERVICE_HASH = ConstExprHashingUtils::HashString("AWS_SERVICE"); DestinationType GetDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_DATA_STORE_HASH) { return DestinationType::EVENT_DATA_STORE; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventCategory.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventCategory.cpp index d321a594742..1aa4a345d4b 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventCategory.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventCategory.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventCategoryMapper { - static const int insight_HASH = HashingUtils::HashString("insight"); + static constexpr uint32_t insight_HASH = ConstExprHashingUtils::HashString("insight"); EventCategory GetEventCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == insight_HASH) { return EventCategory::insight; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventDataStoreStatus.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventDataStoreStatus.cpp index 38829a2d2e0..9b2f08bf36e 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventDataStoreStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/EventDataStoreStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace EventDataStoreStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); - static const int STARTING_INGESTION_HASH = HashingUtils::HashString("STARTING_INGESTION"); - static const int STOPPING_INGESTION_HASH = HashingUtils::HashString("STOPPING_INGESTION"); - static const int STOPPED_INGESTION_HASH = HashingUtils::HashString("STOPPED_INGESTION"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t STARTING_INGESTION_HASH = ConstExprHashingUtils::HashString("STARTING_INGESTION"); + static constexpr uint32_t STOPPING_INGESTION_HASH = ConstExprHashingUtils::HashString("STOPPING_INGESTION"); + static constexpr uint32_t STOPPED_INGESTION_HASH = ConstExprHashingUtils::HashString("STOPPED_INGESTION"); EventDataStoreStatus GetEventDataStoreStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return EventDataStoreStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportFailureStatus.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportFailureStatus.cpp index 606d02d8afa..3fc1ebc4fd2 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportFailureStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportFailureStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImportFailureStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int RETRY_HASH = HashingUtils::HashString("RETRY"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t RETRY_HASH = ConstExprHashingUtils::HashString("RETRY"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); ImportFailureStatus GetImportFailureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return ImportFailureStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportStatus.cpp index c9609d99a1d..041c45b624d 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/ImportStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ImportStatusMapper { - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ImportStatus GetImportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZING_HASH) { return ImportStatus::INITIALIZING; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/InsightType.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/InsightType.cpp index e9927ffca5b..89d9d4e1510 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/InsightType.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/InsightType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InsightTypeMapper { - static const int ApiCallRateInsight_HASH = HashingUtils::HashString("ApiCallRateInsight"); - static const int ApiErrorRateInsight_HASH = HashingUtils::HashString("ApiErrorRateInsight"); + static constexpr uint32_t ApiCallRateInsight_HASH = ConstExprHashingUtils::HashString("ApiCallRateInsight"); + static constexpr uint32_t ApiErrorRateInsight_HASH = ConstExprHashingUtils::HashString("ApiErrorRateInsight"); InsightType GetInsightTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ApiCallRateInsight_HASH) { return InsightType::ApiCallRateInsight; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/LookupAttributeKey.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/LookupAttributeKey.cpp index 77ff1ee33f2..4daefaba612 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/LookupAttributeKey.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/LookupAttributeKey.cpp @@ -20,19 +20,19 @@ namespace Aws namespace LookupAttributeKeyMapper { - static const int EventId_HASH = HashingUtils::HashString("EventId"); - static const int EventName_HASH = HashingUtils::HashString("EventName"); - static const int ReadOnly_HASH = HashingUtils::HashString("ReadOnly"); - static const int Username_HASH = HashingUtils::HashString("Username"); - static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); - static const int ResourceName_HASH = HashingUtils::HashString("ResourceName"); - static const int EventSource_HASH = HashingUtils::HashString("EventSource"); - static const int AccessKeyId_HASH = HashingUtils::HashString("AccessKeyId"); + static constexpr uint32_t EventId_HASH = ConstExprHashingUtils::HashString("EventId"); + static constexpr uint32_t EventName_HASH = ConstExprHashingUtils::HashString("EventName"); + static constexpr uint32_t ReadOnly_HASH = ConstExprHashingUtils::HashString("ReadOnly"); + static constexpr uint32_t Username_HASH = ConstExprHashingUtils::HashString("Username"); + static constexpr uint32_t ResourceType_HASH = ConstExprHashingUtils::HashString("ResourceType"); + static constexpr uint32_t ResourceName_HASH = ConstExprHashingUtils::HashString("ResourceName"); + static constexpr uint32_t EventSource_HASH = ConstExprHashingUtils::HashString("EventSource"); + static constexpr uint32_t AccessKeyId_HASH = ConstExprHashingUtils::HashString("AccessKeyId"); LookupAttributeKey GetLookupAttributeKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EventId_HASH) { return LookupAttributeKey::EventId; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/QueryStatus.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/QueryStatus.cpp index db485f43aca..7c112a6b5e6 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/QueryStatus.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/QueryStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace QueryStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); QueryStatus GetQueryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return QueryStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/model/ReadWriteType.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/model/ReadWriteType.cpp index 91b2d4e9592..2093df0aacd 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/model/ReadWriteType.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/model/ReadWriteType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReadWriteTypeMapper { - static const int ReadOnly_HASH = HashingUtils::HashString("ReadOnly"); - static const int WriteOnly_HASH = HashingUtils::HashString("WriteOnly"); - static const int All_HASH = HashingUtils::HashString("All"); + static constexpr uint32_t ReadOnly_HASH = ConstExprHashingUtils::HashString("ReadOnly"); + static constexpr uint32_t WriteOnly_HASH = ConstExprHashingUtils::HashString("WriteOnly"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); ReadWriteType GetReadWriteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ReadOnly_HASH) { return ReadWriteType::ReadOnly; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactErrors.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactErrors.cpp index 2519540267c..5ef73fbcf1b 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactErrors.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_CODEARTIFACT_API ValidationException CodeArtifactError::GetModele namespace CodeArtifactErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowPublish.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowPublish.cpp index c4350b0f155..f250fefae2c 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowPublish.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowPublish.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AllowPublishMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); AllowPublish GetAllowPublishForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return AllowPublish::ALLOW; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowUpstream.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowUpstream.cpp index 318fa0f4acf..cd4c2d2743e 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowUpstream.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/AllowUpstream.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AllowUpstreamMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); AllowUpstream GetAllowUpstreamForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return AllowUpstream::ALLOW; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/DomainStatus.cpp index 7d4ec7fe2b5..a6a8b5e518f 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/DomainStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DomainStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return DomainStatus::Active; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/ExternalConnectionStatus.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/ExternalConnectionStatus.cpp index ff9e0f775ed..fecf5319967 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/ExternalConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/ExternalConnectionStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExternalConnectionStatusMapper { - static const int Available_HASH = HashingUtils::HashString("Available"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); ExternalConnectionStatus GetExternalConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Available_HASH) { return ExternalConnectionStatus::Available; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/HashAlgorithm.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/HashAlgorithm.cpp index dfdcb789759..1911d9d53e8 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/HashAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/HashAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HashAlgorithmMapper { - static const int MD5_HASH = HashingUtils::HashString("MD5"); - static const int SHA_1_HASH = HashingUtils::HashString("SHA-1"); - static const int SHA_256_HASH = HashingUtils::HashString("SHA-256"); - static const int SHA_512_HASH = HashingUtils::HashString("SHA-512"); + static constexpr uint32_t MD5_HASH = ConstExprHashingUtils::HashString("MD5"); + static constexpr uint32_t SHA_1_HASH = ConstExprHashingUtils::HashString("SHA-1"); + static constexpr uint32_t SHA_256_HASH = ConstExprHashingUtils::HashString("SHA-256"); + static constexpr uint32_t SHA_512_HASH = ConstExprHashingUtils::HashString("SHA-512"); HashAlgorithm GetHashAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MD5_HASH) { return HashAlgorithm::MD5; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageFormat.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageFormat.cpp index ad4ed01a86c..d0d04a81b79 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageFormat.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageFormat.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PackageFormatMapper { - static const int npm_HASH = HashingUtils::HashString("npm"); - static const int pypi_HASH = HashingUtils::HashString("pypi"); - static const int maven_HASH = HashingUtils::HashString("maven"); - static const int nuget_HASH = HashingUtils::HashString("nuget"); - static const int generic_HASH = HashingUtils::HashString("generic"); - static const int swift_HASH = HashingUtils::HashString("swift"); + static constexpr uint32_t npm_HASH = ConstExprHashingUtils::HashString("npm"); + static constexpr uint32_t pypi_HASH = ConstExprHashingUtils::HashString("pypi"); + static constexpr uint32_t maven_HASH = ConstExprHashingUtils::HashString("maven"); + static constexpr uint32_t nuget_HASH = ConstExprHashingUtils::HashString("nuget"); + static constexpr uint32_t generic_HASH = ConstExprHashingUtils::HashString("generic"); + static constexpr uint32_t swift_HASH = ConstExprHashingUtils::HashString("swift"); PackageFormat GetPackageFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == npm_HASH) { return PackageFormat::npm; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionErrorCode.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionErrorCode.cpp index 7b975bbd5a8..8cc9f1c3d86 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PackageVersionErrorCodeMapper { - static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("ALREADY_EXISTS"); - static const int MISMATCHED_REVISION_HASH = HashingUtils::HashString("MISMATCHED_REVISION"); - static const int MISMATCHED_STATUS_HASH = HashingUtils::HashString("MISMATCHED_STATUS"); - static const int NOT_ALLOWED_HASH = HashingUtils::HashString("NOT_ALLOWED"); - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ALREADY_EXISTS"); + static constexpr uint32_t MISMATCHED_REVISION_HASH = ConstExprHashingUtils::HashString("MISMATCHED_REVISION"); + static constexpr uint32_t MISMATCHED_STATUS_HASH = ConstExprHashingUtils::HashString("MISMATCHED_STATUS"); + static constexpr uint32_t NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("NOT_ALLOWED"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); PackageVersionErrorCode GetPackageVersionErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALREADY_EXISTS_HASH) { return PackageVersionErrorCode::ALREADY_EXISTS; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionOriginType.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionOriginType.cpp index 61d05f505d2..9fafdbb6f15 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionOriginType.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionOriginType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PackageVersionOriginTypeMapper { - static const int INTERNAL_HASH = HashingUtils::HashString("INTERNAL"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("INTERNAL"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); PackageVersionOriginType GetPackageVersionOriginTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_HASH) { return PackageVersionOriginType::INTERNAL; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionSortType.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionSortType.cpp index ec6e76c37b0..92c4d5d06f0 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionSortType.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionSortType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PackageVersionSortTypeMapper { - static const int PUBLISHED_TIME_HASH = HashingUtils::HashString("PUBLISHED_TIME"); + static constexpr uint32_t PUBLISHED_TIME_HASH = ConstExprHashingUtils::HashString("PUBLISHED_TIME"); PackageVersionSortType GetPackageVersionSortTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISHED_TIME_HASH) { return PackageVersionSortType::PUBLISHED_TIME; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionStatus.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionStatus.cpp index bd0914cd9c9..83b57d32c23 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/PackageVersionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PackageVersionStatusMapper { - static const int Published_HASH = HashingUtils::HashString("Published"); - static const int Unfinished_HASH = HashingUtils::HashString("Unfinished"); - static const int Unlisted_HASH = HashingUtils::HashString("Unlisted"); - static const int Archived_HASH = HashingUtils::HashString("Archived"); - static const int Disposed_HASH = HashingUtils::HashString("Disposed"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); + static constexpr uint32_t Published_HASH = ConstExprHashingUtils::HashString("Published"); + static constexpr uint32_t Unfinished_HASH = ConstExprHashingUtils::HashString("Unfinished"); + static constexpr uint32_t Unlisted_HASH = ConstExprHashingUtils::HashString("Unlisted"); + static constexpr uint32_t Archived_HASH = ConstExprHashingUtils::HashString("Archived"); + static constexpr uint32_t Disposed_HASH = ConstExprHashingUtils::HashString("Disposed"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); PackageVersionStatus GetPackageVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Published_HASH) { return PackageVersionStatus::Published; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/ResourceType.cpp index 2878ac27e28..6df7816e92c 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int domain_HASH = HashingUtils::HashString("domain"); - static const int repository_HASH = HashingUtils::HashString("repository"); - static const int package_HASH = HashingUtils::HashString("package"); - static const int package_version_HASH = HashingUtils::HashString("package-version"); - static const int asset_HASH = HashingUtils::HashString("asset"); + static constexpr uint32_t domain_HASH = ConstExprHashingUtils::HashString("domain"); + static constexpr uint32_t repository_HASH = ConstExprHashingUtils::HashString("repository"); + static constexpr uint32_t package_HASH = ConstExprHashingUtils::HashString("package"); + static constexpr uint32_t package_version_HASH = ConstExprHashingUtils::HashString("package-version"); + static constexpr uint32_t asset_HASH = ConstExprHashingUtils::HashString("asset"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == domain_HASH) { return ResourceType::domain; diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/model/ValidationExceptionReason.cpp index c33c8d8c716..79d9d2abfa9 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/model/ValidationExceptionReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int ENCRYPTION_KEY_ERROR_HASH = HashingUtils::HashString("ENCRYPTION_KEY_ERROR"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t ENCRYPTION_KEY_ERROR_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_ERROR"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANNOT_PARSE_HASH) { return ValidationExceptionReason::CANNOT_PARSE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildErrors.cpp b/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildErrors.cpp index 10e06766757..da2e11f0080 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildErrors.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildErrors.cpp @@ -18,15 +18,15 @@ namespace CodeBuild namespace CodeBuildErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int O_AUTH_PROVIDER_HASH = HashingUtils::HashString("OAuthProviderException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int ACCOUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AccountLimitExceededException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t O_AUTH_PROVIDER_HASH = ConstExprHashingUtils::HashString("OAuthProviderException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t ACCOUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AccountLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactNamespace.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactNamespace.cpp index 1fbace181f9..32ea35d0d99 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactNamespace.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactNamespace.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArtifactNamespaceMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BUILD_ID_HASH = HashingUtils::HashString("BUILD_ID"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BUILD_ID_HASH = ConstExprHashingUtils::HashString("BUILD_ID"); ArtifactNamespace GetArtifactNamespaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ArtifactNamespace::NONE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactPackaging.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactPackaging.cpp index d0c87f4216a..3a4211f3ee9 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactPackaging.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactPackaging.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArtifactPackagingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ZIP_HASH = HashingUtils::HashString("ZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ZIP_HASH = ConstExprHashingUtils::HashString("ZIP"); ArtifactPackaging GetArtifactPackagingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ArtifactPackaging::NONE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactsType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactsType.cpp index 5b6061a59af..c03a37aa9f8 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactsType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ArtifactsType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ArtifactsTypeMapper { - static const int CODEPIPELINE_HASH = HashingUtils::HashString("CODEPIPELINE"); - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int NO_ARTIFACTS_HASH = HashingUtils::HashString("NO_ARTIFACTS"); + static constexpr uint32_t CODEPIPELINE_HASH = ConstExprHashingUtils::HashString("CODEPIPELINE"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t NO_ARTIFACTS_HASH = ConstExprHashingUtils::HashString("NO_ARTIFACTS"); ArtifactsType GetArtifactsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODEPIPELINE_HASH) { return ArtifactsType::CODEPIPELINE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/AuthType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/AuthType.cpp index 7953047eeba..967c68cb022 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/AuthType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/AuthType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthTypeMapper { - static const int OAUTH_HASH = HashingUtils::HashString("OAUTH"); - static const int BASIC_AUTH_HASH = HashingUtils::HashString("BASIC_AUTH"); - static const int PERSONAL_ACCESS_TOKEN_HASH = HashingUtils::HashString("PERSONAL_ACCESS_TOKEN"); + static constexpr uint32_t OAUTH_HASH = ConstExprHashingUtils::HashString("OAUTH"); + static constexpr uint32_t BASIC_AUTH_HASH = ConstExprHashingUtils::HashString("BASIC_AUTH"); + static constexpr uint32_t PERSONAL_ACCESS_TOKEN_HASH = ConstExprHashingUtils::HashString("PERSONAL_ACCESS_TOKEN"); AuthType GetAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OAUTH_HASH) { return AuthType::OAUTH; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/BatchReportModeType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/BatchReportModeType.cpp index 117e3eedfdb..7c1de3aca86 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/BatchReportModeType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/BatchReportModeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BatchReportModeTypeMapper { - static const int REPORT_INDIVIDUAL_BUILDS_HASH = HashingUtils::HashString("REPORT_INDIVIDUAL_BUILDS"); - static const int REPORT_AGGREGATED_BATCH_HASH = HashingUtils::HashString("REPORT_AGGREGATED_BATCH"); + static constexpr uint32_t REPORT_INDIVIDUAL_BUILDS_HASH = ConstExprHashingUtils::HashString("REPORT_INDIVIDUAL_BUILDS"); + static constexpr uint32_t REPORT_AGGREGATED_BATCH_HASH = ConstExprHashingUtils::HashString("REPORT_AGGREGATED_BATCH"); BatchReportModeType GetBatchReportModeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPORT_INDIVIDUAL_BUILDS_HASH) { return BatchReportModeType::REPORT_INDIVIDUAL_BUILDS; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/BucketOwnerAccess.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/BucketOwnerAccess.cpp index 17b49502946..1716b489592 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/BucketOwnerAccess.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/BucketOwnerAccess.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BucketOwnerAccessMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int READ_ONLY_HASH = HashingUtils::HashString("READ_ONLY"); - static const int FULL_HASH = HashingUtils::HashString("FULL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t READ_ONLY_HASH = ConstExprHashingUtils::HashString("READ_ONLY"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); BucketOwnerAccess GetBucketOwnerAccessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return BucketOwnerAccess::NONE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/BuildBatchPhaseType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/BuildBatchPhaseType.cpp index 14b9ba8e8e5..d02a1aa7c3d 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/BuildBatchPhaseType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/BuildBatchPhaseType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace BuildBatchPhaseTypeMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int DOWNLOAD_BATCHSPEC_HASH = HashingUtils::HashString("DOWNLOAD_BATCHSPEC"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMBINE_ARTIFACTS_HASH = HashingUtils::HashString("COMBINE_ARTIFACTS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t DOWNLOAD_BATCHSPEC_HASH = ConstExprHashingUtils::HashString("DOWNLOAD_BATCHSPEC"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMBINE_ARTIFACTS_HASH = ConstExprHashingUtils::HashString("COMBINE_ARTIFACTS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); BuildBatchPhaseType GetBuildBatchPhaseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return BuildBatchPhaseType::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/BuildPhaseType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/BuildPhaseType.cpp index fb8abc75bfa..f0dc92cbee7 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/BuildPhaseType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/BuildPhaseType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace BuildPhaseTypeMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int DOWNLOAD_SOURCE_HASH = HashingUtils::HashString("DOWNLOAD_SOURCE"); - static const int INSTALL_HASH = HashingUtils::HashString("INSTALL"); - static const int PRE_BUILD_HASH = HashingUtils::HashString("PRE_BUILD"); - static const int BUILD_HASH = HashingUtils::HashString("BUILD"); - static const int POST_BUILD_HASH = HashingUtils::HashString("POST_BUILD"); - static const int UPLOAD_ARTIFACTS_HASH = HashingUtils::HashString("UPLOAD_ARTIFACTS"); - static const int FINALIZING_HASH = HashingUtils::HashString("FINALIZING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t DOWNLOAD_SOURCE_HASH = ConstExprHashingUtils::HashString("DOWNLOAD_SOURCE"); + static constexpr uint32_t INSTALL_HASH = ConstExprHashingUtils::HashString("INSTALL"); + static constexpr uint32_t PRE_BUILD_HASH = ConstExprHashingUtils::HashString("PRE_BUILD"); + static constexpr uint32_t BUILD_HASH = ConstExprHashingUtils::HashString("BUILD"); + static constexpr uint32_t POST_BUILD_HASH = ConstExprHashingUtils::HashString("POST_BUILD"); + static constexpr uint32_t UPLOAD_ARTIFACTS_HASH = ConstExprHashingUtils::HashString("UPLOAD_ARTIFACTS"); + static constexpr uint32_t FINALIZING_HASH = ConstExprHashingUtils::HashString("FINALIZING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); BuildPhaseType GetBuildPhaseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return BuildPhaseType::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/CacheMode.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/CacheMode.cpp index 9486c6bf84a..e6ed564b09f 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/CacheMode.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/CacheMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CacheModeMapper { - static const int LOCAL_DOCKER_LAYER_CACHE_HASH = HashingUtils::HashString("LOCAL_DOCKER_LAYER_CACHE"); - static const int LOCAL_SOURCE_CACHE_HASH = HashingUtils::HashString("LOCAL_SOURCE_CACHE"); - static const int LOCAL_CUSTOM_CACHE_HASH = HashingUtils::HashString("LOCAL_CUSTOM_CACHE"); + static constexpr uint32_t LOCAL_DOCKER_LAYER_CACHE_HASH = ConstExprHashingUtils::HashString("LOCAL_DOCKER_LAYER_CACHE"); + static constexpr uint32_t LOCAL_SOURCE_CACHE_HASH = ConstExprHashingUtils::HashString("LOCAL_SOURCE_CACHE"); + static constexpr uint32_t LOCAL_CUSTOM_CACHE_HASH = ConstExprHashingUtils::HashString("LOCAL_CUSTOM_CACHE"); CacheMode GetCacheModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOCAL_DOCKER_LAYER_CACHE_HASH) { return CacheMode::LOCAL_DOCKER_LAYER_CACHE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/CacheType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/CacheType.cpp index e5627fe7dd4..b20b6e73801 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/CacheType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/CacheType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CacheTypeMapper { - static const int NO_CACHE_HASH = HashingUtils::HashString("NO_CACHE"); - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int LOCAL_HASH = HashingUtils::HashString("LOCAL"); + static constexpr uint32_t NO_CACHE_HASH = ConstExprHashingUtils::HashString("NO_CACHE"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t LOCAL_HASH = ConstExprHashingUtils::HashString("LOCAL"); CacheType GetCacheTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_CACHE_HASH) { return CacheType::NO_CACHE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp index cc94d3c17cc..406b4578f58 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ComputeType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComputeTypeMapper { - static const int BUILD_GENERAL1_SMALL_HASH = HashingUtils::HashString("BUILD_GENERAL1_SMALL"); - static const int BUILD_GENERAL1_MEDIUM_HASH = HashingUtils::HashString("BUILD_GENERAL1_MEDIUM"); - static const int BUILD_GENERAL1_LARGE_HASH = HashingUtils::HashString("BUILD_GENERAL1_LARGE"); - static const int BUILD_GENERAL1_2XLARGE_HASH = HashingUtils::HashString("BUILD_GENERAL1_2XLARGE"); + static constexpr uint32_t BUILD_GENERAL1_SMALL_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_SMALL"); + static constexpr uint32_t BUILD_GENERAL1_MEDIUM_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_MEDIUM"); + static constexpr uint32_t BUILD_GENERAL1_LARGE_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_LARGE"); + static constexpr uint32_t BUILD_GENERAL1_2XLARGE_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_2XLARGE"); ComputeType GetComputeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILD_GENERAL1_SMALL_HASH) { return ComputeType::BUILD_GENERAL1_SMALL; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/CredentialProviderType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/CredentialProviderType.cpp index 9b56fed1111..79bd8e622e0 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/CredentialProviderType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/CredentialProviderType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CredentialProviderTypeMapper { - static const int SECRETS_MANAGER_HASH = HashingUtils::HashString("SECRETS_MANAGER"); + static constexpr uint32_t SECRETS_MANAGER_HASH = ConstExprHashingUtils::HashString("SECRETS_MANAGER"); CredentialProviderType GetCredentialProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECRETS_MANAGER_HASH) { return CredentialProviderType::SECRETS_MANAGER; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentType.cpp index f967bce7ed3..892ca830984 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EnvironmentTypeMapper { - static const int WINDOWS_CONTAINER_HASH = HashingUtils::HashString("WINDOWS_CONTAINER"); - static const int LINUX_CONTAINER_HASH = HashingUtils::HashString("LINUX_CONTAINER"); - static const int LINUX_GPU_CONTAINER_HASH = HashingUtils::HashString("LINUX_GPU_CONTAINER"); - static const int ARM_CONTAINER_HASH = HashingUtils::HashString("ARM_CONTAINER"); - static const int WINDOWS_SERVER_2019_CONTAINER_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019_CONTAINER"); + static constexpr uint32_t WINDOWS_CONTAINER_HASH = ConstExprHashingUtils::HashString("WINDOWS_CONTAINER"); + static constexpr uint32_t LINUX_CONTAINER_HASH = ConstExprHashingUtils::HashString("LINUX_CONTAINER"); + static constexpr uint32_t LINUX_GPU_CONTAINER_HASH = ConstExprHashingUtils::HashString("LINUX_GPU_CONTAINER"); + static constexpr uint32_t ARM_CONTAINER_HASH = ConstExprHashingUtils::HashString("ARM_CONTAINER"); + static constexpr uint32_t WINDOWS_SERVER_2019_CONTAINER_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2019_CONTAINER"); EnvironmentType GetEnvironmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_CONTAINER_HASH) { return EnvironmentType::WINDOWS_CONTAINER; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentVariableType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentVariableType.cpp index a258b0becae..995ef5dd49a 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentVariableType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/EnvironmentVariableType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EnvironmentVariableTypeMapper { - static const int PLAINTEXT_HASH = HashingUtils::HashString("PLAINTEXT"); - static const int PARAMETER_STORE_HASH = HashingUtils::HashString("PARAMETER_STORE"); - static const int SECRETS_MANAGER_HASH = HashingUtils::HashString("SECRETS_MANAGER"); + static constexpr uint32_t PLAINTEXT_HASH = ConstExprHashingUtils::HashString("PLAINTEXT"); + static constexpr uint32_t PARAMETER_STORE_HASH = ConstExprHashingUtils::HashString("PARAMETER_STORE"); + static constexpr uint32_t SECRETS_MANAGER_HASH = ConstExprHashingUtils::HashString("SECRETS_MANAGER"); EnvironmentVariableType GetEnvironmentVariableTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAINTEXT_HASH) { return EnvironmentVariableType::PLAINTEXT; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/FileSystemType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/FileSystemType.cpp index 5733a9f27e8..b54b45ba5e3 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/FileSystemType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/FileSystemType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FileSystemTypeMapper { - static const int EFS_HASH = HashingUtils::HashString("EFS"); + static constexpr uint32_t EFS_HASH = ConstExprHashingUtils::HashString("EFS"); FileSystemType GetFileSystemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EFS_HASH) { return FileSystemType::EFS; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ImagePullCredentialsType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ImagePullCredentialsType.cpp index 4c241b4de10..660524d798c 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ImagePullCredentialsType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ImagePullCredentialsType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImagePullCredentialsTypeMapper { - static const int CODEBUILD_HASH = HashingUtils::HashString("CODEBUILD"); - static const int SERVICE_ROLE_HASH = HashingUtils::HashString("SERVICE_ROLE"); + static constexpr uint32_t CODEBUILD_HASH = ConstExprHashingUtils::HashString("CODEBUILD"); + static constexpr uint32_t SERVICE_ROLE_HASH = ConstExprHashingUtils::HashString("SERVICE_ROLE"); ImagePullCredentialsType GetImagePullCredentialsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODEBUILD_HASH) { return ImagePullCredentialsType::CODEBUILD; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/LanguageType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/LanguageType.cpp index 0231655e8b4..6153a487aa1 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/LanguageType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/LanguageType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace LanguageTypeMapper { - static const int JAVA_HASH = HashingUtils::HashString("JAVA"); - static const int PYTHON_HASH = HashingUtils::HashString("PYTHON"); - static const int NODE_JS_HASH = HashingUtils::HashString("NODE_JS"); - static const int RUBY_HASH = HashingUtils::HashString("RUBY"); - static const int GOLANG_HASH = HashingUtils::HashString("GOLANG"); - static const int DOCKER_HASH = HashingUtils::HashString("DOCKER"); - static const int ANDROID__HASH = HashingUtils::HashString("ANDROID"); - static const int DOTNET_HASH = HashingUtils::HashString("DOTNET"); - static const int BASE_HASH = HashingUtils::HashString("BASE"); - static const int PHP_HASH = HashingUtils::HashString("PHP"); + static constexpr uint32_t JAVA_HASH = ConstExprHashingUtils::HashString("JAVA"); + static constexpr uint32_t PYTHON_HASH = ConstExprHashingUtils::HashString("PYTHON"); + static constexpr uint32_t NODE_JS_HASH = ConstExprHashingUtils::HashString("NODE_JS"); + static constexpr uint32_t RUBY_HASH = ConstExprHashingUtils::HashString("RUBY"); + static constexpr uint32_t GOLANG_HASH = ConstExprHashingUtils::HashString("GOLANG"); + static constexpr uint32_t DOCKER_HASH = ConstExprHashingUtils::HashString("DOCKER"); + static constexpr uint32_t ANDROID__HASH = ConstExprHashingUtils::HashString("ANDROID"); + static constexpr uint32_t DOTNET_HASH = ConstExprHashingUtils::HashString("DOTNET"); + static constexpr uint32_t BASE_HASH = ConstExprHashingUtils::HashString("BASE"); + static constexpr uint32_t PHP_HASH = ConstExprHashingUtils::HashString("PHP"); LanguageType GetLanguageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JAVA_HASH) { return LanguageType::JAVA; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/LogsConfigStatusType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/LogsConfigStatusType.cpp index 0004977d385..8755f4f2eb1 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/LogsConfigStatusType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/LogsConfigStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogsConfigStatusTypeMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LogsConfigStatusType GetLogsConfigStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return LogsConfigStatusType::ENABLED; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/PlatformType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/PlatformType.cpp index 511e142887d..0bf9b1c7209 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/PlatformType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/PlatformType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PlatformTypeMapper { - static const int DEBIAN_HASH = HashingUtils::HashString("DEBIAN"); - static const int AMAZON_LINUX_HASH = HashingUtils::HashString("AMAZON_LINUX"); - static const int UBUNTU_HASH = HashingUtils::HashString("UBUNTU"); - static const int WINDOWS_SERVER_HASH = HashingUtils::HashString("WINDOWS_SERVER"); + static constexpr uint32_t DEBIAN_HASH = ConstExprHashingUtils::HashString("DEBIAN"); + static constexpr uint32_t AMAZON_LINUX_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX"); + static constexpr uint32_t UBUNTU_HASH = ConstExprHashingUtils::HashString("UBUNTU"); + static constexpr uint32_t WINDOWS_SERVER_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER"); PlatformType GetPlatformTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEBIAN_HASH) { return PlatformType::DEBIAN; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectSortByType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectSortByType.cpp index e0f9d6d3b83..3821f1acd69 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectSortByType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectSortByType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProjectSortByTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CREATED_TIME_HASH = HashingUtils::HashString("CREATED_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CREATED_TIME_HASH = ConstExprHashingUtils::HashString("CREATED_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); ProjectSortByType GetProjectSortByTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return ProjectSortByType::NAME; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp index d6b155b051e..16a41637b59 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProjectVisibilityTypeMapper { - static const int PUBLIC_READ_HASH = HashingUtils::HashString("PUBLIC_READ"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC_READ_HASH = ConstExprHashingUtils::HashString("PUBLIC_READ"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); ProjectVisibilityType GetProjectVisibilityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC_READ_HASH) { return ProjectVisibilityType::PUBLIC_READ; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportCodeCoverageSortByType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportCodeCoverageSortByType.cpp index a2534745b7a..365a1677430 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportCodeCoverageSortByType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportCodeCoverageSortByType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportCodeCoverageSortByTypeMapper { - static const int LINE_COVERAGE_PERCENTAGE_HASH = HashingUtils::HashString("LINE_COVERAGE_PERCENTAGE"); - static const int FILE_PATH_HASH = HashingUtils::HashString("FILE_PATH"); + static constexpr uint32_t LINE_COVERAGE_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("LINE_COVERAGE_PERCENTAGE"); + static constexpr uint32_t FILE_PATH_HASH = ConstExprHashingUtils::HashString("FILE_PATH"); ReportCodeCoverageSortByType GetReportCodeCoverageSortByTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINE_COVERAGE_PERCENTAGE_HASH) { return ReportCodeCoverageSortByType::LINE_COVERAGE_PERCENTAGE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportExportConfigType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportExportConfigType.cpp index 29c989d19c0..9c49c18a233 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportExportConfigType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportExportConfigType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportExportConfigTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int NO_EXPORT_HASH = HashingUtils::HashString("NO_EXPORT"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t NO_EXPORT_HASH = ConstExprHashingUtils::HashString("NO_EXPORT"); ReportExportConfigType GetReportExportConfigTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return ReportExportConfigType::S3; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupSortByType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupSortByType.cpp index a759484c802..7af666877b4 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupSortByType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupSortByType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReportGroupSortByTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CREATED_TIME_HASH = HashingUtils::HashString("CREATED_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CREATED_TIME_HASH = ConstExprHashingUtils::HashString("CREATED_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); ReportGroupSortByType GetReportGroupSortByTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return ReportGroupSortByType::NAME; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupStatusType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupStatusType.cpp index 770526630e1..e071a9d8f2a 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupStatusType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportGroupStatusTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ReportGroupStatusType GetReportGroupStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ReportGroupStatusType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupTrendFieldType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupTrendFieldType.cpp index 6112428a264..e22c60ac989 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupTrendFieldType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportGroupTrendFieldType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ReportGroupTrendFieldTypeMapper { - static const int PASS_RATE_HASH = HashingUtils::HashString("PASS_RATE"); - static const int DURATION_HASH = HashingUtils::HashString("DURATION"); - static const int TOTAL_HASH = HashingUtils::HashString("TOTAL"); - static const int LINE_COVERAGE_HASH = HashingUtils::HashString("LINE_COVERAGE"); - static const int LINES_COVERED_HASH = HashingUtils::HashString("LINES_COVERED"); - static const int LINES_MISSED_HASH = HashingUtils::HashString("LINES_MISSED"); - static const int BRANCH_COVERAGE_HASH = HashingUtils::HashString("BRANCH_COVERAGE"); - static const int BRANCHES_COVERED_HASH = HashingUtils::HashString("BRANCHES_COVERED"); - static const int BRANCHES_MISSED_HASH = HashingUtils::HashString("BRANCHES_MISSED"); + static constexpr uint32_t PASS_RATE_HASH = ConstExprHashingUtils::HashString("PASS_RATE"); + static constexpr uint32_t DURATION_HASH = ConstExprHashingUtils::HashString("DURATION"); + static constexpr uint32_t TOTAL_HASH = ConstExprHashingUtils::HashString("TOTAL"); + static constexpr uint32_t LINE_COVERAGE_HASH = ConstExprHashingUtils::HashString("LINE_COVERAGE"); + static constexpr uint32_t LINES_COVERED_HASH = ConstExprHashingUtils::HashString("LINES_COVERED"); + static constexpr uint32_t LINES_MISSED_HASH = ConstExprHashingUtils::HashString("LINES_MISSED"); + static constexpr uint32_t BRANCH_COVERAGE_HASH = ConstExprHashingUtils::HashString("BRANCH_COVERAGE"); + static constexpr uint32_t BRANCHES_COVERED_HASH = ConstExprHashingUtils::HashString("BRANCHES_COVERED"); + static constexpr uint32_t BRANCHES_MISSED_HASH = ConstExprHashingUtils::HashString("BRANCHES_MISSED"); ReportGroupTrendFieldType GetReportGroupTrendFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_RATE_HASH) { return ReportGroupTrendFieldType::PASS_RATE; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportPackagingType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportPackagingType.cpp index 0dd8a121a3f..00a73a23690 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportPackagingType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportPackagingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportPackagingTypeMapper { - static const int ZIP_HASH = HashingUtils::HashString("ZIP"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ZIP_HASH = ConstExprHashingUtils::HashString("ZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ReportPackagingType GetReportPackagingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZIP_HASH) { return ReportPackagingType::ZIP; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportStatusType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportStatusType.cpp index e06da820896..080e0c17467 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportStatusType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportStatusType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ReportStatusTypeMapper { - static const int GENERATING_HASH = HashingUtils::HashString("GENERATING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INCOMPLETE_HASH = HashingUtils::HashString("INCOMPLETE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t GENERATING_HASH = ConstExprHashingUtils::HashString("GENERATING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INCOMPLETE_HASH = ConstExprHashingUtils::HashString("INCOMPLETE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ReportStatusType GetReportStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERATING_HASH) { return ReportStatusType::GENERATING; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportType.cpp index 37d23ec6369..911a2ae089f 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ReportType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ReportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportTypeMapper { - static const int TEST_HASH = HashingUtils::HashString("TEST"); - static const int CODE_COVERAGE_HASH = HashingUtils::HashString("CODE_COVERAGE"); + static constexpr uint32_t TEST_HASH = ConstExprHashingUtils::HashString("TEST"); + static constexpr uint32_t CODE_COVERAGE_HASH = ConstExprHashingUtils::HashString("CODE_COVERAGE"); ReportType GetReportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEST_HASH) { return ReportType::TEST; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/RetryBuildBatchType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/RetryBuildBatchType.cpp index 21cf1df9468..3cd8dfd1902 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/RetryBuildBatchType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/RetryBuildBatchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RetryBuildBatchTypeMapper { - static const int RETRY_ALL_BUILDS_HASH = HashingUtils::HashString("RETRY_ALL_BUILDS"); - static const int RETRY_FAILED_BUILDS_HASH = HashingUtils::HashString("RETRY_FAILED_BUILDS"); + static constexpr uint32_t RETRY_ALL_BUILDS_HASH = ConstExprHashingUtils::HashString("RETRY_ALL_BUILDS"); + static constexpr uint32_t RETRY_FAILED_BUILDS_HASH = ConstExprHashingUtils::HashString("RETRY_FAILED_BUILDS"); RetryBuildBatchType GetRetryBuildBatchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RETRY_ALL_BUILDS_HASH) { return RetryBuildBatchType::RETRY_ALL_BUILDS; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/ServerType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/ServerType.cpp index 8c02e25a577..e1a4df3a1d4 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/ServerType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/ServerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServerTypeMapper { - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int BITBUCKET_HASH = HashingUtils::HashString("BITBUCKET"); - static const int GITHUB_ENTERPRISE_HASH = HashingUtils::HashString("GITHUB_ENTERPRISE"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t BITBUCKET_HASH = ConstExprHashingUtils::HashString("BITBUCKET"); + static constexpr uint32_t GITHUB_ENTERPRISE_HASH = ConstExprHashingUtils::HashString("GITHUB_ENTERPRISE"); ServerType GetServerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HASH) { return ServerType::GITHUB; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/SharedResourceSortByType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/SharedResourceSortByType.cpp index 62bdd3bd1c3..6f0b63f2bb2 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/SharedResourceSortByType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/SharedResourceSortByType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SharedResourceSortByTypeMapper { - static const int ARN_HASH = HashingUtils::HashString("ARN"); - static const int MODIFIED_TIME_HASH = HashingUtils::HashString("MODIFIED_TIME"); + static constexpr uint32_t ARN_HASH = ConstExprHashingUtils::HashString("ARN"); + static constexpr uint32_t MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("MODIFIED_TIME"); SharedResourceSortByType GetSharedResourceSortByTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARN_HASH) { return SharedResourceSortByType::ARN; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/SortOrderType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/SortOrderType.cpp index 5caddbc29bf..acb73af8a00 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/SortOrderType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/SortOrderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderTypeMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrderType GetSortOrderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrderType::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/SourceAuthType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/SourceAuthType.cpp index 644060b55d8..5387d45aad5 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/SourceAuthType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/SourceAuthType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SourceAuthTypeMapper { - static const int OAUTH_HASH = HashingUtils::HashString("OAUTH"); + static constexpr uint32_t OAUTH_HASH = ConstExprHashingUtils::HashString("OAUTH"); SourceAuthType GetSourceAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OAUTH_HASH) { return SourceAuthType::OAUTH; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/SourceType.cpp index 38c8eca2a58..89957c63436 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/SourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SourceTypeMapper { - static const int CODECOMMIT_HASH = HashingUtils::HashString("CODECOMMIT"); - static const int CODEPIPELINE_HASH = HashingUtils::HashString("CODEPIPELINE"); - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int BITBUCKET_HASH = HashingUtils::HashString("BITBUCKET"); - static const int GITHUB_ENTERPRISE_HASH = HashingUtils::HashString("GITHUB_ENTERPRISE"); - static const int NO_SOURCE_HASH = HashingUtils::HashString("NO_SOURCE"); + static constexpr uint32_t CODECOMMIT_HASH = ConstExprHashingUtils::HashString("CODECOMMIT"); + static constexpr uint32_t CODEPIPELINE_HASH = ConstExprHashingUtils::HashString("CODEPIPELINE"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t BITBUCKET_HASH = ConstExprHashingUtils::HashString("BITBUCKET"); + static constexpr uint32_t GITHUB_ENTERPRISE_HASH = ConstExprHashingUtils::HashString("GITHUB_ENTERPRISE"); + static constexpr uint32_t NO_SOURCE_HASH = ConstExprHashingUtils::HashString("NO_SOURCE"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODECOMMIT_HASH) { return SourceType::CODECOMMIT; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/StatusType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/StatusType.cpp index 50f7cbec104..2071b050293 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/StatusType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/StatusType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StatusTypeMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int FAULT_HASH = HashingUtils::HashString("FAULT"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t FAULT_HASH = ConstExprHashingUtils::HashString("FAULT"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); StatusType GetStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return StatusType::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookBuildType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookBuildType.cpp index b8be55c02ed..a908c3ee67a 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookBuildType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookBuildType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WebhookBuildTypeMapper { - static const int BUILD_HASH = HashingUtils::HashString("BUILD"); - static const int BUILD_BATCH_HASH = HashingUtils::HashString("BUILD_BATCH"); + static constexpr uint32_t BUILD_HASH = ConstExprHashingUtils::HashString("BUILD"); + static constexpr uint32_t BUILD_BATCH_HASH = ConstExprHashingUtils::HashString("BUILD_BATCH"); WebhookBuildType GetWebhookBuildTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILD_HASH) { return WebhookBuildType::BUILD; diff --git a/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookFilterType.cpp b/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookFilterType.cpp index 735c78d706c..b01b2902cfa 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookFilterType.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/model/WebhookFilterType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace WebhookFilterTypeMapper { - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int BASE_REF_HASH = HashingUtils::HashString("BASE_REF"); - static const int HEAD_REF_HASH = HashingUtils::HashString("HEAD_REF"); - static const int ACTOR_ACCOUNT_ID_HASH = HashingUtils::HashString("ACTOR_ACCOUNT_ID"); - static const int FILE_PATH_HASH = HashingUtils::HashString("FILE_PATH"); - static const int COMMIT_MESSAGE_HASH = HashingUtils::HashString("COMMIT_MESSAGE"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t BASE_REF_HASH = ConstExprHashingUtils::HashString("BASE_REF"); + static constexpr uint32_t HEAD_REF_HASH = ConstExprHashingUtils::HashString("HEAD_REF"); + static constexpr uint32_t ACTOR_ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACTOR_ACCOUNT_ID"); + static constexpr uint32_t FILE_PATH_HASH = ConstExprHashingUtils::HashString("FILE_PATH"); + static constexpr uint32_t COMMIT_MESSAGE_HASH = ConstExprHashingUtils::HashString("COMMIT_MESSAGE"); WebhookFilterType GetWebhookFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_HASH) { return WebhookFilterType::EVENT; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystErrors.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystErrors.cpp index 5954097227e..1bea67d3fdc 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystErrors.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystErrors.cpp @@ -18,13 +18,13 @@ namespace CodeCatalyst namespace CodeCatalystErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/ComparisonOperator.cpp index b50cb8671ab..1f9ee15098c 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/ComparisonOperator.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LE_HASH = HashingUtils::HashString("LE"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return ComparisonOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentSessionType.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentSessionType.cpp index faaf260237d..90cf90ec0fd 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentSessionType.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentSessionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DevEnvironmentSessionTypeMapper { - static const int SSM_HASH = HashingUtils::HashString("SSM"); - static const int SSH_HASH = HashingUtils::HashString("SSH"); + static constexpr uint32_t SSM_HASH = ConstExprHashingUtils::HashString("SSM"); + static constexpr uint32_t SSH_HASH = ConstExprHashingUtils::HashString("SSH"); DevEnvironmentSessionType GetDevEnvironmentSessionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_HASH) { return DevEnvironmentSessionType::SSM; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentStatus.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentStatus.cpp index 4ba8d368c6d..e90ceb0256b 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/DevEnvironmentStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DevEnvironmentStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); DevEnvironmentStatus GetDevEnvironmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DevEnvironmentStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/FilterKey.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/FilterKey.cpp index 0bb288ce34b..a7fa0e21a0a 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/FilterKey.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/FilterKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FilterKeyMapper { - static const int hasAccessTo_HASH = HashingUtils::HashString("hasAccessTo"); + static constexpr uint32_t hasAccessTo_HASH = ConstExprHashingUtils::HashString("hasAccessTo"); FilterKey GetFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hasAccessTo_HASH) { return FilterKey::hasAccessTo; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/InstanceType.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/InstanceType.cpp index a41d63b85ab..a908a21a9f0 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/InstanceType.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/InstanceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstanceTypeMapper { - static const int dev_standard1_small_HASH = HashingUtils::HashString("dev.standard1.small"); - static const int dev_standard1_medium_HASH = HashingUtils::HashString("dev.standard1.medium"); - static const int dev_standard1_large_HASH = HashingUtils::HashString("dev.standard1.large"); - static const int dev_standard1_xlarge_HASH = HashingUtils::HashString("dev.standard1.xlarge"); + static constexpr uint32_t dev_standard1_small_HASH = ConstExprHashingUtils::HashString("dev.standard1.small"); + static constexpr uint32_t dev_standard1_medium_HASH = ConstExprHashingUtils::HashString("dev.standard1.medium"); + static constexpr uint32_t dev_standard1_large_HASH = ConstExprHashingUtils::HashString("dev.standard1.large"); + static constexpr uint32_t dev_standard1_xlarge_HASH = ConstExprHashingUtils::HashString("dev.standard1.xlarge"); InstanceType GetInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == dev_standard1_small_HASH) { return InstanceType::dev_standard1_small; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/OperationType.cpp index 56e5e675e17..891694a29e8 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/OperationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperationTypeMapper { - static const int READONLY_HASH = HashingUtils::HashString("READONLY"); - static const int MUTATION_HASH = HashingUtils::HashString("MUTATION"); + static constexpr uint32_t READONLY_HASH = ConstExprHashingUtils::HashString("READONLY"); + static constexpr uint32_t MUTATION_HASH = ConstExprHashingUtils::HashString("MUTATION"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READONLY_HASH) { return OperationType::READONLY; diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/model/UserType.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/model/UserType.cpp index 7cef1034f00..97d4be711a9 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/model/UserType.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/model/UserType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UserTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int AWS_ACCOUNT_HASH = HashingUtils::HashString("AWS_ACCOUNT"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t AWS_ACCOUNT_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); UserType GetUserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return UserType::USER; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp b/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp index 3b7623cb0ec..f53a35b4dd3 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitErrors.cpp @@ -18,191 +18,191 @@ namespace CodeCommit namespace CodeCommitErrorMapper { -static const int REPOSITORY_TRIGGERS_LIST_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggersListRequiredException"); -static const int PULL_REQUEST_DOES_NOT_EXIST_HASH = HashingUtils::HashString("PullRequestDoesNotExistException"); -static const int BRANCH_NAME_EXISTS_HASH = HashingUtils::HashString("BranchNameExistsException"); -static const int FILE_ENTRY_REQUIRED_HASH = HashingUtils::HashString("FileEntryRequiredException"); -static const int INVALID_CONFLICT_RESOLUTION_STRATEGY_HASH = HashingUtils::HashString("InvalidConflictResolutionStrategyException"); -static const int PATH_DOES_NOT_EXIST_HASH = HashingUtils::HashString("PathDoesNotExistException"); -static const int FILE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("FileDoesNotExistException"); -static const int INVALID_PULL_REQUEST_ID_HASH = HashingUtils::HashString("InvalidPullRequestIdException"); -static const int COMMIT_MESSAGE_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("CommitMessageLengthExceededException"); -static const int REVISION_ID_REQUIRED_HASH = HashingUtils::HashString("RevisionIdRequiredException"); -static const int COMMENT_CONTENT_REQUIRED_HASH = HashingUtils::HashString("CommentContentRequiredException"); -static const int INVALID_MAX_MERGE_HUNKS_HASH = HashingUtils::HashString("InvalidMaxMergeHunksException"); -static const int REACTION_VALUE_REQUIRED_HASH = HashingUtils::HashString("ReactionValueRequiredException"); -static const int INVALID_CONTINUATION_TOKEN_HASH = HashingUtils::HashString("InvalidContinuationTokenException"); -static const int MERGE_OPTION_REQUIRED_HASH = HashingUtils::HashString("MergeOptionRequiredException"); -static const int INVALID_AUTHOR_ARN_HASH = HashingUtils::HashString("InvalidAuthorArnException"); -static const int INVALID_TARGET_BRANCH_HASH = HashingUtils::HashString("InvalidTargetBranchException"); -static const int INVALID_COMMIT_ID_HASH = HashingUtils::HashString("InvalidCommitIdException"); -static const int MULTIPLE_REPOSITORIES_IN_PULL_REQUEST_HASH = HashingUtils::HashString("MultipleRepositoriesInPullRequestException"); -static const int INVALID_REPLACEMENT_CONTENT_HASH = HashingUtils::HashString("InvalidReplacementContentException"); -static const int APPROVAL_RULE_TEMPLATE_NAME_ALREADY_EXISTS_HASH = HashingUtils::HashString("ApprovalRuleTemplateNameAlreadyExistsException"); -static const int INVALID_ACTOR_ARN_HASH = HashingUtils::HashString("InvalidActorArnException"); -static const int INVALID_REPOSITORY_TRIGGER_EVENTS_HASH = HashingUtils::HashString("InvalidRepositoryTriggerEventsException"); -static const int COMMIT_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CommitDoesNotExistException"); -static const int INVALID_REACTION_USER_ARN_HASH = HashingUtils::HashString("InvalidReactionUserArnException"); -static const int BRANCH_DOES_NOT_EXIST_HASH = HashingUtils::HashString("BranchDoesNotExistException"); -static const int TAGS_MAP_REQUIRED_HASH = HashingUtils::HashString("TagsMapRequiredException"); -static const int REPOSITORY_TRIGGER_DESTINATION_ARN_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerDestinationArnRequiredException"); -static const int REPOSITORY_TRIGGER_EVENTS_LIST_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerEventsListRequiredException"); -static const int REPOSITORY_TRIGGER_BRANCH_NAME_LIST_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerBranchNameListRequiredException"); -static const int INVALID_PULL_REQUEST_STATUS_HASH = HashingUtils::HashString("InvalidPullRequestStatusException"); -static const int INVALID_APPROVAL_RULE_NAME_HASH = HashingUtils::HashString("InvalidApprovalRuleNameException"); -static const int COMMIT_IDS_LIST_REQUIRED_HASH = HashingUtils::HashString("CommitIdsListRequiredException"); -static const int INVALID_BLOB_ID_HASH = HashingUtils::HashString("InvalidBlobIdException"); -static const int DIRECTORY_NAME_CONFLICTS_WITH_FILE_NAME_HASH = HashingUtils::HashString("DirectoryNameConflictsWithFileNameException"); -static const int TAG_POLICY_HASH = HashingUtils::HashString("TagPolicyException"); -static const int INVALID_COMMIT_HASH = HashingUtils::HashString("InvalidCommitException"); -static const int APPROVAL_RULE_CONTENT_REQUIRED_HASH = HashingUtils::HashString("ApprovalRuleContentRequiredException"); -static const int REPOSITORY_TRIGGER_NAME_REQUIRED_HASH = HashingUtils::HashString("RepositoryTriggerNameRequiredException"); -static const int NUMBER_OF_RULES_EXCEEDED_HASH = HashingUtils::HashString("NumberOfRulesExceededException"); -static const int MAXIMUM_BRANCHES_EXCEEDED_HASH = HashingUtils::HashString("MaximumBranchesExceededException"); -static const int INVALID_PARENT_COMMIT_ID_HASH = HashingUtils::HashString("InvalidParentCommitIdException"); -static const int CLIENT_REQUEST_TOKEN_REQUIRED_HASH = HashingUtils::HashString("ClientRequestTokenRequiredException"); -static const int INVALID_APPROVAL_RULE_TEMPLATE_DESCRIPTION_HASH = HashingUtils::HashString("InvalidApprovalRuleTemplateDescriptionException"); -static const int INVALID_APPROVAL_RULE_TEMPLATE_NAME_HASH = HashingUtils::HashString("InvalidApprovalRuleTemplateNameException"); -static const int PARENT_COMMIT_ID_OUTDATED_HASH = HashingUtils::HashString("ParentCommitIdOutdatedException"); -static const int SOURCE_FILE_OR_CONTENT_REQUIRED_HASH = HashingUtils::HashString("SourceFileOrContentRequiredException"); -static const int APPROVAL_RULE_NAME_REQUIRED_HASH = HashingUtils::HashString("ApprovalRuleNameRequiredException"); -static const int REPOSITORY_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RepositoryDoesNotExistException"); -static const int DEFAULT_BRANCH_CANNOT_BE_DELETED_HASH = HashingUtils::HashString("DefaultBranchCannotBeDeletedException"); -static const int OVERRIDE_ALREADY_SET_HASH = HashingUtils::HashString("OverrideAlreadySetException"); -static const int INVALID_PULL_REQUEST_STATUS_UPDATE_HASH = HashingUtils::HashString("InvalidPullRequestStatusUpdateException"); -static const int ENCRYPTION_KEY_DISABLED_HASH = HashingUtils::HashString("EncryptionKeyDisabledException"); -static const int APPROVAL_RULE_TEMPLATE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ApprovalRuleTemplateDoesNotExistException"); -static const int INVALID_APPROVAL_STATE_HASH = HashingUtils::HashString("InvalidApprovalStateException"); -static const int TITLE_REQUIRED_HASH = HashingUtils::HashString("TitleRequiredException"); -static const int MAXIMUM_RULE_TEMPLATES_ASSOCIATED_WITH_REPOSITORY_HASH = HashingUtils::HashString("MaximumRuleTemplatesAssociatedWithRepositoryException"); -static const int TARGETS_REQUIRED_HASH = HashingUtils::HashString("TargetsRequiredException"); -static const int COMMENT_NOT_CREATED_BY_CALLER_HASH = HashingUtils::HashString("CommentNotCreatedByCallerException"); -static const int INVALID_REVISION_ID_HASH = HashingUtils::HashString("InvalidRevisionIdException"); -static const int NAME_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("NameLengthExceededException"); -static const int MAXIMUM_CONFLICT_RESOLUTION_ENTRIES_EXCEEDED_HASH = HashingUtils::HashString("MaximumConflictResolutionEntriesExceededException"); -static const int COMMENT_DELETED_HASH = HashingUtils::HashString("CommentDeletedException"); -static const int COMMIT_ID_REQUIRED_HASH = HashingUtils::HashString("CommitIdRequiredException"); -static const int RESTRICTED_SOURCE_FILE_HASH = HashingUtils::HashString("RestrictedSourceFileException"); -static const int IDEMPOTENCY_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotencyParameterMismatchException"); -static const int MAXIMUM_ITEMS_TO_COMPARE_EXCEEDED_HASH = HashingUtils::HashString("MaximumItemsToCompareExceededException"); -static const int PARENT_COMMIT_ID_REQUIRED_HASH = HashingUtils::HashString("ParentCommitIdRequiredException"); -static const int INVALID_REPOSITORY_TRIGGER_DESTINATION_ARN_HASH = HashingUtils::HashString("InvalidRepositoryTriggerDestinationArnException"); -static const int APPROVAL_RULE_TEMPLATE_CONTENT_REQUIRED_HASH = HashingUtils::HashString("ApprovalRuleTemplateContentRequiredException"); -static const int INVALID_SORT_BY_HASH = HashingUtils::HashString("InvalidSortByException"); -static const int INVALID_RELATIVE_FILE_VERSION_ENUM_HASH = HashingUtils::HashString("InvalidRelativeFileVersionEnumException"); -static const int INVALID_CLIENT_REQUEST_TOKEN_HASH = HashingUtils::HashString("InvalidClientRequestTokenException"); -static const int APPROVAL_RULE_TEMPLATE_NAME_REQUIRED_HASH = HashingUtils::HashString("ApprovalRuleTemplateNameRequiredException"); -static const int INVALID_RULE_CONTENT_SHA256_HASH = HashingUtils::HashString("InvalidRuleContentSha256Exception"); -static const int BRANCH_NAME_REQUIRED_HASH = HashingUtils::HashString("BranchNameRequiredException"); -static const int FILE_CONTENT_REQUIRED_HASH = HashingUtils::HashString("FileContentRequiredException"); -static const int MAXIMUM_FILE_CONTENT_TO_LOAD_EXCEEDED_HASH = HashingUtils::HashString("MaximumFileContentToLoadExceededException"); -static const int SAME_PATH_REQUEST_HASH = HashingUtils::HashString("SamePathRequestException"); -static const int INVALID_DESCRIPTION_HASH = HashingUtils::HashString("InvalidDescriptionException"); -static const int INVALID_REPLACEMENT_TYPE_HASH = HashingUtils::HashString("InvalidReplacementTypeException"); -static const int ENCRYPTION_KEY_ACCESS_DENIED_HASH = HashingUtils::HashString("EncryptionKeyAccessDeniedException"); -static const int INVALID_RESOURCE_ARN_HASH = HashingUtils::HashString("InvalidResourceArnException"); -static const int INVALID_APPROVAL_RULE_CONTENT_HASH = HashingUtils::HashString("InvalidApprovalRuleContentException"); -static const int INVALID_CONFLICT_RESOLUTION_HASH = HashingUtils::HashString("InvalidConflictResolutionException"); -static const int BLOB_ID_REQUIRED_HASH = HashingUtils::HashString("BlobIdRequiredException"); -static const int REPOSITORY_NAMES_REQUIRED_HASH = HashingUtils::HashString("RepositoryNamesRequiredException"); -static const int COMMENT_CONTENT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CommentContentSizeLimitExceededException"); -static const int INVALID_TARGET_HASH = HashingUtils::HashString("InvalidTargetException"); -static const int REFERENCE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ReferenceDoesNotExistException"); -static const int CANNOT_MODIFY_APPROVAL_RULE_FROM_TEMPLATE_HASH = HashingUtils::HashString("CannotModifyApprovalRuleFromTemplateException"); -static const int BRANCH_NAME_IS_TAG_NAME_HASH = HashingUtils::HashString("BranchNameIsTagNameException"); -static const int REPOSITORY_NAME_REQUIRED_HASH = HashingUtils::HashString("RepositoryNameRequiredException"); -static const int INVALID_APPROVAL_RULE_TEMPLATE_CONTENT_HASH = HashingUtils::HashString("InvalidApprovalRuleTemplateContentException"); -static const int APPROVAL_RULE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ApprovalRuleDoesNotExistException"); -static const int PULL_REQUEST_STATUS_REQUIRED_HASH = HashingUtils::HashString("PullRequestStatusRequiredException"); -static const int APPROVAL_RULE_NAME_ALREADY_EXISTS_HASH = HashingUtils::HashString("ApprovalRuleNameAlreadyExistsException"); -static const int INVALID_MAX_RESULTS_HASH = HashingUtils::HashString("InvalidMaxResultsException"); -static const int TIP_OF_SOURCE_REFERENCE_IS_DIFFERENT_HASH = HashingUtils::HashString("TipOfSourceReferenceIsDifferentException"); -static const int MAXIMUM_NUMBER_OF_APPROVALS_EXCEEDED_HASH = HashingUtils::HashString("MaximumNumberOfApprovalsExceededException"); -static const int REPOSITORY_NAME_EXISTS_HASH = HashingUtils::HashString("RepositoryNameExistsException"); -static const int PULL_REQUEST_CANNOT_BE_APPROVED_BY_AUTHOR_HASH = HashingUtils::HashString("PullRequestCannotBeApprovedByAuthorException"); -static const int FILE_MODE_REQUIRED_HASH = HashingUtils::HashString("FileModeRequiredException"); -static const int ENCRYPTION_INTEGRITY_CHECKS_FAILED_HASH = HashingUtils::HashString("EncryptionIntegrityChecksFailedException"); -static const int REFERENCE_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("ReferenceTypeNotSupportedException"); -static const int INVALID_REPOSITORY_TRIGGER_REGION_HASH = HashingUtils::HashString("InvalidRepositoryTriggerRegionException"); -static const int APPROVAL_STATE_REQUIRED_HASH = HashingUtils::HashString("ApprovalStateRequiredException"); -static const int INVALID_EMAIL_HASH = HashingUtils::HashString("InvalidEmailException"); -static const int INVALID_DESTINATION_COMMIT_SPECIFIER_HASH = HashingUtils::HashString("InvalidDestinationCommitSpecifierException"); -static const int COMMIT_ID_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CommitIdDoesNotExistException"); -static const int PARENT_COMMIT_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ParentCommitDoesNotExistException"); -static const int TAG_KEYS_LIST_REQUIRED_HASH = HashingUtils::HashString("TagKeysListRequiredException"); -static const int INVALID_ORDER_HASH = HashingUtils::HashString("InvalidOrderException"); -static const int INVALID_REPOSITORY_TRIGGER_CUSTOM_DATA_HASH = HashingUtils::HashString("InvalidRepositoryTriggerCustomDataException"); -static const int INVALID_REFERENCE_NAME_HASH = HashingUtils::HashString("InvalidReferenceNameException"); -static const int PULL_REQUEST_ALREADY_CLOSED_HASH = HashingUtils::HashString("PullRequestAlreadyClosedException"); -static const int INVALID_SYSTEM_TAG_USAGE_HASH = HashingUtils::HashString("InvalidSystemTagUsageException"); -static const int OVERRIDE_STATUS_REQUIRED_HASH = HashingUtils::HashString("OverrideStatusRequiredException"); -static const int INVALID_TAG_KEYS_LIST_HASH = HashingUtils::HashString("InvalidTagKeysListException"); -static const int INVALID_MERGE_OPTION_HASH = HashingUtils::HashString("InvalidMergeOptionException"); -static const int COMMENT_ID_REQUIRED_HASH = HashingUtils::HashString("CommentIdRequiredException"); -static const int REPOSITORY_NOT_ASSOCIATED_WITH_PULL_REQUEST_HASH = HashingUtils::HashString("RepositoryNotAssociatedWithPullRequestException"); -static const int INVALID_SOURCE_COMMIT_SPECIFIER_HASH = HashingUtils::HashString("InvalidSourceCommitSpecifierException"); -static const int FILE_PATH_CONFLICTS_WITH_SUBMODULE_PATH_HASH = HashingUtils::HashString("FilePathConflictsWithSubmodulePathException"); -static const int RESOURCE_ARN_REQUIRED_HASH = HashingUtils::HashString("ResourceArnRequiredException"); -static const int INVALID_FILE_MODE_HASH = HashingUtils::HashString("InvalidFileModeException"); -static const int INVALID_REPOSITORY_TRIGGER_NAME_HASH = HashingUtils::HashString("InvalidRepositoryTriggerNameException"); -static const int INVALID_TITLE_HASH = HashingUtils::HashString("InvalidTitleException"); -static const int SOURCE_AND_DESTINATION_ARE_SAME_HASH = HashingUtils::HashString("SourceAndDestinationAreSameException"); -static const int PATH_REQUIRED_HASH = HashingUtils::HashString("PathRequiredException"); -static const int INVALID_DELETION_PARAMETER_HASH = HashingUtils::HashString("InvalidDeletionParameterException"); -static const int INVALID_TAGS_MAP_HASH = HashingUtils::HashString("InvalidTagsMapException"); -static const int INVALID_FILE_LOCATION_HASH = HashingUtils::HashString("InvalidFileLocationException"); -static const int INVALID_BRANCH_NAME_HASH = HashingUtils::HashString("InvalidBranchNameException"); -static const int MAXIMUM_FILE_ENTRIES_EXCEEDED_HASH = HashingUtils::HashString("MaximumFileEntriesExceededException"); -static const int MAXIMUM_REPOSITORY_NAMES_EXCEEDED_HASH = HashingUtils::HashString("MaximumRepositoryNamesExceededException"); -static const int MAXIMUM_OPEN_PULL_REQUESTS_EXCEEDED_HASH = HashingUtils::HashString("MaximumOpenPullRequestsExceededException"); -static const int ENCRYPTION_KEY_NOT_FOUND_HASH = HashingUtils::HashString("EncryptionKeyNotFoundException"); -static const int REFERENCE_NAME_REQUIRED_HASH = HashingUtils::HashString("ReferenceNameRequiredException"); -static const int INVALID_OVERRIDE_STATUS_HASH = HashingUtils::HashString("InvalidOverrideStatusException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int REPLACEMENT_CONTENT_REQUIRED_HASH = HashingUtils::HashString("ReplacementContentRequiredException"); -static const int REVISION_NOT_CURRENT_HASH = HashingUtils::HashString("RevisionNotCurrentException"); -static const int COMMIT_REQUIRED_HASH = HashingUtils::HashString("CommitRequiredException"); -static const int ENCRYPTION_KEY_UNAVAILABLE_HASH = HashingUtils::HashString("EncryptionKeyUnavailableException"); -static const int PULL_REQUEST_APPROVAL_RULES_NOT_SATISFIED_HASH = HashingUtils::HashString("PullRequestApprovalRulesNotSatisfiedException"); -static const int MULTIPLE_CONFLICT_RESOLUTION_ENTRIES_HASH = HashingUtils::HashString("MultipleConflictResolutionEntriesException"); -static const int INVALID_MAX_CONFLICT_FILES_HASH = HashingUtils::HashString("InvalidMaxConflictFilesException"); -static const int COMMENT_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CommentDoesNotExistException"); -static const int INVALID_COMMENT_ID_HASH = HashingUtils::HashString("InvalidCommentIdException"); -static const int TARGET_REQUIRED_HASH = HashingUtils::HashString("TargetRequiredException"); -static const int FILE_CONTENT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FileContentSizeLimitExceededException"); -static const int INVALID_PULL_REQUEST_EVENT_TYPE_HASH = HashingUtils::HashString("InvalidPullRequestEventTypeException"); -static const int REPOSITORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RepositoryLimitExceededException"); -static const int INVALID_REPOSITORY_NAME_HASH = HashingUtils::HashString("InvalidRepositoryNameException"); -static const int INVALID_REPOSITORY_DESCRIPTION_HASH = HashingUtils::HashString("InvalidRepositoryDescriptionException"); -static const int FOLDER_DOES_NOT_EXIST_HASH = HashingUtils::HashString("FolderDoesNotExistException"); -static const int INVALID_PATH_HASH = HashingUtils::HashString("InvalidPathException"); -static const int ACTOR_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ActorDoesNotExistException"); -static const int NO_CHANGE_HASH = HashingUtils::HashString("NoChangeException"); -static const int REPLACEMENT_TYPE_REQUIRED_HASH = HashingUtils::HashString("ReplacementTypeRequiredException"); -static const int MANUAL_MERGE_REQUIRED_HASH = HashingUtils::HashString("ManualMergeRequiredException"); -static const int FILE_TOO_LARGE_HASH = HashingUtils::HashString("FileTooLargeException"); -static const int MAXIMUM_REPOSITORY_TRIGGERS_EXCEEDED_HASH = HashingUtils::HashString("MaximumRepositoryTriggersExceededException"); -static const int INVALID_CONFLICT_DETAIL_LEVEL_HASH = HashingUtils::HashString("InvalidConflictDetailLevelException"); -static const int BLOB_ID_DOES_NOT_EXIST_HASH = HashingUtils::HashString("BlobIdDoesNotExistException"); -static const int INVALID_REACTION_VALUE_HASH = HashingUtils::HashString("InvalidReactionValueException"); -static const int PUT_FILE_ENTRY_CONFLICT_HASH = HashingUtils::HashString("PutFileEntryConflictException"); -static const int REACTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ReactionLimitExceededException"); -static const int CANNOT_DELETE_APPROVAL_RULE_FROM_TEMPLATE_HASH = HashingUtils::HashString("CannotDeleteApprovalRuleFromTemplateException"); -static const int AUTHOR_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AuthorDoesNotExistException"); -static const int FILE_NAME_CONFLICTS_WITH_DIRECTORY_NAME_HASH = HashingUtils::HashString("FileNameConflictsWithDirectoryNameException"); -static const int FOLDER_CONTENT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FolderContentSizeLimitExceededException"); -static const int INVALID_TARGETS_HASH = HashingUtils::HashString("InvalidTargetsException"); -static const int NUMBER_OF_RULE_TEMPLATES_EXCEEDED_HASH = HashingUtils::HashString("NumberOfRuleTemplatesExceededException"); -static const int INVALID_REPOSITORY_TRIGGER_BRANCH_NAME_HASH = HashingUtils::HashString("InvalidRepositoryTriggerBranchNameException"); -static const int COMMIT_IDS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CommitIdsLimitExceededException"); -static const int TIPS_DIVERGENCE_EXCEEDED_HASH = HashingUtils::HashString("TipsDivergenceExceededException"); -static const int PULL_REQUEST_ID_REQUIRED_HASH = HashingUtils::HashString("PullRequestIdRequiredException"); -static const int INVALID_FILE_POSITION_HASH = HashingUtils::HashString("InvalidFilePositionException"); -static const int FILE_CONTENT_AND_SOURCE_FILE_SPECIFIED_HASH = HashingUtils::HashString("FileContentAndSourceFileSpecifiedException"); -static const int CONCURRENT_REFERENCE_UPDATE_HASH = HashingUtils::HashString("ConcurrentReferenceUpdateException"); -static const int BEFORE_COMMIT_ID_AND_AFTER_COMMIT_ID_ARE_SAME_HASH = HashingUtils::HashString("BeforeCommitIdAndAfterCommitIdAreSameException"); -static const int APPROVAL_RULE_TEMPLATE_IN_USE_HASH = HashingUtils::HashString("ApprovalRuleTemplateInUseException"); -static const int SAME_FILE_CONTENT_HASH = HashingUtils::HashString("SameFileContentException"); +static constexpr uint32_t REPOSITORY_TRIGGERS_LIST_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryTriggersListRequiredException"); +static constexpr uint32_t PULL_REQUEST_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("PullRequestDoesNotExistException"); +static constexpr uint32_t BRANCH_NAME_EXISTS_HASH = ConstExprHashingUtils::HashString("BranchNameExistsException"); +static constexpr uint32_t FILE_ENTRY_REQUIRED_HASH = ConstExprHashingUtils::HashString("FileEntryRequiredException"); +static constexpr uint32_t INVALID_CONFLICT_RESOLUTION_STRATEGY_HASH = ConstExprHashingUtils::HashString("InvalidConflictResolutionStrategyException"); +static constexpr uint32_t PATH_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("PathDoesNotExistException"); +static constexpr uint32_t FILE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("FileDoesNotExistException"); +static constexpr uint32_t INVALID_PULL_REQUEST_ID_HASH = ConstExprHashingUtils::HashString("InvalidPullRequestIdException"); +static constexpr uint32_t COMMIT_MESSAGE_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CommitMessageLengthExceededException"); +static constexpr uint32_t REVISION_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("RevisionIdRequiredException"); +static constexpr uint32_t COMMENT_CONTENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("CommentContentRequiredException"); +static constexpr uint32_t INVALID_MAX_MERGE_HUNKS_HASH = ConstExprHashingUtils::HashString("InvalidMaxMergeHunksException"); +static constexpr uint32_t REACTION_VALUE_REQUIRED_HASH = ConstExprHashingUtils::HashString("ReactionValueRequiredException"); +static constexpr uint32_t INVALID_CONTINUATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidContinuationTokenException"); +static constexpr uint32_t MERGE_OPTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("MergeOptionRequiredException"); +static constexpr uint32_t INVALID_AUTHOR_ARN_HASH = ConstExprHashingUtils::HashString("InvalidAuthorArnException"); +static constexpr uint32_t INVALID_TARGET_BRANCH_HASH = ConstExprHashingUtils::HashString("InvalidTargetBranchException"); +static constexpr uint32_t INVALID_COMMIT_ID_HASH = ConstExprHashingUtils::HashString("InvalidCommitIdException"); +static constexpr uint32_t MULTIPLE_REPOSITORIES_IN_PULL_REQUEST_HASH = ConstExprHashingUtils::HashString("MultipleRepositoriesInPullRequestException"); +static constexpr uint32_t INVALID_REPLACEMENT_CONTENT_HASH = ConstExprHashingUtils::HashString("InvalidReplacementContentException"); +static constexpr uint32_t APPROVAL_RULE_TEMPLATE_NAME_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ApprovalRuleTemplateNameAlreadyExistsException"); +static constexpr uint32_t INVALID_ACTOR_ARN_HASH = ConstExprHashingUtils::HashString("InvalidActorArnException"); +static constexpr uint32_t INVALID_REPOSITORY_TRIGGER_EVENTS_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryTriggerEventsException"); +static constexpr uint32_t COMMIT_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("CommitDoesNotExistException"); +static constexpr uint32_t INVALID_REACTION_USER_ARN_HASH = ConstExprHashingUtils::HashString("InvalidReactionUserArnException"); +static constexpr uint32_t BRANCH_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("BranchDoesNotExistException"); +static constexpr uint32_t TAGS_MAP_REQUIRED_HASH = ConstExprHashingUtils::HashString("TagsMapRequiredException"); +static constexpr uint32_t REPOSITORY_TRIGGER_DESTINATION_ARN_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryTriggerDestinationArnRequiredException"); +static constexpr uint32_t REPOSITORY_TRIGGER_EVENTS_LIST_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryTriggerEventsListRequiredException"); +static constexpr uint32_t REPOSITORY_TRIGGER_BRANCH_NAME_LIST_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryTriggerBranchNameListRequiredException"); +static constexpr uint32_t INVALID_PULL_REQUEST_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidPullRequestStatusException"); +static constexpr uint32_t INVALID_APPROVAL_RULE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidApprovalRuleNameException"); +static constexpr uint32_t COMMIT_IDS_LIST_REQUIRED_HASH = ConstExprHashingUtils::HashString("CommitIdsListRequiredException"); +static constexpr uint32_t INVALID_BLOB_ID_HASH = ConstExprHashingUtils::HashString("InvalidBlobIdException"); +static constexpr uint32_t DIRECTORY_NAME_CONFLICTS_WITH_FILE_NAME_HASH = ConstExprHashingUtils::HashString("DirectoryNameConflictsWithFileNameException"); +static constexpr uint32_t TAG_POLICY_HASH = ConstExprHashingUtils::HashString("TagPolicyException"); +static constexpr uint32_t INVALID_COMMIT_HASH = ConstExprHashingUtils::HashString("InvalidCommitException"); +static constexpr uint32_t APPROVAL_RULE_CONTENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("ApprovalRuleContentRequiredException"); +static constexpr uint32_t REPOSITORY_TRIGGER_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryTriggerNameRequiredException"); +static constexpr uint32_t NUMBER_OF_RULES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberOfRulesExceededException"); +static constexpr uint32_t MAXIMUM_BRANCHES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumBranchesExceededException"); +static constexpr uint32_t INVALID_PARENT_COMMIT_ID_HASH = ConstExprHashingUtils::HashString("InvalidParentCommitIdException"); +static constexpr uint32_t CLIENT_REQUEST_TOKEN_REQUIRED_HASH = ConstExprHashingUtils::HashString("ClientRequestTokenRequiredException"); +static constexpr uint32_t INVALID_APPROVAL_RULE_TEMPLATE_DESCRIPTION_HASH = ConstExprHashingUtils::HashString("InvalidApprovalRuleTemplateDescriptionException"); +static constexpr uint32_t INVALID_APPROVAL_RULE_TEMPLATE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidApprovalRuleTemplateNameException"); +static constexpr uint32_t PARENT_COMMIT_ID_OUTDATED_HASH = ConstExprHashingUtils::HashString("ParentCommitIdOutdatedException"); +static constexpr uint32_t SOURCE_FILE_OR_CONTENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("SourceFileOrContentRequiredException"); +static constexpr uint32_t APPROVAL_RULE_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("ApprovalRuleNameRequiredException"); +static constexpr uint32_t REPOSITORY_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RepositoryDoesNotExistException"); +static constexpr uint32_t DEFAULT_BRANCH_CANNOT_BE_DELETED_HASH = ConstExprHashingUtils::HashString("DefaultBranchCannotBeDeletedException"); +static constexpr uint32_t OVERRIDE_ALREADY_SET_HASH = ConstExprHashingUtils::HashString("OverrideAlreadySetException"); +static constexpr uint32_t INVALID_PULL_REQUEST_STATUS_UPDATE_HASH = ConstExprHashingUtils::HashString("InvalidPullRequestStatusUpdateException"); +static constexpr uint32_t ENCRYPTION_KEY_DISABLED_HASH = ConstExprHashingUtils::HashString("EncryptionKeyDisabledException"); +static constexpr uint32_t APPROVAL_RULE_TEMPLATE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ApprovalRuleTemplateDoesNotExistException"); +static constexpr uint32_t INVALID_APPROVAL_STATE_HASH = ConstExprHashingUtils::HashString("InvalidApprovalStateException"); +static constexpr uint32_t TITLE_REQUIRED_HASH = ConstExprHashingUtils::HashString("TitleRequiredException"); +static constexpr uint32_t MAXIMUM_RULE_TEMPLATES_ASSOCIATED_WITH_REPOSITORY_HASH = ConstExprHashingUtils::HashString("MaximumRuleTemplatesAssociatedWithRepositoryException"); +static constexpr uint32_t TARGETS_REQUIRED_HASH = ConstExprHashingUtils::HashString("TargetsRequiredException"); +static constexpr uint32_t COMMENT_NOT_CREATED_BY_CALLER_HASH = ConstExprHashingUtils::HashString("CommentNotCreatedByCallerException"); +static constexpr uint32_t INVALID_REVISION_ID_HASH = ConstExprHashingUtils::HashString("InvalidRevisionIdException"); +static constexpr uint32_t NAME_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NameLengthExceededException"); +static constexpr uint32_t MAXIMUM_CONFLICT_RESOLUTION_ENTRIES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumConflictResolutionEntriesExceededException"); +static constexpr uint32_t COMMENT_DELETED_HASH = ConstExprHashingUtils::HashString("CommentDeletedException"); +static constexpr uint32_t COMMIT_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("CommitIdRequiredException"); +static constexpr uint32_t RESTRICTED_SOURCE_FILE_HASH = ConstExprHashingUtils::HashString("RestrictedSourceFileException"); +static constexpr uint32_t IDEMPOTENCY_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotencyParameterMismatchException"); +static constexpr uint32_t MAXIMUM_ITEMS_TO_COMPARE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumItemsToCompareExceededException"); +static constexpr uint32_t PARENT_COMMIT_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("ParentCommitIdRequiredException"); +static constexpr uint32_t INVALID_REPOSITORY_TRIGGER_DESTINATION_ARN_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryTriggerDestinationArnException"); +static constexpr uint32_t APPROVAL_RULE_TEMPLATE_CONTENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("ApprovalRuleTemplateContentRequiredException"); +static constexpr uint32_t INVALID_SORT_BY_HASH = ConstExprHashingUtils::HashString("InvalidSortByException"); +static constexpr uint32_t INVALID_RELATIVE_FILE_VERSION_ENUM_HASH = ConstExprHashingUtils::HashString("InvalidRelativeFileVersionEnumException"); +static constexpr uint32_t INVALID_CLIENT_REQUEST_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidClientRequestTokenException"); +static constexpr uint32_t APPROVAL_RULE_TEMPLATE_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("ApprovalRuleTemplateNameRequiredException"); +static constexpr uint32_t INVALID_RULE_CONTENT_SHA256_HASH = ConstExprHashingUtils::HashString("InvalidRuleContentSha256Exception"); +static constexpr uint32_t BRANCH_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("BranchNameRequiredException"); +static constexpr uint32_t FILE_CONTENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("FileContentRequiredException"); +static constexpr uint32_t MAXIMUM_FILE_CONTENT_TO_LOAD_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumFileContentToLoadExceededException"); +static constexpr uint32_t SAME_PATH_REQUEST_HASH = ConstExprHashingUtils::HashString("SamePathRequestException"); +static constexpr uint32_t INVALID_DESCRIPTION_HASH = ConstExprHashingUtils::HashString("InvalidDescriptionException"); +static constexpr uint32_t INVALID_REPLACEMENT_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidReplacementTypeException"); +static constexpr uint32_t ENCRYPTION_KEY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("EncryptionKeyAccessDeniedException"); +static constexpr uint32_t INVALID_RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("InvalidResourceArnException"); +static constexpr uint32_t INVALID_APPROVAL_RULE_CONTENT_HASH = ConstExprHashingUtils::HashString("InvalidApprovalRuleContentException"); +static constexpr uint32_t INVALID_CONFLICT_RESOLUTION_HASH = ConstExprHashingUtils::HashString("InvalidConflictResolutionException"); +static constexpr uint32_t BLOB_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("BlobIdRequiredException"); +static constexpr uint32_t REPOSITORY_NAMES_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryNamesRequiredException"); +static constexpr uint32_t COMMENT_CONTENT_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CommentContentSizeLimitExceededException"); +static constexpr uint32_t INVALID_TARGET_HASH = ConstExprHashingUtils::HashString("InvalidTargetException"); +static constexpr uint32_t REFERENCE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ReferenceDoesNotExistException"); +static constexpr uint32_t CANNOT_MODIFY_APPROVAL_RULE_FROM_TEMPLATE_HASH = ConstExprHashingUtils::HashString("CannotModifyApprovalRuleFromTemplateException"); +static constexpr uint32_t BRANCH_NAME_IS_TAG_NAME_HASH = ConstExprHashingUtils::HashString("BranchNameIsTagNameException"); +static constexpr uint32_t REPOSITORY_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("RepositoryNameRequiredException"); +static constexpr uint32_t INVALID_APPROVAL_RULE_TEMPLATE_CONTENT_HASH = ConstExprHashingUtils::HashString("InvalidApprovalRuleTemplateContentException"); +static constexpr uint32_t APPROVAL_RULE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ApprovalRuleDoesNotExistException"); +static constexpr uint32_t PULL_REQUEST_STATUS_REQUIRED_HASH = ConstExprHashingUtils::HashString("PullRequestStatusRequiredException"); +static constexpr uint32_t APPROVAL_RULE_NAME_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ApprovalRuleNameAlreadyExistsException"); +static constexpr uint32_t INVALID_MAX_RESULTS_HASH = ConstExprHashingUtils::HashString("InvalidMaxResultsException"); +static constexpr uint32_t TIP_OF_SOURCE_REFERENCE_IS_DIFFERENT_HASH = ConstExprHashingUtils::HashString("TipOfSourceReferenceIsDifferentException"); +static constexpr uint32_t MAXIMUM_NUMBER_OF_APPROVALS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumNumberOfApprovalsExceededException"); +static constexpr uint32_t REPOSITORY_NAME_EXISTS_HASH = ConstExprHashingUtils::HashString("RepositoryNameExistsException"); +static constexpr uint32_t PULL_REQUEST_CANNOT_BE_APPROVED_BY_AUTHOR_HASH = ConstExprHashingUtils::HashString("PullRequestCannotBeApprovedByAuthorException"); +static constexpr uint32_t FILE_MODE_REQUIRED_HASH = ConstExprHashingUtils::HashString("FileModeRequiredException"); +static constexpr uint32_t ENCRYPTION_INTEGRITY_CHECKS_FAILED_HASH = ConstExprHashingUtils::HashString("EncryptionIntegrityChecksFailedException"); +static constexpr uint32_t REFERENCE_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ReferenceTypeNotSupportedException"); +static constexpr uint32_t INVALID_REPOSITORY_TRIGGER_REGION_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryTriggerRegionException"); +static constexpr uint32_t APPROVAL_STATE_REQUIRED_HASH = ConstExprHashingUtils::HashString("ApprovalStateRequiredException"); +static constexpr uint32_t INVALID_EMAIL_HASH = ConstExprHashingUtils::HashString("InvalidEmailException"); +static constexpr uint32_t INVALID_DESTINATION_COMMIT_SPECIFIER_HASH = ConstExprHashingUtils::HashString("InvalidDestinationCommitSpecifierException"); +static constexpr uint32_t COMMIT_ID_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("CommitIdDoesNotExistException"); +static constexpr uint32_t PARENT_COMMIT_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ParentCommitDoesNotExistException"); +static constexpr uint32_t TAG_KEYS_LIST_REQUIRED_HASH = ConstExprHashingUtils::HashString("TagKeysListRequiredException"); +static constexpr uint32_t INVALID_ORDER_HASH = ConstExprHashingUtils::HashString("InvalidOrderException"); +static constexpr uint32_t INVALID_REPOSITORY_TRIGGER_CUSTOM_DATA_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryTriggerCustomDataException"); +static constexpr uint32_t INVALID_REFERENCE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidReferenceNameException"); +static constexpr uint32_t PULL_REQUEST_ALREADY_CLOSED_HASH = ConstExprHashingUtils::HashString("PullRequestAlreadyClosedException"); +static constexpr uint32_t INVALID_SYSTEM_TAG_USAGE_HASH = ConstExprHashingUtils::HashString("InvalidSystemTagUsageException"); +static constexpr uint32_t OVERRIDE_STATUS_REQUIRED_HASH = ConstExprHashingUtils::HashString("OverrideStatusRequiredException"); +static constexpr uint32_t INVALID_TAG_KEYS_LIST_HASH = ConstExprHashingUtils::HashString("InvalidTagKeysListException"); +static constexpr uint32_t INVALID_MERGE_OPTION_HASH = ConstExprHashingUtils::HashString("InvalidMergeOptionException"); +static constexpr uint32_t COMMENT_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("CommentIdRequiredException"); +static constexpr uint32_t REPOSITORY_NOT_ASSOCIATED_WITH_PULL_REQUEST_HASH = ConstExprHashingUtils::HashString("RepositoryNotAssociatedWithPullRequestException"); +static constexpr uint32_t INVALID_SOURCE_COMMIT_SPECIFIER_HASH = ConstExprHashingUtils::HashString("InvalidSourceCommitSpecifierException"); +static constexpr uint32_t FILE_PATH_CONFLICTS_WITH_SUBMODULE_PATH_HASH = ConstExprHashingUtils::HashString("FilePathConflictsWithSubmodulePathException"); +static constexpr uint32_t RESOURCE_ARN_REQUIRED_HASH = ConstExprHashingUtils::HashString("ResourceArnRequiredException"); +static constexpr uint32_t INVALID_FILE_MODE_HASH = ConstExprHashingUtils::HashString("InvalidFileModeException"); +static constexpr uint32_t INVALID_REPOSITORY_TRIGGER_NAME_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryTriggerNameException"); +static constexpr uint32_t INVALID_TITLE_HASH = ConstExprHashingUtils::HashString("InvalidTitleException"); +static constexpr uint32_t SOURCE_AND_DESTINATION_ARE_SAME_HASH = ConstExprHashingUtils::HashString("SourceAndDestinationAreSameException"); +static constexpr uint32_t PATH_REQUIRED_HASH = ConstExprHashingUtils::HashString("PathRequiredException"); +static constexpr uint32_t INVALID_DELETION_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidDeletionParameterException"); +static constexpr uint32_t INVALID_TAGS_MAP_HASH = ConstExprHashingUtils::HashString("InvalidTagsMapException"); +static constexpr uint32_t INVALID_FILE_LOCATION_HASH = ConstExprHashingUtils::HashString("InvalidFileLocationException"); +static constexpr uint32_t INVALID_BRANCH_NAME_HASH = ConstExprHashingUtils::HashString("InvalidBranchNameException"); +static constexpr uint32_t MAXIMUM_FILE_ENTRIES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumFileEntriesExceededException"); +static constexpr uint32_t MAXIMUM_REPOSITORY_NAMES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumRepositoryNamesExceededException"); +static constexpr uint32_t MAXIMUM_OPEN_PULL_REQUESTS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumOpenPullRequestsExceededException"); +static constexpr uint32_t ENCRYPTION_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EncryptionKeyNotFoundException"); +static constexpr uint32_t REFERENCE_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("ReferenceNameRequiredException"); +static constexpr uint32_t INVALID_OVERRIDE_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidOverrideStatusException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t REPLACEMENT_CONTENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("ReplacementContentRequiredException"); +static constexpr uint32_t REVISION_NOT_CURRENT_HASH = ConstExprHashingUtils::HashString("RevisionNotCurrentException"); +static constexpr uint32_t COMMIT_REQUIRED_HASH = ConstExprHashingUtils::HashString("CommitRequiredException"); +static constexpr uint32_t ENCRYPTION_KEY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("EncryptionKeyUnavailableException"); +static constexpr uint32_t PULL_REQUEST_APPROVAL_RULES_NOT_SATISFIED_HASH = ConstExprHashingUtils::HashString("PullRequestApprovalRulesNotSatisfiedException"); +static constexpr uint32_t MULTIPLE_CONFLICT_RESOLUTION_ENTRIES_HASH = ConstExprHashingUtils::HashString("MultipleConflictResolutionEntriesException"); +static constexpr uint32_t INVALID_MAX_CONFLICT_FILES_HASH = ConstExprHashingUtils::HashString("InvalidMaxConflictFilesException"); +static constexpr uint32_t COMMENT_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("CommentDoesNotExistException"); +static constexpr uint32_t INVALID_COMMENT_ID_HASH = ConstExprHashingUtils::HashString("InvalidCommentIdException"); +static constexpr uint32_t TARGET_REQUIRED_HASH = ConstExprHashingUtils::HashString("TargetRequiredException"); +static constexpr uint32_t FILE_CONTENT_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FileContentSizeLimitExceededException"); +static constexpr uint32_t INVALID_PULL_REQUEST_EVENT_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidPullRequestEventTypeException"); +static constexpr uint32_t REPOSITORY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RepositoryLimitExceededException"); +static constexpr uint32_t INVALID_REPOSITORY_NAME_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryNameException"); +static constexpr uint32_t INVALID_REPOSITORY_DESCRIPTION_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryDescriptionException"); +static constexpr uint32_t FOLDER_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("FolderDoesNotExistException"); +static constexpr uint32_t INVALID_PATH_HASH = ConstExprHashingUtils::HashString("InvalidPathException"); +static constexpr uint32_t ACTOR_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ActorDoesNotExistException"); +static constexpr uint32_t NO_CHANGE_HASH = ConstExprHashingUtils::HashString("NoChangeException"); +static constexpr uint32_t REPLACEMENT_TYPE_REQUIRED_HASH = ConstExprHashingUtils::HashString("ReplacementTypeRequiredException"); +static constexpr uint32_t MANUAL_MERGE_REQUIRED_HASH = ConstExprHashingUtils::HashString("ManualMergeRequiredException"); +static constexpr uint32_t FILE_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("FileTooLargeException"); +static constexpr uint32_t MAXIMUM_REPOSITORY_TRIGGERS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaximumRepositoryTriggersExceededException"); +static constexpr uint32_t INVALID_CONFLICT_DETAIL_LEVEL_HASH = ConstExprHashingUtils::HashString("InvalidConflictDetailLevelException"); +static constexpr uint32_t BLOB_ID_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("BlobIdDoesNotExistException"); +static constexpr uint32_t INVALID_REACTION_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidReactionValueException"); +static constexpr uint32_t PUT_FILE_ENTRY_CONFLICT_HASH = ConstExprHashingUtils::HashString("PutFileEntryConflictException"); +static constexpr uint32_t REACTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ReactionLimitExceededException"); +static constexpr uint32_t CANNOT_DELETE_APPROVAL_RULE_FROM_TEMPLATE_HASH = ConstExprHashingUtils::HashString("CannotDeleteApprovalRuleFromTemplateException"); +static constexpr uint32_t AUTHOR_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("AuthorDoesNotExistException"); +static constexpr uint32_t FILE_NAME_CONFLICTS_WITH_DIRECTORY_NAME_HASH = ConstExprHashingUtils::HashString("FileNameConflictsWithDirectoryNameException"); +static constexpr uint32_t FOLDER_CONTENT_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FolderContentSizeLimitExceededException"); +static constexpr uint32_t INVALID_TARGETS_HASH = ConstExprHashingUtils::HashString("InvalidTargetsException"); +static constexpr uint32_t NUMBER_OF_RULE_TEMPLATES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberOfRuleTemplatesExceededException"); +static constexpr uint32_t INVALID_REPOSITORY_TRIGGER_BRANCH_NAME_HASH = ConstExprHashingUtils::HashString("InvalidRepositoryTriggerBranchNameException"); +static constexpr uint32_t COMMIT_IDS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CommitIdsLimitExceededException"); +static constexpr uint32_t TIPS_DIVERGENCE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TipsDivergenceExceededException"); +static constexpr uint32_t PULL_REQUEST_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("PullRequestIdRequiredException"); +static constexpr uint32_t INVALID_FILE_POSITION_HASH = ConstExprHashingUtils::HashString("InvalidFilePositionException"); +static constexpr uint32_t FILE_CONTENT_AND_SOURCE_FILE_SPECIFIED_HASH = ConstExprHashingUtils::HashString("FileContentAndSourceFileSpecifiedException"); +static constexpr uint32_t CONCURRENT_REFERENCE_UPDATE_HASH = ConstExprHashingUtils::HashString("ConcurrentReferenceUpdateException"); +static constexpr uint32_t BEFORE_COMMIT_ID_AND_AFTER_COMMIT_ID_ARE_SAME_HASH = ConstExprHashingUtils::HashString("BeforeCommitIdAndAfterCommitIdAreSameException"); +static constexpr uint32_t APPROVAL_RULE_TEMPLATE_IN_USE_HASH = ConstExprHashingUtils::HashString("ApprovalRuleTemplateInUseException"); +static constexpr uint32_t SAME_FILE_CONTENT_HASH = ConstExprHashingUtils::HashString("SameFileContentException"); /* @@ -211,7 +211,7 @@ which allows constant time lookup. The chain has been broken into helper functio because MSVC has a maximum of 122 chained if-else blocks. */ -static bool GetErrorForNameHelper0(int hashCode, AWSError& error) +static bool GetErrorForNameHelper0(uint32_t hashCode, AWSError& error) { if (hashCode == REPOSITORY_TRIGGERS_LIST_REQUIRED_HASH) { @@ -826,7 +826,7 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) return false; } -static bool GetErrorForNameHelper1(int hashCode, AWSError& error) +static bool GetErrorForNameHelper1(uint32_t hashCode, AWSError& error) { if (hashCode == INVALID_SOURCE_COMMIT_SPECIFIER_HASH) { @@ -1148,7 +1148,7 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/ApprovalState.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/ApprovalState.cpp index 3a6222cf149..c66f3405ec1 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/ApprovalState.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/ApprovalState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApprovalStateMapper { - static const int APPROVE_HASH = HashingUtils::HashString("APPROVE"); - static const int REVOKE_HASH = HashingUtils::HashString("REVOKE"); + static constexpr uint32_t APPROVE_HASH = ConstExprHashingUtils::HashString("APPROVE"); + static constexpr uint32_t REVOKE_HASH = ConstExprHashingUtils::HashString("REVOKE"); ApprovalState GetApprovalStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVE_HASH) { return ApprovalState::APPROVE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/ChangeTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/ChangeTypeEnum.cpp index 1dfa921087f..777961c1f87 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/ChangeTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/ChangeTypeEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeTypeEnumMapper { - static const int A_HASH = HashingUtils::HashString("A"); - static const int M_HASH = HashingUtils::HashString("M"); - static const int D_HASH = HashingUtils::HashString("D"); + static constexpr uint32_t A_HASH = ConstExprHashingUtils::HashString("A"); + static constexpr uint32_t M_HASH = ConstExprHashingUtils::HashString("M"); + static constexpr uint32_t D_HASH = ConstExprHashingUtils::HashString("D"); ChangeTypeEnum GetChangeTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == A_HASH) { return ChangeTypeEnum::A; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictDetailLevelTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictDetailLevelTypeEnum.cpp index e2363394a81..1b1c4afafd3 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictDetailLevelTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictDetailLevelTypeEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConflictDetailLevelTypeEnumMapper { - static const int FILE_LEVEL_HASH = HashingUtils::HashString("FILE_LEVEL"); - static const int LINE_LEVEL_HASH = HashingUtils::HashString("LINE_LEVEL"); + static constexpr uint32_t FILE_LEVEL_HASH = ConstExprHashingUtils::HashString("FILE_LEVEL"); + static constexpr uint32_t LINE_LEVEL_HASH = ConstExprHashingUtils::HashString("LINE_LEVEL"); ConflictDetailLevelTypeEnum GetConflictDetailLevelTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILE_LEVEL_HASH) { return ConflictDetailLevelTypeEnum::FILE_LEVEL; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictResolutionStrategyTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictResolutionStrategyTypeEnum.cpp index 8fadefd1238..92db387edca 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictResolutionStrategyTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/ConflictResolutionStrategyTypeEnum.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConflictResolutionStrategyTypeEnumMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ACCEPT_SOURCE_HASH = HashingUtils::HashString("ACCEPT_SOURCE"); - static const int ACCEPT_DESTINATION_HASH = HashingUtils::HashString("ACCEPT_DESTINATION"); - static const int AUTOMERGE_HASH = HashingUtils::HashString("AUTOMERGE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ACCEPT_SOURCE_HASH = ConstExprHashingUtils::HashString("ACCEPT_SOURCE"); + static constexpr uint32_t ACCEPT_DESTINATION_HASH = ConstExprHashingUtils::HashString("ACCEPT_DESTINATION"); + static constexpr uint32_t AUTOMERGE_HASH = ConstExprHashingUtils::HashString("AUTOMERGE"); ConflictResolutionStrategyTypeEnum GetConflictResolutionStrategyTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ConflictResolutionStrategyTypeEnum::NONE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/FileModeTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/FileModeTypeEnum.cpp index c58eff63f20..e6191881dc1 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/FileModeTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/FileModeTypeEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileModeTypeEnumMapper { - static const int EXECUTABLE_HASH = HashingUtils::HashString("EXECUTABLE"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int SYMLINK_HASH = HashingUtils::HashString("SYMLINK"); + static constexpr uint32_t EXECUTABLE_HASH = ConstExprHashingUtils::HashString("EXECUTABLE"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); + static constexpr uint32_t SYMLINK_HASH = ConstExprHashingUtils::HashString("SYMLINK"); FileModeTypeEnum GetFileModeTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXECUTABLE_HASH) { return FileModeTypeEnum::EXECUTABLE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/MergeOptionTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/MergeOptionTypeEnum.cpp index fd4fdf16368..2d864c1bdb7 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/MergeOptionTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/MergeOptionTypeEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MergeOptionTypeEnumMapper { - static const int FAST_FORWARD_MERGE_HASH = HashingUtils::HashString("FAST_FORWARD_MERGE"); - static const int SQUASH_MERGE_HASH = HashingUtils::HashString("SQUASH_MERGE"); - static const int THREE_WAY_MERGE_HASH = HashingUtils::HashString("THREE_WAY_MERGE"); + static constexpr uint32_t FAST_FORWARD_MERGE_HASH = ConstExprHashingUtils::HashString("FAST_FORWARD_MERGE"); + static constexpr uint32_t SQUASH_MERGE_HASH = ConstExprHashingUtils::HashString("SQUASH_MERGE"); + static constexpr uint32_t THREE_WAY_MERGE_HASH = ConstExprHashingUtils::HashString("THREE_WAY_MERGE"); MergeOptionTypeEnum GetMergeOptionTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAST_FORWARD_MERGE_HASH) { return MergeOptionTypeEnum::FAST_FORWARD_MERGE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/ObjectTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/ObjectTypeEnum.cpp index 96950c92b88..2dce6bb6681 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/ObjectTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/ObjectTypeEnum.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ObjectTypeEnumMapper { - static const int FILE_HASH = HashingUtils::HashString("FILE"); - static const int DIRECTORY_HASH = HashingUtils::HashString("DIRECTORY"); - static const int GIT_LINK_HASH = HashingUtils::HashString("GIT_LINK"); - static const int SYMBOLIC_LINK_HASH = HashingUtils::HashString("SYMBOLIC_LINK"); + static constexpr uint32_t FILE_HASH = ConstExprHashingUtils::HashString("FILE"); + static constexpr uint32_t DIRECTORY_HASH = ConstExprHashingUtils::HashString("DIRECTORY"); + static constexpr uint32_t GIT_LINK_HASH = ConstExprHashingUtils::HashString("GIT_LINK"); + static constexpr uint32_t SYMBOLIC_LINK_HASH = ConstExprHashingUtils::HashString("SYMBOLIC_LINK"); ObjectTypeEnum GetObjectTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILE_HASH) { return ObjectTypeEnum::FILE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/OrderEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/OrderEnum.cpp index b81971bb76d..ed6d18abf3a 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/OrderEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/OrderEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderEnumMapper { - static const int ascending_HASH = HashingUtils::HashString("ascending"); - static const int descending_HASH = HashingUtils::HashString("descending"); + static constexpr uint32_t ascending_HASH = ConstExprHashingUtils::HashString("ascending"); + static constexpr uint32_t descending_HASH = ConstExprHashingUtils::HashString("descending"); OrderEnum GetOrderEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ascending_HASH) { return OrderEnum::ascending; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/OverrideStatus.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/OverrideStatus.cpp index 09b92f695f9..7a51b411c5b 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/OverrideStatus.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/OverrideStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OverrideStatusMapper { - static const int OVERRIDE_HASH = HashingUtils::HashString("OVERRIDE"); - static const int REVOKE_HASH = HashingUtils::HashString("REVOKE"); + static constexpr uint32_t OVERRIDE_HASH = ConstExprHashingUtils::HashString("OVERRIDE"); + static constexpr uint32_t REVOKE_HASH = ConstExprHashingUtils::HashString("REVOKE"); OverrideStatus GetOverrideStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERRIDE_HASH) { return OverrideStatus::OVERRIDE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestEventType.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestEventType.cpp index bec50ad8ce1..0450240236e 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestEventType.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestEventType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace PullRequestEventTypeMapper { - static const int PULL_REQUEST_CREATED_HASH = HashingUtils::HashString("PULL_REQUEST_CREATED"); - static const int PULL_REQUEST_STATUS_CHANGED_HASH = HashingUtils::HashString("PULL_REQUEST_STATUS_CHANGED"); - static const int PULL_REQUEST_SOURCE_REFERENCE_UPDATED_HASH = HashingUtils::HashString("PULL_REQUEST_SOURCE_REFERENCE_UPDATED"); - static const int PULL_REQUEST_MERGE_STATE_CHANGED_HASH = HashingUtils::HashString("PULL_REQUEST_MERGE_STATE_CHANGED"); - static const int PULL_REQUEST_APPROVAL_RULE_CREATED_HASH = HashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_CREATED"); - static const int PULL_REQUEST_APPROVAL_RULE_UPDATED_HASH = HashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_UPDATED"); - static const int PULL_REQUEST_APPROVAL_RULE_DELETED_HASH = HashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_DELETED"); - static const int PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN_HASH = HashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"); - static const int PULL_REQUEST_APPROVAL_STATE_CHANGED_HASH = HashingUtils::HashString("PULL_REQUEST_APPROVAL_STATE_CHANGED"); + static constexpr uint32_t PULL_REQUEST_CREATED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_CREATED"); + static constexpr uint32_t PULL_REQUEST_STATUS_CHANGED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_STATUS_CHANGED"); + static constexpr uint32_t PULL_REQUEST_SOURCE_REFERENCE_UPDATED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_SOURCE_REFERENCE_UPDATED"); + static constexpr uint32_t PULL_REQUEST_MERGE_STATE_CHANGED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_MERGE_STATE_CHANGED"); + static constexpr uint32_t PULL_REQUEST_APPROVAL_RULE_CREATED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_CREATED"); + static constexpr uint32_t PULL_REQUEST_APPROVAL_RULE_UPDATED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_UPDATED"); + static constexpr uint32_t PULL_REQUEST_APPROVAL_RULE_DELETED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_DELETED"); + static constexpr uint32_t PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"); + static constexpr uint32_t PULL_REQUEST_APPROVAL_STATE_CHANGED_HASH = ConstExprHashingUtils::HashString("PULL_REQUEST_APPROVAL_STATE_CHANGED"); PullRequestEventType GetPullRequestEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PULL_REQUEST_CREATED_HASH) { return PullRequestEventType::PULL_REQUEST_CREATED; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestStatusEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestStatusEnum.cpp index ba082f21721..28a73b485e3 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestStatusEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/PullRequestStatusEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PullRequestStatusEnumMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); PullRequestStatusEnum GetPullRequestStatusEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return PullRequestStatusEnum::OPEN; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/RelativeFileVersionEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/RelativeFileVersionEnum.cpp index a8c3dac9795..22bf2393b30 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/RelativeFileVersionEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/RelativeFileVersionEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RelativeFileVersionEnumMapper { - static const int BEFORE_HASH = HashingUtils::HashString("BEFORE"); - static const int AFTER_HASH = HashingUtils::HashString("AFTER"); + static constexpr uint32_t BEFORE_HASH = ConstExprHashingUtils::HashString("BEFORE"); + static constexpr uint32_t AFTER_HASH = ConstExprHashingUtils::HashString("AFTER"); RelativeFileVersionEnum GetRelativeFileVersionEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEFORE_HASH) { return RelativeFileVersionEnum::BEFORE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/ReplacementTypeEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/ReplacementTypeEnum.cpp index 1fddf0390bf..30cda904a43 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/ReplacementTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/ReplacementTypeEnum.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReplacementTypeEnumMapper { - static const int KEEP_BASE_HASH = HashingUtils::HashString("KEEP_BASE"); - static const int KEEP_SOURCE_HASH = HashingUtils::HashString("KEEP_SOURCE"); - static const int KEEP_DESTINATION_HASH = HashingUtils::HashString("KEEP_DESTINATION"); - static const int USE_NEW_CONTENT_HASH = HashingUtils::HashString("USE_NEW_CONTENT"); + static constexpr uint32_t KEEP_BASE_HASH = ConstExprHashingUtils::HashString("KEEP_BASE"); + static constexpr uint32_t KEEP_SOURCE_HASH = ConstExprHashingUtils::HashString("KEEP_SOURCE"); + static constexpr uint32_t KEEP_DESTINATION_HASH = ConstExprHashingUtils::HashString("KEEP_DESTINATION"); + static constexpr uint32_t USE_NEW_CONTENT_HASH = ConstExprHashingUtils::HashString("USE_NEW_CONTENT"); ReplacementTypeEnum GetReplacementTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEEP_BASE_HASH) { return ReplacementTypeEnum::KEEP_BASE; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/RepositoryTriggerEventEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/RepositoryTriggerEventEnum.cpp index 194ee7a60bd..ae99498a648 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/RepositoryTriggerEventEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/RepositoryTriggerEventEnum.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RepositoryTriggerEventEnumMapper { - static const int all_HASH = HashingUtils::HashString("all"); - static const int updateReference_HASH = HashingUtils::HashString("updateReference"); - static const int createReference_HASH = HashingUtils::HashString("createReference"); - static const int deleteReference_HASH = HashingUtils::HashString("deleteReference"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); + static constexpr uint32_t updateReference_HASH = ConstExprHashingUtils::HashString("updateReference"); + static constexpr uint32_t createReference_HASH = ConstExprHashingUtils::HashString("createReference"); + static constexpr uint32_t deleteReference_HASH = ConstExprHashingUtils::HashString("deleteReference"); RepositoryTriggerEventEnum GetRepositoryTriggerEventEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == all_HASH) { return RepositoryTriggerEventEnum::all; diff --git a/generated/src/aws-cpp-sdk-codecommit/source/model/SortByEnum.cpp b/generated/src/aws-cpp-sdk-codecommit/source/model/SortByEnum.cpp index 77525896100..584d0f99133 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/model/SortByEnum.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/model/SortByEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortByEnumMapper { - static const int repositoryName_HASH = HashingUtils::HashString("repositoryName"); - static const int lastModifiedDate_HASH = HashingUtils::HashString("lastModifiedDate"); + static constexpr uint32_t repositoryName_HASH = ConstExprHashingUtils::HashString("repositoryName"); + static constexpr uint32_t lastModifiedDate_HASH = ConstExprHashingUtils::HashString("lastModifiedDate"); SortByEnum GetSortByEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == repositoryName_HASH) { return SortByEnum::repositoryName; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployErrors.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployErrors.cpp index 82a9a1b3e02..49fe9fd53ac 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployErrors.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployErrors.cpp @@ -18,117 +18,117 @@ namespace CodeDeploy namespace CodeDeployErrorMapper { -static const int INSTANCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("InstanceLimitExceededException"); -static const int INVALID_E_C2_TAG_COMBINATION_HASH = HashingUtils::HashString("InvalidEC2TagCombinationException"); -static const int DEPLOYMENT_CONFIG_NAME_REQUIRED_HASH = HashingUtils::HashString("DeploymentConfigNameRequiredException"); -static const int DEPLOYMENT_NOT_STARTED_HASH = HashingUtils::HashString("DeploymentNotStartedException"); -static const int LIFECYCLE_EVENT_ALREADY_COMPLETED_HASH = HashingUtils::HashString("LifecycleEventAlreadyCompletedException"); -static const int DEPLOYMENT_GROUP_ALREADY_EXISTS_HASH = HashingUtils::HashString("DeploymentGroupAlreadyExistsException"); -static const int DEPLOYMENT_ID_REQUIRED_HASH = HashingUtils::HashString("DeploymentIdRequiredException"); -static const int INVALID_IGNORE_APPLICATION_STOP_FAILURES_VALUE_HASH = HashingUtils::HashString("InvalidIgnoreApplicationStopFailuresValueException"); -static const int DEPLOYMENT_CONFIG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DeploymentConfigLimitExceededException"); -static const int TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagLimitExceededException"); -static const int INVALID_REVISION_HASH = HashingUtils::HashString("InvalidRevisionException"); -static const int INVALID_UPDATE_OUTDATED_INSTANCES_ONLY_VALUE_HASH = HashingUtils::HashString("InvalidUpdateOutdatedInstancesOnlyValueException"); -static const int DEPLOYMENT_GROUP_DOES_NOT_EXIST_HASH = HashingUtils::HashString("DeploymentGroupDoesNotExistException"); -static const int IAM_SESSION_ARN_ALREADY_REGISTERED_HASH = HashingUtils::HashString("IamSessionArnAlreadyRegisteredException"); -static const int DEPLOYMENT_CONFIG_IN_USE_HASH = HashingUtils::HashString("DeploymentConfigInUseException"); -static const int MULTIPLE_IAM_ARNS_PROVIDED_HASH = HashingUtils::HashString("MultipleIamArnsProvidedException"); -static const int DEPLOYMENT_TARGET_DOES_NOT_EXIST_HASH = HashingUtils::HashString("DeploymentTargetDoesNotExistException"); -static const int UNSUPPORTED_ACTION_FOR_DEPLOYMENT_TYPE_HASH = HashingUtils::HashString("UnsupportedActionForDeploymentTypeException"); -static const int GIT_HUB_ACCOUNT_TOKEN_DOES_NOT_EXIST_HASH = HashingUtils::HashString("GitHubAccountTokenDoesNotExistException"); -static const int ARN_NOT_SUPPORTED_HASH = HashingUtils::HashString("ArnNotSupportedException"); -static const int APPLICATION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ApplicationDoesNotExistException"); -static const int INVALID_AUTO_SCALING_GROUP_HASH = HashingUtils::HashString("InvalidAutoScalingGroupException"); -static const int TRIGGER_TARGETS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TriggerTargetsLimitExceededException"); -static const int DEPLOYMENT_TARGET_LIST_SIZE_EXCEEDED_HASH = HashingUtils::HashString("DeploymentTargetListSizeExceededException"); -static const int INVALID_TRAFFIC_ROUTING_CONFIGURATION_HASH = HashingUtils::HashString("InvalidTrafficRoutingConfigurationException"); -static const int INVALID_GIT_HUB_ACCOUNT_TOKEN_HASH = HashingUtils::HashString("InvalidGitHubAccountTokenException"); -static const int INVALID_ON_PREMISES_TAG_COMBINATION_HASH = HashingUtils::HashString("InvalidOnPremisesTagCombinationException"); -static const int INVALID_EXTERNAL_ID_HASH = HashingUtils::HashString("InvalidExternalIdException"); -static const int DEPLOYMENT_CONFIG_ALREADY_EXISTS_HASH = HashingUtils::HashString("DeploymentConfigAlreadyExistsException"); -static const int INVALID_ROLE_HASH = HashingUtils::HashString("InvalidRoleException"); -static const int INVALID_BLUE_GREEN_DEPLOYMENT_CONFIGURATION_HASH = HashingUtils::HashString("InvalidBlueGreenDeploymentConfigurationException"); -static const int INSTANCE_NAME_ALREADY_REGISTERED_HASH = HashingUtils::HashString("InstanceNameAlreadyRegisteredException"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTagException"); -static const int INVALID_DEPLOYMENT_CONFIG_NAME_HASH = HashingUtils::HashString("InvalidDeploymentConfigNameException"); -static const int INVALID_AUTO_ROLLBACK_CONFIG_HASH = HashingUtils::HashString("InvalidAutoRollbackConfigException"); -static const int ALARMS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AlarmsLimitExceededException"); -static const int INVALID_INSTANCE_TYPE_HASH = HashingUtils::HashString("InvalidInstanceTypeException"); -static const int IAM_USER_ARN_ALREADY_REGISTERED_HASH = HashingUtils::HashString("IamUserArnAlreadyRegisteredException"); -static const int INVALID_TRIGGER_CONFIG_HASH = HashingUtils::HashString("InvalidTriggerConfigException"); -static const int INVALID_SORT_BY_HASH = HashingUtils::HashString("InvalidSortByException"); -static const int DEPLOYMENT_IS_NOT_IN_READY_STATE_HASH = HashingUtils::HashString("DeploymentIsNotInReadyStateException"); -static const int TAG_SET_LIST_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagSetListLimitExceededException"); -static const int INVALID_TIME_RANGE_HASH = HashingUtils::HashString("InvalidTimeRangeException"); -static const int TAG_REQUIRED_HASH = HashingUtils::HashString("TagRequiredException"); -static const int INVALID_KEY_PREFIX_FILTER_HASH = HashingUtils::HashString("InvalidKeyPrefixFilterException"); -static const int INVALID_E_C_S_SERVICE_HASH = HashingUtils::HashString("InvalidECSServiceException"); -static const int INVALID_INSTANCE_STATUS_HASH = HashingUtils::HashString("InvalidInstanceStatusException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int INVALID_LIFECYCLE_EVENT_HOOK_EXECUTION_ID_HASH = HashingUtils::HashString("InvalidLifecycleEventHookExecutionIdException"); -static const int DEPLOYMENT_TARGET_ID_REQUIRED_HASH = HashingUtils::HashString("DeploymentTargetIdRequiredException"); -static const int GIT_HUB_ACCOUNT_TOKEN_NAME_REQUIRED_HASH = HashingUtils::HashString("GitHubAccountTokenNameRequiredException"); -static const int DEPLOYMENT_CONFIG_DOES_NOT_EXIST_HASH = HashingUtils::HashString("DeploymentConfigDoesNotExistException"); -static const int E_C_S_SERVICE_MAPPING_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ECSServiceMappingLimitExceededException"); -static const int DEPLOYMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DeploymentLimitExceededException"); -static const int DEPLOYMENT_DOES_NOT_EXIST_HASH = HashingUtils::HashString("DeploymentDoesNotExistException"); -static const int INVALID_COMPUTE_PLATFORM_HASH = HashingUtils::HashString("InvalidComputePlatformException"); -static const int IAM_USER_ARN_REQUIRED_HASH = HashingUtils::HashString("IamUserArnRequiredException"); -static const int INVALID_IAM_SESSION_ARN_HASH = HashingUtils::HashString("InvalidIamSessionArnException"); -static const int INVALID_DEPLOYMENT_STATUS_HASH = HashingUtils::HashString("InvalidDeploymentStatusException"); -static const int APPLICATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ApplicationLimitExceededException"); -static const int INVALID_TARGET_GROUP_PAIR_HASH = HashingUtils::HashString("InvalidTargetGroupPairException"); -static const int INVALID_FILE_EXISTS_BEHAVIOR_HASH = HashingUtils::HashString("InvalidFileExistsBehaviorException"); -static const int INSTANCE_NAME_REQUIRED_HASH = HashingUtils::HashString("InstanceNameRequiredException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_REGISTRATION_STATUS_HASH = HashingUtils::HashString("InvalidRegistrationStatusException"); -static const int DEPLOYMENT_ALREADY_COMPLETED_HASH = HashingUtils::HashString("DeploymentAlreadyCompletedException"); -static const int INVALID_DEPLOYMENT_INSTANCE_TYPE_HASH = HashingUtils::HashString("InvalidDeploymentInstanceTypeException"); -static const int INVALID_DEPLOYMENT_TARGET_ID_HASH = HashingUtils::HashString("InvalidDeploymentTargetIdException"); -static const int INVALID_DEPLOYED_STATE_FILTER_HASH = HashingUtils::HashString("InvalidDeployedStateFilterException"); -static const int INVALID_DEPLOYMENT_GROUP_NAME_HASH = HashingUtils::HashString("InvalidDeploymentGroupNameException"); -static const int INVALID_DEPLOYMENT_WAIT_TYPE_HASH = HashingUtils::HashString("InvalidDeploymentWaitTypeException"); -static const int INVALID_LIFECYCLE_EVENT_HOOK_EXECUTION_STATUS_HASH = HashingUtils::HashString("InvalidLifecycleEventHookExecutionStatusException"); -static const int INVALID_DEPLOYMENT_ID_HASH = HashingUtils::HashString("InvalidDeploymentIdException"); -static const int OPERATION_NOT_SUPPORTED_HASH = HashingUtils::HashString("OperationNotSupportedException"); -static const int RESOURCE_ARN_REQUIRED_HASH = HashingUtils::HashString("ResourceArnRequiredException"); -static const int DEPLOYMENT_GROUP_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DeploymentGroupLimitExceededException"); -static const int INVALID_MINIMUM_HEALTHY_HOST_VALUE_HASH = HashingUtils::HashString("InvalidMinimumHealthyHostValueException"); -static const int INVALID_LOAD_BALANCER_INFO_HASH = HashingUtils::HashString("InvalidLoadBalancerInfoException"); -static const int INVALID_INSTANCE_NAME_HASH = HashingUtils::HashString("InvalidInstanceNameException"); -static const int RESOURCE_VALIDATION_HASH = HashingUtils::HashString("ResourceValidationException"); -static const int INVALID_DEPLOYMENT_STYLE_HASH = HashingUtils::HashString("InvalidDeploymentStyleException"); -static const int INVALID_APPLICATION_NAME_HASH = HashingUtils::HashString("InvalidApplicationNameException"); -static const int BATCH_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("BatchLimitExceededException"); -static const int LIFECYCLE_HOOK_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LifecycleHookLimitExceededException"); -static const int INVALID_TAGS_TO_ADD_HASH = HashingUtils::HashString("InvalidTagsToAddException"); -static const int INVALID_IAM_USER_ARN_HASH = HashingUtils::HashString("InvalidIamUserArnException"); -static const int INVALID_GIT_HUB_ACCOUNT_TOKEN_NAME_HASH = HashingUtils::HashString("InvalidGitHubAccountTokenNameException"); -static const int REVISION_REQUIRED_HASH = HashingUtils::HashString("RevisionRequiredException"); -static const int INVALID_TARGET_INSTANCES_HASH = HashingUtils::HashString("InvalidTargetInstancesException"); -static const int INSTANCE_NOT_REGISTERED_HASH = HashingUtils::HashString("InstanceNotRegisteredException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int BUCKET_NAME_FILTER_REQUIRED_HASH = HashingUtils::HashString("BucketNameFilterRequiredException"); -static const int INVALID_TAG_FILTER_HASH = HashingUtils::HashString("InvalidTagFilterException"); -static const int INVALID_BUCKET_NAME_FILTER_HASH = HashingUtils::HashString("InvalidBucketNameFilterException"); -static const int INVALID_ALARM_CONFIG_HASH = HashingUtils::HashString("InvalidAlarmConfigException"); -static const int IAM_ARN_REQUIRED_HASH = HashingUtils::HashString("IamArnRequiredException"); -static const int APPLICATION_NAME_REQUIRED_HASH = HashingUtils::HashString("ApplicationNameRequiredException"); -static const int INSTANCE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("InstanceDoesNotExistException"); -static const int APPLICATION_ALREADY_EXISTS_HASH = HashingUtils::HashString("ApplicationAlreadyExistsException"); -static const int INVALID_E_C2_TAG_HASH = HashingUtils::HashString("InvalidEC2TagException"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArnException"); -static const int INVALID_SORT_ORDER_HASH = HashingUtils::HashString("InvalidSortOrderException"); -static const int DESCRIPTION_TOO_LONG_HASH = HashingUtils::HashString("DescriptionTooLongException"); -static const int ROLE_REQUIRED_HASH = HashingUtils::HashString("RoleRequiredException"); -static const int DEPLOYMENT_GROUP_NAME_REQUIRED_HASH = HashingUtils::HashString("DeploymentGroupNameRequiredException"); -static const int REVISION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RevisionDoesNotExistException"); +static constexpr uint32_t INSTANCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("InstanceLimitExceededException"); +static constexpr uint32_t INVALID_E_C2_TAG_COMBINATION_HASH = ConstExprHashingUtils::HashString("InvalidEC2TagCombinationException"); +static constexpr uint32_t DEPLOYMENT_CONFIG_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("DeploymentConfigNameRequiredException"); +static constexpr uint32_t DEPLOYMENT_NOT_STARTED_HASH = ConstExprHashingUtils::HashString("DeploymentNotStartedException"); +static constexpr uint32_t LIFECYCLE_EVENT_ALREADY_COMPLETED_HASH = ConstExprHashingUtils::HashString("LifecycleEventAlreadyCompletedException"); +static constexpr uint32_t DEPLOYMENT_GROUP_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("DeploymentGroupAlreadyExistsException"); +static constexpr uint32_t DEPLOYMENT_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("DeploymentIdRequiredException"); +static constexpr uint32_t INVALID_IGNORE_APPLICATION_STOP_FAILURES_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidIgnoreApplicationStopFailuresValueException"); +static constexpr uint32_t DEPLOYMENT_CONFIG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DeploymentConfigLimitExceededException"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagLimitExceededException"); +static constexpr uint32_t INVALID_REVISION_HASH = ConstExprHashingUtils::HashString("InvalidRevisionException"); +static constexpr uint32_t INVALID_UPDATE_OUTDATED_INSTANCES_ONLY_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidUpdateOutdatedInstancesOnlyValueException"); +static constexpr uint32_t DEPLOYMENT_GROUP_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("DeploymentGroupDoesNotExistException"); +static constexpr uint32_t IAM_SESSION_ARN_ALREADY_REGISTERED_HASH = ConstExprHashingUtils::HashString("IamSessionArnAlreadyRegisteredException"); +static constexpr uint32_t DEPLOYMENT_CONFIG_IN_USE_HASH = ConstExprHashingUtils::HashString("DeploymentConfigInUseException"); +static constexpr uint32_t MULTIPLE_IAM_ARNS_PROVIDED_HASH = ConstExprHashingUtils::HashString("MultipleIamArnsProvidedException"); +static constexpr uint32_t DEPLOYMENT_TARGET_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("DeploymentTargetDoesNotExistException"); +static constexpr uint32_t UNSUPPORTED_ACTION_FOR_DEPLOYMENT_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedActionForDeploymentTypeException"); +static constexpr uint32_t GIT_HUB_ACCOUNT_TOKEN_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("GitHubAccountTokenDoesNotExistException"); +static constexpr uint32_t ARN_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ArnNotSupportedException"); +static constexpr uint32_t APPLICATION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ApplicationDoesNotExistException"); +static constexpr uint32_t INVALID_AUTO_SCALING_GROUP_HASH = ConstExprHashingUtils::HashString("InvalidAutoScalingGroupException"); +static constexpr uint32_t TRIGGER_TARGETS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TriggerTargetsLimitExceededException"); +static constexpr uint32_t DEPLOYMENT_TARGET_LIST_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DeploymentTargetListSizeExceededException"); +static constexpr uint32_t INVALID_TRAFFIC_ROUTING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidTrafficRoutingConfigurationException"); +static constexpr uint32_t INVALID_GIT_HUB_ACCOUNT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidGitHubAccountTokenException"); +static constexpr uint32_t INVALID_ON_PREMISES_TAG_COMBINATION_HASH = ConstExprHashingUtils::HashString("InvalidOnPremisesTagCombinationException"); +static constexpr uint32_t INVALID_EXTERNAL_ID_HASH = ConstExprHashingUtils::HashString("InvalidExternalIdException"); +static constexpr uint32_t DEPLOYMENT_CONFIG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("DeploymentConfigAlreadyExistsException"); +static constexpr uint32_t INVALID_ROLE_HASH = ConstExprHashingUtils::HashString("InvalidRoleException"); +static constexpr uint32_t INVALID_BLUE_GREEN_DEPLOYMENT_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidBlueGreenDeploymentConfigurationException"); +static constexpr uint32_t INSTANCE_NAME_ALREADY_REGISTERED_HASH = ConstExprHashingUtils::HashString("InstanceNameAlreadyRegisteredException"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTagException"); +static constexpr uint32_t INVALID_DEPLOYMENT_CONFIG_NAME_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentConfigNameException"); +static constexpr uint32_t INVALID_AUTO_ROLLBACK_CONFIG_HASH = ConstExprHashingUtils::HashString("InvalidAutoRollbackConfigException"); +static constexpr uint32_t ALARMS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AlarmsLimitExceededException"); +static constexpr uint32_t INVALID_INSTANCE_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidInstanceTypeException"); +static constexpr uint32_t IAM_USER_ARN_ALREADY_REGISTERED_HASH = ConstExprHashingUtils::HashString("IamUserArnAlreadyRegisteredException"); +static constexpr uint32_t INVALID_TRIGGER_CONFIG_HASH = ConstExprHashingUtils::HashString("InvalidTriggerConfigException"); +static constexpr uint32_t INVALID_SORT_BY_HASH = ConstExprHashingUtils::HashString("InvalidSortByException"); +static constexpr uint32_t DEPLOYMENT_IS_NOT_IN_READY_STATE_HASH = ConstExprHashingUtils::HashString("DeploymentIsNotInReadyStateException"); +static constexpr uint32_t TAG_SET_LIST_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagSetListLimitExceededException"); +static constexpr uint32_t INVALID_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("InvalidTimeRangeException"); +static constexpr uint32_t TAG_REQUIRED_HASH = ConstExprHashingUtils::HashString("TagRequiredException"); +static constexpr uint32_t INVALID_KEY_PREFIX_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidKeyPrefixFilterException"); +static constexpr uint32_t INVALID_E_C_S_SERVICE_HASH = ConstExprHashingUtils::HashString("InvalidECSServiceException"); +static constexpr uint32_t INVALID_INSTANCE_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidInstanceStatusException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INVALID_LIFECYCLE_EVENT_HOOK_EXECUTION_ID_HASH = ConstExprHashingUtils::HashString("InvalidLifecycleEventHookExecutionIdException"); +static constexpr uint32_t DEPLOYMENT_TARGET_ID_REQUIRED_HASH = ConstExprHashingUtils::HashString("DeploymentTargetIdRequiredException"); +static constexpr uint32_t GIT_HUB_ACCOUNT_TOKEN_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("GitHubAccountTokenNameRequiredException"); +static constexpr uint32_t DEPLOYMENT_CONFIG_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("DeploymentConfigDoesNotExistException"); +static constexpr uint32_t E_C_S_SERVICE_MAPPING_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ECSServiceMappingLimitExceededException"); +static constexpr uint32_t DEPLOYMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DeploymentLimitExceededException"); +static constexpr uint32_t DEPLOYMENT_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("DeploymentDoesNotExistException"); +static constexpr uint32_t INVALID_COMPUTE_PLATFORM_HASH = ConstExprHashingUtils::HashString("InvalidComputePlatformException"); +static constexpr uint32_t IAM_USER_ARN_REQUIRED_HASH = ConstExprHashingUtils::HashString("IamUserArnRequiredException"); +static constexpr uint32_t INVALID_IAM_SESSION_ARN_HASH = ConstExprHashingUtils::HashString("InvalidIamSessionArnException"); +static constexpr uint32_t INVALID_DEPLOYMENT_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentStatusException"); +static constexpr uint32_t APPLICATION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ApplicationLimitExceededException"); +static constexpr uint32_t INVALID_TARGET_GROUP_PAIR_HASH = ConstExprHashingUtils::HashString("InvalidTargetGroupPairException"); +static constexpr uint32_t INVALID_FILE_EXISTS_BEHAVIOR_HASH = ConstExprHashingUtils::HashString("InvalidFileExistsBehaviorException"); +static constexpr uint32_t INSTANCE_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("InstanceNameRequiredException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_REGISTRATION_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidRegistrationStatusException"); +static constexpr uint32_t DEPLOYMENT_ALREADY_COMPLETED_HASH = ConstExprHashingUtils::HashString("DeploymentAlreadyCompletedException"); +static constexpr uint32_t INVALID_DEPLOYMENT_INSTANCE_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentInstanceTypeException"); +static constexpr uint32_t INVALID_DEPLOYMENT_TARGET_ID_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentTargetIdException"); +static constexpr uint32_t INVALID_DEPLOYED_STATE_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidDeployedStateFilterException"); +static constexpr uint32_t INVALID_DEPLOYMENT_GROUP_NAME_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentGroupNameException"); +static constexpr uint32_t INVALID_DEPLOYMENT_WAIT_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentWaitTypeException"); +static constexpr uint32_t INVALID_LIFECYCLE_EVENT_HOOK_EXECUTION_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidLifecycleEventHookExecutionStatusException"); +static constexpr uint32_t INVALID_DEPLOYMENT_ID_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentIdException"); +static constexpr uint32_t OPERATION_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("OperationNotSupportedException"); +static constexpr uint32_t RESOURCE_ARN_REQUIRED_HASH = ConstExprHashingUtils::HashString("ResourceArnRequiredException"); +static constexpr uint32_t DEPLOYMENT_GROUP_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DeploymentGroupLimitExceededException"); +static constexpr uint32_t INVALID_MINIMUM_HEALTHY_HOST_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidMinimumHealthyHostValueException"); +static constexpr uint32_t INVALID_LOAD_BALANCER_INFO_HASH = ConstExprHashingUtils::HashString("InvalidLoadBalancerInfoException"); +static constexpr uint32_t INVALID_INSTANCE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidInstanceNameException"); +static constexpr uint32_t RESOURCE_VALIDATION_HASH = ConstExprHashingUtils::HashString("ResourceValidationException"); +static constexpr uint32_t INVALID_DEPLOYMENT_STYLE_HASH = ConstExprHashingUtils::HashString("InvalidDeploymentStyleException"); +static constexpr uint32_t INVALID_APPLICATION_NAME_HASH = ConstExprHashingUtils::HashString("InvalidApplicationNameException"); +static constexpr uint32_t BATCH_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("BatchLimitExceededException"); +static constexpr uint32_t LIFECYCLE_HOOK_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LifecycleHookLimitExceededException"); +static constexpr uint32_t INVALID_TAGS_TO_ADD_HASH = ConstExprHashingUtils::HashString("InvalidTagsToAddException"); +static constexpr uint32_t INVALID_IAM_USER_ARN_HASH = ConstExprHashingUtils::HashString("InvalidIamUserArnException"); +static constexpr uint32_t INVALID_GIT_HUB_ACCOUNT_TOKEN_NAME_HASH = ConstExprHashingUtils::HashString("InvalidGitHubAccountTokenNameException"); +static constexpr uint32_t REVISION_REQUIRED_HASH = ConstExprHashingUtils::HashString("RevisionRequiredException"); +static constexpr uint32_t INVALID_TARGET_INSTANCES_HASH = ConstExprHashingUtils::HashString("InvalidTargetInstancesException"); +static constexpr uint32_t INSTANCE_NOT_REGISTERED_HASH = ConstExprHashingUtils::HashString("InstanceNotRegisteredException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t BUCKET_NAME_FILTER_REQUIRED_HASH = ConstExprHashingUtils::HashString("BucketNameFilterRequiredException"); +static constexpr uint32_t INVALID_TAG_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidTagFilterException"); +static constexpr uint32_t INVALID_BUCKET_NAME_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidBucketNameFilterException"); +static constexpr uint32_t INVALID_ALARM_CONFIG_HASH = ConstExprHashingUtils::HashString("InvalidAlarmConfigException"); +static constexpr uint32_t IAM_ARN_REQUIRED_HASH = ConstExprHashingUtils::HashString("IamArnRequiredException"); +static constexpr uint32_t APPLICATION_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("ApplicationNameRequiredException"); +static constexpr uint32_t INSTANCE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("InstanceDoesNotExistException"); +static constexpr uint32_t APPLICATION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ApplicationAlreadyExistsException"); +static constexpr uint32_t INVALID_E_C2_TAG_HASH = ConstExprHashingUtils::HashString("InvalidEC2TagException"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); +static constexpr uint32_t INVALID_SORT_ORDER_HASH = ConstExprHashingUtils::HashString("InvalidSortOrderException"); +static constexpr uint32_t DESCRIPTION_TOO_LONG_HASH = ConstExprHashingUtils::HashString("DescriptionTooLongException"); +static constexpr uint32_t ROLE_REQUIRED_HASH = ConstExprHashingUtils::HashString("RoleRequiredException"); +static constexpr uint32_t DEPLOYMENT_GROUP_NAME_REQUIRED_HASH = ConstExprHashingUtils::HashString("DeploymentGroupNameRequiredException"); +static constexpr uint32_t REVISION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RevisionDoesNotExistException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INSTANCE_LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/ApplicationRevisionSortBy.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/ApplicationRevisionSortBy.cpp index f4c3b662296..9b6499c1785 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/ApplicationRevisionSortBy.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/ApplicationRevisionSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationRevisionSortByMapper { - static const int registerTime_HASH = HashingUtils::HashString("registerTime"); - static const int firstUsedTime_HASH = HashingUtils::HashString("firstUsedTime"); - static const int lastUsedTime_HASH = HashingUtils::HashString("lastUsedTime"); + static constexpr uint32_t registerTime_HASH = ConstExprHashingUtils::HashString("registerTime"); + static constexpr uint32_t firstUsedTime_HASH = ConstExprHashingUtils::HashString("firstUsedTime"); + static constexpr uint32_t lastUsedTime_HASH = ConstExprHashingUtils::HashString("lastUsedTime"); ApplicationRevisionSortBy GetApplicationRevisionSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == registerTime_HASH) { return ApplicationRevisionSortBy::registerTime; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/AutoRollbackEvent.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/AutoRollbackEvent.cpp index 18f8b8f7e8a..16bae974641 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/AutoRollbackEvent.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/AutoRollbackEvent.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutoRollbackEventMapper { - static const int DEPLOYMENT_FAILURE_HASH = HashingUtils::HashString("DEPLOYMENT_FAILURE"); - static const int DEPLOYMENT_STOP_ON_ALARM_HASH = HashingUtils::HashString("DEPLOYMENT_STOP_ON_ALARM"); - static const int DEPLOYMENT_STOP_ON_REQUEST_HASH = HashingUtils::HashString("DEPLOYMENT_STOP_ON_REQUEST"); + static constexpr uint32_t DEPLOYMENT_FAILURE_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_FAILURE"); + static constexpr uint32_t DEPLOYMENT_STOP_ON_ALARM_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_STOP_ON_ALARM"); + static constexpr uint32_t DEPLOYMENT_STOP_ON_REQUEST_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_STOP_ON_REQUEST"); AutoRollbackEvent GetAutoRollbackEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOYMENT_FAILURE_HASH) { return AutoRollbackEvent::DEPLOYMENT_FAILURE; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/BundleType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/BundleType.cpp index 3f92f26e694..815088aef67 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/BundleType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/BundleType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace BundleTypeMapper { - static const int tar_HASH = HashingUtils::HashString("tar"); - static const int tgz_HASH = HashingUtils::HashString("tgz"); - static const int zip_HASH = HashingUtils::HashString("zip"); - static const int YAML_HASH = HashingUtils::HashString("YAML"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t tar_HASH = ConstExprHashingUtils::HashString("tar"); + static constexpr uint32_t tgz_HASH = ConstExprHashingUtils::HashString("tgz"); + static constexpr uint32_t zip_HASH = ConstExprHashingUtils::HashString("zip"); + static constexpr uint32_t YAML_HASH = ConstExprHashingUtils::HashString("YAML"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); BundleType GetBundleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == tar_HASH) { return BundleType::tar; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/ComputePlatform.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/ComputePlatform.cpp index cb8d5c40cfa..87a9c121a9d 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/ComputePlatform.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/ComputePlatform.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComputePlatformMapper { - static const int Server_HASH = HashingUtils::HashString("Server"); - static const int Lambda_HASH = HashingUtils::HashString("Lambda"); - static const int ECS_HASH = HashingUtils::HashString("ECS"); + static constexpr uint32_t Server_HASH = ConstExprHashingUtils::HashString("Server"); + static constexpr uint32_t Lambda_HASH = ConstExprHashingUtils::HashString("Lambda"); + static constexpr uint32_t ECS_HASH = ConstExprHashingUtils::HashString("ECS"); ComputePlatform GetComputePlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Server_HASH) { return ComputePlatform::Server; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentCreator.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentCreator.cpp index d9e0a9b614b..a8ab903b8cb 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentCreator.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentCreator.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DeploymentCreatorMapper { - static const int user_HASH = HashingUtils::HashString("user"); - static const int autoscaling_HASH = HashingUtils::HashString("autoscaling"); - static const int codeDeployRollback_HASH = HashingUtils::HashString("codeDeployRollback"); - static const int CodeDeploy_HASH = HashingUtils::HashString("CodeDeploy"); - static const int CodeDeployAutoUpdate_HASH = HashingUtils::HashString("CodeDeployAutoUpdate"); - static const int CloudFormation_HASH = HashingUtils::HashString("CloudFormation"); - static const int CloudFormationRollback_HASH = HashingUtils::HashString("CloudFormationRollback"); + static constexpr uint32_t user_HASH = ConstExprHashingUtils::HashString("user"); + static constexpr uint32_t autoscaling_HASH = ConstExprHashingUtils::HashString("autoscaling"); + static constexpr uint32_t codeDeployRollback_HASH = ConstExprHashingUtils::HashString("codeDeployRollback"); + static constexpr uint32_t CodeDeploy_HASH = ConstExprHashingUtils::HashString("CodeDeploy"); + static constexpr uint32_t CodeDeployAutoUpdate_HASH = ConstExprHashingUtils::HashString("CodeDeployAutoUpdate"); + static constexpr uint32_t CloudFormation_HASH = ConstExprHashingUtils::HashString("CloudFormation"); + static constexpr uint32_t CloudFormationRollback_HASH = ConstExprHashingUtils::HashString("CloudFormationRollback"); DeploymentCreator GetDeploymentCreatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == user_HASH) { return DeploymentCreator::user; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentOption.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentOption.cpp index 8c42a6d1296..2516bd34dc6 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentOption.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentOptionMapper { - static const int WITH_TRAFFIC_CONTROL_HASH = HashingUtils::HashString("WITH_TRAFFIC_CONTROL"); - static const int WITHOUT_TRAFFIC_CONTROL_HASH = HashingUtils::HashString("WITHOUT_TRAFFIC_CONTROL"); + static constexpr uint32_t WITH_TRAFFIC_CONTROL_HASH = ConstExprHashingUtils::HashString("WITH_TRAFFIC_CONTROL"); + static constexpr uint32_t WITHOUT_TRAFFIC_CONTROL_HASH = ConstExprHashingUtils::HashString("WITHOUT_TRAFFIC_CONTROL"); DeploymentOption GetDeploymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WITH_TRAFFIC_CONTROL_HASH) { return DeploymentOption::WITH_TRAFFIC_CONTROL; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentReadyAction.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentReadyAction.cpp index c9ac70487bc..8e5cf255b69 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentReadyAction.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentReadyAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentReadyActionMapper { - static const int CONTINUE_DEPLOYMENT_HASH = HashingUtils::HashString("CONTINUE_DEPLOYMENT"); - static const int STOP_DEPLOYMENT_HASH = HashingUtils::HashString("STOP_DEPLOYMENT"); + static constexpr uint32_t CONTINUE_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("CONTINUE_DEPLOYMENT"); + static constexpr uint32_t STOP_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("STOP_DEPLOYMENT"); DeploymentReadyAction GetDeploymentReadyActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTINUE_DEPLOYMENT_HASH) { return DeploymentReadyAction::CONTINUE_DEPLOYMENT; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentStatus.cpp index 8815398945d..62c3a6a40eb 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DeploymentStatusMapper { - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Queued_HASH = HashingUtils::HashString("Queued"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Baking_HASH = HashingUtils::HashString("Baking"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Queued_HASH = ConstExprHashingUtils::HashString("Queued"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Baking_HASH = ConstExprHashingUtils::HashString("Baking"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Created_HASH) { return DeploymentStatus::Created; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentTargetType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentTargetType.cpp index 6e8b5abc393..a077621d76f 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentTargetType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentTargetType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeploymentTargetTypeMapper { - static const int InstanceTarget_HASH = HashingUtils::HashString("InstanceTarget"); - static const int LambdaTarget_HASH = HashingUtils::HashString("LambdaTarget"); - static const int ECSTarget_HASH = HashingUtils::HashString("ECSTarget"); - static const int CloudFormationTarget_HASH = HashingUtils::HashString("CloudFormationTarget"); + static constexpr uint32_t InstanceTarget_HASH = ConstExprHashingUtils::HashString("InstanceTarget"); + static constexpr uint32_t LambdaTarget_HASH = ConstExprHashingUtils::HashString("LambdaTarget"); + static constexpr uint32_t ECSTarget_HASH = ConstExprHashingUtils::HashString("ECSTarget"); + static constexpr uint32_t CloudFormationTarget_HASH = ConstExprHashingUtils::HashString("CloudFormationTarget"); DeploymentTargetType GetDeploymentTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InstanceTarget_HASH) { return DeploymentTargetType::InstanceTarget; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentType.cpp index a2941179a1c..75f21ff1331 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentTypeMapper { - static const int IN_PLACE_HASH = HashingUtils::HashString("IN_PLACE"); - static const int BLUE_GREEN_HASH = HashingUtils::HashString("BLUE_GREEN"); + static constexpr uint32_t IN_PLACE_HASH = ConstExprHashingUtils::HashString("IN_PLACE"); + static constexpr uint32_t BLUE_GREEN_HASH = ConstExprHashingUtils::HashString("BLUE_GREEN"); DeploymentType GetDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PLACE_HASH) { return DeploymentType::IN_PLACE; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentWaitType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentWaitType.cpp index 38b4d7db57d..7ed0ecae458 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentWaitType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/DeploymentWaitType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentWaitTypeMapper { - static const int READY_WAIT_HASH = HashingUtils::HashString("READY_WAIT"); - static const int TERMINATION_WAIT_HASH = HashingUtils::HashString("TERMINATION_WAIT"); + static constexpr uint32_t READY_WAIT_HASH = ConstExprHashingUtils::HashString("READY_WAIT"); + static constexpr uint32_t TERMINATION_WAIT_HASH = ConstExprHashingUtils::HashString("TERMINATION_WAIT"); DeploymentWaitType GetDeploymentWaitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_WAIT_HASH) { return DeploymentWaitType::READY_WAIT; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/EC2TagFilterType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/EC2TagFilterType.cpp index f3217595f4b..0d3e27cfc51 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/EC2TagFilterType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/EC2TagFilterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EC2TagFilterTypeMapper { - static const int KEY_ONLY_HASH = HashingUtils::HashString("KEY_ONLY"); - static const int VALUE_ONLY_HASH = HashingUtils::HashString("VALUE_ONLY"); - static const int KEY_AND_VALUE_HASH = HashingUtils::HashString("KEY_AND_VALUE"); + static constexpr uint32_t KEY_ONLY_HASH = ConstExprHashingUtils::HashString("KEY_ONLY"); + static constexpr uint32_t VALUE_ONLY_HASH = ConstExprHashingUtils::HashString("VALUE_ONLY"); + static constexpr uint32_t KEY_AND_VALUE_HASH = ConstExprHashingUtils::HashString("KEY_AND_VALUE"); EC2TagFilterType GetEC2TagFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_ONLY_HASH) { return EC2TagFilterType::KEY_ONLY; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/ErrorCode.cpp index ccd174f5719..6d201b14a26 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/ErrorCode.cpp @@ -20,45 +20,45 @@ namespace Aws namespace ErrorCodeMapper { - static const int AGENT_ISSUE_HASH = HashingUtils::HashString("AGENT_ISSUE"); - static const int ALARM_ACTIVE_HASH = HashingUtils::HashString("ALARM_ACTIVE"); - static const int APPLICATION_MISSING_HASH = HashingUtils::HashString("APPLICATION_MISSING"); - static const int AUTOSCALING_VALIDATION_ERROR_HASH = HashingUtils::HashString("AUTOSCALING_VALIDATION_ERROR"); - static const int AUTO_SCALING_CONFIGURATION_HASH = HashingUtils::HashString("AUTO_SCALING_CONFIGURATION"); - static const int AUTO_SCALING_IAM_ROLE_PERMISSIONS_HASH = HashingUtils::HashString("AUTO_SCALING_IAM_ROLE_PERMISSIONS"); - static const int CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND_HASH = HashingUtils::HashString("CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"); - static const int CUSTOMER_APPLICATION_UNHEALTHY_HASH = HashingUtils::HashString("CUSTOMER_APPLICATION_UNHEALTHY"); - static const int DEPLOYMENT_GROUP_MISSING_HASH = HashingUtils::HashString("DEPLOYMENT_GROUP_MISSING"); - static const int ECS_UPDATE_ERROR_HASH = HashingUtils::HashString("ECS_UPDATE_ERROR"); - static const int ELASTIC_LOAD_BALANCING_INVALID_HASH = HashingUtils::HashString("ELASTIC_LOAD_BALANCING_INVALID"); - static const int ELB_INVALID_INSTANCE_HASH = HashingUtils::HashString("ELB_INVALID_INSTANCE"); - static const int HEALTH_CONSTRAINTS_HASH = HashingUtils::HashString("HEALTH_CONSTRAINTS"); - static const int HEALTH_CONSTRAINTS_INVALID_HASH = HashingUtils::HashString("HEALTH_CONSTRAINTS_INVALID"); - static const int HOOK_EXECUTION_FAILURE_HASH = HashingUtils::HashString("HOOK_EXECUTION_FAILURE"); - static const int IAM_ROLE_MISSING_HASH = HashingUtils::HashString("IAM_ROLE_MISSING"); - static const int IAM_ROLE_PERMISSIONS_HASH = HashingUtils::HashString("IAM_ROLE_PERMISSIONS"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INVALID_ECS_SERVICE_HASH = HashingUtils::HashString("INVALID_ECS_SERVICE"); - static const int INVALID_LAMBDA_CONFIGURATION_HASH = HashingUtils::HashString("INVALID_LAMBDA_CONFIGURATION"); - static const int INVALID_LAMBDA_FUNCTION_HASH = HashingUtils::HashString("INVALID_LAMBDA_FUNCTION"); - static const int INVALID_REVISION_HASH = HashingUtils::HashString("INVALID_REVISION"); - static const int MANUAL_STOP_HASH = HashingUtils::HashString("MANUAL_STOP"); - static const int MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION_HASH = HashingUtils::HashString("MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"); - static const int MISSING_ELB_INFORMATION_HASH = HashingUtils::HashString("MISSING_ELB_INFORMATION"); - static const int MISSING_GITHUB_TOKEN_HASH = HashingUtils::HashString("MISSING_GITHUB_TOKEN"); - static const int NO_EC2_SUBSCRIPTION_HASH = HashingUtils::HashString("NO_EC2_SUBSCRIPTION"); - static const int NO_INSTANCES_HASH = HashingUtils::HashString("NO_INSTANCES"); - static const int OVER_MAX_INSTANCES_HASH = HashingUtils::HashString("OVER_MAX_INSTANCES"); - static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RESOURCE_LIMIT_EXCEEDED"); - static const int REVISION_MISSING_HASH = HashingUtils::HashString("REVISION_MISSING"); - static const int THROTTLED_HASH = HashingUtils::HashString("THROTTLED"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int CLOUDFORMATION_STACK_FAILURE_HASH = HashingUtils::HashString("CLOUDFORMATION_STACK_FAILURE"); + static constexpr uint32_t AGENT_ISSUE_HASH = ConstExprHashingUtils::HashString("AGENT_ISSUE"); + static constexpr uint32_t ALARM_ACTIVE_HASH = ConstExprHashingUtils::HashString("ALARM_ACTIVE"); + static constexpr uint32_t APPLICATION_MISSING_HASH = ConstExprHashingUtils::HashString("APPLICATION_MISSING"); + static constexpr uint32_t AUTOSCALING_VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("AUTOSCALING_VALIDATION_ERROR"); + static constexpr uint32_t AUTO_SCALING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("AUTO_SCALING_CONFIGURATION"); + static constexpr uint32_t AUTO_SCALING_IAM_ROLE_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("AUTO_SCALING_IAM_ROLE_PERMISSIONS"); + static constexpr uint32_t CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND_HASH = ConstExprHashingUtils::HashString("CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"); + static constexpr uint32_t CUSTOMER_APPLICATION_UNHEALTHY_HASH = ConstExprHashingUtils::HashString("CUSTOMER_APPLICATION_UNHEALTHY"); + static constexpr uint32_t DEPLOYMENT_GROUP_MISSING_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_GROUP_MISSING"); + static constexpr uint32_t ECS_UPDATE_ERROR_HASH = ConstExprHashingUtils::HashString("ECS_UPDATE_ERROR"); + static constexpr uint32_t ELASTIC_LOAD_BALANCING_INVALID_HASH = ConstExprHashingUtils::HashString("ELASTIC_LOAD_BALANCING_INVALID"); + static constexpr uint32_t ELB_INVALID_INSTANCE_HASH = ConstExprHashingUtils::HashString("ELB_INVALID_INSTANCE"); + static constexpr uint32_t HEALTH_CONSTRAINTS_HASH = ConstExprHashingUtils::HashString("HEALTH_CONSTRAINTS"); + static constexpr uint32_t HEALTH_CONSTRAINTS_INVALID_HASH = ConstExprHashingUtils::HashString("HEALTH_CONSTRAINTS_INVALID"); + static constexpr uint32_t HOOK_EXECUTION_FAILURE_HASH = ConstExprHashingUtils::HashString("HOOK_EXECUTION_FAILURE"); + static constexpr uint32_t IAM_ROLE_MISSING_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_MISSING"); + static constexpr uint32_t IAM_ROLE_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_PERMISSIONS"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_ECS_SERVICE_HASH = ConstExprHashingUtils::HashString("INVALID_ECS_SERVICE"); + static constexpr uint32_t INVALID_LAMBDA_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INVALID_LAMBDA_CONFIGURATION"); + static constexpr uint32_t INVALID_LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("INVALID_LAMBDA_FUNCTION"); + static constexpr uint32_t INVALID_REVISION_HASH = ConstExprHashingUtils::HashString("INVALID_REVISION"); + static constexpr uint32_t MANUAL_STOP_HASH = ConstExprHashingUtils::HashString("MANUAL_STOP"); + static constexpr uint32_t MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"); + static constexpr uint32_t MISSING_ELB_INFORMATION_HASH = ConstExprHashingUtils::HashString("MISSING_ELB_INFORMATION"); + static constexpr uint32_t MISSING_GITHUB_TOKEN_HASH = ConstExprHashingUtils::HashString("MISSING_GITHUB_TOKEN"); + static constexpr uint32_t NO_EC2_SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("NO_EC2_SUBSCRIPTION"); + static constexpr uint32_t NO_INSTANCES_HASH = ConstExprHashingUtils::HashString("NO_INSTANCES"); + static constexpr uint32_t OVER_MAX_INSTANCES_HASH = ConstExprHashingUtils::HashString("OVER_MAX_INSTANCES"); + static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RESOURCE_LIMIT_EXCEEDED"); + static constexpr uint32_t REVISION_MISSING_HASH = ConstExprHashingUtils::HashString("REVISION_MISSING"); + static constexpr uint32_t THROTTLED_HASH = ConstExprHashingUtils::HashString("THROTTLED"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t CLOUDFORMATION_STACK_FAILURE_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION_STACK_FAILURE"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_ISSUE_HASH) { return ErrorCode::AGENT_ISSUE; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/FileExistsBehavior.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/FileExistsBehavior.cpp index 6b47ec80f08..13e4b5e1c05 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/FileExistsBehavior.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/FileExistsBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileExistsBehaviorMapper { - static const int DISALLOW_HASH = HashingUtils::HashString("DISALLOW"); - static const int OVERWRITE_HASH = HashingUtils::HashString("OVERWRITE"); - static const int RETAIN_HASH = HashingUtils::HashString("RETAIN"); + static constexpr uint32_t DISALLOW_HASH = ConstExprHashingUtils::HashString("DISALLOW"); + static constexpr uint32_t OVERWRITE_HASH = ConstExprHashingUtils::HashString("OVERWRITE"); + static constexpr uint32_t RETAIN_HASH = ConstExprHashingUtils::HashString("RETAIN"); FileExistsBehavior GetFileExistsBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISALLOW_HASH) { return FileExistsBehavior::DISALLOW; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/GreenFleetProvisioningAction.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/GreenFleetProvisioningAction.cpp index 8ce725e3d69..f43df0012fe 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/GreenFleetProvisioningAction.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/GreenFleetProvisioningAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GreenFleetProvisioningActionMapper { - static const int DISCOVER_EXISTING_HASH = HashingUtils::HashString("DISCOVER_EXISTING"); - static const int COPY_AUTO_SCALING_GROUP_HASH = HashingUtils::HashString("COPY_AUTO_SCALING_GROUP"); + static constexpr uint32_t DISCOVER_EXISTING_HASH = ConstExprHashingUtils::HashString("DISCOVER_EXISTING"); + static constexpr uint32_t COPY_AUTO_SCALING_GROUP_HASH = ConstExprHashingUtils::HashString("COPY_AUTO_SCALING_GROUP"); GreenFleetProvisioningAction GetGreenFleetProvisioningActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISCOVER_EXISTING_HASH) { return GreenFleetProvisioningAction::DISCOVER_EXISTING; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceAction.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceAction.cpp index dca33ca7ec0..35a97881040 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceAction.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceActionMapper { - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); - static const int KEEP_ALIVE_HASH = HashingUtils::HashString("KEEP_ALIVE"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); + static constexpr uint32_t KEEP_ALIVE_HASH = ConstExprHashingUtils::HashString("KEEP_ALIVE"); InstanceAction GetInstanceActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERMINATE_HASH) { return InstanceAction::TERMINATE; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceStatus.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceStatus.cpp index 7c61dd385b1..97ddfc0c56e 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace InstanceStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Skipped_HASH = HashingUtils::HashString("Skipped"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Skipped_HASH = ConstExprHashingUtils::HashString("Skipped"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); InstanceStatus GetInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return InstanceStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceType.cpp index af32693fadf..f8d8d4649c6 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/InstanceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceTypeMapper { - static const int Blue_HASH = HashingUtils::HashString("Blue"); - static const int Green_HASH = HashingUtils::HashString("Green"); + static constexpr uint32_t Blue_HASH = ConstExprHashingUtils::HashString("Blue"); + static constexpr uint32_t Green_HASH = ConstExprHashingUtils::HashString("Green"); InstanceType GetInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Blue_HASH) { return InstanceType::Blue; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleErrorCode.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleErrorCode.cpp index 36532dead56..86a91114442 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LifecycleErrorCodeMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int ScriptMissing_HASH = HashingUtils::HashString("ScriptMissing"); - static const int ScriptNotExecutable_HASH = HashingUtils::HashString("ScriptNotExecutable"); - static const int ScriptTimedOut_HASH = HashingUtils::HashString("ScriptTimedOut"); - static const int ScriptFailed_HASH = HashingUtils::HashString("ScriptFailed"); - static const int UnknownError_HASH = HashingUtils::HashString("UnknownError"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t ScriptMissing_HASH = ConstExprHashingUtils::HashString("ScriptMissing"); + static constexpr uint32_t ScriptNotExecutable_HASH = ConstExprHashingUtils::HashString("ScriptNotExecutable"); + static constexpr uint32_t ScriptTimedOut_HASH = ConstExprHashingUtils::HashString("ScriptTimedOut"); + static constexpr uint32_t ScriptFailed_HASH = ConstExprHashingUtils::HashString("ScriptFailed"); + static constexpr uint32_t UnknownError_HASH = ConstExprHashingUtils::HashString("UnknownError"); LifecycleErrorCode GetLifecycleErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return LifecycleErrorCode::Success; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleEventStatus.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleEventStatus.cpp index fc1a1b9eb32..54a23668a07 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleEventStatus.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/LifecycleEventStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LifecycleEventStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Skipped_HASH = HashingUtils::HashString("Skipped"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Skipped_HASH = ConstExprHashingUtils::HashString("Skipped"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); LifecycleEventStatus GetLifecycleEventStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return LifecycleEventStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/ListStateFilterAction.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/ListStateFilterAction.cpp index ee6bcb01132..9b06f757e85 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/ListStateFilterAction.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/ListStateFilterAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListStateFilterActionMapper { - static const int include_HASH = HashingUtils::HashString("include"); - static const int exclude_HASH = HashingUtils::HashString("exclude"); - static const int ignore_HASH = HashingUtils::HashString("ignore"); + static constexpr uint32_t include_HASH = ConstExprHashingUtils::HashString("include"); + static constexpr uint32_t exclude_HASH = ConstExprHashingUtils::HashString("exclude"); + static constexpr uint32_t ignore_HASH = ConstExprHashingUtils::HashString("ignore"); ListStateFilterAction GetListStateFilterActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == include_HASH) { return ListStateFilterAction::include; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/MinimumHealthyHostsType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/MinimumHealthyHostsType.cpp index 4e974494a80..0b281cce443 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/MinimumHealthyHostsType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/MinimumHealthyHostsType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MinimumHealthyHostsTypeMapper { - static const int HOST_COUNT_HASH = HashingUtils::HashString("HOST_COUNT"); - static const int FLEET_PERCENT_HASH = HashingUtils::HashString("FLEET_PERCENT"); + static constexpr uint32_t HOST_COUNT_HASH = ConstExprHashingUtils::HashString("HOST_COUNT"); + static constexpr uint32_t FLEET_PERCENT_HASH = ConstExprHashingUtils::HashString("FLEET_PERCENT"); MinimumHealthyHostsType GetMinimumHealthyHostsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOST_COUNT_HASH) { return MinimumHealthyHostsType::HOST_COUNT; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/OutdatedInstancesStrategy.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/OutdatedInstancesStrategy.cpp index 374e4774951..a4079e79dc8 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/OutdatedInstancesStrategy.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/OutdatedInstancesStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutdatedInstancesStrategyMapper { - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); OutdatedInstancesStrategy GetOutdatedInstancesStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_HASH) { return OutdatedInstancesStrategy::UPDATE; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/RegistrationStatus.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/RegistrationStatus.cpp index 25af53574c1..666a9873203 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/RegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/RegistrationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RegistrationStatusMapper { - static const int Registered_HASH = HashingUtils::HashString("Registered"); - static const int Deregistered_HASH = HashingUtils::HashString("Deregistered"); + static constexpr uint32_t Registered_HASH = ConstExprHashingUtils::HashString("Registered"); + static constexpr uint32_t Deregistered_HASH = ConstExprHashingUtils::HashString("Deregistered"); RegistrationStatus GetRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Registered_HASH) { return RegistrationStatus::Registered; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/RevisionLocationType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/RevisionLocationType.cpp index 5f5148a500e..7787b4468dd 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/RevisionLocationType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/RevisionLocationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RevisionLocationTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int GitHub_HASH = HashingUtils::HashString("GitHub"); - static const int String_HASH = HashingUtils::HashString("String"); - static const int AppSpecContent_HASH = HashingUtils::HashString("AppSpecContent"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t GitHub_HASH = ConstExprHashingUtils::HashString("GitHub"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t AppSpecContent_HASH = ConstExprHashingUtils::HashString("AppSpecContent"); RevisionLocationType GetRevisionLocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return RevisionLocationType::S3; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/SortOrder.cpp index 2e0ac91adf2..47d68c58404 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ascending_HASH = HashingUtils::HashString("ascending"); - static const int descending_HASH = HashingUtils::HashString("descending"); + static constexpr uint32_t ascending_HASH = ConstExprHashingUtils::HashString("ascending"); + static constexpr uint32_t descending_HASH = ConstExprHashingUtils::HashString("descending"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ascending_HASH) { return SortOrder::ascending; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/StopStatus.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/StopStatus.cpp index 33152c29673..dda1db614d5 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/StopStatus.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/StopStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StopStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); StopStatus GetStopStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return StopStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/TagFilterType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/TagFilterType.cpp index 65a079233ee..595f7ca68eb 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/TagFilterType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/TagFilterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TagFilterTypeMapper { - static const int KEY_ONLY_HASH = HashingUtils::HashString("KEY_ONLY"); - static const int VALUE_ONLY_HASH = HashingUtils::HashString("VALUE_ONLY"); - static const int KEY_AND_VALUE_HASH = HashingUtils::HashString("KEY_AND_VALUE"); + static constexpr uint32_t KEY_ONLY_HASH = ConstExprHashingUtils::HashString("KEY_ONLY"); + static constexpr uint32_t VALUE_ONLY_HASH = ConstExprHashingUtils::HashString("VALUE_ONLY"); + static constexpr uint32_t KEY_AND_VALUE_HASH = ConstExprHashingUtils::HashString("KEY_AND_VALUE"); TagFilterType GetTagFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_ONLY_HASH) { return TagFilterType::KEY_ONLY; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetFilterName.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetFilterName.cpp index ddf09472969..4c73f8d5670 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetFilterName.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetFilterNameMapper { - static const int TargetStatus_HASH = HashingUtils::HashString("TargetStatus"); - static const int ServerInstanceLabel_HASH = HashingUtils::HashString("ServerInstanceLabel"); + static constexpr uint32_t TargetStatus_HASH = ConstExprHashingUtils::HashString("TargetStatus"); + static constexpr uint32_t ServerInstanceLabel_HASH = ConstExprHashingUtils::HashString("ServerInstanceLabel"); TargetFilterName GetTargetFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TargetStatus_HASH) { return TargetFilterName::TargetStatus; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetLabel.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetLabel.cpp index 98b89a11065..c8bd47bcb17 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetLabel.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetLabel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetLabelMapper { - static const int Blue_HASH = HashingUtils::HashString("Blue"); - static const int Green_HASH = HashingUtils::HashString("Green"); + static constexpr uint32_t Blue_HASH = ConstExprHashingUtils::HashString("Blue"); + static constexpr uint32_t Green_HASH = ConstExprHashingUtils::HashString("Green"); TargetLabel GetTargetLabelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Blue_HASH) { return TargetLabel::Blue; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetStatus.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetStatus.cpp index 9ebecd191fc..7f282e290cf 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetStatus.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/TargetStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TargetStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Skipped_HASH = HashingUtils::HashString("Skipped"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Skipped_HASH = ConstExprHashingUtils::HashString("Skipped"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); TargetStatus GetTargetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return TargetStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/TrafficRoutingType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/TrafficRoutingType.cpp index cb56013febc..39fc1582024 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/TrafficRoutingType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/TrafficRoutingType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrafficRoutingTypeMapper { - static const int TimeBasedCanary_HASH = HashingUtils::HashString("TimeBasedCanary"); - static const int TimeBasedLinear_HASH = HashingUtils::HashString("TimeBasedLinear"); - static const int AllAtOnce_HASH = HashingUtils::HashString("AllAtOnce"); + static constexpr uint32_t TimeBasedCanary_HASH = ConstExprHashingUtils::HashString("TimeBasedCanary"); + static constexpr uint32_t TimeBasedLinear_HASH = ConstExprHashingUtils::HashString("TimeBasedLinear"); + static constexpr uint32_t AllAtOnce_HASH = ConstExprHashingUtils::HashString("AllAtOnce"); TrafficRoutingType GetTrafficRoutingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TimeBasedCanary_HASH) { return TrafficRoutingType::TimeBasedCanary; diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/model/TriggerEventType.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/model/TriggerEventType.cpp index 80a638783fe..f23add5a26c 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/model/TriggerEventType.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/model/TriggerEventType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace TriggerEventTypeMapper { - static const int DeploymentStart_HASH = HashingUtils::HashString("DeploymentStart"); - static const int DeploymentSuccess_HASH = HashingUtils::HashString("DeploymentSuccess"); - static const int DeploymentFailure_HASH = HashingUtils::HashString("DeploymentFailure"); - static const int DeploymentStop_HASH = HashingUtils::HashString("DeploymentStop"); - static const int DeploymentRollback_HASH = HashingUtils::HashString("DeploymentRollback"); - static const int DeploymentReady_HASH = HashingUtils::HashString("DeploymentReady"); - static const int InstanceStart_HASH = HashingUtils::HashString("InstanceStart"); - static const int InstanceSuccess_HASH = HashingUtils::HashString("InstanceSuccess"); - static const int InstanceFailure_HASH = HashingUtils::HashString("InstanceFailure"); - static const int InstanceReady_HASH = HashingUtils::HashString("InstanceReady"); + static constexpr uint32_t DeploymentStart_HASH = ConstExprHashingUtils::HashString("DeploymentStart"); + static constexpr uint32_t DeploymentSuccess_HASH = ConstExprHashingUtils::HashString("DeploymentSuccess"); + static constexpr uint32_t DeploymentFailure_HASH = ConstExprHashingUtils::HashString("DeploymentFailure"); + static constexpr uint32_t DeploymentStop_HASH = ConstExprHashingUtils::HashString("DeploymentStop"); + static constexpr uint32_t DeploymentRollback_HASH = ConstExprHashingUtils::HashString("DeploymentRollback"); + static constexpr uint32_t DeploymentReady_HASH = ConstExprHashingUtils::HashString("DeploymentReady"); + static constexpr uint32_t InstanceStart_HASH = ConstExprHashingUtils::HashString("InstanceStart"); + static constexpr uint32_t InstanceSuccess_HASH = ConstExprHashingUtils::HashString("InstanceSuccess"); + static constexpr uint32_t InstanceFailure_HASH = ConstExprHashingUtils::HashString("InstanceFailure"); + static constexpr uint32_t InstanceReady_HASH = ConstExprHashingUtils::HashString("InstanceReady"); TriggerEventType GetTriggerEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DeploymentStart_HASH) { return TriggerEventType::DeploymentStart; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerErrors.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerErrors.cpp index 88ee8f3f905..02b5575ecc9 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerErrors.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerErrors.cpp @@ -18,14 +18,14 @@ namespace CodeGuruReviewer namespace CodeGuruReviewerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/AnalysisType.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/AnalysisType.cpp index dbd05bb1ff8..287987f939e 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/AnalysisType.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/AnalysisType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalysisTypeMapper { - static const int Security_HASH = HashingUtils::HashString("Security"); - static const int CodeQuality_HASH = HashingUtils::HashString("CodeQuality"); + static constexpr uint32_t Security_HASH = ConstExprHashingUtils::HashString("Security"); + static constexpr uint32_t CodeQuality_HASH = ConstExprHashingUtils::HashString("CodeQuality"); AnalysisType GetAnalysisTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Security_HASH) { return AnalysisType::Security; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ConfigFileState.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ConfigFileState.cpp index e02a8a25a32..9fdce69dd3f 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ConfigFileState.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ConfigFileState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigFileStateMapper { - static const int Present_HASH = HashingUtils::HashString("Present"); - static const int Absent_HASH = HashingUtils::HashString("Absent"); - static const int PresentWithErrors_HASH = HashingUtils::HashString("PresentWithErrors"); + static constexpr uint32_t Present_HASH = ConstExprHashingUtils::HashString("Present"); + static constexpr uint32_t Absent_HASH = ConstExprHashingUtils::HashString("Absent"); + static constexpr uint32_t PresentWithErrors_HASH = ConstExprHashingUtils::HashString("PresentWithErrors"); ConfigFileState GetConfigFileStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Present_HASH) { return ConfigFileState::Present; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/EncryptionOption.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/EncryptionOption.cpp index c0c7196d6ad..4c6248f4777 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/EncryptionOption.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/EncryptionOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionOptionMapper { - static const int AWS_OWNED_CMK_HASH = HashingUtils::HashString("AWS_OWNED_CMK"); - static const int CUSTOMER_MANAGED_CMK_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_CMK"); + static constexpr uint32_t AWS_OWNED_CMK_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_CMK"); + static constexpr uint32_t CUSTOMER_MANAGED_CMK_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_CMK"); EncryptionOption GetEncryptionOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_OWNED_CMK_HASH) { return EncryptionOption::AWS_OWNED_CMK; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/JobState.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/JobState.cpp index 8d3e69c0c23..abc70b581e3 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/JobState.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/JobState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobStateMapper { - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); JobState GetJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Completed_HASH) { return JobState::Completed; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ProviderType.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ProviderType.cpp index 9d488c99d67..da5261a0e5f 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ProviderType.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/ProviderType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProviderTypeMapper { - static const int CodeCommit_HASH = HashingUtils::HashString("CodeCommit"); - static const int GitHub_HASH = HashingUtils::HashString("GitHub"); - static const int Bitbucket_HASH = HashingUtils::HashString("Bitbucket"); - static const int GitHubEnterpriseServer_HASH = HashingUtils::HashString("GitHubEnterpriseServer"); - static const int S3Bucket_HASH = HashingUtils::HashString("S3Bucket"); + static constexpr uint32_t CodeCommit_HASH = ConstExprHashingUtils::HashString("CodeCommit"); + static constexpr uint32_t GitHub_HASH = ConstExprHashingUtils::HashString("GitHub"); + static constexpr uint32_t Bitbucket_HASH = ConstExprHashingUtils::HashString("Bitbucket"); + static constexpr uint32_t GitHubEnterpriseServer_HASH = ConstExprHashingUtils::HashString("GitHubEnterpriseServer"); + static constexpr uint32_t S3Bucket_HASH = ConstExprHashingUtils::HashString("S3Bucket"); ProviderType GetProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CodeCommit_HASH) { return ProviderType::CodeCommit; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Reaction.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Reaction.cpp index 75fe31ebe76..11b37c21fa8 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Reaction.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Reaction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReactionMapper { - static const int ThumbsUp_HASH = HashingUtils::HashString("ThumbsUp"); - static const int ThumbsDown_HASH = HashingUtils::HashString("ThumbsDown"); + static constexpr uint32_t ThumbsUp_HASH = ConstExprHashingUtils::HashString("ThumbsUp"); + static constexpr uint32_t ThumbsDown_HASH = ConstExprHashingUtils::HashString("ThumbsDown"); Reaction GetReactionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ThumbsUp_HASH) { return Reaction::ThumbsUp; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RecommendationCategory.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RecommendationCategory.cpp index cabf0ba0b89..b349e5d97d0 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RecommendationCategory.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RecommendationCategory.cpp @@ -20,22 +20,22 @@ namespace Aws namespace RecommendationCategoryMapper { - static const int AWSBestPractices_HASH = HashingUtils::HashString("AWSBestPractices"); - static const int AWSCloudFormationIssues_HASH = HashingUtils::HashString("AWSCloudFormationIssues"); - static const int DuplicateCode_HASH = HashingUtils::HashString("DuplicateCode"); - static const int CodeMaintenanceIssues_HASH = HashingUtils::HashString("CodeMaintenanceIssues"); - static const int ConcurrencyIssues_HASH = HashingUtils::HashString("ConcurrencyIssues"); - static const int InputValidations_HASH = HashingUtils::HashString("InputValidations"); - static const int PythonBestPractices_HASH = HashingUtils::HashString("PythonBestPractices"); - static const int JavaBestPractices_HASH = HashingUtils::HashString("JavaBestPractices"); - static const int ResourceLeaks_HASH = HashingUtils::HashString("ResourceLeaks"); - static const int SecurityIssues_HASH = HashingUtils::HashString("SecurityIssues"); - static const int CodeInconsistencies_HASH = HashingUtils::HashString("CodeInconsistencies"); + static constexpr uint32_t AWSBestPractices_HASH = ConstExprHashingUtils::HashString("AWSBestPractices"); + static constexpr uint32_t AWSCloudFormationIssues_HASH = ConstExprHashingUtils::HashString("AWSCloudFormationIssues"); + static constexpr uint32_t DuplicateCode_HASH = ConstExprHashingUtils::HashString("DuplicateCode"); + static constexpr uint32_t CodeMaintenanceIssues_HASH = ConstExprHashingUtils::HashString("CodeMaintenanceIssues"); + static constexpr uint32_t ConcurrencyIssues_HASH = ConstExprHashingUtils::HashString("ConcurrencyIssues"); + static constexpr uint32_t InputValidations_HASH = ConstExprHashingUtils::HashString("InputValidations"); + static constexpr uint32_t PythonBestPractices_HASH = ConstExprHashingUtils::HashString("PythonBestPractices"); + static constexpr uint32_t JavaBestPractices_HASH = ConstExprHashingUtils::HashString("JavaBestPractices"); + static constexpr uint32_t ResourceLeaks_HASH = ConstExprHashingUtils::HashString("ResourceLeaks"); + static constexpr uint32_t SecurityIssues_HASH = ConstExprHashingUtils::HashString("SecurityIssues"); + static constexpr uint32_t CodeInconsistencies_HASH = ConstExprHashingUtils::HashString("CodeInconsistencies"); RecommendationCategory GetRecommendationCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSBestPractices_HASH) { return RecommendationCategory::AWSBestPractices; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RepositoryAssociationState.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RepositoryAssociationState.cpp index f455ad2b0d8..9d3d320f98f 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RepositoryAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/RepositoryAssociationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RepositoryAssociationStateMapper { - static const int Associated_HASH = HashingUtils::HashString("Associated"); - static const int Associating_HASH = HashingUtils::HashString("Associating"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Disassociating_HASH = HashingUtils::HashString("Disassociating"); - static const int Disassociated_HASH = HashingUtils::HashString("Disassociated"); + static constexpr uint32_t Associated_HASH = ConstExprHashingUtils::HashString("Associated"); + static constexpr uint32_t Associating_HASH = ConstExprHashingUtils::HashString("Associating"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Disassociating_HASH = ConstExprHashingUtils::HashString("Disassociating"); + static constexpr uint32_t Disassociated_HASH = ConstExprHashingUtils::HashString("Disassociated"); RepositoryAssociationState GetRepositoryAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Associated_HASH) { return RepositoryAssociationState::Associated; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Severity.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Severity.cpp index 04e1e25a1f1..0c65efdfb57 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Severity.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Severity.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SeverityMapper { - static const int Info_HASH = HashingUtils::HashString("Info"); - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); - static const int Critical_HASH = HashingUtils::HashString("Critical"); + static constexpr uint32_t Info_HASH = ConstExprHashingUtils::HashString("Info"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); + static constexpr uint32_t Critical_HASH = ConstExprHashingUtils::HashString("Critical"); Severity GetSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Info_HASH) { return Severity::Info; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Type.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Type.cpp index 34db5c62c3b..1087ca2294b 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int PullRequest_HASH = HashingUtils::HashString("PullRequest"); - static const int RepositoryAnalysis_HASH = HashingUtils::HashString("RepositoryAnalysis"); + static constexpr uint32_t PullRequest_HASH = ConstExprHashingUtils::HashString("PullRequest"); + static constexpr uint32_t RepositoryAnalysis_HASH = ConstExprHashingUtils::HashString("RepositoryAnalysis"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PullRequest_HASH) { return Type::PullRequest; diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/VendorName.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/VendorName.cpp index ab333c53ebe..700189a8e59 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/VendorName.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/model/VendorName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VendorNameMapper { - static const int GitHub_HASH = HashingUtils::HashString("GitHub"); - static const int GitLab_HASH = HashingUtils::HashString("GitLab"); - static const int NativeS3_HASH = HashingUtils::HashString("NativeS3"); + static constexpr uint32_t GitHub_HASH = ConstExprHashingUtils::HashString("GitHub"); + static constexpr uint32_t GitLab_HASH = ConstExprHashingUtils::HashString("GitLab"); + static constexpr uint32_t NativeS3_HASH = ConstExprHashingUtils::HashString("NativeS3"); VendorName GetVendorNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GitHub_HASH) { return VendorName::GitHub; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityErrors.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityErrors.cpp index 9880d542ab2..018a18fb538 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityErrors.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityErrors.cpp @@ -61,13 +61,13 @@ template<> AWS_CODEGURUSECURITY_API AccessDeniedException CodeGuruSecurityError: namespace CodeGuruSecurityErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/AnalysisType.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/AnalysisType.cpp index 06f3c9ef7ad..1a474a08172 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/AnalysisType.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/AnalysisType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalysisTypeMapper { - static const int Security_HASH = HashingUtils::HashString("Security"); - static const int All_HASH = HashingUtils::HashString("All"); + static constexpr uint32_t Security_HASH = ConstExprHashingUtils::HashString("Security"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); AnalysisType GetAnalysisTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Security_HASH) { return AnalysisType::Security; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ErrorCode.cpp index 2493b84f739..d9fefdb27dd 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ErrorCodeMapper { - static const int DUPLICATE_IDENTIFIER_HASH = HashingUtils::HashString("DUPLICATE_IDENTIFIER"); - static const int ITEM_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ITEM_DOES_NOT_EXIST"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INVALID_FINDING_ID_HASH = HashingUtils::HashString("INVALID_FINDING_ID"); - static const int INVALID_SCAN_NAME_HASH = HashingUtils::HashString("INVALID_SCAN_NAME"); + static constexpr uint32_t DUPLICATE_IDENTIFIER_HASH = ConstExprHashingUtils::HashString("DUPLICATE_IDENTIFIER"); + static constexpr uint32_t ITEM_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ITEM_DOES_NOT_EXIST"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_FINDING_ID_HASH = ConstExprHashingUtils::HashString("INVALID_FINDING_ID"); + static constexpr uint32_t INVALID_SCAN_NAME_HASH = ConstExprHashingUtils::HashString("INVALID_SCAN_NAME"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_IDENTIFIER_HASH) { return ErrorCode::DUPLICATE_IDENTIFIER; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanState.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanState.cpp index 745f51affc0..8ce068e0820 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanState.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScanStateMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ScanState GetScanStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ScanState::InProgress; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanType.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanType.cpp index 75c40ce6306..543ffde4713 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanType.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanTypeMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Express_HASH = HashingUtils::HashString("Express"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Express_HASH = ConstExprHashingUtils::HashString("Express"); ScanType GetScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return ScanType::Standard; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/Severity.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/Severity.cpp index b88c6388cdf..49bd745ae3e 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/Severity.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/Severity.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SeverityMapper { - static const int Critical_HASH = HashingUtils::HashString("Critical"); - static const int High_HASH = HashingUtils::HashString("High"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Info_HASH = HashingUtils::HashString("Info"); + static constexpr uint32_t Critical_HASH = ConstExprHashingUtils::HashString("Critical"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Info_HASH = ConstExprHashingUtils::HashString("Info"); Severity GetSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Critical_HASH) { return Severity::Critical; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/Status.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/Status.cpp index 57ddc11838c..a0882d4f4e0 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int Closed_HASH = HashingUtils::HashString("Closed"); - static const int Open_HASH = HashingUtils::HashString("Open"); - static const int All_HASH = HashingUtils::HashString("All"); + static constexpr uint32_t Closed_HASH = ConstExprHashingUtils::HashString("Closed"); + static constexpr uint32_t Open_HASH = ConstExprHashingUtils::HashString("Open"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Closed_HASH) { return Status::Closed; diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ValidationExceptionReason.cpp index 8da076f9c44..dc8bf0a9bb6 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/model/ValidationExceptionReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); - static const int lambdaCodeShaMisMatch_HASH = HashingUtils::HashString("lambdaCodeShaMisMatch"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); + static constexpr uint32_t lambdaCodeShaMisMatch_HASH = ConstExprHashingUtils::HashString("lambdaCodeShaMisMatch"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerErrors.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerErrors.cpp index 00c4c49a0e3..54af107ba10 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerErrors.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerErrors.cpp @@ -18,14 +18,14 @@ namespace CodeGuruProfiler namespace CodeGuruProfilerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ActionGroup.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ActionGroup.cpp index 65c1fab8d2f..435b6e52979 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ActionGroup.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ActionGroup.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ActionGroupMapper { - static const int agentPermissions_HASH = HashingUtils::HashString("agentPermissions"); + static constexpr uint32_t agentPermissions_HASH = ConstExprHashingUtils::HashString("agentPermissions"); ActionGroup GetActionGroupForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == agentPermissions_HASH) { return ActionGroup::agentPermissions; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AgentParameterField.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AgentParameterField.cpp index 6e41a5a46e2..12214ba33ff 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AgentParameterField.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AgentParameterField.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AgentParameterFieldMapper { - static const int SamplingIntervalInMilliseconds_HASH = HashingUtils::HashString("SamplingIntervalInMilliseconds"); - static const int ReportingIntervalInMilliseconds_HASH = HashingUtils::HashString("ReportingIntervalInMilliseconds"); - static const int MinimumTimeForReportingInMilliseconds_HASH = HashingUtils::HashString("MinimumTimeForReportingInMilliseconds"); - static const int MemoryUsageLimitPercent_HASH = HashingUtils::HashString("MemoryUsageLimitPercent"); - static const int MaxStackDepth_HASH = HashingUtils::HashString("MaxStackDepth"); + static constexpr uint32_t SamplingIntervalInMilliseconds_HASH = ConstExprHashingUtils::HashString("SamplingIntervalInMilliseconds"); + static constexpr uint32_t ReportingIntervalInMilliseconds_HASH = ConstExprHashingUtils::HashString("ReportingIntervalInMilliseconds"); + static constexpr uint32_t MinimumTimeForReportingInMilliseconds_HASH = ConstExprHashingUtils::HashString("MinimumTimeForReportingInMilliseconds"); + static constexpr uint32_t MemoryUsageLimitPercent_HASH = ConstExprHashingUtils::HashString("MemoryUsageLimitPercent"); + static constexpr uint32_t MaxStackDepth_HASH = ConstExprHashingUtils::HashString("MaxStackDepth"); AgentParameterField GetAgentParameterFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SamplingIntervalInMilliseconds_HASH) { return AgentParameterField::SamplingIntervalInMilliseconds; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AggregationPeriod.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AggregationPeriod.cpp index b9472efff4d..9adbdbbd955 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AggregationPeriod.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/AggregationPeriod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AggregationPeriodMapper { - static const int PT5M_HASH = HashingUtils::HashString("PT5M"); - static const int PT1H_HASH = HashingUtils::HashString("PT1H"); - static const int P1D_HASH = HashingUtils::HashString("P1D"); + static constexpr uint32_t PT5M_HASH = ConstExprHashingUtils::HashString("PT5M"); + static constexpr uint32_t PT1H_HASH = ConstExprHashingUtils::HashString("PT1H"); + static constexpr uint32_t P1D_HASH = ConstExprHashingUtils::HashString("P1D"); AggregationPeriod GetAggregationPeriodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PT5M_HASH) { return AggregationPeriod::PT5M; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ComputePlatform.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ComputePlatform.cpp index 791fb20b072..8e3ee145a09 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ComputePlatform.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/ComputePlatform.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComputePlatformMapper { - static const int Default_HASH = HashingUtils::HashString("Default"); - static const int AWSLambda_HASH = HashingUtils::HashString("AWSLambda"); + static constexpr uint32_t Default_HASH = ConstExprHashingUtils::HashString("Default"); + static constexpr uint32_t AWSLambda_HASH = ConstExprHashingUtils::HashString("AWSLambda"); ComputePlatform GetComputePlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Default_HASH) { return ComputePlatform::Default; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/EventPublisher.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/EventPublisher.cpp index 069f15158e6..9f4603ac1d6 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/EventPublisher.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/EventPublisher.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventPublisherMapper { - static const int AnomalyDetection_HASH = HashingUtils::HashString("AnomalyDetection"); + static constexpr uint32_t AnomalyDetection_HASH = ConstExprHashingUtils::HashString("AnomalyDetection"); EventPublisher GetEventPublisherForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AnomalyDetection_HASH) { return EventPublisher::AnomalyDetection; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/FeedbackType.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/FeedbackType.cpp index d87f6fe448b..9f9399534fd 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/FeedbackType.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/FeedbackType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeedbackTypeMapper { - static const int Positive_HASH = HashingUtils::HashString("Positive"); - static const int Negative_HASH = HashingUtils::HashString("Negative"); + static constexpr uint32_t Positive_HASH = ConstExprHashingUtils::HashString("Positive"); + static constexpr uint32_t Negative_HASH = ConstExprHashingUtils::HashString("Negative"); FeedbackType GetFeedbackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Positive_HASH) { return FeedbackType::Positive; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetadataField.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetadataField.cpp index d05fc4e18e3..c2f083d3702 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetadataField.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetadataField.cpp @@ -20,20 +20,20 @@ namespace Aws namespace MetadataFieldMapper { - static const int ComputePlatform_HASH = HashingUtils::HashString("ComputePlatform"); - static const int AgentId_HASH = HashingUtils::HashString("AgentId"); - static const int AwsRequestId_HASH = HashingUtils::HashString("AwsRequestId"); - static const int ExecutionEnvironment_HASH = HashingUtils::HashString("ExecutionEnvironment"); - static const int LambdaFunctionArn_HASH = HashingUtils::HashString("LambdaFunctionArn"); - static const int LambdaMemoryLimitInMB_HASH = HashingUtils::HashString("LambdaMemoryLimitInMB"); - static const int LambdaRemainingTimeInMilliseconds_HASH = HashingUtils::HashString("LambdaRemainingTimeInMilliseconds"); - static const int LambdaTimeGapBetweenInvokesInMilliseconds_HASH = HashingUtils::HashString("LambdaTimeGapBetweenInvokesInMilliseconds"); - static const int LambdaPreviousExecutionTimeInMilliseconds_HASH = HashingUtils::HashString("LambdaPreviousExecutionTimeInMilliseconds"); + static constexpr uint32_t ComputePlatform_HASH = ConstExprHashingUtils::HashString("ComputePlatform"); + static constexpr uint32_t AgentId_HASH = ConstExprHashingUtils::HashString("AgentId"); + static constexpr uint32_t AwsRequestId_HASH = ConstExprHashingUtils::HashString("AwsRequestId"); + static constexpr uint32_t ExecutionEnvironment_HASH = ConstExprHashingUtils::HashString("ExecutionEnvironment"); + static constexpr uint32_t LambdaFunctionArn_HASH = ConstExprHashingUtils::HashString("LambdaFunctionArn"); + static constexpr uint32_t LambdaMemoryLimitInMB_HASH = ConstExprHashingUtils::HashString("LambdaMemoryLimitInMB"); + static constexpr uint32_t LambdaRemainingTimeInMilliseconds_HASH = ConstExprHashingUtils::HashString("LambdaRemainingTimeInMilliseconds"); + static constexpr uint32_t LambdaTimeGapBetweenInvokesInMilliseconds_HASH = ConstExprHashingUtils::HashString("LambdaTimeGapBetweenInvokesInMilliseconds"); + static constexpr uint32_t LambdaPreviousExecutionTimeInMilliseconds_HASH = ConstExprHashingUtils::HashString("LambdaPreviousExecutionTimeInMilliseconds"); MetadataField GetMetadataFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ComputePlatform_HASH) { return MetadataField::ComputePlatform; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetricType.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetricType.cpp index 1f536675914..9f60775926b 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetricType.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/MetricType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MetricTypeMapper { - static const int AggregatedRelativeTotalTime_HASH = HashingUtils::HashString("AggregatedRelativeTotalTime"); + static constexpr uint32_t AggregatedRelativeTotalTime_HASH = ConstExprHashingUtils::HashString("AggregatedRelativeTotalTime"); MetricType GetMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AggregatedRelativeTotalTime_HASH) { return MetricType::AggregatedRelativeTotalTime; diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/OrderBy.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/OrderBy.cpp index fd3d8592997..f8725facea4 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/OrderBy.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/model/OrderBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderByMapper { - static const int TimestampDescending_HASH = HashingUtils::HashString("TimestampDescending"); - static const int TimestampAscending_HASH = HashingUtils::HashString("TimestampAscending"); + static constexpr uint32_t TimestampDescending_HASH = ConstExprHashingUtils::HashString("TimestampDescending"); + static constexpr uint32_t TimestampAscending_HASH = ConstExprHashingUtils::HashString("TimestampAscending"); OrderBy GetOrderByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TimestampDescending_HASH) { return OrderBy::TimestampDescending; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineErrors.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineErrors.cpp index f6f71ecb0f6..8c6dc4bd7c7 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineErrors.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineErrors.cpp @@ -18,45 +18,45 @@ namespace CodePipeline namespace CodePipelineErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int DUPLICATED_STOP_REQUEST_HASH = HashingUtils::HashString("DuplicatedStopRequestException"); -static const int INVALID_NONCE_HASH = HashingUtils::HashString("InvalidNonceException"); -static const int INVALID_CLIENT_TOKEN_HASH = HashingUtils::HashString("InvalidClientTokenException"); -static const int NOT_LATEST_PIPELINE_EXECUTION_HASH = HashingUtils::HashString("NotLatestPipelineExecutionException"); -static const int INVALID_BLOCKER_DECLARATION_HASH = HashingUtils::HashString("InvalidBlockerDeclarationException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_ACTION_DECLARATION_HASH = HashingUtils::HashString("InvalidActionDeclarationException"); -static const int REQUEST_FAILED_HASH = HashingUtils::HashString("RequestFailedException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int PIPELINE_NAME_IN_USE_HASH = HashingUtils::HashString("PipelineNameInUseException"); -static const int APPROVAL_ALREADY_COMPLETED_HASH = HashingUtils::HashString("ApprovalAlreadyCompletedException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_STRUCTURE_HASH = HashingUtils::HashString("InvalidStructureException"); -static const int PIPELINE_VERSION_NOT_FOUND_HASH = HashingUtils::HashString("PipelineVersionNotFoundException"); -static const int INVALID_WEBHOOK_FILTER_PATTERN_HASH = HashingUtils::HashString("InvalidWebhookFilterPatternException"); -static const int PIPELINE_NOT_FOUND_HASH = HashingUtils::HashString("PipelineNotFoundException"); -static const int OUTPUT_VARIABLES_SIZE_EXCEEDED_HASH = HashingUtils::HashString("OutputVariablesSizeExceededException"); -static const int ACTION_TYPE_NOT_FOUND_HASH = HashingUtils::HashString("ActionTypeNotFoundException"); -static const int INVALID_TAGS_HASH = HashingUtils::HashString("InvalidTagsException"); -static const int INVALID_APPROVAL_TOKEN_HASH = HashingUtils::HashString("InvalidApprovalTokenException"); -static const int JOB_NOT_FOUND_HASH = HashingUtils::HashString("JobNotFoundException"); -static const int INVALID_JOB_HASH = HashingUtils::HashString("InvalidJobException"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArnException"); -static const int INVALID_JOB_STATE_HASH = HashingUtils::HashString("InvalidJobStateException"); -static const int PIPELINE_EXECUTION_NOT_STOPPABLE_HASH = HashingUtils::HashString("PipelineExecutionNotStoppableException"); -static const int PIPELINE_EXECUTION_NOT_FOUND_HASH = HashingUtils::HashString("PipelineExecutionNotFoundException"); -static const int INVALID_WEBHOOK_AUTHENTICATION_PARAMETERS_HASH = HashingUtils::HashString("InvalidWebhookAuthenticationParametersException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int WEBHOOK_NOT_FOUND_HASH = HashingUtils::HashString("WebhookNotFoundException"); -static const int INVALID_STAGE_DECLARATION_HASH = HashingUtils::HashString("InvalidStageDeclarationException"); -static const int STAGE_NOT_FOUND_HASH = HashingUtils::HashString("StageNotFoundException"); -static const int STAGE_NOT_RETRYABLE_HASH = HashingUtils::HashString("StageNotRetryableException"); -static const int ACTION_NOT_FOUND_HASH = HashingUtils::HashString("ActionNotFoundException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t DUPLICATED_STOP_REQUEST_HASH = ConstExprHashingUtils::HashString("DuplicatedStopRequestException"); +static constexpr uint32_t INVALID_NONCE_HASH = ConstExprHashingUtils::HashString("InvalidNonceException"); +static constexpr uint32_t INVALID_CLIENT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidClientTokenException"); +static constexpr uint32_t NOT_LATEST_PIPELINE_EXECUTION_HASH = ConstExprHashingUtils::HashString("NotLatestPipelineExecutionException"); +static constexpr uint32_t INVALID_BLOCKER_DECLARATION_HASH = ConstExprHashingUtils::HashString("InvalidBlockerDeclarationException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_ACTION_DECLARATION_HASH = ConstExprHashingUtils::HashString("InvalidActionDeclarationException"); +static constexpr uint32_t REQUEST_FAILED_HASH = ConstExprHashingUtils::HashString("RequestFailedException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t PIPELINE_NAME_IN_USE_HASH = ConstExprHashingUtils::HashString("PipelineNameInUseException"); +static constexpr uint32_t APPROVAL_ALREADY_COMPLETED_HASH = ConstExprHashingUtils::HashString("ApprovalAlreadyCompletedException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_STRUCTURE_HASH = ConstExprHashingUtils::HashString("InvalidStructureException"); +static constexpr uint32_t PIPELINE_VERSION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PipelineVersionNotFoundException"); +static constexpr uint32_t INVALID_WEBHOOK_FILTER_PATTERN_HASH = ConstExprHashingUtils::HashString("InvalidWebhookFilterPatternException"); +static constexpr uint32_t PIPELINE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PipelineNotFoundException"); +static constexpr uint32_t OUTPUT_VARIABLES_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OutputVariablesSizeExceededException"); +static constexpr uint32_t ACTION_TYPE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ActionTypeNotFoundException"); +static constexpr uint32_t INVALID_TAGS_HASH = ConstExprHashingUtils::HashString("InvalidTagsException"); +static constexpr uint32_t INVALID_APPROVAL_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidApprovalTokenException"); +static constexpr uint32_t JOB_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("JobNotFoundException"); +static constexpr uint32_t INVALID_JOB_HASH = ConstExprHashingUtils::HashString("InvalidJobException"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); +static constexpr uint32_t INVALID_JOB_STATE_HASH = ConstExprHashingUtils::HashString("InvalidJobStateException"); +static constexpr uint32_t PIPELINE_EXECUTION_NOT_STOPPABLE_HASH = ConstExprHashingUtils::HashString("PipelineExecutionNotStoppableException"); +static constexpr uint32_t PIPELINE_EXECUTION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PipelineExecutionNotFoundException"); +static constexpr uint32_t INVALID_WEBHOOK_AUTHENTICATION_PARAMETERS_HASH = ConstExprHashingUtils::HashString("InvalidWebhookAuthenticationParametersException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t WEBHOOK_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("WebhookNotFoundException"); +static constexpr uint32_t INVALID_STAGE_DECLARATION_HASH = ConstExprHashingUtils::HashString("InvalidStageDeclarationException"); +static constexpr uint32_t STAGE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StageNotFoundException"); +static constexpr uint32_t STAGE_NOT_RETRYABLE_HASH = ConstExprHashingUtils::HashString("StageNotRetryableException"); +static constexpr uint32_t ACTION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ActionNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionCategory.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionCategory.cpp index 9f5ae7f75d5..fba77208b0b 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionCategory.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionCategory.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ActionCategoryMapper { - static const int Source_HASH = HashingUtils::HashString("Source"); - static const int Build_HASH = HashingUtils::HashString("Build"); - static const int Deploy_HASH = HashingUtils::HashString("Deploy"); - static const int Test_HASH = HashingUtils::HashString("Test"); - static const int Invoke_HASH = HashingUtils::HashString("Invoke"); - static const int Approval_HASH = HashingUtils::HashString("Approval"); + static constexpr uint32_t Source_HASH = ConstExprHashingUtils::HashString("Source"); + static constexpr uint32_t Build_HASH = ConstExprHashingUtils::HashString("Build"); + static constexpr uint32_t Deploy_HASH = ConstExprHashingUtils::HashString("Deploy"); + static constexpr uint32_t Test_HASH = ConstExprHashingUtils::HashString("Test"); + static constexpr uint32_t Invoke_HASH = ConstExprHashingUtils::HashString("Invoke"); + static constexpr uint32_t Approval_HASH = ConstExprHashingUtils::HashString("Approval"); ActionCategory GetActionCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Source_HASH) { return ActionCategory::Source; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionConfigurationPropertyType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionConfigurationPropertyType.cpp index 1c82c2d539c..6c2cc62e576 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionConfigurationPropertyType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionConfigurationPropertyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionConfigurationPropertyTypeMapper { - static const int String_HASH = HashingUtils::HashString("String"); - static const int Number_HASH = HashingUtils::HashString("Number"); - static const int Boolean_HASH = HashingUtils::HashString("Boolean"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t Number_HASH = ConstExprHashingUtils::HashString("Number"); + static constexpr uint32_t Boolean_HASH = ConstExprHashingUtils::HashString("Boolean"); ActionConfigurationPropertyType GetActionConfigurationPropertyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == String_HASH) { return ActionConfigurationPropertyType::String; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionExecutionStatus.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionExecutionStatus.cpp index 5e5315b2791..03899eb8640 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionExecutionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActionExecutionStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Abandoned_HASH = HashingUtils::HashString("Abandoned"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Abandoned_HASH = ConstExprHashingUtils::HashString("Abandoned"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ActionExecutionStatus GetActionExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ActionExecutionStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp index 96792946631..b43a1526b6b 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionOwnerMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int ThirdParty_HASH = HashingUtils::HashString("ThirdParty"); - static const int Custom_HASH = HashingUtils::HashString("Custom"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t ThirdParty_HASH = ConstExprHashingUtils::HashString("ThirdParty"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); ActionOwner GetActionOwnerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return ActionOwner::AWS; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ApprovalStatus.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ApprovalStatus.cpp index 476d8cdd69f..696b1541f7b 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ApprovalStatus.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ApprovalStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApprovalStatusMapper { - static const int Approved_HASH = HashingUtils::HashString("Approved"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); + static constexpr uint32_t Approved_HASH = ConstExprHashingUtils::HashString("Approved"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); ApprovalStatus GetApprovalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Approved_HASH) { return ApprovalStatus::Approved; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactLocationType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactLocationType.cpp index e546d3bf98a..f02d72c03ea 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactLocationType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactLocationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ArtifactLocationTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); ArtifactLocationType GetArtifactLocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return ArtifactLocationType::S3; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactStoreType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactStoreType.cpp index 8afee97047d..ef94bcf1a52 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactStoreType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ArtifactStoreType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ArtifactStoreTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); ArtifactStoreType GetArtifactStoreTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return ArtifactStoreType::S3; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/BlockerType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/BlockerType.cpp index cbab27a418b..1955b4081b0 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/BlockerType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/BlockerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BlockerTypeMapper { - static const int Schedule_HASH = HashingUtils::HashString("Schedule"); + static constexpr uint32_t Schedule_HASH = ConstExprHashingUtils::HashString("Schedule"); BlockerType GetBlockerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Schedule_HASH) { return BlockerType::Schedule; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/EncryptionKeyType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/EncryptionKeyType.cpp index b5d9e4b8ef6..67c539e3009 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/EncryptionKeyType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/EncryptionKeyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncryptionKeyTypeMapper { - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionKeyType GetEncryptionKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KMS_HASH) { return EncryptionKeyType::KMS; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/ExecutorType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/ExecutorType.cpp index 8267c9238e6..4b0862bed74 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/ExecutorType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/ExecutorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExecutorTypeMapper { - static const int JobWorker_HASH = HashingUtils::HashString("JobWorker"); - static const int Lambda_HASH = HashingUtils::HashString("Lambda"); + static constexpr uint32_t JobWorker_HASH = ConstExprHashingUtils::HashString("JobWorker"); + static constexpr uint32_t Lambda_HASH = ConstExprHashingUtils::HashString("Lambda"); ExecutorType GetExecutorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JobWorker_HASH) { return ExecutorType::JobWorker; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/FailureType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/FailureType.cpp index dcad9ea7b0b..02d7365f29a 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/FailureType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/FailureType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FailureTypeMapper { - static const int JobFailed_HASH = HashingUtils::HashString("JobFailed"); - static const int ConfigurationError_HASH = HashingUtils::HashString("ConfigurationError"); - static const int PermissionError_HASH = HashingUtils::HashString("PermissionError"); - static const int RevisionOutOfSync_HASH = HashingUtils::HashString("RevisionOutOfSync"); - static const int RevisionUnavailable_HASH = HashingUtils::HashString("RevisionUnavailable"); - static const int SystemUnavailable_HASH = HashingUtils::HashString("SystemUnavailable"); + static constexpr uint32_t JobFailed_HASH = ConstExprHashingUtils::HashString("JobFailed"); + static constexpr uint32_t ConfigurationError_HASH = ConstExprHashingUtils::HashString("ConfigurationError"); + static constexpr uint32_t PermissionError_HASH = ConstExprHashingUtils::HashString("PermissionError"); + static constexpr uint32_t RevisionOutOfSync_HASH = ConstExprHashingUtils::HashString("RevisionOutOfSync"); + static constexpr uint32_t RevisionUnavailable_HASH = ConstExprHashingUtils::HashString("RevisionUnavailable"); + static constexpr uint32_t SystemUnavailable_HASH = ConstExprHashingUtils::HashString("SystemUnavailable"); FailureType GetFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JobFailed_HASH) { return FailureType::JobFailed; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/JobStatus.cpp index 50b78de3810..402396904d7 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/JobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobStatusMapper { - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Queued_HASH = HashingUtils::HashString("Queued"); - static const int Dispatched_HASH = HashingUtils::HashString("Dispatched"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Queued_HASH = ConstExprHashingUtils::HashString("Queued"); + static constexpr uint32_t Dispatched_HASH = ConstExprHashingUtils::HashString("Dispatched"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Created_HASH) { return JobStatus::Created; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/PipelineExecutionStatus.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/PipelineExecutionStatus.cpp index 6967a152363..3573774b752 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/PipelineExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/PipelineExecutionStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PipelineExecutionStatusMapper { - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Superseded_HASH = HashingUtils::HashString("Superseded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Superseded_HASH = ConstExprHashingUtils::HashString("Superseded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); PipelineExecutionStatus GetPipelineExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Cancelled_HASH) { return PipelineExecutionStatus::Cancelled; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/StageExecutionStatus.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/StageExecutionStatus.cpp index c68fb167b61..57e1df30520 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/StageExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/StageExecutionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StageExecutionStatusMapper { - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); StageExecutionStatus GetStageExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Cancelled_HASH) { return StageExecutionStatus::Cancelled; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/StageRetryMode.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/StageRetryMode.cpp index a8403dbe4a9..cfd785f4ccb 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/StageRetryMode.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/StageRetryMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StageRetryModeMapper { - static const int FAILED_ACTIONS_HASH = HashingUtils::HashString("FAILED_ACTIONS"); + static constexpr uint32_t FAILED_ACTIONS_HASH = ConstExprHashingUtils::HashString("FAILED_ACTIONS"); StageRetryMode GetStageRetryModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_ACTIONS_HASH) { return StageRetryMode::FAILED_ACTIONS; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/StageTransitionType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/StageTransitionType.cpp index f5e7714c1b8..f641c595320 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/StageTransitionType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/StageTransitionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StageTransitionTypeMapper { - static const int Inbound_HASH = HashingUtils::HashString("Inbound"); - static const int Outbound_HASH = HashingUtils::HashString("Outbound"); + static constexpr uint32_t Inbound_HASH = ConstExprHashingUtils::HashString("Inbound"); + static constexpr uint32_t Outbound_HASH = ConstExprHashingUtils::HashString("Outbound"); StageTransitionType GetStageTransitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Inbound_HASH) { return StageTransitionType::Inbound; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/TriggerType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/TriggerType.cpp index e724d0ee09a..86bec5eeb21 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/TriggerType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/TriggerType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TriggerTypeMapper { - static const int CreatePipeline_HASH = HashingUtils::HashString("CreatePipeline"); - static const int StartPipelineExecution_HASH = HashingUtils::HashString("StartPipelineExecution"); - static const int PollForSourceChanges_HASH = HashingUtils::HashString("PollForSourceChanges"); - static const int Webhook_HASH = HashingUtils::HashString("Webhook"); - static const int CloudWatchEvent_HASH = HashingUtils::HashString("CloudWatchEvent"); - static const int PutActionRevision_HASH = HashingUtils::HashString("PutActionRevision"); + static constexpr uint32_t CreatePipeline_HASH = ConstExprHashingUtils::HashString("CreatePipeline"); + static constexpr uint32_t StartPipelineExecution_HASH = ConstExprHashingUtils::HashString("StartPipelineExecution"); + static constexpr uint32_t PollForSourceChanges_HASH = ConstExprHashingUtils::HashString("PollForSourceChanges"); + static constexpr uint32_t Webhook_HASH = ConstExprHashingUtils::HashString("Webhook"); + static constexpr uint32_t CloudWatchEvent_HASH = ConstExprHashingUtils::HashString("CloudWatchEvent"); + static constexpr uint32_t PutActionRevision_HASH = ConstExprHashingUtils::HashString("PutActionRevision"); TriggerType GetTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreatePipeline_HASH) { return TriggerType::CreatePipeline; diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/model/WebhookAuthenticationType.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/model/WebhookAuthenticationType.cpp index 6d9659f4db9..d234a3d1e89 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/model/WebhookAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/model/WebhookAuthenticationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WebhookAuthenticationTypeMapper { - static const int GITHUB_HMAC_HASH = HashingUtils::HashString("GITHUB_HMAC"); - static const int IP_HASH = HashingUtils::HashString("IP"); - static const int UNAUTHENTICATED_HASH = HashingUtils::HashString("UNAUTHENTICATED"); + static constexpr uint32_t GITHUB_HMAC_HASH = ConstExprHashingUtils::HashString("GITHUB_HMAC"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); + static constexpr uint32_t UNAUTHENTICATED_HASH = ConstExprHashingUtils::HashString("UNAUTHENTICATED"); WebhookAuthenticationType GetWebhookAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HMAC_HASH) { return WebhookAuthenticationType::GITHUB_HMAC; diff --git a/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsErrors.cpp b/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsErrors.cpp index 2375c4321be..d8f0264ec72 100644 --- a/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsErrors.cpp +++ b/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsErrors.cpp @@ -18,15 +18,15 @@ namespace CodeStarconnections namespace CodeStarconnectionsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-codestar-connections/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-codestar-connections/source/model/ConnectionStatus.cpp index 66a417bef0b..4e0452976a6 100644 --- a/generated/src/aws-cpp-sdk-codestar-connections/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-codestar-connections/source/model/ConnectionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ConnectionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-codestar-connections/source/model/ProviderType.cpp b/generated/src/aws-cpp-sdk-codestar-connections/source/model/ProviderType.cpp index b1fa52fdaf0..fb9bc4d1a65 100644 --- a/generated/src/aws-cpp-sdk-codestar-connections/source/model/ProviderType.cpp +++ b/generated/src/aws-cpp-sdk-codestar-connections/source/model/ProviderType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProviderTypeMapper { - static const int Bitbucket_HASH = HashingUtils::HashString("Bitbucket"); - static const int GitHub_HASH = HashingUtils::HashString("GitHub"); - static const int GitHubEnterpriseServer_HASH = HashingUtils::HashString("GitHubEnterpriseServer"); - static const int GitLab_HASH = HashingUtils::HashString("GitLab"); + static constexpr uint32_t Bitbucket_HASH = ConstExprHashingUtils::HashString("Bitbucket"); + static constexpr uint32_t GitHub_HASH = ConstExprHashingUtils::HashString("GitHub"); + static constexpr uint32_t GitHubEnterpriseServer_HASH = ConstExprHashingUtils::HashString("GitHubEnterpriseServer"); + static constexpr uint32_t GitLab_HASH = ConstExprHashingUtils::HashString("GitLab"); ProviderType GetProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Bitbucket_HASH) { return ProviderType::Bitbucket; diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsErrors.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsErrors.cpp index 5dfc27f4814..b2a49660842 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsErrors.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsErrors.cpp @@ -18,16 +18,16 @@ namespace CodeStarNotifications namespace CodeStarNotificationsErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONFIGURATION_HASH = HashingUtils::HashString("ConfigurationException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONFIGURATION_HASH = ConstExprHashingUtils::HashString("ConfigurationException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/DetailType.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/DetailType.cpp index ed6d138459a..a6a733cb316 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/DetailType.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/DetailType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DetailTypeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int FULL_HASH = HashingUtils::HashString("FULL"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); DetailType GetDetailTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return DetailType::BASIC; diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListEventTypesFilterName.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListEventTypesFilterName.cpp index d49e65fa1f4..b1bc6c63bd1 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListEventTypesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListEventTypesFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListEventTypesFilterNameMapper { - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); - static const int SERVICE_NAME_HASH = HashingUtils::HashString("SERVICE_NAME"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t SERVICE_NAME_HASH = ConstExprHashingUtils::HashString("SERVICE_NAME"); ListEventTypesFilterName GetListEventTypesFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_TYPE_HASH) { return ListEventTypesFilterName::RESOURCE_TYPE; diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListNotificationRulesFilterName.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListNotificationRulesFilterName.cpp index 4f893af8508..2173a9bb360 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListNotificationRulesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListNotificationRulesFilterName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListNotificationRulesFilterNameMapper { - static const int EVENT_TYPE_ID_HASH = HashingUtils::HashString("EVENT_TYPE_ID"); - static const int CREATED_BY_HASH = HashingUtils::HashString("CREATED_BY"); - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int TARGET_ADDRESS_HASH = HashingUtils::HashString("TARGET_ADDRESS"); + static constexpr uint32_t EVENT_TYPE_ID_HASH = ConstExprHashingUtils::HashString("EVENT_TYPE_ID"); + static constexpr uint32_t CREATED_BY_HASH = ConstExprHashingUtils::HashString("CREATED_BY"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t TARGET_ADDRESS_HASH = ConstExprHashingUtils::HashString("TARGET_ADDRESS"); ListNotificationRulesFilterName GetListNotificationRulesFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_TYPE_ID_HASH) { return ListNotificationRulesFilterName::EVENT_TYPE_ID; diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListTargetsFilterName.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListTargetsFilterName.cpp index ce9f959374f..590f0880166 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListTargetsFilterName.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/ListTargetsFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListTargetsFilterNameMapper { - static const int TARGET_TYPE_HASH = HashingUtils::HashString("TARGET_TYPE"); - static const int TARGET_ADDRESS_HASH = HashingUtils::HashString("TARGET_ADDRESS"); - static const int TARGET_STATUS_HASH = HashingUtils::HashString("TARGET_STATUS"); + static constexpr uint32_t TARGET_TYPE_HASH = ConstExprHashingUtils::HashString("TARGET_TYPE"); + static constexpr uint32_t TARGET_ADDRESS_HASH = ConstExprHashingUtils::HashString("TARGET_ADDRESS"); + static constexpr uint32_t TARGET_STATUS_HASH = ConstExprHashingUtils::HashString("TARGET_STATUS"); ListTargetsFilterName GetListTargetsFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TARGET_TYPE_HASH) { return ListTargetsFilterName::TARGET_TYPE; diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/NotificationRuleStatus.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/NotificationRuleStatus.cpp index 40579f1bf83..b4aecf05611 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/NotificationRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/NotificationRuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationRuleStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); NotificationRuleStatus GetNotificationRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return NotificationRuleStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/TargetStatus.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/TargetStatus.cpp index ce941fe4bae..59d18036235 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/model/TargetStatus.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/model/TargetStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TargetStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UNREACHABLE_HASH = HashingUtils::HashString("UNREACHABLE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UNREACHABLE_HASH = ConstExprHashingUtils::HashString("UNREACHABLE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); TargetStatus GetTargetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return TargetStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-codestar/source/CodeStarErrors.cpp b/generated/src/aws-cpp-sdk-codestar/source/CodeStarErrors.cpp index 9534aaf27c3..0c22f364908 100644 --- a/generated/src/aws-cpp-sdk-codestar/source/CodeStarErrors.cpp +++ b/generated/src/aws-cpp-sdk-codestar/source/CodeStarErrors.cpp @@ -18,23 +18,23 @@ namespace CodeStar namespace CodeStarErrorMapper { -static const int PROJECT_CONFIGURATION_HASH = HashingUtils::HashString("ProjectConfigurationException"); -static const int USER_PROFILE_NOT_FOUND_HASH = HashingUtils::HashString("UserProfileNotFoundException"); -static const int PROJECT_CREATION_FAILED_HASH = HashingUtils::HashString("ProjectCreationFailedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int PROJECT_NOT_FOUND_HASH = HashingUtils::HashString("ProjectNotFoundException"); -static const int TEAM_MEMBER_ALREADY_ASSOCIATED_HASH = HashingUtils::HashString("TeamMemberAlreadyAssociatedException"); -static const int USER_PROFILE_ALREADY_EXISTS_HASH = HashingUtils::HashString("UserProfileAlreadyExistsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int TEAM_MEMBER_NOT_FOUND_HASH = HashingUtils::HashString("TeamMemberNotFoundException"); -static const int INVALID_SERVICE_ROLE_HASH = HashingUtils::HashString("InvalidServiceRoleException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int PROJECT_ALREADY_EXISTS_HASH = HashingUtils::HashString("ProjectAlreadyExistsException"); +static constexpr uint32_t PROJECT_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("ProjectConfigurationException"); +static constexpr uint32_t USER_PROFILE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("UserProfileNotFoundException"); +static constexpr uint32_t PROJECT_CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("ProjectCreationFailedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t PROJECT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ProjectNotFoundException"); +static constexpr uint32_t TEAM_MEMBER_ALREADY_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("TeamMemberAlreadyAssociatedException"); +static constexpr uint32_t USER_PROFILE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("UserProfileAlreadyExistsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t TEAM_MEMBER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TeamMemberNotFoundException"); +static constexpr uint32_t INVALID_SERVICE_ROLE_HASH = ConstExprHashingUtils::HashString("InvalidServiceRoleException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t PROJECT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ProjectAlreadyExistsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == PROJECT_CONFIGURATION_HASH) { diff --git a/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityErrors.cpp b/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityErrors.cpp index 8cc0979f06e..7c1642e0371 100644 --- a/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityErrors.cpp +++ b/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityErrors.cpp @@ -18,21 +18,21 @@ namespace CognitoIdentity namespace CognitoIdentityErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int EXTERNAL_SERVICE_HASH = HashingUtils::HashString("ExternalServiceException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int INVALID_IDENTITY_POOL_CONFIGURATION_HASH = HashingUtils::HashString("InvalidIdentityPoolConfigurationException"); -static const int DEVELOPER_USER_ALREADY_REGISTERED_HASH = HashingUtils::HashString("DeveloperUserAlreadyRegisteredException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t EXTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("ExternalServiceException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INVALID_IDENTITY_POOL_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidIdentityPoolConfigurationException"); +static constexpr uint32_t DEVELOPER_USER_ALREADY_REGISTERED_HASH = ConstExprHashingUtils::HashString("DeveloperUserAlreadyRegisteredException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-cognito-identity/source/model/AmbiguousRoleResolutionType.cpp b/generated/src/aws-cpp-sdk-cognito-identity/source/model/AmbiguousRoleResolutionType.cpp index 101f94a6b4f..32f97bceeae 100644 --- a/generated/src/aws-cpp-sdk-cognito-identity/source/model/AmbiguousRoleResolutionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-identity/source/model/AmbiguousRoleResolutionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AmbiguousRoleResolutionTypeMapper { - static const int AuthenticatedRole_HASH = HashingUtils::HashString("AuthenticatedRole"); - static const int Deny_HASH = HashingUtils::HashString("Deny"); + static constexpr uint32_t AuthenticatedRole_HASH = ConstExprHashingUtils::HashString("AuthenticatedRole"); + static constexpr uint32_t Deny_HASH = ConstExprHashingUtils::HashString("Deny"); AmbiguousRoleResolutionType GetAmbiguousRoleResolutionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AuthenticatedRole_HASH) { return AmbiguousRoleResolutionType::AuthenticatedRole; diff --git a/generated/src/aws-cpp-sdk-cognito-identity/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-cognito-identity/source/model/ErrorCode.cpp index 4b24422862f..ea4188c5a98 100644 --- a/generated/src/aws-cpp-sdk-cognito-identity/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-cognito-identity/source/model/ErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorCodeMapper { - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int InternalServerError_HASH = HashingUtils::HashString("InternalServerError"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t InternalServerError_HASH = ConstExprHashingUtils::HashString("InternalServerError"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccessDenied_HASH) { return ErrorCode::AccessDenied; diff --git a/generated/src/aws-cpp-sdk-cognito-identity/source/model/MappingRuleMatchType.cpp b/generated/src/aws-cpp-sdk-cognito-identity/source/model/MappingRuleMatchType.cpp index f2be6cbd4c3..bcdd0012576 100644 --- a/generated/src/aws-cpp-sdk-cognito-identity/source/model/MappingRuleMatchType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-identity/source/model/MappingRuleMatchType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MappingRuleMatchTypeMapper { - static const int Equals_HASH = HashingUtils::HashString("Equals"); - static const int Contains_HASH = HashingUtils::HashString("Contains"); - static const int StartsWith_HASH = HashingUtils::HashString("StartsWith"); - static const int NotEqual_HASH = HashingUtils::HashString("NotEqual"); + static constexpr uint32_t Equals_HASH = ConstExprHashingUtils::HashString("Equals"); + static constexpr uint32_t Contains_HASH = ConstExprHashingUtils::HashString("Contains"); + static constexpr uint32_t StartsWith_HASH = ConstExprHashingUtils::HashString("StartsWith"); + static constexpr uint32_t NotEqual_HASH = ConstExprHashingUtils::HashString("NotEqual"); MappingRuleMatchType GetMappingRuleMatchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equals_HASH) { return MappingRuleMatchType::Equals; diff --git a/generated/src/aws-cpp-sdk-cognito-identity/source/model/RoleMappingType.cpp b/generated/src/aws-cpp-sdk-cognito-identity/source/model/RoleMappingType.cpp index ebe5f04729c..62130fb6308 100644 --- a/generated/src/aws-cpp-sdk-cognito-identity/source/model/RoleMappingType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-identity/source/model/RoleMappingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RoleMappingTypeMapper { - static const int Token_HASH = HashingUtils::HashString("Token"); - static const int Rules_HASH = HashingUtils::HashString("Rules"); + static constexpr uint32_t Token_HASH = ConstExprHashingUtils::HashString("Token"); + static constexpr uint32_t Rules_HASH = ConstExprHashingUtils::HashString("Rules"); RoleMappingType GetRoleMappingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Token_HASH) { return RoleMappingType::Token; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderErrors.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderErrors.cpp index 3be4a594938..649463d75de 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderErrors.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderErrors.cpp @@ -18,51 +18,51 @@ namespace CognitoIdentityProvider namespace CognitoIdentityProviderErrorMapper { -static const int USER_NOT_FOUND_HASH = HashingUtils::HashString("UserNotFoundException"); -static const int ENABLE_SOFTWARE_TOKEN_M_F_A_HASH = HashingUtils::HashString("EnableSoftwareTokenMFAException"); -static const int UNSUPPORTED_USER_STATE_HASH = HashingUtils::HashString("UnsupportedUserStateException"); -static const int ALIAS_EXISTS_HASH = HashingUtils::HashString("AliasExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int M_F_A_METHOD_NOT_FOUND_HASH = HashingUtils::HashString("MFAMethodNotFoundException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int PASSWORD_RESET_REQUIRED_HASH = HashingUtils::HashString("PasswordResetRequiredException"); -static const int UNEXPECTED_LAMBDA_HASH = HashingUtils::HashString("UnexpectedLambdaException"); -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int INVALID_SMS_ROLE_TRUST_RELATIONSHIP_HASH = HashingUtils::HashString("InvalidSmsRoleTrustRelationshipException"); -static const int GROUP_EXISTS_HASH = HashingUtils::HashString("GroupExistsException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int USER_NOT_CONFIRMED_HASH = HashingUtils::HashString("UserNotConfirmedException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int DUPLICATE_PROVIDER_HASH = HashingUtils::HashString("DuplicateProviderException"); -static const int TOO_MANY_FAILED_ATTEMPTS_HASH = HashingUtils::HashString("TooManyFailedAttemptsException"); -static const int INVALID_SMS_ROLE_ACCESS_POLICY_HASH = HashingUtils::HashString("InvalidSmsRoleAccessPolicyException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_PASSWORD_HASH = HashingUtils::HashString("InvalidPasswordException"); -static const int INVALID_LAMBDA_RESPONSE_HASH = HashingUtils::HashString("InvalidLambdaResponseException"); -static const int EXPIRED_CODE_HASH = HashingUtils::HashString("ExpiredCodeException"); -static const int UNSUPPORTED_IDENTITY_PROVIDER_HASH = HashingUtils::HashString("UnsupportedIdentityProviderException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int CODE_MISMATCH_HASH = HashingUtils::HashString("CodeMismatchException"); -static const int INVALID_O_AUTH_FLOW_HASH = HashingUtils::HashString("InvalidOAuthFlowException"); -static const int USER_POOL_ADD_ON_NOT_ENABLED_HASH = HashingUtils::HashString("UserPoolAddOnNotEnabledException"); -static const int UNSUPPORTED_TOKEN_TYPE_HASH = HashingUtils::HashString("UnsupportedTokenTypeException"); -static const int USER_LAMBDA_VALIDATION_HASH = HashingUtils::HashString("UserLambdaValidationException"); -static const int CODE_DELIVERY_FAILURE_HASH = HashingUtils::HashString("CodeDeliveryFailureException"); -static const int INVALID_USER_POOL_CONFIGURATION_HASH = HashingUtils::HashString("InvalidUserPoolConfigurationException"); -static const int INVALID_EMAIL_ROLE_ACCESS_POLICY_HASH = HashingUtils::HashString("InvalidEmailRoleAccessPolicyException"); -static const int USERNAME_EXISTS_HASH = HashingUtils::HashString("UsernameExistsException"); -static const int SCOPE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ScopeDoesNotExistException"); -static const int USER_IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("UserImportInProgressException"); -static const int USER_POOL_TAGGING_HASH = HashingUtils::HashString("UserPoolTaggingException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int PRECONDITION_NOT_MET_HASH = HashingUtils::HashString("PreconditionNotMetException"); -static const int SOFTWARE_TOKEN_M_F_A_NOT_FOUND_HASH = HashingUtils::HashString("SoftwareTokenMFANotFoundException"); +static constexpr uint32_t USER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("UserNotFoundException"); +static constexpr uint32_t ENABLE_SOFTWARE_TOKEN_M_F_A_HASH = ConstExprHashingUtils::HashString("EnableSoftwareTokenMFAException"); +static constexpr uint32_t UNSUPPORTED_USER_STATE_HASH = ConstExprHashingUtils::HashString("UnsupportedUserStateException"); +static constexpr uint32_t ALIAS_EXISTS_HASH = ConstExprHashingUtils::HashString("AliasExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t M_F_A_METHOD_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("MFAMethodNotFoundException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t PASSWORD_RESET_REQUIRED_HASH = ConstExprHashingUtils::HashString("PasswordResetRequiredException"); +static constexpr uint32_t UNEXPECTED_LAMBDA_HASH = ConstExprHashingUtils::HashString("UnexpectedLambdaException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t INVALID_SMS_ROLE_TRUST_RELATIONSHIP_HASH = ConstExprHashingUtils::HashString("InvalidSmsRoleTrustRelationshipException"); +static constexpr uint32_t GROUP_EXISTS_HASH = ConstExprHashingUtils::HashString("GroupExistsException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t USER_NOT_CONFIRMED_HASH = ConstExprHashingUtils::HashString("UserNotConfirmedException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t DUPLICATE_PROVIDER_HASH = ConstExprHashingUtils::HashString("DuplicateProviderException"); +static constexpr uint32_t TOO_MANY_FAILED_ATTEMPTS_HASH = ConstExprHashingUtils::HashString("TooManyFailedAttemptsException"); +static constexpr uint32_t INVALID_SMS_ROLE_ACCESS_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidSmsRoleAccessPolicyException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_PASSWORD_HASH = ConstExprHashingUtils::HashString("InvalidPasswordException"); +static constexpr uint32_t INVALID_LAMBDA_RESPONSE_HASH = ConstExprHashingUtils::HashString("InvalidLambdaResponseException"); +static constexpr uint32_t EXPIRED_CODE_HASH = ConstExprHashingUtils::HashString("ExpiredCodeException"); +static constexpr uint32_t UNSUPPORTED_IDENTITY_PROVIDER_HASH = ConstExprHashingUtils::HashString("UnsupportedIdentityProviderException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t CODE_MISMATCH_HASH = ConstExprHashingUtils::HashString("CodeMismatchException"); +static constexpr uint32_t INVALID_O_AUTH_FLOW_HASH = ConstExprHashingUtils::HashString("InvalidOAuthFlowException"); +static constexpr uint32_t USER_POOL_ADD_ON_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("UserPoolAddOnNotEnabledException"); +static constexpr uint32_t UNSUPPORTED_TOKEN_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedTokenTypeException"); +static constexpr uint32_t USER_LAMBDA_VALIDATION_HASH = ConstExprHashingUtils::HashString("UserLambdaValidationException"); +static constexpr uint32_t CODE_DELIVERY_FAILURE_HASH = ConstExprHashingUtils::HashString("CodeDeliveryFailureException"); +static constexpr uint32_t INVALID_USER_POOL_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidUserPoolConfigurationException"); +static constexpr uint32_t INVALID_EMAIL_ROLE_ACCESS_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidEmailRoleAccessPolicyException"); +static constexpr uint32_t USERNAME_EXISTS_HASH = ConstExprHashingUtils::HashString("UsernameExistsException"); +static constexpr uint32_t SCOPE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ScopeDoesNotExistException"); +static constexpr uint32_t USER_IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UserImportInProgressException"); +static constexpr uint32_t USER_POOL_TAGGING_HASH = ConstExprHashingUtils::HashString("UserPoolTaggingException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t PRECONDITION_NOT_MET_HASH = ConstExprHashingUtils::HashString("PreconditionNotMetException"); +static constexpr uint32_t SOFTWARE_TOKEN_M_F_A_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SoftwareTokenMFANotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == USER_NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AccountTakeoverEventActionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AccountTakeoverEventActionType.cpp index 31041ec703b..4bb4b31ac5a 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AccountTakeoverEventActionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AccountTakeoverEventActionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AccountTakeoverEventActionTypeMapper { - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); - static const int MFA_IF_CONFIGURED_HASH = HashingUtils::HashString("MFA_IF_CONFIGURED"); - static const int MFA_REQUIRED_HASH = HashingUtils::HashString("MFA_REQUIRED"); - static const int NO_ACTION_HASH = HashingUtils::HashString("NO_ACTION"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); + static constexpr uint32_t MFA_IF_CONFIGURED_HASH = ConstExprHashingUtils::HashString("MFA_IF_CONFIGURED"); + static constexpr uint32_t MFA_REQUIRED_HASH = ConstExprHashingUtils::HashString("MFA_REQUIRED"); + static constexpr uint32_t NO_ACTION_HASH = ConstExprHashingUtils::HashString("NO_ACTION"); AccountTakeoverEventActionType GetAccountTakeoverEventActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLOCK_HASH) { return AccountTakeoverEventActionType::BLOCK; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AdvancedSecurityModeType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AdvancedSecurityModeType.cpp index cb4c76a7530..57ccd578bb4 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AdvancedSecurityModeType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AdvancedSecurityModeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AdvancedSecurityModeTypeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int AUDIT_HASH = HashingUtils::HashString("AUDIT"); - static const int ENFORCED_HASH = HashingUtils::HashString("ENFORCED"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t AUDIT_HASH = ConstExprHashingUtils::HashString("AUDIT"); + static constexpr uint32_t ENFORCED_HASH = ConstExprHashingUtils::HashString("ENFORCED"); AdvancedSecurityModeType GetAdvancedSecurityModeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return AdvancedSecurityModeType::OFF; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AliasAttributeType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AliasAttributeType.cpp index 82fdacaebfd..36a51e16338 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AliasAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AliasAttributeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AliasAttributeTypeMapper { - static const int phone_number_HASH = HashingUtils::HashString("phone_number"); - static const int email_HASH = HashingUtils::HashString("email"); - static const int preferred_username_HASH = HashingUtils::HashString("preferred_username"); + static constexpr uint32_t phone_number_HASH = ConstExprHashingUtils::HashString("phone_number"); + static constexpr uint32_t email_HASH = ConstExprHashingUtils::HashString("email"); + static constexpr uint32_t preferred_username_HASH = ConstExprHashingUtils::HashString("preferred_username"); AliasAttributeType GetAliasAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == phone_number_HASH) { return AliasAttributeType::phone_number; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AttributeDataType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AttributeDataType.cpp index 173bce927f5..59478fdfc6f 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AttributeDataType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AttributeDataType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AttributeDataTypeMapper { - static const int String_HASH = HashingUtils::HashString("String"); - static const int Number_HASH = HashingUtils::HashString("Number"); - static const int DateTime_HASH = HashingUtils::HashString("DateTime"); - static const int Boolean_HASH = HashingUtils::HashString("Boolean"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t Number_HASH = ConstExprHashingUtils::HashString("Number"); + static constexpr uint32_t DateTime_HASH = ConstExprHashingUtils::HashString("DateTime"); + static constexpr uint32_t Boolean_HASH = ConstExprHashingUtils::HashString("Boolean"); AttributeDataType GetAttributeDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == String_HASH) { return AttributeDataType::String; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AuthFlowType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AuthFlowType.cpp index 5ed987e56d9..3307f63a6a8 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/AuthFlowType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/AuthFlowType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AuthFlowTypeMapper { - static const int USER_SRP_AUTH_HASH = HashingUtils::HashString("USER_SRP_AUTH"); - static const int REFRESH_TOKEN_AUTH_HASH = HashingUtils::HashString("REFRESH_TOKEN_AUTH"); - static const int REFRESH_TOKEN_HASH = HashingUtils::HashString("REFRESH_TOKEN"); - static const int CUSTOM_AUTH_HASH = HashingUtils::HashString("CUSTOM_AUTH"); - static const int ADMIN_NO_SRP_AUTH_HASH = HashingUtils::HashString("ADMIN_NO_SRP_AUTH"); - static const int USER_PASSWORD_AUTH_HASH = HashingUtils::HashString("USER_PASSWORD_AUTH"); - static const int ADMIN_USER_PASSWORD_AUTH_HASH = HashingUtils::HashString("ADMIN_USER_PASSWORD_AUTH"); + static constexpr uint32_t USER_SRP_AUTH_HASH = ConstExprHashingUtils::HashString("USER_SRP_AUTH"); + static constexpr uint32_t REFRESH_TOKEN_AUTH_HASH = ConstExprHashingUtils::HashString("REFRESH_TOKEN_AUTH"); + static constexpr uint32_t REFRESH_TOKEN_HASH = ConstExprHashingUtils::HashString("REFRESH_TOKEN"); + static constexpr uint32_t CUSTOM_AUTH_HASH = ConstExprHashingUtils::HashString("CUSTOM_AUTH"); + static constexpr uint32_t ADMIN_NO_SRP_AUTH_HASH = ConstExprHashingUtils::HashString("ADMIN_NO_SRP_AUTH"); + static constexpr uint32_t USER_PASSWORD_AUTH_HASH = ConstExprHashingUtils::HashString("USER_PASSWORD_AUTH"); + static constexpr uint32_t ADMIN_USER_PASSWORD_AUTH_HASH = ConstExprHashingUtils::HashString("ADMIN_USER_PASSWORD_AUTH"); AuthFlowType GetAuthFlowTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_SRP_AUTH_HASH) { return AuthFlowType::USER_SRP_AUTH; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeName.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeName.cpp index 0978a6eb59e..1ce0ef589a4 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeName.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChallengeNameMapper { - static const int Password_HASH = HashingUtils::HashString("Password"); - static const int Mfa_HASH = HashingUtils::HashString("Mfa"); + static constexpr uint32_t Password_HASH = ConstExprHashingUtils::HashString("Password"); + static constexpr uint32_t Mfa_HASH = ConstExprHashingUtils::HashString("Mfa"); ChallengeName GetChallengeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Password_HASH) { return ChallengeName::Password; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeNameType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeNameType.cpp index 6234572fd61..b8b9a79439e 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeNameType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeNameType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ChallengeNameTypeMapper { - static const int SMS_MFA_HASH = HashingUtils::HashString("SMS_MFA"); - static const int SOFTWARE_TOKEN_MFA_HASH = HashingUtils::HashString("SOFTWARE_TOKEN_MFA"); - static const int SELECT_MFA_TYPE_HASH = HashingUtils::HashString("SELECT_MFA_TYPE"); - static const int MFA_SETUP_HASH = HashingUtils::HashString("MFA_SETUP"); - static const int PASSWORD_VERIFIER_HASH = HashingUtils::HashString("PASSWORD_VERIFIER"); - static const int CUSTOM_CHALLENGE_HASH = HashingUtils::HashString("CUSTOM_CHALLENGE"); - static const int DEVICE_SRP_AUTH_HASH = HashingUtils::HashString("DEVICE_SRP_AUTH"); - static const int DEVICE_PASSWORD_VERIFIER_HASH = HashingUtils::HashString("DEVICE_PASSWORD_VERIFIER"); - static const int ADMIN_NO_SRP_AUTH_HASH = HashingUtils::HashString("ADMIN_NO_SRP_AUTH"); - static const int NEW_PASSWORD_REQUIRED_HASH = HashingUtils::HashString("NEW_PASSWORD_REQUIRED"); + static constexpr uint32_t SMS_MFA_HASH = ConstExprHashingUtils::HashString("SMS_MFA"); + static constexpr uint32_t SOFTWARE_TOKEN_MFA_HASH = ConstExprHashingUtils::HashString("SOFTWARE_TOKEN_MFA"); + static constexpr uint32_t SELECT_MFA_TYPE_HASH = ConstExprHashingUtils::HashString("SELECT_MFA_TYPE"); + static constexpr uint32_t MFA_SETUP_HASH = ConstExprHashingUtils::HashString("MFA_SETUP"); + static constexpr uint32_t PASSWORD_VERIFIER_HASH = ConstExprHashingUtils::HashString("PASSWORD_VERIFIER"); + static constexpr uint32_t CUSTOM_CHALLENGE_HASH = ConstExprHashingUtils::HashString("CUSTOM_CHALLENGE"); + static constexpr uint32_t DEVICE_SRP_AUTH_HASH = ConstExprHashingUtils::HashString("DEVICE_SRP_AUTH"); + static constexpr uint32_t DEVICE_PASSWORD_VERIFIER_HASH = ConstExprHashingUtils::HashString("DEVICE_PASSWORD_VERIFIER"); + static constexpr uint32_t ADMIN_NO_SRP_AUTH_HASH = ConstExprHashingUtils::HashString("ADMIN_NO_SRP_AUTH"); + static constexpr uint32_t NEW_PASSWORD_REQUIRED_HASH = ConstExprHashingUtils::HashString("NEW_PASSWORD_REQUIRED"); ChallengeNameType GetChallengeNameTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMS_MFA_HASH) { return ChallengeNameType::SMS_MFA; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeResponse.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeResponse.cpp index 48de52c76b9..3a0b9c7cb48 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeResponse.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ChallengeResponse.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChallengeResponseMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failure_HASH = HashingUtils::HashString("Failure"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failure_HASH = ConstExprHashingUtils::HashString("Failure"); ChallengeResponse GetChallengeResponseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return ChallengeResponse::Success; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/CompromisedCredentialsEventActionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/CompromisedCredentialsEventActionType.cpp index ffcf5a8fea3..39983432bbd 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/CompromisedCredentialsEventActionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/CompromisedCredentialsEventActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompromisedCredentialsEventActionTypeMapper { - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); - static const int NO_ACTION_HASH = HashingUtils::HashString("NO_ACTION"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); + static constexpr uint32_t NO_ACTION_HASH = ConstExprHashingUtils::HashString("NO_ACTION"); CompromisedCredentialsEventActionType GetCompromisedCredentialsEventActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLOCK_HASH) { return CompromisedCredentialsEventActionType::BLOCK; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomEmailSenderLambdaVersionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomEmailSenderLambdaVersionType.cpp index cb82b4b1e18..40cbb86922a 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomEmailSenderLambdaVersionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomEmailSenderLambdaVersionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CustomEmailSenderLambdaVersionTypeMapper { - static const int V1_0_HASH = HashingUtils::HashString("V1_0"); + static constexpr uint32_t V1_0_HASH = ConstExprHashingUtils::HashString("V1_0"); CustomEmailSenderLambdaVersionType GetCustomEmailSenderLambdaVersionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V1_0_HASH) { return CustomEmailSenderLambdaVersionType::V1_0; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomSMSSenderLambdaVersionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomSMSSenderLambdaVersionType.cpp index 8f2c0f9852a..27dc2166cf3 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomSMSSenderLambdaVersionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/CustomSMSSenderLambdaVersionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CustomSMSSenderLambdaVersionTypeMapper { - static const int V1_0_HASH = HashingUtils::HashString("V1_0"); + static constexpr uint32_t V1_0_HASH = ConstExprHashingUtils::HashString("V1_0"); CustomSMSSenderLambdaVersionType GetCustomSMSSenderLambdaVersionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V1_0_HASH) { return CustomSMSSenderLambdaVersionType::V1_0; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DefaultEmailOptionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DefaultEmailOptionType.cpp index 4aba094f0e7..a4f83cc2537 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DefaultEmailOptionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DefaultEmailOptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultEmailOptionTypeMapper { - static const int CONFIRM_WITH_LINK_HASH = HashingUtils::HashString("CONFIRM_WITH_LINK"); - static const int CONFIRM_WITH_CODE_HASH = HashingUtils::HashString("CONFIRM_WITH_CODE"); + static constexpr uint32_t CONFIRM_WITH_LINK_HASH = ConstExprHashingUtils::HashString("CONFIRM_WITH_LINK"); + static constexpr uint32_t CONFIRM_WITH_CODE_HASH = ConstExprHashingUtils::HashString("CONFIRM_WITH_CODE"); DefaultEmailOptionType GetDefaultEmailOptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIRM_WITH_LINK_HASH) { return DefaultEmailOptionType::CONFIRM_WITH_LINK; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeletionProtectionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeletionProtectionType.cpp index 5afb1b6f32f..d140de84bf9 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeletionProtectionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeletionProtectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeletionProtectionTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); DeletionProtectionType GetDeletionProtectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DeletionProtectionType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeliveryMediumType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeliveryMediumType.cpp index eb700178359..05fda77b7d8 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeliveryMediumType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeliveryMediumType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeliveryMediumTypeMapper { - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); DeliveryMediumType GetDeliveryMediumTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMS_HASH) { return DeliveryMediumType::SMS; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeviceRememberedStatusType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeviceRememberedStatusType.cpp index 70e3f0acba2..ae5664aec4f 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeviceRememberedStatusType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DeviceRememberedStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceRememberedStatusTypeMapper { - static const int remembered_HASH = HashingUtils::HashString("remembered"); - static const int not_remembered_HASH = HashingUtils::HashString("not_remembered"); + static constexpr uint32_t remembered_HASH = ConstExprHashingUtils::HashString("remembered"); + static constexpr uint32_t not_remembered_HASH = ConstExprHashingUtils::HashString("not_remembered"); DeviceRememberedStatusType GetDeviceRememberedStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == remembered_HASH) { return DeviceRememberedStatusType::remembered; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DomainStatusType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DomainStatusType.cpp index 94805cafd74..ace0cfc9a39 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/DomainStatusType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/DomainStatusType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DomainStatusTypeMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DomainStatusType GetDomainStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DomainStatusType::CREATING; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EmailSendingAccountType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EmailSendingAccountType.cpp index 4d95617a3a2..06e810920ee 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EmailSendingAccountType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EmailSendingAccountType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EmailSendingAccountTypeMapper { - static const int COGNITO_DEFAULT_HASH = HashingUtils::HashString("COGNITO_DEFAULT"); - static const int DEVELOPER_HASH = HashingUtils::HashString("DEVELOPER"); + static constexpr uint32_t COGNITO_DEFAULT_HASH = ConstExprHashingUtils::HashString("COGNITO_DEFAULT"); + static constexpr uint32_t DEVELOPER_HASH = ConstExprHashingUtils::HashString("DEVELOPER"); EmailSendingAccountType GetEmailSendingAccountTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COGNITO_DEFAULT_HASH) { return EmailSendingAccountType::COGNITO_DEFAULT; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventFilterType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventFilterType.cpp index 657748bdb8c..77ff8c8103b 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventFilterType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventFilterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventFilterTypeMapper { - static const int SIGN_IN_HASH = HashingUtils::HashString("SIGN_IN"); - static const int PASSWORD_CHANGE_HASH = HashingUtils::HashString("PASSWORD_CHANGE"); - static const int SIGN_UP_HASH = HashingUtils::HashString("SIGN_UP"); + static constexpr uint32_t SIGN_IN_HASH = ConstExprHashingUtils::HashString("SIGN_IN"); + static constexpr uint32_t PASSWORD_CHANGE_HASH = ConstExprHashingUtils::HashString("PASSWORD_CHANGE"); + static constexpr uint32_t SIGN_UP_HASH = ConstExprHashingUtils::HashString("SIGN_UP"); EventFilterType GetEventFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIGN_IN_HASH) { return EventFilterType::SIGN_IN; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventResponseType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventResponseType.cpp index 936ae857851..d456491d01f 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventResponseType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventResponseType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventResponseTypeMapper { - static const int Pass_HASH = HashingUtils::HashString("Pass"); - static const int Fail_HASH = HashingUtils::HashString("Fail"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); + static constexpr uint32_t Pass_HASH = ConstExprHashingUtils::HashString("Pass"); + static constexpr uint32_t Fail_HASH = ConstExprHashingUtils::HashString("Fail"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); EventResponseType GetEventResponseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pass_HASH) { return EventResponseType::Pass; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventSourceName.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventSourceName.cpp index 25fad3e1fb1..4120e9b3853 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventSourceName.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventSourceName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventSourceNameMapper { - static const int userNotification_HASH = HashingUtils::HashString("userNotification"); + static constexpr uint32_t userNotification_HASH = ConstExprHashingUtils::HashString("userNotification"); EventSourceName GetEventSourceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == userNotification_HASH) { return EventSourceName::userNotification; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventType.cpp index a8ae996c29d..5199134659e 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/EventType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EventTypeMapper { - static const int SignIn_HASH = HashingUtils::HashString("SignIn"); - static const int SignUp_HASH = HashingUtils::HashString("SignUp"); - static const int ForgotPassword_HASH = HashingUtils::HashString("ForgotPassword"); - static const int PasswordChange_HASH = HashingUtils::HashString("PasswordChange"); - static const int ResendCode_HASH = HashingUtils::HashString("ResendCode"); + static constexpr uint32_t SignIn_HASH = ConstExprHashingUtils::HashString("SignIn"); + static constexpr uint32_t SignUp_HASH = ConstExprHashingUtils::HashString("SignUp"); + static constexpr uint32_t ForgotPassword_HASH = ConstExprHashingUtils::HashString("ForgotPassword"); + static constexpr uint32_t PasswordChange_HASH = ConstExprHashingUtils::HashString("PasswordChange"); + static constexpr uint32_t ResendCode_HASH = ConstExprHashingUtils::HashString("ResendCode"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SignIn_HASH) { return EventType::SignIn; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ExplicitAuthFlowsType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ExplicitAuthFlowsType.cpp index 7476cb63055..062151126ac 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/ExplicitAuthFlowsType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/ExplicitAuthFlowsType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ExplicitAuthFlowsTypeMapper { - static const int ADMIN_NO_SRP_AUTH_HASH = HashingUtils::HashString("ADMIN_NO_SRP_AUTH"); - static const int CUSTOM_AUTH_FLOW_ONLY_HASH = HashingUtils::HashString("CUSTOM_AUTH_FLOW_ONLY"); - static const int USER_PASSWORD_AUTH_HASH = HashingUtils::HashString("USER_PASSWORD_AUTH"); - static const int ALLOW_ADMIN_USER_PASSWORD_AUTH_HASH = HashingUtils::HashString("ALLOW_ADMIN_USER_PASSWORD_AUTH"); - static const int ALLOW_CUSTOM_AUTH_HASH = HashingUtils::HashString("ALLOW_CUSTOM_AUTH"); - static const int ALLOW_USER_PASSWORD_AUTH_HASH = HashingUtils::HashString("ALLOW_USER_PASSWORD_AUTH"); - static const int ALLOW_USER_SRP_AUTH_HASH = HashingUtils::HashString("ALLOW_USER_SRP_AUTH"); - static const int ALLOW_REFRESH_TOKEN_AUTH_HASH = HashingUtils::HashString("ALLOW_REFRESH_TOKEN_AUTH"); + static constexpr uint32_t ADMIN_NO_SRP_AUTH_HASH = ConstExprHashingUtils::HashString("ADMIN_NO_SRP_AUTH"); + static constexpr uint32_t CUSTOM_AUTH_FLOW_ONLY_HASH = ConstExprHashingUtils::HashString("CUSTOM_AUTH_FLOW_ONLY"); + static constexpr uint32_t USER_PASSWORD_AUTH_HASH = ConstExprHashingUtils::HashString("USER_PASSWORD_AUTH"); + static constexpr uint32_t ALLOW_ADMIN_USER_PASSWORD_AUTH_HASH = ConstExprHashingUtils::HashString("ALLOW_ADMIN_USER_PASSWORD_AUTH"); + static constexpr uint32_t ALLOW_CUSTOM_AUTH_HASH = ConstExprHashingUtils::HashString("ALLOW_CUSTOM_AUTH"); + static constexpr uint32_t ALLOW_USER_PASSWORD_AUTH_HASH = ConstExprHashingUtils::HashString("ALLOW_USER_PASSWORD_AUTH"); + static constexpr uint32_t ALLOW_USER_SRP_AUTH_HASH = ConstExprHashingUtils::HashString("ALLOW_USER_SRP_AUTH"); + static constexpr uint32_t ALLOW_REFRESH_TOKEN_AUTH_HASH = ConstExprHashingUtils::HashString("ALLOW_REFRESH_TOKEN_AUTH"); ExplicitAuthFlowsType GetExplicitAuthFlowsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADMIN_NO_SRP_AUTH_HASH) { return ExplicitAuthFlowsType::ADMIN_NO_SRP_AUTH; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/FeedbackValueType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/FeedbackValueType.cpp index 70ee94acac4..32216cfd8b6 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/FeedbackValueType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/FeedbackValueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeedbackValueTypeMapper { - static const int Valid_HASH = HashingUtils::HashString("Valid"); - static const int Invalid_HASH = HashingUtils::HashString("Invalid"); + static constexpr uint32_t Valid_HASH = ConstExprHashingUtils::HashString("Valid"); + static constexpr uint32_t Invalid_HASH = ConstExprHashingUtils::HashString("Invalid"); FeedbackValueType GetFeedbackValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Valid_HASH) { return FeedbackValueType::Valid; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/IdentityProviderTypeType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/IdentityProviderTypeType.cpp index cb48096f055..d0a1cc17de0 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/IdentityProviderTypeType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/IdentityProviderTypeType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IdentityProviderTypeTypeMapper { - static const int SAML_HASH = HashingUtils::HashString("SAML"); - static const int Facebook_HASH = HashingUtils::HashString("Facebook"); - static const int Google_HASH = HashingUtils::HashString("Google"); - static const int LoginWithAmazon_HASH = HashingUtils::HashString("LoginWithAmazon"); - static const int SignInWithApple_HASH = HashingUtils::HashString("SignInWithApple"); - static const int OIDC_HASH = HashingUtils::HashString("OIDC"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); + static constexpr uint32_t Facebook_HASH = ConstExprHashingUtils::HashString("Facebook"); + static constexpr uint32_t Google_HASH = ConstExprHashingUtils::HashString("Google"); + static constexpr uint32_t LoginWithAmazon_HASH = ConstExprHashingUtils::HashString("LoginWithAmazon"); + static constexpr uint32_t SignInWithApple_HASH = ConstExprHashingUtils::HashString("SignInWithApple"); + static constexpr uint32_t OIDC_HASH = ConstExprHashingUtils::HashString("OIDC"); IdentityProviderTypeType GetIdentityProviderTypeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_HASH) { return IdentityProviderTypeType::SAML; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/LogLevel.cpp index e96fff7685e..97bf1293ce6 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/LogLevel.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LogLevelMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LogLevel::ERROR_; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/MessageActionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/MessageActionType.cpp index 6d5d52075cb..0074cefcabb 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/MessageActionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/MessageActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageActionTypeMapper { - static const int RESEND_HASH = HashingUtils::HashString("RESEND"); - static const int SUPPRESS_HASH = HashingUtils::HashString("SUPPRESS"); + static constexpr uint32_t RESEND_HASH = ConstExprHashingUtils::HashString("RESEND"); + static constexpr uint32_t SUPPRESS_HASH = ConstExprHashingUtils::HashString("SUPPRESS"); MessageActionType GetMessageActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESEND_HASH) { return MessageActionType::RESEND; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/OAuthFlowType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/OAuthFlowType.cpp index f501b3953cb..fc0efefc092 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/OAuthFlowType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/OAuthFlowType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OAuthFlowTypeMapper { - static const int code_HASH = HashingUtils::HashString("code"); - static const int implicit_HASH = HashingUtils::HashString("implicit"); - static const int client_credentials_HASH = HashingUtils::HashString("client_credentials"); + static constexpr uint32_t code_HASH = ConstExprHashingUtils::HashString("code"); + static constexpr uint32_t implicit_HASH = ConstExprHashingUtils::HashString("implicit"); + static constexpr uint32_t client_credentials_HASH = ConstExprHashingUtils::HashString("client_credentials"); OAuthFlowType GetOAuthFlowTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == code_HASH) { return OAuthFlowType::code; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/PreventUserExistenceErrorTypes.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/PreventUserExistenceErrorTypes.cpp index 8ae37901b33..ef30d966c1a 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/PreventUserExistenceErrorTypes.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/PreventUserExistenceErrorTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PreventUserExistenceErrorTypesMapper { - static const int LEGACY_HASH = HashingUtils::HashString("LEGACY"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t LEGACY_HASH = ConstExprHashingUtils::HashString("LEGACY"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); PreventUserExistenceErrorTypes GetPreventUserExistenceErrorTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEGACY_HASH) { return PreventUserExistenceErrorTypes::LEGACY; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/RecoveryOptionNameType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/RecoveryOptionNameType.cpp index a6c4625dc0d..a765a4f1233 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/RecoveryOptionNameType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/RecoveryOptionNameType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecoveryOptionNameTypeMapper { - static const int verified_email_HASH = HashingUtils::HashString("verified_email"); - static const int verified_phone_number_HASH = HashingUtils::HashString("verified_phone_number"); - static const int admin_only_HASH = HashingUtils::HashString("admin_only"); + static constexpr uint32_t verified_email_HASH = ConstExprHashingUtils::HashString("verified_email"); + static constexpr uint32_t verified_phone_number_HASH = ConstExprHashingUtils::HashString("verified_phone_number"); + static constexpr uint32_t admin_only_HASH = ConstExprHashingUtils::HashString("admin_only"); RecoveryOptionNameType GetRecoveryOptionNameTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == verified_email_HASH) { return RecoveryOptionNameType::verified_email; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskDecisionType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskDecisionType.cpp index b69dd05bc7b..8dd08dd224f 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskDecisionType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskDecisionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RiskDecisionTypeMapper { - static const int NoRisk_HASH = HashingUtils::HashString("NoRisk"); - static const int AccountTakeover_HASH = HashingUtils::HashString("AccountTakeover"); - static const int Block_HASH = HashingUtils::HashString("Block"); + static constexpr uint32_t NoRisk_HASH = ConstExprHashingUtils::HashString("NoRisk"); + static constexpr uint32_t AccountTakeover_HASH = ConstExprHashingUtils::HashString("AccountTakeover"); + static constexpr uint32_t Block_HASH = ConstExprHashingUtils::HashString("Block"); RiskDecisionType GetRiskDecisionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NoRisk_HASH) { return RiskDecisionType::NoRisk; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskLevelType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskLevelType.cpp index fb90f7acd07..f950a763c6d 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskLevelType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/RiskLevelType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RiskLevelTypeMapper { - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); RiskLevelType GetRiskLevelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Low_HASH) { return RiskLevelType::Low; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/TimeUnitsType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/TimeUnitsType.cpp index 7d61550496f..4450549a002 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/TimeUnitsType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/TimeUnitsType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TimeUnitsTypeMapper { - static const int seconds_HASH = HashingUtils::HashString("seconds"); - static const int minutes_HASH = HashingUtils::HashString("minutes"); - static const int hours_HASH = HashingUtils::HashString("hours"); - static const int days_HASH = HashingUtils::HashString("days"); + static constexpr uint32_t seconds_HASH = ConstExprHashingUtils::HashString("seconds"); + static constexpr uint32_t minutes_HASH = ConstExprHashingUtils::HashString("minutes"); + static constexpr uint32_t hours_HASH = ConstExprHashingUtils::HashString("hours"); + static constexpr uint32_t days_HASH = ConstExprHashingUtils::HashString("days"); TimeUnitsType GetTimeUnitsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == seconds_HASH) { return TimeUnitsType::seconds; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserImportJobStatusType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserImportJobStatusType.cpp index 279045d82f1..24c990ad4b1 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserImportJobStatusType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserImportJobStatusType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace UserImportJobStatusTypeMapper { - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Expired_HASH = HashingUtils::HashString("Expired"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Expired_HASH = ConstExprHashingUtils::HashString("Expired"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); UserImportJobStatusType GetUserImportJobStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Created_HASH) { return UserImportJobStatusType::Created; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserPoolMfaType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserPoolMfaType.cpp index a3147e07f9f..84488be83e8 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserPoolMfaType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserPoolMfaType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UserPoolMfaTypeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int ON_HASH = HashingUtils::HashString("ON"); - static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); + static constexpr uint32_t OPTIONAL_HASH = ConstExprHashingUtils::HashString("OPTIONAL"); UserPoolMfaType GetUserPoolMfaTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return UserPoolMfaType::OFF; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserStatusType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserStatusType.cpp index a81346e116a..7a81f8e56cc 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserStatusType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UserStatusType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace UserStatusTypeMapper { - static const int UNCONFIRMED_HASH = HashingUtils::HashString("UNCONFIRMED"); - static const int CONFIRMED_HASH = HashingUtils::HashString("CONFIRMED"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); - static const int COMPROMISED_HASH = HashingUtils::HashString("COMPROMISED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int RESET_REQUIRED_HASH = HashingUtils::HashString("RESET_REQUIRED"); - static const int FORCE_CHANGE_PASSWORD_HASH = HashingUtils::HashString("FORCE_CHANGE_PASSWORD"); + static constexpr uint32_t UNCONFIRMED_HASH = ConstExprHashingUtils::HashString("UNCONFIRMED"); + static constexpr uint32_t CONFIRMED_HASH = ConstExprHashingUtils::HashString("CONFIRMED"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t COMPROMISED_HASH = ConstExprHashingUtils::HashString("COMPROMISED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t RESET_REQUIRED_HASH = ConstExprHashingUtils::HashString("RESET_REQUIRED"); + static constexpr uint32_t FORCE_CHANGE_PASSWORD_HASH = ConstExprHashingUtils::HashString("FORCE_CHANGE_PASSWORD"); UserStatusType GetUserStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNCONFIRMED_HASH) { return UserStatusType::UNCONFIRMED; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UsernameAttributeType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UsernameAttributeType.cpp index 86025126ebf..c3cd09ea562 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/UsernameAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/UsernameAttributeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UsernameAttributeTypeMapper { - static const int phone_number_HASH = HashingUtils::HashString("phone_number"); - static const int email_HASH = HashingUtils::HashString("email"); + static constexpr uint32_t phone_number_HASH = ConstExprHashingUtils::HashString("phone_number"); + static constexpr uint32_t email_HASH = ConstExprHashingUtils::HashString("email"); UsernameAttributeType GetUsernameAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == phone_number_HASH) { return UsernameAttributeType::phone_number; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifiedAttributeType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifiedAttributeType.cpp index 8d31c3e4790..973f4a2e6e4 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifiedAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifiedAttributeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VerifiedAttributeTypeMapper { - static const int phone_number_HASH = HashingUtils::HashString("phone_number"); - static const int email_HASH = HashingUtils::HashString("email"); + static constexpr uint32_t phone_number_HASH = ConstExprHashingUtils::HashString("phone_number"); + static constexpr uint32_t email_HASH = ConstExprHashingUtils::HashString("email"); VerifiedAttributeType GetVerifiedAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == phone_number_HASH) { return VerifiedAttributeType::phone_number; diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifySoftwareTokenResponseType.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifySoftwareTokenResponseType.cpp index 14f7d73f965..cedcfbbfcfb 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifySoftwareTokenResponseType.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/model/VerifySoftwareTokenResponseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VerifySoftwareTokenResponseTypeMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); VerifySoftwareTokenResponseType GetVerifySoftwareTokenResponseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return VerifySoftwareTokenResponseType::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncErrors.cpp b/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncErrors.cpp index 2731587502b..4b9dd9621c7 100644 --- a/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncErrors.cpp +++ b/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncErrors.cpp @@ -18,23 +18,23 @@ namespace CognitoSync namespace CognitoSyncErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int DUPLICATE_REQUEST_HASH = HashingUtils::HashString("DuplicateRequestException"); -static const int ALREADY_STREAMED_HASH = HashingUtils::HashString("AlreadyStreamedException"); -static const int INVALID_LAMBDA_FUNCTION_OUTPUT_HASH = HashingUtils::HashString("InvalidLambdaFunctionOutputException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int INVALID_CONFIGURATION_HASH = HashingUtils::HashString("InvalidConfigurationException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int LAMBDA_THROTTLED_HASH = HashingUtils::HashString("LambdaThrottledException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t DUPLICATE_REQUEST_HASH = ConstExprHashingUtils::HashString("DuplicateRequestException"); +static constexpr uint32_t ALREADY_STREAMED_HASH = ConstExprHashingUtils::HashString("AlreadyStreamedException"); +static constexpr uint32_t INVALID_LAMBDA_FUNCTION_OUTPUT_HASH = ConstExprHashingUtils::HashString("InvalidLambdaFunctionOutputException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidConfigurationException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t LAMBDA_THROTTLED_HASH = ConstExprHashingUtils::HashString("LambdaThrottledException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-cognito-sync/source/model/BulkPublishStatus.cpp b/generated/src/aws-cpp-sdk-cognito-sync/source/model/BulkPublishStatus.cpp index 62476b23e63..236b7d9a365 100644 --- a/generated/src/aws-cpp-sdk-cognito-sync/source/model/BulkPublishStatus.cpp +++ b/generated/src/aws-cpp-sdk-cognito-sync/source/model/BulkPublishStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BulkPublishStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); BulkPublishStatus GetBulkPublishStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return BulkPublishStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-cognito-sync/source/model/Operation.cpp b/generated/src/aws-cpp-sdk-cognito-sync/source/model/Operation.cpp index a2cd8c53c02..0cc65e79dbc 100644 --- a/generated/src/aws-cpp-sdk-cognito-sync/source/model/Operation.cpp +++ b/generated/src/aws-cpp-sdk-cognito-sync/source/model/Operation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperationMapper { - static const int replace_HASH = HashingUtils::HashString("replace"); - static const int remove_HASH = HashingUtils::HashString("remove"); + static constexpr uint32_t replace_HASH = ConstExprHashingUtils::HashString("replace"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); Operation GetOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == replace_HASH) { return Operation::replace; diff --git a/generated/src/aws-cpp-sdk-cognito-sync/source/model/Platform.cpp b/generated/src/aws-cpp-sdk-cognito-sync/source/model/Platform.cpp index 14c0210bc34..3e74c590b21 100644 --- a/generated/src/aws-cpp-sdk-cognito-sync/source/model/Platform.cpp +++ b/generated/src/aws-cpp-sdk-cognito-sync/source/model/Platform.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PlatformMapper { - static const int APNS_HASH = HashingUtils::HashString("APNS"); - static const int APNS_SANDBOX_HASH = HashingUtils::HashString("APNS_SANDBOX"); - static const int GCM_HASH = HashingUtils::HashString("GCM"); - static const int ADM_HASH = HashingUtils::HashString("ADM"); + static constexpr uint32_t APNS_HASH = ConstExprHashingUtils::HashString("APNS"); + static constexpr uint32_t APNS_SANDBOX_HASH = ConstExprHashingUtils::HashString("APNS_SANDBOX"); + static constexpr uint32_t GCM_HASH = ConstExprHashingUtils::HashString("GCM"); + static constexpr uint32_t ADM_HASH = ConstExprHashingUtils::HashString("ADM"); Platform GetPlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APNS_HASH) { return Platform::APNS; diff --git a/generated/src/aws-cpp-sdk-cognito-sync/source/model/StreamingStatus.cpp b/generated/src/aws-cpp-sdk-cognito-sync/source/model/StreamingStatus.cpp index 9262869a6e7..a63f240ea5a 100644 --- a/generated/src/aws-cpp-sdk-cognito-sync/source/model/StreamingStatus.cpp +++ b/generated/src/aws-cpp-sdk-cognito-sync/source/model/StreamingStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StreamingStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); StreamingStatus GetStreamingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return StreamingStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/ComprehendErrors.cpp b/generated/src/aws-cpp-sdk-comprehend/source/ComprehendErrors.cpp index ecf3fbda9c0..c1547d8f248 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/ComprehendErrors.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/ComprehendErrors.cpp @@ -26,26 +26,26 @@ template<> AWS_COMPREHEND_API InvalidRequestException ComprehendError::GetModele namespace ComprehendErrorMapper { -static const int UNSUPPORTED_LANGUAGE_HASH = HashingUtils::HashString("UnsupportedLanguageException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int BATCH_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("BatchSizeLimitExceededException"); -static const int KMS_KEY_VALIDATION_HASH = HashingUtils::HashString("KmsKeyValidationException"); -static const int JOB_NOT_FOUND_HASH = HashingUtils::HashString("JobNotFoundException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int TOO_MANY_TAG_KEYS_HASH = HashingUtils::HashString("TooManyTagKeysException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int INVALID_FILTER_HASH = HashingUtils::HashString("InvalidFilterException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); -static const int TEXT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TextSizeLimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t UNSUPPORTED_LANGUAGE_HASH = ConstExprHashingUtils::HashString("UnsupportedLanguageException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t BATCH_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("BatchSizeLimitExceededException"); +static constexpr uint32_t KMS_KEY_VALIDATION_HASH = ConstExprHashingUtils::HashString("KmsKeyValidationException"); +static constexpr uint32_t JOB_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("JobNotFoundException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TOO_MANY_TAG_KEYS_HASH = ConstExprHashingUtils::HashString("TooManyTagKeysException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t INVALID_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidFilterException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t TEXT_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TextSizeLimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == UNSUPPORTED_LANGUAGE_HASH) { diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp index 11216f34b2f..730a3e7174f 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AugmentedManifestsDocumentTypeFormatMapper { - static const int PLAIN_TEXT_DOCUMENT_HASH = HashingUtils::HashString("PLAIN_TEXT_DOCUMENT"); - static const int SEMI_STRUCTURED_DOCUMENT_HASH = HashingUtils::HashString("SEMI_STRUCTURED_DOCUMENT"); + static constexpr uint32_t PLAIN_TEXT_DOCUMENT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT_DOCUMENT"); + static constexpr uint32_t SEMI_STRUCTURED_DOCUMENT_HASH = ConstExprHashingUtils::HashString("SEMI_STRUCTURED_DOCUMENT"); AugmentedManifestsDocumentTypeFormat GetAugmentedManifestsDocumentTypeFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAIN_TEXT_DOCUMENT_HASH) { return AugmentedManifestsDocumentTypeFormat::PLAIN_TEXT_DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/BlockType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/BlockType.cpp index ea077484020..70a038622c9 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/BlockType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/BlockType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BlockTypeMapper { - static const int LINE_HASH = HashingUtils::HashString("LINE"); - static const int WORD_HASH = HashingUtils::HashString("WORD"); + static constexpr uint32_t LINE_HASH = ConstExprHashingUtils::HashString("LINE"); + static constexpr uint32_t WORD_HASH = ConstExprHashingUtils::HashString("WORD"); BlockType GetBlockTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINE_HASH) { return BlockType::LINE; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetDataFormat.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetDataFormat.cpp index b6ea8512a1b..b97bd1f70ef 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetDataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatasetDataFormatMapper { - static const int COMPREHEND_CSV_HASH = HashingUtils::HashString("COMPREHEND_CSV"); - static const int AUGMENTED_MANIFEST_HASH = HashingUtils::HashString("AUGMENTED_MANIFEST"); + static constexpr uint32_t COMPREHEND_CSV_HASH = ConstExprHashingUtils::HashString("COMPREHEND_CSV"); + static constexpr uint32_t AUGMENTED_MANIFEST_HASH = ConstExprHashingUtils::HashString("AUGMENTED_MANIFEST"); DatasetDataFormat GetDatasetDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPREHEND_CSV_HASH) { return DatasetDataFormat::COMPREHEND_CSV; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetStatus.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetStatus.cpp index c5c89e9f196..183b0663971 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasetStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DatasetStatus GetDatasetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DatasetStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetType.cpp index 5c28008b071..9ce6f620e37 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DatasetType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatasetTypeMapper { - static const int TRAIN_HASH = HashingUtils::HashString("TRAIN"); - static const int TEST_HASH = HashingUtils::HashString("TEST"); + static constexpr uint32_t TRAIN_HASH = ConstExprHashingUtils::HashString("TRAIN"); + static constexpr uint32_t TEST_HASH = ConstExprHashingUtils::HashString("TEST"); DatasetType GetDatasetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAIN_HASH) { return DatasetType::TRAIN; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDataFormat.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDataFormat.cpp index 91b352cb9ad..84d1669dfbc 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentClassifierDataFormatMapper { - static const int COMPREHEND_CSV_HASH = HashingUtils::HashString("COMPREHEND_CSV"); - static const int AUGMENTED_MANIFEST_HASH = HashingUtils::HashString("AUGMENTED_MANIFEST"); + static constexpr uint32_t COMPREHEND_CSV_HASH = ConstExprHashingUtils::HashString("COMPREHEND_CSV"); + static constexpr uint32_t AUGMENTED_MANIFEST_HASH = ConstExprHashingUtils::HashString("AUGMENTED_MANIFEST"); DocumentClassifierDataFormat GetDocumentClassifierDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPREHEND_CSV_HASH) { return DocumentClassifierDataFormat::COMPREHEND_CSV; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDocumentTypeFormat.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDocumentTypeFormat.cpp index dd9d759bce4..59ba3597a07 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDocumentTypeFormat.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierDocumentTypeFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentClassifierDocumentTypeFormatMapper { - static const int PLAIN_TEXT_DOCUMENT_HASH = HashingUtils::HashString("PLAIN_TEXT_DOCUMENT"); - static const int SEMI_STRUCTURED_DOCUMENT_HASH = HashingUtils::HashString("SEMI_STRUCTURED_DOCUMENT"); + static constexpr uint32_t PLAIN_TEXT_DOCUMENT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT_DOCUMENT"); + static constexpr uint32_t SEMI_STRUCTURED_DOCUMENT_HASH = ConstExprHashingUtils::HashString("SEMI_STRUCTURED_DOCUMENT"); DocumentClassifierDocumentTypeFormat GetDocumentClassifierDocumentTypeFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAIN_TEXT_DOCUMENT_HASH) { return DocumentClassifierDocumentTypeFormat::PLAIN_TEXT_DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierMode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierMode.cpp index 373f0071367..2cdcc898ea9 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierMode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentClassifierMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentClassifierModeMapper { - static const int MULTI_CLASS_HASH = HashingUtils::HashString("MULTI_CLASS"); - static const int MULTI_LABEL_HASH = HashingUtils::HashString("MULTI_LABEL"); + static constexpr uint32_t MULTI_CLASS_HASH = ConstExprHashingUtils::HashString("MULTI_CLASS"); + static constexpr uint32_t MULTI_LABEL_HASH = ConstExprHashingUtils::HashString("MULTI_LABEL"); DocumentClassifierMode GetDocumentClassifierModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_CLASS_HASH) { return DocumentClassifierMode::MULTI_CLASS; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadAction.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadAction.cpp index 7d570a8aab4..5f759046774 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadAction.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentReadActionMapper { - static const int TEXTRACT_DETECT_DOCUMENT_TEXT_HASH = HashingUtils::HashString("TEXTRACT_DETECT_DOCUMENT_TEXT"); - static const int TEXTRACT_ANALYZE_DOCUMENT_HASH = HashingUtils::HashString("TEXTRACT_ANALYZE_DOCUMENT"); + static constexpr uint32_t TEXTRACT_DETECT_DOCUMENT_TEXT_HASH = ConstExprHashingUtils::HashString("TEXTRACT_DETECT_DOCUMENT_TEXT"); + static constexpr uint32_t TEXTRACT_ANALYZE_DOCUMENT_HASH = ConstExprHashingUtils::HashString("TEXTRACT_ANALYZE_DOCUMENT"); DocumentReadAction GetDocumentReadActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXTRACT_DETECT_DOCUMENT_TEXT_HASH) { return DocumentReadAction::TEXTRACT_DETECT_DOCUMENT_TEXT; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadFeatureTypes.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadFeatureTypes.cpp index 186d2fc2189..43b26186e75 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadFeatureTypes.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadFeatureTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentReadFeatureTypesMapper { - static const int TABLES_HASH = HashingUtils::HashString("TABLES"); - static const int FORMS_HASH = HashingUtils::HashString("FORMS"); + static constexpr uint32_t TABLES_HASH = ConstExprHashingUtils::HashString("TABLES"); + static constexpr uint32_t FORMS_HASH = ConstExprHashingUtils::HashString("FORMS"); DocumentReadFeatureTypes GetDocumentReadFeatureTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABLES_HASH) { return DocumentReadFeatureTypes::TABLES; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadMode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadMode.cpp index f7c14d25522..39fa012d768 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadMode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentReadMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentReadModeMapper { - static const int SERVICE_DEFAULT_HASH = HashingUtils::HashString("SERVICE_DEFAULT"); - static const int FORCE_DOCUMENT_READ_ACTION_HASH = HashingUtils::HashString("FORCE_DOCUMENT_READ_ACTION"); + static constexpr uint32_t SERVICE_DEFAULT_HASH = ConstExprHashingUtils::HashString("SERVICE_DEFAULT"); + static constexpr uint32_t FORCE_DOCUMENT_READ_ACTION_HASH = ConstExprHashingUtils::HashString("FORCE_DOCUMENT_READ_ACTION"); DocumentReadMode GetDocumentReadModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_DEFAULT_HASH) { return DocumentReadMode::SERVICE_DEFAULT; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentType.cpp index b50b1fc2b04..82a5fbbbb57 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/DocumentType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DocumentTypeMapper { - static const int NATIVE_PDF_HASH = HashingUtils::HashString("NATIVE_PDF"); - static const int SCANNED_PDF_HASH = HashingUtils::HashString("SCANNED_PDF"); - static const int MS_WORD_HASH = HashingUtils::HashString("MS_WORD"); - static const int IMAGE_HASH = HashingUtils::HashString("IMAGE"); - static const int PLAIN_TEXT_HASH = HashingUtils::HashString("PLAIN_TEXT"); - static const int TEXTRACT_DETECT_DOCUMENT_TEXT_JSON_HASH = HashingUtils::HashString("TEXTRACT_DETECT_DOCUMENT_TEXT_JSON"); - static const int TEXTRACT_ANALYZE_DOCUMENT_JSON_HASH = HashingUtils::HashString("TEXTRACT_ANALYZE_DOCUMENT_JSON"); + static constexpr uint32_t NATIVE_PDF_HASH = ConstExprHashingUtils::HashString("NATIVE_PDF"); + static constexpr uint32_t SCANNED_PDF_HASH = ConstExprHashingUtils::HashString("SCANNED_PDF"); + static constexpr uint32_t MS_WORD_HASH = ConstExprHashingUtils::HashString("MS_WORD"); + static constexpr uint32_t IMAGE_HASH = ConstExprHashingUtils::HashString("IMAGE"); + static constexpr uint32_t PLAIN_TEXT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT"); + static constexpr uint32_t TEXTRACT_DETECT_DOCUMENT_TEXT_JSON_HASH = ConstExprHashingUtils::HashString("TEXTRACT_DETECT_DOCUMENT_TEXT_JSON"); + static constexpr uint32_t TEXTRACT_ANALYZE_DOCUMENT_JSON_HASH = ConstExprHashingUtils::HashString("TEXTRACT_ANALYZE_DOCUMENT_JSON"); DocumentType GetDocumentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NATIVE_PDF_HASH) { return DocumentType::NATIVE_PDF; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/EndpointStatus.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/EndpointStatus.cpp index 5da515b1b2b..18a83984321 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/EndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/EndpointStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EndpointStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_SERVICE_HASH = HashingUtils::HashString("IN_SERVICE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_SERVICE_HASH = ConstExprHashingUtils::HashString("IN_SERVICE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); EndpointStatus GetEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return EndpointStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/EntityRecognizerDataFormat.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/EntityRecognizerDataFormat.cpp index bbef20c3186..e6f558cc922 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/EntityRecognizerDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/EntityRecognizerDataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EntityRecognizerDataFormatMapper { - static const int COMPREHEND_CSV_HASH = HashingUtils::HashString("COMPREHEND_CSV"); - static const int AUGMENTED_MANIFEST_HASH = HashingUtils::HashString("AUGMENTED_MANIFEST"); + static constexpr uint32_t COMPREHEND_CSV_HASH = ConstExprHashingUtils::HashString("COMPREHEND_CSV"); + static constexpr uint32_t AUGMENTED_MANIFEST_HASH = ConstExprHashingUtils::HashString("AUGMENTED_MANIFEST"); EntityRecognizerDataFormat GetEntityRecognizerDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPREHEND_CSV_HASH) { return EntityRecognizerDataFormat::COMPREHEND_CSV; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/EntityType.cpp index 5e3cf52e9cb..57d28ff4c2f 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/EntityType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace EntityTypeMapper { - static const int PERSON_HASH = HashingUtils::HashString("PERSON"); - static const int LOCATION_HASH = HashingUtils::HashString("LOCATION"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); - static const int COMMERCIAL_ITEM_HASH = HashingUtils::HashString("COMMERCIAL_ITEM"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int QUANTITY_HASH = HashingUtils::HashString("QUANTITY"); - static const int TITLE_HASH = HashingUtils::HashString("TITLE"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t PERSON_HASH = ConstExprHashingUtils::HashString("PERSON"); + static constexpr uint32_t LOCATION_HASH = ConstExprHashingUtils::HashString("LOCATION"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t COMMERCIAL_ITEM_HASH = ConstExprHashingUtils::HashString("COMMERCIAL_ITEM"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t QUANTITY_HASH = ConstExprHashingUtils::HashString("QUANTITY"); + static constexpr uint32_t TITLE_HASH = ConstExprHashingUtils::HashString("TITLE"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSON_HASH) { return EntityType::PERSON; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelIterationStatus.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelIterationStatus.cpp index a474245a9b4..4b5f2408467 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelIterationStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelIterationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FlywheelIterationStatusMapper { - static const int TRAINING_HASH = HashingUtils::HashString("TRAINING"); - static const int EVALUATING_HASH = HashingUtils::HashString("EVALUATING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOP_REQUESTED_HASH = HashingUtils::HashString("STOP_REQUESTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t TRAINING_HASH = ConstExprHashingUtils::HashString("TRAINING"); + static constexpr uint32_t EVALUATING_HASH = ConstExprHashingUtils::HashString("EVALUATING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOP_REQUESTED_HASH = ConstExprHashingUtils::HashString("STOP_REQUESTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); FlywheelIterationStatus GetFlywheelIterationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAINING_HASH) { return FlywheelIterationStatus::TRAINING; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelStatus.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelStatus.cpp index e45cc8b6c9d..4971b3b0a3f 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/FlywheelStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FlywheelStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); FlywheelStatus GetFlywheelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return FlywheelStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/InputFormat.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/InputFormat.cpp index a7ee3b53ee1..f98efd99e11 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/InputFormat.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/InputFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputFormatMapper { - static const int ONE_DOC_PER_FILE_HASH = HashingUtils::HashString("ONE_DOC_PER_FILE"); - static const int ONE_DOC_PER_LINE_HASH = HashingUtils::HashString("ONE_DOC_PER_LINE"); + static constexpr uint32_t ONE_DOC_PER_FILE_HASH = ConstExprHashingUtils::HashString("ONE_DOC_PER_FILE"); + static constexpr uint32_t ONE_DOC_PER_LINE_HASH = ConstExprHashingUtils::HashString("ONE_DOC_PER_LINE"); InputFormat GetInputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_DOC_PER_FILE_HASH) { return InputFormat::ONE_DOC_PER_FILE; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestDetailReason.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestDetailReason.cpp index 4c3d37b7eb9..1c9268ddc09 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestDetailReason.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestDetailReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InvalidRequestDetailReasonMapper { - static const int DOCUMENT_SIZE_EXCEEDED_HASH = HashingUtils::HashString("DOCUMENT_SIZE_EXCEEDED"); - static const int UNSUPPORTED_DOC_TYPE_HASH = HashingUtils::HashString("UNSUPPORTED_DOC_TYPE"); - static const int PAGE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PAGE_LIMIT_EXCEEDED"); - static const int TEXTRACT_ACCESS_DENIED_HASH = HashingUtils::HashString("TEXTRACT_ACCESS_DENIED"); + static constexpr uint32_t DOCUMENT_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SIZE_EXCEEDED"); + static constexpr uint32_t UNSUPPORTED_DOC_TYPE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_DOC_TYPE"); + static constexpr uint32_t PAGE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PAGE_LIMIT_EXCEEDED"); + static constexpr uint32_t TEXTRACT_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("TEXTRACT_ACCESS_DENIED"); InvalidRequestDetailReason GetInvalidRequestDetailReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_SIZE_EXCEEDED_HASH) { return InvalidRequestDetailReason::DOCUMENT_SIZE_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestReason.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestReason.cpp index fe3b7fb57a0..1b58065a30c 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestReason.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/InvalidRequestReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InvalidRequestReasonMapper { - static const int INVALID_DOCUMENT_HASH = HashingUtils::HashString("INVALID_DOCUMENT"); + static constexpr uint32_t INVALID_DOCUMENT_HASH = ConstExprHashingUtils::HashString("INVALID_DOCUMENT"); InvalidRequestReason GetInvalidRequestReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_DOCUMENT_HASH) { return InvalidRequestReason::INVALID_DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/JobStatus.cpp index 95f44355bf3..5fe016118da 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/JobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOP_REQUESTED_HASH = HashingUtils::HashString("STOP_REQUESTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOP_REQUESTED_HASH = ConstExprHashingUtils::HashString("STOP_REQUESTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/LanguageCode.cpp index 300c424ef4a..7fb5a2d564c 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/LanguageCode.cpp @@ -20,23 +20,23 @@ namespace Aws namespace LanguageCodeMapper { - static const int en_HASH = HashingUtils::HashString("en"); - static const int es_HASH = HashingUtils::HashString("es"); - static const int fr_HASH = HashingUtils::HashString("fr"); - static const int de_HASH = HashingUtils::HashString("de"); - static const int it_HASH = HashingUtils::HashString("it"); - static const int pt_HASH = HashingUtils::HashString("pt"); - static const int ar_HASH = HashingUtils::HashString("ar"); - static const int hi_HASH = HashingUtils::HashString("hi"); - static const int ja_HASH = HashingUtils::HashString("ja"); - static const int ko_HASH = HashingUtils::HashString("ko"); - static const int zh_HASH = HashingUtils::HashString("zh"); - static const int zh_TW_HASH = HashingUtils::HashString("zh-TW"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); + static constexpr uint32_t es_HASH = ConstExprHashingUtils::HashString("es"); + static constexpr uint32_t fr_HASH = ConstExprHashingUtils::HashString("fr"); + static constexpr uint32_t de_HASH = ConstExprHashingUtils::HashString("de"); + static constexpr uint32_t it_HASH = ConstExprHashingUtils::HashString("it"); + static constexpr uint32_t pt_HASH = ConstExprHashingUtils::HashString("pt"); + static constexpr uint32_t ar_HASH = ConstExprHashingUtils::HashString("ar"); + static constexpr uint32_t hi_HASH = ConstExprHashingUtils::HashString("hi"); + static constexpr uint32_t ja_HASH = ConstExprHashingUtils::HashString("ja"); + static constexpr uint32_t ko_HASH = ConstExprHashingUtils::HashString("ko"); + static constexpr uint32_t zh_HASH = ConstExprHashingUtils::HashString("zh"); + static constexpr uint32_t zh_TW_HASH = ConstExprHashingUtils::HashString("zh-TW"); LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_HASH) { return LanguageCode::en; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/ModelStatus.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/ModelStatus.cpp index adb7916dfd4..98a9e472bbe 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/ModelStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/ModelStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ModelStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int TRAINING_HASH = HashingUtils::HashString("TRAINING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int STOP_REQUESTED_HASH = HashingUtils::HashString("STOP_REQUESTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int IN_ERROR_HASH = HashingUtils::HashString("IN_ERROR"); - static const int TRAINED_HASH = HashingUtils::HashString("TRAINED"); - static const int TRAINED_WITH_WARNING_HASH = HashingUtils::HashString("TRAINED_WITH_WARNING"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t TRAINING_HASH = ConstExprHashingUtils::HashString("TRAINING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t STOP_REQUESTED_HASH = ConstExprHashingUtils::HashString("STOP_REQUESTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t IN_ERROR_HASH = ConstExprHashingUtils::HashString("IN_ERROR"); + static constexpr uint32_t TRAINED_HASH = ConstExprHashingUtils::HashString("TRAINED"); + static constexpr uint32_t TRAINED_WITH_WARNING_HASH = ConstExprHashingUtils::HashString("TRAINED_WITH_WARNING"); ModelStatus GetModelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return ModelStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/ModelType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/ModelType.cpp index 70ee3e4ce4d..4dd31ff237a 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/ModelType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/ModelType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelTypeMapper { - static const int DOCUMENT_CLASSIFIER_HASH = HashingUtils::HashString("DOCUMENT_CLASSIFIER"); - static const int ENTITY_RECOGNIZER_HASH = HashingUtils::HashString("ENTITY_RECOGNIZER"); + static constexpr uint32_t DOCUMENT_CLASSIFIER_HASH = ConstExprHashingUtils::HashString("DOCUMENT_CLASSIFIER"); + static constexpr uint32_t ENTITY_RECOGNIZER_HASH = ConstExprHashingUtils::HashString("ENTITY_RECOGNIZER"); ModelType GetModelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_CLASSIFIER_HASH) { return ModelType::DOCUMENT_CLASSIFIER; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedErrorCode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedErrorCode.cpp index 1e08b20a86b..395e8fd63cc 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PageBasedErrorCodeMapper { - static const int TEXTRACT_BAD_PAGE_HASH = HashingUtils::HashString("TEXTRACT_BAD_PAGE"); - static const int TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED"); - static const int PAGE_CHARACTERS_EXCEEDED_HASH = HashingUtils::HashString("PAGE_CHARACTERS_EXCEEDED"); - static const int PAGE_SIZE_EXCEEDED_HASH = HashingUtils::HashString("PAGE_SIZE_EXCEEDED"); - static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVER_ERROR"); + static constexpr uint32_t TEXTRACT_BAD_PAGE_HASH = ConstExprHashingUtils::HashString("TEXTRACT_BAD_PAGE"); + static constexpr uint32_t TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED"); + static constexpr uint32_t PAGE_CHARACTERS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PAGE_CHARACTERS_EXCEEDED"); + static constexpr uint32_t PAGE_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PAGE_SIZE_EXCEEDED"); + static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_ERROR"); PageBasedErrorCode GetPageBasedErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXTRACT_BAD_PAGE_HASH) { return PageBasedErrorCode::TEXTRACT_BAD_PAGE; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedWarningCode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedWarningCode.cpp index 1fe24743097..ddfa7810069 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedWarningCode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/PageBasedWarningCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PageBasedWarningCodeMapper { - static const int INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL_HASH = HashingUtils::HashString("INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL"); - static const int INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL_HASH = HashingUtils::HashString("INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL"); + static constexpr uint32_t INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL_HASH = ConstExprHashingUtils::HashString("INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL"); + static constexpr uint32_t INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL_HASH = ConstExprHashingUtils::HashString("INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL"); PageBasedWarningCode GetPageBasedWarningCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL_HASH) { return PageBasedWarningCode::INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/PartOfSpeechTagType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/PartOfSpeechTagType.cpp index 08a4590cc53..2a457c6b422 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/PartOfSpeechTagType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/PartOfSpeechTagType.cpp @@ -20,29 +20,29 @@ namespace Aws namespace PartOfSpeechTagTypeMapper { - static const int ADJ_HASH = HashingUtils::HashString("ADJ"); - static const int ADP_HASH = HashingUtils::HashString("ADP"); - static const int ADV_HASH = HashingUtils::HashString("ADV"); - static const int AUX_HASH = HashingUtils::HashString("AUX"); - static const int CONJ_HASH = HashingUtils::HashString("CONJ"); - static const int CCONJ_HASH = HashingUtils::HashString("CCONJ"); - static const int DET_HASH = HashingUtils::HashString("DET"); - static const int INTJ_HASH = HashingUtils::HashString("INTJ"); - static const int NOUN_HASH = HashingUtils::HashString("NOUN"); - static const int NUM_HASH = HashingUtils::HashString("NUM"); - static const int O_HASH = HashingUtils::HashString("O"); - static const int PART_HASH = HashingUtils::HashString("PART"); - static const int PRON_HASH = HashingUtils::HashString("PRON"); - static const int PROPN_HASH = HashingUtils::HashString("PROPN"); - static const int PUNCT_HASH = HashingUtils::HashString("PUNCT"); - static const int SCONJ_HASH = HashingUtils::HashString("SCONJ"); - static const int SYM_HASH = HashingUtils::HashString("SYM"); - static const int VERB_HASH = HashingUtils::HashString("VERB"); + static constexpr uint32_t ADJ_HASH = ConstExprHashingUtils::HashString("ADJ"); + static constexpr uint32_t ADP_HASH = ConstExprHashingUtils::HashString("ADP"); + static constexpr uint32_t ADV_HASH = ConstExprHashingUtils::HashString("ADV"); + static constexpr uint32_t AUX_HASH = ConstExprHashingUtils::HashString("AUX"); + static constexpr uint32_t CONJ_HASH = ConstExprHashingUtils::HashString("CONJ"); + static constexpr uint32_t CCONJ_HASH = ConstExprHashingUtils::HashString("CCONJ"); + static constexpr uint32_t DET_HASH = ConstExprHashingUtils::HashString("DET"); + static constexpr uint32_t INTJ_HASH = ConstExprHashingUtils::HashString("INTJ"); + static constexpr uint32_t NOUN_HASH = ConstExprHashingUtils::HashString("NOUN"); + static constexpr uint32_t NUM_HASH = ConstExprHashingUtils::HashString("NUM"); + static constexpr uint32_t O_HASH = ConstExprHashingUtils::HashString("O"); + static constexpr uint32_t PART_HASH = ConstExprHashingUtils::HashString("PART"); + static constexpr uint32_t PRON_HASH = ConstExprHashingUtils::HashString("PRON"); + static constexpr uint32_t PROPN_HASH = ConstExprHashingUtils::HashString("PROPN"); + static constexpr uint32_t PUNCT_HASH = ConstExprHashingUtils::HashString("PUNCT"); + static constexpr uint32_t SCONJ_HASH = ConstExprHashingUtils::HashString("SCONJ"); + static constexpr uint32_t SYM_HASH = ConstExprHashingUtils::HashString("SYM"); + static constexpr uint32_t VERB_HASH = ConstExprHashingUtils::HashString("VERB"); PartOfSpeechTagType GetPartOfSpeechTagTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADJ_HASH) { return PartOfSpeechTagType::ADJ; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMaskMode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMaskMode.cpp index fe8b736ef6e..76760f8ec03 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMaskMode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMaskMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PiiEntitiesDetectionMaskModeMapper { - static const int MASK_HASH = HashingUtils::HashString("MASK"); - static const int REPLACE_WITH_PII_ENTITY_TYPE_HASH = HashingUtils::HashString("REPLACE_WITH_PII_ENTITY_TYPE"); + static constexpr uint32_t MASK_HASH = ConstExprHashingUtils::HashString("MASK"); + static constexpr uint32_t REPLACE_WITH_PII_ENTITY_TYPE_HASH = ConstExprHashingUtils::HashString("REPLACE_WITH_PII_ENTITY_TYPE"); PiiEntitiesDetectionMaskMode GetPiiEntitiesDetectionMaskModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MASK_HASH) { return PiiEntitiesDetectionMaskMode::MASK; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMode.cpp index ec89612cb09..b12d40dff87 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntitiesDetectionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PiiEntitiesDetectionModeMapper { - static const int ONLY_REDACTION_HASH = HashingUtils::HashString("ONLY_REDACTION"); - static const int ONLY_OFFSETS_HASH = HashingUtils::HashString("ONLY_OFFSETS"); + static constexpr uint32_t ONLY_REDACTION_HASH = ConstExprHashingUtils::HashString("ONLY_REDACTION"); + static constexpr uint32_t ONLY_OFFSETS_HASH = ConstExprHashingUtils::HashString("ONLY_OFFSETS"); PiiEntitiesDetectionMode GetPiiEntitiesDetectionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLY_REDACTION_HASH) { return PiiEntitiesDetectionMode::ONLY_REDACTION; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntityType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntityType.cpp index 0124e228260..366f95b33ff 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/PiiEntityType.cpp @@ -20,48 +20,48 @@ namespace Aws namespace PiiEntityTypeMapper { - static const int BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("BANK_ACCOUNT_NUMBER"); - static const int BANK_ROUTING_HASH = HashingUtils::HashString("BANK_ROUTING"); - static const int CREDIT_DEBIT_NUMBER_HASH = HashingUtils::HashString("CREDIT_DEBIT_NUMBER"); - static const int CREDIT_DEBIT_CVV_HASH = HashingUtils::HashString("CREDIT_DEBIT_CVV"); - static const int CREDIT_DEBIT_EXPIRY_HASH = HashingUtils::HashString("CREDIT_DEBIT_EXPIRY"); - static const int PIN_HASH = HashingUtils::HashString("PIN"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int PHONE_HASH = HashingUtils::HashString("PHONE"); - static const int SSN_HASH = HashingUtils::HashString("SSN"); - static const int DATE_TIME_HASH = HashingUtils::HashString("DATE_TIME"); - static const int PASSPORT_NUMBER_HASH = HashingUtils::HashString("PASSPORT_NUMBER"); - static const int DRIVER_ID_HASH = HashingUtils::HashString("DRIVER_ID"); - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int AGE_HASH = HashingUtils::HashString("AGE"); - static const int USERNAME_HASH = HashingUtils::HashString("USERNAME"); - static const int PASSWORD_HASH = HashingUtils::HashString("PASSWORD"); - static const int AWS_ACCESS_KEY_HASH = HashingUtils::HashString("AWS_ACCESS_KEY"); - static const int AWS_SECRET_KEY_HASH = HashingUtils::HashString("AWS_SECRET_KEY"); - static const int IP_ADDRESS_HASH = HashingUtils::HashString("IP_ADDRESS"); - static const int MAC_ADDRESS_HASH = HashingUtils::HashString("MAC_ADDRESS"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int LICENSE_PLATE_HASH = HashingUtils::HashString("LICENSE_PLATE"); - static const int VEHICLE_IDENTIFICATION_NUMBER_HASH = HashingUtils::HashString("VEHICLE_IDENTIFICATION_NUMBER"); - static const int UK_NATIONAL_INSURANCE_NUMBER_HASH = HashingUtils::HashString("UK_NATIONAL_INSURANCE_NUMBER"); - static const int CA_SOCIAL_INSURANCE_NUMBER_HASH = HashingUtils::HashString("CA_SOCIAL_INSURANCE_NUMBER"); - static const int US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_HASH = HashingUtils::HashString("US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"); - static const int UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER_HASH = HashingUtils::HashString("UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"); - static const int IN_PERMANENT_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("IN_PERMANENT_ACCOUNT_NUMBER"); - static const int IN_NREGA_HASH = HashingUtils::HashString("IN_NREGA"); - static const int INTERNATIONAL_BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("INTERNATIONAL_BANK_ACCOUNT_NUMBER"); - static const int SWIFT_CODE_HASH = HashingUtils::HashString("SWIFT_CODE"); - static const int UK_NATIONAL_HEALTH_SERVICE_NUMBER_HASH = HashingUtils::HashString("UK_NATIONAL_HEALTH_SERVICE_NUMBER"); - static const int CA_HEALTH_NUMBER_HASH = HashingUtils::HashString("CA_HEALTH_NUMBER"); - static const int IN_AADHAAR_HASH = HashingUtils::HashString("IN_AADHAAR"); - static const int IN_VOTER_NUMBER_HASH = HashingUtils::HashString("IN_VOTER_NUMBER"); + static constexpr uint32_t BANK_ACCOUNT_NUMBER_HASH = ConstExprHashingUtils::HashString("BANK_ACCOUNT_NUMBER"); + static constexpr uint32_t BANK_ROUTING_HASH = ConstExprHashingUtils::HashString("BANK_ROUTING"); + static constexpr uint32_t CREDIT_DEBIT_NUMBER_HASH = ConstExprHashingUtils::HashString("CREDIT_DEBIT_NUMBER"); + static constexpr uint32_t CREDIT_DEBIT_CVV_HASH = ConstExprHashingUtils::HashString("CREDIT_DEBIT_CVV"); + static constexpr uint32_t CREDIT_DEBIT_EXPIRY_HASH = ConstExprHashingUtils::HashString("CREDIT_DEBIT_EXPIRY"); + static constexpr uint32_t PIN_HASH = ConstExprHashingUtils::HashString("PIN"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t ADDRESS_HASH = ConstExprHashingUtils::HashString("ADDRESS"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t PHONE_HASH = ConstExprHashingUtils::HashString("PHONE"); + static constexpr uint32_t SSN_HASH = ConstExprHashingUtils::HashString("SSN"); + static constexpr uint32_t DATE_TIME_HASH = ConstExprHashingUtils::HashString("DATE_TIME"); + static constexpr uint32_t PASSPORT_NUMBER_HASH = ConstExprHashingUtils::HashString("PASSPORT_NUMBER"); + static constexpr uint32_t DRIVER_ID_HASH = ConstExprHashingUtils::HashString("DRIVER_ID"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t AGE_HASH = ConstExprHashingUtils::HashString("AGE"); + static constexpr uint32_t USERNAME_HASH = ConstExprHashingUtils::HashString("USERNAME"); + static constexpr uint32_t PASSWORD_HASH = ConstExprHashingUtils::HashString("PASSWORD"); + static constexpr uint32_t AWS_ACCESS_KEY_HASH = ConstExprHashingUtils::HashString("AWS_ACCESS_KEY"); + static constexpr uint32_t AWS_SECRET_KEY_HASH = ConstExprHashingUtils::HashString("AWS_SECRET_KEY"); + static constexpr uint32_t IP_ADDRESS_HASH = ConstExprHashingUtils::HashString("IP_ADDRESS"); + static constexpr uint32_t MAC_ADDRESS_HASH = ConstExprHashingUtils::HashString("MAC_ADDRESS"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t LICENSE_PLATE_HASH = ConstExprHashingUtils::HashString("LICENSE_PLATE"); + static constexpr uint32_t VEHICLE_IDENTIFICATION_NUMBER_HASH = ConstExprHashingUtils::HashString("VEHICLE_IDENTIFICATION_NUMBER"); + static constexpr uint32_t UK_NATIONAL_INSURANCE_NUMBER_HASH = ConstExprHashingUtils::HashString("UK_NATIONAL_INSURANCE_NUMBER"); + static constexpr uint32_t CA_SOCIAL_INSURANCE_NUMBER_HASH = ConstExprHashingUtils::HashString("CA_SOCIAL_INSURANCE_NUMBER"); + static constexpr uint32_t US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_HASH = ConstExprHashingUtils::HashString("US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"); + static constexpr uint32_t UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"); + static constexpr uint32_t IN_PERMANENT_ACCOUNT_NUMBER_HASH = ConstExprHashingUtils::HashString("IN_PERMANENT_ACCOUNT_NUMBER"); + static constexpr uint32_t IN_NREGA_HASH = ConstExprHashingUtils::HashString("IN_NREGA"); + static constexpr uint32_t INTERNATIONAL_BANK_ACCOUNT_NUMBER_HASH = ConstExprHashingUtils::HashString("INTERNATIONAL_BANK_ACCOUNT_NUMBER"); + static constexpr uint32_t SWIFT_CODE_HASH = ConstExprHashingUtils::HashString("SWIFT_CODE"); + static constexpr uint32_t UK_NATIONAL_HEALTH_SERVICE_NUMBER_HASH = ConstExprHashingUtils::HashString("UK_NATIONAL_HEALTH_SERVICE_NUMBER"); + static constexpr uint32_t CA_HEALTH_NUMBER_HASH = ConstExprHashingUtils::HashString("CA_HEALTH_NUMBER"); + static constexpr uint32_t IN_AADHAAR_HASH = ConstExprHashingUtils::HashString("IN_AADHAAR"); + static constexpr uint32_t IN_VOTER_NUMBER_HASH = ConstExprHashingUtils::HashString("IN_VOTER_NUMBER"); PiiEntityType GetPiiEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BANK_ACCOUNT_NUMBER_HASH) { return PiiEntityType::BANK_ACCOUNT_NUMBER; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/RelationshipType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/RelationshipType.cpp index a5f6f51c9c3..f969656c495 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/RelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/RelationshipType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RelationshipTypeMapper { - static const int CHILD_HASH = HashingUtils::HashString("CHILD"); + static constexpr uint32_t CHILD_HASH = ConstExprHashingUtils::HashString("CHILD"); RelationshipType GetRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHILD_HASH) { return RelationshipType::CHILD; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/SentimentType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/SentimentType.cpp index 510b8fcfd17..157dce7efee 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/SentimentType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/SentimentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SentimentTypeMapper { - static const int POSITIVE_HASH = HashingUtils::HashString("POSITIVE"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); - static const int NEUTRAL_HASH = HashingUtils::HashString("NEUTRAL"); - static const int MIXED_HASH = HashingUtils::HashString("MIXED"); + static constexpr uint32_t POSITIVE_HASH = ConstExprHashingUtils::HashString("POSITIVE"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t NEUTRAL_HASH = ConstExprHashingUtils::HashString("NEUTRAL"); + static constexpr uint32_t MIXED_HASH = ConstExprHashingUtils::HashString("MIXED"); SentimentType GetSentimentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POSITIVE_HASH) { return SentimentType::POSITIVE; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/Split.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/Split.cpp index 19e343a157b..81eb49522a7 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/Split.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/Split.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SplitMapper { - static const int TRAIN_HASH = HashingUtils::HashString("TRAIN"); - static const int TEST_HASH = HashingUtils::HashString("TEST"); + static constexpr uint32_t TRAIN_HASH = ConstExprHashingUtils::HashString("TRAIN"); + static constexpr uint32_t TEST_HASH = ConstExprHashingUtils::HashString("TEST"); Split GetSplitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAIN_HASH) { return Split::TRAIN; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/SyntaxLanguageCode.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/SyntaxLanguageCode.cpp index 54beb39cd5f..fd83559ae11 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/SyntaxLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/SyntaxLanguageCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SyntaxLanguageCodeMapper { - static const int en_HASH = HashingUtils::HashString("en"); - static const int es_HASH = HashingUtils::HashString("es"); - static const int fr_HASH = HashingUtils::HashString("fr"); - static const int de_HASH = HashingUtils::HashString("de"); - static const int it_HASH = HashingUtils::HashString("it"); - static const int pt_HASH = HashingUtils::HashString("pt"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); + static constexpr uint32_t es_HASH = ConstExprHashingUtils::HashString("es"); + static constexpr uint32_t fr_HASH = ConstExprHashingUtils::HashString("fr"); + static constexpr uint32_t de_HASH = ConstExprHashingUtils::HashString("de"); + static constexpr uint32_t it_HASH = ConstExprHashingUtils::HashString("it"); + static constexpr uint32_t pt_HASH = ConstExprHashingUtils::HashString("pt"); SyntaxLanguageCode GetSyntaxLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_HASH) { return SyntaxLanguageCode::en; diff --git a/generated/src/aws-cpp-sdk-comprehend/source/model/TargetedSentimentEntityType.cpp b/generated/src/aws-cpp-sdk-comprehend/source/model/TargetedSentimentEntityType.cpp index b73d5e83c73..e34479e8504 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/model/TargetedSentimentEntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/model/TargetedSentimentEntityType.cpp @@ -20,28 +20,28 @@ namespace Aws namespace TargetedSentimentEntityTypeMapper { - static const int PERSON_HASH = HashingUtils::HashString("PERSON"); - static const int LOCATION_HASH = HashingUtils::HashString("LOCATION"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); - static const int FACILITY_HASH = HashingUtils::HashString("FACILITY"); - static const int BRAND_HASH = HashingUtils::HashString("BRAND"); - static const int COMMERCIAL_ITEM_HASH = HashingUtils::HashString("COMMERCIAL_ITEM"); - static const int MOVIE_HASH = HashingUtils::HashString("MOVIE"); - static const int MUSIC_HASH = HashingUtils::HashString("MUSIC"); - static const int BOOK_HASH = HashingUtils::HashString("BOOK"); - static const int SOFTWARE_HASH = HashingUtils::HashString("SOFTWARE"); - static const int GAME_HASH = HashingUtils::HashString("GAME"); - static const int PERSONAL_TITLE_HASH = HashingUtils::HashString("PERSONAL_TITLE"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int QUANTITY_HASH = HashingUtils::HashString("QUANTITY"); - static const int ATTRIBUTE_HASH = HashingUtils::HashString("ATTRIBUTE"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t PERSON_HASH = ConstExprHashingUtils::HashString("PERSON"); + static constexpr uint32_t LOCATION_HASH = ConstExprHashingUtils::HashString("LOCATION"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t FACILITY_HASH = ConstExprHashingUtils::HashString("FACILITY"); + static constexpr uint32_t BRAND_HASH = ConstExprHashingUtils::HashString("BRAND"); + static constexpr uint32_t COMMERCIAL_ITEM_HASH = ConstExprHashingUtils::HashString("COMMERCIAL_ITEM"); + static constexpr uint32_t MOVIE_HASH = ConstExprHashingUtils::HashString("MOVIE"); + static constexpr uint32_t MUSIC_HASH = ConstExprHashingUtils::HashString("MUSIC"); + static constexpr uint32_t BOOK_HASH = ConstExprHashingUtils::HashString("BOOK"); + static constexpr uint32_t SOFTWARE_HASH = ConstExprHashingUtils::HashString("SOFTWARE"); + static constexpr uint32_t GAME_HASH = ConstExprHashingUtils::HashString("GAME"); + static constexpr uint32_t PERSONAL_TITLE_HASH = ConstExprHashingUtils::HashString("PERSONAL_TITLE"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t QUANTITY_HASH = ConstExprHashingUtils::HashString("QUANTITY"); + static constexpr uint32_t ATTRIBUTE_HASH = ConstExprHashingUtils::HashString("ATTRIBUTE"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); TargetedSentimentEntityType GetTargetedSentimentEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSON_HASH) { return TargetedSentimentEntityType::PERSON; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalErrors.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalErrors.cpp index 0232802607a..dc9260469ce 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalErrors.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalErrors.cpp @@ -18,16 +18,16 @@ namespace ComprehendMedical namespace ComprehendMedicalErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INVALID_ENCODING_HASH = HashingUtils::HashString("InvalidEncodingException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int TEXT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TextSizeLimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INVALID_ENCODING_HASH = ConstExprHashingUtils::HashString("InvalidEncodingException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t TEXT_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TextSizeLimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/AttributeName.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/AttributeName.cpp index 32ef06d4092..1aaef88b21b 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/AttributeName.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/AttributeName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AttributeNameMapper { - static const int SIGN_HASH = HashingUtils::HashString("SIGN"); - static const int SYMPTOM_HASH = HashingUtils::HashString("SYMPTOM"); - static const int DIAGNOSIS_HASH = HashingUtils::HashString("DIAGNOSIS"); - static const int NEGATION_HASH = HashingUtils::HashString("NEGATION"); - static const int PERTAINS_TO_FAMILY_HASH = HashingUtils::HashString("PERTAINS_TO_FAMILY"); - static const int HYPOTHETICAL_HASH = HashingUtils::HashString("HYPOTHETICAL"); - static const int LOW_CONFIDENCE_HASH = HashingUtils::HashString("LOW_CONFIDENCE"); - static const int PAST_HISTORY_HASH = HashingUtils::HashString("PAST_HISTORY"); - static const int FUTURE_HASH = HashingUtils::HashString("FUTURE"); + static constexpr uint32_t SIGN_HASH = ConstExprHashingUtils::HashString("SIGN"); + static constexpr uint32_t SYMPTOM_HASH = ConstExprHashingUtils::HashString("SYMPTOM"); + static constexpr uint32_t DIAGNOSIS_HASH = ConstExprHashingUtils::HashString("DIAGNOSIS"); + static constexpr uint32_t NEGATION_HASH = ConstExprHashingUtils::HashString("NEGATION"); + static constexpr uint32_t PERTAINS_TO_FAMILY_HASH = ConstExprHashingUtils::HashString("PERTAINS_TO_FAMILY"); + static constexpr uint32_t HYPOTHETICAL_HASH = ConstExprHashingUtils::HashString("HYPOTHETICAL"); + static constexpr uint32_t LOW_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("LOW_CONFIDENCE"); + static constexpr uint32_t PAST_HISTORY_HASH = ConstExprHashingUtils::HashString("PAST_HISTORY"); + static constexpr uint32_t FUTURE_HASH = ConstExprHashingUtils::HashString("FUTURE"); AttributeName GetAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIGN_HASH) { return AttributeName::SIGN; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntitySubType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntitySubType.cpp index c1f3168af13..05ee1662d79 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntitySubType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntitySubType.cpp @@ -20,56 +20,56 @@ namespace Aws namespace EntitySubTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int DX_NAME_HASH = HashingUtils::HashString("DX_NAME"); - static const int DOSAGE_HASH = HashingUtils::HashString("DOSAGE"); - static const int ROUTE_OR_MODE_HASH = HashingUtils::HashString("ROUTE_OR_MODE"); - static const int FORM_HASH = HashingUtils::HashString("FORM"); - static const int FREQUENCY_HASH = HashingUtils::HashString("FREQUENCY"); - static const int DURATION_HASH = HashingUtils::HashString("DURATION"); - static const int GENERIC_NAME_HASH = HashingUtils::HashString("GENERIC_NAME"); - static const int BRAND_NAME_HASH = HashingUtils::HashString("BRAND_NAME"); - static const int STRENGTH_HASH = HashingUtils::HashString("STRENGTH"); - static const int RATE_HASH = HashingUtils::HashString("RATE"); - static const int ACUITY_HASH = HashingUtils::HashString("ACUITY"); - static const int TEST_NAME_HASH = HashingUtils::HashString("TEST_NAME"); - static const int TEST_VALUE_HASH = HashingUtils::HashString("TEST_VALUE"); - static const int TEST_UNITS_HASH = HashingUtils::HashString("TEST_UNITS"); - static const int TEST_UNIT_HASH = HashingUtils::HashString("TEST_UNIT"); - static const int PROCEDURE_NAME_HASH = HashingUtils::HashString("PROCEDURE_NAME"); - static const int TREATMENT_NAME_HASH = HashingUtils::HashString("TREATMENT_NAME"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int AGE_HASH = HashingUtils::HashString("AGE"); - static const int CONTACT_POINT_HASH = HashingUtils::HashString("CONTACT_POINT"); - static const int PHONE_OR_FAX_HASH = HashingUtils::HashString("PHONE_OR_FAX"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int IDENTIFIER_HASH = HashingUtils::HashString("IDENTIFIER"); - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS"); - static const int PROFESSION_HASH = HashingUtils::HashString("PROFESSION"); - static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE"); - static const int DIRECTION_HASH = HashingUtils::HashString("DIRECTION"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); - static const int QUANTITY_HASH = HashingUtils::HashString("QUANTITY"); - static const int TIME_EXPRESSION_HASH = HashingUtils::HashString("TIME_EXPRESSION"); - static const int TIME_TO_MEDICATION_NAME_HASH = HashingUtils::HashString("TIME_TO_MEDICATION_NAME"); - static const int TIME_TO_DX_NAME_HASH = HashingUtils::HashString("TIME_TO_DX_NAME"); - static const int TIME_TO_TEST_NAME_HASH = HashingUtils::HashString("TIME_TO_TEST_NAME"); - static const int TIME_TO_PROCEDURE_NAME_HASH = HashingUtils::HashString("TIME_TO_PROCEDURE_NAME"); - static const int TIME_TO_TREATMENT_NAME_HASH = HashingUtils::HashString("TIME_TO_TREATMENT_NAME"); - static const int AMOUNT_HASH = HashingUtils::HashString("AMOUNT"); - static const int GENDER_HASH = HashingUtils::HashString("GENDER"); - static const int RACE_ETHNICITY_HASH = HashingUtils::HashString("RACE_ETHNICITY"); - static const int ALLERGIES_HASH = HashingUtils::HashString("ALLERGIES"); - static const int TOBACCO_USE_HASH = HashingUtils::HashString("TOBACCO_USE"); - static const int ALCOHOL_CONSUMPTION_HASH = HashingUtils::HashString("ALCOHOL_CONSUMPTION"); - static const int REC_DRUG_USE_HASH = HashingUtils::HashString("REC_DRUG_USE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t DX_NAME_HASH = ConstExprHashingUtils::HashString("DX_NAME"); + static constexpr uint32_t DOSAGE_HASH = ConstExprHashingUtils::HashString("DOSAGE"); + static constexpr uint32_t ROUTE_OR_MODE_HASH = ConstExprHashingUtils::HashString("ROUTE_OR_MODE"); + static constexpr uint32_t FORM_HASH = ConstExprHashingUtils::HashString("FORM"); + static constexpr uint32_t FREQUENCY_HASH = ConstExprHashingUtils::HashString("FREQUENCY"); + static constexpr uint32_t DURATION_HASH = ConstExprHashingUtils::HashString("DURATION"); + static constexpr uint32_t GENERIC_NAME_HASH = ConstExprHashingUtils::HashString("GENERIC_NAME"); + static constexpr uint32_t BRAND_NAME_HASH = ConstExprHashingUtils::HashString("BRAND_NAME"); + static constexpr uint32_t STRENGTH_HASH = ConstExprHashingUtils::HashString("STRENGTH"); + static constexpr uint32_t RATE_HASH = ConstExprHashingUtils::HashString("RATE"); + static constexpr uint32_t ACUITY_HASH = ConstExprHashingUtils::HashString("ACUITY"); + static constexpr uint32_t TEST_NAME_HASH = ConstExprHashingUtils::HashString("TEST_NAME"); + static constexpr uint32_t TEST_VALUE_HASH = ConstExprHashingUtils::HashString("TEST_VALUE"); + static constexpr uint32_t TEST_UNITS_HASH = ConstExprHashingUtils::HashString("TEST_UNITS"); + static constexpr uint32_t TEST_UNIT_HASH = ConstExprHashingUtils::HashString("TEST_UNIT"); + static constexpr uint32_t PROCEDURE_NAME_HASH = ConstExprHashingUtils::HashString("PROCEDURE_NAME"); + static constexpr uint32_t TREATMENT_NAME_HASH = ConstExprHashingUtils::HashString("TREATMENT_NAME"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t AGE_HASH = ConstExprHashingUtils::HashString("AGE"); + static constexpr uint32_t CONTACT_POINT_HASH = ConstExprHashingUtils::HashString("CONTACT_POINT"); + static constexpr uint32_t PHONE_OR_FAX_HASH = ConstExprHashingUtils::HashString("PHONE_OR_FAX"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t IDENTIFIER_HASH = ConstExprHashingUtils::HashString("IDENTIFIER"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t ADDRESS_HASH = ConstExprHashingUtils::HashString("ADDRESS"); + static constexpr uint32_t PROFESSION_HASH = ConstExprHashingUtils::HashString("PROFESSION"); + static constexpr uint32_t SYSTEM_ORGAN_SITE_HASH = ConstExprHashingUtils::HashString("SYSTEM_ORGAN_SITE"); + static constexpr uint32_t DIRECTION_HASH = ConstExprHashingUtils::HashString("DIRECTION"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); + static constexpr uint32_t QUANTITY_HASH = ConstExprHashingUtils::HashString("QUANTITY"); + static constexpr uint32_t TIME_EXPRESSION_HASH = ConstExprHashingUtils::HashString("TIME_EXPRESSION"); + static constexpr uint32_t TIME_TO_MEDICATION_NAME_HASH = ConstExprHashingUtils::HashString("TIME_TO_MEDICATION_NAME"); + static constexpr uint32_t TIME_TO_DX_NAME_HASH = ConstExprHashingUtils::HashString("TIME_TO_DX_NAME"); + static constexpr uint32_t TIME_TO_TEST_NAME_HASH = ConstExprHashingUtils::HashString("TIME_TO_TEST_NAME"); + static constexpr uint32_t TIME_TO_PROCEDURE_NAME_HASH = ConstExprHashingUtils::HashString("TIME_TO_PROCEDURE_NAME"); + static constexpr uint32_t TIME_TO_TREATMENT_NAME_HASH = ConstExprHashingUtils::HashString("TIME_TO_TREATMENT_NAME"); + static constexpr uint32_t AMOUNT_HASH = ConstExprHashingUtils::HashString("AMOUNT"); + static constexpr uint32_t GENDER_HASH = ConstExprHashingUtils::HashString("GENDER"); + static constexpr uint32_t RACE_ETHNICITY_HASH = ConstExprHashingUtils::HashString("RACE_ETHNICITY"); + static constexpr uint32_t ALLERGIES_HASH = ConstExprHashingUtils::HashString("ALLERGIES"); + static constexpr uint32_t TOBACCO_USE_HASH = ConstExprHashingUtils::HashString("TOBACCO_USE"); + static constexpr uint32_t ALCOHOL_CONSUMPTION_HASH = ConstExprHashingUtils::HashString("ALCOHOL_CONSUMPTION"); + static constexpr uint32_t REC_DRUG_USE_HASH = ConstExprHashingUtils::HashString("REC_DRUG_USE"); EntitySubType GetEntitySubTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return EntitySubType::NAME; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntityType.cpp index f0e2623e116..b2193ecb1bb 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/EntityType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace EntityTypeMapper { - static const int MEDICATION_HASH = HashingUtils::HashString("MEDICATION"); - static const int MEDICAL_CONDITION_HASH = HashingUtils::HashString("MEDICAL_CONDITION"); - static const int PROTECTED_HEALTH_INFORMATION_HASH = HashingUtils::HashString("PROTECTED_HEALTH_INFORMATION"); - static const int TEST_TREATMENT_PROCEDURE_HASH = HashingUtils::HashString("TEST_TREATMENT_PROCEDURE"); - static const int ANATOMY_HASH = HashingUtils::HashString("ANATOMY"); - static const int TIME_EXPRESSION_HASH = HashingUtils::HashString("TIME_EXPRESSION"); - static const int BEHAVIORAL_ENVIRONMENTAL_SOCIAL_HASH = HashingUtils::HashString("BEHAVIORAL_ENVIRONMENTAL_SOCIAL"); + static constexpr uint32_t MEDICATION_HASH = ConstExprHashingUtils::HashString("MEDICATION"); + static constexpr uint32_t MEDICAL_CONDITION_HASH = ConstExprHashingUtils::HashString("MEDICAL_CONDITION"); + static constexpr uint32_t PROTECTED_HEALTH_INFORMATION_HASH = ConstExprHashingUtils::HashString("PROTECTED_HEALTH_INFORMATION"); + static constexpr uint32_t TEST_TREATMENT_PROCEDURE_HASH = ConstExprHashingUtils::HashString("TEST_TREATMENT_PROCEDURE"); + static constexpr uint32_t ANATOMY_HASH = ConstExprHashingUtils::HashString("ANATOMY"); + static constexpr uint32_t TIME_EXPRESSION_HASH = ConstExprHashingUtils::HashString("TIME_EXPRESSION"); + static constexpr uint32_t BEHAVIORAL_ENVIRONMENTAL_SOCIAL_HASH = ConstExprHashingUtils::HashString("BEHAVIORAL_ENVIRONMENTAL_SOCIAL"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEDICATION_HASH) { return EntityType::MEDICATION; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMAttributeType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMAttributeType.cpp index c6f32cf637c..4aa6d5bb56d 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMAttributeType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ICD10CMAttributeTypeMapper { - static const int ACUITY_HASH = HashingUtils::HashString("ACUITY"); - static const int DIRECTION_HASH = HashingUtils::HashString("DIRECTION"); - static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); - static const int QUANTITY_HASH = HashingUtils::HashString("QUANTITY"); - static const int TIME_TO_DX_NAME_HASH = HashingUtils::HashString("TIME_TO_DX_NAME"); - static const int TIME_EXPRESSION_HASH = HashingUtils::HashString("TIME_EXPRESSION"); + static constexpr uint32_t ACUITY_HASH = ConstExprHashingUtils::HashString("ACUITY"); + static constexpr uint32_t DIRECTION_HASH = ConstExprHashingUtils::HashString("DIRECTION"); + static constexpr uint32_t SYSTEM_ORGAN_SITE_HASH = ConstExprHashingUtils::HashString("SYSTEM_ORGAN_SITE"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); + static constexpr uint32_t QUANTITY_HASH = ConstExprHashingUtils::HashString("QUANTITY"); + static constexpr uint32_t TIME_TO_DX_NAME_HASH = ConstExprHashingUtils::HashString("TIME_TO_DX_NAME"); + static constexpr uint32_t TIME_EXPRESSION_HASH = ConstExprHashingUtils::HashString("TIME_EXPRESSION"); ICD10CMAttributeType GetICD10CMAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACUITY_HASH) { return ICD10CMAttributeType::ACUITY; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityCategory.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityCategory.cpp index fa63bb32892..c25605d0e5c 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityCategory.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityCategory.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ICD10CMEntityCategoryMapper { - static const int MEDICAL_CONDITION_HASH = HashingUtils::HashString("MEDICAL_CONDITION"); + static constexpr uint32_t MEDICAL_CONDITION_HASH = ConstExprHashingUtils::HashString("MEDICAL_CONDITION"); ICD10CMEntityCategory GetICD10CMEntityCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEDICAL_CONDITION_HASH) { return ICD10CMEntityCategory::MEDICAL_CONDITION; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityType.cpp index c45e2e8563c..748a7309206 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMEntityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ICD10CMEntityTypeMapper { - static const int DX_NAME_HASH = HashingUtils::HashString("DX_NAME"); - static const int TIME_EXPRESSION_HASH = HashingUtils::HashString("TIME_EXPRESSION"); + static constexpr uint32_t DX_NAME_HASH = ConstExprHashingUtils::HashString("DX_NAME"); + static constexpr uint32_t TIME_EXPRESSION_HASH = ConstExprHashingUtils::HashString("TIME_EXPRESSION"); ICD10CMEntityType GetICD10CMEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DX_NAME_HASH) { return ICD10CMEntityType::DX_NAME; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMRelationshipType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMRelationshipType.cpp index bebe1f8dd5a..0f838a7d8c9 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMRelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMRelationshipType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ICD10CMRelationshipTypeMapper { - static const int OVERLAP_HASH = HashingUtils::HashString("OVERLAP"); - static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); + static constexpr uint32_t OVERLAP_HASH = ConstExprHashingUtils::HashString("OVERLAP"); + static constexpr uint32_t SYSTEM_ORGAN_SITE_HASH = ConstExprHashingUtils::HashString("SYSTEM_ORGAN_SITE"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); ICD10CMRelationshipType GetICD10CMRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERLAP_HASH) { return ICD10CMRelationshipType::OVERLAP; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMTraitName.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMTraitName.cpp index 91d2dd9cfcf..d0d21fa10c2 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMTraitName.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/ICD10CMTraitName.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ICD10CMTraitNameMapper { - static const int NEGATION_HASH = HashingUtils::HashString("NEGATION"); - static const int DIAGNOSIS_HASH = HashingUtils::HashString("DIAGNOSIS"); - static const int SIGN_HASH = HashingUtils::HashString("SIGN"); - static const int SYMPTOM_HASH = HashingUtils::HashString("SYMPTOM"); - static const int PERTAINS_TO_FAMILY_HASH = HashingUtils::HashString("PERTAINS_TO_FAMILY"); - static const int HYPOTHETICAL_HASH = HashingUtils::HashString("HYPOTHETICAL"); - static const int LOW_CONFIDENCE_HASH = HashingUtils::HashString("LOW_CONFIDENCE"); + static constexpr uint32_t NEGATION_HASH = ConstExprHashingUtils::HashString("NEGATION"); + static constexpr uint32_t DIAGNOSIS_HASH = ConstExprHashingUtils::HashString("DIAGNOSIS"); + static constexpr uint32_t SIGN_HASH = ConstExprHashingUtils::HashString("SIGN"); + static constexpr uint32_t SYMPTOM_HASH = ConstExprHashingUtils::HashString("SYMPTOM"); + static constexpr uint32_t PERTAINS_TO_FAMILY_HASH = ConstExprHashingUtils::HashString("PERTAINS_TO_FAMILY"); + static constexpr uint32_t HYPOTHETICAL_HASH = ConstExprHashingUtils::HashString("HYPOTHETICAL"); + static constexpr uint32_t LOW_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("LOW_CONFIDENCE"); ICD10CMTraitName GetICD10CMTraitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEGATION_HASH) { return ICD10CMTraitName::NEGATION; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/JobStatus.cpp index b25c894be52..71360c9f015 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/JobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PARTIAL_SUCCESS_HASH = HashingUtils::HashString("PARTIAL_SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOP_REQUESTED_HASH = HashingUtils::HashString("STOP_REQUESTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PARTIAL_SUCCESS_HASH = ConstExprHashingUtils::HashString("PARTIAL_SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOP_REQUESTED_HASH = ConstExprHashingUtils::HashString("STOP_REQUESTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/LanguageCode.cpp index 6cebd997416..7d68db906b4 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/LanguageCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LanguageCodeMapper { - static const int en_HASH = HashingUtils::HashString("en"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_HASH) { return LanguageCode::en; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RelationshipType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RelationshipType.cpp index df4bfe44b9a..7269c50a30d 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RelationshipType.cpp @@ -20,33 +20,33 @@ namespace Aws namespace RelationshipTypeMapper { - static const int EVERY_HASH = HashingUtils::HashString("EVERY"); - static const int WITH_DOSAGE_HASH = HashingUtils::HashString("WITH_DOSAGE"); - static const int ADMINISTERED_VIA_HASH = HashingUtils::HashString("ADMINISTERED_VIA"); - static const int FOR_HASH = HashingUtils::HashString("FOR"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); - static const int OVERLAP_HASH = HashingUtils::HashString("OVERLAP"); - static const int DOSAGE_HASH = HashingUtils::HashString("DOSAGE"); - static const int ROUTE_OR_MODE_HASH = HashingUtils::HashString("ROUTE_OR_MODE"); - static const int FORM_HASH = HashingUtils::HashString("FORM"); - static const int FREQUENCY_HASH = HashingUtils::HashString("FREQUENCY"); - static const int DURATION_HASH = HashingUtils::HashString("DURATION"); - static const int STRENGTH_HASH = HashingUtils::HashString("STRENGTH"); - static const int RATE_HASH = HashingUtils::HashString("RATE"); - static const int ACUITY_HASH = HashingUtils::HashString("ACUITY"); - static const int TEST_VALUE_HASH = HashingUtils::HashString("TEST_VALUE"); - static const int TEST_UNITS_HASH = HashingUtils::HashString("TEST_UNITS"); - static const int TEST_UNIT_HASH = HashingUtils::HashString("TEST_UNIT"); - static const int DIRECTION_HASH = HashingUtils::HashString("DIRECTION"); - static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE"); - static const int AMOUNT_HASH = HashingUtils::HashString("AMOUNT"); - static const int USAGE_HASH = HashingUtils::HashString("USAGE"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); + static constexpr uint32_t EVERY_HASH = ConstExprHashingUtils::HashString("EVERY"); + static constexpr uint32_t WITH_DOSAGE_HASH = ConstExprHashingUtils::HashString("WITH_DOSAGE"); + static constexpr uint32_t ADMINISTERED_VIA_HASH = ConstExprHashingUtils::HashString("ADMINISTERED_VIA"); + static constexpr uint32_t FOR_HASH = ConstExprHashingUtils::HashString("FOR"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t OVERLAP_HASH = ConstExprHashingUtils::HashString("OVERLAP"); + static constexpr uint32_t DOSAGE_HASH = ConstExprHashingUtils::HashString("DOSAGE"); + static constexpr uint32_t ROUTE_OR_MODE_HASH = ConstExprHashingUtils::HashString("ROUTE_OR_MODE"); + static constexpr uint32_t FORM_HASH = ConstExprHashingUtils::HashString("FORM"); + static constexpr uint32_t FREQUENCY_HASH = ConstExprHashingUtils::HashString("FREQUENCY"); + static constexpr uint32_t DURATION_HASH = ConstExprHashingUtils::HashString("DURATION"); + static constexpr uint32_t STRENGTH_HASH = ConstExprHashingUtils::HashString("STRENGTH"); + static constexpr uint32_t RATE_HASH = ConstExprHashingUtils::HashString("RATE"); + static constexpr uint32_t ACUITY_HASH = ConstExprHashingUtils::HashString("ACUITY"); + static constexpr uint32_t TEST_VALUE_HASH = ConstExprHashingUtils::HashString("TEST_VALUE"); + static constexpr uint32_t TEST_UNITS_HASH = ConstExprHashingUtils::HashString("TEST_UNITS"); + static constexpr uint32_t TEST_UNIT_HASH = ConstExprHashingUtils::HashString("TEST_UNIT"); + static constexpr uint32_t DIRECTION_HASH = ConstExprHashingUtils::HashString("DIRECTION"); + static constexpr uint32_t SYSTEM_ORGAN_SITE_HASH = ConstExprHashingUtils::HashString("SYSTEM_ORGAN_SITE"); + static constexpr uint32_t AMOUNT_HASH = ConstExprHashingUtils::HashString("AMOUNT"); + static constexpr uint32_t USAGE_HASH = ConstExprHashingUtils::HashString("USAGE"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); RelationshipType GetRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVERY_HASH) { return RelationshipType::EVERY; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormAttributeType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormAttributeType.cpp index 7b5ae67ba30..a4ffdf665d5 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormAttributeType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace RxNormAttributeTypeMapper { - static const int DOSAGE_HASH = HashingUtils::HashString("DOSAGE"); - static const int DURATION_HASH = HashingUtils::HashString("DURATION"); - static const int FORM_HASH = HashingUtils::HashString("FORM"); - static const int FREQUENCY_HASH = HashingUtils::HashString("FREQUENCY"); - static const int RATE_HASH = HashingUtils::HashString("RATE"); - static const int ROUTE_OR_MODE_HASH = HashingUtils::HashString("ROUTE_OR_MODE"); - static const int STRENGTH_HASH = HashingUtils::HashString("STRENGTH"); + static constexpr uint32_t DOSAGE_HASH = ConstExprHashingUtils::HashString("DOSAGE"); + static constexpr uint32_t DURATION_HASH = ConstExprHashingUtils::HashString("DURATION"); + static constexpr uint32_t FORM_HASH = ConstExprHashingUtils::HashString("FORM"); + static constexpr uint32_t FREQUENCY_HASH = ConstExprHashingUtils::HashString("FREQUENCY"); + static constexpr uint32_t RATE_HASH = ConstExprHashingUtils::HashString("RATE"); + static constexpr uint32_t ROUTE_OR_MODE_HASH = ConstExprHashingUtils::HashString("ROUTE_OR_MODE"); + static constexpr uint32_t STRENGTH_HASH = ConstExprHashingUtils::HashString("STRENGTH"); RxNormAttributeType GetRxNormAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOSAGE_HASH) { return RxNormAttributeType::DOSAGE; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityCategory.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityCategory.cpp index f36df71b512..9f4a2a0d182 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityCategory.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityCategory.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RxNormEntityCategoryMapper { - static const int MEDICATION_HASH = HashingUtils::HashString("MEDICATION"); + static constexpr uint32_t MEDICATION_HASH = ConstExprHashingUtils::HashString("MEDICATION"); RxNormEntityCategory GetRxNormEntityCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEDICATION_HASH) { return RxNormEntityCategory::MEDICATION; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityType.cpp index 9790d3f843d..87abde728c6 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormEntityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RxNormEntityTypeMapper { - static const int BRAND_NAME_HASH = HashingUtils::HashString("BRAND_NAME"); - static const int GENERIC_NAME_HASH = HashingUtils::HashString("GENERIC_NAME"); + static constexpr uint32_t BRAND_NAME_HASH = ConstExprHashingUtils::HashString("BRAND_NAME"); + static constexpr uint32_t GENERIC_NAME_HASH = ConstExprHashingUtils::HashString("GENERIC_NAME"); RxNormEntityType GetRxNormEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BRAND_NAME_HASH) { return RxNormEntityType::BRAND_NAME; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormTraitName.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormTraitName.cpp index 7f10235e016..6f3ae0aace7 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormTraitName.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/RxNormTraitName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RxNormTraitNameMapper { - static const int NEGATION_HASH = HashingUtils::HashString("NEGATION"); - static const int PAST_HISTORY_HASH = HashingUtils::HashString("PAST_HISTORY"); + static constexpr uint32_t NEGATION_HASH = ConstExprHashingUtils::HashString("NEGATION"); + static constexpr uint32_t PAST_HISTORY_HASH = ConstExprHashingUtils::HashString("PAST_HISTORY"); RxNormTraitName GetRxNormTraitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEGATION_HASH) { return RxNormTraitName::NEGATION; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTAttributeType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTAttributeType.cpp index 70a82605084..c04f1943883 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTAttributeType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SNOMEDCTAttributeTypeMapper { - static const int ACUITY_HASH = HashingUtils::HashString("ACUITY"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); - static const int DIRECTION_HASH = HashingUtils::HashString("DIRECTION"); - static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE"); - static const int TEST_VALUE_HASH = HashingUtils::HashString("TEST_VALUE"); - static const int TEST_UNIT_HASH = HashingUtils::HashString("TEST_UNIT"); + static constexpr uint32_t ACUITY_HASH = ConstExprHashingUtils::HashString("ACUITY"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); + static constexpr uint32_t DIRECTION_HASH = ConstExprHashingUtils::HashString("DIRECTION"); + static constexpr uint32_t SYSTEM_ORGAN_SITE_HASH = ConstExprHashingUtils::HashString("SYSTEM_ORGAN_SITE"); + static constexpr uint32_t TEST_VALUE_HASH = ConstExprHashingUtils::HashString("TEST_VALUE"); + static constexpr uint32_t TEST_UNIT_HASH = ConstExprHashingUtils::HashString("TEST_UNIT"); SNOMEDCTAttributeType GetSNOMEDCTAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACUITY_HASH) { return SNOMEDCTAttributeType::ACUITY; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityCategory.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityCategory.cpp index 45fbb647827..51d2b42d78c 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityCategory.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityCategory.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SNOMEDCTEntityCategoryMapper { - static const int MEDICAL_CONDITION_HASH = HashingUtils::HashString("MEDICAL_CONDITION"); - static const int ANATOMY_HASH = HashingUtils::HashString("ANATOMY"); - static const int TEST_TREATMENT_PROCEDURE_HASH = HashingUtils::HashString("TEST_TREATMENT_PROCEDURE"); + static constexpr uint32_t MEDICAL_CONDITION_HASH = ConstExprHashingUtils::HashString("MEDICAL_CONDITION"); + static constexpr uint32_t ANATOMY_HASH = ConstExprHashingUtils::HashString("ANATOMY"); + static constexpr uint32_t TEST_TREATMENT_PROCEDURE_HASH = ConstExprHashingUtils::HashString("TEST_TREATMENT_PROCEDURE"); SNOMEDCTEntityCategory GetSNOMEDCTEntityCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEDICAL_CONDITION_HASH) { return SNOMEDCTEntityCategory::MEDICAL_CONDITION; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityType.cpp index e4e63549b41..3e662c5db26 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTEntityType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SNOMEDCTEntityTypeMapper { - static const int DX_NAME_HASH = HashingUtils::HashString("DX_NAME"); - static const int TEST_NAME_HASH = HashingUtils::HashString("TEST_NAME"); - static const int PROCEDURE_NAME_HASH = HashingUtils::HashString("PROCEDURE_NAME"); - static const int TREATMENT_NAME_HASH = HashingUtils::HashString("TREATMENT_NAME"); + static constexpr uint32_t DX_NAME_HASH = ConstExprHashingUtils::HashString("DX_NAME"); + static constexpr uint32_t TEST_NAME_HASH = ConstExprHashingUtils::HashString("TEST_NAME"); + static constexpr uint32_t PROCEDURE_NAME_HASH = ConstExprHashingUtils::HashString("PROCEDURE_NAME"); + static constexpr uint32_t TREATMENT_NAME_HASH = ConstExprHashingUtils::HashString("TREATMENT_NAME"); SNOMEDCTEntityType GetSNOMEDCTEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DX_NAME_HASH) { return SNOMEDCTEntityType::DX_NAME; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTRelationshipType.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTRelationshipType.cpp index 895831d1e9b..9ab523ee83d 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTRelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTRelationshipType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SNOMEDCTRelationshipTypeMapper { - static const int ACUITY_HASH = HashingUtils::HashString("ACUITY"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); - static const int TEST_VALUE_HASH = HashingUtils::HashString("TEST_VALUE"); - static const int TEST_UNITS_HASH = HashingUtils::HashString("TEST_UNITS"); - static const int DIRECTION_HASH = HashingUtils::HashString("DIRECTION"); - static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE"); - static const int TEST_UNIT_HASH = HashingUtils::HashString("TEST_UNIT"); + static constexpr uint32_t ACUITY_HASH = ConstExprHashingUtils::HashString("ACUITY"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); + static constexpr uint32_t TEST_VALUE_HASH = ConstExprHashingUtils::HashString("TEST_VALUE"); + static constexpr uint32_t TEST_UNITS_HASH = ConstExprHashingUtils::HashString("TEST_UNITS"); + static constexpr uint32_t DIRECTION_HASH = ConstExprHashingUtils::HashString("DIRECTION"); + static constexpr uint32_t SYSTEM_ORGAN_SITE_HASH = ConstExprHashingUtils::HashString("SYSTEM_ORGAN_SITE"); + static constexpr uint32_t TEST_UNIT_HASH = ConstExprHashingUtils::HashString("TEST_UNIT"); SNOMEDCTRelationshipType GetSNOMEDCTRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACUITY_HASH) { return SNOMEDCTRelationshipType::ACUITY; diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTTraitName.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTTraitName.cpp index 5a7779ead4c..68687b173b4 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTTraitName.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/model/SNOMEDCTTraitName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SNOMEDCTTraitNameMapper { - static const int NEGATION_HASH = HashingUtils::HashString("NEGATION"); - static const int DIAGNOSIS_HASH = HashingUtils::HashString("DIAGNOSIS"); - static const int SIGN_HASH = HashingUtils::HashString("SIGN"); - static const int SYMPTOM_HASH = HashingUtils::HashString("SYMPTOM"); - static const int PERTAINS_TO_FAMILY_HASH = HashingUtils::HashString("PERTAINS_TO_FAMILY"); - static const int HYPOTHETICAL_HASH = HashingUtils::HashString("HYPOTHETICAL"); - static const int LOW_CONFIDENCE_HASH = HashingUtils::HashString("LOW_CONFIDENCE"); - static const int PAST_HISTORY_HASH = HashingUtils::HashString("PAST_HISTORY"); - static const int FUTURE_HASH = HashingUtils::HashString("FUTURE"); + static constexpr uint32_t NEGATION_HASH = ConstExprHashingUtils::HashString("NEGATION"); + static constexpr uint32_t DIAGNOSIS_HASH = ConstExprHashingUtils::HashString("DIAGNOSIS"); + static constexpr uint32_t SIGN_HASH = ConstExprHashingUtils::HashString("SIGN"); + static constexpr uint32_t SYMPTOM_HASH = ConstExprHashingUtils::HashString("SYMPTOM"); + static constexpr uint32_t PERTAINS_TO_FAMILY_HASH = ConstExprHashingUtils::HashString("PERTAINS_TO_FAMILY"); + static constexpr uint32_t HYPOTHETICAL_HASH = ConstExprHashingUtils::HashString("HYPOTHETICAL"); + static constexpr uint32_t LOW_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("LOW_CONFIDENCE"); + static constexpr uint32_t PAST_HISTORY_HASH = ConstExprHashingUtils::HashString("PAST_HISTORY"); + static constexpr uint32_t FUTURE_HASH = ConstExprHashingUtils::HashString("FUTURE"); SNOMEDCTTraitName GetSNOMEDCTTraitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEGATION_HASH) { return SNOMEDCTTraitName::NEGATION; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerErrors.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerErrors.cpp index 05ffee97d91..59a140955ad 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerErrors.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerErrors.cpp @@ -18,13 +18,13 @@ namespace ComputeOptimizer namespace ComputeOptimizerErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/AutoScalingConfiguration.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/AutoScalingConfiguration.cpp index 812e2973e9a..2fde9d421bd 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/AutoScalingConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/AutoScalingConfiguration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoScalingConfigurationMapper { - static const int TargetTrackingScalingCpu_HASH = HashingUtils::HashString("TargetTrackingScalingCpu"); - static const int TargetTrackingScalingMemory_HASH = HashingUtils::HashString("TargetTrackingScalingMemory"); + static constexpr uint32_t TargetTrackingScalingCpu_HASH = ConstExprHashingUtils::HashString("TargetTrackingScalingCpu"); + static constexpr uint32_t TargetTrackingScalingMemory_HASH = ConstExprHashingUtils::HashString("TargetTrackingScalingMemory"); AutoScalingConfiguration GetAutoScalingConfigurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TargetTrackingScalingCpu_HASH) { return AutoScalingConfiguration::TargetTrackingScalingCpu; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CpuVendorArchitecture.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CpuVendorArchitecture.cpp index a57b02b3f8a..8c743c3a53a 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CpuVendorArchitecture.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CpuVendorArchitecture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CpuVendorArchitectureMapper { - static const int AWS_ARM64_HASH = HashingUtils::HashString("AWS_ARM64"); - static const int CURRENT_HASH = HashingUtils::HashString("CURRENT"); + static constexpr uint32_t AWS_ARM64_HASH = ConstExprHashingUtils::HashString("AWS_ARM64"); + static constexpr uint32_t CURRENT_HASH = ConstExprHashingUtils::HashString("CURRENT"); CpuVendorArchitecture GetCpuVendorArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ARM64_HASH) { return CpuVendorArchitecture::AWS_ARM64; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Currency.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Currency.cpp index c382cbaac8e..783fa073d68 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Currency.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Currency.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CurrencyMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); - static const int CNY_HASH = HashingUtils::HashString("CNY"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); + static constexpr uint32_t CNY_HASH = ConstExprHashingUtils::HashString("CNY"); Currency GetCurrencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return Currency::USD; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CurrentPerformanceRisk.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CurrentPerformanceRisk.cpp index 7f6f41b63af..6b280c9a70f 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CurrentPerformanceRisk.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/CurrentPerformanceRisk.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CurrentPerformanceRiskMapper { - static const int VeryLow_HASH = HashingUtils::HashString("VeryLow"); - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); + static constexpr uint32_t VeryLow_HASH = ConstExprHashingUtils::HashString("VeryLow"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); CurrentPerformanceRisk GetCurrentPerformanceRiskForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VeryLow_HASH) { return CurrentPerformanceRisk::VeryLow; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFilterName.cpp index 5540784750c..9e4446e92d1 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EBSFilterNameMapper { - static const int Finding_HASH = HashingUtils::HashString("Finding"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); EBSFilterName GetEBSFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Finding_HASH) { return EBSFilterName::Finding; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFinding.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFinding.cpp index 9fdae76631e..635eb9b2275 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFinding.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSFinding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EBSFindingMapper { - static const int Optimized_HASH = HashingUtils::HashString("Optimized"); - static const int NotOptimized_HASH = HashingUtils::HashString("NotOptimized"); + static constexpr uint32_t Optimized_HASH = ConstExprHashingUtils::HashString("Optimized"); + static constexpr uint32_t NotOptimized_HASH = ConstExprHashingUtils::HashString("NotOptimized"); EBSFinding GetEBSFindingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Optimized_HASH) { return EBSFinding::Optimized; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSMetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSMetricName.cpp index 0d28faa831b..9b5f2949f4f 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSMetricName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EBSMetricName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EBSMetricNameMapper { - static const int VolumeReadOpsPerSecond_HASH = HashingUtils::HashString("VolumeReadOpsPerSecond"); - static const int VolumeWriteOpsPerSecond_HASH = HashingUtils::HashString("VolumeWriteOpsPerSecond"); - static const int VolumeReadBytesPerSecond_HASH = HashingUtils::HashString("VolumeReadBytesPerSecond"); - static const int VolumeWriteBytesPerSecond_HASH = HashingUtils::HashString("VolumeWriteBytesPerSecond"); + static constexpr uint32_t VolumeReadOpsPerSecond_HASH = ConstExprHashingUtils::HashString("VolumeReadOpsPerSecond"); + static constexpr uint32_t VolumeWriteOpsPerSecond_HASH = ConstExprHashingUtils::HashString("VolumeWriteOpsPerSecond"); + static constexpr uint32_t VolumeReadBytesPerSecond_HASH = ConstExprHashingUtils::HashString("VolumeReadBytesPerSecond"); + static constexpr uint32_t VolumeWriteBytesPerSecond_HASH = ConstExprHashingUtils::HashString("VolumeWriteBytesPerSecond"); EBSMetricName GetEBSMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VolumeReadOpsPerSecond_HASH) { return EBSMetricName::VolumeReadOpsPerSecond; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceLaunchType.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceLaunchType.cpp index ddb652d6523..3f47300f1db 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceLaunchType.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceLaunchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ECSServiceLaunchTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int Fargate_HASH = HashingUtils::HashString("Fargate"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t Fargate_HASH = ConstExprHashingUtils::HashString("Fargate"); ECSServiceLaunchType GetECSServiceLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return ECSServiceLaunchType::EC2; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricName.cpp index c876d618220..722b1ace289 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ECSServiceMetricNameMapper { - static const int Cpu_HASH = HashingUtils::HashString("Cpu"); - static const int Memory_HASH = HashingUtils::HashString("Memory"); + static constexpr uint32_t Cpu_HASH = ConstExprHashingUtils::HashString("Cpu"); + static constexpr uint32_t Memory_HASH = ConstExprHashingUtils::HashString("Memory"); ECSServiceMetricName GetECSServiceMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Cpu_HASH) { return ECSServiceMetricName::Cpu; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricStatistic.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricStatistic.cpp index cb5203d6914..a5c44d6a7ea 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceMetricStatistic.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ECSServiceMetricStatisticMapper { - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int Average_HASH = HashingUtils::HashString("Average"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); ECSServiceMetricStatistic GetECSServiceMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Maximum_HASH) { return ECSServiceMetricStatistic::Maximum; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFilterName.cpp index 8718ac3b308..4f6be942e8f 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ECSServiceRecommendationFilterNameMapper { - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCode_HASH = HashingUtils::HashString("FindingReasonCode"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCode_HASH = ConstExprHashingUtils::HashString("FindingReasonCode"); ECSServiceRecommendationFilterName GetECSServiceRecommendationFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Finding_HASH) { return ECSServiceRecommendationFilterName::Finding; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFinding.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFinding.cpp index 2e8037fb764..340094ed2fb 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFinding.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFinding.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ECSServiceRecommendationFindingMapper { - static const int Optimized_HASH = HashingUtils::HashString("Optimized"); - static const int Underprovisioned_HASH = HashingUtils::HashString("Underprovisioned"); - static const int Overprovisioned_HASH = HashingUtils::HashString("Overprovisioned"); + static constexpr uint32_t Optimized_HASH = ConstExprHashingUtils::HashString("Optimized"); + static constexpr uint32_t Underprovisioned_HASH = ConstExprHashingUtils::HashString("Underprovisioned"); + static constexpr uint32_t Overprovisioned_HASH = ConstExprHashingUtils::HashString("Overprovisioned"); ECSServiceRecommendationFinding GetECSServiceRecommendationFindingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Optimized_HASH) { return ECSServiceRecommendationFinding::Optimized; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFindingReasonCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFindingReasonCode.cpp index 30e1f71b4ec..7884f972e6f 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ECSServiceRecommendationFindingReasonCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ECSServiceRecommendationFindingReasonCodeMapper { - static const int MemoryOverprovisioned_HASH = HashingUtils::HashString("MemoryOverprovisioned"); - static const int MemoryUnderprovisioned_HASH = HashingUtils::HashString("MemoryUnderprovisioned"); - static const int CPUOverprovisioned_HASH = HashingUtils::HashString("CPUOverprovisioned"); - static const int CPUUnderprovisioned_HASH = HashingUtils::HashString("CPUUnderprovisioned"); + static constexpr uint32_t MemoryOverprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryOverprovisioned"); + static constexpr uint32_t MemoryUnderprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryUnderprovisioned"); + static constexpr uint32_t CPUOverprovisioned_HASH = ConstExprHashingUtils::HashString("CPUOverprovisioned"); + static constexpr uint32_t CPUUnderprovisioned_HASH = ConstExprHashingUtils::HashString("CPUUnderprovisioned"); ECSServiceRecommendationFindingReasonCode GetECSServiceRecommendationFindingReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MemoryOverprovisioned_HASH) { return ECSServiceRecommendationFindingReasonCode::MemoryOverprovisioned; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnhancedInfrastructureMetrics.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnhancedInfrastructureMetrics.cpp index f0495770429..a768501b15d 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnhancedInfrastructureMetrics.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnhancedInfrastructureMetrics.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnhancedInfrastructureMetricsMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); EnhancedInfrastructureMetrics GetEnhancedInfrastructureMetricsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return EnhancedInfrastructureMetrics::Active; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnrollmentFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnrollmentFilterName.cpp index 3c0274c1e67..4aae98445bf 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnrollmentFilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/EnrollmentFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EnrollmentFilterNameMapper { - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); EnrollmentFilterName GetEnrollmentFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Status_HASH) { return EnrollmentFilterName::Status; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableAutoScalingGroupField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableAutoScalingGroupField.cpp index bf98ce6f855..ca381edc50b 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableAutoScalingGroupField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableAutoScalingGroupField.cpp @@ -20,71 +20,71 @@ namespace Aws namespace ExportableAutoScalingGroupFieldMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int AutoScalingGroupArn_HASH = HashingUtils::HashString("AutoScalingGroupArn"); - static const int AutoScalingGroupName_HASH = HashingUtils::HashString("AutoScalingGroupName"); - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int UtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("UtilizationMetricsCpuMaximum"); - static const int UtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("UtilizationMetricsMemoryMaximum"); - static const int UtilizationMetricsEbsReadOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsReadOpsPerSecondMaximum"); - static const int UtilizationMetricsEbsWriteOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsWriteOpsPerSecondMaximum"); - static const int UtilizationMetricsEbsReadBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsReadBytesPerSecondMaximum"); - static const int UtilizationMetricsEbsWriteBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsWriteBytesPerSecondMaximum"); - static const int UtilizationMetricsDiskReadOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskReadOpsPerSecondMaximum"); - static const int UtilizationMetricsDiskWriteOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskWriteOpsPerSecondMaximum"); - static const int UtilizationMetricsDiskReadBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskReadBytesPerSecondMaximum"); - static const int UtilizationMetricsDiskWriteBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskWriteBytesPerSecondMaximum"); - static const int UtilizationMetricsNetworkInBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkInBytesPerSecondMaximum"); - static const int UtilizationMetricsNetworkOutBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkOutBytesPerSecondMaximum"); - static const int UtilizationMetricsNetworkPacketsInPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkPacketsInPerSecondMaximum"); - static const int UtilizationMetricsNetworkPacketsOutPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkPacketsOutPerSecondMaximum"); - static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); - static const int CurrentConfigurationInstanceType_HASH = HashingUtils::HashString("CurrentConfigurationInstanceType"); - static const int CurrentConfigurationDesiredCapacity_HASH = HashingUtils::HashString("CurrentConfigurationDesiredCapacity"); - static const int CurrentConfigurationMinSize_HASH = HashingUtils::HashString("CurrentConfigurationMinSize"); - static const int CurrentConfigurationMaxSize_HASH = HashingUtils::HashString("CurrentConfigurationMaxSize"); - static const int CurrentOnDemandPrice_HASH = HashingUtils::HashString("CurrentOnDemandPrice"); - static const int CurrentStandardOneYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("CurrentStandardOneYearNoUpfrontReservedPrice"); - static const int CurrentStandardThreeYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("CurrentStandardThreeYearNoUpfrontReservedPrice"); - static const int CurrentVCpus_HASH = HashingUtils::HashString("CurrentVCpus"); - static const int CurrentMemory_HASH = HashingUtils::HashString("CurrentMemory"); - static const int CurrentStorage_HASH = HashingUtils::HashString("CurrentStorage"); - static const int CurrentNetwork_HASH = HashingUtils::HashString("CurrentNetwork"); - static const int RecommendationOptionsConfigurationInstanceType_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationInstanceType"); - static const int RecommendationOptionsConfigurationDesiredCapacity_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationDesiredCapacity"); - static const int RecommendationOptionsConfigurationMinSize_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationMinSize"); - static const int RecommendationOptionsConfigurationMaxSize_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationMaxSize"); - static const int RecommendationOptionsProjectedUtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"); - static const int RecommendationOptionsPerformanceRisk_HASH = HashingUtils::HashString("RecommendationOptionsPerformanceRisk"); - static const int RecommendationOptionsOnDemandPrice_HASH = HashingUtils::HashString("RecommendationOptionsOnDemandPrice"); - static const int RecommendationOptionsStandardOneYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"); - static const int RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"); - static const int RecommendationOptionsVcpus_HASH = HashingUtils::HashString("RecommendationOptionsVcpus"); - static const int RecommendationOptionsMemory_HASH = HashingUtils::HashString("RecommendationOptionsMemory"); - static const int RecommendationOptionsStorage_HASH = HashingUtils::HashString("RecommendationOptionsStorage"); - static const int RecommendationOptionsNetwork_HASH = HashingUtils::HashString("RecommendationOptionsNetwork"); - static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); - static const int CurrentPerformanceRisk_HASH = HashingUtils::HashString("CurrentPerformanceRisk"); - static const int RecommendationOptionsSavingsOpportunityPercentage_HASH = HashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); - static const int RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); - static const int RecommendationOptionsEstimatedMonthlySavingsValue_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); - static const int EffectiveRecommendationPreferencesCpuVendorArchitectures_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesCpuVendorArchitectures"); - static const int EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics"); - static const int EffectiveRecommendationPreferencesInferredWorkloadTypes_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesInferredWorkloadTypes"); - static const int InferredWorkloadTypes_HASH = HashingUtils::HashString("InferredWorkloadTypes"); - static const int RecommendationOptionsMigrationEffort_HASH = HashingUtils::HashString("RecommendationOptionsMigrationEffort"); - static const int CurrentInstanceGpuInfo_HASH = HashingUtils::HashString("CurrentInstanceGpuInfo"); - static const int RecommendationOptionsInstanceGpuInfo_HASH = HashingUtils::HashString("RecommendationOptionsInstanceGpuInfo"); - static const int UtilizationMetricsGpuPercentageMaximum_HASH = HashingUtils::HashString("UtilizationMetricsGpuPercentageMaximum"); - static const int UtilizationMetricsGpuMemoryPercentageMaximum_HASH = HashingUtils::HashString("UtilizationMetricsGpuMemoryPercentageMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t AutoScalingGroupArn_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupArn"); + static constexpr uint32_t AutoScalingGroupName_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupName"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t UtilizationMetricsCpuMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsCpuMaximum"); + static constexpr uint32_t UtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsMemoryMaximum"); + static constexpr uint32_t UtilizationMetricsEbsReadOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsReadOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsEbsWriteOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsWriteOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsEbsReadBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsReadBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsEbsWriteBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsWriteBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskReadOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskReadOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskWriteOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskWriteOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskReadBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskReadBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskWriteBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskWriteBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkInBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkInBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkOutBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkOutBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkPacketsInPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkPacketsInPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkPacketsOutPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkPacketsOutPerSecondMaximum"); + static constexpr uint32_t LookbackPeriodInDays_HASH = ConstExprHashingUtils::HashString("LookbackPeriodInDays"); + static constexpr uint32_t CurrentConfigurationInstanceType_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationInstanceType"); + static constexpr uint32_t CurrentConfigurationDesiredCapacity_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationDesiredCapacity"); + static constexpr uint32_t CurrentConfigurationMinSize_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationMinSize"); + static constexpr uint32_t CurrentConfigurationMaxSize_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationMaxSize"); + static constexpr uint32_t CurrentOnDemandPrice_HASH = ConstExprHashingUtils::HashString("CurrentOnDemandPrice"); + static constexpr uint32_t CurrentStandardOneYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("CurrentStandardOneYearNoUpfrontReservedPrice"); + static constexpr uint32_t CurrentStandardThreeYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("CurrentStandardThreeYearNoUpfrontReservedPrice"); + static constexpr uint32_t CurrentVCpus_HASH = ConstExprHashingUtils::HashString("CurrentVCpus"); + static constexpr uint32_t CurrentMemory_HASH = ConstExprHashingUtils::HashString("CurrentMemory"); + static constexpr uint32_t CurrentStorage_HASH = ConstExprHashingUtils::HashString("CurrentStorage"); + static constexpr uint32_t CurrentNetwork_HASH = ConstExprHashingUtils::HashString("CurrentNetwork"); + static constexpr uint32_t RecommendationOptionsConfigurationInstanceType_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationInstanceType"); + static constexpr uint32_t RecommendationOptionsConfigurationDesiredCapacity_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationDesiredCapacity"); + static constexpr uint32_t RecommendationOptionsConfigurationMinSize_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationMinSize"); + static constexpr uint32_t RecommendationOptionsConfigurationMaxSize_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationMaxSize"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsCpuMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"); + static constexpr uint32_t RecommendationOptionsPerformanceRisk_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsPerformanceRisk"); + static constexpr uint32_t RecommendationOptionsOnDemandPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsOnDemandPrice"); + static constexpr uint32_t RecommendationOptionsStandardOneYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"); + static constexpr uint32_t RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"); + static constexpr uint32_t RecommendationOptionsVcpus_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsVcpus"); + static constexpr uint32_t RecommendationOptionsMemory_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsMemory"); + static constexpr uint32_t RecommendationOptionsStorage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsStorage"); + static constexpr uint32_t RecommendationOptionsNetwork_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsNetwork"); + static constexpr uint32_t LastRefreshTimestamp_HASH = ConstExprHashingUtils::HashString("LastRefreshTimestamp"); + static constexpr uint32_t CurrentPerformanceRisk_HASH = ConstExprHashingUtils::HashString("CurrentPerformanceRisk"); + static constexpr uint32_t RecommendationOptionsSavingsOpportunityPercentage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsValue_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); + static constexpr uint32_t EffectiveRecommendationPreferencesCpuVendorArchitectures_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesCpuVendorArchitectures"); + static constexpr uint32_t EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics"); + static constexpr uint32_t EffectiveRecommendationPreferencesInferredWorkloadTypes_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesInferredWorkloadTypes"); + static constexpr uint32_t InferredWorkloadTypes_HASH = ConstExprHashingUtils::HashString("InferredWorkloadTypes"); + static constexpr uint32_t RecommendationOptionsMigrationEffort_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsMigrationEffort"); + static constexpr uint32_t CurrentInstanceGpuInfo_HASH = ConstExprHashingUtils::HashString("CurrentInstanceGpuInfo"); + static constexpr uint32_t RecommendationOptionsInstanceGpuInfo_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsInstanceGpuInfo"); + static constexpr uint32_t UtilizationMetricsGpuPercentageMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsGpuPercentageMaximum"); + static constexpr uint32_t UtilizationMetricsGpuMemoryPercentageMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsGpuMemoryPercentageMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum"); ExportableAutoScalingGroupField GetExportableAutoScalingGroupFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return ExportableAutoScalingGroupField::AccountId; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableECSServiceField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableECSServiceField.cpp index 64f6041bb95..d9976cd2a27 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableECSServiceField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableECSServiceField.cpp @@ -20,35 +20,35 @@ namespace Aws namespace ExportableECSServiceFieldMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int ServiceArn_HASH = HashingUtils::HashString("ServiceArn"); - static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); - static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); - static const int LaunchType_HASH = HashingUtils::HashString("LaunchType"); - static const int CurrentPerformanceRisk_HASH = HashingUtils::HashString("CurrentPerformanceRisk"); - static const int CurrentServiceConfigurationMemory_HASH = HashingUtils::HashString("CurrentServiceConfigurationMemory"); - static const int CurrentServiceConfigurationCpu_HASH = HashingUtils::HashString("CurrentServiceConfigurationCpu"); - static const int CurrentServiceConfigurationTaskDefinitionArn_HASH = HashingUtils::HashString("CurrentServiceConfigurationTaskDefinitionArn"); - static const int CurrentServiceConfigurationAutoScalingConfiguration_HASH = HashingUtils::HashString("CurrentServiceConfigurationAutoScalingConfiguration"); - static const int CurrentServiceContainerConfigurations_HASH = HashingUtils::HashString("CurrentServiceContainerConfigurations"); - static const int UtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("UtilizationMetricsCpuMaximum"); - static const int UtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("UtilizationMetricsMemoryMaximum"); - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCodes_HASH = HashingUtils::HashString("FindingReasonCodes"); - static const int RecommendationOptionsMemory_HASH = HashingUtils::HashString("RecommendationOptionsMemory"); - static const int RecommendationOptionsCpu_HASH = HashingUtils::HashString("RecommendationOptionsCpu"); - static const int RecommendationOptionsSavingsOpportunityPercentage_HASH = HashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); - static const int RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); - static const int RecommendationOptionsEstimatedMonthlySavingsValue_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); - static const int RecommendationOptionsContainerRecommendations_HASH = HashingUtils::HashString("RecommendationOptionsContainerRecommendations"); - static const int RecommendationOptionsProjectedUtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"); - static const int Tags_HASH = HashingUtils::HashString("Tags"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t ServiceArn_HASH = ConstExprHashingUtils::HashString("ServiceArn"); + static constexpr uint32_t LookbackPeriodInDays_HASH = ConstExprHashingUtils::HashString("LookbackPeriodInDays"); + static constexpr uint32_t LastRefreshTimestamp_HASH = ConstExprHashingUtils::HashString("LastRefreshTimestamp"); + static constexpr uint32_t LaunchType_HASH = ConstExprHashingUtils::HashString("LaunchType"); + static constexpr uint32_t CurrentPerformanceRisk_HASH = ConstExprHashingUtils::HashString("CurrentPerformanceRisk"); + static constexpr uint32_t CurrentServiceConfigurationMemory_HASH = ConstExprHashingUtils::HashString("CurrentServiceConfigurationMemory"); + static constexpr uint32_t CurrentServiceConfigurationCpu_HASH = ConstExprHashingUtils::HashString("CurrentServiceConfigurationCpu"); + static constexpr uint32_t CurrentServiceConfigurationTaskDefinitionArn_HASH = ConstExprHashingUtils::HashString("CurrentServiceConfigurationTaskDefinitionArn"); + static constexpr uint32_t CurrentServiceConfigurationAutoScalingConfiguration_HASH = ConstExprHashingUtils::HashString("CurrentServiceConfigurationAutoScalingConfiguration"); + static constexpr uint32_t CurrentServiceContainerConfigurations_HASH = ConstExprHashingUtils::HashString("CurrentServiceContainerConfigurations"); + static constexpr uint32_t UtilizationMetricsCpuMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsCpuMaximum"); + static constexpr uint32_t UtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsMemoryMaximum"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCodes_HASH = ConstExprHashingUtils::HashString("FindingReasonCodes"); + static constexpr uint32_t RecommendationOptionsMemory_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsMemory"); + static constexpr uint32_t RecommendationOptionsCpu_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsCpu"); + static constexpr uint32_t RecommendationOptionsSavingsOpportunityPercentage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsValue_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); + static constexpr uint32_t RecommendationOptionsContainerRecommendations_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsContainerRecommendations"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsCpuMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"); + static constexpr uint32_t Tags_HASH = ConstExprHashingUtils::HashString("Tags"); ExportableECSServiceField GetExportableECSServiceFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return ExportableECSServiceField::AccountId; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableInstanceField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableInstanceField.cpp index 179bbee69e8..72f92702870 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableInstanceField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableInstanceField.cpp @@ -20,75 +20,75 @@ namespace Aws namespace ExportableInstanceFieldMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int InstanceArn_HASH = HashingUtils::HashString("InstanceArn"); - static const int InstanceName_HASH = HashingUtils::HashString("InstanceName"); - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCodes_HASH = HashingUtils::HashString("FindingReasonCodes"); - static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); - static const int CurrentInstanceType_HASH = HashingUtils::HashString("CurrentInstanceType"); - static const int UtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("UtilizationMetricsCpuMaximum"); - static const int UtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("UtilizationMetricsMemoryMaximum"); - static const int UtilizationMetricsEbsReadOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsReadOpsPerSecondMaximum"); - static const int UtilizationMetricsEbsWriteOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsWriteOpsPerSecondMaximum"); - static const int UtilizationMetricsEbsReadBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsReadBytesPerSecondMaximum"); - static const int UtilizationMetricsEbsWriteBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsEbsWriteBytesPerSecondMaximum"); - static const int UtilizationMetricsDiskReadOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskReadOpsPerSecondMaximum"); - static const int UtilizationMetricsDiskWriteOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskWriteOpsPerSecondMaximum"); - static const int UtilizationMetricsDiskReadBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskReadBytesPerSecondMaximum"); - static const int UtilizationMetricsDiskWriteBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDiskWriteBytesPerSecondMaximum"); - static const int UtilizationMetricsNetworkInBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkInBytesPerSecondMaximum"); - static const int UtilizationMetricsNetworkOutBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkOutBytesPerSecondMaximum"); - static const int UtilizationMetricsNetworkPacketsInPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkPacketsInPerSecondMaximum"); - static const int UtilizationMetricsNetworkPacketsOutPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsNetworkPacketsOutPerSecondMaximum"); - static const int CurrentOnDemandPrice_HASH = HashingUtils::HashString("CurrentOnDemandPrice"); - static const int CurrentStandardOneYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("CurrentStandardOneYearNoUpfrontReservedPrice"); - static const int CurrentStandardThreeYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("CurrentStandardThreeYearNoUpfrontReservedPrice"); - static const int CurrentVCpus_HASH = HashingUtils::HashString("CurrentVCpus"); - static const int CurrentMemory_HASH = HashingUtils::HashString("CurrentMemory"); - static const int CurrentStorage_HASH = HashingUtils::HashString("CurrentStorage"); - static const int CurrentNetwork_HASH = HashingUtils::HashString("CurrentNetwork"); - static const int RecommendationOptionsInstanceType_HASH = HashingUtils::HashString("RecommendationOptionsInstanceType"); - static const int RecommendationOptionsProjectedUtilizationMetricsCpuMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"); - static const int RecommendationOptionsPlatformDifferences_HASH = HashingUtils::HashString("RecommendationOptionsPlatformDifferences"); - static const int RecommendationOptionsPerformanceRisk_HASH = HashingUtils::HashString("RecommendationOptionsPerformanceRisk"); - static const int RecommendationOptionsVcpus_HASH = HashingUtils::HashString("RecommendationOptionsVcpus"); - static const int RecommendationOptionsMemory_HASH = HashingUtils::HashString("RecommendationOptionsMemory"); - static const int RecommendationOptionsStorage_HASH = HashingUtils::HashString("RecommendationOptionsStorage"); - static const int RecommendationOptionsNetwork_HASH = HashingUtils::HashString("RecommendationOptionsNetwork"); - static const int RecommendationOptionsOnDemandPrice_HASH = HashingUtils::HashString("RecommendationOptionsOnDemandPrice"); - static const int RecommendationOptionsStandardOneYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"); - static const int RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice_HASH = HashingUtils::HashString("RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"); - static const int RecommendationsSourcesRecommendationSourceArn_HASH = HashingUtils::HashString("RecommendationsSourcesRecommendationSourceArn"); - static const int RecommendationsSourcesRecommendationSourceType_HASH = HashingUtils::HashString("RecommendationsSourcesRecommendationSourceType"); - static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); - static const int CurrentPerformanceRisk_HASH = HashingUtils::HashString("CurrentPerformanceRisk"); - static const int RecommendationOptionsSavingsOpportunityPercentage_HASH = HashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); - static const int RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); - static const int RecommendationOptionsEstimatedMonthlySavingsValue_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); - static const int EffectiveRecommendationPreferencesCpuVendorArchitectures_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesCpuVendorArchitectures"); - static const int EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics"); - static const int EffectiveRecommendationPreferencesInferredWorkloadTypes_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesInferredWorkloadTypes"); - static const int InferredWorkloadTypes_HASH = HashingUtils::HashString("InferredWorkloadTypes"); - static const int RecommendationOptionsMigrationEffort_HASH = HashingUtils::HashString("RecommendationOptionsMigrationEffort"); - static const int EffectiveRecommendationPreferencesExternalMetricsSource_HASH = HashingUtils::HashString("EffectiveRecommendationPreferencesExternalMetricsSource"); - static const int InstanceState_HASH = HashingUtils::HashString("InstanceState"); - static const int Tags_HASH = HashingUtils::HashString("Tags"); - static const int ExternalMetricStatusCode_HASH = HashingUtils::HashString("ExternalMetricStatusCode"); - static const int ExternalMetricStatusReason_HASH = HashingUtils::HashString("ExternalMetricStatusReason"); - static const int CurrentInstanceGpuInfo_HASH = HashingUtils::HashString("CurrentInstanceGpuInfo"); - static const int RecommendationOptionsInstanceGpuInfo_HASH = HashingUtils::HashString("RecommendationOptionsInstanceGpuInfo"); - static const int UtilizationMetricsGpuPercentageMaximum_HASH = HashingUtils::HashString("UtilizationMetricsGpuPercentageMaximum"); - static const int UtilizationMetricsGpuMemoryPercentageMaximum_HASH = HashingUtils::HashString("UtilizationMetricsGpuMemoryPercentageMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum"); - static const int RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum"); - static const int Idle_HASH = HashingUtils::HashString("Idle"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t InstanceArn_HASH = ConstExprHashingUtils::HashString("InstanceArn"); + static constexpr uint32_t InstanceName_HASH = ConstExprHashingUtils::HashString("InstanceName"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCodes_HASH = ConstExprHashingUtils::HashString("FindingReasonCodes"); + static constexpr uint32_t LookbackPeriodInDays_HASH = ConstExprHashingUtils::HashString("LookbackPeriodInDays"); + static constexpr uint32_t CurrentInstanceType_HASH = ConstExprHashingUtils::HashString("CurrentInstanceType"); + static constexpr uint32_t UtilizationMetricsCpuMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsCpuMaximum"); + static constexpr uint32_t UtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsMemoryMaximum"); + static constexpr uint32_t UtilizationMetricsEbsReadOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsReadOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsEbsWriteOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsWriteOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsEbsReadBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsReadBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsEbsWriteBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsEbsWriteBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskReadOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskReadOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskWriteOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskWriteOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskReadBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskReadBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsDiskWriteBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDiskWriteBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkInBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkInBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkOutBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkOutBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkPacketsInPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkPacketsInPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsNetworkPacketsOutPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsNetworkPacketsOutPerSecondMaximum"); + static constexpr uint32_t CurrentOnDemandPrice_HASH = ConstExprHashingUtils::HashString("CurrentOnDemandPrice"); + static constexpr uint32_t CurrentStandardOneYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("CurrentStandardOneYearNoUpfrontReservedPrice"); + static constexpr uint32_t CurrentStandardThreeYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("CurrentStandardThreeYearNoUpfrontReservedPrice"); + static constexpr uint32_t CurrentVCpus_HASH = ConstExprHashingUtils::HashString("CurrentVCpus"); + static constexpr uint32_t CurrentMemory_HASH = ConstExprHashingUtils::HashString("CurrentMemory"); + static constexpr uint32_t CurrentStorage_HASH = ConstExprHashingUtils::HashString("CurrentStorage"); + static constexpr uint32_t CurrentNetwork_HASH = ConstExprHashingUtils::HashString("CurrentNetwork"); + static constexpr uint32_t RecommendationOptionsInstanceType_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsInstanceType"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsCpuMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"); + static constexpr uint32_t RecommendationOptionsPlatformDifferences_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsPlatformDifferences"); + static constexpr uint32_t RecommendationOptionsPerformanceRisk_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsPerformanceRisk"); + static constexpr uint32_t RecommendationOptionsVcpus_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsVcpus"); + static constexpr uint32_t RecommendationOptionsMemory_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsMemory"); + static constexpr uint32_t RecommendationOptionsStorage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsStorage"); + static constexpr uint32_t RecommendationOptionsNetwork_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsNetwork"); + static constexpr uint32_t RecommendationOptionsOnDemandPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsOnDemandPrice"); + static constexpr uint32_t RecommendationOptionsStandardOneYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"); + static constexpr uint32_t RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"); + static constexpr uint32_t RecommendationsSourcesRecommendationSourceArn_HASH = ConstExprHashingUtils::HashString("RecommendationsSourcesRecommendationSourceArn"); + static constexpr uint32_t RecommendationsSourcesRecommendationSourceType_HASH = ConstExprHashingUtils::HashString("RecommendationsSourcesRecommendationSourceType"); + static constexpr uint32_t LastRefreshTimestamp_HASH = ConstExprHashingUtils::HashString("LastRefreshTimestamp"); + static constexpr uint32_t CurrentPerformanceRisk_HASH = ConstExprHashingUtils::HashString("CurrentPerformanceRisk"); + static constexpr uint32_t RecommendationOptionsSavingsOpportunityPercentage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsValue_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); + static constexpr uint32_t EffectiveRecommendationPreferencesCpuVendorArchitectures_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesCpuVendorArchitectures"); + static constexpr uint32_t EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics"); + static constexpr uint32_t EffectiveRecommendationPreferencesInferredWorkloadTypes_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesInferredWorkloadTypes"); + static constexpr uint32_t InferredWorkloadTypes_HASH = ConstExprHashingUtils::HashString("InferredWorkloadTypes"); + static constexpr uint32_t RecommendationOptionsMigrationEffort_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsMigrationEffort"); + static constexpr uint32_t EffectiveRecommendationPreferencesExternalMetricsSource_HASH = ConstExprHashingUtils::HashString("EffectiveRecommendationPreferencesExternalMetricsSource"); + static constexpr uint32_t InstanceState_HASH = ConstExprHashingUtils::HashString("InstanceState"); + static constexpr uint32_t Tags_HASH = ConstExprHashingUtils::HashString("Tags"); + static constexpr uint32_t ExternalMetricStatusCode_HASH = ConstExprHashingUtils::HashString("ExternalMetricStatusCode"); + static constexpr uint32_t ExternalMetricStatusReason_HASH = ConstExprHashingUtils::HashString("ExternalMetricStatusReason"); + static constexpr uint32_t CurrentInstanceGpuInfo_HASH = ConstExprHashingUtils::HashString("CurrentInstanceGpuInfo"); + static constexpr uint32_t RecommendationOptionsInstanceGpuInfo_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsInstanceGpuInfo"); + static constexpr uint32_t UtilizationMetricsGpuPercentageMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsGpuPercentageMaximum"); + static constexpr uint32_t UtilizationMetricsGpuMemoryPercentageMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsGpuMemoryPercentageMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum"); + static constexpr uint32_t Idle_HASH = ConstExprHashingUtils::HashString("Idle"); ExportableInstanceField GetExportableInstanceFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return ExportableInstanceField::AccountId; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLambdaFunctionField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLambdaFunctionField.cpp index 1d281ef6423..6ca23bc8780 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLambdaFunctionField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLambdaFunctionField.cpp @@ -20,38 +20,38 @@ namespace Aws namespace ExportableLambdaFunctionFieldMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int FunctionArn_HASH = HashingUtils::HashString("FunctionArn"); - static const int FunctionVersion_HASH = HashingUtils::HashString("FunctionVersion"); - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCodes_HASH = HashingUtils::HashString("FindingReasonCodes"); - static const int NumberOfInvocations_HASH = HashingUtils::HashString("NumberOfInvocations"); - static const int UtilizationMetricsDurationMaximum_HASH = HashingUtils::HashString("UtilizationMetricsDurationMaximum"); - static const int UtilizationMetricsDurationAverage_HASH = HashingUtils::HashString("UtilizationMetricsDurationAverage"); - static const int UtilizationMetricsMemoryMaximum_HASH = HashingUtils::HashString("UtilizationMetricsMemoryMaximum"); - static const int UtilizationMetricsMemoryAverage_HASH = HashingUtils::HashString("UtilizationMetricsMemoryAverage"); - static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); - static const int CurrentConfigurationMemorySize_HASH = HashingUtils::HashString("CurrentConfigurationMemorySize"); - static const int CurrentConfigurationTimeout_HASH = HashingUtils::HashString("CurrentConfigurationTimeout"); - static const int CurrentCostTotal_HASH = HashingUtils::HashString("CurrentCostTotal"); - static const int CurrentCostAverage_HASH = HashingUtils::HashString("CurrentCostAverage"); - static const int RecommendationOptionsConfigurationMemorySize_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationMemorySize"); - static const int RecommendationOptionsCostLow_HASH = HashingUtils::HashString("RecommendationOptionsCostLow"); - static const int RecommendationOptionsCostHigh_HASH = HashingUtils::HashString("RecommendationOptionsCostHigh"); - static const int RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound"); - static const int RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound"); - static const int RecommendationOptionsProjectedUtilizationMetricsDurationExpected_HASH = HashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsDurationExpected"); - static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); - static const int CurrentPerformanceRisk_HASH = HashingUtils::HashString("CurrentPerformanceRisk"); - static const int RecommendationOptionsSavingsOpportunityPercentage_HASH = HashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); - static const int RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); - static const int RecommendationOptionsEstimatedMonthlySavingsValue_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); - static const int Tags_HASH = HashingUtils::HashString("Tags"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t FunctionArn_HASH = ConstExprHashingUtils::HashString("FunctionArn"); + static constexpr uint32_t FunctionVersion_HASH = ConstExprHashingUtils::HashString("FunctionVersion"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCodes_HASH = ConstExprHashingUtils::HashString("FindingReasonCodes"); + static constexpr uint32_t NumberOfInvocations_HASH = ConstExprHashingUtils::HashString("NumberOfInvocations"); + static constexpr uint32_t UtilizationMetricsDurationMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDurationMaximum"); + static constexpr uint32_t UtilizationMetricsDurationAverage_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsDurationAverage"); + static constexpr uint32_t UtilizationMetricsMemoryMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsMemoryMaximum"); + static constexpr uint32_t UtilizationMetricsMemoryAverage_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsMemoryAverage"); + static constexpr uint32_t LookbackPeriodInDays_HASH = ConstExprHashingUtils::HashString("LookbackPeriodInDays"); + static constexpr uint32_t CurrentConfigurationMemorySize_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationMemorySize"); + static constexpr uint32_t CurrentConfigurationTimeout_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationTimeout"); + static constexpr uint32_t CurrentCostTotal_HASH = ConstExprHashingUtils::HashString("CurrentCostTotal"); + static constexpr uint32_t CurrentCostAverage_HASH = ConstExprHashingUtils::HashString("CurrentCostAverage"); + static constexpr uint32_t RecommendationOptionsConfigurationMemorySize_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationMemorySize"); + static constexpr uint32_t RecommendationOptionsCostLow_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsCostLow"); + static constexpr uint32_t RecommendationOptionsCostHigh_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsCostHigh"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound"); + static constexpr uint32_t RecommendationOptionsProjectedUtilizationMetricsDurationExpected_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsProjectedUtilizationMetricsDurationExpected"); + static constexpr uint32_t LastRefreshTimestamp_HASH = ConstExprHashingUtils::HashString("LastRefreshTimestamp"); + static constexpr uint32_t CurrentPerformanceRisk_HASH = ConstExprHashingUtils::HashString("CurrentPerformanceRisk"); + static constexpr uint32_t RecommendationOptionsSavingsOpportunityPercentage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsValue_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); + static constexpr uint32_t Tags_HASH = ConstExprHashingUtils::HashString("Tags"); ExportableLambdaFunctionField GetExportableLambdaFunctionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return ExportableLambdaFunctionField::AccountId; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLicenseField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLicenseField.cpp index d04c83253e9..78e82ddcea9 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLicenseField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableLicenseField.cpp @@ -20,32 +20,32 @@ namespace Aws namespace ExportableLicenseFieldMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int ResourceArn_HASH = HashingUtils::HashString("ResourceArn"); - static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); - static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCodes_HASH = HashingUtils::HashString("FindingReasonCodes"); - static const int CurrentLicenseConfigurationNumberOfCores_HASH = HashingUtils::HashString("CurrentLicenseConfigurationNumberOfCores"); - static const int CurrentLicenseConfigurationInstanceType_HASH = HashingUtils::HashString("CurrentLicenseConfigurationInstanceType"); - static const int CurrentLicenseConfigurationOperatingSystem_HASH = HashingUtils::HashString("CurrentLicenseConfigurationOperatingSystem"); - static const int CurrentLicenseConfigurationLicenseName_HASH = HashingUtils::HashString("CurrentLicenseConfigurationLicenseName"); - static const int CurrentLicenseConfigurationLicenseEdition_HASH = HashingUtils::HashString("CurrentLicenseConfigurationLicenseEdition"); - static const int CurrentLicenseConfigurationLicenseModel_HASH = HashingUtils::HashString("CurrentLicenseConfigurationLicenseModel"); - static const int CurrentLicenseConfigurationLicenseVersion_HASH = HashingUtils::HashString("CurrentLicenseConfigurationLicenseVersion"); - static const int CurrentLicenseConfigurationMetricsSource_HASH = HashingUtils::HashString("CurrentLicenseConfigurationMetricsSource"); - static const int RecommendationOptionsOperatingSystem_HASH = HashingUtils::HashString("RecommendationOptionsOperatingSystem"); - static const int RecommendationOptionsLicenseEdition_HASH = HashingUtils::HashString("RecommendationOptionsLicenseEdition"); - static const int RecommendationOptionsLicenseModel_HASH = HashingUtils::HashString("RecommendationOptionsLicenseModel"); - static const int RecommendationOptionsSavingsOpportunityPercentage_HASH = HashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); - static const int RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); - static const int RecommendationOptionsEstimatedMonthlySavingsValue_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); - static const int Tags_HASH = HashingUtils::HashString("Tags"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t ResourceArn_HASH = ConstExprHashingUtils::HashString("ResourceArn"); + static constexpr uint32_t LookbackPeriodInDays_HASH = ConstExprHashingUtils::HashString("LookbackPeriodInDays"); + static constexpr uint32_t LastRefreshTimestamp_HASH = ConstExprHashingUtils::HashString("LastRefreshTimestamp"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCodes_HASH = ConstExprHashingUtils::HashString("FindingReasonCodes"); + static constexpr uint32_t CurrentLicenseConfigurationNumberOfCores_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationNumberOfCores"); + static constexpr uint32_t CurrentLicenseConfigurationInstanceType_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationInstanceType"); + static constexpr uint32_t CurrentLicenseConfigurationOperatingSystem_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationOperatingSystem"); + static constexpr uint32_t CurrentLicenseConfigurationLicenseName_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationLicenseName"); + static constexpr uint32_t CurrentLicenseConfigurationLicenseEdition_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationLicenseEdition"); + static constexpr uint32_t CurrentLicenseConfigurationLicenseModel_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationLicenseModel"); + static constexpr uint32_t CurrentLicenseConfigurationLicenseVersion_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationLicenseVersion"); + static constexpr uint32_t CurrentLicenseConfigurationMetricsSource_HASH = ConstExprHashingUtils::HashString("CurrentLicenseConfigurationMetricsSource"); + static constexpr uint32_t RecommendationOptionsOperatingSystem_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsOperatingSystem"); + static constexpr uint32_t RecommendationOptionsLicenseEdition_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsLicenseEdition"); + static constexpr uint32_t RecommendationOptionsLicenseModel_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsLicenseModel"); + static constexpr uint32_t RecommendationOptionsSavingsOpportunityPercentage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsValue_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); + static constexpr uint32_t Tags_HASH = ConstExprHashingUtils::HashString("Tags"); ExportableLicenseField GetExportableLicenseFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return ExportableLicenseField::AccountId; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableVolumeField.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableVolumeField.cpp index 2a366eace60..061e3ceedb6 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableVolumeField.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExportableVolumeField.cpp @@ -20,42 +20,42 @@ namespace Aws namespace ExportableVolumeFieldMapper { - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int VolumeArn_HASH = HashingUtils::HashString("VolumeArn"); - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int UtilizationMetricsVolumeReadOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsVolumeReadOpsPerSecondMaximum"); - static const int UtilizationMetricsVolumeWriteOpsPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsVolumeWriteOpsPerSecondMaximum"); - static const int UtilizationMetricsVolumeReadBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsVolumeReadBytesPerSecondMaximum"); - static const int UtilizationMetricsVolumeWriteBytesPerSecondMaximum_HASH = HashingUtils::HashString("UtilizationMetricsVolumeWriteBytesPerSecondMaximum"); - static const int LookbackPeriodInDays_HASH = HashingUtils::HashString("LookbackPeriodInDays"); - static const int CurrentConfigurationVolumeType_HASH = HashingUtils::HashString("CurrentConfigurationVolumeType"); - static const int CurrentConfigurationVolumeBaselineIOPS_HASH = HashingUtils::HashString("CurrentConfigurationVolumeBaselineIOPS"); - static const int CurrentConfigurationVolumeBaselineThroughput_HASH = HashingUtils::HashString("CurrentConfigurationVolumeBaselineThroughput"); - static const int CurrentConfigurationVolumeBurstIOPS_HASH = HashingUtils::HashString("CurrentConfigurationVolumeBurstIOPS"); - static const int CurrentConfigurationVolumeBurstThroughput_HASH = HashingUtils::HashString("CurrentConfigurationVolumeBurstThroughput"); - static const int CurrentConfigurationVolumeSize_HASH = HashingUtils::HashString("CurrentConfigurationVolumeSize"); - static const int CurrentMonthlyPrice_HASH = HashingUtils::HashString("CurrentMonthlyPrice"); - static const int RecommendationOptionsConfigurationVolumeType_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationVolumeType"); - static const int RecommendationOptionsConfigurationVolumeBaselineIOPS_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationVolumeBaselineIOPS"); - static const int RecommendationOptionsConfigurationVolumeBaselineThroughput_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationVolumeBaselineThroughput"); - static const int RecommendationOptionsConfigurationVolumeBurstIOPS_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationVolumeBurstIOPS"); - static const int RecommendationOptionsConfigurationVolumeBurstThroughput_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationVolumeBurstThroughput"); - static const int RecommendationOptionsConfigurationVolumeSize_HASH = HashingUtils::HashString("RecommendationOptionsConfigurationVolumeSize"); - static const int RecommendationOptionsMonthlyPrice_HASH = HashingUtils::HashString("RecommendationOptionsMonthlyPrice"); - static const int RecommendationOptionsPerformanceRisk_HASH = HashingUtils::HashString("RecommendationOptionsPerformanceRisk"); - static const int LastRefreshTimestamp_HASH = HashingUtils::HashString("LastRefreshTimestamp"); - static const int CurrentPerformanceRisk_HASH = HashingUtils::HashString("CurrentPerformanceRisk"); - static const int RecommendationOptionsSavingsOpportunityPercentage_HASH = HashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); - static const int RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); - static const int RecommendationOptionsEstimatedMonthlySavingsValue_HASH = HashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); - static const int RootVolume_HASH = HashingUtils::HashString("RootVolume"); - static const int Tags_HASH = HashingUtils::HashString("Tags"); - static const int CurrentConfigurationRootVolume_HASH = HashingUtils::HashString("CurrentConfigurationRootVolume"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t VolumeArn_HASH = ConstExprHashingUtils::HashString("VolumeArn"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t UtilizationMetricsVolumeReadOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsVolumeReadOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsVolumeWriteOpsPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsVolumeWriteOpsPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsVolumeReadBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsVolumeReadBytesPerSecondMaximum"); + static constexpr uint32_t UtilizationMetricsVolumeWriteBytesPerSecondMaximum_HASH = ConstExprHashingUtils::HashString("UtilizationMetricsVolumeWriteBytesPerSecondMaximum"); + static constexpr uint32_t LookbackPeriodInDays_HASH = ConstExprHashingUtils::HashString("LookbackPeriodInDays"); + static constexpr uint32_t CurrentConfigurationVolumeType_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationVolumeType"); + static constexpr uint32_t CurrentConfigurationVolumeBaselineIOPS_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationVolumeBaselineIOPS"); + static constexpr uint32_t CurrentConfigurationVolumeBaselineThroughput_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationVolumeBaselineThroughput"); + static constexpr uint32_t CurrentConfigurationVolumeBurstIOPS_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationVolumeBurstIOPS"); + static constexpr uint32_t CurrentConfigurationVolumeBurstThroughput_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationVolumeBurstThroughput"); + static constexpr uint32_t CurrentConfigurationVolumeSize_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationVolumeSize"); + static constexpr uint32_t CurrentMonthlyPrice_HASH = ConstExprHashingUtils::HashString("CurrentMonthlyPrice"); + static constexpr uint32_t RecommendationOptionsConfigurationVolumeType_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationVolumeType"); + static constexpr uint32_t RecommendationOptionsConfigurationVolumeBaselineIOPS_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationVolumeBaselineIOPS"); + static constexpr uint32_t RecommendationOptionsConfigurationVolumeBaselineThroughput_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationVolumeBaselineThroughput"); + static constexpr uint32_t RecommendationOptionsConfigurationVolumeBurstIOPS_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationVolumeBurstIOPS"); + static constexpr uint32_t RecommendationOptionsConfigurationVolumeBurstThroughput_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationVolumeBurstThroughput"); + static constexpr uint32_t RecommendationOptionsConfigurationVolumeSize_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsConfigurationVolumeSize"); + static constexpr uint32_t RecommendationOptionsMonthlyPrice_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsMonthlyPrice"); + static constexpr uint32_t RecommendationOptionsPerformanceRisk_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsPerformanceRisk"); + static constexpr uint32_t LastRefreshTimestamp_HASH = ConstExprHashingUtils::HashString("LastRefreshTimestamp"); + static constexpr uint32_t CurrentPerformanceRisk_HASH = ConstExprHashingUtils::HashString("CurrentPerformanceRisk"); + static constexpr uint32_t RecommendationOptionsSavingsOpportunityPercentage_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsSavingsOpportunityPercentage"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsCurrency_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsCurrency"); + static constexpr uint32_t RecommendationOptionsEstimatedMonthlySavingsValue_HASH = ConstExprHashingUtils::HashString("RecommendationOptionsEstimatedMonthlySavingsValue"); + static constexpr uint32_t RootVolume_HASH = ConstExprHashingUtils::HashString("RootVolume"); + static constexpr uint32_t Tags_HASH = ConstExprHashingUtils::HashString("Tags"); + static constexpr uint32_t CurrentConfigurationRootVolume_HASH = ConstExprHashingUtils::HashString("CurrentConfigurationRootVolume"); ExportableVolumeField GetExportableVolumeFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccountId_HASH) { return ExportableVolumeField::AccountId; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricStatusCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricStatusCode.cpp index 9e4fc197479..c9082c18ed7 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricStatusCode.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ExternalMetricStatusCodeMapper { - static const int NO_EXTERNAL_METRIC_SET_HASH = HashingUtils::HashString("NO_EXTERNAL_METRIC_SET"); - static const int INTEGRATION_SUCCESS_HASH = HashingUtils::HashString("INTEGRATION_SUCCESS"); - static const int DATADOG_INTEGRATION_ERROR_HASH = HashingUtils::HashString("DATADOG_INTEGRATION_ERROR"); - static const int DYNATRACE_INTEGRATION_ERROR_HASH = HashingUtils::HashString("DYNATRACE_INTEGRATION_ERROR"); - static const int NEWRELIC_INTEGRATION_ERROR_HASH = HashingUtils::HashString("NEWRELIC_INTEGRATION_ERROR"); - static const int INSTANA_INTEGRATION_ERROR_HASH = HashingUtils::HashString("INSTANA_INTEGRATION_ERROR"); - static const int INSUFFICIENT_DATADOG_METRICS_HASH = HashingUtils::HashString("INSUFFICIENT_DATADOG_METRICS"); - static const int INSUFFICIENT_DYNATRACE_METRICS_HASH = HashingUtils::HashString("INSUFFICIENT_DYNATRACE_METRICS"); - static const int INSUFFICIENT_NEWRELIC_METRICS_HASH = HashingUtils::HashString("INSUFFICIENT_NEWRELIC_METRICS"); - static const int INSUFFICIENT_INSTANA_METRICS_HASH = HashingUtils::HashString("INSUFFICIENT_INSTANA_METRICS"); + static constexpr uint32_t NO_EXTERNAL_METRIC_SET_HASH = ConstExprHashingUtils::HashString("NO_EXTERNAL_METRIC_SET"); + static constexpr uint32_t INTEGRATION_SUCCESS_HASH = ConstExprHashingUtils::HashString("INTEGRATION_SUCCESS"); + static constexpr uint32_t DATADOG_INTEGRATION_ERROR_HASH = ConstExprHashingUtils::HashString("DATADOG_INTEGRATION_ERROR"); + static constexpr uint32_t DYNATRACE_INTEGRATION_ERROR_HASH = ConstExprHashingUtils::HashString("DYNATRACE_INTEGRATION_ERROR"); + static constexpr uint32_t NEWRELIC_INTEGRATION_ERROR_HASH = ConstExprHashingUtils::HashString("NEWRELIC_INTEGRATION_ERROR"); + static constexpr uint32_t INSTANA_INTEGRATION_ERROR_HASH = ConstExprHashingUtils::HashString("INSTANA_INTEGRATION_ERROR"); + static constexpr uint32_t INSUFFICIENT_DATADOG_METRICS_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATADOG_METRICS"); + static constexpr uint32_t INSUFFICIENT_DYNATRACE_METRICS_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DYNATRACE_METRICS"); + static constexpr uint32_t INSUFFICIENT_NEWRELIC_METRICS_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_NEWRELIC_METRICS"); + static constexpr uint32_t INSUFFICIENT_INSTANA_METRICS_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_INSTANA_METRICS"); ExternalMetricStatusCode GetExternalMetricStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_EXTERNAL_METRIC_SET_HASH) { return ExternalMetricStatusCode::NO_EXTERNAL_METRIC_SET; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricsSource.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricsSource.cpp index 22c98c08b65..83df229b0f3 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricsSource.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ExternalMetricsSource.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExternalMetricsSourceMapper { - static const int Datadog_HASH = HashingUtils::HashString("Datadog"); - static const int Dynatrace_HASH = HashingUtils::HashString("Dynatrace"); - static const int NewRelic_HASH = HashingUtils::HashString("NewRelic"); - static const int Instana_HASH = HashingUtils::HashString("Instana"); + static constexpr uint32_t Datadog_HASH = ConstExprHashingUtils::HashString("Datadog"); + static constexpr uint32_t Dynatrace_HASH = ConstExprHashingUtils::HashString("Dynatrace"); + static constexpr uint32_t NewRelic_HASH = ConstExprHashingUtils::HashString("NewRelic"); + static constexpr uint32_t Instana_HASH = ConstExprHashingUtils::HashString("Instana"); ExternalMetricsSource GetExternalMetricsSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Datadog_HASH) { return ExternalMetricsSource::Datadog; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FileFormat.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FileFormat.cpp index b7a37b683c7..805bc5308ee 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FileFormat.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FileFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FileFormatMapper { - static const int Csv_HASH = HashingUtils::HashString("Csv"); + static constexpr uint32_t Csv_HASH = ConstExprHashingUtils::HashString("Csv"); FileFormat GetFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Csv_HASH) { return FileFormat::Csv; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FilterName.cpp index 2f846400156..f541152777e 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FilterName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FilterNameMapper { - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCodes_HASH = HashingUtils::HashString("FindingReasonCodes"); - static const int RecommendationSourceType_HASH = HashingUtils::HashString("RecommendationSourceType"); - static const int InferredWorkloadTypes_HASH = HashingUtils::HashString("InferredWorkloadTypes"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCodes_HASH = ConstExprHashingUtils::HashString("FindingReasonCodes"); + static constexpr uint32_t RecommendationSourceType_HASH = ConstExprHashingUtils::HashString("RecommendationSourceType"); + static constexpr uint32_t InferredWorkloadTypes_HASH = ConstExprHashingUtils::HashString("InferredWorkloadTypes"); FilterName GetFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Finding_HASH) { return FilterName::Finding; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Finding.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Finding.cpp index b1a6bded35a..fdf225c2993 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Finding.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Finding.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FindingMapper { - static const int Underprovisioned_HASH = HashingUtils::HashString("Underprovisioned"); - static const int Overprovisioned_HASH = HashingUtils::HashString("Overprovisioned"); - static const int Optimized_HASH = HashingUtils::HashString("Optimized"); - static const int NotOptimized_HASH = HashingUtils::HashString("NotOptimized"); + static constexpr uint32_t Underprovisioned_HASH = ConstExprHashingUtils::HashString("Underprovisioned"); + static constexpr uint32_t Overprovisioned_HASH = ConstExprHashingUtils::HashString("Overprovisioned"); + static constexpr uint32_t Optimized_HASH = ConstExprHashingUtils::HashString("Optimized"); + static constexpr uint32_t NotOptimized_HASH = ConstExprHashingUtils::HashString("NotOptimized"); Finding GetFindingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Underprovisioned_HASH) { return Finding::Underprovisioned; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FindingReasonCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FindingReasonCode.cpp index 26ed29da13e..124cfa5e232 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/FindingReasonCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FindingReasonCodeMapper { - static const int MemoryOverprovisioned_HASH = HashingUtils::HashString("MemoryOverprovisioned"); - static const int MemoryUnderprovisioned_HASH = HashingUtils::HashString("MemoryUnderprovisioned"); + static constexpr uint32_t MemoryOverprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryOverprovisioned"); + static constexpr uint32_t MemoryUnderprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryUnderprovisioned"); FindingReasonCode GetFindingReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MemoryOverprovisioned_HASH) { return FindingReasonCode::MemoryOverprovisioned; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadType.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadType.cpp index 00c5508bb26..e9701bb4b86 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadType.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace InferredWorkloadTypeMapper { - static const int AmazonEmr_HASH = HashingUtils::HashString("AmazonEmr"); - static const int ApacheCassandra_HASH = HashingUtils::HashString("ApacheCassandra"); - static const int ApacheHadoop_HASH = HashingUtils::HashString("ApacheHadoop"); - static const int Memcached_HASH = HashingUtils::HashString("Memcached"); - static const int Nginx_HASH = HashingUtils::HashString("Nginx"); - static const int PostgreSql_HASH = HashingUtils::HashString("PostgreSql"); - static const int Redis_HASH = HashingUtils::HashString("Redis"); - static const int Kafka_HASH = HashingUtils::HashString("Kafka"); - static const int SQLServer_HASH = HashingUtils::HashString("SQLServer"); + static constexpr uint32_t AmazonEmr_HASH = ConstExprHashingUtils::HashString("AmazonEmr"); + static constexpr uint32_t ApacheCassandra_HASH = ConstExprHashingUtils::HashString("ApacheCassandra"); + static constexpr uint32_t ApacheHadoop_HASH = ConstExprHashingUtils::HashString("ApacheHadoop"); + static constexpr uint32_t Memcached_HASH = ConstExprHashingUtils::HashString("Memcached"); + static constexpr uint32_t Nginx_HASH = ConstExprHashingUtils::HashString("Nginx"); + static constexpr uint32_t PostgreSql_HASH = ConstExprHashingUtils::HashString("PostgreSql"); + static constexpr uint32_t Redis_HASH = ConstExprHashingUtils::HashString("Redis"); + static constexpr uint32_t Kafka_HASH = ConstExprHashingUtils::HashString("Kafka"); + static constexpr uint32_t SQLServer_HASH = ConstExprHashingUtils::HashString("SQLServer"); InferredWorkloadType GetInferredWorkloadTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AmazonEmr_HASH) { return InferredWorkloadType::AmazonEmr; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadTypesPreference.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadTypesPreference.cpp index 4812a2656b3..d1396d0cb65 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadTypesPreference.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InferredWorkloadTypesPreference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InferredWorkloadTypesPreferenceMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); InferredWorkloadTypesPreference GetInferredWorkloadTypesPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return InferredWorkloadTypesPreference::Active; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceIdle.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceIdle.cpp index dd09d797102..85a813175ff 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceIdle.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceIdle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceIdleMapper { - static const int True_HASH = HashingUtils::HashString("True"); - static const int False_HASH = HashingUtils::HashString("False"); + static constexpr uint32_t True_HASH = ConstExprHashingUtils::HashString("True"); + static constexpr uint32_t False_HASH = ConstExprHashingUtils::HashString("False"); InstanceIdle GetInstanceIdleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == True_HASH) { return InstanceIdle::True; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceRecommendationFindingReasonCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceRecommendationFindingReasonCode.cpp index 919a5717fe8..77f89bb99ca 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceRecommendationFindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceRecommendationFindingReasonCode.cpp @@ -20,31 +20,31 @@ namespace Aws namespace InstanceRecommendationFindingReasonCodeMapper { - static const int CPUOverprovisioned_HASH = HashingUtils::HashString("CPUOverprovisioned"); - static const int CPUUnderprovisioned_HASH = HashingUtils::HashString("CPUUnderprovisioned"); - static const int MemoryOverprovisioned_HASH = HashingUtils::HashString("MemoryOverprovisioned"); - static const int MemoryUnderprovisioned_HASH = HashingUtils::HashString("MemoryUnderprovisioned"); - static const int EBSThroughputOverprovisioned_HASH = HashingUtils::HashString("EBSThroughputOverprovisioned"); - static const int EBSThroughputUnderprovisioned_HASH = HashingUtils::HashString("EBSThroughputUnderprovisioned"); - static const int EBSIOPSOverprovisioned_HASH = HashingUtils::HashString("EBSIOPSOverprovisioned"); - static const int EBSIOPSUnderprovisioned_HASH = HashingUtils::HashString("EBSIOPSUnderprovisioned"); - static const int NetworkBandwidthOverprovisioned_HASH = HashingUtils::HashString("NetworkBandwidthOverprovisioned"); - static const int NetworkBandwidthUnderprovisioned_HASH = HashingUtils::HashString("NetworkBandwidthUnderprovisioned"); - static const int NetworkPPSOverprovisioned_HASH = HashingUtils::HashString("NetworkPPSOverprovisioned"); - static const int NetworkPPSUnderprovisioned_HASH = HashingUtils::HashString("NetworkPPSUnderprovisioned"); - static const int DiskIOPSOverprovisioned_HASH = HashingUtils::HashString("DiskIOPSOverprovisioned"); - static const int DiskIOPSUnderprovisioned_HASH = HashingUtils::HashString("DiskIOPSUnderprovisioned"); - static const int DiskThroughputOverprovisioned_HASH = HashingUtils::HashString("DiskThroughputOverprovisioned"); - static const int DiskThroughputUnderprovisioned_HASH = HashingUtils::HashString("DiskThroughputUnderprovisioned"); - static const int GPUUnderprovisioned_HASH = HashingUtils::HashString("GPUUnderprovisioned"); - static const int GPUOverprovisioned_HASH = HashingUtils::HashString("GPUOverprovisioned"); - static const int GPUMemoryUnderprovisioned_HASH = HashingUtils::HashString("GPUMemoryUnderprovisioned"); - static const int GPUMemoryOverprovisioned_HASH = HashingUtils::HashString("GPUMemoryOverprovisioned"); + static constexpr uint32_t CPUOverprovisioned_HASH = ConstExprHashingUtils::HashString("CPUOverprovisioned"); + static constexpr uint32_t CPUUnderprovisioned_HASH = ConstExprHashingUtils::HashString("CPUUnderprovisioned"); + static constexpr uint32_t MemoryOverprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryOverprovisioned"); + static constexpr uint32_t MemoryUnderprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryUnderprovisioned"); + static constexpr uint32_t EBSThroughputOverprovisioned_HASH = ConstExprHashingUtils::HashString("EBSThroughputOverprovisioned"); + static constexpr uint32_t EBSThroughputUnderprovisioned_HASH = ConstExprHashingUtils::HashString("EBSThroughputUnderprovisioned"); + static constexpr uint32_t EBSIOPSOverprovisioned_HASH = ConstExprHashingUtils::HashString("EBSIOPSOverprovisioned"); + static constexpr uint32_t EBSIOPSUnderprovisioned_HASH = ConstExprHashingUtils::HashString("EBSIOPSUnderprovisioned"); + static constexpr uint32_t NetworkBandwidthOverprovisioned_HASH = ConstExprHashingUtils::HashString("NetworkBandwidthOverprovisioned"); + static constexpr uint32_t NetworkBandwidthUnderprovisioned_HASH = ConstExprHashingUtils::HashString("NetworkBandwidthUnderprovisioned"); + static constexpr uint32_t NetworkPPSOverprovisioned_HASH = ConstExprHashingUtils::HashString("NetworkPPSOverprovisioned"); + static constexpr uint32_t NetworkPPSUnderprovisioned_HASH = ConstExprHashingUtils::HashString("NetworkPPSUnderprovisioned"); + static constexpr uint32_t DiskIOPSOverprovisioned_HASH = ConstExprHashingUtils::HashString("DiskIOPSOverprovisioned"); + static constexpr uint32_t DiskIOPSUnderprovisioned_HASH = ConstExprHashingUtils::HashString("DiskIOPSUnderprovisioned"); + static constexpr uint32_t DiskThroughputOverprovisioned_HASH = ConstExprHashingUtils::HashString("DiskThroughputOverprovisioned"); + static constexpr uint32_t DiskThroughputUnderprovisioned_HASH = ConstExprHashingUtils::HashString("DiskThroughputUnderprovisioned"); + static constexpr uint32_t GPUUnderprovisioned_HASH = ConstExprHashingUtils::HashString("GPUUnderprovisioned"); + static constexpr uint32_t GPUOverprovisioned_HASH = ConstExprHashingUtils::HashString("GPUOverprovisioned"); + static constexpr uint32_t GPUMemoryUnderprovisioned_HASH = ConstExprHashingUtils::HashString("GPUMemoryUnderprovisioned"); + static constexpr uint32_t GPUMemoryOverprovisioned_HASH = ConstExprHashingUtils::HashString("GPUMemoryOverprovisioned"); InstanceRecommendationFindingReasonCode GetInstanceRecommendationFindingReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPUOverprovisioned_HASH) { return InstanceRecommendationFindingReasonCode::CPUOverprovisioned; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceState.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceState.cpp index 6357df52ba6..5de77093bb8 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceState.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/InstanceState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InstanceStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int running_HASH = HashingUtils::HashString("running"); - static const int shutting_down_HASH = HashingUtils::HashString("shutting-down"); - static const int terminated_HASH = HashingUtils::HashString("terminated"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t running_HASH = ConstExprHashingUtils::HashString("running"); + static constexpr uint32_t shutting_down_HASH = ConstExprHashingUtils::HashString("shutting-down"); + static constexpr uint32_t terminated_HASH = ConstExprHashingUtils::HashString("terminated"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); InstanceState GetInstanceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return InstanceState::pending; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobFilterName.cpp index b0c4a808d65..c60b4847084 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobFilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobFilterNameMapper { - static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); - static const int JobStatus_HASH = HashingUtils::HashString("JobStatus"); + static constexpr uint32_t ResourceType_HASH = ConstExprHashingUtils::HashString("ResourceType"); + static constexpr uint32_t JobStatus_HASH = ConstExprHashingUtils::HashString("JobStatus"); JobFilterName GetJobFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceType_HASH) { return JobFilterName::ResourceType; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobStatus.cpp index c153ed9ce47..f6725fda0ab 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/JobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobStatusMapper { - static const int Queued_HASH = HashingUtils::HashString("Queued"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Queued_HASH = ConstExprHashingUtils::HashString("Queued"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Queued_HASH) { return JobStatus::Queued; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricName.cpp index ce18d34e579..2745b431575 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LambdaFunctionMemoryMetricNameMapper { - static const int Duration_HASH = HashingUtils::HashString("Duration"); + static constexpr uint32_t Duration_HASH = ConstExprHashingUtils::HashString("Duration"); LambdaFunctionMemoryMetricName GetLambdaFunctionMemoryMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Duration_HASH) { return LambdaFunctionMemoryMetricName::Duration; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricStatistic.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricStatistic.cpp index 4a1fc030c3c..6dc691b07f8 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMemoryMetricStatistic.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LambdaFunctionMemoryMetricStatisticMapper { - static const int LowerBound_HASH = HashingUtils::HashString("LowerBound"); - static const int UpperBound_HASH = HashingUtils::HashString("UpperBound"); - static const int Expected_HASH = HashingUtils::HashString("Expected"); + static constexpr uint32_t LowerBound_HASH = ConstExprHashingUtils::HashString("LowerBound"); + static constexpr uint32_t UpperBound_HASH = ConstExprHashingUtils::HashString("UpperBound"); + static constexpr uint32_t Expected_HASH = ConstExprHashingUtils::HashString("Expected"); LambdaFunctionMemoryMetricStatistic GetLambdaFunctionMemoryMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LowerBound_HASH) { return LambdaFunctionMemoryMetricStatistic::LowerBound; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricName.cpp index 3461aa3aa14..4e964cbf6ec 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaFunctionMetricNameMapper { - static const int Duration_HASH = HashingUtils::HashString("Duration"); - static const int Memory_HASH = HashingUtils::HashString("Memory"); + static constexpr uint32_t Duration_HASH = ConstExprHashingUtils::HashString("Duration"); + static constexpr uint32_t Memory_HASH = ConstExprHashingUtils::HashString("Memory"); LambdaFunctionMetricName GetLambdaFunctionMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Duration_HASH) { return LambdaFunctionMetricName::Duration; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricStatistic.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricStatistic.cpp index 9f2cd525abf..ce0b4cfc5c7 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionMetricStatistic.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaFunctionMetricStatisticMapper { - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int Average_HASH = HashingUtils::HashString("Average"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); LambdaFunctionMetricStatistic GetLambdaFunctionMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Maximum_HASH) { return LambdaFunctionMetricStatistic::Maximum; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFilterName.cpp index fe592f6fff2..1612d823702 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaFunctionRecommendationFilterNameMapper { - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCode_HASH = HashingUtils::HashString("FindingReasonCode"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCode_HASH = ConstExprHashingUtils::HashString("FindingReasonCode"); LambdaFunctionRecommendationFilterName GetLambdaFunctionRecommendationFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Finding_HASH) { return LambdaFunctionRecommendationFilterName::Finding; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFinding.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFinding.cpp index 5be81c73455..f84ca2c7da5 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFinding.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFinding.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LambdaFunctionRecommendationFindingMapper { - static const int Optimized_HASH = HashingUtils::HashString("Optimized"); - static const int NotOptimized_HASH = HashingUtils::HashString("NotOptimized"); - static const int Unavailable_HASH = HashingUtils::HashString("Unavailable"); + static constexpr uint32_t Optimized_HASH = ConstExprHashingUtils::HashString("Optimized"); + static constexpr uint32_t NotOptimized_HASH = ConstExprHashingUtils::HashString("NotOptimized"); + static constexpr uint32_t Unavailable_HASH = ConstExprHashingUtils::HashString("Unavailable"); LambdaFunctionRecommendationFinding GetLambdaFunctionRecommendationFindingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Optimized_HASH) { return LambdaFunctionRecommendationFinding::Optimized; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFindingReasonCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFindingReasonCode.cpp index eaaf21a7c16..f5815776671 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LambdaFunctionRecommendationFindingReasonCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LambdaFunctionRecommendationFindingReasonCodeMapper { - static const int MemoryOverprovisioned_HASH = HashingUtils::HashString("MemoryOverprovisioned"); - static const int MemoryUnderprovisioned_HASH = HashingUtils::HashString("MemoryUnderprovisioned"); - static const int InsufficientData_HASH = HashingUtils::HashString("InsufficientData"); - static const int Inconclusive_HASH = HashingUtils::HashString("Inconclusive"); + static constexpr uint32_t MemoryOverprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryOverprovisioned"); + static constexpr uint32_t MemoryUnderprovisioned_HASH = ConstExprHashingUtils::HashString("MemoryUnderprovisioned"); + static constexpr uint32_t InsufficientData_HASH = ConstExprHashingUtils::HashString("InsufficientData"); + static constexpr uint32_t Inconclusive_HASH = ConstExprHashingUtils::HashString("Inconclusive"); LambdaFunctionRecommendationFindingReasonCode GetLambdaFunctionRecommendationFindingReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MemoryOverprovisioned_HASH) { return LambdaFunctionRecommendationFindingReasonCode::MemoryOverprovisioned; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseEdition.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseEdition.cpp index 2de05d886bf..823d51791fb 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseEdition.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseEdition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LicenseEditionMapper { - static const int Enterprise_HASH = HashingUtils::HashString("Enterprise"); - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Free_HASH = HashingUtils::HashString("Free"); - static const int NoLicenseEditionFound_HASH = HashingUtils::HashString("NoLicenseEditionFound"); + static constexpr uint32_t Enterprise_HASH = ConstExprHashingUtils::HashString("Enterprise"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Free_HASH = ConstExprHashingUtils::HashString("Free"); + static constexpr uint32_t NoLicenseEditionFound_HASH = ConstExprHashingUtils::HashString("NoLicenseEditionFound"); LicenseEdition GetLicenseEditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enterprise_HASH) { return LicenseEdition::Enterprise; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFinding.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFinding.cpp index 32d70a68a80..d7f5f811d32 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFinding.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFinding.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LicenseFindingMapper { - static const int InsufficientMetrics_HASH = HashingUtils::HashString("InsufficientMetrics"); - static const int Optimized_HASH = HashingUtils::HashString("Optimized"); - static const int NotOptimized_HASH = HashingUtils::HashString("NotOptimized"); + static constexpr uint32_t InsufficientMetrics_HASH = ConstExprHashingUtils::HashString("InsufficientMetrics"); + static constexpr uint32_t Optimized_HASH = ConstExprHashingUtils::HashString("Optimized"); + static constexpr uint32_t NotOptimized_HASH = ConstExprHashingUtils::HashString("NotOptimized"); LicenseFinding GetLicenseFindingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InsufficientMetrics_HASH) { return LicenseFinding::InsufficientMetrics; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFindingReasonCode.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFindingReasonCode.cpp index c0a52533fc4..93df0525792 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFindingReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseFindingReasonCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LicenseFindingReasonCodeMapper { - static const int InvalidCloudWatchApplicationInsightsSetup_HASH = HashingUtils::HashString("InvalidCloudWatchApplicationInsightsSetup"); - static const int CloudWatchApplicationInsightsError_HASH = HashingUtils::HashString("CloudWatchApplicationInsightsError"); - static const int LicenseOverprovisioned_HASH = HashingUtils::HashString("LicenseOverprovisioned"); - static const int Optimized_HASH = HashingUtils::HashString("Optimized"); + static constexpr uint32_t InvalidCloudWatchApplicationInsightsSetup_HASH = ConstExprHashingUtils::HashString("InvalidCloudWatchApplicationInsightsSetup"); + static constexpr uint32_t CloudWatchApplicationInsightsError_HASH = ConstExprHashingUtils::HashString("CloudWatchApplicationInsightsError"); + static constexpr uint32_t LicenseOverprovisioned_HASH = ConstExprHashingUtils::HashString("LicenseOverprovisioned"); + static constexpr uint32_t Optimized_HASH = ConstExprHashingUtils::HashString("Optimized"); LicenseFindingReasonCode GetLicenseFindingReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidCloudWatchApplicationInsightsSetup_HASH) { return LicenseFindingReasonCode::InvalidCloudWatchApplicationInsightsSetup; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseModel.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseModel.cpp index 2c0b9d92b9e..c714decdf85 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseModel.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LicenseModelMapper { - static const int LicenseIncluded_HASH = HashingUtils::HashString("LicenseIncluded"); - static const int BringYourOwnLicense_HASH = HashingUtils::HashString("BringYourOwnLicense"); + static constexpr uint32_t LicenseIncluded_HASH = ConstExprHashingUtils::HashString("LicenseIncluded"); + static constexpr uint32_t BringYourOwnLicense_HASH = ConstExprHashingUtils::HashString("BringYourOwnLicense"); LicenseModel GetLicenseModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LicenseIncluded_HASH) { return LicenseModel::LicenseIncluded; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseName.cpp index a2709a801d8..9848bf465ba 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LicenseNameMapper { - static const int SQLServer_HASH = HashingUtils::HashString("SQLServer"); + static constexpr uint32_t SQLServer_HASH = ConstExprHashingUtils::HashString("SQLServer"); LicenseName GetLicenseNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQLServer_HASH) { return LicenseName::SQLServer; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseRecommendationFilterName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseRecommendationFilterName.cpp index 08d119fb85d..929f603495a 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseRecommendationFilterName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/LicenseRecommendationFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LicenseRecommendationFilterNameMapper { - static const int Finding_HASH = HashingUtils::HashString("Finding"); - static const int FindingReasonCode_HASH = HashingUtils::HashString("FindingReasonCode"); - static const int LicenseName_HASH = HashingUtils::HashString("LicenseName"); + static constexpr uint32_t Finding_HASH = ConstExprHashingUtils::HashString("Finding"); + static constexpr uint32_t FindingReasonCode_HASH = ConstExprHashingUtils::HashString("FindingReasonCode"); + static constexpr uint32_t LicenseName_HASH = ConstExprHashingUtils::HashString("LicenseName"); LicenseRecommendationFilterName GetLicenseRecommendationFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Finding_HASH) { return LicenseRecommendationFilterName::Finding; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricName.cpp index d6520e0f7da..c29f5c97cef 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricName.cpp @@ -20,27 +20,27 @@ namespace Aws namespace MetricNameMapper { - static const int Cpu_HASH = HashingUtils::HashString("Cpu"); - static const int Memory_HASH = HashingUtils::HashString("Memory"); - static const int EBS_READ_OPS_PER_SECOND_HASH = HashingUtils::HashString("EBS_READ_OPS_PER_SECOND"); - static const int EBS_WRITE_OPS_PER_SECOND_HASH = HashingUtils::HashString("EBS_WRITE_OPS_PER_SECOND"); - static const int EBS_READ_BYTES_PER_SECOND_HASH = HashingUtils::HashString("EBS_READ_BYTES_PER_SECOND"); - static const int EBS_WRITE_BYTES_PER_SECOND_HASH = HashingUtils::HashString("EBS_WRITE_BYTES_PER_SECOND"); - static const int DISK_READ_OPS_PER_SECOND_HASH = HashingUtils::HashString("DISK_READ_OPS_PER_SECOND"); - static const int DISK_WRITE_OPS_PER_SECOND_HASH = HashingUtils::HashString("DISK_WRITE_OPS_PER_SECOND"); - static const int DISK_READ_BYTES_PER_SECOND_HASH = HashingUtils::HashString("DISK_READ_BYTES_PER_SECOND"); - static const int DISK_WRITE_BYTES_PER_SECOND_HASH = HashingUtils::HashString("DISK_WRITE_BYTES_PER_SECOND"); - static const int NETWORK_IN_BYTES_PER_SECOND_HASH = HashingUtils::HashString("NETWORK_IN_BYTES_PER_SECOND"); - static const int NETWORK_OUT_BYTES_PER_SECOND_HASH = HashingUtils::HashString("NETWORK_OUT_BYTES_PER_SECOND"); - static const int NETWORK_PACKETS_IN_PER_SECOND_HASH = HashingUtils::HashString("NETWORK_PACKETS_IN_PER_SECOND"); - static const int NETWORK_PACKETS_OUT_PER_SECOND_HASH = HashingUtils::HashString("NETWORK_PACKETS_OUT_PER_SECOND"); - static const int GPU_PERCENTAGE_HASH = HashingUtils::HashString("GPU_PERCENTAGE"); - static const int GPU_MEMORY_PERCENTAGE_HASH = HashingUtils::HashString("GPU_MEMORY_PERCENTAGE"); + static constexpr uint32_t Cpu_HASH = ConstExprHashingUtils::HashString("Cpu"); + static constexpr uint32_t Memory_HASH = ConstExprHashingUtils::HashString("Memory"); + static constexpr uint32_t EBS_READ_OPS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("EBS_READ_OPS_PER_SECOND"); + static constexpr uint32_t EBS_WRITE_OPS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("EBS_WRITE_OPS_PER_SECOND"); + static constexpr uint32_t EBS_READ_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("EBS_READ_BYTES_PER_SECOND"); + static constexpr uint32_t EBS_WRITE_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("EBS_WRITE_BYTES_PER_SECOND"); + static constexpr uint32_t DISK_READ_OPS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("DISK_READ_OPS_PER_SECOND"); + static constexpr uint32_t DISK_WRITE_OPS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("DISK_WRITE_OPS_PER_SECOND"); + static constexpr uint32_t DISK_READ_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("DISK_READ_BYTES_PER_SECOND"); + static constexpr uint32_t DISK_WRITE_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("DISK_WRITE_BYTES_PER_SECOND"); + static constexpr uint32_t NETWORK_IN_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("NETWORK_IN_BYTES_PER_SECOND"); + static constexpr uint32_t NETWORK_OUT_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("NETWORK_OUT_BYTES_PER_SECOND"); + static constexpr uint32_t NETWORK_PACKETS_IN_PER_SECOND_HASH = ConstExprHashingUtils::HashString("NETWORK_PACKETS_IN_PER_SECOND"); + static constexpr uint32_t NETWORK_PACKETS_OUT_PER_SECOND_HASH = ConstExprHashingUtils::HashString("NETWORK_PACKETS_OUT_PER_SECOND"); + static constexpr uint32_t GPU_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("GPU_PERCENTAGE"); + static constexpr uint32_t GPU_MEMORY_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("GPU_MEMORY_PERCENTAGE"); MetricName GetMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Cpu_HASH) { return MetricName::Cpu; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricSourceProvider.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricSourceProvider.cpp index d27aff3ce95..fb6c493e30a 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricSourceProvider.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricSourceProvider.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MetricSourceProviderMapper { - static const int CloudWatchApplicationInsights_HASH = HashingUtils::HashString("CloudWatchApplicationInsights"); + static constexpr uint32_t CloudWatchApplicationInsights_HASH = ConstExprHashingUtils::HashString("CloudWatchApplicationInsights"); MetricSourceProvider GetMetricSourceProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CloudWatchApplicationInsights_HASH) { return MetricSourceProvider::CloudWatchApplicationInsights; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricStatistic.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricStatistic.cpp index becc40fa15c..531fcc568f1 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MetricStatistic.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricStatisticMapper { - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int Average_HASH = HashingUtils::HashString("Average"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); MetricStatistic GetMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Maximum_HASH) { return MetricStatistic::Maximum; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MigrationEffort.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MigrationEffort.cpp index bb2659a6d7f..80ee07e6093 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MigrationEffort.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/MigrationEffort.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MigrationEffortMapper { - static const int VeryLow_HASH = HashingUtils::HashString("VeryLow"); - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); + static constexpr uint32_t VeryLow_HASH = ConstExprHashingUtils::HashString("VeryLow"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); MigrationEffort GetMigrationEffortForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VeryLow_HASH) { return MigrationEffort::VeryLow; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/PlatformDifference.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/PlatformDifference.cpp index f0e68c83e32..771e746e110 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/PlatformDifference.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/PlatformDifference.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PlatformDifferenceMapper { - static const int Hypervisor_HASH = HashingUtils::HashString("Hypervisor"); - static const int NetworkInterface_HASH = HashingUtils::HashString("NetworkInterface"); - static const int StorageInterface_HASH = HashingUtils::HashString("StorageInterface"); - static const int InstanceStoreAvailability_HASH = HashingUtils::HashString("InstanceStoreAvailability"); - static const int VirtualizationType_HASH = HashingUtils::HashString("VirtualizationType"); - static const int Architecture_HASH = HashingUtils::HashString("Architecture"); + static constexpr uint32_t Hypervisor_HASH = ConstExprHashingUtils::HashString("Hypervisor"); + static constexpr uint32_t NetworkInterface_HASH = ConstExprHashingUtils::HashString("NetworkInterface"); + static constexpr uint32_t StorageInterface_HASH = ConstExprHashingUtils::HashString("StorageInterface"); + static constexpr uint32_t InstanceStoreAvailability_HASH = ConstExprHashingUtils::HashString("InstanceStoreAvailability"); + static constexpr uint32_t VirtualizationType_HASH = ConstExprHashingUtils::HashString("VirtualizationType"); + static constexpr uint32_t Architecture_HASH = ConstExprHashingUtils::HashString("Architecture"); PlatformDifference GetPlatformDifferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Hypervisor_HASH) { return PlatformDifference::Hypervisor; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferenceName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferenceName.cpp index 20f9d6b7fbe..683f0443ef1 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferenceName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferenceName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecommendationPreferenceNameMapper { - static const int EnhancedInfrastructureMetrics_HASH = HashingUtils::HashString("EnhancedInfrastructureMetrics"); - static const int InferredWorkloadTypes_HASH = HashingUtils::HashString("InferredWorkloadTypes"); - static const int ExternalMetricsPreference_HASH = HashingUtils::HashString("ExternalMetricsPreference"); + static constexpr uint32_t EnhancedInfrastructureMetrics_HASH = ConstExprHashingUtils::HashString("EnhancedInfrastructureMetrics"); + static constexpr uint32_t InferredWorkloadTypes_HASH = ConstExprHashingUtils::HashString("InferredWorkloadTypes"); + static constexpr uint32_t ExternalMetricsPreference_HASH = ConstExprHashingUtils::HashString("ExternalMetricsPreference"); RecommendationPreferenceName GetRecommendationPreferenceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EnhancedInfrastructureMetrics_HASH) { return RecommendationPreferenceName::EnhancedInfrastructureMetrics; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSourceType.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSourceType.cpp index eda82a93c1d..2d932cec711 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSourceType.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/RecommendationSourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RecommendationSourceTypeMapper { - static const int Ec2Instance_HASH = HashingUtils::HashString("Ec2Instance"); - static const int AutoScalingGroup_HASH = HashingUtils::HashString("AutoScalingGroup"); - static const int EbsVolume_HASH = HashingUtils::HashString("EbsVolume"); - static const int LambdaFunction_HASH = HashingUtils::HashString("LambdaFunction"); - static const int EcsService_HASH = HashingUtils::HashString("EcsService"); - static const int License_HASH = HashingUtils::HashString("License"); + static constexpr uint32_t Ec2Instance_HASH = ConstExprHashingUtils::HashString("Ec2Instance"); + static constexpr uint32_t AutoScalingGroup_HASH = ConstExprHashingUtils::HashString("AutoScalingGroup"); + static constexpr uint32_t EbsVolume_HASH = ConstExprHashingUtils::HashString("EbsVolume"); + static constexpr uint32_t LambdaFunction_HASH = ConstExprHashingUtils::HashString("LambdaFunction"); + static constexpr uint32_t EcsService_HASH = ConstExprHashingUtils::HashString("EcsService"); + static constexpr uint32_t License_HASH = ConstExprHashingUtils::HashString("License"); RecommendationSourceType GetRecommendationSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ec2Instance_HASH) { return RecommendationSourceType::Ec2Instance; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp index a6287d0390a..1d16c218ae6 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ResourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ResourceTypeMapper { - static const int Ec2Instance_HASH = HashingUtils::HashString("Ec2Instance"); - static const int AutoScalingGroup_HASH = HashingUtils::HashString("AutoScalingGroup"); - static const int EbsVolume_HASH = HashingUtils::HashString("EbsVolume"); - static const int LambdaFunction_HASH = HashingUtils::HashString("LambdaFunction"); - static const int NotApplicable_HASH = HashingUtils::HashString("NotApplicable"); - static const int EcsService_HASH = HashingUtils::HashString("EcsService"); - static const int License_HASH = HashingUtils::HashString("License"); + static constexpr uint32_t Ec2Instance_HASH = ConstExprHashingUtils::HashString("Ec2Instance"); + static constexpr uint32_t AutoScalingGroup_HASH = ConstExprHashingUtils::HashString("AutoScalingGroup"); + static constexpr uint32_t EbsVolume_HASH = ConstExprHashingUtils::HashString("EbsVolume"); + static constexpr uint32_t LambdaFunction_HASH = ConstExprHashingUtils::HashString("LambdaFunction"); + static constexpr uint32_t NotApplicable_HASH = ConstExprHashingUtils::HashString("NotApplicable"); + static constexpr uint32_t EcsService_HASH = ConstExprHashingUtils::HashString("EcsService"); + static constexpr uint32_t License_HASH = ConstExprHashingUtils::HashString("License"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ec2Instance_HASH) { return ResourceType::Ec2Instance; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ScopeName.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ScopeName.cpp index 6b944fbfc49..6d2381d1788 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ScopeName.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/ScopeName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScopeNameMapper { - static const int Organization_HASH = HashingUtils::HashString("Organization"); - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); - static const int ResourceArn_HASH = HashingUtils::HashString("ResourceArn"); + static constexpr uint32_t Organization_HASH = ConstExprHashingUtils::HashString("Organization"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); + static constexpr uint32_t ResourceArn_HASH = ConstExprHashingUtils::HashString("ResourceArn"); ScopeName GetScopeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Organization_HASH) { return ScopeName::Organization; diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Status.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Status.cpp index e0c7bf38047..2f1ccf13ade 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/model/Status.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return Status::Active; diff --git a/generated/src/aws-cpp-sdk-config/source/ConfigServiceErrors.cpp b/generated/src/aws-cpp-sdk-config/source/ConfigServiceErrors.cpp index 4fb2254bd17..9c0ab2387bd 100644 --- a/generated/src/aws-cpp-sdk-config/source/ConfigServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-config/source/ConfigServiceErrors.cpp @@ -18,62 +18,62 @@ namespace ConfigService namespace ConfigServiceErrorMapper { -static const int MAX_NUMBER_OF_CONFIG_RULES_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfConfigRulesExceededException"); -static const int OVERSIZED_CONFIGURATION_ITEM_HASH = HashingUtils::HashString("OversizedConfigurationItemException"); -static const int NO_SUCH_CONFORMANCE_PACK_HASH = HashingUtils::HashString("NoSuchConformancePackException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_S3_KMS_KEY_ARN_HASH = HashingUtils::HashString("InvalidS3KmsKeyArnException"); -static const int CONFORMANCE_PACK_TEMPLATE_VALIDATION_HASH = HashingUtils::HashString("ConformancePackTemplateValidationException"); -static const int INSUFFICIENT_PERMISSIONS_HASH = HashingUtils::HashString("InsufficientPermissionsException"); -static const int MAX_NUMBER_OF_CONFIGURATION_RECORDERS_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfConfigurationRecordersExceededException"); -static const int INVALID_DELIVERY_CHANNEL_NAME_HASH = HashingUtils::HashString("InvalidDeliveryChannelNameException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INSUFFICIENT_DELIVERY_POLICY_HASH = HashingUtils::HashString("InsufficientDeliveryPolicyException"); -static const int NO_AVAILABLE_CONFIGURATION_RECORDER_HASH = HashingUtils::HashString("NoAvailableConfigurationRecorderException"); -static const int REMEDIATION_IN_PROGRESS_HASH = HashingUtils::HashString("RemediationInProgressException"); -static const int RESOURCE_CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ResourceConcurrentModificationException"); -static const int NO_SUCH_CONFIGURATION_AGGREGATOR_HASH = HashingUtils::HashString("NoSuchConfigurationAggregatorException"); -static const int ORGANIZATION_ACCESS_DENIED_HASH = HashingUtils::HashString("OrganizationAccessDeniedException"); -static const int NO_SUCH_BUCKET_HASH = HashingUtils::HashString("NoSuchBucketException"); -static const int NO_SUCH_DELIVERY_CHANNEL_HASH = HashingUtils::HashString("NoSuchDeliveryChannelException"); -static const int MAX_NUMBER_OF_ORGANIZATION_CONFORMANCE_PACKS_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfOrganizationConformancePacksExceededException"); -static const int NO_AVAILABLE_ORGANIZATION_HASH = HashingUtils::HashString("NoAvailableOrganizationException"); -static const int ORGANIZATION_CONFORMANCE_PACK_TEMPLATE_VALIDATION_HASH = HashingUtils::HashString("OrganizationConformancePackTemplateValidationException"); -static const int INVALID_RECORDING_GROUP_HASH = HashingUtils::HashString("InvalidRecordingGroupException"); -static const int INVALID_S3_KEY_PREFIX_HASH = HashingUtils::HashString("InvalidS3KeyPrefixException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INVALID_CONFIGURATION_RECORDER_NAME_HASH = HashingUtils::HashString("InvalidConfigurationRecorderNameException"); -static const int NO_RUNNING_CONFIGURATION_RECORDER_HASH = HashingUtils::HashString("NoRunningConfigurationRecorderException"); -static const int INVALID_ROLE_HASH = HashingUtils::HashString("InvalidRoleException"); -static const int LAST_DELIVERY_CHANNEL_DELETE_FAILED_HASH = HashingUtils::HashString("LastDeliveryChannelDeleteFailedException"); -static const int ORGANIZATION_ALL_FEATURES_NOT_ENABLED_HASH = HashingUtils::HashString("OrganizationAllFeaturesNotEnabledException"); -static const int MAX_NUMBER_OF_ORGANIZATION_CONFIG_RULES_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfOrganizationConfigRulesExceededException"); -static const int NO_SUCH_ORGANIZATION_CONFORMANCE_PACK_HASH = HashingUtils::HashString("NoSuchOrganizationConformancePackException"); -static const int NO_SUCH_REMEDIATION_CONFIGURATION_HASH = HashingUtils::HashString("NoSuchRemediationConfigurationException"); -static const int MAX_NUMBER_OF_RETENTION_CONFIGURATIONS_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfRetentionConfigurationsExceededException"); -static const int NO_AVAILABLE_DELIVERY_CHANNEL_HASH = HashingUtils::HashString("NoAvailableDeliveryChannelException"); -static const int MAX_NUMBER_OF_CONFORMANCE_PACKS_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfConformancePacksExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_TIME_RANGE_HASH = HashingUtils::HashString("InvalidTimeRangeException"); -static const int NO_SUCH_REMEDIATION_EXCEPTION_HASH = HashingUtils::HashString("NoSuchRemediationExceptionException"); -static const int MAX_NUMBER_OF_DELIVERY_CHANNELS_EXCEEDED_HASH = HashingUtils::HashString("MaxNumberOfDeliveryChannelsExceededException"); -static const int NO_SUCH_CONFIG_RULE_IN_CONFORMANCE_PACK_HASH = HashingUtils::HashString("NoSuchConfigRuleInConformancePackException"); -static const int NO_SUCH_CONFIG_RULE_HASH = HashingUtils::HashString("NoSuchConfigRuleException"); -static const int NO_SUCH_RETENTION_CONFIGURATION_HASH = HashingUtils::HashString("NoSuchRetentionConfigurationException"); -static const int MAX_ACTIVE_RESOURCES_EXCEEDED_HASH = HashingUtils::HashString("MaxActiveResourcesExceededException"); -static const int INVALID_EXPRESSION_HASH = HashingUtils::HashString("InvalidExpressionException"); -static const int INVALID_S_N_S_TOPIC_A_R_N_HASH = HashingUtils::HashString("InvalidSNSTopicARNException"); -static const int NO_SUCH_ORGANIZATION_CONFIG_RULE_HASH = HashingUtils::HashString("NoSuchOrganizationConfigRuleException"); -static const int RESOURCE_NOT_DISCOVERED_HASH = HashingUtils::HashString("ResourceNotDiscoveredException"); -static const int INVALID_RESULT_TOKEN_HASH = HashingUtils::HashString("InvalidResultTokenException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatch"); -static const int INVALID_LIMIT_HASH = HashingUtils::HashString("InvalidLimitException"); -static const int NO_SUCH_CONFIGURATION_RECORDER_HASH = HashingUtils::HashString("NoSuchConfigurationRecorderException"); +static constexpr uint32_t MAX_NUMBER_OF_CONFIG_RULES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfConfigRulesExceededException"); +static constexpr uint32_t OVERSIZED_CONFIGURATION_ITEM_HASH = ConstExprHashingUtils::HashString("OversizedConfigurationItemException"); +static constexpr uint32_t NO_SUCH_CONFORMANCE_PACK_HASH = ConstExprHashingUtils::HashString("NoSuchConformancePackException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_S3_KMS_KEY_ARN_HASH = ConstExprHashingUtils::HashString("InvalidS3KmsKeyArnException"); +static constexpr uint32_t CONFORMANCE_PACK_TEMPLATE_VALIDATION_HASH = ConstExprHashingUtils::HashString("ConformancePackTemplateValidationException"); +static constexpr uint32_t INSUFFICIENT_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("InsufficientPermissionsException"); +static constexpr uint32_t MAX_NUMBER_OF_CONFIGURATION_RECORDERS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfConfigurationRecordersExceededException"); +static constexpr uint32_t INVALID_DELIVERY_CHANNEL_NAME_HASH = ConstExprHashingUtils::HashString("InvalidDeliveryChannelNameException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INSUFFICIENT_DELIVERY_POLICY_HASH = ConstExprHashingUtils::HashString("InsufficientDeliveryPolicyException"); +static constexpr uint32_t NO_AVAILABLE_CONFIGURATION_RECORDER_HASH = ConstExprHashingUtils::HashString("NoAvailableConfigurationRecorderException"); +static constexpr uint32_t REMEDIATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("RemediationInProgressException"); +static constexpr uint32_t RESOURCE_CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ResourceConcurrentModificationException"); +static constexpr uint32_t NO_SUCH_CONFIGURATION_AGGREGATOR_HASH = ConstExprHashingUtils::HashString("NoSuchConfigurationAggregatorException"); +static constexpr uint32_t ORGANIZATION_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("OrganizationAccessDeniedException"); +static constexpr uint32_t NO_SUCH_BUCKET_HASH = ConstExprHashingUtils::HashString("NoSuchBucketException"); +static constexpr uint32_t NO_SUCH_DELIVERY_CHANNEL_HASH = ConstExprHashingUtils::HashString("NoSuchDeliveryChannelException"); +static constexpr uint32_t MAX_NUMBER_OF_ORGANIZATION_CONFORMANCE_PACKS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfOrganizationConformancePacksExceededException"); +static constexpr uint32_t NO_AVAILABLE_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("NoAvailableOrganizationException"); +static constexpr uint32_t ORGANIZATION_CONFORMANCE_PACK_TEMPLATE_VALIDATION_HASH = ConstExprHashingUtils::HashString("OrganizationConformancePackTemplateValidationException"); +static constexpr uint32_t INVALID_RECORDING_GROUP_HASH = ConstExprHashingUtils::HashString("InvalidRecordingGroupException"); +static constexpr uint32_t INVALID_S3_KEY_PREFIX_HASH = ConstExprHashingUtils::HashString("InvalidS3KeyPrefixException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INVALID_CONFIGURATION_RECORDER_NAME_HASH = ConstExprHashingUtils::HashString("InvalidConfigurationRecorderNameException"); +static constexpr uint32_t NO_RUNNING_CONFIGURATION_RECORDER_HASH = ConstExprHashingUtils::HashString("NoRunningConfigurationRecorderException"); +static constexpr uint32_t INVALID_ROLE_HASH = ConstExprHashingUtils::HashString("InvalidRoleException"); +static constexpr uint32_t LAST_DELIVERY_CHANNEL_DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("LastDeliveryChannelDeleteFailedException"); +static constexpr uint32_t ORGANIZATION_ALL_FEATURES_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("OrganizationAllFeaturesNotEnabledException"); +static constexpr uint32_t MAX_NUMBER_OF_ORGANIZATION_CONFIG_RULES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfOrganizationConfigRulesExceededException"); +static constexpr uint32_t NO_SUCH_ORGANIZATION_CONFORMANCE_PACK_HASH = ConstExprHashingUtils::HashString("NoSuchOrganizationConformancePackException"); +static constexpr uint32_t NO_SUCH_REMEDIATION_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("NoSuchRemediationConfigurationException"); +static constexpr uint32_t MAX_NUMBER_OF_RETENTION_CONFIGURATIONS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfRetentionConfigurationsExceededException"); +static constexpr uint32_t NO_AVAILABLE_DELIVERY_CHANNEL_HASH = ConstExprHashingUtils::HashString("NoAvailableDeliveryChannelException"); +static constexpr uint32_t MAX_NUMBER_OF_CONFORMANCE_PACKS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfConformancePacksExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("InvalidTimeRangeException"); +static constexpr uint32_t NO_SUCH_REMEDIATION_EXCEPTION_HASH = ConstExprHashingUtils::HashString("NoSuchRemediationExceptionException"); +static constexpr uint32_t MAX_NUMBER_OF_DELIVERY_CHANNELS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxNumberOfDeliveryChannelsExceededException"); +static constexpr uint32_t NO_SUCH_CONFIG_RULE_IN_CONFORMANCE_PACK_HASH = ConstExprHashingUtils::HashString("NoSuchConfigRuleInConformancePackException"); +static constexpr uint32_t NO_SUCH_CONFIG_RULE_HASH = ConstExprHashingUtils::HashString("NoSuchConfigRuleException"); +static constexpr uint32_t NO_SUCH_RETENTION_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("NoSuchRetentionConfigurationException"); +static constexpr uint32_t MAX_ACTIVE_RESOURCES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxActiveResourcesExceededException"); +static constexpr uint32_t INVALID_EXPRESSION_HASH = ConstExprHashingUtils::HashString("InvalidExpressionException"); +static constexpr uint32_t INVALID_S_N_S_TOPIC_A_R_N_HASH = ConstExprHashingUtils::HashString("InvalidSNSTopicARNException"); +static constexpr uint32_t NO_SUCH_ORGANIZATION_CONFIG_RULE_HASH = ConstExprHashingUtils::HashString("NoSuchOrganizationConfigRuleException"); +static constexpr uint32_t RESOURCE_NOT_DISCOVERED_HASH = ConstExprHashingUtils::HashString("ResourceNotDiscoveredException"); +static constexpr uint32_t INVALID_RESULT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidResultTokenException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatch"); +static constexpr uint32_t INVALID_LIMIT_HASH = ConstExprHashingUtils::HashString("InvalidLimitException"); +static constexpr uint32_t NO_SUCH_CONFIGURATION_RECORDER_HASH = ConstExprHashingUtils::HashString("NoSuchConfigurationRecorderException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == MAX_NUMBER_OF_CONFIG_RULES_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-config/source/model/AggregateConformancePackComplianceSummaryGroupKey.cpp b/generated/src/aws-cpp-sdk-config/source/model/AggregateConformancePackComplianceSummaryGroupKey.cpp index 8896a1168cc..8663f29abce 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/AggregateConformancePackComplianceSummaryGroupKey.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/AggregateConformancePackComplianceSummaryGroupKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AggregateConformancePackComplianceSummaryGroupKeyMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int AWS_REGION_HASH = HashingUtils::HashString("AWS_REGION"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t AWS_REGION_HASH = ConstExprHashingUtils::HashString("AWS_REGION"); AggregateConformancePackComplianceSummaryGroupKey GetAggregateConformancePackComplianceSummaryGroupKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return AggregateConformancePackComplianceSummaryGroupKey::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceStatusType.cpp b/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceStatusType.cpp index 21fc09f7c02..44c5cedd270 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceStatusType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AggregatedSourceStatusTypeMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int OUTDATED_HASH = HashingUtils::HashString("OUTDATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t OUTDATED_HASH = ConstExprHashingUtils::HashString("OUTDATED"); AggregatedSourceStatusType GetAggregatedSourceStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return AggregatedSourceStatusType::FAILED; diff --git a/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceType.cpp b/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceType.cpp index e35e8a0f565..21fa982f6cf 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/AggregatedSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AggregatedSourceTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); AggregatedSourceType GetAggregatedSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return AggregatedSourceType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ChronologicalOrder.cpp b/generated/src/aws-cpp-sdk-config/source/model/ChronologicalOrder.cpp index 8df2f67a344..0c197e01f04 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ChronologicalOrder.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ChronologicalOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChronologicalOrderMapper { - static const int Reverse_HASH = HashingUtils::HashString("Reverse"); - static const int Forward_HASH = HashingUtils::HashString("Forward"); + static constexpr uint32_t Reverse_HASH = ConstExprHashingUtils::HashString("Reverse"); + static constexpr uint32_t Forward_HASH = ConstExprHashingUtils::HashString("Forward"); ChronologicalOrder GetChronologicalOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Reverse_HASH) { return ChronologicalOrder::Reverse; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ComplianceType.cpp b/generated/src/aws-cpp-sdk-config/source/model/ComplianceType.cpp index ee9a7a17740..471b44b2765 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ComplianceType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ComplianceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComplianceTypeMapper { - static const int COMPLIANT_HASH = HashingUtils::HashString("COMPLIANT"); - static const int NON_COMPLIANT_HASH = HashingUtils::HashString("NON_COMPLIANT"); - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); - static const int INSUFFICIENT_DATA_HASH = HashingUtils::HashString("INSUFFICIENT_DATA"); + static constexpr uint32_t COMPLIANT_HASH = ConstExprHashingUtils::HashString("COMPLIANT"); + static constexpr uint32_t NON_COMPLIANT_HASH = ConstExprHashingUtils::HashString("NON_COMPLIANT"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATA"); ComplianceType GetComplianceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANT_HASH) { return ComplianceType::COMPLIANT; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleComplianceSummaryGroupKey.cpp b/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleComplianceSummaryGroupKey.cpp index 5bb95dd9570..e5444cdae4f 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleComplianceSummaryGroupKey.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleComplianceSummaryGroupKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigRuleComplianceSummaryGroupKeyMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int AWS_REGION_HASH = HashingUtils::HashString("AWS_REGION"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t AWS_REGION_HASH = ConstExprHashingUtils::HashString("AWS_REGION"); ConfigRuleComplianceSummaryGroupKey GetConfigRuleComplianceSummaryGroupKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return ConfigRuleComplianceSummaryGroupKey::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleState.cpp b/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleState.cpp index fc8d1ef5b64..68317f61c0b 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleState.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ConfigRuleState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConfigRuleStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETING_RESULTS_HASH = HashingUtils::HashString("DELETING_RESULTS"); - static const int EVALUATING_HASH = HashingUtils::HashString("EVALUATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETING_RESULTS_HASH = ConstExprHashingUtils::HashString("DELETING_RESULTS"); + static constexpr uint32_t EVALUATING_HASH = ConstExprHashingUtils::HashString("EVALUATING"); ConfigRuleState GetConfigRuleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ConfigRuleState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ConfigurationItemStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/ConfigurationItemStatus.cpp index 1ebab6c1cb5..1592680ab6e 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ConfigurationItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ConfigurationItemStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ConfigurationItemStatusMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int ResourceDiscovered_HASH = HashingUtils::HashString("ResourceDiscovered"); - static const int ResourceNotRecorded_HASH = HashingUtils::HashString("ResourceNotRecorded"); - static const int ResourceDeleted_HASH = HashingUtils::HashString("ResourceDeleted"); - static const int ResourceDeletedNotRecorded_HASH = HashingUtils::HashString("ResourceDeletedNotRecorded"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t ResourceDiscovered_HASH = ConstExprHashingUtils::HashString("ResourceDiscovered"); + static constexpr uint32_t ResourceNotRecorded_HASH = ConstExprHashingUtils::HashString("ResourceNotRecorded"); + static constexpr uint32_t ResourceDeleted_HASH = ConstExprHashingUtils::HashString("ResourceDeleted"); + static constexpr uint32_t ResourceDeletedNotRecorded_HASH = ConstExprHashingUtils::HashString("ResourceDeletedNotRecorded"); ConfigurationItemStatus GetConfigurationItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return ConfigurationItemStatus::OK; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ConformancePackComplianceType.cpp b/generated/src/aws-cpp-sdk-config/source/model/ConformancePackComplianceType.cpp index 1e5db352767..f4b12b943a8 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ConformancePackComplianceType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ConformancePackComplianceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConformancePackComplianceTypeMapper { - static const int COMPLIANT_HASH = HashingUtils::HashString("COMPLIANT"); - static const int NON_COMPLIANT_HASH = HashingUtils::HashString("NON_COMPLIANT"); - static const int INSUFFICIENT_DATA_HASH = HashingUtils::HashString("INSUFFICIENT_DATA"); + static constexpr uint32_t COMPLIANT_HASH = ConstExprHashingUtils::HashString("COMPLIANT"); + static constexpr uint32_t NON_COMPLIANT_HASH = ConstExprHashingUtils::HashString("NON_COMPLIANT"); + static constexpr uint32_t INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATA"); ConformancePackComplianceType GetConformancePackComplianceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANT_HASH) { return ConformancePackComplianceType::COMPLIANT; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ConformancePackState.cpp b/generated/src/aws-cpp-sdk-config/source/model/ConformancePackState.cpp index ea6d1a782c2..e4e71960b04 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ConformancePackState.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ConformancePackState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ConformancePackStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ConformancePackState GetConformancePackStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ConformancePackState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-config/source/model/DeliveryStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/DeliveryStatus.cpp index b5d2f68cb7e..97807f04411 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/DeliveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/DeliveryStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeliveryStatusMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failure_HASH = HashingUtils::HashString("Failure"); - static const int Not_Applicable_HASH = HashingUtils::HashString("Not_Applicable"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failure_HASH = ConstExprHashingUtils::HashString("Failure"); + static constexpr uint32_t Not_Applicable_HASH = ConstExprHashingUtils::HashString("Not_Applicable"); DeliveryStatus GetDeliveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return DeliveryStatus::Success; diff --git a/generated/src/aws-cpp-sdk-config/source/model/EvaluationMode.cpp b/generated/src/aws-cpp-sdk-config/source/model/EvaluationMode.cpp index 3e797f3a428..fc9e7b3bea4 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/EvaluationMode.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/EvaluationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationModeMapper { - static const int DETECTIVE_HASH = HashingUtils::HashString("DETECTIVE"); - static const int PROACTIVE_HASH = HashingUtils::HashString("PROACTIVE"); + static constexpr uint32_t DETECTIVE_HASH = ConstExprHashingUtils::HashString("DETECTIVE"); + static constexpr uint32_t PROACTIVE_HASH = ConstExprHashingUtils::HashString("PROACTIVE"); EvaluationMode GetEvaluationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DETECTIVE_HASH) { return EvaluationMode::DETECTIVE; diff --git a/generated/src/aws-cpp-sdk-config/source/model/EventSource.cpp b/generated/src/aws-cpp-sdk-config/source/model/EventSource.cpp index 352b67d3dca..59c1a1ba212 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/EventSource.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/EventSource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventSourceMapper { - static const int aws_config_HASH = HashingUtils::HashString("aws.config"); + static constexpr uint32_t aws_config_HASH = ConstExprHashingUtils::HashString("aws.config"); EventSource GetEventSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_config_HASH) { return EventSource::aws_config; diff --git a/generated/src/aws-cpp-sdk-config/source/model/MaximumExecutionFrequency.cpp b/generated/src/aws-cpp-sdk-config/source/model/MaximumExecutionFrequency.cpp index 24cdc0d0fcc..4a0181ab7fc 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/MaximumExecutionFrequency.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/MaximumExecutionFrequency.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MaximumExecutionFrequencyMapper { - static const int One_Hour_HASH = HashingUtils::HashString("One_Hour"); - static const int Three_Hours_HASH = HashingUtils::HashString("Three_Hours"); - static const int Six_Hours_HASH = HashingUtils::HashString("Six_Hours"); - static const int Twelve_Hours_HASH = HashingUtils::HashString("Twelve_Hours"); - static const int TwentyFour_Hours_HASH = HashingUtils::HashString("TwentyFour_Hours"); + static constexpr uint32_t One_Hour_HASH = ConstExprHashingUtils::HashString("One_Hour"); + static constexpr uint32_t Three_Hours_HASH = ConstExprHashingUtils::HashString("Three_Hours"); + static constexpr uint32_t Six_Hours_HASH = ConstExprHashingUtils::HashString("Six_Hours"); + static constexpr uint32_t Twelve_Hours_HASH = ConstExprHashingUtils::HashString("Twelve_Hours"); + static constexpr uint32_t TwentyFour_Hours_HASH = ConstExprHashingUtils::HashString("TwentyFour_Hours"); MaximumExecutionFrequency GetMaximumExecutionFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == One_Hour_HASH) { return MaximumExecutionFrequency::One_Hour; diff --git a/generated/src/aws-cpp-sdk-config/source/model/MemberAccountRuleStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/MemberAccountRuleStatus.cpp index 4689cc1748d..1033bdf338f 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/MemberAccountRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/MemberAccountRuleStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace MemberAccountRuleStatusMapper { - static const int CREATE_SUCCESSFUL_HASH = HashingUtils::HashString("CREATE_SUCCESSFUL"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_SUCCESSFUL_HASH = HashingUtils::HashString("DELETE_SUCCESSFUL"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int UPDATE_SUCCESSFUL_HASH = HashingUtils::HashString("UPDATE_SUCCESSFUL"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("CREATE_SUCCESSFUL"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("DELETE_SUCCESSFUL"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("UPDATE_SUCCESSFUL"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); MemberAccountRuleStatus GetMemberAccountRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_SUCCESSFUL_HASH) { return MemberAccountRuleStatus::CREATE_SUCCESSFUL; diff --git a/generated/src/aws-cpp-sdk-config/source/model/MessageType.cpp b/generated/src/aws-cpp-sdk-config/source/model/MessageType.cpp index 4f6577ab153..caf8d71d81d 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/MessageType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/MessageType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MessageTypeMapper { - static const int ConfigurationItemChangeNotification_HASH = HashingUtils::HashString("ConfigurationItemChangeNotification"); - static const int ConfigurationSnapshotDeliveryCompleted_HASH = HashingUtils::HashString("ConfigurationSnapshotDeliveryCompleted"); - static const int ScheduledNotification_HASH = HashingUtils::HashString("ScheduledNotification"); - static const int OversizedConfigurationItemChangeNotification_HASH = HashingUtils::HashString("OversizedConfigurationItemChangeNotification"); + static constexpr uint32_t ConfigurationItemChangeNotification_HASH = ConstExprHashingUtils::HashString("ConfigurationItemChangeNotification"); + static constexpr uint32_t ConfigurationSnapshotDeliveryCompleted_HASH = ConstExprHashingUtils::HashString("ConfigurationSnapshotDeliveryCompleted"); + static constexpr uint32_t ScheduledNotification_HASH = ConstExprHashingUtils::HashString("ScheduledNotification"); + static constexpr uint32_t OversizedConfigurationItemChangeNotification_HASH = ConstExprHashingUtils::HashString("OversizedConfigurationItemChangeNotification"); MessageType GetMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConfigurationItemChangeNotification_HASH) { return MessageType::ConfigurationItemChangeNotification; diff --git a/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerType.cpp b/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerType.cpp index f70a7688a5f..b6b1b97f579 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrganizationConfigRuleTriggerTypeMapper { - static const int ConfigurationItemChangeNotification_HASH = HashingUtils::HashString("ConfigurationItemChangeNotification"); - static const int OversizedConfigurationItemChangeNotification_HASH = HashingUtils::HashString("OversizedConfigurationItemChangeNotification"); - static const int ScheduledNotification_HASH = HashingUtils::HashString("ScheduledNotification"); + static constexpr uint32_t ConfigurationItemChangeNotification_HASH = ConstExprHashingUtils::HashString("ConfigurationItemChangeNotification"); + static constexpr uint32_t OversizedConfigurationItemChangeNotification_HASH = ConstExprHashingUtils::HashString("OversizedConfigurationItemChangeNotification"); + static constexpr uint32_t ScheduledNotification_HASH = ConstExprHashingUtils::HashString("ScheduledNotification"); OrganizationConfigRuleTriggerType GetOrganizationConfigRuleTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConfigurationItemChangeNotification_HASH) { return OrganizationConfigRuleTriggerType::ConfigurationItemChangeNotification; diff --git a/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerTypeNoSN.cpp b/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerTypeNoSN.cpp index 8cbe522a16c..928ede0c6c8 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerTypeNoSN.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/OrganizationConfigRuleTriggerTypeNoSN.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrganizationConfigRuleTriggerTypeNoSNMapper { - static const int ConfigurationItemChangeNotification_HASH = HashingUtils::HashString("ConfigurationItemChangeNotification"); - static const int OversizedConfigurationItemChangeNotification_HASH = HashingUtils::HashString("OversizedConfigurationItemChangeNotification"); + static constexpr uint32_t ConfigurationItemChangeNotification_HASH = ConstExprHashingUtils::HashString("ConfigurationItemChangeNotification"); + static constexpr uint32_t OversizedConfigurationItemChangeNotification_HASH = ConstExprHashingUtils::HashString("OversizedConfigurationItemChangeNotification"); OrganizationConfigRuleTriggerTypeNoSN GetOrganizationConfigRuleTriggerTypeNoSNForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConfigurationItemChangeNotification_HASH) { return OrganizationConfigRuleTriggerTypeNoSN::ConfigurationItemChangeNotification; diff --git a/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceDetailedStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceDetailedStatus.cpp index 3078e8772fa..f2b57a3a65c 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceDetailedStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceDetailedStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace OrganizationResourceDetailedStatusMapper { - static const int CREATE_SUCCESSFUL_HASH = HashingUtils::HashString("CREATE_SUCCESSFUL"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_SUCCESSFUL_HASH = HashingUtils::HashString("DELETE_SUCCESSFUL"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int UPDATE_SUCCESSFUL_HASH = HashingUtils::HashString("UPDATE_SUCCESSFUL"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("CREATE_SUCCESSFUL"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("DELETE_SUCCESSFUL"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("UPDATE_SUCCESSFUL"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); OrganizationResourceDetailedStatus GetOrganizationResourceDetailedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_SUCCESSFUL_HASH) { return OrganizationResourceDetailedStatus::CREATE_SUCCESSFUL; diff --git a/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceStatus.cpp index 5012d0dbdbd..27e6582e534 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/OrganizationResourceStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace OrganizationResourceStatusMapper { - static const int CREATE_SUCCESSFUL_HASH = HashingUtils::HashString("CREATE_SUCCESSFUL"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_SUCCESSFUL_HASH = HashingUtils::HashString("DELETE_SUCCESSFUL"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int UPDATE_SUCCESSFUL_HASH = HashingUtils::HashString("UPDATE_SUCCESSFUL"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("CREATE_SUCCESSFUL"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("DELETE_SUCCESSFUL"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("UPDATE_SUCCESSFUL"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); OrganizationResourceStatus GetOrganizationResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_SUCCESSFUL_HASH) { return OrganizationResourceStatus::CREATE_SUCCESSFUL; diff --git a/generated/src/aws-cpp-sdk-config/source/model/OrganizationRuleStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/OrganizationRuleStatus.cpp index df3b98681a1..e4690c6403b 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/OrganizationRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/OrganizationRuleStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace OrganizationRuleStatusMapper { - static const int CREATE_SUCCESSFUL_HASH = HashingUtils::HashString("CREATE_SUCCESSFUL"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_SUCCESSFUL_HASH = HashingUtils::HashString("DELETE_SUCCESSFUL"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int UPDATE_SUCCESSFUL_HASH = HashingUtils::HashString("UPDATE_SUCCESSFUL"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("CREATE_SUCCESSFUL"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("DELETE_SUCCESSFUL"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("UPDATE_SUCCESSFUL"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); OrganizationRuleStatus GetOrganizationRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_SUCCESSFUL_HASH) { return OrganizationRuleStatus::CREATE_SUCCESSFUL; diff --git a/generated/src/aws-cpp-sdk-config/source/model/Owner.cpp b/generated/src/aws-cpp-sdk-config/source/model/Owner.cpp index 27d7612bf7c..e1fd404597d 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/Owner.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/Owner.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OwnerMapper { - static const int CUSTOM_LAMBDA_HASH = HashingUtils::HashString("CUSTOM_LAMBDA"); - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int CUSTOM_POLICY_HASH = HashingUtils::HashString("CUSTOM_POLICY"); + static constexpr uint32_t CUSTOM_LAMBDA_HASH = ConstExprHashingUtils::HashString("CUSTOM_LAMBDA"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t CUSTOM_POLICY_HASH = ConstExprHashingUtils::HashString("CUSTOM_POLICY"); Owner GetOwnerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOM_LAMBDA_HASH) { return Owner::CUSTOM_LAMBDA; diff --git a/generated/src/aws-cpp-sdk-config/source/model/RecorderStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/RecorderStatus.cpp index 15a2ac80121..c32abe2cdc4 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/RecorderStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/RecorderStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecorderStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failure_HASH = HashingUtils::HashString("Failure"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failure_HASH = ConstExprHashingUtils::HashString("Failure"); RecorderStatus GetRecorderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return RecorderStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-config/source/model/RecordingStrategyType.cpp b/generated/src/aws-cpp-sdk-config/source/model/RecordingStrategyType.cpp index d32491ff000..49fdb8935f9 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/RecordingStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/RecordingStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecordingStrategyTypeMapper { - static const int ALL_SUPPORTED_RESOURCE_TYPES_HASH = HashingUtils::HashString("ALL_SUPPORTED_RESOURCE_TYPES"); - static const int INCLUSION_BY_RESOURCE_TYPES_HASH = HashingUtils::HashString("INCLUSION_BY_RESOURCE_TYPES"); - static const int EXCLUSION_BY_RESOURCE_TYPES_HASH = HashingUtils::HashString("EXCLUSION_BY_RESOURCE_TYPES"); + static constexpr uint32_t ALL_SUPPORTED_RESOURCE_TYPES_HASH = ConstExprHashingUtils::HashString("ALL_SUPPORTED_RESOURCE_TYPES"); + static constexpr uint32_t INCLUSION_BY_RESOURCE_TYPES_HASH = ConstExprHashingUtils::HashString("INCLUSION_BY_RESOURCE_TYPES"); + static constexpr uint32_t EXCLUSION_BY_RESOURCE_TYPES_HASH = ConstExprHashingUtils::HashString("EXCLUSION_BY_RESOURCE_TYPES"); RecordingStrategyType GetRecordingStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_SUPPORTED_RESOURCE_TYPES_HASH) { return RecordingStrategyType::ALL_SUPPORTED_RESOURCE_TYPES; diff --git a/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionState.cpp b/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionState.cpp index 19992c85c8d..8ae601b6e64 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionState.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RemediationExecutionStateMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RemediationExecutionState GetRemediationExecutionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return RemediationExecutionState::QUEUED; diff --git a/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionStepState.cpp b/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionStepState.cpp index da78ff89787..356bf92b05b 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionStepState.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/RemediationExecutionStepState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RemediationExecutionStepStateMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RemediationExecutionStepState GetRemediationExecutionStepStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return RemediationExecutionStepState::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-config/source/model/RemediationTargetType.cpp b/generated/src/aws-cpp-sdk-config/source/model/RemediationTargetType.cpp index 20000314622..e7804b44c6c 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/RemediationTargetType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/RemediationTargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RemediationTargetTypeMapper { - static const int SSM_DOCUMENT_HASH = HashingUtils::HashString("SSM_DOCUMENT"); + static constexpr uint32_t SSM_DOCUMENT_HASH = ConstExprHashingUtils::HashString("SSM_DOCUMENT"); RemediationTargetType GetRemediationTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_DOCUMENT_HASH) { return RemediationTargetType::SSM_DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ResourceConfigurationSchemaType.cpp b/generated/src/aws-cpp-sdk-config/source/model/ResourceConfigurationSchemaType.cpp index 6c605bd1048..a6b6a6fa9b9 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ResourceConfigurationSchemaType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ResourceConfigurationSchemaType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceConfigurationSchemaTypeMapper { - static const int CFN_RESOURCE_SCHEMA_HASH = HashingUtils::HashString("CFN_RESOURCE_SCHEMA"); + static constexpr uint32_t CFN_RESOURCE_SCHEMA_HASH = ConstExprHashingUtils::HashString("CFN_RESOURCE_SCHEMA"); ResourceConfigurationSchemaType GetResourceConfigurationSchemaTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CFN_RESOURCE_SCHEMA_HASH) { return ResourceConfigurationSchemaType::CFN_RESOURCE_SCHEMA; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ResourceCountGroupKey.cpp b/generated/src/aws-cpp-sdk-config/source/model/ResourceCountGroupKey.cpp index def2dc19d74..c52fbb0bf74 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ResourceCountGroupKey.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ResourceCountGroupKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceCountGroupKeyMapper { - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int AWS_REGION_HASH = HashingUtils::HashString("AWS_REGION"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t AWS_REGION_HASH = ConstExprHashingUtils::HashString("AWS_REGION"); ResourceCountGroupKey GetResourceCountGroupKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_TYPE_HASH) { return ResourceCountGroupKey::RESOURCE_TYPE; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ResourceEvaluationStatus.cpp b/generated/src/aws-cpp-sdk-config/source/model/ResourceEvaluationStatus.cpp index e92e1e52601..d8f2786761e 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ResourceEvaluationStatus.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ResourceEvaluationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceEvaluationStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); ResourceEvaluationStatus GetResourceEvaluationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ResourceEvaluationStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-config/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-config/source/model/ResourceType.cpp index 462ee28ed09..027685839e5 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ResourceType.cpp @@ -20,385 +20,385 @@ namespace Aws namespace ResourceTypeMapper { - static const int AWS_EC2_CustomerGateway_HASH = HashingUtils::HashString("AWS::EC2::CustomerGateway"); - static const int AWS_EC2_EIP_HASH = HashingUtils::HashString("AWS::EC2::EIP"); - static const int AWS_EC2_Host_HASH = HashingUtils::HashString("AWS::EC2::Host"); - static const int AWS_EC2_Instance_HASH = HashingUtils::HashString("AWS::EC2::Instance"); - static const int AWS_EC2_InternetGateway_HASH = HashingUtils::HashString("AWS::EC2::InternetGateway"); - static const int AWS_EC2_NetworkAcl_HASH = HashingUtils::HashString("AWS::EC2::NetworkAcl"); - static const int AWS_EC2_NetworkInterface_HASH = HashingUtils::HashString("AWS::EC2::NetworkInterface"); - static const int AWS_EC2_RouteTable_HASH = HashingUtils::HashString("AWS::EC2::RouteTable"); - static const int AWS_EC2_SecurityGroup_HASH = HashingUtils::HashString("AWS::EC2::SecurityGroup"); - static const int AWS_EC2_Subnet_HASH = HashingUtils::HashString("AWS::EC2::Subnet"); - static const int AWS_CloudTrail_Trail_HASH = HashingUtils::HashString("AWS::CloudTrail::Trail"); - static const int AWS_EC2_Volume_HASH = HashingUtils::HashString("AWS::EC2::Volume"); - static const int AWS_EC2_VPC_HASH = HashingUtils::HashString("AWS::EC2::VPC"); - static const int AWS_EC2_VPNConnection_HASH = HashingUtils::HashString("AWS::EC2::VPNConnection"); - static const int AWS_EC2_VPNGateway_HASH = HashingUtils::HashString("AWS::EC2::VPNGateway"); - static const int AWS_EC2_RegisteredHAInstance_HASH = HashingUtils::HashString("AWS::EC2::RegisteredHAInstance"); - static const int AWS_EC2_NatGateway_HASH = HashingUtils::HashString("AWS::EC2::NatGateway"); - static const int AWS_EC2_EgressOnlyInternetGateway_HASH = HashingUtils::HashString("AWS::EC2::EgressOnlyInternetGateway"); - static const int AWS_EC2_VPCEndpoint_HASH = HashingUtils::HashString("AWS::EC2::VPCEndpoint"); - static const int AWS_EC2_VPCEndpointService_HASH = HashingUtils::HashString("AWS::EC2::VPCEndpointService"); - static const int AWS_EC2_FlowLog_HASH = HashingUtils::HashString("AWS::EC2::FlowLog"); - static const int AWS_EC2_VPCPeeringConnection_HASH = HashingUtils::HashString("AWS::EC2::VPCPeeringConnection"); - static const int AWS_Elasticsearch_Domain_HASH = HashingUtils::HashString("AWS::Elasticsearch::Domain"); - static const int AWS_IAM_Group_HASH = HashingUtils::HashString("AWS::IAM::Group"); - static const int AWS_IAM_Policy_HASH = HashingUtils::HashString("AWS::IAM::Policy"); - static const int AWS_IAM_Role_HASH = HashingUtils::HashString("AWS::IAM::Role"); - static const int AWS_IAM_User_HASH = HashingUtils::HashString("AWS::IAM::User"); - static const int AWS_ElasticLoadBalancingV2_LoadBalancer_HASH = HashingUtils::HashString("AWS::ElasticLoadBalancingV2::LoadBalancer"); - static const int AWS_ACM_Certificate_HASH = HashingUtils::HashString("AWS::ACM::Certificate"); - static const int AWS_RDS_DBInstance_HASH = HashingUtils::HashString("AWS::RDS::DBInstance"); - static const int AWS_RDS_DBSubnetGroup_HASH = HashingUtils::HashString("AWS::RDS::DBSubnetGroup"); - static const int AWS_RDS_DBSecurityGroup_HASH = HashingUtils::HashString("AWS::RDS::DBSecurityGroup"); - static const int AWS_RDS_DBSnapshot_HASH = HashingUtils::HashString("AWS::RDS::DBSnapshot"); - static const int AWS_RDS_DBCluster_HASH = HashingUtils::HashString("AWS::RDS::DBCluster"); - static const int AWS_RDS_DBClusterSnapshot_HASH = HashingUtils::HashString("AWS::RDS::DBClusterSnapshot"); - static const int AWS_RDS_EventSubscription_HASH = HashingUtils::HashString("AWS::RDS::EventSubscription"); - static const int AWS_S3_Bucket_HASH = HashingUtils::HashString("AWS::S3::Bucket"); - static const int AWS_S3_AccountPublicAccessBlock_HASH = HashingUtils::HashString("AWS::S3::AccountPublicAccessBlock"); - static const int AWS_Redshift_Cluster_HASH = HashingUtils::HashString("AWS::Redshift::Cluster"); - static const int AWS_Redshift_ClusterSnapshot_HASH = HashingUtils::HashString("AWS::Redshift::ClusterSnapshot"); - static const int AWS_Redshift_ClusterParameterGroup_HASH = HashingUtils::HashString("AWS::Redshift::ClusterParameterGroup"); - static const int AWS_Redshift_ClusterSecurityGroup_HASH = HashingUtils::HashString("AWS::Redshift::ClusterSecurityGroup"); - static const int AWS_Redshift_ClusterSubnetGroup_HASH = HashingUtils::HashString("AWS::Redshift::ClusterSubnetGroup"); - static const int AWS_Redshift_EventSubscription_HASH = HashingUtils::HashString("AWS::Redshift::EventSubscription"); - static const int AWS_SSM_ManagedInstanceInventory_HASH = HashingUtils::HashString("AWS::SSM::ManagedInstanceInventory"); - static const int AWS_CloudWatch_Alarm_HASH = HashingUtils::HashString("AWS::CloudWatch::Alarm"); - static const int AWS_CloudFormation_Stack_HASH = HashingUtils::HashString("AWS::CloudFormation::Stack"); - static const int AWS_ElasticLoadBalancing_LoadBalancer_HASH = HashingUtils::HashString("AWS::ElasticLoadBalancing::LoadBalancer"); - static const int AWS_AutoScaling_AutoScalingGroup_HASH = HashingUtils::HashString("AWS::AutoScaling::AutoScalingGroup"); - static const int AWS_AutoScaling_LaunchConfiguration_HASH = HashingUtils::HashString("AWS::AutoScaling::LaunchConfiguration"); - static const int AWS_AutoScaling_ScalingPolicy_HASH = HashingUtils::HashString("AWS::AutoScaling::ScalingPolicy"); - static const int AWS_AutoScaling_ScheduledAction_HASH = HashingUtils::HashString("AWS::AutoScaling::ScheduledAction"); - static const int AWS_DynamoDB_Table_HASH = HashingUtils::HashString("AWS::DynamoDB::Table"); - static const int AWS_CodeBuild_Project_HASH = HashingUtils::HashString("AWS::CodeBuild::Project"); - static const int AWS_WAF_RateBasedRule_HASH = HashingUtils::HashString("AWS::WAF::RateBasedRule"); - static const int AWS_WAF_Rule_HASH = HashingUtils::HashString("AWS::WAF::Rule"); - static const int AWS_WAF_RuleGroup_HASH = HashingUtils::HashString("AWS::WAF::RuleGroup"); - static const int AWS_WAF_WebACL_HASH = HashingUtils::HashString("AWS::WAF::WebACL"); - static const int AWS_WAFRegional_RateBasedRule_HASH = HashingUtils::HashString("AWS::WAFRegional::RateBasedRule"); - static const int AWS_WAFRegional_Rule_HASH = HashingUtils::HashString("AWS::WAFRegional::Rule"); - static const int AWS_WAFRegional_RuleGroup_HASH = HashingUtils::HashString("AWS::WAFRegional::RuleGroup"); - static const int AWS_WAFRegional_WebACL_HASH = HashingUtils::HashString("AWS::WAFRegional::WebACL"); - static const int AWS_CloudFront_Distribution_HASH = HashingUtils::HashString("AWS::CloudFront::Distribution"); - static const int AWS_CloudFront_StreamingDistribution_HASH = HashingUtils::HashString("AWS::CloudFront::StreamingDistribution"); - static const int AWS_Lambda_Function_HASH = HashingUtils::HashString("AWS::Lambda::Function"); - static const int AWS_NetworkFirewall_Firewall_HASH = HashingUtils::HashString("AWS::NetworkFirewall::Firewall"); - static const int AWS_NetworkFirewall_FirewallPolicy_HASH = HashingUtils::HashString("AWS::NetworkFirewall::FirewallPolicy"); - static const int AWS_NetworkFirewall_RuleGroup_HASH = HashingUtils::HashString("AWS::NetworkFirewall::RuleGroup"); - static const int AWS_ElasticBeanstalk_Application_HASH = HashingUtils::HashString("AWS::ElasticBeanstalk::Application"); - static const int AWS_ElasticBeanstalk_ApplicationVersion_HASH = HashingUtils::HashString("AWS::ElasticBeanstalk::ApplicationVersion"); - static const int AWS_ElasticBeanstalk_Environment_HASH = HashingUtils::HashString("AWS::ElasticBeanstalk::Environment"); - static const int AWS_WAFv2_WebACL_HASH = HashingUtils::HashString("AWS::WAFv2::WebACL"); - static const int AWS_WAFv2_RuleGroup_HASH = HashingUtils::HashString("AWS::WAFv2::RuleGroup"); - static const int AWS_WAFv2_IPSet_HASH = HashingUtils::HashString("AWS::WAFv2::IPSet"); - static const int AWS_WAFv2_RegexPatternSet_HASH = HashingUtils::HashString("AWS::WAFv2::RegexPatternSet"); - static const int AWS_WAFv2_ManagedRuleSet_HASH = HashingUtils::HashString("AWS::WAFv2::ManagedRuleSet"); - static const int AWS_XRay_EncryptionConfig_HASH = HashingUtils::HashString("AWS::XRay::EncryptionConfig"); - static const int AWS_SSM_AssociationCompliance_HASH = HashingUtils::HashString("AWS::SSM::AssociationCompliance"); - static const int AWS_SSM_PatchCompliance_HASH = HashingUtils::HashString("AWS::SSM::PatchCompliance"); - static const int AWS_Shield_Protection_HASH = HashingUtils::HashString("AWS::Shield::Protection"); - static const int AWS_ShieldRegional_Protection_HASH = HashingUtils::HashString("AWS::ShieldRegional::Protection"); - static const int AWS_Config_ConformancePackCompliance_HASH = HashingUtils::HashString("AWS::Config::ConformancePackCompliance"); - static const int AWS_Config_ResourceCompliance_HASH = HashingUtils::HashString("AWS::Config::ResourceCompliance"); - static const int AWS_ApiGateway_Stage_HASH = HashingUtils::HashString("AWS::ApiGateway::Stage"); - static const int AWS_ApiGateway_RestApi_HASH = HashingUtils::HashString("AWS::ApiGateway::RestApi"); - static const int AWS_ApiGatewayV2_Stage_HASH = HashingUtils::HashString("AWS::ApiGatewayV2::Stage"); - static const int AWS_ApiGatewayV2_Api_HASH = HashingUtils::HashString("AWS::ApiGatewayV2::Api"); - static const int AWS_CodePipeline_Pipeline_HASH = HashingUtils::HashString("AWS::CodePipeline::Pipeline"); - static const int AWS_ServiceCatalog_CloudFormationProvisionedProduct_HASH = HashingUtils::HashString("AWS::ServiceCatalog::CloudFormationProvisionedProduct"); - static const int AWS_ServiceCatalog_CloudFormationProduct_HASH = HashingUtils::HashString("AWS::ServiceCatalog::CloudFormationProduct"); - static const int AWS_ServiceCatalog_Portfolio_HASH = HashingUtils::HashString("AWS::ServiceCatalog::Portfolio"); - static const int AWS_SQS_Queue_HASH = HashingUtils::HashString("AWS::SQS::Queue"); - static const int AWS_KMS_Key_HASH = HashingUtils::HashString("AWS::KMS::Key"); - static const int AWS_QLDB_Ledger_HASH = HashingUtils::HashString("AWS::QLDB::Ledger"); - static const int AWS_SecretsManager_Secret_HASH = HashingUtils::HashString("AWS::SecretsManager::Secret"); - static const int AWS_SNS_Topic_HASH = HashingUtils::HashString("AWS::SNS::Topic"); - static const int AWS_SSM_FileData_HASH = HashingUtils::HashString("AWS::SSM::FileData"); - static const int AWS_Backup_BackupPlan_HASH = HashingUtils::HashString("AWS::Backup::BackupPlan"); - static const int AWS_Backup_BackupSelection_HASH = HashingUtils::HashString("AWS::Backup::BackupSelection"); - static const int AWS_Backup_BackupVault_HASH = HashingUtils::HashString("AWS::Backup::BackupVault"); - static const int AWS_Backup_RecoveryPoint_HASH = HashingUtils::HashString("AWS::Backup::RecoveryPoint"); - static const int AWS_ECR_Repository_HASH = HashingUtils::HashString("AWS::ECR::Repository"); - static const int AWS_ECS_Cluster_HASH = HashingUtils::HashString("AWS::ECS::Cluster"); - static const int AWS_ECS_Service_HASH = HashingUtils::HashString("AWS::ECS::Service"); - static const int AWS_ECS_TaskDefinition_HASH = HashingUtils::HashString("AWS::ECS::TaskDefinition"); - static const int AWS_EFS_AccessPoint_HASH = HashingUtils::HashString("AWS::EFS::AccessPoint"); - static const int AWS_EFS_FileSystem_HASH = HashingUtils::HashString("AWS::EFS::FileSystem"); - static const int AWS_EKS_Cluster_HASH = HashingUtils::HashString("AWS::EKS::Cluster"); - static const int AWS_OpenSearch_Domain_HASH = HashingUtils::HashString("AWS::OpenSearch::Domain"); - static const int AWS_EC2_TransitGateway_HASH = HashingUtils::HashString("AWS::EC2::TransitGateway"); - static const int AWS_Kinesis_Stream_HASH = HashingUtils::HashString("AWS::Kinesis::Stream"); - static const int AWS_Kinesis_StreamConsumer_HASH = HashingUtils::HashString("AWS::Kinesis::StreamConsumer"); - static const int AWS_CodeDeploy_Application_HASH = HashingUtils::HashString("AWS::CodeDeploy::Application"); - static const int AWS_CodeDeploy_DeploymentConfig_HASH = HashingUtils::HashString("AWS::CodeDeploy::DeploymentConfig"); - static const int AWS_CodeDeploy_DeploymentGroup_HASH = HashingUtils::HashString("AWS::CodeDeploy::DeploymentGroup"); - static const int AWS_EC2_LaunchTemplate_HASH = HashingUtils::HashString("AWS::EC2::LaunchTemplate"); - static const int AWS_ECR_PublicRepository_HASH = HashingUtils::HashString("AWS::ECR::PublicRepository"); - static const int AWS_GuardDuty_Detector_HASH = HashingUtils::HashString("AWS::GuardDuty::Detector"); - static const int AWS_EMR_SecurityConfiguration_HASH = HashingUtils::HashString("AWS::EMR::SecurityConfiguration"); - static const int AWS_SageMaker_CodeRepository_HASH = HashingUtils::HashString("AWS::SageMaker::CodeRepository"); - static const int AWS_Route53Resolver_ResolverEndpoint_HASH = HashingUtils::HashString("AWS::Route53Resolver::ResolverEndpoint"); - static const int AWS_Route53Resolver_ResolverRule_HASH = HashingUtils::HashString("AWS::Route53Resolver::ResolverRule"); - static const int AWS_Route53Resolver_ResolverRuleAssociation_HASH = HashingUtils::HashString("AWS::Route53Resolver::ResolverRuleAssociation"); - static const int AWS_DMS_ReplicationSubnetGroup_HASH = HashingUtils::HashString("AWS::DMS::ReplicationSubnetGroup"); - static const int AWS_DMS_EventSubscription_HASH = HashingUtils::HashString("AWS::DMS::EventSubscription"); - static const int AWS_MSK_Cluster_HASH = HashingUtils::HashString("AWS::MSK::Cluster"); - static const int AWS_StepFunctions_Activity_HASH = HashingUtils::HashString("AWS::StepFunctions::Activity"); - static const int AWS_WorkSpaces_Workspace_HASH = HashingUtils::HashString("AWS::WorkSpaces::Workspace"); - static const int AWS_WorkSpaces_ConnectionAlias_HASH = HashingUtils::HashString("AWS::WorkSpaces::ConnectionAlias"); - static const int AWS_SageMaker_Model_HASH = HashingUtils::HashString("AWS::SageMaker::Model"); - static const int AWS_ElasticLoadBalancingV2_Listener_HASH = HashingUtils::HashString("AWS::ElasticLoadBalancingV2::Listener"); - static const int AWS_StepFunctions_StateMachine_HASH = HashingUtils::HashString("AWS::StepFunctions::StateMachine"); - static const int AWS_Batch_JobQueue_HASH = HashingUtils::HashString("AWS::Batch::JobQueue"); - static const int AWS_Batch_ComputeEnvironment_HASH = HashingUtils::HashString("AWS::Batch::ComputeEnvironment"); - static const int AWS_AccessAnalyzer_Analyzer_HASH = HashingUtils::HashString("AWS::AccessAnalyzer::Analyzer"); - static const int AWS_Athena_WorkGroup_HASH = HashingUtils::HashString("AWS::Athena::WorkGroup"); - static const int AWS_Athena_DataCatalog_HASH = HashingUtils::HashString("AWS::Athena::DataCatalog"); - static const int AWS_Detective_Graph_HASH = HashingUtils::HashString("AWS::Detective::Graph"); - static const int AWS_GlobalAccelerator_Accelerator_HASH = HashingUtils::HashString("AWS::GlobalAccelerator::Accelerator"); - static const int AWS_GlobalAccelerator_EndpointGroup_HASH = HashingUtils::HashString("AWS::GlobalAccelerator::EndpointGroup"); - static const int AWS_GlobalAccelerator_Listener_HASH = HashingUtils::HashString("AWS::GlobalAccelerator::Listener"); - static const int AWS_EC2_TransitGatewayAttachment_HASH = HashingUtils::HashString("AWS::EC2::TransitGatewayAttachment"); - static const int AWS_EC2_TransitGatewayRouteTable_HASH = HashingUtils::HashString("AWS::EC2::TransitGatewayRouteTable"); - static const int AWS_DMS_Certificate_HASH = HashingUtils::HashString("AWS::DMS::Certificate"); - static const int AWS_AppConfig_Application_HASH = HashingUtils::HashString("AWS::AppConfig::Application"); - static const int AWS_AppSync_GraphQLApi_HASH = HashingUtils::HashString("AWS::AppSync::GraphQLApi"); - static const int AWS_DataSync_LocationSMB_HASH = HashingUtils::HashString("AWS::DataSync::LocationSMB"); - static const int AWS_DataSync_LocationFSxLustre_HASH = HashingUtils::HashString("AWS::DataSync::LocationFSxLustre"); - static const int AWS_DataSync_LocationS3_HASH = HashingUtils::HashString("AWS::DataSync::LocationS3"); - static const int AWS_DataSync_LocationEFS_HASH = HashingUtils::HashString("AWS::DataSync::LocationEFS"); - static const int AWS_DataSync_Task_HASH = HashingUtils::HashString("AWS::DataSync::Task"); - static const int AWS_DataSync_LocationNFS_HASH = HashingUtils::HashString("AWS::DataSync::LocationNFS"); - static const int AWS_EC2_NetworkInsightsAccessScopeAnalysis_HASH = HashingUtils::HashString("AWS::EC2::NetworkInsightsAccessScopeAnalysis"); - static const int AWS_EKS_FargateProfile_HASH = HashingUtils::HashString("AWS::EKS::FargateProfile"); - static const int AWS_Glue_Job_HASH = HashingUtils::HashString("AWS::Glue::Job"); - static const int AWS_GuardDuty_ThreatIntelSet_HASH = HashingUtils::HashString("AWS::GuardDuty::ThreatIntelSet"); - static const int AWS_GuardDuty_IPSet_HASH = HashingUtils::HashString("AWS::GuardDuty::IPSet"); - static const int AWS_SageMaker_Workteam_HASH = HashingUtils::HashString("AWS::SageMaker::Workteam"); - static const int AWS_SageMaker_NotebookInstanceLifecycleConfig_HASH = HashingUtils::HashString("AWS::SageMaker::NotebookInstanceLifecycleConfig"); - static const int AWS_ServiceDiscovery_Service_HASH = HashingUtils::HashString("AWS::ServiceDiscovery::Service"); - static const int AWS_ServiceDiscovery_PublicDnsNamespace_HASH = HashingUtils::HashString("AWS::ServiceDiscovery::PublicDnsNamespace"); - static const int AWS_SES_ContactList_HASH = HashingUtils::HashString("AWS::SES::ContactList"); - static const int AWS_SES_ConfigurationSet_HASH = HashingUtils::HashString("AWS::SES::ConfigurationSet"); - static const int AWS_Route53_HostedZone_HASH = HashingUtils::HashString("AWS::Route53::HostedZone"); - static const int AWS_IoTEvents_Input_HASH = HashingUtils::HashString("AWS::IoTEvents::Input"); - static const int AWS_IoTEvents_DetectorModel_HASH = HashingUtils::HashString("AWS::IoTEvents::DetectorModel"); - static const int AWS_IoTEvents_AlarmModel_HASH = HashingUtils::HashString("AWS::IoTEvents::AlarmModel"); - static const int AWS_ServiceDiscovery_HttpNamespace_HASH = HashingUtils::HashString("AWS::ServiceDiscovery::HttpNamespace"); - static const int AWS_Events_EventBus_HASH = HashingUtils::HashString("AWS::Events::EventBus"); - static const int AWS_ImageBuilder_ContainerRecipe_HASH = HashingUtils::HashString("AWS::ImageBuilder::ContainerRecipe"); - static const int AWS_ImageBuilder_DistributionConfiguration_HASH = HashingUtils::HashString("AWS::ImageBuilder::DistributionConfiguration"); - static const int AWS_ImageBuilder_InfrastructureConfiguration_HASH = HashingUtils::HashString("AWS::ImageBuilder::InfrastructureConfiguration"); - static const int AWS_DataSync_LocationObjectStorage_HASH = HashingUtils::HashString("AWS::DataSync::LocationObjectStorage"); - static const int AWS_DataSync_LocationHDFS_HASH = HashingUtils::HashString("AWS::DataSync::LocationHDFS"); - static const int AWS_Glue_Classifier_HASH = HashingUtils::HashString("AWS::Glue::Classifier"); - static const int AWS_Route53RecoveryReadiness_Cell_HASH = HashingUtils::HashString("AWS::Route53RecoveryReadiness::Cell"); - static const int AWS_Route53RecoveryReadiness_ReadinessCheck_HASH = HashingUtils::HashString("AWS::Route53RecoveryReadiness::ReadinessCheck"); - static const int AWS_ECR_RegistryPolicy_HASH = HashingUtils::HashString("AWS::ECR::RegistryPolicy"); - static const int AWS_Backup_ReportPlan_HASH = HashingUtils::HashString("AWS::Backup::ReportPlan"); - static const int AWS_Lightsail_Certificate_HASH = HashingUtils::HashString("AWS::Lightsail::Certificate"); - static const int AWS_RUM_AppMonitor_HASH = HashingUtils::HashString("AWS::RUM::AppMonitor"); - static const int AWS_Events_Endpoint_HASH = HashingUtils::HashString("AWS::Events::Endpoint"); - static const int AWS_SES_ReceiptRuleSet_HASH = HashingUtils::HashString("AWS::SES::ReceiptRuleSet"); - static const int AWS_Events_Archive_HASH = HashingUtils::HashString("AWS::Events::Archive"); - static const int AWS_Events_ApiDestination_HASH = HashingUtils::HashString("AWS::Events::ApiDestination"); - static const int AWS_Lightsail_Disk_HASH = HashingUtils::HashString("AWS::Lightsail::Disk"); - static const int AWS_FIS_ExperimentTemplate_HASH = HashingUtils::HashString("AWS::FIS::ExperimentTemplate"); - static const int AWS_DataSync_LocationFSxWindows_HASH = HashingUtils::HashString("AWS::DataSync::LocationFSxWindows"); - static const int AWS_SES_ReceiptFilter_HASH = HashingUtils::HashString("AWS::SES::ReceiptFilter"); - static const int AWS_GuardDuty_Filter_HASH = HashingUtils::HashString("AWS::GuardDuty::Filter"); - static const int AWS_SES_Template_HASH = HashingUtils::HashString("AWS::SES::Template"); - static const int AWS_AmazonMQ_Broker_HASH = HashingUtils::HashString("AWS::AmazonMQ::Broker"); - static const int AWS_AppConfig_Environment_HASH = HashingUtils::HashString("AWS::AppConfig::Environment"); - static const int AWS_AppConfig_ConfigurationProfile_HASH = HashingUtils::HashString("AWS::AppConfig::ConfigurationProfile"); - static const int AWS_Cloud9_EnvironmentEC2_HASH = HashingUtils::HashString("AWS::Cloud9::EnvironmentEC2"); - static const int AWS_EventSchemas_Registry_HASH = HashingUtils::HashString("AWS::EventSchemas::Registry"); - static const int AWS_EventSchemas_RegistryPolicy_HASH = HashingUtils::HashString("AWS::EventSchemas::RegistryPolicy"); - static const int AWS_EventSchemas_Discoverer_HASH = HashingUtils::HashString("AWS::EventSchemas::Discoverer"); - static const int AWS_FraudDetector_Label_HASH = HashingUtils::HashString("AWS::FraudDetector::Label"); - static const int AWS_FraudDetector_EntityType_HASH = HashingUtils::HashString("AWS::FraudDetector::EntityType"); - static const int AWS_FraudDetector_Variable_HASH = HashingUtils::HashString("AWS::FraudDetector::Variable"); - static const int AWS_FraudDetector_Outcome_HASH = HashingUtils::HashString("AWS::FraudDetector::Outcome"); - static const int AWS_IoT_Authorizer_HASH = HashingUtils::HashString("AWS::IoT::Authorizer"); - static const int AWS_IoT_SecurityProfile_HASH = HashingUtils::HashString("AWS::IoT::SecurityProfile"); - static const int AWS_IoT_RoleAlias_HASH = HashingUtils::HashString("AWS::IoT::RoleAlias"); - static const int AWS_IoT_Dimension_HASH = HashingUtils::HashString("AWS::IoT::Dimension"); - static const int AWS_IoTAnalytics_Datastore_HASH = HashingUtils::HashString("AWS::IoTAnalytics::Datastore"); - static const int AWS_Lightsail_Bucket_HASH = HashingUtils::HashString("AWS::Lightsail::Bucket"); - static const int AWS_Lightsail_StaticIp_HASH = HashingUtils::HashString("AWS::Lightsail::StaticIp"); - static const int AWS_MediaPackage_PackagingGroup_HASH = HashingUtils::HashString("AWS::MediaPackage::PackagingGroup"); - static const int AWS_Route53RecoveryReadiness_RecoveryGroup_HASH = HashingUtils::HashString("AWS::Route53RecoveryReadiness::RecoveryGroup"); - static const int AWS_ResilienceHub_ResiliencyPolicy_HASH = HashingUtils::HashString("AWS::ResilienceHub::ResiliencyPolicy"); - static const int AWS_Transfer_Workflow_HASH = HashingUtils::HashString("AWS::Transfer::Workflow"); - static const int AWS_EKS_IdentityProviderConfig_HASH = HashingUtils::HashString("AWS::EKS::IdentityProviderConfig"); - static const int AWS_EKS_Addon_HASH = HashingUtils::HashString("AWS::EKS::Addon"); - static const int AWS_Glue_MLTransform_HASH = HashingUtils::HashString("AWS::Glue::MLTransform"); - static const int AWS_IoT_Policy_HASH = HashingUtils::HashString("AWS::IoT::Policy"); - static const int AWS_IoT_MitigationAction_HASH = HashingUtils::HashString("AWS::IoT::MitigationAction"); - static const int AWS_IoTTwinMaker_Workspace_HASH = HashingUtils::HashString("AWS::IoTTwinMaker::Workspace"); - static const int AWS_IoTTwinMaker_Entity_HASH = HashingUtils::HashString("AWS::IoTTwinMaker::Entity"); - static const int AWS_IoTAnalytics_Dataset_HASH = HashingUtils::HashString("AWS::IoTAnalytics::Dataset"); - static const int AWS_IoTAnalytics_Pipeline_HASH = HashingUtils::HashString("AWS::IoTAnalytics::Pipeline"); - static const int AWS_IoTAnalytics_Channel_HASH = HashingUtils::HashString("AWS::IoTAnalytics::Channel"); - static const int AWS_IoTSiteWise_Dashboard_HASH = HashingUtils::HashString("AWS::IoTSiteWise::Dashboard"); - static const int AWS_IoTSiteWise_Project_HASH = HashingUtils::HashString("AWS::IoTSiteWise::Project"); - static const int AWS_IoTSiteWise_Portal_HASH = HashingUtils::HashString("AWS::IoTSiteWise::Portal"); - static const int AWS_IoTSiteWise_AssetModel_HASH = HashingUtils::HashString("AWS::IoTSiteWise::AssetModel"); - static const int AWS_IVS_Channel_HASH = HashingUtils::HashString("AWS::IVS::Channel"); - static const int AWS_IVS_RecordingConfiguration_HASH = HashingUtils::HashString("AWS::IVS::RecordingConfiguration"); - static const int AWS_IVS_PlaybackKeyPair_HASH = HashingUtils::HashString("AWS::IVS::PlaybackKeyPair"); - static const int AWS_KinesisAnalyticsV2_Application_HASH = HashingUtils::HashString("AWS::KinesisAnalyticsV2::Application"); - static const int AWS_RDS_GlobalCluster_HASH = HashingUtils::HashString("AWS::RDS::GlobalCluster"); - static const int AWS_S3_MultiRegionAccessPoint_HASH = HashingUtils::HashString("AWS::S3::MultiRegionAccessPoint"); - static const int AWS_DeviceFarm_TestGridProject_HASH = HashingUtils::HashString("AWS::DeviceFarm::TestGridProject"); - static const int AWS_Budgets_BudgetsAction_HASH = HashingUtils::HashString("AWS::Budgets::BudgetsAction"); - static const int AWS_Lex_Bot_HASH = HashingUtils::HashString("AWS::Lex::Bot"); - static const int AWS_CodeGuruReviewer_RepositoryAssociation_HASH = HashingUtils::HashString("AWS::CodeGuruReviewer::RepositoryAssociation"); - static const int AWS_IoT_CustomMetric_HASH = HashingUtils::HashString("AWS::IoT::CustomMetric"); - static const int AWS_Route53Resolver_FirewallDomainList_HASH = HashingUtils::HashString("AWS::Route53Resolver::FirewallDomainList"); - static const int AWS_RoboMaker_RobotApplicationVersion_HASH = HashingUtils::HashString("AWS::RoboMaker::RobotApplicationVersion"); - static const int AWS_EC2_TrafficMirrorSession_HASH = HashingUtils::HashString("AWS::EC2::TrafficMirrorSession"); - static const int AWS_IoTSiteWise_Gateway_HASH = HashingUtils::HashString("AWS::IoTSiteWise::Gateway"); - static const int AWS_Lex_BotAlias_HASH = HashingUtils::HashString("AWS::Lex::BotAlias"); - static const int AWS_LookoutMetrics_Alert_HASH = HashingUtils::HashString("AWS::LookoutMetrics::Alert"); - static const int AWS_IoT_AccountAuditConfiguration_HASH = HashingUtils::HashString("AWS::IoT::AccountAuditConfiguration"); - static const int AWS_EC2_TrafficMirrorTarget_HASH = HashingUtils::HashString("AWS::EC2::TrafficMirrorTarget"); - static const int AWS_S3_StorageLens_HASH = HashingUtils::HashString("AWS::S3::StorageLens"); - static const int AWS_IoT_ScheduledAudit_HASH = HashingUtils::HashString("AWS::IoT::ScheduledAudit"); - static const int AWS_Events_Connection_HASH = HashingUtils::HashString("AWS::Events::Connection"); - static const int AWS_EventSchemas_Schema_HASH = HashingUtils::HashString("AWS::EventSchemas::Schema"); - static const int AWS_MediaPackage_PackagingConfiguration_HASH = HashingUtils::HashString("AWS::MediaPackage::PackagingConfiguration"); - static const int AWS_KinesisVideo_SignalingChannel_HASH = HashingUtils::HashString("AWS::KinesisVideo::SignalingChannel"); - static const int AWS_AppStream_DirectoryConfig_HASH = HashingUtils::HashString("AWS::AppStream::DirectoryConfig"); - static const int AWS_LookoutVision_Project_HASH = HashingUtils::HashString("AWS::LookoutVision::Project"); - static const int AWS_Route53RecoveryControl_Cluster_HASH = HashingUtils::HashString("AWS::Route53RecoveryControl::Cluster"); - static const int AWS_Route53RecoveryControl_SafetyRule_HASH = HashingUtils::HashString("AWS::Route53RecoveryControl::SafetyRule"); - static const int AWS_Route53RecoveryControl_ControlPanel_HASH = HashingUtils::HashString("AWS::Route53RecoveryControl::ControlPanel"); - static const int AWS_Route53RecoveryControl_RoutingControl_HASH = HashingUtils::HashString("AWS::Route53RecoveryControl::RoutingControl"); - static const int AWS_Route53RecoveryReadiness_ResourceSet_HASH = HashingUtils::HashString("AWS::Route53RecoveryReadiness::ResourceSet"); - static const int AWS_RoboMaker_SimulationApplication_HASH = HashingUtils::HashString("AWS::RoboMaker::SimulationApplication"); - static const int AWS_RoboMaker_RobotApplication_HASH = HashingUtils::HashString("AWS::RoboMaker::RobotApplication"); - static const int AWS_HealthLake_FHIRDatastore_HASH = HashingUtils::HashString("AWS::HealthLake::FHIRDatastore"); - static const int AWS_Pinpoint_Segment_HASH = HashingUtils::HashString("AWS::Pinpoint::Segment"); - static const int AWS_Pinpoint_ApplicationSettings_HASH = HashingUtils::HashString("AWS::Pinpoint::ApplicationSettings"); - static const int AWS_Events_Rule_HASH = HashingUtils::HashString("AWS::Events::Rule"); - static const int AWS_EC2_DHCPOptions_HASH = HashingUtils::HashString("AWS::EC2::DHCPOptions"); - static const int AWS_EC2_NetworkInsightsPath_HASH = HashingUtils::HashString("AWS::EC2::NetworkInsightsPath"); - static const int AWS_EC2_TrafficMirrorFilter_HASH = HashingUtils::HashString("AWS::EC2::TrafficMirrorFilter"); - static const int AWS_EC2_IPAM_HASH = HashingUtils::HashString("AWS::EC2::IPAM"); - static const int AWS_IoTTwinMaker_Scene_HASH = HashingUtils::HashString("AWS::IoTTwinMaker::Scene"); - static const int AWS_NetworkManager_TransitGatewayRegistration_HASH = HashingUtils::HashString("AWS::NetworkManager::TransitGatewayRegistration"); - static const int AWS_CustomerProfiles_Domain_HASH = HashingUtils::HashString("AWS::CustomerProfiles::Domain"); - static const int AWS_AutoScaling_WarmPool_HASH = HashingUtils::HashString("AWS::AutoScaling::WarmPool"); - static const int AWS_Connect_PhoneNumber_HASH = HashingUtils::HashString("AWS::Connect::PhoneNumber"); - static const int AWS_AppConfig_DeploymentStrategy_HASH = HashingUtils::HashString("AWS::AppConfig::DeploymentStrategy"); - static const int AWS_AppFlow_Flow_HASH = HashingUtils::HashString("AWS::AppFlow::Flow"); - static const int AWS_AuditManager_Assessment_HASH = HashingUtils::HashString("AWS::AuditManager::Assessment"); - static const int AWS_CloudWatch_MetricStream_HASH = HashingUtils::HashString("AWS::CloudWatch::MetricStream"); - static const int AWS_DeviceFarm_InstanceProfile_HASH = HashingUtils::HashString("AWS::DeviceFarm::InstanceProfile"); - static const int AWS_DeviceFarm_Project_HASH = HashingUtils::HashString("AWS::DeviceFarm::Project"); - static const int AWS_EC2_EC2Fleet_HASH = HashingUtils::HashString("AWS::EC2::EC2Fleet"); - static const int AWS_EC2_SubnetRouteTableAssociation_HASH = HashingUtils::HashString("AWS::EC2::SubnetRouteTableAssociation"); - static const int AWS_ECR_PullThroughCacheRule_HASH = HashingUtils::HashString("AWS::ECR::PullThroughCacheRule"); - static const int AWS_GroundStation_Config_HASH = HashingUtils::HashString("AWS::GroundStation::Config"); - static const int AWS_ImageBuilder_ImagePipeline_HASH = HashingUtils::HashString("AWS::ImageBuilder::ImagePipeline"); - static const int AWS_IoT_FleetMetric_HASH = HashingUtils::HashString("AWS::IoT::FleetMetric"); - static const int AWS_IoTWireless_ServiceProfile_HASH = HashingUtils::HashString("AWS::IoTWireless::ServiceProfile"); - static const int AWS_NetworkManager_Device_HASH = HashingUtils::HashString("AWS::NetworkManager::Device"); - static const int AWS_NetworkManager_GlobalNetwork_HASH = HashingUtils::HashString("AWS::NetworkManager::GlobalNetwork"); - static const int AWS_NetworkManager_Link_HASH = HashingUtils::HashString("AWS::NetworkManager::Link"); - static const int AWS_NetworkManager_Site_HASH = HashingUtils::HashString("AWS::NetworkManager::Site"); - static const int AWS_Panorama_Package_HASH = HashingUtils::HashString("AWS::Panorama::Package"); - static const int AWS_Pinpoint_App_HASH = HashingUtils::HashString("AWS::Pinpoint::App"); - static const int AWS_Redshift_ScheduledAction_HASH = HashingUtils::HashString("AWS::Redshift::ScheduledAction"); - static const int AWS_Route53Resolver_FirewallRuleGroupAssociation_HASH = HashingUtils::HashString("AWS::Route53Resolver::FirewallRuleGroupAssociation"); - static const int AWS_SageMaker_AppImageConfig_HASH = HashingUtils::HashString("AWS::SageMaker::AppImageConfig"); - static const int AWS_SageMaker_Image_HASH = HashingUtils::HashString("AWS::SageMaker::Image"); - static const int AWS_ECS_TaskSet_HASH = HashingUtils::HashString("AWS::ECS::TaskSet"); - static const int AWS_Cassandra_Keyspace_HASH = HashingUtils::HashString("AWS::Cassandra::Keyspace"); - static const int AWS_Signer_SigningProfile_HASH = HashingUtils::HashString("AWS::Signer::SigningProfile"); - static const int AWS_Amplify_App_HASH = HashingUtils::HashString("AWS::Amplify::App"); - static const int AWS_AppMesh_VirtualNode_HASH = HashingUtils::HashString("AWS::AppMesh::VirtualNode"); - static const int AWS_AppMesh_VirtualService_HASH = HashingUtils::HashString("AWS::AppMesh::VirtualService"); - static const int AWS_AppRunner_VpcConnector_HASH = HashingUtils::HashString("AWS::AppRunner::VpcConnector"); - static const int AWS_AppStream_Application_HASH = HashingUtils::HashString("AWS::AppStream::Application"); - static const int AWS_CodeArtifact_Repository_HASH = HashingUtils::HashString("AWS::CodeArtifact::Repository"); - static const int AWS_EC2_PrefixList_HASH = HashingUtils::HashString("AWS::EC2::PrefixList"); - static const int AWS_EC2_SpotFleet_HASH = HashingUtils::HashString("AWS::EC2::SpotFleet"); - static const int AWS_Evidently_Project_HASH = HashingUtils::HashString("AWS::Evidently::Project"); - static const int AWS_Forecast_Dataset_HASH = HashingUtils::HashString("AWS::Forecast::Dataset"); - static const int AWS_IAM_SAMLProvider_HASH = HashingUtils::HashString("AWS::IAM::SAMLProvider"); - static const int AWS_IAM_ServerCertificate_HASH = HashingUtils::HashString("AWS::IAM::ServerCertificate"); - static const int AWS_Pinpoint_Campaign_HASH = HashingUtils::HashString("AWS::Pinpoint::Campaign"); - static const int AWS_Pinpoint_InAppTemplate_HASH = HashingUtils::HashString("AWS::Pinpoint::InAppTemplate"); - static const int AWS_SageMaker_Domain_HASH = HashingUtils::HashString("AWS::SageMaker::Domain"); - static const int AWS_Transfer_Agreement_HASH = HashingUtils::HashString("AWS::Transfer::Agreement"); - static const int AWS_Transfer_Connector_HASH = HashingUtils::HashString("AWS::Transfer::Connector"); - static const int AWS_KinesisFirehose_DeliveryStream_HASH = HashingUtils::HashString("AWS::KinesisFirehose::DeliveryStream"); - static const int AWS_Amplify_Branch_HASH = HashingUtils::HashString("AWS::Amplify::Branch"); - static const int AWS_AppIntegrations_EventIntegration_HASH = HashingUtils::HashString("AWS::AppIntegrations::EventIntegration"); - static const int AWS_AppMesh_Route_HASH = HashingUtils::HashString("AWS::AppMesh::Route"); - static const int AWS_Athena_PreparedStatement_HASH = HashingUtils::HashString("AWS::Athena::PreparedStatement"); - static const int AWS_EC2_IPAMScope_HASH = HashingUtils::HashString("AWS::EC2::IPAMScope"); - static const int AWS_Evidently_Launch_HASH = HashingUtils::HashString("AWS::Evidently::Launch"); - static const int AWS_Forecast_DatasetGroup_HASH = HashingUtils::HashString("AWS::Forecast::DatasetGroup"); - static const int AWS_GreengrassV2_ComponentVersion_HASH = HashingUtils::HashString("AWS::GreengrassV2::ComponentVersion"); - static const int AWS_GroundStation_MissionProfile_HASH = HashingUtils::HashString("AWS::GroundStation::MissionProfile"); - static const int AWS_MediaConnect_FlowEntitlement_HASH = HashingUtils::HashString("AWS::MediaConnect::FlowEntitlement"); - static const int AWS_MediaConnect_FlowVpcInterface_HASH = HashingUtils::HashString("AWS::MediaConnect::FlowVpcInterface"); - static const int AWS_MediaTailor_PlaybackConfiguration_HASH = HashingUtils::HashString("AWS::MediaTailor::PlaybackConfiguration"); - static const int AWS_MSK_Configuration_HASH = HashingUtils::HashString("AWS::MSK::Configuration"); - static const int AWS_Personalize_Dataset_HASH = HashingUtils::HashString("AWS::Personalize::Dataset"); - static const int AWS_Personalize_Schema_HASH = HashingUtils::HashString("AWS::Personalize::Schema"); - static const int AWS_Personalize_Solution_HASH = HashingUtils::HashString("AWS::Personalize::Solution"); - static const int AWS_Pinpoint_EmailTemplate_HASH = HashingUtils::HashString("AWS::Pinpoint::EmailTemplate"); - static const int AWS_Pinpoint_EventStream_HASH = HashingUtils::HashString("AWS::Pinpoint::EventStream"); - static const int AWS_ResilienceHub_App_HASH = HashingUtils::HashString("AWS::ResilienceHub::App"); - static const int AWS_ACMPCA_CertificateAuthority_HASH = HashingUtils::HashString("AWS::ACMPCA::CertificateAuthority"); - static const int AWS_AppConfig_HostedConfigurationVersion_HASH = HashingUtils::HashString("AWS::AppConfig::HostedConfigurationVersion"); - static const int AWS_AppMesh_VirtualGateway_HASH = HashingUtils::HashString("AWS::AppMesh::VirtualGateway"); - static const int AWS_AppMesh_VirtualRouter_HASH = HashingUtils::HashString("AWS::AppMesh::VirtualRouter"); - static const int AWS_AppRunner_Service_HASH = HashingUtils::HashString("AWS::AppRunner::Service"); - static const int AWS_CustomerProfiles_ObjectType_HASH = HashingUtils::HashString("AWS::CustomerProfiles::ObjectType"); - static const int AWS_DMS_Endpoint_HASH = HashingUtils::HashString("AWS::DMS::Endpoint"); - static const int AWS_EC2_CapacityReservation_HASH = HashingUtils::HashString("AWS::EC2::CapacityReservation"); - static const int AWS_EC2_ClientVpnEndpoint_HASH = HashingUtils::HashString("AWS::EC2::ClientVpnEndpoint"); - static const int AWS_Kendra_Index_HASH = HashingUtils::HashString("AWS::Kendra::Index"); - static const int AWS_KinesisVideo_Stream_HASH = HashingUtils::HashString("AWS::KinesisVideo::Stream"); - static const int AWS_Logs_Destination_HASH = HashingUtils::HashString("AWS::Logs::Destination"); - static const int AWS_Pinpoint_EmailChannel_HASH = HashingUtils::HashString("AWS::Pinpoint::EmailChannel"); - static const int AWS_S3_AccessPoint_HASH = HashingUtils::HashString("AWS::S3::AccessPoint"); - static const int AWS_NetworkManager_CustomerGatewayAssociation_HASH = HashingUtils::HashString("AWS::NetworkManager::CustomerGatewayAssociation"); - static const int AWS_NetworkManager_LinkAssociation_HASH = HashingUtils::HashString("AWS::NetworkManager::LinkAssociation"); - static const int AWS_IoTWireless_MulticastGroup_HASH = HashingUtils::HashString("AWS::IoTWireless::MulticastGroup"); - static const int AWS_Personalize_DatasetGroup_HASH = HashingUtils::HashString("AWS::Personalize::DatasetGroup"); - static const int AWS_IoTTwinMaker_ComponentType_HASH = HashingUtils::HashString("AWS::IoTTwinMaker::ComponentType"); - static const int AWS_CodeBuild_ReportGroup_HASH = HashingUtils::HashString("AWS::CodeBuild::ReportGroup"); - static const int AWS_SageMaker_FeatureGroup_HASH = HashingUtils::HashString("AWS::SageMaker::FeatureGroup"); - static const int AWS_MSK_BatchScramSecret_HASH = HashingUtils::HashString("AWS::MSK::BatchScramSecret"); - static const int AWS_AppStream_Stack_HASH = HashingUtils::HashString("AWS::AppStream::Stack"); - static const int AWS_IoT_JobTemplate_HASH = HashingUtils::HashString("AWS::IoT::JobTemplate"); - static const int AWS_IoTWireless_FuotaTask_HASH = HashingUtils::HashString("AWS::IoTWireless::FuotaTask"); - static const int AWS_IoT_ProvisioningTemplate_HASH = HashingUtils::HashString("AWS::IoT::ProvisioningTemplate"); - static const int AWS_InspectorV2_Filter_HASH = HashingUtils::HashString("AWS::InspectorV2::Filter"); - static const int AWS_Route53Resolver_ResolverQueryLoggingConfigAssociation_HASH = HashingUtils::HashString("AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation"); - static const int AWS_ServiceDiscovery_Instance_HASH = HashingUtils::HashString("AWS::ServiceDiscovery::Instance"); - static const int AWS_Transfer_Certificate_HASH = HashingUtils::HashString("AWS::Transfer::Certificate"); - static const int AWS_MediaConnect_FlowSource_HASH = HashingUtils::HashString("AWS::MediaConnect::FlowSource"); - static const int AWS_APS_RuleGroupsNamespace_HASH = HashingUtils::HashString("AWS::APS::RuleGroupsNamespace"); - static const int AWS_CodeGuruProfiler_ProfilingGroup_HASH = HashingUtils::HashString("AWS::CodeGuruProfiler::ProfilingGroup"); - static const int AWS_Route53Resolver_ResolverQueryLoggingConfig_HASH = HashingUtils::HashString("AWS::Route53Resolver::ResolverQueryLoggingConfig"); - static const int AWS_Batch_SchedulingPolicy_HASH = HashingUtils::HashString("AWS::Batch::SchedulingPolicy"); + static constexpr uint32_t AWS_EC2_CustomerGateway_HASH = ConstExprHashingUtils::HashString("AWS::EC2::CustomerGateway"); + static constexpr uint32_t AWS_EC2_EIP_HASH = ConstExprHashingUtils::HashString("AWS::EC2::EIP"); + static constexpr uint32_t AWS_EC2_Host_HASH = ConstExprHashingUtils::HashString("AWS::EC2::Host"); + static constexpr uint32_t AWS_EC2_Instance_HASH = ConstExprHashingUtils::HashString("AWS::EC2::Instance"); + static constexpr uint32_t AWS_EC2_InternetGateway_HASH = ConstExprHashingUtils::HashString("AWS::EC2::InternetGateway"); + static constexpr uint32_t AWS_EC2_NetworkAcl_HASH = ConstExprHashingUtils::HashString("AWS::EC2::NetworkAcl"); + static constexpr uint32_t AWS_EC2_NetworkInterface_HASH = ConstExprHashingUtils::HashString("AWS::EC2::NetworkInterface"); + static constexpr uint32_t AWS_EC2_RouteTable_HASH = ConstExprHashingUtils::HashString("AWS::EC2::RouteTable"); + static constexpr uint32_t AWS_EC2_SecurityGroup_HASH = ConstExprHashingUtils::HashString("AWS::EC2::SecurityGroup"); + static constexpr uint32_t AWS_EC2_Subnet_HASH = ConstExprHashingUtils::HashString("AWS::EC2::Subnet"); + static constexpr uint32_t AWS_CloudTrail_Trail_HASH = ConstExprHashingUtils::HashString("AWS::CloudTrail::Trail"); + static constexpr uint32_t AWS_EC2_Volume_HASH = ConstExprHashingUtils::HashString("AWS::EC2::Volume"); + static constexpr uint32_t AWS_EC2_VPC_HASH = ConstExprHashingUtils::HashString("AWS::EC2::VPC"); + static constexpr uint32_t AWS_EC2_VPNConnection_HASH = ConstExprHashingUtils::HashString("AWS::EC2::VPNConnection"); + static constexpr uint32_t AWS_EC2_VPNGateway_HASH = ConstExprHashingUtils::HashString("AWS::EC2::VPNGateway"); + static constexpr uint32_t AWS_EC2_RegisteredHAInstance_HASH = ConstExprHashingUtils::HashString("AWS::EC2::RegisteredHAInstance"); + static constexpr uint32_t AWS_EC2_NatGateway_HASH = ConstExprHashingUtils::HashString("AWS::EC2::NatGateway"); + static constexpr uint32_t AWS_EC2_EgressOnlyInternetGateway_HASH = ConstExprHashingUtils::HashString("AWS::EC2::EgressOnlyInternetGateway"); + static constexpr uint32_t AWS_EC2_VPCEndpoint_HASH = ConstExprHashingUtils::HashString("AWS::EC2::VPCEndpoint"); + static constexpr uint32_t AWS_EC2_VPCEndpointService_HASH = ConstExprHashingUtils::HashString("AWS::EC2::VPCEndpointService"); + static constexpr uint32_t AWS_EC2_FlowLog_HASH = ConstExprHashingUtils::HashString("AWS::EC2::FlowLog"); + static constexpr uint32_t AWS_EC2_VPCPeeringConnection_HASH = ConstExprHashingUtils::HashString("AWS::EC2::VPCPeeringConnection"); + static constexpr uint32_t AWS_Elasticsearch_Domain_HASH = ConstExprHashingUtils::HashString("AWS::Elasticsearch::Domain"); + static constexpr uint32_t AWS_IAM_Group_HASH = ConstExprHashingUtils::HashString("AWS::IAM::Group"); + static constexpr uint32_t AWS_IAM_Policy_HASH = ConstExprHashingUtils::HashString("AWS::IAM::Policy"); + static constexpr uint32_t AWS_IAM_Role_HASH = ConstExprHashingUtils::HashString("AWS::IAM::Role"); + static constexpr uint32_t AWS_IAM_User_HASH = ConstExprHashingUtils::HashString("AWS::IAM::User"); + static constexpr uint32_t AWS_ElasticLoadBalancingV2_LoadBalancer_HASH = ConstExprHashingUtils::HashString("AWS::ElasticLoadBalancingV2::LoadBalancer"); + static constexpr uint32_t AWS_ACM_Certificate_HASH = ConstExprHashingUtils::HashString("AWS::ACM::Certificate"); + static constexpr uint32_t AWS_RDS_DBInstance_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBInstance"); + static constexpr uint32_t AWS_RDS_DBSubnetGroup_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBSubnetGroup"); + static constexpr uint32_t AWS_RDS_DBSecurityGroup_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBSecurityGroup"); + static constexpr uint32_t AWS_RDS_DBSnapshot_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBSnapshot"); + static constexpr uint32_t AWS_RDS_DBCluster_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBCluster"); + static constexpr uint32_t AWS_RDS_DBClusterSnapshot_HASH = ConstExprHashingUtils::HashString("AWS::RDS::DBClusterSnapshot"); + static constexpr uint32_t AWS_RDS_EventSubscription_HASH = ConstExprHashingUtils::HashString("AWS::RDS::EventSubscription"); + static constexpr uint32_t AWS_S3_Bucket_HASH = ConstExprHashingUtils::HashString("AWS::S3::Bucket"); + static constexpr uint32_t AWS_S3_AccountPublicAccessBlock_HASH = ConstExprHashingUtils::HashString("AWS::S3::AccountPublicAccessBlock"); + static constexpr uint32_t AWS_Redshift_Cluster_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::Cluster"); + static constexpr uint32_t AWS_Redshift_ClusterSnapshot_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::ClusterSnapshot"); + static constexpr uint32_t AWS_Redshift_ClusterParameterGroup_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::ClusterParameterGroup"); + static constexpr uint32_t AWS_Redshift_ClusterSecurityGroup_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::ClusterSecurityGroup"); + static constexpr uint32_t AWS_Redshift_ClusterSubnetGroup_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::ClusterSubnetGroup"); + static constexpr uint32_t AWS_Redshift_EventSubscription_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::EventSubscription"); + static constexpr uint32_t AWS_SSM_ManagedInstanceInventory_HASH = ConstExprHashingUtils::HashString("AWS::SSM::ManagedInstanceInventory"); + static constexpr uint32_t AWS_CloudWatch_Alarm_HASH = ConstExprHashingUtils::HashString("AWS::CloudWatch::Alarm"); + static constexpr uint32_t AWS_CloudFormation_Stack_HASH = ConstExprHashingUtils::HashString("AWS::CloudFormation::Stack"); + static constexpr uint32_t AWS_ElasticLoadBalancing_LoadBalancer_HASH = ConstExprHashingUtils::HashString("AWS::ElasticLoadBalancing::LoadBalancer"); + static constexpr uint32_t AWS_AutoScaling_AutoScalingGroup_HASH = ConstExprHashingUtils::HashString("AWS::AutoScaling::AutoScalingGroup"); + static constexpr uint32_t AWS_AutoScaling_LaunchConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::AutoScaling::LaunchConfiguration"); + static constexpr uint32_t AWS_AutoScaling_ScalingPolicy_HASH = ConstExprHashingUtils::HashString("AWS::AutoScaling::ScalingPolicy"); + static constexpr uint32_t AWS_AutoScaling_ScheduledAction_HASH = ConstExprHashingUtils::HashString("AWS::AutoScaling::ScheduledAction"); + static constexpr uint32_t AWS_DynamoDB_Table_HASH = ConstExprHashingUtils::HashString("AWS::DynamoDB::Table"); + static constexpr uint32_t AWS_CodeBuild_Project_HASH = ConstExprHashingUtils::HashString("AWS::CodeBuild::Project"); + static constexpr uint32_t AWS_WAF_RateBasedRule_HASH = ConstExprHashingUtils::HashString("AWS::WAF::RateBasedRule"); + static constexpr uint32_t AWS_WAF_Rule_HASH = ConstExprHashingUtils::HashString("AWS::WAF::Rule"); + static constexpr uint32_t AWS_WAF_RuleGroup_HASH = ConstExprHashingUtils::HashString("AWS::WAF::RuleGroup"); + static constexpr uint32_t AWS_WAF_WebACL_HASH = ConstExprHashingUtils::HashString("AWS::WAF::WebACL"); + static constexpr uint32_t AWS_WAFRegional_RateBasedRule_HASH = ConstExprHashingUtils::HashString("AWS::WAFRegional::RateBasedRule"); + static constexpr uint32_t AWS_WAFRegional_Rule_HASH = ConstExprHashingUtils::HashString("AWS::WAFRegional::Rule"); + static constexpr uint32_t AWS_WAFRegional_RuleGroup_HASH = ConstExprHashingUtils::HashString("AWS::WAFRegional::RuleGroup"); + static constexpr uint32_t AWS_WAFRegional_WebACL_HASH = ConstExprHashingUtils::HashString("AWS::WAFRegional::WebACL"); + static constexpr uint32_t AWS_CloudFront_Distribution_HASH = ConstExprHashingUtils::HashString("AWS::CloudFront::Distribution"); + static constexpr uint32_t AWS_CloudFront_StreamingDistribution_HASH = ConstExprHashingUtils::HashString("AWS::CloudFront::StreamingDistribution"); + static constexpr uint32_t AWS_Lambda_Function_HASH = ConstExprHashingUtils::HashString("AWS::Lambda::Function"); + static constexpr uint32_t AWS_NetworkFirewall_Firewall_HASH = ConstExprHashingUtils::HashString("AWS::NetworkFirewall::Firewall"); + static constexpr uint32_t AWS_NetworkFirewall_FirewallPolicy_HASH = ConstExprHashingUtils::HashString("AWS::NetworkFirewall::FirewallPolicy"); + static constexpr uint32_t AWS_NetworkFirewall_RuleGroup_HASH = ConstExprHashingUtils::HashString("AWS::NetworkFirewall::RuleGroup"); + static constexpr uint32_t AWS_ElasticBeanstalk_Application_HASH = ConstExprHashingUtils::HashString("AWS::ElasticBeanstalk::Application"); + static constexpr uint32_t AWS_ElasticBeanstalk_ApplicationVersion_HASH = ConstExprHashingUtils::HashString("AWS::ElasticBeanstalk::ApplicationVersion"); + static constexpr uint32_t AWS_ElasticBeanstalk_Environment_HASH = ConstExprHashingUtils::HashString("AWS::ElasticBeanstalk::Environment"); + static constexpr uint32_t AWS_WAFv2_WebACL_HASH = ConstExprHashingUtils::HashString("AWS::WAFv2::WebACL"); + static constexpr uint32_t AWS_WAFv2_RuleGroup_HASH = ConstExprHashingUtils::HashString("AWS::WAFv2::RuleGroup"); + static constexpr uint32_t AWS_WAFv2_IPSet_HASH = ConstExprHashingUtils::HashString("AWS::WAFv2::IPSet"); + static constexpr uint32_t AWS_WAFv2_RegexPatternSet_HASH = ConstExprHashingUtils::HashString("AWS::WAFv2::RegexPatternSet"); + static constexpr uint32_t AWS_WAFv2_ManagedRuleSet_HASH = ConstExprHashingUtils::HashString("AWS::WAFv2::ManagedRuleSet"); + static constexpr uint32_t AWS_XRay_EncryptionConfig_HASH = ConstExprHashingUtils::HashString("AWS::XRay::EncryptionConfig"); + static constexpr uint32_t AWS_SSM_AssociationCompliance_HASH = ConstExprHashingUtils::HashString("AWS::SSM::AssociationCompliance"); + static constexpr uint32_t AWS_SSM_PatchCompliance_HASH = ConstExprHashingUtils::HashString("AWS::SSM::PatchCompliance"); + static constexpr uint32_t AWS_Shield_Protection_HASH = ConstExprHashingUtils::HashString("AWS::Shield::Protection"); + static constexpr uint32_t AWS_ShieldRegional_Protection_HASH = ConstExprHashingUtils::HashString("AWS::ShieldRegional::Protection"); + static constexpr uint32_t AWS_Config_ConformancePackCompliance_HASH = ConstExprHashingUtils::HashString("AWS::Config::ConformancePackCompliance"); + static constexpr uint32_t AWS_Config_ResourceCompliance_HASH = ConstExprHashingUtils::HashString("AWS::Config::ResourceCompliance"); + static constexpr uint32_t AWS_ApiGateway_Stage_HASH = ConstExprHashingUtils::HashString("AWS::ApiGateway::Stage"); + static constexpr uint32_t AWS_ApiGateway_RestApi_HASH = ConstExprHashingUtils::HashString("AWS::ApiGateway::RestApi"); + static constexpr uint32_t AWS_ApiGatewayV2_Stage_HASH = ConstExprHashingUtils::HashString("AWS::ApiGatewayV2::Stage"); + static constexpr uint32_t AWS_ApiGatewayV2_Api_HASH = ConstExprHashingUtils::HashString("AWS::ApiGatewayV2::Api"); + static constexpr uint32_t AWS_CodePipeline_Pipeline_HASH = ConstExprHashingUtils::HashString("AWS::CodePipeline::Pipeline"); + static constexpr uint32_t AWS_ServiceCatalog_CloudFormationProvisionedProduct_HASH = ConstExprHashingUtils::HashString("AWS::ServiceCatalog::CloudFormationProvisionedProduct"); + static constexpr uint32_t AWS_ServiceCatalog_CloudFormationProduct_HASH = ConstExprHashingUtils::HashString("AWS::ServiceCatalog::CloudFormationProduct"); + static constexpr uint32_t AWS_ServiceCatalog_Portfolio_HASH = ConstExprHashingUtils::HashString("AWS::ServiceCatalog::Portfolio"); + static constexpr uint32_t AWS_SQS_Queue_HASH = ConstExprHashingUtils::HashString("AWS::SQS::Queue"); + static constexpr uint32_t AWS_KMS_Key_HASH = ConstExprHashingUtils::HashString("AWS::KMS::Key"); + static constexpr uint32_t AWS_QLDB_Ledger_HASH = ConstExprHashingUtils::HashString("AWS::QLDB::Ledger"); + static constexpr uint32_t AWS_SecretsManager_Secret_HASH = ConstExprHashingUtils::HashString("AWS::SecretsManager::Secret"); + static constexpr uint32_t AWS_SNS_Topic_HASH = ConstExprHashingUtils::HashString("AWS::SNS::Topic"); + static constexpr uint32_t AWS_SSM_FileData_HASH = ConstExprHashingUtils::HashString("AWS::SSM::FileData"); + static constexpr uint32_t AWS_Backup_BackupPlan_HASH = ConstExprHashingUtils::HashString("AWS::Backup::BackupPlan"); + static constexpr uint32_t AWS_Backup_BackupSelection_HASH = ConstExprHashingUtils::HashString("AWS::Backup::BackupSelection"); + static constexpr uint32_t AWS_Backup_BackupVault_HASH = ConstExprHashingUtils::HashString("AWS::Backup::BackupVault"); + static constexpr uint32_t AWS_Backup_RecoveryPoint_HASH = ConstExprHashingUtils::HashString("AWS::Backup::RecoveryPoint"); + static constexpr uint32_t AWS_ECR_Repository_HASH = ConstExprHashingUtils::HashString("AWS::ECR::Repository"); + static constexpr uint32_t AWS_ECS_Cluster_HASH = ConstExprHashingUtils::HashString("AWS::ECS::Cluster"); + static constexpr uint32_t AWS_ECS_Service_HASH = ConstExprHashingUtils::HashString("AWS::ECS::Service"); + static constexpr uint32_t AWS_ECS_TaskDefinition_HASH = ConstExprHashingUtils::HashString("AWS::ECS::TaskDefinition"); + static constexpr uint32_t AWS_EFS_AccessPoint_HASH = ConstExprHashingUtils::HashString("AWS::EFS::AccessPoint"); + static constexpr uint32_t AWS_EFS_FileSystem_HASH = ConstExprHashingUtils::HashString("AWS::EFS::FileSystem"); + static constexpr uint32_t AWS_EKS_Cluster_HASH = ConstExprHashingUtils::HashString("AWS::EKS::Cluster"); + static constexpr uint32_t AWS_OpenSearch_Domain_HASH = ConstExprHashingUtils::HashString("AWS::OpenSearch::Domain"); + static constexpr uint32_t AWS_EC2_TransitGateway_HASH = ConstExprHashingUtils::HashString("AWS::EC2::TransitGateway"); + static constexpr uint32_t AWS_Kinesis_Stream_HASH = ConstExprHashingUtils::HashString("AWS::Kinesis::Stream"); + static constexpr uint32_t AWS_Kinesis_StreamConsumer_HASH = ConstExprHashingUtils::HashString("AWS::Kinesis::StreamConsumer"); + static constexpr uint32_t AWS_CodeDeploy_Application_HASH = ConstExprHashingUtils::HashString("AWS::CodeDeploy::Application"); + static constexpr uint32_t AWS_CodeDeploy_DeploymentConfig_HASH = ConstExprHashingUtils::HashString("AWS::CodeDeploy::DeploymentConfig"); + static constexpr uint32_t AWS_CodeDeploy_DeploymentGroup_HASH = ConstExprHashingUtils::HashString("AWS::CodeDeploy::DeploymentGroup"); + static constexpr uint32_t AWS_EC2_LaunchTemplate_HASH = ConstExprHashingUtils::HashString("AWS::EC2::LaunchTemplate"); + static constexpr uint32_t AWS_ECR_PublicRepository_HASH = ConstExprHashingUtils::HashString("AWS::ECR::PublicRepository"); + static constexpr uint32_t AWS_GuardDuty_Detector_HASH = ConstExprHashingUtils::HashString("AWS::GuardDuty::Detector"); + static constexpr uint32_t AWS_EMR_SecurityConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::EMR::SecurityConfiguration"); + static constexpr uint32_t AWS_SageMaker_CodeRepository_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::CodeRepository"); + static constexpr uint32_t AWS_Route53Resolver_ResolverEndpoint_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::ResolverEndpoint"); + static constexpr uint32_t AWS_Route53Resolver_ResolverRule_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::ResolverRule"); + static constexpr uint32_t AWS_Route53Resolver_ResolverRuleAssociation_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::ResolverRuleAssociation"); + static constexpr uint32_t AWS_DMS_ReplicationSubnetGroup_HASH = ConstExprHashingUtils::HashString("AWS::DMS::ReplicationSubnetGroup"); + static constexpr uint32_t AWS_DMS_EventSubscription_HASH = ConstExprHashingUtils::HashString("AWS::DMS::EventSubscription"); + static constexpr uint32_t AWS_MSK_Cluster_HASH = ConstExprHashingUtils::HashString("AWS::MSK::Cluster"); + static constexpr uint32_t AWS_StepFunctions_Activity_HASH = ConstExprHashingUtils::HashString("AWS::StepFunctions::Activity"); + static constexpr uint32_t AWS_WorkSpaces_Workspace_HASH = ConstExprHashingUtils::HashString("AWS::WorkSpaces::Workspace"); + static constexpr uint32_t AWS_WorkSpaces_ConnectionAlias_HASH = ConstExprHashingUtils::HashString("AWS::WorkSpaces::ConnectionAlias"); + static constexpr uint32_t AWS_SageMaker_Model_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::Model"); + static constexpr uint32_t AWS_ElasticLoadBalancingV2_Listener_HASH = ConstExprHashingUtils::HashString("AWS::ElasticLoadBalancingV2::Listener"); + static constexpr uint32_t AWS_StepFunctions_StateMachine_HASH = ConstExprHashingUtils::HashString("AWS::StepFunctions::StateMachine"); + static constexpr uint32_t AWS_Batch_JobQueue_HASH = ConstExprHashingUtils::HashString("AWS::Batch::JobQueue"); + static constexpr uint32_t AWS_Batch_ComputeEnvironment_HASH = ConstExprHashingUtils::HashString("AWS::Batch::ComputeEnvironment"); + static constexpr uint32_t AWS_AccessAnalyzer_Analyzer_HASH = ConstExprHashingUtils::HashString("AWS::AccessAnalyzer::Analyzer"); + static constexpr uint32_t AWS_Athena_WorkGroup_HASH = ConstExprHashingUtils::HashString("AWS::Athena::WorkGroup"); + static constexpr uint32_t AWS_Athena_DataCatalog_HASH = ConstExprHashingUtils::HashString("AWS::Athena::DataCatalog"); + static constexpr uint32_t AWS_Detective_Graph_HASH = ConstExprHashingUtils::HashString("AWS::Detective::Graph"); + static constexpr uint32_t AWS_GlobalAccelerator_Accelerator_HASH = ConstExprHashingUtils::HashString("AWS::GlobalAccelerator::Accelerator"); + static constexpr uint32_t AWS_GlobalAccelerator_EndpointGroup_HASH = ConstExprHashingUtils::HashString("AWS::GlobalAccelerator::EndpointGroup"); + static constexpr uint32_t AWS_GlobalAccelerator_Listener_HASH = ConstExprHashingUtils::HashString("AWS::GlobalAccelerator::Listener"); + static constexpr uint32_t AWS_EC2_TransitGatewayAttachment_HASH = ConstExprHashingUtils::HashString("AWS::EC2::TransitGatewayAttachment"); + static constexpr uint32_t AWS_EC2_TransitGatewayRouteTable_HASH = ConstExprHashingUtils::HashString("AWS::EC2::TransitGatewayRouteTable"); + static constexpr uint32_t AWS_DMS_Certificate_HASH = ConstExprHashingUtils::HashString("AWS::DMS::Certificate"); + static constexpr uint32_t AWS_AppConfig_Application_HASH = ConstExprHashingUtils::HashString("AWS::AppConfig::Application"); + static constexpr uint32_t AWS_AppSync_GraphQLApi_HASH = ConstExprHashingUtils::HashString("AWS::AppSync::GraphQLApi"); + static constexpr uint32_t AWS_DataSync_LocationSMB_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationSMB"); + static constexpr uint32_t AWS_DataSync_LocationFSxLustre_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationFSxLustre"); + static constexpr uint32_t AWS_DataSync_LocationS3_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationS3"); + static constexpr uint32_t AWS_DataSync_LocationEFS_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationEFS"); + static constexpr uint32_t AWS_DataSync_Task_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::Task"); + static constexpr uint32_t AWS_DataSync_LocationNFS_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationNFS"); + static constexpr uint32_t AWS_EC2_NetworkInsightsAccessScopeAnalysis_HASH = ConstExprHashingUtils::HashString("AWS::EC2::NetworkInsightsAccessScopeAnalysis"); + static constexpr uint32_t AWS_EKS_FargateProfile_HASH = ConstExprHashingUtils::HashString("AWS::EKS::FargateProfile"); + static constexpr uint32_t AWS_Glue_Job_HASH = ConstExprHashingUtils::HashString("AWS::Glue::Job"); + static constexpr uint32_t AWS_GuardDuty_ThreatIntelSet_HASH = ConstExprHashingUtils::HashString("AWS::GuardDuty::ThreatIntelSet"); + static constexpr uint32_t AWS_GuardDuty_IPSet_HASH = ConstExprHashingUtils::HashString("AWS::GuardDuty::IPSet"); + static constexpr uint32_t AWS_SageMaker_Workteam_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::Workteam"); + static constexpr uint32_t AWS_SageMaker_NotebookInstanceLifecycleConfig_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::NotebookInstanceLifecycleConfig"); + static constexpr uint32_t AWS_ServiceDiscovery_Service_HASH = ConstExprHashingUtils::HashString("AWS::ServiceDiscovery::Service"); + static constexpr uint32_t AWS_ServiceDiscovery_PublicDnsNamespace_HASH = ConstExprHashingUtils::HashString("AWS::ServiceDiscovery::PublicDnsNamespace"); + static constexpr uint32_t AWS_SES_ContactList_HASH = ConstExprHashingUtils::HashString("AWS::SES::ContactList"); + static constexpr uint32_t AWS_SES_ConfigurationSet_HASH = ConstExprHashingUtils::HashString("AWS::SES::ConfigurationSet"); + static constexpr uint32_t AWS_Route53_HostedZone_HASH = ConstExprHashingUtils::HashString("AWS::Route53::HostedZone"); + static constexpr uint32_t AWS_IoTEvents_Input_HASH = ConstExprHashingUtils::HashString("AWS::IoTEvents::Input"); + static constexpr uint32_t AWS_IoTEvents_DetectorModel_HASH = ConstExprHashingUtils::HashString("AWS::IoTEvents::DetectorModel"); + static constexpr uint32_t AWS_IoTEvents_AlarmModel_HASH = ConstExprHashingUtils::HashString("AWS::IoTEvents::AlarmModel"); + static constexpr uint32_t AWS_ServiceDiscovery_HttpNamespace_HASH = ConstExprHashingUtils::HashString("AWS::ServiceDiscovery::HttpNamespace"); + static constexpr uint32_t AWS_Events_EventBus_HASH = ConstExprHashingUtils::HashString("AWS::Events::EventBus"); + static constexpr uint32_t AWS_ImageBuilder_ContainerRecipe_HASH = ConstExprHashingUtils::HashString("AWS::ImageBuilder::ContainerRecipe"); + static constexpr uint32_t AWS_ImageBuilder_DistributionConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::ImageBuilder::DistributionConfiguration"); + static constexpr uint32_t AWS_ImageBuilder_InfrastructureConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::ImageBuilder::InfrastructureConfiguration"); + static constexpr uint32_t AWS_DataSync_LocationObjectStorage_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationObjectStorage"); + static constexpr uint32_t AWS_DataSync_LocationHDFS_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationHDFS"); + static constexpr uint32_t AWS_Glue_Classifier_HASH = ConstExprHashingUtils::HashString("AWS::Glue::Classifier"); + static constexpr uint32_t AWS_Route53RecoveryReadiness_Cell_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryReadiness::Cell"); + static constexpr uint32_t AWS_Route53RecoveryReadiness_ReadinessCheck_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryReadiness::ReadinessCheck"); + static constexpr uint32_t AWS_ECR_RegistryPolicy_HASH = ConstExprHashingUtils::HashString("AWS::ECR::RegistryPolicy"); + static constexpr uint32_t AWS_Backup_ReportPlan_HASH = ConstExprHashingUtils::HashString("AWS::Backup::ReportPlan"); + static constexpr uint32_t AWS_Lightsail_Certificate_HASH = ConstExprHashingUtils::HashString("AWS::Lightsail::Certificate"); + static constexpr uint32_t AWS_RUM_AppMonitor_HASH = ConstExprHashingUtils::HashString("AWS::RUM::AppMonitor"); + static constexpr uint32_t AWS_Events_Endpoint_HASH = ConstExprHashingUtils::HashString("AWS::Events::Endpoint"); + static constexpr uint32_t AWS_SES_ReceiptRuleSet_HASH = ConstExprHashingUtils::HashString("AWS::SES::ReceiptRuleSet"); + static constexpr uint32_t AWS_Events_Archive_HASH = ConstExprHashingUtils::HashString("AWS::Events::Archive"); + static constexpr uint32_t AWS_Events_ApiDestination_HASH = ConstExprHashingUtils::HashString("AWS::Events::ApiDestination"); + static constexpr uint32_t AWS_Lightsail_Disk_HASH = ConstExprHashingUtils::HashString("AWS::Lightsail::Disk"); + static constexpr uint32_t AWS_FIS_ExperimentTemplate_HASH = ConstExprHashingUtils::HashString("AWS::FIS::ExperimentTemplate"); + static constexpr uint32_t AWS_DataSync_LocationFSxWindows_HASH = ConstExprHashingUtils::HashString("AWS::DataSync::LocationFSxWindows"); + static constexpr uint32_t AWS_SES_ReceiptFilter_HASH = ConstExprHashingUtils::HashString("AWS::SES::ReceiptFilter"); + static constexpr uint32_t AWS_GuardDuty_Filter_HASH = ConstExprHashingUtils::HashString("AWS::GuardDuty::Filter"); + static constexpr uint32_t AWS_SES_Template_HASH = ConstExprHashingUtils::HashString("AWS::SES::Template"); + static constexpr uint32_t AWS_AmazonMQ_Broker_HASH = ConstExprHashingUtils::HashString("AWS::AmazonMQ::Broker"); + static constexpr uint32_t AWS_AppConfig_Environment_HASH = ConstExprHashingUtils::HashString("AWS::AppConfig::Environment"); + static constexpr uint32_t AWS_AppConfig_ConfigurationProfile_HASH = ConstExprHashingUtils::HashString("AWS::AppConfig::ConfigurationProfile"); + static constexpr uint32_t AWS_Cloud9_EnvironmentEC2_HASH = ConstExprHashingUtils::HashString("AWS::Cloud9::EnvironmentEC2"); + static constexpr uint32_t AWS_EventSchemas_Registry_HASH = ConstExprHashingUtils::HashString("AWS::EventSchemas::Registry"); + static constexpr uint32_t AWS_EventSchemas_RegistryPolicy_HASH = ConstExprHashingUtils::HashString("AWS::EventSchemas::RegistryPolicy"); + static constexpr uint32_t AWS_EventSchemas_Discoverer_HASH = ConstExprHashingUtils::HashString("AWS::EventSchemas::Discoverer"); + static constexpr uint32_t AWS_FraudDetector_Label_HASH = ConstExprHashingUtils::HashString("AWS::FraudDetector::Label"); + static constexpr uint32_t AWS_FraudDetector_EntityType_HASH = ConstExprHashingUtils::HashString("AWS::FraudDetector::EntityType"); + static constexpr uint32_t AWS_FraudDetector_Variable_HASH = ConstExprHashingUtils::HashString("AWS::FraudDetector::Variable"); + static constexpr uint32_t AWS_FraudDetector_Outcome_HASH = ConstExprHashingUtils::HashString("AWS::FraudDetector::Outcome"); + static constexpr uint32_t AWS_IoT_Authorizer_HASH = ConstExprHashingUtils::HashString("AWS::IoT::Authorizer"); + static constexpr uint32_t AWS_IoT_SecurityProfile_HASH = ConstExprHashingUtils::HashString("AWS::IoT::SecurityProfile"); + static constexpr uint32_t AWS_IoT_RoleAlias_HASH = ConstExprHashingUtils::HashString("AWS::IoT::RoleAlias"); + static constexpr uint32_t AWS_IoT_Dimension_HASH = ConstExprHashingUtils::HashString("AWS::IoT::Dimension"); + static constexpr uint32_t AWS_IoTAnalytics_Datastore_HASH = ConstExprHashingUtils::HashString("AWS::IoTAnalytics::Datastore"); + static constexpr uint32_t AWS_Lightsail_Bucket_HASH = ConstExprHashingUtils::HashString("AWS::Lightsail::Bucket"); + static constexpr uint32_t AWS_Lightsail_StaticIp_HASH = ConstExprHashingUtils::HashString("AWS::Lightsail::StaticIp"); + static constexpr uint32_t AWS_MediaPackage_PackagingGroup_HASH = ConstExprHashingUtils::HashString("AWS::MediaPackage::PackagingGroup"); + static constexpr uint32_t AWS_Route53RecoveryReadiness_RecoveryGroup_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryReadiness::RecoveryGroup"); + static constexpr uint32_t AWS_ResilienceHub_ResiliencyPolicy_HASH = ConstExprHashingUtils::HashString("AWS::ResilienceHub::ResiliencyPolicy"); + static constexpr uint32_t AWS_Transfer_Workflow_HASH = ConstExprHashingUtils::HashString("AWS::Transfer::Workflow"); + static constexpr uint32_t AWS_EKS_IdentityProviderConfig_HASH = ConstExprHashingUtils::HashString("AWS::EKS::IdentityProviderConfig"); + static constexpr uint32_t AWS_EKS_Addon_HASH = ConstExprHashingUtils::HashString("AWS::EKS::Addon"); + static constexpr uint32_t AWS_Glue_MLTransform_HASH = ConstExprHashingUtils::HashString("AWS::Glue::MLTransform"); + static constexpr uint32_t AWS_IoT_Policy_HASH = ConstExprHashingUtils::HashString("AWS::IoT::Policy"); + static constexpr uint32_t AWS_IoT_MitigationAction_HASH = ConstExprHashingUtils::HashString("AWS::IoT::MitigationAction"); + static constexpr uint32_t AWS_IoTTwinMaker_Workspace_HASH = ConstExprHashingUtils::HashString("AWS::IoTTwinMaker::Workspace"); + static constexpr uint32_t AWS_IoTTwinMaker_Entity_HASH = ConstExprHashingUtils::HashString("AWS::IoTTwinMaker::Entity"); + static constexpr uint32_t AWS_IoTAnalytics_Dataset_HASH = ConstExprHashingUtils::HashString("AWS::IoTAnalytics::Dataset"); + static constexpr uint32_t AWS_IoTAnalytics_Pipeline_HASH = ConstExprHashingUtils::HashString("AWS::IoTAnalytics::Pipeline"); + static constexpr uint32_t AWS_IoTAnalytics_Channel_HASH = ConstExprHashingUtils::HashString("AWS::IoTAnalytics::Channel"); + static constexpr uint32_t AWS_IoTSiteWise_Dashboard_HASH = ConstExprHashingUtils::HashString("AWS::IoTSiteWise::Dashboard"); + static constexpr uint32_t AWS_IoTSiteWise_Project_HASH = ConstExprHashingUtils::HashString("AWS::IoTSiteWise::Project"); + static constexpr uint32_t AWS_IoTSiteWise_Portal_HASH = ConstExprHashingUtils::HashString("AWS::IoTSiteWise::Portal"); + static constexpr uint32_t AWS_IoTSiteWise_AssetModel_HASH = ConstExprHashingUtils::HashString("AWS::IoTSiteWise::AssetModel"); + static constexpr uint32_t AWS_IVS_Channel_HASH = ConstExprHashingUtils::HashString("AWS::IVS::Channel"); + static constexpr uint32_t AWS_IVS_RecordingConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::IVS::RecordingConfiguration"); + static constexpr uint32_t AWS_IVS_PlaybackKeyPair_HASH = ConstExprHashingUtils::HashString("AWS::IVS::PlaybackKeyPair"); + static constexpr uint32_t AWS_KinesisAnalyticsV2_Application_HASH = ConstExprHashingUtils::HashString("AWS::KinesisAnalyticsV2::Application"); + static constexpr uint32_t AWS_RDS_GlobalCluster_HASH = ConstExprHashingUtils::HashString("AWS::RDS::GlobalCluster"); + static constexpr uint32_t AWS_S3_MultiRegionAccessPoint_HASH = ConstExprHashingUtils::HashString("AWS::S3::MultiRegionAccessPoint"); + static constexpr uint32_t AWS_DeviceFarm_TestGridProject_HASH = ConstExprHashingUtils::HashString("AWS::DeviceFarm::TestGridProject"); + static constexpr uint32_t AWS_Budgets_BudgetsAction_HASH = ConstExprHashingUtils::HashString("AWS::Budgets::BudgetsAction"); + static constexpr uint32_t AWS_Lex_Bot_HASH = ConstExprHashingUtils::HashString("AWS::Lex::Bot"); + static constexpr uint32_t AWS_CodeGuruReviewer_RepositoryAssociation_HASH = ConstExprHashingUtils::HashString("AWS::CodeGuruReviewer::RepositoryAssociation"); + static constexpr uint32_t AWS_IoT_CustomMetric_HASH = ConstExprHashingUtils::HashString("AWS::IoT::CustomMetric"); + static constexpr uint32_t AWS_Route53Resolver_FirewallDomainList_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::FirewallDomainList"); + static constexpr uint32_t AWS_RoboMaker_RobotApplicationVersion_HASH = ConstExprHashingUtils::HashString("AWS::RoboMaker::RobotApplicationVersion"); + static constexpr uint32_t AWS_EC2_TrafficMirrorSession_HASH = ConstExprHashingUtils::HashString("AWS::EC2::TrafficMirrorSession"); + static constexpr uint32_t AWS_IoTSiteWise_Gateway_HASH = ConstExprHashingUtils::HashString("AWS::IoTSiteWise::Gateway"); + static constexpr uint32_t AWS_Lex_BotAlias_HASH = ConstExprHashingUtils::HashString("AWS::Lex::BotAlias"); + static constexpr uint32_t AWS_LookoutMetrics_Alert_HASH = ConstExprHashingUtils::HashString("AWS::LookoutMetrics::Alert"); + static constexpr uint32_t AWS_IoT_AccountAuditConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::IoT::AccountAuditConfiguration"); + static constexpr uint32_t AWS_EC2_TrafficMirrorTarget_HASH = ConstExprHashingUtils::HashString("AWS::EC2::TrafficMirrorTarget"); + static constexpr uint32_t AWS_S3_StorageLens_HASH = ConstExprHashingUtils::HashString("AWS::S3::StorageLens"); + static constexpr uint32_t AWS_IoT_ScheduledAudit_HASH = ConstExprHashingUtils::HashString("AWS::IoT::ScheduledAudit"); + static constexpr uint32_t AWS_Events_Connection_HASH = ConstExprHashingUtils::HashString("AWS::Events::Connection"); + static constexpr uint32_t AWS_EventSchemas_Schema_HASH = ConstExprHashingUtils::HashString("AWS::EventSchemas::Schema"); + static constexpr uint32_t AWS_MediaPackage_PackagingConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::MediaPackage::PackagingConfiguration"); + static constexpr uint32_t AWS_KinesisVideo_SignalingChannel_HASH = ConstExprHashingUtils::HashString("AWS::KinesisVideo::SignalingChannel"); + static constexpr uint32_t AWS_AppStream_DirectoryConfig_HASH = ConstExprHashingUtils::HashString("AWS::AppStream::DirectoryConfig"); + static constexpr uint32_t AWS_LookoutVision_Project_HASH = ConstExprHashingUtils::HashString("AWS::LookoutVision::Project"); + static constexpr uint32_t AWS_Route53RecoveryControl_Cluster_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryControl::Cluster"); + static constexpr uint32_t AWS_Route53RecoveryControl_SafetyRule_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryControl::SafetyRule"); + static constexpr uint32_t AWS_Route53RecoveryControl_ControlPanel_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryControl::ControlPanel"); + static constexpr uint32_t AWS_Route53RecoveryControl_RoutingControl_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryControl::RoutingControl"); + static constexpr uint32_t AWS_Route53RecoveryReadiness_ResourceSet_HASH = ConstExprHashingUtils::HashString("AWS::Route53RecoveryReadiness::ResourceSet"); + static constexpr uint32_t AWS_RoboMaker_SimulationApplication_HASH = ConstExprHashingUtils::HashString("AWS::RoboMaker::SimulationApplication"); + static constexpr uint32_t AWS_RoboMaker_RobotApplication_HASH = ConstExprHashingUtils::HashString("AWS::RoboMaker::RobotApplication"); + static constexpr uint32_t AWS_HealthLake_FHIRDatastore_HASH = ConstExprHashingUtils::HashString("AWS::HealthLake::FHIRDatastore"); + static constexpr uint32_t AWS_Pinpoint_Segment_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::Segment"); + static constexpr uint32_t AWS_Pinpoint_ApplicationSettings_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::ApplicationSettings"); + static constexpr uint32_t AWS_Events_Rule_HASH = ConstExprHashingUtils::HashString("AWS::Events::Rule"); + static constexpr uint32_t AWS_EC2_DHCPOptions_HASH = ConstExprHashingUtils::HashString("AWS::EC2::DHCPOptions"); + static constexpr uint32_t AWS_EC2_NetworkInsightsPath_HASH = ConstExprHashingUtils::HashString("AWS::EC2::NetworkInsightsPath"); + static constexpr uint32_t AWS_EC2_TrafficMirrorFilter_HASH = ConstExprHashingUtils::HashString("AWS::EC2::TrafficMirrorFilter"); + static constexpr uint32_t AWS_EC2_IPAM_HASH = ConstExprHashingUtils::HashString("AWS::EC2::IPAM"); + static constexpr uint32_t AWS_IoTTwinMaker_Scene_HASH = ConstExprHashingUtils::HashString("AWS::IoTTwinMaker::Scene"); + static constexpr uint32_t AWS_NetworkManager_TransitGatewayRegistration_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::TransitGatewayRegistration"); + static constexpr uint32_t AWS_CustomerProfiles_Domain_HASH = ConstExprHashingUtils::HashString("AWS::CustomerProfiles::Domain"); + static constexpr uint32_t AWS_AutoScaling_WarmPool_HASH = ConstExprHashingUtils::HashString("AWS::AutoScaling::WarmPool"); + static constexpr uint32_t AWS_Connect_PhoneNumber_HASH = ConstExprHashingUtils::HashString("AWS::Connect::PhoneNumber"); + static constexpr uint32_t AWS_AppConfig_DeploymentStrategy_HASH = ConstExprHashingUtils::HashString("AWS::AppConfig::DeploymentStrategy"); + static constexpr uint32_t AWS_AppFlow_Flow_HASH = ConstExprHashingUtils::HashString("AWS::AppFlow::Flow"); + static constexpr uint32_t AWS_AuditManager_Assessment_HASH = ConstExprHashingUtils::HashString("AWS::AuditManager::Assessment"); + static constexpr uint32_t AWS_CloudWatch_MetricStream_HASH = ConstExprHashingUtils::HashString("AWS::CloudWatch::MetricStream"); + static constexpr uint32_t AWS_DeviceFarm_InstanceProfile_HASH = ConstExprHashingUtils::HashString("AWS::DeviceFarm::InstanceProfile"); + static constexpr uint32_t AWS_DeviceFarm_Project_HASH = ConstExprHashingUtils::HashString("AWS::DeviceFarm::Project"); + static constexpr uint32_t AWS_EC2_EC2Fleet_HASH = ConstExprHashingUtils::HashString("AWS::EC2::EC2Fleet"); + static constexpr uint32_t AWS_EC2_SubnetRouteTableAssociation_HASH = ConstExprHashingUtils::HashString("AWS::EC2::SubnetRouteTableAssociation"); + static constexpr uint32_t AWS_ECR_PullThroughCacheRule_HASH = ConstExprHashingUtils::HashString("AWS::ECR::PullThroughCacheRule"); + static constexpr uint32_t AWS_GroundStation_Config_HASH = ConstExprHashingUtils::HashString("AWS::GroundStation::Config"); + static constexpr uint32_t AWS_ImageBuilder_ImagePipeline_HASH = ConstExprHashingUtils::HashString("AWS::ImageBuilder::ImagePipeline"); + static constexpr uint32_t AWS_IoT_FleetMetric_HASH = ConstExprHashingUtils::HashString("AWS::IoT::FleetMetric"); + static constexpr uint32_t AWS_IoTWireless_ServiceProfile_HASH = ConstExprHashingUtils::HashString("AWS::IoTWireless::ServiceProfile"); + static constexpr uint32_t AWS_NetworkManager_Device_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::Device"); + static constexpr uint32_t AWS_NetworkManager_GlobalNetwork_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::GlobalNetwork"); + static constexpr uint32_t AWS_NetworkManager_Link_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::Link"); + static constexpr uint32_t AWS_NetworkManager_Site_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::Site"); + static constexpr uint32_t AWS_Panorama_Package_HASH = ConstExprHashingUtils::HashString("AWS::Panorama::Package"); + static constexpr uint32_t AWS_Pinpoint_App_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::App"); + static constexpr uint32_t AWS_Redshift_ScheduledAction_HASH = ConstExprHashingUtils::HashString("AWS::Redshift::ScheduledAction"); + static constexpr uint32_t AWS_Route53Resolver_FirewallRuleGroupAssociation_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::FirewallRuleGroupAssociation"); + static constexpr uint32_t AWS_SageMaker_AppImageConfig_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::AppImageConfig"); + static constexpr uint32_t AWS_SageMaker_Image_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::Image"); + static constexpr uint32_t AWS_ECS_TaskSet_HASH = ConstExprHashingUtils::HashString("AWS::ECS::TaskSet"); + static constexpr uint32_t AWS_Cassandra_Keyspace_HASH = ConstExprHashingUtils::HashString("AWS::Cassandra::Keyspace"); + static constexpr uint32_t AWS_Signer_SigningProfile_HASH = ConstExprHashingUtils::HashString("AWS::Signer::SigningProfile"); + static constexpr uint32_t AWS_Amplify_App_HASH = ConstExprHashingUtils::HashString("AWS::Amplify::App"); + static constexpr uint32_t AWS_AppMesh_VirtualNode_HASH = ConstExprHashingUtils::HashString("AWS::AppMesh::VirtualNode"); + static constexpr uint32_t AWS_AppMesh_VirtualService_HASH = ConstExprHashingUtils::HashString("AWS::AppMesh::VirtualService"); + static constexpr uint32_t AWS_AppRunner_VpcConnector_HASH = ConstExprHashingUtils::HashString("AWS::AppRunner::VpcConnector"); + static constexpr uint32_t AWS_AppStream_Application_HASH = ConstExprHashingUtils::HashString("AWS::AppStream::Application"); + static constexpr uint32_t AWS_CodeArtifact_Repository_HASH = ConstExprHashingUtils::HashString("AWS::CodeArtifact::Repository"); + static constexpr uint32_t AWS_EC2_PrefixList_HASH = ConstExprHashingUtils::HashString("AWS::EC2::PrefixList"); + static constexpr uint32_t AWS_EC2_SpotFleet_HASH = ConstExprHashingUtils::HashString("AWS::EC2::SpotFleet"); + static constexpr uint32_t AWS_Evidently_Project_HASH = ConstExprHashingUtils::HashString("AWS::Evidently::Project"); + static constexpr uint32_t AWS_Forecast_Dataset_HASH = ConstExprHashingUtils::HashString("AWS::Forecast::Dataset"); + static constexpr uint32_t AWS_IAM_SAMLProvider_HASH = ConstExprHashingUtils::HashString("AWS::IAM::SAMLProvider"); + static constexpr uint32_t AWS_IAM_ServerCertificate_HASH = ConstExprHashingUtils::HashString("AWS::IAM::ServerCertificate"); + static constexpr uint32_t AWS_Pinpoint_Campaign_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::Campaign"); + static constexpr uint32_t AWS_Pinpoint_InAppTemplate_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::InAppTemplate"); + static constexpr uint32_t AWS_SageMaker_Domain_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::Domain"); + static constexpr uint32_t AWS_Transfer_Agreement_HASH = ConstExprHashingUtils::HashString("AWS::Transfer::Agreement"); + static constexpr uint32_t AWS_Transfer_Connector_HASH = ConstExprHashingUtils::HashString("AWS::Transfer::Connector"); + static constexpr uint32_t AWS_KinesisFirehose_DeliveryStream_HASH = ConstExprHashingUtils::HashString("AWS::KinesisFirehose::DeliveryStream"); + static constexpr uint32_t AWS_Amplify_Branch_HASH = ConstExprHashingUtils::HashString("AWS::Amplify::Branch"); + static constexpr uint32_t AWS_AppIntegrations_EventIntegration_HASH = ConstExprHashingUtils::HashString("AWS::AppIntegrations::EventIntegration"); + static constexpr uint32_t AWS_AppMesh_Route_HASH = ConstExprHashingUtils::HashString("AWS::AppMesh::Route"); + static constexpr uint32_t AWS_Athena_PreparedStatement_HASH = ConstExprHashingUtils::HashString("AWS::Athena::PreparedStatement"); + static constexpr uint32_t AWS_EC2_IPAMScope_HASH = ConstExprHashingUtils::HashString("AWS::EC2::IPAMScope"); + static constexpr uint32_t AWS_Evidently_Launch_HASH = ConstExprHashingUtils::HashString("AWS::Evidently::Launch"); + static constexpr uint32_t AWS_Forecast_DatasetGroup_HASH = ConstExprHashingUtils::HashString("AWS::Forecast::DatasetGroup"); + static constexpr uint32_t AWS_GreengrassV2_ComponentVersion_HASH = ConstExprHashingUtils::HashString("AWS::GreengrassV2::ComponentVersion"); + static constexpr uint32_t AWS_GroundStation_MissionProfile_HASH = ConstExprHashingUtils::HashString("AWS::GroundStation::MissionProfile"); + static constexpr uint32_t AWS_MediaConnect_FlowEntitlement_HASH = ConstExprHashingUtils::HashString("AWS::MediaConnect::FlowEntitlement"); + static constexpr uint32_t AWS_MediaConnect_FlowVpcInterface_HASH = ConstExprHashingUtils::HashString("AWS::MediaConnect::FlowVpcInterface"); + static constexpr uint32_t AWS_MediaTailor_PlaybackConfiguration_HASH = ConstExprHashingUtils::HashString("AWS::MediaTailor::PlaybackConfiguration"); + static constexpr uint32_t AWS_MSK_Configuration_HASH = ConstExprHashingUtils::HashString("AWS::MSK::Configuration"); + static constexpr uint32_t AWS_Personalize_Dataset_HASH = ConstExprHashingUtils::HashString("AWS::Personalize::Dataset"); + static constexpr uint32_t AWS_Personalize_Schema_HASH = ConstExprHashingUtils::HashString("AWS::Personalize::Schema"); + static constexpr uint32_t AWS_Personalize_Solution_HASH = ConstExprHashingUtils::HashString("AWS::Personalize::Solution"); + static constexpr uint32_t AWS_Pinpoint_EmailTemplate_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::EmailTemplate"); + static constexpr uint32_t AWS_Pinpoint_EventStream_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::EventStream"); + static constexpr uint32_t AWS_ResilienceHub_App_HASH = ConstExprHashingUtils::HashString("AWS::ResilienceHub::App"); + static constexpr uint32_t AWS_ACMPCA_CertificateAuthority_HASH = ConstExprHashingUtils::HashString("AWS::ACMPCA::CertificateAuthority"); + static constexpr uint32_t AWS_AppConfig_HostedConfigurationVersion_HASH = ConstExprHashingUtils::HashString("AWS::AppConfig::HostedConfigurationVersion"); + static constexpr uint32_t AWS_AppMesh_VirtualGateway_HASH = ConstExprHashingUtils::HashString("AWS::AppMesh::VirtualGateway"); + static constexpr uint32_t AWS_AppMesh_VirtualRouter_HASH = ConstExprHashingUtils::HashString("AWS::AppMesh::VirtualRouter"); + static constexpr uint32_t AWS_AppRunner_Service_HASH = ConstExprHashingUtils::HashString("AWS::AppRunner::Service"); + static constexpr uint32_t AWS_CustomerProfiles_ObjectType_HASH = ConstExprHashingUtils::HashString("AWS::CustomerProfiles::ObjectType"); + static constexpr uint32_t AWS_DMS_Endpoint_HASH = ConstExprHashingUtils::HashString("AWS::DMS::Endpoint"); + static constexpr uint32_t AWS_EC2_CapacityReservation_HASH = ConstExprHashingUtils::HashString("AWS::EC2::CapacityReservation"); + static constexpr uint32_t AWS_EC2_ClientVpnEndpoint_HASH = ConstExprHashingUtils::HashString("AWS::EC2::ClientVpnEndpoint"); + static constexpr uint32_t AWS_Kendra_Index_HASH = ConstExprHashingUtils::HashString("AWS::Kendra::Index"); + static constexpr uint32_t AWS_KinesisVideo_Stream_HASH = ConstExprHashingUtils::HashString("AWS::KinesisVideo::Stream"); + static constexpr uint32_t AWS_Logs_Destination_HASH = ConstExprHashingUtils::HashString("AWS::Logs::Destination"); + static constexpr uint32_t AWS_Pinpoint_EmailChannel_HASH = ConstExprHashingUtils::HashString("AWS::Pinpoint::EmailChannel"); + static constexpr uint32_t AWS_S3_AccessPoint_HASH = ConstExprHashingUtils::HashString("AWS::S3::AccessPoint"); + static constexpr uint32_t AWS_NetworkManager_CustomerGatewayAssociation_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::CustomerGatewayAssociation"); + static constexpr uint32_t AWS_NetworkManager_LinkAssociation_HASH = ConstExprHashingUtils::HashString("AWS::NetworkManager::LinkAssociation"); + static constexpr uint32_t AWS_IoTWireless_MulticastGroup_HASH = ConstExprHashingUtils::HashString("AWS::IoTWireless::MulticastGroup"); + static constexpr uint32_t AWS_Personalize_DatasetGroup_HASH = ConstExprHashingUtils::HashString("AWS::Personalize::DatasetGroup"); + static constexpr uint32_t AWS_IoTTwinMaker_ComponentType_HASH = ConstExprHashingUtils::HashString("AWS::IoTTwinMaker::ComponentType"); + static constexpr uint32_t AWS_CodeBuild_ReportGroup_HASH = ConstExprHashingUtils::HashString("AWS::CodeBuild::ReportGroup"); + static constexpr uint32_t AWS_SageMaker_FeatureGroup_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::FeatureGroup"); + static constexpr uint32_t AWS_MSK_BatchScramSecret_HASH = ConstExprHashingUtils::HashString("AWS::MSK::BatchScramSecret"); + static constexpr uint32_t AWS_AppStream_Stack_HASH = ConstExprHashingUtils::HashString("AWS::AppStream::Stack"); + static constexpr uint32_t AWS_IoT_JobTemplate_HASH = ConstExprHashingUtils::HashString("AWS::IoT::JobTemplate"); + static constexpr uint32_t AWS_IoTWireless_FuotaTask_HASH = ConstExprHashingUtils::HashString("AWS::IoTWireless::FuotaTask"); + static constexpr uint32_t AWS_IoT_ProvisioningTemplate_HASH = ConstExprHashingUtils::HashString("AWS::IoT::ProvisioningTemplate"); + static constexpr uint32_t AWS_InspectorV2_Filter_HASH = ConstExprHashingUtils::HashString("AWS::InspectorV2::Filter"); + static constexpr uint32_t AWS_Route53Resolver_ResolverQueryLoggingConfigAssociation_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation"); + static constexpr uint32_t AWS_ServiceDiscovery_Instance_HASH = ConstExprHashingUtils::HashString("AWS::ServiceDiscovery::Instance"); + static constexpr uint32_t AWS_Transfer_Certificate_HASH = ConstExprHashingUtils::HashString("AWS::Transfer::Certificate"); + static constexpr uint32_t AWS_MediaConnect_FlowSource_HASH = ConstExprHashingUtils::HashString("AWS::MediaConnect::FlowSource"); + static constexpr uint32_t AWS_APS_RuleGroupsNamespace_HASH = ConstExprHashingUtils::HashString("AWS::APS::RuleGroupsNamespace"); + static constexpr uint32_t AWS_CodeGuruProfiler_ProfilingGroup_HASH = ConstExprHashingUtils::HashString("AWS::CodeGuruProfiler::ProfilingGroup"); + static constexpr uint32_t AWS_Route53Resolver_ResolverQueryLoggingConfig_HASH = ConstExprHashingUtils::HashString("AWS::Route53Resolver::ResolverQueryLoggingConfig"); + static constexpr uint32_t AWS_Batch_SchedulingPolicy_HASH = ConstExprHashingUtils::HashString("AWS::Batch::SchedulingPolicy"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, ResourceType& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, ResourceType& enumValue) { if (hashCode == AWS_EC2_CustomerGateway_HASH) { @@ -1012,7 +1012,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, ResourceType& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, ResourceType& enumValue) { if (hashCode == AWS_Route53Resolver_ResolverRuleAssociation_HASH) { @@ -1626,7 +1626,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper2(int hashCode, ResourceType& enumValue) + static bool GetEnumForNameHelper2(uint32_t hashCode, ResourceType& enumValue) { if (hashCode == AWS_IoT_AccountAuditConfiguration_HASH) { @@ -2240,7 +2240,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper3(int hashCode, ResourceType& enumValue) + static bool GetEnumForNameHelper3(uint32_t hashCode, ResourceType& enumValue) { if (hashCode == AWS_Transfer_Certificate_HASH) { @@ -3426,7 +3426,7 @@ namespace Aws ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); ResourceType enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-config/source/model/ResourceValueType.cpp b/generated/src/aws-cpp-sdk-config/source/model/ResourceValueType.cpp index 728293802bd..14c50934083 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/ResourceValueType.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/ResourceValueType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceValueTypeMapper { - static const int RESOURCE_ID_HASH = HashingUtils::HashString("RESOURCE_ID"); + static constexpr uint32_t RESOURCE_ID_HASH = ConstExprHashingUtils::HashString("RESOURCE_ID"); ResourceValueType GetResourceValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_ID_HASH) { return ResourceValueType::RESOURCE_ID; diff --git a/generated/src/aws-cpp-sdk-config/source/model/SortBy.cpp b/generated/src/aws-cpp-sdk-config/source/model/SortBy.cpp index 6264a521c76..ee6c56cf08b 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/SortBy.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/SortBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortByMapper { - static const int SCORE_HASH = HashingUtils::HashString("SCORE"); + static constexpr uint32_t SCORE_HASH = ConstExprHashingUtils::HashString("SCORE"); SortBy GetSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCORE_HASH) { return SortBy::SCORE; diff --git a/generated/src/aws-cpp-sdk-config/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-config/source/model/SortOrder.cpp index 5d1763367b5..204a6bbcf44 100644 --- a/generated/src/aws-cpp-sdk-config/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-config/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensErrors.cpp b/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensErrors.cpp index dea772394b9..3eed037e9b9 100644 --- a/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensErrors.cpp +++ b/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensErrors.cpp @@ -18,13 +18,13 @@ namespace ConnectContactLens namespace ConnectContactLensErrorMapper { -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-connect-contact-lens/source/model/SentimentValue.cpp b/generated/src/aws-cpp-sdk-connect-contact-lens/source/model/SentimentValue.cpp index 92d013071e4..81270e305a1 100644 --- a/generated/src/aws-cpp-sdk-connect-contact-lens/source/model/SentimentValue.cpp +++ b/generated/src/aws-cpp-sdk-connect-contact-lens/source/model/SentimentValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SentimentValueMapper { - static const int POSITIVE_HASH = HashingUtils::HashString("POSITIVE"); - static const int NEUTRAL_HASH = HashingUtils::HashString("NEUTRAL"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t POSITIVE_HASH = ConstExprHashingUtils::HashString("POSITIVE"); + static constexpr uint32_t NEUTRAL_HASH = ConstExprHashingUtils::HashString("NEUTRAL"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); SentimentValue GetSentimentValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POSITIVE_HASH) { return SentimentValue::POSITIVE; diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp index ce908170b25..143ec28ce1b 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp @@ -23,14 +23,14 @@ #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include @@ -56,8 +56,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -69,13 +69,13 @@ #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include #include #include @@ -91,12 +91,12 @@ #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include @@ -109,14 +109,14 @@ #include #include #include -#include -#include #include +#include +#include #include #include -#include -#include #include +#include +#include #include #include #include @@ -333,67 +333,67 @@ DeactivateEvaluationFormOutcome ConnectClient::DeactivateEvaluationForm(const De {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTaskTemplateOutcome ConnectClient::CreateTaskTemplate(const CreateTaskTemplateRequest& request) const +CreateContactFlowModuleOutcome ConnectClient::CreateContactFlowModule(const CreateContactFlowModuleRequest& request) const { - AWS_OPERATION_GUARD(CreateTaskTemplate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTaskTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(CreateContactFlowModule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateContactFlowModule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreateTaskTemplate", "Required field: InstanceId, is not set"); - return CreateTaskTemplateOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("CreateContactFlowModule", "Required field: InstanceId, is not set"); + return CreateContactFlowModuleOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTaskTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateContactFlowModule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTaskTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTaskTemplate", + AWS_OPERATION_CHECK_PTR(meter, CreateContactFlowModule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateContactFlowModule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTaskTemplateOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateContactFlowModuleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTaskTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateContactFlowModule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact-flow-modules/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/task/template"); - return CreateTaskTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + return CreateContactFlowModuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateContactFlowModuleOutcome ConnectClient::CreateContactFlowModule(const CreateContactFlowModuleRequest& request) const +CreateTaskTemplateOutcome ConnectClient::CreateTaskTemplate(const CreateTaskTemplateRequest& request) const { - AWS_OPERATION_GUARD(CreateContactFlowModule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateContactFlowModule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(CreateTaskTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTaskTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreateContactFlowModule", "Required field: InstanceId, is not set"); - return CreateContactFlowModuleOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("CreateTaskTemplate", "Required field: InstanceId, is not set"); + return CreateTaskTemplateOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateContactFlowModule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTaskTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateContactFlowModule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateContactFlowModule", + AWS_OPERATION_CHECK_PTR(meter, CreateTaskTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTaskTemplate", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateContactFlowModuleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTaskTemplateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateContactFlowModule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact-flow-modules/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTaskTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - return CreateContactFlowModuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegments("/task/template"); + return CreateTaskTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -552,78 +552,78 @@ GetPromptFileOutcome ConnectClient::GetPromptFile(const GetPromptFileRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateApprovedOriginOutcome ConnectClient::DisassociateApprovedOrigin(const DisassociateApprovedOriginRequest& request) const +AssociateDefaultVocabularyOutcome ConnectClient::AssociateDefaultVocabulary(const AssociateDefaultVocabularyRequest& request) const { - AWS_OPERATION_GUARD(DisassociateApprovedOrigin); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateApprovedOrigin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(AssociateDefaultVocabulary); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateDefaultVocabulary, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DisassociateApprovedOrigin", "Required field: InstanceId, is not set"); - return DisassociateApprovedOriginOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("AssociateDefaultVocabulary", "Required field: InstanceId, is not set"); + return AssociateDefaultVocabularyOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - if (!request.OriginHasBeenSet()) + if (!request.LanguageCodeHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DisassociateApprovedOrigin", "Required field: Origin, is not set"); - return DisassociateApprovedOriginOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Origin]", false)); + AWS_LOGSTREAM_ERROR("AssociateDefaultVocabulary", "Required field: LanguageCode, is not set"); + return AssociateDefaultVocabularyOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [LanguageCode]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateApprovedOrigin, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateDefaultVocabulary, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateApprovedOrigin, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateApprovedOrigin", + AWS_OPERATION_CHECK_PTR(meter, AssociateDefaultVocabulary, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateDefaultVocabulary", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisassociateApprovedOriginOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateDefaultVocabularyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateApprovedOrigin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateDefaultVocabulary, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/default-vocabulary/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/approved-origin"); - return DisassociateApprovedOriginOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(VocabularyLanguageCodeMapper::GetNameForVocabularyLanguageCode(request.GetLanguageCode())); + return AssociateDefaultVocabularyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateDefaultVocabularyOutcome ConnectClient::AssociateDefaultVocabulary(const AssociateDefaultVocabularyRequest& request) const +DisassociateApprovedOriginOutcome ConnectClient::DisassociateApprovedOrigin(const DisassociateApprovedOriginRequest& request) const { - AWS_OPERATION_GUARD(AssociateDefaultVocabulary); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateDefaultVocabulary, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(DisassociateApprovedOrigin); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateApprovedOrigin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("AssociateDefaultVocabulary", "Required field: InstanceId, is not set"); - return AssociateDefaultVocabularyOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("DisassociateApprovedOrigin", "Required field: InstanceId, is not set"); + return DisassociateApprovedOriginOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - if (!request.LanguageCodeHasBeenSet()) + if (!request.OriginHasBeenSet()) { - AWS_LOGSTREAM_ERROR("AssociateDefaultVocabulary", "Required field: LanguageCode, is not set"); - return AssociateDefaultVocabularyOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [LanguageCode]", false)); + AWS_LOGSTREAM_ERROR("DisassociateApprovedOrigin", "Required field: Origin, is not set"); + return DisassociateApprovedOriginOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Origin]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateDefaultVocabulary, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateApprovedOrigin, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateDefaultVocabulary, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateDefaultVocabulary", + AWS_OPERATION_CHECK_PTR(meter, DisassociateApprovedOrigin, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateApprovedOrigin", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateDefaultVocabularyOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisassociateApprovedOriginOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateDefaultVocabulary, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/default-vocabulary/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateApprovedOrigin, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(VocabularyLanguageCodeMapper::GetNameForVocabularyLanguageCode(request.GetLanguageCode())); - return AssociateDefaultVocabularyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegments("/approved-origin"); + return DisassociateApprovedOriginOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1557,73 +1557,73 @@ DisassociateBotOutcome ConnectClient::DisassociateBot(const DisassociateBotReque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateRoutingProfileQueuesOutcome ConnectClient::DisassociateRoutingProfileQueues(const DisassociateRoutingProfileQueuesRequest& request) const +CreateRoutingProfileOutcome ConnectClient::CreateRoutingProfile(const CreateRoutingProfileRequest& request) const { - AWS_OPERATION_GUARD(DisassociateRoutingProfileQueues); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(CreateRoutingProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateRoutingProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DisassociateRoutingProfileQueues", "Required field: InstanceId, is not set"); - return DisassociateRoutingProfileQueuesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.RoutingProfileIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateRoutingProfileQueues", "Required field: RoutingProfileId, is not set"); - return DisassociateRoutingProfileQueuesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RoutingProfileId]", false)); + AWS_LOGSTREAM_ERROR("CreateRoutingProfile", "Required field: InstanceId, is not set"); + return CreateRoutingProfileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateRoutingProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateRoutingProfileQueues", + AWS_OPERATION_CHECK_PTR(meter, CreateRoutingProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateRoutingProfile", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisassociateRoutingProfileQueuesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateRoutingProfileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateRoutingProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/routing-profiles/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRoutingProfileId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/disassociate-queues"); - return DisassociateRoutingProfileQueuesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + return CreateRoutingProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateRoutingProfileOutcome ConnectClient::CreateRoutingProfile(const CreateRoutingProfileRequest& request) const +DisassociateRoutingProfileQueuesOutcome ConnectClient::DisassociateRoutingProfileQueues(const DisassociateRoutingProfileQueuesRequest& request) const { - AWS_OPERATION_GUARD(CreateRoutingProfile); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateRoutingProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(DisassociateRoutingProfileQueues); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreateRoutingProfile", "Required field: InstanceId, is not set"); - return CreateRoutingProfileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("DisassociateRoutingProfileQueues", "Required field: InstanceId, is not set"); + return DisassociateRoutingProfileQueuesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateRoutingProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.RoutingProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateRoutingProfileQueues", "Required field: RoutingProfileId, is not set"); + return DisassociateRoutingProfileQueuesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RoutingProfileId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateRoutingProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateRoutingProfile", + AWS_OPERATION_CHECK_PTR(meter, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateRoutingProfileQueues", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateRoutingProfileOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisassociateRoutingProfileQueuesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateRoutingProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateRoutingProfileQueues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/routing-profiles/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - return CreateRoutingProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRoutingProfileId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/disassociate-queues"); + return DisassociateRoutingProfileQueuesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2029,33 +2029,6 @@ DescribePromptOutcome ConnectClient::DescribePrompt(const DescribePromptRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateInstanceOutcome ConnectClient::CreateInstance(const CreateInstanceRequest& request) const -{ - AWS_OPERATION_GUARD(CreateInstance); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateInstance", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateInstanceOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance"); - return CreateInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - AssociateQueueQuickConnectsOutcome ConnectClient::AssociateQueueQuickConnects(const AssociateQueueQuickConnectsRequest& request) const { AWS_OPERATION_GUARD(AssociateQueueQuickConnects); @@ -2096,31 +2069,58 @@ AssociateQueueQuickConnectsOutcome ConnectClient::AssociateQueueQuickConnects(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateViewOutcome ConnectClient::CreateView(const CreateViewRequest& request) const +CreateInstanceOutcome ConnectClient::CreateInstance(const CreateInstanceRequest& request) const { - AWS_OPERATION_GUARD(CreateView); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateView, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("CreateView", "Required field: InstanceId, is not set"); - return CreateViewOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateView, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateInstance); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateView, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateView", + AWS_OPERATION_CHECK_PTR(meter, CreateInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateInstance", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateViewOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateInstanceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateView, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/views/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance"); + return CreateInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateViewOutcome ConnectClient::CreateView(const CreateViewRequest& request) const +{ + AWS_OPERATION_GUARD(CreateView); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateView, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateView", "Required field: InstanceId, is not set"); + return CreateViewOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateView, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateView, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateView", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateViewOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateView, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/views/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); return CreateViewOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, @@ -2215,73 +2215,73 @@ DeleteUseCaseOutcome ConnectClient::DeleteUseCase(const DeleteUseCaseRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeQuickConnectOutcome ConnectClient::DescribeQuickConnect(const DescribeQuickConnectRequest& request) const +AssociateLambdaFunctionOutcome ConnectClient::AssociateLambdaFunction(const AssociateLambdaFunctionRequest& request) const { - AWS_OPERATION_GUARD(DescribeQuickConnect); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeQuickConnect, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(AssociateLambdaFunction); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateLambdaFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeQuickConnect", "Required field: InstanceId, is not set"); - return DescribeQuickConnectOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.QuickConnectIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeQuickConnect", "Required field: QuickConnectId, is not set"); - return DescribeQuickConnectOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QuickConnectId]", false)); + AWS_LOGSTREAM_ERROR("AssociateLambdaFunction", "Required field: InstanceId, is not set"); + return AssociateLambdaFunctionOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeQuickConnect, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateLambdaFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeQuickConnect, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeQuickConnect", + AWS_OPERATION_CHECK_PTR(meter, AssociateLambdaFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateLambdaFunction", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeQuickConnectOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateLambdaFunctionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeQuickConnect, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/quick-connects/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateLambdaFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQuickConnectId()); - return DescribeQuickConnectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegments("/lambda-function"); + return AssociateLambdaFunctionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateLambdaFunctionOutcome ConnectClient::AssociateLambdaFunction(const AssociateLambdaFunctionRequest& request) const +DescribeQuickConnectOutcome ConnectClient::DescribeQuickConnect(const DescribeQuickConnectRequest& request) const { - AWS_OPERATION_GUARD(AssociateLambdaFunction); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateLambdaFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(DescribeQuickConnect); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeQuickConnect, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("AssociateLambdaFunction", "Required field: InstanceId, is not set"); - return AssociateLambdaFunctionOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("DescribeQuickConnect", "Required field: InstanceId, is not set"); + return DescribeQuickConnectOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateLambdaFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.QuickConnectIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeQuickConnect", "Required field: QuickConnectId, is not set"); + return DescribeQuickConnectOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QuickConnectId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeQuickConnect, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateLambdaFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateLambdaFunction", + AWS_OPERATION_CHECK_PTR(meter, DescribeQuickConnect, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeQuickConnect", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateLambdaFunctionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeQuickConnectOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateLambdaFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeQuickConnect, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/quick-connects/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/lambda-function"); - return AssociateLambdaFunctionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQuickConnectId()); + return DescribeQuickConnectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2840,73 +2840,73 @@ DescribeContactFlowOutcome ConnectClient::DescribeContactFlow(const DescribeCont {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateQueueQuickConnectsOutcome ConnectClient::DisassociateQueueQuickConnects(const DisassociateQueueQuickConnectsRequest& request) const +CreateAgentStatusOutcome ConnectClient::CreateAgentStatus(const CreateAgentStatusRequest& request) const { - AWS_OPERATION_GUARD(DisassociateQueueQuickConnects); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(CreateAgentStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: InstanceId, is not set"); - return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.QueueIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: QueueId, is not set"); - return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QueueId]", false)); + AWS_LOGSTREAM_ERROR("CreateAgentStatus", "Required field: InstanceId, is not set"); + return CreateAgentStatusOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateQueueQuickConnects", + AWS_OPERATION_CHECK_PTR(meter, CreateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAgentStatus", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisassociateQueueQuickConnectsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAgentStatusOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/queues/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/agent-status/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQueueId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/disassociate-quick-connects"); - return DisassociateQueueQuickConnectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + return CreateAgentStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateAgentStatusOutcome ConnectClient::CreateAgentStatus(const CreateAgentStatusRequest& request) const +DisassociateQueueQuickConnectsOutcome ConnectClient::DisassociateQueueQuickConnects(const DisassociateQueueQuickConnectsRequest& request) const { - AWS_OPERATION_GUARD(CreateAgentStatus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(DisassociateQueueQuickConnects); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreateAgentStatus", "Required field: InstanceId, is not set"); - return CreateAgentStatusOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: InstanceId, is not set"); + return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.QueueIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateQueueQuickConnects", "Required field: QueueId, is not set"); + return DisassociateQueueQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QueueId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateAgentStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAgentStatus", + AWS_OPERATION_CHECK_PTR(meter, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateQueueQuickConnects", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateAgentStatusOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisassociateQueueQuickConnectsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAgentStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/agent-status/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateQueueQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/queues/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - return CreateAgentStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQueueId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/disassociate-quick-connects"); + return DisassociateQueueQuickConnectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3003,39 +3003,6 @@ DescribeInstanceStorageConfigOutcome ConnectClient::DescribeInstanceStorageConfi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetTrafficDistributionOutcome ConnectClient::GetTrafficDistribution(const GetTrafficDistributionRequest& request) const -{ - AWS_OPERATION_GUARD(GetTrafficDistribution); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.IdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetTrafficDistribution", "Required field: Id, is not set"); - return GetTrafficDistributionOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTrafficDistribution", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetTrafficDistributionOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); - return GetTrafficDistributionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeleteUserOutcome ConnectClient::DeleteUser(const DeleteUserRequest& request) const { AWS_OPERATION_GUARD(DeleteUser); @@ -3075,6 +3042,39 @@ DeleteUserOutcome ConnectClient::DeleteUser(const DeleteUserRequest& request) co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetTrafficDistributionOutcome ConnectClient::GetTrafficDistribution(const GetTrafficDistributionRequest& request) const +{ + AWS_OPERATION_GUARD(GetTrafficDistribution); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetTrafficDistribution", "Required field: Id, is not set"); + return GetTrafficDistributionOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTrafficDistribution", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetTrafficDistributionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return GetTrafficDistributionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + AssociateLexBotOutcome ConnectClient::AssociateLexBot(const AssociateLexBotRequest& request) const { AWS_OPERATION_GUARD(AssociateLexBot); @@ -3501,39 +3501,27 @@ GetCurrentMetricDataOutcome ConnectClient::GetCurrentMetricData(const GetCurrent {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeSecurityProfileOutcome ConnectClient::DescribeSecurityProfile(const DescribeSecurityProfileRequest& request) const +ClaimPhoneNumberOutcome ConnectClient::ClaimPhoneNumber(const ClaimPhoneNumberRequest& request) const { - AWS_OPERATION_GUARD(DescribeSecurityProfile); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeSecurityProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.SecurityProfileIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeSecurityProfile", "Required field: SecurityProfileId, is not set"); - return DescribeSecurityProfileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SecurityProfileId]", false)); - } - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeSecurityProfile", "Required field: InstanceId, is not set"); - return DescribeSecurityProfileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeSecurityProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ClaimPhoneNumber); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ClaimPhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ClaimPhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeSecurityProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeSecurityProfile", + AWS_OPERATION_CHECK_PTR(meter, ClaimPhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ClaimPhoneNumber", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeSecurityProfileOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ClaimPhoneNumberOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeSecurityProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/security-profiles/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetSecurityProfileId()); - return DescribeSecurityProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ClaimPhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/phone-number/claim"); + return ClaimPhoneNumberOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3579,27 +3567,39 @@ DescribeEvaluationFormOutcome ConnectClient::DescribeEvaluationForm(const Descri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ClaimPhoneNumberOutcome ConnectClient::ClaimPhoneNumber(const ClaimPhoneNumberRequest& request) const +DescribeSecurityProfileOutcome ConnectClient::DescribeSecurityProfile(const DescribeSecurityProfileRequest& request) const { - AWS_OPERATION_GUARD(ClaimPhoneNumber); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ClaimPhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ClaimPhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeSecurityProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeSecurityProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.SecurityProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeSecurityProfile", "Required field: SecurityProfileId, is not set"); + return DescribeSecurityProfileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SecurityProfileId]", false)); + } + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeSecurityProfile", "Required field: InstanceId, is not set"); + return DescribeSecurityProfileOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeSecurityProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ClaimPhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ClaimPhoneNumber", + AWS_OPERATION_CHECK_PTR(meter, DescribeSecurityProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeSecurityProfile", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ClaimPhoneNumberOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeSecurityProfileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ClaimPhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/phone-number/claim"); - return ClaimPhoneNumberOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeSecurityProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/security-profiles/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetSecurityProfileId()); + return DescribeSecurityProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3685,27 +3685,34 @@ CreateViewVersionOutcome ConnectClient::CreateViewVersion(const CreateViewVersio {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetMetricDataV2Outcome ConnectClient::GetMetricDataV2(const GetMetricDataV2Request& request) const +AssociateBotOutcome ConnectClient::AssociateBot(const AssociateBotRequest& request) const { - AWS_OPERATION_GUARD(GetMetricDataV2); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetMetricDataV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetMetricDataV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateBot); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AssociateBot", "Required field: InstanceId, is not set"); + return AssociateBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateBot, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetMetricDataV2, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetMetricDataV2", + AWS_OPERATION_CHECK_PTR(meter, AssociateBot, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateBot", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetMetricDataV2Outcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateBotOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetMetricDataV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/metrics/data"); - return GetMetricDataV2Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/bot"); + return AssociateBotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3751,34 +3758,27 @@ DescribeContactOutcome ConnectClient::DescribeContact(const DescribeContactReque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateBotOutcome ConnectClient::AssociateBot(const AssociateBotRequest& request) const +GetMetricDataV2Outcome ConnectClient::GetMetricDataV2(const GetMetricDataV2Request& request) const { - AWS_OPERATION_GUARD(AssociateBot); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("AssociateBot", "Required field: InstanceId, is not set"); - return AssociateBotOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateBot, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetMetricDataV2); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetMetricDataV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetMetricDataV2, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateBot, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateBot", + AWS_OPERATION_CHECK_PTR(meter, GetMetricDataV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetMetricDataV2", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateBotOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetMetricDataV2Outcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateBot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/bot"); - return AssociateBotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetMetricDataV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/metrics/data"); + return GetMetricDataV2Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp index 43ecbf74d2b..70a1e6282be 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient1.cpp @@ -21,47 +21,47 @@ #include #include #include -#include #include -#include +#include #include +#include #include #include -#include #include +#include #include -#include -#include #include +#include +#include #include -#include #include +#include #include #include #include #include #include #include -#include #include -#include +#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include #include #include #include -#include -#include #include +#include +#include #include #include #include @@ -75,39 +75,39 @@ #include #include #include -#include #include +#include #include #include #include #include #include #include -#include -#include #include +#include +#include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include -#include #include -#include +#include #include +#include #include #include #include @@ -136,33 +136,6 @@ using namespace smithy::components::tracing; using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; -SearchResourceTagsOutcome ConnectClient::SearchResourceTags(const SearchResourceTagsRequest& request) const -{ - AWS_OPERATION_GUARD(SearchResourceTags); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchResourceTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchResourceTags, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SearchResourceTags, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SearchResourceTags", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SearchResourceTagsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchResourceTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/search-resource-tags"); - return SearchResourceTagsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ListQueueQuickConnectsOutcome ConnectClient::ListQueueQuickConnects(const ListQueueQuickConnectsRequest& request) const { AWS_OPERATION_GUARD(ListQueueQuickConnects); @@ -203,40 +176,27 @@ ListQueueQuickConnectsOutcome ConnectClient::ListQueueQuickConnects(const ListQu {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateInstanceAttributeOutcome ConnectClient::UpdateInstanceAttribute(const UpdateInstanceAttributeRequest& request) const +SearchResourceTagsOutcome ConnectClient::SearchResourceTags(const SearchResourceTagsRequest& request) const { - AWS_OPERATION_GUARD(UpdateInstanceAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateInstanceAttribute", "Required field: InstanceId, is not set"); - return UpdateInstanceAttributeOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.AttributeTypeHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateInstanceAttribute", "Required field: AttributeType, is not set"); - return UpdateInstanceAttributeOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AttributeType]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SearchResourceTags); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchResourceTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchResourceTags, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateInstanceAttribute", + AWS_OPERATION_CHECK_PTR(meter, SearchResourceTags, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SearchResourceTags", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateInstanceAttributeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SearchResourceTagsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/attribute/"); - endpointResolutionOutcome.GetResult().AddPathSegment(InstanceAttributeTypeMapper::GetNameForInstanceAttributeType(request.GetAttributeType())); - return UpdateInstanceAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchResourceTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/search-resource-tags"); + return SearchResourceTagsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -276,6 +236,46 @@ ListUsersOutcome ConnectClient::ListUsers(const ListUsersRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateInstanceAttributeOutcome ConnectClient::UpdateInstanceAttribute(const UpdateInstanceAttributeRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateInstanceAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateInstanceAttribute", "Required field: InstanceId, is not set"); + return UpdateInstanceAttributeOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + if (!request.AttributeTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateInstanceAttribute", "Required field: AttributeType, is not set"); + return UpdateInstanceAttributeOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AttributeType]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateInstanceAttribute", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateInstanceAttributeOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/attribute/"); + endpointResolutionOutcome.GetResult().AddPathSegment(InstanceAttributeTypeMapper::GetNameForInstanceAttributeType(request.GetAttributeType())); + return UpdateInstanceAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateTaskTemplateOutcome ConnectClient::UpdateTaskTemplate(const UpdateTaskTemplateRequest& request) const { AWS_OPERATION_GUARD(UpdateTaskTemplate); @@ -343,33 +343,6 @@ StartContactRecordingOutcome ConnectClient::StartContactRecording(const StartCon {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateContactScheduleOutcome ConnectClient::UpdateContactSchedule(const UpdateContactScheduleRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateContactSchedule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContactSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContactSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateContactSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContactSchedule", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateContactScheduleOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateContactSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/schedule"); - return UpdateContactScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ListSecurityProfilePermissionsOutcome ConnectClient::ListSecurityProfilePermissions(const ListSecurityProfilePermissionsRequest& request) const { AWS_OPERATION_GUARD(ListSecurityProfilePermissions); @@ -409,6 +382,33 @@ ListSecurityProfilePermissionsOutcome ConnectClient::ListSecurityProfilePermissi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateContactScheduleOutcome ConnectClient::UpdateContactSchedule(const UpdateContactScheduleRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateContactSchedule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContactSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContactSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateContactSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContactSchedule", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateContactScheduleOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateContactSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/schedule"); + return UpdateContactScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListInstanceStorageConfigsOutcome ConnectClient::ListInstanceStorageConfigs(const ListInstanceStorageConfigsRequest& request) const { AWS_OPERATION_GUARD(ListInstanceStorageConfigs); @@ -448,40 +448,34 @@ ListInstanceStorageConfigsOutcome ConnectClient::ListInstanceStorageConfigs(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateContactFlowModuleMetadataOutcome ConnectClient::UpdateContactFlowModuleMetadata(const UpdateContactFlowModuleMetadataRequest& request) const +ListInstanceAttributesOutcome ConnectClient::ListInstanceAttributes(const ListInstanceAttributesRequest& request) const { - AWS_OPERATION_GUARD(UpdateContactFlowModuleMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(ListInstanceAttributes); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListInstanceAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateContactFlowModuleMetadata", "Required field: InstanceId, is not set"); - return UpdateContactFlowModuleMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.ContactFlowModuleIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateContactFlowModuleMetadata", "Required field: ContactFlowModuleId, is not set"); - return UpdateContactFlowModuleMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactFlowModuleId]", false)); + AWS_LOGSTREAM_ERROR("ListInstanceAttributes", "Required field: InstanceId, is not set"); + return ListInstanceAttributesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListInstanceAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContactFlowModuleMetadata", + AWS_OPERATION_CHECK_PTR(meter, ListInstanceAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListInstanceAttributes", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateContactFlowModuleMetadataOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListInstanceAttributesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact-flow-modules/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListInstanceAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactFlowModuleId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/metadata"); - return UpdateContactFlowModuleMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegments("/attributes"); + return ListInstanceAttributesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -515,34 +509,40 @@ SearchPromptsOutcome ConnectClient::SearchPrompts(const SearchPromptsRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListInstanceAttributesOutcome ConnectClient::ListInstanceAttributes(const ListInstanceAttributesRequest& request) const +UpdateContactFlowModuleMetadataOutcome ConnectClient::UpdateContactFlowModuleMetadata(const UpdateContactFlowModuleMetadataRequest& request) const { - AWS_OPERATION_GUARD(ListInstanceAttributes); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListInstanceAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(UpdateContactFlowModuleMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListInstanceAttributes", "Required field: InstanceId, is not set"); - return ListInstanceAttributesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("UpdateContactFlowModuleMetadata", "Required field: InstanceId, is not set"); + return UpdateContactFlowModuleMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListInstanceAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.ContactFlowModuleIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateContactFlowModuleMetadata", "Required field: ContactFlowModuleId, is not set"); + return UpdateContactFlowModuleMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactFlowModuleId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListInstanceAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListInstanceAttributes", + AWS_OPERATION_CHECK_PTR(meter, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContactFlowModuleMetadata", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListInstanceAttributesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateContactFlowModuleMetadataOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListInstanceAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateContactFlowModuleMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact-flow-modules/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/attributes"); - return ListInstanceAttributesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactFlowModuleId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/metadata"); + return UpdateContactFlowModuleMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -582,6 +582,33 @@ ListPhoneNumbersOutcome ConnectClient::ListPhoneNumbers(const ListPhoneNumbersRe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StopContactOutcome ConnectClient::StopContact(const StopContactRequest& request) const +{ + AWS_OPERATION_GUARD(StopContact); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StopContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopContact", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StopContactOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/stop"); + return StopContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateContactFlowContentOutcome ConnectClient::UpdateContactFlowContent(const UpdateContactFlowContentRequest& request) const { AWS_OPERATION_GUARD(UpdateContactFlowContent); @@ -622,33 +649,6 @@ UpdateContactFlowContentOutcome ConnectClient::UpdateContactFlowContent(const Up {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StopContactOutcome ConnectClient::StopContact(const StopContactRequest& request) const -{ - AWS_OPERATION_GUARD(StopContact); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StopContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopContact", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StopContactOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/stop"); - return StopContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - UpdatePhoneNumberOutcome ConnectClient::UpdatePhoneNumber(const UpdatePhoneNumberRequest& request) const { AWS_OPERATION_GUARD(UpdatePhoneNumber); @@ -854,6 +854,33 @@ ListViewVersionsOutcome ConnectClient::ListViewVersions(const ListViewVersionsRe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListTrafficDistributionGroupsOutcome ConnectClient::ListTrafficDistributionGroups(const ListTrafficDistributionGroupsRequest& request) const +{ + AWS_OPERATION_GUARD(ListTrafficDistributionGroups); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficDistributionGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficDistributionGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTrafficDistributionGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficDistributionGroups", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTrafficDistributionGroupsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrafficDistributionGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution-groups"); + return ListTrafficDistributionGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListUseCasesOutcome ConnectClient::ListUseCases(const ListUseCasesRequest& request) const { AWS_OPERATION_GUARD(ListUseCases); @@ -895,27 +922,27 @@ ListUseCasesOutcome ConnectClient::ListUseCases(const ListUseCasesRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTrafficDistributionGroupsOutcome ConnectClient::ListTrafficDistributionGroups(const ListTrafficDistributionGroupsRequest& request) const +StartChatContactOutcome ConnectClient::StartChatContact(const StartChatContactRequest& request) const { - AWS_OPERATION_GUARD(ListTrafficDistributionGroups); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficDistributionGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficDistributionGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartChatContact); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartChatContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartChatContact, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTrafficDistributionGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficDistributionGroups", + AWS_OPERATION_CHECK_PTR(meter, StartChatContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartChatContact", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTrafficDistributionGroupsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartChatContactOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrafficDistributionGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution-groups"); - return ListTrafficDistributionGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartChatContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/chat"); + return StartChatContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -961,33 +988,6 @@ UpdatePromptOutcome ConnectClient::UpdatePrompt(const UpdatePromptRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartChatContactOutcome ConnectClient::StartChatContact(const StartChatContactRequest& request) const -{ - AWS_OPERATION_GUARD(StartChatContact); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartChatContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartChatContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartChatContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartChatContact", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartChatContactOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartChatContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/chat"); - return StartChatContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - StartOutboundVoiceContactOutcome ConnectClient::StartOutboundVoiceContact(const StartOutboundVoiceContactRequest& request) const { AWS_OPERATION_GUARD(StartOutboundVoiceContact); @@ -1178,21 +1178,55 @@ UntagResourceOutcome ConnectClient::UntagResource(const UntagResourceRequest& re AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UntagResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListApprovedOriginsOutcome ConnectClient::ListApprovedOrigins(const ListApprovedOriginsRequest& request) const +{ + AWS_OPERATION_GUARD(ListApprovedOrigins); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListApprovedOrigins, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListApprovedOrigins", "Required field: InstanceId, is not set"); + return ListApprovedOriginsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListApprovedOrigins, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListApprovedOrigins, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListApprovedOrigins", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UntagResourceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListApprovedOriginsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListApprovedOrigins, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/approved-origins"); + return ListApprovedOriginsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1239,40 +1273,6 @@ SubmitContactEvaluationOutcome ConnectClient::SubmitContactEvaluation(const Subm {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListApprovedOriginsOutcome ConnectClient::ListApprovedOrigins(const ListApprovedOriginsRequest& request) const -{ - AWS_OPERATION_GUARD(ListApprovedOrigins); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListApprovedOrigins, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListApprovedOrigins", "Required field: InstanceId, is not set"); - return ListApprovedOriginsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListApprovedOrigins, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListApprovedOrigins, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListApprovedOrigins", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListApprovedOriginsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListApprovedOrigins, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/approved-origins"); - return ListApprovedOriginsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ListTagsForResourceOutcome ConnectClient::ListTagsForResource(const ListTagsForResourceRequest& request) const { AWS_OPERATION_GUARD(ListTagsForResource); @@ -1426,33 +1426,27 @@ ListDefaultVocabulariesOutcome ConnectClient::ListDefaultVocabularies(const List {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SearchVocabulariesOutcome ConnectClient::SearchVocabularies(const SearchVocabulariesRequest& request) const +MonitorContactOutcome ConnectClient::MonitorContact(const MonitorContactRequest& request) const { - AWS_OPERATION_GUARD(SearchVocabularies); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchVocabularies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("SearchVocabularies", "Required field: InstanceId, is not set"); - return SearchVocabulariesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchVocabularies, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(MonitorContact); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, MonitorContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, MonitorContact, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SearchVocabularies, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SearchVocabularies", + AWS_OPERATION_CHECK_PTR(meter, MonitorContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".MonitorContact", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SearchVocabulariesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> MonitorContactOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchVocabularies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/vocabulary-summary/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - return SearchVocabulariesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, MonitorContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/monitor"); + return MonitorContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1486,27 +1480,33 @@ SearchRoutingProfilesOutcome ConnectClient::SearchRoutingProfiles(const SearchRo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -MonitorContactOutcome ConnectClient::MonitorContact(const MonitorContactRequest& request) const +SearchVocabulariesOutcome ConnectClient::SearchVocabularies(const SearchVocabulariesRequest& request) const { - AWS_OPERATION_GUARD(MonitorContact); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, MonitorContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, MonitorContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SearchVocabularies); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchVocabularies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("SearchVocabularies", "Required field: InstanceId, is not set"); + return SearchVocabulariesOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchVocabularies, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, MonitorContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".MonitorContact", + AWS_OPERATION_CHECK_PTR(meter, SearchVocabularies, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SearchVocabularies", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> MonitorContactOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SearchVocabulariesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, MonitorContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/monitor"); - return MonitorContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchVocabularies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/vocabulary-summary/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + return SearchVocabulariesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1940,6 +1940,33 @@ ListContactFlowsOutcome ConnectClient::ListContactFlows(const ListContactFlowsRe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StopContactStreamingOutcome ConnectClient::StopContactStreaming(const StopContactStreamingRequest& request) const +{ + AWS_OPERATION_GUARD(StopContactStreaming); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StopContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopContactStreaming", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StopContactStreamingOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/stop-streaming"); + return StopContactStreamingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateSecurityProfileOutcome ConnectClient::UpdateSecurityProfile(const UpdateSecurityProfileRequest& request) const { AWS_OPERATION_GUARD(UpdateSecurityProfile); @@ -1979,33 +2006,6 @@ UpdateSecurityProfileOutcome ConnectClient::UpdateSecurityProfile(const UpdateSe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StopContactStreamingOutcome ConnectClient::StopContactStreaming(const StopContactStreamingRequest& request) const -{ - AWS_OPERATION_GUARD(StopContactStreaming); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StopContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopContactStreaming", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StopContactStreamingOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/stop-streaming"); - return StopContactStreamingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - UpdateHoursOfOperationOutcome ConnectClient::UpdateHoursOfOperation(const UpdateHoursOfOperationRequest& request) const { AWS_OPERATION_GUARD(UpdateHoursOfOperation); @@ -2207,27 +2207,34 @@ ListInstancesOutcome ConnectClient::ListInstances(const ListInstancesRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartContactStreamingOutcome ConnectClient::StartContactStreaming(const StartContactStreamingRequest& request) const +ListLexBotsOutcome ConnectClient::ListLexBots(const ListLexBotsRequest& request) const { - AWS_OPERATION_GUARD(StartContactStreaming); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListLexBots); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLexBots, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListLexBots", "Required field: InstanceId, is not set"); + return ListLexBotsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLexBots, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartContactStreaming", + AWS_OPERATION_CHECK_PTR(meter, ListLexBots, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLexBots", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartContactStreamingOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListLexBotsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contact/start-streaming"); - return StartContactStreamingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListLexBots, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/lex-bots"); + return ListLexBotsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2267,34 +2274,27 @@ ListRoutingProfilesOutcome ConnectClient::ListRoutingProfiles(const ListRoutingP {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListLexBotsOutcome ConnectClient::ListLexBots(const ListLexBotsRequest& request) const +StartContactStreamingOutcome ConnectClient::StartContactStreaming(const StartContactStreamingRequest& request) const { - AWS_OPERATION_GUARD(ListLexBots); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLexBots, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListLexBots", "Required field: InstanceId, is not set"); - return ListLexBotsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLexBots, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartContactStreaming); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListLexBots, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLexBots", + AWS_OPERATION_CHECK_PTR(meter, StartContactStreaming, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartContactStreaming", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListLexBotsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartContactStreamingOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListLexBots, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/instance/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/lex-bots"); - return ListLexBotsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartContactStreaming, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contact/start-streaming"); + return StartContactStreamingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2401,72 +2401,72 @@ ListEvaluationFormsOutcome ConnectClient::ListEvaluationForms(const ListEvaluati {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateRuleOutcome ConnectClient::UpdateRule(const UpdateRuleRequest& request) const +ListViewsOutcome ConnectClient::ListViews(const ListViewsRequest& request) const { - AWS_OPERATION_GUARD(UpdateRule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.RuleIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateRule", "Required field: RuleId, is not set"); - return UpdateRuleOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RuleId]", false)); - } + AWS_OPERATION_GUARD(ListViews); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListViews, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateRule", "Required field: InstanceId, is not set"); - return UpdateRuleOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("ListViews", "Required field: InstanceId, is not set"); + return ListViewsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListViews, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateRule", + AWS_OPERATION_CHECK_PTR(meter, ListViews, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListViews", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateRuleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListViewsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListViews, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/views/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRuleId()); - return UpdateRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + return ListViewsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListViewsOutcome ConnectClient::ListViews(const ListViewsRequest& request) const +UpdateRuleOutcome ConnectClient::UpdateRule(const UpdateRuleRequest& request) const { - AWS_OPERATION_GUARD(ListViews); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListViews, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(UpdateRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.RuleIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateRule", "Required field: RuleId, is not set"); + return UpdateRuleOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RuleId]", false)); + } if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListViews", "Required field: InstanceId, is not set"); - return ListViewsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("UpdateRule", "Required field: InstanceId, is not set"); + return UpdateRuleOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListViews, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListViews, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListViews", + AWS_OPERATION_CHECK_PTR(meter, UpdateRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateRule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListViewsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateRuleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListViews, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/views/"); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - return ListViewsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRuleId()); + return UpdateRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2624,73 +2624,73 @@ ListSecurityProfilesOutcome ConnectClient::ListSecurityProfiles(const ListSecuri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateQuickConnectNameOutcome ConnectClient::UpdateQuickConnectName(const UpdateQuickConnectNameRequest& request) const +ListQuickConnectsOutcome ConnectClient::ListQuickConnects(const ListQuickConnectsRequest& request) const { - AWS_OPERATION_GUARD(UpdateQuickConnectName); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateQuickConnectName, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(ListQuickConnects); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateQuickConnectName", "Required field: InstanceId, is not set"); - return UpdateQuickConnectNameOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.QuickConnectIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateQuickConnectName", "Required field: QuickConnectId, is not set"); - return UpdateQuickConnectNameOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QuickConnectId]", false)); + AWS_LOGSTREAM_ERROR("ListQuickConnects", "Required field: InstanceId, is not set"); + return ListQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateQuickConnectName, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateQuickConnectName, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateQuickConnectName", + AWS_OPERATION_CHECK_PTR(meter, ListQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListQuickConnects", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateQuickConnectNameOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListQuickConnectsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateQuickConnectName, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/quick-connects/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQuickConnectId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/name"); - return UpdateQuickConnectNameOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + return ListQuickConnectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListQuickConnectsOutcome ConnectClient::ListQuickConnects(const ListQuickConnectsRequest& request) const +UpdateQuickConnectNameOutcome ConnectClient::UpdateQuickConnectName(const UpdateQuickConnectNameRequest& request) const { - AWS_OPERATION_GUARD(ListQuickConnects); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_GUARD(UpdateQuickConnectName); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateQuickConnectName, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListQuickConnects", "Required field: InstanceId, is not set"); - return ListQuickConnectsOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); + AWS_LOGSTREAM_ERROR("UpdateQuickConnectName", "Required field: InstanceId, is not set"); + return UpdateQuickConnectNameOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.QuickConnectIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateQuickConnectName", "Required field: QuickConnectId, is not set"); + return UpdateQuickConnectNameOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QuickConnectId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateQuickConnectName, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListQuickConnects", + AWS_OPERATION_CHECK_PTR(meter, UpdateQuickConnectName, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateQuickConnectName", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListQuickConnectsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateQuickConnectNameOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateQuickConnectName, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/quick-connects/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - return ListQuickConnectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQuickConnectId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/name"); + return UpdateQuickConnectNameOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2850,6 +2850,39 @@ ListQueuesOutcome ConnectClient::ListQueues(const ListQueuesRequest& request) co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ReleasePhoneNumberOutcome ConnectClient::ReleasePhoneNumber(const ReleasePhoneNumberRequest& request) const +{ + AWS_OPERATION_GUARD(ReleasePhoneNumber); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReleasePhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PhoneNumberIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ReleasePhoneNumber", "Required field: PhoneNumberId, is not set"); + return ReleasePhoneNumberOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PhoneNumberId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReleasePhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ReleasePhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ReleasePhoneNumber", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ReleasePhoneNumberOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReleasePhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/phone-number/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPhoneNumberId()); + return ReleasePhoneNumberOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateContactEvaluationOutcome ConnectClient::UpdateContactEvaluation(const UpdateContactEvaluationRequest& request) const { AWS_OPERATION_GUARD(UpdateContactEvaluation); @@ -2889,60 +2922,61 @@ UpdateContactEvaluationOutcome ConnectClient::UpdateContactEvaluation(const Upda {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ReleasePhoneNumberOutcome ConnectClient::ReleasePhoneNumber(const ReleasePhoneNumberRequest& request) const +SearchQuickConnectsOutcome ConnectClient::SearchQuickConnects(const SearchQuickConnectsRequest& request) const { - AWS_OPERATION_GUARD(ReleasePhoneNumber); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReleasePhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PhoneNumberIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ReleasePhoneNumber", "Required field: PhoneNumberId, is not set"); - return ReleasePhoneNumberOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PhoneNumberId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReleasePhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SearchQuickConnects); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ReleasePhoneNumber, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ReleasePhoneNumber", + AWS_OPERATION_CHECK_PTR(meter, SearchQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SearchQuickConnects", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ReleasePhoneNumberOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SearchQuickConnectsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReleasePhoneNumber, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/phone-number/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPhoneNumberId()); - return ReleasePhoneNumberOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/search-quick-connects"); + return SearchQuickConnectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SearchQuickConnectsOutcome ConnectClient::SearchQuickConnects(const SearchQuickConnectsRequest& request) const +ListTrafficDistributionGroupUsersOutcome ConnectClient::ListTrafficDistributionGroupUsers(const ListTrafficDistributionGroupUsersRequest& request) const { - AWS_OPERATION_GUARD(SearchQuickConnects); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListTrafficDistributionGroupUsers); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TrafficDistributionGroupIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTrafficDistributionGroupUsers", "Required field: TrafficDistributionGroupId, is not set"); + return ListTrafficDistributionGroupUsersOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TrafficDistributionGroupId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SearchQuickConnects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SearchQuickConnects", + AWS_OPERATION_CHECK_PTR(meter, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficDistributionGroupUsers", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SearchQuickConnectsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTrafficDistributionGroupUsersOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchQuickConnects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/search-quick-connects"); - return SearchQuickConnectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution-group/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTrafficDistributionGroupId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/user"); + return ListTrafficDistributionGroupUsersOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2989,34 +3023,39 @@ UpdateQueueMaxContactsOutcome ConnectClient::UpdateQueueMaxContacts(const Update {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTrafficDistributionGroupUsersOutcome ConnectClient::ListTrafficDistributionGroupUsers(const ListTrafficDistributionGroupUsersRequest& request) const +UpdateContactOutcome ConnectClient::UpdateContact(const UpdateContactRequest& request) const { - AWS_OPERATION_GUARD(ListTrafficDistributionGroupUsers); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TrafficDistributionGroupIdHasBeenSet()) + AWS_OPERATION_GUARD(UpdateContact); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListTrafficDistributionGroupUsers", "Required field: TrafficDistributionGroupId, is not set"); - return ListTrafficDistributionGroupUsersOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TrafficDistributionGroupId]", false)); + AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: InstanceId, is not set"); + return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.ContactIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: ContactId, is not set"); + return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficDistributionGroupUsers", + AWS_OPERATION_CHECK_PTR(meter, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContact", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTrafficDistributionGroupUsersOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateContactOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrafficDistributionGroupUsers, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution-group/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTrafficDistributionGroupId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/user"); - return ListTrafficDistributionGroupUsersOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/contacts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactId()); + return UpdateContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3063,45 +3102,6 @@ UpdateRoutingProfileNameOutcome ConnectClient::UpdateRoutingProfileName(const Up {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateContactOutcome ConnectClient::UpdateContact(const UpdateContactRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateContact); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: InstanceId, is not set"); - return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.ContactIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateContact", "Required field: ContactId, is not set"); - return UpdateContactOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ContactId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateContact, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContact", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateContactOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateContact, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/contacts/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetContactId()); - return UpdateContactOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - UpdateRoutingProfileDefaultOutboundQueueOutcome ConnectClient::UpdateRoutingProfileDefaultOutboundQueue(const UpdateRoutingProfileDefaultOutboundQueueRequest& request) const { AWS_OPERATION_GUARD(UpdateRoutingProfileDefaultOutboundQueue); diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp index f4fb4b29cfd..8949aa4e770 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient2.cpp @@ -21,9 +21,9 @@ #include #include #include -#include -#include #include +#include +#include #include #include #include @@ -46,40 +46,33 @@ using namespace smithy::components::tracing; using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; -UpdateViewMetadataOutcome ConnectClient::UpdateViewMetadata(const UpdateViewMetadataRequest& request) const +UpdateTrafficDistributionOutcome ConnectClient::UpdateTrafficDistribution(const UpdateTrafficDistributionRequest& request) const { - AWS_OPERATION_GUARD(UpdateViewMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateViewMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.InstanceIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateViewMetadata", "Required field: InstanceId, is not set"); - return UpdateViewMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); - } - if (!request.ViewIdHasBeenSet()) + AWS_OPERATION_GUARD(UpdateTrafficDistribution); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateViewMetadata", "Required field: ViewId, is not set"); - return UpdateViewMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ViewId]", false)); + AWS_LOGSTREAM_ERROR("UpdateTrafficDistribution", "Required field: Id, is not set"); + return UpdateTrafficDistributionOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateViewMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateViewMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateViewMetadata", + AWS_OPERATION_CHECK_PTR(meter, UpdateTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateTrafficDistribution", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateViewMetadataOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateTrafficDistributionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateViewMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/views/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetViewId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/metadata"); - return UpdateViewMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return UpdateTrafficDistributionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -125,33 +118,40 @@ UpdateViewContentOutcome ConnectClient::UpdateViewContent(const UpdateViewConten {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateTrafficDistributionOutcome ConnectClient::UpdateTrafficDistribution(const UpdateTrafficDistributionRequest& request) const +UpdateViewMetadataOutcome ConnectClient::UpdateViewMetadata(const UpdateViewMetadataRequest& request) const { - AWS_OPERATION_GUARD(UpdateTrafficDistribution); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.IdHasBeenSet()) + AWS_OPERATION_GUARD(UpdateViewMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateViewMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.InstanceIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateTrafficDistribution", "Required field: Id, is not set"); - return UpdateTrafficDistributionOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + AWS_LOGSTREAM_ERROR("UpdateViewMetadata", "Required field: InstanceId, is not set"); + return UpdateViewMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [InstanceId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.ViewIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateViewMetadata", "Required field: ViewId, is not set"); + return UpdateViewMetadataOutcome(Aws::Client::AWSError(ConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ViewId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateViewMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateTrafficDistribution, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateTrafficDistribution", + AWS_OPERATION_CHECK_PTR(meter, UpdateViewMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateViewMetadata", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateTrafficDistributionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateViewMetadataOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateTrafficDistribution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/traffic-distribution/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); - return UpdateTrafficDistributionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateViewMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/views/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetViewId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/metadata"); + return UpdateViewMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp index e8f8b308569..23726ed4b9f 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp @@ -47,31 +47,31 @@ template<> AWS_CONNECT_API ResourceInUseException ConnectError::GetModeledError( namespace ConnectErrorMapper { -static const int IDEMPOTENCY_HASH = HashingUtils::HashString("IdempotencyException"); -static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); -static const int MAXIMUM_RESULT_RETURNED_HASH = HashingUtils::HashString("MaximumResultReturnedException"); -static const int PROPERTY_VALIDATION_HASH = HashingUtils::HashString("PropertyValidationException"); -static const int INVALID_CONTACT_FLOW_HASH = HashingUtils::HashString("InvalidContactFlowException"); -static const int USER_NOT_FOUND_HASH = HashingUtils::HashString("UserNotFoundException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int DUPLICATE_RESOURCE_HASH = HashingUtils::HashString("DuplicateResourceException"); -static const int DESTINATION_NOT_ALLOWED_HASH = HashingUtils::HashString("DestinationNotAllowedException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int CONTACT_FLOW_NOT_PUBLISHED_HASH = HashingUtils::HashString("ContactFlowNotPublishedException"); -static const int INVALID_CONTACT_FLOW_MODULE_HASH = HashingUtils::HashString("InvalidContactFlowModuleException"); -static const int OUTBOUND_CONTACT_NOT_PERMITTED_HASH = HashingUtils::HashString("OutboundContactNotPermittedException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int CONTACT_NOT_FOUND_HASH = HashingUtils::HashString("ContactNotFoundException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t IDEMPOTENCY_HASH = ConstExprHashingUtils::HashString("IdempotencyException"); +static constexpr uint32_t RESOURCE_NOT_READY_HASH = ConstExprHashingUtils::HashString("ResourceNotReadyException"); +static constexpr uint32_t MAXIMUM_RESULT_RETURNED_HASH = ConstExprHashingUtils::HashString("MaximumResultReturnedException"); +static constexpr uint32_t PROPERTY_VALIDATION_HASH = ConstExprHashingUtils::HashString("PropertyValidationException"); +static constexpr uint32_t INVALID_CONTACT_FLOW_HASH = ConstExprHashingUtils::HashString("InvalidContactFlowException"); +static constexpr uint32_t USER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("UserNotFoundException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t DUPLICATE_RESOURCE_HASH = ConstExprHashingUtils::HashString("DuplicateResourceException"); +static constexpr uint32_t DESTINATION_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("DestinationNotAllowedException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t CONTACT_FLOW_NOT_PUBLISHED_HASH = ConstExprHashingUtils::HashString("ContactFlowNotPublishedException"); +static constexpr uint32_t INVALID_CONTACT_FLOW_MODULE_HASH = ConstExprHashingUtils::HashString("InvalidContactFlowModuleException"); +static constexpr uint32_t OUTBOUND_CONTACT_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OutboundContactNotPermittedException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t CONTACT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ContactNotFoundException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == IDEMPOTENCY_HASH) { diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ActionType.cpp index 1ab7c7744ff..906d3d1c9ca 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ActionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActionTypeMapper { - static const int CREATE_TASK_HASH = HashingUtils::HashString("CREATE_TASK"); - static const int ASSIGN_CONTACT_CATEGORY_HASH = HashingUtils::HashString("ASSIGN_CONTACT_CATEGORY"); - static const int GENERATE_EVENTBRIDGE_EVENT_HASH = HashingUtils::HashString("GENERATE_EVENTBRIDGE_EVENT"); - static const int SEND_NOTIFICATION_HASH = HashingUtils::HashString("SEND_NOTIFICATION"); + static constexpr uint32_t CREATE_TASK_HASH = ConstExprHashingUtils::HashString("CREATE_TASK"); + static constexpr uint32_t ASSIGN_CONTACT_CATEGORY_HASH = ConstExprHashingUtils::HashString("ASSIGN_CONTACT_CATEGORY"); + static constexpr uint32_t GENERATE_EVENTBRIDGE_EVENT_HASH = ConstExprHashingUtils::HashString("GENERATE_EVENTBRIDGE_EVENT"); + static constexpr uint32_t SEND_NOTIFICATION_HASH = ConstExprHashingUtils::HashString("SEND_NOTIFICATION"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_TASK_HASH) { return ActionType::CREATE_TASK; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/AgentAvailabilityTimer.cpp b/generated/src/aws-cpp-sdk-connect/source/model/AgentAvailabilityTimer.cpp index a6f97102a0d..00138916047 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/AgentAvailabilityTimer.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/AgentAvailabilityTimer.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AgentAvailabilityTimerMapper { - static const int TIME_SINCE_LAST_ACTIVITY_HASH = HashingUtils::HashString("TIME_SINCE_LAST_ACTIVITY"); - static const int TIME_SINCE_LAST_INBOUND_HASH = HashingUtils::HashString("TIME_SINCE_LAST_INBOUND"); + static constexpr uint32_t TIME_SINCE_LAST_ACTIVITY_HASH = ConstExprHashingUtils::HashString("TIME_SINCE_LAST_ACTIVITY"); + static constexpr uint32_t TIME_SINCE_LAST_INBOUND_HASH = ConstExprHashingUtils::HashString("TIME_SINCE_LAST_INBOUND"); AgentAvailabilityTimer GetAgentAvailabilityTimerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TIME_SINCE_LAST_ACTIVITY_HASH) { return AgentAvailabilityTimer::TIME_SINCE_LAST_ACTIVITY; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusState.cpp b/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusState.cpp index 4a18a57205c..5c17270e6be 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusState.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AgentStatusStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AgentStatusState GetAgentStatusStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AgentStatusState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusType.cpp index ed7daf410aa..309c3eacb2b 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/AgentStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AgentStatusTypeMapper { - static const int ROUTABLE_HASH = HashingUtils::HashString("ROUTABLE"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); + static constexpr uint32_t ROUTABLE_HASH = ConstExprHashingUtils::HashString("ROUTABLE"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); AgentStatusType GetAgentStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROUTABLE_HASH) { return AgentStatusType::ROUTABLE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/BehaviorType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/BehaviorType.cpp index d4ecad37e32..3f344a12091 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/BehaviorType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/BehaviorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BehaviorTypeMapper { - static const int ROUTE_CURRENT_CHANNEL_ONLY_HASH = HashingUtils::HashString("ROUTE_CURRENT_CHANNEL_ONLY"); - static const int ROUTE_ANY_CHANNEL_HASH = HashingUtils::HashString("ROUTE_ANY_CHANNEL"); + static constexpr uint32_t ROUTE_CURRENT_CHANNEL_ONLY_HASH = ConstExprHashingUtils::HashString("ROUTE_CURRENT_CHANNEL_ONLY"); + static constexpr uint32_t ROUTE_ANY_CHANNEL_HASH = ConstExprHashingUtils::HashString("ROUTE_ANY_CHANNEL"); BehaviorType GetBehaviorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROUTE_CURRENT_CHANNEL_ONLY_HASH) { return BehaviorType::ROUTE_CURRENT_CHANNEL_ONLY; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/Channel.cpp b/generated/src/aws-cpp-sdk-connect/source/model/Channel.cpp index 11f1b44b43f..e7d079b3612 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/Channel.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/Channel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChannelMapper { - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); - static const int CHAT_HASH = HashingUtils::HashString("CHAT"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); + static constexpr uint32_t CHAT_HASH = ConstExprHashingUtils::HashString("CHAT"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); Channel GetChannelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VOICE_HASH) { return Channel::VOICE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/Comparison.cpp b/generated/src/aws-cpp-sdk-connect/source/model/Comparison.cpp index a215756e0d2..fac5e99888b 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/Comparison.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/Comparison.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ComparisonMapper { - static const int LT_HASH = HashingUtils::HashString("LT"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); Comparison GetComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LT_HASH) { return Comparison::LT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleState.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleState.cpp index f7fb64e3c5d..ddb0173ae11 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleState.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContactFlowModuleStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); ContactFlowModuleState GetContactFlowModuleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ContactFlowModuleState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleStatus.cpp index 7426c89c4ec..6805a643c38 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowModuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContactFlowModuleStatusMapper { - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); - static const int SAVED_HASH = HashingUtils::HashString("SAVED"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t SAVED_HASH = ConstExprHashingUtils::HashString("SAVED"); ContactFlowModuleStatus GetContactFlowModuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISHED_HASH) { return ContactFlowModuleStatus::PUBLISHED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowState.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowState.cpp index 0c23ad542b7..6a90c1fc892 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowState.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContactFlowStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); ContactFlowState GetContactFlowStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ContactFlowState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowType.cpp index 1a4cbed0463..b4f33a82124 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ContactFlowType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ContactFlowTypeMapper { - static const int CONTACT_FLOW_HASH = HashingUtils::HashString("CONTACT_FLOW"); - static const int CUSTOMER_QUEUE_HASH = HashingUtils::HashString("CUSTOMER_QUEUE"); - static const int CUSTOMER_HOLD_HASH = HashingUtils::HashString("CUSTOMER_HOLD"); - static const int CUSTOMER_WHISPER_HASH = HashingUtils::HashString("CUSTOMER_WHISPER"); - static const int AGENT_HOLD_HASH = HashingUtils::HashString("AGENT_HOLD"); - static const int AGENT_WHISPER_HASH = HashingUtils::HashString("AGENT_WHISPER"); - static const int OUTBOUND_WHISPER_HASH = HashingUtils::HashString("OUTBOUND_WHISPER"); - static const int AGENT_TRANSFER_HASH = HashingUtils::HashString("AGENT_TRANSFER"); - static const int QUEUE_TRANSFER_HASH = HashingUtils::HashString("QUEUE_TRANSFER"); + static constexpr uint32_t CONTACT_FLOW_HASH = ConstExprHashingUtils::HashString("CONTACT_FLOW"); + static constexpr uint32_t CUSTOMER_QUEUE_HASH = ConstExprHashingUtils::HashString("CUSTOMER_QUEUE"); + static constexpr uint32_t CUSTOMER_HOLD_HASH = ConstExprHashingUtils::HashString("CUSTOMER_HOLD"); + static constexpr uint32_t CUSTOMER_WHISPER_HASH = ConstExprHashingUtils::HashString("CUSTOMER_WHISPER"); + static constexpr uint32_t AGENT_HOLD_HASH = ConstExprHashingUtils::HashString("AGENT_HOLD"); + static constexpr uint32_t AGENT_WHISPER_HASH = ConstExprHashingUtils::HashString("AGENT_WHISPER"); + static constexpr uint32_t OUTBOUND_WHISPER_HASH = ConstExprHashingUtils::HashString("OUTBOUND_WHISPER"); + static constexpr uint32_t AGENT_TRANSFER_HASH = ConstExprHashingUtils::HashString("AGENT_TRANSFER"); + static constexpr uint32_t QUEUE_TRANSFER_HASH = ConstExprHashingUtils::HashString("QUEUE_TRANSFER"); ContactFlowType GetContactFlowTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTACT_FLOW_HASH) { return ContactFlowType::CONTACT_FLOW; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ContactInitiationMethod.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ContactInitiationMethod.cpp index 289bda6bdc0..848cedbeb8c 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ContactInitiationMethod.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ContactInitiationMethod.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ContactInitiationMethodMapper { - static const int INBOUND_HASH = HashingUtils::HashString("INBOUND"); - static const int OUTBOUND_HASH = HashingUtils::HashString("OUTBOUND"); - static const int TRANSFER_HASH = HashingUtils::HashString("TRANSFER"); - static const int QUEUE_TRANSFER_HASH = HashingUtils::HashString("QUEUE_TRANSFER"); - static const int CALLBACK_HASH = HashingUtils::HashString("CALLBACK"); - static const int API_HASH = HashingUtils::HashString("API"); - static const int DISCONNECT_HASH = HashingUtils::HashString("DISCONNECT"); - static const int MONITOR_HASH = HashingUtils::HashString("MONITOR"); - static const int EXTERNAL_OUTBOUND_HASH = HashingUtils::HashString("EXTERNAL_OUTBOUND"); + static constexpr uint32_t INBOUND_HASH = ConstExprHashingUtils::HashString("INBOUND"); + static constexpr uint32_t OUTBOUND_HASH = ConstExprHashingUtils::HashString("OUTBOUND"); + static constexpr uint32_t TRANSFER_HASH = ConstExprHashingUtils::HashString("TRANSFER"); + static constexpr uint32_t QUEUE_TRANSFER_HASH = ConstExprHashingUtils::HashString("QUEUE_TRANSFER"); + static constexpr uint32_t CALLBACK_HASH = ConstExprHashingUtils::HashString("CALLBACK"); + static constexpr uint32_t API_HASH = ConstExprHashingUtils::HashString("API"); + static constexpr uint32_t DISCONNECT_HASH = ConstExprHashingUtils::HashString("DISCONNECT"); + static constexpr uint32_t MONITOR_HASH = ConstExprHashingUtils::HashString("MONITOR"); + static constexpr uint32_t EXTERNAL_OUTBOUND_HASH = ConstExprHashingUtils::HashString("EXTERNAL_OUTBOUND"); ContactInitiationMethod GetContactInitiationMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INBOUND_HASH) { return ContactInitiationMethod::INBOUND; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ContactState.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ContactState.cpp index 4657cdf4c9f..b98a94c4631 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ContactState.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ContactState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ContactStateMapper { - static const int INCOMING_HASH = HashingUtils::HashString("INCOMING"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CONNECTING_HASH = HashingUtils::HashString("CONNECTING"); - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int CONNECTED_ONHOLD_HASH = HashingUtils::HashString("CONNECTED_ONHOLD"); - static const int MISSED_HASH = HashingUtils::HashString("MISSED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int ENDED_HASH = HashingUtils::HashString("ENDED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t INCOMING_HASH = ConstExprHashingUtils::HashString("INCOMING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CONNECTING_HASH = ConstExprHashingUtils::HashString("CONNECTING"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t CONNECTED_ONHOLD_HASH = ConstExprHashingUtils::HashString("CONNECTED_ONHOLD"); + static constexpr uint32_t MISSED_HASH = ConstExprHashingUtils::HashString("MISSED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t ENDED_HASH = ConstExprHashingUtils::HashString("ENDED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); ContactState GetContactStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCOMING_HASH) { return ContactState::INCOMING; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/CurrentMetricName.cpp b/generated/src/aws-cpp-sdk-connect/source/model/CurrentMetricName.cpp index fd8091bcfd9..1b1b80363b0 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/CurrentMetricName.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/CurrentMetricName.cpp @@ -20,24 +20,24 @@ namespace Aws namespace CurrentMetricNameMapper { - static const int AGENTS_ONLINE_HASH = HashingUtils::HashString("AGENTS_ONLINE"); - static const int AGENTS_AVAILABLE_HASH = HashingUtils::HashString("AGENTS_AVAILABLE"); - static const int AGENTS_ON_CALL_HASH = HashingUtils::HashString("AGENTS_ON_CALL"); - static const int AGENTS_NON_PRODUCTIVE_HASH = HashingUtils::HashString("AGENTS_NON_PRODUCTIVE"); - static const int AGENTS_AFTER_CONTACT_WORK_HASH = HashingUtils::HashString("AGENTS_AFTER_CONTACT_WORK"); - static const int AGENTS_ERROR_HASH = HashingUtils::HashString("AGENTS_ERROR"); - static const int AGENTS_STAFFED_HASH = HashingUtils::HashString("AGENTS_STAFFED"); - static const int CONTACTS_IN_QUEUE_HASH = HashingUtils::HashString("CONTACTS_IN_QUEUE"); - static const int OLDEST_CONTACT_AGE_HASH = HashingUtils::HashString("OLDEST_CONTACT_AGE"); - static const int CONTACTS_SCHEDULED_HASH = HashingUtils::HashString("CONTACTS_SCHEDULED"); - static const int AGENTS_ON_CONTACT_HASH = HashingUtils::HashString("AGENTS_ON_CONTACT"); - static const int SLOTS_ACTIVE_HASH = HashingUtils::HashString("SLOTS_ACTIVE"); - static const int SLOTS_AVAILABLE_HASH = HashingUtils::HashString("SLOTS_AVAILABLE"); + static constexpr uint32_t AGENTS_ONLINE_HASH = ConstExprHashingUtils::HashString("AGENTS_ONLINE"); + static constexpr uint32_t AGENTS_AVAILABLE_HASH = ConstExprHashingUtils::HashString("AGENTS_AVAILABLE"); + static constexpr uint32_t AGENTS_ON_CALL_HASH = ConstExprHashingUtils::HashString("AGENTS_ON_CALL"); + static constexpr uint32_t AGENTS_NON_PRODUCTIVE_HASH = ConstExprHashingUtils::HashString("AGENTS_NON_PRODUCTIVE"); + static constexpr uint32_t AGENTS_AFTER_CONTACT_WORK_HASH = ConstExprHashingUtils::HashString("AGENTS_AFTER_CONTACT_WORK"); + static constexpr uint32_t AGENTS_ERROR_HASH = ConstExprHashingUtils::HashString("AGENTS_ERROR"); + static constexpr uint32_t AGENTS_STAFFED_HASH = ConstExprHashingUtils::HashString("AGENTS_STAFFED"); + static constexpr uint32_t CONTACTS_IN_QUEUE_HASH = ConstExprHashingUtils::HashString("CONTACTS_IN_QUEUE"); + static constexpr uint32_t OLDEST_CONTACT_AGE_HASH = ConstExprHashingUtils::HashString("OLDEST_CONTACT_AGE"); + static constexpr uint32_t CONTACTS_SCHEDULED_HASH = ConstExprHashingUtils::HashString("CONTACTS_SCHEDULED"); + static constexpr uint32_t AGENTS_ON_CONTACT_HASH = ConstExprHashingUtils::HashString("AGENTS_ON_CONTACT"); + static constexpr uint32_t SLOTS_ACTIVE_HASH = ConstExprHashingUtils::HashString("SLOTS_ACTIVE"); + static constexpr uint32_t SLOTS_AVAILABLE_HASH = ConstExprHashingUtils::HashString("SLOTS_AVAILABLE"); CurrentMetricName GetCurrentMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENTS_ONLINE_HASH) { return CurrentMetricName::AGENTS_ONLINE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/DirectoryType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/DirectoryType.cpp index 7ea4664c29c..702bde8044e 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/DirectoryType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/DirectoryType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DirectoryTypeMapper { - static const int SAML_HASH = HashingUtils::HashString("SAML"); - static const int CONNECT_MANAGED_HASH = HashingUtils::HashString("CONNECT_MANAGED"); - static const int EXISTING_DIRECTORY_HASH = HashingUtils::HashString("EXISTING_DIRECTORY"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); + static constexpr uint32_t CONNECT_MANAGED_HASH = ConstExprHashingUtils::HashString("CONNECT_MANAGED"); + static constexpr uint32_t EXISTING_DIRECTORY_HASH = ConstExprHashingUtils::HashString("EXISTING_DIRECTORY"); DirectoryType GetDirectoryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_HASH) { return DirectoryType::SAML; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EncryptionType.cpp index 168debafb8b..03906f38063 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EncryptionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncryptionTypeMapper { - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KMS_HASH) { return EncryptionType::KMS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormQuestionType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormQuestionType.cpp index 9054ea1d2b9..e49356c2f53 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormQuestionType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormQuestionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EvaluationFormQuestionTypeMapper { - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); - static const int SINGLESELECT_HASH = HashingUtils::HashString("SINGLESELECT"); - static const int NUMERIC_HASH = HashingUtils::HashString("NUMERIC"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); + static constexpr uint32_t SINGLESELECT_HASH = ConstExprHashingUtils::HashString("SINGLESELECT"); + static constexpr uint32_t NUMERIC_HASH = ConstExprHashingUtils::HashString("NUMERIC"); EvaluationFormQuestionType GetEvaluationFormQuestionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_HASH) { return EvaluationFormQuestionType::TEXT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringMode.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringMode.cpp index e3e9297637e..73c04d060e1 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringMode.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationFormScoringModeMapper { - static const int QUESTION_ONLY_HASH = HashingUtils::HashString("QUESTION_ONLY"); - static const int SECTION_ONLY_HASH = HashingUtils::HashString("SECTION_ONLY"); + static constexpr uint32_t QUESTION_ONLY_HASH = ConstExprHashingUtils::HashString("QUESTION_ONLY"); + static constexpr uint32_t SECTION_ONLY_HASH = ConstExprHashingUtils::HashString("SECTION_ONLY"); EvaluationFormScoringMode GetEvaluationFormScoringModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUESTION_ONLY_HASH) { return EvaluationFormScoringMode::QUESTION_ONLY; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringStatus.cpp index ef52e6ebd18..429e13d81db 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormScoringStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationFormScoringStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EvaluationFormScoringStatus GetEvaluationFormScoringStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EvaluationFormScoringStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormSingleSelectQuestionDisplayMode.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormSingleSelectQuestionDisplayMode.cpp index a4342c31cb0..e919c050d75 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormSingleSelectQuestionDisplayMode.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormSingleSelectQuestionDisplayMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationFormSingleSelectQuestionDisplayModeMapper { - static const int DROPDOWN_HASH = HashingUtils::HashString("DROPDOWN"); - static const int RADIO_HASH = HashingUtils::HashString("RADIO"); + static constexpr uint32_t DROPDOWN_HASH = ConstExprHashingUtils::HashString("DROPDOWN"); + static constexpr uint32_t RADIO_HASH = ConstExprHashingUtils::HashString("RADIO"); EvaluationFormSingleSelectQuestionDisplayMode GetEvaluationFormSingleSelectQuestionDisplayModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROPDOWN_HASH) { return EvaluationFormSingleSelectQuestionDisplayMode::DROPDOWN; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormVersionStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormVersionStatus.cpp index 84d2d8538ee..fb7e6c9871b 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationFormVersionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationFormVersionStatusMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); EvaluationFormVersionStatus GetEvaluationFormVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return EvaluationFormVersionStatus::DRAFT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationStatus.cpp index ec6510bb95c..a95dfc63f2d 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EvaluationStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EvaluationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationStatusMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); EvaluationStatus GetEvaluationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return EvaluationStatus::DRAFT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/EventSourceName.cpp b/generated/src/aws-cpp-sdk-connect/source/model/EventSourceName.cpp index 0121bc7979b..bed8fcc0a9f 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/EventSourceName.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/EventSourceName.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EventSourceNameMapper { - static const int OnPostCallAnalysisAvailable_HASH = HashingUtils::HashString("OnPostCallAnalysisAvailable"); - static const int OnRealTimeCallAnalysisAvailable_HASH = HashingUtils::HashString("OnRealTimeCallAnalysisAvailable"); - static const int OnPostChatAnalysisAvailable_HASH = HashingUtils::HashString("OnPostChatAnalysisAvailable"); - static const int OnZendeskTicketCreate_HASH = HashingUtils::HashString("OnZendeskTicketCreate"); - static const int OnZendeskTicketStatusUpdate_HASH = HashingUtils::HashString("OnZendeskTicketStatusUpdate"); - static const int OnSalesforceCaseCreate_HASH = HashingUtils::HashString("OnSalesforceCaseCreate"); - static const int OnContactEvaluationSubmit_HASH = HashingUtils::HashString("OnContactEvaluationSubmit"); - static const int OnMetricDataUpdate_HASH = HashingUtils::HashString("OnMetricDataUpdate"); + static constexpr uint32_t OnPostCallAnalysisAvailable_HASH = ConstExprHashingUtils::HashString("OnPostCallAnalysisAvailable"); + static constexpr uint32_t OnRealTimeCallAnalysisAvailable_HASH = ConstExprHashingUtils::HashString("OnRealTimeCallAnalysisAvailable"); + static constexpr uint32_t OnPostChatAnalysisAvailable_HASH = ConstExprHashingUtils::HashString("OnPostChatAnalysisAvailable"); + static constexpr uint32_t OnZendeskTicketCreate_HASH = ConstExprHashingUtils::HashString("OnZendeskTicketCreate"); + static constexpr uint32_t OnZendeskTicketStatusUpdate_HASH = ConstExprHashingUtils::HashString("OnZendeskTicketStatusUpdate"); + static constexpr uint32_t OnSalesforceCaseCreate_HASH = ConstExprHashingUtils::HashString("OnSalesforceCaseCreate"); + static constexpr uint32_t OnContactEvaluationSubmit_HASH = ConstExprHashingUtils::HashString("OnContactEvaluationSubmit"); + static constexpr uint32_t OnMetricDataUpdate_HASH = ConstExprHashingUtils::HashString("OnMetricDataUpdate"); EventSourceName GetEventSourceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OnPostCallAnalysisAvailable_HASH) { return EventSourceName::OnPostCallAnalysisAvailable; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/Grouping.cpp b/generated/src/aws-cpp-sdk-connect/source/model/Grouping.cpp index aed53b4b7b2..959e86b4b85 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/Grouping.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/Grouping.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GroupingMapper { - static const int QUEUE_HASH = HashingUtils::HashString("QUEUE"); - static const int CHANNEL_HASH = HashingUtils::HashString("CHANNEL"); - static const int ROUTING_PROFILE_HASH = HashingUtils::HashString("ROUTING_PROFILE"); + static constexpr uint32_t QUEUE_HASH = ConstExprHashingUtils::HashString("QUEUE"); + static constexpr uint32_t CHANNEL_HASH = ConstExprHashingUtils::HashString("CHANNEL"); + static constexpr uint32_t ROUTING_PROFILE_HASH = ConstExprHashingUtils::HashString("ROUTING_PROFILE"); Grouping GetGroupingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUE_HASH) { return Grouping::QUEUE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/HierarchyGroupMatchType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/HierarchyGroupMatchType.cpp index 14cf7fc2cea..22f5a8ff7f2 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/HierarchyGroupMatchType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/HierarchyGroupMatchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HierarchyGroupMatchTypeMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); - static const int WITH_CHILD_GROUPS_HASH = HashingUtils::HashString("WITH_CHILD_GROUPS"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); + static constexpr uint32_t WITH_CHILD_GROUPS_HASH = ConstExprHashingUtils::HashString("WITH_CHILD_GROUPS"); HierarchyGroupMatchType GetHierarchyGroupMatchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return HierarchyGroupMatchType::EXACT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/HistoricalMetricName.cpp b/generated/src/aws-cpp-sdk-connect/source/model/HistoricalMetricName.cpp index f7b29ef7ec8..4348392b3c7 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/HistoricalMetricName.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/HistoricalMetricName.cpp @@ -20,36 +20,36 @@ namespace Aws namespace HistoricalMetricNameMapper { - static const int CONTACTS_QUEUED_HASH = HashingUtils::HashString("CONTACTS_QUEUED"); - static const int CONTACTS_HANDLED_HASH = HashingUtils::HashString("CONTACTS_HANDLED"); - static const int CONTACTS_ABANDONED_HASH = HashingUtils::HashString("CONTACTS_ABANDONED"); - static const int CONTACTS_CONSULTED_HASH = HashingUtils::HashString("CONTACTS_CONSULTED"); - static const int CONTACTS_AGENT_HUNG_UP_FIRST_HASH = HashingUtils::HashString("CONTACTS_AGENT_HUNG_UP_FIRST"); - static const int CONTACTS_HANDLED_INCOMING_HASH = HashingUtils::HashString("CONTACTS_HANDLED_INCOMING"); - static const int CONTACTS_HANDLED_OUTBOUND_HASH = HashingUtils::HashString("CONTACTS_HANDLED_OUTBOUND"); - static const int CONTACTS_HOLD_ABANDONS_HASH = HashingUtils::HashString("CONTACTS_HOLD_ABANDONS"); - static const int CONTACTS_TRANSFERRED_IN_HASH = HashingUtils::HashString("CONTACTS_TRANSFERRED_IN"); - static const int CONTACTS_TRANSFERRED_OUT_HASH = HashingUtils::HashString("CONTACTS_TRANSFERRED_OUT"); - static const int CONTACTS_TRANSFERRED_IN_FROM_QUEUE_HASH = HashingUtils::HashString("CONTACTS_TRANSFERRED_IN_FROM_QUEUE"); - static const int CONTACTS_TRANSFERRED_OUT_FROM_QUEUE_HASH = HashingUtils::HashString("CONTACTS_TRANSFERRED_OUT_FROM_QUEUE"); - static const int CONTACTS_MISSED_HASH = HashingUtils::HashString("CONTACTS_MISSED"); - static const int CALLBACK_CONTACTS_HANDLED_HASH = HashingUtils::HashString("CALLBACK_CONTACTS_HANDLED"); - static const int API_CONTACTS_HANDLED_HASH = HashingUtils::HashString("API_CONTACTS_HANDLED"); - static const int OCCUPANCY_HASH = HashingUtils::HashString("OCCUPANCY"); - static const int HANDLE_TIME_HASH = HashingUtils::HashString("HANDLE_TIME"); - static const int AFTER_CONTACT_WORK_TIME_HASH = HashingUtils::HashString("AFTER_CONTACT_WORK_TIME"); - static const int QUEUED_TIME_HASH = HashingUtils::HashString("QUEUED_TIME"); - static const int ABANDON_TIME_HASH = HashingUtils::HashString("ABANDON_TIME"); - static const int QUEUE_ANSWER_TIME_HASH = HashingUtils::HashString("QUEUE_ANSWER_TIME"); - static const int HOLD_TIME_HASH = HashingUtils::HashString("HOLD_TIME"); - static const int INTERACTION_TIME_HASH = HashingUtils::HashString("INTERACTION_TIME"); - static const int INTERACTION_AND_HOLD_TIME_HASH = HashingUtils::HashString("INTERACTION_AND_HOLD_TIME"); - static const int SERVICE_LEVEL_HASH = HashingUtils::HashString("SERVICE_LEVEL"); + static constexpr uint32_t CONTACTS_QUEUED_HASH = ConstExprHashingUtils::HashString("CONTACTS_QUEUED"); + static constexpr uint32_t CONTACTS_HANDLED_HASH = ConstExprHashingUtils::HashString("CONTACTS_HANDLED"); + static constexpr uint32_t CONTACTS_ABANDONED_HASH = ConstExprHashingUtils::HashString("CONTACTS_ABANDONED"); + static constexpr uint32_t CONTACTS_CONSULTED_HASH = ConstExprHashingUtils::HashString("CONTACTS_CONSULTED"); + static constexpr uint32_t CONTACTS_AGENT_HUNG_UP_FIRST_HASH = ConstExprHashingUtils::HashString("CONTACTS_AGENT_HUNG_UP_FIRST"); + static constexpr uint32_t CONTACTS_HANDLED_INCOMING_HASH = ConstExprHashingUtils::HashString("CONTACTS_HANDLED_INCOMING"); + static constexpr uint32_t CONTACTS_HANDLED_OUTBOUND_HASH = ConstExprHashingUtils::HashString("CONTACTS_HANDLED_OUTBOUND"); + static constexpr uint32_t CONTACTS_HOLD_ABANDONS_HASH = ConstExprHashingUtils::HashString("CONTACTS_HOLD_ABANDONS"); + static constexpr uint32_t CONTACTS_TRANSFERRED_IN_HASH = ConstExprHashingUtils::HashString("CONTACTS_TRANSFERRED_IN"); + static constexpr uint32_t CONTACTS_TRANSFERRED_OUT_HASH = ConstExprHashingUtils::HashString("CONTACTS_TRANSFERRED_OUT"); + static constexpr uint32_t CONTACTS_TRANSFERRED_IN_FROM_QUEUE_HASH = ConstExprHashingUtils::HashString("CONTACTS_TRANSFERRED_IN_FROM_QUEUE"); + static constexpr uint32_t CONTACTS_TRANSFERRED_OUT_FROM_QUEUE_HASH = ConstExprHashingUtils::HashString("CONTACTS_TRANSFERRED_OUT_FROM_QUEUE"); + static constexpr uint32_t CONTACTS_MISSED_HASH = ConstExprHashingUtils::HashString("CONTACTS_MISSED"); + static constexpr uint32_t CALLBACK_CONTACTS_HANDLED_HASH = ConstExprHashingUtils::HashString("CALLBACK_CONTACTS_HANDLED"); + static constexpr uint32_t API_CONTACTS_HANDLED_HASH = ConstExprHashingUtils::HashString("API_CONTACTS_HANDLED"); + static constexpr uint32_t OCCUPANCY_HASH = ConstExprHashingUtils::HashString("OCCUPANCY"); + static constexpr uint32_t HANDLE_TIME_HASH = ConstExprHashingUtils::HashString("HANDLE_TIME"); + static constexpr uint32_t AFTER_CONTACT_WORK_TIME_HASH = ConstExprHashingUtils::HashString("AFTER_CONTACT_WORK_TIME"); + static constexpr uint32_t QUEUED_TIME_HASH = ConstExprHashingUtils::HashString("QUEUED_TIME"); + static constexpr uint32_t ABANDON_TIME_HASH = ConstExprHashingUtils::HashString("ABANDON_TIME"); + static constexpr uint32_t QUEUE_ANSWER_TIME_HASH = ConstExprHashingUtils::HashString("QUEUE_ANSWER_TIME"); + static constexpr uint32_t HOLD_TIME_HASH = ConstExprHashingUtils::HashString("HOLD_TIME"); + static constexpr uint32_t INTERACTION_TIME_HASH = ConstExprHashingUtils::HashString("INTERACTION_TIME"); + static constexpr uint32_t INTERACTION_AND_HOLD_TIME_HASH = ConstExprHashingUtils::HashString("INTERACTION_AND_HOLD_TIME"); + static constexpr uint32_t SERVICE_LEVEL_HASH = ConstExprHashingUtils::HashString("SERVICE_LEVEL"); HistoricalMetricName GetHistoricalMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTACTS_QUEUED_HASH) { return HistoricalMetricName::CONTACTS_QUEUED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/HoursOfOperationDays.cpp b/generated/src/aws-cpp-sdk-connect/source/model/HoursOfOperationDays.cpp index cfb4e6e98d7..9f975cac9dd 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/HoursOfOperationDays.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/HoursOfOperationDays.cpp @@ -20,18 +20,18 @@ namespace Aws namespace HoursOfOperationDaysMapper { - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); HoursOfOperationDays GetHoursOfOperationDaysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUNDAY_HASH) { return HoursOfOperationDays::SUNDAY; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/InstanceAttributeType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/InstanceAttributeType.cpp index f96990a48e0..c1867bf3ff2 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/InstanceAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/InstanceAttributeType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace InstanceAttributeTypeMapper { - static const int INBOUND_CALLS_HASH = HashingUtils::HashString("INBOUND_CALLS"); - static const int OUTBOUND_CALLS_HASH = HashingUtils::HashString("OUTBOUND_CALLS"); - static const int CONTACTFLOW_LOGS_HASH = HashingUtils::HashString("CONTACTFLOW_LOGS"); - static const int CONTACT_LENS_HASH = HashingUtils::HashString("CONTACT_LENS"); - static const int AUTO_RESOLVE_BEST_VOICES_HASH = HashingUtils::HashString("AUTO_RESOLVE_BEST_VOICES"); - static const int USE_CUSTOM_TTS_VOICES_HASH = HashingUtils::HashString("USE_CUSTOM_TTS_VOICES"); - static const int EARLY_MEDIA_HASH = HashingUtils::HashString("EARLY_MEDIA"); - static const int MULTI_PARTY_CONFERENCE_HASH = HashingUtils::HashString("MULTI_PARTY_CONFERENCE"); - static const int HIGH_VOLUME_OUTBOUND_HASH = HashingUtils::HashString("HIGH_VOLUME_OUTBOUND"); - static const int ENHANCED_CONTACT_MONITORING_HASH = HashingUtils::HashString("ENHANCED_CONTACT_MONITORING"); + static constexpr uint32_t INBOUND_CALLS_HASH = ConstExprHashingUtils::HashString("INBOUND_CALLS"); + static constexpr uint32_t OUTBOUND_CALLS_HASH = ConstExprHashingUtils::HashString("OUTBOUND_CALLS"); + static constexpr uint32_t CONTACTFLOW_LOGS_HASH = ConstExprHashingUtils::HashString("CONTACTFLOW_LOGS"); + static constexpr uint32_t CONTACT_LENS_HASH = ConstExprHashingUtils::HashString("CONTACT_LENS"); + static constexpr uint32_t AUTO_RESOLVE_BEST_VOICES_HASH = ConstExprHashingUtils::HashString("AUTO_RESOLVE_BEST_VOICES"); + static constexpr uint32_t USE_CUSTOM_TTS_VOICES_HASH = ConstExprHashingUtils::HashString("USE_CUSTOM_TTS_VOICES"); + static constexpr uint32_t EARLY_MEDIA_HASH = ConstExprHashingUtils::HashString("EARLY_MEDIA"); + static constexpr uint32_t MULTI_PARTY_CONFERENCE_HASH = ConstExprHashingUtils::HashString("MULTI_PARTY_CONFERENCE"); + static constexpr uint32_t HIGH_VOLUME_OUTBOUND_HASH = ConstExprHashingUtils::HashString("HIGH_VOLUME_OUTBOUND"); + static constexpr uint32_t ENHANCED_CONTACT_MONITORING_HASH = ConstExprHashingUtils::HashString("ENHANCED_CONTACT_MONITORING"); InstanceAttributeType GetInstanceAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INBOUND_CALLS_HASH) { return InstanceAttributeType::INBOUND_CALLS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/InstanceStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/InstanceStatus.cpp index ee7cdecd008..2c752667476 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/InstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/InstanceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceStatusMapper { - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); InstanceStatus GetInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_IN_PROGRESS_HASH) { return InstanceStatus::CREATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/InstanceStorageResourceType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/InstanceStorageResourceType.cpp index e6cd88864eb..b2461b2307e 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/InstanceStorageResourceType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/InstanceStorageResourceType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace InstanceStorageResourceTypeMapper { - static const int CHAT_TRANSCRIPTS_HASH = HashingUtils::HashString("CHAT_TRANSCRIPTS"); - static const int CALL_RECORDINGS_HASH = HashingUtils::HashString("CALL_RECORDINGS"); - static const int SCHEDULED_REPORTS_HASH = HashingUtils::HashString("SCHEDULED_REPORTS"); - static const int MEDIA_STREAMS_HASH = HashingUtils::HashString("MEDIA_STREAMS"); - static const int CONTACT_TRACE_RECORDS_HASH = HashingUtils::HashString("CONTACT_TRACE_RECORDS"); - static const int AGENT_EVENTS_HASH = HashingUtils::HashString("AGENT_EVENTS"); - static const int REAL_TIME_CONTACT_ANALYSIS_SEGMENTS_HASH = HashingUtils::HashString("REAL_TIME_CONTACT_ANALYSIS_SEGMENTS"); - static const int ATTACHMENTS_HASH = HashingUtils::HashString("ATTACHMENTS"); - static const int CONTACT_EVALUATIONS_HASH = HashingUtils::HashString("CONTACT_EVALUATIONS"); - static const int SCREEN_RECORDINGS_HASH = HashingUtils::HashString("SCREEN_RECORDINGS"); + static constexpr uint32_t CHAT_TRANSCRIPTS_HASH = ConstExprHashingUtils::HashString("CHAT_TRANSCRIPTS"); + static constexpr uint32_t CALL_RECORDINGS_HASH = ConstExprHashingUtils::HashString("CALL_RECORDINGS"); + static constexpr uint32_t SCHEDULED_REPORTS_HASH = ConstExprHashingUtils::HashString("SCHEDULED_REPORTS"); + static constexpr uint32_t MEDIA_STREAMS_HASH = ConstExprHashingUtils::HashString("MEDIA_STREAMS"); + static constexpr uint32_t CONTACT_TRACE_RECORDS_HASH = ConstExprHashingUtils::HashString("CONTACT_TRACE_RECORDS"); + static constexpr uint32_t AGENT_EVENTS_HASH = ConstExprHashingUtils::HashString("AGENT_EVENTS"); + static constexpr uint32_t REAL_TIME_CONTACT_ANALYSIS_SEGMENTS_HASH = ConstExprHashingUtils::HashString("REAL_TIME_CONTACT_ANALYSIS_SEGMENTS"); + static constexpr uint32_t ATTACHMENTS_HASH = ConstExprHashingUtils::HashString("ATTACHMENTS"); + static constexpr uint32_t CONTACT_EVALUATIONS_HASH = ConstExprHashingUtils::HashString("CONTACT_EVALUATIONS"); + static constexpr uint32_t SCREEN_RECORDINGS_HASH = ConstExprHashingUtils::HashString("SCREEN_RECORDINGS"); InstanceStorageResourceType GetInstanceStorageResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHAT_TRANSCRIPTS_HASH) { return InstanceStorageResourceType::CHAT_TRANSCRIPTS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/IntegrationType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/IntegrationType.cpp index 913f3126f7a..8c30acb57b5 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/IntegrationType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/IntegrationType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace IntegrationTypeMapper { - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int VOICE_ID_HASH = HashingUtils::HashString("VOICE_ID"); - static const int PINPOINT_APP_HASH = HashingUtils::HashString("PINPOINT_APP"); - static const int WISDOM_ASSISTANT_HASH = HashingUtils::HashString("WISDOM_ASSISTANT"); - static const int WISDOM_KNOWLEDGE_BASE_HASH = HashingUtils::HashString("WISDOM_KNOWLEDGE_BASE"); - static const int CASES_DOMAIN_HASH = HashingUtils::HashString("CASES_DOMAIN"); - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t VOICE_ID_HASH = ConstExprHashingUtils::HashString("VOICE_ID"); + static constexpr uint32_t PINPOINT_APP_HASH = ConstExprHashingUtils::HashString("PINPOINT_APP"); + static constexpr uint32_t WISDOM_ASSISTANT_HASH = ConstExprHashingUtils::HashString("WISDOM_ASSISTANT"); + static constexpr uint32_t WISDOM_KNOWLEDGE_BASE_HASH = ConstExprHashingUtils::HashString("WISDOM_KNOWLEDGE_BASE"); + static constexpr uint32_t CASES_DOMAIN_HASH = ConstExprHashingUtils::HashString("CASES_DOMAIN"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); IntegrationType GetIntegrationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_HASH) { return IntegrationType::EVENT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/IntervalPeriod.cpp b/generated/src/aws-cpp-sdk-connect/source/model/IntervalPeriod.cpp index 7ee4d7fba56..6b0cc2ecaa4 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/IntervalPeriod.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/IntervalPeriod.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IntervalPeriodMapper { - static const int FIFTEEN_MIN_HASH = HashingUtils::HashString("FIFTEEN_MIN"); - static const int THIRTY_MIN_HASH = HashingUtils::HashString("THIRTY_MIN"); - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); - static const int TOTAL_HASH = HashingUtils::HashString("TOTAL"); + static constexpr uint32_t FIFTEEN_MIN_HASH = ConstExprHashingUtils::HashString("FIFTEEN_MIN"); + static constexpr uint32_t THIRTY_MIN_HASH = ConstExprHashingUtils::HashString("THIRTY_MIN"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); + static constexpr uint32_t TOTAL_HASH = ConstExprHashingUtils::HashString("TOTAL"); IntervalPeriod GetIntervalPeriodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIFTEEN_MIN_HASH) { return IntervalPeriod::FIFTEEN_MIN; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/LexVersion.cpp b/generated/src/aws-cpp-sdk-connect/source/model/LexVersion.cpp index c204e4c966f..b6265e446e4 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/LexVersion.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/LexVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LexVersionMapper { - static const int V1_HASH = HashingUtils::HashString("V1"); - static const int V2_HASH = HashingUtils::HashString("V2"); + static constexpr uint32_t V1_HASH = ConstExprHashingUtils::HashString("V1"); + static constexpr uint32_t V2_HASH = ConstExprHashingUtils::HashString("V2"); LexVersion GetLexVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V1_HASH) { return LexVersion::V1; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/MonitorCapability.cpp b/generated/src/aws-cpp-sdk-connect/source/model/MonitorCapability.cpp index c02fa971a32..d73b2a64596 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/MonitorCapability.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/MonitorCapability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MonitorCapabilityMapper { - static const int SILENT_MONITOR_HASH = HashingUtils::HashString("SILENT_MONITOR"); - static const int BARGE_HASH = HashingUtils::HashString("BARGE"); + static constexpr uint32_t SILENT_MONITOR_HASH = ConstExprHashingUtils::HashString("SILENT_MONITOR"); + static constexpr uint32_t BARGE_HASH = ConstExprHashingUtils::HashString("BARGE"); MonitorCapability GetMonitorCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SILENT_MONITOR_HASH) { return MonitorCapability::SILENT_MONITOR; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/NotificationContentType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/NotificationContentType.cpp index f692a0a0e9e..be8cd79d6b7 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/NotificationContentType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/NotificationContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NotificationContentTypeMapper { - static const int PLAIN_TEXT_HASH = HashingUtils::HashString("PLAIN_TEXT"); + static constexpr uint32_t PLAIN_TEXT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT"); NotificationContentType GetNotificationContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAIN_TEXT_HASH) { return NotificationContentType::PLAIN_TEXT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/NotificationDeliveryType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/NotificationDeliveryType.cpp index 3aa8011da16..796714cd0cf 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/NotificationDeliveryType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/NotificationDeliveryType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NotificationDeliveryTypeMapper { - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); NotificationDeliveryType GetNotificationDeliveryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_HASH) { return NotificationDeliveryType::EMAIL; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/NumericQuestionPropertyAutomationLabel.cpp b/generated/src/aws-cpp-sdk-connect/source/model/NumericQuestionPropertyAutomationLabel.cpp index 272ac75f825..01ba6ba6378 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/NumericQuestionPropertyAutomationLabel.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/NumericQuestionPropertyAutomationLabel.cpp @@ -20,19 +20,19 @@ namespace Aws namespace NumericQuestionPropertyAutomationLabelMapper { - static const int OVERALL_CUSTOMER_SENTIMENT_SCORE_HASH = HashingUtils::HashString("OVERALL_CUSTOMER_SENTIMENT_SCORE"); - static const int OVERALL_AGENT_SENTIMENT_SCORE_HASH = HashingUtils::HashString("OVERALL_AGENT_SENTIMENT_SCORE"); - static const int NON_TALK_TIME_HASH = HashingUtils::HashString("NON_TALK_TIME"); - static const int NON_TALK_TIME_PERCENTAGE_HASH = HashingUtils::HashString("NON_TALK_TIME_PERCENTAGE"); - static const int NUMBER_OF_INTERRUPTIONS_HASH = HashingUtils::HashString("NUMBER_OF_INTERRUPTIONS"); - static const int CONTACT_DURATION_HASH = HashingUtils::HashString("CONTACT_DURATION"); - static const int AGENT_INTERACTION_DURATION_HASH = HashingUtils::HashString("AGENT_INTERACTION_DURATION"); - static const int CUSTOMER_HOLD_TIME_HASH = HashingUtils::HashString("CUSTOMER_HOLD_TIME"); + static constexpr uint32_t OVERALL_CUSTOMER_SENTIMENT_SCORE_HASH = ConstExprHashingUtils::HashString("OVERALL_CUSTOMER_SENTIMENT_SCORE"); + static constexpr uint32_t OVERALL_AGENT_SENTIMENT_SCORE_HASH = ConstExprHashingUtils::HashString("OVERALL_AGENT_SENTIMENT_SCORE"); + static constexpr uint32_t NON_TALK_TIME_HASH = ConstExprHashingUtils::HashString("NON_TALK_TIME"); + static constexpr uint32_t NON_TALK_TIME_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("NON_TALK_TIME_PERCENTAGE"); + static constexpr uint32_t NUMBER_OF_INTERRUPTIONS_HASH = ConstExprHashingUtils::HashString("NUMBER_OF_INTERRUPTIONS"); + static constexpr uint32_t CONTACT_DURATION_HASH = ConstExprHashingUtils::HashString("CONTACT_DURATION"); + static constexpr uint32_t AGENT_INTERACTION_DURATION_HASH = ConstExprHashingUtils::HashString("AGENT_INTERACTION_DURATION"); + static constexpr uint32_t CUSTOMER_HOLD_TIME_HASH = ConstExprHashingUtils::HashString("CUSTOMER_HOLD_TIME"); NumericQuestionPropertyAutomationLabel GetNumericQuestionPropertyAutomationLabelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERALL_CUSTOMER_SENTIMENT_SCORE_HASH) { return NumericQuestionPropertyAutomationLabel::OVERALL_CUSTOMER_SENTIMENT_SCORE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ParticipantRole.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ParticipantRole.cpp index a610af0deeb..986ed014bb7 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ParticipantRole.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ParticipantRole.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ParticipantRoleMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int CUSTOM_BOT_HASH = HashingUtils::HashString("CUSTOM_BOT"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t CUSTOM_BOT_HASH = ConstExprHashingUtils::HashString("CUSTOM_BOT"); ParticipantRole GetParticipantRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return ParticipantRole::AGENT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerAction.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerAction.cpp index a145757d3ed..1c92483dacf 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerAction.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ParticipantTimerActionMapper { - static const int Unset_HASH = HashingUtils::HashString("Unset"); + static constexpr uint32_t Unset_HASH = ConstExprHashingUtils::HashString("Unset"); ParticipantTimerAction GetParticipantTimerActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Unset_HASH) { return ParticipantTimerAction::Unset; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerType.cpp index 6b8593d1d63..9733f0372ff 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ParticipantTimerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParticipantTimerTypeMapper { - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int DISCONNECT_NONCUSTOMER_HASH = HashingUtils::HashString("DISCONNECT_NONCUSTOMER"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t DISCONNECT_NONCUSTOMER_HASH = ConstExprHashingUtils::HashString("DISCONNECT_NONCUSTOMER"); ParticipantTimerType GetParticipantTimerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IDLE_HASH) { return ParticipantTimerType::IDLE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberCountryCode.cpp b/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberCountryCode.cpp index 43f6aa1f43d..17ff7db437a 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberCountryCode.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberCountryCode.cpp @@ -20,250 +20,250 @@ namespace Aws namespace PhoneNumberCountryCodeMapper { - static const int AF_HASH = HashingUtils::HashString("AF"); - static const int AL_HASH = HashingUtils::HashString("AL"); - static const int DZ_HASH = HashingUtils::HashString("DZ"); - static const int AS_HASH = HashingUtils::HashString("AS"); - static const int AD_HASH = HashingUtils::HashString("AD"); - static const int AO_HASH = HashingUtils::HashString("AO"); - static const int AI_HASH = HashingUtils::HashString("AI"); - static const int AQ_HASH = HashingUtils::HashString("AQ"); - static const int AG_HASH = HashingUtils::HashString("AG"); - static const int AR_HASH = HashingUtils::HashString("AR"); - static const int AM_HASH = HashingUtils::HashString("AM"); - static const int AW_HASH = HashingUtils::HashString("AW"); - static const int AU_HASH = HashingUtils::HashString("AU"); - static const int AT_HASH = HashingUtils::HashString("AT"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int BS_HASH = HashingUtils::HashString("BS"); - static const int BH_HASH = HashingUtils::HashString("BH"); - static const int BD_HASH = HashingUtils::HashString("BD"); - static const int BB_HASH = HashingUtils::HashString("BB"); - static const int BY_HASH = HashingUtils::HashString("BY"); - static const int BE_HASH = HashingUtils::HashString("BE"); - static const int BZ_HASH = HashingUtils::HashString("BZ"); - static const int BJ_HASH = HashingUtils::HashString("BJ"); - static const int BM_HASH = HashingUtils::HashString("BM"); - static const int BT_HASH = HashingUtils::HashString("BT"); - static const int BO_HASH = HashingUtils::HashString("BO"); - static const int BA_HASH = HashingUtils::HashString("BA"); - static const int BW_HASH = HashingUtils::HashString("BW"); - static const int BR_HASH = HashingUtils::HashString("BR"); - static const int IO_HASH = HashingUtils::HashString("IO"); - static const int VG_HASH = HashingUtils::HashString("VG"); - static const int BN_HASH = HashingUtils::HashString("BN"); - static const int BG_HASH = HashingUtils::HashString("BG"); - static const int BF_HASH = HashingUtils::HashString("BF"); - static const int BI_HASH = HashingUtils::HashString("BI"); - static const int KH_HASH = HashingUtils::HashString("KH"); - static const int CM_HASH = HashingUtils::HashString("CM"); - static const int CA_HASH = HashingUtils::HashString("CA"); - static const int CV_HASH = HashingUtils::HashString("CV"); - static const int KY_HASH = HashingUtils::HashString("KY"); - static const int CF_HASH = HashingUtils::HashString("CF"); - static const int TD_HASH = HashingUtils::HashString("TD"); - static const int CL_HASH = HashingUtils::HashString("CL"); - static const int CN_HASH = HashingUtils::HashString("CN"); - static const int CX_HASH = HashingUtils::HashString("CX"); - static const int CC_HASH = HashingUtils::HashString("CC"); - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int KM_HASH = HashingUtils::HashString("KM"); - static const int CK_HASH = HashingUtils::HashString("CK"); - static const int CR_HASH = HashingUtils::HashString("CR"); - static const int HR_HASH = HashingUtils::HashString("HR"); - static const int CU_HASH = HashingUtils::HashString("CU"); - static const int CW_HASH = HashingUtils::HashString("CW"); - static const int CY_HASH = HashingUtils::HashString("CY"); - static const int CZ_HASH = HashingUtils::HashString("CZ"); - static const int CD_HASH = HashingUtils::HashString("CD"); - static const int DK_HASH = HashingUtils::HashString("DK"); - static const int DJ_HASH = HashingUtils::HashString("DJ"); - static const int DM_HASH = HashingUtils::HashString("DM"); - static const int DO_HASH = HashingUtils::HashString("DO"); - static const int TL_HASH = HashingUtils::HashString("TL"); - static const int EC_HASH = HashingUtils::HashString("EC"); - static const int EG_HASH = HashingUtils::HashString("EG"); - static const int SV_HASH = HashingUtils::HashString("SV"); - static const int GQ_HASH = HashingUtils::HashString("GQ"); - static const int ER_HASH = HashingUtils::HashString("ER"); - static const int EE_HASH = HashingUtils::HashString("EE"); - static const int ET_HASH = HashingUtils::HashString("ET"); - static const int FK_HASH = HashingUtils::HashString("FK"); - static const int FO_HASH = HashingUtils::HashString("FO"); - static const int FJ_HASH = HashingUtils::HashString("FJ"); - static const int FI_HASH = HashingUtils::HashString("FI"); - static const int FR_HASH = HashingUtils::HashString("FR"); - static const int PF_HASH = HashingUtils::HashString("PF"); - static const int GA_HASH = HashingUtils::HashString("GA"); - static const int GM_HASH = HashingUtils::HashString("GM"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int GH_HASH = HashingUtils::HashString("GH"); - static const int GI_HASH = HashingUtils::HashString("GI"); - static const int GR_HASH = HashingUtils::HashString("GR"); - static const int GL_HASH = HashingUtils::HashString("GL"); - static const int GD_HASH = HashingUtils::HashString("GD"); - static const int GU_HASH = HashingUtils::HashString("GU"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GG_HASH = HashingUtils::HashString("GG"); - static const int GN_HASH = HashingUtils::HashString("GN"); - static const int GW_HASH = HashingUtils::HashString("GW"); - static const int GY_HASH = HashingUtils::HashString("GY"); - static const int HT_HASH = HashingUtils::HashString("HT"); - static const int HN_HASH = HashingUtils::HashString("HN"); - static const int HK_HASH = HashingUtils::HashString("HK"); - static const int HU_HASH = HashingUtils::HashString("HU"); - static const int IS_HASH = HashingUtils::HashString("IS"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int IR_HASH = HashingUtils::HashString("IR"); - static const int IQ_HASH = HashingUtils::HashString("IQ"); - static const int IE_HASH = HashingUtils::HashString("IE"); - static const int IM_HASH = HashingUtils::HashString("IM"); - static const int IL_HASH = HashingUtils::HashString("IL"); - static const int IT_HASH = HashingUtils::HashString("IT"); - static const int CI_HASH = HashingUtils::HashString("CI"); - static const int JM_HASH = HashingUtils::HashString("JM"); - static const int JP_HASH = HashingUtils::HashString("JP"); - static const int JE_HASH = HashingUtils::HashString("JE"); - static const int JO_HASH = HashingUtils::HashString("JO"); - static const int KZ_HASH = HashingUtils::HashString("KZ"); - static const int KE_HASH = HashingUtils::HashString("KE"); - static const int KI_HASH = HashingUtils::HashString("KI"); - static const int KW_HASH = HashingUtils::HashString("KW"); - static const int KG_HASH = HashingUtils::HashString("KG"); - static const int LA_HASH = HashingUtils::HashString("LA"); - static const int LV_HASH = HashingUtils::HashString("LV"); - static const int LB_HASH = HashingUtils::HashString("LB"); - static const int LS_HASH = HashingUtils::HashString("LS"); - static const int LR_HASH = HashingUtils::HashString("LR"); - static const int LY_HASH = HashingUtils::HashString("LY"); - static const int LI_HASH = HashingUtils::HashString("LI"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LU_HASH = HashingUtils::HashString("LU"); - static const int MO_HASH = HashingUtils::HashString("MO"); - static const int MK_HASH = HashingUtils::HashString("MK"); - static const int MG_HASH = HashingUtils::HashString("MG"); - static const int MW_HASH = HashingUtils::HashString("MW"); - static const int MY_HASH = HashingUtils::HashString("MY"); - static const int MV_HASH = HashingUtils::HashString("MV"); - static const int ML_HASH = HashingUtils::HashString("ML"); - static const int MT_HASH = HashingUtils::HashString("MT"); - static const int MH_HASH = HashingUtils::HashString("MH"); - static const int MR_HASH = HashingUtils::HashString("MR"); - static const int MU_HASH = HashingUtils::HashString("MU"); - static const int YT_HASH = HashingUtils::HashString("YT"); - static const int MX_HASH = HashingUtils::HashString("MX"); - static const int FM_HASH = HashingUtils::HashString("FM"); - static const int MD_HASH = HashingUtils::HashString("MD"); - static const int MC_HASH = HashingUtils::HashString("MC"); - static const int MN_HASH = HashingUtils::HashString("MN"); - static const int ME_HASH = HashingUtils::HashString("ME"); - static const int MS_HASH = HashingUtils::HashString("MS"); - static const int MA_HASH = HashingUtils::HashString("MA"); - static const int MZ_HASH = HashingUtils::HashString("MZ"); - static const int MM_HASH = HashingUtils::HashString("MM"); - static const int NA_HASH = HashingUtils::HashString("NA"); - static const int NR_HASH = HashingUtils::HashString("NR"); - static const int NP_HASH = HashingUtils::HashString("NP"); - static const int NL_HASH = HashingUtils::HashString("NL"); - static const int AN_HASH = HashingUtils::HashString("AN"); - static const int NC_HASH = HashingUtils::HashString("NC"); - static const int NZ_HASH = HashingUtils::HashString("NZ"); - static const int NI_HASH = HashingUtils::HashString("NI"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int NG_HASH = HashingUtils::HashString("NG"); - static const int NU_HASH = HashingUtils::HashString("NU"); - static const int KP_HASH = HashingUtils::HashString("KP"); - static const int MP_HASH = HashingUtils::HashString("MP"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int OM_HASH = HashingUtils::HashString("OM"); - static const int PK_HASH = HashingUtils::HashString("PK"); - static const int PW_HASH = HashingUtils::HashString("PW"); - static const int PA_HASH = HashingUtils::HashString("PA"); - static const int PG_HASH = HashingUtils::HashString("PG"); - static const int PY_HASH = HashingUtils::HashString("PY"); - static const int PE_HASH = HashingUtils::HashString("PE"); - static const int PH_HASH = HashingUtils::HashString("PH"); - static const int PN_HASH = HashingUtils::HashString("PN"); - static const int PL_HASH = HashingUtils::HashString("PL"); - static const int PT_HASH = HashingUtils::HashString("PT"); - static const int PR_HASH = HashingUtils::HashString("PR"); - static const int QA_HASH = HashingUtils::HashString("QA"); - static const int CG_HASH = HashingUtils::HashString("CG"); - static const int RE_HASH = HashingUtils::HashString("RE"); - static const int RO_HASH = HashingUtils::HashString("RO"); - static const int RU_HASH = HashingUtils::HashString("RU"); - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int BL_HASH = HashingUtils::HashString("BL"); - static const int SH_HASH = HashingUtils::HashString("SH"); - static const int KN_HASH = HashingUtils::HashString("KN"); - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int MF_HASH = HashingUtils::HashString("MF"); - static const int PM_HASH = HashingUtils::HashString("PM"); - static const int VC_HASH = HashingUtils::HashString("VC"); - static const int WS_HASH = HashingUtils::HashString("WS"); - static const int SM_HASH = HashingUtils::HashString("SM"); - static const int ST_HASH = HashingUtils::HashString("ST"); - static const int SA_HASH = HashingUtils::HashString("SA"); - static const int SN_HASH = HashingUtils::HashString("SN"); - static const int RS_HASH = HashingUtils::HashString("RS"); - static const int SC_HASH = HashingUtils::HashString("SC"); - static const int SL_HASH = HashingUtils::HashString("SL"); - static const int SG_HASH = HashingUtils::HashString("SG"); - static const int SX_HASH = HashingUtils::HashString("SX"); - static const int SK_HASH = HashingUtils::HashString("SK"); - static const int SI_HASH = HashingUtils::HashString("SI"); - static const int SB_HASH = HashingUtils::HashString("SB"); - static const int SO_HASH = HashingUtils::HashString("SO"); - static const int ZA_HASH = HashingUtils::HashString("ZA"); - static const int KR_HASH = HashingUtils::HashString("KR"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int LK_HASH = HashingUtils::HashString("LK"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int SR_HASH = HashingUtils::HashString("SR"); - static const int SJ_HASH = HashingUtils::HashString("SJ"); - static const int SZ_HASH = HashingUtils::HashString("SZ"); - static const int SE_HASH = HashingUtils::HashString("SE"); - static const int CH_HASH = HashingUtils::HashString("CH"); - static const int SY_HASH = HashingUtils::HashString("SY"); - static const int TW_HASH = HashingUtils::HashString("TW"); - static const int TJ_HASH = HashingUtils::HashString("TJ"); - static const int TZ_HASH = HashingUtils::HashString("TZ"); - static const int TH_HASH = HashingUtils::HashString("TH"); - static const int TG_HASH = HashingUtils::HashString("TG"); - static const int TK_HASH = HashingUtils::HashString("TK"); - static const int TO_HASH = HashingUtils::HashString("TO"); - static const int TT_HASH = HashingUtils::HashString("TT"); - static const int TN_HASH = HashingUtils::HashString("TN"); - static const int TR_HASH = HashingUtils::HashString("TR"); - static const int TM_HASH = HashingUtils::HashString("TM"); - static const int TC_HASH = HashingUtils::HashString("TC"); - static const int TV_HASH = HashingUtils::HashString("TV"); - static const int VI_HASH = HashingUtils::HashString("VI"); - static const int UG_HASH = HashingUtils::HashString("UG"); - static const int UA_HASH = HashingUtils::HashString("UA"); - static const int AE_HASH = HashingUtils::HashString("AE"); - static const int GB_HASH = HashingUtils::HashString("GB"); - static const int US_HASH = HashingUtils::HashString("US"); - static const int UY_HASH = HashingUtils::HashString("UY"); - static const int UZ_HASH = HashingUtils::HashString("UZ"); - static const int VU_HASH = HashingUtils::HashString("VU"); - static const int VA_HASH = HashingUtils::HashString("VA"); - static const int VE_HASH = HashingUtils::HashString("VE"); - static const int VN_HASH = HashingUtils::HashString("VN"); - static const int WF_HASH = HashingUtils::HashString("WF"); - static const int EH_HASH = HashingUtils::HashString("EH"); - static const int YE_HASH = HashingUtils::HashString("YE"); - static const int ZM_HASH = HashingUtils::HashString("ZM"); - static const int ZW_HASH = HashingUtils::HashString("ZW"); + static constexpr uint32_t AF_HASH = ConstExprHashingUtils::HashString("AF"); + static constexpr uint32_t AL_HASH = ConstExprHashingUtils::HashString("AL"); + static constexpr uint32_t DZ_HASH = ConstExprHashingUtils::HashString("DZ"); + static constexpr uint32_t AS_HASH = ConstExprHashingUtils::HashString("AS"); + static constexpr uint32_t AD_HASH = ConstExprHashingUtils::HashString("AD"); + static constexpr uint32_t AO_HASH = ConstExprHashingUtils::HashString("AO"); + static constexpr uint32_t AI_HASH = ConstExprHashingUtils::HashString("AI"); + static constexpr uint32_t AQ_HASH = ConstExprHashingUtils::HashString("AQ"); + static constexpr uint32_t AG_HASH = ConstExprHashingUtils::HashString("AG"); + static constexpr uint32_t AR_HASH = ConstExprHashingUtils::HashString("AR"); + static constexpr uint32_t AM_HASH = ConstExprHashingUtils::HashString("AM"); + static constexpr uint32_t AW_HASH = ConstExprHashingUtils::HashString("AW"); + static constexpr uint32_t AU_HASH = ConstExprHashingUtils::HashString("AU"); + static constexpr uint32_t AT_HASH = ConstExprHashingUtils::HashString("AT"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t BS_HASH = ConstExprHashingUtils::HashString("BS"); + static constexpr uint32_t BH_HASH = ConstExprHashingUtils::HashString("BH"); + static constexpr uint32_t BD_HASH = ConstExprHashingUtils::HashString("BD"); + static constexpr uint32_t BB_HASH = ConstExprHashingUtils::HashString("BB"); + static constexpr uint32_t BY_HASH = ConstExprHashingUtils::HashString("BY"); + static constexpr uint32_t BE_HASH = ConstExprHashingUtils::HashString("BE"); + static constexpr uint32_t BZ_HASH = ConstExprHashingUtils::HashString("BZ"); + static constexpr uint32_t BJ_HASH = ConstExprHashingUtils::HashString("BJ"); + static constexpr uint32_t BM_HASH = ConstExprHashingUtils::HashString("BM"); + static constexpr uint32_t BT_HASH = ConstExprHashingUtils::HashString("BT"); + static constexpr uint32_t BO_HASH = ConstExprHashingUtils::HashString("BO"); + static constexpr uint32_t BA_HASH = ConstExprHashingUtils::HashString("BA"); + static constexpr uint32_t BW_HASH = ConstExprHashingUtils::HashString("BW"); + static constexpr uint32_t BR_HASH = ConstExprHashingUtils::HashString("BR"); + static constexpr uint32_t IO_HASH = ConstExprHashingUtils::HashString("IO"); + static constexpr uint32_t VG_HASH = ConstExprHashingUtils::HashString("VG"); + static constexpr uint32_t BN_HASH = ConstExprHashingUtils::HashString("BN"); + static constexpr uint32_t BG_HASH = ConstExprHashingUtils::HashString("BG"); + static constexpr uint32_t BF_HASH = ConstExprHashingUtils::HashString("BF"); + static constexpr uint32_t BI_HASH = ConstExprHashingUtils::HashString("BI"); + static constexpr uint32_t KH_HASH = ConstExprHashingUtils::HashString("KH"); + static constexpr uint32_t CM_HASH = ConstExprHashingUtils::HashString("CM"); + static constexpr uint32_t CA_HASH = ConstExprHashingUtils::HashString("CA"); + static constexpr uint32_t CV_HASH = ConstExprHashingUtils::HashString("CV"); + static constexpr uint32_t KY_HASH = ConstExprHashingUtils::HashString("KY"); + static constexpr uint32_t CF_HASH = ConstExprHashingUtils::HashString("CF"); + static constexpr uint32_t TD_HASH = ConstExprHashingUtils::HashString("TD"); + static constexpr uint32_t CL_HASH = ConstExprHashingUtils::HashString("CL"); + static constexpr uint32_t CN_HASH = ConstExprHashingUtils::HashString("CN"); + static constexpr uint32_t CX_HASH = ConstExprHashingUtils::HashString("CX"); + static constexpr uint32_t CC_HASH = ConstExprHashingUtils::HashString("CC"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t KM_HASH = ConstExprHashingUtils::HashString("KM"); + static constexpr uint32_t CK_HASH = ConstExprHashingUtils::HashString("CK"); + static constexpr uint32_t CR_HASH = ConstExprHashingUtils::HashString("CR"); + static constexpr uint32_t HR_HASH = ConstExprHashingUtils::HashString("HR"); + static constexpr uint32_t CU_HASH = ConstExprHashingUtils::HashString("CU"); + static constexpr uint32_t CW_HASH = ConstExprHashingUtils::HashString("CW"); + static constexpr uint32_t CY_HASH = ConstExprHashingUtils::HashString("CY"); + static constexpr uint32_t CZ_HASH = ConstExprHashingUtils::HashString("CZ"); + static constexpr uint32_t CD_HASH = ConstExprHashingUtils::HashString("CD"); + static constexpr uint32_t DK_HASH = ConstExprHashingUtils::HashString("DK"); + static constexpr uint32_t DJ_HASH = ConstExprHashingUtils::HashString("DJ"); + static constexpr uint32_t DM_HASH = ConstExprHashingUtils::HashString("DM"); + static constexpr uint32_t DO_HASH = ConstExprHashingUtils::HashString("DO"); + static constexpr uint32_t TL_HASH = ConstExprHashingUtils::HashString("TL"); + static constexpr uint32_t EC_HASH = ConstExprHashingUtils::HashString("EC"); + static constexpr uint32_t EG_HASH = ConstExprHashingUtils::HashString("EG"); + static constexpr uint32_t SV_HASH = ConstExprHashingUtils::HashString("SV"); + static constexpr uint32_t GQ_HASH = ConstExprHashingUtils::HashString("GQ"); + static constexpr uint32_t ER_HASH = ConstExprHashingUtils::HashString("ER"); + static constexpr uint32_t EE_HASH = ConstExprHashingUtils::HashString("EE"); + static constexpr uint32_t ET_HASH = ConstExprHashingUtils::HashString("ET"); + static constexpr uint32_t FK_HASH = ConstExprHashingUtils::HashString("FK"); + static constexpr uint32_t FO_HASH = ConstExprHashingUtils::HashString("FO"); + static constexpr uint32_t FJ_HASH = ConstExprHashingUtils::HashString("FJ"); + static constexpr uint32_t FI_HASH = ConstExprHashingUtils::HashString("FI"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t PF_HASH = ConstExprHashingUtils::HashString("PF"); + static constexpr uint32_t GA_HASH = ConstExprHashingUtils::HashString("GA"); + static constexpr uint32_t GM_HASH = ConstExprHashingUtils::HashString("GM"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t GH_HASH = ConstExprHashingUtils::HashString("GH"); + static constexpr uint32_t GI_HASH = ConstExprHashingUtils::HashString("GI"); + static constexpr uint32_t GR_HASH = ConstExprHashingUtils::HashString("GR"); + static constexpr uint32_t GL_HASH = ConstExprHashingUtils::HashString("GL"); + static constexpr uint32_t GD_HASH = ConstExprHashingUtils::HashString("GD"); + static constexpr uint32_t GU_HASH = ConstExprHashingUtils::HashString("GU"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GG_HASH = ConstExprHashingUtils::HashString("GG"); + static constexpr uint32_t GN_HASH = ConstExprHashingUtils::HashString("GN"); + static constexpr uint32_t GW_HASH = ConstExprHashingUtils::HashString("GW"); + static constexpr uint32_t GY_HASH = ConstExprHashingUtils::HashString("GY"); + static constexpr uint32_t HT_HASH = ConstExprHashingUtils::HashString("HT"); + static constexpr uint32_t HN_HASH = ConstExprHashingUtils::HashString("HN"); + static constexpr uint32_t HK_HASH = ConstExprHashingUtils::HashString("HK"); + static constexpr uint32_t HU_HASH = ConstExprHashingUtils::HashString("HU"); + static constexpr uint32_t IS_HASH = ConstExprHashingUtils::HashString("IS"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t IR_HASH = ConstExprHashingUtils::HashString("IR"); + static constexpr uint32_t IQ_HASH = ConstExprHashingUtils::HashString("IQ"); + static constexpr uint32_t IE_HASH = ConstExprHashingUtils::HashString("IE"); + static constexpr uint32_t IM_HASH = ConstExprHashingUtils::HashString("IM"); + static constexpr uint32_t IL_HASH = ConstExprHashingUtils::HashString("IL"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t CI_HASH = ConstExprHashingUtils::HashString("CI"); + static constexpr uint32_t JM_HASH = ConstExprHashingUtils::HashString("JM"); + static constexpr uint32_t JP_HASH = ConstExprHashingUtils::HashString("JP"); + static constexpr uint32_t JE_HASH = ConstExprHashingUtils::HashString("JE"); + static constexpr uint32_t JO_HASH = ConstExprHashingUtils::HashString("JO"); + static constexpr uint32_t KZ_HASH = ConstExprHashingUtils::HashString("KZ"); + static constexpr uint32_t KE_HASH = ConstExprHashingUtils::HashString("KE"); + static constexpr uint32_t KI_HASH = ConstExprHashingUtils::HashString("KI"); + static constexpr uint32_t KW_HASH = ConstExprHashingUtils::HashString("KW"); + static constexpr uint32_t KG_HASH = ConstExprHashingUtils::HashString("KG"); + static constexpr uint32_t LA_HASH = ConstExprHashingUtils::HashString("LA"); + static constexpr uint32_t LV_HASH = ConstExprHashingUtils::HashString("LV"); + static constexpr uint32_t LB_HASH = ConstExprHashingUtils::HashString("LB"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); + static constexpr uint32_t LR_HASH = ConstExprHashingUtils::HashString("LR"); + static constexpr uint32_t LY_HASH = ConstExprHashingUtils::HashString("LY"); + static constexpr uint32_t LI_HASH = ConstExprHashingUtils::HashString("LI"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LU_HASH = ConstExprHashingUtils::HashString("LU"); + static constexpr uint32_t MO_HASH = ConstExprHashingUtils::HashString("MO"); + static constexpr uint32_t MK_HASH = ConstExprHashingUtils::HashString("MK"); + static constexpr uint32_t MG_HASH = ConstExprHashingUtils::HashString("MG"); + static constexpr uint32_t MW_HASH = ConstExprHashingUtils::HashString("MW"); + static constexpr uint32_t MY_HASH = ConstExprHashingUtils::HashString("MY"); + static constexpr uint32_t MV_HASH = ConstExprHashingUtils::HashString("MV"); + static constexpr uint32_t ML_HASH = ConstExprHashingUtils::HashString("ML"); + static constexpr uint32_t MT_HASH = ConstExprHashingUtils::HashString("MT"); + static constexpr uint32_t MH_HASH = ConstExprHashingUtils::HashString("MH"); + static constexpr uint32_t MR_HASH = ConstExprHashingUtils::HashString("MR"); + static constexpr uint32_t MU_HASH = ConstExprHashingUtils::HashString("MU"); + static constexpr uint32_t YT_HASH = ConstExprHashingUtils::HashString("YT"); + static constexpr uint32_t MX_HASH = ConstExprHashingUtils::HashString("MX"); + static constexpr uint32_t FM_HASH = ConstExprHashingUtils::HashString("FM"); + static constexpr uint32_t MD_HASH = ConstExprHashingUtils::HashString("MD"); + static constexpr uint32_t MC_HASH = ConstExprHashingUtils::HashString("MC"); + static constexpr uint32_t MN_HASH = ConstExprHashingUtils::HashString("MN"); + static constexpr uint32_t ME_HASH = ConstExprHashingUtils::HashString("ME"); + static constexpr uint32_t MS_HASH = ConstExprHashingUtils::HashString("MS"); + static constexpr uint32_t MA_HASH = ConstExprHashingUtils::HashString("MA"); + static constexpr uint32_t MZ_HASH = ConstExprHashingUtils::HashString("MZ"); + static constexpr uint32_t MM_HASH = ConstExprHashingUtils::HashString("MM"); + static constexpr uint32_t NA_HASH = ConstExprHashingUtils::HashString("NA"); + static constexpr uint32_t NR_HASH = ConstExprHashingUtils::HashString("NR"); + static constexpr uint32_t NP_HASH = ConstExprHashingUtils::HashString("NP"); + static constexpr uint32_t NL_HASH = ConstExprHashingUtils::HashString("NL"); + static constexpr uint32_t AN_HASH = ConstExprHashingUtils::HashString("AN"); + static constexpr uint32_t NC_HASH = ConstExprHashingUtils::HashString("NC"); + static constexpr uint32_t NZ_HASH = ConstExprHashingUtils::HashString("NZ"); + static constexpr uint32_t NI_HASH = ConstExprHashingUtils::HashString("NI"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t NG_HASH = ConstExprHashingUtils::HashString("NG"); + static constexpr uint32_t NU_HASH = ConstExprHashingUtils::HashString("NU"); + static constexpr uint32_t KP_HASH = ConstExprHashingUtils::HashString("KP"); + static constexpr uint32_t MP_HASH = ConstExprHashingUtils::HashString("MP"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t OM_HASH = ConstExprHashingUtils::HashString("OM"); + static constexpr uint32_t PK_HASH = ConstExprHashingUtils::HashString("PK"); + static constexpr uint32_t PW_HASH = ConstExprHashingUtils::HashString("PW"); + static constexpr uint32_t PA_HASH = ConstExprHashingUtils::HashString("PA"); + static constexpr uint32_t PG_HASH = ConstExprHashingUtils::HashString("PG"); + static constexpr uint32_t PY_HASH = ConstExprHashingUtils::HashString("PY"); + static constexpr uint32_t PE_HASH = ConstExprHashingUtils::HashString("PE"); + static constexpr uint32_t PH_HASH = ConstExprHashingUtils::HashString("PH"); + static constexpr uint32_t PN_HASH = ConstExprHashingUtils::HashString("PN"); + static constexpr uint32_t PL_HASH = ConstExprHashingUtils::HashString("PL"); + static constexpr uint32_t PT_HASH = ConstExprHashingUtils::HashString("PT"); + static constexpr uint32_t PR_HASH = ConstExprHashingUtils::HashString("PR"); + static constexpr uint32_t QA_HASH = ConstExprHashingUtils::HashString("QA"); + static constexpr uint32_t CG_HASH = ConstExprHashingUtils::HashString("CG"); + static constexpr uint32_t RE_HASH = ConstExprHashingUtils::HashString("RE"); + static constexpr uint32_t RO_HASH = ConstExprHashingUtils::HashString("RO"); + static constexpr uint32_t RU_HASH = ConstExprHashingUtils::HashString("RU"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t BL_HASH = ConstExprHashingUtils::HashString("BL"); + static constexpr uint32_t SH_HASH = ConstExprHashingUtils::HashString("SH"); + static constexpr uint32_t KN_HASH = ConstExprHashingUtils::HashString("KN"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t MF_HASH = ConstExprHashingUtils::HashString("MF"); + static constexpr uint32_t PM_HASH = ConstExprHashingUtils::HashString("PM"); + static constexpr uint32_t VC_HASH = ConstExprHashingUtils::HashString("VC"); + static constexpr uint32_t WS_HASH = ConstExprHashingUtils::HashString("WS"); + static constexpr uint32_t SM_HASH = ConstExprHashingUtils::HashString("SM"); + static constexpr uint32_t ST_HASH = ConstExprHashingUtils::HashString("ST"); + static constexpr uint32_t SA_HASH = ConstExprHashingUtils::HashString("SA"); + static constexpr uint32_t SN_HASH = ConstExprHashingUtils::HashString("SN"); + static constexpr uint32_t RS_HASH = ConstExprHashingUtils::HashString("RS"); + static constexpr uint32_t SC_HASH = ConstExprHashingUtils::HashString("SC"); + static constexpr uint32_t SL_HASH = ConstExprHashingUtils::HashString("SL"); + static constexpr uint32_t SG_HASH = ConstExprHashingUtils::HashString("SG"); + static constexpr uint32_t SX_HASH = ConstExprHashingUtils::HashString("SX"); + static constexpr uint32_t SK_HASH = ConstExprHashingUtils::HashString("SK"); + static constexpr uint32_t SI_HASH = ConstExprHashingUtils::HashString("SI"); + static constexpr uint32_t SB_HASH = ConstExprHashingUtils::HashString("SB"); + static constexpr uint32_t SO_HASH = ConstExprHashingUtils::HashString("SO"); + static constexpr uint32_t ZA_HASH = ConstExprHashingUtils::HashString("ZA"); + static constexpr uint32_t KR_HASH = ConstExprHashingUtils::HashString("KR"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t LK_HASH = ConstExprHashingUtils::HashString("LK"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t SR_HASH = ConstExprHashingUtils::HashString("SR"); + static constexpr uint32_t SJ_HASH = ConstExprHashingUtils::HashString("SJ"); + static constexpr uint32_t SZ_HASH = ConstExprHashingUtils::HashString("SZ"); + static constexpr uint32_t SE_HASH = ConstExprHashingUtils::HashString("SE"); + static constexpr uint32_t CH_HASH = ConstExprHashingUtils::HashString("CH"); + static constexpr uint32_t SY_HASH = ConstExprHashingUtils::HashString("SY"); + static constexpr uint32_t TW_HASH = ConstExprHashingUtils::HashString("TW"); + static constexpr uint32_t TJ_HASH = ConstExprHashingUtils::HashString("TJ"); + static constexpr uint32_t TZ_HASH = ConstExprHashingUtils::HashString("TZ"); + static constexpr uint32_t TH_HASH = ConstExprHashingUtils::HashString("TH"); + static constexpr uint32_t TG_HASH = ConstExprHashingUtils::HashString("TG"); + static constexpr uint32_t TK_HASH = ConstExprHashingUtils::HashString("TK"); + static constexpr uint32_t TO_HASH = ConstExprHashingUtils::HashString("TO"); + static constexpr uint32_t TT_HASH = ConstExprHashingUtils::HashString("TT"); + static constexpr uint32_t TN_HASH = ConstExprHashingUtils::HashString("TN"); + static constexpr uint32_t TR_HASH = ConstExprHashingUtils::HashString("TR"); + static constexpr uint32_t TM_HASH = ConstExprHashingUtils::HashString("TM"); + static constexpr uint32_t TC_HASH = ConstExprHashingUtils::HashString("TC"); + static constexpr uint32_t TV_HASH = ConstExprHashingUtils::HashString("TV"); + static constexpr uint32_t VI_HASH = ConstExprHashingUtils::HashString("VI"); + static constexpr uint32_t UG_HASH = ConstExprHashingUtils::HashString("UG"); + static constexpr uint32_t UA_HASH = ConstExprHashingUtils::HashString("UA"); + static constexpr uint32_t AE_HASH = ConstExprHashingUtils::HashString("AE"); + static constexpr uint32_t GB_HASH = ConstExprHashingUtils::HashString("GB"); + static constexpr uint32_t US_HASH = ConstExprHashingUtils::HashString("US"); + static constexpr uint32_t UY_HASH = ConstExprHashingUtils::HashString("UY"); + static constexpr uint32_t UZ_HASH = ConstExprHashingUtils::HashString("UZ"); + static constexpr uint32_t VU_HASH = ConstExprHashingUtils::HashString("VU"); + static constexpr uint32_t VA_HASH = ConstExprHashingUtils::HashString("VA"); + static constexpr uint32_t VE_HASH = ConstExprHashingUtils::HashString("VE"); + static constexpr uint32_t VN_HASH = ConstExprHashingUtils::HashString("VN"); + static constexpr uint32_t WF_HASH = ConstExprHashingUtils::HashString("WF"); + static constexpr uint32_t EH_HASH = ConstExprHashingUtils::HashString("EH"); + static constexpr uint32_t YE_HASH = ConstExprHashingUtils::HashString("YE"); + static constexpr uint32_t ZM_HASH = ConstExprHashingUtils::HashString("ZM"); + static constexpr uint32_t ZW_HASH = ConstExprHashingUtils::HashString("ZW"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, PhoneNumberCountryCode& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, PhoneNumberCountryCode& enumValue) { if (hashCode == AF_HASH) { @@ -877,7 +877,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, PhoneNumberCountryCode& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, PhoneNumberCountryCode& enumValue) { if (hashCode == MK_HASH) { @@ -2187,7 +2187,7 @@ namespace Aws PhoneNumberCountryCode GetPhoneNumberCountryCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); PhoneNumberCountryCode enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberType.cpp index 377f48562b4..55894e220a0 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PhoneNumberTypeMapper { - static const int TOLL_FREE_HASH = HashingUtils::HashString("TOLL_FREE"); - static const int DID_HASH = HashingUtils::HashString("DID"); - static const int UIFN_HASH = HashingUtils::HashString("UIFN"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int THIRD_PARTY_TF_HASH = HashingUtils::HashString("THIRD_PARTY_TF"); - static const int THIRD_PARTY_DID_HASH = HashingUtils::HashString("THIRD_PARTY_DID"); + static constexpr uint32_t TOLL_FREE_HASH = ConstExprHashingUtils::HashString("TOLL_FREE"); + static constexpr uint32_t DID_HASH = ConstExprHashingUtils::HashString("DID"); + static constexpr uint32_t UIFN_HASH = ConstExprHashingUtils::HashString("UIFN"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t THIRD_PARTY_TF_HASH = ConstExprHashingUtils::HashString("THIRD_PARTY_TF"); + static constexpr uint32_t THIRD_PARTY_DID_HASH = ConstExprHashingUtils::HashString("THIRD_PARTY_DID"); PhoneNumberType GetPhoneNumberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOLL_FREE_HASH) { return PhoneNumberType::TOLL_FREE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberWorkflowStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberWorkflowStatus.cpp index 0cfc1dc8d88..99e2a3f0dbb 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberWorkflowStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/PhoneNumberWorkflowStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PhoneNumberWorkflowStatusMapper { - static const int CLAIMED_HASH = HashingUtils::HashString("CLAIMED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CLAIMED_HASH = ConstExprHashingUtils::HashString("CLAIMED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); PhoneNumberWorkflowStatus GetPhoneNumberWorkflowStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLAIMED_HASH) { return PhoneNumberWorkflowStatus::CLAIMED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/PhoneType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/PhoneType.cpp index ba82ff61c17..3eeb4b3aff7 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/PhoneType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/PhoneType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PhoneTypeMapper { - static const int SOFT_PHONE_HASH = HashingUtils::HashString("SOFT_PHONE"); - static const int DESK_PHONE_HASH = HashingUtils::HashString("DESK_PHONE"); + static constexpr uint32_t SOFT_PHONE_HASH = ConstExprHashingUtils::HashString("SOFT_PHONE"); + static constexpr uint32_t DESK_PHONE_HASH = ConstExprHashingUtils::HashString("DESK_PHONE"); PhoneType GetPhoneTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOFT_PHONE_HASH) { return PhoneType::SOFT_PHONE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/PropertyValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-connect/source/model/PropertyValidationExceptionReason.cpp index 2c8f085e5d2..5a8fd48b7a2 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/PropertyValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/PropertyValidationExceptionReason.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PropertyValidationExceptionReasonMapper { - static const int INVALID_FORMAT_HASH = HashingUtils::HashString("INVALID_FORMAT"); - static const int UNIQUE_CONSTRAINT_VIOLATED_HASH = HashingUtils::HashString("UNIQUE_CONSTRAINT_VIOLATED"); - static const int REFERENCED_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("REFERENCED_RESOURCE_NOT_FOUND"); - static const int RESOURCE_NAME_ALREADY_EXISTS_HASH = HashingUtils::HashString("RESOURCE_NAME_ALREADY_EXISTS"); - static const int REQUIRED_PROPERTY_MISSING_HASH = HashingUtils::HashString("REQUIRED_PROPERTY_MISSING"); - static const int NOT_SUPPORTED_HASH = HashingUtils::HashString("NOT_SUPPORTED"); + static constexpr uint32_t INVALID_FORMAT_HASH = ConstExprHashingUtils::HashString("INVALID_FORMAT"); + static constexpr uint32_t UNIQUE_CONSTRAINT_VIOLATED_HASH = ConstExprHashingUtils::HashString("UNIQUE_CONSTRAINT_VIOLATED"); + static constexpr uint32_t REFERENCED_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("REFERENCED_RESOURCE_NOT_FOUND"); + static constexpr uint32_t RESOURCE_NAME_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RESOURCE_NAME_ALREADY_EXISTS"); + static constexpr uint32_t REQUIRED_PROPERTY_MISSING_HASH = ConstExprHashingUtils::HashString("REQUIRED_PROPERTY_MISSING"); + static constexpr uint32_t NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("NOT_SUPPORTED"); PropertyValidationExceptionReason GetPropertyValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_FORMAT_HASH) { return PropertyValidationExceptionReason::INVALID_FORMAT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/QueueStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/QueueStatus.cpp index 1847781429b..de8c9dd182c 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/QueueStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/QueueStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueueStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); QueueStatus GetQueueStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return QueueStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/QueueType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/QueueType.cpp index ae889871fa8..f79a88d8e33 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/QueueType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/QueueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueueTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); QueueType GetQueueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return QueueType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/QuickConnectType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/QuickConnectType.cpp index eafe28b6e6b..ff0fe5e8434 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/QuickConnectType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/QuickConnectType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace QuickConnectTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int QUEUE_HASH = HashingUtils::HashString("QUEUE"); - static const int PHONE_NUMBER_HASH = HashingUtils::HashString("PHONE_NUMBER"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t QUEUE_HASH = ConstExprHashingUtils::HashString("QUEUE"); + static constexpr uint32_t PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER"); QuickConnectType GetQuickConnectTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return QuickConnectType::USER; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ReferenceStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ReferenceStatus.cpp index 74d990b7fe7..45e74d80853 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ReferenceStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ReferenceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReferenceStatusMapper { - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); ReferenceStatus GetReferenceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVED_HASH) { return ReferenceStatus::APPROVED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ReferenceType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ReferenceType.cpp index a672797e613..da74c5e4f60 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ReferenceType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ReferenceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReferenceTypeMapper { - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int ATTACHMENT_HASH = HashingUtils::HashString("ATTACHMENT"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t ATTACHMENT_HASH = ConstExprHashingUtils::HashString("ATTACHMENT"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); ReferenceType GetReferenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == URL_HASH) { return ReferenceType::URL; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/RehydrationType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/RehydrationType.cpp index 0dd7046dbc1..5c6a3f13b44 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/RehydrationType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/RehydrationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RehydrationTypeMapper { - static const int ENTIRE_PAST_SESSION_HASH = HashingUtils::HashString("ENTIRE_PAST_SESSION"); - static const int FROM_SEGMENT_HASH = HashingUtils::HashString("FROM_SEGMENT"); + static constexpr uint32_t ENTIRE_PAST_SESSION_HASH = ConstExprHashingUtils::HashString("ENTIRE_PAST_SESSION"); + static constexpr uint32_t FROM_SEGMENT_HASH = ConstExprHashingUtils::HashString("FROM_SEGMENT"); RehydrationType GetRehydrationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENTIRE_PAST_SESSION_HASH) { return RehydrationType::ENTIRE_PAST_SESSION; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ResourceType.cpp index 7e5755247a8..ef893245864 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ResourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ResourceTypeMapper { - static const int CONTACT_HASH = HashingUtils::HashString("CONTACT"); - static const int CONTACT_FLOW_HASH = HashingUtils::HashString("CONTACT_FLOW"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); - static const int PARTICIPANT_HASH = HashingUtils::HashString("PARTICIPANT"); - static const int HIERARCHY_LEVEL_HASH = HashingUtils::HashString("HIERARCHY_LEVEL"); - static const int HIERARCHY_GROUP_HASH = HashingUtils::HashString("HIERARCHY_GROUP"); - static const int USER_HASH = HashingUtils::HashString("USER"); + static constexpr uint32_t CONTACT_HASH = ConstExprHashingUtils::HashString("CONTACT"); + static constexpr uint32_t CONTACT_FLOW_HASH = ConstExprHashingUtils::HashString("CONTACT_FLOW"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); + static constexpr uint32_t PARTICIPANT_HASH = ConstExprHashingUtils::HashString("PARTICIPANT"); + static constexpr uint32_t HIERARCHY_LEVEL_HASH = ConstExprHashingUtils::HashString("HIERARCHY_LEVEL"); + static constexpr uint32_t HIERARCHY_GROUP_HASH = ConstExprHashingUtils::HashString("HIERARCHY_GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTACT_HASH) { return ResourceType::CONTACT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/RulePublishStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/RulePublishStatus.cpp index 36178e23dc6..8fdde987502 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/RulePublishStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/RulePublishStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RulePublishStatusMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); RulePublishStatus GetRulePublishStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return RulePublishStatus::DRAFT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/SearchableQueueType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/SearchableQueueType.cpp index e3f9788e6be..27dedf6c001 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/SearchableQueueType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/SearchableQueueType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SearchableQueueTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); SearchableQueueType GetSearchableQueueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return SearchableQueueType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/SingleSelectQuestionRuleCategoryAutomationCondition.cpp b/generated/src/aws-cpp-sdk-connect/source/model/SingleSelectQuestionRuleCategoryAutomationCondition.cpp index f6c52191a89..d96db28ae34 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/SingleSelectQuestionRuleCategoryAutomationCondition.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/SingleSelectQuestionRuleCategoryAutomationCondition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SingleSelectQuestionRuleCategoryAutomationConditionMapper { - static const int PRESENT_HASH = HashingUtils::HashString("PRESENT"); - static const int NOT_PRESENT_HASH = HashingUtils::HashString("NOT_PRESENT"); + static constexpr uint32_t PRESENT_HASH = ConstExprHashingUtils::HashString("PRESENT"); + static constexpr uint32_t NOT_PRESENT_HASH = ConstExprHashingUtils::HashString("NOT_PRESENT"); SingleSelectQuestionRuleCategoryAutomationCondition GetSingleSelectQuestionRuleCategoryAutomationConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESENT_HASH) { return SingleSelectQuestionRuleCategoryAutomationCondition::PRESENT; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-connect/source/model/SortOrder.cpp index 2c9bd718a42..18c24be335d 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/SourceType.cpp index 47a6258d977..52147237651 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/SourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SourceTypeMapper { - static const int SALESFORCE_HASH = HashingUtils::HashString("SALESFORCE"); - static const int ZENDESK_HASH = HashingUtils::HashString("ZENDESK"); + static constexpr uint32_t SALESFORCE_HASH = ConstExprHashingUtils::HashString("SALESFORCE"); + static constexpr uint32_t ZENDESK_HASH = ConstExprHashingUtils::HashString("ZENDESK"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SALESFORCE_HASH) { return SourceType::SALESFORCE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/Statistic.cpp b/generated/src/aws-cpp-sdk-connect/source/model/Statistic.cpp index eb69e4a6c7a..bb81e28b707 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/Statistic.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/Statistic.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatisticMapper { - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int AVG_HASH = HashingUtils::HashString("AVG"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t AVG_HASH = ConstExprHashingUtils::HashString("AVG"); Statistic GetStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_HASH) { return Statistic::SUM; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/StorageType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/StorageType.cpp index 50c108c3057..4445edc5d30 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/StorageType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/StorageType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StorageTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int KINESIS_VIDEO_STREAM_HASH = HashingUtils::HashString("KINESIS_VIDEO_STREAM"); - static const int KINESIS_STREAM_HASH = HashingUtils::HashString("KINESIS_STREAM"); - static const int KINESIS_FIREHOSE_HASH = HashingUtils::HashString("KINESIS_FIREHOSE"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t KINESIS_VIDEO_STREAM_HASH = ConstExprHashingUtils::HashString("KINESIS_VIDEO_STREAM"); + static constexpr uint32_t KINESIS_STREAM_HASH = ConstExprHashingUtils::HashString("KINESIS_STREAM"); + static constexpr uint32_t KINESIS_FIREHOSE_HASH = ConstExprHashingUtils::HashString("KINESIS_FIREHOSE"); StorageType GetStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return StorageType::S3; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/StringComparisonType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/StringComparisonType.cpp index d381755923b..8e37012d68a 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/StringComparisonType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/StringComparisonType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StringComparisonTypeMapper { - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); StringComparisonType GetStringComparisonTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTS_WITH_HASH) { return StringComparisonType::STARTS_WITH; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateFieldType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateFieldType.cpp index 4383f18a034..80d0f0739b4 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateFieldType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateFieldType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace TaskTemplateFieldTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int DESCRIPTION_HASH = HashingUtils::HashString("DESCRIPTION"); - static const int SCHEDULED_TIME_HASH = HashingUtils::HashString("SCHEDULED_TIME"); - static const int QUICK_CONNECT_HASH = HashingUtils::HashString("QUICK_CONNECT"); - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); - static const int TEXT_AREA_HASH = HashingUtils::HashString("TEXT_AREA"); - static const int DATE_TIME_HASH = HashingUtils::HashString("DATE_TIME"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int SINGLE_SELECT_HASH = HashingUtils::HashString("SINGLE_SELECT"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t DESCRIPTION_HASH = ConstExprHashingUtils::HashString("DESCRIPTION"); + static constexpr uint32_t SCHEDULED_TIME_HASH = ConstExprHashingUtils::HashString("SCHEDULED_TIME"); + static constexpr uint32_t QUICK_CONNECT_HASH = ConstExprHashingUtils::HashString("QUICK_CONNECT"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); + static constexpr uint32_t TEXT_AREA_HASH = ConstExprHashingUtils::HashString("TEXT_AREA"); + static constexpr uint32_t DATE_TIME_HASH = ConstExprHashingUtils::HashString("DATE_TIME"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t SINGLE_SELECT_HASH = ConstExprHashingUtils::HashString("SINGLE_SELECT"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); TaskTemplateFieldType GetTaskTemplateFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return TaskTemplateFieldType::NAME; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateStatus.cpp index 8f959435a52..8ec25a6d032 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/TaskTemplateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TaskTemplateStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); TaskTemplateStatus GetTaskTemplateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TaskTemplateStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/TimerEligibleParticipantRoles.cpp b/generated/src/aws-cpp-sdk-connect/source/model/TimerEligibleParticipantRoles.cpp index a8a72f31f5b..3c3081dbc5c 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/TimerEligibleParticipantRoles.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/TimerEligibleParticipantRoles.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimerEligibleParticipantRolesMapper { - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); TimerEligibleParticipantRoles GetTimerEligibleParticipantRolesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_HASH) { return TimerEligibleParticipantRoles::CUSTOMER; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/TrafficDistributionGroupStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/TrafficDistributionGroupStatus.cpp index bd61d869402..9133211a651 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/TrafficDistributionGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/TrafficDistributionGroupStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TrafficDistributionGroupStatusMapper { - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); TrafficDistributionGroupStatus GetTrafficDistributionGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_IN_PROGRESS_HASH) { return TrafficDistributionGroupStatus::CREATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/TrafficType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/TrafficType.cpp index dfb0a4e8c8e..c92eb0041c7 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/TrafficType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/TrafficType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrafficTypeMapper { - static const int GENERAL_HASH = HashingUtils::HashString("GENERAL"); - static const int CAMPAIGN_HASH = HashingUtils::HashString("CAMPAIGN"); + static constexpr uint32_t GENERAL_HASH = ConstExprHashingUtils::HashString("GENERAL"); + static constexpr uint32_t CAMPAIGN_HASH = ConstExprHashingUtils::HashString("CAMPAIGN"); TrafficType GetTrafficTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERAL_HASH) { return TrafficType::GENERAL; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-connect/source/model/Unit.cpp index 7902d5cd8bd..27b25c9d875 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/Unit.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UnitMapper { - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int PERCENT_HASH = HashingUtils::HashString("PERCENT"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t PERCENT_HASH = ConstExprHashingUtils::HashString("PERCENT"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECONDS_HASH) { return Unit::SECONDS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/UseCaseType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/UseCaseType.cpp index b2d477f8389..56f7a0b7354 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/UseCaseType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/UseCaseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UseCaseTypeMapper { - static const int RULES_EVALUATION_HASH = HashingUtils::HashString("RULES_EVALUATION"); - static const int CONNECT_CAMPAIGNS_HASH = HashingUtils::HashString("CONNECT_CAMPAIGNS"); + static constexpr uint32_t RULES_EVALUATION_HASH = ConstExprHashingUtils::HashString("RULES_EVALUATION"); + static constexpr uint32_t CONNECT_CAMPAIGNS_HASH = ConstExprHashingUtils::HashString("CONNECT_CAMPAIGNS"); UseCaseType GetUseCaseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RULES_EVALUATION_HASH) { return UseCaseType::RULES_EVALUATION; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ViewStatus.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ViewStatus.cpp index 86f750710b5..1cf6328af39 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ViewStatus.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ViewStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ViewStatusMapper { - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); - static const int SAVED_HASH = HashingUtils::HashString("SAVED"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t SAVED_HASH = ConstExprHashingUtils::HashString("SAVED"); ViewStatus GetViewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISHED_HASH) { return ViewStatus::PUBLISHED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/ViewType.cpp b/generated/src/aws-cpp-sdk-connect/source/model/ViewType.cpp index e495fee51a6..bcd345f208c 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/ViewType.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/ViewType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ViewTypeMapper { - static const int CUSTOMER_MANAGED_HASH = HashingUtils::HashString("CUSTOMER_MANAGED"); - static const int AWS_MANAGED_HASH = HashingUtils::HashString("AWS_MANAGED"); + static constexpr uint32_t CUSTOMER_MANAGED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED"); + static constexpr uint32_t AWS_MANAGED_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED"); ViewType GetViewTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_HASH) { return ViewType::CUSTOMER_MANAGED; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/VocabularyLanguageCode.cpp b/generated/src/aws-cpp-sdk-connect/source/model/VocabularyLanguageCode.cpp index 1b001ade03b..2b653b7eaef 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/VocabularyLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/VocabularyLanguageCode.cpp @@ -20,34 +20,34 @@ namespace Aws namespace VocabularyLanguageCodeMapper { - static const int ar_AE_HASH = HashingUtils::HashString("ar-AE"); - static const int de_CH_HASH = HashingUtils::HashString("de-CH"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int en_AB_HASH = HashingUtils::HashString("en-AB"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int en_IE_HASH = HashingUtils::HashString("en-IE"); - static const int en_IN_HASH = HashingUtils::HashString("en-IN"); - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_WL_HASH = HashingUtils::HashString("en-WL"); - static const int es_ES_HASH = HashingUtils::HashString("es-ES"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int pt_PT_HASH = HashingUtils::HashString("pt-PT"); - static const int zh_CN_HASH = HashingUtils::HashString("zh-CN"); - static const int en_NZ_HASH = HashingUtils::HashString("en-NZ"); - static const int en_ZA_HASH = HashingUtils::HashString("en-ZA"); + static constexpr uint32_t ar_AE_HASH = ConstExprHashingUtils::HashString("ar-AE"); + static constexpr uint32_t de_CH_HASH = ConstExprHashingUtils::HashString("de-CH"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t en_AB_HASH = ConstExprHashingUtils::HashString("en-AB"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t en_IE_HASH = ConstExprHashingUtils::HashString("en-IE"); + static constexpr uint32_t en_IN_HASH = ConstExprHashingUtils::HashString("en-IN"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_WL_HASH = ConstExprHashingUtils::HashString("en-WL"); + static constexpr uint32_t es_ES_HASH = ConstExprHashingUtils::HashString("es-ES"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t pt_PT_HASH = ConstExprHashingUtils::HashString("pt-PT"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh-CN"); + static constexpr uint32_t en_NZ_HASH = ConstExprHashingUtils::HashString("en-NZ"); + static constexpr uint32_t en_ZA_HASH = ConstExprHashingUtils::HashString("en-ZA"); VocabularyLanguageCode GetVocabularyLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ar_AE_HASH) { return VocabularyLanguageCode::ar_AE; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/VocabularyState.cpp b/generated/src/aws-cpp-sdk-connect/source/model/VocabularyState.cpp index 1c26ab74c82..1bf5e1da7c6 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/VocabularyState.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/VocabularyState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VocabularyStateMapper { - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); VocabularyState GetVocabularyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_IN_PROGRESS_HASH) { return VocabularyState::CREATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-connect/source/model/VoiceRecordingTrack.cpp b/generated/src/aws-cpp-sdk-connect/source/model/VoiceRecordingTrack.cpp index 0c1b34b1b79..c251767b815 100644 --- a/generated/src/aws-cpp-sdk-connect/source/model/VoiceRecordingTrack.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/model/VoiceRecordingTrack.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VoiceRecordingTrackMapper { - static const int FROM_AGENT_HASH = HashingUtils::HashString("FROM_AGENT"); - static const int TO_AGENT_HASH = HashingUtils::HashString("TO_AGENT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t FROM_AGENT_HASH = ConstExprHashingUtils::HashString("FROM_AGENT"); + static constexpr uint32_t TO_AGENT_HASH = ConstExprHashingUtils::HashString("TO_AGENT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); VoiceRecordingTrack GetVoiceRecordingTrackForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FROM_AGENT_HASH) { return VoiceRecordingTrack::FROM_AGENT; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsErrors.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsErrors.cpp index 1ae9b0ad49d..59a3d81d999 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsErrors.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsErrors.cpp @@ -82,16 +82,16 @@ template<> AWS_CONNECTCAMPAIGNS_API InvalidStateException ConnectCampaignsError: namespace ConnectCampaignsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INVALID_CAMPAIGN_STATE_HASH = HashingUtils::HashString("InvalidCampaignStateException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INVALID_CAMPAIGN_STATE_HASH = ConstExprHashingUtils::HashString("InvalidCampaignStateException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/CampaignState.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/CampaignState.cpp index 9044c88d7ae..d46621c68be 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/CampaignState.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/CampaignState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CampaignStateMapper { - static const int Initialized_HASH = HashingUtils::HashString("Initialized"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Paused_HASH = HashingUtils::HashString("Paused"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Initialized_HASH = ConstExprHashingUtils::HashString("Initialized"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Paused_HASH = ConstExprHashingUtils::HashString("Paused"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); CampaignState GetCampaignStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initialized_HASH) { return CampaignState::Initialized; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/EncryptionType.cpp index f38ba95eabe..3001626dfa5 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/EncryptionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncryptionTypeMapper { - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KMS_HASH) { return EncryptionType::KMS; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/FailureCode.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/FailureCode.cpp index a17d735f29a..8d3c8cb177b 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/FailureCode.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/FailureCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FailureCodeMapper { - static const int InvalidInput_HASH = HashingUtils::HashString("InvalidInput"); - static const int RequestThrottled_HASH = HashingUtils::HashString("RequestThrottled"); - static const int UnknownError_HASH = HashingUtils::HashString("UnknownError"); + static constexpr uint32_t InvalidInput_HASH = ConstExprHashingUtils::HashString("InvalidInput"); + static constexpr uint32_t RequestThrottled_HASH = ConstExprHashingUtils::HashString("RequestThrottled"); + static constexpr uint32_t UnknownError_HASH = ConstExprHashingUtils::HashString("UnknownError"); FailureCode GetFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidInput_HASH) { return FailureCode::InvalidInput; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/GetCampaignStateBatchFailureCode.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/GetCampaignStateBatchFailureCode.cpp index d8bd9ee80cc..cf17ef69e66 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/GetCampaignStateBatchFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/GetCampaignStateBatchFailureCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GetCampaignStateBatchFailureCodeMapper { - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); - static const int UnknownError_HASH = HashingUtils::HashString("UnknownError"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t UnknownError_HASH = ConstExprHashingUtils::HashString("UnknownError"); GetCampaignStateBatchFailureCode GetGetCampaignStateBatchFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFound_HASH) { return GetCampaignStateBatchFailureCode::ResourceNotFound; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceIdFilterOperator.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceIdFilterOperator.cpp index 3c1d420cd7c..db5a5b54bbc 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceIdFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceIdFilterOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InstanceIdFilterOperatorMapper { - static const int Eq_HASH = HashingUtils::HashString("Eq"); + static constexpr uint32_t Eq_HASH = ConstExprHashingUtils::HashString("Eq"); InstanceIdFilterOperator GetInstanceIdFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Eq_HASH) { return InstanceIdFilterOperator::Eq; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobFailureCode.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobFailureCode.cpp index 4ca133144c2..367cb1da69c 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobFailureCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InstanceOnboardingJobFailureCodeMapper { - static const int EVENT_BRIDGE_ACCESS_DENIED_HASH = HashingUtils::HashString("EVENT_BRIDGE_ACCESS_DENIED"); - static const int EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED"); - static const int IAM_ACCESS_DENIED_HASH = HashingUtils::HashString("IAM_ACCESS_DENIED"); - static const int KMS_ACCESS_DENIED_HASH = HashingUtils::HashString("KMS_ACCESS_DENIED"); - static const int KMS_KEY_NOT_FOUND_HASH = HashingUtils::HashString("KMS_KEY_NOT_FOUND"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t EVENT_BRIDGE_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("EVENT_BRIDGE_ACCESS_DENIED"); + static constexpr uint32_t EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED"); + static constexpr uint32_t IAM_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("IAM_ACCESS_DENIED"); + static constexpr uint32_t KMS_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("KMS_ACCESS_DENIED"); + static constexpr uint32_t KMS_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KMS_KEY_NOT_FOUND"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); InstanceOnboardingJobFailureCode GetInstanceOnboardingJobFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_BRIDGE_ACCESS_DENIED_HASH) { return InstanceOnboardingJobFailureCode::EVENT_BRIDGE_ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobStatusCode.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobStatusCode.cpp index 9a658fe94de..c8bba69cfd8 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/model/InstanceOnboardingJobStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceOnboardingJobStatusCodeMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); InstanceOnboardingJobStatusCode GetInstanceOnboardingJobStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return InstanceOnboardingJobStatusCode::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesErrors.cpp b/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesErrors.cpp index a130119cbd9..172044eb6df 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesErrors.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesErrors.cpp @@ -33,14 +33,14 @@ template<> AWS_CONNECTCASES_API ResourceNotFoundException ConnectCasesError::Get namespace ConnectCasesErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/CommentBodyTextType.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/CommentBodyTextType.cpp index 578f771ab9c..e5f92297cd2 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/CommentBodyTextType.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/CommentBodyTextType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CommentBodyTextTypeMapper { - static const int Text_Plain_HASH = HashingUtils::HashString("Text/Plain"); + static constexpr uint32_t Text_Plain_HASH = ConstExprHashingUtils::HashString("Text/Plain"); CommentBodyTextType GetCommentBodyTextTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Text_Plain_HASH) { return CommentBodyTextType::Text_Plain; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/DomainStatus.cpp index 407e0aac7f5..e2bb427a4ef 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/DomainStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DomainStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int CreationInProgress_HASH = HashingUtils::HashString("CreationInProgress"); - static const int CreationFailed_HASH = HashingUtils::HashString("CreationFailed"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t CreationInProgress_HASH = ConstExprHashingUtils::HashString("CreationInProgress"); + static constexpr uint32_t CreationFailed_HASH = ConstExprHashingUtils::HashString("CreationFailed"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return DomainStatus::Active; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/FieldNamespace.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/FieldNamespace.cpp index b1b41d17673..84a8b70b0fd 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/FieldNamespace.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/FieldNamespace.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FieldNamespaceMapper { - static const int System_HASH = HashingUtils::HashString("System"); - static const int Custom_HASH = HashingUtils::HashString("Custom"); + static constexpr uint32_t System_HASH = ConstExprHashingUtils::HashString("System"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); FieldNamespace GetFieldNamespaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == System_HASH) { return FieldNamespace::System; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/FieldType.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/FieldType.cpp index e187e9f71ac..53dc972c9b5 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/FieldType.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/FieldType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FieldTypeMapper { - static const int Text_HASH = HashingUtils::HashString("Text"); - static const int Number_HASH = HashingUtils::HashString("Number"); - static const int Boolean_HASH = HashingUtils::HashString("Boolean"); - static const int DateTime_HASH = HashingUtils::HashString("DateTime"); - static const int SingleSelect_HASH = HashingUtils::HashString("SingleSelect"); - static const int Url_HASH = HashingUtils::HashString("Url"); + static constexpr uint32_t Text_HASH = ConstExprHashingUtils::HashString("Text"); + static constexpr uint32_t Number_HASH = ConstExprHashingUtils::HashString("Number"); + static constexpr uint32_t Boolean_HASH = ConstExprHashingUtils::HashString("Boolean"); + static constexpr uint32_t DateTime_HASH = ConstExprHashingUtils::HashString("DateTime"); + static constexpr uint32_t SingleSelect_HASH = ConstExprHashingUtils::HashString("SingleSelect"); + static constexpr uint32_t Url_HASH = ConstExprHashingUtils::HashString("Url"); FieldType GetFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Text_HASH) { return FieldType::Text; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/Order.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/Order.cpp index e2127538839..8cbad26a3b9 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/Order.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/Order.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderMapper { - static const int Asc_HASH = HashingUtils::HashString("Asc"); - static const int Desc_HASH = HashingUtils::HashString("Desc"); + static constexpr uint32_t Asc_HASH = ConstExprHashingUtils::HashString("Asc"); + static constexpr uint32_t Desc_HASH = ConstExprHashingUtils::HashString("Desc"); Order GetOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Asc_HASH) { return Order::Asc; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp index 7347a20bdf3..cb71b854dd1 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/RelatedItemType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RelatedItemTypeMapper { - static const int Contact_HASH = HashingUtils::HashString("Contact"); - static const int Comment_HASH = HashingUtils::HashString("Comment"); + static constexpr uint32_t Contact_HASH = ConstExprHashingUtils::HashString("Contact"); + static constexpr uint32_t Comment_HASH = ConstExprHashingUtils::HashString("Comment"); RelatedItemType GetRelatedItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Contact_HASH) { return RelatedItemType::Contact; diff --git a/generated/src/aws-cpp-sdk-connectcases/source/model/TemplateStatus.cpp b/generated/src/aws-cpp-sdk-connectcases/source/model/TemplateStatus.cpp index 23d0ff582de..a17b8dfc52f 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/model/TemplateStatus.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/model/TemplateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); TemplateStatus GetTemplateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return TemplateStatus::Active; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantErrors.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantErrors.cpp index e7d3272099f..5ad1a04b55f 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantErrors.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_CONNECTPARTICIPANT_API ResourceNotFoundException ConnectParticipa namespace ConnectParticipantErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ArtifactStatus.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ArtifactStatus.cpp index 272f5aa2bfc..b9cfce6a74c 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ArtifactStatus.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ArtifactStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ArtifactStatusMapper { - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); ArtifactStatus GetArtifactStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVED_HASH) { return ArtifactStatus::APPROVED; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ChatItemType.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ChatItemType.cpp index d7efd8ae5a6..d8fce357df4 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ChatItemType.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ChatItemType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ChatItemTypeMapper { - static const int TYPING_HASH = HashingUtils::HashString("TYPING"); - static const int PARTICIPANT_JOINED_HASH = HashingUtils::HashString("PARTICIPANT_JOINED"); - static const int PARTICIPANT_LEFT_HASH = HashingUtils::HashString("PARTICIPANT_LEFT"); - static const int CHAT_ENDED_HASH = HashingUtils::HashString("CHAT_ENDED"); - static const int TRANSFER_SUCCEEDED_HASH = HashingUtils::HashString("TRANSFER_SUCCEEDED"); - static const int TRANSFER_FAILED_HASH = HashingUtils::HashString("TRANSFER_FAILED"); - static const int MESSAGE_HASH = HashingUtils::HashString("MESSAGE"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int ATTACHMENT_HASH = HashingUtils::HashString("ATTACHMENT"); - static const int CONNECTION_ACK_HASH = HashingUtils::HashString("CONNECTION_ACK"); - static const int MESSAGE_DELIVERED_HASH = HashingUtils::HashString("MESSAGE_DELIVERED"); - static const int MESSAGE_READ_HASH = HashingUtils::HashString("MESSAGE_READ"); + static constexpr uint32_t TYPING_HASH = ConstExprHashingUtils::HashString("TYPING"); + static constexpr uint32_t PARTICIPANT_JOINED_HASH = ConstExprHashingUtils::HashString("PARTICIPANT_JOINED"); + static constexpr uint32_t PARTICIPANT_LEFT_HASH = ConstExprHashingUtils::HashString("PARTICIPANT_LEFT"); + static constexpr uint32_t CHAT_ENDED_HASH = ConstExprHashingUtils::HashString("CHAT_ENDED"); + static constexpr uint32_t TRANSFER_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("TRANSFER_SUCCEEDED"); + static constexpr uint32_t TRANSFER_FAILED_HASH = ConstExprHashingUtils::HashString("TRANSFER_FAILED"); + static constexpr uint32_t MESSAGE_HASH = ConstExprHashingUtils::HashString("MESSAGE"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t ATTACHMENT_HASH = ConstExprHashingUtils::HashString("ATTACHMENT"); + static constexpr uint32_t CONNECTION_ACK_HASH = ConstExprHashingUtils::HashString("CONNECTION_ACK"); + static constexpr uint32_t MESSAGE_DELIVERED_HASH = ConstExprHashingUtils::HashString("MESSAGE_DELIVERED"); + static constexpr uint32_t MESSAGE_READ_HASH = ConstExprHashingUtils::HashString("MESSAGE_READ"); ChatItemType GetChatItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TYPING_HASH) { return ChatItemType::TYPING; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ConnectionType.cpp index 7415b18e78d..37d7f8c3cf8 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ConnectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionTypeMapper { - static const int WEBSOCKET_HASH = HashingUtils::HashString("WEBSOCKET"); - static const int CONNECTION_CREDENTIALS_HASH = HashingUtils::HashString("CONNECTION_CREDENTIALS"); + static constexpr uint32_t WEBSOCKET_HASH = ConstExprHashingUtils::HashString("WEBSOCKET"); + static constexpr uint32_t CONNECTION_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("CONNECTION_CREDENTIALS"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEBSOCKET_HASH) { return ConnectionType::WEBSOCKET; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ParticipantRole.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ParticipantRole.cpp index 9d63e528876..03976798ffc 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ParticipantRole.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ParticipantRole.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ParticipantRoleMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int CUSTOM_BOT_HASH = HashingUtils::HashString("CUSTOM_BOT"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t CUSTOM_BOT_HASH = ConstExprHashingUtils::HashString("CUSTOM_BOT"); ParticipantRole GetParticipantRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return ParticipantRole::AGENT; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ResourceType.cpp index 4c39c39ceb0..d7132a72078 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ResourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ResourceTypeMapper { - static const int CONTACT_HASH = HashingUtils::HashString("CONTACT"); - static const int CONTACT_FLOW_HASH = HashingUtils::HashString("CONTACT_FLOW"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); - static const int PARTICIPANT_HASH = HashingUtils::HashString("PARTICIPANT"); - static const int HIERARCHY_LEVEL_HASH = HashingUtils::HashString("HIERARCHY_LEVEL"); - static const int HIERARCHY_GROUP_HASH = HashingUtils::HashString("HIERARCHY_GROUP"); - static const int USER_HASH = HashingUtils::HashString("USER"); + static constexpr uint32_t CONTACT_HASH = ConstExprHashingUtils::HashString("CONTACT"); + static constexpr uint32_t CONTACT_FLOW_HASH = ConstExprHashingUtils::HashString("CONTACT_FLOW"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); + static constexpr uint32_t PARTICIPANT_HASH = ConstExprHashingUtils::HashString("PARTICIPANT"); + static constexpr uint32_t HIERARCHY_LEVEL_HASH = ConstExprHashingUtils::HashString("HIERARCHY_LEVEL"); + static constexpr uint32_t HIERARCHY_GROUP_HASH = ConstExprHashingUtils::HashString("HIERARCHY_GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTACT_HASH) { return ResourceType::CONTACT; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ScanDirection.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ScanDirection.cpp index f4c5143d45c..0a2f147732a 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/ScanDirection.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/ScanDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanDirectionMapper { - static const int FORWARD_HASH = HashingUtils::HashString("FORWARD"); - static const int BACKWARD_HASH = HashingUtils::HashString("BACKWARD"); + static constexpr uint32_t FORWARD_HASH = ConstExprHashingUtils::HashString("FORWARD"); + static constexpr uint32_t BACKWARD_HASH = ConstExprHashingUtils::HashString("BACKWARD"); ScanDirection GetScanDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORWARD_HASH) { return ScanDirection::FORWARD; diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/model/SortKey.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/model/SortKey.cpp index ed0b762ef2f..4b6c3da4303 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/model/SortKey.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/model/SortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortKeyMapper { - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); SortKey GetSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESCENDING_HASH) { return SortKey::DESCENDING; diff --git a/generated/src/aws-cpp-sdk-controltower/source/ControlTowerErrors.cpp b/generated/src/aws-cpp-sdk-controltower/source/ControlTowerErrors.cpp index cb982e3d12f..4bfaa5ad999 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/ControlTowerErrors.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/ControlTowerErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_CONTROLTOWER_API ThrottlingException ControlTowerError::GetModele namespace ControlTowerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationStatus.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationStatus.cpp index afb7ace17ed..cab90a7ee55 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ControlOperationStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); ControlOperationStatus GetControlOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return ControlOperationStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationType.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationType.cpp index 6c6bfe7af71..74907aefc93 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationType.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ControlOperationTypeMapper { - static const int ENABLE_CONTROL_HASH = HashingUtils::HashString("ENABLE_CONTROL"); - static const int DISABLE_CONTROL_HASH = HashingUtils::HashString("DISABLE_CONTROL"); + static constexpr uint32_t ENABLE_CONTROL_HASH = ConstExprHashingUtils::HashString("ENABLE_CONTROL"); + static constexpr uint32_t DISABLE_CONTROL_HASH = ConstExprHashingUtils::HashString("DISABLE_CONTROL"); ControlOperationType GetControlOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_CONTROL_HASH) { return ControlOperationType::ENABLE_CONTROL; diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/DriftStatus.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/DriftStatus.cpp index b31dd83deaf..399d57f8a74 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/DriftStatus.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/DriftStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DriftStatusMapper { - static const int DRIFTED_HASH = HashingUtils::HashString("DRIFTED"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int NOT_CHECKING_HASH = HashingUtils::HashString("NOT_CHECKING"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t DRIFTED_HASH = ConstExprHashingUtils::HashString("DRIFTED"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t NOT_CHECKING_HASH = ConstExprHashingUtils::HashString("NOT_CHECKING"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); DriftStatus GetDriftStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRIFTED_HASH) { return DriftStatus::DRIFTED; diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/EnablementStatus.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/EnablementStatus.cpp index 567ae9a8219..7d58e1863a6 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/EnablementStatus.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/EnablementStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EnablementStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UNDER_CHANGE_HASH = HashingUtils::HashString("UNDER_CHANGE"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UNDER_CHANGE_HASH = ConstExprHashingUtils::HashString("UNDER_CHANGE"); EnablementStatus GetEnablementStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return EnablementStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceErrors.cpp b/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceErrors.cpp index 1162a49b274..f2af629f1bd 100644 --- a/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceErrors.cpp @@ -18,14 +18,14 @@ namespace CostandUsageReportService namespace CostandUsageReportServiceErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int REPORT_LIMIT_REACHED_HASH = HashingUtils::HashString("ReportLimitReachedException"); -static const int DUPLICATE_REPORT_NAME_HASH = HashingUtils::HashString("DuplicateReportNameException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t REPORT_LIMIT_REACHED_HASH = ConstExprHashingUtils::HashString("ReportLimitReachedException"); +static constexpr uint32_t DUPLICATE_REPORT_NAME_HASH = ConstExprHashingUtils::HashString("DuplicateReportNameException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-cur/source/model/AWSRegion.cpp b/generated/src/aws-cpp-sdk-cur/source/model/AWSRegion.cpp index 6cb3157f38b..667dee88932 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/AWSRegion.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/AWSRegion.cpp @@ -20,39 +20,39 @@ namespace Aws namespace AWSRegionMapper { - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_south_2_HASH = HashingUtils::HashString("ap-south-2"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_southeast_3_HASH = HashingUtils::HashString("ap-southeast-3"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_3_HASH = HashingUtils::HashString("ap-northeast-3"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_central_2_HASH = HashingUtils::HashString("eu-central-2"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); - static const int me_central_1_HASH = HashingUtils::HashString("me-central-1"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int cn_northwest_1_HASH = HashingUtils::HashString("cn-northwest-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_south_2_HASH = ConstExprHashingUtils::HashString("ap-south-2"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_southeast_3_HASH = ConstExprHashingUtils::HashString("ap-southeast-3"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_3_HASH = ConstExprHashingUtils::HashString("ap-northeast-3"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_central_2_HASH = ConstExprHashingUtils::HashString("eu-central-2"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t eu_south_2_HASH = ConstExprHashingUtils::HashString("eu-south-2"); + static constexpr uint32_t me_central_1_HASH = ConstExprHashingUtils::HashString("me-central-1"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t cn_northwest_1_HASH = ConstExprHashingUtils::HashString("cn-northwest-1"); AWSRegion GetAWSRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == af_south_1_HASH) { return AWSRegion::af_south_1; diff --git a/generated/src/aws-cpp-sdk-cur/source/model/AdditionalArtifact.cpp b/generated/src/aws-cpp-sdk-cur/source/model/AdditionalArtifact.cpp index 4782cb35d96..bae730e2d0b 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/AdditionalArtifact.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/AdditionalArtifact.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AdditionalArtifactMapper { - static const int REDSHIFT_HASH = HashingUtils::HashString("REDSHIFT"); - static const int QUICKSIGHT_HASH = HashingUtils::HashString("QUICKSIGHT"); - static const int ATHENA_HASH = HashingUtils::HashString("ATHENA"); + static constexpr uint32_t REDSHIFT_HASH = ConstExprHashingUtils::HashString("REDSHIFT"); + static constexpr uint32_t QUICKSIGHT_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT"); + static constexpr uint32_t ATHENA_HASH = ConstExprHashingUtils::HashString("ATHENA"); AdditionalArtifact GetAdditionalArtifactForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REDSHIFT_HASH) { return AdditionalArtifact::REDSHIFT; diff --git a/generated/src/aws-cpp-sdk-cur/source/model/CompressionFormat.cpp b/generated/src/aws-cpp-sdk-cur/source/model/CompressionFormat.cpp index 7b1b2ac94c9..8ff28ce5ab1 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/CompressionFormat.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/CompressionFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CompressionFormatMapper { - static const int ZIP_HASH = HashingUtils::HashString("ZIP"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int Parquet_HASH = HashingUtils::HashString("Parquet"); + static constexpr uint32_t ZIP_HASH = ConstExprHashingUtils::HashString("ZIP"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t Parquet_HASH = ConstExprHashingUtils::HashString("Parquet"); CompressionFormat GetCompressionFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZIP_HASH) { return CompressionFormat::ZIP; diff --git a/generated/src/aws-cpp-sdk-cur/source/model/ReportFormat.cpp b/generated/src/aws-cpp-sdk-cur/source/model/ReportFormat.cpp index 7d76dd80040..211010a7e0e 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/ReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/ReportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportFormatMapper { - static const int textORcsv_HASH = HashingUtils::HashString("textORcsv"); - static const int Parquet_HASH = HashingUtils::HashString("Parquet"); + static constexpr uint32_t textORcsv_HASH = ConstExprHashingUtils::HashString("textORcsv"); + static constexpr uint32_t Parquet_HASH = ConstExprHashingUtils::HashString("Parquet"); ReportFormat GetReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == textORcsv_HASH) { return ReportFormat::textORcsv; diff --git a/generated/src/aws-cpp-sdk-cur/source/model/ReportVersioning.cpp b/generated/src/aws-cpp-sdk-cur/source/model/ReportVersioning.cpp index 2f567541284..3f1be977293 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/ReportVersioning.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/ReportVersioning.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportVersioningMapper { - static const int CREATE_NEW_REPORT_HASH = HashingUtils::HashString("CREATE_NEW_REPORT"); - static const int OVERWRITE_REPORT_HASH = HashingUtils::HashString("OVERWRITE_REPORT"); + static constexpr uint32_t CREATE_NEW_REPORT_HASH = ConstExprHashingUtils::HashString("CREATE_NEW_REPORT"); + static constexpr uint32_t OVERWRITE_REPORT_HASH = ConstExprHashingUtils::HashString("OVERWRITE_REPORT"); ReportVersioning GetReportVersioningForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_NEW_REPORT_HASH) { return ReportVersioning::CREATE_NEW_REPORT; diff --git a/generated/src/aws-cpp-sdk-cur/source/model/SchemaElement.cpp b/generated/src/aws-cpp-sdk-cur/source/model/SchemaElement.cpp index 0d278426ec4..303c92295dd 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/SchemaElement.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/SchemaElement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SchemaElementMapper { - static const int RESOURCES_HASH = HashingUtils::HashString("RESOURCES"); - static const int SPLIT_COST_ALLOCATION_DATA_HASH = HashingUtils::HashString("SPLIT_COST_ALLOCATION_DATA"); + static constexpr uint32_t RESOURCES_HASH = ConstExprHashingUtils::HashString("RESOURCES"); + static constexpr uint32_t SPLIT_COST_ALLOCATION_DATA_HASH = ConstExprHashingUtils::HashString("SPLIT_COST_ALLOCATION_DATA"); SchemaElement GetSchemaElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCES_HASH) { return SchemaElement::RESOURCES; diff --git a/generated/src/aws-cpp-sdk-cur/source/model/TimeUnit.cpp b/generated/src/aws-cpp-sdk-cur/source/model/TimeUnit.cpp index 0d43a0ccdcc..cf7a3cd43f4 100644 --- a/generated/src/aws-cpp-sdk-cur/source/model/TimeUnit.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/model/TimeUnit.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TimeUnitMapper { - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); TimeUnit GetTimeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURLY_HASH) { return TimeUnit::HOURLY; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesErrors.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesErrors.cpp index 2b287a73def..a83dd2f0801 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesErrors.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesErrors.cpp @@ -18,13 +18,13 @@ namespace CustomerProfiles namespace CustomerProfilesErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/AttributeMatchingModel.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/AttributeMatchingModel.cpp index 4a38835f99c..b1fcd8cd181 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/AttributeMatchingModel.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/AttributeMatchingModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AttributeMatchingModelMapper { - static const int ONE_TO_ONE_HASH = HashingUtils::HashString("ONE_TO_ONE"); - static const int MANY_TO_MANY_HASH = HashingUtils::HashString("MANY_TO_MANY"); + static constexpr uint32_t ONE_TO_ONE_HASH = ConstExprHashingUtils::HashString("ONE_TO_ONE"); + static constexpr uint32_t MANY_TO_MANY_HASH = ConstExprHashingUtils::HashString("MANY_TO_MANY"); AttributeMatchingModel GetAttributeMatchingModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_TO_ONE_HASH) { return AttributeMatchingModel::ONE_TO_ONE; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/ConflictResolvingModel.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/ConflictResolvingModel.cpp index 95a67d41a1a..0d89474522c 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/ConflictResolvingModel.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/ConflictResolvingModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConflictResolvingModelMapper { - static const int RECENCY_HASH = HashingUtils::HashString("RECENCY"); - static const int SOURCE_HASH = HashingUtils::HashString("SOURCE"); + static constexpr uint32_t RECENCY_HASH = ConstExprHashingUtils::HashString("RECENCY"); + static constexpr uint32_t SOURCE_HASH = ConstExprHashingUtils::HashString("SOURCE"); ConflictResolvingModel GetConflictResolvingModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECENCY_HASH) { return ConflictResolvingModel::RECENCY; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/DataPullMode.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/DataPullMode.cpp index c8b8ea2870f..4e17819d55a 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/DataPullMode.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/DataPullMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataPullModeMapper { - static const int Incremental_HASH = HashingUtils::HashString("Incremental"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); + static constexpr uint32_t Incremental_HASH = ConstExprHashingUtils::HashString("Incremental"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); DataPullMode GetDataPullModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Incremental_HASH) { return DataPullMode::Incremental; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamDestinationStatus.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamDestinationStatus.cpp index d5d84e9a112..bddc25a33ca 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamDestinationStatus.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamDestinationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventStreamDestinationStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); EventStreamDestinationStatus GetEventStreamDestinationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return EventStreamDestinationStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamState.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamState.cpp index a8e44e40ada..6c150a1cc65 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamState.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/EventStreamState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventStreamStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); EventStreamState GetEventStreamStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return EventStreamState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/FieldContentType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/FieldContentType.cpp index 0e7adf5800f..e421161de89 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/FieldContentType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/FieldContentType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FieldContentTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int PHONE_NUMBER_HASH = HashingUtils::HashString("PHONE_NUMBER"); - static const int EMAIL_ADDRESS_HASH = HashingUtils::HashString("EMAIL_ADDRESS"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER"); + static constexpr uint32_t EMAIL_ADDRESS_HASH = ConstExprHashingUtils::HashString("EMAIL_ADDRESS"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); FieldContentType GetFieldContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return FieldContentType::STRING; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Gender.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Gender.cpp index af6b5fdd39a..757c3ac616a 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Gender.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Gender.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GenderMapper { - static const int MALE_HASH = HashingUtils::HashString("MALE"); - static const int FEMALE_HASH = HashingUtils::HashString("FEMALE"); - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t MALE_HASH = ConstExprHashingUtils::HashString("MALE"); + static constexpr uint32_t FEMALE_HASH = ConstExprHashingUtils::HashString("FEMALE"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); Gender GetGenderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MALE_HASH) { return Gender::MALE; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/IdentityResolutionJobStatus.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/IdentityResolutionJobStatus.cpp index 7b7e08201cd..1b3ebbd4789 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/IdentityResolutionJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/IdentityResolutionJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace IdentityResolutionJobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PREPROCESSING_HASH = HashingUtils::HashString("PREPROCESSING"); - static const int FIND_MATCHING_HASH = HashingUtils::HashString("FIND_MATCHING"); - static const int MERGING_HASH = HashingUtils::HashString("MERGING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PARTIAL_SUCCESS_HASH = HashingUtils::HashString("PARTIAL_SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PREPROCESSING_HASH = ConstExprHashingUtils::HashString("PREPROCESSING"); + static constexpr uint32_t FIND_MATCHING_HASH = ConstExprHashingUtils::HashString("FIND_MATCHING"); + static constexpr uint32_t MERGING_HASH = ConstExprHashingUtils::HashString("MERGING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PARTIAL_SUCCESS_HASH = ConstExprHashingUtils::HashString("PARTIAL_SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); IdentityResolutionJobStatus GetIdentityResolutionJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return IdentityResolutionJobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/JobScheduleDayOfTheWeek.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/JobScheduleDayOfTheWeek.cpp index f2dde6f748c..c3a7d4fc9bf 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/JobScheduleDayOfTheWeek.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/JobScheduleDayOfTheWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobScheduleDayOfTheWeekMapper { - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); JobScheduleDayOfTheWeek GetJobScheduleDayOfTheWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUNDAY_HASH) { return JobScheduleDayOfTheWeek::SUNDAY; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/LogicalOperator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/LogicalOperator.cpp index 360c5e8e5d2..4faa51a7fb2 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/LogicalOperator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/LogicalOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogicalOperatorMapper { - static const int AND_HASH = HashingUtils::HashString("AND"); - static const int OR_HASH = HashingUtils::HashString("OR"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); + static constexpr uint32_t OR_HASH = ConstExprHashingUtils::HashString("OR"); LogicalOperator GetLogicalOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AND_HASH) { return LogicalOperator::AND; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/MarketoConnectorOperator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/MarketoConnectorOperator.cpp index 43567795655..eeba6c77564 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/MarketoConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/MarketoConnectorOperator.cpp @@ -20,27 +20,27 @@ namespace Aws namespace MarketoConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); MarketoConnectorOperator GetMarketoConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return MarketoConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/MatchType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/MatchType.cpp index 4fca9bf3594..be6339b81e6 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/MatchType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/MatchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MatchTypeMapper { - static const int RULE_BASED_MATCHING_HASH = HashingUtils::HashString("RULE_BASED_MATCHING"); - static const int ML_BASED_MATCHING_HASH = HashingUtils::HashString("ML_BASED_MATCHING"); + static constexpr uint32_t RULE_BASED_MATCHING_HASH = ConstExprHashingUtils::HashString("RULE_BASED_MATCHING"); + static constexpr uint32_t ML_BASED_MATCHING_HASH = ConstExprHashingUtils::HashString("ML_BASED_MATCHING"); MatchType GetMatchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RULE_BASED_MATCHING_HASH) { return MatchType::RULE_BASED_MATCHING; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Operator.cpp index ea56417a79d..1272fdf55c0 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Operator.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OperatorMapper { - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUAL_TO_HASH) { return Operator::EQUAL_TO; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/OperatorPropertiesKeys.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/OperatorPropertiesKeys.cpp index af151ef6c3d..60fa5188495 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/OperatorPropertiesKeys.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/OperatorPropertiesKeys.cpp @@ -20,25 +20,25 @@ namespace Aws namespace OperatorPropertiesKeysMapper { - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); - static const int VALUES_HASH = HashingUtils::HashString("VALUES"); - static const int DATA_TYPE_HASH = HashingUtils::HashString("DATA_TYPE"); - static const int UPPER_BOUND_HASH = HashingUtils::HashString("UPPER_BOUND"); - static const int LOWER_BOUND_HASH = HashingUtils::HashString("LOWER_BOUND"); - static const int SOURCE_DATA_TYPE_HASH = HashingUtils::HashString("SOURCE_DATA_TYPE"); - static const int DESTINATION_DATA_TYPE_HASH = HashingUtils::HashString("DESTINATION_DATA_TYPE"); - static const int VALIDATION_ACTION_HASH = HashingUtils::HashString("VALIDATION_ACTION"); - static const int MASK_VALUE_HASH = HashingUtils::HashString("MASK_VALUE"); - static const int MASK_LENGTH_HASH = HashingUtils::HashString("MASK_LENGTH"); - static const int TRUNCATE_LENGTH_HASH = HashingUtils::HashString("TRUNCATE_LENGTH"); - static const int MATH_OPERATION_FIELDS_ORDER_HASH = HashingUtils::HashString("MATH_OPERATION_FIELDS_ORDER"); - static const int CONCAT_FORMAT_HASH = HashingUtils::HashString("CONCAT_FORMAT"); - static const int SUBFIELD_CATEGORY_MAP_HASH = HashingUtils::HashString("SUBFIELD_CATEGORY_MAP"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); + static constexpr uint32_t VALUES_HASH = ConstExprHashingUtils::HashString("VALUES"); + static constexpr uint32_t DATA_TYPE_HASH = ConstExprHashingUtils::HashString("DATA_TYPE"); + static constexpr uint32_t UPPER_BOUND_HASH = ConstExprHashingUtils::HashString("UPPER_BOUND"); + static constexpr uint32_t LOWER_BOUND_HASH = ConstExprHashingUtils::HashString("LOWER_BOUND"); + static constexpr uint32_t SOURCE_DATA_TYPE_HASH = ConstExprHashingUtils::HashString("SOURCE_DATA_TYPE"); + static constexpr uint32_t DESTINATION_DATA_TYPE_HASH = ConstExprHashingUtils::HashString("DESTINATION_DATA_TYPE"); + static constexpr uint32_t VALIDATION_ACTION_HASH = ConstExprHashingUtils::HashString("VALIDATION_ACTION"); + static constexpr uint32_t MASK_VALUE_HASH = ConstExprHashingUtils::HashString("MASK_VALUE"); + static constexpr uint32_t MASK_LENGTH_HASH = ConstExprHashingUtils::HashString("MASK_LENGTH"); + static constexpr uint32_t TRUNCATE_LENGTH_HASH = ConstExprHashingUtils::HashString("TRUNCATE_LENGTH"); + static constexpr uint32_t MATH_OPERATION_FIELDS_ORDER_HASH = ConstExprHashingUtils::HashString("MATH_OPERATION_FIELDS_ORDER"); + static constexpr uint32_t CONCAT_FORMAT_HASH = ConstExprHashingUtils::HashString("CONCAT_FORMAT"); + static constexpr uint32_t SUBFIELD_CATEGORY_MAP_HASH = ConstExprHashingUtils::HashString("SUBFIELD_CATEGORY_MAP"); OperatorPropertiesKeys GetOperatorPropertiesKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALUE_HASH) { return OperatorPropertiesKeys::VALUE; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/PartyType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/PartyType.cpp index 4e476c2e0db..08defe15821 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/PartyType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/PartyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PartyTypeMapper { - static const int INDIVIDUAL_HASH = HashingUtils::HashString("INDIVIDUAL"); - static const int BUSINESS_HASH = HashingUtils::HashString("BUSINESS"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t INDIVIDUAL_HASH = ConstExprHashingUtils::HashString("INDIVIDUAL"); + static constexpr uint32_t BUSINESS_HASH = ConstExprHashingUtils::HashString("BUSINESS"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); PartyType GetPartyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INDIVIDUAL_HASH) { return PartyType::INDIVIDUAL; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/RuleBasedMatchingStatus.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/RuleBasedMatchingStatus.cpp index e5929195452..ecc0fc0bd5c 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/RuleBasedMatchingStatus.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/RuleBasedMatchingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RuleBasedMatchingStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); RuleBasedMatchingStatus GetRuleBasedMatchingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return RuleBasedMatchingStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/S3ConnectorOperator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/S3ConnectorOperator.cpp index e96216d1580..0c39e67dac8 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/S3ConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/S3ConnectorOperator.cpp @@ -20,31 +20,31 @@ namespace Aws namespace S3ConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); S3ConnectorOperator GetS3ConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return S3ConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/SalesforceConnectorOperator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/SalesforceConnectorOperator.cpp index 1bbde2857e0..ed44c1087ca 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/SalesforceConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/SalesforceConnectorOperator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace SalesforceConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); SalesforceConnectorOperator GetSalesforceConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return SalesforceConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/ServiceNowConnectorOperator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/ServiceNowConnectorOperator.cpp index 02e5b9987d9..1f1ac9db05c 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/ServiceNowConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/ServiceNowConnectorOperator.cpp @@ -20,32 +20,32 @@ namespace Aws namespace ServiceNowConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int LESS_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); - static const int EQUAL_TO_HASH = HashingUtils::HashString("EQUAL_TO"); - static const int NOT_EQUAL_TO_HASH = HashingUtils::HashString("NOT_EQUAL_TO"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t EQUAL_TO_HASH = ConstExprHashingUtils::HashString("EQUAL_TO"); + static constexpr uint32_t NOT_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL_TO"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); ServiceNowConnectorOperator GetServiceNowConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return ServiceNowConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/SourceConnectorType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/SourceConnectorType.cpp index f640daaf74d..1e5b6b9d25c 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/SourceConnectorType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/SourceConnectorType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SourceConnectorTypeMapper { - static const int Salesforce_HASH = HashingUtils::HashString("Salesforce"); - static const int Marketo_HASH = HashingUtils::HashString("Marketo"); - static const int Zendesk_HASH = HashingUtils::HashString("Zendesk"); - static const int Servicenow_HASH = HashingUtils::HashString("Servicenow"); - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t Salesforce_HASH = ConstExprHashingUtils::HashString("Salesforce"); + static constexpr uint32_t Marketo_HASH = ConstExprHashingUtils::HashString("Marketo"); + static constexpr uint32_t Zendesk_HASH = ConstExprHashingUtils::HashString("Zendesk"); + static constexpr uint32_t Servicenow_HASH = ConstExprHashingUtils::HashString("Servicenow"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); SourceConnectorType GetSourceConnectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Salesforce_HASH) { return SourceConnectorType::Salesforce; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/StandardIdentifier.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/StandardIdentifier.cpp index ba1131af286..e3b5dc72a13 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/StandardIdentifier.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/StandardIdentifier.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StandardIdentifierMapper { - static const int PROFILE_HASH = HashingUtils::HashString("PROFILE"); - static const int ASSET_HASH = HashingUtils::HashString("ASSET"); - static const int CASE_HASH = HashingUtils::HashString("CASE"); - static const int UNIQUE_HASH = HashingUtils::HashString("UNIQUE"); - static const int SECONDARY_HASH = HashingUtils::HashString("SECONDARY"); - static const int LOOKUP_ONLY_HASH = HashingUtils::HashString("LOOKUP_ONLY"); - static const int NEW_ONLY_HASH = HashingUtils::HashString("NEW_ONLY"); - static const int ORDER_HASH = HashingUtils::HashString("ORDER"); + static constexpr uint32_t PROFILE_HASH = ConstExprHashingUtils::HashString("PROFILE"); + static constexpr uint32_t ASSET_HASH = ConstExprHashingUtils::HashString("ASSET"); + static constexpr uint32_t CASE_HASH = ConstExprHashingUtils::HashString("CASE"); + static constexpr uint32_t UNIQUE_HASH = ConstExprHashingUtils::HashString("UNIQUE"); + static constexpr uint32_t SECONDARY_HASH = ConstExprHashingUtils::HashString("SECONDARY"); + static constexpr uint32_t LOOKUP_ONLY_HASH = ConstExprHashingUtils::HashString("LOOKUP_ONLY"); + static constexpr uint32_t NEW_ONLY_HASH = ConstExprHashingUtils::HashString("NEW_ONLY"); + static constexpr uint32_t ORDER_HASH = ConstExprHashingUtils::HashString("ORDER"); StandardIdentifier GetStandardIdentifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROFILE_HASH) { return StandardIdentifier::PROFILE; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Statistic.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Statistic.cpp index fb9bc7a6952..24fb9789b04 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Statistic.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Statistic.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StatisticMapper { - static const int FIRST_OCCURRENCE_HASH = HashingUtils::HashString("FIRST_OCCURRENCE"); - static const int LAST_OCCURRENCE_HASH = HashingUtils::HashString("LAST_OCCURRENCE"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int MINIMUM_HASH = HashingUtils::HashString("MINIMUM"); - static const int MAXIMUM_HASH = HashingUtils::HashString("MAXIMUM"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int MAX_OCCURRENCE_HASH = HashingUtils::HashString("MAX_OCCURRENCE"); + static constexpr uint32_t FIRST_OCCURRENCE_HASH = ConstExprHashingUtils::HashString("FIRST_OCCURRENCE"); + static constexpr uint32_t LAST_OCCURRENCE_HASH = ConstExprHashingUtils::HashString("LAST_OCCURRENCE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t MINIMUM_HASH = ConstExprHashingUtils::HashString("MINIMUM"); + static constexpr uint32_t MAXIMUM_HASH = ConstExprHashingUtils::HashString("MAXIMUM"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t MAX_OCCURRENCE_HASH = ConstExprHashingUtils::HashString("MAX_OCCURRENCE"); Statistic GetStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIRST_OCCURRENCE_HASH) { return Statistic::FIRST_OCCURRENCE; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Status.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Status.cpp index 6bf22113e2e..0b49582cac8 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Status.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SPLIT_HASH = HashingUtils::HashString("SPLIT"); - static const int RETRY_HASH = HashingUtils::HashString("RETRY"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SPLIT_HASH = ConstExprHashingUtils::HashString("SPLIT"); + static constexpr uint32_t RETRY_HASH = ConstExprHashingUtils::HashString("RETRY"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return Status::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/TaskType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/TaskType.cpp index f7f83faf116..8404ec77ec2 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/TaskType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/TaskType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TaskTypeMapper { - static const int Arithmetic_HASH = HashingUtils::HashString("Arithmetic"); - static const int Filter_HASH = HashingUtils::HashString("Filter"); - static const int Map_HASH = HashingUtils::HashString("Map"); - static const int Mask_HASH = HashingUtils::HashString("Mask"); - static const int Merge_HASH = HashingUtils::HashString("Merge"); - static const int Truncate_HASH = HashingUtils::HashString("Truncate"); - static const int Validate_HASH = HashingUtils::HashString("Validate"); + static constexpr uint32_t Arithmetic_HASH = ConstExprHashingUtils::HashString("Arithmetic"); + static constexpr uint32_t Filter_HASH = ConstExprHashingUtils::HashString("Filter"); + static constexpr uint32_t Map_HASH = ConstExprHashingUtils::HashString("Map"); + static constexpr uint32_t Mask_HASH = ConstExprHashingUtils::HashString("Mask"); + static constexpr uint32_t Merge_HASH = ConstExprHashingUtils::HashString("Merge"); + static constexpr uint32_t Truncate_HASH = ConstExprHashingUtils::HashString("Truncate"); + static constexpr uint32_t Validate_HASH = ConstExprHashingUtils::HashString("Validate"); TaskType GetTaskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Arithmetic_HASH) { return TaskType::Arithmetic; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/TriggerType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/TriggerType.cpp index d778767ad88..25ba93f10e7 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/TriggerType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/TriggerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TriggerTypeMapper { - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int Event_HASH = HashingUtils::HashString("Event"); - static const int OnDemand_HASH = HashingUtils::HashString("OnDemand"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); + static constexpr uint32_t OnDemand_HASH = ConstExprHashingUtils::HashString("OnDemand"); TriggerType GetTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scheduled_HASH) { return TriggerType::Scheduled; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Unit.cpp index 57ffb8aa2b7..4c226ed04c9 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/Unit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UnitMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return Unit::DAYS; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/WorkflowType.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/WorkflowType.cpp index fef439c45e5..ed3fcbd1478 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/WorkflowType.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/WorkflowType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WorkflowTypeMapper { - static const int APPFLOW_INTEGRATION_HASH = HashingUtils::HashString("APPFLOW_INTEGRATION"); + static constexpr uint32_t APPFLOW_INTEGRATION_HASH = ConstExprHashingUtils::HashString("APPFLOW_INTEGRATION"); WorkflowType GetWorkflowTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPFLOW_INTEGRATION_HASH) { return WorkflowType::APPFLOW_INTEGRATION; diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/model/ZendeskConnectorOperator.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/model/ZendeskConnectorOperator.cpp index b632154dc25..3de8695a1f3 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/model/ZendeskConnectorOperator.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/model/ZendeskConnectorOperator.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ZendeskConnectorOperatorMapper { - static const int PROJECTION_HASH = HashingUtils::HashString("PROJECTION"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int ADDITION_HASH = HashingUtils::HashString("ADDITION"); - static const int MULTIPLICATION_HASH = HashingUtils::HashString("MULTIPLICATION"); - static const int DIVISION_HASH = HashingUtils::HashString("DIVISION"); - static const int SUBTRACTION_HASH = HashingUtils::HashString("SUBTRACTION"); - static const int MASK_ALL_HASH = HashingUtils::HashString("MASK_ALL"); - static const int MASK_FIRST_N_HASH = HashingUtils::HashString("MASK_FIRST_N"); - static const int MASK_LAST_N_HASH = HashingUtils::HashString("MASK_LAST_N"); - static const int VALIDATE_NON_NULL_HASH = HashingUtils::HashString("VALIDATE_NON_NULL"); - static const int VALIDATE_NON_ZERO_HASH = HashingUtils::HashString("VALIDATE_NON_ZERO"); - static const int VALIDATE_NON_NEGATIVE_HASH = HashingUtils::HashString("VALIDATE_NON_NEGATIVE"); - static const int VALIDATE_NUMERIC_HASH = HashingUtils::HashString("VALIDATE_NUMERIC"); - static const int NO_OP_HASH = HashingUtils::HashString("NO_OP"); + static constexpr uint32_t PROJECTION_HASH = ConstExprHashingUtils::HashString("PROJECTION"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t ADDITION_HASH = ConstExprHashingUtils::HashString("ADDITION"); + static constexpr uint32_t MULTIPLICATION_HASH = ConstExprHashingUtils::HashString("MULTIPLICATION"); + static constexpr uint32_t DIVISION_HASH = ConstExprHashingUtils::HashString("DIVISION"); + static constexpr uint32_t SUBTRACTION_HASH = ConstExprHashingUtils::HashString("SUBTRACTION"); + static constexpr uint32_t MASK_ALL_HASH = ConstExprHashingUtils::HashString("MASK_ALL"); + static constexpr uint32_t MASK_FIRST_N_HASH = ConstExprHashingUtils::HashString("MASK_FIRST_N"); + static constexpr uint32_t MASK_LAST_N_HASH = ConstExprHashingUtils::HashString("MASK_LAST_N"); + static constexpr uint32_t VALIDATE_NON_NULL_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NULL"); + static constexpr uint32_t VALIDATE_NON_ZERO_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_ZERO"); + static constexpr uint32_t VALIDATE_NON_NEGATIVE_HASH = ConstExprHashingUtils::HashString("VALIDATE_NON_NEGATIVE"); + static constexpr uint32_t VALIDATE_NUMERIC_HASH = ConstExprHashingUtils::HashString("VALIDATE_NUMERIC"); + static constexpr uint32_t NO_OP_HASH = ConstExprHashingUtils::HashString("NO_OP"); ZendeskConnectorOperator GetZendeskConnectorOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECTION_HASH) { return ZendeskConnectorOperator::PROJECTION; diff --git a/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewErrors.cpp b/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewErrors.cpp index eeea92c3c10..a49727c4100 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewErrors.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewErrors.cpp @@ -18,14 +18,14 @@ namespace GlueDataBrew namespace GlueDataBrewErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/AnalyticsMode.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/AnalyticsMode.cpp index 7e1988d67a1..9da46bc2a3c 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/AnalyticsMode.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/AnalyticsMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsModeMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); AnalyticsMode GetAnalyticsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return AnalyticsMode::ENABLE; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/CompressionFormat.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/CompressionFormat.cpp index 5e6816d6be7..91cc0cb11ce 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/CompressionFormat.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/CompressionFormat.cpp @@ -20,20 +20,20 @@ namespace Aws namespace CompressionFormatMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int LZ4_HASH = HashingUtils::HashString("LZ4"); - static const int SNAPPY_HASH = HashingUtils::HashString("SNAPPY"); - static const int BZIP2_HASH = HashingUtils::HashString("BZIP2"); - static const int DEFLATE_HASH = HashingUtils::HashString("DEFLATE"); - static const int LZO_HASH = HashingUtils::HashString("LZO"); - static const int BROTLI_HASH = HashingUtils::HashString("BROTLI"); - static const int ZSTD_HASH = HashingUtils::HashString("ZSTD"); - static const int ZLIB_HASH = HashingUtils::HashString("ZLIB"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t LZ4_HASH = ConstExprHashingUtils::HashString("LZ4"); + static constexpr uint32_t SNAPPY_HASH = ConstExprHashingUtils::HashString("SNAPPY"); + static constexpr uint32_t BZIP2_HASH = ConstExprHashingUtils::HashString("BZIP2"); + static constexpr uint32_t DEFLATE_HASH = ConstExprHashingUtils::HashString("DEFLATE"); + static constexpr uint32_t LZO_HASH = ConstExprHashingUtils::HashString("LZO"); + static constexpr uint32_t BROTLI_HASH = ConstExprHashingUtils::HashString("BROTLI"); + static constexpr uint32_t ZSTD_HASH = ConstExprHashingUtils::HashString("ZSTD"); + static constexpr uint32_t ZLIB_HASH = ConstExprHashingUtils::HashString("ZLIB"); CompressionFormat GetCompressionFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return CompressionFormat::GZIP; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/DatabaseOutputMode.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/DatabaseOutputMode.cpp index 6d6dcaa6135..dd6a06b02e5 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/DatabaseOutputMode.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/DatabaseOutputMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DatabaseOutputModeMapper { - static const int NEW_TABLE_HASH = HashingUtils::HashString("NEW_TABLE"); + static constexpr uint32_t NEW_TABLE_HASH = ConstExprHashingUtils::HashString("NEW_TABLE"); DatabaseOutputMode GetDatabaseOutputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW_TABLE_HASH) { return DatabaseOutputMode::NEW_TABLE; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/EncryptionMode.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/EncryptionMode.cpp index 038e9470206..05ec92147aa 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/EncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/EncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionModeMapper { - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE-KMS"); - static const int SSE_S3_HASH = HashingUtils::HashString("SSE-S3"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE-KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE-S3"); EncryptionMode GetEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSE_KMS_HASH) { return EncryptionMode::SSE_KMS; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/InputFormat.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/InputFormat.cpp index 8ea37f42d7a..f38153f08ef 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/InputFormat.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/InputFormat.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InputFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); - static const int EXCEL_HASH = HashingUtils::HashString("EXCEL"); - static const int ORC_HASH = HashingUtils::HashString("ORC"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); + static constexpr uint32_t EXCEL_HASH = ConstExprHashingUtils::HashString("EXCEL"); + static constexpr uint32_t ORC_HASH = ConstExprHashingUtils::HashString("ORC"); InputFormat GetInputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return InputFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/JobRunState.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/JobRunState.cpp index 625bf6a1e77..f3ca779806a 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/JobRunState.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/JobRunState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobRunStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); JobRunState GetJobRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return JobRunState::STARTING; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/JobType.cpp index 2272ae043b9..eed77ff8946 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/JobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobTypeMapper { - static const int PROFILE_HASH = HashingUtils::HashString("PROFILE"); - static const int RECIPE_HASH = HashingUtils::HashString("RECIPE"); + static constexpr uint32_t PROFILE_HASH = ConstExprHashingUtils::HashString("PROFILE"); + static constexpr uint32_t RECIPE_HASH = ConstExprHashingUtils::HashString("RECIPE"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROFILE_HASH) { return JobType::PROFILE; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/LogSubscription.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/LogSubscription.cpp index 120a2a1ccbf..81f2742d616 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/LogSubscription.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/LogSubscription.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogSubscriptionMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); LogSubscription GetLogSubscriptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return LogSubscription::ENABLE; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/Order.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/Order.cpp index b1f4786c7b6..6c63982f64a 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/Order.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/Order.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderMapper { - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); Order GetOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESCENDING_HASH) { return Order::DESCENDING; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/OrderedBy.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/OrderedBy.cpp index 1460ed23776..99d566ecebd 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/OrderedBy.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/OrderedBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OrderedByMapper { - static const int LAST_MODIFIED_DATE_HASH = HashingUtils::HashString("LAST_MODIFIED_DATE"); + static constexpr uint32_t LAST_MODIFIED_DATE_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_DATE"); OrderedBy GetOrderedByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAST_MODIFIED_DATE_HASH) { return OrderedBy::LAST_MODIFIED_DATE; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/OutputFormat.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/OutputFormat.cpp index 9ab326d78ca..4c122714930 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/OutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/OutputFormat.cpp @@ -20,19 +20,19 @@ namespace Aws namespace OutputFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); - static const int GLUEPARQUET_HASH = HashingUtils::HashString("GLUEPARQUET"); - static const int AVRO_HASH = HashingUtils::HashString("AVRO"); - static const int ORC_HASH = HashingUtils::HashString("ORC"); - static const int XML_HASH = HashingUtils::HashString("XML"); - static const int TABLEAUHYPER_HASH = HashingUtils::HashString("TABLEAUHYPER"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); + static constexpr uint32_t GLUEPARQUET_HASH = ConstExprHashingUtils::HashString("GLUEPARQUET"); + static constexpr uint32_t AVRO_HASH = ConstExprHashingUtils::HashString("AVRO"); + static constexpr uint32_t ORC_HASH = ConstExprHashingUtils::HashString("ORC"); + static constexpr uint32_t XML_HASH = ConstExprHashingUtils::HashString("XML"); + static constexpr uint32_t TABLEAUHYPER_HASH = ConstExprHashingUtils::HashString("TABLEAUHYPER"); OutputFormat GetOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return OutputFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/ParameterType.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/ParameterType.cpp index 6d15ad92c50..ca7de9bddde 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/ParameterType.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/ParameterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ParameterTypeMapper { - static const int Datetime_HASH = HashingUtils::HashString("Datetime"); - static const int Number_HASH = HashingUtils::HashString("Number"); - static const int String_HASH = HashingUtils::HashString("String"); + static constexpr uint32_t Datetime_HASH = ConstExprHashingUtils::HashString("Datetime"); + static constexpr uint32_t Number_HASH = ConstExprHashingUtils::HashString("Number"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); ParameterType GetParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Datetime_HASH) { return ParameterType::Datetime; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/SampleMode.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/SampleMode.cpp index 459c20ea68d..e72244ff38e 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/SampleMode.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/SampleMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SampleModeMapper { - static const int FULL_DATASET_HASH = HashingUtils::HashString("FULL_DATASET"); - static const int CUSTOM_ROWS_HASH = HashingUtils::HashString("CUSTOM_ROWS"); + static constexpr uint32_t FULL_DATASET_HASH = ConstExprHashingUtils::HashString("FULL_DATASET"); + static constexpr uint32_t CUSTOM_ROWS_HASH = ConstExprHashingUtils::HashString("CUSTOM_ROWS"); SampleMode GetSampleModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_DATASET_HASH) { return SampleMode::FULL_DATASET; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/SampleType.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/SampleType.cpp index 97ac737b7cf..950ae11f763 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/SampleType.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/SampleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SampleTypeMapper { - static const int FIRST_N_HASH = HashingUtils::HashString("FIRST_N"); - static const int LAST_N_HASH = HashingUtils::HashString("LAST_N"); - static const int RANDOM_HASH = HashingUtils::HashString("RANDOM"); + static constexpr uint32_t FIRST_N_HASH = ConstExprHashingUtils::HashString("FIRST_N"); + static constexpr uint32_t LAST_N_HASH = ConstExprHashingUtils::HashString("LAST_N"); + static constexpr uint32_t RANDOM_HASH = ConstExprHashingUtils::HashString("RANDOM"); SampleType GetSampleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIRST_N_HASH) { return SampleType::FIRST_N; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/SessionStatus.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/SessionStatus.cpp index 5020bfb4371..9de6a6e9dd3 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/SessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/SessionStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace SessionStatusMapper { - static const int ASSIGNED_HASH = HashingUtils::HashString("ASSIGNED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int RECYCLING_HASH = HashingUtils::HashString("RECYCLING"); - static const int ROTATING_HASH = HashingUtils::HashString("ROTATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t ASSIGNED_HASH = ConstExprHashingUtils::HashString("ASSIGNED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t RECYCLING_HASH = ConstExprHashingUtils::HashString("RECYCLING"); + static constexpr uint32_t ROTATING_HASH = ConstExprHashingUtils::HashString("ROTATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); SessionStatus GetSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSIGNED_HASH) { return SessionStatus::ASSIGNED; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/Source.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/Source.cpp index 037e9ffaa12..00c1f86d999 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/Source.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/Source.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SourceMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int DATA_CATALOG_HASH = HashingUtils::HashString("DATA-CATALOG"); - static const int DATABASE_HASH = HashingUtils::HashString("DATABASE"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t DATA_CATALOG_HASH = ConstExprHashingUtils::HashString("DATA-CATALOG"); + static constexpr uint32_t DATABASE_HASH = ConstExprHashingUtils::HashString("DATABASE"); Source GetSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return Source::S3; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdType.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdType.cpp index 2258dd91e65..b61e3fa11fe 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdType.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ThresholdTypeMapper { - static const int GREATER_THAN_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL"); - static const int LESS_THAN_OR_EQUAL_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); ThresholdType GetThresholdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_THAN_OR_EQUAL_HASH) { return ThresholdType::GREATER_THAN_OR_EQUAL; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdUnit.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdUnit.cpp index 6bed2b566aa..dacdd3ac003 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdUnit.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/ThresholdUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThresholdUnitMapper { - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int PERCENTAGE_HASH = HashingUtils::HashString("PERCENTAGE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t PERCENTAGE_HASH = ConstExprHashingUtils::HashString("PERCENTAGE"); ThresholdUnit GetThresholdUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_HASH) { return ThresholdUnit::COUNT; diff --git a/generated/src/aws-cpp-sdk-databrew/source/model/ValidationMode.cpp b/generated/src/aws-cpp-sdk-databrew/source/model/ValidationMode.cpp index 044ea1089ae..45aa2547dcb 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/model/ValidationMode.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/model/ValidationMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ValidationModeMapper { - static const int CHECK_ALL_HASH = HashingUtils::HashString("CHECK_ALL"); + static constexpr uint32_t CHECK_ALL_HASH = ConstExprHashingUtils::HashString("CHECK_ALL"); ValidationMode GetValidationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHECK_ALL_HASH) { return ValidationMode::CHECK_ALL; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeErrors.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeErrors.cpp index 25fcdf895bc..b6537a8fee8 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeErrors.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_DATAEXCHANGE_API ServiceLimitExceededException DataExchangeError: namespace DataExchangeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/AssetType.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/AssetType.cpp index bd7f650629a..8019618e273 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/AssetType.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/AssetType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssetTypeMapper { - static const int S3_SNAPSHOT_HASH = HashingUtils::HashString("S3_SNAPSHOT"); - static const int REDSHIFT_DATA_SHARE_HASH = HashingUtils::HashString("REDSHIFT_DATA_SHARE"); - static const int API_GATEWAY_API_HASH = HashingUtils::HashString("API_GATEWAY_API"); - static const int S3_DATA_ACCESS_HASH = HashingUtils::HashString("S3_DATA_ACCESS"); - static const int LAKE_FORMATION_DATA_PERMISSION_HASH = HashingUtils::HashString("LAKE_FORMATION_DATA_PERMISSION"); + static constexpr uint32_t S3_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("S3_SNAPSHOT"); + static constexpr uint32_t REDSHIFT_DATA_SHARE_HASH = ConstExprHashingUtils::HashString("REDSHIFT_DATA_SHARE"); + static constexpr uint32_t API_GATEWAY_API_HASH = ConstExprHashingUtils::HashString("API_GATEWAY_API"); + static constexpr uint32_t S3_DATA_ACCESS_HASH = ConstExprHashingUtils::HashString("S3_DATA_ACCESS"); + static constexpr uint32_t LAKE_FORMATION_DATA_PERMISSION_HASH = ConstExprHashingUtils::HashString("LAKE_FORMATION_DATA_PERMISSION"); AssetType GetAssetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_SNAPSHOT_HASH) { return AssetType::S3_SNAPSHOT; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/Code.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/Code.cpp index 0fae049b521..19416814f7f 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/Code.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/Code.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CodeMapper { - static const int ACCESS_DENIED_EXCEPTION_HASH = HashingUtils::HashString("ACCESS_DENIED_EXCEPTION"); - static const int INTERNAL_SERVER_EXCEPTION_HASH = HashingUtils::HashString("INTERNAL_SERVER_EXCEPTION"); - static const int MALWARE_DETECTED_HASH = HashingUtils::HashString("MALWARE_DETECTED"); - static const int RESOURCE_NOT_FOUND_EXCEPTION_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION"); - static const int SERVICE_QUOTA_EXCEEDED_EXCEPTION_HASH = HashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_EXCEPTION"); - static const int VALIDATION_EXCEPTION_HASH = HashingUtils::HashString("VALIDATION_EXCEPTION"); - static const int MALWARE_SCAN_ENCRYPTED_FILE_HASH = HashingUtils::HashString("MALWARE_SCAN_ENCRYPTED_FILE"); + static constexpr uint32_t ACCESS_DENIED_EXCEPTION_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_EXCEPTION"); + static constexpr uint32_t INTERNAL_SERVER_EXCEPTION_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_EXCEPTION"); + static constexpr uint32_t MALWARE_DETECTED_HASH = ConstExprHashingUtils::HashString("MALWARE_DETECTED"); + static constexpr uint32_t RESOURCE_NOT_FOUND_EXCEPTION_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION"); + static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_EXCEPTION_HASH = ConstExprHashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_EXCEPTION"); + static constexpr uint32_t VALIDATION_EXCEPTION_HASH = ConstExprHashingUtils::HashString("VALIDATION_EXCEPTION"); + static constexpr uint32_t MALWARE_SCAN_ENCRYPTED_FILE_HASH = ConstExprHashingUtils::HashString("MALWARE_SCAN_ENCRYPTED_FILE"); Code GetCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_EXCEPTION_HASH) { return Code::ACCESS_DENIED_EXCEPTION; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/DatabaseLFTagPolicyPermission.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/DatabaseLFTagPolicyPermission.cpp index d06a91fc502..91e3777a34e 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/DatabaseLFTagPolicyPermission.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/DatabaseLFTagPolicyPermission.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DatabaseLFTagPolicyPermissionMapper { - static const int DESCRIBE_HASH = HashingUtils::HashString("DESCRIBE"); + static constexpr uint32_t DESCRIBE_HASH = ConstExprHashingUtils::HashString("DESCRIBE"); DatabaseLFTagPolicyPermission GetDatabaseLFTagPolicyPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESCRIBE_HASH) { return DatabaseLFTagPolicyPermission::DESCRIBE; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ExceptionCause.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ExceptionCause.cpp index 46bdc1b5a55..b099708c17b 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/ExceptionCause.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ExceptionCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExceptionCauseMapper { - static const int InsufficientS3BucketPolicy_HASH = HashingUtils::HashString("InsufficientS3BucketPolicy"); - static const int S3AccessDenied_HASH = HashingUtils::HashString("S3AccessDenied"); + static constexpr uint32_t InsufficientS3BucketPolicy_HASH = ConstExprHashingUtils::HashString("InsufficientS3BucketPolicy"); + static constexpr uint32_t S3AccessDenied_HASH = ConstExprHashingUtils::HashString("S3AccessDenied"); ExceptionCause GetExceptionCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InsufficientS3BucketPolicy_HASH) { return ExceptionCause::InsufficientS3BucketPolicy; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorLimitName.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorLimitName.cpp index 622a6a928e1..f3a40af4b88 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorLimitName.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorLimitName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace JobErrorLimitNameMapper { - static const int Assets_per_revision_HASH = HashingUtils::HashString("Assets per revision"); - static const int Asset_size_in_GB_HASH = HashingUtils::HashString("Asset size in GB"); - static const int Amazon_Redshift_datashare_assets_per_revision_HASH = HashingUtils::HashString("Amazon Redshift datashare assets per revision"); - static const int AWS_Lake_Formation_data_permission_assets_per_revision_HASH = HashingUtils::HashString("AWS Lake Formation data permission assets per revision"); - static const int Amazon_S3_data_access_assets_per_revision_HASH = HashingUtils::HashString("Amazon S3 data access assets per revision"); + static constexpr uint32_t Assets_per_revision_HASH = ConstExprHashingUtils::HashString("Assets per revision"); + static constexpr uint32_t Asset_size_in_GB_HASH = ConstExprHashingUtils::HashString("Asset size in GB"); + static constexpr uint32_t Amazon_Redshift_datashare_assets_per_revision_HASH = ConstExprHashingUtils::HashString("Amazon Redshift datashare assets per revision"); + static constexpr uint32_t AWS_Lake_Formation_data_permission_assets_per_revision_HASH = ConstExprHashingUtils::HashString("AWS Lake Formation data permission assets per revision"); + static constexpr uint32_t Amazon_S3_data_access_assets_per_revision_HASH = ConstExprHashingUtils::HashString("Amazon S3 data access assets per revision"); JobErrorLimitName GetJobErrorLimitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Assets_per_revision_HASH) { return JobErrorLimitName::Assets_per_revision; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorResourceTypes.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorResourceTypes.cpp index 3fdc1e75e9f..d9752e11664 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorResourceTypes.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/JobErrorResourceTypes.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobErrorResourceTypesMapper { - static const int REVISION_HASH = HashingUtils::HashString("REVISION"); - static const int ASSET_HASH = HashingUtils::HashString("ASSET"); - static const int DATA_SET_HASH = HashingUtils::HashString("DATA_SET"); + static constexpr uint32_t REVISION_HASH = ConstExprHashingUtils::HashString("REVISION"); + static constexpr uint32_t ASSET_HASH = ConstExprHashingUtils::HashString("ASSET"); + static constexpr uint32_t DATA_SET_HASH = ConstExprHashingUtils::HashString("DATA_SET"); JobErrorResourceTypes GetJobErrorResourceTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REVISION_HASH) { return JobErrorResourceTypes::REVISION; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/LFPermission.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/LFPermission.cpp index 440ce075e9f..30280995b6c 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/LFPermission.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/LFPermission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LFPermissionMapper { - static const int DESCRIBE_HASH = HashingUtils::HashString("DESCRIBE"); - static const int SELECT_HASH = HashingUtils::HashString("SELECT"); + static constexpr uint32_t DESCRIBE_HASH = ConstExprHashingUtils::HashString("DESCRIBE"); + static constexpr uint32_t SELECT_HASH = ConstExprHashingUtils::HashString("SELECT"); LFPermission GetLFPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESCRIBE_HASH) { return LFPermission::DESCRIBE; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/LFResourceType.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/LFResourceType.cpp index c936ecd99e8..95df09bc672 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/LFResourceType.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/LFResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LFResourceTypeMapper { - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); - static const int DATABASE_HASH = HashingUtils::HashString("DATABASE"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); + static constexpr uint32_t DATABASE_HASH = ConstExprHashingUtils::HashString("DATABASE"); LFResourceType GetLFResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABLE_HASH) { return LFResourceType::TABLE; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/LakeFormationDataPermissionType.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/LakeFormationDataPermissionType.cpp index 13ca317ea2a..2968dd1d49e 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/LakeFormationDataPermissionType.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/LakeFormationDataPermissionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LakeFormationDataPermissionTypeMapper { - static const int LFTagPolicy_HASH = HashingUtils::HashString("LFTagPolicy"); + static constexpr uint32_t LFTagPolicy_HASH = ConstExprHashingUtils::HashString("LFTagPolicy"); LakeFormationDataPermissionType GetLakeFormationDataPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LFTagPolicy_HASH) { return LakeFormationDataPermissionType::LFTagPolicy; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp index 3588b58800c..fec8cbaa599 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp @@ -20,39 +20,39 @@ namespace Aws namespace LimitNameMapper { - static const int Products_per_account_HASH = HashingUtils::HashString("Products per account"); - static const int Data_sets_per_account_HASH = HashingUtils::HashString("Data sets per account"); - static const int Data_sets_per_product_HASH = HashingUtils::HashString("Data sets per product"); - static const int Revisions_per_data_set_HASH = HashingUtils::HashString("Revisions per data set"); - static const int Assets_per_revision_HASH = HashingUtils::HashString("Assets per revision"); - static const int Assets_per_import_job_from_Amazon_S3_HASH = HashingUtils::HashString("Assets per import job from Amazon S3"); - static const int Asset_per_export_job_from_Amazon_S3_HASH = HashingUtils::HashString("Asset per export job from Amazon S3"); - static const int Asset_size_in_GB_HASH = HashingUtils::HashString("Asset size in GB"); - static const int Concurrent_in_progress_jobs_to_export_assets_to_Amazon_S3_HASH = HashingUtils::HashString("Concurrent in progress jobs to export assets to Amazon S3"); - static const int Concurrent_in_progress_jobs_to_export_assets_to_a_signed_URL_HASH = HashingUtils::HashString("Concurrent in progress jobs to export assets to a signed URL"); - static const int Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3_HASH = HashingUtils::HashString("Concurrent in progress jobs to import assets from Amazon S3"); - static const int Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL_HASH = HashingUtils::HashString("Concurrent in progress jobs to import assets from a signed URL"); - static const int Concurrent_in_progress_jobs_to_export_revisions_to_Amazon_S3_HASH = HashingUtils::HashString("Concurrent in progress jobs to export revisions to Amazon S3"); - static const int Event_actions_per_account_HASH = HashingUtils::HashString("Event actions per account"); - static const int Auto_export_event_actions_per_data_set_HASH = HashingUtils::HashString("Auto export event actions per data set"); - static const int Amazon_Redshift_datashare_assets_per_import_job_from_Redshift_HASH = HashingUtils::HashString("Amazon Redshift datashare assets per import job from Redshift"); - static const int Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares_HASH = HashingUtils::HashString("Concurrent in progress jobs to import assets from Amazon Redshift datashares"); - static const int Revisions_per_Amazon_Redshift_datashare_data_set_HASH = HashingUtils::HashString("Revisions per Amazon Redshift datashare data set"); - static const int Amazon_Redshift_datashare_assets_per_revision_HASH = HashingUtils::HashString("Amazon Redshift datashare assets per revision"); - static const int Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API_HASH = HashingUtils::HashString("Concurrent in progress jobs to import assets from an API Gateway API"); - static const int Amazon_API_Gateway_API_assets_per_revision_HASH = HashingUtils::HashString("Amazon API Gateway API assets per revision"); - static const int Revisions_per_Amazon_API_Gateway_API_data_set_HASH = HashingUtils::HashString("Revisions per Amazon API Gateway API data set"); - static const int Concurrent_in_progress_jobs_to_import_assets_from_an_AWS_Lake_Formation_tag_policy_HASH = HashingUtils::HashString("Concurrent in progress jobs to import assets from an AWS Lake Formation tag policy"); - static const int AWS_Lake_Formation_data_permission_assets_per_revision_HASH = HashingUtils::HashString("AWS Lake Formation data permission assets per revision"); - static const int Revisions_per_AWS_Lake_Formation_data_permission_data_set_HASH = HashingUtils::HashString("Revisions per AWS Lake Formation data permission data set"); - static const int Revisions_per_Amazon_S3_data_access_data_set_HASH = HashingUtils::HashString("Revisions per Amazon S3 data access data set"); - static const int Amazon_S3_data_access_assets_per_revision_HASH = HashingUtils::HashString("Amazon S3 data access assets per revision"); - static const int Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets_HASH = HashingUtils::HashString("Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets"); + static constexpr uint32_t Products_per_account_HASH = ConstExprHashingUtils::HashString("Products per account"); + static constexpr uint32_t Data_sets_per_account_HASH = ConstExprHashingUtils::HashString("Data sets per account"); + static constexpr uint32_t Data_sets_per_product_HASH = ConstExprHashingUtils::HashString("Data sets per product"); + static constexpr uint32_t Revisions_per_data_set_HASH = ConstExprHashingUtils::HashString("Revisions per data set"); + static constexpr uint32_t Assets_per_revision_HASH = ConstExprHashingUtils::HashString("Assets per revision"); + static constexpr uint32_t Assets_per_import_job_from_Amazon_S3_HASH = ConstExprHashingUtils::HashString("Assets per import job from Amazon S3"); + static constexpr uint32_t Asset_per_export_job_from_Amazon_S3_HASH = ConstExprHashingUtils::HashString("Asset per export job from Amazon S3"); + static constexpr uint32_t Asset_size_in_GB_HASH = ConstExprHashingUtils::HashString("Asset size in GB"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_export_assets_to_Amazon_S3_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to export assets to Amazon S3"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_export_assets_to_a_signed_URL_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to export assets to a signed URL"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to import assets from Amazon S3"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to import assets from a signed URL"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_export_revisions_to_Amazon_S3_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to export revisions to Amazon S3"); + static constexpr uint32_t Event_actions_per_account_HASH = ConstExprHashingUtils::HashString("Event actions per account"); + static constexpr uint32_t Auto_export_event_actions_per_data_set_HASH = ConstExprHashingUtils::HashString("Auto export event actions per data set"); + static constexpr uint32_t Amazon_Redshift_datashare_assets_per_import_job_from_Redshift_HASH = ConstExprHashingUtils::HashString("Amazon Redshift datashare assets per import job from Redshift"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to import assets from Amazon Redshift datashares"); + static constexpr uint32_t Revisions_per_Amazon_Redshift_datashare_data_set_HASH = ConstExprHashingUtils::HashString("Revisions per Amazon Redshift datashare data set"); + static constexpr uint32_t Amazon_Redshift_datashare_assets_per_revision_HASH = ConstExprHashingUtils::HashString("Amazon Redshift datashare assets per revision"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to import assets from an API Gateway API"); + static constexpr uint32_t Amazon_API_Gateway_API_assets_per_revision_HASH = ConstExprHashingUtils::HashString("Amazon API Gateway API assets per revision"); + static constexpr uint32_t Revisions_per_Amazon_API_Gateway_API_data_set_HASH = ConstExprHashingUtils::HashString("Revisions per Amazon API Gateway API data set"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_import_assets_from_an_AWS_Lake_Formation_tag_policy_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to import assets from an AWS Lake Formation tag policy"); + static constexpr uint32_t AWS_Lake_Formation_data_permission_assets_per_revision_HASH = ConstExprHashingUtils::HashString("AWS Lake Formation data permission assets per revision"); + static constexpr uint32_t Revisions_per_AWS_Lake_Formation_data_permission_data_set_HASH = ConstExprHashingUtils::HashString("Revisions per AWS Lake Formation data permission data set"); + static constexpr uint32_t Revisions_per_Amazon_S3_data_access_data_set_HASH = ConstExprHashingUtils::HashString("Revisions per Amazon S3 data access data set"); + static constexpr uint32_t Amazon_S3_data_access_assets_per_revision_HASH = ConstExprHashingUtils::HashString("Amazon S3 data access assets per revision"); + static constexpr uint32_t Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets_HASH = ConstExprHashingUtils::HashString("Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets"); LimitName GetLimitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Products_per_account_HASH) { return LimitName::Products_per_account; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/Origin.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/Origin.cpp index 5d2494a82a2..9113e6d5fef 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/Origin.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/Origin.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginMapper { - static const int OWNED_HASH = HashingUtils::HashString("OWNED"); - static const int ENTITLED_HASH = HashingUtils::HashString("ENTITLED"); + static constexpr uint32_t OWNED_HASH = ConstExprHashingUtils::HashString("OWNED"); + static constexpr uint32_t ENTITLED_HASH = ConstExprHashingUtils::HashString("ENTITLED"); Origin GetOriginForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OWNED_HASH) { return Origin::OWNED; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ProtocolType.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ProtocolType.cpp index e055cc12cdb..a20b82b861e 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/ProtocolType.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ProtocolType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProtocolTypeMapper { - static const int REST_HASH = HashingUtils::HashString("REST"); + static constexpr uint32_t REST_HASH = ConstExprHashingUtils::HashString("REST"); ProtocolType GetProtocolTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REST_HASH) { return ProtocolType::REST; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp index d0b0137b115..64e36e6e7c6 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int DATA_SET_HASH = HashingUtils::HashString("DATA_SET"); - static const int REVISION_HASH = HashingUtils::HashString("REVISION"); - static const int ASSET_HASH = HashingUtils::HashString("ASSET"); - static const int JOB_HASH = HashingUtils::HashString("JOB"); - static const int EVENT_ACTION_HASH = HashingUtils::HashString("EVENT_ACTION"); + static constexpr uint32_t DATA_SET_HASH = ConstExprHashingUtils::HashString("DATA_SET"); + static constexpr uint32_t REVISION_HASH = ConstExprHashingUtils::HashString("REVISION"); + static constexpr uint32_t ASSET_HASH = ConstExprHashingUtils::HashString("ASSET"); + static constexpr uint32_t JOB_HASH = ConstExprHashingUtils::HashString("JOB"); + static constexpr uint32_t EVENT_ACTION_HASH = ConstExprHashingUtils::HashString("EVENT_ACTION"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATA_SET_HASH) { return ResourceType::DATA_SET; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ServerSideEncryptionTypes.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ServerSideEncryptionTypes.cpp index 5b8fb4dbc5f..d8f46bf2182 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/ServerSideEncryptionTypes.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ServerSideEncryptionTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServerSideEncryptionTypesMapper { - static const int aws_kms_HASH = HashingUtils::HashString("aws:kms"); - static const int AES256_HASH = HashingUtils::HashString("AES256"); + static constexpr uint32_t aws_kms_HASH = ConstExprHashingUtils::HashString("aws:kms"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); ServerSideEncryptionTypes GetServerSideEncryptionTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_kms_HASH) { return ServerSideEncryptionTypes::aws_kms; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/State.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/State.cpp index db71af5ffee..92f2fe8133d 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/State.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StateMapper { - static const int WAITING_HASH = HashingUtils::HashString("WAITING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t WAITING_HASH = ConstExprHashingUtils::HashString("WAITING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAITING_HASH) { return State::WAITING; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/TableTagPolicyLFPermission.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/TableTagPolicyLFPermission.cpp index cff9dade749..0a66b08b809 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/TableTagPolicyLFPermission.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/TableTagPolicyLFPermission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TableTagPolicyLFPermissionMapper { - static const int DESCRIBE_HASH = HashingUtils::HashString("DESCRIBE"); - static const int SELECT_HASH = HashingUtils::HashString("SELECT"); + static constexpr uint32_t DESCRIBE_HASH = ConstExprHashingUtils::HashString("DESCRIBE"); + static constexpr uint32_t SELECT_HASH = ConstExprHashingUtils::HashString("SELECT"); TableTagPolicyLFPermission GetTableTagPolicyLFPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESCRIBE_HASH) { return TableTagPolicyLFPermission::DESCRIBE; diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/Type.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/Type.cpp index fa57866f2bd..a882c3ff863 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/Type.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TypeMapper { - static const int IMPORT_ASSETS_FROM_S3_HASH = HashingUtils::HashString("IMPORT_ASSETS_FROM_S3"); - static const int IMPORT_ASSET_FROM_SIGNED_URL_HASH = HashingUtils::HashString("IMPORT_ASSET_FROM_SIGNED_URL"); - static const int EXPORT_ASSETS_TO_S3_HASH = HashingUtils::HashString("EXPORT_ASSETS_TO_S3"); - static const int EXPORT_ASSET_TO_SIGNED_URL_HASH = HashingUtils::HashString("EXPORT_ASSET_TO_SIGNED_URL"); - static const int EXPORT_REVISIONS_TO_S3_HASH = HashingUtils::HashString("EXPORT_REVISIONS_TO_S3"); - static const int IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES_HASH = HashingUtils::HashString("IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"); - static const int IMPORT_ASSET_FROM_API_GATEWAY_API_HASH = HashingUtils::HashString("IMPORT_ASSET_FROM_API_GATEWAY_API"); - static const int CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET_HASH = HashingUtils::HashString("CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET"); - static const int IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY_HASH = HashingUtils::HashString("IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY"); + static constexpr uint32_t IMPORT_ASSETS_FROM_S3_HASH = ConstExprHashingUtils::HashString("IMPORT_ASSETS_FROM_S3"); + static constexpr uint32_t IMPORT_ASSET_FROM_SIGNED_URL_HASH = ConstExprHashingUtils::HashString("IMPORT_ASSET_FROM_SIGNED_URL"); + static constexpr uint32_t EXPORT_ASSETS_TO_S3_HASH = ConstExprHashingUtils::HashString("EXPORT_ASSETS_TO_S3"); + static constexpr uint32_t EXPORT_ASSET_TO_SIGNED_URL_HASH = ConstExprHashingUtils::HashString("EXPORT_ASSET_TO_SIGNED_URL"); + static constexpr uint32_t EXPORT_REVISIONS_TO_S3_HASH = ConstExprHashingUtils::HashString("EXPORT_REVISIONS_TO_S3"); + static constexpr uint32_t IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES_HASH = ConstExprHashingUtils::HashString("IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"); + static constexpr uint32_t IMPORT_ASSET_FROM_API_GATEWAY_API_HASH = ConstExprHashingUtils::HashString("IMPORT_ASSET_FROM_API_GATEWAY_API"); + static constexpr uint32_t CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET_HASH = ConstExprHashingUtils::HashString("CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET"); + static constexpr uint32_t IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY_HASH = ConstExprHashingUtils::HashString("IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORT_ASSETS_FROM_S3_HASH) { return Type::IMPORT_ASSETS_FROM_S3; diff --git a/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineErrors.cpp b/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineErrors.cpp index fccef9ca4e6..1b47dd9821f 100644 --- a/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineErrors.cpp +++ b/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineErrors.cpp @@ -18,16 +18,16 @@ namespace DataPipeline namespace DataPipelineErrorMapper { -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceError"); -static const int TASK_NOT_FOUND_HASH = HashingUtils::HashString("TaskNotFoundException"); -static const int PIPELINE_DELETED_HASH = HashingUtils::HashString("PipelineDeletedException"); -static const int PIPELINE_NOT_FOUND_HASH = HashingUtils::HashString("PipelineNotFoundException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); +static constexpr uint32_t TASK_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TaskNotFoundException"); +static constexpr uint32_t PIPELINE_DELETED_HASH = ConstExprHashingUtils::HashString("PipelineDeletedException"); +static constexpr uint32_t PIPELINE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PipelineNotFoundException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-datapipeline/source/model/OperatorType.cpp b/generated/src/aws-cpp-sdk-datapipeline/source/model/OperatorType.cpp index fabdc257e7e..4e1e0f60363 100644 --- a/generated/src/aws-cpp-sdk-datapipeline/source/model/OperatorType.cpp +++ b/generated/src/aws-cpp-sdk-datapipeline/source/model/OperatorType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OperatorTypeMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int REF_EQ_HASH = HashingUtils::HashString("REF_EQ"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t REF_EQ_HASH = ConstExprHashingUtils::HashString("REF_EQ"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); OperatorType GetOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return OperatorType::EQ; diff --git a/generated/src/aws-cpp-sdk-datapipeline/source/model/TaskStatus.cpp b/generated/src/aws-cpp-sdk-datapipeline/source/model/TaskStatus.cpp index ebb03777aa4..d77217e6c86 100644 --- a/generated/src/aws-cpp-sdk-datapipeline/source/model/TaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-datapipeline/source/model/TaskStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TaskStatusMapper { - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); TaskStatus GetTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINISHED_HASH) { return TaskStatus::FINISHED; diff --git a/generated/src/aws-cpp-sdk-datasync/source/DataSyncErrors.cpp b/generated/src/aws-cpp-sdk-datasync/source/DataSyncErrors.cpp index 7d8928117bf..48fadb768ae 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/DataSyncErrors.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/DataSyncErrors.cpp @@ -33,13 +33,13 @@ template<> AWS_DATASYNC_API InvalidRequestException DataSyncError::GetModeledErr namespace DataSyncErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/AgentStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/AgentStatus.cpp index d17c8cadba6..e49c5046d89 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/AgentStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/AgentStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AgentStatusMapper { - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); AgentStatus GetAgentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLINE_HASH) { return AgentStatus::ONLINE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/Atime.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/Atime.cpp index 2eb21f7b6cf..7c3e588668c 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/Atime.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/Atime.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AtimeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BEST_EFFORT_HASH = HashingUtils::HashString("BEST_EFFORT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BEST_EFFORT_HASH = ConstExprHashingUtils::HashString("BEST_EFFORT"); Atime GetAtimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Atime::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/AzureAccessTier.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/AzureAccessTier.cpp index e7231716c51..2afd96bd149 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/AzureAccessTier.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/AzureAccessTier.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AzureAccessTierMapper { - static const int HOT_HASH = HashingUtils::HashString("HOT"); - static const int COOL_HASH = HashingUtils::HashString("COOL"); - static const int ARCHIVE_HASH = HashingUtils::HashString("ARCHIVE"); + static constexpr uint32_t HOT_HASH = ConstExprHashingUtils::HashString("HOT"); + static constexpr uint32_t COOL_HASH = ConstExprHashingUtils::HashString("COOL"); + static constexpr uint32_t ARCHIVE_HASH = ConstExprHashingUtils::HashString("ARCHIVE"); AzureAccessTier GetAzureAccessTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOT_HASH) { return AzureAccessTier::HOT; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobAuthenticationType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobAuthenticationType.cpp index 83e7ad17932..45fc01177cf 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobAuthenticationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AzureBlobAuthenticationTypeMapper { - static const int SAS_HASH = HashingUtils::HashString("SAS"); + static constexpr uint32_t SAS_HASH = ConstExprHashingUtils::HashString("SAS"); AzureBlobAuthenticationType GetAzureBlobAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAS_HASH) { return AzureBlobAuthenticationType::SAS; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobType.cpp index 53c61c11953..d45a20944a2 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/AzureBlobType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AzureBlobTypeMapper { - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); AzureBlobType GetAzureBlobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLOCK_HASH) { return AzureBlobType::BLOCK; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryJobStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryJobStatus.cpp index d1fd580cf08..78c178b2829 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DiscoveryJobStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_ISSUES_HASH = HashingUtils::HashString("COMPLETED_WITH_ISSUES"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_ISSUES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ISSUES"); DiscoveryJobStatus GetDiscoveryJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return DiscoveryJobStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceFilter.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceFilter.cpp index 9db4c2fee05..730b33e86a8 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceFilter.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceFilter.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DiscoveryResourceFilterMapper { - static const int SVM_HASH = HashingUtils::HashString("SVM"); + static constexpr uint32_t SVM_HASH = ConstExprHashingUtils::HashString("SVM"); DiscoveryResourceFilter GetDiscoveryResourceFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SVM_HASH) { return DiscoveryResourceFilter::SVM; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceType.cpp index f9c27e080af..af3fbd6e363 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoveryResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DiscoveryResourceTypeMapper { - static const int SVM_HASH = HashingUtils::HashString("SVM"); - static const int VOLUME_HASH = HashingUtils::HashString("VOLUME"); - static const int CLUSTER_HASH = HashingUtils::HashString("CLUSTER"); + static constexpr uint32_t SVM_HASH = ConstExprHashingUtils::HashString("SVM"); + static constexpr uint32_t VOLUME_HASH = ConstExprHashingUtils::HashString("VOLUME"); + static constexpr uint32_t CLUSTER_HASH = ConstExprHashingUtils::HashString("CLUSTER"); DiscoveryResourceType GetDiscoveryResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SVM_HASH) { return DiscoveryResourceType::SVM; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoverySystemType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoverySystemType.cpp index 380ff81e172..2238ca52c91 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/DiscoverySystemType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/DiscoverySystemType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DiscoverySystemTypeMapper { - static const int NetAppONTAP_HASH = HashingUtils::HashString("NetAppONTAP"); + static constexpr uint32_t NetAppONTAP_HASH = ConstExprHashingUtils::HashString("NetAppONTAP"); DiscoverySystemType GetDiscoverySystemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NetAppONTAP_HASH) { return DiscoverySystemType::NetAppONTAP; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/EfsInTransitEncryption.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/EfsInTransitEncryption.cpp index f2bf0a7a6f6..2b690f266c2 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/EfsInTransitEncryption.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/EfsInTransitEncryption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EfsInTransitEncryptionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int TLS1_2_HASH = HashingUtils::HashString("TLS1_2"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t TLS1_2_HASH = ConstExprHashingUtils::HashString("TLS1_2"); EfsInTransitEncryption GetEfsInTransitEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return EfsInTransitEncryption::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/EndpointType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/EndpointType.cpp index a782d1085a5..91f5be3dc2c 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/EndpointType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/EndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EndpointTypeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE_LINK_HASH = HashingUtils::HashString("PRIVATE_LINK"); - static const int FIPS_HASH = HashingUtils::HashString("FIPS"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE_LINK_HASH = ConstExprHashingUtils::HashString("PRIVATE_LINK"); + static constexpr uint32_t FIPS_HASH = ConstExprHashingUtils::HashString("FIPS"); EndpointType GetEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return EndpointType::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/FilterType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/FilterType.cpp index f3b0b104cfe..260f9c7699e 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/FilterType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/FilterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FilterTypeMapper { - static const int SIMPLE_PATTERN_HASH = HashingUtils::HashString("SIMPLE_PATTERN"); + static constexpr uint32_t SIMPLE_PATTERN_HASH = ConstExprHashingUtils::HashString("SIMPLE_PATTERN"); FilterType GetFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIMPLE_PATTERN_HASH) { return FilterType::SIMPLE_PATTERN; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/Gid.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/Gid.cpp index 2026efc89d2..ea4f3c0ea41 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/Gid.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/Gid.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GidMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int INT_VALUE_HASH = HashingUtils::HashString("INT_VALUE"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int BOTH_HASH = HashingUtils::HashString("BOTH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t INT_VALUE_HASH = ConstExprHashingUtils::HashString("INT_VALUE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t BOTH_HASH = ConstExprHashingUtils::HashString("BOTH"); Gid GetGidForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Gid::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/HdfsAuthenticationType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/HdfsAuthenticationType.cpp index 592978bb4c1..f943a193656 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/HdfsAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/HdfsAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HdfsAuthenticationTypeMapper { - static const int SIMPLE_HASH = HashingUtils::HashString("SIMPLE"); - static const int KERBEROS_HASH = HashingUtils::HashString("KERBEROS"); + static constexpr uint32_t SIMPLE_HASH = ConstExprHashingUtils::HashString("SIMPLE"); + static constexpr uint32_t KERBEROS_HASH = ConstExprHashingUtils::HashString("KERBEROS"); HdfsAuthenticationType GetHdfsAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIMPLE_HASH) { return HdfsAuthenticationType::SIMPLE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/HdfsDataTransferProtection.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/HdfsDataTransferProtection.cpp index 98adcca74ff..3c1aeab4795 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/HdfsDataTransferProtection.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/HdfsDataTransferProtection.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HdfsDataTransferProtectionMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int AUTHENTICATION_HASH = HashingUtils::HashString("AUTHENTICATION"); - static const int INTEGRITY_HASH = HashingUtils::HashString("INTEGRITY"); - static const int PRIVACY_HASH = HashingUtils::HashString("PRIVACY"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("AUTHENTICATION"); + static constexpr uint32_t INTEGRITY_HASH = ConstExprHashingUtils::HashString("INTEGRITY"); + static constexpr uint32_t PRIVACY_HASH = ConstExprHashingUtils::HashString("PRIVACY"); HdfsDataTransferProtection GetHdfsDataTransferProtectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return HdfsDataTransferProtection::DISABLED; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/HdfsRpcProtection.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/HdfsRpcProtection.cpp index 94d21bbc272..f578956080d 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/HdfsRpcProtection.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/HdfsRpcProtection.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HdfsRpcProtectionMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int AUTHENTICATION_HASH = HashingUtils::HashString("AUTHENTICATION"); - static const int INTEGRITY_HASH = HashingUtils::HashString("INTEGRITY"); - static const int PRIVACY_HASH = HashingUtils::HashString("PRIVACY"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("AUTHENTICATION"); + static constexpr uint32_t INTEGRITY_HASH = ConstExprHashingUtils::HashString("INTEGRITY"); + static constexpr uint32_t PRIVACY_HASH = ConstExprHashingUtils::HashString("PRIVACY"); HdfsRpcProtection GetHdfsRpcProtectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return HdfsRpcProtection::DISABLED; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/LocationFilterName.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/LocationFilterName.cpp index 4bcb699dbe8..8a4d8e5f953 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/LocationFilterName.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/LocationFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LocationFilterNameMapper { - static const int LocationUri_HASH = HashingUtils::HashString("LocationUri"); - static const int LocationType_HASH = HashingUtils::HashString("LocationType"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t LocationUri_HASH = ConstExprHashingUtils::HashString("LocationUri"); + static constexpr uint32_t LocationType_HASH = ConstExprHashingUtils::HashString("LocationType"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); LocationFilterName GetLocationFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LocationUri_HASH) { return LocationFilterName::LocationUri; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/LogLevel.cpp index 172d8a506f3..d7fb5bb6b09 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/LogLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LogLevelMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int TRANSFER_HASH = HashingUtils::HashString("TRANSFER"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t TRANSFER_HASH = ConstExprHashingUtils::HashString("TRANSFER"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return LogLevel::OFF; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/Mtime.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/Mtime.cpp index 20d3c60ff5d..41b1ee461c2 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/Mtime.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/Mtime.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MtimeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRESERVE_HASH = ConstExprHashingUtils::HashString("PRESERVE"); Mtime GetMtimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Mtime::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/NfsVersion.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/NfsVersion.cpp index 9733a87fe14..97c8e2f555c 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/NfsVersion.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/NfsVersion.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NfsVersionMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int NFS3_HASH = HashingUtils::HashString("NFS3"); - static const int NFS4_0_HASH = HashingUtils::HashString("NFS4_0"); - static const int NFS4_1_HASH = HashingUtils::HashString("NFS4_1"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t NFS3_HASH = ConstExprHashingUtils::HashString("NFS3"); + static constexpr uint32_t NFS4_0_HASH = ConstExprHashingUtils::HashString("NFS4_0"); + static constexpr uint32_t NFS4_1_HASH = ConstExprHashingUtils::HashString("NFS4_1"); NfsVersion GetNfsVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return NfsVersion::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/ObjectStorageServerProtocol.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/ObjectStorageServerProtocol.cpp index 0e858d31fb1..baafd6434ad 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/ObjectStorageServerProtocol.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/ObjectStorageServerProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectStorageServerProtocolMapper { - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); ObjectStorageServerProtocol GetObjectStorageServerProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTPS_HASH) { return ObjectStorageServerProtocol::HTTPS; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/ObjectTags.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/ObjectTags.cpp index 86385bd54d2..6924ec6acb1 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/ObjectTags.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/ObjectTags.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectTagsMapper { - static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PRESERVE_HASH = ConstExprHashingUtils::HashString("PRESERVE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ObjectTags GetObjectTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESERVE_HASH) { return ObjectTags::PRESERVE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/ObjectVersionIds.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/ObjectVersionIds.cpp index 05afa7de3bd..9024e9e1cff 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/ObjectVersionIds.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/ObjectVersionIds.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectVersionIdsMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ObjectVersionIds GetObjectVersionIdsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return ObjectVersionIds::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/Operator.cpp index 86402a5019f..1a4ab6f70e0 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/Operator.cpp @@ -20,21 +20,21 @@ namespace Aws namespace OperatorMapper { - static const int Equals_HASH = HashingUtils::HashString("Equals"); - static const int NotEquals_HASH = HashingUtils::HashString("NotEquals"); - static const int In_HASH = HashingUtils::HashString("In"); - static const int LessThanOrEqual_HASH = HashingUtils::HashString("LessThanOrEqual"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int GreaterThanOrEqual_HASH = HashingUtils::HashString("GreaterThanOrEqual"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int Contains_HASH = HashingUtils::HashString("Contains"); - static const int NotContains_HASH = HashingUtils::HashString("NotContains"); - static const int BeginsWith_HASH = HashingUtils::HashString("BeginsWith"); + static constexpr uint32_t Equals_HASH = ConstExprHashingUtils::HashString("Equals"); + static constexpr uint32_t NotEquals_HASH = ConstExprHashingUtils::HashString("NotEquals"); + static constexpr uint32_t In_HASH = ConstExprHashingUtils::HashString("In"); + static constexpr uint32_t LessThanOrEqual_HASH = ConstExprHashingUtils::HashString("LessThanOrEqual"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t GreaterThanOrEqual_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqual"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t Contains_HASH = ConstExprHashingUtils::HashString("Contains"); + static constexpr uint32_t NotContains_HASH = ConstExprHashingUtils::HashString("NotContains"); + static constexpr uint32_t BeginsWith_HASH = ConstExprHashingUtils::HashString("BeginsWith"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equals_HASH) { return Operator::Equals; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/OverwriteMode.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/OverwriteMode.cpp index 572f9b36cd2..bb3519c728c 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/OverwriteMode.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/OverwriteMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OverwriteModeMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); OverwriteMode GetOverwriteModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return OverwriteMode::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/PhaseStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/PhaseStatus.cpp index 8c36d21f523..157274d4741 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/PhaseStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/PhaseStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PhaseStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); PhaseStatus GetPhaseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return PhaseStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/PosixPermissions.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/PosixPermissions.cpp index df95af2cca3..37b14a79fb9 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/PosixPermissions.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/PosixPermissions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PosixPermissionsMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRESERVE_HASH = ConstExprHashingUtils::HashString("PRESERVE"); PosixPermissions GetPosixPermissionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return PosixPermissions::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDeletedFiles.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDeletedFiles.cpp index 6bf1f32ce20..fe4a32637c7 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDeletedFiles.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDeletedFiles.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PreserveDeletedFilesMapper { - static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t PRESERVE_HASH = ConstExprHashingUtils::HashString("PRESERVE"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); PreserveDeletedFiles GetPreserveDeletedFilesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESERVE_HASH) { return PreserveDeletedFiles::PRESERVE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDevices.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDevices.cpp index 85d619f4900..4461d556033 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDevices.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/PreserveDevices.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PreserveDevicesMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRESERVE_HASH = ConstExprHashingUtils::HashString("PRESERVE"); PreserveDevices GetPreserveDevicesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return PreserveDevices::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/RecommendationStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/RecommendationStatus.cpp index 20b5f018161..9f10176fce7 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/RecommendationStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/RecommendationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RecommendationStatusMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RecommendationStatus GetRecommendationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return RecommendationStatus::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/ReportLevel.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/ReportLevel.cpp index 9f3bc86d44d..e2a437a95b4 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/ReportLevel.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/ReportLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportLevelMapper { - static const int ERRORS_ONLY_HASH = HashingUtils::HashString("ERRORS_ONLY"); - static const int SUCCESSES_AND_ERRORS_HASH = HashingUtils::HashString("SUCCESSES_AND_ERRORS"); + static constexpr uint32_t ERRORS_ONLY_HASH = ConstExprHashingUtils::HashString("ERRORS_ONLY"); + static constexpr uint32_t SUCCESSES_AND_ERRORS_HASH = ConstExprHashingUtils::HashString("SUCCESSES_AND_ERRORS"); ReportLevel GetReportLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERRORS_ONLY_HASH) { return ReportLevel::ERRORS_ONLY; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/ReportOutputType.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/ReportOutputType.cpp index 40571f75be9..7db1b5a154d 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/ReportOutputType.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/ReportOutputType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportOutputTypeMapper { - static const int SUMMARY_ONLY_HASH = HashingUtils::HashString("SUMMARY_ONLY"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t SUMMARY_ONLY_HASH = ConstExprHashingUtils::HashString("SUMMARY_ONLY"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ReportOutputType GetReportOutputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUMMARY_ONLY_HASH) { return ReportOutputType::SUMMARY_ONLY; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/S3StorageClass.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/S3StorageClass.cpp index d8c751b7909..529de2aed58 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/S3StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/S3StorageClass.cpp @@ -20,19 +20,19 @@ namespace Aws namespace S3StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); - static const int GLACIER_INSTANT_RETRIEVAL_HASH = HashingUtils::HashString("GLACIER_INSTANT_RETRIEVAL"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t GLACIER_INSTANT_RETRIEVAL_HASH = ConstExprHashingUtils::HashString("GLACIER_INSTANT_RETRIEVAL"); S3StorageClass GetS3StorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return S3StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/SmbSecurityDescriptorCopyFlags.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/SmbSecurityDescriptorCopyFlags.cpp index c373fb6ad0f..d8b4502c5c8 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/SmbSecurityDescriptorCopyFlags.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/SmbSecurityDescriptorCopyFlags.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SmbSecurityDescriptorCopyFlagsMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int OWNER_DACL_HASH = HashingUtils::HashString("OWNER_DACL"); - static const int OWNER_DACL_SACL_HASH = HashingUtils::HashString("OWNER_DACL_SACL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t OWNER_DACL_HASH = ConstExprHashingUtils::HashString("OWNER_DACL"); + static constexpr uint32_t OWNER_DACL_SACL_HASH = ConstExprHashingUtils::HashString("OWNER_DACL_SACL"); SmbSecurityDescriptorCopyFlags GetSmbSecurityDescriptorCopyFlagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return SmbSecurityDescriptorCopyFlags::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/SmbVersion.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/SmbVersion.cpp index 84cbbea5d25..ef1fdc63e7e 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/SmbVersion.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/SmbVersion.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SmbVersionMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int SMB2_HASH = HashingUtils::HashString("SMB2"); - static const int SMB3_HASH = HashingUtils::HashString("SMB3"); - static const int SMB1_HASH = HashingUtils::HashString("SMB1"); - static const int SMB2_0_HASH = HashingUtils::HashString("SMB2_0"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t SMB2_HASH = ConstExprHashingUtils::HashString("SMB2"); + static constexpr uint32_t SMB3_HASH = ConstExprHashingUtils::HashString("SMB3"); + static constexpr uint32_t SMB1_HASH = ConstExprHashingUtils::HashString("SMB1"); + static constexpr uint32_t SMB2_0_HASH = ConstExprHashingUtils::HashString("SMB2_0"); SmbVersion GetSmbVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return SmbVersion::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/StorageSystemConnectivityStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/StorageSystemConnectivityStatus.cpp index 5e9cb6258dc..d07a55ff089 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/StorageSystemConnectivityStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/StorageSystemConnectivityStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StorageSystemConnectivityStatusMapper { - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); StorageSystemConnectivityStatus GetStorageSystemConnectivityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_HASH) { return StorageSystemConnectivityStatus::PASS; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/TaskExecutionStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/TaskExecutionStatus.cpp index 3b91c5f1f61..3669c571ea8 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/TaskExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/TaskExecutionStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TaskExecutionStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int LAUNCHING_HASH = HashingUtils::HashString("LAUNCHING"); - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int TRANSFERRING_HASH = HashingUtils::HashString("TRANSFERRING"); - static const int VERIFYING_HASH = HashingUtils::HashString("VERIFYING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t LAUNCHING_HASH = ConstExprHashingUtils::HashString("LAUNCHING"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t TRANSFERRING_HASH = ConstExprHashingUtils::HashString("TRANSFERRING"); + static constexpr uint32_t VERIFYING_HASH = ConstExprHashingUtils::HashString("VERIFYING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); TaskExecutionStatus GetTaskExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return TaskExecutionStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/TaskFilterName.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/TaskFilterName.cpp index e4a627d0269..9eda62aa067 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/TaskFilterName.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/TaskFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TaskFilterNameMapper { - static const int LocationId_HASH = HashingUtils::HashString("LocationId"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t LocationId_HASH = ConstExprHashingUtils::HashString("LocationId"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); TaskFilterName GetTaskFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LocationId_HASH) { return TaskFilterName::LocationId; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/TaskQueueing.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/TaskQueueing.cpp index 42f57c1665b..1c25ea09345 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/TaskQueueing.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/TaskQueueing.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TaskQueueingMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); TaskQueueing GetTaskQueueingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return TaskQueueing::ENABLED; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/TaskStatus.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/TaskStatus.cpp index 9a016f9cd85..c92cd203a1e 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/TaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/TaskStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TaskStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); TaskStatus GetTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return TaskStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/TransferMode.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/TransferMode.cpp index 52560b4439c..9db832b6d77 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/TransferMode.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/TransferMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransferModeMapper { - static const int CHANGED_HASH = HashingUtils::HashString("CHANGED"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CHANGED_HASH = ConstExprHashingUtils::HashString("CHANGED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); TransferMode GetTransferModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHANGED_HASH) { return TransferMode::CHANGED; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/Uid.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/Uid.cpp index b3d86c7d9a3..fffef8d7638 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/Uid.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/Uid.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UidMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int INT_VALUE_HASH = HashingUtils::HashString("INT_VALUE"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int BOTH_HASH = HashingUtils::HashString("BOTH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t INT_VALUE_HASH = ConstExprHashingUtils::HashString("INT_VALUE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t BOTH_HASH = ConstExprHashingUtils::HashString("BOTH"); Uid GetUidForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Uid::NONE; diff --git a/generated/src/aws-cpp-sdk-datasync/source/model/VerifyMode.cpp b/generated/src/aws-cpp-sdk-datasync/source/model/VerifyMode.cpp index 2023145d992..9e52468301d 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/model/VerifyMode.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/model/VerifyMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VerifyModeMapper { - static const int POINT_IN_TIME_CONSISTENT_HASH = HashingUtils::HashString("POINT_IN_TIME_CONSISTENT"); - static const int ONLY_FILES_TRANSFERRED_HASH = HashingUtils::HashString("ONLY_FILES_TRANSFERRED"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t POINT_IN_TIME_CONSISTENT_HASH = ConstExprHashingUtils::HashString("POINT_IN_TIME_CONSISTENT"); + static constexpr uint32_t ONLY_FILES_TRANSFERRED_HASH = ConstExprHashingUtils::HashString("ONLY_FILES_TRANSFERRED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); VerifyMode GetVerifyModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POINT_IN_TIME_CONSISTENT_HASH) { return VerifyMode::POINT_IN_TIME_CONSISTENT; diff --git a/generated/src/aws-cpp-sdk-datazone/source/DataZoneErrors.cpp b/generated/src/aws-cpp-sdk-datazone/source/DataZoneErrors.cpp index 726a261aeb5..db622129755 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/DataZoneErrors.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/DataZoneErrors.cpp @@ -18,15 +18,15 @@ namespace DataZone namespace DataZoneErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/AcceptRuleBehavior.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/AcceptRuleBehavior.cpp index b90a6f1db06..5df0ce47b89 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/AcceptRuleBehavior.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/AcceptRuleBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AcceptRuleBehaviorMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AcceptRuleBehavior GetAcceptRuleBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return AcceptRuleBehavior::ALL; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/AuthType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/AuthType.cpp index f2d0b25bbf6..f92e2f54983 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/AuthType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/AuthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthTypeMapper { - static const int IAM_IDC_HASH = HashingUtils::HashString("IAM_IDC"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t IAM_IDC_HASH = ConstExprHashingUtils::HashString("IAM_IDC"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AuthType GetAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_IDC_HASH) { return AuthType::IAM_IDC; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/ChangeAction.cpp index c55d2cd50cd..cf6f4ca82bb 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/ChangeAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeActionMapper { - static const int PUBLISH_HASH = HashingUtils::HashString("PUBLISH"); - static const int UNPUBLISH_HASH = HashingUtils::HashString("UNPUBLISH"); + static constexpr uint32_t PUBLISH_HASH = ConstExprHashingUtils::HashString("PUBLISH"); + static constexpr uint32_t UNPUBLISH_HASH = ConstExprHashingUtils::HashString("UNPUBLISH"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISH_HASH) { return ChangeAction::PUBLISH; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/ConfigurableActionTypeAuthorization.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/ConfigurableActionTypeAuthorization.cpp index 1573acea4d4..670913a0cc2 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/ConfigurableActionTypeAuthorization.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/ConfigurableActionTypeAuthorization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigurableActionTypeAuthorizationMapper { - static const int IAM_HASH = HashingUtils::HashString("IAM"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); ConfigurableActionTypeAuthorization GetConfigurableActionTypeAuthorizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_HASH) { return ConfigurableActionTypeAuthorization::IAM; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DataAssetActivityStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DataAssetActivityStatus.cpp index 43112dbd463..2d0786ac5b8 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DataAssetActivityStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DataAssetActivityStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataAssetActivityStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PUBLISHING_FAILED_HASH = HashingUtils::HashString("PUBLISHING_FAILED"); - static const int SUCCEEDED_CREATED_HASH = HashingUtils::HashString("SUCCEEDED_CREATED"); - static const int SUCCEEDED_UPDATED_HASH = HashingUtils::HashString("SUCCEEDED_UPDATED"); - static const int SKIPPED_ALREADY_IMPORTED_HASH = HashingUtils::HashString("SKIPPED_ALREADY_IMPORTED"); - static const int SKIPPED_ARCHIVED_HASH = HashingUtils::HashString("SKIPPED_ARCHIVED"); - static const int SKIPPED_NO_ACCESS_HASH = HashingUtils::HashString("SKIPPED_NO_ACCESS"); - static const int UNCHANGED_HASH = HashingUtils::HashString("UNCHANGED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PUBLISHING_FAILED_HASH = ConstExprHashingUtils::HashString("PUBLISHING_FAILED"); + static constexpr uint32_t SUCCEEDED_CREATED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED_CREATED"); + static constexpr uint32_t SUCCEEDED_UPDATED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED_UPDATED"); + static constexpr uint32_t SKIPPED_ALREADY_IMPORTED_HASH = ConstExprHashingUtils::HashString("SKIPPED_ALREADY_IMPORTED"); + static constexpr uint32_t SKIPPED_ARCHIVED_HASH = ConstExprHashingUtils::HashString("SKIPPED_ARCHIVED"); + static constexpr uint32_t SKIPPED_NO_ACCESS_HASH = ConstExprHashingUtils::HashString("SKIPPED_NO_ACCESS"); + static constexpr uint32_t UNCHANGED_HASH = ConstExprHashingUtils::HashString("UNCHANGED"); DataAssetActivityStatus GetDataAssetActivityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return DataAssetActivityStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceErrorType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceErrorType.cpp index 3e28af995c1..f09fe1a9389 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceErrorType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceErrorType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DataSourceErrorTypeMapper { - static const int ACCESS_DENIED_EXCEPTION_HASH = HashingUtils::HashString("ACCESS_DENIED_EXCEPTION"); - static const int CONFLICT_EXCEPTION_HASH = HashingUtils::HashString("CONFLICT_EXCEPTION"); - static const int INTERNAL_SERVER_EXCEPTION_HASH = HashingUtils::HashString("INTERNAL_SERVER_EXCEPTION"); - static const int RESOURCE_NOT_FOUND_EXCEPTION_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION"); - static const int SERVICE_QUOTA_EXCEEDED_EXCEPTION_HASH = HashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_EXCEPTION"); - static const int THROTTLING_EXCEPTION_HASH = HashingUtils::HashString("THROTTLING_EXCEPTION"); - static const int VALIDATION_EXCEPTION_HASH = HashingUtils::HashString("VALIDATION_EXCEPTION"); + static constexpr uint32_t ACCESS_DENIED_EXCEPTION_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_EXCEPTION"); + static constexpr uint32_t CONFLICT_EXCEPTION_HASH = ConstExprHashingUtils::HashString("CONFLICT_EXCEPTION"); + static constexpr uint32_t INTERNAL_SERVER_EXCEPTION_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_EXCEPTION"); + static constexpr uint32_t RESOURCE_NOT_FOUND_EXCEPTION_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION"); + static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_EXCEPTION_HASH = ConstExprHashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_EXCEPTION"); + static constexpr uint32_t THROTTLING_EXCEPTION_HASH = ConstExprHashingUtils::HashString("THROTTLING_EXCEPTION"); + static constexpr uint32_t VALIDATION_EXCEPTION_HASH = ConstExprHashingUtils::HashString("VALIDATION_EXCEPTION"); DataSourceErrorType GetDataSourceErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_EXCEPTION_HASH) { return DataSourceErrorType::ACCESS_DENIED_EXCEPTION; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunStatus.cpp index a7e79ed85e0..1a7ae3ae347 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataSourceRunStatusMapper { - static const int REQUESTED_HASH = HashingUtils::HashString("REQUESTED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PARTIALLY_SUCCEEDED_HASH = HashingUtils::HashString("PARTIALLY_SUCCEEDED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); + static constexpr uint32_t REQUESTED_HASH = ConstExprHashingUtils::HashString("REQUESTED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PARTIALLY_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("PARTIALLY_SUCCEEDED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); DataSourceRunStatus GetDataSourceRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUESTED_HASH) { return DataSourceRunStatus::REQUESTED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunType.cpp index 324a8d837ab..086d61fa3df 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceRunType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataSourceRunTypeMapper { - static const int PRIORITIZED_HASH = HashingUtils::HashString("PRIORITIZED"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t PRIORITIZED_HASH = ConstExprHashingUtils::HashString("PRIORITIZED"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); DataSourceRunType GetDataSourceRunTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIORITIZED_HASH) { return DataSourceRunType::PRIORITIZED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceStatus.cpp index df7bc1ce4c8..a7186782ba4 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DataSourceStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataSourceStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_CREATION_HASH = HashingUtils::HashString("FAILED_CREATION"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_UPDATE_HASH = HashingUtils::HashString("FAILED_UPDATE"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_DELETION_HASH = HashingUtils::HashString("FAILED_DELETION"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_CREATION_HASH = ConstExprHashingUtils::HashString("FAILED_CREATION"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_UPDATE_HASH = ConstExprHashingUtils::HashString("FAILED_UPDATE"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_DELETION_HASH = ConstExprHashingUtils::HashString("FAILED_DELETION"); DataSourceStatus GetDataSourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DataSourceStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentStatus.cpp index 1f39e6ac740..6b804da92ff 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeploymentStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_DEPLOYMENT_HASH = HashingUtils::HashString("PENDING_DEPLOYMENT"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("PENDING_DEPLOYMENT"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DeploymentStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentType.cpp index dbc5b1b5bf1..34a2b8f169b 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DeploymentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeploymentTypeMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); DeploymentType GetDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return DeploymentType::CREATE; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DomainStatus.cpp index 9e7d6d8f8ea..9405a910749 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/DomainStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DomainStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DomainStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/EnableSetting.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/EnableSetting.cpp index 3de864661f0..7d7415f5756 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/EnableSetting.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/EnableSetting.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnableSettingMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EnableSetting GetEnableSettingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EnableSetting::ENABLED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/EntityType.cpp index e8a2fb267f5..144eea54423 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/EntityType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EntityTypeMapper { - static const int ASSET_HASH = HashingUtils::HashString("ASSET"); + static constexpr uint32_t ASSET_HASH = ConstExprHashingUtils::HashString("ASSET"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSET_HASH) { return EntityType::ASSET; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/EnvironmentStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/EnvironmentStatus.cpp index 2eef194bd75..d90c1c33885 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/EnvironmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/EnvironmentStatus.cpp @@ -20,24 +20,24 @@ namespace Aws namespace EnvironmentStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int INACCESSIBLE_HASH = HashingUtils::HashString("INACCESSIBLE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t INACCESSIBLE_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE"); EnvironmentStatus GetEnvironmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return EnvironmentStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/FilterExpressionType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/FilterExpressionType.cpp index b45840c2a98..bd5953389f8 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/FilterExpressionType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/FilterExpressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterExpressionTypeMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); FilterExpressionType GetFilterExpressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return FilterExpressionType::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/FormTypeStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/FormTypeStatus.cpp index 29a675f333e..d8e3deb8e05 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/FormTypeStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/FormTypeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormTypeStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); FormTypeStatus GetFormTypeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return FormTypeStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryStatus.cpp index 268bc9e3f3f..9db2cccc147 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlossaryStatusMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); GlossaryStatus GetGlossaryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return GlossaryStatus::DISABLED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryTermStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryTermStatus.cpp index cc581eb2bf1..863b3facedb 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryTermStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GlossaryTermStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlossaryTermStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); GlossaryTermStatus GetGlossaryTermStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return GlossaryTermStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/GroupProfileStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GroupProfileStatus.cpp index a9779aaaa49..ad8190e3547 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/GroupProfileStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GroupProfileStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GroupProfileStatusMapper { - static const int ASSIGNED_HASH = HashingUtils::HashString("ASSIGNED"); - static const int NOT_ASSIGNED_HASH = HashingUtils::HashString("NOT_ASSIGNED"); + static constexpr uint32_t ASSIGNED_HASH = ConstExprHashingUtils::HashString("ASSIGNED"); + static constexpr uint32_t NOT_ASSIGNED_HASH = ConstExprHashingUtils::HashString("NOT_ASSIGNED"); GroupProfileStatus GetGroupProfileStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSIGNED_HASH) { return GroupProfileStatus::ASSIGNED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/GroupSearchType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/GroupSearchType.cpp index af3683b0993..be82e3fbb84 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/GroupSearchType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/GroupSearchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GroupSearchTypeMapper { - static const int SSO_GROUP_HASH = HashingUtils::HashString("SSO_GROUP"); - static const int DATAZONE_SSO_GROUP_HASH = HashingUtils::HashString("DATAZONE_SSO_GROUP"); + static constexpr uint32_t SSO_GROUP_HASH = ConstExprHashingUtils::HashString("SSO_GROUP"); + static constexpr uint32_t DATAZONE_SSO_GROUP_HASH = ConstExprHashingUtils::HashString("DATAZONE_SSO_GROUP"); GroupSearchType GetGroupSearchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSO_GROUP_HASH) { return GroupSearchType::SSO_GROUP; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/InventorySearchScope.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/InventorySearchScope.cpp index 72d32175b82..7021f6cd753 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/InventorySearchScope.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/InventorySearchScope.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InventorySearchScopeMapper { - static const int ASSET_HASH = HashingUtils::HashString("ASSET"); - static const int GLOSSARY_HASH = HashingUtils::HashString("GLOSSARY"); - static const int GLOSSARY_TERM_HASH = HashingUtils::HashString("GLOSSARY_TERM"); + static constexpr uint32_t ASSET_HASH = ConstExprHashingUtils::HashString("ASSET"); + static constexpr uint32_t GLOSSARY_HASH = ConstExprHashingUtils::HashString("GLOSSARY"); + static constexpr uint32_t GLOSSARY_TERM_HASH = ConstExprHashingUtils::HashString("GLOSSARY_TERM"); InventorySearchScope GetInventorySearchScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSET_HASH) { return InventorySearchScope::ASSET; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/ListingStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/ListingStatus.cpp index 23b73eb67c2..a0d5ce3293a 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/ListingStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/ListingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListingStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ListingStatus GetListingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ListingStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/NotificationResourceType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/NotificationResourceType.cpp index 66abec986a6..a85587ec0fc 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/NotificationResourceType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/NotificationResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NotificationResourceTypeMapper { - static const int PROJECT_HASH = HashingUtils::HashString("PROJECT"); + static constexpr uint32_t PROJECT_HASH = ConstExprHashingUtils::HashString("PROJECT"); NotificationResourceType GetNotificationResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECT_HASH) { return NotificationResourceType::PROJECT; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/NotificationRole.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/NotificationRole.cpp index d0a609a8db3..bafde24bbf8 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/NotificationRole.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/NotificationRole.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NotificationRoleMapper { - static const int PROJECT_OWNER_HASH = HashingUtils::HashString("PROJECT_OWNER"); - static const int PROJECT_CONTRIBUTOR_HASH = HashingUtils::HashString("PROJECT_CONTRIBUTOR"); - static const int PROJECT_VIEWER_HASH = HashingUtils::HashString("PROJECT_VIEWER"); - static const int DOMAIN_OWNER_HASH = HashingUtils::HashString("DOMAIN_OWNER"); - static const int PROJECT_SUBSCRIBER_HASH = HashingUtils::HashString("PROJECT_SUBSCRIBER"); + static constexpr uint32_t PROJECT_OWNER_HASH = ConstExprHashingUtils::HashString("PROJECT_OWNER"); + static constexpr uint32_t PROJECT_CONTRIBUTOR_HASH = ConstExprHashingUtils::HashString("PROJECT_CONTRIBUTOR"); + static constexpr uint32_t PROJECT_VIEWER_HASH = ConstExprHashingUtils::HashString("PROJECT_VIEWER"); + static constexpr uint32_t DOMAIN_OWNER_HASH = ConstExprHashingUtils::HashString("DOMAIN_OWNER"); + static constexpr uint32_t PROJECT_SUBSCRIBER_HASH = ConstExprHashingUtils::HashString("PROJECT_SUBSCRIBER"); NotificationRole GetNotificationRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECT_OWNER_HASH) { return NotificationRole::PROJECT_OWNER; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/NotificationType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/NotificationType.cpp index 1ff8ff6018e..be642d77475 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/NotificationType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/NotificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationTypeMapper { - static const int TASK_HASH = HashingUtils::HashString("TASK"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); NotificationType GetNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_HASH) { return NotificationType::TASK; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/RejectRuleBehavior.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/RejectRuleBehavior.cpp index 5f9bee3ca70..0c27b97d7ac 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/RejectRuleBehavior.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/RejectRuleBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RejectRuleBehaviorMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); RejectRuleBehavior GetRejectRuleBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return RejectRuleBehavior::ALL; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SearchOutputAdditionalAttribute.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SearchOutputAdditionalAttribute.cpp index 52dcbbc76a9..f0591c040ce 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SearchOutputAdditionalAttribute.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SearchOutputAdditionalAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SearchOutputAdditionalAttributeMapper { - static const int FORMS_HASH = HashingUtils::HashString("FORMS"); + static constexpr uint32_t FORMS_HASH = ConstExprHashingUtils::HashString("FORMS"); SearchOutputAdditionalAttribute GetSearchOutputAdditionalAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORMS_HASH) { return SearchOutputAdditionalAttribute::FORMS; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SortFieldProject.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SortFieldProject.cpp index b8054234d29..a14e70622c0 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SortFieldProject.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SortFieldProject.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortFieldProjectMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); SortFieldProject GetSortFieldProjectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return SortFieldProject::NAME; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SortKey.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SortKey.cpp index acfe594f70b..97c4cbc674f 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SortKey.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortKeyMapper { - static const int CREATED_AT_HASH = HashingUtils::HashString("CREATED_AT"); - static const int UPDATED_AT_HASH = HashingUtils::HashString("UPDATED_AT"); + static constexpr uint32_t CREATED_AT_HASH = ConstExprHashingUtils::HashString("CREATED_AT"); + static constexpr uint32_t UPDATED_AT_HASH = ConstExprHashingUtils::HashString("UPDATED_AT"); SortKey GetSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_AT_HASH) { return SortKey::CREATED_AT; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SortOrder.cpp index 8c0aa599e82..e6314b4c01e 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantOverallStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantOverallStatus.cpp index f3700d8d91a..65c9112c045 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantOverallStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantOverallStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SubscriptionGrantOverallStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int GRANT_FAILED_HASH = HashingUtils::HashString("GRANT_FAILED"); - static const int REVOKE_FAILED_HASH = HashingUtils::HashString("REVOKE_FAILED"); - static const int GRANT_AND_REVOKE_FAILED_HASH = HashingUtils::HashString("GRANT_AND_REVOKE_FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int INACCESSIBLE_HASH = HashingUtils::HashString("INACCESSIBLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t GRANT_FAILED_HASH = ConstExprHashingUtils::HashString("GRANT_FAILED"); + static constexpr uint32_t REVOKE_FAILED_HASH = ConstExprHashingUtils::HashString("REVOKE_FAILED"); + static constexpr uint32_t GRANT_AND_REVOKE_FAILED_HASH = ConstExprHashingUtils::HashString("GRANT_AND_REVOKE_FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t INACCESSIBLE_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE"); SubscriptionGrantOverallStatus GetSubscriptionGrantOverallStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return SubscriptionGrantOverallStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantStatus.cpp index cab1ea38df3..b49c593f09d 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionGrantStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SubscriptionGrantStatusMapper { - static const int GRANT_PENDING_HASH = HashingUtils::HashString("GRANT_PENDING"); - static const int REVOKE_PENDING_HASH = HashingUtils::HashString("REVOKE_PENDING"); - static const int GRANT_IN_PROGRESS_HASH = HashingUtils::HashString("GRANT_IN_PROGRESS"); - static const int REVOKE_IN_PROGRESS_HASH = HashingUtils::HashString("REVOKE_IN_PROGRESS"); - static const int GRANTED_HASH = HashingUtils::HashString("GRANTED"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int GRANT_FAILED_HASH = HashingUtils::HashString("GRANT_FAILED"); - static const int REVOKE_FAILED_HASH = HashingUtils::HashString("REVOKE_FAILED"); + static constexpr uint32_t GRANT_PENDING_HASH = ConstExprHashingUtils::HashString("GRANT_PENDING"); + static constexpr uint32_t REVOKE_PENDING_HASH = ConstExprHashingUtils::HashString("REVOKE_PENDING"); + static constexpr uint32_t GRANT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("GRANT_IN_PROGRESS"); + static constexpr uint32_t REVOKE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REVOKE_IN_PROGRESS"); + static constexpr uint32_t GRANTED_HASH = ConstExprHashingUtils::HashString("GRANTED"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t GRANT_FAILED_HASH = ConstExprHashingUtils::HashString("GRANT_FAILED"); + static constexpr uint32_t REVOKE_FAILED_HASH = ConstExprHashingUtils::HashString("REVOKE_FAILED"); SubscriptionGrantStatus GetSubscriptionGrantStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GRANT_PENDING_HASH) { return SubscriptionGrantStatus::GRANT_PENDING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestStatus.cpp index f3d9f87aa68..3cc23e497ec 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionRequestStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SubscriptionRequestStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACCEPTED_HASH = ConstExprHashingUtils::HashString("ACCEPTED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); SubscriptionRequestStatus GetSubscriptionRequestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return SubscriptionRequestStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionStatus.cpp index 00f4ac253f6..f6c22fbc2ae 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SubscriptionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SubscriptionStatusMapper { - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); SubscriptionStatus GetSubscriptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVED_HASH) { return SubscriptionStatus::APPROVED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/TaskStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/TaskStatus.cpp index 005409fbeec..580f6927736 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/TaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/TaskStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TaskStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); TaskStatus GetTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TaskStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/Timezone.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/Timezone.cpp index 68c2be4fd80..3c335dea3a0 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/Timezone.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/Timezone.cpp @@ -20,75 +20,75 @@ namespace Aws namespace TimezoneMapper { - static const int UTC_HASH = HashingUtils::HashString("UTC"); - static const int AFRICA_JOHANNESBURG_HASH = HashingUtils::HashString("AFRICA_JOHANNESBURG"); - static const int AMERICA_MONTREAL_HASH = HashingUtils::HashString("AMERICA_MONTREAL"); - static const int AMERICA_SAO_PAULO_HASH = HashingUtils::HashString("AMERICA_SAO_PAULO"); - static const int ASIA_BAHRAIN_HASH = HashingUtils::HashString("ASIA_BAHRAIN"); - static const int ASIA_BANGKOK_HASH = HashingUtils::HashString("ASIA_BANGKOK"); - static const int ASIA_CALCUTTA_HASH = HashingUtils::HashString("ASIA_CALCUTTA"); - static const int ASIA_DUBAI_HASH = HashingUtils::HashString("ASIA_DUBAI"); - static const int ASIA_HONG_KONG_HASH = HashingUtils::HashString("ASIA_HONG_KONG"); - static const int ASIA_JAKARTA_HASH = HashingUtils::HashString("ASIA_JAKARTA"); - static const int ASIA_KUALA_LUMPUR_HASH = HashingUtils::HashString("ASIA_KUALA_LUMPUR"); - static const int ASIA_SEOUL_HASH = HashingUtils::HashString("ASIA_SEOUL"); - static const int ASIA_SHANGHAI_HASH = HashingUtils::HashString("ASIA_SHANGHAI"); - static const int ASIA_SINGAPORE_HASH = HashingUtils::HashString("ASIA_SINGAPORE"); - static const int ASIA_TAIPEI_HASH = HashingUtils::HashString("ASIA_TAIPEI"); - static const int ASIA_TOKYO_HASH = HashingUtils::HashString("ASIA_TOKYO"); - static const int AUSTRALIA_MELBOURNE_HASH = HashingUtils::HashString("AUSTRALIA_MELBOURNE"); - static const int AUSTRALIA_SYDNEY_HASH = HashingUtils::HashString("AUSTRALIA_SYDNEY"); - static const int CANADA_CENTRAL_HASH = HashingUtils::HashString("CANADA_CENTRAL"); - static const int CET_HASH = HashingUtils::HashString("CET"); - static const int CST6CDT_HASH = HashingUtils::HashString("CST6CDT"); - static const int ETC_GMT_HASH = HashingUtils::HashString("ETC_GMT"); - static const int ETC_GMT0_HASH = HashingUtils::HashString("ETC_GMT0"); - static const int ETC_GMT_ADD_0_HASH = HashingUtils::HashString("ETC_GMT_ADD_0"); - static const int ETC_GMT_ADD_1_HASH = HashingUtils::HashString("ETC_GMT_ADD_1"); - static const int ETC_GMT_ADD_10_HASH = HashingUtils::HashString("ETC_GMT_ADD_10"); - static const int ETC_GMT_ADD_11_HASH = HashingUtils::HashString("ETC_GMT_ADD_11"); - static const int ETC_GMT_ADD_12_HASH = HashingUtils::HashString("ETC_GMT_ADD_12"); - static const int ETC_GMT_ADD_2_HASH = HashingUtils::HashString("ETC_GMT_ADD_2"); - static const int ETC_GMT_ADD_3_HASH = HashingUtils::HashString("ETC_GMT_ADD_3"); - static const int ETC_GMT_ADD_4_HASH = HashingUtils::HashString("ETC_GMT_ADD_4"); - static const int ETC_GMT_ADD_5_HASH = HashingUtils::HashString("ETC_GMT_ADD_5"); - static const int ETC_GMT_ADD_6_HASH = HashingUtils::HashString("ETC_GMT_ADD_6"); - static const int ETC_GMT_ADD_7_HASH = HashingUtils::HashString("ETC_GMT_ADD_7"); - static const int ETC_GMT_ADD_8_HASH = HashingUtils::HashString("ETC_GMT_ADD_8"); - static const int ETC_GMT_ADD_9_HASH = HashingUtils::HashString("ETC_GMT_ADD_9"); - static const int ETC_GMT_NEG_0_HASH = HashingUtils::HashString("ETC_GMT_NEG_0"); - static const int ETC_GMT_NEG_1_HASH = HashingUtils::HashString("ETC_GMT_NEG_1"); - static const int ETC_GMT_NEG_10_HASH = HashingUtils::HashString("ETC_GMT_NEG_10"); - static const int ETC_GMT_NEG_11_HASH = HashingUtils::HashString("ETC_GMT_NEG_11"); - static const int ETC_GMT_NEG_12_HASH = HashingUtils::HashString("ETC_GMT_NEG_12"); - static const int ETC_GMT_NEG_13_HASH = HashingUtils::HashString("ETC_GMT_NEG_13"); - static const int ETC_GMT_NEG_14_HASH = HashingUtils::HashString("ETC_GMT_NEG_14"); - static const int ETC_GMT_NEG_2_HASH = HashingUtils::HashString("ETC_GMT_NEG_2"); - static const int ETC_GMT_NEG_3_HASH = HashingUtils::HashString("ETC_GMT_NEG_3"); - static const int ETC_GMT_NEG_4_HASH = HashingUtils::HashString("ETC_GMT_NEG_4"); - static const int ETC_GMT_NEG_5_HASH = HashingUtils::HashString("ETC_GMT_NEG_5"); - static const int ETC_GMT_NEG_6_HASH = HashingUtils::HashString("ETC_GMT_NEG_6"); - static const int ETC_GMT_NEG_7_HASH = HashingUtils::HashString("ETC_GMT_NEG_7"); - static const int ETC_GMT_NEG_8_HASH = HashingUtils::HashString("ETC_GMT_NEG_8"); - static const int ETC_GMT_NEG_9_HASH = HashingUtils::HashString("ETC_GMT_NEG_9"); - static const int EUROPE_DUBLIN_HASH = HashingUtils::HashString("EUROPE_DUBLIN"); - static const int EUROPE_LONDON_HASH = HashingUtils::HashString("EUROPE_LONDON"); - static const int EUROPE_PARIS_HASH = HashingUtils::HashString("EUROPE_PARIS"); - static const int EUROPE_STOCKHOLM_HASH = HashingUtils::HashString("EUROPE_STOCKHOLM"); - static const int EUROPE_ZURICH_HASH = HashingUtils::HashString("EUROPE_ZURICH"); - static const int ISRAEL_HASH = HashingUtils::HashString("ISRAEL"); - static const int MEXICO_GENERAL_HASH = HashingUtils::HashString("MEXICO_GENERAL"); - static const int MST7MDT_HASH = HashingUtils::HashString("MST7MDT"); - static const int PACIFIC_AUCKLAND_HASH = HashingUtils::HashString("PACIFIC_AUCKLAND"); - static const int US_CENTRAL_HASH = HashingUtils::HashString("US_CENTRAL"); - static const int US_EASTERN_HASH = HashingUtils::HashString("US_EASTERN"); - static const int US_MOUNTAIN_HASH = HashingUtils::HashString("US_MOUNTAIN"); - static const int US_PACIFIC_HASH = HashingUtils::HashString("US_PACIFIC"); + static constexpr uint32_t UTC_HASH = ConstExprHashingUtils::HashString("UTC"); + static constexpr uint32_t AFRICA_JOHANNESBURG_HASH = ConstExprHashingUtils::HashString("AFRICA_JOHANNESBURG"); + static constexpr uint32_t AMERICA_MONTREAL_HASH = ConstExprHashingUtils::HashString("AMERICA_MONTREAL"); + static constexpr uint32_t AMERICA_SAO_PAULO_HASH = ConstExprHashingUtils::HashString("AMERICA_SAO_PAULO"); + static constexpr uint32_t ASIA_BAHRAIN_HASH = ConstExprHashingUtils::HashString("ASIA_BAHRAIN"); + static constexpr uint32_t ASIA_BANGKOK_HASH = ConstExprHashingUtils::HashString("ASIA_BANGKOK"); + static constexpr uint32_t ASIA_CALCUTTA_HASH = ConstExprHashingUtils::HashString("ASIA_CALCUTTA"); + static constexpr uint32_t ASIA_DUBAI_HASH = ConstExprHashingUtils::HashString("ASIA_DUBAI"); + static constexpr uint32_t ASIA_HONG_KONG_HASH = ConstExprHashingUtils::HashString("ASIA_HONG_KONG"); + static constexpr uint32_t ASIA_JAKARTA_HASH = ConstExprHashingUtils::HashString("ASIA_JAKARTA"); + static constexpr uint32_t ASIA_KUALA_LUMPUR_HASH = ConstExprHashingUtils::HashString("ASIA_KUALA_LUMPUR"); + static constexpr uint32_t ASIA_SEOUL_HASH = ConstExprHashingUtils::HashString("ASIA_SEOUL"); + static constexpr uint32_t ASIA_SHANGHAI_HASH = ConstExprHashingUtils::HashString("ASIA_SHANGHAI"); + static constexpr uint32_t ASIA_SINGAPORE_HASH = ConstExprHashingUtils::HashString("ASIA_SINGAPORE"); + static constexpr uint32_t ASIA_TAIPEI_HASH = ConstExprHashingUtils::HashString("ASIA_TAIPEI"); + static constexpr uint32_t ASIA_TOKYO_HASH = ConstExprHashingUtils::HashString("ASIA_TOKYO"); + static constexpr uint32_t AUSTRALIA_MELBOURNE_HASH = ConstExprHashingUtils::HashString("AUSTRALIA_MELBOURNE"); + static constexpr uint32_t AUSTRALIA_SYDNEY_HASH = ConstExprHashingUtils::HashString("AUSTRALIA_SYDNEY"); + static constexpr uint32_t CANADA_CENTRAL_HASH = ConstExprHashingUtils::HashString("CANADA_CENTRAL"); + static constexpr uint32_t CET_HASH = ConstExprHashingUtils::HashString("CET"); + static constexpr uint32_t CST6CDT_HASH = ConstExprHashingUtils::HashString("CST6CDT"); + static constexpr uint32_t ETC_GMT_HASH = ConstExprHashingUtils::HashString("ETC_GMT"); + static constexpr uint32_t ETC_GMT0_HASH = ConstExprHashingUtils::HashString("ETC_GMT0"); + static constexpr uint32_t ETC_GMT_ADD_0_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_0"); + static constexpr uint32_t ETC_GMT_ADD_1_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_1"); + static constexpr uint32_t ETC_GMT_ADD_10_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_10"); + static constexpr uint32_t ETC_GMT_ADD_11_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_11"); + static constexpr uint32_t ETC_GMT_ADD_12_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_12"); + static constexpr uint32_t ETC_GMT_ADD_2_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_2"); + static constexpr uint32_t ETC_GMT_ADD_3_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_3"); + static constexpr uint32_t ETC_GMT_ADD_4_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_4"); + static constexpr uint32_t ETC_GMT_ADD_5_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_5"); + static constexpr uint32_t ETC_GMT_ADD_6_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_6"); + static constexpr uint32_t ETC_GMT_ADD_7_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_7"); + static constexpr uint32_t ETC_GMT_ADD_8_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_8"); + static constexpr uint32_t ETC_GMT_ADD_9_HASH = ConstExprHashingUtils::HashString("ETC_GMT_ADD_9"); + static constexpr uint32_t ETC_GMT_NEG_0_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_0"); + static constexpr uint32_t ETC_GMT_NEG_1_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_1"); + static constexpr uint32_t ETC_GMT_NEG_10_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_10"); + static constexpr uint32_t ETC_GMT_NEG_11_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_11"); + static constexpr uint32_t ETC_GMT_NEG_12_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_12"); + static constexpr uint32_t ETC_GMT_NEG_13_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_13"); + static constexpr uint32_t ETC_GMT_NEG_14_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_14"); + static constexpr uint32_t ETC_GMT_NEG_2_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_2"); + static constexpr uint32_t ETC_GMT_NEG_3_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_3"); + static constexpr uint32_t ETC_GMT_NEG_4_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_4"); + static constexpr uint32_t ETC_GMT_NEG_5_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_5"); + static constexpr uint32_t ETC_GMT_NEG_6_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_6"); + static constexpr uint32_t ETC_GMT_NEG_7_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_7"); + static constexpr uint32_t ETC_GMT_NEG_8_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_8"); + static constexpr uint32_t ETC_GMT_NEG_9_HASH = ConstExprHashingUtils::HashString("ETC_GMT_NEG_9"); + static constexpr uint32_t EUROPE_DUBLIN_HASH = ConstExprHashingUtils::HashString("EUROPE_DUBLIN"); + static constexpr uint32_t EUROPE_LONDON_HASH = ConstExprHashingUtils::HashString("EUROPE_LONDON"); + static constexpr uint32_t EUROPE_PARIS_HASH = ConstExprHashingUtils::HashString("EUROPE_PARIS"); + static constexpr uint32_t EUROPE_STOCKHOLM_HASH = ConstExprHashingUtils::HashString("EUROPE_STOCKHOLM"); + static constexpr uint32_t EUROPE_ZURICH_HASH = ConstExprHashingUtils::HashString("EUROPE_ZURICH"); + static constexpr uint32_t ISRAEL_HASH = ConstExprHashingUtils::HashString("ISRAEL"); + static constexpr uint32_t MEXICO_GENERAL_HASH = ConstExprHashingUtils::HashString("MEXICO_GENERAL"); + static constexpr uint32_t MST7MDT_HASH = ConstExprHashingUtils::HashString("MST7MDT"); + static constexpr uint32_t PACIFIC_AUCKLAND_HASH = ConstExprHashingUtils::HashString("PACIFIC_AUCKLAND"); + static constexpr uint32_t US_CENTRAL_HASH = ConstExprHashingUtils::HashString("US_CENTRAL"); + static constexpr uint32_t US_EASTERN_HASH = ConstExprHashingUtils::HashString("US_EASTERN"); + static constexpr uint32_t US_MOUNTAIN_HASH = ConstExprHashingUtils::HashString("US_MOUNTAIN"); + static constexpr uint32_t US_PACIFIC_HASH = ConstExprHashingUtils::HashString("US_PACIFIC"); Timezone GetTimezoneForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UTC_HASH) { return Timezone::UTC; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/TypesSearchScope.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/TypesSearchScope.cpp index 7ac3053a254..02218cfc9b7 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/TypesSearchScope.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/TypesSearchScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypesSearchScopeMapper { - static const int ASSET_TYPE_HASH = HashingUtils::HashString("ASSET_TYPE"); - static const int FORM_TYPE_HASH = HashingUtils::HashString("FORM_TYPE"); + static constexpr uint32_t ASSET_TYPE_HASH = ConstExprHashingUtils::HashString("ASSET_TYPE"); + static constexpr uint32_t FORM_TYPE_HASH = ConstExprHashingUtils::HashString("FORM_TYPE"); TypesSearchScope GetTypesSearchScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSET_TYPE_HASH) { return TypesSearchScope::ASSET_TYPE; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UserAssignment.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UserAssignment.cpp index e7c00a18d18..38c9d936545 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UserAssignment.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UserAssignment.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserAssignmentMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); UserAssignment GetUserAssignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return UserAssignment::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UserDesignation.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UserDesignation.cpp index 5004e62705c..f85edb57c81 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UserDesignation.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UserDesignation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserDesignationMapper { - static const int PROJECT_OWNER_HASH = HashingUtils::HashString("PROJECT_OWNER"); - static const int PROJECT_CONTRIBUTOR_HASH = HashingUtils::HashString("PROJECT_CONTRIBUTOR"); + static constexpr uint32_t PROJECT_OWNER_HASH = ConstExprHashingUtils::HashString("PROJECT_OWNER"); + static constexpr uint32_t PROJECT_CONTRIBUTOR_HASH = ConstExprHashingUtils::HashString("PROJECT_CONTRIBUTOR"); UserDesignation GetUserDesignationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECT_OWNER_HASH) { return UserDesignation::PROJECT_OWNER; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileStatus.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileStatus.cpp index cdac371e795..5ca30ac01d7 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileStatus.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UserProfileStatusMapper { - static const int ASSIGNED_HASH = HashingUtils::HashString("ASSIGNED"); - static const int NOT_ASSIGNED_HASH = HashingUtils::HashString("NOT_ASSIGNED"); - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t ASSIGNED_HASH = ConstExprHashingUtils::HashString("ASSIGNED"); + static constexpr uint32_t NOT_ASSIGNED_HASH = ConstExprHashingUtils::HashString("NOT_ASSIGNED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); UserProfileStatus GetUserProfileStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSIGNED_HASH) { return UserProfileStatus::ASSIGNED; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileType.cpp index 3c66258a9ef..689c5a8cf4c 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UserProfileType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserProfileTypeMapper { - static const int IAM_HASH = HashingUtils::HashString("IAM"); - static const int SSO_HASH = HashingUtils::HashString("SSO"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); + static constexpr uint32_t SSO_HASH = ConstExprHashingUtils::HashString("SSO"); UserProfileType GetUserProfileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_HASH) { return UserProfileType::IAM; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UserSearchType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UserSearchType.cpp index 45b616039d5..6863d3fa40a 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UserSearchType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UserSearchType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UserSearchTypeMapper { - static const int SSO_USER_HASH = HashingUtils::HashString("SSO_USER"); - static const int DATAZONE_USER_HASH = HashingUtils::HashString("DATAZONE_USER"); - static const int DATAZONE_SSO_USER_HASH = HashingUtils::HashString("DATAZONE_SSO_USER"); - static const int DATAZONE_IAM_USER_HASH = HashingUtils::HashString("DATAZONE_IAM_USER"); + static constexpr uint32_t SSO_USER_HASH = ConstExprHashingUtils::HashString("SSO_USER"); + static constexpr uint32_t DATAZONE_USER_HASH = ConstExprHashingUtils::HashString("DATAZONE_USER"); + static constexpr uint32_t DATAZONE_SSO_USER_HASH = ConstExprHashingUtils::HashString("DATAZONE_SSO_USER"); + static constexpr uint32_t DATAZONE_IAM_USER_HASH = ConstExprHashingUtils::HashString("DATAZONE_IAM_USER"); UserSearchType GetUserSearchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSO_USER_HASH) { return UserSearchType::SSO_USER; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/UserType.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/UserType.cpp index 03a08becdd5..e02e7ea3f8f 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/UserType.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/UserType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UserTypeMapper { - static const int IAM_USER_HASH = HashingUtils::HashString("IAM_USER"); - static const int IAM_ROLE_HASH = HashingUtils::HashString("IAM_ROLE"); - static const int SSO_USER_HASH = HashingUtils::HashString("SSO_USER"); + static constexpr uint32_t IAM_USER_HASH = ConstExprHashingUtils::HashString("IAM_USER"); + static constexpr uint32_t IAM_ROLE_HASH = ConstExprHashingUtils::HashString("IAM_ROLE"); + static constexpr uint32_t SSO_USER_HASH = ConstExprHashingUtils::HashString("SSO_USER"); UserType GetUserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_USER_HASH) { return UserType::IAM_USER; diff --git a/generated/src/aws-cpp-sdk-dax/source/DAXErrors.cpp b/generated/src/aws-cpp-sdk-dax/source/DAXErrors.cpp index 0f6ac8225b4..94a8eb34f7b 100644 --- a/generated/src/aws-cpp-sdk-dax/source/DAXErrors.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/DAXErrors.cpp @@ -18,36 +18,36 @@ namespace DAX namespace DAXErrorMapper { -static const int TAG_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("TagNotFoundFault"); -static const int SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("SubnetGroupAlreadyExistsFault"); -static const int INVALID_A_R_N_FAULT_HASH = HashingUtils::HashString("InvalidARNFault"); -static const int INVALID_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterStateFault"); -static const int NODE_QUOTA_FOR_CLUSTER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeQuotaForClusterExceededFault"); -static const int CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterNotFoundFault"); -static const int SUBNET_IN_USE_HASH = HashingUtils::HashString("SubnetInUse"); -static const int PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ParameterGroupQuotaExceededFault"); -static const int CLUSTER_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterQuotaForCustomerExceededFault"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int SUBNET_GROUP_IN_USE_FAULT_HASH = HashingUtils::HashString("SubnetGroupInUseFault"); -static const int SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SubnetQuotaExceededFault"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SubnetGroupQuotaExceededFault"); -static const int NODE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("NodeNotFoundFault"); -static const int INSUFFICIENT_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientClusterCapacityFault"); -static const int PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ParameterGroupNotFoundFault"); -static const int PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ParameterGroupAlreadyExistsFault"); -static const int SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubnetGroupNotFoundFault"); -static const int INVALID_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidParameterGroupStateFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int SERVICE_LINKED_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ServiceLinkedRoleNotFoundFault"); -static const int TAG_QUOTA_PER_RESOURCE_EXCEEDED_HASH = HashingUtils::HashString("TagQuotaPerResourceExceeded"); -static const int NODE_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeQuotaForCustomerExceededFault"); -static const int CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterAlreadyExistsFault"); +static constexpr uint32_t TAG_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("TagNotFoundFault"); +static constexpr uint32_t SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupAlreadyExistsFault"); +static constexpr uint32_t INVALID_A_R_N_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidARNFault"); +static constexpr uint32_t INVALID_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterStateFault"); +static constexpr uint32_t NODE_QUOTA_FOR_CLUSTER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeQuotaForClusterExceededFault"); +static constexpr uint32_t CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterNotFoundFault"); +static constexpr uint32_t SUBNET_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetInUse"); +static constexpr uint32_t PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ParameterGroupQuotaExceededFault"); +static constexpr uint32_t CLUSTER_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterQuotaForCustomerExceededFault"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t SUBNET_GROUP_IN_USE_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupInUseFault"); +static constexpr uint32_t SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetQuotaExceededFault"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupQuotaExceededFault"); +static constexpr uint32_t NODE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("NodeNotFoundFault"); +static constexpr uint32_t INSUFFICIENT_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientClusterCapacityFault"); +static constexpr uint32_t PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ParameterGroupNotFoundFault"); +static constexpr uint32_t PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ParameterGroupAlreadyExistsFault"); +static constexpr uint32_t SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupNotFoundFault"); +static constexpr uint32_t INVALID_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidParameterGroupStateFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t SERVICE_LINKED_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ServiceLinkedRoleNotFoundFault"); +static constexpr uint32_t TAG_QUOTA_PER_RESOURCE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagQuotaPerResourceExceeded"); +static constexpr uint32_t NODE_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeQuotaForCustomerExceededFault"); +static constexpr uint32_t CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterAlreadyExistsFault"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TAG_NOT_FOUND_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-dax/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-dax/source/model/ChangeType.cpp index 526c05015b5..376444bff62 100644 --- a/generated/src/aws-cpp-sdk-dax/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/model/ChangeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeTypeMapper { - static const int IMMEDIATE_HASH = HashingUtils::HashString("IMMEDIATE"); - static const int REQUIRES_REBOOT_HASH = HashingUtils::HashString("REQUIRES_REBOOT"); + static constexpr uint32_t IMMEDIATE_HASH = ConstExprHashingUtils::HashString("IMMEDIATE"); + static constexpr uint32_t REQUIRES_REBOOT_HASH = ConstExprHashingUtils::HashString("REQUIRES_REBOOT"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMMEDIATE_HASH) { return ChangeType::IMMEDIATE; diff --git a/generated/src/aws-cpp-sdk-dax/source/model/ClusterEndpointEncryptionType.cpp b/generated/src/aws-cpp-sdk-dax/source/model/ClusterEndpointEncryptionType.cpp index c0ead24fd44..be26511934c 100644 --- a/generated/src/aws-cpp-sdk-dax/source/model/ClusterEndpointEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/model/ClusterEndpointEncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClusterEndpointEncryptionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int TLS_HASH = HashingUtils::HashString("TLS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t TLS_HASH = ConstExprHashingUtils::HashString("TLS"); ClusterEndpointEncryptionType GetClusterEndpointEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ClusterEndpointEncryptionType::NONE; diff --git a/generated/src/aws-cpp-sdk-dax/source/model/IsModifiable.cpp b/generated/src/aws-cpp-sdk-dax/source/model/IsModifiable.cpp index 4a27c6544b7..c52122648c2 100644 --- a/generated/src/aws-cpp-sdk-dax/source/model/IsModifiable.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/model/IsModifiable.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IsModifiableMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); - static const int CONDITIONAL_HASH = HashingUtils::HashString("CONDITIONAL"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); + static constexpr uint32_t CONDITIONAL_HASH = ConstExprHashingUtils::HashString("CONDITIONAL"); IsModifiable GetIsModifiableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return IsModifiable::TRUE; diff --git a/generated/src/aws-cpp-sdk-dax/source/model/ParameterType.cpp b/generated/src/aws-cpp-sdk-dax/source/model/ParameterType.cpp index 9be14f40df4..ff467b96a18 100644 --- a/generated/src/aws-cpp-sdk-dax/source/model/ParameterType.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/model/ParameterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParameterTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int NODE_TYPE_SPECIFIC_HASH = HashingUtils::HashString("NODE_TYPE_SPECIFIC"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t NODE_TYPE_SPECIFIC_HASH = ConstExprHashingUtils::HashString("NODE_TYPE_SPECIFIC"); ParameterType GetParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ParameterType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-dax/source/model/SSEStatus.cpp b/generated/src/aws-cpp-sdk-dax/source/model/SSEStatus.cpp index bf1020a6678..69495e8c6fd 100644 --- a/generated/src/aws-cpp-sdk-dax/source/model/SSEStatus.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/model/SSEStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SSEStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); SSEStatus GetSSEStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return SSEStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-dax/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-dax/source/model/SourceType.cpp index 75a1df75a64..4f06b70e4c4 100644 --- a/generated/src/aws-cpp-sdk-dax/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/model/SourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SourceTypeMapper { - static const int CLUSTER_HASH = HashingUtils::HashString("CLUSTER"); - static const int PARAMETER_GROUP_HASH = HashingUtils::HashString("PARAMETER_GROUP"); - static const int SUBNET_GROUP_HASH = HashingUtils::HashString("SUBNET_GROUP"); + static constexpr uint32_t CLUSTER_HASH = ConstExprHashingUtils::HashString("CLUSTER"); + static constexpr uint32_t PARAMETER_GROUP_HASH = ConstExprHashingUtils::HashString("PARAMETER_GROUP"); + static constexpr uint32_t SUBNET_GROUP_HASH = ConstExprHashingUtils::HashString("SUBNET_GROUP"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLUSTER_HASH) { return SourceType::CLUSTER; diff --git a/generated/src/aws-cpp-sdk-detective/source/DetectiveErrors.cpp b/generated/src/aws-cpp-sdk-detective/source/DetectiveErrors.cpp index fbf3a34588f..64cf488a8bf 100644 --- a/generated/src/aws-cpp-sdk-detective/source/DetectiveErrors.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/DetectiveErrors.cpp @@ -40,15 +40,15 @@ template<> AWS_DETECTIVE_API AccessDeniedException DetectiveError::GetModeledErr namespace DetectiveErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackage.cpp b/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackage.cpp index eeb6a627ff4..8636fd3ce11 100644 --- a/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackage.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackage.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasourcePackageMapper { - static const int DETECTIVE_CORE_HASH = HashingUtils::HashString("DETECTIVE_CORE"); - static const int EKS_AUDIT_HASH = HashingUtils::HashString("EKS_AUDIT"); - static const int ASFF_SECURITYHUB_FINDING_HASH = HashingUtils::HashString("ASFF_SECURITYHUB_FINDING"); + static constexpr uint32_t DETECTIVE_CORE_HASH = ConstExprHashingUtils::HashString("DETECTIVE_CORE"); + static constexpr uint32_t EKS_AUDIT_HASH = ConstExprHashingUtils::HashString("EKS_AUDIT"); + static constexpr uint32_t ASFF_SECURITYHUB_FINDING_HASH = ConstExprHashingUtils::HashString("ASFF_SECURITYHUB_FINDING"); DatasourcePackage GetDatasourcePackageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DETECTIVE_CORE_HASH) { return DatasourcePackage::DETECTIVE_CORE; diff --git a/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackageIngestState.cpp b/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackageIngestState.cpp index e5f743bbbef..f720d0d7f0b 100644 --- a/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackageIngestState.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/model/DatasourcePackageIngestState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasourcePackageIngestStateMapper { - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DatasourcePackageIngestState GetDatasourcePackageIngestStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTED_HASH) { return DatasourcePackageIngestState::STARTED; diff --git a/generated/src/aws-cpp-sdk-detective/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-detective/source/model/ErrorCode.cpp index 75e1a799cee..d3b710568ee 100644 --- a/generated/src/aws-cpp-sdk-detective/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/model/ErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ErrorCodeMapper { - static const int INVALID_GRAPH_ARN_HASH = HashingUtils::HashString("INVALID_GRAPH_ARN"); - static const int INVALID_REQUEST_BODY_HASH = HashingUtils::HashString("INVALID_REQUEST_BODY"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_GRAPH_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_GRAPH_ARN"); + static constexpr uint32_t INVALID_REQUEST_BODY_HASH = ConstExprHashingUtils::HashString("INVALID_REQUEST_BODY"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_GRAPH_ARN_HASH) { return ErrorCode::INVALID_GRAPH_ARN; diff --git a/generated/src/aws-cpp-sdk-detective/source/model/InvitationType.cpp b/generated/src/aws-cpp-sdk-detective/source/model/InvitationType.cpp index 13e72a720e2..9ea0645c0a7 100644 --- a/generated/src/aws-cpp-sdk-detective/source/model/InvitationType.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/model/InvitationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InvitationTypeMapper { - static const int INVITATION_HASH = HashingUtils::HashString("INVITATION"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t INVITATION_HASH = ConstExprHashingUtils::HashString("INVITATION"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); InvitationType GetInvitationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVITATION_HASH) { return InvitationType::INVITATION; diff --git a/generated/src/aws-cpp-sdk-detective/source/model/MemberDisabledReason.cpp b/generated/src/aws-cpp-sdk-detective/source/model/MemberDisabledReason.cpp index 2f6db3d508e..2cebb9f079d 100644 --- a/generated/src/aws-cpp-sdk-detective/source/model/MemberDisabledReason.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/model/MemberDisabledReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MemberDisabledReasonMapper { - static const int VOLUME_TOO_HIGH_HASH = HashingUtils::HashString("VOLUME_TOO_HIGH"); - static const int VOLUME_UNKNOWN_HASH = HashingUtils::HashString("VOLUME_UNKNOWN"); + static constexpr uint32_t VOLUME_TOO_HIGH_HASH = ConstExprHashingUtils::HashString("VOLUME_TOO_HIGH"); + static constexpr uint32_t VOLUME_UNKNOWN_HASH = ConstExprHashingUtils::HashString("VOLUME_UNKNOWN"); MemberDisabledReason GetMemberDisabledReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VOLUME_TOO_HIGH_HASH) { return MemberDisabledReason::VOLUME_TOO_HIGH; diff --git a/generated/src/aws-cpp-sdk-detective/source/model/MemberStatus.cpp b/generated/src/aws-cpp-sdk-detective/source/model/MemberStatus.cpp index 6f0ac0076bd..ab9cc5bd608 100644 --- a/generated/src/aws-cpp-sdk-detective/source/model/MemberStatus.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/model/MemberStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MemberStatusMapper { - static const int INVITED_HASH = HashingUtils::HashString("INVITED"); - static const int VERIFICATION_IN_PROGRESS_HASH = HashingUtils::HashString("VERIFICATION_IN_PROGRESS"); - static const int VERIFICATION_FAILED_HASH = HashingUtils::HashString("VERIFICATION_FAILED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ACCEPTED_BUT_DISABLED_HASH = HashingUtils::HashString("ACCEPTED_BUT_DISABLED"); + static constexpr uint32_t INVITED_HASH = ConstExprHashingUtils::HashString("INVITED"); + static constexpr uint32_t VERIFICATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("VERIFICATION_IN_PROGRESS"); + static constexpr uint32_t VERIFICATION_FAILED_HASH = ConstExprHashingUtils::HashString("VERIFICATION_FAILED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ACCEPTED_BUT_DISABLED_HASH = ConstExprHashingUtils::HashString("ACCEPTED_BUT_DISABLED"); MemberStatus GetMemberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVITED_HASH) { return MemberStatus::INVITED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmErrors.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmErrors.cpp index 53f945b0d4a..6ecb41729fb 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmErrors.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmErrors.cpp @@ -40,23 +40,23 @@ template<> AWS_DEVICEFARM_API TagPolicyException DeviceFarmError::GetModeledErro namespace DeviceFarmErrorMapper { -static const int IDEMPOTENCY_HASH = HashingUtils::HashString("IdempotencyException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int ARGUMENT_HASH = HashingUtils::HashString("ArgumentException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int SERVICE_ACCOUNT_HASH = HashingUtils::HashString("ServiceAccountException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int TAG_OPERATION_HASH = HashingUtils::HashString("TagOperationException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int TAG_POLICY_HASH = HashingUtils::HashString("TagPolicyException"); -static const int CANNOT_DELETE_HASH = HashingUtils::HashString("CannotDeleteException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int NOT_ELIGIBLE_HASH = HashingUtils::HashString("NotEligibleException"); +static constexpr uint32_t IDEMPOTENCY_HASH = ConstExprHashingUtils::HashString("IdempotencyException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t ARGUMENT_HASH = ConstExprHashingUtils::HashString("ArgumentException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t SERVICE_ACCOUNT_HASH = ConstExprHashingUtils::HashString("ServiceAccountException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TAG_OPERATION_HASH = ConstExprHashingUtils::HashString("TagOperationException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t TAG_POLICY_HASH = ConstExprHashingUtils::HashString("TagPolicyException"); +static constexpr uint32_t CANNOT_DELETE_HASH = ConstExprHashingUtils::HashString("CannotDeleteException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t NOT_ELIGIBLE_HASH = ConstExprHashingUtils::HashString("NotEligibleException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == IDEMPOTENCY_HASH) { diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactCategory.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactCategory.cpp index 5e37c6af9fc..2adfc9bc68d 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactCategory.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactCategory.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ArtifactCategoryMapper { - static const int SCREENSHOT_HASH = HashingUtils::HashString("SCREENSHOT"); - static const int FILE_HASH = HashingUtils::HashString("FILE"); - static const int LOG_HASH = HashingUtils::HashString("LOG"); + static constexpr uint32_t SCREENSHOT_HASH = ConstExprHashingUtils::HashString("SCREENSHOT"); + static constexpr uint32_t FILE_HASH = ConstExprHashingUtils::HashString("FILE"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); ArtifactCategory GetArtifactCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCREENSHOT_HASH) { return ArtifactCategory::SCREENSHOT; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactType.cpp index 8b0bcdd2ae4..26e052357b0 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/ArtifactType.cpp @@ -20,39 +20,39 @@ namespace Aws namespace ArtifactTypeMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int SCREENSHOT_HASH = HashingUtils::HashString("SCREENSHOT"); - static const int DEVICE_LOG_HASH = HashingUtils::HashString("DEVICE_LOG"); - static const int MESSAGE_LOG_HASH = HashingUtils::HashString("MESSAGE_LOG"); - static const int VIDEO_LOG_HASH = HashingUtils::HashString("VIDEO_LOG"); - static const int RESULT_LOG_HASH = HashingUtils::HashString("RESULT_LOG"); - static const int SERVICE_LOG_HASH = HashingUtils::HashString("SERVICE_LOG"); - static const int WEBKIT_LOG_HASH = HashingUtils::HashString("WEBKIT_LOG"); - static const int INSTRUMENTATION_OUTPUT_HASH = HashingUtils::HashString("INSTRUMENTATION_OUTPUT"); - static const int EXERCISER_MONKEY_OUTPUT_HASH = HashingUtils::HashString("EXERCISER_MONKEY_OUTPUT"); - static const int CALABASH_JSON_OUTPUT_HASH = HashingUtils::HashString("CALABASH_JSON_OUTPUT"); - static const int CALABASH_PRETTY_OUTPUT_HASH = HashingUtils::HashString("CALABASH_PRETTY_OUTPUT"); - static const int CALABASH_STANDARD_OUTPUT_HASH = HashingUtils::HashString("CALABASH_STANDARD_OUTPUT"); - static const int CALABASH_JAVA_XML_OUTPUT_HASH = HashingUtils::HashString("CALABASH_JAVA_XML_OUTPUT"); - static const int AUTOMATION_OUTPUT_HASH = HashingUtils::HashString("AUTOMATION_OUTPUT"); - static const int APPIUM_SERVER_OUTPUT_HASH = HashingUtils::HashString("APPIUM_SERVER_OUTPUT"); - static const int APPIUM_JAVA_OUTPUT_HASH = HashingUtils::HashString("APPIUM_JAVA_OUTPUT"); - static const int APPIUM_JAVA_XML_OUTPUT_HASH = HashingUtils::HashString("APPIUM_JAVA_XML_OUTPUT"); - static const int APPIUM_PYTHON_OUTPUT_HASH = HashingUtils::HashString("APPIUM_PYTHON_OUTPUT"); - static const int APPIUM_PYTHON_XML_OUTPUT_HASH = HashingUtils::HashString("APPIUM_PYTHON_XML_OUTPUT"); - static const int EXPLORER_EVENT_LOG_HASH = HashingUtils::HashString("EXPLORER_EVENT_LOG"); - static const int EXPLORER_SUMMARY_LOG_HASH = HashingUtils::HashString("EXPLORER_SUMMARY_LOG"); - static const int APPLICATION_CRASH_REPORT_HASH = HashingUtils::HashString("APPLICATION_CRASH_REPORT"); - static const int XCTEST_LOG_HASH = HashingUtils::HashString("XCTEST_LOG"); - static const int VIDEO_HASH = HashingUtils::HashString("VIDEO"); - static const int CUSTOMER_ARTIFACT_HASH = HashingUtils::HashString("CUSTOMER_ARTIFACT"); - static const int CUSTOMER_ARTIFACT_LOG_HASH = HashingUtils::HashString("CUSTOMER_ARTIFACT_LOG"); - static const int TESTSPEC_OUTPUT_HASH = HashingUtils::HashString("TESTSPEC_OUTPUT"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t SCREENSHOT_HASH = ConstExprHashingUtils::HashString("SCREENSHOT"); + static constexpr uint32_t DEVICE_LOG_HASH = ConstExprHashingUtils::HashString("DEVICE_LOG"); + static constexpr uint32_t MESSAGE_LOG_HASH = ConstExprHashingUtils::HashString("MESSAGE_LOG"); + static constexpr uint32_t VIDEO_LOG_HASH = ConstExprHashingUtils::HashString("VIDEO_LOG"); + static constexpr uint32_t RESULT_LOG_HASH = ConstExprHashingUtils::HashString("RESULT_LOG"); + static constexpr uint32_t SERVICE_LOG_HASH = ConstExprHashingUtils::HashString("SERVICE_LOG"); + static constexpr uint32_t WEBKIT_LOG_HASH = ConstExprHashingUtils::HashString("WEBKIT_LOG"); + static constexpr uint32_t INSTRUMENTATION_OUTPUT_HASH = ConstExprHashingUtils::HashString("INSTRUMENTATION_OUTPUT"); + static constexpr uint32_t EXERCISER_MONKEY_OUTPUT_HASH = ConstExprHashingUtils::HashString("EXERCISER_MONKEY_OUTPUT"); + static constexpr uint32_t CALABASH_JSON_OUTPUT_HASH = ConstExprHashingUtils::HashString("CALABASH_JSON_OUTPUT"); + static constexpr uint32_t CALABASH_PRETTY_OUTPUT_HASH = ConstExprHashingUtils::HashString("CALABASH_PRETTY_OUTPUT"); + static constexpr uint32_t CALABASH_STANDARD_OUTPUT_HASH = ConstExprHashingUtils::HashString("CALABASH_STANDARD_OUTPUT"); + static constexpr uint32_t CALABASH_JAVA_XML_OUTPUT_HASH = ConstExprHashingUtils::HashString("CALABASH_JAVA_XML_OUTPUT"); + static constexpr uint32_t AUTOMATION_OUTPUT_HASH = ConstExprHashingUtils::HashString("AUTOMATION_OUTPUT"); + static constexpr uint32_t APPIUM_SERVER_OUTPUT_HASH = ConstExprHashingUtils::HashString("APPIUM_SERVER_OUTPUT"); + static constexpr uint32_t APPIUM_JAVA_OUTPUT_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_OUTPUT"); + static constexpr uint32_t APPIUM_JAVA_XML_OUTPUT_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_XML_OUTPUT"); + static constexpr uint32_t APPIUM_PYTHON_OUTPUT_HASH = ConstExprHashingUtils::HashString("APPIUM_PYTHON_OUTPUT"); + static constexpr uint32_t APPIUM_PYTHON_XML_OUTPUT_HASH = ConstExprHashingUtils::HashString("APPIUM_PYTHON_XML_OUTPUT"); + static constexpr uint32_t EXPLORER_EVENT_LOG_HASH = ConstExprHashingUtils::HashString("EXPLORER_EVENT_LOG"); + static constexpr uint32_t EXPLORER_SUMMARY_LOG_HASH = ConstExprHashingUtils::HashString("EXPLORER_SUMMARY_LOG"); + static constexpr uint32_t APPLICATION_CRASH_REPORT_HASH = ConstExprHashingUtils::HashString("APPLICATION_CRASH_REPORT"); + static constexpr uint32_t XCTEST_LOG_HASH = ConstExprHashingUtils::HashString("XCTEST_LOG"); + static constexpr uint32_t VIDEO_HASH = ConstExprHashingUtils::HashString("VIDEO"); + static constexpr uint32_t CUSTOMER_ARTIFACT_HASH = ConstExprHashingUtils::HashString("CUSTOMER_ARTIFACT"); + static constexpr uint32_t CUSTOMER_ARTIFACT_LOG_HASH = ConstExprHashingUtils::HashString("CUSTOMER_ARTIFACT_LOG"); + static constexpr uint32_t TESTSPEC_OUTPUT_HASH = ConstExprHashingUtils::HashString("TESTSPEC_OUTPUT"); ArtifactType GetArtifactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return ArtifactType::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/BillingMethod.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/BillingMethod.cpp index 9e4a05a4fa4..1ff9af342b2 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/BillingMethod.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/BillingMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BillingMethodMapper { - static const int METERED_HASH = HashingUtils::HashString("METERED"); - static const int UNMETERED_HASH = HashingUtils::HashString("UNMETERED"); + static constexpr uint32_t METERED_HASH = ConstExprHashingUtils::HashString("METERED"); + static constexpr uint32_t UNMETERED_HASH = ConstExprHashingUtils::HashString("UNMETERED"); BillingMethod GetBillingMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == METERED_HASH) { return BillingMethod::METERED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/CurrencyCode.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/CurrencyCode.cpp index 9c78770ea32..f34d2bc05ca 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/CurrencyCode.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/CurrencyCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CurrencyCodeMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); CurrencyCode GetCurrencyCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return CurrencyCode::USD; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAttribute.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAttribute.cpp index d743c1d20a4..e4089210c42 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAttribute.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAttribute.cpp @@ -20,24 +20,24 @@ namespace Aws namespace DeviceAttributeMapper { - static const int ARN_HASH = HashingUtils::HashString("ARN"); - static const int PLATFORM_HASH = HashingUtils::HashString("PLATFORM"); - static const int FORM_FACTOR_HASH = HashingUtils::HashString("FORM_FACTOR"); - static const int MANUFACTURER_HASH = HashingUtils::HashString("MANUFACTURER"); - static const int REMOTE_ACCESS_ENABLED_HASH = HashingUtils::HashString("REMOTE_ACCESS_ENABLED"); - static const int REMOTE_DEBUG_ENABLED_HASH = HashingUtils::HashString("REMOTE_DEBUG_ENABLED"); - static const int APPIUM_VERSION_HASH = HashingUtils::HashString("APPIUM_VERSION"); - static const int INSTANCE_ARN_HASH = HashingUtils::HashString("INSTANCE_ARN"); - static const int INSTANCE_LABELS_HASH = HashingUtils::HashString("INSTANCE_LABELS"); - static const int FLEET_TYPE_HASH = HashingUtils::HashString("FLEET_TYPE"); - static const int OS_VERSION_HASH = HashingUtils::HashString("OS_VERSION"); - static const int MODEL_HASH = HashingUtils::HashString("MODEL"); - static const int AVAILABILITY_HASH = HashingUtils::HashString("AVAILABILITY"); + static constexpr uint32_t ARN_HASH = ConstExprHashingUtils::HashString("ARN"); + static constexpr uint32_t PLATFORM_HASH = ConstExprHashingUtils::HashString("PLATFORM"); + static constexpr uint32_t FORM_FACTOR_HASH = ConstExprHashingUtils::HashString("FORM_FACTOR"); + static constexpr uint32_t MANUFACTURER_HASH = ConstExprHashingUtils::HashString("MANUFACTURER"); + static constexpr uint32_t REMOTE_ACCESS_ENABLED_HASH = ConstExprHashingUtils::HashString("REMOTE_ACCESS_ENABLED"); + static constexpr uint32_t REMOTE_DEBUG_ENABLED_HASH = ConstExprHashingUtils::HashString("REMOTE_DEBUG_ENABLED"); + static constexpr uint32_t APPIUM_VERSION_HASH = ConstExprHashingUtils::HashString("APPIUM_VERSION"); + static constexpr uint32_t INSTANCE_ARN_HASH = ConstExprHashingUtils::HashString("INSTANCE_ARN"); + static constexpr uint32_t INSTANCE_LABELS_HASH = ConstExprHashingUtils::HashString("INSTANCE_LABELS"); + static constexpr uint32_t FLEET_TYPE_HASH = ConstExprHashingUtils::HashString("FLEET_TYPE"); + static constexpr uint32_t OS_VERSION_HASH = ConstExprHashingUtils::HashString("OS_VERSION"); + static constexpr uint32_t MODEL_HASH = ConstExprHashingUtils::HashString("MODEL"); + static constexpr uint32_t AVAILABILITY_HASH = ConstExprHashingUtils::HashString("AVAILABILITY"); DeviceAttribute GetDeviceAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARN_HASH) { return DeviceAttribute::ARN; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAvailability.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAvailability.cpp index f7ec3669b6d..445710a50a5 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAvailability.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceAvailability.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeviceAvailabilityMapper { - static const int TEMPORARY_NOT_AVAILABLE_HASH = HashingUtils::HashString("TEMPORARY_NOT_AVAILABLE"); - static const int BUSY_HASH = HashingUtils::HashString("BUSY"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int HIGHLY_AVAILABLE_HASH = HashingUtils::HashString("HIGHLY_AVAILABLE"); + static constexpr uint32_t TEMPORARY_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_NOT_AVAILABLE"); + static constexpr uint32_t BUSY_HASH = ConstExprHashingUtils::HashString("BUSY"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t HIGHLY_AVAILABLE_HASH = ConstExprHashingUtils::HashString("HIGHLY_AVAILABLE"); DeviceAvailability GetDeviceAvailabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEMPORARY_NOT_AVAILABLE_HASH) { return DeviceAvailability::TEMPORARY_NOT_AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFilterAttribute.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFilterAttribute.cpp index 1e61c7cee0f..9c98a00334b 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFilterAttribute.cpp @@ -20,23 +20,23 @@ namespace Aws namespace DeviceFilterAttributeMapper { - static const int ARN_HASH = HashingUtils::HashString("ARN"); - static const int PLATFORM_HASH = HashingUtils::HashString("PLATFORM"); - static const int OS_VERSION_HASH = HashingUtils::HashString("OS_VERSION"); - static const int MODEL_HASH = HashingUtils::HashString("MODEL"); - static const int AVAILABILITY_HASH = HashingUtils::HashString("AVAILABILITY"); - static const int FORM_FACTOR_HASH = HashingUtils::HashString("FORM_FACTOR"); - static const int MANUFACTURER_HASH = HashingUtils::HashString("MANUFACTURER"); - static const int REMOTE_ACCESS_ENABLED_HASH = HashingUtils::HashString("REMOTE_ACCESS_ENABLED"); - static const int REMOTE_DEBUG_ENABLED_HASH = HashingUtils::HashString("REMOTE_DEBUG_ENABLED"); - static const int INSTANCE_ARN_HASH = HashingUtils::HashString("INSTANCE_ARN"); - static const int INSTANCE_LABELS_HASH = HashingUtils::HashString("INSTANCE_LABELS"); - static const int FLEET_TYPE_HASH = HashingUtils::HashString("FLEET_TYPE"); + static constexpr uint32_t ARN_HASH = ConstExprHashingUtils::HashString("ARN"); + static constexpr uint32_t PLATFORM_HASH = ConstExprHashingUtils::HashString("PLATFORM"); + static constexpr uint32_t OS_VERSION_HASH = ConstExprHashingUtils::HashString("OS_VERSION"); + static constexpr uint32_t MODEL_HASH = ConstExprHashingUtils::HashString("MODEL"); + static constexpr uint32_t AVAILABILITY_HASH = ConstExprHashingUtils::HashString("AVAILABILITY"); + static constexpr uint32_t FORM_FACTOR_HASH = ConstExprHashingUtils::HashString("FORM_FACTOR"); + static constexpr uint32_t MANUFACTURER_HASH = ConstExprHashingUtils::HashString("MANUFACTURER"); + static constexpr uint32_t REMOTE_ACCESS_ENABLED_HASH = ConstExprHashingUtils::HashString("REMOTE_ACCESS_ENABLED"); + static constexpr uint32_t REMOTE_DEBUG_ENABLED_HASH = ConstExprHashingUtils::HashString("REMOTE_DEBUG_ENABLED"); + static constexpr uint32_t INSTANCE_ARN_HASH = ConstExprHashingUtils::HashString("INSTANCE_ARN"); + static constexpr uint32_t INSTANCE_LABELS_HASH = ConstExprHashingUtils::HashString("INSTANCE_LABELS"); + static constexpr uint32_t FLEET_TYPE_HASH = ConstExprHashingUtils::HashString("FLEET_TYPE"); DeviceFilterAttribute GetDeviceFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARN_HASH) { return DeviceFilterAttribute::ARN; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFormFactor.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFormFactor.cpp index 4f4c2690a97..604aff6f11d 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFormFactor.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/DeviceFormFactor.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceFormFactorMapper { - static const int PHONE_HASH = HashingUtils::HashString("PHONE"); - static const int TABLET_HASH = HashingUtils::HashString("TABLET"); + static constexpr uint32_t PHONE_HASH = ConstExprHashingUtils::HashString("PHONE"); + static constexpr uint32_t TABLET_HASH = ConstExprHashingUtils::HashString("TABLET"); DeviceFormFactor GetDeviceFormFactorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHONE_HASH) { return DeviceFormFactor::PHONE; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePlatform.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePlatform.cpp index bda2b94c62e..9d41723a851 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePlatform.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePlatform.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DevicePlatformMapper { - static const int ANDROID__HASH = HashingUtils::HashString("ANDROID"); - static const int IOS_HASH = HashingUtils::HashString("IOS"); + static constexpr uint32_t ANDROID__HASH = ConstExprHashingUtils::HashString("ANDROID"); + static constexpr uint32_t IOS_HASH = ConstExprHashingUtils::HashString("IOS"); DevicePlatform GetDevicePlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANDROID__HASH) { return DevicePlatform::ANDROID_; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePoolType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePoolType.cpp index c192c42be06..a70f753804b 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePoolType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/DevicePoolType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DevicePoolTypeMapper { - static const int CURATED_HASH = HashingUtils::HashString("CURATED"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t CURATED_HASH = ConstExprHashingUtils::HashString("CURATED"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); DevicePoolType GetDevicePoolTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURATED_HASH) { return DevicePoolType::CURATED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResult.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResult.cpp index d7bd17af7a2..c30fb7bc149 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResult.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResult.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ExecutionResultMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PASSED_HASH = HashingUtils::HashString("PASSED"); - static const int WARNED_HASH = HashingUtils::HashString("WARNED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); - static const int ERRORED_HASH = HashingUtils::HashString("ERRORED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PASSED_HASH = ConstExprHashingUtils::HashString("PASSED"); + static constexpr uint32_t WARNED_HASH = ConstExprHashingUtils::HashString("WARNED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); + static constexpr uint32_t ERRORED_HASH = ConstExprHashingUtils::HashString("ERRORED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); ExecutionResult GetExecutionResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ExecutionResult::PENDING; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResultCode.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResultCode.cpp index 5d623cdc5c2..b91cde32176 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResultCode.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionResultCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExecutionResultCodeMapper { - static const int PARSING_FAILED_HASH = HashingUtils::HashString("PARSING_FAILED"); - static const int VPC_ENDPOINT_SETUP_FAILED_HASH = HashingUtils::HashString("VPC_ENDPOINT_SETUP_FAILED"); + static constexpr uint32_t PARSING_FAILED_HASH = ConstExprHashingUtils::HashString("PARSING_FAILED"); + static constexpr uint32_t VPC_ENDPOINT_SETUP_FAILED_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT_SETUP_FAILED"); ExecutionResultCode GetExecutionResultCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARSING_FAILED_HASH) { return ExecutionResultCode::PARSING_FAILED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionStatus.cpp index e8f4f2e4958..003689d942e 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/ExecutionStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ExecutionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PENDING_CONCURRENCY_HASH = HashingUtils::HashString("PENDING_CONCURRENCY"); - static const int PENDING_DEVICE_HASH = HashingUtils::HashString("PENDING_DEVICE"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int SCHEDULING_HASH = HashingUtils::HashString("SCHEDULING"); - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PENDING_CONCURRENCY_HASH = ConstExprHashingUtils::HashString("PENDING_CONCURRENCY"); + static constexpr uint32_t PENDING_DEVICE_HASH = ConstExprHashingUtils::HashString("PENDING_DEVICE"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t SCHEDULING_HASH = ConstExprHashingUtils::HashString("SCHEDULING"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ExecutionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/InstanceStatus.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/InstanceStatus.cpp index cd24f076cf0..d04c3ace1db 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/InstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/InstanceStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstanceStatusMapper { - static const int IN_USE_HASH = HashingUtils::HashString("IN_USE"); - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t IN_USE_HASH = ConstExprHashingUtils::HashString("IN_USE"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); InstanceStatus GetInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_USE_HASH) { return InstanceStatus::IN_USE; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/InteractionMode.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/InteractionMode.cpp index 686e1307dfa..baf36369c1c 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/InteractionMode.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/InteractionMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InteractionModeMapper { - static const int INTERACTIVE_HASH = HashingUtils::HashString("INTERACTIVE"); - static const int NO_VIDEO_HASH = HashingUtils::HashString("NO_VIDEO"); - static const int VIDEO_ONLY_HASH = HashingUtils::HashString("VIDEO_ONLY"); + static constexpr uint32_t INTERACTIVE_HASH = ConstExprHashingUtils::HashString("INTERACTIVE"); + static constexpr uint32_t NO_VIDEO_HASH = ConstExprHashingUtils::HashString("NO_VIDEO"); + static constexpr uint32_t VIDEO_ONLY_HASH = ConstExprHashingUtils::HashString("VIDEO_ONLY"); InteractionMode GetInteractionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERACTIVE_HASH) { return InteractionMode::INTERACTIVE; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/NetworkProfileType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/NetworkProfileType.cpp index f6dad34c5c0..3d1ebaddb0b 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/NetworkProfileType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/NetworkProfileType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkProfileTypeMapper { - static const int CURATED_HASH = HashingUtils::HashString("CURATED"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t CURATED_HASH = ConstExprHashingUtils::HashString("CURATED"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); NetworkProfileType GetNetworkProfileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURATED_HASH) { return NetworkProfileType::CURATED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingTransactionType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingTransactionType.cpp index 22beb050f06..887f2afe6d2 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingTransactionType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingTransactionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OfferingTransactionTypeMapper { - static const int PURCHASE_HASH = HashingUtils::HashString("PURCHASE"); - static const int RENEW_HASH = HashingUtils::HashString("RENEW"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); + static constexpr uint32_t PURCHASE_HASH = ConstExprHashingUtils::HashString("PURCHASE"); + static constexpr uint32_t RENEW_HASH = ConstExprHashingUtils::HashString("RENEW"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); OfferingTransactionType GetOfferingTransactionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PURCHASE_HASH) { return OfferingTransactionType::PURCHASE; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingType.cpp index b7f194fed89..953a967e759 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/OfferingType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OfferingTypeMapper { - static const int RECURRING_HASH = HashingUtils::HashString("RECURRING"); + static constexpr uint32_t RECURRING_HASH = ConstExprHashingUtils::HashString("RECURRING"); OfferingType GetOfferingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECURRING_HASH) { return OfferingType::RECURRING; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/RecurringChargeFrequency.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/RecurringChargeFrequency.cpp index 01e134b27d2..19ff20ebdf0 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/RecurringChargeFrequency.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/RecurringChargeFrequency.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecurringChargeFrequencyMapper { - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); RecurringChargeFrequency GetRecurringChargeFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONTHLY_HASH) { return RecurringChargeFrequency::MONTHLY; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/RuleOperator.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/RuleOperator.cpp index abe3d6f2209..2dc32a5caf7 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/RuleOperator.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/RuleOperator.cpp @@ -20,19 +20,19 @@ namespace Aws namespace RuleOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int LESS_THAN_OR_EQUALS_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUALS"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int GREATER_THAN_OR_EQUALS_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUALS"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int NOT_IN_HASH = HashingUtils::HashString("NOT_IN"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t LESS_THAN_OR_EQUALS_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUALS"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t GREATER_THAN_OR_EQUALS_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUALS"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t NOT_IN_HASH = ConstExprHashingUtils::HashString("NOT_IN"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); RuleOperator GetRuleOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return RuleOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/SampleType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/SampleType.cpp index db3728f0de4..a91b15f2ca7 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/SampleType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/SampleType.cpp @@ -20,28 +20,28 @@ namespace Aws namespace SampleTypeMapper { - static const int CPU_HASH = HashingUtils::HashString("CPU"); - static const int MEMORY_HASH = HashingUtils::HashString("MEMORY"); - static const int THREADS_HASH = HashingUtils::HashString("THREADS"); - static const int RX_RATE_HASH = HashingUtils::HashString("RX_RATE"); - static const int TX_RATE_HASH = HashingUtils::HashString("TX_RATE"); - static const int RX_HASH = HashingUtils::HashString("RX"); - static const int TX_HASH = HashingUtils::HashString("TX"); - static const int NATIVE_FRAMES_HASH = HashingUtils::HashString("NATIVE_FRAMES"); - static const int NATIVE_FPS_HASH = HashingUtils::HashString("NATIVE_FPS"); - static const int NATIVE_MIN_DRAWTIME_HASH = HashingUtils::HashString("NATIVE_MIN_DRAWTIME"); - static const int NATIVE_AVG_DRAWTIME_HASH = HashingUtils::HashString("NATIVE_AVG_DRAWTIME"); - static const int NATIVE_MAX_DRAWTIME_HASH = HashingUtils::HashString("NATIVE_MAX_DRAWTIME"); - static const int OPENGL_FRAMES_HASH = HashingUtils::HashString("OPENGL_FRAMES"); - static const int OPENGL_FPS_HASH = HashingUtils::HashString("OPENGL_FPS"); - static const int OPENGL_MIN_DRAWTIME_HASH = HashingUtils::HashString("OPENGL_MIN_DRAWTIME"); - static const int OPENGL_AVG_DRAWTIME_HASH = HashingUtils::HashString("OPENGL_AVG_DRAWTIME"); - static const int OPENGL_MAX_DRAWTIME_HASH = HashingUtils::HashString("OPENGL_MAX_DRAWTIME"); + static constexpr uint32_t CPU_HASH = ConstExprHashingUtils::HashString("CPU"); + static constexpr uint32_t MEMORY_HASH = ConstExprHashingUtils::HashString("MEMORY"); + static constexpr uint32_t THREADS_HASH = ConstExprHashingUtils::HashString("THREADS"); + static constexpr uint32_t RX_RATE_HASH = ConstExprHashingUtils::HashString("RX_RATE"); + static constexpr uint32_t TX_RATE_HASH = ConstExprHashingUtils::HashString("TX_RATE"); + static constexpr uint32_t RX_HASH = ConstExprHashingUtils::HashString("RX"); + static constexpr uint32_t TX_HASH = ConstExprHashingUtils::HashString("TX"); + static constexpr uint32_t NATIVE_FRAMES_HASH = ConstExprHashingUtils::HashString("NATIVE_FRAMES"); + static constexpr uint32_t NATIVE_FPS_HASH = ConstExprHashingUtils::HashString("NATIVE_FPS"); + static constexpr uint32_t NATIVE_MIN_DRAWTIME_HASH = ConstExprHashingUtils::HashString("NATIVE_MIN_DRAWTIME"); + static constexpr uint32_t NATIVE_AVG_DRAWTIME_HASH = ConstExprHashingUtils::HashString("NATIVE_AVG_DRAWTIME"); + static constexpr uint32_t NATIVE_MAX_DRAWTIME_HASH = ConstExprHashingUtils::HashString("NATIVE_MAX_DRAWTIME"); + static constexpr uint32_t OPENGL_FRAMES_HASH = ConstExprHashingUtils::HashString("OPENGL_FRAMES"); + static constexpr uint32_t OPENGL_FPS_HASH = ConstExprHashingUtils::HashString("OPENGL_FPS"); + static constexpr uint32_t OPENGL_MIN_DRAWTIME_HASH = ConstExprHashingUtils::HashString("OPENGL_MIN_DRAWTIME"); + static constexpr uint32_t OPENGL_AVG_DRAWTIME_HASH = ConstExprHashingUtils::HashString("OPENGL_AVG_DRAWTIME"); + static constexpr uint32_t OPENGL_MAX_DRAWTIME_HASH = ConstExprHashingUtils::HashString("OPENGL_MAX_DRAWTIME"); SampleType GetSampleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPU_HASH) { return SampleType::CPU; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactCategory.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactCategory.cpp index 087e94bc3e0..990d2c90f83 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactCategory.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactCategory.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestGridSessionArtifactCategoryMapper { - static const int VIDEO_HASH = HashingUtils::HashString("VIDEO"); - static const int LOG_HASH = HashingUtils::HashString("LOG"); + static constexpr uint32_t VIDEO_HASH = ConstExprHashingUtils::HashString("VIDEO"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); TestGridSessionArtifactCategory GetTestGridSessionArtifactCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIDEO_HASH) { return TestGridSessionArtifactCategory::VIDEO; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactType.cpp index bf078fc6f48..17e01ff98f7 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionArtifactType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TestGridSessionArtifactTypeMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int VIDEO_HASH = HashingUtils::HashString("VIDEO"); - static const int SELENIUM_LOG_HASH = HashingUtils::HashString("SELENIUM_LOG"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t VIDEO_HASH = ConstExprHashingUtils::HashString("VIDEO"); + static constexpr uint32_t SELENIUM_LOG_HASH = ConstExprHashingUtils::HashString("SELENIUM_LOG"); TestGridSessionArtifactType GetTestGridSessionArtifactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return TestGridSessionArtifactType::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionStatus.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionStatus.cpp index 36380d61dfb..47ea9680926 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestGridSessionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TestGridSessionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); - static const int ERRORED_HASH = HashingUtils::HashString("ERRORED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); + static constexpr uint32_t ERRORED_HASH = ConstExprHashingUtils::HashString("ERRORED"); TestGridSessionStatus GetTestGridSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TestGridSessionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestType.cpp index 8ba3bb64072..65ce41e7789 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/TestType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/TestType.cpp @@ -20,32 +20,32 @@ namespace Aws namespace TestTypeMapper { - static const int BUILTIN_FUZZ_HASH = HashingUtils::HashString("BUILTIN_FUZZ"); - static const int BUILTIN_EXPLORER_HASH = HashingUtils::HashString("BUILTIN_EXPLORER"); - static const int WEB_PERFORMANCE_PROFILE_HASH = HashingUtils::HashString("WEB_PERFORMANCE_PROFILE"); - static const int APPIUM_JAVA_JUNIT_HASH = HashingUtils::HashString("APPIUM_JAVA_JUNIT"); - static const int APPIUM_JAVA_TESTNG_HASH = HashingUtils::HashString("APPIUM_JAVA_TESTNG"); - static const int APPIUM_PYTHON_HASH = HashingUtils::HashString("APPIUM_PYTHON"); - static const int APPIUM_NODE_HASH = HashingUtils::HashString("APPIUM_NODE"); - static const int APPIUM_RUBY_HASH = HashingUtils::HashString("APPIUM_RUBY"); - static const int APPIUM_WEB_JAVA_JUNIT_HASH = HashingUtils::HashString("APPIUM_WEB_JAVA_JUNIT"); - static const int APPIUM_WEB_JAVA_TESTNG_HASH = HashingUtils::HashString("APPIUM_WEB_JAVA_TESTNG"); - static const int APPIUM_WEB_PYTHON_HASH = HashingUtils::HashString("APPIUM_WEB_PYTHON"); - static const int APPIUM_WEB_NODE_HASH = HashingUtils::HashString("APPIUM_WEB_NODE"); - static const int APPIUM_WEB_RUBY_HASH = HashingUtils::HashString("APPIUM_WEB_RUBY"); - static const int CALABASH_HASH = HashingUtils::HashString("CALABASH"); - static const int INSTRUMENTATION_HASH = HashingUtils::HashString("INSTRUMENTATION"); - static const int UIAUTOMATION_HASH = HashingUtils::HashString("UIAUTOMATION"); - static const int UIAUTOMATOR_HASH = HashingUtils::HashString("UIAUTOMATOR"); - static const int XCTEST_HASH = HashingUtils::HashString("XCTEST"); - static const int XCTEST_UI_HASH = HashingUtils::HashString("XCTEST_UI"); - static const int REMOTE_ACCESS_RECORD_HASH = HashingUtils::HashString("REMOTE_ACCESS_RECORD"); - static const int REMOTE_ACCESS_REPLAY_HASH = HashingUtils::HashString("REMOTE_ACCESS_REPLAY"); + static constexpr uint32_t BUILTIN_FUZZ_HASH = ConstExprHashingUtils::HashString("BUILTIN_FUZZ"); + static constexpr uint32_t BUILTIN_EXPLORER_HASH = ConstExprHashingUtils::HashString("BUILTIN_EXPLORER"); + static constexpr uint32_t WEB_PERFORMANCE_PROFILE_HASH = ConstExprHashingUtils::HashString("WEB_PERFORMANCE_PROFILE"); + static constexpr uint32_t APPIUM_JAVA_JUNIT_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_JUNIT"); + static constexpr uint32_t APPIUM_JAVA_TESTNG_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_TESTNG"); + static constexpr uint32_t APPIUM_PYTHON_HASH = ConstExprHashingUtils::HashString("APPIUM_PYTHON"); + static constexpr uint32_t APPIUM_NODE_HASH = ConstExprHashingUtils::HashString("APPIUM_NODE"); + static constexpr uint32_t APPIUM_RUBY_HASH = ConstExprHashingUtils::HashString("APPIUM_RUBY"); + static constexpr uint32_t APPIUM_WEB_JAVA_JUNIT_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_JAVA_JUNIT"); + static constexpr uint32_t APPIUM_WEB_JAVA_TESTNG_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_JAVA_TESTNG"); + static constexpr uint32_t APPIUM_WEB_PYTHON_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_PYTHON"); + static constexpr uint32_t APPIUM_WEB_NODE_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_NODE"); + static constexpr uint32_t APPIUM_WEB_RUBY_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_RUBY"); + static constexpr uint32_t CALABASH_HASH = ConstExprHashingUtils::HashString("CALABASH"); + static constexpr uint32_t INSTRUMENTATION_HASH = ConstExprHashingUtils::HashString("INSTRUMENTATION"); + static constexpr uint32_t UIAUTOMATION_HASH = ConstExprHashingUtils::HashString("UIAUTOMATION"); + static constexpr uint32_t UIAUTOMATOR_HASH = ConstExprHashingUtils::HashString("UIAUTOMATOR"); + static constexpr uint32_t XCTEST_HASH = ConstExprHashingUtils::HashString("XCTEST"); + static constexpr uint32_t XCTEST_UI_HASH = ConstExprHashingUtils::HashString("XCTEST_UI"); + static constexpr uint32_t REMOTE_ACCESS_RECORD_HASH = ConstExprHashingUtils::HashString("REMOTE_ACCESS_RECORD"); + static constexpr uint32_t REMOTE_ACCESS_REPLAY_HASH = ConstExprHashingUtils::HashString("REMOTE_ACCESS_REPLAY"); TestType GetTestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILTIN_FUZZ_HASH) { return TestType::BUILTIN_FUZZ; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadCategory.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadCategory.cpp index 30e4552ca54..00a3da51478 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadCategory.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadCategory.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UploadCategoryMapper { - static const int CURATED_HASH = HashingUtils::HashString("CURATED"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t CURATED_HASH = ConstExprHashingUtils::HashString("CURATED"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); UploadCategory GetUploadCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURATED_HASH) { return UploadCategory::CURATED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadStatus.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadStatus.cpp index d677a482ea7..1ea56e4166c 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadStatus.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UploadStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); UploadStatus GetUploadStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return UploadStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadType.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadType.cpp index 0cbe84994bd..e288a565462 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadType.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/model/UploadType.cpp @@ -20,43 +20,43 @@ namespace Aws namespace UploadTypeMapper { - static const int ANDROID_APP_HASH = HashingUtils::HashString("ANDROID_APP"); - static const int IOS_APP_HASH = HashingUtils::HashString("IOS_APP"); - static const int WEB_APP_HASH = HashingUtils::HashString("WEB_APP"); - static const int EXTERNAL_DATA_HASH = HashingUtils::HashString("EXTERNAL_DATA"); - static const int APPIUM_JAVA_JUNIT_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_JAVA_JUNIT_TEST_PACKAGE"); - static const int APPIUM_JAVA_TESTNG_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_JAVA_TESTNG_TEST_PACKAGE"); - static const int APPIUM_PYTHON_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_PYTHON_TEST_PACKAGE"); - static const int APPIUM_NODE_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_NODE_TEST_PACKAGE"); - static const int APPIUM_RUBY_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_RUBY_TEST_PACKAGE"); - static const int APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE"); - static const int APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE"); - static const int APPIUM_WEB_PYTHON_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_WEB_PYTHON_TEST_PACKAGE"); - static const int APPIUM_WEB_NODE_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_WEB_NODE_TEST_PACKAGE"); - static const int APPIUM_WEB_RUBY_TEST_PACKAGE_HASH = HashingUtils::HashString("APPIUM_WEB_RUBY_TEST_PACKAGE"); - static const int CALABASH_TEST_PACKAGE_HASH = HashingUtils::HashString("CALABASH_TEST_PACKAGE"); - static const int INSTRUMENTATION_TEST_PACKAGE_HASH = HashingUtils::HashString("INSTRUMENTATION_TEST_PACKAGE"); - static const int UIAUTOMATION_TEST_PACKAGE_HASH = HashingUtils::HashString("UIAUTOMATION_TEST_PACKAGE"); - static const int UIAUTOMATOR_TEST_PACKAGE_HASH = HashingUtils::HashString("UIAUTOMATOR_TEST_PACKAGE"); - static const int XCTEST_TEST_PACKAGE_HASH = HashingUtils::HashString("XCTEST_TEST_PACKAGE"); - static const int XCTEST_UI_TEST_PACKAGE_HASH = HashingUtils::HashString("XCTEST_UI_TEST_PACKAGE"); - static const int APPIUM_JAVA_JUNIT_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_JAVA_JUNIT_TEST_SPEC"); - static const int APPIUM_JAVA_TESTNG_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_JAVA_TESTNG_TEST_SPEC"); - static const int APPIUM_PYTHON_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_PYTHON_TEST_SPEC"); - static const int APPIUM_NODE_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_NODE_TEST_SPEC"); - static const int APPIUM_RUBY_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_RUBY_TEST_SPEC"); - static const int APPIUM_WEB_JAVA_JUNIT_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_WEB_JAVA_JUNIT_TEST_SPEC"); - static const int APPIUM_WEB_JAVA_TESTNG_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_WEB_JAVA_TESTNG_TEST_SPEC"); - static const int APPIUM_WEB_PYTHON_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_WEB_PYTHON_TEST_SPEC"); - static const int APPIUM_WEB_NODE_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_WEB_NODE_TEST_SPEC"); - static const int APPIUM_WEB_RUBY_TEST_SPEC_HASH = HashingUtils::HashString("APPIUM_WEB_RUBY_TEST_SPEC"); - static const int INSTRUMENTATION_TEST_SPEC_HASH = HashingUtils::HashString("INSTRUMENTATION_TEST_SPEC"); - static const int XCTEST_UI_TEST_SPEC_HASH = HashingUtils::HashString("XCTEST_UI_TEST_SPEC"); + static constexpr uint32_t ANDROID_APP_HASH = ConstExprHashingUtils::HashString("ANDROID_APP"); + static constexpr uint32_t IOS_APP_HASH = ConstExprHashingUtils::HashString("IOS_APP"); + static constexpr uint32_t WEB_APP_HASH = ConstExprHashingUtils::HashString("WEB_APP"); + static constexpr uint32_t EXTERNAL_DATA_HASH = ConstExprHashingUtils::HashString("EXTERNAL_DATA"); + static constexpr uint32_t APPIUM_JAVA_JUNIT_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_JUNIT_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_JAVA_TESTNG_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_TESTNG_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_PYTHON_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_PYTHON_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_NODE_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_NODE_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_RUBY_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_RUBY_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_WEB_PYTHON_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_PYTHON_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_WEB_NODE_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_NODE_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_WEB_RUBY_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_RUBY_TEST_PACKAGE"); + static constexpr uint32_t CALABASH_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("CALABASH_TEST_PACKAGE"); + static constexpr uint32_t INSTRUMENTATION_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("INSTRUMENTATION_TEST_PACKAGE"); + static constexpr uint32_t UIAUTOMATION_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("UIAUTOMATION_TEST_PACKAGE"); + static constexpr uint32_t UIAUTOMATOR_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("UIAUTOMATOR_TEST_PACKAGE"); + static constexpr uint32_t XCTEST_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("XCTEST_TEST_PACKAGE"); + static constexpr uint32_t XCTEST_UI_TEST_PACKAGE_HASH = ConstExprHashingUtils::HashString("XCTEST_UI_TEST_PACKAGE"); + static constexpr uint32_t APPIUM_JAVA_JUNIT_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_JUNIT_TEST_SPEC"); + static constexpr uint32_t APPIUM_JAVA_TESTNG_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_JAVA_TESTNG_TEST_SPEC"); + static constexpr uint32_t APPIUM_PYTHON_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_PYTHON_TEST_SPEC"); + static constexpr uint32_t APPIUM_NODE_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_NODE_TEST_SPEC"); + static constexpr uint32_t APPIUM_RUBY_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_RUBY_TEST_SPEC"); + static constexpr uint32_t APPIUM_WEB_JAVA_JUNIT_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_JAVA_JUNIT_TEST_SPEC"); + static constexpr uint32_t APPIUM_WEB_JAVA_TESTNG_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_JAVA_TESTNG_TEST_SPEC"); + static constexpr uint32_t APPIUM_WEB_PYTHON_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_PYTHON_TEST_SPEC"); + static constexpr uint32_t APPIUM_WEB_NODE_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_NODE_TEST_SPEC"); + static constexpr uint32_t APPIUM_WEB_RUBY_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("APPIUM_WEB_RUBY_TEST_SPEC"); + static constexpr uint32_t INSTRUMENTATION_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("INSTRUMENTATION_TEST_SPEC"); + static constexpr uint32_t XCTEST_UI_TEST_SPEC_HASH = ConstExprHashingUtils::HashString("XCTEST_UI_TEST_SPEC"); UploadType GetUploadTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANDROID_APP_HASH) { return UploadType::ANDROID_APP; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruErrors.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruErrors.cpp index b371ba5e651..3be7ec25c89 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruErrors.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_DEVOPSGURU_API ValidationException DevOpsGuruError::GetModeledErr namespace DevOpsGuruErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalySeverity.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalySeverity.cpp index 682c0398f36..deae6201bcd 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalySeverity.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalySeverity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnomalySeverityMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); AnomalySeverity GetAnomalySeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return AnomalySeverity::LOW; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp index bee7d86d13a..5f5d22a11fc 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnomalyStatusMapper { - static const int ONGOING_HASH = HashingUtils::HashString("ONGOING"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t ONGOING_HASH = ConstExprHashingUtils::HashString("ONGOING"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); AnomalyStatus GetAnomalyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONGOING_HASH) { return AnomalyStatus::ONGOING; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyType.cpp index a5934268418..54741453317 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/AnomalyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnomalyTypeMapper { - static const int CAUSAL_HASH = HashingUtils::HashString("CAUSAL"); - static const int CONTEXTUAL_HASH = HashingUtils::HashString("CONTEXTUAL"); + static constexpr uint32_t CAUSAL_HASH = ConstExprHashingUtils::HashString("CAUSAL"); + static constexpr uint32_t CONTEXTUAL_HASH = ConstExprHashingUtils::HashString("CONTEXTUAL"); AnomalyType GetAnomalyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAUSAL_HASH) { return AnomalyType::CAUSAL; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricDataStatusCode.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricDataStatusCode.cpp index 97389254968..ed0ba600aa7 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricDataStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricDataStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CloudWatchMetricDataStatusCodeMapper { - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); - static const int PartialData_HASH = HashingUtils::HashString("PartialData"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); + static constexpr uint32_t PartialData_HASH = ConstExprHashingUtils::HashString("PartialData"); CloudWatchMetricDataStatusCode GetCloudWatchMetricDataStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Complete_HASH) { return CloudWatchMetricDataStatusCode::Complete; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricsStat.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricsStat.cpp index 0eda45dee26..76a56a2b1c5 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricsStat.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/CloudWatchMetricsStat.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CloudWatchMetricsStatMapper { - static const int Sum_HASH = HashingUtils::HashString("Sum"); - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int p99_HASH = HashingUtils::HashString("p99"); - static const int p90_HASH = HashingUtils::HashString("p90"); - static const int p50_HASH = HashingUtils::HashString("p50"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t p99_HASH = ConstExprHashingUtils::HashString("p99"); + static constexpr uint32_t p90_HASH = ConstExprHashingUtils::HashString("p90"); + static constexpr uint32_t p50_HASH = ConstExprHashingUtils::HashString("p50"); CloudWatchMetricsStat GetCloudWatchMetricsStatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sum_HASH) { return CloudWatchMetricsStat::Sum; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationServiceResourceState.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationServiceResourceState.cpp index 0c667aaa01e..803253a8f5a 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationServiceResourceState.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationServiceResourceState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostEstimationServiceResourceStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); CostEstimationServiceResourceState GetCostEstimationServiceResourceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CostEstimationServiceResourceState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationStatus.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationStatus.cpp index fa00e1709c5..951fe700c85 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationStatus.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/CostEstimationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CostEstimationStatusMapper { - static const int ONGOING_HASH = HashingUtils::HashString("ONGOING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ONGOING_HASH = ConstExprHashingUtils::HashString("ONGOING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); CostEstimationStatus GetCostEstimationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONGOING_HASH) { return CostEstimationStatus::ONGOING; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/EventClass.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/EventClass.cpp index fcd133d41ac..e912732b337 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/EventClass.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/EventClass.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EventClassMapper { - static const int INFRASTRUCTURE_HASH = HashingUtils::HashString("INFRASTRUCTURE"); - static const int DEPLOYMENT_HASH = HashingUtils::HashString("DEPLOYMENT"); - static const int SECURITY_CHANGE_HASH = HashingUtils::HashString("SECURITY_CHANGE"); - static const int CONFIG_CHANGE_HASH = HashingUtils::HashString("CONFIG_CHANGE"); - static const int SCHEMA_CHANGE_HASH = HashingUtils::HashString("SCHEMA_CHANGE"); + static constexpr uint32_t INFRASTRUCTURE_HASH = ConstExprHashingUtils::HashString("INFRASTRUCTURE"); + static constexpr uint32_t DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT"); + static constexpr uint32_t SECURITY_CHANGE_HASH = ConstExprHashingUtils::HashString("SECURITY_CHANGE"); + static constexpr uint32_t CONFIG_CHANGE_HASH = ConstExprHashingUtils::HashString("CONFIG_CHANGE"); + static constexpr uint32_t SCHEMA_CHANGE_HASH = ConstExprHashingUtils::HashString("SCHEMA_CHANGE"); EventClass GetEventClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFRASTRUCTURE_HASH) { return EventClass::INFRASTRUCTURE; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/EventDataSource.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/EventDataSource.cpp index 3299df2add1..48b9ff11b0a 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/EventDataSource.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/EventDataSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventDataSourceMapper { - static const int AWS_CLOUD_TRAIL_HASH = HashingUtils::HashString("AWS_CLOUD_TRAIL"); - static const int AWS_CODE_DEPLOY_HASH = HashingUtils::HashString("AWS_CODE_DEPLOY"); + static constexpr uint32_t AWS_CLOUD_TRAIL_HASH = ConstExprHashingUtils::HashString("AWS_CLOUD_TRAIL"); + static constexpr uint32_t AWS_CODE_DEPLOY_HASH = ConstExprHashingUtils::HashString("AWS_CODE_DEPLOY"); EventDataSource GetEventDataSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_CLOUD_TRAIL_HASH) { return EventDataSource::AWS_CLOUD_TRAIL; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/EventSourceOptInStatus.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/EventSourceOptInStatus.cpp index ef16435daf4..4d2804f5319 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/EventSourceOptInStatus.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/EventSourceOptInStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventSourceOptInStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EventSourceOptInStatus GetEventSourceOptInStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EventSourceOptInStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightFeedbackOption.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightFeedbackOption.cpp index 6bec261670b..c0a8465e1ca 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightFeedbackOption.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightFeedbackOption.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InsightFeedbackOptionMapper { - static const int VALID_COLLECTION_HASH = HashingUtils::HashString("VALID_COLLECTION"); - static const int RECOMMENDATION_USEFUL_HASH = HashingUtils::HashString("RECOMMENDATION_USEFUL"); - static const int ALERT_TOO_SENSITIVE_HASH = HashingUtils::HashString("ALERT_TOO_SENSITIVE"); - static const int DATA_NOISY_ANOMALY_HASH = HashingUtils::HashString("DATA_NOISY_ANOMALY"); - static const int DATA_INCORRECT_HASH = HashingUtils::HashString("DATA_INCORRECT"); + static constexpr uint32_t VALID_COLLECTION_HASH = ConstExprHashingUtils::HashString("VALID_COLLECTION"); + static constexpr uint32_t RECOMMENDATION_USEFUL_HASH = ConstExprHashingUtils::HashString("RECOMMENDATION_USEFUL"); + static constexpr uint32_t ALERT_TOO_SENSITIVE_HASH = ConstExprHashingUtils::HashString("ALERT_TOO_SENSITIVE"); + static constexpr uint32_t DATA_NOISY_ANOMALY_HASH = ConstExprHashingUtils::HashString("DATA_NOISY_ANOMALY"); + static constexpr uint32_t DATA_INCORRECT_HASH = ConstExprHashingUtils::HashString("DATA_INCORRECT"); InsightFeedbackOption GetInsightFeedbackOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALID_COLLECTION_HASH) { return InsightFeedbackOption::VALID_COLLECTION; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightSeverity.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightSeverity.cpp index a311cafcb9d..305061117f5 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightSeverity.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightSeverity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InsightSeverityMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); InsightSeverity GetInsightSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return InsightSeverity::LOW; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightStatus.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightStatus.cpp index 1455c5ce2dd..539a7616b66 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightStatus.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InsightStatusMapper { - static const int ONGOING_HASH = HashingUtils::HashString("ONGOING"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t ONGOING_HASH = ConstExprHashingUtils::HashString("ONGOING"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); InsightStatus GetInsightStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONGOING_HASH) { return InsightStatus::ONGOING; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightType.cpp index d31e2166f3c..fabcbf3aba3 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/InsightType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InsightTypeMapper { - static const int REACTIVE_HASH = HashingUtils::HashString("REACTIVE"); - static const int PROACTIVE_HASH = HashingUtils::HashString("PROACTIVE"); + static constexpr uint32_t REACTIVE_HASH = ConstExprHashingUtils::HashString("REACTIVE"); + static constexpr uint32_t PROACTIVE_HASH = ConstExprHashingUtils::HashString("PROACTIVE"); InsightType GetInsightTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REACTIVE_HASH) { return InsightType::REACTIVE; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/Locale.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/Locale.cpp index 1f6949afc97..b19f199b20f 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/Locale.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/Locale.cpp @@ -20,22 +20,22 @@ namespace Aws namespace LocaleMapper { - static const int DE_DE_HASH = HashingUtils::HashString("DE_DE"); - static const int EN_US_HASH = HashingUtils::HashString("EN_US"); - static const int EN_GB_HASH = HashingUtils::HashString("EN_GB"); - static const int ES_ES_HASH = HashingUtils::HashString("ES_ES"); - static const int FR_FR_HASH = HashingUtils::HashString("FR_FR"); - static const int IT_IT_HASH = HashingUtils::HashString("IT_IT"); - static const int JA_JP_HASH = HashingUtils::HashString("JA_JP"); - static const int KO_KR_HASH = HashingUtils::HashString("KO_KR"); - static const int PT_BR_HASH = HashingUtils::HashString("PT_BR"); - static const int ZH_CN_HASH = HashingUtils::HashString("ZH_CN"); - static const int ZH_TW_HASH = HashingUtils::HashString("ZH_TW"); + static constexpr uint32_t DE_DE_HASH = ConstExprHashingUtils::HashString("DE_DE"); + static constexpr uint32_t EN_US_HASH = ConstExprHashingUtils::HashString("EN_US"); + static constexpr uint32_t EN_GB_HASH = ConstExprHashingUtils::HashString("EN_GB"); + static constexpr uint32_t ES_ES_HASH = ConstExprHashingUtils::HashString("ES_ES"); + static constexpr uint32_t FR_FR_HASH = ConstExprHashingUtils::HashString("FR_FR"); + static constexpr uint32_t IT_IT_HASH = ConstExprHashingUtils::HashString("IT_IT"); + static constexpr uint32_t JA_JP_HASH = ConstExprHashingUtils::HashString("JA_JP"); + static constexpr uint32_t KO_KR_HASH = ConstExprHashingUtils::HashString("KO_KR"); + static constexpr uint32_t PT_BR_HASH = ConstExprHashingUtils::HashString("PT_BR"); + static constexpr uint32_t ZH_CN_HASH = ConstExprHashingUtils::HashString("ZH_CN"); + static constexpr uint32_t ZH_TW_HASH = ConstExprHashingUtils::HashString("ZH_TW"); Locale GetLocaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DE_DE_HASH) { return Locale::DE_DE; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/LogAnomalyType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/LogAnomalyType.cpp index 904d5095ea2..708b7d0481f 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/LogAnomalyType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/LogAnomalyType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace LogAnomalyTypeMapper { - static const int KEYWORD_HASH = HashingUtils::HashString("KEYWORD"); - static const int KEYWORD_TOKEN_HASH = HashingUtils::HashString("KEYWORD_TOKEN"); - static const int FORMAT_HASH = HashingUtils::HashString("FORMAT"); - static const int HTTP_CODE_HASH = HashingUtils::HashString("HTTP_CODE"); - static const int BLOCK_FORMAT_HASH = HashingUtils::HashString("BLOCK_FORMAT"); - static const int NUMERICAL_POINT_HASH = HashingUtils::HashString("NUMERICAL_POINT"); - static const int NUMERICAL_NAN_HASH = HashingUtils::HashString("NUMERICAL_NAN"); - static const int NEW_FIELD_NAME_HASH = HashingUtils::HashString("NEW_FIELD_NAME"); + static constexpr uint32_t KEYWORD_HASH = ConstExprHashingUtils::HashString("KEYWORD"); + static constexpr uint32_t KEYWORD_TOKEN_HASH = ConstExprHashingUtils::HashString("KEYWORD_TOKEN"); + static constexpr uint32_t FORMAT_HASH = ConstExprHashingUtils::HashString("FORMAT"); + static constexpr uint32_t HTTP_CODE_HASH = ConstExprHashingUtils::HashString("HTTP_CODE"); + static constexpr uint32_t BLOCK_FORMAT_HASH = ConstExprHashingUtils::HashString("BLOCK_FORMAT"); + static constexpr uint32_t NUMERICAL_POINT_HASH = ConstExprHashingUtils::HashString("NUMERICAL_POINT"); + static constexpr uint32_t NUMERICAL_NAN_HASH = ConstExprHashingUtils::HashString("NUMERICAL_NAN"); + static constexpr uint32_t NEW_FIELD_NAME_HASH = ConstExprHashingUtils::HashString("NEW_FIELD_NAME"); LogAnomalyType GetLogAnomalyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEYWORD_HASH) { return LogAnomalyType::KEYWORD; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/NotificationMessageType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/NotificationMessageType.cpp index 3c8605a93a0..15fd78ba46f 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/NotificationMessageType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/NotificationMessageType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NotificationMessageTypeMapper { - static const int NEW_INSIGHT_HASH = HashingUtils::HashString("NEW_INSIGHT"); - static const int CLOSED_INSIGHT_HASH = HashingUtils::HashString("CLOSED_INSIGHT"); - static const int NEW_ASSOCIATION_HASH = HashingUtils::HashString("NEW_ASSOCIATION"); - static const int SEVERITY_UPGRADED_HASH = HashingUtils::HashString("SEVERITY_UPGRADED"); - static const int NEW_RECOMMENDATION_HASH = HashingUtils::HashString("NEW_RECOMMENDATION"); + static constexpr uint32_t NEW_INSIGHT_HASH = ConstExprHashingUtils::HashString("NEW_INSIGHT"); + static constexpr uint32_t CLOSED_INSIGHT_HASH = ConstExprHashingUtils::HashString("CLOSED_INSIGHT"); + static constexpr uint32_t NEW_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("NEW_ASSOCIATION"); + static constexpr uint32_t SEVERITY_UPGRADED_HASH = ConstExprHashingUtils::HashString("SEVERITY_UPGRADED"); + static constexpr uint32_t NEW_RECOMMENDATION_HASH = ConstExprHashingUtils::HashString("NEW_RECOMMENDATION"); NotificationMessageType GetNotificationMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW_INSIGHT_HASH) { return NotificationMessageType::NEW_INSIGHT; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/OptInStatus.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/OptInStatus.cpp index 9dd78d0d4f5..9b0ebef0326 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/OptInStatus.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/OptInStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OptInStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); OptInStatus GetOptInStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return OptInStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/OrganizationResourceCollectionType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/OrganizationResourceCollectionType.cpp index 2cd5a01334f..bdf48350a38 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/OrganizationResourceCollectionType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/OrganizationResourceCollectionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OrganizationResourceCollectionTypeMapper { - static const int AWS_CLOUD_FORMATION_HASH = HashingUtils::HashString("AWS_CLOUD_FORMATION"); - static const int AWS_SERVICE_HASH = HashingUtils::HashString("AWS_SERVICE"); - static const int AWS_ACCOUNT_HASH = HashingUtils::HashString("AWS_ACCOUNT"); - static const int AWS_TAGS_HASH = HashingUtils::HashString("AWS_TAGS"); + static constexpr uint32_t AWS_CLOUD_FORMATION_HASH = ConstExprHashingUtils::HashString("AWS_CLOUD_FORMATION"); + static constexpr uint32_t AWS_SERVICE_HASH = ConstExprHashingUtils::HashString("AWS_SERVICE"); + static constexpr uint32_t AWS_ACCOUNT_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT"); + static constexpr uint32_t AWS_TAGS_HASH = ConstExprHashingUtils::HashString("AWS_TAGS"); OrganizationResourceCollectionType GetOrganizationResourceCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_CLOUD_FORMATION_HASH) { return OrganizationResourceCollectionType::AWS_CLOUD_FORMATION; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceCollectionType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceCollectionType.cpp index 8b1facd9009..623e8fcdccd 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceCollectionType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceCollectionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceCollectionTypeMapper { - static const int AWS_CLOUD_FORMATION_HASH = HashingUtils::HashString("AWS_CLOUD_FORMATION"); - static const int AWS_SERVICE_HASH = HashingUtils::HashString("AWS_SERVICE"); - static const int AWS_TAGS_HASH = HashingUtils::HashString("AWS_TAGS"); + static constexpr uint32_t AWS_CLOUD_FORMATION_HASH = ConstExprHashingUtils::HashString("AWS_CLOUD_FORMATION"); + static constexpr uint32_t AWS_SERVICE_HASH = ConstExprHashingUtils::HashString("AWS_SERVICE"); + static constexpr uint32_t AWS_TAGS_HASH = ConstExprHashingUtils::HashString("AWS_TAGS"); ResourceCollectionType GetResourceCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_CLOUD_FORMATION_HASH) { return ResourceCollectionType::AWS_CLOUD_FORMATION; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourcePermission.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourcePermission.cpp index 2d5b6fefa01..bc9509e2ffc 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourcePermission.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourcePermission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourcePermissionMapper { - static const int FULL_PERMISSION_HASH = HashingUtils::HashString("FULL_PERMISSION"); - static const int MISSING_PERMISSION_HASH = HashingUtils::HashString("MISSING_PERMISSION"); + static constexpr uint32_t FULL_PERMISSION_HASH = ConstExprHashingUtils::HashString("FULL_PERMISSION"); + static constexpr uint32_t MISSING_PERMISSION_HASH = ConstExprHashingUtils::HashString("MISSING_PERMISSION"); ResourcePermission GetResourcePermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_PERMISSION_HASH) { return ResourcePermission::FULL_PERMISSION; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceTypeFilter.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceTypeFilter.cpp index 34bdf2f405d..68c5f7e7e23 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/ResourceTypeFilter.cpp @@ -20,38 +20,38 @@ namespace Aws namespace ResourceTypeFilterMapper { - static const int LOG_GROUPS_HASH = HashingUtils::HashString("LOG_GROUPS"); - static const int CLOUDFRONT_DISTRIBUTION_HASH = HashingUtils::HashString("CLOUDFRONT_DISTRIBUTION"); - static const int DYNAMODB_TABLE_HASH = HashingUtils::HashString("DYNAMODB_TABLE"); - static const int EC2_NAT_GATEWAY_HASH = HashingUtils::HashString("EC2_NAT_GATEWAY"); - static const int ECS_CLUSTER_HASH = HashingUtils::HashString("ECS_CLUSTER"); - static const int ECS_SERVICE_HASH = HashingUtils::HashString("ECS_SERVICE"); - static const int EKS_CLUSTER_HASH = HashingUtils::HashString("EKS_CLUSTER"); - static const int ELASTIC_BEANSTALK_ENVIRONMENT_HASH = HashingUtils::HashString("ELASTIC_BEANSTALK_ENVIRONMENT"); - static const int ELASTIC_LOAD_BALANCER_LOAD_BALANCER_HASH = HashingUtils::HashString("ELASTIC_LOAD_BALANCER_LOAD_BALANCER"); - static const int ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER_HASH = HashingUtils::HashString("ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER"); - static const int ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP_HASH = HashingUtils::HashString("ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP"); - static const int ELASTICACHE_CACHE_CLUSTER_HASH = HashingUtils::HashString("ELASTICACHE_CACHE_CLUSTER"); - static const int ELASTICSEARCH_DOMAIN_HASH = HashingUtils::HashString("ELASTICSEARCH_DOMAIN"); - static const int KINESIS_STREAM_HASH = HashingUtils::HashString("KINESIS_STREAM"); - static const int LAMBDA_FUNCTION_HASH = HashingUtils::HashString("LAMBDA_FUNCTION"); - static const int OPEN_SEARCH_SERVICE_DOMAIN_HASH = HashingUtils::HashString("OPEN_SEARCH_SERVICE_DOMAIN"); - static const int RDS_DB_INSTANCE_HASH = HashingUtils::HashString("RDS_DB_INSTANCE"); - static const int RDS_DB_CLUSTER_HASH = HashingUtils::HashString("RDS_DB_CLUSTER"); - static const int REDSHIFT_CLUSTER_HASH = HashingUtils::HashString("REDSHIFT_CLUSTER"); - static const int ROUTE53_HOSTED_ZONE_HASH = HashingUtils::HashString("ROUTE53_HOSTED_ZONE"); - static const int ROUTE53_HEALTH_CHECK_HASH = HashingUtils::HashString("ROUTE53_HEALTH_CHECK"); - static const int S3_BUCKET_HASH = HashingUtils::HashString("S3_BUCKET"); - static const int SAGEMAKER_ENDPOINT_HASH = HashingUtils::HashString("SAGEMAKER_ENDPOINT"); - static const int SNS_TOPIC_HASH = HashingUtils::HashString("SNS_TOPIC"); - static const int SQS_QUEUE_HASH = HashingUtils::HashString("SQS_QUEUE"); - static const int STEP_FUNCTIONS_ACTIVITY_HASH = HashingUtils::HashString("STEP_FUNCTIONS_ACTIVITY"); - static const int STEP_FUNCTIONS_STATE_MACHINE_HASH = HashingUtils::HashString("STEP_FUNCTIONS_STATE_MACHINE"); + static constexpr uint32_t LOG_GROUPS_HASH = ConstExprHashingUtils::HashString("LOG_GROUPS"); + static constexpr uint32_t CLOUDFRONT_DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("CLOUDFRONT_DISTRIBUTION"); + static constexpr uint32_t DYNAMODB_TABLE_HASH = ConstExprHashingUtils::HashString("DYNAMODB_TABLE"); + static constexpr uint32_t EC2_NAT_GATEWAY_HASH = ConstExprHashingUtils::HashString("EC2_NAT_GATEWAY"); + static constexpr uint32_t ECS_CLUSTER_HASH = ConstExprHashingUtils::HashString("ECS_CLUSTER"); + static constexpr uint32_t ECS_SERVICE_HASH = ConstExprHashingUtils::HashString("ECS_SERVICE"); + static constexpr uint32_t EKS_CLUSTER_HASH = ConstExprHashingUtils::HashString("EKS_CLUSTER"); + static constexpr uint32_t ELASTIC_BEANSTALK_ENVIRONMENT_HASH = ConstExprHashingUtils::HashString("ELASTIC_BEANSTALK_ENVIRONMENT"); + static constexpr uint32_t ELASTIC_LOAD_BALANCER_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("ELASTIC_LOAD_BALANCER_LOAD_BALANCER"); + static constexpr uint32_t ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER"); + static constexpr uint32_t ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP_HASH = ConstExprHashingUtils::HashString("ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP"); + static constexpr uint32_t ELASTICACHE_CACHE_CLUSTER_HASH = ConstExprHashingUtils::HashString("ELASTICACHE_CACHE_CLUSTER"); + static constexpr uint32_t ELASTICSEARCH_DOMAIN_HASH = ConstExprHashingUtils::HashString("ELASTICSEARCH_DOMAIN"); + static constexpr uint32_t KINESIS_STREAM_HASH = ConstExprHashingUtils::HashString("KINESIS_STREAM"); + static constexpr uint32_t LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("LAMBDA_FUNCTION"); + static constexpr uint32_t OPEN_SEARCH_SERVICE_DOMAIN_HASH = ConstExprHashingUtils::HashString("OPEN_SEARCH_SERVICE_DOMAIN"); + static constexpr uint32_t RDS_DB_INSTANCE_HASH = ConstExprHashingUtils::HashString("RDS_DB_INSTANCE"); + static constexpr uint32_t RDS_DB_CLUSTER_HASH = ConstExprHashingUtils::HashString("RDS_DB_CLUSTER"); + static constexpr uint32_t REDSHIFT_CLUSTER_HASH = ConstExprHashingUtils::HashString("REDSHIFT_CLUSTER"); + static constexpr uint32_t ROUTE53_HOSTED_ZONE_HASH = ConstExprHashingUtils::HashString("ROUTE53_HOSTED_ZONE"); + static constexpr uint32_t ROUTE53_HEALTH_CHECK_HASH = ConstExprHashingUtils::HashString("ROUTE53_HEALTH_CHECK"); + static constexpr uint32_t S3_BUCKET_HASH = ConstExprHashingUtils::HashString("S3_BUCKET"); + static constexpr uint32_t SAGEMAKER_ENDPOINT_HASH = ConstExprHashingUtils::HashString("SAGEMAKER_ENDPOINT"); + static constexpr uint32_t SNS_TOPIC_HASH = ConstExprHashingUtils::HashString("SNS_TOPIC"); + static constexpr uint32_t SQS_QUEUE_HASH = ConstExprHashingUtils::HashString("SQS_QUEUE"); + static constexpr uint32_t STEP_FUNCTIONS_ACTIVITY_HASH = ConstExprHashingUtils::HashString("STEP_FUNCTIONS_ACTIVITY"); + static constexpr uint32_t STEP_FUNCTIONS_STATE_MACHINE_HASH = ConstExprHashingUtils::HashString("STEP_FUNCTIONS_STATE_MACHINE"); ResourceTypeFilter GetResourceTypeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOG_GROUPS_HASH) { return ResourceTypeFilter::LOG_GROUPS; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/ServerSideEncryptionType.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/ServerSideEncryptionType.cpp index 05fa55720f0..799c9e8c844 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/ServerSideEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/ServerSideEncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServerSideEncryptionTypeMapper { - static const int CUSTOMER_MANAGED_KEY_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_KEY"); - static const int AWS_OWNED_KMS_KEY_HASH = HashingUtils::HashString("AWS_OWNED_KMS_KEY"); + static constexpr uint32_t CUSTOMER_MANAGED_KEY_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_KEY"); + static constexpr uint32_t AWS_OWNED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_KMS_KEY"); ServerSideEncryptionType GetServerSideEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_KEY_HASH) { return ServerSideEncryptionType::CUSTOMER_MANAGED_KEY; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/ServiceName.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/ServiceName.cpp index 3a09e51f3d8..d6235142de4 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/ServiceName.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/ServiceName.cpp @@ -20,36 +20,36 @@ namespace Aws namespace ServiceNameMapper { - static const int API_GATEWAY_HASH = HashingUtils::HashString("API_GATEWAY"); - static const int APPLICATION_ELB_HASH = HashingUtils::HashString("APPLICATION_ELB"); - static const int AUTO_SCALING_GROUP_HASH = HashingUtils::HashString("AUTO_SCALING_GROUP"); - static const int CLOUD_FRONT_HASH = HashingUtils::HashString("CLOUD_FRONT"); - static const int DYNAMO_DB_HASH = HashingUtils::HashString("DYNAMO_DB"); - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int ECS_HASH = HashingUtils::HashString("ECS"); - static const int EKS_HASH = HashingUtils::HashString("EKS"); - static const int ELASTIC_BEANSTALK_HASH = HashingUtils::HashString("ELASTIC_BEANSTALK"); - static const int ELASTI_CACHE_HASH = HashingUtils::HashString("ELASTI_CACHE"); - static const int ELB_HASH = HashingUtils::HashString("ELB"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int KINESIS_HASH = HashingUtils::HashString("KINESIS"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int NAT_GATEWAY_HASH = HashingUtils::HashString("NAT_GATEWAY"); - static const int NETWORK_ELB_HASH = HashingUtils::HashString("NETWORK_ELB"); - static const int RDS_HASH = HashingUtils::HashString("RDS"); - static const int REDSHIFT_HASH = HashingUtils::HashString("REDSHIFT"); - static const int ROUTE_53_HASH = HashingUtils::HashString("ROUTE_53"); - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int SAGE_MAKER_HASH = HashingUtils::HashString("SAGE_MAKER"); - static const int SNS_HASH = HashingUtils::HashString("SNS"); - static const int SQS_HASH = HashingUtils::HashString("SQS"); - static const int STEP_FUNCTIONS_HASH = HashingUtils::HashString("STEP_FUNCTIONS"); - static const int SWF_HASH = HashingUtils::HashString("SWF"); + static constexpr uint32_t API_GATEWAY_HASH = ConstExprHashingUtils::HashString("API_GATEWAY"); + static constexpr uint32_t APPLICATION_ELB_HASH = ConstExprHashingUtils::HashString("APPLICATION_ELB"); + static constexpr uint32_t AUTO_SCALING_GROUP_HASH = ConstExprHashingUtils::HashString("AUTO_SCALING_GROUP"); + static constexpr uint32_t CLOUD_FRONT_HASH = ConstExprHashingUtils::HashString("CLOUD_FRONT"); + static constexpr uint32_t DYNAMO_DB_HASH = ConstExprHashingUtils::HashString("DYNAMO_DB"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t ECS_HASH = ConstExprHashingUtils::HashString("ECS"); + static constexpr uint32_t EKS_HASH = ConstExprHashingUtils::HashString("EKS"); + static constexpr uint32_t ELASTIC_BEANSTALK_HASH = ConstExprHashingUtils::HashString("ELASTIC_BEANSTALK"); + static constexpr uint32_t ELASTI_CACHE_HASH = ConstExprHashingUtils::HashString("ELASTI_CACHE"); + static constexpr uint32_t ELB_HASH = ConstExprHashingUtils::HashString("ELB"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t KINESIS_HASH = ConstExprHashingUtils::HashString("KINESIS"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t NAT_GATEWAY_HASH = ConstExprHashingUtils::HashString("NAT_GATEWAY"); + static constexpr uint32_t NETWORK_ELB_HASH = ConstExprHashingUtils::HashString("NETWORK_ELB"); + static constexpr uint32_t RDS_HASH = ConstExprHashingUtils::HashString("RDS"); + static constexpr uint32_t REDSHIFT_HASH = ConstExprHashingUtils::HashString("REDSHIFT"); + static constexpr uint32_t ROUTE_53_HASH = ConstExprHashingUtils::HashString("ROUTE_53"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t SAGE_MAKER_HASH = ConstExprHashingUtils::HashString("SAGE_MAKER"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); + static constexpr uint32_t SQS_HASH = ConstExprHashingUtils::HashString("SQS"); + static constexpr uint32_t STEP_FUNCTIONS_HASH = ConstExprHashingUtils::HashString("STEP_FUNCTIONS"); + static constexpr uint32_t SWF_HASH = ConstExprHashingUtils::HashString("SWF"); ServiceName GetServiceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_GATEWAY_HASH) { return ServiceName::API_GATEWAY; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/UpdateResourceCollectionAction.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/UpdateResourceCollectionAction.cpp index c0eef5ee29a..f0906f67902 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/UpdateResourceCollectionAction.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/UpdateResourceCollectionAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateResourceCollectionActionMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); UpdateResourceCollectionAction GetUpdateResourceCollectionActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return UpdateResourceCollectionAction::ADD; diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/model/ValidationExceptionReason.cpp index 56e24e4784d..38e2da48ac2 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/model/ValidationExceptionReason.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int INVALID_PARAMETER_COMBINATION_HASH = HashingUtils::HashString("INVALID_PARAMETER_COMBINATION"); - static const int PARAMETER_INCONSISTENT_WITH_SERVICE_STATE_HASH = HashingUtils::HashString("PARAMETER_INCONSISTENT_WITH_SERVICE_STATE"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t INVALID_PARAMETER_COMBINATION_HASH = ConstExprHashingUtils::HashString("INVALID_PARAMETER_COMBINATION"); + static constexpr uint32_t PARAMETER_INCONSISTENT_WITH_SERVICE_STATE_HASH = ConstExprHashingUtils::HashString("PARAMETER_INCONSISTENT_WITH_SERVICE_STATE"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectErrors.cpp b/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectErrors.cpp index 148bac07761..b05d61bf6bc 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectErrors.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectErrors.cpp @@ -18,15 +18,15 @@ namespace DirectConnect namespace DirectConnectErrorMapper { -static const int DUPLICATE_TAG_KEYS_HASH = HashingUtils::HashString("DuplicateTagKeysException"); -static const int DIRECT_CONNECT_CLIENT_HASH = HashingUtils::HashString("DirectConnectClientException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int DIRECT_CONNECT_SERVER_HASH = HashingUtils::HashString("DirectConnectServerException"); +static constexpr uint32_t DUPLICATE_TAG_KEYS_HASH = ConstExprHashingUtils::HashString("DuplicateTagKeysException"); +static constexpr uint32_t DIRECT_CONNECT_CLIENT_HASH = ConstExprHashingUtils::HashString("DirectConnectClientException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t DIRECT_CONNECT_SERVER_HASH = ConstExprHashingUtils::HashString("DirectConnectServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == DUPLICATE_TAG_KEYS_HASH) { diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/AddressFamily.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/AddressFamily.cpp index 5133643b82d..84f744c1ca3 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/AddressFamily.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/AddressFamily.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AddressFamilyMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); AddressFamily GetAddressFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return AddressFamily::ipv4; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/BGPPeerState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/BGPPeerState.cpp index 102e44271f7..433103437c8 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/BGPPeerState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/BGPPeerState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace BGPPeerStateMapper { - static const int verifying_HASH = HashingUtils::HashString("verifying"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t verifying_HASH = ConstExprHashingUtils::HashString("verifying"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); BGPPeerState GetBGPPeerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == verifying_HASH) { return BGPPeerState::verifying; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/BGPStatus.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/BGPStatus.cpp index e4caf630ab8..cd9691e180c 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/BGPStatus.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/BGPStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BGPStatusMapper { - static const int up_HASH = HashingUtils::HashString("up"); - static const int down_HASH = HashingUtils::HashString("down"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t up_HASH = ConstExprHashingUtils::HashString("up"); + static constexpr uint32_t down_HASH = ConstExprHashingUtils::HashString("down"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); BGPStatus GetBGPStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == up_HASH) { return BGPStatus::up; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/ConnectionState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/ConnectionState.cpp index b6f186ee9de..6c4b6616b4a 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/ConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/ConnectionState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ConnectionStateMapper { - static const int ordering_HASH = HashingUtils::HashString("ordering"); - static const int requested_HASH = HashingUtils::HashString("requested"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int down_HASH = HashingUtils::HashString("down"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int rejected_HASH = HashingUtils::HashString("rejected"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t ordering_HASH = ConstExprHashingUtils::HashString("ordering"); + static constexpr uint32_t requested_HASH = ConstExprHashingUtils::HashString("requested"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t down_HASH = ConstExprHashingUtils::HashString("down"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t rejected_HASH = ConstExprHashingUtils::HashString("rejected"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); ConnectionState GetConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ordering_HASH) { return ConnectionState::ordering; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationProposalState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationProposalState.cpp index ff6a44a97a8..7c963fc3c50 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationProposalState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationProposalState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DirectConnectGatewayAssociationProposalStateMapper { - static const int requested_HASH = HashingUtils::HashString("requested"); - static const int accepted_HASH = HashingUtils::HashString("accepted"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t requested_HASH = ConstExprHashingUtils::HashString("requested"); + static constexpr uint32_t accepted_HASH = ConstExprHashingUtils::HashString("accepted"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); DirectConnectGatewayAssociationProposalState GetDirectConnectGatewayAssociationProposalStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requested_HASH) { return DirectConnectGatewayAssociationProposalState::requested; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationState.cpp index dcb92036322..4cdd0f7ec7d 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAssociationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DirectConnectGatewayAssociationStateMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); - static const int updating_HASH = HashingUtils::HashString("updating"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); + static constexpr uint32_t updating_HASH = ConstExprHashingUtils::HashString("updating"); DirectConnectGatewayAssociationState GetDirectConnectGatewayAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return DirectConnectGatewayAssociationState::associating; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentState.cpp index 4f18112e3dc..a7f5736bf26 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DirectConnectGatewayAttachmentStateMapper { - static const int attaching_HASH = HashingUtils::HashString("attaching"); - static const int attached_HASH = HashingUtils::HashString("attached"); - static const int detaching_HASH = HashingUtils::HashString("detaching"); - static const int detached_HASH = HashingUtils::HashString("detached"); + static constexpr uint32_t attaching_HASH = ConstExprHashingUtils::HashString("attaching"); + static constexpr uint32_t attached_HASH = ConstExprHashingUtils::HashString("attached"); + static constexpr uint32_t detaching_HASH = ConstExprHashingUtils::HashString("detaching"); + static constexpr uint32_t detached_HASH = ConstExprHashingUtils::HashString("detached"); DirectConnectGatewayAttachmentState GetDirectConnectGatewayAttachmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == attaching_HASH) { return DirectConnectGatewayAttachmentState::attaching; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentType.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentType.cpp index 9325ae2b3b5..c9a45e1d8ec 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentType.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayAttachmentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DirectConnectGatewayAttachmentTypeMapper { - static const int TransitVirtualInterface_HASH = HashingUtils::HashString("TransitVirtualInterface"); - static const int PrivateVirtualInterface_HASH = HashingUtils::HashString("PrivateVirtualInterface"); + static constexpr uint32_t TransitVirtualInterface_HASH = ConstExprHashingUtils::HashString("TransitVirtualInterface"); + static constexpr uint32_t PrivateVirtualInterface_HASH = ConstExprHashingUtils::HashString("PrivateVirtualInterface"); DirectConnectGatewayAttachmentType GetDirectConnectGatewayAttachmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TransitVirtualInterface_HASH) { return DirectConnectGatewayAttachmentType::TransitVirtualInterface; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayState.cpp index 70d668e92ec..d6b125f69f8 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/DirectConnectGatewayState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DirectConnectGatewayStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); DirectConnectGatewayState GetDirectConnectGatewayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return DirectConnectGatewayState::pending; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/GatewayType.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/GatewayType.cpp index 16d9290972e..dad16b2b48b 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/GatewayType.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/GatewayType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GatewayTypeMapper { - static const int virtualPrivateGateway_HASH = HashingUtils::HashString("virtualPrivateGateway"); - static const int transitGateway_HASH = HashingUtils::HashString("transitGateway"); + static constexpr uint32_t virtualPrivateGateway_HASH = ConstExprHashingUtils::HashString("virtualPrivateGateway"); + static constexpr uint32_t transitGateway_HASH = ConstExprHashingUtils::HashString("transitGateway"); GatewayType GetGatewayTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == virtualPrivateGateway_HASH) { return GatewayType::virtualPrivateGateway; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/HasLogicalRedundancy.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/HasLogicalRedundancy.cpp index 0651f5647f6..0dae7d850be 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/HasLogicalRedundancy.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/HasLogicalRedundancy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HasLogicalRedundancyMapper { - static const int unknown_HASH = HashingUtils::HashString("unknown"); - static const int yes_HASH = HashingUtils::HashString("yes"); - static const int no_HASH = HashingUtils::HashString("no"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); + static constexpr uint32_t yes_HASH = ConstExprHashingUtils::HashString("yes"); + static constexpr uint32_t no_HASH = ConstExprHashingUtils::HashString("no"); HasLogicalRedundancy GetHasLogicalRedundancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknown_HASH) { return HasLogicalRedundancy::unknown; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/InterconnectState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/InterconnectState.cpp index 3a355785509..c89b2adff42 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/InterconnectState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/InterconnectState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace InterconnectStateMapper { - static const int requested_HASH = HashingUtils::HashString("requested"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int down_HASH = HashingUtils::HashString("down"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t requested_HASH = ConstExprHashingUtils::HashString("requested"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t down_HASH = ConstExprHashingUtils::HashString("down"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); InterconnectState GetInterconnectStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requested_HASH) { return InterconnectState::requested; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/LagState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/LagState.cpp index c17ffe99052..668172a5cfc 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/LagState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/LagState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace LagStateMapper { - static const int requested_HASH = HashingUtils::HashString("requested"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int down_HASH = HashingUtils::HashString("down"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t requested_HASH = ConstExprHashingUtils::HashString("requested"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t down_HASH = ConstExprHashingUtils::HashString("down"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); LagState GetLagStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requested_HASH) { return LagState::requested; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/LoaContentType.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/LoaContentType.cpp index 63f453f377c..e8c87643e25 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/LoaContentType.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/LoaContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LoaContentTypeMapper { - static const int application_pdf_HASH = HashingUtils::HashString("application/pdf"); + static constexpr uint32_t application_pdf_HASH = ConstExprHashingUtils::HashString("application/pdf"); LoaContentType GetLoaContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == application_pdf_HASH) { return LoaContentType::application_pdf; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/NniPartnerType.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/NniPartnerType.cpp index db0bf5d0916..a42bc6c25f4 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/NniPartnerType.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/NniPartnerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NniPartnerTypeMapper { - static const int v1_HASH = HashingUtils::HashString("v1"); - static const int v2_HASH = HashingUtils::HashString("v2"); - static const int nonPartner_HASH = HashingUtils::HashString("nonPartner"); + static constexpr uint32_t v1_HASH = ConstExprHashingUtils::HashString("v1"); + static constexpr uint32_t v2_HASH = ConstExprHashingUtils::HashString("v2"); + static constexpr uint32_t nonPartner_HASH = ConstExprHashingUtils::HashString("nonPartner"); NniPartnerType GetNniPartnerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == v1_HASH) { return NniPartnerType::v1; diff --git a/generated/src/aws-cpp-sdk-directconnect/source/model/VirtualInterfaceState.cpp b/generated/src/aws-cpp-sdk-directconnect/source/model/VirtualInterfaceState.cpp index a55dbb4ed9b..42cb6815cd3 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/model/VirtualInterfaceState.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/model/VirtualInterfaceState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace VirtualInterfaceStateMapper { - static const int confirming_HASH = HashingUtils::HashString("confirming"); - static const int verifying_HASH = HashingUtils::HashString("verifying"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int down_HASH = HashingUtils::HashString("down"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int rejected_HASH = HashingUtils::HashString("rejected"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t confirming_HASH = ConstExprHashingUtils::HashString("confirming"); + static constexpr uint32_t verifying_HASH = ConstExprHashingUtils::HashString("verifying"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t down_HASH = ConstExprHashingUtils::HashString("down"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t rejected_HASH = ConstExprHashingUtils::HashString("rejected"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); VirtualInterfaceState GetVirtualInterfaceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == confirming_HASH) { return VirtualInterfaceState::confirming; diff --git a/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceErrors.cpp b/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceErrors.cpp index d966597dfd1..8c2d6bd5037 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceErrors.cpp @@ -18,18 +18,18 @@ namespace ApplicationDiscoveryService namespace ApplicationDiscoveryServiceErrorMapper { -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermittedException"); -static const int CONFLICT_ERROR_HASH = HashingUtils::HashString("ConflictErrorException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int AUTHORIZATION_ERROR_HASH = HashingUtils::HashString("AuthorizationErrorException"); -static const int HOME_REGION_NOT_SET_HASH = HashingUtils::HashString("HomeRegionNotSetException"); -static const int SERVER_INTERNAL_ERROR_HASH = HashingUtils::HashString("ServerInternalErrorException"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermittedException"); +static constexpr uint32_t CONFLICT_ERROR_HASH = ConstExprHashingUtils::HashString("ConflictErrorException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t AUTHORIZATION_ERROR_HASH = ConstExprHashingUtils::HashString("AuthorizationErrorException"); +static constexpr uint32_t HOME_REGION_NOT_SET_HASH = ConstExprHashingUtils::HashString("HomeRegionNotSetException"); +static constexpr uint32_t SERVER_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("ServerInternalErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == OPERATION_NOT_PERMITTED_HASH) { diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/AgentStatus.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/AgentStatus.cpp index cc1af575bf7..500c3065957 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/AgentStatus.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/AgentStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AgentStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int BLACKLISTED_HASH = HashingUtils::HashString("BLACKLISTED"); - static const int SHUTDOWN_HASH = HashingUtils::HashString("SHUTDOWN"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t BLACKLISTED_HASH = ConstExprHashingUtils::HashString("BLACKLISTED"); + static constexpr uint32_t SHUTDOWN_HASH = ConstExprHashingUtils::HashString("SHUTDOWN"); AgentStatus GetAgentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return AgentStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/BatchDeleteImportDataErrorCode.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/BatchDeleteImportDataErrorCode.cpp index 86e69d2438f..f3f369f6f61 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/BatchDeleteImportDataErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/BatchDeleteImportDataErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatchDeleteImportDataErrorCodeMapper { - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); - static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVER_ERROR"); - static const int OVER_LIMIT_HASH = HashingUtils::HashString("OVER_LIMIT"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_ERROR"); + static constexpr uint32_t OVER_LIMIT_HASH = ConstExprHashingUtils::HashString("OVER_LIMIT"); BatchDeleteImportDataErrorCode GetBatchDeleteImportDataErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_FOUND_HASH) { return BatchDeleteImportDataErrorCode::NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp index 13cc233ece2..b93fff9ea2d 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ConfigurationItemType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConfigurationItemTypeMapper { - static const int SERVER_HASH = HashingUtils::HashString("SERVER"); - static const int PROCESS_HASH = HashingUtils::HashString("PROCESS"); - static const int CONNECTION_HASH = HashingUtils::HashString("CONNECTION"); - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("SERVER"); + static constexpr uint32_t PROCESS_HASH = ConstExprHashingUtils::HashString("PROCESS"); + static constexpr uint32_t CONNECTION_HASH = ConstExprHashingUtils::HashString("CONNECTION"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); ConfigurationItemType GetConfigurationItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVER_HASH) { return ConfigurationItemType::SERVER; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ContinuousExportStatus.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ContinuousExportStatus.cpp index c8ff3f03b07..28ba98c30c8 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ContinuousExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ContinuousExportStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ContinuousExportStatusMapper { - static const int START_IN_PROGRESS_HASH = HashingUtils::HashString("START_IN_PROGRESS"); - static const int START_FAILED_HASH = HashingUtils::HashString("START_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int STOP_IN_PROGRESS_HASH = HashingUtils::HashString("STOP_IN_PROGRESS"); - static const int STOP_FAILED_HASH = HashingUtils::HashString("STOP_FAILED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t START_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("START_IN_PROGRESS"); + static constexpr uint32_t START_FAILED_HASH = ConstExprHashingUtils::HashString("START_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t STOP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STOP_IN_PROGRESS"); + static constexpr uint32_t STOP_FAILED_HASH = ConstExprHashingUtils::HashString("STOP_FAILED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ContinuousExportStatus GetContinuousExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_IN_PROGRESS_HASH) { return ContinuousExportStatus::START_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/DataSource.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/DataSource.cpp index 02471fc7b9f..99dfd53fd0f 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/DataSource.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/DataSource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DataSourceMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); DataSource GetDataSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return DataSource::AGENT; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ExportDataFormat.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ExportDataFormat.cpp index f3b24399905..4af439edad7 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ExportDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ExportDataFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExportDataFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); ExportDataFormat GetExportDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return ExportDataFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ExportStatus.cpp index e0b9eb31df3..c72b5b4a439 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ExportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExportStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); ExportStatus GetExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return ExportStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp index 993e8701af8..9e3181cdf35 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ImportStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ImportStatusMapper { - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); - static const int IMPORT_COMPLETE_HASH = HashingUtils::HashString("IMPORT_COMPLETE"); - static const int IMPORT_COMPLETE_WITH_ERRORS_HASH = HashingUtils::HashString("IMPORT_COMPLETE_WITH_ERRORS"); - static const int IMPORT_FAILED_HASH = HashingUtils::HashString("IMPORT_FAILED"); - static const int IMPORT_FAILED_SERVER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"); - static const int IMPORT_FAILED_RECORD_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_FAILED_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DELETE_FAILED_LIMIT_EXCEEDED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t IMPORT_COMPLETE_HASH = ConstExprHashingUtils::HashString("IMPORT_COMPLETE"); + static constexpr uint32_t IMPORT_COMPLETE_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("IMPORT_COMPLETE_WITH_ERRORS"); + static constexpr uint32_t IMPORT_FAILED_HASH = ConstExprHashingUtils::HashString("IMPORT_FAILED"); + static constexpr uint32_t IMPORT_FAILED_SERVER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"); + static constexpr uint32_t IMPORT_FAILED_RECORD_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_FAILED_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED_LIMIT_EXCEEDED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); ImportStatus GetImportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORT_IN_PROGRESS_HASH) { return ImportStatus::IMPORT_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp index 870c42ce586..4307fd18e48 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/ImportTaskFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImportTaskFilterNameMapper { - static const int IMPORT_TASK_ID_HASH = HashingUtils::HashString("IMPORT_TASK_ID"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); + static constexpr uint32_t IMPORT_TASK_ID_HASH = ConstExprHashingUtils::HashString("IMPORT_TASK_ID"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); ImportTaskFilterName GetImportTaskFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORT_TASK_ID_HASH) { return ImportTaskFilterName::IMPORT_TASK_ID; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/OfferingClass.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/OfferingClass.cpp index 184af5aa01c..c11dae762d6 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/OfferingClass.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/OfferingClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OfferingClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int CONVERTIBLE_HASH = HashingUtils::HashString("CONVERTIBLE"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t CONVERTIBLE_HASH = ConstExprHashingUtils::HashString("CONVERTIBLE"); OfferingClass GetOfferingClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return OfferingClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/OrderString.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/OrderString.cpp index fb22468ba3d..b2be3315dc0 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/OrderString.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/OrderString.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderStringMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); OrderString GetOrderStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return OrderString::ASC; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/PurchasingOption.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/PurchasingOption.cpp index 8ab1af04d07..e10b3503af9 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/PurchasingOption.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/PurchasingOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PurchasingOptionMapper { - static const int ALL_UPFRONT_HASH = HashingUtils::HashString("ALL_UPFRONT"); - static const int PARTIAL_UPFRONT_HASH = HashingUtils::HashString("PARTIAL_UPFRONT"); - static const int NO_UPFRONT_HASH = HashingUtils::HashString("NO_UPFRONT"); + static constexpr uint32_t ALL_UPFRONT_HASH = ConstExprHashingUtils::HashString("ALL_UPFRONT"); + static constexpr uint32_t PARTIAL_UPFRONT_HASH = ConstExprHashingUtils::HashString("PARTIAL_UPFRONT"); + static constexpr uint32_t NO_UPFRONT_HASH = ConstExprHashingUtils::HashString("NO_UPFRONT"); PurchasingOption GetPurchasingOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_UPFRONT_HASH) { return PurchasingOption::ALL_UPFRONT; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/Tenancy.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/Tenancy.cpp index 99a0ac7ff73..7743876e821 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/Tenancy.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/Tenancy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TenancyMapper { - static const int DEDICATED_HASH = HashingUtils::HashString("DEDICATED"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t DEDICATED_HASH = ConstExprHashingUtils::HashString("DEDICATED"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); Tenancy GetTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEDICATED_HASH) { return Tenancy::DEDICATED; diff --git a/generated/src/aws-cpp-sdk-discovery/source/model/TermLength.cpp b/generated/src/aws-cpp-sdk-discovery/source/model/TermLength.cpp index 743658eee49..dd7f660fadd 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/model/TermLength.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/model/TermLength.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TermLengthMapper { - static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); - static const int THREE_YEAR_HASH = HashingUtils::HashString("THREE_YEAR"); + static constexpr uint32_t ONE_YEAR_HASH = ConstExprHashingUtils::HashString("ONE_YEAR"); + static constexpr uint32_t THREE_YEAR_HASH = ConstExprHashingUtils::HashString("THREE_YEAR"); TermLength GetTermLengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_YEAR_HASH) { return TermLength::ONE_YEAR; diff --git a/generated/src/aws-cpp-sdk-dlm/source/DLMErrors.cpp b/generated/src/aws-cpp-sdk-dlm/source/DLMErrors.cpp index af15c51945a..756ce4da2f9 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/DLMErrors.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/DLMErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_DLM_API InvalidRequestException DLMError::GetModeledError() namespace DLMErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/EventSourceValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/EventSourceValues.cpp index 5693ec39ccd..30eb0de8957 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/EventSourceValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/EventSourceValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventSourceValuesMapper { - static const int MANAGED_CWE_HASH = HashingUtils::HashString("MANAGED_CWE"); + static constexpr uint32_t MANAGED_CWE_HASH = ConstExprHashingUtils::HashString("MANAGED_CWE"); EventSourceValues GetEventSourceValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANAGED_CWE_HASH) { return EventSourceValues::MANAGED_CWE; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/EventTypeValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/EventTypeValues.cpp index 0403b360fde..ed37dfbfac9 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/EventTypeValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/EventTypeValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventTypeValuesMapper { - static const int shareSnapshot_HASH = HashingUtils::HashString("shareSnapshot"); + static constexpr uint32_t shareSnapshot_HASH = ConstExprHashingUtils::HashString("shareSnapshot"); EventTypeValues GetEventTypeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == shareSnapshot_HASH) { return EventTypeValues::shareSnapshot; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/GettablePolicyStateValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/GettablePolicyStateValues.cpp index 491c34b0e6b..30104a6cb25 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/GettablePolicyStateValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/GettablePolicyStateValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GettablePolicyStateValuesMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); GettablePolicyStateValues GetGettablePolicyStateValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return GettablePolicyStateValues::ENABLED; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/IntervalUnitValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/IntervalUnitValues.cpp index c1f3b2606af..d79789cad87 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/IntervalUnitValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/IntervalUnitValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IntervalUnitValuesMapper { - static const int HOURS_HASH = HashingUtils::HashString("HOURS"); + static constexpr uint32_t HOURS_HASH = ConstExprHashingUtils::HashString("HOURS"); IntervalUnitValues GetIntervalUnitValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURS_HASH) { return IntervalUnitValues::HOURS; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/LocationValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/LocationValues.cpp index 57fe8715247..d52ee7f44c8 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/LocationValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/LocationValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocationValuesMapper { - static const int CLOUD_HASH = HashingUtils::HashString("CLOUD"); - static const int OUTPOST_LOCAL_HASH = HashingUtils::HashString("OUTPOST_LOCAL"); + static constexpr uint32_t CLOUD_HASH = ConstExprHashingUtils::HashString("CLOUD"); + static constexpr uint32_t OUTPOST_LOCAL_HASH = ConstExprHashingUtils::HashString("OUTPOST_LOCAL"); LocationValues GetLocationValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUD_HASH) { return LocationValues::CLOUD; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/PolicyTypeValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/PolicyTypeValues.cpp index e477a1ab218..c1ef1d0848f 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/PolicyTypeValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/PolicyTypeValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolicyTypeValuesMapper { - static const int EBS_SNAPSHOT_MANAGEMENT_HASH = HashingUtils::HashString("EBS_SNAPSHOT_MANAGEMENT"); - static const int IMAGE_MANAGEMENT_HASH = HashingUtils::HashString("IMAGE_MANAGEMENT"); - static const int EVENT_BASED_POLICY_HASH = HashingUtils::HashString("EVENT_BASED_POLICY"); + static constexpr uint32_t EBS_SNAPSHOT_MANAGEMENT_HASH = ConstExprHashingUtils::HashString("EBS_SNAPSHOT_MANAGEMENT"); + static constexpr uint32_t IMAGE_MANAGEMENT_HASH = ConstExprHashingUtils::HashString("IMAGE_MANAGEMENT"); + static constexpr uint32_t EVENT_BASED_POLICY_HASH = ConstExprHashingUtils::HashString("EVENT_BASED_POLICY"); PolicyTypeValues GetPolicyTypeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EBS_SNAPSHOT_MANAGEMENT_HASH) { return PolicyTypeValues::EBS_SNAPSHOT_MANAGEMENT; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/ResourceLocationValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/ResourceLocationValues.cpp index 613adfcc6bc..010f930793a 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/ResourceLocationValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/ResourceLocationValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceLocationValuesMapper { - static const int CLOUD_HASH = HashingUtils::HashString("CLOUD"); - static const int OUTPOST_HASH = HashingUtils::HashString("OUTPOST"); + static constexpr uint32_t CLOUD_HASH = ConstExprHashingUtils::HashString("CLOUD"); + static constexpr uint32_t OUTPOST_HASH = ConstExprHashingUtils::HashString("OUTPOST"); ResourceLocationValues GetResourceLocationValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUD_HASH) { return ResourceLocationValues::CLOUD; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/ResourceTypeValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/ResourceTypeValues.cpp index 37529564227..1bb4185f466 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/ResourceTypeValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/ResourceTypeValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeValuesMapper { - static const int VOLUME_HASH = HashingUtils::HashString("VOLUME"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); + static constexpr uint32_t VOLUME_HASH = ConstExprHashingUtils::HashString("VOLUME"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); ResourceTypeValues GetResourceTypeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VOLUME_HASH) { return ResourceTypeValues::VOLUME; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/RetentionIntervalUnitValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/RetentionIntervalUnitValues.cpp index 879117e9b18..08354d82261 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/RetentionIntervalUnitValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/RetentionIntervalUnitValues.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RetentionIntervalUnitValuesMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); - static const int WEEKS_HASH = HashingUtils::HashString("WEEKS"); - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); - static const int YEARS_HASH = HashingUtils::HashString("YEARS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); + static constexpr uint32_t WEEKS_HASH = ConstExprHashingUtils::HashString("WEEKS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); + static constexpr uint32_t YEARS_HASH = ConstExprHashingUtils::HashString("YEARS"); RetentionIntervalUnitValues GetRetentionIntervalUnitValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return RetentionIntervalUnitValues::DAYS; diff --git a/generated/src/aws-cpp-sdk-dlm/source/model/SettablePolicyStateValues.cpp b/generated/src/aws-cpp-sdk-dlm/source/model/SettablePolicyStateValues.cpp index 83864e5c80b..fd5febdda29 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/model/SettablePolicyStateValues.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/model/SettablePolicyStateValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SettablePolicyStateValuesMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); SettablePolicyStateValues GetSettablePolicyStateValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return SettablePolicyStateValues::ENABLED; diff --git a/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceErrors.cpp b/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceErrors.cpp index 66fe59f47a3..43f8ff33b22 100644 --- a/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceErrors.cpp @@ -26,36 +26,36 @@ template<> AWS_DATABASEMIGRATIONSERVICE_API ResourceAlreadyExistsFault DatabaseM namespace DatabaseMigrationServiceErrorMapper { -static const int K_M_S_DISABLED_FAULT_HASH = HashingUtils::HashString("KMSDisabledFault"); -static const int STORAGE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("StorageQuotaExceededFault"); -static const int RESOURCE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ResourceAlreadyExistsFault"); -static const int S3_ACCESS_DENIED_FAULT_HASH = HashingUtils::HashString("S3AccessDeniedFault"); -static const int INVALID_CERTIFICATE_FAULT_HASH = HashingUtils::HashString("InvalidCertificateFault"); -static const int K_M_S_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("KMSNotFoundFault"); -static const int S3_RESOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("S3ResourceNotFoundFault"); -static const int INSUFFICIENT_RESOURCE_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientResourceCapacityFault"); -static const int RESOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ResourceNotFoundFault"); -static const int K_M_S_FAULT_HASH = HashingUtils::HashString("KMSFault"); -static const int K_M_S_ACCESS_DENIED_FAULT_HASH = HashingUtils::HashString("KMSAccessDeniedFault"); -static const int COLLECTOR_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CollectorNotFoundFault"); -static const int ACCESS_DENIED_FAULT_HASH = HashingUtils::HashString("AccessDeniedFault"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = HashingUtils::HashString("KMSKeyNotAccessibleFault"); -static const int S_N_S_NO_AUTHORIZATION_FAULT_HASH = HashingUtils::HashString("SNSNoAuthorizationFault"); -static const int UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = HashingUtils::HashString("UpgradeDependencyFailureFault"); -static const int RESOURCE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ResourceQuotaExceededFault"); -static const int K_M_S_INVALID_STATE_FAULT_HASH = HashingUtils::HashString("KMSInvalidStateFault"); -static const int INVALID_RESOURCE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidResourceStateFault"); -static const int SUBNET_ALREADY_IN_USE_HASH = HashingUtils::HashString("SubnetAlreadyInUse"); -static const int S_N_S_INVALID_TOPIC_FAULT_HASH = HashingUtils::HashString("SNSInvalidTopicFault"); -static const int INVALID_OPERATION_FAULT_HASH = HashingUtils::HashString("InvalidOperationFault"); -static const int K_M_S_THROTTLING_FAULT_HASH = HashingUtils::HashString("KMSThrottlingFault"); -static const int REPLICATION_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = HashingUtils::HashString("ReplicationSubnetGroupDoesNotCoverEnoughAZs"); +static constexpr uint32_t K_M_S_DISABLED_FAULT_HASH = ConstExprHashingUtils::HashString("KMSDisabledFault"); +static constexpr uint32_t STORAGE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageQuotaExceededFault"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsFault"); +static constexpr uint32_t S3_ACCESS_DENIED_FAULT_HASH = ConstExprHashingUtils::HashString("S3AccessDeniedFault"); +static constexpr uint32_t INVALID_CERTIFICATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidCertificateFault"); +static constexpr uint32_t K_M_S_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("KMSNotFoundFault"); +static constexpr uint32_t S3_RESOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("S3ResourceNotFoundFault"); +static constexpr uint32_t INSUFFICIENT_RESOURCE_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientResourceCapacityFault"); +static constexpr uint32_t RESOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundFault"); +static constexpr uint32_t K_M_S_FAULT_HASH = ConstExprHashingUtils::HashString("KMSFault"); +static constexpr uint32_t K_M_S_ACCESS_DENIED_FAULT_HASH = ConstExprHashingUtils::HashString("KMSAccessDeniedFault"); +static constexpr uint32_t COLLECTOR_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CollectorNotFoundFault"); +static constexpr uint32_t ACCESS_DENIED_FAULT_HASH = ConstExprHashingUtils::HashString("AccessDeniedFault"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = ConstExprHashingUtils::HashString("KMSKeyNotAccessibleFault"); +static constexpr uint32_t S_N_S_NO_AUTHORIZATION_FAULT_HASH = ConstExprHashingUtils::HashString("SNSNoAuthorizationFault"); +static constexpr uint32_t UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = ConstExprHashingUtils::HashString("UpgradeDependencyFailureFault"); +static constexpr uint32_t RESOURCE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceQuotaExceededFault"); +static constexpr uint32_t K_M_S_INVALID_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("KMSInvalidStateFault"); +static constexpr uint32_t INVALID_RESOURCE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidResourceStateFault"); +static constexpr uint32_t SUBNET_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetAlreadyInUse"); +static constexpr uint32_t S_N_S_INVALID_TOPIC_FAULT_HASH = ConstExprHashingUtils::HashString("SNSInvalidTopicFault"); +static constexpr uint32_t INVALID_OPERATION_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidOperationFault"); +static constexpr uint32_t K_M_S_THROTTLING_FAULT_HASH = ConstExprHashingUtils::HashString("KMSThrottlingFault"); +static constexpr uint32_t REPLICATION_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = ConstExprHashingUtils::HashString("ReplicationSubnetGroupDoesNotCoverEnoughAZs"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == K_M_S_DISABLED_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-dms/source/model/AssessmentReportType.cpp b/generated/src/aws-cpp-sdk-dms/source/model/AssessmentReportType.cpp index c9398da7e30..3193dd68abf 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/AssessmentReportType.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/AssessmentReportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssessmentReportTypeMapper { - static const int pdf_HASH = HashingUtils::HashString("pdf"); - static const int csv_HASH = HashingUtils::HashString("csv"); + static constexpr uint32_t pdf_HASH = ConstExprHashingUtils::HashString("pdf"); + static constexpr uint32_t csv_HASH = ConstExprHashingUtils::HashString("csv"); AssessmentReportType GetAssessmentReportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pdf_HASH) { return AssessmentReportType::pdf; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/AuthMechanismValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/AuthMechanismValue.cpp index 983a772a080..a9666809b4e 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/AuthMechanismValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/AuthMechanismValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthMechanismValueMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int mongodb_cr_HASH = HashingUtils::HashString("mongodb_cr"); - static const int scram_sha_1_HASH = HashingUtils::HashString("scram_sha_1"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t mongodb_cr_HASH = ConstExprHashingUtils::HashString("mongodb_cr"); + static constexpr uint32_t scram_sha_1_HASH = ConstExprHashingUtils::HashString("scram_sha_1"); AuthMechanismValue GetAuthMechanismValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return AuthMechanismValue::default_; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/AuthTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/AuthTypeValue.cpp index ed78dc55e6e..5a819466042 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/AuthTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/AuthTypeValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthTypeValueMapper { - static const int no_HASH = HashingUtils::HashString("no"); - static const int password_HASH = HashingUtils::HashString("password"); + static constexpr uint32_t no_HASH = ConstExprHashingUtils::HashString("no"); + static constexpr uint32_t password_HASH = ConstExprHashingUtils::HashString("password"); AuthTypeValue GetAuthTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == no_HASH) { return AuthTypeValue::no; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/CannedAclForObjectsValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/CannedAclForObjectsValue.cpp index 399c0457ab8..6a028aaf3ac 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/CannedAclForObjectsValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/CannedAclForObjectsValue.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CannedAclForObjectsValueMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); CannedAclForObjectsValue GetCannedAclForObjectsValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return CannedAclForObjectsValue::none; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/CharLengthSemantics.cpp b/generated/src/aws-cpp-sdk-dms/source/model/CharLengthSemantics.cpp index f971533721e..62c74b8c606 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/CharLengthSemantics.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/CharLengthSemantics.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CharLengthSemanticsMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int char__HASH = HashingUtils::HashString("char"); - static const int byte_HASH = HashingUtils::HashString("byte"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t char__HASH = ConstExprHashingUtils::HashString("char"); + static constexpr uint32_t byte_HASH = ConstExprHashingUtils::HashString("byte"); CharLengthSemantics GetCharLengthSemanticsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return CharLengthSemantics::default_; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/CollectorStatus.cpp b/generated/src/aws-cpp-sdk-dms/source/model/CollectorStatus.cpp index ba4e96ea7ce..709dcf49e8d 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/CollectorStatus.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/CollectorStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CollectorStatusMapper { - static const int UNREGISTERED_HASH = HashingUtils::HashString("UNREGISTERED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UNREGISTERED_HASH = ConstExprHashingUtils::HashString("UNREGISTERED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); CollectorStatus GetCollectorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNREGISTERED_HASH) { return CollectorStatus::UNREGISTERED; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/CompressionTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/CompressionTypeValue.cpp index 973d8485283..0821704ad83 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/CompressionTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/CompressionTypeValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompressionTypeValueMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int gzip_HASH = HashingUtils::HashString("gzip"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t gzip_HASH = ConstExprHashingUtils::HashString("gzip"); CompressionTypeValue GetCompressionTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return CompressionTypeValue::none; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/DataFormatValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/DataFormatValue.cpp index 8da4216771e..a9e7ecb26c5 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/DataFormatValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/DataFormatValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataFormatValueMapper { - static const int csv_HASH = HashingUtils::HashString("csv"); - static const int parquet_HASH = HashingUtils::HashString("parquet"); + static constexpr uint32_t csv_HASH = ConstExprHashingUtils::HashString("csv"); + static constexpr uint32_t parquet_HASH = ConstExprHashingUtils::HashString("parquet"); DataFormatValue GetDataFormatValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == csv_HASH) { return DataFormatValue::csv; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/DatabaseMode.cpp b/generated/src/aws-cpp-sdk-dms/source/model/DatabaseMode.cpp index d334891d22e..8886fa4abbb 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/DatabaseMode.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/DatabaseMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatabaseModeMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int babelfish_HASH = HashingUtils::HashString("babelfish"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t babelfish_HASH = ConstExprHashingUtils::HashString("babelfish"); DatabaseMode GetDatabaseModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return DatabaseMode::default_; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionDelimiterValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionDelimiterValue.cpp index eadef78dedd..fcbfa06da45 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionDelimiterValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionDelimiterValue.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DatePartitionDelimiterValueMapper { - static const int SLASH_HASH = HashingUtils::HashString("SLASH"); - static const int UNDERSCORE_HASH = HashingUtils::HashString("UNDERSCORE"); - static const int DASH_HASH = HashingUtils::HashString("DASH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SLASH_HASH = ConstExprHashingUtils::HashString("SLASH"); + static constexpr uint32_t UNDERSCORE_HASH = ConstExprHashingUtils::HashString("UNDERSCORE"); + static constexpr uint32_t DASH_HASH = ConstExprHashingUtils::HashString("DASH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); DatePartitionDelimiterValue GetDatePartitionDelimiterValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SLASH_HASH) { return DatePartitionDelimiterValue::SLASH; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionSequenceValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionSequenceValue.cpp index 96fd25ea1da..c0069d133b7 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionSequenceValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/DatePartitionSequenceValue.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DatePartitionSequenceValueMapper { - static const int YYYYMMDD_HASH = HashingUtils::HashString("YYYYMMDD"); - static const int YYYYMMDDHH_HASH = HashingUtils::HashString("YYYYMMDDHH"); - static const int YYYYMM_HASH = HashingUtils::HashString("YYYYMM"); - static const int MMYYYYDD_HASH = HashingUtils::HashString("MMYYYYDD"); - static const int DDMMYYYY_HASH = HashingUtils::HashString("DDMMYYYY"); + static constexpr uint32_t YYYYMMDD_HASH = ConstExprHashingUtils::HashString("YYYYMMDD"); + static constexpr uint32_t YYYYMMDDHH_HASH = ConstExprHashingUtils::HashString("YYYYMMDDHH"); + static constexpr uint32_t YYYYMM_HASH = ConstExprHashingUtils::HashString("YYYYMM"); + static constexpr uint32_t MMYYYYDD_HASH = ConstExprHashingUtils::HashString("MMYYYYDD"); + static constexpr uint32_t DDMMYYYY_HASH = ConstExprHashingUtils::HashString("DDMMYYYY"); DatePartitionSequenceValue GetDatePartitionSequenceValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YYYYMMDD_HASH) { return DatePartitionSequenceValue::YYYYMMDD; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/DmsSslModeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/DmsSslModeValue.cpp index 51ba0a14e25..75752a109d8 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/DmsSslModeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/DmsSslModeValue.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DmsSslModeValueMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int require_HASH = HashingUtils::HashString("require"); - static const int verify_ca_HASH = HashingUtils::HashString("verify-ca"); - static const int verify_full_HASH = HashingUtils::HashString("verify-full"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t require_HASH = ConstExprHashingUtils::HashString("require"); + static constexpr uint32_t verify_ca_HASH = ConstExprHashingUtils::HashString("verify-ca"); + static constexpr uint32_t verify_full_HASH = ConstExprHashingUtils::HashString("verify-full"); DmsSslModeValue GetDmsSslModeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return DmsSslModeValue::none; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/EncodingTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/EncodingTypeValue.cpp index 36d0bec9b43..d4467522eb1 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/EncodingTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/EncodingTypeValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EncodingTypeValueMapper { - static const int plain_HASH = HashingUtils::HashString("plain"); - static const int plain_dictionary_HASH = HashingUtils::HashString("plain-dictionary"); - static const int rle_dictionary_HASH = HashingUtils::HashString("rle-dictionary"); + static constexpr uint32_t plain_HASH = ConstExprHashingUtils::HashString("plain"); + static constexpr uint32_t plain_dictionary_HASH = ConstExprHashingUtils::HashString("plain-dictionary"); + static constexpr uint32_t rle_dictionary_HASH = ConstExprHashingUtils::HashString("rle-dictionary"); EncodingTypeValue GetEncodingTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == plain_HASH) { return EncodingTypeValue::plain; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/EncryptionModeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/EncryptionModeValue.cpp index 8cc101c3290..5e2d2b18aeb 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/EncryptionModeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/EncryptionModeValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionModeValueMapper { - static const int sse_s3_HASH = HashingUtils::HashString("sse-s3"); - static const int sse_kms_HASH = HashingUtils::HashString("sse-kms"); + static constexpr uint32_t sse_s3_HASH = ConstExprHashingUtils::HashString("sse-s3"); + static constexpr uint32_t sse_kms_HASH = ConstExprHashingUtils::HashString("sse-kms"); EncryptionModeValue GetEncryptionModeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sse_s3_HASH) { return EncryptionModeValue::sse_s3; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/EndpointSettingTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/EndpointSettingTypeValue.cpp index a336e00f068..aa2736d8860 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/EndpointSettingTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/EndpointSettingTypeValue.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EndpointSettingTypeValueMapper { - static const int string_HASH = HashingUtils::HashString("string"); - static const int boolean_HASH = HashingUtils::HashString("boolean"); - static const int integer_HASH = HashingUtils::HashString("integer"); - static const int enum__HASH = HashingUtils::HashString("enum"); + static constexpr uint32_t string_HASH = ConstExprHashingUtils::HashString("string"); + static constexpr uint32_t boolean_HASH = ConstExprHashingUtils::HashString("boolean"); + static constexpr uint32_t integer_HASH = ConstExprHashingUtils::HashString("integer"); + static constexpr uint32_t enum__HASH = ConstExprHashingUtils::HashString("enum"); EndpointSettingTypeValue GetEndpointSettingTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == string_HASH) { return EndpointSettingTypeValue::string; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/KafkaSaslMechanism.cpp b/generated/src/aws-cpp-sdk-dms/source/model/KafkaSaslMechanism.cpp index 54ae30b5756..de8e3f7f5d6 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/KafkaSaslMechanism.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/KafkaSaslMechanism.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KafkaSaslMechanismMapper { - static const int scram_sha_512_HASH = HashingUtils::HashString("scram-sha-512"); - static const int plain_HASH = HashingUtils::HashString("plain"); + static constexpr uint32_t scram_sha_512_HASH = ConstExprHashingUtils::HashString("scram-sha-512"); + static constexpr uint32_t plain_HASH = ConstExprHashingUtils::HashString("plain"); KafkaSaslMechanism GetKafkaSaslMechanismForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == scram_sha_512_HASH) { return KafkaSaslMechanism::scram_sha_512; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/KafkaSecurityProtocol.cpp b/generated/src/aws-cpp-sdk-dms/source/model/KafkaSecurityProtocol.cpp index 0eaab7f1a20..543b995fa52 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/KafkaSecurityProtocol.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/KafkaSecurityProtocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace KafkaSecurityProtocolMapper { - static const int plaintext_HASH = HashingUtils::HashString("plaintext"); - static const int ssl_authentication_HASH = HashingUtils::HashString("ssl-authentication"); - static const int ssl_encryption_HASH = HashingUtils::HashString("ssl-encryption"); - static const int sasl_ssl_HASH = HashingUtils::HashString("sasl-ssl"); + static constexpr uint32_t plaintext_HASH = ConstExprHashingUtils::HashString("plaintext"); + static constexpr uint32_t ssl_authentication_HASH = ConstExprHashingUtils::HashString("ssl-authentication"); + static constexpr uint32_t ssl_encryption_HASH = ConstExprHashingUtils::HashString("ssl-encryption"); + static constexpr uint32_t sasl_ssl_HASH = ConstExprHashingUtils::HashString("sasl-ssl"); KafkaSecurityProtocol GetKafkaSecurityProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == plaintext_HASH) { return KafkaSecurityProtocol::plaintext; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/KafkaSslEndpointIdentificationAlgorithm.cpp b/generated/src/aws-cpp-sdk-dms/source/model/KafkaSslEndpointIdentificationAlgorithm.cpp index f9e28c1064b..c87356d337d 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/KafkaSslEndpointIdentificationAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/KafkaSslEndpointIdentificationAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KafkaSslEndpointIdentificationAlgorithmMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int https_HASH = HashingUtils::HashString("https"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t https_HASH = ConstExprHashingUtils::HashString("https"); KafkaSslEndpointIdentificationAlgorithm GetKafkaSslEndpointIdentificationAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return KafkaSslEndpointIdentificationAlgorithm::none; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/LongVarcharMappingType.cpp b/generated/src/aws-cpp-sdk-dms/source/model/LongVarcharMappingType.cpp index 8f362e9e451..281edbfa4d0 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/LongVarcharMappingType.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/LongVarcharMappingType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LongVarcharMappingTypeMapper { - static const int wstring_HASH = HashingUtils::HashString("wstring"); - static const int clob_HASH = HashingUtils::HashString("clob"); - static const int nclob_HASH = HashingUtils::HashString("nclob"); + static constexpr uint32_t wstring_HASH = ConstExprHashingUtils::HashString("wstring"); + static constexpr uint32_t clob_HASH = ConstExprHashingUtils::HashString("clob"); + static constexpr uint32_t nclob_HASH = ConstExprHashingUtils::HashString("nclob"); LongVarcharMappingType GetLongVarcharMappingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == wstring_HASH) { return LongVarcharMappingType::wstring; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/MessageFormatValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/MessageFormatValue.cpp index 9203e3bcaab..7d70b862e22 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/MessageFormatValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/MessageFormatValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageFormatValueMapper { - static const int json_HASH = HashingUtils::HashString("json"); - static const int json_unformatted_HASH = HashingUtils::HashString("json-unformatted"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); + static constexpr uint32_t json_unformatted_HASH = ConstExprHashingUtils::HashString("json-unformatted"); MessageFormatValue GetMessageFormatValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_HASH) { return MessageFormatValue::json; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/MigrationTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/MigrationTypeValue.cpp index 46f0cb01675..50074a6dace 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/MigrationTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/MigrationTypeValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MigrationTypeValueMapper { - static const int full_load_HASH = HashingUtils::HashString("full-load"); - static const int cdc_HASH = HashingUtils::HashString("cdc"); - static const int full_load_and_cdc_HASH = HashingUtils::HashString("full-load-and-cdc"); + static constexpr uint32_t full_load_HASH = ConstExprHashingUtils::HashString("full-load"); + static constexpr uint32_t cdc_HASH = ConstExprHashingUtils::HashString("cdc"); + static constexpr uint32_t full_load_and_cdc_HASH = ConstExprHashingUtils::HashString("full-load-and-cdc"); MigrationTypeValue GetMigrationTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == full_load_HASH) { return MigrationTypeValue::full_load; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/NestingLevelValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/NestingLevelValue.cpp index 12b56a061a8..09d4a967c99 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/NestingLevelValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/NestingLevelValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NestingLevelValueMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int one_HASH = HashingUtils::HashString("one"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t one_HASH = ConstExprHashingUtils::HashString("one"); NestingLevelValue GetNestingLevelValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return NestingLevelValue::none; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/OriginTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/OriginTypeValue.cpp index 66cdc312e9c..352d7887e2e 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/OriginTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/OriginTypeValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginTypeValueMapper { - static const int SOURCE_HASH = HashingUtils::HashString("SOURCE"); - static const int TARGET_HASH = HashingUtils::HashString("TARGET"); + static constexpr uint32_t SOURCE_HASH = ConstExprHashingUtils::HashString("SOURCE"); + static constexpr uint32_t TARGET_HASH = ConstExprHashingUtils::HashString("TARGET"); OriginTypeValue GetOriginTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE_HASH) { return OriginTypeValue::SOURCE; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/ParquetVersionValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/ParquetVersionValue.cpp index 4bf359f6c64..537e804d30d 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/ParquetVersionValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/ParquetVersionValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParquetVersionValueMapper { - static const int parquet_1_0_HASH = HashingUtils::HashString("parquet-1-0"); - static const int parquet_2_0_HASH = HashingUtils::HashString("parquet-2-0"); + static constexpr uint32_t parquet_1_0_HASH = ConstExprHashingUtils::HashString("parquet-1-0"); + static constexpr uint32_t parquet_2_0_HASH = ConstExprHashingUtils::HashString("parquet-2-0"); ParquetVersionValue GetParquetVersionValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == parquet_1_0_HASH) { return ParquetVersionValue::parquet_1_0; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/PluginNameValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/PluginNameValue.cpp index 6e23fc35268..69dd41dc4f3 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/PluginNameValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/PluginNameValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PluginNameValueMapper { - static const int no_preference_HASH = HashingUtils::HashString("no-preference"); - static const int test_decoding_HASH = HashingUtils::HashString("test-decoding"); - static const int pglogical_HASH = HashingUtils::HashString("pglogical"); + static constexpr uint32_t no_preference_HASH = ConstExprHashingUtils::HashString("no-preference"); + static constexpr uint32_t test_decoding_HASH = ConstExprHashingUtils::HashString("test-decoding"); + static constexpr uint32_t pglogical_HASH = ConstExprHashingUtils::HashString("pglogical"); PluginNameValue GetPluginNameValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == no_preference_HASH) { return PluginNameValue::no_preference; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/RedisAuthTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/RedisAuthTypeValue.cpp index 764af7d7b2e..4b46cd137ee 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/RedisAuthTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/RedisAuthTypeValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RedisAuthTypeValueMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int auth_role_HASH = HashingUtils::HashString("auth-role"); - static const int auth_token_HASH = HashingUtils::HashString("auth-token"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t auth_role_HASH = ConstExprHashingUtils::HashString("auth-role"); + static constexpr uint32_t auth_token_HASH = ConstExprHashingUtils::HashString("auth-token"); RedisAuthTypeValue GetRedisAuthTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return RedisAuthTypeValue::none; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/RefreshSchemasStatusTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/RefreshSchemasStatusTypeValue.cpp index d5be8bf35cb..24f1de54839 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/RefreshSchemasStatusTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/RefreshSchemasStatusTypeValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RefreshSchemasStatusTypeValueMapper { - static const int successful_HASH = HashingUtils::HashString("successful"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int refreshing_HASH = HashingUtils::HashString("refreshing"); + static constexpr uint32_t successful_HASH = ConstExprHashingUtils::HashString("successful"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t refreshing_HASH = ConstExprHashingUtils::HashString("refreshing"); RefreshSchemasStatusTypeValue GetRefreshSchemasStatusTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == successful_HASH) { return RefreshSchemasStatusTypeValue::successful; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/ReleaseStatusValues.cpp b/generated/src/aws-cpp-sdk-dms/source/model/ReleaseStatusValues.cpp index 27ea8d1e802..866b0ccb9eb 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/ReleaseStatusValues.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/ReleaseStatusValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReleaseStatusValuesMapper { - static const int beta_HASH = HashingUtils::HashString("beta"); - static const int prod_HASH = HashingUtils::HashString("prod"); + static constexpr uint32_t beta_HASH = ConstExprHashingUtils::HashString("beta"); + static constexpr uint32_t prod_HASH = ConstExprHashingUtils::HashString("prod"); ReleaseStatusValues GetReleaseStatusValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == beta_HASH) { return ReleaseStatusValues::beta; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/ReloadOptionValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/ReloadOptionValue.cpp index 7e40faf4de9..23fdabd3520 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/ReloadOptionValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/ReloadOptionValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReloadOptionValueMapper { - static const int data_reload_HASH = HashingUtils::HashString("data-reload"); - static const int validate_only_HASH = HashingUtils::HashString("validate-only"); + static constexpr uint32_t data_reload_HASH = ConstExprHashingUtils::HashString("data-reload"); + static constexpr uint32_t validate_only_HASH = ConstExprHashingUtils::HashString("validate-only"); ReloadOptionValue GetReloadOptionValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == data_reload_HASH) { return ReloadOptionValue::data_reload; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/ReplicationEndpointTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/ReplicationEndpointTypeValue.cpp index 4d4e5b74ec0..8b91268381b 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/ReplicationEndpointTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/ReplicationEndpointTypeValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationEndpointTypeValueMapper { - static const int source_HASH = HashingUtils::HashString("source"); - static const int target_HASH = HashingUtils::HashString("target"); + static constexpr uint32_t source_HASH = ConstExprHashingUtils::HashString("source"); + static constexpr uint32_t target_HASH = ConstExprHashingUtils::HashString("target"); ReplicationEndpointTypeValue GetReplicationEndpointTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == source_HASH) { return ReplicationEndpointTypeValue::source; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/SafeguardPolicy.cpp b/generated/src/aws-cpp-sdk-dms/source/model/SafeguardPolicy.cpp index a8a60a4d24e..7aa5ffc104e 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/SafeguardPolicy.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/SafeguardPolicy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SafeguardPolicyMapper { - static const int rely_on_sql_server_replication_agent_HASH = HashingUtils::HashString("rely-on-sql-server-replication-agent"); - static const int exclusive_automatic_truncation_HASH = HashingUtils::HashString("exclusive-automatic-truncation"); - static const int shared_automatic_truncation_HASH = HashingUtils::HashString("shared-automatic-truncation"); + static constexpr uint32_t rely_on_sql_server_replication_agent_HASH = ConstExprHashingUtils::HashString("rely-on-sql-server-replication-agent"); + static constexpr uint32_t exclusive_automatic_truncation_HASH = ConstExprHashingUtils::HashString("exclusive-automatic-truncation"); + static constexpr uint32_t shared_automatic_truncation_HASH = ConstExprHashingUtils::HashString("shared-automatic-truncation"); SafeguardPolicy GetSafeguardPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == rely_on_sql_server_replication_agent_HASH) { return SafeguardPolicy::rely_on_sql_server_replication_agent; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-dms/source/model/SourceType.cpp index 9fa959ff9cc..ad0cc5e06de 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/SourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SourceTypeMapper { - static const int replication_instance_HASH = HashingUtils::HashString("replication-instance"); + static constexpr uint32_t replication_instance_HASH = ConstExprHashingUtils::HashString("replication-instance"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == replication_instance_HASH) { return SourceType::replication_instance; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/SslSecurityProtocolValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/SslSecurityProtocolValue.cpp index d3084c1dde9..3c3328b5d3f 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/SslSecurityProtocolValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/SslSecurityProtocolValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SslSecurityProtocolValueMapper { - static const int plaintext_HASH = HashingUtils::HashString("plaintext"); - static const int ssl_encryption_HASH = HashingUtils::HashString("ssl-encryption"); + static constexpr uint32_t plaintext_HASH = ConstExprHashingUtils::HashString("plaintext"); + static constexpr uint32_t ssl_encryption_HASH = ConstExprHashingUtils::HashString("ssl-encryption"); SslSecurityProtocolValue GetSslSecurityProtocolValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == plaintext_HASH) { return SslSecurityProtocolValue::plaintext; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/StartReplicationTaskTypeValue.cpp b/generated/src/aws-cpp-sdk-dms/source/model/StartReplicationTaskTypeValue.cpp index cc324a56c45..7caf4b16c81 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/StartReplicationTaskTypeValue.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/StartReplicationTaskTypeValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StartReplicationTaskTypeValueMapper { - static const int start_replication_HASH = HashingUtils::HashString("start-replication"); - static const int resume_processing_HASH = HashingUtils::HashString("resume-processing"); - static const int reload_target_HASH = HashingUtils::HashString("reload-target"); + static constexpr uint32_t start_replication_HASH = ConstExprHashingUtils::HashString("start-replication"); + static constexpr uint32_t resume_processing_HASH = ConstExprHashingUtils::HashString("resume-processing"); + static constexpr uint32_t reload_target_HASH = ConstExprHashingUtils::HashString("reload-target"); StartReplicationTaskTypeValue GetStartReplicationTaskTypeValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == start_replication_HASH) { return StartReplicationTaskTypeValue::start_replication; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/TargetDbType.cpp b/generated/src/aws-cpp-sdk-dms/source/model/TargetDbType.cpp index 77cea2a8af0..7d201fd0fb2 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/TargetDbType.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/TargetDbType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetDbTypeMapper { - static const int specific_database_HASH = HashingUtils::HashString("specific-database"); - static const int multiple_databases_HASH = HashingUtils::HashString("multiple-databases"); + static constexpr uint32_t specific_database_HASH = ConstExprHashingUtils::HashString("specific-database"); + static constexpr uint32_t multiple_databases_HASH = ConstExprHashingUtils::HashString("multiple-databases"); TargetDbType GetTargetDbTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == specific_database_HASH) { return TargetDbType::specific_database; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/TlogAccessMode.cpp b/generated/src/aws-cpp-sdk-dms/source/model/TlogAccessMode.cpp index 6f23b0f9315..0cbcace062d 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/TlogAccessMode.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/TlogAccessMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TlogAccessModeMapper { - static const int BackupOnly_HASH = HashingUtils::HashString("BackupOnly"); - static const int PreferBackup_HASH = HashingUtils::HashString("PreferBackup"); - static const int PreferTlog_HASH = HashingUtils::HashString("PreferTlog"); - static const int TlogOnly_HASH = HashingUtils::HashString("TlogOnly"); + static constexpr uint32_t BackupOnly_HASH = ConstExprHashingUtils::HashString("BackupOnly"); + static constexpr uint32_t PreferBackup_HASH = ConstExprHashingUtils::HashString("PreferBackup"); + static constexpr uint32_t PreferTlog_HASH = ConstExprHashingUtils::HashString("PreferTlog"); + static constexpr uint32_t TlogOnly_HASH = ConstExprHashingUtils::HashString("TlogOnly"); TlogAccessMode GetTlogAccessModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BackupOnly_HASH) { return TlogAccessMode::BackupOnly; diff --git a/generated/src/aws-cpp-sdk-dms/source/model/VersionStatus.cpp b/generated/src/aws-cpp-sdk-dms/source/model/VersionStatus.cpp index 425ce77f776..539096716c2 100644 --- a/generated/src/aws-cpp-sdk-dms/source/model/VersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/model/VersionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VersionStatusMapper { - static const int UP_TO_DATE_HASH = HashingUtils::HashString("UP_TO_DATE"); - static const int OUTDATED_HASH = HashingUtils::HashString("OUTDATED"); - static const int UNSUPPORTED_HASH = HashingUtils::HashString("UNSUPPORTED"); + static constexpr uint32_t UP_TO_DATE_HASH = ConstExprHashingUtils::HashString("UP_TO_DATE"); + static constexpr uint32_t OUTDATED_HASH = ConstExprHashingUtils::HashString("OUTDATED"); + static constexpr uint32_t UNSUPPORTED_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED"); VersionStatus GetVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UP_TO_DATE_HASH) { return VersionStatus::UP_TO_DATE; diff --git a/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticErrors.cpp b/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticErrors.cpp index 147ab340022..7e6aa8679e4 100644 --- a/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticErrors.cpp +++ b/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_DOCDBELASTIC_API ValidationException DocDBElasticError::GetModele namespace DocDBElasticErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Auth.cpp b/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Auth.cpp index ac5784924d0..9e43aa73eea 100644 --- a/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Auth.cpp +++ b/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Auth.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthMapper { - static const int PLAIN_TEXT_HASH = HashingUtils::HashString("PLAIN_TEXT"); - static const int SECRET_ARN_HASH = HashingUtils::HashString("SECRET_ARN"); + static constexpr uint32_t PLAIN_TEXT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT"); + static constexpr uint32_t SECRET_ARN_HASH = ConstExprHashingUtils::HashString("SECRET_ARN"); Auth GetAuthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAIN_TEXT_HASH) { return Auth::PLAIN_TEXT; diff --git a/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Status.cpp b/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Status.cpp index f87082a0d1c..9a4f5cb09fb 100644 --- a/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-docdb-elastic/source/model/Status.cpp @@ -20,20 +20,20 @@ namespace Aws namespace StatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int VPC_ENDPOINT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VPC_ENDPOINT_LIMIT_EXCEEDED"); - static const int IP_ADDRESS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("IP_ADDRESS_LIMIT_EXCEEDED"); - static const int INVALID_SECURITY_GROUP_ID_HASH = HashingUtils::HashString("INVALID_SECURITY_GROUP_ID"); - static const int INVALID_SUBNET_ID_HASH = HashingUtils::HashString("INVALID_SUBNET_ID"); - static const int INACCESSIBLE_ENCRYPTION_CREDS_HASH = HashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDS"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t VPC_ENDPOINT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT_LIMIT_EXCEEDED"); + static constexpr uint32_t IP_ADDRESS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("IP_ADDRESS_LIMIT_EXCEEDED"); + static constexpr uint32_t INVALID_SECURITY_GROUP_ID_HASH = ConstExprHashingUtils::HashString("INVALID_SECURITY_GROUP_ID"); + static constexpr uint32_t INVALID_SUBNET_ID_HASH = ConstExprHashingUtils::HashString("INVALID_SUBNET_ID"); + static constexpr uint32_t INACCESSIBLE_ENCRYPTION_CREDS_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDS"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return Status::CREATING; diff --git a/generated/src/aws-cpp-sdk-docdb-elastic/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-docdb-elastic/source/model/ValidationExceptionReason.cpp index a941d7c9bef..bfe4d705b11 100644 --- a/generated/src/aws-cpp-sdk-docdb-elastic/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-docdb-elastic/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-docdb/source/DocDBErrors.cpp b/generated/src/aws-cpp-sdk-docdb/source/DocDBErrors.cpp index a2ae4edefbf..c9895278e82 100644 --- a/generated/src/aws-cpp-sdk-docdb/source/DocDBErrors.cpp +++ b/generated/src/aws-cpp-sdk-docdb/source/DocDBErrors.cpp @@ -18,68 +18,68 @@ namespace DocDB namespace DocDBErrorMapper { -static const int SUBSCRIPTION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionNotFound"); -static const int D_B_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterNotFoundFault"); -static const int SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionCategoryNotFound"); -static const int INVALID_D_B_SUBNET_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetGroupStateFault"); -static const int D_B_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupQuotaExceeded"); -static const int D_B_INSTANCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBInstanceNotFound"); -static const int D_B_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = HashingUtils::HashString("DBSubnetGroupDoesNotCoverEnoughAZs"); -static const int D_B_UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = HashingUtils::HashString("DBUpgradeDependencyFailure"); -static const int INVALID_D_B_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSnapshotState"); -static const int SHARED_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SharedSnapshotQuotaExceeded"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int D_B_CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterParameterGroupNotFound"); -static const int D_B_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBParameterGroupQuotaExceeded"); -static const int INVALID_EVENT_SUBSCRIPTION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidEventSubscriptionState"); -static const int INSUFFICIENT_STORAGE_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientStorageClusterCapacity"); -static const int D_B_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupNotFoundFault"); -static const int D_B_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSnapshotAlreadyExists"); -static const int SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotQuotaExceeded"); -static const int SUBNET_ALREADY_IN_USE_HASH = HashingUtils::HashString("SubnetAlreadyInUse"); -static const int D_B_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupAlreadyExists"); -static const int EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EventSubscriptionQuotaExceeded"); -static const int D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBInstanceAlreadyExists"); -static const int INVALID_D_B_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBParameterGroupState"); -static const int D_B_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSecurityGroupNotFound"); -static const int INVALID_D_B_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterSnapshotStateFault"); -static const int GLOBAL_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("GlobalClusterNotFoundFault"); -static const int D_B_CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterSnapshotAlreadyExistsFault"); -static const int INVALID_D_B_SECURITY_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSecurityGroupState"); -static const int STORAGE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("StorageQuotaExceeded"); -static const int INVALID_D_B_INSTANCE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBInstanceState"); -static const int D_B_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBSubnetQuotaExceededFault"); -static const int D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterSnapshotNotFoundFault"); -static const int D_B_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterAlreadyExistsFault"); -static const int GLOBAL_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("GlobalClusterQuotaExceededFault"); -static const int RESOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ResourceNotFoundFault"); -static const int INSUFFICIENT_D_B_INSTANCE_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientDBInstanceCapacity"); -static const int D_B_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBParameterGroupNotFound"); -static const int INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("InstanceQuotaExceeded"); -static const int GLOBAL_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("GlobalClusterAlreadyExistsFault"); -static const int INVALID_D_B_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterStateFault"); -static const int SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = HashingUtils::HashString("SubscriptionAlreadyExist"); -static const int D_B_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSnapshotNotFound"); -static const int K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = HashingUtils::HashString("KMSKeyNotAccessibleFault"); -static const int CERTIFICATE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CertificateNotFound"); -static const int D_B_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBParameterGroupAlreadyExists"); -static const int S_N_S_NO_AUTHORIZATION_FAULT_HASH = HashingUtils::HashString("SNSNoAuthorization"); -static const int INVALID_RESTORE_FAULT_HASH = HashingUtils::HashString("InvalidRestoreFault"); -static const int STORAGE_TYPE_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("StorageTypeNotSupported"); -static const int S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SNSTopicArnNotFound"); -static const int S_N_S_INVALID_TOPIC_FAULT_HASH = HashingUtils::HashString("SNSInvalidTopic"); -static const int INVALID_D_B_SUBNET_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetStateFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int AUTHORIZATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("AuthorizationNotFound"); -static const int D_B_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterQuotaExceededFault"); -static const int INSUFFICIENT_D_B_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientDBClusterCapacityFault"); -static const int SOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SourceNotFound"); -static const int INVALID_GLOBAL_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidGlobalClusterStateFault"); +static constexpr uint32_t SUBSCRIPTION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionNotFound"); +static constexpr uint32_t D_B_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterNotFoundFault"); +static constexpr uint32_t SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionCategoryNotFound"); +static constexpr uint32_t INVALID_D_B_SUBNET_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetGroupStateFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupQuotaExceeded"); +static constexpr uint32_t D_B_INSTANCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceNotFound"); +static constexpr uint32_t D_B_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupDoesNotCoverEnoughAZs"); +static constexpr uint32_t D_B_UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = ConstExprHashingUtils::HashString("DBUpgradeDependencyFailure"); +static constexpr uint32_t INVALID_D_B_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSnapshotState"); +static constexpr uint32_t SHARED_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SharedSnapshotQuotaExceeded"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t D_B_CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterParameterGroupNotFound"); +static constexpr uint32_t D_B_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupQuotaExceeded"); +static constexpr uint32_t INVALID_EVENT_SUBSCRIPTION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidEventSubscriptionState"); +static constexpr uint32_t INSUFFICIENT_STORAGE_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientStorageClusterCapacity"); +static constexpr uint32_t D_B_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupNotFoundFault"); +static constexpr uint32_t D_B_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSnapshotAlreadyExists"); +static constexpr uint32_t SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotQuotaExceeded"); +static constexpr uint32_t SUBNET_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetAlreadyInUse"); +static constexpr uint32_t D_B_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupAlreadyExists"); +static constexpr uint32_t EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EventSubscriptionQuotaExceeded"); +static constexpr uint32_t D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceAlreadyExists"); +static constexpr uint32_t INVALID_D_B_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBParameterGroupState"); +static constexpr uint32_t D_B_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSecurityGroupNotFound"); +static constexpr uint32_t INVALID_D_B_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterSnapshotStateFault"); +static constexpr uint32_t GLOBAL_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterSnapshotAlreadyExistsFault"); +static constexpr uint32_t INVALID_D_B_SECURITY_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSecurityGroupState"); +static constexpr uint32_t STORAGE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageQuotaExceeded"); +static constexpr uint32_t INVALID_D_B_INSTANCE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBInstanceState"); +static constexpr uint32_t D_B_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetQuotaExceededFault"); +static constexpr uint32_t D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterSnapshotNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterAlreadyExistsFault"); +static constexpr uint32_t GLOBAL_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterQuotaExceededFault"); +static constexpr uint32_t RESOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundFault"); +static constexpr uint32_t INSUFFICIENT_D_B_INSTANCE_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientDBInstanceCapacity"); +static constexpr uint32_t D_B_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupNotFound"); +static constexpr uint32_t INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("InstanceQuotaExceeded"); +static constexpr uint32_t GLOBAL_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterAlreadyExistsFault"); +static constexpr uint32_t INVALID_D_B_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterStateFault"); +static constexpr uint32_t SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionAlreadyExist"); +static constexpr uint32_t D_B_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSnapshotNotFound"); +static constexpr uint32_t K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = ConstExprHashingUtils::HashString("KMSKeyNotAccessibleFault"); +static constexpr uint32_t CERTIFICATE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CertificateNotFound"); +static constexpr uint32_t D_B_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupAlreadyExists"); +static constexpr uint32_t S_N_S_NO_AUTHORIZATION_FAULT_HASH = ConstExprHashingUtils::HashString("SNSNoAuthorization"); +static constexpr uint32_t INVALID_RESTORE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidRestoreFault"); +static constexpr uint32_t STORAGE_TYPE_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageTypeNotSupported"); +static constexpr uint32_t S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SNSTopicArnNotFound"); +static constexpr uint32_t S_N_S_INVALID_TOPIC_FAULT_HASH = ConstExprHashingUtils::HashString("SNSInvalidTopic"); +static constexpr uint32_t INVALID_D_B_SUBNET_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetStateFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t AUTHORIZATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationNotFound"); +static constexpr uint32_t D_B_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterQuotaExceededFault"); +static constexpr uint32_t INSUFFICIENT_D_B_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientDBClusterCapacityFault"); +static constexpr uint32_t SOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SourceNotFound"); +static constexpr uint32_t INVALID_GLOBAL_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidGlobalClusterStateFault"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SUBSCRIPTION_NOT_FOUND_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-docdb/source/model/ApplyMethod.cpp b/generated/src/aws-cpp-sdk-docdb/source/model/ApplyMethod.cpp index 36bc275f5d9..778ff6d9884 100644 --- a/generated/src/aws-cpp-sdk-docdb/source/model/ApplyMethod.cpp +++ b/generated/src/aws-cpp-sdk-docdb/source/model/ApplyMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplyMethodMapper { - static const int immediate_HASH = HashingUtils::HashString("immediate"); - static const int pending_reboot_HASH = HashingUtils::HashString("pending-reboot"); + static constexpr uint32_t immediate_HASH = ConstExprHashingUtils::HashString("immediate"); + static constexpr uint32_t pending_reboot_HASH = ConstExprHashingUtils::HashString("pending-reboot"); ApplyMethod GetApplyMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == immediate_HASH) { return ApplyMethod::immediate; diff --git a/generated/src/aws-cpp-sdk-docdb/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-docdb/source/model/SourceType.cpp index bce0f6408f6..e1d7f701ff6 100644 --- a/generated/src/aws-cpp-sdk-docdb/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-docdb/source/model/SourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SourceTypeMapper { - static const int db_instance_HASH = HashingUtils::HashString("db-instance"); - static const int db_parameter_group_HASH = HashingUtils::HashString("db-parameter-group"); - static const int db_security_group_HASH = HashingUtils::HashString("db-security-group"); - static const int db_snapshot_HASH = HashingUtils::HashString("db-snapshot"); - static const int db_cluster_HASH = HashingUtils::HashString("db-cluster"); - static const int db_cluster_snapshot_HASH = HashingUtils::HashString("db-cluster-snapshot"); + static constexpr uint32_t db_instance_HASH = ConstExprHashingUtils::HashString("db-instance"); + static constexpr uint32_t db_parameter_group_HASH = ConstExprHashingUtils::HashString("db-parameter-group"); + static constexpr uint32_t db_security_group_HASH = ConstExprHashingUtils::HashString("db-security-group"); + static constexpr uint32_t db_snapshot_HASH = ConstExprHashingUtils::HashString("db-snapshot"); + static constexpr uint32_t db_cluster_HASH = ConstExprHashingUtils::HashString("db-cluster"); + static constexpr uint32_t db_cluster_snapshot_HASH = ConstExprHashingUtils::HashString("db-cluster-snapshot"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == db_instance_HASH) { return SourceType::db_instance; diff --git a/generated/src/aws-cpp-sdk-drs/source/DrsErrors.cpp b/generated/src/aws-cpp-sdk-drs/source/DrsErrors.cpp index 1ebcc31753c..020b98c5250 100644 --- a/generated/src/aws-cpp-sdk-drs/source/DrsErrors.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/DrsErrors.cpp @@ -75,15 +75,15 @@ template<> AWS_DRS_API AccessDeniedException DrsError::GetModeledError() namespace DrsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int UNINITIALIZED_ACCOUNT_HASH = HashingUtils::HashString("UninitializedAccountException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t UNINITIALIZED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("UninitializedAccountException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationErrorString.cpp b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationErrorString.cpp index 76906d9a320..32684150fa1 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationErrorString.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationErrorString.cpp @@ -20,25 +20,25 @@ namespace Aws namespace DataReplicationErrorStringMapper { - static const int AGENT_NOT_SEEN_HASH = HashingUtils::HashString("AGENT_NOT_SEEN"); - static const int SNAPSHOTS_FAILURE_HASH = HashingUtils::HashString("SNAPSHOTS_FAILURE"); - static const int NOT_CONVERGING_HASH = HashingUtils::HashString("NOT_CONVERGING"); - static const int UNSTABLE_NETWORK_HASH = HashingUtils::HashString("UNSTABLE_NETWORK"); - static const int FAILED_TO_CREATE_SECURITY_GROUP_HASH = HashingUtils::HashString("FAILED_TO_CREATE_SECURITY_GROUP"); - static const int FAILED_TO_LAUNCH_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_LAUNCH_REPLICATION_SERVER"); - static const int FAILED_TO_BOOT_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_BOOT_REPLICATION_SERVER"); - static const int FAILED_TO_AUTHENTICATE_WITH_SERVICE_HASH = HashingUtils::HashString("FAILED_TO_AUTHENTICATE_WITH_SERVICE"); - static const int FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"); - static const int FAILED_TO_CREATE_STAGING_DISKS_HASH = HashingUtils::HashString("FAILED_TO_CREATE_STAGING_DISKS"); - static const int FAILED_TO_ATTACH_STAGING_DISKS_HASH = HashingUtils::HashString("FAILED_TO_ATTACH_STAGING_DISKS"); - static const int FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = HashingUtils::HashString("FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"); - static const int FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"); - static const int FAILED_TO_START_DATA_TRANSFER_HASH = HashingUtils::HashString("FAILED_TO_START_DATA_TRANSFER"); + static constexpr uint32_t AGENT_NOT_SEEN_HASH = ConstExprHashingUtils::HashString("AGENT_NOT_SEEN"); + static constexpr uint32_t SNAPSHOTS_FAILURE_HASH = ConstExprHashingUtils::HashString("SNAPSHOTS_FAILURE"); + static constexpr uint32_t NOT_CONVERGING_HASH = ConstExprHashingUtils::HashString("NOT_CONVERGING"); + static constexpr uint32_t UNSTABLE_NETWORK_HASH = ConstExprHashingUtils::HashString("UNSTABLE_NETWORK"); + static constexpr uint32_t FAILED_TO_CREATE_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE_SECURITY_GROUP"); + static constexpr uint32_t FAILED_TO_LAUNCH_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_LAUNCH_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_BOOT_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_BOOT_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_AUTHENTICATE_WITH_SERVICE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_AUTHENTICATE_WITH_SERVICE"); + static constexpr uint32_t FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"); + static constexpr uint32_t FAILED_TO_CREATE_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE_STAGING_DISKS"); + static constexpr uint32_t FAILED_TO_ATTACH_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("FAILED_TO_ATTACH_STAGING_DISKS"); + static constexpr uint32_t FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = ConstExprHashingUtils::HashString("FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"); + static constexpr uint32_t FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_START_DATA_TRANSFER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_START_DATA_TRANSFER"); DataReplicationErrorString GetDataReplicationErrorStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_NOT_SEEN_HASH) { return DataReplicationErrorString::AGENT_NOT_SEEN; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepName.cpp b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepName.cpp index 03ceb47bd0a..4db47c95a53 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepName.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepName.cpp @@ -20,22 +20,22 @@ namespace Aws namespace DataReplicationInitiationStepNameMapper { - static const int WAIT_HASH = HashingUtils::HashString("WAIT"); - static const int CREATE_SECURITY_GROUP_HASH = HashingUtils::HashString("CREATE_SECURITY_GROUP"); - static const int LAUNCH_REPLICATION_SERVER_HASH = HashingUtils::HashString("LAUNCH_REPLICATION_SERVER"); - static const int BOOT_REPLICATION_SERVER_HASH = HashingUtils::HashString("BOOT_REPLICATION_SERVER"); - static const int AUTHENTICATE_WITH_SERVICE_HASH = HashingUtils::HashString("AUTHENTICATE_WITH_SERVICE"); - static const int DOWNLOAD_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE"); - static const int CREATE_STAGING_DISKS_HASH = HashingUtils::HashString("CREATE_STAGING_DISKS"); - static const int ATTACH_STAGING_DISKS_HASH = HashingUtils::HashString("ATTACH_STAGING_DISKS"); - static const int PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = HashingUtils::HashString("PAIR_REPLICATION_SERVER_WITH_AGENT"); - static const int CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = HashingUtils::HashString("CONNECT_AGENT_TO_REPLICATION_SERVER"); - static const int START_DATA_TRANSFER_HASH = HashingUtils::HashString("START_DATA_TRANSFER"); + static constexpr uint32_t WAIT_HASH = ConstExprHashingUtils::HashString("WAIT"); + static constexpr uint32_t CREATE_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("CREATE_SECURITY_GROUP"); + static constexpr uint32_t LAUNCH_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("LAUNCH_REPLICATION_SERVER"); + static constexpr uint32_t BOOT_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("BOOT_REPLICATION_SERVER"); + static constexpr uint32_t AUTHENTICATE_WITH_SERVICE_HASH = ConstExprHashingUtils::HashString("AUTHENTICATE_WITH_SERVICE"); + static constexpr uint32_t DOWNLOAD_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE"); + static constexpr uint32_t CREATE_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("CREATE_STAGING_DISKS"); + static constexpr uint32_t ATTACH_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("ATTACH_STAGING_DISKS"); + static constexpr uint32_t PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = ConstExprHashingUtils::HashString("PAIR_REPLICATION_SERVER_WITH_AGENT"); + static constexpr uint32_t CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("CONNECT_AGENT_TO_REPLICATION_SERVER"); + static constexpr uint32_t START_DATA_TRANSFER_HASH = ConstExprHashingUtils::HashString("START_DATA_TRANSFER"); DataReplicationInitiationStepName GetDataReplicationInitiationStepNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAIT_HASH) { return DataReplicationInitiationStepName::WAIT; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepStatus.cpp index e2f644e037a..39a08bd05ff 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationInitiationStepStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataReplicationInitiationStepStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); DataReplicationInitiationStepStatus GetDataReplicationInitiationStepStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return DataReplicationInitiationStepStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationState.cpp b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationState.cpp index 675e2068d75..ffded60b8e9 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationState.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/DataReplicationState.cpp @@ -20,21 +20,21 @@ namespace Aws namespace DataReplicationStateMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int INITIATING_HASH = HashingUtils::HashString("INITIATING"); - static const int INITIAL_SYNC_HASH = HashingUtils::HashString("INITIAL_SYNC"); - static const int BACKLOG_HASH = HashingUtils::HashString("BACKLOG"); - static const int CREATING_SNAPSHOT_HASH = HashingUtils::HashString("CREATING_SNAPSHOT"); - static const int CONTINUOUS_HASH = HashingUtils::HashString("CONTINUOUS"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int RESCAN_HASH = HashingUtils::HashString("RESCAN"); - static const int STALLED_HASH = HashingUtils::HashString("STALLED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t INITIATING_HASH = ConstExprHashingUtils::HashString("INITIATING"); + static constexpr uint32_t INITIAL_SYNC_HASH = ConstExprHashingUtils::HashString("INITIAL_SYNC"); + static constexpr uint32_t BACKLOG_HASH = ConstExprHashingUtils::HashString("BACKLOG"); + static constexpr uint32_t CREATING_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("CREATING_SNAPSHOT"); + static constexpr uint32_t CONTINUOUS_HASH = ConstExprHashingUtils::HashString("CONTINUOUS"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t RESCAN_HASH = ConstExprHashingUtils::HashString("RESCAN"); + static constexpr uint32_t STALLED_HASH = ConstExprHashingUtils::HashString("STALLED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); DataReplicationState GetDataReplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return DataReplicationState::STOPPED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/EC2InstanceState.cpp b/generated/src/aws-cpp-sdk-drs/source/model/EC2InstanceState.cpp index 3cbf324d0ff..9910bf8b1ad 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/EC2InstanceState.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/EC2InstanceState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace EC2InstanceStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int SHUTTING_DOWN_HASH = HashingUtils::HashString("SHUTTING-DOWN"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t SHUTTING_DOWN_HASH = ConstExprHashingUtils::HashString("SHUTTING-DOWN"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); EC2InstanceState GetEC2InstanceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return EC2InstanceState::PENDING; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ExtensionStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ExtensionStatus.cpp index 9cc71cdae23..7d6f0df41a6 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ExtensionStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ExtensionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExtensionStatusMapper { - static const int EXTENDED_HASH = HashingUtils::HashString("EXTENDED"); - static const int EXTENSION_ERROR_HASH = HashingUtils::HashString("EXTENSION_ERROR"); - static const int NOT_EXTENDED_HASH = HashingUtils::HashString("NOT_EXTENDED"); + static constexpr uint32_t EXTENDED_HASH = ConstExprHashingUtils::HashString("EXTENDED"); + static constexpr uint32_t EXTENSION_ERROR_HASH = ConstExprHashingUtils::HashString("EXTENSION_ERROR"); + static constexpr uint32_t NOT_EXTENDED_HASH = ConstExprHashingUtils::HashString("NOT_EXTENDED"); ExtensionStatus GetExtensionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTENDED_HASH) { return ExtensionStatus::EXTENDED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/FailbackLaunchType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/FailbackLaunchType.cpp index fb969c1e508..6aa1c39b6ba 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/FailbackLaunchType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/FailbackLaunchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailbackLaunchTypeMapper { - static const int RECOVERY_HASH = HashingUtils::HashString("RECOVERY"); - static const int DRILL_HASH = HashingUtils::HashString("DRILL"); + static constexpr uint32_t RECOVERY_HASH = ConstExprHashingUtils::HashString("RECOVERY"); + static constexpr uint32_t DRILL_HASH = ConstExprHashingUtils::HashString("DRILL"); FailbackLaunchType GetFailbackLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECOVERY_HASH) { return FailbackLaunchType::RECOVERY; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/FailbackReplicationError.cpp b/generated/src/aws-cpp-sdk-drs/source/model/FailbackReplicationError.cpp index 528a98d5305..24eed794824 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/FailbackReplicationError.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/FailbackReplicationError.cpp @@ -20,32 +20,32 @@ namespace Aws namespace FailbackReplicationErrorMapper { - static const int AGENT_NOT_SEEN_HASH = HashingUtils::HashString("AGENT_NOT_SEEN"); - static const int FAILBACK_CLIENT_NOT_SEEN_HASH = HashingUtils::HashString("FAILBACK_CLIENT_NOT_SEEN"); - static const int NOT_CONVERGING_HASH = HashingUtils::HashString("NOT_CONVERGING"); - static const int UNSTABLE_NETWORK_HASH = HashingUtils::HashString("UNSTABLE_NETWORK"); - static const int FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION_HASH = HashingUtils::HashString("FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION"); - static const int FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT_HASH = HashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT"); - static const int FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE"); - static const int FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE"); - static const int FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION_HASH = HashingUtils::HashString("FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION"); - static const int FAILED_GETTING_REPLICATION_STATE_HASH = HashingUtils::HashString("FAILED_GETTING_REPLICATION_STATE"); - static const int SNAPSHOTS_FAILURE_HASH = HashingUtils::HashString("SNAPSHOTS_FAILURE"); - static const int FAILED_TO_CREATE_SECURITY_GROUP_HASH = HashingUtils::HashString("FAILED_TO_CREATE_SECURITY_GROUP"); - static const int FAILED_TO_LAUNCH_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_LAUNCH_REPLICATION_SERVER"); - static const int FAILED_TO_BOOT_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_BOOT_REPLICATION_SERVER"); - static const int FAILED_TO_AUTHENTICATE_WITH_SERVICE_HASH = HashingUtils::HashString("FAILED_TO_AUTHENTICATE_WITH_SERVICE"); - static const int FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"); - static const int FAILED_TO_CREATE_STAGING_DISKS_HASH = HashingUtils::HashString("FAILED_TO_CREATE_STAGING_DISKS"); - static const int FAILED_TO_ATTACH_STAGING_DISKS_HASH = HashingUtils::HashString("FAILED_TO_ATTACH_STAGING_DISKS"); - static const int FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = HashingUtils::HashString("FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"); - static const int FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"); - static const int FAILED_TO_START_DATA_TRANSFER_HASH = HashingUtils::HashString("FAILED_TO_START_DATA_TRANSFER"); + static constexpr uint32_t AGENT_NOT_SEEN_HASH = ConstExprHashingUtils::HashString("AGENT_NOT_SEEN"); + static constexpr uint32_t FAILBACK_CLIENT_NOT_SEEN_HASH = ConstExprHashingUtils::HashString("FAILBACK_CLIENT_NOT_SEEN"); + static constexpr uint32_t NOT_CONVERGING_HASH = ConstExprHashingUtils::HashString("NOT_CONVERGING"); + static constexpr uint32_t UNSTABLE_NETWORK_HASH = ConstExprHashingUtils::HashString("UNSTABLE_NETWORK"); + static constexpr uint32_t FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION_HASH = ConstExprHashingUtils::HashString("FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION"); + static constexpr uint32_t FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT_HASH = ConstExprHashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT"); + static constexpr uint32_t FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE"); + static constexpr uint32_t FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE"); + static constexpr uint32_t FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION_HASH = ConstExprHashingUtils::HashString("FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION"); + static constexpr uint32_t FAILED_GETTING_REPLICATION_STATE_HASH = ConstExprHashingUtils::HashString("FAILED_GETTING_REPLICATION_STATE"); + static constexpr uint32_t SNAPSHOTS_FAILURE_HASH = ConstExprHashingUtils::HashString("SNAPSHOTS_FAILURE"); + static constexpr uint32_t FAILED_TO_CREATE_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE_SECURITY_GROUP"); + static constexpr uint32_t FAILED_TO_LAUNCH_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_LAUNCH_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_BOOT_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_BOOT_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_AUTHENTICATE_WITH_SERVICE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_AUTHENTICATE_WITH_SERVICE"); + static constexpr uint32_t FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"); + static constexpr uint32_t FAILED_TO_CREATE_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE_STAGING_DISKS"); + static constexpr uint32_t FAILED_TO_ATTACH_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("FAILED_TO_ATTACH_STAGING_DISKS"); + static constexpr uint32_t FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = ConstExprHashingUtils::HashString("FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"); + static constexpr uint32_t FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_START_DATA_TRANSFER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_START_DATA_TRANSFER"); FailbackReplicationError GetFailbackReplicationErrorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_NOT_SEEN_HASH) { return FailbackReplicationError::AGENT_NOT_SEEN; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/FailbackState.cpp b/generated/src/aws-cpp-sdk-drs/source/model/FailbackState.cpp index 82af34db6e3..0177cb45ff8 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/FailbackState.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/FailbackState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FailbackStateMapper { - static const int FAILBACK_NOT_STARTED_HASH = HashingUtils::HashString("FAILBACK_NOT_STARTED"); - static const int FAILBACK_IN_PROGRESS_HASH = HashingUtils::HashString("FAILBACK_IN_PROGRESS"); - static const int FAILBACK_READY_FOR_LAUNCH_HASH = HashingUtils::HashString("FAILBACK_READY_FOR_LAUNCH"); - static const int FAILBACK_COMPLETED_HASH = HashingUtils::HashString("FAILBACK_COMPLETED"); - static const int FAILBACK_ERROR_HASH = HashingUtils::HashString("FAILBACK_ERROR"); - static const int FAILBACK_NOT_READY_FOR_LAUNCH_HASH = HashingUtils::HashString("FAILBACK_NOT_READY_FOR_LAUNCH"); - static const int FAILBACK_LAUNCH_STATE_NOT_AVAILABLE_HASH = HashingUtils::HashString("FAILBACK_LAUNCH_STATE_NOT_AVAILABLE"); + static constexpr uint32_t FAILBACK_NOT_STARTED_HASH = ConstExprHashingUtils::HashString("FAILBACK_NOT_STARTED"); + static constexpr uint32_t FAILBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("FAILBACK_IN_PROGRESS"); + static constexpr uint32_t FAILBACK_READY_FOR_LAUNCH_HASH = ConstExprHashingUtils::HashString("FAILBACK_READY_FOR_LAUNCH"); + static constexpr uint32_t FAILBACK_COMPLETED_HASH = ConstExprHashingUtils::HashString("FAILBACK_COMPLETED"); + static constexpr uint32_t FAILBACK_ERROR_HASH = ConstExprHashingUtils::HashString("FAILBACK_ERROR"); + static constexpr uint32_t FAILBACK_NOT_READY_FOR_LAUNCH_HASH = ConstExprHashingUtils::HashString("FAILBACK_NOT_READY_FOR_LAUNCH"); + static constexpr uint32_t FAILBACK_LAUNCH_STATE_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("FAILBACK_LAUNCH_STATE_NOT_AVAILABLE"); FailbackState GetFailbackStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILBACK_NOT_STARTED_HASH) { return FailbackState::FAILBACK_NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/InitiatedBy.cpp b/generated/src/aws-cpp-sdk-drs/source/model/InitiatedBy.cpp index 99d81d27c53..d2017eb5d80 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/InitiatedBy.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/InitiatedBy.cpp @@ -20,20 +20,20 @@ namespace Aws namespace InitiatedByMapper { - static const int START_RECOVERY_HASH = HashingUtils::HashString("START_RECOVERY"); - static const int START_DRILL_HASH = HashingUtils::HashString("START_DRILL"); - static const int FAILBACK_HASH = HashingUtils::HashString("FAILBACK"); - static const int DIAGNOSTIC_HASH = HashingUtils::HashString("DIAGNOSTIC"); - static const int TERMINATE_RECOVERY_INSTANCES_HASH = HashingUtils::HashString("TERMINATE_RECOVERY_INSTANCES"); - static const int TARGET_ACCOUNT_HASH = HashingUtils::HashString("TARGET_ACCOUNT"); - static const int CREATE_NETWORK_RECOVERY_HASH = HashingUtils::HashString("CREATE_NETWORK_RECOVERY"); - static const int UPDATE_NETWORK_RECOVERY_HASH = HashingUtils::HashString("UPDATE_NETWORK_RECOVERY"); - static const int ASSOCIATE_NETWORK_RECOVERY_HASH = HashingUtils::HashString("ASSOCIATE_NETWORK_RECOVERY"); + static constexpr uint32_t START_RECOVERY_HASH = ConstExprHashingUtils::HashString("START_RECOVERY"); + static constexpr uint32_t START_DRILL_HASH = ConstExprHashingUtils::HashString("START_DRILL"); + static constexpr uint32_t FAILBACK_HASH = ConstExprHashingUtils::HashString("FAILBACK"); + static constexpr uint32_t DIAGNOSTIC_HASH = ConstExprHashingUtils::HashString("DIAGNOSTIC"); + static constexpr uint32_t TERMINATE_RECOVERY_INSTANCES_HASH = ConstExprHashingUtils::HashString("TERMINATE_RECOVERY_INSTANCES"); + static constexpr uint32_t TARGET_ACCOUNT_HASH = ConstExprHashingUtils::HashString("TARGET_ACCOUNT"); + static constexpr uint32_t CREATE_NETWORK_RECOVERY_HASH = ConstExprHashingUtils::HashString("CREATE_NETWORK_RECOVERY"); + static constexpr uint32_t UPDATE_NETWORK_RECOVERY_HASH = ConstExprHashingUtils::HashString("UPDATE_NETWORK_RECOVERY"); + static constexpr uint32_t ASSOCIATE_NETWORK_RECOVERY_HASH = ConstExprHashingUtils::HashString("ASSOCIATE_NETWORK_RECOVERY"); InitiatedBy GetInitiatedByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_RECOVERY_HASH) { return InitiatedBy::START_RECOVERY; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/JobLogEvent.cpp b/generated/src/aws-cpp-sdk-drs/source/model/JobLogEvent.cpp index 1e4cd880c49..64de34f1273 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/JobLogEvent.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/JobLogEvent.cpp @@ -20,38 +20,38 @@ namespace Aws namespace JobLogEventMapper { - static const int JOB_START_HASH = HashingUtils::HashString("JOB_START"); - static const int SERVER_SKIPPED_HASH = HashingUtils::HashString("SERVER_SKIPPED"); - static const int CLEANUP_START_HASH = HashingUtils::HashString("CLEANUP_START"); - static const int CLEANUP_END_HASH = HashingUtils::HashString("CLEANUP_END"); - static const int CLEANUP_FAIL_HASH = HashingUtils::HashString("CLEANUP_FAIL"); - static const int SNAPSHOT_START_HASH = HashingUtils::HashString("SNAPSHOT_START"); - static const int SNAPSHOT_END_HASH = HashingUtils::HashString("SNAPSHOT_END"); - static const int SNAPSHOT_FAIL_HASH = HashingUtils::HashString("SNAPSHOT_FAIL"); - static const int USING_PREVIOUS_SNAPSHOT_HASH = HashingUtils::HashString("USING_PREVIOUS_SNAPSHOT"); - static const int USING_PREVIOUS_SNAPSHOT_FAILED_HASH = HashingUtils::HashString("USING_PREVIOUS_SNAPSHOT_FAILED"); - static const int CONVERSION_START_HASH = HashingUtils::HashString("CONVERSION_START"); - static const int CONVERSION_END_HASH = HashingUtils::HashString("CONVERSION_END"); - static const int CONVERSION_FAIL_HASH = HashingUtils::HashString("CONVERSION_FAIL"); - static const int LAUNCH_START_HASH = HashingUtils::HashString("LAUNCH_START"); - static const int LAUNCH_FAILED_HASH = HashingUtils::HashString("LAUNCH_FAILED"); - static const int JOB_CANCEL_HASH = HashingUtils::HashString("JOB_CANCEL"); - static const int JOB_END_HASH = HashingUtils::HashString("JOB_END"); - static const int DEPLOY_NETWORK_CONFIGURATION_START_HASH = HashingUtils::HashString("DEPLOY_NETWORK_CONFIGURATION_START"); - static const int DEPLOY_NETWORK_CONFIGURATION_END_HASH = HashingUtils::HashString("DEPLOY_NETWORK_CONFIGURATION_END"); - static const int DEPLOY_NETWORK_CONFIGURATION_FAILED_HASH = HashingUtils::HashString("DEPLOY_NETWORK_CONFIGURATION_FAILED"); - static const int UPDATE_NETWORK_CONFIGURATION_START_HASH = HashingUtils::HashString("UPDATE_NETWORK_CONFIGURATION_START"); - static const int UPDATE_NETWORK_CONFIGURATION_END_HASH = HashingUtils::HashString("UPDATE_NETWORK_CONFIGURATION_END"); - static const int UPDATE_NETWORK_CONFIGURATION_FAILED_HASH = HashingUtils::HashString("UPDATE_NETWORK_CONFIGURATION_FAILED"); - static const int UPDATE_LAUNCH_TEMPLATE_START_HASH = HashingUtils::HashString("UPDATE_LAUNCH_TEMPLATE_START"); - static const int UPDATE_LAUNCH_TEMPLATE_END_HASH = HashingUtils::HashString("UPDATE_LAUNCH_TEMPLATE_END"); - static const int UPDATE_LAUNCH_TEMPLATE_FAILED_HASH = HashingUtils::HashString("UPDATE_LAUNCH_TEMPLATE_FAILED"); - static const int NETWORK_RECOVERY_FAIL_HASH = HashingUtils::HashString("NETWORK_RECOVERY_FAIL"); + static constexpr uint32_t JOB_START_HASH = ConstExprHashingUtils::HashString("JOB_START"); + static constexpr uint32_t SERVER_SKIPPED_HASH = ConstExprHashingUtils::HashString("SERVER_SKIPPED"); + static constexpr uint32_t CLEANUP_START_HASH = ConstExprHashingUtils::HashString("CLEANUP_START"); + static constexpr uint32_t CLEANUP_END_HASH = ConstExprHashingUtils::HashString("CLEANUP_END"); + static constexpr uint32_t CLEANUP_FAIL_HASH = ConstExprHashingUtils::HashString("CLEANUP_FAIL"); + static constexpr uint32_t SNAPSHOT_START_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_START"); + static constexpr uint32_t SNAPSHOT_END_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_END"); + static constexpr uint32_t SNAPSHOT_FAIL_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_FAIL"); + static constexpr uint32_t USING_PREVIOUS_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("USING_PREVIOUS_SNAPSHOT"); + static constexpr uint32_t USING_PREVIOUS_SNAPSHOT_FAILED_HASH = ConstExprHashingUtils::HashString("USING_PREVIOUS_SNAPSHOT_FAILED"); + static constexpr uint32_t CONVERSION_START_HASH = ConstExprHashingUtils::HashString("CONVERSION_START"); + static constexpr uint32_t CONVERSION_END_HASH = ConstExprHashingUtils::HashString("CONVERSION_END"); + static constexpr uint32_t CONVERSION_FAIL_HASH = ConstExprHashingUtils::HashString("CONVERSION_FAIL"); + static constexpr uint32_t LAUNCH_START_HASH = ConstExprHashingUtils::HashString("LAUNCH_START"); + static constexpr uint32_t LAUNCH_FAILED_HASH = ConstExprHashingUtils::HashString("LAUNCH_FAILED"); + static constexpr uint32_t JOB_CANCEL_HASH = ConstExprHashingUtils::HashString("JOB_CANCEL"); + static constexpr uint32_t JOB_END_HASH = ConstExprHashingUtils::HashString("JOB_END"); + static constexpr uint32_t DEPLOY_NETWORK_CONFIGURATION_START_HASH = ConstExprHashingUtils::HashString("DEPLOY_NETWORK_CONFIGURATION_START"); + static constexpr uint32_t DEPLOY_NETWORK_CONFIGURATION_END_HASH = ConstExprHashingUtils::HashString("DEPLOY_NETWORK_CONFIGURATION_END"); + static constexpr uint32_t DEPLOY_NETWORK_CONFIGURATION_FAILED_HASH = ConstExprHashingUtils::HashString("DEPLOY_NETWORK_CONFIGURATION_FAILED"); + static constexpr uint32_t UPDATE_NETWORK_CONFIGURATION_START_HASH = ConstExprHashingUtils::HashString("UPDATE_NETWORK_CONFIGURATION_START"); + static constexpr uint32_t UPDATE_NETWORK_CONFIGURATION_END_HASH = ConstExprHashingUtils::HashString("UPDATE_NETWORK_CONFIGURATION_END"); + static constexpr uint32_t UPDATE_NETWORK_CONFIGURATION_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_NETWORK_CONFIGURATION_FAILED"); + static constexpr uint32_t UPDATE_LAUNCH_TEMPLATE_START_HASH = ConstExprHashingUtils::HashString("UPDATE_LAUNCH_TEMPLATE_START"); + static constexpr uint32_t UPDATE_LAUNCH_TEMPLATE_END_HASH = ConstExprHashingUtils::HashString("UPDATE_LAUNCH_TEMPLATE_END"); + static constexpr uint32_t UPDATE_LAUNCH_TEMPLATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_LAUNCH_TEMPLATE_FAILED"); + static constexpr uint32_t NETWORK_RECOVERY_FAIL_HASH = ConstExprHashingUtils::HashString("NETWORK_RECOVERY_FAIL"); JobLogEvent GetJobLogEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JOB_START_HASH) { return JobLogEvent::JOB_START; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/JobStatus.cpp index 333a6367d41..4b53b596cf9 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/JobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return JobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/JobType.cpp index c4c23cf6881..79b4d7da934 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/JobType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobTypeMapper { - static const int LAUNCH_HASH = HashingUtils::HashString("LAUNCH"); - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); - static const int CREATE_CONVERTED_SNAPSHOT_HASH = HashingUtils::HashString("CREATE_CONVERTED_SNAPSHOT"); + static constexpr uint32_t LAUNCH_HASH = ConstExprHashingUtils::HashString("LAUNCH"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); + static constexpr uint32_t CREATE_CONVERTED_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("CREATE_CONVERTED_SNAPSHOT"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAUNCH_HASH) { return JobType::LAUNCH; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchResult.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchResult.cpp index f3ccb471159..9bc0c764802 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchResult.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchResult.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LastLaunchResultMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LastLaunchResult GetLastLaunchResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return LastLaunchResult::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchType.cpp index 622e7530262..7e146523391 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LastLaunchType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LastLaunchTypeMapper { - static const int RECOVERY_HASH = HashingUtils::HashString("RECOVERY"); - static const int DRILL_HASH = HashingUtils::HashString("DRILL"); + static constexpr uint32_t RECOVERY_HASH = ConstExprHashingUtils::HashString("RECOVERY"); + static constexpr uint32_t DRILL_HASH = ConstExprHashingUtils::HashString("DRILL"); LastLaunchType GetLastLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECOVERY_HASH) { return LastLaunchType::RECOVERY; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionCategory.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionCategory.cpp index a18a493429f..d417b70a97b 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionCategory.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionCategory.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LaunchActionCategoryMapper { - static const int MONITORING_HASH = HashingUtils::HashString("MONITORING"); - static const int VALIDATION_HASH = HashingUtils::HashString("VALIDATION"); - static const int CONFIGURATION_HASH = HashingUtils::HashString("CONFIGURATION"); - static const int SECURITY_HASH = HashingUtils::HashString("SECURITY"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t MONITORING_HASH = ConstExprHashingUtils::HashString("MONITORING"); + static constexpr uint32_t VALIDATION_HASH = ConstExprHashingUtils::HashString("VALIDATION"); + static constexpr uint32_t CONFIGURATION_HASH = ConstExprHashingUtils::HashString("CONFIGURATION"); + static constexpr uint32_t SECURITY_HASH = ConstExprHashingUtils::HashString("SECURITY"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); LaunchActionCategory GetLaunchActionCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONITORING_HASH) { return LaunchActionCategory::MONITORING; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionParameterType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionParameterType.cpp index 2b508ed7b19..62f7cd650e3 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionParameterType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionParameterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchActionParameterTypeMapper { - static const int SSM_STORE_HASH = HashingUtils::HashString("SSM_STORE"); - static const int DYNAMIC_HASH = HashingUtils::HashString("DYNAMIC"); + static constexpr uint32_t SSM_STORE_HASH = ConstExprHashingUtils::HashString("SSM_STORE"); + static constexpr uint32_t DYNAMIC_HASH = ConstExprHashingUtils::HashString("DYNAMIC"); LaunchActionParameterType GetLaunchActionParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_STORE_HASH) { return LaunchActionParameterType::SSM_STORE; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionRunStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionRunStatus.cpp index 2114455e3af..c8163537a60 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionRunStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LaunchActionRunStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LaunchActionRunStatus GetLaunchActionRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return LaunchActionRunStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionType.cpp index f26794f8ac1..8a6b3a45af9 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LaunchActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchActionTypeMapper { - static const int SSM_AUTOMATION_HASH = HashingUtils::HashString("SSM_AUTOMATION"); - static const int SSM_COMMAND_HASH = HashingUtils::HashString("SSM_COMMAND"); + static constexpr uint32_t SSM_AUTOMATION_HASH = ConstExprHashingUtils::HashString("SSM_AUTOMATION"); + static constexpr uint32_t SSM_COMMAND_HASH = ConstExprHashingUtils::HashString("SSM_COMMAND"); LaunchActionType GetLaunchActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_AUTOMATION_HASH) { return LaunchActionType::SSM_AUTOMATION; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LaunchDisposition.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LaunchDisposition.cpp index 5dc9a82dd43..5609ebe780a 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LaunchDisposition.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LaunchDisposition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchDispositionMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); LaunchDisposition GetLaunchDispositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return LaunchDisposition::STOPPED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/LaunchStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/LaunchStatus.cpp index 24eea3a1269..cb7aec8c179 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/LaunchStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/LaunchStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LaunchStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int LAUNCHED_HASH = HashingUtils::HashString("LAUNCHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t LAUNCHED_HASH = ConstExprHashingUtils::HashString("LAUNCHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); LaunchStatus GetLaunchStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return LaunchStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/OriginEnvironment.cpp b/generated/src/aws-cpp-sdk-drs/source/model/OriginEnvironment.cpp index fa5086edfc3..7d0d9068058 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/OriginEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/OriginEnvironment.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginEnvironmentMapper { - static const int ON_PREMISES_HASH = HashingUtils::HashString("ON_PREMISES"); - static const int AWS_HASH = HashingUtils::HashString("AWS"); + static constexpr uint32_t ON_PREMISES_HASH = ConstExprHashingUtils::HashString("ON_PREMISES"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); OriginEnvironment GetOriginEnvironmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_PREMISES_HASH) { return OriginEnvironment::ON_PREMISES; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/PITPolicyRuleUnits.cpp b/generated/src/aws-cpp-sdk-drs/source/model/PITPolicyRuleUnits.cpp index c696e7e880b..812b94e6630 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/PITPolicyRuleUnits.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/PITPolicyRuleUnits.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PITPolicyRuleUnitsMapper { - static const int MINUTE_HASH = HashingUtils::HashString("MINUTE"); - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); + static constexpr uint32_t MINUTE_HASH = ConstExprHashingUtils::HashString("MINUTE"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); PITPolicyRuleUnits GetPITPolicyRuleUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MINUTE_HASH) { return PITPolicyRuleUnits::MINUTE; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepName.cpp b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepName.cpp index ff7e862fb71..afca9027608 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepName.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepName.cpp @@ -20,29 +20,29 @@ namespace Aws namespace RecoveryInstanceDataReplicationInitiationStepNameMapper { - static const int LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE_HASH = HashingUtils::HashString("LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE"); - static const int COMPLETE_VOLUME_MAPPING_HASH = HashingUtils::HashString("COMPLETE_VOLUME_MAPPING"); - static const int ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION_HASH = HashingUtils::HashString("ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION"); - static const int DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT_HASH = HashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT"); - static const int CONFIGURE_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("CONFIGURE_REPLICATION_SOFTWARE"); - static const int PAIR_AGENT_WITH_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("PAIR_AGENT_WITH_REPLICATION_SOFTWARE"); - static const int ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION_HASH = HashingUtils::HashString("ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION"); - static const int WAIT_HASH = HashingUtils::HashString("WAIT"); - static const int CREATE_SECURITY_GROUP_HASH = HashingUtils::HashString("CREATE_SECURITY_GROUP"); - static const int LAUNCH_REPLICATION_SERVER_HASH = HashingUtils::HashString("LAUNCH_REPLICATION_SERVER"); - static const int BOOT_REPLICATION_SERVER_HASH = HashingUtils::HashString("BOOT_REPLICATION_SERVER"); - static const int AUTHENTICATE_WITH_SERVICE_HASH = HashingUtils::HashString("AUTHENTICATE_WITH_SERVICE"); - static const int DOWNLOAD_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE"); - static const int CREATE_STAGING_DISKS_HASH = HashingUtils::HashString("CREATE_STAGING_DISKS"); - static const int ATTACH_STAGING_DISKS_HASH = HashingUtils::HashString("ATTACH_STAGING_DISKS"); - static const int PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = HashingUtils::HashString("PAIR_REPLICATION_SERVER_WITH_AGENT"); - static const int CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = HashingUtils::HashString("CONNECT_AGENT_TO_REPLICATION_SERVER"); - static const int START_DATA_TRANSFER_HASH = HashingUtils::HashString("START_DATA_TRANSFER"); + static constexpr uint32_t LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE_HASH = ConstExprHashingUtils::HashString("LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE"); + static constexpr uint32_t COMPLETE_VOLUME_MAPPING_HASH = ConstExprHashingUtils::HashString("COMPLETE_VOLUME_MAPPING"); + static constexpr uint32_t ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION_HASH = ConstExprHashingUtils::HashString("ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION"); + static constexpr uint32_t DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT_HASH = ConstExprHashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT"); + static constexpr uint32_t CONFIGURE_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("CONFIGURE_REPLICATION_SOFTWARE"); + static constexpr uint32_t PAIR_AGENT_WITH_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("PAIR_AGENT_WITH_REPLICATION_SOFTWARE"); + static constexpr uint32_t ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION_HASH = ConstExprHashingUtils::HashString("ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION"); + static constexpr uint32_t WAIT_HASH = ConstExprHashingUtils::HashString("WAIT"); + static constexpr uint32_t CREATE_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("CREATE_SECURITY_GROUP"); + static constexpr uint32_t LAUNCH_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("LAUNCH_REPLICATION_SERVER"); + static constexpr uint32_t BOOT_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("BOOT_REPLICATION_SERVER"); + static constexpr uint32_t AUTHENTICATE_WITH_SERVICE_HASH = ConstExprHashingUtils::HashString("AUTHENTICATE_WITH_SERVICE"); + static constexpr uint32_t DOWNLOAD_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE"); + static constexpr uint32_t CREATE_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("CREATE_STAGING_DISKS"); + static constexpr uint32_t ATTACH_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("ATTACH_STAGING_DISKS"); + static constexpr uint32_t PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = ConstExprHashingUtils::HashString("PAIR_REPLICATION_SERVER_WITH_AGENT"); + static constexpr uint32_t CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("CONNECT_AGENT_TO_REPLICATION_SERVER"); + static constexpr uint32_t START_DATA_TRANSFER_HASH = ConstExprHashingUtils::HashString("START_DATA_TRANSFER"); RecoveryInstanceDataReplicationInitiationStepName GetRecoveryInstanceDataReplicationInitiationStepNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE_HASH) { return RecoveryInstanceDataReplicationInitiationStepName::LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepStatus.cpp index 82e33aa8cce..9a385f22c74 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationInitiationStepStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RecoveryInstanceDataReplicationInitiationStepStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); RecoveryInstanceDataReplicationInitiationStepStatus GetRecoveryInstanceDataReplicationInitiationStepStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return RecoveryInstanceDataReplicationInitiationStepStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationState.cpp b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationState.cpp index 20924b540cd..633ae05bde7 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationState.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryInstanceDataReplicationState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace RecoveryInstanceDataReplicationStateMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int INITIATING_HASH = HashingUtils::HashString("INITIATING"); - static const int INITIAL_SYNC_HASH = HashingUtils::HashString("INITIAL_SYNC"); - static const int BACKLOG_HASH = HashingUtils::HashString("BACKLOG"); - static const int CREATING_SNAPSHOT_HASH = HashingUtils::HashString("CREATING_SNAPSHOT"); - static const int CONTINUOUS_HASH = HashingUtils::HashString("CONTINUOUS"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int RESCAN_HASH = HashingUtils::HashString("RESCAN"); - static const int STALLED_HASH = HashingUtils::HashString("STALLED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); - static const int REPLICATION_STATE_NOT_AVAILABLE_HASH = HashingUtils::HashString("REPLICATION_STATE_NOT_AVAILABLE"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t INITIATING_HASH = ConstExprHashingUtils::HashString("INITIATING"); + static constexpr uint32_t INITIAL_SYNC_HASH = ConstExprHashingUtils::HashString("INITIAL_SYNC"); + static constexpr uint32_t BACKLOG_HASH = ConstExprHashingUtils::HashString("BACKLOG"); + static constexpr uint32_t CREATING_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("CREATING_SNAPSHOT"); + static constexpr uint32_t CONTINUOUS_HASH = ConstExprHashingUtils::HashString("CONTINUOUS"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t RESCAN_HASH = ConstExprHashingUtils::HashString("RESCAN"); + static constexpr uint32_t STALLED_HASH = ConstExprHashingUtils::HashString("STALLED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t REPLICATION_STATE_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("REPLICATION_STATE_NOT_AVAILABLE"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); RecoveryInstanceDataReplicationState GetRecoveryInstanceDataReplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return RecoveryInstanceDataReplicationState::STOPPED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryResult.cpp b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryResult.cpp index 2f177079038..1d65d7ea24e 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/RecoveryResult.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/RecoveryResult.cpp @@ -20,18 +20,18 @@ namespace Aws namespace RecoveryResultMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int PARTIAL_SUCCESS_HASH = HashingUtils::HashString("PARTIAL_SUCCESS"); - static const int ASSOCIATE_SUCCESS_HASH = HashingUtils::HashString("ASSOCIATE_SUCCESS"); - static const int ASSOCIATE_FAIL_HASH = HashingUtils::HashString("ASSOCIATE_FAIL"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t PARTIAL_SUCCESS_HASH = ConstExprHashingUtils::HashString("PARTIAL_SUCCESS"); + static constexpr uint32_t ASSOCIATE_SUCCESS_HASH = ConstExprHashingUtils::HashString("ASSOCIATE_SUCCESS"); + static constexpr uint32_t ASSOCIATE_FAIL_HASH = ConstExprHashingUtils::HashString("ASSOCIATE_FAIL"); RecoveryResult GetRecoveryResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return RecoveryResult::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/RecoverySnapshotsOrder.cpp b/generated/src/aws-cpp-sdk-drs/source/model/RecoverySnapshotsOrder.cpp index 36afdab9385..8b8bbe3bdb3 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/RecoverySnapshotsOrder.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/RecoverySnapshotsOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecoverySnapshotsOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); RecoverySnapshotsOrder GetRecoverySnapshotsOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return RecoverySnapshotsOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDataPlaneRouting.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDataPlaneRouting.cpp index 4ed0fe28bf2..e4dcbd733e8 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDataPlaneRouting.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDataPlaneRouting.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationConfigurationDataPlaneRoutingMapper { - static const int PRIVATE_IP_HASH = HashingUtils::HashString("PRIVATE_IP"); - static const int PUBLIC_IP_HASH = HashingUtils::HashString("PUBLIC_IP"); + static constexpr uint32_t PRIVATE_IP_HASH = ConstExprHashingUtils::HashString("PRIVATE_IP"); + static constexpr uint32_t PUBLIC_IP_HASH = ConstExprHashingUtils::HashString("PUBLIC_IP"); ReplicationConfigurationDataPlaneRouting GetReplicationConfigurationDataPlaneRoutingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIVATE_IP_HASH) { return ReplicationConfigurationDataPlaneRouting::PRIVATE_IP; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp index f6d4b1dd3ce..ad0e798f5b1 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReplicationConfigurationDefaultLargeStagingDiskTypeMapper { - static const int GP2_HASH = HashingUtils::HashString("GP2"); - static const int GP3_HASH = HashingUtils::HashString("GP3"); - static const int ST1_HASH = HashingUtils::HashString("ST1"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t GP2_HASH = ConstExprHashingUtils::HashString("GP2"); + static constexpr uint32_t GP3_HASH = ConstExprHashingUtils::HashString("GP3"); + static constexpr uint32_t ST1_HASH = ConstExprHashingUtils::HashString("ST1"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); ReplicationConfigurationDefaultLargeStagingDiskType GetReplicationConfigurationDefaultLargeStagingDiskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GP2_HASH) { return ReplicationConfigurationDefaultLargeStagingDiskType::GP2; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationEbsEncryption.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationEbsEncryption.cpp index 38a41aa080b..2a7f00bc514 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationEbsEncryption.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationEbsEncryption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReplicationConfigurationEbsEncryptionMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ReplicationConfigurationEbsEncryption GetReplicationConfigurationEbsEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ReplicationConfigurationEbsEncryption::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp index dcdbb66aa2b..994860251d6 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReplicationConfigurationReplicatedDiskStagingDiskTypeMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int GP2_HASH = HashingUtils::HashString("GP2"); - static const int GP3_HASH = HashingUtils::HashString("GP3"); - static const int IO1_HASH = HashingUtils::HashString("IO1"); - static const int SC1_HASH = HashingUtils::HashString("SC1"); - static const int ST1_HASH = HashingUtils::HashString("ST1"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t GP2_HASH = ConstExprHashingUtils::HashString("GP2"); + static constexpr uint32_t GP3_HASH = ConstExprHashingUtils::HashString("GP3"); + static constexpr uint32_t IO1_HASH = ConstExprHashingUtils::HashString("IO1"); + static constexpr uint32_t SC1_HASH = ConstExprHashingUtils::HashString("SC1"); + static constexpr uint32_t ST1_HASH = ConstExprHashingUtils::HashString("ST1"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ReplicationConfigurationReplicatedDiskStagingDiskType GetReplicationConfigurationReplicatedDiskStagingDiskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return ReplicationConfigurationReplicatedDiskStagingDiskType::AUTO; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationDirection.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationDirection.cpp index 90abdd50882..c5cc88c403d 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationDirection.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationDirectionMapper { - static const int FAILOVER_HASH = HashingUtils::HashString("FAILOVER"); - static const int FAILBACK_HASH = HashingUtils::HashString("FAILBACK"); + static constexpr uint32_t FAILOVER_HASH = ConstExprHashingUtils::HashString("FAILOVER"); + static constexpr uint32_t FAILBACK_HASH = ConstExprHashingUtils::HashString("FAILBACK"); ReplicationDirection GetReplicationDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILOVER_HASH) { return ReplicationDirection::FAILOVER; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationStatus.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationStatus.cpp index bbbc3a72c3f..d376ef15e44 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ReplicationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReplicationStatusMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int PROTECTED_HASH = HashingUtils::HashString("PROTECTED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t PROTECTED_HASH = ConstExprHashingUtils::HashString("PROTECTED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ReplicationStatus GetReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return ReplicationStatus::STOPPED; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/TargetInstanceTypeRightSizingMethod.cpp b/generated/src/aws-cpp-sdk-drs/source/model/TargetInstanceTypeRightSizingMethod.cpp index 625f62068a2..882c6c3df7a 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/TargetInstanceTypeRightSizingMethod.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/TargetInstanceTypeRightSizingMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetInstanceTypeRightSizingMethodMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int IN_AWS_HASH = HashingUtils::HashString("IN_AWS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t IN_AWS_HASH = ConstExprHashingUtils::HashString("IN_AWS"); TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TargetInstanceTypeRightSizingMethod::NONE; diff --git a/generated/src/aws-cpp-sdk-drs/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-drs/source/model/ValidationExceptionReason.cpp index c3cb849604b..dd257ba901d 100644 --- a/generated/src/aws-cpp-sdk-drs/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceErrors.cpp b/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceErrors.cpp index 35698cea561..b7470b373b9 100644 --- a/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceErrors.cpp @@ -278,47 +278,47 @@ template<> AWS_DIRECTORYSERVICE_API CertificateLimitExceededException DirectoryS namespace DirectoryServiceErrorMapper { -static const int CLIENT_HASH = HashingUtils::HashString("ClientException"); -static const int ENTITY_ALREADY_EXISTS_HASH = HashingUtils::HashString("EntityAlreadyExistsException"); -static const int UNSUPPORTED_SETTINGS_HASH = HashingUtils::HashString("UnsupportedSettingsException"); -static const int DIRECTORY_ALREADY_SHARED_HASH = HashingUtils::HashString("DirectoryAlreadySharedException"); -static const int DIRECTORY_ALREADY_IN_REGION_HASH = HashingUtils::HashString("DirectoryAlreadyInRegionException"); -static const int INVALID_L_D_A_P_S_STATUS_HASH = HashingUtils::HashString("InvalidLDAPSStatusException"); -static const int DIRECTORY_UNAVAILABLE_HASH = HashingUtils::HashString("DirectoryUnavailableException"); -static const int USER_DOES_NOT_EXIST_HASH = HashingUtils::HashString("UserDoesNotExistException"); -static const int ENTITY_DOES_NOT_EXIST_HASH = HashingUtils::HashString("EntityDoesNotExistException"); -static const int AUTHENTICATION_FAILED_HASH = HashingUtils::HashString("AuthenticationFailedException"); -static const int INSUFFICIENT_PERMISSIONS_HASH = HashingUtils::HashString("InsufficientPermissionsException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int DIRECTORY_IN_DESIRED_STATE_HASH = HashingUtils::HashString("DirectoryInDesiredStateException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagLimitExceededException"); -static const int INVALID_CERTIFICATE_HASH = HashingUtils::HashString("InvalidCertificateException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int CERTIFICATE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CertificateDoesNotExistException"); -static const int CERTIFICATE_ALREADY_EXISTS_HASH = HashingUtils::HashString("CertificateAlreadyExistsException"); -static const int INVALID_PASSWORD_HASH = HashingUtils::HashString("InvalidPasswordException"); -static const int INCOMPATIBLE_SETTINGS_HASH = HashingUtils::HashString("IncompatibleSettingsException"); -static const int DIRECTORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DirectoryLimitExceededException"); -static const int DIRECTORY_NOT_SHARED_HASH = HashingUtils::HashString("DirectoryNotSharedException"); -static const int CERTIFICATE_IN_USE_HASH = HashingUtils::HashString("CertificateInUseException"); -static const int SHARE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ShareLimitExceededException"); -static const int DIRECTORY_DOES_NOT_EXIST_HASH = HashingUtils::HashString("DirectoryDoesNotExistException"); -static const int NO_AVAILABLE_CERTIFICATE_HASH = HashingUtils::HashString("NoAvailableCertificateException"); -static const int INVALID_CLIENT_AUTH_STATUS_HASH = HashingUtils::HashString("InvalidClientAuthStatusException"); -static const int ORGANIZATIONS_HASH = HashingUtils::HashString("OrganizationsException"); -static const int INVALID_TARGET_HASH = HashingUtils::HashString("InvalidTargetException"); -static const int DOMAIN_CONTROLLER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DomainControllerLimitExceededException"); -static const int REGION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RegionLimitExceededException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int IP_ROUTE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("IpRouteLimitExceededException"); -static const int SNAPSHOT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SnapshotLimitExceededException"); -static const int CERTIFICATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CertificateLimitExceededException"); +static constexpr uint32_t CLIENT_HASH = ConstExprHashingUtils::HashString("ClientException"); +static constexpr uint32_t ENTITY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EntityAlreadyExistsException"); +static constexpr uint32_t UNSUPPORTED_SETTINGS_HASH = ConstExprHashingUtils::HashString("UnsupportedSettingsException"); +static constexpr uint32_t DIRECTORY_ALREADY_SHARED_HASH = ConstExprHashingUtils::HashString("DirectoryAlreadySharedException"); +static constexpr uint32_t DIRECTORY_ALREADY_IN_REGION_HASH = ConstExprHashingUtils::HashString("DirectoryAlreadyInRegionException"); +static constexpr uint32_t INVALID_L_D_A_P_S_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidLDAPSStatusException"); +static constexpr uint32_t DIRECTORY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("DirectoryUnavailableException"); +static constexpr uint32_t USER_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("UserDoesNotExistException"); +static constexpr uint32_t ENTITY_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("EntityDoesNotExistException"); +static constexpr uint32_t AUTHENTICATION_FAILED_HASH = ConstExprHashingUtils::HashString("AuthenticationFailedException"); +static constexpr uint32_t INSUFFICIENT_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("InsufficientPermissionsException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t DIRECTORY_IN_DESIRED_STATE_HASH = ConstExprHashingUtils::HashString("DirectoryInDesiredStateException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagLimitExceededException"); +static constexpr uint32_t INVALID_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("InvalidCertificateException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t CERTIFICATE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("CertificateDoesNotExistException"); +static constexpr uint32_t CERTIFICATE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("CertificateAlreadyExistsException"); +static constexpr uint32_t INVALID_PASSWORD_HASH = ConstExprHashingUtils::HashString("InvalidPasswordException"); +static constexpr uint32_t INCOMPATIBLE_SETTINGS_HASH = ConstExprHashingUtils::HashString("IncompatibleSettingsException"); +static constexpr uint32_t DIRECTORY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DirectoryLimitExceededException"); +static constexpr uint32_t DIRECTORY_NOT_SHARED_HASH = ConstExprHashingUtils::HashString("DirectoryNotSharedException"); +static constexpr uint32_t CERTIFICATE_IN_USE_HASH = ConstExprHashingUtils::HashString("CertificateInUseException"); +static constexpr uint32_t SHARE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ShareLimitExceededException"); +static constexpr uint32_t DIRECTORY_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("DirectoryDoesNotExistException"); +static constexpr uint32_t NO_AVAILABLE_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("NoAvailableCertificateException"); +static constexpr uint32_t INVALID_CLIENT_AUTH_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidClientAuthStatusException"); +static constexpr uint32_t ORGANIZATIONS_HASH = ConstExprHashingUtils::HashString("OrganizationsException"); +static constexpr uint32_t INVALID_TARGET_HASH = ConstExprHashingUtils::HashString("InvalidTargetException"); +static constexpr uint32_t DOMAIN_CONTROLLER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DomainControllerLimitExceededException"); +static constexpr uint32_t REGION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RegionLimitExceededException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t IP_ROUTE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("IpRouteLimitExceededException"); +static constexpr uint32_t SNAPSHOT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SnapshotLimitExceededException"); +static constexpr uint32_t CERTIFICATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CertificateLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLIENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ds/source/model/CertificateState.cpp b/generated/src/aws-cpp-sdk-ds/source/model/CertificateState.cpp index d921db35a02..a59f62478f1 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/CertificateState.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/CertificateState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CertificateStateMapper { - static const int Registering_HASH = HashingUtils::HashString("Registering"); - static const int Registered_HASH = HashingUtils::HashString("Registered"); - static const int RegisterFailed_HASH = HashingUtils::HashString("RegisterFailed"); - static const int Deregistering_HASH = HashingUtils::HashString("Deregistering"); - static const int Deregistered_HASH = HashingUtils::HashString("Deregistered"); - static const int DeregisterFailed_HASH = HashingUtils::HashString("DeregisterFailed"); + static constexpr uint32_t Registering_HASH = ConstExprHashingUtils::HashString("Registering"); + static constexpr uint32_t Registered_HASH = ConstExprHashingUtils::HashString("Registered"); + static constexpr uint32_t RegisterFailed_HASH = ConstExprHashingUtils::HashString("RegisterFailed"); + static constexpr uint32_t Deregistering_HASH = ConstExprHashingUtils::HashString("Deregistering"); + static constexpr uint32_t Deregistered_HASH = ConstExprHashingUtils::HashString("Deregistered"); + static constexpr uint32_t DeregisterFailed_HASH = ConstExprHashingUtils::HashString("DeregisterFailed"); CertificateState GetCertificateStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Registering_HASH) { return CertificateState::Registering; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/CertificateType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/CertificateType.cpp index 33b93190009..8f9b36e0957 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/CertificateType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/CertificateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateTypeMapper { - static const int ClientCertAuth_HASH = HashingUtils::HashString("ClientCertAuth"); - static const int ClientLDAPS_HASH = HashingUtils::HashString("ClientLDAPS"); + static constexpr uint32_t ClientCertAuth_HASH = ConstExprHashingUtils::HashString("ClientCertAuth"); + static constexpr uint32_t ClientLDAPS_HASH = ConstExprHashingUtils::HashString("ClientLDAPS"); CertificateType GetCertificateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ClientCertAuth_HASH) { return CertificateType::ClientCertAuth; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationStatus.cpp index 5dc6a583d4d..d7044a4faa1 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClientAuthenticationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ClientAuthenticationStatus GetClientAuthenticationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ClientAuthenticationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationType.cpp index 5cc83a2d465..b62324b7a8d 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/ClientAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClientAuthenticationTypeMapper { - static const int SmartCard_HASH = HashingUtils::HashString("SmartCard"); - static const int SmartCardOrPassword_HASH = HashingUtils::HashString("SmartCardOrPassword"); + static constexpr uint32_t SmartCard_HASH = ConstExprHashingUtils::HashString("SmartCard"); + static constexpr uint32_t SmartCardOrPassword_HASH = ConstExprHashingUtils::HashString("SmartCardOrPassword"); ClientAuthenticationType GetClientAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SmartCard_HASH) { return ClientAuthenticationType::SmartCard; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryConfigurationStatus.cpp index f29704b4f57..6e62fa2b73c 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryConfigurationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DirectoryConfigurationStatusMapper { - static const int Requested_HASH = HashingUtils::HashString("Requested"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Updated_HASH = HashingUtils::HashString("Updated"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Default_HASH = HashingUtils::HashString("Default"); + static constexpr uint32_t Requested_HASH = ConstExprHashingUtils::HashString("Requested"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Updated_HASH = ConstExprHashingUtils::HashString("Updated"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Default_HASH = ConstExprHashingUtils::HashString("Default"); DirectoryConfigurationStatus GetDirectoryConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Requested_HASH) { return DirectoryConfigurationStatus::Requested; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryEdition.cpp b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryEdition.cpp index 20c2fac06fb..aa200dc9a5e 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryEdition.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryEdition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DirectoryEditionMapper { - static const int Enterprise_HASH = HashingUtils::HashString("Enterprise"); - static const int Standard_HASH = HashingUtils::HashString("Standard"); + static constexpr uint32_t Enterprise_HASH = ConstExprHashingUtils::HashString("Enterprise"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); DirectoryEdition GetDirectoryEditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enterprise_HASH) { return DirectoryEdition::Enterprise; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/DirectorySize.cpp b/generated/src/aws-cpp-sdk-ds/source/model/DirectorySize.cpp index 993072a6874..1f31cf1a1bf 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/DirectorySize.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/DirectorySize.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DirectorySizeMapper { - static const int Small_HASH = HashingUtils::HashString("Small"); - static const int Large_HASH = HashingUtils::HashString("Large"); + static constexpr uint32_t Small_HASH = ConstExprHashingUtils::HashString("Small"); + static constexpr uint32_t Large_HASH = ConstExprHashingUtils::HashString("Large"); DirectorySize GetDirectorySizeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Small_HASH) { return DirectorySize::Small; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryStage.cpp b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryStage.cpp index c9342e85815..b828cb35164 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryStage.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryStage.cpp @@ -20,22 +20,22 @@ namespace Aws namespace DirectoryStageMapper { - static const int Requested_HASH = HashingUtils::HashString("Requested"); - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inoperable_HASH = HashingUtils::HashString("Inoperable"); - static const int Impaired_HASH = HashingUtils::HashString("Impaired"); - static const int Restoring_HASH = HashingUtils::HashString("Restoring"); - static const int RestoreFailed_HASH = HashingUtils::HashString("RestoreFailed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Requested_HASH = ConstExprHashingUtils::HashString("Requested"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inoperable_HASH = ConstExprHashingUtils::HashString("Inoperable"); + static constexpr uint32_t Impaired_HASH = ConstExprHashingUtils::HashString("Impaired"); + static constexpr uint32_t Restoring_HASH = ConstExprHashingUtils::HashString("Restoring"); + static constexpr uint32_t RestoreFailed_HASH = ConstExprHashingUtils::HashString("RestoreFailed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DirectoryStage GetDirectoryStageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Requested_HASH) { return DirectoryStage::Requested; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryType.cpp index 66426e39af1..0447ea5e308 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/DirectoryType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/DirectoryType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DirectoryTypeMapper { - static const int SimpleAD_HASH = HashingUtils::HashString("SimpleAD"); - static const int ADConnector_HASH = HashingUtils::HashString("ADConnector"); - static const int MicrosoftAD_HASH = HashingUtils::HashString("MicrosoftAD"); - static const int SharedMicrosoftAD_HASH = HashingUtils::HashString("SharedMicrosoftAD"); + static constexpr uint32_t SimpleAD_HASH = ConstExprHashingUtils::HashString("SimpleAD"); + static constexpr uint32_t ADConnector_HASH = ConstExprHashingUtils::HashString("ADConnector"); + static constexpr uint32_t MicrosoftAD_HASH = ConstExprHashingUtils::HashString("MicrosoftAD"); + static constexpr uint32_t SharedMicrosoftAD_HASH = ConstExprHashingUtils::HashString("SharedMicrosoftAD"); DirectoryType GetDirectoryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SimpleAD_HASH) { return DirectoryType::SimpleAD; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/DomainControllerStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/DomainControllerStatus.cpp index b182544694a..561deeec007 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/DomainControllerStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/DomainControllerStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DomainControllerStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Impaired_HASH = HashingUtils::HashString("Impaired"); - static const int Restoring_HASH = HashingUtils::HashString("Restoring"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Impaired_HASH = ConstExprHashingUtils::HashString("Impaired"); + static constexpr uint32_t Restoring_HASH = ConstExprHashingUtils::HashString("Restoring"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DomainControllerStatus GetDomainControllerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return DomainControllerStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/IpRouteStatusMsg.cpp b/generated/src/aws-cpp-sdk-ds/source/model/IpRouteStatusMsg.cpp index 55018403157..f8b2b5574dc 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/IpRouteStatusMsg.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/IpRouteStatusMsg.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IpRouteStatusMsgMapper { - static const int Adding_HASH = HashingUtils::HashString("Adding"); - static const int Added_HASH = HashingUtils::HashString("Added"); - static const int Removing_HASH = HashingUtils::HashString("Removing"); - static const int Removed_HASH = HashingUtils::HashString("Removed"); - static const int AddFailed_HASH = HashingUtils::HashString("AddFailed"); - static const int RemoveFailed_HASH = HashingUtils::HashString("RemoveFailed"); + static constexpr uint32_t Adding_HASH = ConstExprHashingUtils::HashString("Adding"); + static constexpr uint32_t Added_HASH = ConstExprHashingUtils::HashString("Added"); + static constexpr uint32_t Removing_HASH = ConstExprHashingUtils::HashString("Removing"); + static constexpr uint32_t Removed_HASH = ConstExprHashingUtils::HashString("Removed"); + static constexpr uint32_t AddFailed_HASH = ConstExprHashingUtils::HashString("AddFailed"); + static constexpr uint32_t RemoveFailed_HASH = ConstExprHashingUtils::HashString("RemoveFailed"); IpRouteStatusMsg GetIpRouteStatusMsgForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Adding_HASH) { return IpRouteStatusMsg::Adding; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/LDAPSStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/LDAPSStatus.cpp index 8a4184c3351..e20475484fa 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/LDAPSStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/LDAPSStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LDAPSStatusMapper { - static const int Enabling_HASH = HashingUtils::HashString("Enabling"); - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int EnableFailed_HASH = HashingUtils::HashString("EnableFailed"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabling_HASH = ConstExprHashingUtils::HashString("Enabling"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t EnableFailed_HASH = ConstExprHashingUtils::HashString("EnableFailed"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); LDAPSStatus GetLDAPSStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabling_HASH) { return LDAPSStatus::Enabling; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/LDAPSType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/LDAPSType.cpp index 0dce3198b28..21b502b6f79 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/LDAPSType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/LDAPSType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LDAPSTypeMapper { - static const int Client_HASH = HashingUtils::HashString("Client"); + static constexpr uint32_t Client_HASH = ConstExprHashingUtils::HashString("Client"); LDAPSType GetLDAPSTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Client_HASH) { return LDAPSType::Client; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/OSVersion.cpp b/generated/src/aws-cpp-sdk-ds/source/model/OSVersion.cpp index b3ca242afe6..13ff40b7a4e 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/OSVersion.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/OSVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OSVersionMapper { - static const int SERVER_2012_HASH = HashingUtils::HashString("SERVER_2012"); - static const int SERVER_2019_HASH = HashingUtils::HashString("SERVER_2019"); + static constexpr uint32_t SERVER_2012_HASH = ConstExprHashingUtils::HashString("SERVER_2012"); + static constexpr uint32_t SERVER_2019_HASH = ConstExprHashingUtils::HashString("SERVER_2019"); OSVersion GetOSVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVER_2012_HASH) { return OSVersion::SERVER_2012; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/RadiusAuthenticationProtocol.cpp b/generated/src/aws-cpp-sdk-ds/source/model/RadiusAuthenticationProtocol.cpp index df5a9131290..370bccff4a0 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/RadiusAuthenticationProtocol.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/RadiusAuthenticationProtocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RadiusAuthenticationProtocolMapper { - static const int PAP_HASH = HashingUtils::HashString("PAP"); - static const int CHAP_HASH = HashingUtils::HashString("CHAP"); - static const int MS_CHAPv1_HASH = HashingUtils::HashString("MS-CHAPv1"); - static const int MS_CHAPv2_HASH = HashingUtils::HashString("MS-CHAPv2"); + static constexpr uint32_t PAP_HASH = ConstExprHashingUtils::HashString("PAP"); + static constexpr uint32_t CHAP_HASH = ConstExprHashingUtils::HashString("CHAP"); + static constexpr uint32_t MS_CHAPv1_HASH = ConstExprHashingUtils::HashString("MS-CHAPv1"); + static constexpr uint32_t MS_CHAPv2_HASH = ConstExprHashingUtils::HashString("MS-CHAPv2"); RadiusAuthenticationProtocol GetRadiusAuthenticationProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAP_HASH) { return RadiusAuthenticationProtocol::PAP; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/RadiusStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/RadiusStatus.cpp index 9b1911af972..6b208774057 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/RadiusStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/RadiusStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RadiusStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); RadiusStatus GetRadiusStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return RadiusStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/RegionType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/RegionType.cpp index f26373e5229..fdd98b36139 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/RegionType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/RegionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RegionTypeMapper { - static const int Primary_HASH = HashingUtils::HashString("Primary"); - static const int Additional_HASH = HashingUtils::HashString("Additional"); + static constexpr uint32_t Primary_HASH = ConstExprHashingUtils::HashString("Primary"); + static constexpr uint32_t Additional_HASH = ConstExprHashingUtils::HashString("Additional"); RegionType GetRegionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Primary_HASH) { return RegionType::Primary; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/ReplicationScope.cpp b/generated/src/aws-cpp-sdk-ds/source/model/ReplicationScope.cpp index 713aa20d048..c3e6bd9acf8 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/ReplicationScope.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/ReplicationScope.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ReplicationScopeMapper { - static const int Domain_HASH = HashingUtils::HashString("Domain"); + static constexpr uint32_t Domain_HASH = ConstExprHashingUtils::HashString("Domain"); ReplicationScope GetReplicationScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Domain_HASH) { return ReplicationScope::Domain; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/SchemaExtensionStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/SchemaExtensionStatus.cpp index 804e124fd2e..a50fff21c88 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/SchemaExtensionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/SchemaExtensionStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SchemaExtensionStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int CreatingSnapshot_HASH = HashingUtils::HashString("CreatingSnapshot"); - static const int UpdatingSchema_HASH = HashingUtils::HashString("UpdatingSchema"); - static const int Replicating_HASH = HashingUtils::HashString("Replicating"); - static const int CancelInProgress_HASH = HashingUtils::HashString("CancelInProgress"); - static const int RollbackInProgress_HASH = HashingUtils::HashString("RollbackInProgress"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t CreatingSnapshot_HASH = ConstExprHashingUtils::HashString("CreatingSnapshot"); + static constexpr uint32_t UpdatingSchema_HASH = ConstExprHashingUtils::HashString("UpdatingSchema"); + static constexpr uint32_t Replicating_HASH = ConstExprHashingUtils::HashString("Replicating"); + static constexpr uint32_t CancelInProgress_HASH = ConstExprHashingUtils::HashString("CancelInProgress"); + static constexpr uint32_t RollbackInProgress_HASH = ConstExprHashingUtils::HashString("RollbackInProgress"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); SchemaExtensionStatus GetSchemaExtensionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return SchemaExtensionStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/SelectiveAuth.cpp b/generated/src/aws-cpp-sdk-ds/source/model/SelectiveAuth.cpp index 4bc23159cab..b1713d2456f 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/SelectiveAuth.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/SelectiveAuth.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SelectiveAuthMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); SelectiveAuth GetSelectiveAuthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return SelectiveAuth::Enabled; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/ShareMethod.cpp b/generated/src/aws-cpp-sdk-ds/source/model/ShareMethod.cpp index 98cbcb8fa11..2e34ec16205 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/ShareMethod.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/ShareMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShareMethodMapper { - static const int ORGANIZATIONS_HASH = HashingUtils::HashString("ORGANIZATIONS"); - static const int HANDSHAKE_HASH = HashingUtils::HashString("HANDSHAKE"); + static constexpr uint32_t ORGANIZATIONS_HASH = ConstExprHashingUtils::HashString("ORGANIZATIONS"); + static constexpr uint32_t HANDSHAKE_HASH = ConstExprHashingUtils::HashString("HANDSHAKE"); ShareMethod GetShareMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORGANIZATIONS_HASH) { return ShareMethod::ORGANIZATIONS; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/ShareStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/ShareStatus.cpp index 584ac2a07d1..d242b59170d 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/ShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/ShareStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ShareStatusMapper { - static const int Shared_HASH = HashingUtils::HashString("Shared"); - static const int PendingAcceptance_HASH = HashingUtils::HashString("PendingAcceptance"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); - static const int Rejecting_HASH = HashingUtils::HashString("Rejecting"); - static const int RejectFailed_HASH = HashingUtils::HashString("RejectFailed"); - static const int Sharing_HASH = HashingUtils::HashString("Sharing"); - static const int ShareFailed_HASH = HashingUtils::HashString("ShareFailed"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Shared_HASH = ConstExprHashingUtils::HashString("Shared"); + static constexpr uint32_t PendingAcceptance_HASH = ConstExprHashingUtils::HashString("PendingAcceptance"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); + static constexpr uint32_t Rejecting_HASH = ConstExprHashingUtils::HashString("Rejecting"); + static constexpr uint32_t RejectFailed_HASH = ConstExprHashingUtils::HashString("RejectFailed"); + static constexpr uint32_t Sharing_HASH = ConstExprHashingUtils::HashString("Sharing"); + static constexpr uint32_t ShareFailed_HASH = ConstExprHashingUtils::HashString("ShareFailed"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); ShareStatus GetShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Shared_HASH) { return ShareStatus::Shared; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/SnapshotStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/SnapshotStatus.cpp index fd3c1af33ea..6011647b4f4 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/SnapshotStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/SnapshotStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SnapshotStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); SnapshotStatus GetSnapshotStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return SnapshotStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/SnapshotType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/SnapshotType.cpp index bfa2bb89943..0e30a7ee1f8 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/SnapshotType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/SnapshotType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnapshotTypeMapper { - static const int Auto_HASH = HashingUtils::HashString("Auto"); - static const int Manual_HASH = HashingUtils::HashString("Manual"); + static constexpr uint32_t Auto_HASH = ConstExprHashingUtils::HashString("Auto"); + static constexpr uint32_t Manual_HASH = ConstExprHashingUtils::HashString("Manual"); SnapshotType GetSnapshotTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Auto_HASH) { return SnapshotType::Auto; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/TargetType.cpp index 801305c6a1b..d8caa7bf903 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/TargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return TargetType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/TopicStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/TopicStatus.cpp index af6197607ab..1485efe5e8d 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/TopicStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/TopicStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TopicStatusMapper { - static const int Registered_HASH = HashingUtils::HashString("Registered"); - static const int Topic_not_found_HASH = HashingUtils::HashString("Topic not found"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); + static constexpr uint32_t Registered_HASH = ConstExprHashingUtils::HashString("Registered"); + static constexpr uint32_t Topic_not_found_HASH = ConstExprHashingUtils::HashString("Topic not found"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); TopicStatus GetTopicStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Registered_HASH) { return TopicStatus::Registered; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/TrustDirection.cpp b/generated/src/aws-cpp-sdk-ds/source/model/TrustDirection.cpp index c4bc6f41ee8..befab8539a3 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/TrustDirection.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/TrustDirection.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrustDirectionMapper { - static const int One_Way_Outgoing_HASH = HashingUtils::HashString("One-Way: Outgoing"); - static const int One_Way_Incoming_HASH = HashingUtils::HashString("One-Way: Incoming"); - static const int Two_Way_HASH = HashingUtils::HashString("Two-Way"); + static constexpr uint32_t One_Way_Outgoing_HASH = ConstExprHashingUtils::HashString("One-Way: Outgoing"); + static constexpr uint32_t One_Way_Incoming_HASH = ConstExprHashingUtils::HashString("One-Way: Incoming"); + static constexpr uint32_t Two_Way_HASH = ConstExprHashingUtils::HashString("Two-Way"); TrustDirection GetTrustDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == One_Way_Outgoing_HASH) { return TrustDirection::One_Way_Outgoing; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/TrustState.cpp b/generated/src/aws-cpp-sdk-ds/source/model/TrustState.cpp index cb243b94e0a..63837163c98 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/TrustState.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/TrustState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace TrustStateMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Verifying_HASH = HashingUtils::HashString("Verifying"); - static const int VerifyFailed_HASH = HashingUtils::HashString("VerifyFailed"); - static const int Verified_HASH = HashingUtils::HashString("Verified"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); - static const int Updated_HASH = HashingUtils::HashString("Updated"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Verifying_HASH = ConstExprHashingUtils::HashString("Verifying"); + static constexpr uint32_t VerifyFailed_HASH = ConstExprHashingUtils::HashString("VerifyFailed"); + static constexpr uint32_t Verified_HASH = ConstExprHashingUtils::HashString("Verified"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t Updated_HASH = ConstExprHashingUtils::HashString("Updated"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); TrustState GetTrustStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return TrustState::Creating; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/TrustType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/TrustType.cpp index a7d7dea7bec..32d4b06b099 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/TrustType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/TrustType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrustTypeMapper { - static const int Forest_HASH = HashingUtils::HashString("Forest"); - static const int External_HASH = HashingUtils::HashString("External"); + static constexpr uint32_t Forest_HASH = ConstExprHashingUtils::HashString("Forest"); + static constexpr uint32_t External_HASH = ConstExprHashingUtils::HashString("External"); TrustType GetTrustTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Forest_HASH) { return TrustType::Forest; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/UpdateStatus.cpp b/generated/src/aws-cpp-sdk-ds/source/model/UpdateStatus.cpp index 839be2ded12..16762eb2e5d 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/UpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/UpdateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UpdateStatusMapper { - static const int Updated_HASH = HashingUtils::HashString("Updated"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t Updated_HASH = ConstExprHashingUtils::HashString("Updated"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); UpdateStatus GetUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Updated_HASH) { return UpdateStatus::Updated; diff --git a/generated/src/aws-cpp-sdk-ds/source/model/UpdateType.cpp b/generated/src/aws-cpp-sdk-ds/source/model/UpdateType.cpp index f1d7bf45521..a2dab151cae 100644 --- a/generated/src/aws-cpp-sdk-ds/source/model/UpdateType.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/model/UpdateType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UpdateTypeMapper { - static const int OS_HASH = HashingUtils::HashString("OS"); + static constexpr uint32_t OS_HASH = ConstExprHashingUtils::HashString("OS"); UpdateType GetUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OS_HASH) { return UpdateType::OS; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBErrors.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBErrors.cpp index 2ba02882d93..6327dcdd854 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBErrors.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBErrors.cpp @@ -33,40 +33,40 @@ template<> AWS_DYNAMODB_API TransactionCanceledException DynamoDBError::GetModel namespace DynamoDBErrorMapper { -static const int CONDITIONAL_CHECK_FAILED_HASH = HashingUtils::HashString("ConditionalCheckFailedException"); -static const int TRANSACTION_CANCELED_HASH = HashingUtils::HashString("TransactionCanceledException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int REPLICA_ALREADY_EXISTS_HASH = HashingUtils::HashString("ReplicaAlreadyExistsException"); -static const int TRANSACTION_CONFLICT_HASH = HashingUtils::HashString("TransactionConflictException"); -static const int REPLICA_NOT_FOUND_HASH = HashingUtils::HashString("ReplicaNotFoundException"); -static const int IMPORT_CONFLICT_HASH = HashingUtils::HashString("ImportConflictException"); -static const int TABLE_NOT_FOUND_HASH = HashingUtils::HashString("TableNotFoundException"); -static const int EXPORT_NOT_FOUND_HASH = HashingUtils::HashString("ExportNotFoundException"); -static const int TRANSACTION_IN_PROGRESS_HASH = HashingUtils::HashString("TransactionInProgressException"); -static const int BACKUP_IN_USE_HASH = HashingUtils::HashString("BackupInUseException"); -static const int CONTINUOUS_BACKUPS_UNAVAILABLE_HASH = HashingUtils::HashString("ContinuousBackupsUnavailableException"); -static const int TABLE_IN_USE_HASH = HashingUtils::HashString("TableInUseException"); -static const int PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("ProvisionedThroughputExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_RESTORE_TIME_HASH = HashingUtils::HashString("InvalidRestoreTimeException"); -static const int ITEM_COLLECTION_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ItemCollectionSizeLimitExceededException"); -static const int BACKUP_NOT_FOUND_HASH = HashingUtils::HashString("BackupNotFoundException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int POINT_IN_TIME_RECOVERY_UNAVAILABLE_HASH = HashingUtils::HashString("PointInTimeRecoveryUnavailableException"); -static const int TABLE_ALREADY_EXISTS_HASH = HashingUtils::HashString("TableAlreadyExistsException"); -static const int EXPORT_CONFLICT_HASH = HashingUtils::HashString("ExportConflictException"); -static const int GLOBAL_TABLE_ALREADY_EXISTS_HASH = HashingUtils::HashString("GlobalTableAlreadyExistsException"); -static const int INVALID_EXPORT_TIME_HASH = HashingUtils::HashString("InvalidExportTimeException"); -static const int REQUEST_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RequestLimitExceeded"); -static const int IMPORT_NOT_FOUND_HASH = HashingUtils::HashString("ImportNotFoundException"); -static const int GLOBAL_TABLE_NOT_FOUND_HASH = HashingUtils::HashString("GlobalTableNotFoundException"); -static const int DUPLICATE_ITEM_HASH = HashingUtils::HashString("DuplicateItemException"); -static const int INDEX_NOT_FOUND_HASH = HashingUtils::HashString("IndexNotFoundException"); +static constexpr uint32_t CONDITIONAL_CHECK_FAILED_HASH = ConstExprHashingUtils::HashString("ConditionalCheckFailedException"); +static constexpr uint32_t TRANSACTION_CANCELED_HASH = ConstExprHashingUtils::HashString("TransactionCanceledException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t REPLICA_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ReplicaAlreadyExistsException"); +static constexpr uint32_t TRANSACTION_CONFLICT_HASH = ConstExprHashingUtils::HashString("TransactionConflictException"); +static constexpr uint32_t REPLICA_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ReplicaNotFoundException"); +static constexpr uint32_t IMPORT_CONFLICT_HASH = ConstExprHashingUtils::HashString("ImportConflictException"); +static constexpr uint32_t TABLE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TableNotFoundException"); +static constexpr uint32_t EXPORT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ExportNotFoundException"); +static constexpr uint32_t TRANSACTION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TransactionInProgressException"); +static constexpr uint32_t BACKUP_IN_USE_HASH = ConstExprHashingUtils::HashString("BackupInUseException"); +static constexpr uint32_t CONTINUOUS_BACKUPS_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ContinuousBackupsUnavailableException"); +static constexpr uint32_t TABLE_IN_USE_HASH = ConstExprHashingUtils::HashString("TableInUseException"); +static constexpr uint32_t PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ProvisionedThroughputExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_RESTORE_TIME_HASH = ConstExprHashingUtils::HashString("InvalidRestoreTimeException"); +static constexpr uint32_t ITEM_COLLECTION_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ItemCollectionSizeLimitExceededException"); +static constexpr uint32_t BACKUP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("BackupNotFoundException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t POINT_IN_TIME_RECOVERY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("PointInTimeRecoveryUnavailableException"); +static constexpr uint32_t TABLE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TableAlreadyExistsException"); +static constexpr uint32_t EXPORT_CONFLICT_HASH = ConstExprHashingUtils::HashString("ExportConflictException"); +static constexpr uint32_t GLOBAL_TABLE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("GlobalTableAlreadyExistsException"); +static constexpr uint32_t INVALID_EXPORT_TIME_HASH = ConstExprHashingUtils::HashString("InvalidExportTimeException"); +static constexpr uint32_t REQUEST_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RequestLimitExceeded"); +static constexpr uint32_t IMPORT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ImportNotFoundException"); +static constexpr uint32_t GLOBAL_TABLE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("GlobalTableNotFoundException"); +static constexpr uint32_t DUPLICATE_ITEM_HASH = ConstExprHashingUtils::HashString("DuplicateItemException"); +static constexpr uint32_t INDEX_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("IndexNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONDITIONAL_CHECK_FAILED_HASH) { diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/AttributeAction.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/AttributeAction.cpp index 109ec623f51..317407640e7 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/AttributeAction.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/AttributeAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AttributeActionMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); AttributeAction GetAttributeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return AttributeAction::ADD; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupStatus.cpp index 40757426e7c..cc442249cc0 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BackupStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); BackupStatus GetBackupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return BackupStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupType.cpp index 12c0326826f..372ea072531 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BackupTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int AWS_BACKUP_HASH = HashingUtils::HashString("AWS_BACKUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t AWS_BACKUP_HASH = ConstExprHashingUtils::HashString("AWS_BACKUP"); BackupType GetBackupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return BackupType::USER; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupTypeFilter.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupTypeFilter.cpp index 68c68bc5efc..42e18d17c97 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/BackupTypeFilter.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BackupTypeFilterMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int AWS_BACKUP_HASH = HashingUtils::HashString("AWS_BACKUP"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t AWS_BACKUP_HASH = ConstExprHashingUtils::HashString("AWS_BACKUP"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); BackupTypeFilter GetBackupTypeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return BackupTypeFilter::USER; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/BatchStatementErrorCodeEnum.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/BatchStatementErrorCodeEnum.cpp index fa41c0771c7..3666f88782a 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/BatchStatementErrorCodeEnum.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/BatchStatementErrorCodeEnum.cpp @@ -20,22 +20,22 @@ namespace Aws namespace BatchStatementErrorCodeEnumMapper { - static const int ConditionalCheckFailed_HASH = HashingUtils::HashString("ConditionalCheckFailed"); - static const int ItemCollectionSizeLimitExceeded_HASH = HashingUtils::HashString("ItemCollectionSizeLimitExceeded"); - static const int RequestLimitExceeded_HASH = HashingUtils::HashString("RequestLimitExceeded"); - static const int ValidationError_HASH = HashingUtils::HashString("ValidationError"); - static const int ProvisionedThroughputExceeded_HASH = HashingUtils::HashString("ProvisionedThroughputExceeded"); - static const int TransactionConflict_HASH = HashingUtils::HashString("TransactionConflict"); - static const int ThrottlingError_HASH = HashingUtils::HashString("ThrottlingError"); - static const int InternalServerError_HASH = HashingUtils::HashString("InternalServerError"); - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int DuplicateItem_HASH = HashingUtils::HashString("DuplicateItem"); + static constexpr uint32_t ConditionalCheckFailed_HASH = ConstExprHashingUtils::HashString("ConditionalCheckFailed"); + static constexpr uint32_t ItemCollectionSizeLimitExceeded_HASH = ConstExprHashingUtils::HashString("ItemCollectionSizeLimitExceeded"); + static constexpr uint32_t RequestLimitExceeded_HASH = ConstExprHashingUtils::HashString("RequestLimitExceeded"); + static constexpr uint32_t ValidationError_HASH = ConstExprHashingUtils::HashString("ValidationError"); + static constexpr uint32_t ProvisionedThroughputExceeded_HASH = ConstExprHashingUtils::HashString("ProvisionedThroughputExceeded"); + static constexpr uint32_t TransactionConflict_HASH = ConstExprHashingUtils::HashString("TransactionConflict"); + static constexpr uint32_t ThrottlingError_HASH = ConstExprHashingUtils::HashString("ThrottlingError"); + static constexpr uint32_t InternalServerError_HASH = ConstExprHashingUtils::HashString("InternalServerError"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t DuplicateItem_HASH = ConstExprHashingUtils::HashString("DuplicateItem"); BatchStatementErrorCodeEnum GetBatchStatementErrorCodeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConditionalCheckFailed_HASH) { return BatchStatementErrorCodeEnum::ConditionalCheckFailed; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/BillingMode.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/BillingMode.cpp index 4de8c6a531a..556754ecc2b 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/BillingMode.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/BillingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BillingModeMapper { - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int PAY_PER_REQUEST_HASH = HashingUtils::HashString("PAY_PER_REQUEST"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t PAY_PER_REQUEST_HASH = ConstExprHashingUtils::HashString("PAY_PER_REQUEST"); BillingMode GetBillingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONED_HASH) { return BillingMode::PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ComparisonOperator.cpp index 81a7a0a5429..5df8ebc9e55 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ComparisonOperator.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int NOT_NULL_HASH = HashingUtils::HashString("NOT_NULL"); - static const int NULL__HASH = HashingUtils::HashString("NULL"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int NOT_CONTAINS_HASH = HashingUtils::HashString("NOT_CONTAINS"); - static const int BEGINS_WITH_HASH = HashingUtils::HashString("BEGINS_WITH"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t NOT_NULL_HASH = ConstExprHashingUtils::HashString("NOT_NULL"); + static constexpr uint32_t NULL__HASH = ConstExprHashingUtils::HashString("NULL"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t NOT_CONTAINS_HASH = ConstExprHashingUtils::HashString("NOT_CONTAINS"); + static constexpr uint32_t BEGINS_WITH_HASH = ConstExprHashingUtils::HashString("BEGINS_WITH"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return ComparisonOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ConditionalOperator.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ConditionalOperator.cpp index c3007aeed6f..1536f2660de 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ConditionalOperator.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ConditionalOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConditionalOperatorMapper { - static const int AND_HASH = HashingUtils::HashString("AND"); - static const int OR_HASH = HashingUtils::HashString("OR"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); + static constexpr uint32_t OR_HASH = ConstExprHashingUtils::HashString("OR"); ConditionalOperator GetConditionalOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AND_HASH) { return ConditionalOperator::AND; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ContinuousBackupsStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ContinuousBackupsStatus.cpp index 80155a80791..15dc3da544c 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ContinuousBackupsStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ContinuousBackupsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContinuousBackupsStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ContinuousBackupsStatus GetContinuousBackupsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ContinuousBackupsStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsAction.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsAction.cpp index 9107960fc08..1a6513721fd 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsAction.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContributorInsightsActionMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); ContributorInsightsAction GetContributorInsightsActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return ContributorInsightsAction::ENABLE; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsStatus.cpp index 1c4d07e5924..6730b835cdd 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ContributorInsightsStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ContributorInsightsStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ContributorInsightsStatus GetContributorInsightsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return ContributorInsightsStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/DestinationStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/DestinationStatus.cpp index f735ee8b4b9..fbabec1e425 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/DestinationStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/DestinationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DestinationStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLE_FAILED_HASH = HashingUtils::HashString("ENABLE_FAILED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLE_FAILED_HASH = ConstExprHashingUtils::HashString("ENABLE_FAILED"); DestinationStatus GetDestinationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return DestinationStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportFormat.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportFormat.cpp index 76cb239a1be..d8e77d80add 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportFormat.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportFormatMapper { - static const int DYNAMODB_JSON_HASH = HashingUtils::HashString("DYNAMODB_JSON"); - static const int ION_HASH = HashingUtils::HashString("ION"); + static constexpr uint32_t DYNAMODB_JSON_HASH = ConstExprHashingUtils::HashString("DYNAMODB_JSON"); + static constexpr uint32_t ION_HASH = ConstExprHashingUtils::HashString("ION"); ExportFormat GetExportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DYNAMODB_JSON_HASH) { return ExportFormat::DYNAMODB_JSON; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportStatus.cpp index e34403d6319..058773b0978 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ExportStatus GetExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ExportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportType.cpp index c0c548b5174..11dcff2aa59 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportTypeMapper { - static const int FULL_EXPORT_HASH = HashingUtils::HashString("FULL_EXPORT"); - static const int INCREMENTAL_EXPORT_HASH = HashingUtils::HashString("INCREMENTAL_EXPORT"); + static constexpr uint32_t FULL_EXPORT_HASH = ConstExprHashingUtils::HashString("FULL_EXPORT"); + static constexpr uint32_t INCREMENTAL_EXPORT_HASH = ConstExprHashingUtils::HashString("INCREMENTAL_EXPORT"); ExportType GetExportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_EXPORT_HASH) { return ExportType::FULL_EXPORT; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportViewType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportViewType.cpp index 3af24ac46db..f8b5bda6421 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportViewType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ExportViewType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportViewTypeMapper { - static const int NEW_IMAGE_HASH = HashingUtils::HashString("NEW_IMAGE"); - static const int NEW_AND_OLD_IMAGES_HASH = HashingUtils::HashString("NEW_AND_OLD_IMAGES"); + static constexpr uint32_t NEW_IMAGE_HASH = ConstExprHashingUtils::HashString("NEW_IMAGE"); + static constexpr uint32_t NEW_AND_OLD_IMAGES_HASH = ConstExprHashingUtils::HashString("NEW_AND_OLD_IMAGES"); ExportViewType GetExportViewTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW_IMAGE_HASH) { return ExportViewType::NEW_IMAGE; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalTableStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalTableStatus.cpp index 9b560dd1c32..accc3326c2c 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalTableStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/GlobalTableStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GlobalTableStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); GlobalTableStatus GetGlobalTableStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return GlobalTableStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ImportStatus.cpp index 62934a73b72..50cd542e8a6 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ImportStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ImportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ImportStatus GetImportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ImportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/IndexStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/IndexStatus.cpp index daa61e76b2a..ad1a974cb21 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/IndexStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/IndexStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IndexStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); IndexStatus GetIndexStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return IndexStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/InputCompressionType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/InputCompressionType.cpp index ead69ef696b..e62cab136e7 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/InputCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/InputCompressionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputCompressionTypeMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int ZSTD_HASH = HashingUtils::HashString("ZSTD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t ZSTD_HASH = ConstExprHashingUtils::HashString("ZSTD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); InputCompressionType GetInputCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return InputCompressionType::GZIP; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/InputFormat.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/InputFormat.cpp index d7fc12f32b9..cb0093e5e6d 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/InputFormat.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/InputFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputFormatMapper { - static const int DYNAMODB_JSON_HASH = HashingUtils::HashString("DYNAMODB_JSON"); - static const int ION_HASH = HashingUtils::HashString("ION"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t DYNAMODB_JSON_HASH = ConstExprHashingUtils::HashString("DYNAMODB_JSON"); + static constexpr uint32_t ION_HASH = ConstExprHashingUtils::HashString("ION"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); InputFormat GetInputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DYNAMODB_JSON_HASH) { return InputFormat::DYNAMODB_JSON; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/KeyType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/KeyType.cpp index fcd841c74ca..2c09d53ec90 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/KeyType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/KeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyTypeMapper { - static const int HASH_HASH = HashingUtils::HashString("HASH"); - static const int RANGE_HASH = HashingUtils::HashString("RANGE"); + static constexpr uint32_t HASH_HASH = ConstExprHashingUtils::HashString("HASH"); + static constexpr uint32_t RANGE_HASH = ConstExprHashingUtils::HashString("RANGE"); KeyType GetKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HASH_HASH) { return KeyType::HASH; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/PointInTimeRecoveryStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/PointInTimeRecoveryStatus.cpp index 1ca6ede61f2..7ee0c5495aa 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/PointInTimeRecoveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/PointInTimeRecoveryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PointInTimeRecoveryStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); PointInTimeRecoveryStatus GetPointInTimeRecoveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return PointInTimeRecoveryStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ProjectionType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ProjectionType.cpp index 99391a4ba1b..58076e6f653 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ProjectionType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ProjectionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProjectionTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int KEYS_ONLY_HASH = HashingUtils::HashString("KEYS_ONLY"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t KEYS_ONLY_HASH = ConstExprHashingUtils::HashString("KEYS_ONLY"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); ProjectionType GetProjectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ProjectionType::ALL; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaStatus.cpp index 3b2a0a71d8e..db81b8ce2d7 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReplicaStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReplicaStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int REGION_DISABLED_HASH = HashingUtils::HashString("REGION_DISABLED"); - static const int INACCESSIBLE_ENCRYPTION_CREDENTIALS_HASH = HashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDENTIALS"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t REGION_DISABLED_HASH = ConstExprHashingUtils::HashString("REGION_DISABLED"); + static constexpr uint32_t INACCESSIBLE_ENCRYPTION_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDENTIALS"); ReplicaStatus GetReplicaStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ReplicaStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnConsumedCapacity.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnConsumedCapacity.cpp index 88f030940f6..56b351d225f 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnConsumedCapacity.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnConsumedCapacity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReturnConsumedCapacityMapper { - static const int INDEXES_HASH = HashingUtils::HashString("INDEXES"); - static const int TOTAL_HASH = HashingUtils::HashString("TOTAL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INDEXES_HASH = ConstExprHashingUtils::HashString("INDEXES"); + static constexpr uint32_t TOTAL_HASH = ConstExprHashingUtils::HashString("TOTAL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ReturnConsumedCapacity GetReturnConsumedCapacityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INDEXES_HASH) { return ReturnConsumedCapacity::INDEXES; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnItemCollectionMetrics.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnItemCollectionMetrics.cpp index 366753d6e6a..fde7a978023 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnItemCollectionMetrics.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnItemCollectionMetrics.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReturnItemCollectionMetricsMapper { - static const int SIZE_HASH = HashingUtils::HashString("SIZE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SIZE_HASH = ConstExprHashingUtils::HashString("SIZE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ReturnItemCollectionMetrics GetReturnItemCollectionMetricsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIZE_HASH) { return ReturnItemCollectionMetrics::SIZE; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValue.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValue.cpp index 173c8c18fed..89ba7fd6c0d 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValue.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValue.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ReturnValueMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ALL_OLD_HASH = HashingUtils::HashString("ALL_OLD"); - static const int UPDATED_OLD_HASH = HashingUtils::HashString("UPDATED_OLD"); - static const int ALL_NEW_HASH = HashingUtils::HashString("ALL_NEW"); - static const int UPDATED_NEW_HASH = HashingUtils::HashString("UPDATED_NEW"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_OLD_HASH = ConstExprHashingUtils::HashString("ALL_OLD"); + static constexpr uint32_t UPDATED_OLD_HASH = ConstExprHashingUtils::HashString("UPDATED_OLD"); + static constexpr uint32_t ALL_NEW_HASH = ConstExprHashingUtils::HashString("ALL_NEW"); + static constexpr uint32_t UPDATED_NEW_HASH = ConstExprHashingUtils::HashString("UPDATED_NEW"); ReturnValue GetReturnValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ReturnValue::NONE; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValuesOnConditionCheckFailure.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValuesOnConditionCheckFailure.cpp index 46d161d886a..1cea969354d 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValuesOnConditionCheckFailure.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ReturnValuesOnConditionCheckFailure.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReturnValuesOnConditionCheckFailureMapper { - static const int ALL_OLD_HASH = HashingUtils::HashString("ALL_OLD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_OLD_HASH = ConstExprHashingUtils::HashString("ALL_OLD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_OLD_HASH) { return ReturnValuesOnConditionCheckFailure::ALL_OLD; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/S3SseAlgorithm.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/S3SseAlgorithm.cpp index 56ad1d95456..e49c0a88373 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/S3SseAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/S3SseAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3SseAlgorithmMapper { - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); S3SseAlgorithm GetS3SseAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES256_HASH) { return S3SseAlgorithm::AES256; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEStatus.cpp index eb784609ce1..4050f571ad6 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SSEStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); SSEStatus GetSSEStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return SSEStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEType.cpp index eadc1f1a978..8748de9c49f 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/SSEType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SSETypeMapper { - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); SSEType GetSSETypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES256_HASH) { return SSEType::AES256; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/ScalarAttributeType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/ScalarAttributeType.cpp index 92f3870c33f..1c5a611442f 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/ScalarAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/ScalarAttributeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScalarAttributeTypeMapper { - static const int S_HASH = HashingUtils::HashString("S"); - static const int N_HASH = HashingUtils::HashString("N"); - static const int B_HASH = HashingUtils::HashString("B"); + static constexpr uint32_t S_HASH = ConstExprHashingUtils::HashString("S"); + static constexpr uint32_t N_HASH = ConstExprHashingUtils::HashString("N"); + static constexpr uint32_t B_HASH = ConstExprHashingUtils::HashString("B"); ScalarAttributeType GetScalarAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S_HASH) { return ScalarAttributeType::S; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/Select.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/Select.cpp index 63ed4c812bd..034487c93c3 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/Select.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/Select.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SelectMapper { - static const int ALL_ATTRIBUTES_HASH = HashingUtils::HashString("ALL_ATTRIBUTES"); - static const int ALL_PROJECTED_ATTRIBUTES_HASH = HashingUtils::HashString("ALL_PROJECTED_ATTRIBUTES"); - static const int SPECIFIC_ATTRIBUTES_HASH = HashingUtils::HashString("SPECIFIC_ATTRIBUTES"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); + static constexpr uint32_t ALL_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("ALL_ATTRIBUTES"); + static constexpr uint32_t ALL_PROJECTED_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("ALL_PROJECTED_ATTRIBUTES"); + static constexpr uint32_t SPECIFIC_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("SPECIFIC_ATTRIBUTES"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); Select GetSelectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_ATTRIBUTES_HASH) { return Select::ALL_ATTRIBUTES; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/StreamViewType.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/StreamViewType.cpp index 88bc4352bed..f3148fccfb4 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/StreamViewType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/StreamViewType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StreamViewTypeMapper { - static const int NEW_IMAGE_HASH = HashingUtils::HashString("NEW_IMAGE"); - static const int OLD_IMAGE_HASH = HashingUtils::HashString("OLD_IMAGE"); - static const int NEW_AND_OLD_IMAGES_HASH = HashingUtils::HashString("NEW_AND_OLD_IMAGES"); - static const int KEYS_ONLY_HASH = HashingUtils::HashString("KEYS_ONLY"); + static constexpr uint32_t NEW_IMAGE_HASH = ConstExprHashingUtils::HashString("NEW_IMAGE"); + static constexpr uint32_t OLD_IMAGE_HASH = ConstExprHashingUtils::HashString("OLD_IMAGE"); + static constexpr uint32_t NEW_AND_OLD_IMAGES_HASH = ConstExprHashingUtils::HashString("NEW_AND_OLD_IMAGES"); + static constexpr uint32_t KEYS_ONLY_HASH = ConstExprHashingUtils::HashString("KEYS_ONLY"); StreamViewType GetStreamViewTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW_IMAGE_HASH) { return StreamViewType::NEW_IMAGE; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableClass.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableClass.cpp index bef1a0af307..a526cc41a8e 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableClass.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TableClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int STANDARD_INFREQUENT_ACCESS_HASH = HashingUtils::HashString("STANDARD_INFREQUENT_ACCESS"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t STANDARD_INFREQUENT_ACCESS_HASH = ConstExprHashingUtils::HashString("STANDARD_INFREQUENT_ACCESS"); TableClass GetTableClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return TableClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableStatus.cpp index b1ef754c131..ec4b0b72aa5 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/TableStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/TableStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TableStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACCESSIBLE_ENCRYPTION_CREDENTIALS_HASH = HashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDENTIALS"); - static const int ARCHIVING_HASH = HashingUtils::HashString("ARCHIVING"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACCESSIBLE_ENCRYPTION_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDENTIALS"); + static constexpr uint32_t ARCHIVING_HASH = ConstExprHashingUtils::HashString("ARCHIVING"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); TableStatus GetTableStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return TableStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/model/TimeToLiveStatus.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/model/TimeToLiveStatus.cpp index d13fe032ea5..b3a63e34615 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/model/TimeToLiveStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/model/TimeToLiveStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TimeToLiveStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); TimeToLiveStatus GetTimeToLiveStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return TimeToLiveStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsErrors.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsErrors.cpp index 37f5c075633..4fe8d08c430 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsErrors.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsErrors.cpp @@ -18,14 +18,14 @@ namespace DynamoDBStreams namespace DynamoDBStreamsErrorMapper { -static const int TRIMMED_DATA_ACCESS_HASH = HashingUtils::HashString("TrimmedDataAccessException"); -static const int EXPIRED_ITERATOR_HASH = HashingUtils::HashString("ExpiredIteratorException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TRIMMED_DATA_ACCESS_HASH = ConstExprHashingUtils::HashString("TrimmedDataAccessException"); +static constexpr uint32_t EXPIRED_ITERATOR_HASH = ConstExprHashingUtils::HashString("ExpiredIteratorException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TRIMMED_DATA_ACCESS_HASH) { diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/KeyType.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/KeyType.cpp index 3cdb44f60df..9d96cd6c868 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/KeyType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/KeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyTypeMapper { - static const int HASH_HASH = HashingUtils::HashString("HASH"); - static const int RANGE_HASH = HashingUtils::HashString("RANGE"); + static constexpr uint32_t HASH_HASH = ConstExprHashingUtils::HashString("HASH"); + static constexpr uint32_t RANGE_HASH = ConstExprHashingUtils::HashString("RANGE"); KeyType GetKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HASH_HASH) { return KeyType::HASH; diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/OperationType.cpp index f7d23ba2a44..f95ec7f8898 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/OperationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperationTypeMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int MODIFY_HASH = HashingUtils::HashString("MODIFY"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t MODIFY_HASH = ConstExprHashingUtils::HashString("MODIFY"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return OperationType::INSERT; diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/ShardIteratorType.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/ShardIteratorType.cpp index fed4a014a72..0573d2c664c 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/ShardIteratorType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/ShardIteratorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ShardIteratorTypeMapper { - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); - static const int AT_SEQUENCE_NUMBER_HASH = HashingUtils::HashString("AT_SEQUENCE_NUMBER"); - static const int AFTER_SEQUENCE_NUMBER_HASH = HashingUtils::HashString("AFTER_SEQUENCE_NUMBER"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); + static constexpr uint32_t AT_SEQUENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("AT_SEQUENCE_NUMBER"); + static constexpr uint32_t AFTER_SEQUENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("AFTER_SEQUENCE_NUMBER"); ShardIteratorType GetShardIteratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRIM_HORIZON_HASH) { return ShardIteratorType::TRIM_HORIZON; diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamStatus.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamStatus.cpp index af74d190470..250ad831ee2 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamStatus.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StreamStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); StreamStatus GetStreamStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return StreamStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamViewType.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamViewType.cpp index d4f96a3dcc8..2ab1e0fa5ce 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamViewType.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/model/StreamViewType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StreamViewTypeMapper { - static const int NEW_IMAGE_HASH = HashingUtils::HashString("NEW_IMAGE"); - static const int OLD_IMAGE_HASH = HashingUtils::HashString("OLD_IMAGE"); - static const int NEW_AND_OLD_IMAGES_HASH = HashingUtils::HashString("NEW_AND_OLD_IMAGES"); - static const int KEYS_ONLY_HASH = HashingUtils::HashString("KEYS_ONLY"); + static constexpr uint32_t NEW_IMAGE_HASH = ConstExprHashingUtils::HashString("NEW_IMAGE"); + static constexpr uint32_t OLD_IMAGE_HASH = ConstExprHashingUtils::HashString("OLD_IMAGE"); + static constexpr uint32_t NEW_AND_OLD_IMAGES_HASH = ConstExprHashingUtils::HashString("NEW_AND_OLD_IMAGES"); + static constexpr uint32_t KEYS_ONLY_HASH = ConstExprHashingUtils::HashString("KEYS_ONLY"); StreamViewType GetStreamViewTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW_IMAGE_HASH) { return StreamViewType::NEW_IMAGE; diff --git a/generated/src/aws-cpp-sdk-ebs/source/EBSErrors.cpp b/generated/src/aws-cpp-sdk-ebs/source/EBSErrors.cpp index 327cf396ba4..a587fc85103 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/EBSErrors.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/EBSErrors.cpp @@ -54,15 +54,15 @@ template<> AWS_EBS_API AccessDeniedException EBSError::GetModeledError() namespace EBSErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int CONCURRENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ConcurrentLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONCURRENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ConcurrentLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/AccessDeniedExceptionReason.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/AccessDeniedExceptionReason.cpp index bd45116d531..ee52bfacf05 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/AccessDeniedExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/AccessDeniedExceptionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessDeniedExceptionReasonMapper { - static const int UNAUTHORIZED_ACCOUNT_HASH = HashingUtils::HashString("UNAUTHORIZED_ACCOUNT"); - static const int DEPENDENCY_ACCESS_DENIED_HASH = HashingUtils::HashString("DEPENDENCY_ACCESS_DENIED"); + static constexpr uint32_t UNAUTHORIZED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("UNAUTHORIZED_ACCOUNT"); + static constexpr uint32_t DEPENDENCY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_ACCESS_DENIED"); AccessDeniedExceptionReason GetAccessDeniedExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNAUTHORIZED_ACCOUNT_HASH) { return AccessDeniedExceptionReason::UNAUTHORIZED_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAggregationMethod.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAggregationMethod.cpp index 4c3780e53d3..4dfd4d3c9d2 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAggregationMethod.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAggregationMethod.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ChecksumAggregationMethodMapper { - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); ChecksumAggregationMethod GetChecksumAggregationMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINEAR_HASH) { return ChecksumAggregationMethod::LINEAR; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAlgorithm.cpp index 2e156178583..61f6e181cea 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/ChecksumAlgorithm.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ChecksumAlgorithmMapper { - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); ChecksumAlgorithm GetChecksumAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA256_HASH) { return ChecksumAlgorithm::SHA256; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/RequestThrottledExceptionReason.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/RequestThrottledExceptionReason.cpp index 3fdfaedb071..44b863a59e9 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/RequestThrottledExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/RequestThrottledExceptionReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequestThrottledExceptionReasonMapper { - static const int ACCOUNT_THROTTLED_HASH = HashingUtils::HashString("ACCOUNT_THROTTLED"); - static const int DEPENDENCY_REQUEST_THROTTLED_HASH = HashingUtils::HashString("DEPENDENCY_REQUEST_THROTTLED"); - static const int RESOURCE_LEVEL_THROTTLE_HASH = HashingUtils::HashString("RESOURCE_LEVEL_THROTTLE"); + static constexpr uint32_t ACCOUNT_THROTTLED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_THROTTLED"); + static constexpr uint32_t DEPENDENCY_REQUEST_THROTTLED_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_REQUEST_THROTTLED"); + static constexpr uint32_t RESOURCE_LEVEL_THROTTLE_HASH = ConstExprHashingUtils::HashString("RESOURCE_LEVEL_THROTTLE"); RequestThrottledExceptionReason GetRequestThrottledExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_THROTTLED_HASH) { return RequestThrottledExceptionReason::ACCOUNT_THROTTLED; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/ResourceNotFoundExceptionReason.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/ResourceNotFoundExceptionReason.cpp index 0b670f17252..d6b7b2b5077 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/ResourceNotFoundExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/ResourceNotFoundExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceNotFoundExceptionReasonMapper { - static const int SNAPSHOT_NOT_FOUND_HASH = HashingUtils::HashString("SNAPSHOT_NOT_FOUND"); - static const int GRANT_NOT_FOUND_HASH = HashingUtils::HashString("GRANT_NOT_FOUND"); - static const int DEPENDENCY_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("DEPENDENCY_RESOURCE_NOT_FOUND"); - static const int IMAGE_NOT_FOUND_HASH = HashingUtils::HashString("IMAGE_NOT_FOUND"); + static constexpr uint32_t SNAPSHOT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_NOT_FOUND"); + static constexpr uint32_t GRANT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("GRANT_NOT_FOUND"); + static constexpr uint32_t DEPENDENCY_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_RESOURCE_NOT_FOUND"); + static constexpr uint32_t IMAGE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("IMAGE_NOT_FOUND"); ResourceNotFoundExceptionReason GetResourceNotFoundExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNAPSHOT_NOT_FOUND_HASH) { return ResourceNotFoundExceptionReason::SNAPSHOT_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/SSEType.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/SSEType.cpp index 25e824f8f10..92cc69e7f78 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/SSEType.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/SSEType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SSETypeMapper { - static const int sse_ebs_HASH = HashingUtils::HashString("sse-ebs"); - static const int sse_kms_HASH = HashingUtils::HashString("sse-kms"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t sse_ebs_HASH = ConstExprHashingUtils::HashString("sse-ebs"); + static constexpr uint32_t sse_kms_HASH = ConstExprHashingUtils::HashString("sse-kms"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); SSEType GetSSETypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sse_ebs_HASH) { return SSEType::sse_ebs; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/ServiceQuotaExceededExceptionReason.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/ServiceQuotaExceededExceptionReason.cpp index bfa6f7840d7..4c17f97da12 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/ServiceQuotaExceededExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/ServiceQuotaExceededExceptionReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceQuotaExceededExceptionReasonMapper { - static const int DEPENDENCY_SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("DEPENDENCY_SERVICE_QUOTA_EXCEEDED"); + static constexpr uint32_t DEPENDENCY_SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_SERVICE_QUOTA_EXCEEDED"); ServiceQuotaExceededExceptionReason GetServiceQuotaExceededExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPENDENCY_SERVICE_QUOTA_EXCEEDED_HASH) { return ServiceQuotaExceededExceptionReason::DEPENDENCY_SERVICE_QUOTA_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/Status.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/Status.cpp index 1529fd0a8ef..aaa027a756c 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int error_HASH = HashingUtils::HashString("error"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == completed_HASH) { return Status::completed; diff --git a/generated/src/aws-cpp-sdk-ebs/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-ebs/source/model/ValidationExceptionReason.cpp index f853d36c8ac..5949f52cca7 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/model/ValidationExceptionReason.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int INVALID_CUSTOMER_KEY_HASH = HashingUtils::HashString("INVALID_CUSTOMER_KEY"); - static const int INVALID_PAGE_TOKEN_HASH = HashingUtils::HashString("INVALID_PAGE_TOKEN"); - static const int INVALID_BLOCK_TOKEN_HASH = HashingUtils::HashString("INVALID_BLOCK_TOKEN"); - static const int INVALID_GRANT_TOKEN_HASH = HashingUtils::HashString("INVALID_GRANT_TOKEN"); - static const int INVALID_SNAPSHOT_ID_HASH = HashingUtils::HashString("INVALID_SNAPSHOT_ID"); - static const int UNRELATED_SNAPSHOTS_HASH = HashingUtils::HashString("UNRELATED_SNAPSHOTS"); - static const int INVALID_BLOCK_HASH = HashingUtils::HashString("INVALID_BLOCK"); - static const int INVALID_CONTENT_ENCODING_HASH = HashingUtils::HashString("INVALID_CONTENT_ENCODING"); - static const int INVALID_TAG_HASH = HashingUtils::HashString("INVALID_TAG"); - static const int INVALID_DEPENDENCY_REQUEST_HASH = HashingUtils::HashString("INVALID_DEPENDENCY_REQUEST"); - static const int INVALID_PARAMETER_VALUE_HASH = HashingUtils::HashString("INVALID_PARAMETER_VALUE"); - static const int INVALID_VOLUME_SIZE_HASH = HashingUtils::HashString("INVALID_VOLUME_SIZE"); - static const int CONFLICTING_BLOCK_UPDATE_HASH = HashingUtils::HashString("CONFLICTING_BLOCK_UPDATE"); - static const int INVALID_IMAGE_ID_HASH = HashingUtils::HashString("INVALID_IMAGE_ID"); - static const int WRITE_REQUEST_TIMEOUT_HASH = HashingUtils::HashString("WRITE_REQUEST_TIMEOUT"); + static constexpr uint32_t INVALID_CUSTOMER_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_CUSTOMER_KEY"); + static constexpr uint32_t INVALID_PAGE_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_PAGE_TOKEN"); + static constexpr uint32_t INVALID_BLOCK_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_BLOCK_TOKEN"); + static constexpr uint32_t INVALID_GRANT_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_GRANT_TOKEN"); + static constexpr uint32_t INVALID_SNAPSHOT_ID_HASH = ConstExprHashingUtils::HashString("INVALID_SNAPSHOT_ID"); + static constexpr uint32_t UNRELATED_SNAPSHOTS_HASH = ConstExprHashingUtils::HashString("UNRELATED_SNAPSHOTS"); + static constexpr uint32_t INVALID_BLOCK_HASH = ConstExprHashingUtils::HashString("INVALID_BLOCK"); + static constexpr uint32_t INVALID_CONTENT_ENCODING_HASH = ConstExprHashingUtils::HashString("INVALID_CONTENT_ENCODING"); + static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("INVALID_TAG"); + static constexpr uint32_t INVALID_DEPENDENCY_REQUEST_HASH = ConstExprHashingUtils::HashString("INVALID_DEPENDENCY_REQUEST"); + static constexpr uint32_t INVALID_PARAMETER_VALUE_HASH = ConstExprHashingUtils::HashString("INVALID_PARAMETER_VALUE"); + static constexpr uint32_t INVALID_VOLUME_SIZE_HASH = ConstExprHashingUtils::HashString("INVALID_VOLUME_SIZE"); + static constexpr uint32_t CONFLICTING_BLOCK_UPDATE_HASH = ConstExprHashingUtils::HashString("CONFLICTING_BLOCK_UPDATE"); + static constexpr uint32_t INVALID_IMAGE_ID_HASH = ConstExprHashingUtils::HashString("INVALID_IMAGE_ID"); + static constexpr uint32_t WRITE_REQUEST_TIMEOUT_HASH = ConstExprHashingUtils::HashString("WRITE_REQUEST_TIMEOUT"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_CUSTOMER_KEY_HASH) { return ValidationExceptionReason::INVALID_CUSTOMER_KEY; diff --git a/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectErrors.cpp b/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectErrors.cpp index f0db47b6731..d43c05ed004 100644 --- a/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectErrors.cpp +++ b/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectErrors.cpp @@ -18,21 +18,21 @@ namespace EC2InstanceConnect namespace EC2InstanceConnectErrorMapper { -static const int INVALID_ARGS_HASH = HashingUtils::HashString("InvalidArgsException"); -static const int E_C2_INSTANCE_STATE_INVALID_HASH = HashingUtils::HashString("EC2InstanceStateInvalidException"); -static const int SERIAL_CONSOLE_SESSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SerialConsoleSessionLimitExceededException"); -static const int SERIAL_CONSOLE_SESSION_UNAVAILABLE_HASH = HashingUtils::HashString("SerialConsoleSessionUnavailableException"); -static const int SERIAL_CONSOLE_ACCESS_DISABLED_HASH = HashingUtils::HashString("SerialConsoleAccessDisabledException"); -static const int E_C2_INSTANCE_UNAVAILABLE_HASH = HashingUtils::HashString("EC2InstanceUnavailableException"); -static const int E_C2_INSTANCE_TYPE_INVALID_HASH = HashingUtils::HashString("EC2InstanceTypeInvalidException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int AUTH_HASH = HashingUtils::HashString("AuthException"); -static const int E_C2_INSTANCE_NOT_FOUND_HASH = HashingUtils::HashString("EC2InstanceNotFoundException"); +static constexpr uint32_t INVALID_ARGS_HASH = ConstExprHashingUtils::HashString("InvalidArgsException"); +static constexpr uint32_t E_C2_INSTANCE_STATE_INVALID_HASH = ConstExprHashingUtils::HashString("EC2InstanceStateInvalidException"); +static constexpr uint32_t SERIAL_CONSOLE_SESSION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SerialConsoleSessionLimitExceededException"); +static constexpr uint32_t SERIAL_CONSOLE_SESSION_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("SerialConsoleSessionUnavailableException"); +static constexpr uint32_t SERIAL_CONSOLE_ACCESS_DISABLED_HASH = ConstExprHashingUtils::HashString("SerialConsoleAccessDisabledException"); +static constexpr uint32_t E_C2_INSTANCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("EC2InstanceUnavailableException"); +static constexpr uint32_t E_C2_INSTANCE_TYPE_INVALID_HASH = ConstExprHashingUtils::HashString("EC2InstanceTypeInvalidException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t AUTH_HASH = ConstExprHashingUtils::HashString("AuthException"); +static constexpr uint32_t E_C2_INSTANCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EC2InstanceNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_ARGS_HASH) { diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp index 06d1e5d7a9d..0f046409784 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp @@ -28,16 +28,16 @@ #include #include #include -#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include #include @@ -54,14 +54,14 @@ #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include @@ -69,51 +69,51 @@ #include #include #include -#include #include -#include -#include +#include #include +#include +#include #include #include #include #include -#include #include +#include #include #include #include #include #include -#include -#include #include +#include +#include #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include #include #include #include -#include #include -#include +#include #include +#include #include #include #include @@ -437,52 +437,52 @@ CreateNatGatewayOutcome EC2Client::CreateNatGateway(const CreateNatGatewayReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateIpamScopeOutcome EC2Client::CreateIpamScope(const CreateIpamScopeRequest& request) const +CreateCapacityReservationFleetOutcome EC2Client::CreateCapacityReservationFleet(const CreateCapacityReservationFleetRequest& request) const { - AWS_OPERATION_GUARD(CreateIpamScope); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateCapacityReservationFleet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCapacityReservationFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCapacityReservationFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateCapacityReservationFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateIpamScopeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateCapacityReservationFleetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateIpamScopeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCapacityReservationFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateCapacityReservationFleetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateCapacityReservationFleetOutcome EC2Client::CreateCapacityReservationFleet(const CreateCapacityReservationFleetRequest& request) const +CreateIpamScopeOutcome EC2Client::CreateIpamScope(const CreateIpamScopeRequest& request) const { - AWS_OPERATION_GUARD(CreateCapacityReservationFleet); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCapacityReservationFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCapacityReservationFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateIpamScope); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateCapacityReservationFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateCapacityReservationFleetOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateIpamScopeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCapacityReservationFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateCapacityReservationFleetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateIpamScopeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -645,52 +645,52 @@ CreateManagedPrefixListOutcome EC2Client::CreateManagedPrefixList(const CreateMa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateDefaultVpcOutcome EC2Client::CreateDefaultVpc(const CreateDefaultVpcRequest& request) const +CreateCoipPoolOutcome EC2Client::CreateCoipPool(const CreateCoipPoolRequest& request) const { - AWS_OPERATION_GUARD(CreateDefaultVpc); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDefaultVpc, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDefaultVpc, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateCoipPool); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateDefaultVpc, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateDefaultVpcOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateCoipPoolOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDefaultVpc, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateDefaultVpcOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateCoipPoolOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateCoipPoolOutcome EC2Client::CreateCoipPool(const CreateCoipPoolRequest& request) const +CreateDefaultVpcOutcome EC2Client::CreateDefaultVpc(const CreateDefaultVpcRequest& request) const { - AWS_OPERATION_GUARD(CreateCoipPool); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateDefaultVpc); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDefaultVpc, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDefaultVpc, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateDefaultVpc, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateCoipPoolOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateDefaultVpcOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateCoipPoolOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDefaultVpc, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateDefaultVpcOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1113,52 +1113,52 @@ AssociateVpcCidrBlockOutcome EC2Client::AssociateVpcCidrBlock(const AssociateVpc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateTransitGatewayRouteTableOutcome EC2Client::AssociateTransitGatewayRouteTable(const AssociateTransitGatewayRouteTableRequest& request) const +AcceptVpcPeeringConnectionOutcome EC2Client::AcceptVpcPeeringConnection(const AcceptVpcPeeringConnectionRequest& request) const { - AWS_OPERATION_GUARD(AssociateTransitGatewayRouteTable); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AcceptVpcPeeringConnection); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateTransitGatewayRouteTableOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AcceptVpcPeeringConnectionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AssociateTransitGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AcceptVpcPeeringConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AcceptVpcPeeringConnectionOutcome EC2Client::AcceptVpcPeeringConnection(const AcceptVpcPeeringConnectionRequest& request) const +AssociateTransitGatewayRouteTableOutcome EC2Client::AssociateTransitGatewayRouteTable(const AssociateTransitGatewayRouteTableRequest& request) const { - AWS_OPERATION_GUARD(AcceptVpcPeeringConnection); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateTransitGatewayRouteTable); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AcceptVpcPeeringConnectionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateTransitGatewayRouteTableOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AcceptVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AcceptVpcPeeringConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AssociateTransitGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1269,52 +1269,52 @@ CancelImportTaskOutcome EC2Client::CancelImportTask(const CancelImportTaskReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CancelConversionTaskOutcome EC2Client::CancelConversionTask(const CancelConversionTaskRequest& request) const +AssociateTransitGatewayPolicyTableOutcome EC2Client::AssociateTransitGatewayPolicyTable(const AssociateTransitGatewayPolicyTableRequest& request) const { - AWS_OPERATION_GUARD(CancelConversionTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelConversionTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelConversionTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateTransitGatewayPolicyTable); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CancelConversionTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CancelConversionTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateTransitGatewayPolicyTableOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelConversionTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CancelConversionTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AssociateTransitGatewayPolicyTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateTransitGatewayPolicyTableOutcome EC2Client::AssociateTransitGatewayPolicyTable(const AssociateTransitGatewayPolicyTableRequest& request) const +CancelConversionTaskOutcome EC2Client::CancelConversionTask(const CancelConversionTaskRequest& request) const { - AWS_OPERATION_GUARD(AssociateTransitGatewayPolicyTable); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CancelConversionTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelConversionTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelConversionTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CancelConversionTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateTransitGatewayPolicyTableOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CancelConversionTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AssociateTransitGatewayPolicyTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelConversionTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CancelConversionTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1503,78 +1503,78 @@ AssociateNatGatewayAddressOutcome EC2Client::AssociateNatGatewayAddress(const As {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateLocalGatewayRouteTableOutcome EC2Client::CreateLocalGatewayRouteTable(const CreateLocalGatewayRouteTableRequest& request) const +AttachVpnGatewayOutcome EC2Client::AttachVpnGateway(const AttachVpnGatewayRequest& request) const { - AWS_OPERATION_GUARD(CreateLocalGatewayRouteTable); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AttachVpnGateway); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AttachVpnGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AttachVpnGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AttachVpnGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateLocalGatewayRouteTableOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AttachVpnGatewayOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateLocalGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AttachVpnGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AttachVpnGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AttachVpnGatewayOutcome EC2Client::AttachVpnGateway(const AttachVpnGatewayRequest& request) const +CreateLocalGatewayRouteTableOutcome EC2Client::CreateLocalGatewayRouteTable(const CreateLocalGatewayRouteTableRequest& request) const { - AWS_OPERATION_GUARD(AttachVpnGateway); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AttachVpnGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AttachVpnGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateLocalGatewayRouteTable); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AttachVpnGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AttachVpnGatewayOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateLocalGatewayRouteTableOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AttachVpnGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AttachVpnGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLocalGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateLocalGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateEgressOnlyInternetGatewayOutcome EC2Client::CreateEgressOnlyInternetGateway(const CreateEgressOnlyInternetGatewayRequest& request) const +AssociateClientVpnTargetNetworkOutcome EC2Client::AssociateClientVpnTargetNetwork(const AssociateClientVpnTargetNetworkRequest& request) const { - AWS_OPERATION_GUARD(CreateEgressOnlyInternetGateway); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateClientVpnTargetNetwork); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateEgressOnlyInternetGatewayOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateClientVpnTargetNetworkOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateEgressOnlyInternetGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AssociateClientVpnTargetNetworkOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1607,26 +1607,26 @@ AssociateTrunkInterfaceOutcome EC2Client::AssociateTrunkInterface(const Associat {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateClientVpnTargetNetworkOutcome EC2Client::AssociateClientVpnTargetNetwork(const AssociateClientVpnTargetNetworkRequest& request) const +CreateEgressOnlyInternetGatewayOutcome EC2Client::CreateEgressOnlyInternetGateway(const CreateEgressOnlyInternetGatewayRequest& request) const { - AWS_OPERATION_GUARD(AssociateClientVpnTargetNetwork); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateEgressOnlyInternetGateway); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateClientVpnTargetNetworkOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateEgressOnlyInternetGatewayOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateClientVpnTargetNetwork, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AssociateClientVpnTargetNetworkOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateEgressOnlyInternetGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1737,52 +1737,52 @@ AcceptTransitGatewayPeeringAttachmentOutcome EC2Client::AcceptTransitGatewayPeer {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateLaunchTemplateOutcome EC2Client::CreateLaunchTemplate(const CreateLaunchTemplateRequest& request) const +CancelImageLaunchPermissionOutcome EC2Client::CancelImageLaunchPermission(const CancelImageLaunchPermissionRequest& request) const { - AWS_OPERATION_GUARD(CreateLaunchTemplate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLaunchTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLaunchTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CancelImageLaunchPermission); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelImageLaunchPermission, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelImageLaunchPermission, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateLaunchTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CancelImageLaunchPermission, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateLaunchTemplateOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CancelImageLaunchPermissionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLaunchTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateLaunchTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelImageLaunchPermission, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CancelImageLaunchPermissionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CancelImageLaunchPermissionOutcome EC2Client::CancelImageLaunchPermission(const CancelImageLaunchPermissionRequest& request) const +CreateLaunchTemplateOutcome EC2Client::CreateLaunchTemplate(const CreateLaunchTemplateRequest& request) const { - AWS_OPERATION_GUARD(CancelImageLaunchPermission); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelImageLaunchPermission, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelImageLaunchPermission, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateLaunchTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLaunchTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLaunchTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CancelImageLaunchPermission, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateLaunchTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CancelImageLaunchPermissionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateLaunchTemplateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelImageLaunchPermission, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CancelImageLaunchPermissionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLaunchTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateLaunchTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1930,26 +1930,26 @@ CopySnapshotOutcome EC2Client::CopySnapshot(const CopySnapshotRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateCarrierGatewayOutcome EC2Client::CreateCarrierGateway(const CreateCarrierGatewayRequest& request) const +AcceptAddressTransferOutcome EC2Client::AcceptAddressTransfer(const AcceptAddressTransferRequest& request) const { - AWS_OPERATION_GUARD(CreateCarrierGateway); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCarrierGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCarrierGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AcceptAddressTransfer); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateCarrierGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AcceptAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateCarrierGatewayOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AcceptAddressTransferOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCarrierGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateCarrierGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AcceptAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AcceptAddressTransferOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1982,26 +1982,26 @@ CancelBundleTaskOutcome EC2Client::CancelBundleTask(const CancelBundleTaskReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AcceptAddressTransferOutcome EC2Client::AcceptAddressTransfer(const AcceptAddressTransferRequest& request) const +CreateCarrierGatewayOutcome EC2Client::CreateCarrierGateway(const CreateCarrierGatewayRequest& request) const { - AWS_OPERATION_GUARD(AcceptAddressTransfer); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateCarrierGateway); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCarrierGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCarrierGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AcceptAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateCarrierGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AcceptAddressTransferOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateCarrierGatewayOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AcceptAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AcceptAddressTransferOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCarrierGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateCarrierGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2086,52 +2086,52 @@ CreateNetworkAclOutcome EC2Client::CreateNetworkAcl(const CreateNetworkAclReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutcome EC2Client::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(const CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest& request) const +CreateLocalGatewayRouteOutcome EC2Client::CreateLocalGatewayRoute(const CreateLocalGatewayRouteRequest& request) const { - AWS_OPERATION_GUARD(CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateLocalGatewayRoute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateLocalGatewayRouteOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateLocalGatewayRouteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateLocalGatewayRouteOutcome EC2Client::CreateLocalGatewayRoute(const CreateLocalGatewayRouteRequest& request) const +CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutcome EC2Client::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(const CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest& request) const { - AWS_OPERATION_GUARD(CreateLocalGatewayRoute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateLocalGatewayRouteOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateLocalGatewayRouteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2216,52 +2216,52 @@ AuthorizeClientVpnIngressOutcome EC2Client::AuthorizeClientVpnIngress(const Auth {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AttachVerifiedAccessTrustProviderOutcome EC2Client::AttachVerifiedAccessTrustProvider(const AttachVerifiedAccessTrustProviderRequest& request) const +AcceptReservedInstancesExchangeQuoteOutcome EC2Client::AcceptReservedInstancesExchangeQuote(const AcceptReservedInstancesExchangeQuoteRequest& request) const { - AWS_OPERATION_GUARD(AttachVerifiedAccessTrustProvider); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AcceptReservedInstancesExchangeQuote); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AttachVerifiedAccessTrustProviderOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AcceptReservedInstancesExchangeQuoteOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AttachVerifiedAccessTrustProviderOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AcceptReservedInstancesExchangeQuoteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AcceptReservedInstancesExchangeQuoteOutcome EC2Client::AcceptReservedInstancesExchangeQuote(const AcceptReservedInstancesExchangeQuoteRequest& request) const +AttachVerifiedAccessTrustProviderOutcome EC2Client::AttachVerifiedAccessTrustProvider(const AttachVerifiedAccessTrustProviderRequest& request) const { - AWS_OPERATION_GUARD(AcceptReservedInstancesExchangeQuote); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AttachVerifiedAccessTrustProvider); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AcceptReservedInstancesExchangeQuoteOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AttachVerifiedAccessTrustProviderOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AcceptReservedInstancesExchangeQuote, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AcceptReservedInstancesExchangeQuoteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AttachVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AttachVerifiedAccessTrustProviderOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2372,52 +2372,52 @@ ApplySecurityGroupsToClientVpnTargetNetworkOutcome EC2Client::ApplySecurityGroup {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreatePlacementGroupOutcome EC2Client::CreatePlacementGroup(const CreatePlacementGroupRequest& request) const +AssociateInstanceEventWindowOutcome EC2Client::AssociateInstanceEventWindow(const AssociateInstanceEventWindowRequest& request) const { - AWS_OPERATION_GUARD(CreatePlacementGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePlacementGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePlacementGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateInstanceEventWindow); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreatePlacementGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AssociateInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreatePlacementGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateInstanceEventWindowOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePlacementGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreatePlacementGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AssociateInstanceEventWindowOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateInstanceEventWindowOutcome EC2Client::AssociateInstanceEventWindow(const AssociateInstanceEventWindowRequest& request) const +CreatePlacementGroupOutcome EC2Client::CreatePlacementGroup(const CreatePlacementGroupRequest& request) const { - AWS_OPERATION_GUARD(AssociateInstanceEventWindow); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreatePlacementGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePlacementGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePlacementGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreatePlacementGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateInstanceEventWindowOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreatePlacementGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AssociateInstanceEventWindowOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePlacementGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreatePlacementGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2580,32 +2580,6 @@ CreateInternetGatewayOutcome EC2Client::CreateInternetGateway(const CreateIntern {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateSubnetCidrBlockOutcome EC2Client::AssociateSubnetCidrBlock(const AssociateSubnetCidrBlockRequest& request) const -{ - AWS_OPERATION_GUARD(AssociateSubnetCidrBlock); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateSubnetCidrBlockOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AssociateSubnetCidrBlockOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - AcceptTransitGatewayMulticastDomainAssociationsOutcome EC2Client::AcceptTransitGatewayMulticastDomainAssociations(const AcceptTransitGatewayMulticastDomainAssociationsRequest& request) const { AWS_OPERATION_GUARD(AcceptTransitGatewayMulticastDomainAssociations); @@ -2632,26 +2606,26 @@ AcceptTransitGatewayMulticastDomainAssociationsOutcome EC2Client::AcceptTransitG {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateNetworkInterfaceOutcome EC2Client::CreateNetworkInterface(const CreateNetworkInterfaceRequest& request) const +AssociateSubnetCidrBlockOutcome EC2Client::AssociateSubnetCidrBlock(const AssociateSubnetCidrBlockRequest& request) const { - AWS_OPERATION_GUARD(CreateNetworkInterface); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateSubnetCidrBlock); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateNetworkInterfaceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateSubnetCidrBlockOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateNetworkInterfaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateSubnetCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AssociateSubnetCidrBlockOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2684,6 +2658,32 @@ AcceptVpcEndpointConnectionsOutcome EC2Client::AcceptVpcEndpointConnections(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateNetworkInterfaceOutcome EC2Client::CreateNetworkInterface(const CreateNetworkInterfaceRequest& request) const +{ + AWS_OPERATION_GUARD(CreateNetworkInterface); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateNetworkInterfaceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateNetworkInterfaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateNetworkInsightsAccessScopeOutcome EC2Client::CreateNetworkInsightsAccessScope(const CreateNetworkInsightsAccessScopeRequest& request) const { AWS_OPERATION_GUARD(CreateNetworkInsightsAccessScope); diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client1.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client1.cpp index 04812b5fda7..2fc9058ca5e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client1.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client1.cpp @@ -23,15 +23,15 @@ #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include @@ -39,67 +39,67 @@ #include #include #include -#include #include -#include +#include #include +#include #include -#include -#include #include -#include +#include +#include #include +#include #include -#include #include -#include +#include #include -#include +#include #include +#include #include #include #include -#include #include +#include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include #include #include -#include -#include #include +#include +#include #include -#include #include +#include #include -#include #include -#include -#include +#include #include +#include +#include #include #include #include -#include #include +#include #include #include #include -#include #include -#include +#include #include +#include #include #include #include @@ -108,13 +108,13 @@ #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include #include #include @@ -189,52 +189,52 @@ DeleteIpamOutcome EC2Client::DeleteIpam(const DeleteIpamRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteNetworkInsightsAnalysisOutcome EC2Client::DeleteNetworkInsightsAnalysis(const DeleteNetworkInsightsAnalysisRequest& request) const +DeleteClientVpnEndpointOutcome EC2Client::DeleteClientVpnEndpoint(const DeleteClientVpnEndpointRequest& request) const { - AWS_OPERATION_GUARD(DeleteNetworkInsightsAnalysis); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteClientVpnEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteNetworkInsightsAnalysisOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteClientVpnEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteNetworkInsightsAnalysisOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteClientVpnEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteClientVpnEndpointOutcome EC2Client::DeleteClientVpnEndpoint(const DeleteClientVpnEndpointRequest& request) const +DeleteNetworkInsightsAnalysisOutcome EC2Client::DeleteNetworkInsightsAnalysis(const DeleteNetworkInsightsAnalysisRequest& request) const { - AWS_OPERATION_GUARD(DeleteClientVpnEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteNetworkInsightsAnalysis); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteClientVpnEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteNetworkInsightsAnalysisOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteClientVpnEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkInsightsAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteNetworkInsightsAnalysisOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -371,52 +371,52 @@ CreateTransitGatewayPeeringAttachmentOutcome EC2Client::CreateTransitGatewayPeer {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteEgressOnlyInternetGatewayOutcome EC2Client::DeleteEgressOnlyInternetGateway(const DeleteEgressOnlyInternetGatewayRequest& request) const +CreateVpcPeeringConnectionOutcome EC2Client::CreateVpcPeeringConnection(const CreateVpcPeeringConnectionRequest& request) const { - AWS_OPERATION_GUARD(DeleteEgressOnlyInternetGateway); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateVpcPeeringConnection); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteEgressOnlyInternetGatewayOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateVpcPeeringConnectionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteEgressOnlyInternetGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateVpcPeeringConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateVpcPeeringConnectionOutcome EC2Client::CreateVpcPeeringConnection(const CreateVpcPeeringConnectionRequest& request) const +DeleteEgressOnlyInternetGatewayOutcome EC2Client::DeleteEgressOnlyInternetGateway(const DeleteEgressOnlyInternetGatewayRequest& request) const { - AWS_OPERATION_GUARD(CreateVpcPeeringConnection); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteEgressOnlyInternetGateway); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateVpcPeeringConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateVpcPeeringConnectionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteEgressOnlyInternetGatewayOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateVpcPeeringConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateVpcPeeringConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteEgressOnlyInternetGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteEgressOnlyInternetGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -605,32 +605,6 @@ DeleteFlowLogsOutcome EC2Client::DeleteFlowLogs(const DeleteFlowLogsRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTransitGatewayRouteTableOutcome EC2Client::DeleteTransitGatewayRouteTable(const DeleteTransitGatewayRouteTableRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteTransitGatewayRouteTable); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTransitGatewayRouteTableOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTransitGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeleteNetworkInsightsAccessScopeOutcome EC2Client::DeleteNetworkInsightsAccessScope(const DeleteNetworkInsightsAccessScopeRequest& request) const { AWS_OPERATION_GUARD(DeleteNetworkInsightsAccessScope); @@ -657,26 +631,26 @@ DeleteNetworkInsightsAccessScopeOutcome EC2Client::DeleteNetworkInsightsAccessSc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteNetworkAclOutcome EC2Client::DeleteNetworkAcl(const DeleteNetworkAclRequest& request) const +DeleteTransitGatewayRouteTableOutcome EC2Client::DeleteTransitGatewayRouteTable(const DeleteTransitGatewayRouteTableRequest& request) const { - AWS_OPERATION_GUARD(DeleteNetworkAcl); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkAcl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkAcl, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTransitGatewayRouteTable); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkAcl, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteNetworkAclOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTransitGatewayRouteTableOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkAcl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteNetworkAclOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTransitGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -709,6 +683,32 @@ CreateTagsOutcome EC2Client::CreateTags(const CreateTagsRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteNetworkAclOutcome EC2Client::DeleteNetworkAcl(const DeleteNetworkAclRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteNetworkAcl); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkAcl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkAcl, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkAcl, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteNetworkAclOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkAcl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteNetworkAclOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteTransitGatewayConnectPeerOutcome EC2Client::DeleteTransitGatewayConnectPeer(const DeleteTransitGatewayConnectPeerRequest& request) const { AWS_OPERATION_GUARD(DeleteTransitGatewayConnectPeer); @@ -735,26 +735,26 @@ DeleteTransitGatewayConnectPeerOutcome EC2Client::DeleteTransitGatewayConnectPee {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTransitGatewayPolicyTableOutcome EC2Client::DeleteTransitGatewayPolicyTable(const DeleteTransitGatewayPolicyTableRequest& request) const +CreateSnapshotOutcome EC2Client::CreateSnapshot(const CreateSnapshotRequest& request) const { - AWS_OPERATION_GUARD(DeleteTransitGatewayPolicyTable); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateSnapshot); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTransitGatewayPolicyTableOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateSnapshotOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTransitGatewayPolicyTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateSnapshotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -787,52 +787,26 @@ DeleteInstanceConnectEndpointOutcome EC2Client::DeleteInstanceConnectEndpoint(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateSnapshotOutcome EC2Client::CreateSnapshot(const CreateSnapshotRequest& request) const -{ - AWS_OPERATION_GUARD(CreateSnapshot); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateSnapshotOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateSnapshotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -DeleteKeyPairOutcome EC2Client::DeleteKeyPair(const DeleteKeyPairRequest& request) const +DeleteTransitGatewayPolicyTableOutcome EC2Client::DeleteTransitGatewayPolicyTable(const DeleteTransitGatewayPolicyTableRequest& request) const { - AWS_OPERATION_GUARD(DeleteKeyPair); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTransitGatewayPolicyTable); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteKeyPairOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTransitGatewayPolicyTableOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteKeyPairOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayPolicyTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTransitGatewayPolicyTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -865,52 +839,52 @@ CreateVpcEndpointServiceConfigurationOutcome EC2Client::CreateVpcEndpointService {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTransitGatewayVpcAttachmentOutcome EC2Client::CreateTransitGatewayVpcAttachment(const CreateTransitGatewayVpcAttachmentRequest& request) const +DeleteKeyPairOutcome EC2Client::DeleteKeyPair(const DeleteKeyPairRequest& request) const { - AWS_OPERATION_GUARD(CreateTransitGatewayVpcAttachment); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteKeyPair); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTransitGatewayVpcAttachmentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteKeyPairOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateTransitGatewayVpcAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteKeyPairOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteNetworkInterfaceOutcome EC2Client::DeleteNetworkInterface(const DeleteNetworkInterfaceRequest& request) const +CreateTransitGatewayVpcAttachmentOutcome EC2Client::CreateTransitGatewayVpcAttachment(const CreateTransitGatewayVpcAttachmentRequest& request) const { - AWS_OPERATION_GUARD(DeleteNetworkInterface); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateTransitGatewayVpcAttachment); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteNetworkInterfaceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTransitGatewayVpcAttachmentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteNetworkInterfaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateTransitGatewayVpcAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -943,26 +917,26 @@ DeleteFleetsOutcome EC2Client::DeleteFleets(const DeleteFleetsRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteSnapshotOutcome EC2Client::DeleteSnapshot(const DeleteSnapshotRequest& request) const +DeleteNetworkInterfaceOutcome EC2Client::DeleteNetworkInterface(const DeleteNetworkInterfaceRequest& request) const { - AWS_OPERATION_GUARD(DeleteSnapshot); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteNetworkInterface); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkInterface, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteSnapshotOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteNetworkInterfaceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteSnapshotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkInterface, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteNetworkInterfaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -995,26 +969,26 @@ CreateTransitGatewayRouteTableOutcome EC2Client::CreateTransitGatewayRouteTable( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteSecurityGroupOutcome EC2Client::DeleteSecurityGroup(const DeleteSecurityGroupRequest& request) const +DeleteSnapshotOutcome EC2Client::DeleteSnapshot(const DeleteSnapshotRequest& request) const { - AWS_OPERATION_GUARD(DeleteSecurityGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteSnapshot); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteSnapshot, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteSecurityGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteSnapshotOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteSecurityGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSnapshot, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteSnapshotOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1047,6 +1021,32 @@ DeleteLaunchTemplateOutcome EC2Client::DeleteLaunchTemplate(const DeleteLaunchTe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteSecurityGroupOutcome EC2Client::DeleteSecurityGroup(const DeleteSecurityGroupRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteSecurityGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteSecurityGroupOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteSecurityGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteTrafficMirrorSessionOutcome EC2Client::DeleteTrafficMirrorSession(const DeleteTrafficMirrorSessionRequest& request) const { AWS_OPERATION_GUARD(DeleteTrafficMirrorSession); @@ -1125,52 +1125,52 @@ DeleteInternetGatewayOutcome EC2Client::DeleteInternetGateway(const DeleteIntern {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteVerifiedAccessGroupOutcome EC2Client::DeleteVerifiedAccessGroup(const DeleteVerifiedAccessGroupRequest& request) const +DeleteTrafficMirrorFilterOutcome EC2Client::DeleteTrafficMirrorFilter(const DeleteTrafficMirrorFilterRequest& request) const { - AWS_OPERATION_GUARD(DeleteVerifiedAccessGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTrafficMirrorFilter); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteVerifiedAccessGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTrafficMirrorFilterOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteVerifiedAccessGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTrafficMirrorFilterOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTrafficMirrorFilterOutcome EC2Client::DeleteTrafficMirrorFilter(const DeleteTrafficMirrorFilterRequest& request) const +DeleteVerifiedAccessGroupOutcome EC2Client::DeleteVerifiedAccessGroup(const DeleteVerifiedAccessGroupRequest& request) const { - AWS_OPERATION_GUARD(DeleteTrafficMirrorFilter); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteVerifiedAccessGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTrafficMirrorFilterOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteVerifiedAccessGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrafficMirrorFilter, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTrafficMirrorFilterOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVerifiedAccessGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteVerifiedAccessGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1203,52 +1203,52 @@ DeleteTrafficMirrorFilterRuleOutcome EC2Client::DeleteTrafficMirrorFilterRule(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTransitGatewayRouteOutcome EC2Client::DeleteTransitGatewayRoute(const DeleteTransitGatewayRouteRequest& request) const +CreateVpcEndpointOutcome EC2Client::CreateVpcEndpoint(const CreateVpcEndpointRequest& request) const { - AWS_OPERATION_GUARD(DeleteTransitGatewayRoute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateVpcEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVpcEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVpcEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateVpcEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTransitGatewayRouteOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateVpcEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTransitGatewayRouteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateVpcEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateVpcEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateVpcEndpointOutcome EC2Client::CreateVpcEndpoint(const CreateVpcEndpointRequest& request) const +DeleteTransitGatewayRouteOutcome EC2Client::DeleteTransitGatewayRoute(const DeleteTransitGatewayRouteRequest& request) const { - AWS_OPERATION_GUARD(CreateVpcEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVpcEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVpcEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTransitGatewayRoute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateVpcEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateVpcEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTransitGatewayRouteOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateVpcEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateVpcEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTransitGatewayRouteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1385,52 +1385,52 @@ DeleteTransitGatewayConnectOutcome EC2Client::DeleteTransitGatewayConnect(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteCoipPoolOutcome EC2Client::DeleteCoipPool(const DeleteCoipPoolRequest& request) const +CreateSecurityGroupOutcome EC2Client::CreateSecurityGroup(const CreateSecurityGroupRequest& request) const { - AWS_OPERATION_GUARD(DeleteCoipPool); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateSecurityGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteCoipPoolOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateSecurityGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteCoipPoolOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateSecurityGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateSecurityGroupOutcome EC2Client::CreateSecurityGroup(const CreateSecurityGroupRequest& request) const +DeleteCoipPoolOutcome EC2Client::DeleteCoipPool(const DeleteCoipPoolRequest& request) const { - AWS_OPERATION_GUARD(CreateSecurityGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteCoipPool); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateSecurityGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteCoipPool, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateSecurityGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteCoipPoolOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateSecurityGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateSecurityGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteCoipPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteCoipPoolOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1567,26 +1567,26 @@ DeleteLocalGatewayRouteTableOutcome EC2Client::DeleteLocalGatewayRouteTable(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteSpotDatafeedSubscriptionOutcome EC2Client::DeleteSpotDatafeedSubscription(const DeleteSpotDatafeedSubscriptionRequest& request) const +CreateTrafficMirrorTargetOutcome EC2Client::CreateTrafficMirrorTarget(const CreateTrafficMirrorTargetRequest& request) const { - AWS_OPERATION_GUARD(DeleteSpotDatafeedSubscription); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateTrafficMirrorTarget); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteSpotDatafeedSubscriptionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTrafficMirrorTargetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteSpotDatafeedSubscriptionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateTrafficMirrorTargetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1619,26 +1619,26 @@ CreateTransitGatewayConnectPeerOutcome EC2Client::CreateTransitGatewayConnectPee {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTrafficMirrorTargetOutcome EC2Client::CreateTrafficMirrorTarget(const CreateTrafficMirrorTargetRequest& request) const +DeleteSpotDatafeedSubscriptionOutcome EC2Client::DeleteSpotDatafeedSubscription(const DeleteSpotDatafeedSubscriptionRequest& request) const { - AWS_OPERATION_GUARD(CreateTrafficMirrorTarget); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteSpotDatafeedSubscription); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTrafficMirrorTargetOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteSpotDatafeedSubscriptionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTrafficMirrorTarget, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateTrafficMirrorTargetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSpotDatafeedSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteSpotDatafeedSubscriptionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1671,52 +1671,52 @@ CreateVpcEndpointConnectionNotificationOutcome EC2Client::CreateVpcEndpointConne {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteSubnetOutcome EC2Client::DeleteSubnet(const DeleteSubnetRequest& request) const +CreateTrafficMirrorFilterRuleOutcome EC2Client::CreateTrafficMirrorFilterRule(const CreateTrafficMirrorFilterRuleRequest& request) const { - AWS_OPERATION_GUARD(DeleteSubnet); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSubnet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSubnet, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateTrafficMirrorFilterRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteSubnet, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteSubnetOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTrafficMirrorFilterRuleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSubnet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteSubnetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateTrafficMirrorFilterRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTrafficMirrorFilterRuleOutcome EC2Client::CreateTrafficMirrorFilterRule(const CreateTrafficMirrorFilterRuleRequest& request) const +DeleteSubnetOutcome EC2Client::DeleteSubnet(const DeleteSubnetRequest& request) const { - AWS_OPERATION_GUARD(CreateTrafficMirrorFilterRule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteSubnet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSubnet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSubnet, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteSubnet, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTrafficMirrorFilterRuleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteSubnetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateTrafficMirrorFilterRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSubnet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteSubnetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1749,78 +1749,78 @@ CreateVpnConnectionRouteOutcome EC2Client::CreateVpnConnectionRoute(const Create {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteIpamPoolOutcome EC2Client::DeleteIpamPool(const DeleteIpamPoolRequest& request) const +CreateVerifiedAccessEndpointOutcome EC2Client::CreateVerifiedAccessEndpoint(const CreateVerifiedAccessEndpointRequest& request) const { - AWS_OPERATION_GUARD(DeleteIpamPool); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteIpamPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteIpamPool, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateVerifiedAccessEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteIpamPool, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteIpamPoolOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateVerifiedAccessEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteIpamPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteIpamPoolOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateVerifiedAccessEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateVerifiedAccessEndpointOutcome EC2Client::CreateVerifiedAccessEndpoint(const CreateVerifiedAccessEndpointRequest& request) const +DeleteIpamPoolOutcome EC2Client::DeleteIpamPool(const DeleteIpamPoolRequest& request) const { - AWS_OPERATION_GUARD(CreateVerifiedAccessEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteIpamPool); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteIpamPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteIpamPool, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteIpamPool, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateVerifiedAccessEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteIpamPoolOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateVerifiedAccessEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteIpamPool, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteIpamPoolOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTransitGatewayPeeringAttachmentOutcome EC2Client::DeleteTransitGatewayPeeringAttachment(const DeleteTransitGatewayPeeringAttachmentRequest& request) const +DeleteLocalGatewayRouteTableVpcAssociationOutcome EC2Client::DeleteLocalGatewayRouteTableVpcAssociation(const DeleteLocalGatewayRouteTableVpcAssociationRequest& request) const { - AWS_OPERATION_GUARD(DeleteTransitGatewayPeeringAttachment); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteLocalGatewayRouteTableVpcAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTransitGatewayPeeringAttachmentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteLocalGatewayRouteTableVpcAssociationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTransitGatewayPeeringAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteLocalGatewayRouteTableVpcAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1853,26 +1853,26 @@ DeleteSubnetCidrReservationOutcome EC2Client::DeleteSubnetCidrReservation(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteLocalGatewayRouteTableVpcAssociationOutcome EC2Client::DeleteLocalGatewayRouteTableVpcAssociation(const DeleteLocalGatewayRouteTableVpcAssociationRequest& request) const +DeleteTransitGatewayPeeringAttachmentOutcome EC2Client::DeleteTransitGatewayPeeringAttachment(const DeleteTransitGatewayPeeringAttachmentRequest& request) const { - AWS_OPERATION_GUARD(DeleteLocalGatewayRouteTableVpcAssociation); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTransitGatewayPeeringAttachment); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteLocalGatewayRouteTableVpcAssociationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTransitGatewayPeeringAttachmentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteLocalGatewayRouteTableVpcAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteLocalGatewayRouteTableVpcAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTransitGatewayPeeringAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1957,52 +1957,52 @@ DeleteNetworkInsightsPathOutcome EC2Client::DeleteNetworkInsightsPath(const Dele {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteInstanceEventWindowOutcome EC2Client::DeleteInstanceEventWindow(const DeleteInstanceEventWindowRequest& request) const +CreateTransitGatewayOutcome EC2Client::CreateTransitGateway(const CreateTransitGatewayRequest& request) const { - AWS_OPERATION_GUARD(DeleteInstanceEventWindow); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateTransitGateway); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteInstanceEventWindowOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTransitGatewayOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteInstanceEventWindowOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateTransitGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTransitGatewayOutcome EC2Client::CreateTransitGateway(const CreateTransitGatewayRequest& request) const +DeleteInstanceEventWindowOutcome EC2Client::DeleteInstanceEventWindow(const DeleteInstanceEventWindowRequest& request) const { - AWS_OPERATION_GUARD(CreateTransitGateway); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteInstanceEventWindow); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteInstanceEventWindow, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTransitGatewayOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteInstanceEventWindowOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateTransitGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteInstanceEventWindow, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteInstanceEventWindowOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2087,32 +2087,6 @@ DeleteCarrierGatewayOutcome EC2Client::DeleteCarrierGateway(const DeleteCarrierG {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteNetworkAclEntryOutcome EC2Client::DeleteNetworkAclEntry(const DeleteNetworkAclEntryRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteNetworkAclEntry); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkAclEntry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkAclEntry, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkAclEntry, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteNetworkAclEntryOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkAclEntry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteNetworkAclEntryOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - CreateTransitGatewayPrefixListReferenceOutcome EC2Client::CreateTransitGatewayPrefixListReference(const CreateTransitGatewayPrefixListReferenceRequest& request) const { AWS_OPERATION_GUARD(CreateTransitGatewayPrefixListReference); @@ -2139,26 +2113,26 @@ CreateTransitGatewayPrefixListReferenceOutcome EC2Client::CreateTransitGatewayPr {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteVerifiedAccessEndpointOutcome EC2Client::DeleteVerifiedAccessEndpoint(const DeleteVerifiedAccessEndpointRequest& request) const +DeleteNetworkAclEntryOutcome EC2Client::DeleteNetworkAclEntry(const DeleteNetworkAclEntryRequest& request) const { - AWS_OPERATION_GUARD(DeleteVerifiedAccessEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteNetworkAclEntry); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteNetworkAclEntry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteNetworkAclEntry, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteNetworkAclEntry, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteVerifiedAccessEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteNetworkAclEntryOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteVerifiedAccessEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteNetworkAclEntry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteNetworkAclEntryOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2191,6 +2165,32 @@ CreateSubnetCidrReservationOutcome EC2Client::CreateSubnetCidrReservation(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteVerifiedAccessEndpointOutcome EC2Client::DeleteVerifiedAccessEndpoint(const DeleteVerifiedAccessEndpointRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteVerifiedAccessEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteVerifiedAccessEndpointOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteVerifiedAccessEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateTransitGatewayConnectOutcome EC2Client::CreateTransitGatewayConnect(const CreateTransitGatewayConnectRequest& request) const { AWS_OPERATION_GUARD(CreateTransitGatewayConnect); @@ -2399,52 +2399,52 @@ DeleteRouteTableOutcome EC2Client::DeleteRouteTable(const DeleteRouteTableReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteLaunchTemplateVersionsOutcome EC2Client::DeleteLaunchTemplateVersions(const DeleteLaunchTemplateVersionsRequest& request) const +CreateStoreImageTaskOutcome EC2Client::CreateStoreImageTask(const CreateStoreImageTaskRequest& request) const { - AWS_OPERATION_GUARD(DeleteLaunchTemplateVersions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateStoreImageTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateStoreImageTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateStoreImageTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, CreateStoreImageTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteLaunchTemplateVersionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateStoreImageTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteLaunchTemplateVersionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateStoreImageTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateStoreImageTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateStoreImageTaskOutcome EC2Client::CreateStoreImageTask(const CreateStoreImageTaskRequest& request) const +DeleteLaunchTemplateVersionsOutcome EC2Client::DeleteLaunchTemplateVersions(const DeleteLaunchTemplateVersionsRequest& request) const { - AWS_OPERATION_GUARD(CreateStoreImageTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateStoreImageTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateStoreImageTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteLaunchTemplateVersions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateStoreImageTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateStoreImageTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteLaunchTemplateVersionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateStoreImageTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateStoreImageTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteLaunchTemplateVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteLaunchTemplateVersionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2529,52 +2529,52 @@ CreateTransitGatewayRouteTableAnnouncementOutcome EC2Client::CreateTransitGatewa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTransitGatewayVpcAttachmentOutcome EC2Client::DeleteTransitGatewayVpcAttachment(const DeleteTransitGatewayVpcAttachmentRequest& request) const +DeleteLocalGatewayRouteOutcome EC2Client::DeleteLocalGatewayRoute(const DeleteLocalGatewayRouteRequest& request) const { - AWS_OPERATION_GUARD(DeleteTransitGatewayVpcAttachment); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteLocalGatewayRoute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTransitGatewayVpcAttachmentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteLocalGatewayRouteOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTransitGatewayVpcAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteLocalGatewayRouteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteLocalGatewayRouteOutcome EC2Client::DeleteLocalGatewayRoute(const DeleteLocalGatewayRouteRequest& request) const +DeleteTransitGatewayVpcAttachmentOutcome EC2Client::DeleteTransitGatewayVpcAttachment(const DeleteTransitGatewayVpcAttachmentRequest& request) const { - AWS_OPERATION_GUARD(DeleteLocalGatewayRoute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTransitGatewayVpcAttachment); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteLocalGatewayRouteOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTransitGatewayVpcAttachmentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteLocalGatewayRoute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteLocalGatewayRouteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTransitGatewayVpcAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTransitGatewayVpcAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client2.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client2.cpp index 13ef4c2fdf1..b71b2fb7558 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client2.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client2.cpp @@ -23,15 +23,15 @@ #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include @@ -42,8 +42,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -58,25 +58,25 @@ #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include @@ -85,17 +85,17 @@ #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include @@ -105,16 +105,16 @@ #include #include #include -#include #include +#include #include #include -#include #include -#include +#include #include -#include +#include #include +#include #include #include #include @@ -189,52 +189,52 @@ DescribeConversionTasksOutcome EC2Client::DescribeConversionTasks(const Describe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeCustomerGatewaysOutcome EC2Client::DescribeCustomerGateways(const DescribeCustomerGatewaysRequest& request) const +DescribeClientVpnConnectionsOutcome EC2Client::DescribeClientVpnConnections(const DescribeClientVpnConnectionsRequest& request) const { - AWS_OPERATION_GUARD(DescribeCustomerGateways); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCustomerGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeCustomerGateways, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeClientVpnConnections); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeClientVpnConnections, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeClientVpnConnections, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeCustomerGateways, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeClientVpnConnections, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeCustomerGatewaysOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeClientVpnConnectionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCustomerGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeCustomerGatewaysOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeClientVpnConnections, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeClientVpnConnectionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeClientVpnConnectionsOutcome EC2Client::DescribeClientVpnConnections(const DescribeClientVpnConnectionsRequest& request) const +DescribeCustomerGatewaysOutcome EC2Client::DescribeCustomerGateways(const DescribeCustomerGatewaysRequest& request) const { - AWS_OPERATION_GUARD(DescribeClientVpnConnections); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeClientVpnConnections, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeClientVpnConnections, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeCustomerGateways); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCustomerGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeCustomerGateways, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeClientVpnConnections, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeCustomerGateways, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeClientVpnConnectionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeCustomerGatewaysOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeClientVpnConnections, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeClientVpnConnectionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCustomerGateways, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeCustomerGatewaysOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -371,52 +371,52 @@ DeregisterTransitGatewayMulticastGroupSourcesOutcome EC2Client::DeregisterTransi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeIpv6PoolsOutcome EC2Client::DescribeIpv6Pools(const DescribeIpv6PoolsRequest& request) const +DescribeAwsNetworkPerformanceMetricSubscriptionsOutcome EC2Client::DescribeAwsNetworkPerformanceMetricSubscriptions(const DescribeAwsNetworkPerformanceMetricSubscriptionsRequest& request) const { - AWS_OPERATION_GUARD(DescribeIpv6Pools); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeIpv6Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeIpv6Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeAwsNetworkPerformanceMetricSubscriptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeIpv6Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeIpv6PoolsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeAwsNetworkPerformanceMetricSubscriptionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeIpv6Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeIpv6PoolsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeAwsNetworkPerformanceMetricSubscriptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeAwsNetworkPerformanceMetricSubscriptionsOutcome EC2Client::DescribeAwsNetworkPerformanceMetricSubscriptions(const DescribeAwsNetworkPerformanceMetricSubscriptionsRequest& request) const +DescribeIpv6PoolsOutcome EC2Client::DescribeIpv6Pools(const DescribeIpv6PoolsRequest& request) const { - AWS_OPERATION_GUARD(DescribeAwsNetworkPerformanceMetricSubscriptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeIpv6Pools); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeIpv6Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeIpv6Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeIpv6Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeAwsNetworkPerformanceMetricSubscriptionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeIpv6PoolsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAwsNetworkPerformanceMetricSubscriptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeAwsNetworkPerformanceMetricSubscriptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeIpv6Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeIpv6PoolsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -683,52 +683,52 @@ DescribeIpamScopesOutcome EC2Client::DescribeIpamScopes(const DescribeIpamScopes {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeLocalGatewayVirtualInterfaceGroupsOutcome EC2Client::DescribeLocalGatewayVirtualInterfaceGroups(const DescribeLocalGatewayVirtualInterfaceGroupsRequest& request) const +DescribeDhcpOptionsOutcome EC2Client::DescribeDhcpOptions(const DescribeDhcpOptionsRequest& request) const { - AWS_OPERATION_GUARD(DescribeLocalGatewayVirtualInterfaceGroups); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeDhcpOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeDhcpOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeDhcpOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeDhcpOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeLocalGatewayVirtualInterfaceGroupsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeDhcpOptionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeLocalGatewayVirtualInterfaceGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeDhcpOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeDhcpOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeDhcpOptionsOutcome EC2Client::DescribeDhcpOptions(const DescribeDhcpOptionsRequest& request) const +DescribeLocalGatewayVirtualInterfaceGroupsOutcome EC2Client::DescribeLocalGatewayVirtualInterfaceGroups(const DescribeLocalGatewayVirtualInterfaceGroupsRequest& request) const { - AWS_OPERATION_GUARD(DescribeDhcpOptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeDhcpOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeDhcpOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeLocalGatewayVirtualInterfaceGroups); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeDhcpOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeDhcpOptionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeLocalGatewayVirtualInterfaceGroupsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeDhcpOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeDhcpOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLocalGatewayVirtualInterfaceGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeLocalGatewayVirtualInterfaceGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1099,52 +1099,52 @@ DeleteVpnConnectionRouteOutcome EC2Client::DeleteVpnConnectionRoute(const Delete {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeFastSnapshotRestoresOutcome EC2Client::DescribeFastSnapshotRestores(const DescribeFastSnapshotRestoresRequest& request) const +DeleteVpnConnectionOutcome EC2Client::DeleteVpnConnection(const DeleteVpnConnectionRequest& request) const { - AWS_OPERATION_GUARD(DescribeFastSnapshotRestores); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteVpnConnection); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeFastSnapshotRestoresOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteVpnConnectionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeFastSnapshotRestoresOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteVpnConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteVpnConnectionOutcome EC2Client::DeleteVpnConnection(const DeleteVpnConnectionRequest& request) const +DescribeFastSnapshotRestoresOutcome EC2Client::DescribeFastSnapshotRestores(const DescribeFastSnapshotRestoresRequest& request) const { - AWS_OPERATION_GUARD(DeleteVpnConnection); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeFastSnapshotRestores); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteVpnConnectionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeFastSnapshotRestoresOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteVpnConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeFastSnapshotRestores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeFastSnapshotRestoresOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1255,52 +1255,52 @@ DescribeFlowLogsOutcome EC2Client::DescribeFlowLogs(const DescribeFlowLogsReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeFpgaImagesOutcome EC2Client::DescribeFpgaImages(const DescribeFpgaImagesRequest& request) const +DeleteVpcEndpointConnectionNotificationsOutcome EC2Client::DeleteVpcEndpointConnectionNotifications(const DeleteVpcEndpointConnectionNotificationsRequest& request) const { - AWS_OPERATION_GUARD(DescribeFpgaImages); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeFpgaImages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeFpgaImages, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteVpcEndpointConnectionNotifications); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeFpgaImages, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeFpgaImagesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteVpcEndpointConnectionNotificationsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeFpgaImages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeFpgaImagesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteVpcEndpointConnectionNotificationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteVpcEndpointConnectionNotificationsOutcome EC2Client::DeleteVpcEndpointConnectionNotifications(const DeleteVpcEndpointConnectionNotificationsRequest& request) const +DescribeFpgaImagesOutcome EC2Client::DescribeFpgaImages(const DescribeFpgaImagesRequest& request) const { - AWS_OPERATION_GUARD(DeleteVpcEndpointConnectionNotifications); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeFpgaImages); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeFpgaImages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeFpgaImages, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeFpgaImages, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteVpcEndpointConnectionNotificationsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeFpgaImagesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVpcEndpointConnectionNotifications, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteVpcEndpointConnectionNotificationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeFpgaImages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeFpgaImagesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1385,52 +1385,52 @@ DescribeIpamsOutcome EC2Client::DescribeIpams(const DescribeIpamsRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeNetworkInsightsAnalysesOutcome EC2Client::DescribeNetworkInsightsAnalyses(const DescribeNetworkInsightsAnalysesRequest& request) const +DescribeHostReservationOfferingsOutcome EC2Client::DescribeHostReservationOfferings(const DescribeHostReservationOfferingsRequest& request) const { - AWS_OPERATION_GUARD(DescribeNetworkInsightsAnalyses); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeHostReservationOfferings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeHostReservationOfferings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeHostReservationOfferings, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeHostReservationOfferings, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeNetworkInsightsAnalysesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeHostReservationOfferingsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeNetworkInsightsAnalysesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeHostReservationOfferings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeHostReservationOfferingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeHostReservationOfferingsOutcome EC2Client::DescribeHostReservationOfferings(const DescribeHostReservationOfferingsRequest& request) const +DescribeNetworkInsightsAnalysesOutcome EC2Client::DescribeNetworkInsightsAnalyses(const DescribeNetworkInsightsAnalysesRequest& request) const { - AWS_OPERATION_GUARD(DescribeHostReservationOfferings); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeHostReservationOfferings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeHostReservationOfferings, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeNetworkInsightsAnalyses); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeHostReservationOfferings, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeHostReservationOfferingsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeNetworkInsightsAnalysesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeHostReservationOfferings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeHostReservationOfferingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeNetworkInsightsAnalyses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeNetworkInsightsAnalysesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1541,52 +1541,52 @@ DeleteVolumeOutcome EC2Client::DeleteVolume(const DeleteVolumeRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribePlacementGroupsOutcome EC2Client::DescribePlacementGroups(const DescribePlacementGroupsRequest& request) const +DescribeLaunchTemplatesOutcome EC2Client::DescribeLaunchTemplates(const DescribeLaunchTemplatesRequest& request) const { - AWS_OPERATION_GUARD(DescribePlacementGroups); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribePlacementGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribePlacementGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeLaunchTemplates); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLaunchTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLaunchTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribePlacementGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeLaunchTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribePlacementGroupsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeLaunchTemplatesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribePlacementGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribePlacementGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLaunchTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeLaunchTemplatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeLaunchTemplatesOutcome EC2Client::DescribeLaunchTemplates(const DescribeLaunchTemplatesRequest& request) const +DescribePlacementGroupsOutcome EC2Client::DescribePlacementGroups(const DescribePlacementGroupsRequest& request) const { - AWS_OPERATION_GUARD(DescribeLaunchTemplates); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLaunchTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLaunchTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribePlacementGroups); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribePlacementGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribePlacementGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeLaunchTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribePlacementGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeLaunchTemplatesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribePlacementGroupsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLaunchTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeLaunchTemplatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribePlacementGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribePlacementGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1801,52 +1801,52 @@ DescribePrincipalIdFormatOutcome EC2Client::DescribePrincipalIdFormat(const Desc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeLocalGatewayVirtualInterfacesOutcome EC2Client::DescribeLocalGatewayVirtualInterfaces(const DescribeLocalGatewayVirtualInterfacesRequest& request) const +DescribeInstanceEventNotificationAttributesOutcome EC2Client::DescribeInstanceEventNotificationAttributes(const DescribeInstanceEventNotificationAttributesRequest& request) const { - AWS_OPERATION_GUARD(DescribeLocalGatewayVirtualInterfaces); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeInstanceEventNotificationAttributes); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeLocalGatewayVirtualInterfacesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeInstanceEventNotificationAttributesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeLocalGatewayVirtualInterfacesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeInstanceEventNotificationAttributesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeInstanceEventNotificationAttributesOutcome EC2Client::DescribeInstanceEventNotificationAttributes(const DescribeInstanceEventNotificationAttributesRequest& request) const +DescribeLocalGatewayVirtualInterfacesOutcome EC2Client::DescribeLocalGatewayVirtualInterfaces(const DescribeLocalGatewayVirtualInterfacesRequest& request) const { - AWS_OPERATION_GUARD(DescribeInstanceEventNotificationAttributes); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeLocalGatewayVirtualInterfaces); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeInstanceEventNotificationAttributesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeLocalGatewayVirtualInterfacesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeInstanceEventNotificationAttributes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeInstanceEventNotificationAttributesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeLocalGatewayVirtualInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeLocalGatewayVirtualInterfacesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1931,52 +1931,52 @@ DescribeManagedPrefixListsOutcome EC2Client::DescribeManagedPrefixLists(const De {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeAddressesOutcome EC2Client::DescribeAddresses(const DescribeAddressesRequest& request) const +DeprovisionPublicIpv4PoolCidrOutcome EC2Client::DeprovisionPublicIpv4PoolCidr(const DeprovisionPublicIpv4PoolCidrRequest& request) const { - AWS_OPERATION_GUARD(DescribeAddresses); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeprovisionPublicIpv4PoolCidr); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeAddressesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeprovisionPublicIpv4PoolCidrOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeAddressesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeprovisionPublicIpv4PoolCidrOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeprovisionPublicIpv4PoolCidrOutcome EC2Client::DeprovisionPublicIpv4PoolCidr(const DeprovisionPublicIpv4PoolCidrRequest& request) const +DescribeAddressesOutcome EC2Client::DescribeAddresses(const DescribeAddressesRequest& request) const { - AWS_OPERATION_GUARD(DeprovisionPublicIpv4PoolCidr); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeAddresses); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeprovisionPublicIpv4PoolCidrOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeAddressesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeprovisionPublicIpv4PoolCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeprovisionPublicIpv4PoolCidrOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeAddressesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2035,52 +2035,52 @@ DescribeInstanceTypesOutcome EC2Client::DescribeInstanceTypes(const DescribeInst {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeregisterImageOutcome EC2Client::DeregisterImage(const DeregisterImageRequest& request) const +DeleteVpcEndpointsOutcome EC2Client::DeleteVpcEndpoints(const DeleteVpcEndpointsRequest& request) const { - AWS_OPERATION_GUARD(DeregisterImage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeregisterImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeregisterImage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteVpcEndpoints); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpcEndpoints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpcEndpoints, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeregisterImage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeleteVpcEndpoints, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeregisterImageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteVpcEndpointsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeregisterImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeregisterImageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVpcEndpoints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteVpcEndpointsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteVpcEndpointsOutcome EC2Client::DeleteVpcEndpoints(const DeleteVpcEndpointsRequest& request) const +DeregisterImageOutcome EC2Client::DeregisterImage(const DeregisterImageRequest& request) const { - AWS_OPERATION_GUARD(DeleteVpcEndpoints); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteVpcEndpoints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteVpcEndpoints, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeregisterImage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeregisterImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeregisterImage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteVpcEndpoints, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DeregisterImage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteVpcEndpointsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeregisterImageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteVpcEndpoints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteVpcEndpointsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeregisterImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeregisterImageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2321,52 +2321,52 @@ DeprovisionIpamPoolCidrOutcome EC2Client::DeprovisionIpamPoolCidr(const Deprovis {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeMovingAddressesOutcome EC2Client::DescribeMovingAddresses(const DescribeMovingAddressesRequest& request) const +DescribeClassicLinkInstancesOutcome EC2Client::DescribeClassicLinkInstances(const DescribeClassicLinkInstancesRequest& request) const { - AWS_OPERATION_GUARD(DescribeMovingAddresses); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeMovingAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeMovingAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeClassicLinkInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeClassicLinkInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeClassicLinkInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeMovingAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeClassicLinkInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeMovingAddressesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeClassicLinkInstancesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeMovingAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeMovingAddressesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeClassicLinkInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeClassicLinkInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeClassicLinkInstancesOutcome EC2Client::DescribeClassicLinkInstances(const DescribeClassicLinkInstancesRequest& request) const +DescribeMovingAddressesOutcome EC2Client::DescribeMovingAddresses(const DescribeMovingAddressesRequest& request) const { - AWS_OPERATION_GUARD(DescribeClassicLinkInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeClassicLinkInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeClassicLinkInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeMovingAddresses); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeMovingAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeMovingAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeClassicLinkInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeMovingAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeClassicLinkInstancesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeMovingAddressesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeClassicLinkInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeClassicLinkInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeMovingAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeMovingAddressesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2425,32 +2425,6 @@ DescribeInstanceEventWindowsOutcome EC2Client::DescribeInstanceEventWindows(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeIamInstanceProfileAssociationsOutcome EC2Client::DescribeIamInstanceProfileAssociations(const DescribeIamInstanceProfileAssociationsRequest& request) const -{ - AWS_OPERATION_GUARD(DescribeIamInstanceProfileAssociations); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeIamInstanceProfileAssociationsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeIamInstanceProfileAssociationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeprovisionByoipCidrOutcome EC2Client::DeprovisionByoipCidr(const DeprovisionByoipCidrRequest& request) const { AWS_OPERATION_GUARD(DeprovisionByoipCidr); @@ -2477,26 +2451,26 @@ DeprovisionByoipCidrOutcome EC2Client::DeprovisionByoipCidr(const DeprovisionByo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeNetworkInterfacesOutcome EC2Client::DescribeNetworkInterfaces(const DescribeNetworkInterfacesRequest& request) const +DescribeIamInstanceProfileAssociationsOutcome EC2Client::DescribeIamInstanceProfileAssociations(const DescribeIamInstanceProfileAssociationsRequest& request) const { - AWS_OPERATION_GUARD(DescribeNetworkInterfaces); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeNetworkInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeNetworkInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeIamInstanceProfileAssociations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeNetworkInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeNetworkInterfacesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeIamInstanceProfileAssociationsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeNetworkInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeNetworkInterfacesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeIamInstanceProfileAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeIamInstanceProfileAssociationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2529,26 +2503,26 @@ DescribeLocalGatewayRouteTablesOutcome EC2Client::DescribeLocalGatewayRouteTable {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeElasticGpusOutcome EC2Client::DescribeElasticGpus(const DescribeElasticGpusRequest& request) const +DescribeNetworkInterfacesOutcome EC2Client::DescribeNetworkInterfaces(const DescribeNetworkInterfacesRequest& request) const { - AWS_OPERATION_GUARD(DescribeElasticGpus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeElasticGpus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeElasticGpus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeNetworkInterfaces); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeNetworkInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeNetworkInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeElasticGpus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeNetworkInterfaces, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeElasticGpusOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeNetworkInterfacesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeElasticGpus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeElasticGpusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeNetworkInterfaces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeNetworkInterfacesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2581,6 +2555,32 @@ DeleteVerifiedAccessTrustProviderOutcome EC2Client::DeleteVerifiedAccessTrustPro {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeElasticGpusOutcome EC2Client::DescribeElasticGpus(const DescribeElasticGpusRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeElasticGpus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeElasticGpus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeElasticGpus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeElasticGpus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeElasticGpusOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeElasticGpus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeElasticGpusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeLaunchTemplateVersionsOutcome EC2Client::DescribeLaunchTemplateVersions(const DescribeLaunchTemplateVersionsRequest& request) const { AWS_OPERATION_GUARD(DescribeLaunchTemplateVersions); diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp index 6fa86fc0aa2..7ba21ddf955 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp @@ -32,11 +32,11 @@ #include #include #include -#include #include -#include -#include +#include #include +#include +#include #include #include #include @@ -45,14 +45,14 @@ #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include @@ -65,17 +65,17 @@ #include #include #include -#include #include +#include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include @@ -101,23 +101,23 @@ #include #include #include -#include #include +#include #include #include -#include -#include #include +#include +#include #include #include -#include #include +#include #include -#include #include -#include -#include +#include #include +#include +#include #include #include #include @@ -423,78 +423,78 @@ DisassociateTrunkInterfaceOutcome EC2Client::DisassociateTrunkInterface(const Di {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeTransitGatewayMulticastDomainsOutcome EC2Client::DescribeTransitGatewayMulticastDomains(const DescribeTransitGatewayMulticastDomainsRequest& request) const +DescribeReservedInstancesListingsOutcome EC2Client::DescribeReservedInstancesListings(const DescribeReservedInstancesListingsRequest& request) const { - AWS_OPERATION_GUARD(DescribeTransitGatewayMulticastDomains); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeReservedInstancesListings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeReservedInstancesListings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeReservedInstancesListings, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeReservedInstancesListings, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeTransitGatewayMulticastDomainsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeReservedInstancesListingsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeTransitGatewayMulticastDomainsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeReservedInstancesListings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeReservedInstancesListingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeReservedInstancesListingsOutcome EC2Client::DescribeReservedInstancesListings(const DescribeReservedInstancesListingsRequest& request) const +DescribeTransitGatewayMulticastDomainsOutcome EC2Client::DescribeTransitGatewayMulticastDomains(const DescribeTransitGatewayMulticastDomainsRequest& request) const { - AWS_OPERATION_GUARD(DescribeReservedInstancesListings); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeReservedInstancesListings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeReservedInstancesListings, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeTransitGatewayMulticastDomains); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeReservedInstancesListings, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeReservedInstancesListingsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeTransitGatewayMulticastDomainsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeReservedInstancesListings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeReservedInstancesListingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTransitGatewayMulticastDomains, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeTransitGatewayMulticastDomainsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeTagsOutcome EC2Client::DescribeTags(const DescribeTagsRequest& request) const +DescribePublicIpv4PoolsOutcome EC2Client::DescribePublicIpv4Pools(const DescribePublicIpv4PoolsRequest& request) const { - AWS_OPERATION_GUARD(DescribeTags); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTags, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribePublicIpv4Pools); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribePublicIpv4Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribePublicIpv4Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeTags, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribePublicIpv4Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeTagsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribePublicIpv4PoolsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeTagsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribePublicIpv4Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribePublicIpv4PoolsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -527,26 +527,26 @@ DescribeSpotPriceHistoryOutcome EC2Client::DescribeSpotPriceHistory(const Descri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribePublicIpv4PoolsOutcome EC2Client::DescribePublicIpv4Pools(const DescribePublicIpv4PoolsRequest& request) const +DescribeTagsOutcome EC2Client::DescribeTags(const DescribeTagsRequest& request) const { - AWS_OPERATION_GUARD(DescribePublicIpv4Pools); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribePublicIpv4Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribePublicIpv4Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeTags); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTags, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribePublicIpv4Pools, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeTags, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribePublicIpv4PoolsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeTagsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribePublicIpv4Pools, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribePublicIpv4PoolsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeTagsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -761,52 +761,52 @@ DisableIpamOrganizationAdminAccountOutcome EC2Client::DisableIpamOrganizationAdm {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisableAddressTransferOutcome EC2Client::DisableAddressTransfer(const DisableAddressTransferRequest& request) const +DescribeSnapshotTierStatusOutcome EC2Client::DescribeSnapshotTierStatus(const DescribeSnapshotTierStatusRequest& request) const { - AWS_OPERATION_GUARD(DisableAddressTransfer); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeSnapshotTierStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisableAddressTransferOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeSnapshotTierStatusOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisableAddressTransferOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeSnapshotTierStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeSnapshotTierStatusOutcome EC2Client::DescribeSnapshotTierStatus(const DescribeSnapshotTierStatusRequest& request) const +DisableAddressTransferOutcome EC2Client::DisableAddressTransfer(const DisableAddressTransferRequest& request) const { - AWS_OPERATION_GUARD(DescribeSnapshotTierStatus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisableAddressTransfer); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeSnapshotTierStatusOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisableAddressTransferOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeSnapshotTierStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeSnapshotTierStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisableAddressTransferOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -917,52 +917,52 @@ DescribeTransitGatewayPolicyTablesOutcome EC2Client::DescribeTransitGatewayPolic {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeVolumeAttributeOutcome EC2Client::DescribeVolumeAttribute(const DescribeVolumeAttributeRequest& request) const +DescribeVerifiedAccessInstanceLoggingConfigurationsOutcome EC2Client::DescribeVerifiedAccessInstanceLoggingConfigurations(const DescribeVerifiedAccessInstanceLoggingConfigurationsRequest& request) const { - AWS_OPERATION_GUARD(DescribeVolumeAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVolumeAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVolumeAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeVerifiedAccessInstanceLoggingConfigurations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeVolumeAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeVolumeAttributeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeVerifiedAccessInstanceLoggingConfigurationsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVolumeAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeVolumeAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeVerifiedAccessInstanceLoggingConfigurationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeVerifiedAccessInstanceLoggingConfigurationsOutcome EC2Client::DescribeVerifiedAccessInstanceLoggingConfigurations(const DescribeVerifiedAccessInstanceLoggingConfigurationsRequest& request) const +DescribeVolumeAttributeOutcome EC2Client::DescribeVolumeAttribute(const DescribeVolumeAttributeRequest& request) const { - AWS_OPERATION_GUARD(DescribeVerifiedAccessInstanceLoggingConfigurations); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeVolumeAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVolumeAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVolumeAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeVolumeAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeVerifiedAccessInstanceLoggingConfigurationsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeVolumeAttributeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVerifiedAccessInstanceLoggingConfigurations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeVerifiedAccessInstanceLoggingConfigurationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVolumeAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeVolumeAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1281,52 +1281,52 @@ DescribeVpcPeeringConnectionsOutcome EC2Client::DescribeVpcPeeringConnections(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -EnableFastLaunchOutcome EC2Client::EnableFastLaunch(const EnableFastLaunchRequest& request) const +DescribeVpcEndpointServicePermissionsOutcome EC2Client::DescribeVpcEndpointServicePermissions(const DescribeVpcEndpointServicePermissionsRequest& request) const { - AWS_OPERATION_GUARD(EnableFastLaunch); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeVpcEndpointServicePermissions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, EnableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> EnableFastLaunchOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeVpcEndpointServicePermissionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return EnableFastLaunchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeVpcEndpointServicePermissionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeVpcEndpointServicePermissionsOutcome EC2Client::DescribeVpcEndpointServicePermissions(const DescribeVpcEndpointServicePermissionsRequest& request) const +EnableFastLaunchOutcome EC2Client::EnableFastLaunch(const EnableFastLaunchRequest& request) const { - AWS_OPERATION_GUARD(DescribeVpcEndpointServicePermissions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(EnableFastLaunch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, EnableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeVpcEndpointServicePermissionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> EnableFastLaunchOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVpcEndpointServicePermissions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeVpcEndpointServicePermissionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableFastLaunchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1359,52 +1359,52 @@ EnableAwsNetworkPerformanceMetricSubscriptionOutcome EC2Client::EnableAwsNetwork {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisableFastLaunchOutcome EC2Client::DisableFastLaunch(const DisableFastLaunchRequest& request) const +DescribeTrafficMirrorFiltersOutcome EC2Client::DescribeTrafficMirrorFilters(const DescribeTrafficMirrorFiltersRequest& request) const { - AWS_OPERATION_GUARD(DisableFastLaunch); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeTrafficMirrorFilters); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisableFastLaunchOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeTrafficMirrorFiltersOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisableFastLaunchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeTrafficMirrorFiltersOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeTrafficMirrorFiltersOutcome EC2Client::DescribeTrafficMirrorFilters(const DescribeTrafficMirrorFiltersRequest& request) const +DisableFastLaunchOutcome EC2Client::DisableFastLaunch(const DisableFastLaunchRequest& request) const { - AWS_OPERATION_GUARD(DescribeTrafficMirrorFilters); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisableFastLaunch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisableFastLaunch, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeTrafficMirrorFiltersOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisableFastLaunchOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTrafficMirrorFilters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeTrafficMirrorFiltersOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableFastLaunch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisableFastLaunchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1515,52 +1515,52 @@ DescribeVpcEndpointServiceConfigurationsOutcome EC2Client::DescribeVpcEndpointSe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeTransitGatewayRouteTablesOutcome EC2Client::DescribeTransitGatewayRouteTables(const DescribeTransitGatewayRouteTablesRequest& request) const +DescribeReservedInstancesOutcome EC2Client::DescribeReservedInstances(const DescribeReservedInstancesRequest& request) const { - AWS_OPERATION_GUARD(DescribeTransitGatewayRouteTables); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeReservedInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeReservedInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeReservedInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeReservedInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeTransitGatewayRouteTablesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeReservedInstancesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeTransitGatewayRouteTablesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeReservedInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeReservedInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeReservedInstancesOutcome EC2Client::DescribeReservedInstances(const DescribeReservedInstancesRequest& request) const +DescribeTransitGatewayRouteTablesOutcome EC2Client::DescribeTransitGatewayRouteTables(const DescribeTransitGatewayRouteTablesRequest& request) const { - AWS_OPERATION_GUARD(DescribeReservedInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeReservedInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeReservedInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeTransitGatewayRouteTables); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeReservedInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeReservedInstancesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeTransitGatewayRouteTablesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeReservedInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeReservedInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeTransitGatewayRouteTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeTransitGatewayRouteTablesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2217,52 +2217,52 @@ DescribeReservedInstancesModificationsOutcome EC2Client::DescribeReservedInstanc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeSnapshotAttributeOutcome EC2Client::DescribeSnapshotAttribute(const DescribeSnapshotAttributeRequest& request) const +DescribeRegionsOutcome EC2Client::DescribeRegions(const DescribeRegionsRequest& request) const { - AWS_OPERATION_GUARD(DescribeSnapshotAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeRegions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeRegions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeRegions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeRegions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeSnapshotAttributeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeRegionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeSnapshotAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeRegions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeRegionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeRegionsOutcome EC2Client::DescribeRegions(const DescribeRegionsRequest& request) const +DescribeSnapshotAttributeOutcome EC2Client::DescribeSnapshotAttribute(const DescribeSnapshotAttributeRequest& request) const { - AWS_OPERATION_GUARD(DescribeRegions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeRegions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeRegions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeSnapshotAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeRegions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeRegionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeSnapshotAttributeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeRegions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeRegionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeSnapshotAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2321,26 +2321,26 @@ DescribeScheduledInstanceAvailabilityOutcome EC2Client::DescribeScheduledInstanc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DetachVolumeOutcome EC2Client::DetachVolume(const DetachVolumeRequest& request) const +DescribeReplaceRootVolumeTasksOutcome EC2Client::DescribeReplaceRootVolumeTasks(const DescribeReplaceRootVolumeTasksRequest& request) const { - AWS_OPERATION_GUARD(DetachVolume); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DetachVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DetachVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeReplaceRootVolumeTasks); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DetachVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DetachVolumeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeReplaceRootVolumeTasksOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DetachVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DetachVolumeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeReplaceRootVolumeTasksOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2373,26 +2373,26 @@ DescribeVpnGatewaysOutcome EC2Client::DescribeVpnGateways(const DescribeVpnGatew {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeReplaceRootVolumeTasksOutcome EC2Client::DescribeReplaceRootVolumeTasks(const DescribeReplaceRootVolumeTasksRequest& request) const +DetachVolumeOutcome EC2Client::DetachVolume(const DetachVolumeRequest& request) const { - AWS_OPERATION_GUARD(DescribeReplaceRootVolumeTasks); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DetachVolume); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DetachVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DetachVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DetachVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeReplaceRootVolumeTasksOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DetachVolumeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeReplaceRootVolumeTasks, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeReplaceRootVolumeTasksOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DetachVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DetachVolumeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2451,52 +2451,52 @@ DescribeTrunkInterfaceAssociationsOutcome EC2Client::DescribeTrunkInterfaceAssoc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeVpcClassicLinkOutcome EC2Client::DescribeVpcClassicLink(const DescribeVpcClassicLinkRequest& request) const +DescribeVerifiedAccessInstancesOutcome EC2Client::DescribeVerifiedAccessInstances(const DescribeVerifiedAccessInstancesRequest& request) const { - AWS_OPERATION_GUARD(DescribeVpcClassicLink); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVpcClassicLink, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVpcClassicLink, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeVerifiedAccessInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeVpcClassicLink, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeVpcClassicLinkOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeVerifiedAccessInstancesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVpcClassicLink, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeVpcClassicLinkOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeVerifiedAccessInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeVerifiedAccessInstancesOutcome EC2Client::DescribeVerifiedAccessInstances(const DescribeVerifiedAccessInstancesRequest& request) const +DescribeVpcClassicLinkOutcome EC2Client::DescribeVpcClassicLink(const DescribeVpcClassicLinkRequest& request) const { - AWS_OPERATION_GUARD(DescribeVerifiedAccessInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeVpcClassicLink); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeVpcClassicLink, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeVpcClassicLink, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DescribeVpcClassicLink, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeVerifiedAccessInstancesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeVpcClassicLinkOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVerifiedAccessInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeVerifiedAccessInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeVpcClassicLink, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeVpcClassicLinkOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2529,78 +2529,78 @@ DetachNetworkInterfaceOutcome EC2Client::DetachNetworkInterface(const DetachNetw {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -EnableAddressTransferOutcome EC2Client::EnableAddressTransfer(const EnableAddressTransferRequest& request) const +DisassociateTransitGatewayRouteTableOutcome EC2Client::DisassociateTransitGatewayRouteTable(const DisassociateTransitGatewayRouteTableRequest& request) const { - AWS_OPERATION_GUARD(EnableAddressTransfer); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisassociateTransitGatewayRouteTable); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, EnableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> EnableAddressTransferOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisassociateTransitGatewayRouteTableOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return EnableAddressTransferOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisassociateTransitGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateTransitGatewayRouteTableOutcome EC2Client::DisassociateTransitGatewayRouteTable(const DisassociateTransitGatewayRouteTableRequest& request) const +EnableAddressTransferOutcome EC2Client::EnableAddressTransfer(const EnableAddressTransferRequest& request) const { - AWS_OPERATION_GUARD(DisassociateTransitGatewayRouteTable); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(EnableAddressTransfer); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, EnableAddressTransfer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisassociateTransitGatewayRouteTableOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> EnableAddressTransferOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateTransitGatewayRouteTable, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisassociateTransitGatewayRouteTableOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableAddressTransfer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableAddressTransferOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisassociateVpcCidrBlockOutcome EC2Client::DisassociateVpcCidrBlock(const DisassociateVpcCidrBlockRequest& request) const +DisableImageDeprecationOutcome EC2Client::DisableImageDeprecation(const DisableImageDeprecationRequest& request) const { - AWS_OPERATION_GUARD(DisassociateVpcCidrBlock); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisableImageDeprecation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisassociateVpcCidrBlockOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisableImageDeprecationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisassociateVpcCidrBlockOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisableImageDeprecationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2633,26 +2633,26 @@ DisassociateRouteTableOutcome EC2Client::DisassociateRouteTable(const Disassocia {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisableImageDeprecationOutcome EC2Client::DisableImageDeprecation(const DisableImageDeprecationRequest& request) const +DisassociateVpcCidrBlockOutcome EC2Client::DisassociateVpcCidrBlock(const DisassociateVpcCidrBlockRequest& request) const { - AWS_OPERATION_GUARD(DisableImageDeprecation); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisassociateVpcCidrBlock); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DisableImageDeprecationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisassociateVpcCidrBlockOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisableImageDeprecationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisassociateVpcCidrBlock, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisassociateVpcCidrBlockOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp index 8f762b269ce..966149aac99 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp @@ -21,12 +21,12 @@ #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include @@ -41,15 +41,15 @@ #include #include #include -#include #include +#include #include -#include #include +#include #include #include -#include #include +#include #include #include #include @@ -57,24 +57,24 @@ #include #include #include -#include #include -#include +#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include -#include #include -#include +#include #include +#include #include #include #include @@ -97,12 +97,12 @@ #include #include #include -#include -#include #include +#include +#include #include -#include #include +#include #include #include #include @@ -137,52 +137,52 @@ using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; -ModifyClientVpnEndpointOutcome EC2Client::ModifyClientVpnEndpoint(const ModifyClientVpnEndpointRequest& request) const +GetSpotPlacementScoresOutcome EC2Client::GetSpotPlacementScores(const GetSpotPlacementScoresRequest& request) const { - AWS_OPERATION_GUARD(ModifyClientVpnEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetSpotPlacementScores); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSpotPlacementScores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSpotPlacementScores, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetSpotPlacementScores, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyClientVpnEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetSpotPlacementScoresOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyClientVpnEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSpotPlacementScores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetSpotPlacementScoresOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetSpotPlacementScoresOutcome EC2Client::GetSpotPlacementScores(const GetSpotPlacementScoresRequest& request) const +ModifyClientVpnEndpointOutcome EC2Client::ModifyClientVpnEndpoint(const ModifyClientVpnEndpointRequest& request) const { - AWS_OPERATION_GUARD(GetSpotPlacementScores); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSpotPlacementScores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSpotPlacementScores, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyClientVpnEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetSpotPlacementScores, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetSpotPlacementScoresOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyClientVpnEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSpotPlacementScores, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetSpotPlacementScoresOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyClientVpnEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyClientVpnEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -241,52 +241,52 @@ GetCapacityReservationUsageOutcome EC2Client::GetCapacityReservationUsage(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyPrivateDnsNameOptionsOutcome EC2Client::ModifyPrivateDnsNameOptions(const ModifyPrivateDnsNameOptionsRequest& request) const +ModifyHostsOutcome EC2Client::ModifyHosts(const ModifyHostsRequest& request) const { - AWS_OPERATION_GUARD(ModifyPrivateDnsNameOptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyHosts); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyPrivateDnsNameOptionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyHostsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyPrivateDnsNameOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyHostsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyHostsOutcome EC2Client::ModifyHosts(const ModifyHostsRequest& request) const +ModifyPrivateDnsNameOptionsOutcome EC2Client::ModifyPrivateDnsNameOptions(const ModifyPrivateDnsNameOptionsRequest& request) const { - AWS_OPERATION_GUARD(ModifyHosts); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyPrivateDnsNameOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyHostsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyPrivateDnsNameOptionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyHostsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyPrivateDnsNameOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyPrivateDnsNameOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -657,52 +657,52 @@ GetImageBlockPublicAccessStateOutcome EC2Client::GetImageBlockPublicAccessState( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetNetworkInsightsAccessScopeAnalysisFindingsOutcome EC2Client::GetNetworkInsightsAccessScopeAnalysisFindings(const GetNetworkInsightsAccessScopeAnalysisFindingsRequest& request) const +GetEbsEncryptionByDefaultOutcome EC2Client::GetEbsEncryptionByDefault(const GetEbsEncryptionByDefaultRequest& request) const { - AWS_OPERATION_GUARD(GetNetworkInsightsAccessScopeAnalysisFindings); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetEbsEncryptionByDefault); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetNetworkInsightsAccessScopeAnalysisFindingsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetEbsEncryptionByDefaultOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetNetworkInsightsAccessScopeAnalysisFindingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetEbsEncryptionByDefaultOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetEbsEncryptionByDefaultOutcome EC2Client::GetEbsEncryptionByDefault(const GetEbsEncryptionByDefaultRequest& request) const +GetNetworkInsightsAccessScopeAnalysisFindingsOutcome EC2Client::GetNetworkInsightsAccessScopeAnalysisFindings(const GetNetworkInsightsAccessScopeAnalysisFindingsRequest& request) const { - AWS_OPERATION_GUARD(GetEbsEncryptionByDefault); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetNetworkInsightsAccessScopeAnalysisFindings); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetEbsEncryptionByDefaultOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetNetworkInsightsAccessScopeAnalysisFindingsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetEbsEncryptionByDefault, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetEbsEncryptionByDefaultOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetNetworkInsightsAccessScopeAnalysisFindings, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetNetworkInsightsAccessScopeAnalysisFindingsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -735,52 +735,52 @@ ModifyAvailabilityZoneGroupOutcome EC2Client::ModifyAvailabilityZoneGroup(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ImportVolumeOutcome EC2Client::ImportVolume(const ImportVolumeRequest& request) const +GetDefaultCreditSpecificationOutcome EC2Client::GetDefaultCreditSpecification(const GetDefaultCreditSpecificationRequest& request) const { - AWS_OPERATION_GUARD(ImportVolume); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ImportVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ImportVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetDefaultCreditSpecification); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDefaultCreditSpecification, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDefaultCreditSpecification, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ImportVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetDefaultCreditSpecification, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ImportVolumeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetDefaultCreditSpecificationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ImportVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ImportVolumeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetDefaultCreditSpecification, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetDefaultCreditSpecificationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetDefaultCreditSpecificationOutcome EC2Client::GetDefaultCreditSpecification(const GetDefaultCreditSpecificationRequest& request) const +ImportVolumeOutcome EC2Client::ImportVolume(const ImportVolumeRequest& request) const { - AWS_OPERATION_GUARD(GetDefaultCreditSpecification); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDefaultCreditSpecification, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDefaultCreditSpecification, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ImportVolume); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ImportVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ImportVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetDefaultCreditSpecification, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ImportVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetDefaultCreditSpecificationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ImportVolumeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetDefaultCreditSpecification, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetDefaultCreditSpecificationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ImportVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ImportVolumeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -839,52 +839,52 @@ GetConsoleScreenshotOutcome EC2Client::GetConsoleScreenshot(const GetConsoleScre {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ImportKeyPairOutcome EC2Client::ImportKeyPair(const ImportKeyPairRequest& request) const +ExportClientVpnClientCertificateRevocationListOutcome EC2Client::ExportClientVpnClientCertificateRevocationList(const ExportClientVpnClientCertificateRevocationListRequest& request) const { - AWS_OPERATION_GUARD(ImportKeyPair); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ImportKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ImportKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ExportClientVpnClientCertificateRevocationList); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ImportKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ImportKeyPairOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ExportClientVpnClientCertificateRevocationListOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ImportKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ImportKeyPairOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ExportClientVpnClientCertificateRevocationListOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ExportClientVpnClientCertificateRevocationListOutcome EC2Client::ExportClientVpnClientCertificateRevocationList(const ExportClientVpnClientCertificateRevocationListRequest& request) const +ImportKeyPairOutcome EC2Client::ImportKeyPair(const ImportKeyPairRequest& request) const { - AWS_OPERATION_GUARD(ExportClientVpnClientCertificateRevocationList); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ImportKeyPair); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ImportKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ImportKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ImportKeyPair, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ExportClientVpnClientCertificateRevocationListOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ImportKeyPairOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ExportClientVpnClientCertificateRevocationList, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ExportClientVpnClientCertificateRevocationListOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ImportKeyPair, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ImportKeyPairOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1073,32 +1073,6 @@ ModifyInstanceEventStartTimeOutcome EC2Client::ModifyInstanceEventStartTime(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyInstanceAttributeOutcome EC2Client::ModifyInstanceAttribute(const ModifyInstanceAttributeRequest& request) const -{ - AWS_OPERATION_GUARD(ModifyInstanceAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyInstanceAttributeOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyInstanceAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - EnableVpcClassicLinkOutcome EC2Client::EnableVpcClassicLink(const EnableVpcClassicLinkRequest& request) const { AWS_OPERATION_GUARD(EnableVpcClassicLink); @@ -1125,26 +1099,26 @@ EnableVpcClassicLinkOutcome EC2Client::EnableVpcClassicLink(const EnableVpcClass {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetIpamAddressHistoryOutcome EC2Client::GetIpamAddressHistory(const GetIpamAddressHistoryRequest& request) const +ModifyInstanceAttributeOutcome EC2Client::ModifyInstanceAttribute(const ModifyInstanceAttributeRequest& request) const { - AWS_OPERATION_GUARD(GetIpamAddressHistory); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIpamAddressHistory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIpamAddressHistory, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyInstanceAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetIpamAddressHistory, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetIpamAddressHistoryOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyInstanceAttributeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIpamAddressHistory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetIpamAddressHistoryOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyInstanceAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyInstanceAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1177,6 +1151,32 @@ EnableReachabilityAnalyzerOrganizationSharingOutcome EC2Client::EnableReachabili {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetIpamAddressHistoryOutcome EC2Client::GetIpamAddressHistory(const GetIpamAddressHistoryRequest& request) const +{ + AWS_OPERATION_GUARD(GetIpamAddressHistory); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIpamAddressHistory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIpamAddressHistory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetIpamAddressHistory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetIpamAddressHistoryOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIpamAddressHistory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetIpamAddressHistoryOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ModifyFleetOutcome EC2Client::ModifyFleet(const ModifyFleetRequest& request) const { AWS_OPERATION_GUARD(ModifyFleet); @@ -1307,52 +1307,52 @@ GetGroupsForCapacityReservationOutcome EC2Client::GetGroupsForCapacityReservatio {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyInstanceMaintenanceOptionsOutcome EC2Client::ModifyInstanceMaintenanceOptions(const ModifyInstanceMaintenanceOptionsRequest& request) const +GetIpamPoolAllocationsOutcome EC2Client::GetIpamPoolAllocations(const GetIpamPoolAllocationsRequest& request) const { - AWS_OPERATION_GUARD(ModifyInstanceMaintenanceOptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetIpamPoolAllocations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIpamPoolAllocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIpamPoolAllocations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetIpamPoolAllocations, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyInstanceMaintenanceOptionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetIpamPoolAllocationsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyInstanceMaintenanceOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIpamPoolAllocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetIpamPoolAllocationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetIpamPoolAllocationsOutcome EC2Client::GetIpamPoolAllocations(const GetIpamPoolAllocationsRequest& request) const +ModifyInstanceMaintenanceOptionsOutcome EC2Client::ModifyInstanceMaintenanceOptions(const ModifyInstanceMaintenanceOptionsRequest& request) const { - AWS_OPERATION_GUARD(GetIpamPoolAllocations); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIpamPoolAllocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIpamPoolAllocations, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyInstanceMaintenanceOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetIpamPoolAllocations, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetIpamPoolAllocationsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyInstanceMaintenanceOptionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIpamPoolAllocations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetIpamPoolAllocationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyInstanceMaintenanceOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyInstanceMaintenanceOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1437,32 +1437,6 @@ ModifyLaunchTemplateOutcome EC2Client::ModifyLaunchTemplate(const ModifyLaunchTe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetVpnConnectionDeviceSampleConfigurationOutcome EC2Client::GetVpnConnectionDeviceSampleConfiguration(const GetVpnConnectionDeviceSampleConfigurationRequest& request) const -{ - AWS_OPERATION_GUARD(GetVpnConnectionDeviceSampleConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetVpnConnectionDeviceSampleConfigurationOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetVpnConnectionDeviceSampleConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - GetTransitGatewayRouteTablePropagationsOutcome EC2Client::GetTransitGatewayRouteTablePropagations(const GetTransitGatewayRouteTablePropagationsRequest& request) const { AWS_OPERATION_GUARD(GetTransitGatewayRouteTablePropagations); @@ -1489,26 +1463,26 @@ GetTransitGatewayRouteTablePropagationsOutcome EC2Client::GetTransitGatewayRoute {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyIpamOutcome EC2Client::ModifyIpam(const ModifyIpamRequest& request) const +GetVpnConnectionDeviceSampleConfigurationOutcome EC2Client::GetVpnConnectionDeviceSampleConfiguration(const GetVpnConnectionDeviceSampleConfigurationRequest& request) const { - AWS_OPERATION_GUARD(ModifyIpam); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyIpam, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyIpam, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetVpnConnectionDeviceSampleConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyIpam, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyIpamOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetVpnConnectionDeviceSampleConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyIpam, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyIpamOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetVpnConnectionDeviceSampleConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetVpnConnectionDeviceSampleConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1541,6 +1515,32 @@ GetNetworkInsightsAccessScopeContentOutcome EC2Client::GetNetworkInsightsAccessS {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifyIpamOutcome EC2Client::ModifyIpam(const ModifyIpamRequest& request) const +{ + AWS_OPERATION_GUARD(ModifyIpam); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyIpam, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyIpam, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifyIpam, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyIpamOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyIpam, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyIpamOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ModifyInstanceCreditSpecificationOutcome EC2Client::ModifyInstanceCreditSpecification(const ModifyInstanceCreditSpecificationRequest& request) const { AWS_OPERATION_GUARD(ModifyInstanceCreditSpecification); @@ -2113,26 +2113,26 @@ EnableSerialConsoleAccessOutcome EC2Client::EnableSerialConsoleAccess(const Enab {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyIpamScopeOutcome EC2Client::ModifyIpamScope(const ModifyIpamScopeRequest& request) const +GetAssociatedEnclaveCertificateIamRolesOutcome EC2Client::GetAssociatedEnclaveCertificateIamRoles(const GetAssociatedEnclaveCertificateIamRolesRequest& request) const { - AWS_OPERATION_GUARD(ModifyIpamScope); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetAssociatedEnclaveCertificateIamRoles); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyIpamScopeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetAssociatedEnclaveCertificateIamRolesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyIpamScopeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetAssociatedEnclaveCertificateIamRolesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2165,26 +2165,26 @@ GetIpamDiscoveredAccountsOutcome EC2Client::GetIpamDiscoveredAccounts(const GetI {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetAssociatedEnclaveCertificateIamRolesOutcome EC2Client::GetAssociatedEnclaveCertificateIamRoles(const GetAssociatedEnclaveCertificateIamRolesRequest& request) const +ModifyIpamScopeOutcome EC2Client::ModifyIpamScope(const ModifyIpamScopeRequest& request) const { - AWS_OPERATION_GUARD(GetAssociatedEnclaveCertificateIamRoles); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyIpamScope); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyIpamScope, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetAssociatedEnclaveCertificateIamRolesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyIpamScopeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAssociatedEnclaveCertificateIamRoles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetAssociatedEnclaveCertificateIamRolesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyIpamScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyIpamScopeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2217,52 +2217,52 @@ ModifyIdentityIdFormatOutcome EC2Client::ModifyIdentityIdFormat(const ModifyIden {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyIdFormatOutcome EC2Client::ModifyIdFormat(const ModifyIdFormatRequest& request) const +EnableVolumeIOOutcome EC2Client::EnableVolumeIO(const EnableVolumeIORequest& request) const { - AWS_OPERATION_GUARD(ModifyIdFormat); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyIdFormat, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyIdFormat, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(EnableVolumeIO); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableVolumeIO, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableVolumeIO, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyIdFormat, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, EnableVolumeIO, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyIdFormatOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> EnableVolumeIOOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyIdFormat, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyIdFormatOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableVolumeIO, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableVolumeIOOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -EnableVolumeIOOutcome EC2Client::EnableVolumeIO(const EnableVolumeIORequest& request) const +ModifyIdFormatOutcome EC2Client::ModifyIdFormat(const ModifyIdFormatRequest& request) const { - AWS_OPERATION_GUARD(EnableVolumeIO); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableVolumeIO, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableVolumeIO, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyIdFormat); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyIdFormat, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyIdFormat, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, EnableVolumeIO, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyIdFormat, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> EnableVolumeIOOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyIdFormatOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableVolumeIO, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return EnableVolumeIOOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyIdFormat, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyIdFormatOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp index 420f11df17c..94a30c82e46 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp @@ -21,62 +21,62 @@ #include #include #include -#include #include +#include #include #include #include #include -#include -#include -#include #include +#include +#include +#include #include #include -#include #include +#include #include #include #include #include #include #include -#include -#include #include +#include +#include #include #include #include #include #include -#include #include -#include +#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include @@ -86,32 +86,32 @@ #include #include #include -#include #include +#include #include -#include #include +#include #include -#include #include +#include #include -#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include #include -#include #include -#include +#include #include +#include #include #include #include @@ -136,52 +136,52 @@ using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; -RejectTransitGatewayPeeringAttachmentOutcome EC2Client::RejectTransitGatewayPeeringAttachment(const RejectTransitGatewayPeeringAttachmentRequest& request) const +ModifySnapshotAttributeOutcome EC2Client::ModifySnapshotAttribute(const ModifySnapshotAttributeRequest& request) const { - AWS_OPERATION_GUARD(RejectTransitGatewayPeeringAttachment); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifySnapshotAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifySnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RejectTransitGatewayPeeringAttachmentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifySnapshotAttributeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RejectTransitGatewayPeeringAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifySnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifySnapshotAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifySnapshotAttributeOutcome EC2Client::ModifySnapshotAttribute(const ModifySnapshotAttributeRequest& request) const +RejectTransitGatewayPeeringAttachmentOutcome EC2Client::RejectTransitGatewayPeeringAttachment(const RejectTransitGatewayPeeringAttachmentRequest& request) const { - AWS_OPERATION_GUARD(ModifySnapshotAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(RejectTransitGatewayPeeringAttachment); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifySnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifySnapshotAttributeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> RejectTransitGatewayPeeringAttachmentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifySnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifySnapshotAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RejectTransitGatewayPeeringAttachment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RejectTransitGatewayPeeringAttachmentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -292,104 +292,104 @@ UnassignPrivateNatGatewayAddressOutcome EC2Client::UnassignPrivateNatGatewayAddr {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StopInstancesOutcome EC2Client::StopInstances(const StopInstancesRequest& request) const +ModifySecurityGroupRulesOutcome EC2Client::ModifySecurityGroupRules(const ModifySecurityGroupRulesRequest& request) const { - AWS_OPERATION_GUARD(StopInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifySecurityGroupRules); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySecurityGroupRules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySecurityGroupRules, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StopInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifySecurityGroupRules, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StopInstancesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifySecurityGroupRulesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StopInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifySecurityGroupRules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifySecurityGroupRulesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RequestSpotFleetOutcome EC2Client::RequestSpotFleet(const RequestSpotFleetRequest& request) const +ModifyTrafficMirrorFilterNetworkServicesOutcome EC2Client::ModifyTrafficMirrorFilterNetworkServices(const ModifyTrafficMirrorFilterNetworkServicesRequest& request) const { - AWS_OPERATION_GUARD(RequestSpotFleet); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RequestSpotFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RequestSpotFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyTrafficMirrorFilterNetworkServices); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RequestSpotFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RequestSpotFleetOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyTrafficMirrorFilterNetworkServicesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RequestSpotFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RequestSpotFleetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyTrafficMirrorFilterNetworkServicesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyTrafficMirrorFilterNetworkServicesOutcome EC2Client::ModifyTrafficMirrorFilterNetworkServices(const ModifyTrafficMirrorFilterNetworkServicesRequest& request) const +RequestSpotFleetOutcome EC2Client::RequestSpotFleet(const RequestSpotFleetRequest& request) const { - AWS_OPERATION_GUARD(ModifyTrafficMirrorFilterNetworkServices); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(RequestSpotFleet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RequestSpotFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RequestSpotFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, RequestSpotFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyTrafficMirrorFilterNetworkServicesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> RequestSpotFleetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTrafficMirrorFilterNetworkServices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyTrafficMirrorFilterNetworkServicesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RequestSpotFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RequestSpotFleetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifySecurityGroupRulesOutcome EC2Client::ModifySecurityGroupRules(const ModifySecurityGroupRulesRequest& request) const +StopInstancesOutcome EC2Client::StopInstances(const StopInstancesRequest& request) const { - AWS_OPERATION_GUARD(ModifySecurityGroupRules); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySecurityGroupRules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySecurityGroupRules, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StopInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifySecurityGroupRules, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, StopInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifySecurityGroupRulesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StopInstancesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifySecurityGroupRules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifySecurityGroupRulesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StopInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -448,52 +448,52 @@ ResetInstanceAttributeOutcome EC2Client::ResetInstanceAttribute(const ResetInsta {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ResetSnapshotAttributeOutcome EC2Client::ResetSnapshotAttribute(const ResetSnapshotAttributeRequest& request) const +PurchaseReservedInstancesOfferingOutcome EC2Client::PurchaseReservedInstancesOffering(const PurchaseReservedInstancesOfferingRequest& request) const { - AWS_OPERATION_GUARD(ResetSnapshotAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ResetSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ResetSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(PurchaseReservedInstancesOffering); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ResetSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ResetSnapshotAttributeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> PurchaseReservedInstancesOfferingOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ResetSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ResetSnapshotAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return PurchaseReservedInstancesOfferingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -PurchaseReservedInstancesOfferingOutcome EC2Client::PurchaseReservedInstancesOffering(const PurchaseReservedInstancesOfferingRequest& request) const +ResetSnapshotAttributeOutcome EC2Client::ResetSnapshotAttribute(const ResetSnapshotAttributeRequest& request) const { - AWS_OPERATION_GUARD(PurchaseReservedInstancesOffering); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ResetSnapshotAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ResetSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ResetSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ResetSnapshotAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> PurchaseReservedInstancesOfferingOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ResetSnapshotAttributeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PurchaseReservedInstancesOffering, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return PurchaseReservedInstancesOfferingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ResetSnapshotAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ResetSnapshotAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -656,26 +656,26 @@ ModifyVpcEndpointServiceConfigurationOutcome EC2Client::ModifyVpcEndpointService {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RestoreManagedPrefixListVersionOutcome EC2Client::RestoreManagedPrefixListVersion(const RestoreManagedPrefixListVersionRequest& request) const +ModifyVerifiedAccessEndpointOutcome EC2Client::ModifyVerifiedAccessEndpoint(const ModifyVerifiedAccessEndpointRequest& request) const { - AWS_OPERATION_GUARD(RestoreManagedPrefixListVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyVerifiedAccessEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RestoreManagedPrefixListVersionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVerifiedAccessEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RestoreManagedPrefixListVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVerifiedAccessEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -708,26 +708,26 @@ ReleaseAddressOutcome EC2Client::ReleaseAddress(const ReleaseAddressRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVerifiedAccessEndpointOutcome EC2Client::ModifyVerifiedAccessEndpoint(const ModifyVerifiedAccessEndpointRequest& request) const +RestoreManagedPrefixListVersionOutcome EC2Client::RestoreManagedPrefixListVersion(const RestoreManagedPrefixListVersionRequest& request) const { - AWS_OPERATION_GUARD(ModifyVerifiedAccessEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(RestoreManagedPrefixListVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVerifiedAccessEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> RestoreManagedPrefixListVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVerifiedAccessEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVerifiedAccessEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RestoreManagedPrefixListVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RestoreManagedPrefixListVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -864,32 +864,6 @@ MoveByoipCidrToIpamOutcome EC2Client::MoveByoipCidrToIpam(const MoveByoipCidrToI {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UnassignPrivateIpAddressesOutcome EC2Client::UnassignPrivateIpAddresses(const UnassignPrivateIpAddressesRequest& request) const -{ - AWS_OPERATION_GUARD(UnassignPrivateIpAddresses); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UnassignPrivateIpAddressesOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UnassignPrivateIpAddressesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - SearchTransitGatewayRoutesOutcome EC2Client::SearchTransitGatewayRoutes(const SearchTransitGatewayRoutesRequest& request) const { AWS_OPERATION_GUARD(SearchTransitGatewayRoutes); @@ -916,26 +890,26 @@ SearchTransitGatewayRoutesOutcome EC2Client::SearchTransitGatewayRoutes(const Se {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVpnConnectionOptionsOutcome EC2Client::ModifyVpnConnectionOptions(const ModifyVpnConnectionOptionsRequest& request) const +UnassignPrivateIpAddressesOutcome EC2Client::UnassignPrivateIpAddresses(const UnassignPrivateIpAddressesRequest& request) const { - AWS_OPERATION_GUARD(ModifyVpnConnectionOptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UnassignPrivateIpAddresses); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVpnConnectionOptionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UnassignPrivateIpAddressesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVpnConnectionOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UnassignPrivateIpAddresses, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UnassignPrivateIpAddressesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -968,6 +942,32 @@ ModifyVpcPeeringConnectionOptionsOutcome EC2Client::ModifyVpcPeeringConnectionOp {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifyVpnConnectionOptionsOutcome EC2Client::ModifyVpnConnectionOptions(const ModifyVpnConnectionOptionsRequest& request) const +{ + AWS_OPERATION_GUARD(ModifyVpnConnectionOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVpnConnectionOptionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVpnConnectionOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVpnConnectionOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + SearchTransitGatewayMulticastGroupsOutcome EC2Client::SearchTransitGatewayMulticastGroups(const SearchTransitGatewayMulticastGroupsRequest& request) const { AWS_OPERATION_GUARD(SearchTransitGatewayMulticastGroups); @@ -1124,52 +1124,52 @@ TerminateClientVpnConnectionsOutcome EC2Client::TerminateClientVpnConnections(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RevokeSecurityGroupIngressOutcome EC2Client::RevokeSecurityGroupIngress(const RevokeSecurityGroupIngressRequest& request) const +ReportInstanceStatusOutcome EC2Client::ReportInstanceStatus(const ReportInstanceStatusRequest& request) const { - AWS_OPERATION_GUARD(RevokeSecurityGroupIngress); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ReportInstanceStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReportInstanceStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReportInstanceStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ReportInstanceStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RevokeSecurityGroupIngressOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ReportInstanceStatusOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RevokeSecurityGroupIngressOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReportInstanceStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ReportInstanceStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ReportInstanceStatusOutcome EC2Client::ReportInstanceStatus(const ReportInstanceStatusRequest& request) const +RevokeSecurityGroupIngressOutcome EC2Client::RevokeSecurityGroupIngress(const RevokeSecurityGroupIngressRequest& request) const { - AWS_OPERATION_GUARD(ReportInstanceStatus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReportInstanceStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReportInstanceStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(RevokeSecurityGroupIngress); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ReportInstanceStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ReportInstanceStatusOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> RevokeSecurityGroupIngressOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReportInstanceStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ReportInstanceStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RevokeSecurityGroupIngress, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RevokeSecurityGroupIngressOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1228,52 +1228,52 @@ RejectTransitGatewayVpcAttachmentOutcome EC2Client::RejectTransitGatewayVpcAttac {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVpnTunnelOptionsOutcome EC2Client::ModifyVpnTunnelOptions(const ModifyVpnTunnelOptionsRequest& request) const +ModifyVolumeOutcome EC2Client::ModifyVolume(const ModifyVolumeRequest& request) const { - AWS_OPERATION_GUARD(ModifyVpnTunnelOptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyVolume); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVpnTunnelOptionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVolumeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVpnTunnelOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVolumeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVolumeOutcome EC2Client::ModifyVolume(const ModifyVolumeRequest& request) const +ModifyVpnTunnelOptionsOutcome EC2Client::ModifyVpnTunnelOptions(const ModifyVpnTunnelOptionsRequest& request) const { - AWS_OPERATION_GUARD(ModifyVolume); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyVpnTunnelOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVolume, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVolumeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVpnTunnelOptionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVolume, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVolumeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVpnTunnelOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVpnTunnelOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1436,52 +1436,52 @@ RunInstancesOutcome EC2Client::RunInstances(const RunInstancesRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ReleaseHostsOutcome EC2Client::ReleaseHosts(const ReleaseHostsRequest& request) const +ModifyVerifiedAccessTrustProviderOutcome EC2Client::ModifyVerifiedAccessTrustProvider(const ModifyVerifiedAccessTrustProviderRequest& request) const { - AWS_OPERATION_GUARD(ReleaseHosts); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReleaseHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReleaseHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyVerifiedAccessTrustProvider); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ReleaseHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ReleaseHostsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVerifiedAccessTrustProviderOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReleaseHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ReleaseHostsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVerifiedAccessTrustProviderOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVerifiedAccessTrustProviderOutcome EC2Client::ModifyVerifiedAccessTrustProvider(const ModifyVerifiedAccessTrustProviderRequest& request) const +ReleaseHostsOutcome EC2Client::ReleaseHosts(const ReleaseHostsRequest& request) const { - AWS_OPERATION_GUARD(ModifyVerifiedAccessTrustProvider); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ReleaseHosts); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReleaseHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReleaseHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ReleaseHosts, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVerifiedAccessTrustProviderOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ReleaseHostsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVerifiedAccessTrustProvider, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVerifiedAccessTrustProviderOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReleaseHosts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ReleaseHostsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1540,52 +1540,52 @@ RestoreSnapshotFromRecycleBinOutcome EC2Client::RestoreSnapshotFromRecycleBin(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ReplaceRouteTableAssociationOutcome EC2Client::ReplaceRouteTableAssociation(const ReplaceRouteTableAssociationRequest& request) const +ModifyVerifiedAccessInstanceLoggingConfigurationOutcome EC2Client::ModifyVerifiedAccessInstanceLoggingConfiguration(const ModifyVerifiedAccessInstanceLoggingConfigurationRequest& request) const { - AWS_OPERATION_GUARD(ReplaceRouteTableAssociation); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyVerifiedAccessInstanceLoggingConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ReplaceRouteTableAssociationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVerifiedAccessInstanceLoggingConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ReplaceRouteTableAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVerifiedAccessInstanceLoggingConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVerifiedAccessInstanceLoggingConfigurationOutcome EC2Client::ModifyVerifiedAccessInstanceLoggingConfiguration(const ModifyVerifiedAccessInstanceLoggingConfigurationRequest& request) const +ReplaceRouteTableAssociationOutcome EC2Client::ReplaceRouteTableAssociation(const ReplaceRouteTableAssociationRequest& request) const { - AWS_OPERATION_GUARD(ModifyVerifiedAccessInstanceLoggingConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ReplaceRouteTableAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVerifiedAccessInstanceLoggingConfigurationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ReplaceRouteTableAssociationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVerifiedAccessInstanceLoggingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVerifiedAccessInstanceLoggingConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReplaceRouteTableAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ReplaceRouteTableAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1826,52 +1826,52 @@ ModifyVerifiedAccessEndpointPolicyOutcome EC2Client::ModifyVerifiedAccessEndpoin {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -TerminateInstancesOutcome EC2Client::TerminateInstances(const TerminateInstancesRequest& request) const +ProvisionByoipCidrOutcome EC2Client::ProvisionByoipCidr(const ProvisionByoipCidrRequest& request) const { - AWS_OPERATION_GUARD(TerminateInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, TerminateInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TerminateInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ProvisionByoipCidr); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ProvisionByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ProvisionByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, TerminateInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ProvisionByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> TerminateInstancesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ProvisionByoipCidrOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TerminateInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return TerminateInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ProvisionByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ProvisionByoipCidrOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ProvisionByoipCidrOutcome EC2Client::ProvisionByoipCidr(const ProvisionByoipCidrRequest& request) const +TerminateInstancesOutcome EC2Client::TerminateInstances(const TerminateInstancesRequest& request) const { - AWS_OPERATION_GUARD(ProvisionByoipCidr); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ProvisionByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ProvisionByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(TerminateInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TerminateInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TerminateInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ProvisionByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, TerminateInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ProvisionByoipCidrOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> TerminateInstancesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ProvisionByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ProvisionByoipCidrOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TerminateInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return TerminateInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1904,52 +1904,52 @@ ModifyVpnTunnelCertificateOutcome EC2Client::ModifyVpnTunnelCertificate(const Mo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartNetworkInsightsAccessScopeAnalysisOutcome EC2Client::StartNetworkInsightsAccessScopeAnalysis(const StartNetworkInsightsAccessScopeAnalysisRequest& request) const +ModifyTransitGatewayPrefixListReferenceOutcome EC2Client::ModifyTransitGatewayPrefixListReference(const ModifyTransitGatewayPrefixListReferenceRequest& request) const { - AWS_OPERATION_GUARD(StartNetworkInsightsAccessScopeAnalysis); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyTransitGatewayPrefixListReference); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartNetworkInsightsAccessScopeAnalysisOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyTransitGatewayPrefixListReferenceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartNetworkInsightsAccessScopeAnalysisOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyTransitGatewayPrefixListReferenceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyTransitGatewayPrefixListReferenceOutcome EC2Client::ModifyTransitGatewayPrefixListReference(const ModifyTransitGatewayPrefixListReferenceRequest& request) const +StartNetworkInsightsAccessScopeAnalysisOutcome EC2Client::StartNetworkInsightsAccessScopeAnalysis(const StartNetworkInsightsAccessScopeAnalysisRequest& request) const { - AWS_OPERATION_GUARD(ModifyTransitGatewayPrefixListReference); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartNetworkInsightsAccessScopeAnalysis); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyTransitGatewayPrefixListReferenceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartNetworkInsightsAccessScopeAnalysisOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTransitGatewayPrefixListReference, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyTransitGatewayPrefixListReferenceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartNetworkInsightsAccessScopeAnalysis, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartNetworkInsightsAccessScopeAnalysisOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1982,52 +1982,52 @@ UpdateSecurityGroupRuleDescriptionsIngressOutcome EC2Client::UpdateSecurityGroup {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ReplaceIamInstanceProfileAssociationOutcome EC2Client::ReplaceIamInstanceProfileAssociation(const ReplaceIamInstanceProfileAssociationRequest& request) const +ModifyTransitGatewayOutcome EC2Client::ModifyTransitGateway(const ModifyTransitGatewayRequest& request) const { - AWS_OPERATION_GUARD(ReplaceIamInstanceProfileAssociation); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyTransitGateway); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ReplaceIamInstanceProfileAssociationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyTransitGatewayOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ReplaceIamInstanceProfileAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyTransitGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyTransitGatewayOutcome EC2Client::ModifyTransitGateway(const ModifyTransitGatewayRequest& request) const +ReplaceIamInstanceProfileAssociationOutcome EC2Client::ReplaceIamInstanceProfileAssociation(const ReplaceIamInstanceProfileAssociationRequest& request) const { - AWS_OPERATION_GUARD(ModifyTransitGateway); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ReplaceIamInstanceProfileAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyTransitGateway, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyTransitGatewayOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ReplaceIamInstanceProfileAssociationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTransitGateway, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyTransitGatewayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ReplaceIamInstanceProfileAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ReplaceIamInstanceProfileAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2060,52 +2060,52 @@ RegisterTransitGatewayMulticastGroupMembersOutcome EC2Client::RegisterTransitGat {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -WithdrawByoipCidrOutcome EC2Client::WithdrawByoipCidr(const WithdrawByoipCidrRequest& request) const +ModifyTrafficMirrorFilterRuleOutcome EC2Client::ModifyTrafficMirrorFilterRule(const ModifyTrafficMirrorFilterRuleRequest& request) const { - AWS_OPERATION_GUARD(WithdrawByoipCidr); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, WithdrawByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, WithdrawByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyTrafficMirrorFilterRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, WithdrawByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> WithdrawByoipCidrOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyTrafficMirrorFilterRuleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, WithdrawByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return WithdrawByoipCidrOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyTrafficMirrorFilterRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyTrafficMirrorFilterRuleOutcome EC2Client::ModifyTrafficMirrorFilterRule(const ModifyTrafficMirrorFilterRuleRequest& request) const +WithdrawByoipCidrOutcome EC2Client::WithdrawByoipCidr(const WithdrawByoipCidrRequest& request) const { - AWS_OPERATION_GUARD(ModifyTrafficMirrorFilterRule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(WithdrawByoipCidr); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, WithdrawByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, WithdrawByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, WithdrawByoipCidr, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyTrafficMirrorFilterRuleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> WithdrawByoipCidrOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyTrafficMirrorFilterRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyTrafficMirrorFilterRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, WithdrawByoipCidr, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return WithdrawByoipCidrOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2268,52 +2268,52 @@ UnmonitorInstancesOutcome EC2Client::UnmonitorInstances(const UnmonitorInstances {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartInstancesOutcome EC2Client::StartInstances(const StartInstancesRequest& request) const +ModifyVpnConnectionOutcome EC2Client::ModifyVpnConnection(const ModifyVpnConnectionRequest& request) const { - AWS_OPERATION_GUARD(StartInstances); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ModifyVpnConnection); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, ModifyVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartInstancesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ModifyVpnConnectionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifyVpnConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifyVpnConnectionOutcome EC2Client::ModifyVpnConnection(const ModifyVpnConnectionRequest& request) const +StartInstancesOutcome EC2Client::StartInstances(const StartInstancesRequest& request) const { - AWS_OPERATION_GUARD(ModifyVpnConnection); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifyVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifyVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifyVpnConnection, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, StartInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ModifyVpnConnectionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartInstancesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ModifyVpnConnection, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifyVpnConnectionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2398,32 +2398,6 @@ RegisterImageOutcome EC2Client::RegisterImage(const RegisterImageRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SearchLocalGatewayRoutesOutcome EC2Client::SearchLocalGatewayRoutes(const SearchLocalGatewayRoutesRequest& request) const -{ - AWS_OPERATION_GUARD(SearchLocalGatewayRoutes); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SearchLocalGatewayRoutesOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return SearchLocalGatewayRoutesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - RestoreAddressToClassicOutcome EC2Client::RestoreAddressToClassic(const RestoreAddressToClassicRequest& request) const { AWS_OPERATION_GUARD(RestoreAddressToClassic); @@ -2450,26 +2424,26 @@ RestoreAddressToClassicOutcome EC2Client::RestoreAddressToClassic(const RestoreA {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RegisterTransitGatewayMulticastGroupSourcesOutcome EC2Client::RegisterTransitGatewayMulticastGroupSources(const RegisterTransitGatewayMulticastGroupSourcesRequest& request) const +SearchLocalGatewayRoutesOutcome EC2Client::SearchLocalGatewayRoutes(const SearchLocalGatewayRoutesRequest& request) const { - AWS_OPERATION_GUARD(RegisterTransitGatewayMulticastGroupSources); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SearchLocalGatewayRoutes); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RegisterTransitGatewayMulticastGroupSourcesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SearchLocalGatewayRoutesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RegisterTransitGatewayMulticastGroupSourcesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SearchLocalGatewayRoutes, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return SearchLocalGatewayRoutesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2502,6 +2476,32 @@ ModifyVerifiedAccessInstanceOutcome EC2Client::ModifyVerifiedAccessInstance(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +RegisterTransitGatewayMulticastGroupSourcesOutcome EC2Client::RegisterTransitGatewayMulticastGroupSources(const RegisterTransitGatewayMulticastGroupSourcesRequest& request) const +{ + AWS_OPERATION_GUARD(RegisterTransitGatewayMulticastGroupSources); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> RegisterTransitGatewayMulticastGroupSourcesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RegisterTransitGatewayMulticastGroupSources, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RegisterTransitGatewayMulticastGroupSourcesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ProvisionPublicIpv4PoolCidrOutcome EC2Client::ProvisionPublicIpv4PoolCidr(const ProvisionPublicIpv4PoolCidrRequest& request) const { AWS_OPERATION_GUARD(ProvisionPublicIpv4PoolCidr); diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Errors.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Errors.cpp index fd5db1460d7..7f626504959 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Errors.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Errors.cpp @@ -18,179 +18,179 @@ namespace EC2 namespace EC2ErrorMapper { -static const int DRY_RUN_OPERATION_HASH = HashingUtils::HashString("DryRunOperation"); -static const int INVALID_VPN_CONNECTION_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVpnConnectionID.NotFound"); -static const int VOLUME_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VolumeLimitExceeded"); -static const int INVALID_SNAPSHOT__NOT_FOUND_HASH = HashingUtils::HashString("InvalidSnapshot.NotFound"); -static const int RESERVED_INSTANCES_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ReservedInstancesLimitExceeded"); -static const int INVALID_VPC_ENDPOINT_ID__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVpcEndpointId.NotFound"); -static const int INVALID_ZONE__NOT_FOUND_HASH = HashingUtils::HashString("InvalidZone.NotFound"); -static const int INVALID_ROUTE__NOT_FOUND_HASH = HashingUtils::HashString("InvalidRoute.NotFound"); -static const int INVALID_NETWORK_INTERFACE_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidNetworkInterfaceId.Malformed"); -static const int INVALID_VPC__RANGE_HASH = HashingUtils::HashString("InvalidVpc.Range"); -static const int NON_E_B_S_INSTANCE_HASH = HashingUtils::HashString("NonEBSInstance"); -static const int INVALID_A_M_I_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAMIID.NotFound"); -static const int INVALID_KEY_PAIR__NOT_FOUND_HASH = HashingUtils::HashString("InvalidKeyPair.NotFound"); -static const int VPC_PEERING_CONNECTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("VpcPeeringConnectionAlreadyExists"); -static const int INVALID_VPC_ENDPOINT_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidVpcEndpointId.Malformed"); -static const int INVALID_VOLUME_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidVolumeID.Malformed"); -static const int INVALID_RESERVED_INSTANCES_OFFERING_ID_HASH = HashingUtils::HashString("InvalidReservedInstancesOfferingId"); -static const int INVALID_BLOCK_DEVICE_MAPPING_HASH = HashingUtils::HashString("InvalidBlockDeviceMapping"); -static const int INVALID_VOLUME_I_D__ZONE_MISMATCH_HASH = HashingUtils::HashString("InvalidVolumeID.ZoneMismatch"); -static const int UNSUPPORTED_HASH = HashingUtils::HashString("Unsupported"); -static const int INVALID_KEY__FORMAT_HASH = HashingUtils::HashString("InvalidKey.Format"); -static const int INVALID_SPOT_FLEET_REQUEST_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidSpotFleetRequestId.Malformed"); -static const int INVALID_ADDRESS_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAddressID.NotFound"); -static const int ROUTE_ALREADY_EXISTS_HASH = HashingUtils::HashString("RouteAlreadyExists"); -static const int INVALID_A_M_I_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidAMIID.Malformed"); -static const int INVALID_KEY_PAIR__FORMAT_HASH = HashingUtils::HashString("InvalidKeyPair.Format"); -static const int VPC_CIDR_CONFLICT_HASH = HashingUtils::HashString("VpcCidrConflict"); -static const int INVALID_GROUP__RESERVED_HASH = HashingUtils::HashString("InvalidGroup.Reserved"); -static const int LEGACY_SECURITY_GROUP_HASH = HashingUtils::HashString("LegacySecurityGroup"); -static const int CANNOT_DELETE_HASH = HashingUtils::HashString("CannotDelete"); -static const int INVALID_I_P_ADDRESS__IN_USE_HASH = HashingUtils::HashString("InvalidIPAddress.InUse"); -static const int INVALID_A_M_I_I_D__UNAVAILABLE_HASH = HashingUtils::HashString("InvalidAMIID.Unavailable"); -static const int INVALID_FORMAT_HASH = HashingUtils::HashString("InvalidFormat"); -static const int INVALID_GROUP_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidGroupId.Malformed"); -static const int BUNDLING_IN_PROGRESS_HASH = HashingUtils::HashString("BundlingInProgress"); -static const int INVALID_INSTANCE_TYPE_HASH = HashingUtils::HashString("InvalidInstanceType"); -static const int INVALID_PERMISSION__NOT_FOUND_HASH = HashingUtils::HashString("InvalidPermission.NotFound"); -static const int INVALID_ROUTE__MALFORMED_HASH = HashingUtils::HashString("InvalidRoute.Malformed"); -static const int INVALID_RESERVATION_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidReservationID.Malformed"); -static const int INVALID_KEY_PAIR__DUPLICATE_HASH = HashingUtils::HashString("InvalidKeyPair.Duplicate"); -static const int ROUTE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RouteLimitExceeded"); -static const int INVALID_SECURITY__REQUEST_HAS_EXPIRED_HASH = HashingUtils::HashString("InvalidSecurity.RequestHasExpired"); -static const int INVALID_SPOT_INSTANCE_REQUEST_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidSpotInstanceRequestID.Malformed"); -static const int INVALID_VPC_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVpcID.NotFound"); -static const int ROUTE_TABLE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RouteTableLimitExceeded"); -static const int INVALID_ATTACHMENT_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAttachmentID.NotFound"); -static const int INVALID_PERMISSION__MALFORMED_HASH = HashingUtils::HashString("InvalidPermission.Malformed"); -static const int VOLUME_IN_USE_HASH = HashingUtils::HashString("VolumeInUse"); -static const int ACTIVE_VPC_PEERING_CONNECTION_PER_VPC_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ActiveVpcPeeringConnectionPerVpcLimitExceeded"); -static const int INVALID_VOLUME__ZONE_MISMATCH_HASH = HashingUtils::HashString("InvalidVolume.ZoneMismatch"); -static const int INVALID_DHCP_OPTION_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidDhcpOptionID.NotFound"); -static const int PENDING_SNAPSHOT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PendingSnapshotLimitExceeded"); -static const int INVALID_PREFIX_LIST_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidPrefixListId.Malformed"); -static const int INVALID_VPN_CONNECTION_I_D_HASH = HashingUtils::HashString("InvalidVpnConnectionID"); -static const int INVALID_USER_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidUserID.Malformed"); -static const int ADDRESS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AddressLimitExceeded"); -static const int INVALID_GROUP__NOT_FOUND_HASH = HashingUtils::HashString("InvalidGroup.NotFound"); -static const int INVALID_I_D_HASH = HashingUtils::HashString("InvalidID"); -static const int VOLUME_TYPE_NOT_AVAILABLE_IN_ZONE_HASH = HashingUtils::HashString("VolumeTypeNotAvailableInZone"); -static const int INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_HASH = HashingUtils::HashString("InsufficientFreeAddressesInSubnet"); -static const int DISK_IMAGE_SIZE_TOO_LARGE_HASH = HashingUtils::HashString("DiskImageSizeTooLarge"); -static const int INVALID_A_M_I_ATTRIBUTE_ITEM_VALUE_HASH = HashingUtils::HashString("InvalidAMIAttributeItemValue"); -static const int INVALID_GROUP__IN_USE_HASH = HashingUtils::HashString("InvalidGroup.InUse"); -static const int INVALID_SPOT_DATAFEED__NOT_FOUND_HASH = HashingUtils::HashString("InvalidSpotDatafeed.NotFound"); -static const int INSUFFICIENT_RESERVED_INSTANCES_CAPACITY_HASH = HashingUtils::HashString("InsufficientReservedInstancesCapacity"); -static const int MAX_I_O_P_S_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("MaxIOPSLimitExceeded"); -static const int RESOURCE_COUNT_EXCEEDED_HASH = HashingUtils::HashString("ResourceCountExceeded"); -static const int INCORRECT_STATE_HASH = HashingUtils::HashString("IncorrectState"); -static const int NETWORK_ACL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("NetworkAclLimitExceeded"); -static const int INVALID_RESERVED_INSTANCES_ID_HASH = HashingUtils::HashString("InvalidReservedInstancesId"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperation"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequest"); -static const int VPC_ENDPOINT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VpcEndpointLimitExceeded"); -static const int INVALID_ROUTE_TABLE_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidRouteTableId.Malformed"); -static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransition"); -static const int INVALID_VPC_PEERING_CONNECTION_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidVpcPeeringConnectionId.Malformed"); -static const int PRIVATE_IP_ADDRESS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PrivateIpAddressLimitExceeded"); -static const int VPC_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VpcLimitExceeded"); -static const int INVALID_PERMISSION__DUPLICATE_HASH = HashingUtils::HashString("InvalidPermission.Duplicate"); -static const int CUSTOMER_GATEWAY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CustomerGatewayLimitExceeded"); -static const int INSTANCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("InstanceLimitExceeded"); -static const int INTERNET_GATEWAY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("InternetGatewayLimitExceeded"); -static const int CONCURRENT_SNAPSHOT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ConcurrentSnapshotLimitExceeded"); -static const int SECURITY_GROUPS_PER_INSTANCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SecurityGroupsPerInstanceLimitExceeded"); -static const int V_P_C_RESOURCE_NOT_SPECIFIED_HASH = HashingUtils::HashString("VPCResourceNotSpecified"); -static const int INVALID_SNAPSHOT__IN_USE_HASH = HashingUtils::HashString("InvalidSnapshot.InUse"); -static const int UNKNOWN_VOLUME_TYPE_HASH = HashingUtils::HashString("UnknownVolumeType"); -static const int SECURITY_GROUP_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SecurityGroupLimitExceeded"); -static const int INVALID_SUBNET_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidSubnetID.NotFound"); -static const int GATEWAY__NOT_ATTACHED_HASH = HashingUtils::HashString("Gateway.NotAttached"); -static const int INVALID_GROUP__DUPLICATE_HASH = HashingUtils::HashString("InvalidGroup.Duplicate"); -static const int ENCRYPTED_VOLUMES_NOT_SUPPORTED_HASH = HashingUtils::HashString("EncryptedVolumesNotSupported"); -static const int INVALID_ROUTE_TABLE_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidRouteTableID.NotFound"); -static const int INVALID_SECURITY_GROUP_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidSecurityGroupID.NotFound"); -static const int INVALID_PLACEMENT_GROUP__UNKNOWN_HASH = HashingUtils::HashString("InvalidPlacementGroup.Unknown"); -static const int INVALID_INSTANCE_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidInstanceID.Malformed"); -static const int INSTANCE_ALREADY_LINKED_HASH = HashingUtils::HashString("InstanceAlreadyLinked"); -static const int INVALID_ATTACHMENT__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAttachment.NotFound"); -static const int INVALID_CUSTOMER_GATEWAY__DUPLICATE_IP_ADDRESS_HASH = HashingUtils::HashString("InvalidCustomerGateway.DuplicateIpAddress"); -static const int INVALID_SUBNET__CONFLICT_HASH = HashingUtils::HashString("InvalidSubnet.Conflict"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInput"); -static const int INVALID_INSTANCE_ATTRIBUTE_VALUE_HASH = HashingUtils::HashString("InvalidInstanceAttributeValue"); -static const int REQUEST_RESOURCE_COUNT_EXCEEDED_HASH = HashingUtils::HashString("RequestResourceCountExceeded"); -static const int INVALID_ASSOCIATION_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAssociationID.NotFound"); -static const int INVALID_DEVICE__IN_USE_HASH = HashingUtils::HashString("InvalidDevice.InUse"); -static const int INVALID_CONVERSION_TASK_ID_HASH = HashingUtils::HashString("InvalidConversionTaskId"); -static const int MAX_SPOT_FLEET_REQUEST_COUNT_EXCEEDED_HASH = HashingUtils::HashString("MaxSpotFleetRequestCountExceeded"); -static const int INVALID_ALLOCATION_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAllocationID.NotFound"); -static const int INVALID_CUSTOMER_GATEWAY_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidCustomerGatewayID.NotFound"); -static const int INVALID_POLICY_DOCUMENT_HASH = HashingUtils::HashString("InvalidPolicyDocument"); -static const int INVALID_SPOT_FLEET_REQUEST_ID__NOT_FOUND_HASH = HashingUtils::HashString("InvalidSpotFleetRequestId.NotFound"); -static const int INVALID_FLOW_LOG_ID__NOT_FOUND_HASH = HashingUtils::HashString("InvalidFlowLogId.NotFound"); -static const int VPN_GATEWAY_ATTACHMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VpnGatewayAttachmentLimitExceeded"); -static const int FILTER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FilterLimitExceeded"); -static const int INVALID_SNAPSHOT_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidSnapshotID.Malformed"); -static const int INVALID_SPOT_FLEET_REQUEST_CONFIG_HASH = HashingUtils::HashString("InvalidSpotFleetRequestConfig"); -static const int SNAPSHOT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SnapshotLimitExceeded"); -static const int INVALID_VPC_STATE_HASH = HashingUtils::HashString("InvalidVpcState"); -static const int INVALID_GATEWAY_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidGatewayID.NotFound"); -static const int SECURITY_GROUPS_PER_INTERFACE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SecurityGroupsPerInterfaceLimitExceeded"); -static const int MAX_SPOT_INSTANCE_COUNT_EXCEEDED_HASH = HashingUtils::HashString("MaxSpotInstanceCountExceeded"); -static const int INVALID_ADDRESS__MALFORMED_HASH = HashingUtils::HashString("InvalidAddress.Malformed"); -static const int INVALID_DHCP_OPTIONS_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidDhcpOptionsId.Malformed"); -static const int NETWORK_ACL_ENTRY_ALREADY_EXISTS_HASH = HashingUtils::HashString("NetworkAclEntryAlreadyExists"); -static const int VPN_GATEWAY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VpnGatewayLimitExceeded"); -static const int INVALID_PREFIX_LIST_ID__NOT_FOUND_HASH = HashingUtils::HashString("InvalidPrefixListId.NotFound"); -static const int INVALID_INSTANCE_I_D_HASH = HashingUtils::HashString("InvalidInstanceID"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidState"); -static const int FLOW_LOGS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FlowLogsLimitExceeded"); -static const int INVALID_ADDRESS__NOT_FOUND_HASH = HashingUtils::HashString("InvalidAddress.NotFound"); -static const int V_P_C_ID_NOT_SPECIFIED_HASH = HashingUtils::HashString("VPCIdNotSpecified"); -static const int RESOURCE__ALREADY_ASSOCIATED_HASH = HashingUtils::HashString("Resource.AlreadyAssociated"); -static const int NOT_EXPORTABLE_HASH = HashingUtils::HashString("NotExportable"); -static const int INVALID_DHCP_OPTIONS_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidDhcpOptionsID.NotFound"); -static const int NETWORK_ACL_ENTRY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("NetworkAclEntryLimitExceeded"); -static const int TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagLimitExceeded"); -static const int INVALID_NETWORK_INTERFACE_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidNetworkInterfaceID.NotFound"); -static const int INVALID_VPN_GATEWAY_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVpnGatewayID.NotFound"); -static const int INVALID_SPOT_INSTANCE_REQUEST_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidSpotInstanceRequestID.NotFound"); -static const int RULES_PER_SECURITY_GROUP_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RulesPerSecurityGroupLimitExceeded"); -static const int INVALID_PLACEMENT_GROUP__DUPLICATE_HASH = HashingUtils::HashString("InvalidPlacementGroup.Duplicate"); -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermitted"); -static const int INVALID_EXPORT_TASK_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidExportTaskID.NotFound"); -static const int VPN_CONNECTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VpnConnectionLimitExceeded"); -static const int INCORRECT_INSTANCE_STATE_HASH = HashingUtils::HashString("IncorrectInstanceState"); -static const int INVALID_NETWORK_ACL_ENTRY__NOT_FOUND_HASH = HashingUtils::HashString("InvalidNetworkAclEntry.NotFound"); -static const int INVALID_VPC_PEERING_CONNECTION_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVpcPeeringConnectionID.NotFound"); -static const int SUBNET_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SubnetLimitExceeded"); -static const int INVALID_VOLUME_I_D__DUPLICATE_HASH = HashingUtils::HashString("InvalidVolumeID.Duplicate"); -static const int INVALID_OPTION__CONFLICT_HASH = HashingUtils::HashString("InvalidOption.Conflict"); -static const int INVALID_BUNDLE_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidBundleID.NotFound"); -static const int ATTACHMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AttachmentLimitExceeded"); -static const int FLOW_LOG_ALREADY_EXISTS_HASH = HashingUtils::HashString("FlowLogAlreadyExists"); -static const int INVALID_INSTANCE_I_D__NOT_LINKABLE_HASH = HashingUtils::HashString("InvalidInstanceID.NotLinkable"); -static const int INVALID_PLACEMENT_GROUP__IN_USE_HASH = HashingUtils::HashString("InvalidPlacementGroup.InUse"); -static const int INVALID_SERVICE_NAME_HASH = HashingUtils::HashString("InvalidServiceName"); -static const int INVALID_INTERNET_GATEWAY_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidInternetGatewayID.NotFound"); -static const int INVALID_INSTANCE_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidInstanceID.NotFound"); -static const int INVALID_NETWORK_INTERFACE_ATTACHMENT_I_D__MALFORMED_HASH = HashingUtils::HashString("InvalidNetworkInterfaceAttachmentID.Malformed"); -static const int INVALID_A_M_I_NAME__DUPLICATE_HASH = HashingUtils::HashString("InvalidAMIName.Duplicate"); -static const int INVALID_VOLUME__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVolume.NotFound"); -static const int INVALID_FILTER_HASH = HashingUtils::HashString("InvalidFilter"); -static const int INVALID_MANIFEST_HASH = HashingUtils::HashString("InvalidManifest"); -static const int INVALID_VPN_GATEWAY_ATTACHMENT__NOT_FOUND_HASH = HashingUtils::HashString("InvalidVpnGatewayAttachment.NotFound"); -static const int OUTSTANDING_VPC_PEERING_CONNECTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OutstandingVpcPeeringConnectionLimitExceeded"); -static const int INVALID_CUSTOMER_GATEWAY_ID__MALFORMED_HASH = HashingUtils::HashString("InvalidCustomerGatewayId.Malformed"); -static const int CONCURRENT_TAG_ACCESS_HASH = HashingUtils::HashString("ConcurrentTagAccess"); -static const int INVALID_INTERFACE__IP_ADDRESS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("InvalidInterface.IpAddressLimitExceeded"); -static const int INVALID_NETWORK_ACL_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidNetworkAclID.NotFound"); -static const int INVALID_A_M_I_NAME__MALFORMED_HASH = HashingUtils::HashString("InvalidAMIName.Malformed"); -static const int INVALID_RESERVATION_I_D__NOT_FOUND_HASH = HashingUtils::HashString("InvalidReservationID.NotFound"); -static const int DEPENDENCY_VIOLATION_HASH = HashingUtils::HashString("DependencyViolation"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceeded"); +static constexpr uint32_t DRY_RUN_OPERATION_HASH = ConstExprHashingUtils::HashString("DryRunOperation"); +static constexpr uint32_t INVALID_VPN_CONNECTION_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVpnConnectionID.NotFound"); +static constexpr uint32_t VOLUME_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VolumeLimitExceeded"); +static constexpr uint32_t INVALID_SNAPSHOT__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidSnapshot.NotFound"); +static constexpr uint32_t RESERVED_INSTANCES_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ReservedInstancesLimitExceeded"); +static constexpr uint32_t INVALID_VPC_ENDPOINT_ID__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVpcEndpointId.NotFound"); +static constexpr uint32_t INVALID_ZONE__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidZone.NotFound"); +static constexpr uint32_t INVALID_ROUTE__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidRoute.NotFound"); +static constexpr uint32_t INVALID_NETWORK_INTERFACE_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidNetworkInterfaceId.Malformed"); +static constexpr uint32_t INVALID_VPC__RANGE_HASH = ConstExprHashingUtils::HashString("InvalidVpc.Range"); +static constexpr uint32_t NON_E_B_S_INSTANCE_HASH = ConstExprHashingUtils::HashString("NonEBSInstance"); +static constexpr uint32_t INVALID_A_M_I_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAMIID.NotFound"); +static constexpr uint32_t INVALID_KEY_PAIR__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidKeyPair.NotFound"); +static constexpr uint32_t VPC_PEERING_CONNECTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("VpcPeeringConnectionAlreadyExists"); +static constexpr uint32_t INVALID_VPC_ENDPOINT_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidVpcEndpointId.Malformed"); +static constexpr uint32_t INVALID_VOLUME_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidVolumeID.Malformed"); +static constexpr uint32_t INVALID_RESERVED_INSTANCES_OFFERING_ID_HASH = ConstExprHashingUtils::HashString("InvalidReservedInstancesOfferingId"); +static constexpr uint32_t INVALID_BLOCK_DEVICE_MAPPING_HASH = ConstExprHashingUtils::HashString("InvalidBlockDeviceMapping"); +static constexpr uint32_t INVALID_VOLUME_I_D__ZONE_MISMATCH_HASH = ConstExprHashingUtils::HashString("InvalidVolumeID.ZoneMismatch"); +static constexpr uint32_t UNSUPPORTED_HASH = ConstExprHashingUtils::HashString("Unsupported"); +static constexpr uint32_t INVALID_KEY__FORMAT_HASH = ConstExprHashingUtils::HashString("InvalidKey.Format"); +static constexpr uint32_t INVALID_SPOT_FLEET_REQUEST_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidSpotFleetRequestId.Malformed"); +static constexpr uint32_t INVALID_ADDRESS_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAddressID.NotFound"); +static constexpr uint32_t ROUTE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RouteAlreadyExists"); +static constexpr uint32_t INVALID_A_M_I_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidAMIID.Malformed"); +static constexpr uint32_t INVALID_KEY_PAIR__FORMAT_HASH = ConstExprHashingUtils::HashString("InvalidKeyPair.Format"); +static constexpr uint32_t VPC_CIDR_CONFLICT_HASH = ConstExprHashingUtils::HashString("VpcCidrConflict"); +static constexpr uint32_t INVALID_GROUP__RESERVED_HASH = ConstExprHashingUtils::HashString("InvalidGroup.Reserved"); +static constexpr uint32_t LEGACY_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("LegacySecurityGroup"); +static constexpr uint32_t CANNOT_DELETE_HASH = ConstExprHashingUtils::HashString("CannotDelete"); +static constexpr uint32_t INVALID_I_P_ADDRESS__IN_USE_HASH = ConstExprHashingUtils::HashString("InvalidIPAddress.InUse"); +static constexpr uint32_t INVALID_A_M_I_I_D__UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("InvalidAMIID.Unavailable"); +static constexpr uint32_t INVALID_FORMAT_HASH = ConstExprHashingUtils::HashString("InvalidFormat"); +static constexpr uint32_t INVALID_GROUP_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidGroupId.Malformed"); +static constexpr uint32_t BUNDLING_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("BundlingInProgress"); +static constexpr uint32_t INVALID_INSTANCE_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidInstanceType"); +static constexpr uint32_t INVALID_PERMISSION__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidPermission.NotFound"); +static constexpr uint32_t INVALID_ROUTE__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidRoute.Malformed"); +static constexpr uint32_t INVALID_RESERVATION_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidReservationID.Malformed"); +static constexpr uint32_t INVALID_KEY_PAIR__DUPLICATE_HASH = ConstExprHashingUtils::HashString("InvalidKeyPair.Duplicate"); +static constexpr uint32_t ROUTE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RouteLimitExceeded"); +static constexpr uint32_t INVALID_SECURITY__REQUEST_HAS_EXPIRED_HASH = ConstExprHashingUtils::HashString("InvalidSecurity.RequestHasExpired"); +static constexpr uint32_t INVALID_SPOT_INSTANCE_REQUEST_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidSpotInstanceRequestID.Malformed"); +static constexpr uint32_t INVALID_VPC_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVpcID.NotFound"); +static constexpr uint32_t ROUTE_TABLE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RouteTableLimitExceeded"); +static constexpr uint32_t INVALID_ATTACHMENT_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAttachmentID.NotFound"); +static constexpr uint32_t INVALID_PERMISSION__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidPermission.Malformed"); +static constexpr uint32_t VOLUME_IN_USE_HASH = ConstExprHashingUtils::HashString("VolumeInUse"); +static constexpr uint32_t ACTIVE_VPC_PEERING_CONNECTION_PER_VPC_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ActiveVpcPeeringConnectionPerVpcLimitExceeded"); +static constexpr uint32_t INVALID_VOLUME__ZONE_MISMATCH_HASH = ConstExprHashingUtils::HashString("InvalidVolume.ZoneMismatch"); +static constexpr uint32_t INVALID_DHCP_OPTION_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidDhcpOptionID.NotFound"); +static constexpr uint32_t PENDING_SNAPSHOT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PendingSnapshotLimitExceeded"); +static constexpr uint32_t INVALID_PREFIX_LIST_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidPrefixListId.Malformed"); +static constexpr uint32_t INVALID_VPN_CONNECTION_I_D_HASH = ConstExprHashingUtils::HashString("InvalidVpnConnectionID"); +static constexpr uint32_t INVALID_USER_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidUserID.Malformed"); +static constexpr uint32_t ADDRESS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AddressLimitExceeded"); +static constexpr uint32_t INVALID_GROUP__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidGroup.NotFound"); +static constexpr uint32_t INVALID_I_D_HASH = ConstExprHashingUtils::HashString("InvalidID"); +static constexpr uint32_t VOLUME_TYPE_NOT_AVAILABLE_IN_ZONE_HASH = ConstExprHashingUtils::HashString("VolumeTypeNotAvailableInZone"); +static constexpr uint32_t INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_HASH = ConstExprHashingUtils::HashString("InsufficientFreeAddressesInSubnet"); +static constexpr uint32_t DISK_IMAGE_SIZE_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("DiskImageSizeTooLarge"); +static constexpr uint32_t INVALID_A_M_I_ATTRIBUTE_ITEM_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidAMIAttributeItemValue"); +static constexpr uint32_t INVALID_GROUP__IN_USE_HASH = ConstExprHashingUtils::HashString("InvalidGroup.InUse"); +static constexpr uint32_t INVALID_SPOT_DATAFEED__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidSpotDatafeed.NotFound"); +static constexpr uint32_t INSUFFICIENT_RESERVED_INSTANCES_CAPACITY_HASH = ConstExprHashingUtils::HashString("InsufficientReservedInstancesCapacity"); +static constexpr uint32_t MAX_I_O_P_S_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxIOPSLimitExceeded"); +static constexpr uint32_t RESOURCE_COUNT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceCountExceeded"); +static constexpr uint32_t INCORRECT_STATE_HASH = ConstExprHashingUtils::HashString("IncorrectState"); +static constexpr uint32_t NETWORK_ACL_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NetworkAclLimitExceeded"); +static constexpr uint32_t INVALID_RESERVED_INSTANCES_ID_HASH = ConstExprHashingUtils::HashString("InvalidReservedInstancesId"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperation"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequest"); +static constexpr uint32_t VPC_ENDPOINT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VpcEndpointLimitExceeded"); +static constexpr uint32_t INVALID_ROUTE_TABLE_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidRouteTableId.Malformed"); +static constexpr uint32_t INVALID_STATE_TRANSITION_HASH = ConstExprHashingUtils::HashString("InvalidStateTransition"); +static constexpr uint32_t INVALID_VPC_PEERING_CONNECTION_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidVpcPeeringConnectionId.Malformed"); +static constexpr uint32_t PRIVATE_IP_ADDRESS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PrivateIpAddressLimitExceeded"); +static constexpr uint32_t VPC_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VpcLimitExceeded"); +static constexpr uint32_t INVALID_PERMISSION__DUPLICATE_HASH = ConstExprHashingUtils::HashString("InvalidPermission.Duplicate"); +static constexpr uint32_t CUSTOMER_GATEWAY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CustomerGatewayLimitExceeded"); +static constexpr uint32_t INSTANCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("InstanceLimitExceeded"); +static constexpr uint32_t INTERNET_GATEWAY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("InternetGatewayLimitExceeded"); +static constexpr uint32_t CONCURRENT_SNAPSHOT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ConcurrentSnapshotLimitExceeded"); +static constexpr uint32_t SECURITY_GROUPS_PER_INSTANCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SecurityGroupsPerInstanceLimitExceeded"); +static constexpr uint32_t V_P_C_RESOURCE_NOT_SPECIFIED_HASH = ConstExprHashingUtils::HashString("VPCResourceNotSpecified"); +static constexpr uint32_t INVALID_SNAPSHOT__IN_USE_HASH = ConstExprHashingUtils::HashString("InvalidSnapshot.InUse"); +static constexpr uint32_t UNKNOWN_VOLUME_TYPE_HASH = ConstExprHashingUtils::HashString("UnknownVolumeType"); +static constexpr uint32_t SECURITY_GROUP_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SecurityGroupLimitExceeded"); +static constexpr uint32_t INVALID_SUBNET_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidSubnetID.NotFound"); +static constexpr uint32_t GATEWAY__NOT_ATTACHED_HASH = ConstExprHashingUtils::HashString("Gateway.NotAttached"); +static constexpr uint32_t INVALID_GROUP__DUPLICATE_HASH = ConstExprHashingUtils::HashString("InvalidGroup.Duplicate"); +static constexpr uint32_t ENCRYPTED_VOLUMES_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("EncryptedVolumesNotSupported"); +static constexpr uint32_t INVALID_ROUTE_TABLE_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidRouteTableID.NotFound"); +static constexpr uint32_t INVALID_SECURITY_GROUP_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidSecurityGroupID.NotFound"); +static constexpr uint32_t INVALID_PLACEMENT_GROUP__UNKNOWN_HASH = ConstExprHashingUtils::HashString("InvalidPlacementGroup.Unknown"); +static constexpr uint32_t INVALID_INSTANCE_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidInstanceID.Malformed"); +static constexpr uint32_t INSTANCE_ALREADY_LINKED_HASH = ConstExprHashingUtils::HashString("InstanceAlreadyLinked"); +static constexpr uint32_t INVALID_ATTACHMENT__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAttachment.NotFound"); +static constexpr uint32_t INVALID_CUSTOMER_GATEWAY__DUPLICATE_IP_ADDRESS_HASH = ConstExprHashingUtils::HashString("InvalidCustomerGateway.DuplicateIpAddress"); +static constexpr uint32_t INVALID_SUBNET__CONFLICT_HASH = ConstExprHashingUtils::HashString("InvalidSubnet.Conflict"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInput"); +static constexpr uint32_t INVALID_INSTANCE_ATTRIBUTE_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidInstanceAttributeValue"); +static constexpr uint32_t REQUEST_RESOURCE_COUNT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RequestResourceCountExceeded"); +static constexpr uint32_t INVALID_ASSOCIATION_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAssociationID.NotFound"); +static constexpr uint32_t INVALID_DEVICE__IN_USE_HASH = ConstExprHashingUtils::HashString("InvalidDevice.InUse"); +static constexpr uint32_t INVALID_CONVERSION_TASK_ID_HASH = ConstExprHashingUtils::HashString("InvalidConversionTaskId"); +static constexpr uint32_t MAX_SPOT_FLEET_REQUEST_COUNT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxSpotFleetRequestCountExceeded"); +static constexpr uint32_t INVALID_ALLOCATION_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAllocationID.NotFound"); +static constexpr uint32_t INVALID_CUSTOMER_GATEWAY_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidCustomerGatewayID.NotFound"); +static constexpr uint32_t INVALID_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("InvalidPolicyDocument"); +static constexpr uint32_t INVALID_SPOT_FLEET_REQUEST_ID__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidSpotFleetRequestId.NotFound"); +static constexpr uint32_t INVALID_FLOW_LOG_ID__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidFlowLogId.NotFound"); +static constexpr uint32_t VPN_GATEWAY_ATTACHMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VpnGatewayAttachmentLimitExceeded"); +static constexpr uint32_t FILTER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FilterLimitExceeded"); +static constexpr uint32_t INVALID_SNAPSHOT_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidSnapshotID.Malformed"); +static constexpr uint32_t INVALID_SPOT_FLEET_REQUEST_CONFIG_HASH = ConstExprHashingUtils::HashString("InvalidSpotFleetRequestConfig"); +static constexpr uint32_t SNAPSHOT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SnapshotLimitExceeded"); +static constexpr uint32_t INVALID_VPC_STATE_HASH = ConstExprHashingUtils::HashString("InvalidVpcState"); +static constexpr uint32_t INVALID_GATEWAY_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidGatewayID.NotFound"); +static constexpr uint32_t SECURITY_GROUPS_PER_INTERFACE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SecurityGroupsPerInterfaceLimitExceeded"); +static constexpr uint32_t MAX_SPOT_INSTANCE_COUNT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxSpotInstanceCountExceeded"); +static constexpr uint32_t INVALID_ADDRESS__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidAddress.Malformed"); +static constexpr uint32_t INVALID_DHCP_OPTIONS_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidDhcpOptionsId.Malformed"); +static constexpr uint32_t NETWORK_ACL_ENTRY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("NetworkAclEntryAlreadyExists"); +static constexpr uint32_t VPN_GATEWAY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VpnGatewayLimitExceeded"); +static constexpr uint32_t INVALID_PREFIX_LIST_ID__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidPrefixListId.NotFound"); +static constexpr uint32_t INVALID_INSTANCE_I_D_HASH = ConstExprHashingUtils::HashString("InvalidInstanceID"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidState"); +static constexpr uint32_t FLOW_LOGS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FlowLogsLimitExceeded"); +static constexpr uint32_t INVALID_ADDRESS__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidAddress.NotFound"); +static constexpr uint32_t V_P_C_ID_NOT_SPECIFIED_HASH = ConstExprHashingUtils::HashString("VPCIdNotSpecified"); +static constexpr uint32_t RESOURCE__ALREADY_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("Resource.AlreadyAssociated"); +static constexpr uint32_t NOT_EXPORTABLE_HASH = ConstExprHashingUtils::HashString("NotExportable"); +static constexpr uint32_t INVALID_DHCP_OPTIONS_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidDhcpOptionsID.NotFound"); +static constexpr uint32_t NETWORK_ACL_ENTRY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NetworkAclEntryLimitExceeded"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagLimitExceeded"); +static constexpr uint32_t INVALID_NETWORK_INTERFACE_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidNetworkInterfaceID.NotFound"); +static constexpr uint32_t INVALID_VPN_GATEWAY_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVpnGatewayID.NotFound"); +static constexpr uint32_t INVALID_SPOT_INSTANCE_REQUEST_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidSpotInstanceRequestID.NotFound"); +static constexpr uint32_t RULES_PER_SECURITY_GROUP_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RulesPerSecurityGroupLimitExceeded"); +static constexpr uint32_t INVALID_PLACEMENT_GROUP__DUPLICATE_HASH = ConstExprHashingUtils::HashString("InvalidPlacementGroup.Duplicate"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermitted"); +static constexpr uint32_t INVALID_EXPORT_TASK_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidExportTaskID.NotFound"); +static constexpr uint32_t VPN_CONNECTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VpnConnectionLimitExceeded"); +static constexpr uint32_t INCORRECT_INSTANCE_STATE_HASH = ConstExprHashingUtils::HashString("IncorrectInstanceState"); +static constexpr uint32_t INVALID_NETWORK_ACL_ENTRY__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidNetworkAclEntry.NotFound"); +static constexpr uint32_t INVALID_VPC_PEERING_CONNECTION_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVpcPeeringConnectionID.NotFound"); +static constexpr uint32_t SUBNET_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SubnetLimitExceeded"); +static constexpr uint32_t INVALID_VOLUME_I_D__DUPLICATE_HASH = ConstExprHashingUtils::HashString("InvalidVolumeID.Duplicate"); +static constexpr uint32_t INVALID_OPTION__CONFLICT_HASH = ConstExprHashingUtils::HashString("InvalidOption.Conflict"); +static constexpr uint32_t INVALID_BUNDLE_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidBundleID.NotFound"); +static constexpr uint32_t ATTACHMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AttachmentLimitExceeded"); +static constexpr uint32_t FLOW_LOG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FlowLogAlreadyExists"); +static constexpr uint32_t INVALID_INSTANCE_I_D__NOT_LINKABLE_HASH = ConstExprHashingUtils::HashString("InvalidInstanceID.NotLinkable"); +static constexpr uint32_t INVALID_PLACEMENT_GROUP__IN_USE_HASH = ConstExprHashingUtils::HashString("InvalidPlacementGroup.InUse"); +static constexpr uint32_t INVALID_SERVICE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidServiceName"); +static constexpr uint32_t INVALID_INTERNET_GATEWAY_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidInternetGatewayID.NotFound"); +static constexpr uint32_t INVALID_INSTANCE_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidInstanceID.NotFound"); +static constexpr uint32_t INVALID_NETWORK_INTERFACE_ATTACHMENT_I_D__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidNetworkInterfaceAttachmentID.Malformed"); +static constexpr uint32_t INVALID_A_M_I_NAME__DUPLICATE_HASH = ConstExprHashingUtils::HashString("InvalidAMIName.Duplicate"); +static constexpr uint32_t INVALID_VOLUME__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVolume.NotFound"); +static constexpr uint32_t INVALID_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidFilter"); +static constexpr uint32_t INVALID_MANIFEST_HASH = ConstExprHashingUtils::HashString("InvalidManifest"); +static constexpr uint32_t INVALID_VPN_GATEWAY_ATTACHMENT__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidVpnGatewayAttachment.NotFound"); +static constexpr uint32_t OUTSTANDING_VPC_PEERING_CONNECTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OutstandingVpcPeeringConnectionLimitExceeded"); +static constexpr uint32_t INVALID_CUSTOMER_GATEWAY_ID__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidCustomerGatewayId.Malformed"); +static constexpr uint32_t CONCURRENT_TAG_ACCESS_HASH = ConstExprHashingUtils::HashString("ConcurrentTagAccess"); +static constexpr uint32_t INVALID_INTERFACE__IP_ADDRESS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("InvalidInterface.IpAddressLimitExceeded"); +static constexpr uint32_t INVALID_NETWORK_ACL_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidNetworkAclID.NotFound"); +static constexpr uint32_t INVALID_A_M_I_NAME__MALFORMED_HASH = ConstExprHashingUtils::HashString("InvalidAMIName.Malformed"); +static constexpr uint32_t INVALID_RESERVATION_I_D__NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InvalidReservationID.NotFound"); +static constexpr uint32_t DEPENDENCY_VIOLATION_HASH = ConstExprHashingUtils::HashString("DependencyViolation"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); /* @@ -199,7 +199,7 @@ which allows constant time lookup. The chain has been broken into helper functio because MSVC has a maximum of 122 chained if-else blocks. */ -static bool GetErrorForNameHelper0(int hashCode, AWSError& error) +static bool GetErrorForNameHelper0(uint32_t hashCode, AWSError& error) { if (hashCode == DRY_RUN_OPERATION_HASH) { @@ -814,7 +814,7 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) return false; } -static bool GetErrorForNameHelper1(int hashCode, AWSError& error) +static bool GetErrorForNameHelper1(uint32_t hashCode, AWSError& error) { if (hashCode == INVALID_DHCP_OPTIONS_ID__MALFORMED_HASH) { @@ -1076,7 +1076,7 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorManufacturer.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorManufacturer.cpp index bd8dc97551b..dd49c347052 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorManufacturer.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorManufacturer.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AcceleratorManufacturerMapper { - static const int nvidia_HASH = HashingUtils::HashString("nvidia"); - static const int amd_HASH = HashingUtils::HashString("amd"); - static const int amazon_web_services_HASH = HashingUtils::HashString("amazon-web-services"); - static const int xilinx_HASH = HashingUtils::HashString("xilinx"); + static constexpr uint32_t nvidia_HASH = ConstExprHashingUtils::HashString("nvidia"); + static constexpr uint32_t amd_HASH = ConstExprHashingUtils::HashString("amd"); + static constexpr uint32_t amazon_web_services_HASH = ConstExprHashingUtils::HashString("amazon-web-services"); + static constexpr uint32_t xilinx_HASH = ConstExprHashingUtils::HashString("xilinx"); AcceleratorManufacturer GetAcceleratorManufacturerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == nvidia_HASH) { return AcceleratorManufacturer::nvidia; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorName.cpp index e4f677ad0a2..ba40c5c4f07 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AcceleratorNameMapper { - static const int a100_HASH = HashingUtils::HashString("a100"); - static const int v100_HASH = HashingUtils::HashString("v100"); - static const int k80_HASH = HashingUtils::HashString("k80"); - static const int t4_HASH = HashingUtils::HashString("t4"); - static const int m60_HASH = HashingUtils::HashString("m60"); - static const int radeon_pro_v520_HASH = HashingUtils::HashString("radeon-pro-v520"); - static const int vu9p_HASH = HashingUtils::HashString("vu9p"); - static const int inferentia_HASH = HashingUtils::HashString("inferentia"); - static const int k520_HASH = HashingUtils::HashString("k520"); + static constexpr uint32_t a100_HASH = ConstExprHashingUtils::HashString("a100"); + static constexpr uint32_t v100_HASH = ConstExprHashingUtils::HashString("v100"); + static constexpr uint32_t k80_HASH = ConstExprHashingUtils::HashString("k80"); + static constexpr uint32_t t4_HASH = ConstExprHashingUtils::HashString("t4"); + static constexpr uint32_t m60_HASH = ConstExprHashingUtils::HashString("m60"); + static constexpr uint32_t radeon_pro_v520_HASH = ConstExprHashingUtils::HashString("radeon-pro-v520"); + static constexpr uint32_t vu9p_HASH = ConstExprHashingUtils::HashString("vu9p"); + static constexpr uint32_t inferentia_HASH = ConstExprHashingUtils::HashString("inferentia"); + static constexpr uint32_t k520_HASH = ConstExprHashingUtils::HashString("k520"); AcceleratorName GetAcceleratorNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == a100_HASH) { return AcceleratorName::a100; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorType.cpp index d08a1d12709..455d8cda45b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AcceleratorType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AcceleratorTypeMapper { - static const int gpu_HASH = HashingUtils::HashString("gpu"); - static const int fpga_HASH = HashingUtils::HashString("fpga"); - static const int inference_HASH = HashingUtils::HashString("inference"); + static constexpr uint32_t gpu_HASH = ConstExprHashingUtils::HashString("gpu"); + static constexpr uint32_t fpga_HASH = ConstExprHashingUtils::HashString("fpga"); + static constexpr uint32_t inference_HASH = ConstExprHashingUtils::HashString("inference"); AcceleratorType GetAcceleratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gpu_HASH) { return AcceleratorType::gpu; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AccountAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AccountAttributeName.cpp index 9b2887687c4..33182517b95 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AccountAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AccountAttributeName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccountAttributeNameMapper { - static const int supported_platforms_HASH = HashingUtils::HashString("supported-platforms"); - static const int default_vpc_HASH = HashingUtils::HashString("default-vpc"); + static constexpr uint32_t supported_platforms_HASH = ConstExprHashingUtils::HashString("supported-platforms"); + static constexpr uint32_t default_vpc_HASH = ConstExprHashingUtils::HashString("default-vpc"); AccountAttributeName GetAccountAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == supported_platforms_HASH) { return AccountAttributeName::supported_platforms; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ActivityStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ActivityStatus.cpp index 18644deac58..1e1f2b002b9 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ActivityStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ActivityStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActivityStatusMapper { - static const int error_HASH = HashingUtils::HashString("error"); - static const int pending_fulfillment_HASH = HashingUtils::HashString("pending_fulfillment"); - static const int pending_termination_HASH = HashingUtils::HashString("pending_termination"); - static const int fulfilled_HASH = HashingUtils::HashString("fulfilled"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t pending_fulfillment_HASH = ConstExprHashingUtils::HashString("pending_fulfillment"); + static constexpr uint32_t pending_termination_HASH = ConstExprHashingUtils::HashString("pending_termination"); + static constexpr uint32_t fulfilled_HASH = ConstExprHashingUtils::HashString("fulfilled"); ActivityStatus GetActivityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == error_HASH) { return ActivityStatus::error; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AddressAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AddressAttributeName.cpp index 292c4a500c4..d6a6a1fff40 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AddressAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AddressAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AddressAttributeNameMapper { - static const int domain_name_HASH = HashingUtils::HashString("domain-name"); + static constexpr uint32_t domain_name_HASH = ConstExprHashingUtils::HashString("domain-name"); AddressAttributeName GetAddressAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == domain_name_HASH) { return AddressAttributeName::domain_name; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AddressFamily.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AddressFamily.cpp index e083ec6a8fa..c1f87d548c8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AddressFamily.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AddressFamily.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AddressFamilyMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); AddressFamily GetAddressFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return AddressFamily::ipv4; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AddressTransferStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AddressTransferStatus.cpp index cb868f8131e..ad232beabd5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AddressTransferStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AddressTransferStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AddressTransferStatusMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int accepted_HASH = HashingUtils::HashString("accepted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t accepted_HASH = ConstExprHashingUtils::HashString("accepted"); AddressTransferStatus GetAddressTransferStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return AddressTransferStatus::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Affinity.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Affinity.cpp index 1965088b6b6..1b75000a756 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Affinity.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Affinity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AffinityMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int host_HASH = HashingUtils::HashString("host"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); Affinity GetAffinityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return Affinity::default_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AllocationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AllocationState.cpp index 21f65345843..81724c3e30a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AllocationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AllocationState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AllocationStateMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int under_assessment_HASH = HashingUtils::HashString("under-assessment"); - static const int permanent_failure_HASH = HashingUtils::HashString("permanent-failure"); - static const int released_HASH = HashingUtils::HashString("released"); - static const int released_permanent_failure_HASH = HashingUtils::HashString("released-permanent-failure"); - static const int pending_HASH = HashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t under_assessment_HASH = ConstExprHashingUtils::HashString("under-assessment"); + static constexpr uint32_t permanent_failure_HASH = ConstExprHashingUtils::HashString("permanent-failure"); + static constexpr uint32_t released_HASH = ConstExprHashingUtils::HashString("released"); + static constexpr uint32_t released_permanent_failure_HASH = ConstExprHashingUtils::HashString("released-permanent-failure"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); AllocationState GetAllocationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return AllocationState::available; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AllocationStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AllocationStrategy.cpp index 7d08ddab4da..270122d897d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AllocationStrategy.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AllocationStrategyMapper { - static const int lowestPrice_HASH = HashingUtils::HashString("lowestPrice"); - static const int diversified_HASH = HashingUtils::HashString("diversified"); - static const int capacityOptimized_HASH = HashingUtils::HashString("capacityOptimized"); - static const int capacityOptimizedPrioritized_HASH = HashingUtils::HashString("capacityOptimizedPrioritized"); - static const int priceCapacityOptimized_HASH = HashingUtils::HashString("priceCapacityOptimized"); + static constexpr uint32_t lowestPrice_HASH = ConstExprHashingUtils::HashString("lowestPrice"); + static constexpr uint32_t diversified_HASH = ConstExprHashingUtils::HashString("diversified"); + static constexpr uint32_t capacityOptimized_HASH = ConstExprHashingUtils::HashString("capacityOptimized"); + static constexpr uint32_t capacityOptimizedPrioritized_HASH = ConstExprHashingUtils::HashString("capacityOptimizedPrioritized"); + static constexpr uint32_t priceCapacityOptimized_HASH = ConstExprHashingUtils::HashString("priceCapacityOptimized"); AllocationStrategy GetAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == lowestPrice_HASH) { return AllocationStrategy::lowestPrice; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AllocationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AllocationType.cpp index b940e5869f6..86ddbc1327b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AllocationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AllocationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AllocationTypeMapper { - static const int used_HASH = HashingUtils::HashString("used"); + static constexpr uint32_t used_HASH = ConstExprHashingUtils::HashString("used"); AllocationType GetAllocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == used_HASH) { return AllocationType::used; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AllowsMultipleInstanceTypes.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AllowsMultipleInstanceTypes.cpp index fa2bb9220b2..a5776ba03d7 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AllowsMultipleInstanceTypes.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AllowsMultipleInstanceTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AllowsMultipleInstanceTypesMapper { - static const int on_HASH = HashingUtils::HashString("on"); - static const int off_HASH = HashingUtils::HashString("off"); + static constexpr uint32_t on_HASH = ConstExprHashingUtils::HashString("on"); + static constexpr uint32_t off_HASH = ConstExprHashingUtils::HashString("off"); AllowsMultipleInstanceTypes GetAllowsMultipleInstanceTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == on_HASH) { return AllowsMultipleInstanceTypes::on; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AmdSevSnpSpecification.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AmdSevSnpSpecification.cpp index 68c06c18d93..3d1f2159cba 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AmdSevSnpSpecification.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AmdSevSnpSpecification.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AmdSevSnpSpecificationMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); AmdSevSnpSpecification GetAmdSevSnpSpecificationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return AmdSevSnpSpecification::enabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AnalysisStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AnalysisStatus.cpp index 1f85cb6e076..412c2e12d47 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AnalysisStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AnalysisStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalysisStatusMapper { - static const int running_HASH = HashingUtils::HashString("running"); - static const int succeeded_HASH = HashingUtils::HashString("succeeded"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t running_HASH = ConstExprHashingUtils::HashString("running"); + static constexpr uint32_t succeeded_HASH = ConstExprHashingUtils::HashString("succeeded"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); AnalysisStatus GetAnalysisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == running_HASH) { return AnalysisStatus::running; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ApplianceModeSupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ApplianceModeSupportValue.cpp index 6fa1f4aaeaa..0de28fd0583 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ApplianceModeSupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ApplianceModeSupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplianceModeSupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); ApplianceModeSupportValue GetApplianceModeSupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return ApplianceModeSupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureType.cpp index 32c451e2d61..b2ef69d46e0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ArchitectureTypeMapper { - static const int i386_HASH = HashingUtils::HashString("i386"); - static const int x86_64_HASH = HashingUtils::HashString("x86_64"); - static const int arm64_HASH = HashingUtils::HashString("arm64"); - static const int x86_64_mac_HASH = HashingUtils::HashString("x86_64_mac"); - static const int arm64_mac_HASH = HashingUtils::HashString("arm64_mac"); + static constexpr uint32_t i386_HASH = ConstExprHashingUtils::HashString("i386"); + static constexpr uint32_t x86_64_HASH = ConstExprHashingUtils::HashString("x86_64"); + static constexpr uint32_t arm64_HASH = ConstExprHashingUtils::HashString("arm64"); + static constexpr uint32_t x86_64_mac_HASH = ConstExprHashingUtils::HashString("x86_64_mac"); + static constexpr uint32_t arm64_mac_HASH = ConstExprHashingUtils::HashString("arm64_mac"); ArchitectureType GetArchitectureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == i386_HASH) { return ArchitectureType::i386; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureValues.cpp index 392d7dd1c31..ad7370b9371 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ArchitectureValues.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ArchitectureValuesMapper { - static const int i386_HASH = HashingUtils::HashString("i386"); - static const int x86_64_HASH = HashingUtils::HashString("x86_64"); - static const int arm64_HASH = HashingUtils::HashString("arm64"); - static const int x86_64_mac_HASH = HashingUtils::HashString("x86_64_mac"); - static const int arm64_mac_HASH = HashingUtils::HashString("arm64_mac"); + static constexpr uint32_t i386_HASH = ConstExprHashingUtils::HashString("i386"); + static constexpr uint32_t x86_64_HASH = ConstExprHashingUtils::HashString("x86_64"); + static constexpr uint32_t arm64_HASH = ConstExprHashingUtils::HashString("arm64"); + static constexpr uint32_t x86_64_mac_HASH = ConstExprHashingUtils::HashString("x86_64_mac"); + static constexpr uint32_t arm64_mac_HASH = ConstExprHashingUtils::HashString("arm64_mac"); ArchitectureValues GetArchitectureValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == i386_HASH) { return ArchitectureValues::i386; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AssociatedNetworkType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AssociatedNetworkType.cpp index 16b144fa20d..772bc692ef7 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AssociatedNetworkType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AssociatedNetworkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssociatedNetworkTypeMapper { - static const int vpc_HASH = HashingUtils::HashString("vpc"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); AssociatedNetworkType GetAssociatedNetworkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vpc_HASH) { return AssociatedNetworkType::vpc; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AssociationStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AssociationStatusCode.cpp index 501c13a37ae..292ea1d780d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AssociationStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AssociationStatusCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssociationStatusCodeMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int association_failed_HASH = HashingUtils::HashString("association-failed"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t association_failed_HASH = ConstExprHashingUtils::HashString("association-failed"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); AssociationStatusCode GetAssociationStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return AssociationStatusCode::associating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AttachmentStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AttachmentStatus.cpp index f2bf3e363e2..6e150525975 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AttachmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AttachmentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AttachmentStatusMapper { - static const int attaching_HASH = HashingUtils::HashString("attaching"); - static const int attached_HASH = HashingUtils::HashString("attached"); - static const int detaching_HASH = HashingUtils::HashString("detaching"); - static const int detached_HASH = HashingUtils::HashString("detached"); + static constexpr uint32_t attaching_HASH = ConstExprHashingUtils::HashString("attaching"); + static constexpr uint32_t attached_HASH = ConstExprHashingUtils::HashString("attached"); + static constexpr uint32_t detaching_HASH = ConstExprHashingUtils::HashString("detaching"); + static constexpr uint32_t detached_HASH = ConstExprHashingUtils::HashString("detached"); AttachmentStatus GetAttachmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == attaching_HASH) { return AttachmentStatus::attaching; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAssociationsValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAssociationsValue.cpp index 97f3aee24d0..e51af651a79 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAssociationsValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAssociationsValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoAcceptSharedAssociationsValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); AutoAcceptSharedAssociationsValue GetAutoAcceptSharedAssociationsValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return AutoAcceptSharedAssociationsValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAttachmentsValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAttachmentsValue.cpp index f42148453b8..bcbd399d062 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAttachmentsValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AutoAcceptSharedAttachmentsValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoAcceptSharedAttachmentsValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); AutoAcceptSharedAttachmentsValue GetAutoAcceptSharedAttachmentsValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return AutoAcceptSharedAttachmentsValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AutoPlacement.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AutoPlacement.cpp index dff4a6429fc..e82d23a47da 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AutoPlacement.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AutoPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoPlacementMapper { - static const int on_HASH = HashingUtils::HashString("on"); - static const int off_HASH = HashingUtils::HashString("off"); + static constexpr uint32_t on_HASH = ConstExprHashingUtils::HashString("on"); + static constexpr uint32_t off_HASH = ConstExprHashingUtils::HashString("off"); AutoPlacement GetAutoPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == on_HASH) { return AutoPlacement::on; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneOptInStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneOptInStatus.cpp index 3cffcc9d286..1de2567413f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneOptInStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneOptInStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AvailabilityZoneOptInStatusMapper { - static const int opt_in_not_required_HASH = HashingUtils::HashString("opt-in-not-required"); - static const int opted_in_HASH = HashingUtils::HashString("opted-in"); - static const int not_opted_in_HASH = HashingUtils::HashString("not-opted-in"); + static constexpr uint32_t opt_in_not_required_HASH = ConstExprHashingUtils::HashString("opt-in-not-required"); + static constexpr uint32_t opted_in_HASH = ConstExprHashingUtils::HashString("opted-in"); + static constexpr uint32_t not_opted_in_HASH = ConstExprHashingUtils::HashString("not-opted-in"); AvailabilityZoneOptInStatus GetAvailabilityZoneOptInStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == opt_in_not_required_HASH) { return AvailabilityZoneOptInStatus::opt_in_not_required; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneState.cpp index 156c19a3967..99aee4272c4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/AvailabilityZoneState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AvailabilityZoneStateMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int information_HASH = HashingUtils::HashString("information"); - static const int impaired_HASH = HashingUtils::HashString("impaired"); - static const int unavailable_HASH = HashingUtils::HashString("unavailable"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t information_HASH = ConstExprHashingUtils::HashString("information"); + static constexpr uint32_t impaired_HASH = ConstExprHashingUtils::HashString("impaired"); + static constexpr uint32_t unavailable_HASH = ConstExprHashingUtils::HashString("unavailable"); AvailabilityZoneState GetAvailabilityZoneStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return AvailabilityZoneState::available; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BareMetal.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BareMetal.cpp index 5576fe3dc43..f4ab0e92583 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BareMetal.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BareMetal.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BareMetalMapper { - static const int included_HASH = HashingUtils::HashString("included"); - static const int required_HASH = HashingUtils::HashString("required"); - static const int excluded_HASH = HashingUtils::HashString("excluded"); + static constexpr uint32_t included_HASH = ConstExprHashingUtils::HashString("included"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); + static constexpr uint32_t excluded_HASH = ConstExprHashingUtils::HashString("excluded"); BareMetal GetBareMetalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == included_HASH) { return BareMetal::included; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BatchState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BatchState.cpp index 5bffba5e0ba..66f05c3b74d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BatchState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BatchState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace BatchStateMapper { - static const int submitted_HASH = HashingUtils::HashString("submitted"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int cancelled_running_HASH = HashingUtils::HashString("cancelled_running"); - static const int cancelled_terminating_HASH = HashingUtils::HashString("cancelled_terminating"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); + static constexpr uint32_t submitted_HASH = ConstExprHashingUtils::HashString("submitted"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t cancelled_running_HASH = ConstExprHashingUtils::HashString("cancelled_running"); + static constexpr uint32_t cancelled_terminating_HASH = ConstExprHashingUtils::HashString("cancelled_terminating"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); BatchState GetBatchStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == submitted_HASH) { return BatchState::submitted; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BgpStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BgpStatus.cpp index c1fae6462e4..a0330004ca8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BgpStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BgpStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BgpStatusMapper { - static const int up_HASH = HashingUtils::HashString("up"); - static const int down_HASH = HashingUtils::HashString("down"); + static constexpr uint32_t up_HASH = ConstExprHashingUtils::HashString("up"); + static constexpr uint32_t down_HASH = ConstExprHashingUtils::HashString("down"); BgpStatus GetBgpStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == up_HASH) { return BgpStatus::up; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BootModeType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BootModeType.cpp index c1f004c1c2f..3d53e14492e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BootModeType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BootModeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BootModeTypeMapper { - static const int legacy_bios_HASH = HashingUtils::HashString("legacy-bios"); - static const int uefi_HASH = HashingUtils::HashString("uefi"); + static constexpr uint32_t legacy_bios_HASH = ConstExprHashingUtils::HashString("legacy-bios"); + static constexpr uint32_t uefi_HASH = ConstExprHashingUtils::HashString("uefi"); BootModeType GetBootModeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == legacy_bios_HASH) { return BootModeType::legacy_bios; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BootModeValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BootModeValues.cpp index 4ec8f6c2765..fc4fccd6c56 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BootModeValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BootModeValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BootModeValuesMapper { - static const int legacy_bios_HASH = HashingUtils::HashString("legacy-bios"); - static const int uefi_HASH = HashingUtils::HashString("uefi"); - static const int uefi_preferred_HASH = HashingUtils::HashString("uefi-preferred"); + static constexpr uint32_t legacy_bios_HASH = ConstExprHashingUtils::HashString("legacy-bios"); + static constexpr uint32_t uefi_HASH = ConstExprHashingUtils::HashString("uefi"); + static constexpr uint32_t uefi_preferred_HASH = ConstExprHashingUtils::HashString("uefi-preferred"); BootModeValues GetBootModeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == legacy_bios_HASH) { return BootModeValues::legacy_bios; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BundleTaskState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BundleTaskState.cpp index ae614952a3b..e246e3c718a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BundleTaskState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BundleTaskState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace BundleTaskStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int waiting_for_shutdown_HASH = HashingUtils::HashString("waiting-for-shutdown"); - static const int bundling_HASH = HashingUtils::HashString("bundling"); - static const int storing_HASH = HashingUtils::HashString("storing"); - static const int cancelling_HASH = HashingUtils::HashString("cancelling"); - static const int complete_HASH = HashingUtils::HashString("complete"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t waiting_for_shutdown_HASH = ConstExprHashingUtils::HashString("waiting-for-shutdown"); + static constexpr uint32_t bundling_HASH = ConstExprHashingUtils::HashString("bundling"); + static constexpr uint32_t storing_HASH = ConstExprHashingUtils::HashString("storing"); + static constexpr uint32_t cancelling_HASH = ConstExprHashingUtils::HashString("cancelling"); + static constexpr uint32_t complete_HASH = ConstExprHashingUtils::HashString("complete"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); BundleTaskState GetBundleTaskStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return BundleTaskState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/BurstablePerformance.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/BurstablePerformance.cpp index 171e1469e4b..3c6ee7fe085 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/BurstablePerformance.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/BurstablePerformance.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurstablePerformanceMapper { - static const int included_HASH = HashingUtils::HashString("included"); - static const int required_HASH = HashingUtils::HashString("required"); - static const int excluded_HASH = HashingUtils::HashString("excluded"); + static constexpr uint32_t included_HASH = ConstExprHashingUtils::HashString("included"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); + static constexpr uint32_t excluded_HASH = ConstExprHashingUtils::HashString("excluded"); BurstablePerformance GetBurstablePerformanceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == included_HASH) { return BurstablePerformance::included; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ByoipCidrState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ByoipCidrState.cpp index 89ddb8c0722..9791bfd7e01 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ByoipCidrState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ByoipCidrState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ByoipCidrStateMapper { - static const int advertised_HASH = HashingUtils::HashString("advertised"); - static const int deprovisioned_HASH = HashingUtils::HashString("deprovisioned"); - static const int failed_deprovision_HASH = HashingUtils::HashString("failed-deprovision"); - static const int failed_provision_HASH = HashingUtils::HashString("failed-provision"); - static const int pending_deprovision_HASH = HashingUtils::HashString("pending-deprovision"); - static const int pending_provision_HASH = HashingUtils::HashString("pending-provision"); - static const int provisioned_HASH = HashingUtils::HashString("provisioned"); - static const int provisioned_not_publicly_advertisable_HASH = HashingUtils::HashString("provisioned-not-publicly-advertisable"); + static constexpr uint32_t advertised_HASH = ConstExprHashingUtils::HashString("advertised"); + static constexpr uint32_t deprovisioned_HASH = ConstExprHashingUtils::HashString("deprovisioned"); + static constexpr uint32_t failed_deprovision_HASH = ConstExprHashingUtils::HashString("failed-deprovision"); + static constexpr uint32_t failed_provision_HASH = ConstExprHashingUtils::HashString("failed-provision"); + static constexpr uint32_t pending_deprovision_HASH = ConstExprHashingUtils::HashString("pending-deprovision"); + static constexpr uint32_t pending_provision_HASH = ConstExprHashingUtils::HashString("pending-provision"); + static constexpr uint32_t provisioned_HASH = ConstExprHashingUtils::HashString("provisioned"); + static constexpr uint32_t provisioned_not_publicly_advertisable_HASH = ConstExprHashingUtils::HashString("provisioned-not-publicly-advertisable"); ByoipCidrState GetByoipCidrStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == advertised_HASH) { return ByoipCidrState::advertised; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CancelBatchErrorCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CancelBatchErrorCode.cpp index 76825d87be9..ad6c0419ec3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CancelBatchErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CancelBatchErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CancelBatchErrorCodeMapper { - static const int fleetRequestIdDoesNotExist_HASH = HashingUtils::HashString("fleetRequestIdDoesNotExist"); - static const int fleetRequestIdMalformed_HASH = HashingUtils::HashString("fleetRequestIdMalformed"); - static const int fleetRequestNotInCancellableState_HASH = HashingUtils::HashString("fleetRequestNotInCancellableState"); - static const int unexpectedError_HASH = HashingUtils::HashString("unexpectedError"); + static constexpr uint32_t fleetRequestIdDoesNotExist_HASH = ConstExprHashingUtils::HashString("fleetRequestIdDoesNotExist"); + static constexpr uint32_t fleetRequestIdMalformed_HASH = ConstExprHashingUtils::HashString("fleetRequestIdMalformed"); + static constexpr uint32_t fleetRequestNotInCancellableState_HASH = ConstExprHashingUtils::HashString("fleetRequestNotInCancellableState"); + static constexpr uint32_t unexpectedError_HASH = ConstExprHashingUtils::HashString("unexpectedError"); CancelBatchErrorCode GetCancelBatchErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == fleetRequestIdDoesNotExist_HASH) { return CancelBatchErrorCode::fleetRequestIdDoesNotExist; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CancelSpotInstanceRequestState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CancelSpotInstanceRequestState.cpp index dd9a81c3b07..e89a22bff45 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CancelSpotInstanceRequestState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CancelSpotInstanceRequestState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CancelSpotInstanceRequestStateMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int open_HASH = HashingUtils::HashString("open"); - static const int closed_HASH = HashingUtils::HashString("closed"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int completed_HASH = HashingUtils::HashString("completed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t closed_HASH = ConstExprHashingUtils::HashString("closed"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); CancelSpotInstanceRequestState GetCancelSpotInstanceRequestStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return CancelSpotInstanceRequestState::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationFleetState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationFleetState.cpp index c7c6e7acdd7..4f9f2c6ec97 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationFleetState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationFleetState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace CapacityReservationFleetStateMapper { - static const int submitted_HASH = HashingUtils::HashString("submitted"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int partially_fulfilled_HASH = HashingUtils::HashString("partially_fulfilled"); - static const int expiring_HASH = HashingUtils::HashString("expiring"); - static const int expired_HASH = HashingUtils::HashString("expired"); - static const int cancelling_HASH = HashingUtils::HashString("cancelling"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t submitted_HASH = ConstExprHashingUtils::HashString("submitted"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t partially_fulfilled_HASH = ConstExprHashingUtils::HashString("partially_fulfilled"); + static constexpr uint32_t expiring_HASH = ConstExprHashingUtils::HashString("expiring"); + static constexpr uint32_t expired_HASH = ConstExprHashingUtils::HashString("expired"); + static constexpr uint32_t cancelling_HASH = ConstExprHashingUtils::HashString("cancelling"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); CapacityReservationFleetState GetCapacityReservationFleetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == submitted_HASH) { return CapacityReservationFleetState::submitted; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationInstancePlatform.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationInstancePlatform.cpp index d84eba308bf..87ed498b0ef 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationInstancePlatform.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationInstancePlatform.cpp @@ -20,29 +20,29 @@ namespace Aws namespace CapacityReservationInstancePlatformMapper { - static const int Linux_UNIX_HASH = HashingUtils::HashString("Linux/UNIX"); - static const int Red_Hat_Enterprise_Linux_HASH = HashingUtils::HashString("Red Hat Enterprise Linux"); - static const int SUSE_Linux_HASH = HashingUtils::HashString("SUSE Linux"); - static const int Windows_HASH = HashingUtils::HashString("Windows"); - static const int Windows_with_SQL_Server_HASH = HashingUtils::HashString("Windows with SQL Server"); - static const int Windows_with_SQL_Server_Enterprise_HASH = HashingUtils::HashString("Windows with SQL Server Enterprise"); - static const int Windows_with_SQL_Server_Standard_HASH = HashingUtils::HashString("Windows with SQL Server Standard"); - static const int Windows_with_SQL_Server_Web_HASH = HashingUtils::HashString("Windows with SQL Server Web"); - static const int Linux_with_SQL_Server_Standard_HASH = HashingUtils::HashString("Linux with SQL Server Standard"); - static const int Linux_with_SQL_Server_Web_HASH = HashingUtils::HashString("Linux with SQL Server Web"); - static const int Linux_with_SQL_Server_Enterprise_HASH = HashingUtils::HashString("Linux with SQL Server Enterprise"); - static const int RHEL_with_SQL_Server_Standard_HASH = HashingUtils::HashString("RHEL with SQL Server Standard"); - static const int RHEL_with_SQL_Server_Enterprise_HASH = HashingUtils::HashString("RHEL with SQL Server Enterprise"); - static const int RHEL_with_SQL_Server_Web_HASH = HashingUtils::HashString("RHEL with SQL Server Web"); - static const int RHEL_with_HA_HASH = HashingUtils::HashString("RHEL with HA"); - static const int RHEL_with_HA_and_SQL_Server_Standard_HASH = HashingUtils::HashString("RHEL with HA and SQL Server Standard"); - static const int RHEL_with_HA_and_SQL_Server_Enterprise_HASH = HashingUtils::HashString("RHEL with HA and SQL Server Enterprise"); - static const int Ubuntu_Pro_HASH = HashingUtils::HashString("Ubuntu Pro"); + static constexpr uint32_t Linux_UNIX_HASH = ConstExprHashingUtils::HashString("Linux/UNIX"); + static constexpr uint32_t Red_Hat_Enterprise_Linux_HASH = ConstExprHashingUtils::HashString("Red Hat Enterprise Linux"); + static constexpr uint32_t SUSE_Linux_HASH = ConstExprHashingUtils::HashString("SUSE Linux"); + static constexpr uint32_t Windows_HASH = ConstExprHashingUtils::HashString("Windows"); + static constexpr uint32_t Windows_with_SQL_Server_HASH = ConstExprHashingUtils::HashString("Windows with SQL Server"); + static constexpr uint32_t Windows_with_SQL_Server_Enterprise_HASH = ConstExprHashingUtils::HashString("Windows with SQL Server Enterprise"); + static constexpr uint32_t Windows_with_SQL_Server_Standard_HASH = ConstExprHashingUtils::HashString("Windows with SQL Server Standard"); + static constexpr uint32_t Windows_with_SQL_Server_Web_HASH = ConstExprHashingUtils::HashString("Windows with SQL Server Web"); + static constexpr uint32_t Linux_with_SQL_Server_Standard_HASH = ConstExprHashingUtils::HashString("Linux with SQL Server Standard"); + static constexpr uint32_t Linux_with_SQL_Server_Web_HASH = ConstExprHashingUtils::HashString("Linux with SQL Server Web"); + static constexpr uint32_t Linux_with_SQL_Server_Enterprise_HASH = ConstExprHashingUtils::HashString("Linux with SQL Server Enterprise"); + static constexpr uint32_t RHEL_with_SQL_Server_Standard_HASH = ConstExprHashingUtils::HashString("RHEL with SQL Server Standard"); + static constexpr uint32_t RHEL_with_SQL_Server_Enterprise_HASH = ConstExprHashingUtils::HashString("RHEL with SQL Server Enterprise"); + static constexpr uint32_t RHEL_with_SQL_Server_Web_HASH = ConstExprHashingUtils::HashString("RHEL with SQL Server Web"); + static constexpr uint32_t RHEL_with_HA_HASH = ConstExprHashingUtils::HashString("RHEL with HA"); + static constexpr uint32_t RHEL_with_HA_and_SQL_Server_Standard_HASH = ConstExprHashingUtils::HashString("RHEL with HA and SQL Server Standard"); + static constexpr uint32_t RHEL_with_HA_and_SQL_Server_Enterprise_HASH = ConstExprHashingUtils::HashString("RHEL with HA and SQL Server Enterprise"); + static constexpr uint32_t Ubuntu_Pro_HASH = ConstExprHashingUtils::HashString("Ubuntu Pro"); CapacityReservationInstancePlatform GetCapacityReservationInstancePlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Linux_UNIX_HASH) { return CapacityReservationInstancePlatform::Linux_UNIX; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp index 98875a77e41..d40411151f3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationPreference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapacityReservationPreferenceMapper { - static const int open_HASH = HashingUtils::HashString("open"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); CapacityReservationPreference GetCapacityReservationPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return CapacityReservationPreference::open; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationState.cpp index a344bd50e89..86a6435c816 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CapacityReservationStateMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int expired_HASH = HashingUtils::HashString("expired"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t expired_HASH = ConstExprHashingUtils::HashString("expired"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); CapacityReservationState GetCapacityReservationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return CapacityReservationState::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationTenancy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationTenancy.cpp index 39e2ddaefac..e7316bbdae4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationTenancy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CapacityReservationTenancy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapacityReservationTenancyMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int dedicated_HASH = HashingUtils::HashString("dedicated"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t dedicated_HASH = ConstExprHashingUtils::HashString("dedicated"); CapacityReservationTenancy GetCapacityReservationTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return CapacityReservationTenancy::default_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CarrierGatewayState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CarrierGatewayState.cpp index 3db35f8681c..64c0c6cedf7 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CarrierGatewayState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CarrierGatewayState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CarrierGatewayStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); CarrierGatewayState GetCarrierGatewayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return CarrierGatewayState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientCertificateRevocationListStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientCertificateRevocationListStatusCode.cpp index b7ed79251b9..49c004029f3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientCertificateRevocationListStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientCertificateRevocationListStatusCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClientCertificateRevocationListStatusCodeMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int active_HASH = HashingUtils::HashString("active"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); ClientCertificateRevocationListStatusCode GetClientCertificateRevocationListStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return ClientCertificateRevocationListStatusCode::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthenticationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthenticationType.cpp index 16b5c0d24d4..0123154bf10 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthenticationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClientVpnAuthenticationTypeMapper { - static const int certificate_authentication_HASH = HashingUtils::HashString("certificate-authentication"); - static const int directory_service_authentication_HASH = HashingUtils::HashString("directory-service-authentication"); - static const int federated_authentication_HASH = HashingUtils::HashString("federated-authentication"); + static constexpr uint32_t certificate_authentication_HASH = ConstExprHashingUtils::HashString("certificate-authentication"); + static constexpr uint32_t directory_service_authentication_HASH = ConstExprHashingUtils::HashString("directory-service-authentication"); + static constexpr uint32_t federated_authentication_HASH = ConstExprHashingUtils::HashString("federated-authentication"); ClientVpnAuthenticationType GetClientVpnAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == certificate_authentication_HASH) { return ClientVpnAuthenticationType::certificate_authentication; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthorizationRuleStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthorizationRuleStatusCode.cpp index ff2822da31e..49b1f68dfe8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthorizationRuleStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnAuthorizationRuleStatusCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ClientVpnAuthorizationRuleStatusCodeMapper { - static const int authorizing_HASH = HashingUtils::HashString("authorizing"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int revoking_HASH = HashingUtils::HashString("revoking"); + static constexpr uint32_t authorizing_HASH = ConstExprHashingUtils::HashString("authorizing"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t revoking_HASH = ConstExprHashingUtils::HashString("revoking"); ClientVpnAuthorizationRuleStatusCode GetClientVpnAuthorizationRuleStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == authorizing_HASH) { return ClientVpnAuthorizationRuleStatusCode::authorizing; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnConnectionStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnConnectionStatusCode.cpp index 8ec76a3d138..8e9f91537cd 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnConnectionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnConnectionStatusCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ClientVpnConnectionStatusCodeMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int failed_to_terminate_HASH = HashingUtils::HashString("failed-to-terminate"); - static const int terminating_HASH = HashingUtils::HashString("terminating"); - static const int terminated_HASH = HashingUtils::HashString("terminated"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t failed_to_terminate_HASH = ConstExprHashingUtils::HashString("failed-to-terminate"); + static constexpr uint32_t terminating_HASH = ConstExprHashingUtils::HashString("terminating"); + static constexpr uint32_t terminated_HASH = ConstExprHashingUtils::HashString("terminated"); ClientVpnConnectionStatusCode GetClientVpnConnectionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return ClientVpnConnectionStatusCode::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointAttributeStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointAttributeStatusCode.cpp index e4ff7502b2b..ae2fa7dd9d0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointAttributeStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointAttributeStatusCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClientVpnEndpointAttributeStatusCodeMapper { - static const int applying_HASH = HashingUtils::HashString("applying"); - static const int applied_HASH = HashingUtils::HashString("applied"); + static constexpr uint32_t applying_HASH = ConstExprHashingUtils::HashString("applying"); + static constexpr uint32_t applied_HASH = ConstExprHashingUtils::HashString("applied"); ClientVpnEndpointAttributeStatusCode GetClientVpnEndpointAttributeStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == applying_HASH) { return ClientVpnEndpointAttributeStatusCode::applying; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointStatusCode.cpp index 437c5c17f27..f277474c4f8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnEndpointStatusCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ClientVpnEndpointStatusCodeMapper { - static const int pending_associate_HASH = HashingUtils::HashString("pending-associate"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_associate_HASH = ConstExprHashingUtils::HashString("pending-associate"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); ClientVpnEndpointStatusCode GetClientVpnEndpointStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_associate_HASH) { return ClientVpnEndpointStatusCode::pending_associate; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnRouteStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnRouteStatusCode.cpp index b4d25f9a419..69b274c1a9d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnRouteStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ClientVpnRouteStatusCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ClientVpnRouteStatusCodeMapper { - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); ClientVpnRouteStatusCode GetClientVpnRouteStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == creating_HASH) { return ClientVpnRouteStatusCode::creating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationState.cpp index 974dabd4e37..3ed484b5df4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionNotificationStateMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ConnectionNotificationState GetConnectionNotificationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ConnectionNotificationState::Enabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationType.cpp index 8bdfc987c2f..532edd09938 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ConnectionNotificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConnectionNotificationTypeMapper { - static const int Topic_HASH = HashingUtils::HashString("Topic"); + static constexpr uint32_t Topic_HASH = ConstExprHashingUtils::HashString("Topic"); ConnectionNotificationType GetConnectionNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Topic_HASH) { return ConnectionNotificationType::Topic; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ConnectivityType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ConnectivityType.cpp index e4d18badeb0..53a555f3a0a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ConnectivityType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ConnectivityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectivityTypeMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public__HASH = HashingUtils::HashString("public"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public__HASH = ConstExprHashingUtils::HashString("public"); ConnectivityType GetConnectivityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return ConnectivityType::private_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ContainerFormat.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ContainerFormat.cpp index 0a8d4063ffb..2ac8e8ecb92 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ContainerFormat.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ContainerFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContainerFormatMapper { - static const int ova_HASH = HashingUtils::HashString("ova"); + static constexpr uint32_t ova_HASH = ConstExprHashingUtils::HashString("ova"); ContainerFormat GetContainerFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ova_HASH) { return ContainerFormat::ova; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ConversionTaskState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ConversionTaskState.cpp index 5e92f1e4fd3..f7d249df436 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ConversionTaskState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ConversionTaskState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConversionTaskStateMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int cancelling_HASH = HashingUtils::HashString("cancelling"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int completed_HASH = HashingUtils::HashString("completed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t cancelling_HASH = ConstExprHashingUtils::HashString("cancelling"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); ConversionTaskState GetConversionTaskStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return ConversionTaskState::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CopyTagsFromSource.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CopyTagsFromSource.cpp index e42964730d4..6aa3699329e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CopyTagsFromSource.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CopyTagsFromSource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CopyTagsFromSourceMapper { - static const int volume_HASH = HashingUtils::HashString("volume"); + static constexpr uint32_t volume_HASH = ConstExprHashingUtils::HashString("volume"); CopyTagsFromSource GetCopyTagsFromSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == volume_HASH) { return CopyTagsFromSource::volume; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp index 813344fe0ce..8af5b611722 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CpuManufacturer.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CpuManufacturerMapper { - static const int intel_HASH = HashingUtils::HashString("intel"); - static const int amd_HASH = HashingUtils::HashString("amd"); - static const int amazon_web_services_HASH = HashingUtils::HashString("amazon-web-services"); + static constexpr uint32_t intel_HASH = ConstExprHashingUtils::HashString("intel"); + static constexpr uint32_t amd_HASH = ConstExprHashingUtils::HashString("amd"); + static constexpr uint32_t amazon_web_services_HASH = ConstExprHashingUtils::HashString("amazon-web-services"); CpuManufacturer GetCpuManufacturerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == intel_HASH) { return CpuManufacturer::intel; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/CurrencyCodeValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/CurrencyCodeValues.cpp index 7c3ce5b10e6..48112e1ecdb 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/CurrencyCodeValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/CurrencyCodeValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CurrencyCodeValuesMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); CurrencyCodeValues GetCurrencyCodeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return CurrencyCodeValues::USD; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DatafeedSubscriptionState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DatafeedSubscriptionState.cpp index 28bbe150aee..f306a9e1b95 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DatafeedSubscriptionState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DatafeedSubscriptionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatafeedSubscriptionStateMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); DatafeedSubscriptionState GetDatafeedSubscriptionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return DatafeedSubscriptionState::Active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTableAssociationValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTableAssociationValue.cpp index 017e0e58078..d166bc93a6e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTableAssociationValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTableAssociationValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultRouteTableAssociationValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); DefaultRouteTableAssociationValue GetDefaultRouteTableAssociationValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return DefaultRouteTableAssociationValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTablePropagationValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTablePropagationValue.cpp index a645382ad12..d67279b9287 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTablePropagationValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DefaultRouteTablePropagationValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultRouteTablePropagationValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); DefaultRouteTablePropagationValue GetDefaultRouteTablePropagationValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return DefaultRouteTablePropagationValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DefaultTargetCapacityType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DefaultTargetCapacityType.cpp index b56a19f5b7e..7fb0f5e03f8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DefaultTargetCapacityType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DefaultTargetCapacityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultTargetCapacityTypeMapper { - static const int spot_HASH = HashingUtils::HashString("spot"); - static const int on_demand_HASH = HashingUtils::HashString("on-demand"); + static constexpr uint32_t spot_HASH = ConstExprHashingUtils::HashString("spot"); + static constexpr uint32_t on_demand_HASH = ConstExprHashingUtils::HashString("on-demand"); DefaultTargetCapacityType GetDefaultTargetCapacityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == spot_HASH) { return DefaultTargetCapacityType::spot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DeleteFleetErrorCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DeleteFleetErrorCode.cpp index 7841df448d3..1fc5d7b689c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DeleteFleetErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DeleteFleetErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeleteFleetErrorCodeMapper { - static const int fleetIdDoesNotExist_HASH = HashingUtils::HashString("fleetIdDoesNotExist"); - static const int fleetIdMalformed_HASH = HashingUtils::HashString("fleetIdMalformed"); - static const int fleetNotInDeletableState_HASH = HashingUtils::HashString("fleetNotInDeletableState"); - static const int unexpectedError_HASH = HashingUtils::HashString("unexpectedError"); + static constexpr uint32_t fleetIdDoesNotExist_HASH = ConstExprHashingUtils::HashString("fleetIdDoesNotExist"); + static constexpr uint32_t fleetIdMalformed_HASH = ConstExprHashingUtils::HashString("fleetIdMalformed"); + static constexpr uint32_t fleetNotInDeletableState_HASH = ConstExprHashingUtils::HashString("fleetNotInDeletableState"); + static constexpr uint32_t unexpectedError_HASH = ConstExprHashingUtils::HashString("unexpectedError"); DeleteFleetErrorCode GetDeleteFleetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == fleetIdDoesNotExist_HASH) { return DeleteFleetErrorCode::fleetIdDoesNotExist; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DeleteQueuedReservedInstancesErrorCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DeleteQueuedReservedInstancesErrorCode.cpp index 7f7c6511233..a9abf3fb158 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DeleteQueuedReservedInstancesErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DeleteQueuedReservedInstancesErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeleteQueuedReservedInstancesErrorCodeMapper { - static const int reserved_instances_id_invalid_HASH = HashingUtils::HashString("reserved-instances-id-invalid"); - static const int reserved_instances_not_in_queued_state_HASH = HashingUtils::HashString("reserved-instances-not-in-queued-state"); - static const int unexpected_error_HASH = HashingUtils::HashString("unexpected-error"); + static constexpr uint32_t reserved_instances_id_invalid_HASH = ConstExprHashingUtils::HashString("reserved-instances-id-invalid"); + static constexpr uint32_t reserved_instances_not_in_queued_state_HASH = ConstExprHashingUtils::HashString("reserved-instances-not-in-queued-state"); + static constexpr uint32_t unexpected_error_HASH = ConstExprHashingUtils::HashString("unexpected-error"); DeleteQueuedReservedInstancesErrorCode GetDeleteQueuedReservedInstancesErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == reserved_instances_id_invalid_HASH) { return DeleteQueuedReservedInstancesErrorCode::reserved_instances_id_invalid; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DestinationFileFormat.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DestinationFileFormat.cpp index 3f57a51b859..c25e97939b5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DestinationFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DestinationFileFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DestinationFileFormatMapper { - static const int plain_text_HASH = HashingUtils::HashString("plain-text"); - static const int parquet_HASH = HashingUtils::HashString("parquet"); + static constexpr uint32_t plain_text_HASH = ConstExprHashingUtils::HashString("plain-text"); + static constexpr uint32_t parquet_HASH = ConstExprHashingUtils::HashString("parquet"); DestinationFileFormat GetDestinationFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == plain_text_HASH) { return DestinationFileFormat::plain_text; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DeviceTrustProviderType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DeviceTrustProviderType.cpp index 6692c264c50..8b7ef0877ef 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DeviceTrustProviderType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DeviceTrustProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceTrustProviderTypeMapper { - static const int jamf_HASH = HashingUtils::HashString("jamf"); - static const int crowdstrike_HASH = HashingUtils::HashString("crowdstrike"); + static constexpr uint32_t jamf_HASH = ConstExprHashingUtils::HashString("jamf"); + static constexpr uint32_t crowdstrike_HASH = ConstExprHashingUtils::HashString("crowdstrike"); DeviceTrustProviderType GetDeviceTrustProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == jamf_HASH) { return DeviceTrustProviderType::jamf; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DeviceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DeviceType.cpp index df0a971d20d..cfdaf60f92d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DeviceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceTypeMapper { - static const int ebs_HASH = HashingUtils::HashString("ebs"); - static const int instance_store_HASH = HashingUtils::HashString("instance-store"); + static constexpr uint32_t ebs_HASH = ConstExprHashingUtils::HashString("ebs"); + static constexpr uint32_t instance_store_HASH = ConstExprHashingUtils::HashString("instance-store"); DeviceType GetDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ebs_HASH) { return DeviceType::ebs; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DiskImageFormat.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DiskImageFormat.cpp index f53b7902ed8..8500b84cae6 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DiskImageFormat.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DiskImageFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DiskImageFormatMapper { - static const int VMDK_HASH = HashingUtils::HashString("VMDK"); - static const int RAW_HASH = HashingUtils::HashString("RAW"); - static const int VHD_HASH = HashingUtils::HashString("VHD"); + static constexpr uint32_t VMDK_HASH = ConstExprHashingUtils::HashString("VMDK"); + static constexpr uint32_t RAW_HASH = ConstExprHashingUtils::HashString("RAW"); + static constexpr uint32_t VHD_HASH = ConstExprHashingUtils::HashString("VHD"); DiskImageFormat GetDiskImageFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VMDK_HASH) { return DiskImageFormat::VMDK; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DiskType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DiskType.cpp index 2b14bb290e1..844e26e4381 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DiskType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DiskType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DiskTypeMapper { - static const int hdd_HASH = HashingUtils::HashString("hdd"); - static const int ssd_HASH = HashingUtils::HashString("ssd"); + static constexpr uint32_t hdd_HASH = ConstExprHashingUtils::HashString("hdd"); + static constexpr uint32_t ssd_HASH = ConstExprHashingUtils::HashString("ssd"); DiskType GetDiskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hdd_HASH) { return DiskType::hdd; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DnsNameState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DnsNameState.cpp index 385effce84b..90dec104a7a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DnsNameState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DnsNameState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DnsNameStateMapper { - static const int pendingVerification_HASH = HashingUtils::HashString("pendingVerification"); - static const int verified_HASH = HashingUtils::HashString("verified"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t pendingVerification_HASH = ConstExprHashingUtils::HashString("pendingVerification"); + static constexpr uint32_t verified_HASH = ConstExprHashingUtils::HashString("verified"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); DnsNameState GetDnsNameStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pendingVerification_HASH) { return DnsNameState::pendingVerification; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DnsRecordIpType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DnsRecordIpType.cpp index 5ee6c6d0fab..3f93024e3fe 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DnsRecordIpType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DnsRecordIpType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DnsRecordIpTypeMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int dualstack_HASH = HashingUtils::HashString("dualstack"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); - static const int service_defined_HASH = HashingUtils::HashString("service-defined"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t dualstack_HASH = ConstExprHashingUtils::HashString("dualstack"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); + static constexpr uint32_t service_defined_HASH = ConstExprHashingUtils::HashString("service-defined"); DnsRecordIpType GetDnsRecordIpTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return DnsRecordIpType::ipv4; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DnsSupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DnsSupportValue.cpp index 0249ea8247e..e3c41822af9 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DnsSupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DnsSupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DnsSupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); DnsSupportValue GetDnsSupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return DnsSupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DomainType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DomainType.cpp index 6c49f8b2153..8dbf5349663 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DomainType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DomainType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DomainTypeMapper { - static const int vpc_HASH = HashingUtils::HashString("vpc"); - static const int standard_HASH = HashingUtils::HashString("standard"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); DomainType GetDomainTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vpc_HASH) { return DomainType::vpc; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DynamicRoutingValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DynamicRoutingValue.cpp index 1136d33e194..e0288e4763c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/DynamicRoutingValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DynamicRoutingValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DynamicRoutingValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); DynamicRoutingValue GetDynamicRoutingValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return DynamicRoutingValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EbsEncryptionSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EbsEncryptionSupport.cpp index ea0a83c85d4..d36ef918ac1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EbsEncryptionSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EbsEncryptionSupport.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EbsEncryptionSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); EbsEncryptionSupport GetEbsEncryptionSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return EbsEncryptionSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EbsNvmeSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EbsNvmeSupport.cpp index 2f37cd25244..0fe6cf1ed31 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EbsNvmeSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EbsNvmeSupport.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EbsNvmeSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); EbsNvmeSupport GetEbsNvmeSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return EbsNvmeSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EbsOptimizedSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EbsOptimizedSupport.cpp index 952345e22cc..c06150d588c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EbsOptimizedSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EbsOptimizedSupport.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EbsOptimizedSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); - static const int default__HASH = HashingUtils::HashString("default"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); EbsOptimizedSupport GetEbsOptimizedSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return EbsOptimizedSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Ec2InstanceConnectEndpointState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Ec2InstanceConnectEndpointState.cpp index 268b69c3b88..3ef434e23c6 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Ec2InstanceConnectEndpointState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Ec2InstanceConnectEndpointState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Ec2InstanceConnectEndpointStateMapper { - static const int create_in_progress_HASH = HashingUtils::HashString("create-in-progress"); - static const int create_complete_HASH = HashingUtils::HashString("create-complete"); - static const int create_failed_HASH = HashingUtils::HashString("create-failed"); - static const int delete_in_progress_HASH = HashingUtils::HashString("delete-in-progress"); - static const int delete_complete_HASH = HashingUtils::HashString("delete-complete"); - static const int delete_failed_HASH = HashingUtils::HashString("delete-failed"); + static constexpr uint32_t create_in_progress_HASH = ConstExprHashingUtils::HashString("create-in-progress"); + static constexpr uint32_t create_complete_HASH = ConstExprHashingUtils::HashString("create-complete"); + static constexpr uint32_t create_failed_HASH = ConstExprHashingUtils::HashString("create-failed"); + static constexpr uint32_t delete_in_progress_HASH = ConstExprHashingUtils::HashString("delete-in-progress"); + static constexpr uint32_t delete_complete_HASH = ConstExprHashingUtils::HashString("delete-complete"); + static constexpr uint32_t delete_failed_HASH = ConstExprHashingUtils::HashString("delete-failed"); Ec2InstanceConnectEndpointState GetEc2InstanceConnectEndpointStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_in_progress_HASH) { return Ec2InstanceConnectEndpointState::create_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuState.cpp index 1a00071b10f..08f5c389877 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ElasticGpuStateMapper { - static const int ATTACHED_HASH = HashingUtils::HashString("ATTACHED"); + static constexpr uint32_t ATTACHED_HASH = ConstExprHashingUtils::HashString("ATTACHED"); ElasticGpuState GetElasticGpuStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTACHED_HASH) { return ElasticGpuState::ATTACHED; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuStatus.cpp index c9eccd61310..955c55b58dd 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ElasticGpuStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ElasticGpuStatusMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int IMPAIRED_HASH = HashingUtils::HashString("IMPAIRED"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t IMPAIRED_HASH = ConstExprHashingUtils::HashString("IMPAIRED"); ElasticGpuStatus GetElasticGpuStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return ElasticGpuStatus::OK; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EnaSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EnaSupport.cpp index 5b78e073d5b..56cfd5e3550 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EnaSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EnaSupport.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EnaSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); EnaSupport GetEnaSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return EnaSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EndDateType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EndDateType.cpp index c9f3316d4fd..f407ed66599 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EndDateType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EndDateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EndDateTypeMapper { - static const int unlimited_HASH = HashingUtils::HashString("unlimited"); - static const int limited_HASH = HashingUtils::HashString("limited"); + static constexpr uint32_t unlimited_HASH = ConstExprHashingUtils::HashString("unlimited"); + static constexpr uint32_t limited_HASH = ConstExprHashingUtils::HashString("limited"); EndDateType GetEndDateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unlimited_HASH) { return EndDateType::unlimited; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EphemeralNvmeSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EphemeralNvmeSupport.cpp index f4c23fc57f1..0e2bc845e25 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EphemeralNvmeSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EphemeralNvmeSupport.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EphemeralNvmeSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); EphemeralNvmeSupport GetEphemeralNvmeSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return EphemeralNvmeSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EventCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EventCode.cpp index 4b369112843..58c776abbac 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EventCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EventCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EventCodeMapper { - static const int instance_reboot_HASH = HashingUtils::HashString("instance-reboot"); - static const int system_reboot_HASH = HashingUtils::HashString("system-reboot"); - static const int system_maintenance_HASH = HashingUtils::HashString("system-maintenance"); - static const int instance_retirement_HASH = HashingUtils::HashString("instance-retirement"); - static const int instance_stop_HASH = HashingUtils::HashString("instance-stop"); + static constexpr uint32_t instance_reboot_HASH = ConstExprHashingUtils::HashString("instance-reboot"); + static constexpr uint32_t system_reboot_HASH = ConstExprHashingUtils::HashString("system-reboot"); + static constexpr uint32_t system_maintenance_HASH = ConstExprHashingUtils::HashString("system-maintenance"); + static constexpr uint32_t instance_retirement_HASH = ConstExprHashingUtils::HashString("instance-retirement"); + static constexpr uint32_t instance_stop_HASH = ConstExprHashingUtils::HashString("instance-stop"); EventCode GetEventCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == instance_reboot_HASH) { return EventCode::instance_reboot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EventType.cpp index 04719d89631..50ecadaf400 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EventType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EventTypeMapper { - static const int instanceChange_HASH = HashingUtils::HashString("instanceChange"); - static const int fleetRequestChange_HASH = HashingUtils::HashString("fleetRequestChange"); - static const int error_HASH = HashingUtils::HashString("error"); - static const int information_HASH = HashingUtils::HashString("information"); + static constexpr uint32_t instanceChange_HASH = ConstExprHashingUtils::HashString("instanceChange"); + static constexpr uint32_t fleetRequestChange_HASH = ConstExprHashingUtils::HashString("fleetRequestChange"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t information_HASH = ConstExprHashingUtils::HashString("information"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == instanceChange_HASH) { return EventType::instanceChange; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ExcessCapacityTerminationPolicy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ExcessCapacityTerminationPolicy.cpp index 5ce0570000d..ae0da56a746 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ExcessCapacityTerminationPolicy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ExcessCapacityTerminationPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExcessCapacityTerminationPolicyMapper { - static const int noTermination_HASH = HashingUtils::HashString("noTermination"); - static const int default__HASH = HashingUtils::HashString("default"); + static constexpr uint32_t noTermination_HASH = ConstExprHashingUtils::HashString("noTermination"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); ExcessCapacityTerminationPolicy GetExcessCapacityTerminationPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == noTermination_HASH) { return ExcessCapacityTerminationPolicy::noTermination; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ExportEnvironment.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ExportEnvironment.cpp index 90680a36fe0..51dfb428de4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ExportEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ExportEnvironment.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExportEnvironmentMapper { - static const int citrix_HASH = HashingUtils::HashString("citrix"); - static const int vmware_HASH = HashingUtils::HashString("vmware"); - static const int microsoft_HASH = HashingUtils::HashString("microsoft"); + static constexpr uint32_t citrix_HASH = ConstExprHashingUtils::HashString("citrix"); + static constexpr uint32_t vmware_HASH = ConstExprHashingUtils::HashString("vmware"); + static constexpr uint32_t microsoft_HASH = ConstExprHashingUtils::HashString("microsoft"); ExportEnvironment GetExportEnvironmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == citrix_HASH) { return ExportEnvironment::citrix; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ExportTaskState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ExportTaskState.cpp index f1ce9193131..c7cdf58f354 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ExportTaskState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ExportTaskState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExportTaskStateMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int cancelling_HASH = HashingUtils::HashString("cancelling"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int completed_HASH = HashingUtils::HashString("completed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t cancelling_HASH = ConstExprHashingUtils::HashString("cancelling"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); ExportTaskState GetExportTaskStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return ExportTaskState::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchResourceType.cpp index 1579c6b372c..e0864b9f99f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FastLaunchResourceTypeMapper { - static const int snapshot_HASH = HashingUtils::HashString("snapshot"); + static constexpr uint32_t snapshot_HASH = ConstExprHashingUtils::HashString("snapshot"); FastLaunchResourceType GetFastLaunchResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == snapshot_HASH) { return FastLaunchResourceType::snapshot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchStateCode.cpp index da6ae7928d5..497ae1e6225 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FastLaunchStateCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FastLaunchStateCodeMapper { - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int enabling_failed_HASH = HashingUtils::HashString("enabling-failed"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int enabled_failed_HASH = HashingUtils::HashString("enabled-failed"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int disabling_failed_HASH = HashingUtils::HashString("disabling-failed"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t enabling_failed_HASH = ConstExprHashingUtils::HashString("enabling-failed"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t enabled_failed_HASH = ConstExprHashingUtils::HashString("enabled-failed"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t disabling_failed_HASH = ConstExprHashingUtils::HashString("disabling-failed"); FastLaunchStateCode GetFastLaunchStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabling_HASH) { return FastLaunchStateCode::enabling; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FastSnapshotRestoreStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FastSnapshotRestoreStateCode.cpp index 109d04d2734..bf399591365 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FastSnapshotRestoreStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FastSnapshotRestoreStateCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FastSnapshotRestoreStateCodeMapper { - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int optimizing_HASH = HashingUtils::HashString("optimizing"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t optimizing_HASH = ConstExprHashingUtils::HashString("optimizing"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); FastSnapshotRestoreStateCode GetFastSnapshotRestoreStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabling_HASH) { return FastSnapshotRestoreStateCode::enabling; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FindingsFound.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FindingsFound.cpp index 1b4ed27b813..b3fa12bf7bd 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FindingsFound.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FindingsFound.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingsFoundMapper { - static const int true__HASH = HashingUtils::HashString("true"); - static const int false__HASH = HashingUtils::HashString("false"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t true__HASH = ConstExprHashingUtils::HashString("true"); + static constexpr uint32_t false__HASH = ConstExprHashingUtils::HashString("false"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); FindingsFound GetFindingsFoundForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == true__HASH) { return FindingsFound::true_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetActivityStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetActivityStatus.cpp index 752dabee304..c1722d8007b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetActivityStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetActivityStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FleetActivityStatusMapper { - static const int error_HASH = HashingUtils::HashString("error"); - static const int pending_fulfillment_HASH = HashingUtils::HashString("pending_fulfillment"); - static const int pending_termination_HASH = HashingUtils::HashString("pending_termination"); - static const int fulfilled_HASH = HashingUtils::HashString("fulfilled"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t pending_fulfillment_HASH = ConstExprHashingUtils::HashString("pending_fulfillment"); + static constexpr uint32_t pending_termination_HASH = ConstExprHashingUtils::HashString("pending_termination"); + static constexpr uint32_t fulfilled_HASH = ConstExprHashingUtils::HashString("fulfilled"); FleetActivityStatus GetFleetActivityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == error_HASH) { return FleetActivityStatus::error; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationTenancy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationTenancy.cpp index d146b48bacb..264531609f0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationTenancy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationTenancy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FleetCapacityReservationTenancyMapper { - static const int default__HASH = HashingUtils::HashString("default"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); FleetCapacityReservationTenancy GetFleetCapacityReservationTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return FleetCapacityReservationTenancy::default_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp index 9b4093c1565..e9e668a198b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FleetCapacityReservationUsageStrategyMapper { - static const int use_capacity_reservations_first_HASH = HashingUtils::HashString("use-capacity-reservations-first"); + static constexpr uint32_t use_capacity_reservations_first_HASH = ConstExprHashingUtils::HashString("use-capacity-reservations-first"); FleetCapacityReservationUsageStrategy GetFleetCapacityReservationUsageStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == use_capacity_reservations_first_HASH) { return FleetCapacityReservationUsageStrategy::use_capacity_reservations_first; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetEventType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetEventType.cpp index 321818c76c0..6aad227e341 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetEventType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetEventType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FleetEventTypeMapper { - static const int instance_change_HASH = HashingUtils::HashString("instance-change"); - static const int fleet_change_HASH = HashingUtils::HashString("fleet-change"); - static const int service_error_HASH = HashingUtils::HashString("service-error"); + static constexpr uint32_t instance_change_HASH = ConstExprHashingUtils::HashString("instance-change"); + static constexpr uint32_t fleet_change_HASH = ConstExprHashingUtils::HashString("fleet-change"); + static constexpr uint32_t service_error_HASH = ConstExprHashingUtils::HashString("service-error"); FleetEventType GetFleetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == instance_change_HASH) { return FleetEventType::instance_change; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetExcessCapacityTerminationPolicy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetExcessCapacityTerminationPolicy.cpp index 928aae7ace7..25801c9c276 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetExcessCapacityTerminationPolicy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetExcessCapacityTerminationPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FleetExcessCapacityTerminationPolicyMapper { - static const int no_termination_HASH = HashingUtils::HashString("no-termination"); - static const int termination_HASH = HashingUtils::HashString("termination"); + static constexpr uint32_t no_termination_HASH = ConstExprHashingUtils::HashString("no-termination"); + static constexpr uint32_t termination_HASH = ConstExprHashingUtils::HashString("termination"); FleetExcessCapacityTerminationPolicy GetFleetExcessCapacityTerminationPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == no_termination_HASH) { return FleetExcessCapacityTerminationPolicy::no_termination; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetInstanceMatchCriteria.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetInstanceMatchCriteria.cpp index 709f05253bd..dfaa8dc9cbb 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetInstanceMatchCriteria.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetInstanceMatchCriteria.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FleetInstanceMatchCriteriaMapper { - static const int open_HASH = HashingUtils::HashString("open"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); FleetInstanceMatchCriteria GetFleetInstanceMatchCriteriaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return FleetInstanceMatchCriteria::open; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetOnDemandAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetOnDemandAllocationStrategy.cpp index d0d399982bd..214fc4fb778 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetOnDemandAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetOnDemandAllocationStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FleetOnDemandAllocationStrategyMapper { - static const int lowest_price_HASH = HashingUtils::HashString("lowest-price"); - static const int prioritized_HASH = HashingUtils::HashString("prioritized"); + static constexpr uint32_t lowest_price_HASH = ConstExprHashingUtils::HashString("lowest-price"); + static constexpr uint32_t prioritized_HASH = ConstExprHashingUtils::HashString("prioritized"); FleetOnDemandAllocationStrategy GetFleetOnDemandAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == lowest_price_HASH) { return FleetOnDemandAllocationStrategy::lowest_price; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetReplacementStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetReplacementStrategy.cpp index d55d30edf7c..2799d1331a2 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetReplacementStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetReplacementStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FleetReplacementStrategyMapper { - static const int launch_HASH = HashingUtils::HashString("launch"); - static const int launch_before_terminate_HASH = HashingUtils::HashString("launch-before-terminate"); + static constexpr uint32_t launch_HASH = ConstExprHashingUtils::HashString("launch"); + static constexpr uint32_t launch_before_terminate_HASH = ConstExprHashingUtils::HashString("launch-before-terminate"); FleetReplacementStrategy GetFleetReplacementStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == launch_HASH) { return FleetReplacementStrategy::launch; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetStateCode.cpp index 8f0bd98bfa1..2d583d3121f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetStateCode.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FleetStateCodeMapper { - static const int submitted_HASH = HashingUtils::HashString("submitted"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int deleted_running_HASH = HashingUtils::HashString("deleted_running"); - static const int deleted_terminating_HASH = HashingUtils::HashString("deleted_terminating"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); + static constexpr uint32_t submitted_HASH = ConstExprHashingUtils::HashString("submitted"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t deleted_running_HASH = ConstExprHashingUtils::HashString("deleted_running"); + static constexpr uint32_t deleted_terminating_HASH = ConstExprHashingUtils::HashString("deleted_terminating"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); FleetStateCode GetFleetStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == submitted_HASH) { return FleetStateCode::submitted; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetType.cpp index 146c97b2cb9..0b637903366 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FleetTypeMapper { - static const int request_HASH = HashingUtils::HashString("request"); - static const int maintain_HASH = HashingUtils::HashString("maintain"); - static const int instant_HASH = HashingUtils::HashString("instant"); + static constexpr uint32_t request_HASH = ConstExprHashingUtils::HashString("request"); + static constexpr uint32_t maintain_HASH = ConstExprHashingUtils::HashString("maintain"); + static constexpr uint32_t instant_HASH = ConstExprHashingUtils::HashString("instant"); FleetType GetFleetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == request_HASH) { return FleetType::request; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FlowLogsResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FlowLogsResourceType.cpp index 4827bc89649..e1e8d95d7d0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FlowLogsResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FlowLogsResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FlowLogsResourceTypeMapper { - static const int VPC_HASH = HashingUtils::HashString("VPC"); - static const int Subnet_HASH = HashingUtils::HashString("Subnet"); - static const int NetworkInterface_HASH = HashingUtils::HashString("NetworkInterface"); - static const int TransitGateway_HASH = HashingUtils::HashString("TransitGateway"); - static const int TransitGatewayAttachment_HASH = HashingUtils::HashString("TransitGatewayAttachment"); + static constexpr uint32_t VPC_HASH = ConstExprHashingUtils::HashString("VPC"); + static constexpr uint32_t Subnet_HASH = ConstExprHashingUtils::HashString("Subnet"); + static constexpr uint32_t NetworkInterface_HASH = ConstExprHashingUtils::HashString("NetworkInterface"); + static constexpr uint32_t TransitGateway_HASH = ConstExprHashingUtils::HashString("TransitGateway"); + static constexpr uint32_t TransitGatewayAttachment_HASH = ConstExprHashingUtils::HashString("TransitGatewayAttachment"); FlowLogsResourceType GetFlowLogsResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VPC_HASH) { return FlowLogsResourceType::VPC; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageAttributeName.cpp index abc25d296dd..baba7efb94d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageAttributeName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FpgaImageAttributeNameMapper { - static const int description_HASH = HashingUtils::HashString("description"); - static const int name_HASH = HashingUtils::HashString("name"); - static const int loadPermission_HASH = HashingUtils::HashString("loadPermission"); - static const int productCodes_HASH = HashingUtils::HashString("productCodes"); + static constexpr uint32_t description_HASH = ConstExprHashingUtils::HashString("description"); + static constexpr uint32_t name_HASH = ConstExprHashingUtils::HashString("name"); + static constexpr uint32_t loadPermission_HASH = ConstExprHashingUtils::HashString("loadPermission"); + static constexpr uint32_t productCodes_HASH = ConstExprHashingUtils::HashString("productCodes"); FpgaImageAttributeName GetFpgaImageAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == description_HASH) { return FpgaImageAttributeName::description; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageStateCode.cpp index 3837df067eb..d69bc20f876 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FpgaImageStateCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FpgaImageStateCodeMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int unavailable_HASH = HashingUtils::HashString("unavailable"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t unavailable_HASH = ConstExprHashingUtils::HashString("unavailable"); FpgaImageStateCode GetFpgaImageStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return FpgaImageStateCode::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/GatewayAssociationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/GatewayAssociationState.cpp index 919442ad03d..fb25709fa01 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/GatewayAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/GatewayAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GatewayAssociationStateMapper { - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int not_associated_HASH = HashingUtils::HashString("not-associated"); - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t not_associated_HASH = ConstExprHashingUtils::HashString("not-associated"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); GatewayAssociationState GetGatewayAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associated_HASH) { return GatewayAssociationState::associated; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/GatewayType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/GatewayType.cpp index 7cdda70ea6c..e9a5e8f92f5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/GatewayType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/GatewayType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GatewayTypeMapper { - static const int ipsec_1_HASH = HashingUtils::HashString("ipsec.1"); + static constexpr uint32_t ipsec_1_HASH = ConstExprHashingUtils::HashString("ipsec.1"); GatewayType GetGatewayTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipsec_1_HASH) { return GatewayType::ipsec_1; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/HostMaintenance.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/HostMaintenance.cpp index b2d159b8cf5..278a0dac448 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/HostMaintenance.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/HostMaintenance.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HostMaintenanceMapper { - static const int on_HASH = HashingUtils::HashString("on"); - static const int off_HASH = HashingUtils::HashString("off"); + static constexpr uint32_t on_HASH = ConstExprHashingUtils::HashString("on"); + static constexpr uint32_t off_HASH = ConstExprHashingUtils::HashString("off"); HostMaintenance GetHostMaintenanceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == on_HASH) { return HostMaintenance::on; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/HostRecovery.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/HostRecovery.cpp index edc3980bd09..e5f718c1917 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/HostRecovery.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/HostRecovery.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HostRecoveryMapper { - static const int on_HASH = HashingUtils::HashString("on"); - static const int off_HASH = HashingUtils::HashString("off"); + static constexpr uint32_t on_HASH = ConstExprHashingUtils::HashString("on"); + static constexpr uint32_t off_HASH = ConstExprHashingUtils::HashString("off"); HostRecovery GetHostRecoveryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == on_HASH) { return HostRecovery::on; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/HostTenancy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/HostTenancy.cpp index 9ca6148867f..8134fbe0255 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/HostTenancy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/HostTenancy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HostTenancyMapper { - static const int dedicated_HASH = HashingUtils::HashString("dedicated"); - static const int host_HASH = HashingUtils::HashString("host"); + static constexpr uint32_t dedicated_HASH = ConstExprHashingUtils::HashString("dedicated"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); HostTenancy GetHostTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == dedicated_HASH) { return HostTenancy::dedicated; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/HostnameType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/HostnameType.cpp index 2b7dc37f17f..784233b60b7 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/HostnameType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/HostnameType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HostnameTypeMapper { - static const int ip_name_HASH = HashingUtils::HashString("ip-name"); - static const int resource_name_HASH = HashingUtils::HashString("resource-name"); + static constexpr uint32_t ip_name_HASH = ConstExprHashingUtils::HashString("ip-name"); + static constexpr uint32_t resource_name_HASH = ConstExprHashingUtils::HashString("resource-name"); HostnameType GetHostnameTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ip_name_HASH) { return HostnameType::ip_name; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/HttpTokensState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/HttpTokensState.cpp index bf374e8a0b1..20e45bb9ae2 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/HttpTokensState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/HttpTokensState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpTokensStateMapper { - static const int optional_HASH = HashingUtils::HashString("optional"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t optional_HASH = ConstExprHashingUtils::HashString("optional"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); HttpTokensState GetHttpTokensStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == optional_HASH) { return HttpTokensState::optional; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/HypervisorType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/HypervisorType.cpp index 44fd85888cb..dd4b06eea36 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/HypervisorType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/HypervisorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HypervisorTypeMapper { - static const int ovm_HASH = HashingUtils::HashString("ovm"); - static const int xen_HASH = HashingUtils::HashString("xen"); + static constexpr uint32_t ovm_HASH = ConstExprHashingUtils::HashString("ovm"); + static constexpr uint32_t xen_HASH = ConstExprHashingUtils::HashString("xen"); HypervisorType GetHypervisorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ovm_HASH) { return HypervisorType::ovm; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IamInstanceProfileAssociationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IamInstanceProfileAssociationState.cpp index a5bcba4abc0..90e253c9aa4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IamInstanceProfileAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IamInstanceProfileAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IamInstanceProfileAssociationStateMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); IamInstanceProfileAssociationState GetIamInstanceProfileAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return IamInstanceProfileAssociationState::associating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Igmpv2SupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Igmpv2SupportValue.cpp index a0dc16b2652..fcdc65b8b0f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Igmpv2SupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Igmpv2SupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Igmpv2SupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); Igmpv2SupportValue GetIgmpv2SupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return Igmpv2SupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageAttributeName.cpp index 47956d70526..6da918f2fe5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ImageAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageAttributeName.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ImageAttributeNameMapper { - static const int description_HASH = HashingUtils::HashString("description"); - static const int kernel_HASH = HashingUtils::HashString("kernel"); - static const int ramdisk_HASH = HashingUtils::HashString("ramdisk"); - static const int launchPermission_HASH = HashingUtils::HashString("launchPermission"); - static const int productCodes_HASH = HashingUtils::HashString("productCodes"); - static const int blockDeviceMapping_HASH = HashingUtils::HashString("blockDeviceMapping"); - static const int sriovNetSupport_HASH = HashingUtils::HashString("sriovNetSupport"); - static const int bootMode_HASH = HashingUtils::HashString("bootMode"); - static const int tpmSupport_HASH = HashingUtils::HashString("tpmSupport"); - static const int uefiData_HASH = HashingUtils::HashString("uefiData"); - static const int lastLaunchedTime_HASH = HashingUtils::HashString("lastLaunchedTime"); - static const int imdsSupport_HASH = HashingUtils::HashString("imdsSupport"); + static constexpr uint32_t description_HASH = ConstExprHashingUtils::HashString("description"); + static constexpr uint32_t kernel_HASH = ConstExprHashingUtils::HashString("kernel"); + static constexpr uint32_t ramdisk_HASH = ConstExprHashingUtils::HashString("ramdisk"); + static constexpr uint32_t launchPermission_HASH = ConstExprHashingUtils::HashString("launchPermission"); + static constexpr uint32_t productCodes_HASH = ConstExprHashingUtils::HashString("productCodes"); + static constexpr uint32_t blockDeviceMapping_HASH = ConstExprHashingUtils::HashString("blockDeviceMapping"); + static constexpr uint32_t sriovNetSupport_HASH = ConstExprHashingUtils::HashString("sriovNetSupport"); + static constexpr uint32_t bootMode_HASH = ConstExprHashingUtils::HashString("bootMode"); + static constexpr uint32_t tpmSupport_HASH = ConstExprHashingUtils::HashString("tpmSupport"); + static constexpr uint32_t uefiData_HASH = ConstExprHashingUtils::HashString("uefiData"); + static constexpr uint32_t lastLaunchedTime_HASH = ConstExprHashingUtils::HashString("lastLaunchedTime"); + static constexpr uint32_t imdsSupport_HASH = ConstExprHashingUtils::HashString("imdsSupport"); ImageAttributeName GetImageAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == description_HASH) { return ImageAttributeName::description; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp index 40e5f82064b..4b71bd7996e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImageBlockPublicAccessDisabledStateMapper { - static const int unblocked_HASH = HashingUtils::HashString("unblocked"); + static constexpr uint32_t unblocked_HASH = ConstExprHashingUtils::HashString("unblocked"); ImageBlockPublicAccessDisabledState GetImageBlockPublicAccessDisabledStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unblocked_HASH) { return ImageBlockPublicAccessDisabledState::unblocked; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp index 6fa01983370..78a92e99c43 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImageBlockPublicAccessEnabledStateMapper { - static const int block_new_sharing_HASH = HashingUtils::HashString("block-new-sharing"); + static constexpr uint32_t block_new_sharing_HASH = ConstExprHashingUtils::HashString("block-new-sharing"); ImageBlockPublicAccessEnabledState GetImageBlockPublicAccessEnabledStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == block_new_sharing_HASH) { return ImageBlockPublicAccessEnabledState::block_new_sharing; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageState.cpp index e90dd375f22..0ce3915400f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ImageState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ImageStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int invalid_HASH = HashingUtils::HashString("invalid"); - static const int deregistered_HASH = HashingUtils::HashString("deregistered"); - static const int transient_HASH = HashingUtils::HashString("transient"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int error_HASH = HashingUtils::HashString("error"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t invalid_HASH = ConstExprHashingUtils::HashString("invalid"); + static constexpr uint32_t deregistered_HASH = ConstExprHashingUtils::HashString("deregistered"); + static constexpr uint32_t transient_HASH = ConstExprHashingUtils::HashString("transient"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); ImageState GetImageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return ImageState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageTypeValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageTypeValues.cpp index a6aa61ffcad..41c7af8b3a1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ImageTypeValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageTypeValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageTypeValuesMapper { - static const int machine_HASH = HashingUtils::HashString("machine"); - static const int kernel_HASH = HashingUtils::HashString("kernel"); - static const int ramdisk_HASH = HashingUtils::HashString("ramdisk"); + static constexpr uint32_t machine_HASH = ConstExprHashingUtils::HashString("machine"); + static constexpr uint32_t kernel_HASH = ConstExprHashingUtils::HashString("kernel"); + static constexpr uint32_t ramdisk_HASH = ConstExprHashingUtils::HashString("ramdisk"); ImageTypeValues GetImageTypeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == machine_HASH) { return ImageTypeValues::machine; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImdsSupportValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImdsSupportValues.cpp index af9f24f20c1..bd0de787ad3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ImdsSupportValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImdsSupportValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImdsSupportValuesMapper { - static const int v2_0_HASH = HashingUtils::HashString("v2.0"); + static constexpr uint32_t v2_0_HASH = ConstExprHashingUtils::HashString("v2.0"); ImdsSupportValues GetImdsSupportValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == v2_0_HASH) { return ImdsSupportValues::v2_0; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAttributeName.cpp index 4b1bcefb7fd..fe0af02d431 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAttributeName.cpp @@ -20,27 +20,27 @@ namespace Aws namespace InstanceAttributeNameMapper { - static const int instanceType_HASH = HashingUtils::HashString("instanceType"); - static const int kernel_HASH = HashingUtils::HashString("kernel"); - static const int ramdisk_HASH = HashingUtils::HashString("ramdisk"); - static const int userData_HASH = HashingUtils::HashString("userData"); - static const int disableApiTermination_HASH = HashingUtils::HashString("disableApiTermination"); - static const int instanceInitiatedShutdownBehavior_HASH = HashingUtils::HashString("instanceInitiatedShutdownBehavior"); - static const int rootDeviceName_HASH = HashingUtils::HashString("rootDeviceName"); - static const int blockDeviceMapping_HASH = HashingUtils::HashString("blockDeviceMapping"); - static const int productCodes_HASH = HashingUtils::HashString("productCodes"); - static const int sourceDestCheck_HASH = HashingUtils::HashString("sourceDestCheck"); - static const int groupSet_HASH = HashingUtils::HashString("groupSet"); - static const int ebsOptimized_HASH = HashingUtils::HashString("ebsOptimized"); - static const int sriovNetSupport_HASH = HashingUtils::HashString("sriovNetSupport"); - static const int enaSupport_HASH = HashingUtils::HashString("enaSupport"); - static const int enclaveOptions_HASH = HashingUtils::HashString("enclaveOptions"); - static const int disableApiStop_HASH = HashingUtils::HashString("disableApiStop"); + static constexpr uint32_t instanceType_HASH = ConstExprHashingUtils::HashString("instanceType"); + static constexpr uint32_t kernel_HASH = ConstExprHashingUtils::HashString("kernel"); + static constexpr uint32_t ramdisk_HASH = ConstExprHashingUtils::HashString("ramdisk"); + static constexpr uint32_t userData_HASH = ConstExprHashingUtils::HashString("userData"); + static constexpr uint32_t disableApiTermination_HASH = ConstExprHashingUtils::HashString("disableApiTermination"); + static constexpr uint32_t instanceInitiatedShutdownBehavior_HASH = ConstExprHashingUtils::HashString("instanceInitiatedShutdownBehavior"); + static constexpr uint32_t rootDeviceName_HASH = ConstExprHashingUtils::HashString("rootDeviceName"); + static constexpr uint32_t blockDeviceMapping_HASH = ConstExprHashingUtils::HashString("blockDeviceMapping"); + static constexpr uint32_t productCodes_HASH = ConstExprHashingUtils::HashString("productCodes"); + static constexpr uint32_t sourceDestCheck_HASH = ConstExprHashingUtils::HashString("sourceDestCheck"); + static constexpr uint32_t groupSet_HASH = ConstExprHashingUtils::HashString("groupSet"); + static constexpr uint32_t ebsOptimized_HASH = ConstExprHashingUtils::HashString("ebsOptimized"); + static constexpr uint32_t sriovNetSupport_HASH = ConstExprHashingUtils::HashString("sriovNetSupport"); + static constexpr uint32_t enaSupport_HASH = ConstExprHashingUtils::HashString("enaSupport"); + static constexpr uint32_t enclaveOptions_HASH = ConstExprHashingUtils::HashString("enclaveOptions"); + static constexpr uint32_t disableApiStop_HASH = ConstExprHashingUtils::HashString("disableApiStop"); InstanceAttributeName GetInstanceAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == instanceType_HASH) { return InstanceAttributeName::instanceType; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAutoRecoveryState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAutoRecoveryState.cpp index dfa87fc5334..58d6c853a73 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAutoRecoveryState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceAutoRecoveryState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceAutoRecoveryStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int default__HASH = HashingUtils::HashString("default"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); InstanceAutoRecoveryState GetInstanceAutoRecoveryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return InstanceAutoRecoveryState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceBootModeValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceBootModeValues.cpp index cec260aa565..3a2542b095a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceBootModeValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceBootModeValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceBootModeValuesMapper { - static const int legacy_bios_HASH = HashingUtils::HashString("legacy-bios"); - static const int uefi_HASH = HashingUtils::HashString("uefi"); + static constexpr uint32_t legacy_bios_HASH = ConstExprHashingUtils::HashString("legacy-bios"); + static constexpr uint32_t uefi_HASH = ConstExprHashingUtils::HashString("uefi"); InstanceBootModeValues GetInstanceBootModeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == legacy_bios_HASH) { return InstanceBootModeValues::legacy_bios; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceEventWindowState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceEventWindowState.cpp index 87b39ab72ae..84bdd1606b1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceEventWindowState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceEventWindowState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstanceEventWindowStateMapper { - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); InstanceEventWindowState GetInstanceEventWindowStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == creating_HASH) { return InstanceEventWindowState::creating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceGeneration.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceGeneration.cpp index 1757f400424..c2e1701e090 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceGeneration.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceGeneration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceGenerationMapper { - static const int current_HASH = HashingUtils::HashString("current"); - static const int previous_HASH = HashingUtils::HashString("previous"); + static constexpr uint32_t current_HASH = ConstExprHashingUtils::HashString("current"); + static constexpr uint32_t previous_HASH = ConstExprHashingUtils::HashString("previous"); InstanceGeneration GetInstanceGenerationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == current_HASH) { return InstanceGeneration::current; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceHealthStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceHealthStatus.cpp index fefcd5530e8..e9f29356a2c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceHealthStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceHealthStatusMapper { - static const int healthy_HASH = HashingUtils::HashString("healthy"); - static const int unhealthy_HASH = HashingUtils::HashString("unhealthy"); + static constexpr uint32_t healthy_HASH = ConstExprHashingUtils::HashString("healthy"); + static constexpr uint32_t unhealthy_HASH = ConstExprHashingUtils::HashString("unhealthy"); InstanceHealthStatus GetInstanceHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == healthy_HASH) { return InstanceHealthStatus::healthy; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceInterruptionBehavior.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceInterruptionBehavior.cpp index 1728161c725..f5fd6d00b1d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceInterruptionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceInterruptionBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceInterruptionBehaviorMapper { - static const int hibernate_HASH = HashingUtils::HashString("hibernate"); - static const int stop_HASH = HashingUtils::HashString("stop"); - static const int terminate_HASH = HashingUtils::HashString("terminate"); + static constexpr uint32_t hibernate_HASH = ConstExprHashingUtils::HashString("hibernate"); + static constexpr uint32_t stop_HASH = ConstExprHashingUtils::HashString("stop"); + static constexpr uint32_t terminate_HASH = ConstExprHashingUtils::HashString("terminate"); InstanceInterruptionBehavior GetInstanceInterruptionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hibernate_HASH) { return InstanceInterruptionBehavior::hibernate; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycle.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycle.cpp index 59be85d66a7..22cdcf5422e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceLifecycleMapper { - static const int spot_HASH = HashingUtils::HashString("spot"); - static const int on_demand_HASH = HashingUtils::HashString("on-demand"); + static constexpr uint32_t spot_HASH = ConstExprHashingUtils::HashString("spot"); + static constexpr uint32_t on_demand_HASH = ConstExprHashingUtils::HashString("on-demand"); InstanceLifecycle GetInstanceLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == spot_HASH) { return InstanceLifecycle::spot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycleType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycleType.cpp index fb388810719..b34291a682f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycleType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceLifecycleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceLifecycleTypeMapper { - static const int spot_HASH = HashingUtils::HashString("spot"); - static const int scheduled_HASH = HashingUtils::HashString("scheduled"); + static constexpr uint32_t spot_HASH = ConstExprHashingUtils::HashString("spot"); + static constexpr uint32_t scheduled_HASH = ConstExprHashingUtils::HashString("scheduled"); InstanceLifecycleType GetInstanceLifecycleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == spot_HASH) { return InstanceLifecycleType::spot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMatchCriteria.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMatchCriteria.cpp index edd511a5e8e..a25b9ef18cf 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMatchCriteria.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMatchCriteria.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMatchCriteriaMapper { - static const int open_HASH = HashingUtils::HashString("open"); - static const int targeted_HASH = HashingUtils::HashString("targeted"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t targeted_HASH = ConstExprHashingUtils::HashString("targeted"); InstanceMatchCriteria GetInstanceMatchCriteriaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return InstanceMatchCriteria::open; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataEndpointState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataEndpointState.cpp index f964b274bef..66f99d95eca 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataEndpointState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataEndpointState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataEndpointStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); InstanceMetadataEndpointState GetInstanceMetadataEndpointStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return InstanceMetadataEndpointState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp index 90054ee5c7d..2db818adf89 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataOptionsState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataOptionsStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int applied_HASH = HashingUtils::HashString("applied"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t applied_HASH = ConstExprHashingUtils::HashString("applied"); InstanceMetadataOptionsState GetInstanceMetadataOptionsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return InstanceMetadataOptionsState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataProtocolState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataProtocolState.cpp index 3280e493a89..f939a524646 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataProtocolState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataProtocolState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataProtocolStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); InstanceMetadataProtocolState GetInstanceMetadataProtocolStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return InstanceMetadataProtocolState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataTagsState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataTagsState.cpp index 939dadbd71d..372631648da 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataTagsState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceMetadataTagsState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataTagsStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); InstanceMetadataTagsState GetInstanceMetadataTagsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return InstanceMetadataTagsState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStateName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStateName.cpp index 92946b94567..62a38394ca8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStateName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStateName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InstanceStateNameMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int running_HASH = HashingUtils::HashString("running"); - static const int shutting_down_HASH = HashingUtils::HashString("shutting-down"); - static const int terminated_HASH = HashingUtils::HashString("terminated"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t running_HASH = ConstExprHashingUtils::HashString("running"); + static constexpr uint32_t shutting_down_HASH = ConstExprHashingUtils::HashString("shutting-down"); + static constexpr uint32_t terminated_HASH = ConstExprHashingUtils::HashString("terminated"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); InstanceStateName GetInstanceStateNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return InstanceStateName::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStorageEncryptionSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStorageEncryptionSupport.cpp index dbb58794ea2..fce0a16c158 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStorageEncryptionSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceStorageEncryptionSupport.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceStorageEncryptionSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); InstanceStorageEncryptionSupport GetInstanceStorageEncryptionSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return InstanceStorageEncryptionSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceType.cpp index 2a3c4535fc3..f46053a4cbe 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceType.cpp @@ -20,762 +20,762 @@ namespace Aws namespace InstanceTypeMapper { - static const int a1_medium_HASH = HashingUtils::HashString("a1.medium"); - static const int a1_large_HASH = HashingUtils::HashString("a1.large"); - static const int a1_xlarge_HASH = HashingUtils::HashString("a1.xlarge"); - static const int a1_2xlarge_HASH = HashingUtils::HashString("a1.2xlarge"); - static const int a1_4xlarge_HASH = HashingUtils::HashString("a1.4xlarge"); - static const int a1_metal_HASH = HashingUtils::HashString("a1.metal"); - static const int c1_medium_HASH = HashingUtils::HashString("c1.medium"); - static const int c1_xlarge_HASH = HashingUtils::HashString("c1.xlarge"); - static const int c3_large_HASH = HashingUtils::HashString("c3.large"); - static const int c3_xlarge_HASH = HashingUtils::HashString("c3.xlarge"); - static const int c3_2xlarge_HASH = HashingUtils::HashString("c3.2xlarge"); - static const int c3_4xlarge_HASH = HashingUtils::HashString("c3.4xlarge"); - static const int c3_8xlarge_HASH = HashingUtils::HashString("c3.8xlarge"); - static const int c4_large_HASH = HashingUtils::HashString("c4.large"); - static const int c4_xlarge_HASH = HashingUtils::HashString("c4.xlarge"); - static const int c4_2xlarge_HASH = HashingUtils::HashString("c4.2xlarge"); - static const int c4_4xlarge_HASH = HashingUtils::HashString("c4.4xlarge"); - static const int c4_8xlarge_HASH = HashingUtils::HashString("c4.8xlarge"); - static const int c5_large_HASH = HashingUtils::HashString("c5.large"); - static const int c5_xlarge_HASH = HashingUtils::HashString("c5.xlarge"); - static const int c5_2xlarge_HASH = HashingUtils::HashString("c5.2xlarge"); - static const int c5_4xlarge_HASH = HashingUtils::HashString("c5.4xlarge"); - static const int c5_9xlarge_HASH = HashingUtils::HashString("c5.9xlarge"); - static const int c5_12xlarge_HASH = HashingUtils::HashString("c5.12xlarge"); - static const int c5_18xlarge_HASH = HashingUtils::HashString("c5.18xlarge"); - static const int c5_24xlarge_HASH = HashingUtils::HashString("c5.24xlarge"); - static const int c5_metal_HASH = HashingUtils::HashString("c5.metal"); - static const int c5a_large_HASH = HashingUtils::HashString("c5a.large"); - static const int c5a_xlarge_HASH = HashingUtils::HashString("c5a.xlarge"); - static const int c5a_2xlarge_HASH = HashingUtils::HashString("c5a.2xlarge"); - static const int c5a_4xlarge_HASH = HashingUtils::HashString("c5a.4xlarge"); - static const int c5a_8xlarge_HASH = HashingUtils::HashString("c5a.8xlarge"); - static const int c5a_12xlarge_HASH = HashingUtils::HashString("c5a.12xlarge"); - static const int c5a_16xlarge_HASH = HashingUtils::HashString("c5a.16xlarge"); - static const int c5a_24xlarge_HASH = HashingUtils::HashString("c5a.24xlarge"); - static const int c5ad_large_HASH = HashingUtils::HashString("c5ad.large"); - static const int c5ad_xlarge_HASH = HashingUtils::HashString("c5ad.xlarge"); - static const int c5ad_2xlarge_HASH = HashingUtils::HashString("c5ad.2xlarge"); - static const int c5ad_4xlarge_HASH = HashingUtils::HashString("c5ad.4xlarge"); - static const int c5ad_8xlarge_HASH = HashingUtils::HashString("c5ad.8xlarge"); - static const int c5ad_12xlarge_HASH = HashingUtils::HashString("c5ad.12xlarge"); - static const int c5ad_16xlarge_HASH = HashingUtils::HashString("c5ad.16xlarge"); - static const int c5ad_24xlarge_HASH = HashingUtils::HashString("c5ad.24xlarge"); - static const int c5d_large_HASH = HashingUtils::HashString("c5d.large"); - static const int c5d_xlarge_HASH = HashingUtils::HashString("c5d.xlarge"); - static const int c5d_2xlarge_HASH = HashingUtils::HashString("c5d.2xlarge"); - static const int c5d_4xlarge_HASH = HashingUtils::HashString("c5d.4xlarge"); - static const int c5d_9xlarge_HASH = HashingUtils::HashString("c5d.9xlarge"); - static const int c5d_12xlarge_HASH = HashingUtils::HashString("c5d.12xlarge"); - static const int c5d_18xlarge_HASH = HashingUtils::HashString("c5d.18xlarge"); - static const int c5d_24xlarge_HASH = HashingUtils::HashString("c5d.24xlarge"); - static const int c5d_metal_HASH = HashingUtils::HashString("c5d.metal"); - static const int c5n_large_HASH = HashingUtils::HashString("c5n.large"); - static const int c5n_xlarge_HASH = HashingUtils::HashString("c5n.xlarge"); - static const int c5n_2xlarge_HASH = HashingUtils::HashString("c5n.2xlarge"); - static const int c5n_4xlarge_HASH = HashingUtils::HashString("c5n.4xlarge"); - static const int c5n_9xlarge_HASH = HashingUtils::HashString("c5n.9xlarge"); - static const int c5n_18xlarge_HASH = HashingUtils::HashString("c5n.18xlarge"); - static const int c5n_metal_HASH = HashingUtils::HashString("c5n.metal"); - static const int c6g_medium_HASH = HashingUtils::HashString("c6g.medium"); - static const int c6g_large_HASH = HashingUtils::HashString("c6g.large"); - static const int c6g_xlarge_HASH = HashingUtils::HashString("c6g.xlarge"); - static const int c6g_2xlarge_HASH = HashingUtils::HashString("c6g.2xlarge"); - static const int c6g_4xlarge_HASH = HashingUtils::HashString("c6g.4xlarge"); - static const int c6g_8xlarge_HASH = HashingUtils::HashString("c6g.8xlarge"); - static const int c6g_12xlarge_HASH = HashingUtils::HashString("c6g.12xlarge"); - static const int c6g_16xlarge_HASH = HashingUtils::HashString("c6g.16xlarge"); - static const int c6g_metal_HASH = HashingUtils::HashString("c6g.metal"); - static const int c6gd_medium_HASH = HashingUtils::HashString("c6gd.medium"); - static const int c6gd_large_HASH = HashingUtils::HashString("c6gd.large"); - static const int c6gd_xlarge_HASH = HashingUtils::HashString("c6gd.xlarge"); - static const int c6gd_2xlarge_HASH = HashingUtils::HashString("c6gd.2xlarge"); - static const int c6gd_4xlarge_HASH = HashingUtils::HashString("c6gd.4xlarge"); - static const int c6gd_8xlarge_HASH = HashingUtils::HashString("c6gd.8xlarge"); - static const int c6gd_12xlarge_HASH = HashingUtils::HashString("c6gd.12xlarge"); - static const int c6gd_16xlarge_HASH = HashingUtils::HashString("c6gd.16xlarge"); - static const int c6gd_metal_HASH = HashingUtils::HashString("c6gd.metal"); - static const int c6gn_medium_HASH = HashingUtils::HashString("c6gn.medium"); - static const int c6gn_large_HASH = HashingUtils::HashString("c6gn.large"); - static const int c6gn_xlarge_HASH = HashingUtils::HashString("c6gn.xlarge"); - static const int c6gn_2xlarge_HASH = HashingUtils::HashString("c6gn.2xlarge"); - static const int c6gn_4xlarge_HASH = HashingUtils::HashString("c6gn.4xlarge"); - static const int c6gn_8xlarge_HASH = HashingUtils::HashString("c6gn.8xlarge"); - static const int c6gn_12xlarge_HASH = HashingUtils::HashString("c6gn.12xlarge"); - static const int c6gn_16xlarge_HASH = HashingUtils::HashString("c6gn.16xlarge"); - static const int c6i_large_HASH = HashingUtils::HashString("c6i.large"); - static const int c6i_xlarge_HASH = HashingUtils::HashString("c6i.xlarge"); - static const int c6i_2xlarge_HASH = HashingUtils::HashString("c6i.2xlarge"); - static const int c6i_4xlarge_HASH = HashingUtils::HashString("c6i.4xlarge"); - static const int c6i_8xlarge_HASH = HashingUtils::HashString("c6i.8xlarge"); - static const int c6i_12xlarge_HASH = HashingUtils::HashString("c6i.12xlarge"); - static const int c6i_16xlarge_HASH = HashingUtils::HashString("c6i.16xlarge"); - static const int c6i_24xlarge_HASH = HashingUtils::HashString("c6i.24xlarge"); - static const int c6i_32xlarge_HASH = HashingUtils::HashString("c6i.32xlarge"); - static const int c6i_metal_HASH = HashingUtils::HashString("c6i.metal"); - static const int cc1_4xlarge_HASH = HashingUtils::HashString("cc1.4xlarge"); - static const int cc2_8xlarge_HASH = HashingUtils::HashString("cc2.8xlarge"); - static const int cg1_4xlarge_HASH = HashingUtils::HashString("cg1.4xlarge"); - static const int cr1_8xlarge_HASH = HashingUtils::HashString("cr1.8xlarge"); - static const int d2_xlarge_HASH = HashingUtils::HashString("d2.xlarge"); - static const int d2_2xlarge_HASH = HashingUtils::HashString("d2.2xlarge"); - static const int d2_4xlarge_HASH = HashingUtils::HashString("d2.4xlarge"); - static const int d2_8xlarge_HASH = HashingUtils::HashString("d2.8xlarge"); - static const int d3_xlarge_HASH = HashingUtils::HashString("d3.xlarge"); - static const int d3_2xlarge_HASH = HashingUtils::HashString("d3.2xlarge"); - static const int d3_4xlarge_HASH = HashingUtils::HashString("d3.4xlarge"); - static const int d3_8xlarge_HASH = HashingUtils::HashString("d3.8xlarge"); - static const int d3en_xlarge_HASH = HashingUtils::HashString("d3en.xlarge"); - static const int d3en_2xlarge_HASH = HashingUtils::HashString("d3en.2xlarge"); - static const int d3en_4xlarge_HASH = HashingUtils::HashString("d3en.4xlarge"); - static const int d3en_6xlarge_HASH = HashingUtils::HashString("d3en.6xlarge"); - static const int d3en_8xlarge_HASH = HashingUtils::HashString("d3en.8xlarge"); - static const int d3en_12xlarge_HASH = HashingUtils::HashString("d3en.12xlarge"); - static const int dl1_24xlarge_HASH = HashingUtils::HashString("dl1.24xlarge"); - static const int f1_2xlarge_HASH = HashingUtils::HashString("f1.2xlarge"); - static const int f1_4xlarge_HASH = HashingUtils::HashString("f1.4xlarge"); - static const int f1_16xlarge_HASH = HashingUtils::HashString("f1.16xlarge"); - static const int g2_2xlarge_HASH = HashingUtils::HashString("g2.2xlarge"); - static const int g2_8xlarge_HASH = HashingUtils::HashString("g2.8xlarge"); - static const int g3_4xlarge_HASH = HashingUtils::HashString("g3.4xlarge"); - static const int g3_8xlarge_HASH = HashingUtils::HashString("g3.8xlarge"); - static const int g3_16xlarge_HASH = HashingUtils::HashString("g3.16xlarge"); - static const int g3s_xlarge_HASH = HashingUtils::HashString("g3s.xlarge"); - static const int g4ad_xlarge_HASH = HashingUtils::HashString("g4ad.xlarge"); - static const int g4ad_2xlarge_HASH = HashingUtils::HashString("g4ad.2xlarge"); - static const int g4ad_4xlarge_HASH = HashingUtils::HashString("g4ad.4xlarge"); - static const int g4ad_8xlarge_HASH = HashingUtils::HashString("g4ad.8xlarge"); - static const int g4ad_16xlarge_HASH = HashingUtils::HashString("g4ad.16xlarge"); - static const int g4dn_xlarge_HASH = HashingUtils::HashString("g4dn.xlarge"); - static const int g4dn_2xlarge_HASH = HashingUtils::HashString("g4dn.2xlarge"); - static const int g4dn_4xlarge_HASH = HashingUtils::HashString("g4dn.4xlarge"); - static const int g4dn_8xlarge_HASH = HashingUtils::HashString("g4dn.8xlarge"); - static const int g4dn_12xlarge_HASH = HashingUtils::HashString("g4dn.12xlarge"); - static const int g4dn_16xlarge_HASH = HashingUtils::HashString("g4dn.16xlarge"); - static const int g4dn_metal_HASH = HashingUtils::HashString("g4dn.metal"); - static const int g5_xlarge_HASH = HashingUtils::HashString("g5.xlarge"); - static const int g5_2xlarge_HASH = HashingUtils::HashString("g5.2xlarge"); - static const int g5_4xlarge_HASH = HashingUtils::HashString("g5.4xlarge"); - static const int g5_8xlarge_HASH = HashingUtils::HashString("g5.8xlarge"); - static const int g5_12xlarge_HASH = HashingUtils::HashString("g5.12xlarge"); - static const int g5_16xlarge_HASH = HashingUtils::HashString("g5.16xlarge"); - static const int g5_24xlarge_HASH = HashingUtils::HashString("g5.24xlarge"); - static const int g5_48xlarge_HASH = HashingUtils::HashString("g5.48xlarge"); - static const int g5g_xlarge_HASH = HashingUtils::HashString("g5g.xlarge"); - static const int g5g_2xlarge_HASH = HashingUtils::HashString("g5g.2xlarge"); - static const int g5g_4xlarge_HASH = HashingUtils::HashString("g5g.4xlarge"); - static const int g5g_8xlarge_HASH = HashingUtils::HashString("g5g.8xlarge"); - static const int g5g_16xlarge_HASH = HashingUtils::HashString("g5g.16xlarge"); - static const int g5g_metal_HASH = HashingUtils::HashString("g5g.metal"); - static const int hi1_4xlarge_HASH = HashingUtils::HashString("hi1.4xlarge"); - static const int hpc6a_48xlarge_HASH = HashingUtils::HashString("hpc6a.48xlarge"); - static const int hs1_8xlarge_HASH = HashingUtils::HashString("hs1.8xlarge"); - static const int h1_2xlarge_HASH = HashingUtils::HashString("h1.2xlarge"); - static const int h1_4xlarge_HASH = HashingUtils::HashString("h1.4xlarge"); - static const int h1_8xlarge_HASH = HashingUtils::HashString("h1.8xlarge"); - static const int h1_16xlarge_HASH = HashingUtils::HashString("h1.16xlarge"); - static const int i2_xlarge_HASH = HashingUtils::HashString("i2.xlarge"); - static const int i2_2xlarge_HASH = HashingUtils::HashString("i2.2xlarge"); - static const int i2_4xlarge_HASH = HashingUtils::HashString("i2.4xlarge"); - static const int i2_8xlarge_HASH = HashingUtils::HashString("i2.8xlarge"); - static const int i3_large_HASH = HashingUtils::HashString("i3.large"); - static const int i3_xlarge_HASH = HashingUtils::HashString("i3.xlarge"); - static const int i3_2xlarge_HASH = HashingUtils::HashString("i3.2xlarge"); - static const int i3_4xlarge_HASH = HashingUtils::HashString("i3.4xlarge"); - static const int i3_8xlarge_HASH = HashingUtils::HashString("i3.8xlarge"); - static const int i3_16xlarge_HASH = HashingUtils::HashString("i3.16xlarge"); - static const int i3_metal_HASH = HashingUtils::HashString("i3.metal"); - static const int i3en_large_HASH = HashingUtils::HashString("i3en.large"); - static const int i3en_xlarge_HASH = HashingUtils::HashString("i3en.xlarge"); - static const int i3en_2xlarge_HASH = HashingUtils::HashString("i3en.2xlarge"); - static const int i3en_3xlarge_HASH = HashingUtils::HashString("i3en.3xlarge"); - static const int i3en_6xlarge_HASH = HashingUtils::HashString("i3en.6xlarge"); - static const int i3en_12xlarge_HASH = HashingUtils::HashString("i3en.12xlarge"); - static const int i3en_24xlarge_HASH = HashingUtils::HashString("i3en.24xlarge"); - static const int i3en_metal_HASH = HashingUtils::HashString("i3en.metal"); - static const int im4gn_large_HASH = HashingUtils::HashString("im4gn.large"); - static const int im4gn_xlarge_HASH = HashingUtils::HashString("im4gn.xlarge"); - static const int im4gn_2xlarge_HASH = HashingUtils::HashString("im4gn.2xlarge"); - static const int im4gn_4xlarge_HASH = HashingUtils::HashString("im4gn.4xlarge"); - static const int im4gn_8xlarge_HASH = HashingUtils::HashString("im4gn.8xlarge"); - static const int im4gn_16xlarge_HASH = HashingUtils::HashString("im4gn.16xlarge"); - static const int inf1_xlarge_HASH = HashingUtils::HashString("inf1.xlarge"); - static const int inf1_2xlarge_HASH = HashingUtils::HashString("inf1.2xlarge"); - static const int inf1_6xlarge_HASH = HashingUtils::HashString("inf1.6xlarge"); - static const int inf1_24xlarge_HASH = HashingUtils::HashString("inf1.24xlarge"); - static const int is4gen_medium_HASH = HashingUtils::HashString("is4gen.medium"); - static const int is4gen_large_HASH = HashingUtils::HashString("is4gen.large"); - static const int is4gen_xlarge_HASH = HashingUtils::HashString("is4gen.xlarge"); - static const int is4gen_2xlarge_HASH = HashingUtils::HashString("is4gen.2xlarge"); - static const int is4gen_4xlarge_HASH = HashingUtils::HashString("is4gen.4xlarge"); - static const int is4gen_8xlarge_HASH = HashingUtils::HashString("is4gen.8xlarge"); - static const int m1_small_HASH = HashingUtils::HashString("m1.small"); - static const int m1_medium_HASH = HashingUtils::HashString("m1.medium"); - static const int m1_large_HASH = HashingUtils::HashString("m1.large"); - static const int m1_xlarge_HASH = HashingUtils::HashString("m1.xlarge"); - static const int m2_xlarge_HASH = HashingUtils::HashString("m2.xlarge"); - static const int m2_2xlarge_HASH = HashingUtils::HashString("m2.2xlarge"); - static const int m2_4xlarge_HASH = HashingUtils::HashString("m2.4xlarge"); - static const int m3_medium_HASH = HashingUtils::HashString("m3.medium"); - static const int m3_large_HASH = HashingUtils::HashString("m3.large"); - static const int m3_xlarge_HASH = HashingUtils::HashString("m3.xlarge"); - static const int m3_2xlarge_HASH = HashingUtils::HashString("m3.2xlarge"); - static const int m4_large_HASH = HashingUtils::HashString("m4.large"); - static const int m4_xlarge_HASH = HashingUtils::HashString("m4.xlarge"); - static const int m4_2xlarge_HASH = HashingUtils::HashString("m4.2xlarge"); - static const int m4_4xlarge_HASH = HashingUtils::HashString("m4.4xlarge"); - static const int m4_10xlarge_HASH = HashingUtils::HashString("m4.10xlarge"); - static const int m4_16xlarge_HASH = HashingUtils::HashString("m4.16xlarge"); - static const int m5_large_HASH = HashingUtils::HashString("m5.large"); - static const int m5_xlarge_HASH = HashingUtils::HashString("m5.xlarge"); - static const int m5_2xlarge_HASH = HashingUtils::HashString("m5.2xlarge"); - static const int m5_4xlarge_HASH = HashingUtils::HashString("m5.4xlarge"); - static const int m5_8xlarge_HASH = HashingUtils::HashString("m5.8xlarge"); - static const int m5_12xlarge_HASH = HashingUtils::HashString("m5.12xlarge"); - static const int m5_16xlarge_HASH = HashingUtils::HashString("m5.16xlarge"); - static const int m5_24xlarge_HASH = HashingUtils::HashString("m5.24xlarge"); - static const int m5_metal_HASH = HashingUtils::HashString("m5.metal"); - static const int m5a_large_HASH = HashingUtils::HashString("m5a.large"); - static const int m5a_xlarge_HASH = HashingUtils::HashString("m5a.xlarge"); - static const int m5a_2xlarge_HASH = HashingUtils::HashString("m5a.2xlarge"); - static const int m5a_4xlarge_HASH = HashingUtils::HashString("m5a.4xlarge"); - static const int m5a_8xlarge_HASH = HashingUtils::HashString("m5a.8xlarge"); - static const int m5a_12xlarge_HASH = HashingUtils::HashString("m5a.12xlarge"); - static const int m5a_16xlarge_HASH = HashingUtils::HashString("m5a.16xlarge"); - static const int m5a_24xlarge_HASH = HashingUtils::HashString("m5a.24xlarge"); - static const int m5ad_large_HASH = HashingUtils::HashString("m5ad.large"); - static const int m5ad_xlarge_HASH = HashingUtils::HashString("m5ad.xlarge"); - static const int m5ad_2xlarge_HASH = HashingUtils::HashString("m5ad.2xlarge"); - static const int m5ad_4xlarge_HASH = HashingUtils::HashString("m5ad.4xlarge"); - static const int m5ad_8xlarge_HASH = HashingUtils::HashString("m5ad.8xlarge"); - static const int m5ad_12xlarge_HASH = HashingUtils::HashString("m5ad.12xlarge"); - static const int m5ad_16xlarge_HASH = HashingUtils::HashString("m5ad.16xlarge"); - static const int m5ad_24xlarge_HASH = HashingUtils::HashString("m5ad.24xlarge"); - static const int m5d_large_HASH = HashingUtils::HashString("m5d.large"); - static const int m5d_xlarge_HASH = HashingUtils::HashString("m5d.xlarge"); - static const int m5d_2xlarge_HASH = HashingUtils::HashString("m5d.2xlarge"); - static const int m5d_4xlarge_HASH = HashingUtils::HashString("m5d.4xlarge"); - static const int m5d_8xlarge_HASH = HashingUtils::HashString("m5d.8xlarge"); - static const int m5d_12xlarge_HASH = HashingUtils::HashString("m5d.12xlarge"); - static const int m5d_16xlarge_HASH = HashingUtils::HashString("m5d.16xlarge"); - static const int m5d_24xlarge_HASH = HashingUtils::HashString("m5d.24xlarge"); - static const int m5d_metal_HASH = HashingUtils::HashString("m5d.metal"); - static const int m5dn_large_HASH = HashingUtils::HashString("m5dn.large"); - static const int m5dn_xlarge_HASH = HashingUtils::HashString("m5dn.xlarge"); - static const int m5dn_2xlarge_HASH = HashingUtils::HashString("m5dn.2xlarge"); - static const int m5dn_4xlarge_HASH = HashingUtils::HashString("m5dn.4xlarge"); - static const int m5dn_8xlarge_HASH = HashingUtils::HashString("m5dn.8xlarge"); - static const int m5dn_12xlarge_HASH = HashingUtils::HashString("m5dn.12xlarge"); - static const int m5dn_16xlarge_HASH = HashingUtils::HashString("m5dn.16xlarge"); - static const int m5dn_24xlarge_HASH = HashingUtils::HashString("m5dn.24xlarge"); - static const int m5dn_metal_HASH = HashingUtils::HashString("m5dn.metal"); - static const int m5n_large_HASH = HashingUtils::HashString("m5n.large"); - static const int m5n_xlarge_HASH = HashingUtils::HashString("m5n.xlarge"); - static const int m5n_2xlarge_HASH = HashingUtils::HashString("m5n.2xlarge"); - static const int m5n_4xlarge_HASH = HashingUtils::HashString("m5n.4xlarge"); - static const int m5n_8xlarge_HASH = HashingUtils::HashString("m5n.8xlarge"); - static const int m5n_12xlarge_HASH = HashingUtils::HashString("m5n.12xlarge"); - static const int m5n_16xlarge_HASH = HashingUtils::HashString("m5n.16xlarge"); - static const int m5n_24xlarge_HASH = HashingUtils::HashString("m5n.24xlarge"); - static const int m5n_metal_HASH = HashingUtils::HashString("m5n.metal"); - static const int m5zn_large_HASH = HashingUtils::HashString("m5zn.large"); - static const int m5zn_xlarge_HASH = HashingUtils::HashString("m5zn.xlarge"); - static const int m5zn_2xlarge_HASH = HashingUtils::HashString("m5zn.2xlarge"); - static const int m5zn_3xlarge_HASH = HashingUtils::HashString("m5zn.3xlarge"); - static const int m5zn_6xlarge_HASH = HashingUtils::HashString("m5zn.6xlarge"); - static const int m5zn_12xlarge_HASH = HashingUtils::HashString("m5zn.12xlarge"); - static const int m5zn_metal_HASH = HashingUtils::HashString("m5zn.metal"); - static const int m6a_large_HASH = HashingUtils::HashString("m6a.large"); - static const int m6a_xlarge_HASH = HashingUtils::HashString("m6a.xlarge"); - static const int m6a_2xlarge_HASH = HashingUtils::HashString("m6a.2xlarge"); - static const int m6a_4xlarge_HASH = HashingUtils::HashString("m6a.4xlarge"); - static const int m6a_8xlarge_HASH = HashingUtils::HashString("m6a.8xlarge"); - static const int m6a_12xlarge_HASH = HashingUtils::HashString("m6a.12xlarge"); - static const int m6a_16xlarge_HASH = HashingUtils::HashString("m6a.16xlarge"); - static const int m6a_24xlarge_HASH = HashingUtils::HashString("m6a.24xlarge"); - static const int m6a_32xlarge_HASH = HashingUtils::HashString("m6a.32xlarge"); - static const int m6a_48xlarge_HASH = HashingUtils::HashString("m6a.48xlarge"); - static const int m6g_metal_HASH = HashingUtils::HashString("m6g.metal"); - static const int m6g_medium_HASH = HashingUtils::HashString("m6g.medium"); - static const int m6g_large_HASH = HashingUtils::HashString("m6g.large"); - static const int m6g_xlarge_HASH = HashingUtils::HashString("m6g.xlarge"); - static const int m6g_2xlarge_HASH = HashingUtils::HashString("m6g.2xlarge"); - static const int m6g_4xlarge_HASH = HashingUtils::HashString("m6g.4xlarge"); - static const int m6g_8xlarge_HASH = HashingUtils::HashString("m6g.8xlarge"); - static const int m6g_12xlarge_HASH = HashingUtils::HashString("m6g.12xlarge"); - static const int m6g_16xlarge_HASH = HashingUtils::HashString("m6g.16xlarge"); - static const int m6gd_metal_HASH = HashingUtils::HashString("m6gd.metal"); - static const int m6gd_medium_HASH = HashingUtils::HashString("m6gd.medium"); - static const int m6gd_large_HASH = HashingUtils::HashString("m6gd.large"); - static const int m6gd_xlarge_HASH = HashingUtils::HashString("m6gd.xlarge"); - static const int m6gd_2xlarge_HASH = HashingUtils::HashString("m6gd.2xlarge"); - static const int m6gd_4xlarge_HASH = HashingUtils::HashString("m6gd.4xlarge"); - static const int m6gd_8xlarge_HASH = HashingUtils::HashString("m6gd.8xlarge"); - static const int m6gd_12xlarge_HASH = HashingUtils::HashString("m6gd.12xlarge"); - static const int m6gd_16xlarge_HASH = HashingUtils::HashString("m6gd.16xlarge"); - static const int m6i_large_HASH = HashingUtils::HashString("m6i.large"); - static const int m6i_xlarge_HASH = HashingUtils::HashString("m6i.xlarge"); - static const int m6i_2xlarge_HASH = HashingUtils::HashString("m6i.2xlarge"); - static const int m6i_4xlarge_HASH = HashingUtils::HashString("m6i.4xlarge"); - static const int m6i_8xlarge_HASH = HashingUtils::HashString("m6i.8xlarge"); - static const int m6i_12xlarge_HASH = HashingUtils::HashString("m6i.12xlarge"); - static const int m6i_16xlarge_HASH = HashingUtils::HashString("m6i.16xlarge"); - static const int m6i_24xlarge_HASH = HashingUtils::HashString("m6i.24xlarge"); - static const int m6i_32xlarge_HASH = HashingUtils::HashString("m6i.32xlarge"); - static const int m6i_metal_HASH = HashingUtils::HashString("m6i.metal"); - static const int mac1_metal_HASH = HashingUtils::HashString("mac1.metal"); - static const int p2_xlarge_HASH = HashingUtils::HashString("p2.xlarge"); - static const int p2_8xlarge_HASH = HashingUtils::HashString("p2.8xlarge"); - static const int p2_16xlarge_HASH = HashingUtils::HashString("p2.16xlarge"); - static const int p3_2xlarge_HASH = HashingUtils::HashString("p3.2xlarge"); - static const int p3_8xlarge_HASH = HashingUtils::HashString("p3.8xlarge"); - static const int p3_16xlarge_HASH = HashingUtils::HashString("p3.16xlarge"); - static const int p3dn_24xlarge_HASH = HashingUtils::HashString("p3dn.24xlarge"); - static const int p4d_24xlarge_HASH = HashingUtils::HashString("p4d.24xlarge"); - static const int r3_large_HASH = HashingUtils::HashString("r3.large"); - static const int r3_xlarge_HASH = HashingUtils::HashString("r3.xlarge"); - static const int r3_2xlarge_HASH = HashingUtils::HashString("r3.2xlarge"); - static const int r3_4xlarge_HASH = HashingUtils::HashString("r3.4xlarge"); - static const int r3_8xlarge_HASH = HashingUtils::HashString("r3.8xlarge"); - static const int r4_large_HASH = HashingUtils::HashString("r4.large"); - static const int r4_xlarge_HASH = HashingUtils::HashString("r4.xlarge"); - static const int r4_2xlarge_HASH = HashingUtils::HashString("r4.2xlarge"); - static const int r4_4xlarge_HASH = HashingUtils::HashString("r4.4xlarge"); - static const int r4_8xlarge_HASH = HashingUtils::HashString("r4.8xlarge"); - static const int r4_16xlarge_HASH = HashingUtils::HashString("r4.16xlarge"); - static const int r5_large_HASH = HashingUtils::HashString("r5.large"); - static const int r5_xlarge_HASH = HashingUtils::HashString("r5.xlarge"); - static const int r5_2xlarge_HASH = HashingUtils::HashString("r5.2xlarge"); - static const int r5_4xlarge_HASH = HashingUtils::HashString("r5.4xlarge"); - static const int r5_8xlarge_HASH = HashingUtils::HashString("r5.8xlarge"); - static const int r5_12xlarge_HASH = HashingUtils::HashString("r5.12xlarge"); - static const int r5_16xlarge_HASH = HashingUtils::HashString("r5.16xlarge"); - static const int r5_24xlarge_HASH = HashingUtils::HashString("r5.24xlarge"); - static const int r5_metal_HASH = HashingUtils::HashString("r5.metal"); - static const int r5a_large_HASH = HashingUtils::HashString("r5a.large"); - static const int r5a_xlarge_HASH = HashingUtils::HashString("r5a.xlarge"); - static const int r5a_2xlarge_HASH = HashingUtils::HashString("r5a.2xlarge"); - static const int r5a_4xlarge_HASH = HashingUtils::HashString("r5a.4xlarge"); - static const int r5a_8xlarge_HASH = HashingUtils::HashString("r5a.8xlarge"); - static const int r5a_12xlarge_HASH = HashingUtils::HashString("r5a.12xlarge"); - static const int r5a_16xlarge_HASH = HashingUtils::HashString("r5a.16xlarge"); - static const int r5a_24xlarge_HASH = HashingUtils::HashString("r5a.24xlarge"); - static const int r5ad_large_HASH = HashingUtils::HashString("r5ad.large"); - static const int r5ad_xlarge_HASH = HashingUtils::HashString("r5ad.xlarge"); - static const int r5ad_2xlarge_HASH = HashingUtils::HashString("r5ad.2xlarge"); - static const int r5ad_4xlarge_HASH = HashingUtils::HashString("r5ad.4xlarge"); - static const int r5ad_8xlarge_HASH = HashingUtils::HashString("r5ad.8xlarge"); - static const int r5ad_12xlarge_HASH = HashingUtils::HashString("r5ad.12xlarge"); - static const int r5ad_16xlarge_HASH = HashingUtils::HashString("r5ad.16xlarge"); - static const int r5ad_24xlarge_HASH = HashingUtils::HashString("r5ad.24xlarge"); - static const int r5b_large_HASH = HashingUtils::HashString("r5b.large"); - static const int r5b_xlarge_HASH = HashingUtils::HashString("r5b.xlarge"); - static const int r5b_2xlarge_HASH = HashingUtils::HashString("r5b.2xlarge"); - static const int r5b_4xlarge_HASH = HashingUtils::HashString("r5b.4xlarge"); - static const int r5b_8xlarge_HASH = HashingUtils::HashString("r5b.8xlarge"); - static const int r5b_12xlarge_HASH = HashingUtils::HashString("r5b.12xlarge"); - static const int r5b_16xlarge_HASH = HashingUtils::HashString("r5b.16xlarge"); - static const int r5b_24xlarge_HASH = HashingUtils::HashString("r5b.24xlarge"); - static const int r5b_metal_HASH = HashingUtils::HashString("r5b.metal"); - static const int r5d_large_HASH = HashingUtils::HashString("r5d.large"); - static const int r5d_xlarge_HASH = HashingUtils::HashString("r5d.xlarge"); - static const int r5d_2xlarge_HASH = HashingUtils::HashString("r5d.2xlarge"); - static const int r5d_4xlarge_HASH = HashingUtils::HashString("r5d.4xlarge"); - static const int r5d_8xlarge_HASH = HashingUtils::HashString("r5d.8xlarge"); - static const int r5d_12xlarge_HASH = HashingUtils::HashString("r5d.12xlarge"); - static const int r5d_16xlarge_HASH = HashingUtils::HashString("r5d.16xlarge"); - static const int r5d_24xlarge_HASH = HashingUtils::HashString("r5d.24xlarge"); - static const int r5d_metal_HASH = HashingUtils::HashString("r5d.metal"); - static const int r5dn_large_HASH = HashingUtils::HashString("r5dn.large"); - static const int r5dn_xlarge_HASH = HashingUtils::HashString("r5dn.xlarge"); - static const int r5dn_2xlarge_HASH = HashingUtils::HashString("r5dn.2xlarge"); - static const int r5dn_4xlarge_HASH = HashingUtils::HashString("r5dn.4xlarge"); - static const int r5dn_8xlarge_HASH = HashingUtils::HashString("r5dn.8xlarge"); - static const int r5dn_12xlarge_HASH = HashingUtils::HashString("r5dn.12xlarge"); - static const int r5dn_16xlarge_HASH = HashingUtils::HashString("r5dn.16xlarge"); - static const int r5dn_24xlarge_HASH = HashingUtils::HashString("r5dn.24xlarge"); - static const int r5dn_metal_HASH = HashingUtils::HashString("r5dn.metal"); - static const int r5n_large_HASH = HashingUtils::HashString("r5n.large"); - static const int r5n_xlarge_HASH = HashingUtils::HashString("r5n.xlarge"); - static const int r5n_2xlarge_HASH = HashingUtils::HashString("r5n.2xlarge"); - static const int r5n_4xlarge_HASH = HashingUtils::HashString("r5n.4xlarge"); - static const int r5n_8xlarge_HASH = HashingUtils::HashString("r5n.8xlarge"); - static const int r5n_12xlarge_HASH = HashingUtils::HashString("r5n.12xlarge"); - static const int r5n_16xlarge_HASH = HashingUtils::HashString("r5n.16xlarge"); - static const int r5n_24xlarge_HASH = HashingUtils::HashString("r5n.24xlarge"); - static const int r5n_metal_HASH = HashingUtils::HashString("r5n.metal"); - static const int r6g_medium_HASH = HashingUtils::HashString("r6g.medium"); - static const int r6g_large_HASH = HashingUtils::HashString("r6g.large"); - static const int r6g_xlarge_HASH = HashingUtils::HashString("r6g.xlarge"); - static const int r6g_2xlarge_HASH = HashingUtils::HashString("r6g.2xlarge"); - static const int r6g_4xlarge_HASH = HashingUtils::HashString("r6g.4xlarge"); - static const int r6g_8xlarge_HASH = HashingUtils::HashString("r6g.8xlarge"); - static const int r6g_12xlarge_HASH = HashingUtils::HashString("r6g.12xlarge"); - static const int r6g_16xlarge_HASH = HashingUtils::HashString("r6g.16xlarge"); - static const int r6g_metal_HASH = HashingUtils::HashString("r6g.metal"); - static const int r6gd_medium_HASH = HashingUtils::HashString("r6gd.medium"); - static const int r6gd_large_HASH = HashingUtils::HashString("r6gd.large"); - static const int r6gd_xlarge_HASH = HashingUtils::HashString("r6gd.xlarge"); - static const int r6gd_2xlarge_HASH = HashingUtils::HashString("r6gd.2xlarge"); - static const int r6gd_4xlarge_HASH = HashingUtils::HashString("r6gd.4xlarge"); - static const int r6gd_8xlarge_HASH = HashingUtils::HashString("r6gd.8xlarge"); - static const int r6gd_12xlarge_HASH = HashingUtils::HashString("r6gd.12xlarge"); - static const int r6gd_16xlarge_HASH = HashingUtils::HashString("r6gd.16xlarge"); - static const int r6gd_metal_HASH = HashingUtils::HashString("r6gd.metal"); - static const int r6i_large_HASH = HashingUtils::HashString("r6i.large"); - static const int r6i_xlarge_HASH = HashingUtils::HashString("r6i.xlarge"); - static const int r6i_2xlarge_HASH = HashingUtils::HashString("r6i.2xlarge"); - static const int r6i_4xlarge_HASH = HashingUtils::HashString("r6i.4xlarge"); - static const int r6i_8xlarge_HASH = HashingUtils::HashString("r6i.8xlarge"); - static const int r6i_12xlarge_HASH = HashingUtils::HashString("r6i.12xlarge"); - static const int r6i_16xlarge_HASH = HashingUtils::HashString("r6i.16xlarge"); - static const int r6i_24xlarge_HASH = HashingUtils::HashString("r6i.24xlarge"); - static const int r6i_32xlarge_HASH = HashingUtils::HashString("r6i.32xlarge"); - static const int r6i_metal_HASH = HashingUtils::HashString("r6i.metal"); - static const int t1_micro_HASH = HashingUtils::HashString("t1.micro"); - static const int t2_nano_HASH = HashingUtils::HashString("t2.nano"); - static const int t2_micro_HASH = HashingUtils::HashString("t2.micro"); - static const int t2_small_HASH = HashingUtils::HashString("t2.small"); - static const int t2_medium_HASH = HashingUtils::HashString("t2.medium"); - static const int t2_large_HASH = HashingUtils::HashString("t2.large"); - static const int t2_xlarge_HASH = HashingUtils::HashString("t2.xlarge"); - static const int t2_2xlarge_HASH = HashingUtils::HashString("t2.2xlarge"); - static const int t3_nano_HASH = HashingUtils::HashString("t3.nano"); - static const int t3_micro_HASH = HashingUtils::HashString("t3.micro"); - static const int t3_small_HASH = HashingUtils::HashString("t3.small"); - static const int t3_medium_HASH = HashingUtils::HashString("t3.medium"); - static const int t3_large_HASH = HashingUtils::HashString("t3.large"); - static const int t3_xlarge_HASH = HashingUtils::HashString("t3.xlarge"); - static const int t3_2xlarge_HASH = HashingUtils::HashString("t3.2xlarge"); - static const int t3a_nano_HASH = HashingUtils::HashString("t3a.nano"); - static const int t3a_micro_HASH = HashingUtils::HashString("t3a.micro"); - static const int t3a_small_HASH = HashingUtils::HashString("t3a.small"); - static const int t3a_medium_HASH = HashingUtils::HashString("t3a.medium"); - static const int t3a_large_HASH = HashingUtils::HashString("t3a.large"); - static const int t3a_xlarge_HASH = HashingUtils::HashString("t3a.xlarge"); - static const int t3a_2xlarge_HASH = HashingUtils::HashString("t3a.2xlarge"); - static const int t4g_nano_HASH = HashingUtils::HashString("t4g.nano"); - static const int t4g_micro_HASH = HashingUtils::HashString("t4g.micro"); - static const int t4g_small_HASH = HashingUtils::HashString("t4g.small"); - static const int t4g_medium_HASH = HashingUtils::HashString("t4g.medium"); - static const int t4g_large_HASH = HashingUtils::HashString("t4g.large"); - static const int t4g_xlarge_HASH = HashingUtils::HashString("t4g.xlarge"); - static const int t4g_2xlarge_HASH = HashingUtils::HashString("t4g.2xlarge"); - static const int u_6tb1_56xlarge_HASH = HashingUtils::HashString("u-6tb1.56xlarge"); - static const int u_6tb1_112xlarge_HASH = HashingUtils::HashString("u-6tb1.112xlarge"); - static const int u_9tb1_112xlarge_HASH = HashingUtils::HashString("u-9tb1.112xlarge"); - static const int u_12tb1_112xlarge_HASH = HashingUtils::HashString("u-12tb1.112xlarge"); - static const int u_6tb1_metal_HASH = HashingUtils::HashString("u-6tb1.metal"); - static const int u_9tb1_metal_HASH = HashingUtils::HashString("u-9tb1.metal"); - static const int u_12tb1_metal_HASH = HashingUtils::HashString("u-12tb1.metal"); - static const int u_18tb1_metal_HASH = HashingUtils::HashString("u-18tb1.metal"); - static const int u_24tb1_metal_HASH = HashingUtils::HashString("u-24tb1.metal"); - static const int vt1_3xlarge_HASH = HashingUtils::HashString("vt1.3xlarge"); - static const int vt1_6xlarge_HASH = HashingUtils::HashString("vt1.6xlarge"); - static const int vt1_24xlarge_HASH = HashingUtils::HashString("vt1.24xlarge"); - static const int x1_16xlarge_HASH = HashingUtils::HashString("x1.16xlarge"); - static const int x1_32xlarge_HASH = HashingUtils::HashString("x1.32xlarge"); - static const int x1e_xlarge_HASH = HashingUtils::HashString("x1e.xlarge"); - static const int x1e_2xlarge_HASH = HashingUtils::HashString("x1e.2xlarge"); - static const int x1e_4xlarge_HASH = HashingUtils::HashString("x1e.4xlarge"); - static const int x1e_8xlarge_HASH = HashingUtils::HashString("x1e.8xlarge"); - static const int x1e_16xlarge_HASH = HashingUtils::HashString("x1e.16xlarge"); - static const int x1e_32xlarge_HASH = HashingUtils::HashString("x1e.32xlarge"); - static const int x2iezn_2xlarge_HASH = HashingUtils::HashString("x2iezn.2xlarge"); - static const int x2iezn_4xlarge_HASH = HashingUtils::HashString("x2iezn.4xlarge"); - static const int x2iezn_6xlarge_HASH = HashingUtils::HashString("x2iezn.6xlarge"); - static const int x2iezn_8xlarge_HASH = HashingUtils::HashString("x2iezn.8xlarge"); - static const int x2iezn_12xlarge_HASH = HashingUtils::HashString("x2iezn.12xlarge"); - static const int x2iezn_metal_HASH = HashingUtils::HashString("x2iezn.metal"); - static const int x2gd_medium_HASH = HashingUtils::HashString("x2gd.medium"); - static const int x2gd_large_HASH = HashingUtils::HashString("x2gd.large"); - static const int x2gd_xlarge_HASH = HashingUtils::HashString("x2gd.xlarge"); - static const int x2gd_2xlarge_HASH = HashingUtils::HashString("x2gd.2xlarge"); - static const int x2gd_4xlarge_HASH = HashingUtils::HashString("x2gd.4xlarge"); - static const int x2gd_8xlarge_HASH = HashingUtils::HashString("x2gd.8xlarge"); - static const int x2gd_12xlarge_HASH = HashingUtils::HashString("x2gd.12xlarge"); - static const int x2gd_16xlarge_HASH = HashingUtils::HashString("x2gd.16xlarge"); - static const int x2gd_metal_HASH = HashingUtils::HashString("x2gd.metal"); - static const int z1d_large_HASH = HashingUtils::HashString("z1d.large"); - static const int z1d_xlarge_HASH = HashingUtils::HashString("z1d.xlarge"); - static const int z1d_2xlarge_HASH = HashingUtils::HashString("z1d.2xlarge"); - static const int z1d_3xlarge_HASH = HashingUtils::HashString("z1d.3xlarge"); - static const int z1d_6xlarge_HASH = HashingUtils::HashString("z1d.6xlarge"); - static const int z1d_12xlarge_HASH = HashingUtils::HashString("z1d.12xlarge"); - static const int z1d_metal_HASH = HashingUtils::HashString("z1d.metal"); - static const int x2idn_16xlarge_HASH = HashingUtils::HashString("x2idn.16xlarge"); - static const int x2idn_24xlarge_HASH = HashingUtils::HashString("x2idn.24xlarge"); - static const int x2idn_32xlarge_HASH = HashingUtils::HashString("x2idn.32xlarge"); - static const int x2iedn_xlarge_HASH = HashingUtils::HashString("x2iedn.xlarge"); - static const int x2iedn_2xlarge_HASH = HashingUtils::HashString("x2iedn.2xlarge"); - static const int x2iedn_4xlarge_HASH = HashingUtils::HashString("x2iedn.4xlarge"); - static const int x2iedn_8xlarge_HASH = HashingUtils::HashString("x2iedn.8xlarge"); - static const int x2iedn_16xlarge_HASH = HashingUtils::HashString("x2iedn.16xlarge"); - static const int x2iedn_24xlarge_HASH = HashingUtils::HashString("x2iedn.24xlarge"); - static const int x2iedn_32xlarge_HASH = HashingUtils::HashString("x2iedn.32xlarge"); - static const int c6a_large_HASH = HashingUtils::HashString("c6a.large"); - static const int c6a_xlarge_HASH = HashingUtils::HashString("c6a.xlarge"); - static const int c6a_2xlarge_HASH = HashingUtils::HashString("c6a.2xlarge"); - static const int c6a_4xlarge_HASH = HashingUtils::HashString("c6a.4xlarge"); - static const int c6a_8xlarge_HASH = HashingUtils::HashString("c6a.8xlarge"); - static const int c6a_12xlarge_HASH = HashingUtils::HashString("c6a.12xlarge"); - static const int c6a_16xlarge_HASH = HashingUtils::HashString("c6a.16xlarge"); - static const int c6a_24xlarge_HASH = HashingUtils::HashString("c6a.24xlarge"); - static const int c6a_32xlarge_HASH = HashingUtils::HashString("c6a.32xlarge"); - static const int c6a_48xlarge_HASH = HashingUtils::HashString("c6a.48xlarge"); - static const int c6a_metal_HASH = HashingUtils::HashString("c6a.metal"); - static const int m6a_metal_HASH = HashingUtils::HashString("m6a.metal"); - static const int i4i_large_HASH = HashingUtils::HashString("i4i.large"); - static const int i4i_xlarge_HASH = HashingUtils::HashString("i4i.xlarge"); - static const int i4i_2xlarge_HASH = HashingUtils::HashString("i4i.2xlarge"); - static const int i4i_4xlarge_HASH = HashingUtils::HashString("i4i.4xlarge"); - static const int i4i_8xlarge_HASH = HashingUtils::HashString("i4i.8xlarge"); - static const int i4i_16xlarge_HASH = HashingUtils::HashString("i4i.16xlarge"); - static const int i4i_32xlarge_HASH = HashingUtils::HashString("i4i.32xlarge"); - static const int i4i_metal_HASH = HashingUtils::HashString("i4i.metal"); - static const int x2idn_metal_HASH = HashingUtils::HashString("x2idn.metal"); - static const int x2iedn_metal_HASH = HashingUtils::HashString("x2iedn.metal"); - static const int c7g_medium_HASH = HashingUtils::HashString("c7g.medium"); - static const int c7g_large_HASH = HashingUtils::HashString("c7g.large"); - static const int c7g_xlarge_HASH = HashingUtils::HashString("c7g.xlarge"); - static const int c7g_2xlarge_HASH = HashingUtils::HashString("c7g.2xlarge"); - static const int c7g_4xlarge_HASH = HashingUtils::HashString("c7g.4xlarge"); - static const int c7g_8xlarge_HASH = HashingUtils::HashString("c7g.8xlarge"); - static const int c7g_12xlarge_HASH = HashingUtils::HashString("c7g.12xlarge"); - static const int c7g_16xlarge_HASH = HashingUtils::HashString("c7g.16xlarge"); - static const int mac2_metal_HASH = HashingUtils::HashString("mac2.metal"); - static const int c6id_large_HASH = HashingUtils::HashString("c6id.large"); - static const int c6id_xlarge_HASH = HashingUtils::HashString("c6id.xlarge"); - static const int c6id_2xlarge_HASH = HashingUtils::HashString("c6id.2xlarge"); - static const int c6id_4xlarge_HASH = HashingUtils::HashString("c6id.4xlarge"); - static const int c6id_8xlarge_HASH = HashingUtils::HashString("c6id.8xlarge"); - static const int c6id_12xlarge_HASH = HashingUtils::HashString("c6id.12xlarge"); - static const int c6id_16xlarge_HASH = HashingUtils::HashString("c6id.16xlarge"); - static const int c6id_24xlarge_HASH = HashingUtils::HashString("c6id.24xlarge"); - static const int c6id_32xlarge_HASH = HashingUtils::HashString("c6id.32xlarge"); - static const int c6id_metal_HASH = HashingUtils::HashString("c6id.metal"); - static const int m6id_large_HASH = HashingUtils::HashString("m6id.large"); - static const int m6id_xlarge_HASH = HashingUtils::HashString("m6id.xlarge"); - static const int m6id_2xlarge_HASH = HashingUtils::HashString("m6id.2xlarge"); - static const int m6id_4xlarge_HASH = HashingUtils::HashString("m6id.4xlarge"); - static const int m6id_8xlarge_HASH = HashingUtils::HashString("m6id.8xlarge"); - static const int m6id_12xlarge_HASH = HashingUtils::HashString("m6id.12xlarge"); - static const int m6id_16xlarge_HASH = HashingUtils::HashString("m6id.16xlarge"); - static const int m6id_24xlarge_HASH = HashingUtils::HashString("m6id.24xlarge"); - static const int m6id_32xlarge_HASH = HashingUtils::HashString("m6id.32xlarge"); - static const int m6id_metal_HASH = HashingUtils::HashString("m6id.metal"); - static const int r6id_large_HASH = HashingUtils::HashString("r6id.large"); - static const int r6id_xlarge_HASH = HashingUtils::HashString("r6id.xlarge"); - static const int r6id_2xlarge_HASH = HashingUtils::HashString("r6id.2xlarge"); - static const int r6id_4xlarge_HASH = HashingUtils::HashString("r6id.4xlarge"); - static const int r6id_8xlarge_HASH = HashingUtils::HashString("r6id.8xlarge"); - static const int r6id_12xlarge_HASH = HashingUtils::HashString("r6id.12xlarge"); - static const int r6id_16xlarge_HASH = HashingUtils::HashString("r6id.16xlarge"); - static const int r6id_24xlarge_HASH = HashingUtils::HashString("r6id.24xlarge"); - static const int r6id_32xlarge_HASH = HashingUtils::HashString("r6id.32xlarge"); - static const int r6id_metal_HASH = HashingUtils::HashString("r6id.metal"); - static const int r6a_large_HASH = HashingUtils::HashString("r6a.large"); - static const int r6a_xlarge_HASH = HashingUtils::HashString("r6a.xlarge"); - static const int r6a_2xlarge_HASH = HashingUtils::HashString("r6a.2xlarge"); - static const int r6a_4xlarge_HASH = HashingUtils::HashString("r6a.4xlarge"); - static const int r6a_8xlarge_HASH = HashingUtils::HashString("r6a.8xlarge"); - static const int r6a_12xlarge_HASH = HashingUtils::HashString("r6a.12xlarge"); - static const int r6a_16xlarge_HASH = HashingUtils::HashString("r6a.16xlarge"); - static const int r6a_24xlarge_HASH = HashingUtils::HashString("r6a.24xlarge"); - static const int r6a_32xlarge_HASH = HashingUtils::HashString("r6a.32xlarge"); - static const int r6a_48xlarge_HASH = HashingUtils::HashString("r6a.48xlarge"); - static const int r6a_metal_HASH = HashingUtils::HashString("r6a.metal"); - static const int p4de_24xlarge_HASH = HashingUtils::HashString("p4de.24xlarge"); - static const int u_3tb1_56xlarge_HASH = HashingUtils::HashString("u-3tb1.56xlarge"); - static const int u_18tb1_112xlarge_HASH = HashingUtils::HashString("u-18tb1.112xlarge"); - static const int u_24tb1_112xlarge_HASH = HashingUtils::HashString("u-24tb1.112xlarge"); - static const int trn1_2xlarge_HASH = HashingUtils::HashString("trn1.2xlarge"); - static const int trn1_32xlarge_HASH = HashingUtils::HashString("trn1.32xlarge"); - static const int hpc6id_32xlarge_HASH = HashingUtils::HashString("hpc6id.32xlarge"); - static const int c6in_large_HASH = HashingUtils::HashString("c6in.large"); - static const int c6in_xlarge_HASH = HashingUtils::HashString("c6in.xlarge"); - static const int c6in_2xlarge_HASH = HashingUtils::HashString("c6in.2xlarge"); - static const int c6in_4xlarge_HASH = HashingUtils::HashString("c6in.4xlarge"); - static const int c6in_8xlarge_HASH = HashingUtils::HashString("c6in.8xlarge"); - static const int c6in_12xlarge_HASH = HashingUtils::HashString("c6in.12xlarge"); - static const int c6in_16xlarge_HASH = HashingUtils::HashString("c6in.16xlarge"); - static const int c6in_24xlarge_HASH = HashingUtils::HashString("c6in.24xlarge"); - static const int c6in_32xlarge_HASH = HashingUtils::HashString("c6in.32xlarge"); - static const int m6in_large_HASH = HashingUtils::HashString("m6in.large"); - static const int m6in_xlarge_HASH = HashingUtils::HashString("m6in.xlarge"); - static const int m6in_2xlarge_HASH = HashingUtils::HashString("m6in.2xlarge"); - static const int m6in_4xlarge_HASH = HashingUtils::HashString("m6in.4xlarge"); - static const int m6in_8xlarge_HASH = HashingUtils::HashString("m6in.8xlarge"); - static const int m6in_12xlarge_HASH = HashingUtils::HashString("m6in.12xlarge"); - static const int m6in_16xlarge_HASH = HashingUtils::HashString("m6in.16xlarge"); - static const int m6in_24xlarge_HASH = HashingUtils::HashString("m6in.24xlarge"); - static const int m6in_32xlarge_HASH = HashingUtils::HashString("m6in.32xlarge"); - static const int m6idn_large_HASH = HashingUtils::HashString("m6idn.large"); - static const int m6idn_xlarge_HASH = HashingUtils::HashString("m6idn.xlarge"); - static const int m6idn_2xlarge_HASH = HashingUtils::HashString("m6idn.2xlarge"); - static const int m6idn_4xlarge_HASH = HashingUtils::HashString("m6idn.4xlarge"); - static const int m6idn_8xlarge_HASH = HashingUtils::HashString("m6idn.8xlarge"); - static const int m6idn_12xlarge_HASH = HashingUtils::HashString("m6idn.12xlarge"); - static const int m6idn_16xlarge_HASH = HashingUtils::HashString("m6idn.16xlarge"); - static const int m6idn_24xlarge_HASH = HashingUtils::HashString("m6idn.24xlarge"); - static const int m6idn_32xlarge_HASH = HashingUtils::HashString("m6idn.32xlarge"); - static const int r6in_large_HASH = HashingUtils::HashString("r6in.large"); - static const int r6in_xlarge_HASH = HashingUtils::HashString("r6in.xlarge"); - static const int r6in_2xlarge_HASH = HashingUtils::HashString("r6in.2xlarge"); - static const int r6in_4xlarge_HASH = HashingUtils::HashString("r6in.4xlarge"); - static const int r6in_8xlarge_HASH = HashingUtils::HashString("r6in.8xlarge"); - static const int r6in_12xlarge_HASH = HashingUtils::HashString("r6in.12xlarge"); - static const int r6in_16xlarge_HASH = HashingUtils::HashString("r6in.16xlarge"); - static const int r6in_24xlarge_HASH = HashingUtils::HashString("r6in.24xlarge"); - static const int r6in_32xlarge_HASH = HashingUtils::HashString("r6in.32xlarge"); - static const int r6idn_large_HASH = HashingUtils::HashString("r6idn.large"); - static const int r6idn_xlarge_HASH = HashingUtils::HashString("r6idn.xlarge"); - static const int r6idn_2xlarge_HASH = HashingUtils::HashString("r6idn.2xlarge"); - static const int r6idn_4xlarge_HASH = HashingUtils::HashString("r6idn.4xlarge"); - static const int r6idn_8xlarge_HASH = HashingUtils::HashString("r6idn.8xlarge"); - static const int r6idn_12xlarge_HASH = HashingUtils::HashString("r6idn.12xlarge"); - static const int r6idn_16xlarge_HASH = HashingUtils::HashString("r6idn.16xlarge"); - static const int r6idn_24xlarge_HASH = HashingUtils::HashString("r6idn.24xlarge"); - static const int r6idn_32xlarge_HASH = HashingUtils::HashString("r6idn.32xlarge"); - static const int c7g_metal_HASH = HashingUtils::HashString("c7g.metal"); - static const int m7g_medium_HASH = HashingUtils::HashString("m7g.medium"); - static const int m7g_large_HASH = HashingUtils::HashString("m7g.large"); - static const int m7g_xlarge_HASH = HashingUtils::HashString("m7g.xlarge"); - static const int m7g_2xlarge_HASH = HashingUtils::HashString("m7g.2xlarge"); - static const int m7g_4xlarge_HASH = HashingUtils::HashString("m7g.4xlarge"); - static const int m7g_8xlarge_HASH = HashingUtils::HashString("m7g.8xlarge"); - static const int m7g_12xlarge_HASH = HashingUtils::HashString("m7g.12xlarge"); - static const int m7g_16xlarge_HASH = HashingUtils::HashString("m7g.16xlarge"); - static const int m7g_metal_HASH = HashingUtils::HashString("m7g.metal"); - static const int r7g_medium_HASH = HashingUtils::HashString("r7g.medium"); - static const int r7g_large_HASH = HashingUtils::HashString("r7g.large"); - static const int r7g_xlarge_HASH = HashingUtils::HashString("r7g.xlarge"); - static const int r7g_2xlarge_HASH = HashingUtils::HashString("r7g.2xlarge"); - static const int r7g_4xlarge_HASH = HashingUtils::HashString("r7g.4xlarge"); - static const int r7g_8xlarge_HASH = HashingUtils::HashString("r7g.8xlarge"); - static const int r7g_12xlarge_HASH = HashingUtils::HashString("r7g.12xlarge"); - static const int r7g_16xlarge_HASH = HashingUtils::HashString("r7g.16xlarge"); - static const int r7g_metal_HASH = HashingUtils::HashString("r7g.metal"); - static const int c6in_metal_HASH = HashingUtils::HashString("c6in.metal"); - static const int m6in_metal_HASH = HashingUtils::HashString("m6in.metal"); - static const int m6idn_metal_HASH = HashingUtils::HashString("m6idn.metal"); - static const int r6in_metal_HASH = HashingUtils::HashString("r6in.metal"); - static const int r6idn_metal_HASH = HashingUtils::HashString("r6idn.metal"); - static const int inf2_xlarge_HASH = HashingUtils::HashString("inf2.xlarge"); - static const int inf2_8xlarge_HASH = HashingUtils::HashString("inf2.8xlarge"); - static const int inf2_24xlarge_HASH = HashingUtils::HashString("inf2.24xlarge"); - static const int inf2_48xlarge_HASH = HashingUtils::HashString("inf2.48xlarge"); - static const int trn1n_32xlarge_HASH = HashingUtils::HashString("trn1n.32xlarge"); - static const int i4g_large_HASH = HashingUtils::HashString("i4g.large"); - static const int i4g_xlarge_HASH = HashingUtils::HashString("i4g.xlarge"); - static const int i4g_2xlarge_HASH = HashingUtils::HashString("i4g.2xlarge"); - static const int i4g_4xlarge_HASH = HashingUtils::HashString("i4g.4xlarge"); - static const int i4g_8xlarge_HASH = HashingUtils::HashString("i4g.8xlarge"); - static const int i4g_16xlarge_HASH = HashingUtils::HashString("i4g.16xlarge"); - static const int hpc7g_4xlarge_HASH = HashingUtils::HashString("hpc7g.4xlarge"); - static const int hpc7g_8xlarge_HASH = HashingUtils::HashString("hpc7g.8xlarge"); - static const int hpc7g_16xlarge_HASH = HashingUtils::HashString("hpc7g.16xlarge"); - static const int c7gn_medium_HASH = HashingUtils::HashString("c7gn.medium"); - static const int c7gn_large_HASH = HashingUtils::HashString("c7gn.large"); - static const int c7gn_xlarge_HASH = HashingUtils::HashString("c7gn.xlarge"); - static const int c7gn_2xlarge_HASH = HashingUtils::HashString("c7gn.2xlarge"); - static const int c7gn_4xlarge_HASH = HashingUtils::HashString("c7gn.4xlarge"); - static const int c7gn_8xlarge_HASH = HashingUtils::HashString("c7gn.8xlarge"); - static const int c7gn_12xlarge_HASH = HashingUtils::HashString("c7gn.12xlarge"); - static const int c7gn_16xlarge_HASH = HashingUtils::HashString("c7gn.16xlarge"); - static const int p5_48xlarge_HASH = HashingUtils::HashString("p5.48xlarge"); - static const int m7i_large_HASH = HashingUtils::HashString("m7i.large"); - static const int m7i_xlarge_HASH = HashingUtils::HashString("m7i.xlarge"); - static const int m7i_2xlarge_HASH = HashingUtils::HashString("m7i.2xlarge"); - static const int m7i_4xlarge_HASH = HashingUtils::HashString("m7i.4xlarge"); - static const int m7i_8xlarge_HASH = HashingUtils::HashString("m7i.8xlarge"); - static const int m7i_12xlarge_HASH = HashingUtils::HashString("m7i.12xlarge"); - static const int m7i_16xlarge_HASH = HashingUtils::HashString("m7i.16xlarge"); - static const int m7i_24xlarge_HASH = HashingUtils::HashString("m7i.24xlarge"); - static const int m7i_48xlarge_HASH = HashingUtils::HashString("m7i.48xlarge"); - static const int m7i_flex_large_HASH = HashingUtils::HashString("m7i-flex.large"); - static const int m7i_flex_xlarge_HASH = HashingUtils::HashString("m7i-flex.xlarge"); - static const int m7i_flex_2xlarge_HASH = HashingUtils::HashString("m7i-flex.2xlarge"); - static const int m7i_flex_4xlarge_HASH = HashingUtils::HashString("m7i-flex.4xlarge"); - static const int m7i_flex_8xlarge_HASH = HashingUtils::HashString("m7i-flex.8xlarge"); - static const int m7a_medium_HASH = HashingUtils::HashString("m7a.medium"); - static const int m7a_large_HASH = HashingUtils::HashString("m7a.large"); - static const int m7a_xlarge_HASH = HashingUtils::HashString("m7a.xlarge"); - static const int m7a_2xlarge_HASH = HashingUtils::HashString("m7a.2xlarge"); - static const int m7a_4xlarge_HASH = HashingUtils::HashString("m7a.4xlarge"); - static const int m7a_8xlarge_HASH = HashingUtils::HashString("m7a.8xlarge"); - static const int m7a_12xlarge_HASH = HashingUtils::HashString("m7a.12xlarge"); - static const int m7a_16xlarge_HASH = HashingUtils::HashString("m7a.16xlarge"); - static const int m7a_24xlarge_HASH = HashingUtils::HashString("m7a.24xlarge"); - static const int m7a_32xlarge_HASH = HashingUtils::HashString("m7a.32xlarge"); - static const int m7a_48xlarge_HASH = HashingUtils::HashString("m7a.48xlarge"); - static const int m7a_metal_48xl_HASH = HashingUtils::HashString("m7a.metal-48xl"); - static const int hpc7a_12xlarge_HASH = HashingUtils::HashString("hpc7a.12xlarge"); - static const int hpc7a_24xlarge_HASH = HashingUtils::HashString("hpc7a.24xlarge"); - static const int hpc7a_48xlarge_HASH = HashingUtils::HashString("hpc7a.48xlarge"); - static const int hpc7a_96xlarge_HASH = HashingUtils::HashString("hpc7a.96xlarge"); - static const int c7gd_medium_HASH = HashingUtils::HashString("c7gd.medium"); - static const int c7gd_large_HASH = HashingUtils::HashString("c7gd.large"); - static const int c7gd_xlarge_HASH = HashingUtils::HashString("c7gd.xlarge"); - static const int c7gd_2xlarge_HASH = HashingUtils::HashString("c7gd.2xlarge"); - static const int c7gd_4xlarge_HASH = HashingUtils::HashString("c7gd.4xlarge"); - static const int c7gd_8xlarge_HASH = HashingUtils::HashString("c7gd.8xlarge"); - static const int c7gd_12xlarge_HASH = HashingUtils::HashString("c7gd.12xlarge"); - static const int c7gd_16xlarge_HASH = HashingUtils::HashString("c7gd.16xlarge"); - static const int m7gd_medium_HASH = HashingUtils::HashString("m7gd.medium"); - static const int m7gd_large_HASH = HashingUtils::HashString("m7gd.large"); - static const int m7gd_xlarge_HASH = HashingUtils::HashString("m7gd.xlarge"); - static const int m7gd_2xlarge_HASH = HashingUtils::HashString("m7gd.2xlarge"); - static const int m7gd_4xlarge_HASH = HashingUtils::HashString("m7gd.4xlarge"); - static const int m7gd_8xlarge_HASH = HashingUtils::HashString("m7gd.8xlarge"); - static const int m7gd_12xlarge_HASH = HashingUtils::HashString("m7gd.12xlarge"); - static const int m7gd_16xlarge_HASH = HashingUtils::HashString("m7gd.16xlarge"); - static const int r7gd_medium_HASH = HashingUtils::HashString("r7gd.medium"); - static const int r7gd_large_HASH = HashingUtils::HashString("r7gd.large"); - static const int r7gd_xlarge_HASH = HashingUtils::HashString("r7gd.xlarge"); - static const int r7gd_2xlarge_HASH = HashingUtils::HashString("r7gd.2xlarge"); - static const int r7gd_4xlarge_HASH = HashingUtils::HashString("r7gd.4xlarge"); - static const int r7gd_8xlarge_HASH = HashingUtils::HashString("r7gd.8xlarge"); - static const int r7gd_12xlarge_HASH = HashingUtils::HashString("r7gd.12xlarge"); - static const int r7gd_16xlarge_HASH = HashingUtils::HashString("r7gd.16xlarge"); - static const int r7a_medium_HASH = HashingUtils::HashString("r7a.medium"); - static const int r7a_large_HASH = HashingUtils::HashString("r7a.large"); - static const int r7a_xlarge_HASH = HashingUtils::HashString("r7a.xlarge"); - static const int r7a_2xlarge_HASH = HashingUtils::HashString("r7a.2xlarge"); - static const int r7a_4xlarge_HASH = HashingUtils::HashString("r7a.4xlarge"); - static const int r7a_8xlarge_HASH = HashingUtils::HashString("r7a.8xlarge"); - static const int r7a_12xlarge_HASH = HashingUtils::HashString("r7a.12xlarge"); - static const int r7a_16xlarge_HASH = HashingUtils::HashString("r7a.16xlarge"); - static const int r7a_24xlarge_HASH = HashingUtils::HashString("r7a.24xlarge"); - static const int r7a_32xlarge_HASH = HashingUtils::HashString("r7a.32xlarge"); - static const int r7a_48xlarge_HASH = HashingUtils::HashString("r7a.48xlarge"); - static const int c7i_large_HASH = HashingUtils::HashString("c7i.large"); - static const int c7i_xlarge_HASH = HashingUtils::HashString("c7i.xlarge"); - static const int c7i_2xlarge_HASH = HashingUtils::HashString("c7i.2xlarge"); - static const int c7i_4xlarge_HASH = HashingUtils::HashString("c7i.4xlarge"); - static const int c7i_8xlarge_HASH = HashingUtils::HashString("c7i.8xlarge"); - static const int c7i_12xlarge_HASH = HashingUtils::HashString("c7i.12xlarge"); - static const int c7i_16xlarge_HASH = HashingUtils::HashString("c7i.16xlarge"); - static const int c7i_24xlarge_HASH = HashingUtils::HashString("c7i.24xlarge"); - static const int c7i_48xlarge_HASH = HashingUtils::HashString("c7i.48xlarge"); - static const int mac2_m2pro_metal_HASH = HashingUtils::HashString("mac2-m2pro.metal"); - static const int r7iz_large_HASH = HashingUtils::HashString("r7iz.large"); - static const int r7iz_xlarge_HASH = HashingUtils::HashString("r7iz.xlarge"); - static const int r7iz_2xlarge_HASH = HashingUtils::HashString("r7iz.2xlarge"); - static const int r7iz_4xlarge_HASH = HashingUtils::HashString("r7iz.4xlarge"); - static const int r7iz_8xlarge_HASH = HashingUtils::HashString("r7iz.8xlarge"); - static const int r7iz_12xlarge_HASH = HashingUtils::HashString("r7iz.12xlarge"); - static const int r7iz_16xlarge_HASH = HashingUtils::HashString("r7iz.16xlarge"); - static const int r7iz_32xlarge_HASH = HashingUtils::HashString("r7iz.32xlarge"); + static constexpr uint32_t a1_medium_HASH = ConstExprHashingUtils::HashString("a1.medium"); + static constexpr uint32_t a1_large_HASH = ConstExprHashingUtils::HashString("a1.large"); + static constexpr uint32_t a1_xlarge_HASH = ConstExprHashingUtils::HashString("a1.xlarge"); + static constexpr uint32_t a1_2xlarge_HASH = ConstExprHashingUtils::HashString("a1.2xlarge"); + static constexpr uint32_t a1_4xlarge_HASH = ConstExprHashingUtils::HashString("a1.4xlarge"); + static constexpr uint32_t a1_metal_HASH = ConstExprHashingUtils::HashString("a1.metal"); + static constexpr uint32_t c1_medium_HASH = ConstExprHashingUtils::HashString("c1.medium"); + static constexpr uint32_t c1_xlarge_HASH = ConstExprHashingUtils::HashString("c1.xlarge"); + static constexpr uint32_t c3_large_HASH = ConstExprHashingUtils::HashString("c3.large"); + static constexpr uint32_t c3_xlarge_HASH = ConstExprHashingUtils::HashString("c3.xlarge"); + static constexpr uint32_t c3_2xlarge_HASH = ConstExprHashingUtils::HashString("c3.2xlarge"); + static constexpr uint32_t c3_4xlarge_HASH = ConstExprHashingUtils::HashString("c3.4xlarge"); + static constexpr uint32_t c3_8xlarge_HASH = ConstExprHashingUtils::HashString("c3.8xlarge"); + static constexpr uint32_t c4_large_HASH = ConstExprHashingUtils::HashString("c4.large"); + static constexpr uint32_t c4_xlarge_HASH = ConstExprHashingUtils::HashString("c4.xlarge"); + static constexpr uint32_t c4_2xlarge_HASH = ConstExprHashingUtils::HashString("c4.2xlarge"); + static constexpr uint32_t c4_4xlarge_HASH = ConstExprHashingUtils::HashString("c4.4xlarge"); + static constexpr uint32_t c4_8xlarge_HASH = ConstExprHashingUtils::HashString("c4.8xlarge"); + static constexpr uint32_t c5_large_HASH = ConstExprHashingUtils::HashString("c5.large"); + static constexpr uint32_t c5_xlarge_HASH = ConstExprHashingUtils::HashString("c5.xlarge"); + static constexpr uint32_t c5_2xlarge_HASH = ConstExprHashingUtils::HashString("c5.2xlarge"); + static constexpr uint32_t c5_4xlarge_HASH = ConstExprHashingUtils::HashString("c5.4xlarge"); + static constexpr uint32_t c5_9xlarge_HASH = ConstExprHashingUtils::HashString("c5.9xlarge"); + static constexpr uint32_t c5_12xlarge_HASH = ConstExprHashingUtils::HashString("c5.12xlarge"); + static constexpr uint32_t c5_18xlarge_HASH = ConstExprHashingUtils::HashString("c5.18xlarge"); + static constexpr uint32_t c5_24xlarge_HASH = ConstExprHashingUtils::HashString("c5.24xlarge"); + static constexpr uint32_t c5_metal_HASH = ConstExprHashingUtils::HashString("c5.metal"); + static constexpr uint32_t c5a_large_HASH = ConstExprHashingUtils::HashString("c5a.large"); + static constexpr uint32_t c5a_xlarge_HASH = ConstExprHashingUtils::HashString("c5a.xlarge"); + static constexpr uint32_t c5a_2xlarge_HASH = ConstExprHashingUtils::HashString("c5a.2xlarge"); + static constexpr uint32_t c5a_4xlarge_HASH = ConstExprHashingUtils::HashString("c5a.4xlarge"); + static constexpr uint32_t c5a_8xlarge_HASH = ConstExprHashingUtils::HashString("c5a.8xlarge"); + static constexpr uint32_t c5a_12xlarge_HASH = ConstExprHashingUtils::HashString("c5a.12xlarge"); + static constexpr uint32_t c5a_16xlarge_HASH = ConstExprHashingUtils::HashString("c5a.16xlarge"); + static constexpr uint32_t c5a_24xlarge_HASH = ConstExprHashingUtils::HashString("c5a.24xlarge"); + static constexpr uint32_t c5ad_large_HASH = ConstExprHashingUtils::HashString("c5ad.large"); + static constexpr uint32_t c5ad_xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.xlarge"); + static constexpr uint32_t c5ad_2xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.2xlarge"); + static constexpr uint32_t c5ad_4xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.4xlarge"); + static constexpr uint32_t c5ad_8xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.8xlarge"); + static constexpr uint32_t c5ad_12xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.12xlarge"); + static constexpr uint32_t c5ad_16xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.16xlarge"); + static constexpr uint32_t c5ad_24xlarge_HASH = ConstExprHashingUtils::HashString("c5ad.24xlarge"); + static constexpr uint32_t c5d_large_HASH = ConstExprHashingUtils::HashString("c5d.large"); + static constexpr uint32_t c5d_xlarge_HASH = ConstExprHashingUtils::HashString("c5d.xlarge"); + static constexpr uint32_t c5d_2xlarge_HASH = ConstExprHashingUtils::HashString("c5d.2xlarge"); + static constexpr uint32_t c5d_4xlarge_HASH = ConstExprHashingUtils::HashString("c5d.4xlarge"); + static constexpr uint32_t c5d_9xlarge_HASH = ConstExprHashingUtils::HashString("c5d.9xlarge"); + static constexpr uint32_t c5d_12xlarge_HASH = ConstExprHashingUtils::HashString("c5d.12xlarge"); + static constexpr uint32_t c5d_18xlarge_HASH = ConstExprHashingUtils::HashString("c5d.18xlarge"); + static constexpr uint32_t c5d_24xlarge_HASH = ConstExprHashingUtils::HashString("c5d.24xlarge"); + static constexpr uint32_t c5d_metal_HASH = ConstExprHashingUtils::HashString("c5d.metal"); + static constexpr uint32_t c5n_large_HASH = ConstExprHashingUtils::HashString("c5n.large"); + static constexpr uint32_t c5n_xlarge_HASH = ConstExprHashingUtils::HashString("c5n.xlarge"); + static constexpr uint32_t c5n_2xlarge_HASH = ConstExprHashingUtils::HashString("c5n.2xlarge"); + static constexpr uint32_t c5n_4xlarge_HASH = ConstExprHashingUtils::HashString("c5n.4xlarge"); + static constexpr uint32_t c5n_9xlarge_HASH = ConstExprHashingUtils::HashString("c5n.9xlarge"); + static constexpr uint32_t c5n_18xlarge_HASH = ConstExprHashingUtils::HashString("c5n.18xlarge"); + static constexpr uint32_t c5n_metal_HASH = ConstExprHashingUtils::HashString("c5n.metal"); + static constexpr uint32_t c6g_medium_HASH = ConstExprHashingUtils::HashString("c6g.medium"); + static constexpr uint32_t c6g_large_HASH = ConstExprHashingUtils::HashString("c6g.large"); + static constexpr uint32_t c6g_xlarge_HASH = ConstExprHashingUtils::HashString("c6g.xlarge"); + static constexpr uint32_t c6g_2xlarge_HASH = ConstExprHashingUtils::HashString("c6g.2xlarge"); + static constexpr uint32_t c6g_4xlarge_HASH = ConstExprHashingUtils::HashString("c6g.4xlarge"); + static constexpr uint32_t c6g_8xlarge_HASH = ConstExprHashingUtils::HashString("c6g.8xlarge"); + static constexpr uint32_t c6g_12xlarge_HASH = ConstExprHashingUtils::HashString("c6g.12xlarge"); + static constexpr uint32_t c6g_16xlarge_HASH = ConstExprHashingUtils::HashString("c6g.16xlarge"); + static constexpr uint32_t c6g_metal_HASH = ConstExprHashingUtils::HashString("c6g.metal"); + static constexpr uint32_t c6gd_medium_HASH = ConstExprHashingUtils::HashString("c6gd.medium"); + static constexpr uint32_t c6gd_large_HASH = ConstExprHashingUtils::HashString("c6gd.large"); + static constexpr uint32_t c6gd_xlarge_HASH = ConstExprHashingUtils::HashString("c6gd.xlarge"); + static constexpr uint32_t c6gd_2xlarge_HASH = ConstExprHashingUtils::HashString("c6gd.2xlarge"); + static constexpr uint32_t c6gd_4xlarge_HASH = ConstExprHashingUtils::HashString("c6gd.4xlarge"); + static constexpr uint32_t c6gd_8xlarge_HASH = ConstExprHashingUtils::HashString("c6gd.8xlarge"); + static constexpr uint32_t c6gd_12xlarge_HASH = ConstExprHashingUtils::HashString("c6gd.12xlarge"); + static constexpr uint32_t c6gd_16xlarge_HASH = ConstExprHashingUtils::HashString("c6gd.16xlarge"); + static constexpr uint32_t c6gd_metal_HASH = ConstExprHashingUtils::HashString("c6gd.metal"); + static constexpr uint32_t c6gn_medium_HASH = ConstExprHashingUtils::HashString("c6gn.medium"); + static constexpr uint32_t c6gn_large_HASH = ConstExprHashingUtils::HashString("c6gn.large"); + static constexpr uint32_t c6gn_xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.xlarge"); + static constexpr uint32_t c6gn_2xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.2xlarge"); + static constexpr uint32_t c6gn_4xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.4xlarge"); + static constexpr uint32_t c6gn_8xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.8xlarge"); + static constexpr uint32_t c6gn_12xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.12xlarge"); + static constexpr uint32_t c6gn_16xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.16xlarge"); + static constexpr uint32_t c6i_large_HASH = ConstExprHashingUtils::HashString("c6i.large"); + static constexpr uint32_t c6i_xlarge_HASH = ConstExprHashingUtils::HashString("c6i.xlarge"); + static constexpr uint32_t c6i_2xlarge_HASH = ConstExprHashingUtils::HashString("c6i.2xlarge"); + static constexpr uint32_t c6i_4xlarge_HASH = ConstExprHashingUtils::HashString("c6i.4xlarge"); + static constexpr uint32_t c6i_8xlarge_HASH = ConstExprHashingUtils::HashString("c6i.8xlarge"); + static constexpr uint32_t c6i_12xlarge_HASH = ConstExprHashingUtils::HashString("c6i.12xlarge"); + static constexpr uint32_t c6i_16xlarge_HASH = ConstExprHashingUtils::HashString("c6i.16xlarge"); + static constexpr uint32_t c6i_24xlarge_HASH = ConstExprHashingUtils::HashString("c6i.24xlarge"); + static constexpr uint32_t c6i_32xlarge_HASH = ConstExprHashingUtils::HashString("c6i.32xlarge"); + static constexpr uint32_t c6i_metal_HASH = ConstExprHashingUtils::HashString("c6i.metal"); + static constexpr uint32_t cc1_4xlarge_HASH = ConstExprHashingUtils::HashString("cc1.4xlarge"); + static constexpr uint32_t cc2_8xlarge_HASH = ConstExprHashingUtils::HashString("cc2.8xlarge"); + static constexpr uint32_t cg1_4xlarge_HASH = ConstExprHashingUtils::HashString("cg1.4xlarge"); + static constexpr uint32_t cr1_8xlarge_HASH = ConstExprHashingUtils::HashString("cr1.8xlarge"); + static constexpr uint32_t d2_xlarge_HASH = ConstExprHashingUtils::HashString("d2.xlarge"); + static constexpr uint32_t d2_2xlarge_HASH = ConstExprHashingUtils::HashString("d2.2xlarge"); + static constexpr uint32_t d2_4xlarge_HASH = ConstExprHashingUtils::HashString("d2.4xlarge"); + static constexpr uint32_t d2_8xlarge_HASH = ConstExprHashingUtils::HashString("d2.8xlarge"); + static constexpr uint32_t d3_xlarge_HASH = ConstExprHashingUtils::HashString("d3.xlarge"); + static constexpr uint32_t d3_2xlarge_HASH = ConstExprHashingUtils::HashString("d3.2xlarge"); + static constexpr uint32_t d3_4xlarge_HASH = ConstExprHashingUtils::HashString("d3.4xlarge"); + static constexpr uint32_t d3_8xlarge_HASH = ConstExprHashingUtils::HashString("d3.8xlarge"); + static constexpr uint32_t d3en_xlarge_HASH = ConstExprHashingUtils::HashString("d3en.xlarge"); + static constexpr uint32_t d3en_2xlarge_HASH = ConstExprHashingUtils::HashString("d3en.2xlarge"); + static constexpr uint32_t d3en_4xlarge_HASH = ConstExprHashingUtils::HashString("d3en.4xlarge"); + static constexpr uint32_t d3en_6xlarge_HASH = ConstExprHashingUtils::HashString("d3en.6xlarge"); + static constexpr uint32_t d3en_8xlarge_HASH = ConstExprHashingUtils::HashString("d3en.8xlarge"); + static constexpr uint32_t d3en_12xlarge_HASH = ConstExprHashingUtils::HashString("d3en.12xlarge"); + static constexpr uint32_t dl1_24xlarge_HASH = ConstExprHashingUtils::HashString("dl1.24xlarge"); + static constexpr uint32_t f1_2xlarge_HASH = ConstExprHashingUtils::HashString("f1.2xlarge"); + static constexpr uint32_t f1_4xlarge_HASH = ConstExprHashingUtils::HashString("f1.4xlarge"); + static constexpr uint32_t f1_16xlarge_HASH = ConstExprHashingUtils::HashString("f1.16xlarge"); + static constexpr uint32_t g2_2xlarge_HASH = ConstExprHashingUtils::HashString("g2.2xlarge"); + static constexpr uint32_t g2_8xlarge_HASH = ConstExprHashingUtils::HashString("g2.8xlarge"); + static constexpr uint32_t g3_4xlarge_HASH = ConstExprHashingUtils::HashString("g3.4xlarge"); + static constexpr uint32_t g3_8xlarge_HASH = ConstExprHashingUtils::HashString("g3.8xlarge"); + static constexpr uint32_t g3_16xlarge_HASH = ConstExprHashingUtils::HashString("g3.16xlarge"); + static constexpr uint32_t g3s_xlarge_HASH = ConstExprHashingUtils::HashString("g3s.xlarge"); + static constexpr uint32_t g4ad_xlarge_HASH = ConstExprHashingUtils::HashString("g4ad.xlarge"); + static constexpr uint32_t g4ad_2xlarge_HASH = ConstExprHashingUtils::HashString("g4ad.2xlarge"); + static constexpr uint32_t g4ad_4xlarge_HASH = ConstExprHashingUtils::HashString("g4ad.4xlarge"); + static constexpr uint32_t g4ad_8xlarge_HASH = ConstExprHashingUtils::HashString("g4ad.8xlarge"); + static constexpr uint32_t g4ad_16xlarge_HASH = ConstExprHashingUtils::HashString("g4ad.16xlarge"); + static constexpr uint32_t g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.xlarge"); + static constexpr uint32_t g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.2xlarge"); + static constexpr uint32_t g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.4xlarge"); + static constexpr uint32_t g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.8xlarge"); + static constexpr uint32_t g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.12xlarge"); + static constexpr uint32_t g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.16xlarge"); + static constexpr uint32_t g4dn_metal_HASH = ConstExprHashingUtils::HashString("g4dn.metal"); + static constexpr uint32_t g5_xlarge_HASH = ConstExprHashingUtils::HashString("g5.xlarge"); + static constexpr uint32_t g5_2xlarge_HASH = ConstExprHashingUtils::HashString("g5.2xlarge"); + static constexpr uint32_t g5_4xlarge_HASH = ConstExprHashingUtils::HashString("g5.4xlarge"); + static constexpr uint32_t g5_8xlarge_HASH = ConstExprHashingUtils::HashString("g5.8xlarge"); + static constexpr uint32_t g5_12xlarge_HASH = ConstExprHashingUtils::HashString("g5.12xlarge"); + static constexpr uint32_t g5_16xlarge_HASH = ConstExprHashingUtils::HashString("g5.16xlarge"); + static constexpr uint32_t g5_24xlarge_HASH = ConstExprHashingUtils::HashString("g5.24xlarge"); + static constexpr uint32_t g5_48xlarge_HASH = ConstExprHashingUtils::HashString("g5.48xlarge"); + static constexpr uint32_t g5g_xlarge_HASH = ConstExprHashingUtils::HashString("g5g.xlarge"); + static constexpr uint32_t g5g_2xlarge_HASH = ConstExprHashingUtils::HashString("g5g.2xlarge"); + static constexpr uint32_t g5g_4xlarge_HASH = ConstExprHashingUtils::HashString("g5g.4xlarge"); + static constexpr uint32_t g5g_8xlarge_HASH = ConstExprHashingUtils::HashString("g5g.8xlarge"); + static constexpr uint32_t g5g_16xlarge_HASH = ConstExprHashingUtils::HashString("g5g.16xlarge"); + static constexpr uint32_t g5g_metal_HASH = ConstExprHashingUtils::HashString("g5g.metal"); + static constexpr uint32_t hi1_4xlarge_HASH = ConstExprHashingUtils::HashString("hi1.4xlarge"); + static constexpr uint32_t hpc6a_48xlarge_HASH = ConstExprHashingUtils::HashString("hpc6a.48xlarge"); + static constexpr uint32_t hs1_8xlarge_HASH = ConstExprHashingUtils::HashString("hs1.8xlarge"); + static constexpr uint32_t h1_2xlarge_HASH = ConstExprHashingUtils::HashString("h1.2xlarge"); + static constexpr uint32_t h1_4xlarge_HASH = ConstExprHashingUtils::HashString("h1.4xlarge"); + static constexpr uint32_t h1_8xlarge_HASH = ConstExprHashingUtils::HashString("h1.8xlarge"); + static constexpr uint32_t h1_16xlarge_HASH = ConstExprHashingUtils::HashString("h1.16xlarge"); + static constexpr uint32_t i2_xlarge_HASH = ConstExprHashingUtils::HashString("i2.xlarge"); + static constexpr uint32_t i2_2xlarge_HASH = ConstExprHashingUtils::HashString("i2.2xlarge"); + static constexpr uint32_t i2_4xlarge_HASH = ConstExprHashingUtils::HashString("i2.4xlarge"); + static constexpr uint32_t i2_8xlarge_HASH = ConstExprHashingUtils::HashString("i2.8xlarge"); + static constexpr uint32_t i3_large_HASH = ConstExprHashingUtils::HashString("i3.large"); + static constexpr uint32_t i3_xlarge_HASH = ConstExprHashingUtils::HashString("i3.xlarge"); + static constexpr uint32_t i3_2xlarge_HASH = ConstExprHashingUtils::HashString("i3.2xlarge"); + static constexpr uint32_t i3_4xlarge_HASH = ConstExprHashingUtils::HashString("i3.4xlarge"); + static constexpr uint32_t i3_8xlarge_HASH = ConstExprHashingUtils::HashString("i3.8xlarge"); + static constexpr uint32_t i3_16xlarge_HASH = ConstExprHashingUtils::HashString("i3.16xlarge"); + static constexpr uint32_t i3_metal_HASH = ConstExprHashingUtils::HashString("i3.metal"); + static constexpr uint32_t i3en_large_HASH = ConstExprHashingUtils::HashString("i3en.large"); + static constexpr uint32_t i3en_xlarge_HASH = ConstExprHashingUtils::HashString("i3en.xlarge"); + static constexpr uint32_t i3en_2xlarge_HASH = ConstExprHashingUtils::HashString("i3en.2xlarge"); + static constexpr uint32_t i3en_3xlarge_HASH = ConstExprHashingUtils::HashString("i3en.3xlarge"); + static constexpr uint32_t i3en_6xlarge_HASH = ConstExprHashingUtils::HashString("i3en.6xlarge"); + static constexpr uint32_t i3en_12xlarge_HASH = ConstExprHashingUtils::HashString("i3en.12xlarge"); + static constexpr uint32_t i3en_24xlarge_HASH = ConstExprHashingUtils::HashString("i3en.24xlarge"); + static constexpr uint32_t i3en_metal_HASH = ConstExprHashingUtils::HashString("i3en.metal"); + static constexpr uint32_t im4gn_large_HASH = ConstExprHashingUtils::HashString("im4gn.large"); + static constexpr uint32_t im4gn_xlarge_HASH = ConstExprHashingUtils::HashString("im4gn.xlarge"); + static constexpr uint32_t im4gn_2xlarge_HASH = ConstExprHashingUtils::HashString("im4gn.2xlarge"); + static constexpr uint32_t im4gn_4xlarge_HASH = ConstExprHashingUtils::HashString("im4gn.4xlarge"); + static constexpr uint32_t im4gn_8xlarge_HASH = ConstExprHashingUtils::HashString("im4gn.8xlarge"); + static constexpr uint32_t im4gn_16xlarge_HASH = ConstExprHashingUtils::HashString("im4gn.16xlarge"); + static constexpr uint32_t inf1_xlarge_HASH = ConstExprHashingUtils::HashString("inf1.xlarge"); + static constexpr uint32_t inf1_2xlarge_HASH = ConstExprHashingUtils::HashString("inf1.2xlarge"); + static constexpr uint32_t inf1_6xlarge_HASH = ConstExprHashingUtils::HashString("inf1.6xlarge"); + static constexpr uint32_t inf1_24xlarge_HASH = ConstExprHashingUtils::HashString("inf1.24xlarge"); + static constexpr uint32_t is4gen_medium_HASH = ConstExprHashingUtils::HashString("is4gen.medium"); + static constexpr uint32_t is4gen_large_HASH = ConstExprHashingUtils::HashString("is4gen.large"); + static constexpr uint32_t is4gen_xlarge_HASH = ConstExprHashingUtils::HashString("is4gen.xlarge"); + static constexpr uint32_t is4gen_2xlarge_HASH = ConstExprHashingUtils::HashString("is4gen.2xlarge"); + static constexpr uint32_t is4gen_4xlarge_HASH = ConstExprHashingUtils::HashString("is4gen.4xlarge"); + static constexpr uint32_t is4gen_8xlarge_HASH = ConstExprHashingUtils::HashString("is4gen.8xlarge"); + static constexpr uint32_t m1_small_HASH = ConstExprHashingUtils::HashString("m1.small"); + static constexpr uint32_t m1_medium_HASH = ConstExprHashingUtils::HashString("m1.medium"); + static constexpr uint32_t m1_large_HASH = ConstExprHashingUtils::HashString("m1.large"); + static constexpr uint32_t m1_xlarge_HASH = ConstExprHashingUtils::HashString("m1.xlarge"); + static constexpr uint32_t m2_xlarge_HASH = ConstExprHashingUtils::HashString("m2.xlarge"); + static constexpr uint32_t m2_2xlarge_HASH = ConstExprHashingUtils::HashString("m2.2xlarge"); + static constexpr uint32_t m2_4xlarge_HASH = ConstExprHashingUtils::HashString("m2.4xlarge"); + static constexpr uint32_t m3_medium_HASH = ConstExprHashingUtils::HashString("m3.medium"); + static constexpr uint32_t m3_large_HASH = ConstExprHashingUtils::HashString("m3.large"); + static constexpr uint32_t m3_xlarge_HASH = ConstExprHashingUtils::HashString("m3.xlarge"); + static constexpr uint32_t m3_2xlarge_HASH = ConstExprHashingUtils::HashString("m3.2xlarge"); + static constexpr uint32_t m4_large_HASH = ConstExprHashingUtils::HashString("m4.large"); + static constexpr uint32_t m4_xlarge_HASH = ConstExprHashingUtils::HashString("m4.xlarge"); + static constexpr uint32_t m4_2xlarge_HASH = ConstExprHashingUtils::HashString("m4.2xlarge"); + static constexpr uint32_t m4_4xlarge_HASH = ConstExprHashingUtils::HashString("m4.4xlarge"); + static constexpr uint32_t m4_10xlarge_HASH = ConstExprHashingUtils::HashString("m4.10xlarge"); + static constexpr uint32_t m4_16xlarge_HASH = ConstExprHashingUtils::HashString("m4.16xlarge"); + static constexpr uint32_t m5_large_HASH = ConstExprHashingUtils::HashString("m5.large"); + static constexpr uint32_t m5_xlarge_HASH = ConstExprHashingUtils::HashString("m5.xlarge"); + static constexpr uint32_t m5_2xlarge_HASH = ConstExprHashingUtils::HashString("m5.2xlarge"); + static constexpr uint32_t m5_4xlarge_HASH = ConstExprHashingUtils::HashString("m5.4xlarge"); + static constexpr uint32_t m5_8xlarge_HASH = ConstExprHashingUtils::HashString("m5.8xlarge"); + static constexpr uint32_t m5_12xlarge_HASH = ConstExprHashingUtils::HashString("m5.12xlarge"); + static constexpr uint32_t m5_16xlarge_HASH = ConstExprHashingUtils::HashString("m5.16xlarge"); + static constexpr uint32_t m5_24xlarge_HASH = ConstExprHashingUtils::HashString("m5.24xlarge"); + static constexpr uint32_t m5_metal_HASH = ConstExprHashingUtils::HashString("m5.metal"); + static constexpr uint32_t m5a_large_HASH = ConstExprHashingUtils::HashString("m5a.large"); + static constexpr uint32_t m5a_xlarge_HASH = ConstExprHashingUtils::HashString("m5a.xlarge"); + static constexpr uint32_t m5a_2xlarge_HASH = ConstExprHashingUtils::HashString("m5a.2xlarge"); + static constexpr uint32_t m5a_4xlarge_HASH = ConstExprHashingUtils::HashString("m5a.4xlarge"); + static constexpr uint32_t m5a_8xlarge_HASH = ConstExprHashingUtils::HashString("m5a.8xlarge"); + static constexpr uint32_t m5a_12xlarge_HASH = ConstExprHashingUtils::HashString("m5a.12xlarge"); + static constexpr uint32_t m5a_16xlarge_HASH = ConstExprHashingUtils::HashString("m5a.16xlarge"); + static constexpr uint32_t m5a_24xlarge_HASH = ConstExprHashingUtils::HashString("m5a.24xlarge"); + static constexpr uint32_t m5ad_large_HASH = ConstExprHashingUtils::HashString("m5ad.large"); + static constexpr uint32_t m5ad_xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.xlarge"); + static constexpr uint32_t m5ad_2xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.2xlarge"); + static constexpr uint32_t m5ad_4xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.4xlarge"); + static constexpr uint32_t m5ad_8xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.8xlarge"); + static constexpr uint32_t m5ad_12xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.12xlarge"); + static constexpr uint32_t m5ad_16xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.16xlarge"); + static constexpr uint32_t m5ad_24xlarge_HASH = ConstExprHashingUtils::HashString("m5ad.24xlarge"); + static constexpr uint32_t m5d_large_HASH = ConstExprHashingUtils::HashString("m5d.large"); + static constexpr uint32_t m5d_xlarge_HASH = ConstExprHashingUtils::HashString("m5d.xlarge"); + static constexpr uint32_t m5d_2xlarge_HASH = ConstExprHashingUtils::HashString("m5d.2xlarge"); + static constexpr uint32_t m5d_4xlarge_HASH = ConstExprHashingUtils::HashString("m5d.4xlarge"); + static constexpr uint32_t m5d_8xlarge_HASH = ConstExprHashingUtils::HashString("m5d.8xlarge"); + static constexpr uint32_t m5d_12xlarge_HASH = ConstExprHashingUtils::HashString("m5d.12xlarge"); + static constexpr uint32_t m5d_16xlarge_HASH = ConstExprHashingUtils::HashString("m5d.16xlarge"); + static constexpr uint32_t m5d_24xlarge_HASH = ConstExprHashingUtils::HashString("m5d.24xlarge"); + static constexpr uint32_t m5d_metal_HASH = ConstExprHashingUtils::HashString("m5d.metal"); + static constexpr uint32_t m5dn_large_HASH = ConstExprHashingUtils::HashString("m5dn.large"); + static constexpr uint32_t m5dn_xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.xlarge"); + static constexpr uint32_t m5dn_2xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.2xlarge"); + static constexpr uint32_t m5dn_4xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.4xlarge"); + static constexpr uint32_t m5dn_8xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.8xlarge"); + static constexpr uint32_t m5dn_12xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.12xlarge"); + static constexpr uint32_t m5dn_16xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.16xlarge"); + static constexpr uint32_t m5dn_24xlarge_HASH = ConstExprHashingUtils::HashString("m5dn.24xlarge"); + static constexpr uint32_t m5dn_metal_HASH = ConstExprHashingUtils::HashString("m5dn.metal"); + static constexpr uint32_t m5n_large_HASH = ConstExprHashingUtils::HashString("m5n.large"); + static constexpr uint32_t m5n_xlarge_HASH = ConstExprHashingUtils::HashString("m5n.xlarge"); + static constexpr uint32_t m5n_2xlarge_HASH = ConstExprHashingUtils::HashString("m5n.2xlarge"); + static constexpr uint32_t m5n_4xlarge_HASH = ConstExprHashingUtils::HashString("m5n.4xlarge"); + static constexpr uint32_t m5n_8xlarge_HASH = ConstExprHashingUtils::HashString("m5n.8xlarge"); + static constexpr uint32_t m5n_12xlarge_HASH = ConstExprHashingUtils::HashString("m5n.12xlarge"); + static constexpr uint32_t m5n_16xlarge_HASH = ConstExprHashingUtils::HashString("m5n.16xlarge"); + static constexpr uint32_t m5n_24xlarge_HASH = ConstExprHashingUtils::HashString("m5n.24xlarge"); + static constexpr uint32_t m5n_metal_HASH = ConstExprHashingUtils::HashString("m5n.metal"); + static constexpr uint32_t m5zn_large_HASH = ConstExprHashingUtils::HashString("m5zn.large"); + static constexpr uint32_t m5zn_xlarge_HASH = ConstExprHashingUtils::HashString("m5zn.xlarge"); + static constexpr uint32_t m5zn_2xlarge_HASH = ConstExprHashingUtils::HashString("m5zn.2xlarge"); + static constexpr uint32_t m5zn_3xlarge_HASH = ConstExprHashingUtils::HashString("m5zn.3xlarge"); + static constexpr uint32_t m5zn_6xlarge_HASH = ConstExprHashingUtils::HashString("m5zn.6xlarge"); + static constexpr uint32_t m5zn_12xlarge_HASH = ConstExprHashingUtils::HashString("m5zn.12xlarge"); + static constexpr uint32_t m5zn_metal_HASH = ConstExprHashingUtils::HashString("m5zn.metal"); + static constexpr uint32_t m6a_large_HASH = ConstExprHashingUtils::HashString("m6a.large"); + static constexpr uint32_t m6a_xlarge_HASH = ConstExprHashingUtils::HashString("m6a.xlarge"); + static constexpr uint32_t m6a_2xlarge_HASH = ConstExprHashingUtils::HashString("m6a.2xlarge"); + static constexpr uint32_t m6a_4xlarge_HASH = ConstExprHashingUtils::HashString("m6a.4xlarge"); + static constexpr uint32_t m6a_8xlarge_HASH = ConstExprHashingUtils::HashString("m6a.8xlarge"); + static constexpr uint32_t m6a_12xlarge_HASH = ConstExprHashingUtils::HashString("m6a.12xlarge"); + static constexpr uint32_t m6a_16xlarge_HASH = ConstExprHashingUtils::HashString("m6a.16xlarge"); + static constexpr uint32_t m6a_24xlarge_HASH = ConstExprHashingUtils::HashString("m6a.24xlarge"); + static constexpr uint32_t m6a_32xlarge_HASH = ConstExprHashingUtils::HashString("m6a.32xlarge"); + static constexpr uint32_t m6a_48xlarge_HASH = ConstExprHashingUtils::HashString("m6a.48xlarge"); + static constexpr uint32_t m6g_metal_HASH = ConstExprHashingUtils::HashString("m6g.metal"); + static constexpr uint32_t m6g_medium_HASH = ConstExprHashingUtils::HashString("m6g.medium"); + static constexpr uint32_t m6g_large_HASH = ConstExprHashingUtils::HashString("m6g.large"); + static constexpr uint32_t m6g_xlarge_HASH = ConstExprHashingUtils::HashString("m6g.xlarge"); + static constexpr uint32_t m6g_2xlarge_HASH = ConstExprHashingUtils::HashString("m6g.2xlarge"); + static constexpr uint32_t m6g_4xlarge_HASH = ConstExprHashingUtils::HashString("m6g.4xlarge"); + static constexpr uint32_t m6g_8xlarge_HASH = ConstExprHashingUtils::HashString("m6g.8xlarge"); + static constexpr uint32_t m6g_12xlarge_HASH = ConstExprHashingUtils::HashString("m6g.12xlarge"); + static constexpr uint32_t m6g_16xlarge_HASH = ConstExprHashingUtils::HashString("m6g.16xlarge"); + static constexpr uint32_t m6gd_metal_HASH = ConstExprHashingUtils::HashString("m6gd.metal"); + static constexpr uint32_t m6gd_medium_HASH = ConstExprHashingUtils::HashString("m6gd.medium"); + static constexpr uint32_t m6gd_large_HASH = ConstExprHashingUtils::HashString("m6gd.large"); + static constexpr uint32_t m6gd_xlarge_HASH = ConstExprHashingUtils::HashString("m6gd.xlarge"); + static constexpr uint32_t m6gd_2xlarge_HASH = ConstExprHashingUtils::HashString("m6gd.2xlarge"); + static constexpr uint32_t m6gd_4xlarge_HASH = ConstExprHashingUtils::HashString("m6gd.4xlarge"); + static constexpr uint32_t m6gd_8xlarge_HASH = ConstExprHashingUtils::HashString("m6gd.8xlarge"); + static constexpr uint32_t m6gd_12xlarge_HASH = ConstExprHashingUtils::HashString("m6gd.12xlarge"); + static constexpr uint32_t m6gd_16xlarge_HASH = ConstExprHashingUtils::HashString("m6gd.16xlarge"); + static constexpr uint32_t m6i_large_HASH = ConstExprHashingUtils::HashString("m6i.large"); + static constexpr uint32_t m6i_xlarge_HASH = ConstExprHashingUtils::HashString("m6i.xlarge"); + static constexpr uint32_t m6i_2xlarge_HASH = ConstExprHashingUtils::HashString("m6i.2xlarge"); + static constexpr uint32_t m6i_4xlarge_HASH = ConstExprHashingUtils::HashString("m6i.4xlarge"); + static constexpr uint32_t m6i_8xlarge_HASH = ConstExprHashingUtils::HashString("m6i.8xlarge"); + static constexpr uint32_t m6i_12xlarge_HASH = ConstExprHashingUtils::HashString("m6i.12xlarge"); + static constexpr uint32_t m6i_16xlarge_HASH = ConstExprHashingUtils::HashString("m6i.16xlarge"); + static constexpr uint32_t m6i_24xlarge_HASH = ConstExprHashingUtils::HashString("m6i.24xlarge"); + static constexpr uint32_t m6i_32xlarge_HASH = ConstExprHashingUtils::HashString("m6i.32xlarge"); + static constexpr uint32_t m6i_metal_HASH = ConstExprHashingUtils::HashString("m6i.metal"); + static constexpr uint32_t mac1_metal_HASH = ConstExprHashingUtils::HashString("mac1.metal"); + static constexpr uint32_t p2_xlarge_HASH = ConstExprHashingUtils::HashString("p2.xlarge"); + static constexpr uint32_t p2_8xlarge_HASH = ConstExprHashingUtils::HashString("p2.8xlarge"); + static constexpr uint32_t p2_16xlarge_HASH = ConstExprHashingUtils::HashString("p2.16xlarge"); + static constexpr uint32_t p3_2xlarge_HASH = ConstExprHashingUtils::HashString("p3.2xlarge"); + static constexpr uint32_t p3_8xlarge_HASH = ConstExprHashingUtils::HashString("p3.8xlarge"); + static constexpr uint32_t p3_16xlarge_HASH = ConstExprHashingUtils::HashString("p3.16xlarge"); + static constexpr uint32_t p3dn_24xlarge_HASH = ConstExprHashingUtils::HashString("p3dn.24xlarge"); + static constexpr uint32_t p4d_24xlarge_HASH = ConstExprHashingUtils::HashString("p4d.24xlarge"); + static constexpr uint32_t r3_large_HASH = ConstExprHashingUtils::HashString("r3.large"); + static constexpr uint32_t r3_xlarge_HASH = ConstExprHashingUtils::HashString("r3.xlarge"); + static constexpr uint32_t r3_2xlarge_HASH = ConstExprHashingUtils::HashString("r3.2xlarge"); + static constexpr uint32_t r3_4xlarge_HASH = ConstExprHashingUtils::HashString("r3.4xlarge"); + static constexpr uint32_t r3_8xlarge_HASH = ConstExprHashingUtils::HashString("r3.8xlarge"); + static constexpr uint32_t r4_large_HASH = ConstExprHashingUtils::HashString("r4.large"); + static constexpr uint32_t r4_xlarge_HASH = ConstExprHashingUtils::HashString("r4.xlarge"); + static constexpr uint32_t r4_2xlarge_HASH = ConstExprHashingUtils::HashString("r4.2xlarge"); + static constexpr uint32_t r4_4xlarge_HASH = ConstExprHashingUtils::HashString("r4.4xlarge"); + static constexpr uint32_t r4_8xlarge_HASH = ConstExprHashingUtils::HashString("r4.8xlarge"); + static constexpr uint32_t r4_16xlarge_HASH = ConstExprHashingUtils::HashString("r4.16xlarge"); + static constexpr uint32_t r5_large_HASH = ConstExprHashingUtils::HashString("r5.large"); + static constexpr uint32_t r5_xlarge_HASH = ConstExprHashingUtils::HashString("r5.xlarge"); + static constexpr uint32_t r5_2xlarge_HASH = ConstExprHashingUtils::HashString("r5.2xlarge"); + static constexpr uint32_t r5_4xlarge_HASH = ConstExprHashingUtils::HashString("r5.4xlarge"); + static constexpr uint32_t r5_8xlarge_HASH = ConstExprHashingUtils::HashString("r5.8xlarge"); + static constexpr uint32_t r5_12xlarge_HASH = ConstExprHashingUtils::HashString("r5.12xlarge"); + static constexpr uint32_t r5_16xlarge_HASH = ConstExprHashingUtils::HashString("r5.16xlarge"); + static constexpr uint32_t r5_24xlarge_HASH = ConstExprHashingUtils::HashString("r5.24xlarge"); + static constexpr uint32_t r5_metal_HASH = ConstExprHashingUtils::HashString("r5.metal"); + static constexpr uint32_t r5a_large_HASH = ConstExprHashingUtils::HashString("r5a.large"); + static constexpr uint32_t r5a_xlarge_HASH = ConstExprHashingUtils::HashString("r5a.xlarge"); + static constexpr uint32_t r5a_2xlarge_HASH = ConstExprHashingUtils::HashString("r5a.2xlarge"); + static constexpr uint32_t r5a_4xlarge_HASH = ConstExprHashingUtils::HashString("r5a.4xlarge"); + static constexpr uint32_t r5a_8xlarge_HASH = ConstExprHashingUtils::HashString("r5a.8xlarge"); + static constexpr uint32_t r5a_12xlarge_HASH = ConstExprHashingUtils::HashString("r5a.12xlarge"); + static constexpr uint32_t r5a_16xlarge_HASH = ConstExprHashingUtils::HashString("r5a.16xlarge"); + static constexpr uint32_t r5a_24xlarge_HASH = ConstExprHashingUtils::HashString("r5a.24xlarge"); + static constexpr uint32_t r5ad_large_HASH = ConstExprHashingUtils::HashString("r5ad.large"); + static constexpr uint32_t r5ad_xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.xlarge"); + static constexpr uint32_t r5ad_2xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.2xlarge"); + static constexpr uint32_t r5ad_4xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.4xlarge"); + static constexpr uint32_t r5ad_8xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.8xlarge"); + static constexpr uint32_t r5ad_12xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.12xlarge"); + static constexpr uint32_t r5ad_16xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.16xlarge"); + static constexpr uint32_t r5ad_24xlarge_HASH = ConstExprHashingUtils::HashString("r5ad.24xlarge"); + static constexpr uint32_t r5b_large_HASH = ConstExprHashingUtils::HashString("r5b.large"); + static constexpr uint32_t r5b_xlarge_HASH = ConstExprHashingUtils::HashString("r5b.xlarge"); + static constexpr uint32_t r5b_2xlarge_HASH = ConstExprHashingUtils::HashString("r5b.2xlarge"); + static constexpr uint32_t r5b_4xlarge_HASH = ConstExprHashingUtils::HashString("r5b.4xlarge"); + static constexpr uint32_t r5b_8xlarge_HASH = ConstExprHashingUtils::HashString("r5b.8xlarge"); + static constexpr uint32_t r5b_12xlarge_HASH = ConstExprHashingUtils::HashString("r5b.12xlarge"); + static constexpr uint32_t r5b_16xlarge_HASH = ConstExprHashingUtils::HashString("r5b.16xlarge"); + static constexpr uint32_t r5b_24xlarge_HASH = ConstExprHashingUtils::HashString("r5b.24xlarge"); + static constexpr uint32_t r5b_metal_HASH = ConstExprHashingUtils::HashString("r5b.metal"); + static constexpr uint32_t r5d_large_HASH = ConstExprHashingUtils::HashString("r5d.large"); + static constexpr uint32_t r5d_xlarge_HASH = ConstExprHashingUtils::HashString("r5d.xlarge"); + static constexpr uint32_t r5d_2xlarge_HASH = ConstExprHashingUtils::HashString("r5d.2xlarge"); + static constexpr uint32_t r5d_4xlarge_HASH = ConstExprHashingUtils::HashString("r5d.4xlarge"); + static constexpr uint32_t r5d_8xlarge_HASH = ConstExprHashingUtils::HashString("r5d.8xlarge"); + static constexpr uint32_t r5d_12xlarge_HASH = ConstExprHashingUtils::HashString("r5d.12xlarge"); + static constexpr uint32_t r5d_16xlarge_HASH = ConstExprHashingUtils::HashString("r5d.16xlarge"); + static constexpr uint32_t r5d_24xlarge_HASH = ConstExprHashingUtils::HashString("r5d.24xlarge"); + static constexpr uint32_t r5d_metal_HASH = ConstExprHashingUtils::HashString("r5d.metal"); + static constexpr uint32_t r5dn_large_HASH = ConstExprHashingUtils::HashString("r5dn.large"); + static constexpr uint32_t r5dn_xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.xlarge"); + static constexpr uint32_t r5dn_2xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.2xlarge"); + static constexpr uint32_t r5dn_4xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.4xlarge"); + static constexpr uint32_t r5dn_8xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.8xlarge"); + static constexpr uint32_t r5dn_12xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.12xlarge"); + static constexpr uint32_t r5dn_16xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.16xlarge"); + static constexpr uint32_t r5dn_24xlarge_HASH = ConstExprHashingUtils::HashString("r5dn.24xlarge"); + static constexpr uint32_t r5dn_metal_HASH = ConstExprHashingUtils::HashString("r5dn.metal"); + static constexpr uint32_t r5n_large_HASH = ConstExprHashingUtils::HashString("r5n.large"); + static constexpr uint32_t r5n_xlarge_HASH = ConstExprHashingUtils::HashString("r5n.xlarge"); + static constexpr uint32_t r5n_2xlarge_HASH = ConstExprHashingUtils::HashString("r5n.2xlarge"); + static constexpr uint32_t r5n_4xlarge_HASH = ConstExprHashingUtils::HashString("r5n.4xlarge"); + static constexpr uint32_t r5n_8xlarge_HASH = ConstExprHashingUtils::HashString("r5n.8xlarge"); + static constexpr uint32_t r5n_12xlarge_HASH = ConstExprHashingUtils::HashString("r5n.12xlarge"); + static constexpr uint32_t r5n_16xlarge_HASH = ConstExprHashingUtils::HashString("r5n.16xlarge"); + static constexpr uint32_t r5n_24xlarge_HASH = ConstExprHashingUtils::HashString("r5n.24xlarge"); + static constexpr uint32_t r5n_metal_HASH = ConstExprHashingUtils::HashString("r5n.metal"); + static constexpr uint32_t r6g_medium_HASH = ConstExprHashingUtils::HashString("r6g.medium"); + static constexpr uint32_t r6g_large_HASH = ConstExprHashingUtils::HashString("r6g.large"); + static constexpr uint32_t r6g_xlarge_HASH = ConstExprHashingUtils::HashString("r6g.xlarge"); + static constexpr uint32_t r6g_2xlarge_HASH = ConstExprHashingUtils::HashString("r6g.2xlarge"); + static constexpr uint32_t r6g_4xlarge_HASH = ConstExprHashingUtils::HashString("r6g.4xlarge"); + static constexpr uint32_t r6g_8xlarge_HASH = ConstExprHashingUtils::HashString("r6g.8xlarge"); + static constexpr uint32_t r6g_12xlarge_HASH = ConstExprHashingUtils::HashString("r6g.12xlarge"); + static constexpr uint32_t r6g_16xlarge_HASH = ConstExprHashingUtils::HashString("r6g.16xlarge"); + static constexpr uint32_t r6g_metal_HASH = ConstExprHashingUtils::HashString("r6g.metal"); + static constexpr uint32_t r6gd_medium_HASH = ConstExprHashingUtils::HashString("r6gd.medium"); + static constexpr uint32_t r6gd_large_HASH = ConstExprHashingUtils::HashString("r6gd.large"); + static constexpr uint32_t r6gd_xlarge_HASH = ConstExprHashingUtils::HashString("r6gd.xlarge"); + static constexpr uint32_t r6gd_2xlarge_HASH = ConstExprHashingUtils::HashString("r6gd.2xlarge"); + static constexpr uint32_t r6gd_4xlarge_HASH = ConstExprHashingUtils::HashString("r6gd.4xlarge"); + static constexpr uint32_t r6gd_8xlarge_HASH = ConstExprHashingUtils::HashString("r6gd.8xlarge"); + static constexpr uint32_t r6gd_12xlarge_HASH = ConstExprHashingUtils::HashString("r6gd.12xlarge"); + static constexpr uint32_t r6gd_16xlarge_HASH = ConstExprHashingUtils::HashString("r6gd.16xlarge"); + static constexpr uint32_t r6gd_metal_HASH = ConstExprHashingUtils::HashString("r6gd.metal"); + static constexpr uint32_t r6i_large_HASH = ConstExprHashingUtils::HashString("r6i.large"); + static constexpr uint32_t r6i_xlarge_HASH = ConstExprHashingUtils::HashString("r6i.xlarge"); + static constexpr uint32_t r6i_2xlarge_HASH = ConstExprHashingUtils::HashString("r6i.2xlarge"); + static constexpr uint32_t r6i_4xlarge_HASH = ConstExprHashingUtils::HashString("r6i.4xlarge"); + static constexpr uint32_t r6i_8xlarge_HASH = ConstExprHashingUtils::HashString("r6i.8xlarge"); + static constexpr uint32_t r6i_12xlarge_HASH = ConstExprHashingUtils::HashString("r6i.12xlarge"); + static constexpr uint32_t r6i_16xlarge_HASH = ConstExprHashingUtils::HashString("r6i.16xlarge"); + static constexpr uint32_t r6i_24xlarge_HASH = ConstExprHashingUtils::HashString("r6i.24xlarge"); + static constexpr uint32_t r6i_32xlarge_HASH = ConstExprHashingUtils::HashString("r6i.32xlarge"); + static constexpr uint32_t r6i_metal_HASH = ConstExprHashingUtils::HashString("r6i.metal"); + static constexpr uint32_t t1_micro_HASH = ConstExprHashingUtils::HashString("t1.micro"); + static constexpr uint32_t t2_nano_HASH = ConstExprHashingUtils::HashString("t2.nano"); + static constexpr uint32_t t2_micro_HASH = ConstExprHashingUtils::HashString("t2.micro"); + static constexpr uint32_t t2_small_HASH = ConstExprHashingUtils::HashString("t2.small"); + static constexpr uint32_t t2_medium_HASH = ConstExprHashingUtils::HashString("t2.medium"); + static constexpr uint32_t t2_large_HASH = ConstExprHashingUtils::HashString("t2.large"); + static constexpr uint32_t t2_xlarge_HASH = ConstExprHashingUtils::HashString("t2.xlarge"); + static constexpr uint32_t t2_2xlarge_HASH = ConstExprHashingUtils::HashString("t2.2xlarge"); + static constexpr uint32_t t3_nano_HASH = ConstExprHashingUtils::HashString("t3.nano"); + static constexpr uint32_t t3_micro_HASH = ConstExprHashingUtils::HashString("t3.micro"); + static constexpr uint32_t t3_small_HASH = ConstExprHashingUtils::HashString("t3.small"); + static constexpr uint32_t t3_medium_HASH = ConstExprHashingUtils::HashString("t3.medium"); + static constexpr uint32_t t3_large_HASH = ConstExprHashingUtils::HashString("t3.large"); + static constexpr uint32_t t3_xlarge_HASH = ConstExprHashingUtils::HashString("t3.xlarge"); + static constexpr uint32_t t3_2xlarge_HASH = ConstExprHashingUtils::HashString("t3.2xlarge"); + static constexpr uint32_t t3a_nano_HASH = ConstExprHashingUtils::HashString("t3a.nano"); + static constexpr uint32_t t3a_micro_HASH = ConstExprHashingUtils::HashString("t3a.micro"); + static constexpr uint32_t t3a_small_HASH = ConstExprHashingUtils::HashString("t3a.small"); + static constexpr uint32_t t3a_medium_HASH = ConstExprHashingUtils::HashString("t3a.medium"); + static constexpr uint32_t t3a_large_HASH = ConstExprHashingUtils::HashString("t3a.large"); + static constexpr uint32_t t3a_xlarge_HASH = ConstExprHashingUtils::HashString("t3a.xlarge"); + static constexpr uint32_t t3a_2xlarge_HASH = ConstExprHashingUtils::HashString("t3a.2xlarge"); + static constexpr uint32_t t4g_nano_HASH = ConstExprHashingUtils::HashString("t4g.nano"); + static constexpr uint32_t t4g_micro_HASH = ConstExprHashingUtils::HashString("t4g.micro"); + static constexpr uint32_t t4g_small_HASH = ConstExprHashingUtils::HashString("t4g.small"); + static constexpr uint32_t t4g_medium_HASH = ConstExprHashingUtils::HashString("t4g.medium"); + static constexpr uint32_t t4g_large_HASH = ConstExprHashingUtils::HashString("t4g.large"); + static constexpr uint32_t t4g_xlarge_HASH = ConstExprHashingUtils::HashString("t4g.xlarge"); + static constexpr uint32_t t4g_2xlarge_HASH = ConstExprHashingUtils::HashString("t4g.2xlarge"); + static constexpr uint32_t u_6tb1_56xlarge_HASH = ConstExprHashingUtils::HashString("u-6tb1.56xlarge"); + static constexpr uint32_t u_6tb1_112xlarge_HASH = ConstExprHashingUtils::HashString("u-6tb1.112xlarge"); + static constexpr uint32_t u_9tb1_112xlarge_HASH = ConstExprHashingUtils::HashString("u-9tb1.112xlarge"); + static constexpr uint32_t u_12tb1_112xlarge_HASH = ConstExprHashingUtils::HashString("u-12tb1.112xlarge"); + static constexpr uint32_t u_6tb1_metal_HASH = ConstExprHashingUtils::HashString("u-6tb1.metal"); + static constexpr uint32_t u_9tb1_metal_HASH = ConstExprHashingUtils::HashString("u-9tb1.metal"); + static constexpr uint32_t u_12tb1_metal_HASH = ConstExprHashingUtils::HashString("u-12tb1.metal"); + static constexpr uint32_t u_18tb1_metal_HASH = ConstExprHashingUtils::HashString("u-18tb1.metal"); + static constexpr uint32_t u_24tb1_metal_HASH = ConstExprHashingUtils::HashString("u-24tb1.metal"); + static constexpr uint32_t vt1_3xlarge_HASH = ConstExprHashingUtils::HashString("vt1.3xlarge"); + static constexpr uint32_t vt1_6xlarge_HASH = ConstExprHashingUtils::HashString("vt1.6xlarge"); + static constexpr uint32_t vt1_24xlarge_HASH = ConstExprHashingUtils::HashString("vt1.24xlarge"); + static constexpr uint32_t x1_16xlarge_HASH = ConstExprHashingUtils::HashString("x1.16xlarge"); + static constexpr uint32_t x1_32xlarge_HASH = ConstExprHashingUtils::HashString("x1.32xlarge"); + static constexpr uint32_t x1e_xlarge_HASH = ConstExprHashingUtils::HashString("x1e.xlarge"); + static constexpr uint32_t x1e_2xlarge_HASH = ConstExprHashingUtils::HashString("x1e.2xlarge"); + static constexpr uint32_t x1e_4xlarge_HASH = ConstExprHashingUtils::HashString("x1e.4xlarge"); + static constexpr uint32_t x1e_8xlarge_HASH = ConstExprHashingUtils::HashString("x1e.8xlarge"); + static constexpr uint32_t x1e_16xlarge_HASH = ConstExprHashingUtils::HashString("x1e.16xlarge"); + static constexpr uint32_t x1e_32xlarge_HASH = ConstExprHashingUtils::HashString("x1e.32xlarge"); + static constexpr uint32_t x2iezn_2xlarge_HASH = ConstExprHashingUtils::HashString("x2iezn.2xlarge"); + static constexpr uint32_t x2iezn_4xlarge_HASH = ConstExprHashingUtils::HashString("x2iezn.4xlarge"); + static constexpr uint32_t x2iezn_6xlarge_HASH = ConstExprHashingUtils::HashString("x2iezn.6xlarge"); + static constexpr uint32_t x2iezn_8xlarge_HASH = ConstExprHashingUtils::HashString("x2iezn.8xlarge"); + static constexpr uint32_t x2iezn_12xlarge_HASH = ConstExprHashingUtils::HashString("x2iezn.12xlarge"); + static constexpr uint32_t x2iezn_metal_HASH = ConstExprHashingUtils::HashString("x2iezn.metal"); + static constexpr uint32_t x2gd_medium_HASH = ConstExprHashingUtils::HashString("x2gd.medium"); + static constexpr uint32_t x2gd_large_HASH = ConstExprHashingUtils::HashString("x2gd.large"); + static constexpr uint32_t x2gd_xlarge_HASH = ConstExprHashingUtils::HashString("x2gd.xlarge"); + static constexpr uint32_t x2gd_2xlarge_HASH = ConstExprHashingUtils::HashString("x2gd.2xlarge"); + static constexpr uint32_t x2gd_4xlarge_HASH = ConstExprHashingUtils::HashString("x2gd.4xlarge"); + static constexpr uint32_t x2gd_8xlarge_HASH = ConstExprHashingUtils::HashString("x2gd.8xlarge"); + static constexpr uint32_t x2gd_12xlarge_HASH = ConstExprHashingUtils::HashString("x2gd.12xlarge"); + static constexpr uint32_t x2gd_16xlarge_HASH = ConstExprHashingUtils::HashString("x2gd.16xlarge"); + static constexpr uint32_t x2gd_metal_HASH = ConstExprHashingUtils::HashString("x2gd.metal"); + static constexpr uint32_t z1d_large_HASH = ConstExprHashingUtils::HashString("z1d.large"); + static constexpr uint32_t z1d_xlarge_HASH = ConstExprHashingUtils::HashString("z1d.xlarge"); + static constexpr uint32_t z1d_2xlarge_HASH = ConstExprHashingUtils::HashString("z1d.2xlarge"); + static constexpr uint32_t z1d_3xlarge_HASH = ConstExprHashingUtils::HashString("z1d.3xlarge"); + static constexpr uint32_t z1d_6xlarge_HASH = ConstExprHashingUtils::HashString("z1d.6xlarge"); + static constexpr uint32_t z1d_12xlarge_HASH = ConstExprHashingUtils::HashString("z1d.12xlarge"); + static constexpr uint32_t z1d_metal_HASH = ConstExprHashingUtils::HashString("z1d.metal"); + static constexpr uint32_t x2idn_16xlarge_HASH = ConstExprHashingUtils::HashString("x2idn.16xlarge"); + static constexpr uint32_t x2idn_24xlarge_HASH = ConstExprHashingUtils::HashString("x2idn.24xlarge"); + static constexpr uint32_t x2idn_32xlarge_HASH = ConstExprHashingUtils::HashString("x2idn.32xlarge"); + static constexpr uint32_t x2iedn_xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.xlarge"); + static constexpr uint32_t x2iedn_2xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.2xlarge"); + static constexpr uint32_t x2iedn_4xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.4xlarge"); + static constexpr uint32_t x2iedn_8xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.8xlarge"); + static constexpr uint32_t x2iedn_16xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.16xlarge"); + static constexpr uint32_t x2iedn_24xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.24xlarge"); + static constexpr uint32_t x2iedn_32xlarge_HASH = ConstExprHashingUtils::HashString("x2iedn.32xlarge"); + static constexpr uint32_t c6a_large_HASH = ConstExprHashingUtils::HashString("c6a.large"); + static constexpr uint32_t c6a_xlarge_HASH = ConstExprHashingUtils::HashString("c6a.xlarge"); + static constexpr uint32_t c6a_2xlarge_HASH = ConstExprHashingUtils::HashString("c6a.2xlarge"); + static constexpr uint32_t c6a_4xlarge_HASH = ConstExprHashingUtils::HashString("c6a.4xlarge"); + static constexpr uint32_t c6a_8xlarge_HASH = ConstExprHashingUtils::HashString("c6a.8xlarge"); + static constexpr uint32_t c6a_12xlarge_HASH = ConstExprHashingUtils::HashString("c6a.12xlarge"); + static constexpr uint32_t c6a_16xlarge_HASH = ConstExprHashingUtils::HashString("c6a.16xlarge"); + static constexpr uint32_t c6a_24xlarge_HASH = ConstExprHashingUtils::HashString("c6a.24xlarge"); + static constexpr uint32_t c6a_32xlarge_HASH = ConstExprHashingUtils::HashString("c6a.32xlarge"); + static constexpr uint32_t c6a_48xlarge_HASH = ConstExprHashingUtils::HashString("c6a.48xlarge"); + static constexpr uint32_t c6a_metal_HASH = ConstExprHashingUtils::HashString("c6a.metal"); + static constexpr uint32_t m6a_metal_HASH = ConstExprHashingUtils::HashString("m6a.metal"); + static constexpr uint32_t i4i_large_HASH = ConstExprHashingUtils::HashString("i4i.large"); + static constexpr uint32_t i4i_xlarge_HASH = ConstExprHashingUtils::HashString("i4i.xlarge"); + static constexpr uint32_t i4i_2xlarge_HASH = ConstExprHashingUtils::HashString("i4i.2xlarge"); + static constexpr uint32_t i4i_4xlarge_HASH = ConstExprHashingUtils::HashString("i4i.4xlarge"); + static constexpr uint32_t i4i_8xlarge_HASH = ConstExprHashingUtils::HashString("i4i.8xlarge"); + static constexpr uint32_t i4i_16xlarge_HASH = ConstExprHashingUtils::HashString("i4i.16xlarge"); + static constexpr uint32_t i4i_32xlarge_HASH = ConstExprHashingUtils::HashString("i4i.32xlarge"); + static constexpr uint32_t i4i_metal_HASH = ConstExprHashingUtils::HashString("i4i.metal"); + static constexpr uint32_t x2idn_metal_HASH = ConstExprHashingUtils::HashString("x2idn.metal"); + static constexpr uint32_t x2iedn_metal_HASH = ConstExprHashingUtils::HashString("x2iedn.metal"); + static constexpr uint32_t c7g_medium_HASH = ConstExprHashingUtils::HashString("c7g.medium"); + static constexpr uint32_t c7g_large_HASH = ConstExprHashingUtils::HashString("c7g.large"); + static constexpr uint32_t c7g_xlarge_HASH = ConstExprHashingUtils::HashString("c7g.xlarge"); + static constexpr uint32_t c7g_2xlarge_HASH = ConstExprHashingUtils::HashString("c7g.2xlarge"); + static constexpr uint32_t c7g_4xlarge_HASH = ConstExprHashingUtils::HashString("c7g.4xlarge"); + static constexpr uint32_t c7g_8xlarge_HASH = ConstExprHashingUtils::HashString("c7g.8xlarge"); + static constexpr uint32_t c7g_12xlarge_HASH = ConstExprHashingUtils::HashString("c7g.12xlarge"); + static constexpr uint32_t c7g_16xlarge_HASH = ConstExprHashingUtils::HashString("c7g.16xlarge"); + static constexpr uint32_t mac2_metal_HASH = ConstExprHashingUtils::HashString("mac2.metal"); + static constexpr uint32_t c6id_large_HASH = ConstExprHashingUtils::HashString("c6id.large"); + static constexpr uint32_t c6id_xlarge_HASH = ConstExprHashingUtils::HashString("c6id.xlarge"); + static constexpr uint32_t c6id_2xlarge_HASH = ConstExprHashingUtils::HashString("c6id.2xlarge"); + static constexpr uint32_t c6id_4xlarge_HASH = ConstExprHashingUtils::HashString("c6id.4xlarge"); + static constexpr uint32_t c6id_8xlarge_HASH = ConstExprHashingUtils::HashString("c6id.8xlarge"); + static constexpr uint32_t c6id_12xlarge_HASH = ConstExprHashingUtils::HashString("c6id.12xlarge"); + static constexpr uint32_t c6id_16xlarge_HASH = ConstExprHashingUtils::HashString("c6id.16xlarge"); + static constexpr uint32_t c6id_24xlarge_HASH = ConstExprHashingUtils::HashString("c6id.24xlarge"); + static constexpr uint32_t c6id_32xlarge_HASH = ConstExprHashingUtils::HashString("c6id.32xlarge"); + static constexpr uint32_t c6id_metal_HASH = ConstExprHashingUtils::HashString("c6id.metal"); + static constexpr uint32_t m6id_large_HASH = ConstExprHashingUtils::HashString("m6id.large"); + static constexpr uint32_t m6id_xlarge_HASH = ConstExprHashingUtils::HashString("m6id.xlarge"); + static constexpr uint32_t m6id_2xlarge_HASH = ConstExprHashingUtils::HashString("m6id.2xlarge"); + static constexpr uint32_t m6id_4xlarge_HASH = ConstExprHashingUtils::HashString("m6id.4xlarge"); + static constexpr uint32_t m6id_8xlarge_HASH = ConstExprHashingUtils::HashString("m6id.8xlarge"); + static constexpr uint32_t m6id_12xlarge_HASH = ConstExprHashingUtils::HashString("m6id.12xlarge"); + static constexpr uint32_t m6id_16xlarge_HASH = ConstExprHashingUtils::HashString("m6id.16xlarge"); + static constexpr uint32_t m6id_24xlarge_HASH = ConstExprHashingUtils::HashString("m6id.24xlarge"); + static constexpr uint32_t m6id_32xlarge_HASH = ConstExprHashingUtils::HashString("m6id.32xlarge"); + static constexpr uint32_t m6id_metal_HASH = ConstExprHashingUtils::HashString("m6id.metal"); + static constexpr uint32_t r6id_large_HASH = ConstExprHashingUtils::HashString("r6id.large"); + static constexpr uint32_t r6id_xlarge_HASH = ConstExprHashingUtils::HashString("r6id.xlarge"); + static constexpr uint32_t r6id_2xlarge_HASH = ConstExprHashingUtils::HashString("r6id.2xlarge"); + static constexpr uint32_t r6id_4xlarge_HASH = ConstExprHashingUtils::HashString("r6id.4xlarge"); + static constexpr uint32_t r6id_8xlarge_HASH = ConstExprHashingUtils::HashString("r6id.8xlarge"); + static constexpr uint32_t r6id_12xlarge_HASH = ConstExprHashingUtils::HashString("r6id.12xlarge"); + static constexpr uint32_t r6id_16xlarge_HASH = ConstExprHashingUtils::HashString("r6id.16xlarge"); + static constexpr uint32_t r6id_24xlarge_HASH = ConstExprHashingUtils::HashString("r6id.24xlarge"); + static constexpr uint32_t r6id_32xlarge_HASH = ConstExprHashingUtils::HashString("r6id.32xlarge"); + static constexpr uint32_t r6id_metal_HASH = ConstExprHashingUtils::HashString("r6id.metal"); + static constexpr uint32_t r6a_large_HASH = ConstExprHashingUtils::HashString("r6a.large"); + static constexpr uint32_t r6a_xlarge_HASH = ConstExprHashingUtils::HashString("r6a.xlarge"); + static constexpr uint32_t r6a_2xlarge_HASH = ConstExprHashingUtils::HashString("r6a.2xlarge"); + static constexpr uint32_t r6a_4xlarge_HASH = ConstExprHashingUtils::HashString("r6a.4xlarge"); + static constexpr uint32_t r6a_8xlarge_HASH = ConstExprHashingUtils::HashString("r6a.8xlarge"); + static constexpr uint32_t r6a_12xlarge_HASH = ConstExprHashingUtils::HashString("r6a.12xlarge"); + static constexpr uint32_t r6a_16xlarge_HASH = ConstExprHashingUtils::HashString("r6a.16xlarge"); + static constexpr uint32_t r6a_24xlarge_HASH = ConstExprHashingUtils::HashString("r6a.24xlarge"); + static constexpr uint32_t r6a_32xlarge_HASH = ConstExprHashingUtils::HashString("r6a.32xlarge"); + static constexpr uint32_t r6a_48xlarge_HASH = ConstExprHashingUtils::HashString("r6a.48xlarge"); + static constexpr uint32_t r6a_metal_HASH = ConstExprHashingUtils::HashString("r6a.metal"); + static constexpr uint32_t p4de_24xlarge_HASH = ConstExprHashingUtils::HashString("p4de.24xlarge"); + static constexpr uint32_t u_3tb1_56xlarge_HASH = ConstExprHashingUtils::HashString("u-3tb1.56xlarge"); + static constexpr uint32_t u_18tb1_112xlarge_HASH = ConstExprHashingUtils::HashString("u-18tb1.112xlarge"); + static constexpr uint32_t u_24tb1_112xlarge_HASH = ConstExprHashingUtils::HashString("u-24tb1.112xlarge"); + static constexpr uint32_t trn1_2xlarge_HASH = ConstExprHashingUtils::HashString("trn1.2xlarge"); + static constexpr uint32_t trn1_32xlarge_HASH = ConstExprHashingUtils::HashString("trn1.32xlarge"); + static constexpr uint32_t hpc6id_32xlarge_HASH = ConstExprHashingUtils::HashString("hpc6id.32xlarge"); + static constexpr uint32_t c6in_large_HASH = ConstExprHashingUtils::HashString("c6in.large"); + static constexpr uint32_t c6in_xlarge_HASH = ConstExprHashingUtils::HashString("c6in.xlarge"); + static constexpr uint32_t c6in_2xlarge_HASH = ConstExprHashingUtils::HashString("c6in.2xlarge"); + static constexpr uint32_t c6in_4xlarge_HASH = ConstExprHashingUtils::HashString("c6in.4xlarge"); + static constexpr uint32_t c6in_8xlarge_HASH = ConstExprHashingUtils::HashString("c6in.8xlarge"); + static constexpr uint32_t c6in_12xlarge_HASH = ConstExprHashingUtils::HashString("c6in.12xlarge"); + static constexpr uint32_t c6in_16xlarge_HASH = ConstExprHashingUtils::HashString("c6in.16xlarge"); + static constexpr uint32_t c6in_24xlarge_HASH = ConstExprHashingUtils::HashString("c6in.24xlarge"); + static constexpr uint32_t c6in_32xlarge_HASH = ConstExprHashingUtils::HashString("c6in.32xlarge"); + static constexpr uint32_t m6in_large_HASH = ConstExprHashingUtils::HashString("m6in.large"); + static constexpr uint32_t m6in_xlarge_HASH = ConstExprHashingUtils::HashString("m6in.xlarge"); + static constexpr uint32_t m6in_2xlarge_HASH = ConstExprHashingUtils::HashString("m6in.2xlarge"); + static constexpr uint32_t m6in_4xlarge_HASH = ConstExprHashingUtils::HashString("m6in.4xlarge"); + static constexpr uint32_t m6in_8xlarge_HASH = ConstExprHashingUtils::HashString("m6in.8xlarge"); + static constexpr uint32_t m6in_12xlarge_HASH = ConstExprHashingUtils::HashString("m6in.12xlarge"); + static constexpr uint32_t m6in_16xlarge_HASH = ConstExprHashingUtils::HashString("m6in.16xlarge"); + static constexpr uint32_t m6in_24xlarge_HASH = ConstExprHashingUtils::HashString("m6in.24xlarge"); + static constexpr uint32_t m6in_32xlarge_HASH = ConstExprHashingUtils::HashString("m6in.32xlarge"); + static constexpr uint32_t m6idn_large_HASH = ConstExprHashingUtils::HashString("m6idn.large"); + static constexpr uint32_t m6idn_xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.xlarge"); + static constexpr uint32_t m6idn_2xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.2xlarge"); + static constexpr uint32_t m6idn_4xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.4xlarge"); + static constexpr uint32_t m6idn_8xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.8xlarge"); + static constexpr uint32_t m6idn_12xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.12xlarge"); + static constexpr uint32_t m6idn_16xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.16xlarge"); + static constexpr uint32_t m6idn_24xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.24xlarge"); + static constexpr uint32_t m6idn_32xlarge_HASH = ConstExprHashingUtils::HashString("m6idn.32xlarge"); + static constexpr uint32_t r6in_large_HASH = ConstExprHashingUtils::HashString("r6in.large"); + static constexpr uint32_t r6in_xlarge_HASH = ConstExprHashingUtils::HashString("r6in.xlarge"); + static constexpr uint32_t r6in_2xlarge_HASH = ConstExprHashingUtils::HashString("r6in.2xlarge"); + static constexpr uint32_t r6in_4xlarge_HASH = ConstExprHashingUtils::HashString("r6in.4xlarge"); + static constexpr uint32_t r6in_8xlarge_HASH = ConstExprHashingUtils::HashString("r6in.8xlarge"); + static constexpr uint32_t r6in_12xlarge_HASH = ConstExprHashingUtils::HashString("r6in.12xlarge"); + static constexpr uint32_t r6in_16xlarge_HASH = ConstExprHashingUtils::HashString("r6in.16xlarge"); + static constexpr uint32_t r6in_24xlarge_HASH = ConstExprHashingUtils::HashString("r6in.24xlarge"); + static constexpr uint32_t r6in_32xlarge_HASH = ConstExprHashingUtils::HashString("r6in.32xlarge"); + static constexpr uint32_t r6idn_large_HASH = ConstExprHashingUtils::HashString("r6idn.large"); + static constexpr uint32_t r6idn_xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.xlarge"); + static constexpr uint32_t r6idn_2xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.2xlarge"); + static constexpr uint32_t r6idn_4xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.4xlarge"); + static constexpr uint32_t r6idn_8xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.8xlarge"); + static constexpr uint32_t r6idn_12xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.12xlarge"); + static constexpr uint32_t r6idn_16xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.16xlarge"); + static constexpr uint32_t r6idn_24xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.24xlarge"); + static constexpr uint32_t r6idn_32xlarge_HASH = ConstExprHashingUtils::HashString("r6idn.32xlarge"); + static constexpr uint32_t c7g_metal_HASH = ConstExprHashingUtils::HashString("c7g.metal"); + static constexpr uint32_t m7g_medium_HASH = ConstExprHashingUtils::HashString("m7g.medium"); + static constexpr uint32_t m7g_large_HASH = ConstExprHashingUtils::HashString("m7g.large"); + static constexpr uint32_t m7g_xlarge_HASH = ConstExprHashingUtils::HashString("m7g.xlarge"); + static constexpr uint32_t m7g_2xlarge_HASH = ConstExprHashingUtils::HashString("m7g.2xlarge"); + static constexpr uint32_t m7g_4xlarge_HASH = ConstExprHashingUtils::HashString("m7g.4xlarge"); + static constexpr uint32_t m7g_8xlarge_HASH = ConstExprHashingUtils::HashString("m7g.8xlarge"); + static constexpr uint32_t m7g_12xlarge_HASH = ConstExprHashingUtils::HashString("m7g.12xlarge"); + static constexpr uint32_t m7g_16xlarge_HASH = ConstExprHashingUtils::HashString("m7g.16xlarge"); + static constexpr uint32_t m7g_metal_HASH = ConstExprHashingUtils::HashString("m7g.metal"); + static constexpr uint32_t r7g_medium_HASH = ConstExprHashingUtils::HashString("r7g.medium"); + static constexpr uint32_t r7g_large_HASH = ConstExprHashingUtils::HashString("r7g.large"); + static constexpr uint32_t r7g_xlarge_HASH = ConstExprHashingUtils::HashString("r7g.xlarge"); + static constexpr uint32_t r7g_2xlarge_HASH = ConstExprHashingUtils::HashString("r7g.2xlarge"); + static constexpr uint32_t r7g_4xlarge_HASH = ConstExprHashingUtils::HashString("r7g.4xlarge"); + static constexpr uint32_t r7g_8xlarge_HASH = ConstExprHashingUtils::HashString("r7g.8xlarge"); + static constexpr uint32_t r7g_12xlarge_HASH = ConstExprHashingUtils::HashString("r7g.12xlarge"); + static constexpr uint32_t r7g_16xlarge_HASH = ConstExprHashingUtils::HashString("r7g.16xlarge"); + static constexpr uint32_t r7g_metal_HASH = ConstExprHashingUtils::HashString("r7g.metal"); + static constexpr uint32_t c6in_metal_HASH = ConstExprHashingUtils::HashString("c6in.metal"); + static constexpr uint32_t m6in_metal_HASH = ConstExprHashingUtils::HashString("m6in.metal"); + static constexpr uint32_t m6idn_metal_HASH = ConstExprHashingUtils::HashString("m6idn.metal"); + static constexpr uint32_t r6in_metal_HASH = ConstExprHashingUtils::HashString("r6in.metal"); + static constexpr uint32_t r6idn_metal_HASH = ConstExprHashingUtils::HashString("r6idn.metal"); + static constexpr uint32_t inf2_xlarge_HASH = ConstExprHashingUtils::HashString("inf2.xlarge"); + static constexpr uint32_t inf2_8xlarge_HASH = ConstExprHashingUtils::HashString("inf2.8xlarge"); + static constexpr uint32_t inf2_24xlarge_HASH = ConstExprHashingUtils::HashString("inf2.24xlarge"); + static constexpr uint32_t inf2_48xlarge_HASH = ConstExprHashingUtils::HashString("inf2.48xlarge"); + static constexpr uint32_t trn1n_32xlarge_HASH = ConstExprHashingUtils::HashString("trn1n.32xlarge"); + static constexpr uint32_t i4g_large_HASH = ConstExprHashingUtils::HashString("i4g.large"); + static constexpr uint32_t i4g_xlarge_HASH = ConstExprHashingUtils::HashString("i4g.xlarge"); + static constexpr uint32_t i4g_2xlarge_HASH = ConstExprHashingUtils::HashString("i4g.2xlarge"); + static constexpr uint32_t i4g_4xlarge_HASH = ConstExprHashingUtils::HashString("i4g.4xlarge"); + static constexpr uint32_t i4g_8xlarge_HASH = ConstExprHashingUtils::HashString("i4g.8xlarge"); + static constexpr uint32_t i4g_16xlarge_HASH = ConstExprHashingUtils::HashString("i4g.16xlarge"); + static constexpr uint32_t hpc7g_4xlarge_HASH = ConstExprHashingUtils::HashString("hpc7g.4xlarge"); + static constexpr uint32_t hpc7g_8xlarge_HASH = ConstExprHashingUtils::HashString("hpc7g.8xlarge"); + static constexpr uint32_t hpc7g_16xlarge_HASH = ConstExprHashingUtils::HashString("hpc7g.16xlarge"); + static constexpr uint32_t c7gn_medium_HASH = ConstExprHashingUtils::HashString("c7gn.medium"); + static constexpr uint32_t c7gn_large_HASH = ConstExprHashingUtils::HashString("c7gn.large"); + static constexpr uint32_t c7gn_xlarge_HASH = ConstExprHashingUtils::HashString("c7gn.xlarge"); + static constexpr uint32_t c7gn_2xlarge_HASH = ConstExprHashingUtils::HashString("c7gn.2xlarge"); + static constexpr uint32_t c7gn_4xlarge_HASH = ConstExprHashingUtils::HashString("c7gn.4xlarge"); + static constexpr uint32_t c7gn_8xlarge_HASH = ConstExprHashingUtils::HashString("c7gn.8xlarge"); + static constexpr uint32_t c7gn_12xlarge_HASH = ConstExprHashingUtils::HashString("c7gn.12xlarge"); + static constexpr uint32_t c7gn_16xlarge_HASH = ConstExprHashingUtils::HashString("c7gn.16xlarge"); + static constexpr uint32_t p5_48xlarge_HASH = ConstExprHashingUtils::HashString("p5.48xlarge"); + static constexpr uint32_t m7i_large_HASH = ConstExprHashingUtils::HashString("m7i.large"); + static constexpr uint32_t m7i_xlarge_HASH = ConstExprHashingUtils::HashString("m7i.xlarge"); + static constexpr uint32_t m7i_2xlarge_HASH = ConstExprHashingUtils::HashString("m7i.2xlarge"); + static constexpr uint32_t m7i_4xlarge_HASH = ConstExprHashingUtils::HashString("m7i.4xlarge"); + static constexpr uint32_t m7i_8xlarge_HASH = ConstExprHashingUtils::HashString("m7i.8xlarge"); + static constexpr uint32_t m7i_12xlarge_HASH = ConstExprHashingUtils::HashString("m7i.12xlarge"); + static constexpr uint32_t m7i_16xlarge_HASH = ConstExprHashingUtils::HashString("m7i.16xlarge"); + static constexpr uint32_t m7i_24xlarge_HASH = ConstExprHashingUtils::HashString("m7i.24xlarge"); + static constexpr uint32_t m7i_48xlarge_HASH = ConstExprHashingUtils::HashString("m7i.48xlarge"); + static constexpr uint32_t m7i_flex_large_HASH = ConstExprHashingUtils::HashString("m7i-flex.large"); + static constexpr uint32_t m7i_flex_xlarge_HASH = ConstExprHashingUtils::HashString("m7i-flex.xlarge"); + static constexpr uint32_t m7i_flex_2xlarge_HASH = ConstExprHashingUtils::HashString("m7i-flex.2xlarge"); + static constexpr uint32_t m7i_flex_4xlarge_HASH = ConstExprHashingUtils::HashString("m7i-flex.4xlarge"); + static constexpr uint32_t m7i_flex_8xlarge_HASH = ConstExprHashingUtils::HashString("m7i-flex.8xlarge"); + static constexpr uint32_t m7a_medium_HASH = ConstExprHashingUtils::HashString("m7a.medium"); + static constexpr uint32_t m7a_large_HASH = ConstExprHashingUtils::HashString("m7a.large"); + static constexpr uint32_t m7a_xlarge_HASH = ConstExprHashingUtils::HashString("m7a.xlarge"); + static constexpr uint32_t m7a_2xlarge_HASH = ConstExprHashingUtils::HashString("m7a.2xlarge"); + static constexpr uint32_t m7a_4xlarge_HASH = ConstExprHashingUtils::HashString("m7a.4xlarge"); + static constexpr uint32_t m7a_8xlarge_HASH = ConstExprHashingUtils::HashString("m7a.8xlarge"); + static constexpr uint32_t m7a_12xlarge_HASH = ConstExprHashingUtils::HashString("m7a.12xlarge"); + static constexpr uint32_t m7a_16xlarge_HASH = ConstExprHashingUtils::HashString("m7a.16xlarge"); + static constexpr uint32_t m7a_24xlarge_HASH = ConstExprHashingUtils::HashString("m7a.24xlarge"); + static constexpr uint32_t m7a_32xlarge_HASH = ConstExprHashingUtils::HashString("m7a.32xlarge"); + static constexpr uint32_t m7a_48xlarge_HASH = ConstExprHashingUtils::HashString("m7a.48xlarge"); + static constexpr uint32_t m7a_metal_48xl_HASH = ConstExprHashingUtils::HashString("m7a.metal-48xl"); + static constexpr uint32_t hpc7a_12xlarge_HASH = ConstExprHashingUtils::HashString("hpc7a.12xlarge"); + static constexpr uint32_t hpc7a_24xlarge_HASH = ConstExprHashingUtils::HashString("hpc7a.24xlarge"); + static constexpr uint32_t hpc7a_48xlarge_HASH = ConstExprHashingUtils::HashString("hpc7a.48xlarge"); + static constexpr uint32_t hpc7a_96xlarge_HASH = ConstExprHashingUtils::HashString("hpc7a.96xlarge"); + static constexpr uint32_t c7gd_medium_HASH = ConstExprHashingUtils::HashString("c7gd.medium"); + static constexpr uint32_t c7gd_large_HASH = ConstExprHashingUtils::HashString("c7gd.large"); + static constexpr uint32_t c7gd_xlarge_HASH = ConstExprHashingUtils::HashString("c7gd.xlarge"); + static constexpr uint32_t c7gd_2xlarge_HASH = ConstExprHashingUtils::HashString("c7gd.2xlarge"); + static constexpr uint32_t c7gd_4xlarge_HASH = ConstExprHashingUtils::HashString("c7gd.4xlarge"); + static constexpr uint32_t c7gd_8xlarge_HASH = ConstExprHashingUtils::HashString("c7gd.8xlarge"); + static constexpr uint32_t c7gd_12xlarge_HASH = ConstExprHashingUtils::HashString("c7gd.12xlarge"); + static constexpr uint32_t c7gd_16xlarge_HASH = ConstExprHashingUtils::HashString("c7gd.16xlarge"); + static constexpr uint32_t m7gd_medium_HASH = ConstExprHashingUtils::HashString("m7gd.medium"); + static constexpr uint32_t m7gd_large_HASH = ConstExprHashingUtils::HashString("m7gd.large"); + static constexpr uint32_t m7gd_xlarge_HASH = ConstExprHashingUtils::HashString("m7gd.xlarge"); + static constexpr uint32_t m7gd_2xlarge_HASH = ConstExprHashingUtils::HashString("m7gd.2xlarge"); + static constexpr uint32_t m7gd_4xlarge_HASH = ConstExprHashingUtils::HashString("m7gd.4xlarge"); + static constexpr uint32_t m7gd_8xlarge_HASH = ConstExprHashingUtils::HashString("m7gd.8xlarge"); + static constexpr uint32_t m7gd_12xlarge_HASH = ConstExprHashingUtils::HashString("m7gd.12xlarge"); + static constexpr uint32_t m7gd_16xlarge_HASH = ConstExprHashingUtils::HashString("m7gd.16xlarge"); + static constexpr uint32_t r7gd_medium_HASH = ConstExprHashingUtils::HashString("r7gd.medium"); + static constexpr uint32_t r7gd_large_HASH = ConstExprHashingUtils::HashString("r7gd.large"); + static constexpr uint32_t r7gd_xlarge_HASH = ConstExprHashingUtils::HashString("r7gd.xlarge"); + static constexpr uint32_t r7gd_2xlarge_HASH = ConstExprHashingUtils::HashString("r7gd.2xlarge"); + static constexpr uint32_t r7gd_4xlarge_HASH = ConstExprHashingUtils::HashString("r7gd.4xlarge"); + static constexpr uint32_t r7gd_8xlarge_HASH = ConstExprHashingUtils::HashString("r7gd.8xlarge"); + static constexpr uint32_t r7gd_12xlarge_HASH = ConstExprHashingUtils::HashString("r7gd.12xlarge"); + static constexpr uint32_t r7gd_16xlarge_HASH = ConstExprHashingUtils::HashString("r7gd.16xlarge"); + static constexpr uint32_t r7a_medium_HASH = ConstExprHashingUtils::HashString("r7a.medium"); + static constexpr uint32_t r7a_large_HASH = ConstExprHashingUtils::HashString("r7a.large"); + static constexpr uint32_t r7a_xlarge_HASH = ConstExprHashingUtils::HashString("r7a.xlarge"); + static constexpr uint32_t r7a_2xlarge_HASH = ConstExprHashingUtils::HashString("r7a.2xlarge"); + static constexpr uint32_t r7a_4xlarge_HASH = ConstExprHashingUtils::HashString("r7a.4xlarge"); + static constexpr uint32_t r7a_8xlarge_HASH = ConstExprHashingUtils::HashString("r7a.8xlarge"); + static constexpr uint32_t r7a_12xlarge_HASH = ConstExprHashingUtils::HashString("r7a.12xlarge"); + static constexpr uint32_t r7a_16xlarge_HASH = ConstExprHashingUtils::HashString("r7a.16xlarge"); + static constexpr uint32_t r7a_24xlarge_HASH = ConstExprHashingUtils::HashString("r7a.24xlarge"); + static constexpr uint32_t r7a_32xlarge_HASH = ConstExprHashingUtils::HashString("r7a.32xlarge"); + static constexpr uint32_t r7a_48xlarge_HASH = ConstExprHashingUtils::HashString("r7a.48xlarge"); + static constexpr uint32_t c7i_large_HASH = ConstExprHashingUtils::HashString("c7i.large"); + static constexpr uint32_t c7i_xlarge_HASH = ConstExprHashingUtils::HashString("c7i.xlarge"); + static constexpr uint32_t c7i_2xlarge_HASH = ConstExprHashingUtils::HashString("c7i.2xlarge"); + static constexpr uint32_t c7i_4xlarge_HASH = ConstExprHashingUtils::HashString("c7i.4xlarge"); + static constexpr uint32_t c7i_8xlarge_HASH = ConstExprHashingUtils::HashString("c7i.8xlarge"); + static constexpr uint32_t c7i_12xlarge_HASH = ConstExprHashingUtils::HashString("c7i.12xlarge"); + static constexpr uint32_t c7i_16xlarge_HASH = ConstExprHashingUtils::HashString("c7i.16xlarge"); + static constexpr uint32_t c7i_24xlarge_HASH = ConstExprHashingUtils::HashString("c7i.24xlarge"); + static constexpr uint32_t c7i_48xlarge_HASH = ConstExprHashingUtils::HashString("c7i.48xlarge"); + static constexpr uint32_t mac2_m2pro_metal_HASH = ConstExprHashingUtils::HashString("mac2-m2pro.metal"); + static constexpr uint32_t r7iz_large_HASH = ConstExprHashingUtils::HashString("r7iz.large"); + static constexpr uint32_t r7iz_xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.xlarge"); + static constexpr uint32_t r7iz_2xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.2xlarge"); + static constexpr uint32_t r7iz_4xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.4xlarge"); + static constexpr uint32_t r7iz_8xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.8xlarge"); + static constexpr uint32_t r7iz_12xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.12xlarge"); + static constexpr uint32_t r7iz_16xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.16xlarge"); + static constexpr uint32_t r7iz_32xlarge_HASH = ConstExprHashingUtils::HashString("r7iz.32xlarge"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == a1_medium_HASH) { @@ -1389,7 +1389,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == g3s_xlarge_HASH) { @@ -2003,7 +2003,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper2(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper2(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == m5dn_2xlarge_HASH) { @@ -2617,7 +2617,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper3(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper3(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == r5d_24xlarge_HASH) { @@ -3231,7 +3231,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper4(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper4(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == x2iedn_xlarge_HASH) { @@ -3845,7 +3845,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper5(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper5(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == r6idn_large_HASH) { @@ -4459,7 +4459,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper6(int hashCode, InstanceType& enumValue) + static bool GetEnumForNameHelper6(uint32_t hashCode, InstanceType& enumValue) { if (hashCode == c7i_xlarge_HASH) { @@ -6855,7 +6855,7 @@ namespace Aws InstanceType GetInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); InstanceType enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceTypeHypervisor.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceTypeHypervisor.cpp index 14ed8ed2979..442b9794b2b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InstanceTypeHypervisor.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InstanceTypeHypervisor.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceTypeHypervisorMapper { - static const int nitro_HASH = HashingUtils::HashString("nitro"); - static const int xen_HASH = HashingUtils::HashString("xen"); + static constexpr uint32_t nitro_HASH = ConstExprHashingUtils::HashString("nitro"); + static constexpr uint32_t xen_HASH = ConstExprHashingUtils::HashString("xen"); InstanceTypeHypervisor GetInstanceTypeHypervisorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == nitro_HASH) { return InstanceTypeHypervisor::nitro; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InterfacePermissionType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InterfacePermissionType.cpp index 92f3f06e33d..fecd9d20149 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InterfacePermissionType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InterfacePermissionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InterfacePermissionTypeMapper { - static const int INSTANCE_ATTACH_HASH = HashingUtils::HashString("INSTANCE-ATTACH"); - static const int EIP_ASSOCIATE_HASH = HashingUtils::HashString("EIP-ASSOCIATE"); + static constexpr uint32_t INSTANCE_ATTACH_HASH = ConstExprHashingUtils::HashString("INSTANCE-ATTACH"); + static constexpr uint32_t EIP_ASSOCIATE_HASH = ConstExprHashingUtils::HashString("EIP-ASSOCIATE"); InterfacePermissionType GetInterfacePermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANCE_ATTACH_HASH) { return InterfacePermissionType::INSTANCE_ATTACH; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/InterfaceProtocolType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/InterfaceProtocolType.cpp index 83fa89eea48..d2a1e6db6cf 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/InterfaceProtocolType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/InterfaceProtocolType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InterfaceProtocolTypeMapper { - static const int VLAN_HASH = HashingUtils::HashString("VLAN"); - static const int GRE_HASH = HashingUtils::HashString("GRE"); + static constexpr uint32_t VLAN_HASH = ConstExprHashingUtils::HashString("VLAN"); + static constexpr uint32_t GRE_HASH = ConstExprHashingUtils::HashString("GRE"); InterfaceProtocolType GetInterfaceProtocolTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VLAN_HASH) { return InterfaceProtocolType::VLAN; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpAddressType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpAddressType.cpp index f35a0e80c8d..7be96322cae 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpAddressType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpAddressType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IpAddressTypeMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int dualstack_HASH = HashingUtils::HashString("dualstack"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t dualstack_HASH = ConstExprHashingUtils::HashString("dualstack"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); IpAddressType GetIpAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return IpAddressType::ipv4; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamAddressHistoryResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamAddressHistoryResourceType.cpp index 6348084e0cf..c8d5bbc3370 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamAddressHistoryResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamAddressHistoryResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IpamAddressHistoryResourceTypeMapper { - static const int eip_HASH = HashingUtils::HashString("eip"); - static const int vpc_HASH = HashingUtils::HashString("vpc"); - static const int subnet_HASH = HashingUtils::HashString("subnet"); - static const int network_interface_HASH = HashingUtils::HashString("network-interface"); - static const int instance_HASH = HashingUtils::HashString("instance"); + static constexpr uint32_t eip_HASH = ConstExprHashingUtils::HashString("eip"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); + static constexpr uint32_t subnet_HASH = ConstExprHashingUtils::HashString("subnet"); + static constexpr uint32_t network_interface_HASH = ConstExprHashingUtils::HashString("network-interface"); + static constexpr uint32_t instance_HASH = ConstExprHashingUtils::HashString("instance"); IpamAddressHistoryResourceType GetIpamAddressHistoryResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == eip_HASH) { return IpamAddressHistoryResourceType::eip; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamAssociatedResourceDiscoveryStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamAssociatedResourceDiscoveryStatus.cpp index 248bcde0570..22be580ba9b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamAssociatedResourceDiscoveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamAssociatedResourceDiscoveryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpamAssociatedResourceDiscoveryStatusMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int not_found_HASH = HashingUtils::HashString("not-found"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t not_found_HASH = ConstExprHashingUtils::HashString("not-found"); IpamAssociatedResourceDiscoveryStatus GetIpamAssociatedResourceDiscoveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return IpamAssociatedResourceDiscoveryStatus::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamComplianceStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamComplianceStatus.cpp index b659d80d52b..bd8c5f2dfac 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamComplianceStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamComplianceStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IpamComplianceStatusMapper { - static const int compliant_HASH = HashingUtils::HashString("compliant"); - static const int noncompliant_HASH = HashingUtils::HashString("noncompliant"); - static const int unmanaged_HASH = HashingUtils::HashString("unmanaged"); - static const int ignored_HASH = HashingUtils::HashString("ignored"); + static constexpr uint32_t compliant_HASH = ConstExprHashingUtils::HashString("compliant"); + static constexpr uint32_t noncompliant_HASH = ConstExprHashingUtils::HashString("noncompliant"); + static constexpr uint32_t unmanaged_HASH = ConstExprHashingUtils::HashString("unmanaged"); + static constexpr uint32_t ignored_HASH = ConstExprHashingUtils::HashString("ignored"); IpamComplianceStatus GetIpamComplianceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == compliant_HASH) { return IpamComplianceStatus::compliant; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamDiscoveryFailureCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamDiscoveryFailureCode.cpp index b8fbf439ee9..7ddc0b19674 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamDiscoveryFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamDiscoveryFailureCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IpamDiscoveryFailureCodeMapper { - static const int assume_role_failure_HASH = HashingUtils::HashString("assume-role-failure"); - static const int throttling_failure_HASH = HashingUtils::HashString("throttling-failure"); - static const int unauthorized_failure_HASH = HashingUtils::HashString("unauthorized-failure"); + static constexpr uint32_t assume_role_failure_HASH = ConstExprHashingUtils::HashString("assume-role-failure"); + static constexpr uint32_t throttling_failure_HASH = ConstExprHashingUtils::HashString("throttling-failure"); + static constexpr uint32_t unauthorized_failure_HASH = ConstExprHashingUtils::HashString("unauthorized-failure"); IpamDiscoveryFailureCode GetIpamDiscoveryFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == assume_role_failure_HASH) { return IpamDiscoveryFailureCode::assume_role_failure; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamManagementState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamManagementState.cpp index 0157f334172..879f3b18067 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamManagementState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamManagementState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IpamManagementStateMapper { - static const int managed_HASH = HashingUtils::HashString("managed"); - static const int unmanaged_HASH = HashingUtils::HashString("unmanaged"); - static const int ignored_HASH = HashingUtils::HashString("ignored"); + static constexpr uint32_t managed_HASH = ConstExprHashingUtils::HashString("managed"); + static constexpr uint32_t unmanaged_HASH = ConstExprHashingUtils::HashString("unmanaged"); + static constexpr uint32_t ignored_HASH = ConstExprHashingUtils::HashString("ignored"); IpamManagementState GetIpamManagementStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == managed_HASH) { return IpamManagementState::managed; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamOverlapStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamOverlapStatus.cpp index 67a88499461..e789e48b2a0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamOverlapStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamOverlapStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IpamOverlapStatusMapper { - static const int overlapping_HASH = HashingUtils::HashString("overlapping"); - static const int nonoverlapping_HASH = HashingUtils::HashString("nonoverlapping"); - static const int ignored_HASH = HashingUtils::HashString("ignored"); + static constexpr uint32_t overlapping_HASH = ConstExprHashingUtils::HashString("overlapping"); + static constexpr uint32_t nonoverlapping_HASH = ConstExprHashingUtils::HashString("nonoverlapping"); + static constexpr uint32_t ignored_HASH = ConstExprHashingUtils::HashString("ignored"); IpamOverlapStatus GetIpamOverlapStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == overlapping_HASH) { return IpamOverlapStatus::overlapping; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAllocationResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAllocationResourceType.cpp index 36fbc434e4d..25f3aab32b0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAllocationResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAllocationResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IpamPoolAllocationResourceTypeMapper { - static const int ipam_pool_HASH = HashingUtils::HashString("ipam-pool"); - static const int vpc_HASH = HashingUtils::HashString("vpc"); - static const int ec2_public_ipv4_pool_HASH = HashingUtils::HashString("ec2-public-ipv4-pool"); - static const int custom_HASH = HashingUtils::HashString("custom"); + static constexpr uint32_t ipam_pool_HASH = ConstExprHashingUtils::HashString("ipam-pool"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); + static constexpr uint32_t ec2_public_ipv4_pool_HASH = ConstExprHashingUtils::HashString("ec2-public-ipv4-pool"); + static constexpr uint32_t custom_HASH = ConstExprHashingUtils::HashString("custom"); IpamPoolAllocationResourceType GetIpamPoolAllocationResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipam_pool_HASH) { return IpamPoolAllocationResourceType::ipam_pool; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAwsService.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAwsService.cpp index 67f89627f6a..21781b08466 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAwsService.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolAwsService.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IpamPoolAwsServiceMapper { - static const int ec2_HASH = HashingUtils::HashString("ec2"); + static constexpr uint32_t ec2_HASH = ConstExprHashingUtils::HashString("ec2"); IpamPoolAwsService GetIpamPoolAwsServiceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ec2_HASH) { return IpamPoolAwsService::ec2; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrFailureCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrFailureCode.cpp index 246bfef25ff..bc9372fcd64 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrFailureCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpamPoolCidrFailureCodeMapper { - static const int cidr_not_available_HASH = HashingUtils::HashString("cidr-not-available"); - static const int limit_exceeded_HASH = HashingUtils::HashString("limit-exceeded"); + static constexpr uint32_t cidr_not_available_HASH = ConstExprHashingUtils::HashString("cidr-not-available"); + static constexpr uint32_t limit_exceeded_HASH = ConstExprHashingUtils::HashString("limit-exceeded"); IpamPoolCidrFailureCode GetIpamPoolCidrFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cidr_not_available_HASH) { return IpamPoolCidrFailureCode::cidr_not_available; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrState.cpp index c5351e3c13b..f0f83e5972b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolCidrState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace IpamPoolCidrStateMapper { - static const int pending_provision_HASH = HashingUtils::HashString("pending-provision"); - static const int provisioned_HASH = HashingUtils::HashString("provisioned"); - static const int failed_provision_HASH = HashingUtils::HashString("failed-provision"); - static const int pending_deprovision_HASH = HashingUtils::HashString("pending-deprovision"); - static const int deprovisioned_HASH = HashingUtils::HashString("deprovisioned"); - static const int failed_deprovision_HASH = HashingUtils::HashString("failed-deprovision"); - static const int pending_import_HASH = HashingUtils::HashString("pending-import"); - static const int failed_import_HASH = HashingUtils::HashString("failed-import"); + static constexpr uint32_t pending_provision_HASH = ConstExprHashingUtils::HashString("pending-provision"); + static constexpr uint32_t provisioned_HASH = ConstExprHashingUtils::HashString("provisioned"); + static constexpr uint32_t failed_provision_HASH = ConstExprHashingUtils::HashString("failed-provision"); + static constexpr uint32_t pending_deprovision_HASH = ConstExprHashingUtils::HashString("pending-deprovision"); + static constexpr uint32_t deprovisioned_HASH = ConstExprHashingUtils::HashString("deprovisioned"); + static constexpr uint32_t failed_deprovision_HASH = ConstExprHashingUtils::HashString("failed-deprovision"); + static constexpr uint32_t pending_import_HASH = ConstExprHashingUtils::HashString("pending-import"); + static constexpr uint32_t failed_import_HASH = ConstExprHashingUtils::HashString("failed-import"); IpamPoolCidrState GetIpamPoolCidrStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_provision_HASH) { return IpamPoolCidrState::pending_provision; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolPublicIpSource.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolPublicIpSource.cpp index 2d71c84e6d9..0f77baeced5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolPublicIpSource.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolPublicIpSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpamPoolPublicIpSourceMapper { - static const int amazon_HASH = HashingUtils::HashString("amazon"); - static const int byoip_HASH = HashingUtils::HashString("byoip"); + static constexpr uint32_t amazon_HASH = ConstExprHashingUtils::HashString("amazon"); + static constexpr uint32_t byoip_HASH = ConstExprHashingUtils::HashString("byoip"); IpamPoolPublicIpSource GetIpamPoolPublicIpSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == amazon_HASH) { return IpamPoolPublicIpSource::amazon; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolState.cpp index 1a2e89922ca..26c7db846bf 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamPoolState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace IpamPoolStateMapper { - static const int create_in_progress_HASH = HashingUtils::HashString("create-in-progress"); - static const int create_complete_HASH = HashingUtils::HashString("create-complete"); - static const int create_failed_HASH = HashingUtils::HashString("create-failed"); - static const int modify_in_progress_HASH = HashingUtils::HashString("modify-in-progress"); - static const int modify_complete_HASH = HashingUtils::HashString("modify-complete"); - static const int modify_failed_HASH = HashingUtils::HashString("modify-failed"); - static const int delete_in_progress_HASH = HashingUtils::HashString("delete-in-progress"); - static const int delete_complete_HASH = HashingUtils::HashString("delete-complete"); - static const int delete_failed_HASH = HashingUtils::HashString("delete-failed"); - static const int isolate_in_progress_HASH = HashingUtils::HashString("isolate-in-progress"); - static const int isolate_complete_HASH = HashingUtils::HashString("isolate-complete"); - static const int restore_in_progress_HASH = HashingUtils::HashString("restore-in-progress"); + static constexpr uint32_t create_in_progress_HASH = ConstExprHashingUtils::HashString("create-in-progress"); + static constexpr uint32_t create_complete_HASH = ConstExprHashingUtils::HashString("create-complete"); + static constexpr uint32_t create_failed_HASH = ConstExprHashingUtils::HashString("create-failed"); + static constexpr uint32_t modify_in_progress_HASH = ConstExprHashingUtils::HashString("modify-in-progress"); + static constexpr uint32_t modify_complete_HASH = ConstExprHashingUtils::HashString("modify-complete"); + static constexpr uint32_t modify_failed_HASH = ConstExprHashingUtils::HashString("modify-failed"); + static constexpr uint32_t delete_in_progress_HASH = ConstExprHashingUtils::HashString("delete-in-progress"); + static constexpr uint32_t delete_complete_HASH = ConstExprHashingUtils::HashString("delete-complete"); + static constexpr uint32_t delete_failed_HASH = ConstExprHashingUtils::HashString("delete-failed"); + static constexpr uint32_t isolate_in_progress_HASH = ConstExprHashingUtils::HashString("isolate-in-progress"); + static constexpr uint32_t isolate_complete_HASH = ConstExprHashingUtils::HashString("isolate-complete"); + static constexpr uint32_t restore_in_progress_HASH = ConstExprHashingUtils::HashString("restore-in-progress"); IpamPoolState GetIpamPoolStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_in_progress_HASH) { return IpamPoolState::create_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryAssociationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryAssociationState.cpp index 8371d14f9ca..62ddf01e73d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryAssociationState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace IpamResourceDiscoveryAssociationStateMapper { - static const int associate_in_progress_HASH = HashingUtils::HashString("associate-in-progress"); - static const int associate_complete_HASH = HashingUtils::HashString("associate-complete"); - static const int associate_failed_HASH = HashingUtils::HashString("associate-failed"); - static const int disassociate_in_progress_HASH = HashingUtils::HashString("disassociate-in-progress"); - static const int disassociate_complete_HASH = HashingUtils::HashString("disassociate-complete"); - static const int disassociate_failed_HASH = HashingUtils::HashString("disassociate-failed"); - static const int isolate_in_progress_HASH = HashingUtils::HashString("isolate-in-progress"); - static const int isolate_complete_HASH = HashingUtils::HashString("isolate-complete"); - static const int restore_in_progress_HASH = HashingUtils::HashString("restore-in-progress"); + static constexpr uint32_t associate_in_progress_HASH = ConstExprHashingUtils::HashString("associate-in-progress"); + static constexpr uint32_t associate_complete_HASH = ConstExprHashingUtils::HashString("associate-complete"); + static constexpr uint32_t associate_failed_HASH = ConstExprHashingUtils::HashString("associate-failed"); + static constexpr uint32_t disassociate_in_progress_HASH = ConstExprHashingUtils::HashString("disassociate-in-progress"); + static constexpr uint32_t disassociate_complete_HASH = ConstExprHashingUtils::HashString("disassociate-complete"); + static constexpr uint32_t disassociate_failed_HASH = ConstExprHashingUtils::HashString("disassociate-failed"); + static constexpr uint32_t isolate_in_progress_HASH = ConstExprHashingUtils::HashString("isolate-in-progress"); + static constexpr uint32_t isolate_complete_HASH = ConstExprHashingUtils::HashString("isolate-complete"); + static constexpr uint32_t restore_in_progress_HASH = ConstExprHashingUtils::HashString("restore-in-progress"); IpamResourceDiscoveryAssociationState GetIpamResourceDiscoveryAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associate_in_progress_HASH) { return IpamResourceDiscoveryAssociationState::associate_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryState.cpp index 97a1eb807d8..c1634129472 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceDiscoveryState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace IpamResourceDiscoveryStateMapper { - static const int create_in_progress_HASH = HashingUtils::HashString("create-in-progress"); - static const int create_complete_HASH = HashingUtils::HashString("create-complete"); - static const int create_failed_HASH = HashingUtils::HashString("create-failed"); - static const int modify_in_progress_HASH = HashingUtils::HashString("modify-in-progress"); - static const int modify_complete_HASH = HashingUtils::HashString("modify-complete"); - static const int modify_failed_HASH = HashingUtils::HashString("modify-failed"); - static const int delete_in_progress_HASH = HashingUtils::HashString("delete-in-progress"); - static const int delete_complete_HASH = HashingUtils::HashString("delete-complete"); - static const int delete_failed_HASH = HashingUtils::HashString("delete-failed"); - static const int isolate_in_progress_HASH = HashingUtils::HashString("isolate-in-progress"); - static const int isolate_complete_HASH = HashingUtils::HashString("isolate-complete"); - static const int restore_in_progress_HASH = HashingUtils::HashString("restore-in-progress"); + static constexpr uint32_t create_in_progress_HASH = ConstExprHashingUtils::HashString("create-in-progress"); + static constexpr uint32_t create_complete_HASH = ConstExprHashingUtils::HashString("create-complete"); + static constexpr uint32_t create_failed_HASH = ConstExprHashingUtils::HashString("create-failed"); + static constexpr uint32_t modify_in_progress_HASH = ConstExprHashingUtils::HashString("modify-in-progress"); + static constexpr uint32_t modify_complete_HASH = ConstExprHashingUtils::HashString("modify-complete"); + static constexpr uint32_t modify_failed_HASH = ConstExprHashingUtils::HashString("modify-failed"); + static constexpr uint32_t delete_in_progress_HASH = ConstExprHashingUtils::HashString("delete-in-progress"); + static constexpr uint32_t delete_complete_HASH = ConstExprHashingUtils::HashString("delete-complete"); + static constexpr uint32_t delete_failed_HASH = ConstExprHashingUtils::HashString("delete-failed"); + static constexpr uint32_t isolate_in_progress_HASH = ConstExprHashingUtils::HashString("isolate-in-progress"); + static constexpr uint32_t isolate_complete_HASH = ConstExprHashingUtils::HashString("isolate-complete"); + static constexpr uint32_t restore_in_progress_HASH = ConstExprHashingUtils::HashString("restore-in-progress"); IpamResourceDiscoveryState GetIpamResourceDiscoveryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_in_progress_HASH) { return IpamResourceDiscoveryState::create_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceType.cpp index c75814cb0fc..ddd0cef7679 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IpamResourceTypeMapper { - static const int vpc_HASH = HashingUtils::HashString("vpc"); - static const int subnet_HASH = HashingUtils::HashString("subnet"); - static const int eip_HASH = HashingUtils::HashString("eip"); - static const int public_ipv4_pool_HASH = HashingUtils::HashString("public-ipv4-pool"); - static const int ipv6_pool_HASH = HashingUtils::HashString("ipv6-pool"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); + static constexpr uint32_t subnet_HASH = ConstExprHashingUtils::HashString("subnet"); + static constexpr uint32_t eip_HASH = ConstExprHashingUtils::HashString("eip"); + static constexpr uint32_t public_ipv4_pool_HASH = ConstExprHashingUtils::HashString("public-ipv4-pool"); + static constexpr uint32_t ipv6_pool_HASH = ConstExprHashingUtils::HashString("ipv6-pool"); IpamResourceType GetIpamResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vpc_HASH) { return IpamResourceType::vpc; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeState.cpp index cb065348a73..5d8783a73f3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace IpamScopeStateMapper { - static const int create_in_progress_HASH = HashingUtils::HashString("create-in-progress"); - static const int create_complete_HASH = HashingUtils::HashString("create-complete"); - static const int create_failed_HASH = HashingUtils::HashString("create-failed"); - static const int modify_in_progress_HASH = HashingUtils::HashString("modify-in-progress"); - static const int modify_complete_HASH = HashingUtils::HashString("modify-complete"); - static const int modify_failed_HASH = HashingUtils::HashString("modify-failed"); - static const int delete_in_progress_HASH = HashingUtils::HashString("delete-in-progress"); - static const int delete_complete_HASH = HashingUtils::HashString("delete-complete"); - static const int delete_failed_HASH = HashingUtils::HashString("delete-failed"); - static const int isolate_in_progress_HASH = HashingUtils::HashString("isolate-in-progress"); - static const int isolate_complete_HASH = HashingUtils::HashString("isolate-complete"); - static const int restore_in_progress_HASH = HashingUtils::HashString("restore-in-progress"); + static constexpr uint32_t create_in_progress_HASH = ConstExprHashingUtils::HashString("create-in-progress"); + static constexpr uint32_t create_complete_HASH = ConstExprHashingUtils::HashString("create-complete"); + static constexpr uint32_t create_failed_HASH = ConstExprHashingUtils::HashString("create-failed"); + static constexpr uint32_t modify_in_progress_HASH = ConstExprHashingUtils::HashString("modify-in-progress"); + static constexpr uint32_t modify_complete_HASH = ConstExprHashingUtils::HashString("modify-complete"); + static constexpr uint32_t modify_failed_HASH = ConstExprHashingUtils::HashString("modify-failed"); + static constexpr uint32_t delete_in_progress_HASH = ConstExprHashingUtils::HashString("delete-in-progress"); + static constexpr uint32_t delete_complete_HASH = ConstExprHashingUtils::HashString("delete-complete"); + static constexpr uint32_t delete_failed_HASH = ConstExprHashingUtils::HashString("delete-failed"); + static constexpr uint32_t isolate_in_progress_HASH = ConstExprHashingUtils::HashString("isolate-in-progress"); + static constexpr uint32_t isolate_complete_HASH = ConstExprHashingUtils::HashString("isolate-complete"); + static constexpr uint32_t restore_in_progress_HASH = ConstExprHashingUtils::HashString("restore-in-progress"); IpamScopeState GetIpamScopeStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_in_progress_HASH) { return IpamScopeState::create_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeType.cpp index 2875f9368e1..168339e5e12 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamScopeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpamScopeTypeMapper { - static const int public__HASH = HashingUtils::HashString("public"); - static const int private__HASH = HashingUtils::HashString("private"); + static constexpr uint32_t public__HASH = ConstExprHashingUtils::HashString("public"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); IpamScopeType GetIpamScopeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == public__HASH) { return IpamScopeType::public_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/IpamState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/IpamState.cpp index 653b9b2d517..3f7f4a10288 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/IpamState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/IpamState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace IpamStateMapper { - static const int create_in_progress_HASH = HashingUtils::HashString("create-in-progress"); - static const int create_complete_HASH = HashingUtils::HashString("create-complete"); - static const int create_failed_HASH = HashingUtils::HashString("create-failed"); - static const int modify_in_progress_HASH = HashingUtils::HashString("modify-in-progress"); - static const int modify_complete_HASH = HashingUtils::HashString("modify-complete"); - static const int modify_failed_HASH = HashingUtils::HashString("modify-failed"); - static const int delete_in_progress_HASH = HashingUtils::HashString("delete-in-progress"); - static const int delete_complete_HASH = HashingUtils::HashString("delete-complete"); - static const int delete_failed_HASH = HashingUtils::HashString("delete-failed"); - static const int isolate_in_progress_HASH = HashingUtils::HashString("isolate-in-progress"); - static const int isolate_complete_HASH = HashingUtils::HashString("isolate-complete"); - static const int restore_in_progress_HASH = HashingUtils::HashString("restore-in-progress"); + static constexpr uint32_t create_in_progress_HASH = ConstExprHashingUtils::HashString("create-in-progress"); + static constexpr uint32_t create_complete_HASH = ConstExprHashingUtils::HashString("create-complete"); + static constexpr uint32_t create_failed_HASH = ConstExprHashingUtils::HashString("create-failed"); + static constexpr uint32_t modify_in_progress_HASH = ConstExprHashingUtils::HashString("modify-in-progress"); + static constexpr uint32_t modify_complete_HASH = ConstExprHashingUtils::HashString("modify-complete"); + static constexpr uint32_t modify_failed_HASH = ConstExprHashingUtils::HashString("modify-failed"); + static constexpr uint32_t delete_in_progress_HASH = ConstExprHashingUtils::HashString("delete-in-progress"); + static constexpr uint32_t delete_complete_HASH = ConstExprHashingUtils::HashString("delete-complete"); + static constexpr uint32_t delete_failed_HASH = ConstExprHashingUtils::HashString("delete-failed"); + static constexpr uint32_t isolate_in_progress_HASH = ConstExprHashingUtils::HashString("isolate-in-progress"); + static constexpr uint32_t isolate_complete_HASH = ConstExprHashingUtils::HashString("isolate-complete"); + static constexpr uint32_t restore_in_progress_HASH = ConstExprHashingUtils::HashString("restore-in-progress"); IpamState GetIpamStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_in_progress_HASH) { return IpamState::create_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Ipv6SupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Ipv6SupportValue.cpp index fbe5931dbd9..506ca98697c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Ipv6SupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Ipv6SupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ipv6SupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); Ipv6SupportValue GetIpv6SupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return Ipv6SupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/KeyFormat.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/KeyFormat.cpp index d3c26ec84d8..ea6a8275930 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/KeyFormat.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/KeyFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyFormatMapper { - static const int pem_HASH = HashingUtils::HashString("pem"); - static const int ppk_HASH = HashingUtils::HashString("ppk"); + static constexpr uint32_t pem_HASH = ConstExprHashingUtils::HashString("pem"); + static constexpr uint32_t ppk_HASH = ConstExprHashingUtils::HashString("ppk"); KeyFormat GetKeyFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pem_HASH) { return KeyFormat::pem; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/KeyType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/KeyType.cpp index ae7a3dfcab6..dc84d7ac151 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/KeyType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/KeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyTypeMapper { - static const int rsa_HASH = HashingUtils::HashString("rsa"); - static const int ed25519_HASH = HashingUtils::HashString("ed25519"); + static constexpr uint32_t rsa_HASH = ConstExprHashingUtils::HashString("rsa"); + static constexpr uint32_t ed25519_HASH = ConstExprHashingUtils::HashString("ed25519"); KeyType GetKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == rsa_HASH) { return KeyType::rsa; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateAutoRecoveryState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateAutoRecoveryState.cpp index c92454fbc10..afc462f726a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateAutoRecoveryState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateAutoRecoveryState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchTemplateAutoRecoveryStateMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); LaunchTemplateAutoRecoveryState GetLaunchTemplateAutoRecoveryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return LaunchTemplateAutoRecoveryState::default_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateErrorCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateErrorCode.cpp index b41375c4a5e..449bf707cfe 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LaunchTemplateErrorCodeMapper { - static const int launchTemplateIdDoesNotExist_HASH = HashingUtils::HashString("launchTemplateIdDoesNotExist"); - static const int launchTemplateIdMalformed_HASH = HashingUtils::HashString("launchTemplateIdMalformed"); - static const int launchTemplateNameDoesNotExist_HASH = HashingUtils::HashString("launchTemplateNameDoesNotExist"); - static const int launchTemplateNameMalformed_HASH = HashingUtils::HashString("launchTemplateNameMalformed"); - static const int launchTemplateVersionDoesNotExist_HASH = HashingUtils::HashString("launchTemplateVersionDoesNotExist"); - static const int unexpectedError_HASH = HashingUtils::HashString("unexpectedError"); + static constexpr uint32_t launchTemplateIdDoesNotExist_HASH = ConstExprHashingUtils::HashString("launchTemplateIdDoesNotExist"); + static constexpr uint32_t launchTemplateIdMalformed_HASH = ConstExprHashingUtils::HashString("launchTemplateIdMalformed"); + static constexpr uint32_t launchTemplateNameDoesNotExist_HASH = ConstExprHashingUtils::HashString("launchTemplateNameDoesNotExist"); + static constexpr uint32_t launchTemplateNameMalformed_HASH = ConstExprHashingUtils::HashString("launchTemplateNameMalformed"); + static constexpr uint32_t launchTemplateVersionDoesNotExist_HASH = ConstExprHashingUtils::HashString("launchTemplateVersionDoesNotExist"); + static constexpr uint32_t unexpectedError_HASH = ConstExprHashingUtils::HashString("unexpectedError"); LaunchTemplateErrorCode GetLaunchTemplateErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == launchTemplateIdDoesNotExist_HASH) { return LaunchTemplateErrorCode::launchTemplateIdDoesNotExist; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateHttpTokensState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateHttpTokensState.cpp index 29fd315b0aa..599a05623fc 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateHttpTokensState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateHttpTokensState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchTemplateHttpTokensStateMapper { - static const int optional_HASH = HashingUtils::HashString("optional"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t optional_HASH = ConstExprHashingUtils::HashString("optional"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); LaunchTemplateHttpTokensState GetLaunchTemplateHttpTokensStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == optional_HASH) { return LaunchTemplateHttpTokensState::optional; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataEndpointState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataEndpointState.cpp index 51acfef77f4..db559241352 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataEndpointState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataEndpointState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchTemplateInstanceMetadataEndpointStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); LaunchTemplateInstanceMetadataEndpointState GetLaunchTemplateInstanceMetadataEndpointStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return LaunchTemplateInstanceMetadataEndpointState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataOptionsState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataOptionsState.cpp index b1664bb7d5c..6bc34d16655 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataOptionsState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataOptionsState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchTemplateInstanceMetadataOptionsStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int applied_HASH = HashingUtils::HashString("applied"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t applied_HASH = ConstExprHashingUtils::HashString("applied"); LaunchTemplateInstanceMetadataOptionsState GetLaunchTemplateInstanceMetadataOptionsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return LaunchTemplateInstanceMetadataOptionsState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataProtocolIpv6.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataProtocolIpv6.cpp index 2719b457124..246153f974c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataProtocolIpv6.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataProtocolIpv6.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchTemplateInstanceMetadataProtocolIpv6Mapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); LaunchTemplateInstanceMetadataProtocolIpv6 GetLaunchTemplateInstanceMetadataProtocolIpv6ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return LaunchTemplateInstanceMetadataProtocolIpv6::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataTagsState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataTagsState.cpp index ab755642812..6f80066c14e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataTagsState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LaunchTemplateInstanceMetadataTagsState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchTemplateInstanceMetadataTagsStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); LaunchTemplateInstanceMetadataTagsState GetLaunchTemplateInstanceMetadataTagsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return LaunchTemplateInstanceMetadataTagsState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ListingState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ListingState.cpp index 081f2bf1423..e6ee54be0f4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ListingState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ListingState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListingStateMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int sold_HASH = HashingUtils::HashString("sold"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int pending_HASH = HashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t sold_HASH = ConstExprHashingUtils::HashString("sold"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); ListingState GetListingStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return ListingState::available; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ListingStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ListingStatus.cpp index b9a011ccd07..2bbe79a2f30 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ListingStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ListingStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListingStatusMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int closed_HASH = HashingUtils::HashString("closed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t closed_HASH = ConstExprHashingUtils::HashString("closed"); ListingStatus GetListingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return ListingStatus::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteState.cpp index 71130512a49..49d6ec68701 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LocalGatewayRouteStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int blackhole_HASH = HashingUtils::HashString("blackhole"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t blackhole_HASH = ConstExprHashingUtils::HashString("blackhole"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); LocalGatewayRouteState GetLocalGatewayRouteStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return LocalGatewayRouteState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteTableMode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteTableMode.cpp index 7f7fbff81cf..d8304699dd4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteTableMode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteTableMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocalGatewayRouteTableModeMapper { - static const int direct_vpc_routing_HASH = HashingUtils::HashString("direct-vpc-routing"); - static const int coip_HASH = HashingUtils::HashString("coip"); + static constexpr uint32_t direct_vpc_routing_HASH = ConstExprHashingUtils::HashString("direct-vpc-routing"); + static constexpr uint32_t coip_HASH = ConstExprHashingUtils::HashString("coip"); LocalGatewayRouteTableMode GetLocalGatewayRouteTableModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == direct_vpc_routing_HASH) { return LocalGatewayRouteTableMode::direct_vpc_routing; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteType.cpp index 14ef2e7ef61..d35450bacc3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LocalGatewayRouteType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocalGatewayRouteTypeMapper { - static const int static__HASH = HashingUtils::HashString("static"); - static const int propagated_HASH = HashingUtils::HashString("propagated"); + static constexpr uint32_t static__HASH = ConstExprHashingUtils::HashString("static"); + static constexpr uint32_t propagated_HASH = ConstExprHashingUtils::HashString("propagated"); LocalGatewayRouteType GetLocalGatewayRouteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == static__HASH) { return LocalGatewayRouteType::static_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorage.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorage.cpp index 8af86ff3618..e02306489a3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorage.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorage.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LocalStorageMapper { - static const int included_HASH = HashingUtils::HashString("included"); - static const int required_HASH = HashingUtils::HashString("required"); - static const int excluded_HASH = HashingUtils::HashString("excluded"); + static constexpr uint32_t included_HASH = ConstExprHashingUtils::HashString("included"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); + static constexpr uint32_t excluded_HASH = ConstExprHashingUtils::HashString("excluded"); LocalStorage GetLocalStorageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == included_HASH) { return LocalStorage::included; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorageType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorageType.cpp index 32c73260f41..985a08ea081 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorageType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LocalStorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocalStorageTypeMapper { - static const int hdd_HASH = HashingUtils::HashString("hdd"); - static const int ssd_HASH = HashingUtils::HashString("ssd"); + static constexpr uint32_t hdd_HASH = ConstExprHashingUtils::HashString("hdd"); + static constexpr uint32_t ssd_HASH = ConstExprHashingUtils::HashString("ssd"); LocalStorageType GetLocalStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hdd_HASH) { return LocalStorageType::hdd; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LocationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LocationType.cpp index 866e83b371f..bc29d4cbc73 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LocationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LocationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LocationTypeMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int availability_zone_HASH = HashingUtils::HashString("availability-zone"); - static const int availability_zone_id_HASH = HashingUtils::HashString("availability-zone-id"); - static const int outpost_HASH = HashingUtils::HashString("outpost"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t availability_zone_HASH = ConstExprHashingUtils::HashString("availability-zone"); + static constexpr uint32_t availability_zone_id_HASH = ConstExprHashingUtils::HashString("availability-zone-id"); + static constexpr uint32_t outpost_HASH = ConstExprHashingUtils::HashString("outpost"); LocationType GetLocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return LocationType::region; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/LogDestinationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/LogDestinationType.cpp index 5b6efa9bba2..62f6df112a4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/LogDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/LogDestinationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LogDestinationTypeMapper { - static const int cloud_watch_logs_HASH = HashingUtils::HashString("cloud-watch-logs"); - static const int s3_HASH = HashingUtils::HashString("s3"); - static const int kinesis_data_firehose_HASH = HashingUtils::HashString("kinesis-data-firehose"); + static constexpr uint32_t cloud_watch_logs_HASH = ConstExprHashingUtils::HashString("cloud-watch-logs"); + static constexpr uint32_t s3_HASH = ConstExprHashingUtils::HashString("s3"); + static constexpr uint32_t kinesis_data_firehose_HASH = ConstExprHashingUtils::HashString("kinesis-data-firehose"); LogDestinationType GetLogDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cloud_watch_logs_HASH) { return LogDestinationType::cloud_watch_logs; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/MarketType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/MarketType.cpp index a42ad5beedd..a0d4c5b53c6 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/MarketType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/MarketType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MarketTypeMapper { - static const int spot_HASH = HashingUtils::HashString("spot"); + static constexpr uint32_t spot_HASH = ConstExprHashingUtils::HashString("spot"); MarketType GetMarketTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == spot_HASH) { return MarketType::spot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/MembershipType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/MembershipType.cpp index 4c396b3db67..95af22ffdc0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/MembershipType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/MembershipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MembershipTypeMapper { - static const int static__HASH = HashingUtils::HashString("static"); - static const int igmp_HASH = HashingUtils::HashString("igmp"); + static constexpr uint32_t static__HASH = ConstExprHashingUtils::HashString("static"); + static constexpr uint32_t igmp_HASH = ConstExprHashingUtils::HashString("igmp"); MembershipType GetMembershipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == static__HASH) { return MembershipType::static_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/MetricType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/MetricType.cpp index 40ded64f900..968e7127264 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/MetricType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/MetricType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MetricTypeMapper { - static const int aggregate_latency_HASH = HashingUtils::HashString("aggregate-latency"); + static constexpr uint32_t aggregate_latency_HASH = ConstExprHashingUtils::HashString("aggregate-latency"); MetricType GetMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aggregate_latency_HASH) { return MetricType::aggregate_latency; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ModifyAvailabilityZoneOptInStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ModifyAvailabilityZoneOptInStatus.cpp index f480718aedc..9a6d953ea9c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ModifyAvailabilityZoneOptInStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ModifyAvailabilityZoneOptInStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModifyAvailabilityZoneOptInStatusMapper { - static const int opted_in_HASH = HashingUtils::HashString("opted-in"); - static const int not_opted_in_HASH = HashingUtils::HashString("not-opted-in"); + static constexpr uint32_t opted_in_HASH = ConstExprHashingUtils::HashString("opted-in"); + static constexpr uint32_t not_opted_in_HASH = ConstExprHashingUtils::HashString("not-opted-in"); ModifyAvailabilityZoneOptInStatus GetModifyAvailabilityZoneOptInStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == opted_in_HASH) { return ModifyAvailabilityZoneOptInStatus::opted_in; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/MonitoringState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/MonitoringState.cpp index 3536a9764a4..a628268530f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/MonitoringState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/MonitoringState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MonitoringStateMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int pending_HASH = HashingUtils::HashString("pending"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); MonitoringState GetMonitoringStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return MonitoringState::disabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/MoveStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/MoveStatus.cpp index 5ebeccc22c3..6498bc630fd 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/MoveStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/MoveStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MoveStatusMapper { - static const int movingToVpc_HASH = HashingUtils::HashString("movingToVpc"); - static const int restoringToClassic_HASH = HashingUtils::HashString("restoringToClassic"); + static constexpr uint32_t movingToVpc_HASH = ConstExprHashingUtils::HashString("movingToVpc"); + static constexpr uint32_t restoringToClassic_HASH = ConstExprHashingUtils::HashString("restoringToClassic"); MoveStatus GetMoveStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == movingToVpc_HASH) { return MoveStatus::movingToVpc; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/MulticastSupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/MulticastSupportValue.cpp index 118bf90d466..a140e87c7a8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/MulticastSupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/MulticastSupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MulticastSupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); MulticastSupportValue GetMulticastSupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return MulticastSupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayAddressStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayAddressStatus.cpp index d018863b2a3..c08b553ed51 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayAddressStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayAddressStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NatGatewayAddressStatusMapper { - static const int assigning_HASH = HashingUtils::HashString("assigning"); - static const int unassigning_HASH = HashingUtils::HashString("unassigning"); - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int succeeded_HASH = HashingUtils::HashString("succeeded"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t assigning_HASH = ConstExprHashingUtils::HashString("assigning"); + static constexpr uint32_t unassigning_HASH = ConstExprHashingUtils::HashString("unassigning"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t succeeded_HASH = ConstExprHashingUtils::HashString("succeeded"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); NatGatewayAddressStatus GetNatGatewayAddressStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == assigning_HASH) { return NatGatewayAddressStatus::assigning; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayState.cpp index 85308fe0661..2fc004eeeb9 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NatGatewayState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NatGatewayStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); NatGatewayState GetNatGatewayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return NatGatewayState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceAttribute.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceAttribute.cpp index 765d76f8a20..1f26630a496 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceAttribute.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceAttribute.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NetworkInterfaceAttributeMapper { - static const int description_HASH = HashingUtils::HashString("description"); - static const int groupSet_HASH = HashingUtils::HashString("groupSet"); - static const int sourceDestCheck_HASH = HashingUtils::HashString("sourceDestCheck"); - static const int attachment_HASH = HashingUtils::HashString("attachment"); + static constexpr uint32_t description_HASH = ConstExprHashingUtils::HashString("description"); + static constexpr uint32_t groupSet_HASH = ConstExprHashingUtils::HashString("groupSet"); + static constexpr uint32_t sourceDestCheck_HASH = ConstExprHashingUtils::HashString("sourceDestCheck"); + static constexpr uint32_t attachment_HASH = ConstExprHashingUtils::HashString("attachment"); NetworkInterfaceAttribute GetNetworkInterfaceAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == description_HASH) { return NetworkInterfaceAttribute::description; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceCreationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceCreationType.cpp index f66df20fd2c..6c6cfa99b0c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceCreationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceCreationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NetworkInterfaceCreationTypeMapper { - static const int efa_HASH = HashingUtils::HashString("efa"); - static const int branch_HASH = HashingUtils::HashString("branch"); - static const int trunk_HASH = HashingUtils::HashString("trunk"); + static constexpr uint32_t efa_HASH = ConstExprHashingUtils::HashString("efa"); + static constexpr uint32_t branch_HASH = ConstExprHashingUtils::HashString("branch"); + static constexpr uint32_t trunk_HASH = ConstExprHashingUtils::HashString("trunk"); NetworkInterfaceCreationType GetNetworkInterfaceCreationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == efa_HASH) { return NetworkInterfaceCreationType::efa; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfacePermissionStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfacePermissionStateCode.cpp index 2eead9a259f..0d336801e48 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfacePermissionStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfacePermissionStateCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NetworkInterfacePermissionStateCodeMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int granted_HASH = HashingUtils::HashString("granted"); - static const int revoking_HASH = HashingUtils::HashString("revoking"); - static const int revoked_HASH = HashingUtils::HashString("revoked"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t granted_HASH = ConstExprHashingUtils::HashString("granted"); + static constexpr uint32_t revoking_HASH = ConstExprHashingUtils::HashString("revoking"); + static constexpr uint32_t revoked_HASH = ConstExprHashingUtils::HashString("revoked"); NetworkInterfacePermissionStateCode GetNetworkInterfacePermissionStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return NetworkInterfacePermissionStateCode::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceStatus.cpp index 8db9a1b4978..33c35dbaa05 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NetworkInterfaceStatusMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int attaching_HASH = HashingUtils::HashString("attaching"); - static const int in_use_HASH = HashingUtils::HashString("in-use"); - static const int detaching_HASH = HashingUtils::HashString("detaching"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t attaching_HASH = ConstExprHashingUtils::HashString("attaching"); + static constexpr uint32_t in_use_HASH = ConstExprHashingUtils::HashString("in-use"); + static constexpr uint32_t detaching_HASH = ConstExprHashingUtils::HashString("detaching"); NetworkInterfaceStatus GetNetworkInterfaceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return NetworkInterfaceStatus::available; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceType.cpp index f24450adedd..e3fec7592b9 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NetworkInterfaceType.cpp @@ -20,28 +20,28 @@ namespace Aws namespace NetworkInterfaceTypeMapper { - static const int interface_HASH = HashingUtils::HashString("interface"); - static const int natGateway_HASH = HashingUtils::HashString("natGateway"); - static const int efa_HASH = HashingUtils::HashString("efa"); - static const int trunk_HASH = HashingUtils::HashString("trunk"); - static const int load_balancer_HASH = HashingUtils::HashString("load_balancer"); - static const int network_load_balancer_HASH = HashingUtils::HashString("network_load_balancer"); - static const int vpc_endpoint_HASH = HashingUtils::HashString("vpc_endpoint"); - static const int branch_HASH = HashingUtils::HashString("branch"); - static const int transit_gateway_HASH = HashingUtils::HashString("transit_gateway"); - static const int lambda_HASH = HashingUtils::HashString("lambda"); - static const int quicksight_HASH = HashingUtils::HashString("quicksight"); - static const int global_accelerator_managed_HASH = HashingUtils::HashString("global_accelerator_managed"); - static const int api_gateway_managed_HASH = HashingUtils::HashString("api_gateway_managed"); - static const int gateway_load_balancer_HASH = HashingUtils::HashString("gateway_load_balancer"); - static const int gateway_load_balancer_endpoint_HASH = HashingUtils::HashString("gateway_load_balancer_endpoint"); - static const int iot_rules_managed_HASH = HashingUtils::HashString("iot_rules_managed"); - static const int aws_codestar_connections_managed_HASH = HashingUtils::HashString("aws_codestar_connections_managed"); + static constexpr uint32_t interface_HASH = ConstExprHashingUtils::HashString("interface"); + static constexpr uint32_t natGateway_HASH = ConstExprHashingUtils::HashString("natGateway"); + static constexpr uint32_t efa_HASH = ConstExprHashingUtils::HashString("efa"); + static constexpr uint32_t trunk_HASH = ConstExprHashingUtils::HashString("trunk"); + static constexpr uint32_t load_balancer_HASH = ConstExprHashingUtils::HashString("load_balancer"); + static constexpr uint32_t network_load_balancer_HASH = ConstExprHashingUtils::HashString("network_load_balancer"); + static constexpr uint32_t vpc_endpoint_HASH = ConstExprHashingUtils::HashString("vpc_endpoint"); + static constexpr uint32_t branch_HASH = ConstExprHashingUtils::HashString("branch"); + static constexpr uint32_t transit_gateway_HASH = ConstExprHashingUtils::HashString("transit_gateway"); + static constexpr uint32_t lambda_HASH = ConstExprHashingUtils::HashString("lambda"); + static constexpr uint32_t quicksight_HASH = ConstExprHashingUtils::HashString("quicksight"); + static constexpr uint32_t global_accelerator_managed_HASH = ConstExprHashingUtils::HashString("global_accelerator_managed"); + static constexpr uint32_t api_gateway_managed_HASH = ConstExprHashingUtils::HashString("api_gateway_managed"); + static constexpr uint32_t gateway_load_balancer_HASH = ConstExprHashingUtils::HashString("gateway_load_balancer"); + static constexpr uint32_t gateway_load_balancer_endpoint_HASH = ConstExprHashingUtils::HashString("gateway_load_balancer_endpoint"); + static constexpr uint32_t iot_rules_managed_HASH = ConstExprHashingUtils::HashString("iot_rules_managed"); + static constexpr uint32_t aws_codestar_connections_managed_HASH = ConstExprHashingUtils::HashString("aws_codestar_connections_managed"); NetworkInterfaceType GetNetworkInterfaceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == interface_HASH) { return NetworkInterfaceType::interface; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NitroEnclavesSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NitroEnclavesSupport.cpp index 424c3cd179c..53f625b3b63 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NitroEnclavesSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NitroEnclavesSupport.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NitroEnclavesSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); NitroEnclavesSupport GetNitroEnclavesSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return NitroEnclavesSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NitroTpmSupport.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NitroTpmSupport.cpp index 81fe07886b4..3400907cff4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NitroTpmSupport.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NitroTpmSupport.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NitroTpmSupportMapper { - static const int unsupported_HASH = HashingUtils::HashString("unsupported"); - static const int supported_HASH = HashingUtils::HashString("supported"); + static constexpr uint32_t unsupported_HASH = ConstExprHashingUtils::HashString("unsupported"); + static constexpr uint32_t supported_HASH = ConstExprHashingUtils::HashString("supported"); NitroTpmSupport GetNitroTpmSupportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unsupported_HASH) { return NitroTpmSupport::unsupported; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/OfferingClassType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/OfferingClassType.cpp index bf29e52915d..1c133b5a283 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/OfferingClassType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/OfferingClassType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OfferingClassTypeMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int convertible_HASH = HashingUtils::HashString("convertible"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t convertible_HASH = ConstExprHashingUtils::HashString("convertible"); OfferingClassType GetOfferingClassTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return OfferingClassType::standard; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/OfferingTypeValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/OfferingTypeValues.cpp index c51ab97224d..5d43560179a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/OfferingTypeValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/OfferingTypeValues.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OfferingTypeValuesMapper { - static const int Heavy_Utilization_HASH = HashingUtils::HashString("Heavy Utilization"); - static const int Medium_Utilization_HASH = HashingUtils::HashString("Medium Utilization"); - static const int Light_Utilization_HASH = HashingUtils::HashString("Light Utilization"); - static const int No_Upfront_HASH = HashingUtils::HashString("No Upfront"); - static const int Partial_Upfront_HASH = HashingUtils::HashString("Partial Upfront"); - static const int All_Upfront_HASH = HashingUtils::HashString("All Upfront"); + static constexpr uint32_t Heavy_Utilization_HASH = ConstExprHashingUtils::HashString("Heavy Utilization"); + static constexpr uint32_t Medium_Utilization_HASH = ConstExprHashingUtils::HashString("Medium Utilization"); + static constexpr uint32_t Light_Utilization_HASH = ConstExprHashingUtils::HashString("Light Utilization"); + static constexpr uint32_t No_Upfront_HASH = ConstExprHashingUtils::HashString("No Upfront"); + static constexpr uint32_t Partial_Upfront_HASH = ConstExprHashingUtils::HashString("Partial Upfront"); + static constexpr uint32_t All_Upfront_HASH = ConstExprHashingUtils::HashString("All Upfront"); OfferingTypeValues GetOfferingTypeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Heavy_Utilization_HASH) { return OfferingTypeValues::Heavy_Utilization; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/OnDemandAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/OnDemandAllocationStrategy.cpp index f4023d4b32e..9a4aefe623d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/OnDemandAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/OnDemandAllocationStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OnDemandAllocationStrategyMapper { - static const int lowestPrice_HASH = HashingUtils::HashString("lowestPrice"); - static const int prioritized_HASH = HashingUtils::HashString("prioritized"); + static constexpr uint32_t lowestPrice_HASH = ConstExprHashingUtils::HashString("lowestPrice"); + static constexpr uint32_t prioritized_HASH = ConstExprHashingUtils::HashString("prioritized"); OnDemandAllocationStrategy GetOnDemandAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == lowestPrice_HASH) { return OnDemandAllocationStrategy::lowestPrice; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/OperationType.cpp index f3dff061b0c..937f4254dd1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/OperationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperationTypeMapper { - static const int add_HASH = HashingUtils::HashString("add"); - static const int remove_HASH = HashingUtils::HashString("remove"); + static constexpr uint32_t add_HASH = ConstExprHashingUtils::HashString("add"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == add_HASH) { return OperationType::add; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PartitionLoadFrequency.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PartitionLoadFrequency.cpp index 17add4b821d..8527d95aa4c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PartitionLoadFrequency.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PartitionLoadFrequency.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PartitionLoadFrequencyMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int daily_HASH = HashingUtils::HashString("daily"); - static const int weekly_HASH = HashingUtils::HashString("weekly"); - static const int monthly_HASH = HashingUtils::HashString("monthly"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t daily_HASH = ConstExprHashingUtils::HashString("daily"); + static constexpr uint32_t weekly_HASH = ConstExprHashingUtils::HashString("weekly"); + static constexpr uint32_t monthly_HASH = ConstExprHashingUtils::HashString("monthly"); PartitionLoadFrequency GetPartitionLoadFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return PartitionLoadFrequency::none; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PayerResponsibility.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PayerResponsibility.cpp index 3a1eb900259..90766422e9e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PayerResponsibility.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PayerResponsibility.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PayerResponsibilityMapper { - static const int ServiceOwner_HASH = HashingUtils::HashString("ServiceOwner"); + static constexpr uint32_t ServiceOwner_HASH = ConstExprHashingUtils::HashString("ServiceOwner"); PayerResponsibility GetPayerResponsibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ServiceOwner_HASH) { return PayerResponsibility::ServiceOwner; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PaymentOption.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PaymentOption.cpp index 26890958361..d3086f42fe2 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PaymentOption.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PaymentOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PaymentOptionMapper { - static const int AllUpfront_HASH = HashingUtils::HashString("AllUpfront"); - static const int PartialUpfront_HASH = HashingUtils::HashString("PartialUpfront"); - static const int NoUpfront_HASH = HashingUtils::HashString("NoUpfront"); + static constexpr uint32_t AllUpfront_HASH = ConstExprHashingUtils::HashString("AllUpfront"); + static constexpr uint32_t PartialUpfront_HASH = ConstExprHashingUtils::HashString("PartialUpfront"); + static constexpr uint32_t NoUpfront_HASH = ConstExprHashingUtils::HashString("NoUpfront"); PaymentOption GetPaymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AllUpfront_HASH) { return PaymentOption::AllUpfront; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PeriodType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PeriodType.cpp index 4c42a9c7247..44294aa9135 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PeriodType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PeriodType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PeriodTypeMapper { - static const int five_minutes_HASH = HashingUtils::HashString("five-minutes"); - static const int fifteen_minutes_HASH = HashingUtils::HashString("fifteen-minutes"); - static const int one_hour_HASH = HashingUtils::HashString("one-hour"); - static const int three_hours_HASH = HashingUtils::HashString("three-hours"); - static const int one_day_HASH = HashingUtils::HashString("one-day"); - static const int one_week_HASH = HashingUtils::HashString("one-week"); + static constexpr uint32_t five_minutes_HASH = ConstExprHashingUtils::HashString("five-minutes"); + static constexpr uint32_t fifteen_minutes_HASH = ConstExprHashingUtils::HashString("fifteen-minutes"); + static constexpr uint32_t one_hour_HASH = ConstExprHashingUtils::HashString("one-hour"); + static constexpr uint32_t three_hours_HASH = ConstExprHashingUtils::HashString("three-hours"); + static constexpr uint32_t one_day_HASH = ConstExprHashingUtils::HashString("one-day"); + static constexpr uint32_t one_week_HASH = ConstExprHashingUtils::HashString("one-week"); PeriodType GetPeriodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == five_minutes_HASH) { return PeriodType::five_minutes; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PermissionGroup.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PermissionGroup.cpp index 830ba45842e..135572ae462 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PermissionGroup.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PermissionGroup.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PermissionGroupMapper { - static const int all_HASH = HashingUtils::HashString("all"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); PermissionGroup GetPermissionGroupForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == all_HASH) { return PermissionGroup::all; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupState.cpp index ca456dfe454..43718dc81bf 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PlacementGroupStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); PlacementGroupState GetPlacementGroupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return PlacementGroupState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupStrategy.cpp index 0ccd6daddb6..3d270b23863 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PlacementGroupStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementGroupStrategyMapper { - static const int cluster_HASH = HashingUtils::HashString("cluster"); - static const int partition_HASH = HashingUtils::HashString("partition"); - static const int spread_HASH = HashingUtils::HashString("spread"); + static constexpr uint32_t cluster_HASH = ConstExprHashingUtils::HashString("cluster"); + static constexpr uint32_t partition_HASH = ConstExprHashingUtils::HashString("partition"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); PlacementGroupStrategy GetPlacementGroupStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cluster_HASH) { return PlacementGroupStrategy::cluster; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PlacementStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PlacementStrategy.cpp index 9e32951b073..d4ccf243d9b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PlacementStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PlacementStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementStrategyMapper { - static const int cluster_HASH = HashingUtils::HashString("cluster"); - static const int spread_HASH = HashingUtils::HashString("spread"); - static const int partition_HASH = HashingUtils::HashString("partition"); + static constexpr uint32_t cluster_HASH = ConstExprHashingUtils::HashString("cluster"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); + static constexpr uint32_t partition_HASH = ConstExprHashingUtils::HashString("partition"); PlacementStrategy GetPlacementStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cluster_HASH) { return PlacementStrategy::cluster; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PlatformValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PlatformValues.cpp index 67c52e26498..8b4980ea665 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PlatformValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PlatformValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PlatformValuesMapper { - static const int Windows_HASH = HashingUtils::HashString("Windows"); + static constexpr uint32_t Windows_HASH = ConstExprHashingUtils::HashString("Windows"); PlatformValues GetPlatformValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Windows_HASH) { return PlatformValues::Windows; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PrefixListState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PrefixListState.cpp index 90c963ee111..15b554a2e3e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PrefixListState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PrefixListState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace PrefixListStateMapper { - static const int create_in_progress_HASH = HashingUtils::HashString("create-in-progress"); - static const int create_complete_HASH = HashingUtils::HashString("create-complete"); - static const int create_failed_HASH = HashingUtils::HashString("create-failed"); - static const int modify_in_progress_HASH = HashingUtils::HashString("modify-in-progress"); - static const int modify_complete_HASH = HashingUtils::HashString("modify-complete"); - static const int modify_failed_HASH = HashingUtils::HashString("modify-failed"); - static const int restore_in_progress_HASH = HashingUtils::HashString("restore-in-progress"); - static const int restore_complete_HASH = HashingUtils::HashString("restore-complete"); - static const int restore_failed_HASH = HashingUtils::HashString("restore-failed"); - static const int delete_in_progress_HASH = HashingUtils::HashString("delete-in-progress"); - static const int delete_complete_HASH = HashingUtils::HashString("delete-complete"); - static const int delete_failed_HASH = HashingUtils::HashString("delete-failed"); + static constexpr uint32_t create_in_progress_HASH = ConstExprHashingUtils::HashString("create-in-progress"); + static constexpr uint32_t create_complete_HASH = ConstExprHashingUtils::HashString("create-complete"); + static constexpr uint32_t create_failed_HASH = ConstExprHashingUtils::HashString("create-failed"); + static constexpr uint32_t modify_in_progress_HASH = ConstExprHashingUtils::HashString("modify-in-progress"); + static constexpr uint32_t modify_complete_HASH = ConstExprHashingUtils::HashString("modify-complete"); + static constexpr uint32_t modify_failed_HASH = ConstExprHashingUtils::HashString("modify-failed"); + static constexpr uint32_t restore_in_progress_HASH = ConstExprHashingUtils::HashString("restore-in-progress"); + static constexpr uint32_t restore_complete_HASH = ConstExprHashingUtils::HashString("restore-complete"); + static constexpr uint32_t restore_failed_HASH = ConstExprHashingUtils::HashString("restore-failed"); + static constexpr uint32_t delete_in_progress_HASH = ConstExprHashingUtils::HashString("delete-in-progress"); + static constexpr uint32_t delete_complete_HASH = ConstExprHashingUtils::HashString("delete-complete"); + static constexpr uint32_t delete_failed_HASH = ConstExprHashingUtils::HashString("delete-failed"); PrefixListState GetPrefixListStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == create_in_progress_HASH) { return PrefixListState::create_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/PrincipalType.cpp index 28b40a37800..c183c91a835 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/PrincipalType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PrincipalTypeMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int Service_HASH = HashingUtils::HashString("Service"); - static const int OrganizationUnit_HASH = HashingUtils::HashString("OrganizationUnit"); - static const int Account_HASH = HashingUtils::HashString("Account"); - static const int User_HASH = HashingUtils::HashString("User"); - static const int Role_HASH = HashingUtils::HashString("Role"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t Service_HASH = ConstExprHashingUtils::HashString("Service"); + static constexpr uint32_t OrganizationUnit_HASH = ConstExprHashingUtils::HashString("OrganizationUnit"); + static constexpr uint32_t Account_HASH = ConstExprHashingUtils::HashString("Account"); + static constexpr uint32_t User_HASH = ConstExprHashingUtils::HashString("User"); + static constexpr uint32_t Role_HASH = ConstExprHashingUtils::HashString("Role"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return PrincipalType::All; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ProductCodeValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ProductCodeValues.cpp index 11ba08ddbe9..c291f820c9b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ProductCodeValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ProductCodeValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProductCodeValuesMapper { - static const int devpay_HASH = HashingUtils::HashString("devpay"); - static const int marketplace_HASH = HashingUtils::HashString("marketplace"); + static constexpr uint32_t devpay_HASH = ConstExprHashingUtils::HashString("devpay"); + static constexpr uint32_t marketplace_HASH = ConstExprHashingUtils::HashString("marketplace"); ProductCodeValues GetProductCodeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == devpay_HASH) { return ProductCodeValues::devpay; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Protocol.cpp index df702eeb80d..a986bf57887 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Protocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolMapper { - static const int tcp_HASH = HashingUtils::HashString("tcp"); - static const int udp_HASH = HashingUtils::HashString("udp"); + static constexpr uint32_t tcp_HASH = ConstExprHashingUtils::HashString("tcp"); + static constexpr uint32_t udp_HASH = ConstExprHashingUtils::HashString("udp"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == tcp_HASH) { return Protocol::tcp; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ProtocolValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ProtocolValue.cpp index 26ecd5e47cb..d540967ca31 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ProtocolValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ProtocolValue.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProtocolValueMapper { - static const int gre_HASH = HashingUtils::HashString("gre"); + static constexpr uint32_t gre_HASH = ConstExprHashingUtils::HashString("gre"); ProtocolValue GetProtocolValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gre_HASH) { return ProtocolValue::gre; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RIProductDescription.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RIProductDescription.cpp index d38f068d377..bf3364f5286 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RIProductDescription.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RIProductDescription.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RIProductDescriptionMapper { - static const int Linux_UNIX_HASH = HashingUtils::HashString("Linux/UNIX"); - static const int Linux_UNIX_Amazon_VPC_HASH = HashingUtils::HashString("Linux/UNIX (Amazon VPC)"); - static const int Windows_HASH = HashingUtils::HashString("Windows"); - static const int Windows_Amazon_VPC_HASH = HashingUtils::HashString("Windows (Amazon VPC)"); + static constexpr uint32_t Linux_UNIX_HASH = ConstExprHashingUtils::HashString("Linux/UNIX"); + static constexpr uint32_t Linux_UNIX_Amazon_VPC_HASH = ConstExprHashingUtils::HashString("Linux/UNIX (Amazon VPC)"); + static constexpr uint32_t Windows_HASH = ConstExprHashingUtils::HashString("Windows"); + static constexpr uint32_t Windows_Amazon_VPC_HASH = ConstExprHashingUtils::HashString("Windows (Amazon VPC)"); RIProductDescription GetRIProductDescriptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Linux_UNIX_HASH) { return RIProductDescription::Linux_UNIX; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RecurringChargeFrequency.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RecurringChargeFrequency.cpp index 03cef74075a..3cd77b37493 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RecurringChargeFrequency.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RecurringChargeFrequency.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecurringChargeFrequencyMapper { - static const int Hourly_HASH = HashingUtils::HashString("Hourly"); + static constexpr uint32_t Hourly_HASH = ConstExprHashingUtils::HashString("Hourly"); RecurringChargeFrequency GetRecurringChargeFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Hourly_HASH) { return RecurringChargeFrequency::Hourly; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ReplaceRootVolumeTaskState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ReplaceRootVolumeTaskState.cpp index c8635a28a73..15a7dbc1653 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ReplaceRootVolumeTaskState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ReplaceRootVolumeTaskState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReplaceRootVolumeTaskStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int in_progress_HASH = HashingUtils::HashString("in-progress"); - static const int failing_HASH = HashingUtils::HashString("failing"); - static const int succeeded_HASH = HashingUtils::HashString("succeeded"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int failed_detached_HASH = HashingUtils::HashString("failed-detached"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t in_progress_HASH = ConstExprHashingUtils::HashString("in-progress"); + static constexpr uint32_t failing_HASH = ConstExprHashingUtils::HashString("failing"); + static constexpr uint32_t succeeded_HASH = ConstExprHashingUtils::HashString("succeeded"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t failed_detached_HASH = ConstExprHashingUtils::HashString("failed-detached"); ReplaceRootVolumeTaskState GetReplaceRootVolumeTaskStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return ReplaceRootVolumeTaskState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ReplacementStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ReplacementStrategy.cpp index 4da4903e9b4..75bddf5075f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ReplacementStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ReplacementStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplacementStrategyMapper { - static const int launch_HASH = HashingUtils::HashString("launch"); - static const int launch_before_terminate_HASH = HashingUtils::HashString("launch-before-terminate"); + static constexpr uint32_t launch_HASH = ConstExprHashingUtils::HashString("launch"); + static constexpr uint32_t launch_before_terminate_HASH = ConstExprHashingUtils::HashString("launch-before-terminate"); ReplacementStrategy GetReplacementStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == launch_HASH) { return ReplacementStrategy::launch; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ReportInstanceReasonCodes.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ReportInstanceReasonCodes.cpp index 7cbe4895ec9..f64a1ea2af9 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ReportInstanceReasonCodes.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ReportInstanceReasonCodes.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ReportInstanceReasonCodesMapper { - static const int instance_stuck_in_state_HASH = HashingUtils::HashString("instance-stuck-in-state"); - static const int unresponsive_HASH = HashingUtils::HashString("unresponsive"); - static const int not_accepting_credentials_HASH = HashingUtils::HashString("not-accepting-credentials"); - static const int password_not_available_HASH = HashingUtils::HashString("password-not-available"); - static const int performance_network_HASH = HashingUtils::HashString("performance-network"); - static const int performance_instance_store_HASH = HashingUtils::HashString("performance-instance-store"); - static const int performance_ebs_volume_HASH = HashingUtils::HashString("performance-ebs-volume"); - static const int performance_other_HASH = HashingUtils::HashString("performance-other"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t instance_stuck_in_state_HASH = ConstExprHashingUtils::HashString("instance-stuck-in-state"); + static constexpr uint32_t unresponsive_HASH = ConstExprHashingUtils::HashString("unresponsive"); + static constexpr uint32_t not_accepting_credentials_HASH = ConstExprHashingUtils::HashString("not-accepting-credentials"); + static constexpr uint32_t password_not_available_HASH = ConstExprHashingUtils::HashString("password-not-available"); + static constexpr uint32_t performance_network_HASH = ConstExprHashingUtils::HashString("performance-network"); + static constexpr uint32_t performance_instance_store_HASH = ConstExprHashingUtils::HashString("performance-instance-store"); + static constexpr uint32_t performance_ebs_volume_HASH = ConstExprHashingUtils::HashString("performance-ebs-volume"); + static constexpr uint32_t performance_other_HASH = ConstExprHashingUtils::HashString("performance-other"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ReportInstanceReasonCodes GetReportInstanceReasonCodesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == instance_stuck_in_state_HASH) { return ReportInstanceReasonCodes::instance_stuck_in_state; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ReportStatusType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ReportStatusType.cpp index 275bf1a6ffe..6bfb68ccc88 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ReportStatusType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ReportStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportStatusTypeMapper { - static const int ok_HASH = HashingUtils::HashString("ok"); - static const int impaired_HASH = HashingUtils::HashString("impaired"); + static constexpr uint32_t ok_HASH = ConstExprHashingUtils::HashString("ok"); + static constexpr uint32_t impaired_HASH = ConstExprHashingUtils::HashString("impaired"); ReportStatusType GetReportStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ok_HASH) { return ReportStatusType::ok; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ReservationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ReservationState.cpp index a000816727b..7633413a502 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ReservationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ReservationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReservationStateMapper { - static const int payment_pending_HASH = HashingUtils::HashString("payment-pending"); - static const int payment_failed_HASH = HashingUtils::HashString("payment-failed"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int retired_HASH = HashingUtils::HashString("retired"); + static constexpr uint32_t payment_pending_HASH = ConstExprHashingUtils::HashString("payment-pending"); + static constexpr uint32_t payment_failed_HASH = ConstExprHashingUtils::HashString("payment-failed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t retired_HASH = ConstExprHashingUtils::HashString("retired"); ReservationState GetReservationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == payment_pending_HASH) { return ReservationState::payment_pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ReservedInstanceState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ReservedInstanceState.cpp index de869d4dd36..7aefdbd0529 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ReservedInstanceState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ReservedInstanceState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReservedInstanceStateMapper { - static const int payment_pending_HASH = HashingUtils::HashString("payment-pending"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int payment_failed_HASH = HashingUtils::HashString("payment-failed"); - static const int retired_HASH = HashingUtils::HashString("retired"); - static const int queued_HASH = HashingUtils::HashString("queued"); - static const int queued_deleted_HASH = HashingUtils::HashString("queued-deleted"); + static constexpr uint32_t payment_pending_HASH = ConstExprHashingUtils::HashString("payment-pending"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t payment_failed_HASH = ConstExprHashingUtils::HashString("payment-failed"); + static constexpr uint32_t retired_HASH = ConstExprHashingUtils::HashString("retired"); + static constexpr uint32_t queued_HASH = ConstExprHashingUtils::HashString("queued"); + static constexpr uint32_t queued_deleted_HASH = ConstExprHashingUtils::HashString("queued-deleted"); ReservedInstanceState GetReservedInstanceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == payment_pending_HASH) { return ReservedInstanceState::payment_pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ResetFpgaImageAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ResetFpgaImageAttributeName.cpp index bac1d305a68..435cfb3618b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ResetFpgaImageAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ResetFpgaImageAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResetFpgaImageAttributeNameMapper { - static const int loadPermission_HASH = HashingUtils::HashString("loadPermission"); + static constexpr uint32_t loadPermission_HASH = ConstExprHashingUtils::HashString("loadPermission"); ResetFpgaImageAttributeName GetResetFpgaImageAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == loadPermission_HASH) { return ResetFpgaImageAttributeName::loadPermission; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ResetImageAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ResetImageAttributeName.cpp index 1508c36421e..5e75ce62d54 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ResetImageAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ResetImageAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResetImageAttributeNameMapper { - static const int launchPermission_HASH = HashingUtils::HashString("launchPermission"); + static constexpr uint32_t launchPermission_HASH = ConstExprHashingUtils::HashString("launchPermission"); ResetImageAttributeName GetResetImageAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == launchPermission_HASH) { return ResetImageAttributeName::launchPermission; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ResourceType.cpp index 58a2df499f4..36f0b198ee5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ResourceType.cpp @@ -20,97 +20,97 @@ namespace Aws namespace ResourceTypeMapper { - static const int capacity_reservation_HASH = HashingUtils::HashString("capacity-reservation"); - static const int client_vpn_endpoint_HASH = HashingUtils::HashString("client-vpn-endpoint"); - static const int customer_gateway_HASH = HashingUtils::HashString("customer-gateway"); - static const int carrier_gateway_HASH = HashingUtils::HashString("carrier-gateway"); - static const int coip_pool_HASH = HashingUtils::HashString("coip-pool"); - static const int dedicated_host_HASH = HashingUtils::HashString("dedicated-host"); - static const int dhcp_options_HASH = HashingUtils::HashString("dhcp-options"); - static const int egress_only_internet_gateway_HASH = HashingUtils::HashString("egress-only-internet-gateway"); - static const int elastic_ip_HASH = HashingUtils::HashString("elastic-ip"); - static const int elastic_gpu_HASH = HashingUtils::HashString("elastic-gpu"); - static const int export_image_task_HASH = HashingUtils::HashString("export-image-task"); - static const int export_instance_task_HASH = HashingUtils::HashString("export-instance-task"); - static const int fleet_HASH = HashingUtils::HashString("fleet"); - static const int fpga_image_HASH = HashingUtils::HashString("fpga-image"); - static const int host_reservation_HASH = HashingUtils::HashString("host-reservation"); - static const int image_HASH = HashingUtils::HashString("image"); - static const int import_image_task_HASH = HashingUtils::HashString("import-image-task"); - static const int import_snapshot_task_HASH = HashingUtils::HashString("import-snapshot-task"); - static const int instance_HASH = HashingUtils::HashString("instance"); - static const int instance_event_window_HASH = HashingUtils::HashString("instance-event-window"); - static const int internet_gateway_HASH = HashingUtils::HashString("internet-gateway"); - static const int ipam_HASH = HashingUtils::HashString("ipam"); - static const int ipam_pool_HASH = HashingUtils::HashString("ipam-pool"); - static const int ipam_scope_HASH = HashingUtils::HashString("ipam-scope"); - static const int ipv4pool_ec2_HASH = HashingUtils::HashString("ipv4pool-ec2"); - static const int ipv6pool_ec2_HASH = HashingUtils::HashString("ipv6pool-ec2"); - static const int key_pair_HASH = HashingUtils::HashString("key-pair"); - static const int launch_template_HASH = HashingUtils::HashString("launch-template"); - static const int local_gateway_HASH = HashingUtils::HashString("local-gateway"); - static const int local_gateway_route_table_HASH = HashingUtils::HashString("local-gateway-route-table"); - static const int local_gateway_virtual_interface_HASH = HashingUtils::HashString("local-gateway-virtual-interface"); - static const int local_gateway_virtual_interface_group_HASH = HashingUtils::HashString("local-gateway-virtual-interface-group"); - static const int local_gateway_route_table_vpc_association_HASH = HashingUtils::HashString("local-gateway-route-table-vpc-association"); - static const int local_gateway_route_table_virtual_interface_group_association_HASH = HashingUtils::HashString("local-gateway-route-table-virtual-interface-group-association"); - static const int natgateway_HASH = HashingUtils::HashString("natgateway"); - static const int network_acl_HASH = HashingUtils::HashString("network-acl"); - static const int network_interface_HASH = HashingUtils::HashString("network-interface"); - static const int network_insights_analysis_HASH = HashingUtils::HashString("network-insights-analysis"); - static const int network_insights_path_HASH = HashingUtils::HashString("network-insights-path"); - static const int network_insights_access_scope_HASH = HashingUtils::HashString("network-insights-access-scope"); - static const int network_insights_access_scope_analysis_HASH = HashingUtils::HashString("network-insights-access-scope-analysis"); - static const int placement_group_HASH = HashingUtils::HashString("placement-group"); - static const int prefix_list_HASH = HashingUtils::HashString("prefix-list"); - static const int replace_root_volume_task_HASH = HashingUtils::HashString("replace-root-volume-task"); - static const int reserved_instances_HASH = HashingUtils::HashString("reserved-instances"); - static const int route_table_HASH = HashingUtils::HashString("route-table"); - static const int security_group_HASH = HashingUtils::HashString("security-group"); - static const int security_group_rule_HASH = HashingUtils::HashString("security-group-rule"); - static const int snapshot_HASH = HashingUtils::HashString("snapshot"); - static const int spot_fleet_request_HASH = HashingUtils::HashString("spot-fleet-request"); - static const int spot_instances_request_HASH = HashingUtils::HashString("spot-instances-request"); - static const int subnet_HASH = HashingUtils::HashString("subnet"); - static const int subnet_cidr_reservation_HASH = HashingUtils::HashString("subnet-cidr-reservation"); - static const int traffic_mirror_filter_HASH = HashingUtils::HashString("traffic-mirror-filter"); - static const int traffic_mirror_session_HASH = HashingUtils::HashString("traffic-mirror-session"); - static const int traffic_mirror_target_HASH = HashingUtils::HashString("traffic-mirror-target"); - static const int transit_gateway_HASH = HashingUtils::HashString("transit-gateway"); - static const int transit_gateway_attachment_HASH = HashingUtils::HashString("transit-gateway-attachment"); - static const int transit_gateway_connect_peer_HASH = HashingUtils::HashString("transit-gateway-connect-peer"); - static const int transit_gateway_multicast_domain_HASH = HashingUtils::HashString("transit-gateway-multicast-domain"); - static const int transit_gateway_policy_table_HASH = HashingUtils::HashString("transit-gateway-policy-table"); - static const int transit_gateway_route_table_HASH = HashingUtils::HashString("transit-gateway-route-table"); - static const int transit_gateway_route_table_announcement_HASH = HashingUtils::HashString("transit-gateway-route-table-announcement"); - static const int volume_HASH = HashingUtils::HashString("volume"); - static const int vpc_HASH = HashingUtils::HashString("vpc"); - static const int vpc_endpoint_HASH = HashingUtils::HashString("vpc-endpoint"); - static const int vpc_endpoint_connection_HASH = HashingUtils::HashString("vpc-endpoint-connection"); - static const int vpc_endpoint_service_HASH = HashingUtils::HashString("vpc-endpoint-service"); - static const int vpc_endpoint_service_permission_HASH = HashingUtils::HashString("vpc-endpoint-service-permission"); - static const int vpc_peering_connection_HASH = HashingUtils::HashString("vpc-peering-connection"); - static const int vpn_connection_HASH = HashingUtils::HashString("vpn-connection"); - static const int vpn_gateway_HASH = HashingUtils::HashString("vpn-gateway"); - static const int vpc_flow_log_HASH = HashingUtils::HashString("vpc-flow-log"); - static const int capacity_reservation_fleet_HASH = HashingUtils::HashString("capacity-reservation-fleet"); - static const int traffic_mirror_filter_rule_HASH = HashingUtils::HashString("traffic-mirror-filter-rule"); - static const int vpc_endpoint_connection_device_type_HASH = HashingUtils::HashString("vpc-endpoint-connection-device-type"); - static const int verified_access_instance_HASH = HashingUtils::HashString("verified-access-instance"); - static const int verified_access_group_HASH = HashingUtils::HashString("verified-access-group"); - static const int verified_access_endpoint_HASH = HashingUtils::HashString("verified-access-endpoint"); - static const int verified_access_policy_HASH = HashingUtils::HashString("verified-access-policy"); - static const int verified_access_trust_provider_HASH = HashingUtils::HashString("verified-access-trust-provider"); - static const int vpn_connection_device_type_HASH = HashingUtils::HashString("vpn-connection-device-type"); - static const int vpc_block_public_access_exclusion_HASH = HashingUtils::HashString("vpc-block-public-access-exclusion"); - static const int ipam_resource_discovery_HASH = HashingUtils::HashString("ipam-resource-discovery"); - static const int ipam_resource_discovery_association_HASH = HashingUtils::HashString("ipam-resource-discovery-association"); - static const int instance_connect_endpoint_HASH = HashingUtils::HashString("instance-connect-endpoint"); + static constexpr uint32_t capacity_reservation_HASH = ConstExprHashingUtils::HashString("capacity-reservation"); + static constexpr uint32_t client_vpn_endpoint_HASH = ConstExprHashingUtils::HashString("client-vpn-endpoint"); + static constexpr uint32_t customer_gateway_HASH = ConstExprHashingUtils::HashString("customer-gateway"); + static constexpr uint32_t carrier_gateway_HASH = ConstExprHashingUtils::HashString("carrier-gateway"); + static constexpr uint32_t coip_pool_HASH = ConstExprHashingUtils::HashString("coip-pool"); + static constexpr uint32_t dedicated_host_HASH = ConstExprHashingUtils::HashString("dedicated-host"); + static constexpr uint32_t dhcp_options_HASH = ConstExprHashingUtils::HashString("dhcp-options"); + static constexpr uint32_t egress_only_internet_gateway_HASH = ConstExprHashingUtils::HashString("egress-only-internet-gateway"); + static constexpr uint32_t elastic_ip_HASH = ConstExprHashingUtils::HashString("elastic-ip"); + static constexpr uint32_t elastic_gpu_HASH = ConstExprHashingUtils::HashString("elastic-gpu"); + static constexpr uint32_t export_image_task_HASH = ConstExprHashingUtils::HashString("export-image-task"); + static constexpr uint32_t export_instance_task_HASH = ConstExprHashingUtils::HashString("export-instance-task"); + static constexpr uint32_t fleet_HASH = ConstExprHashingUtils::HashString("fleet"); + static constexpr uint32_t fpga_image_HASH = ConstExprHashingUtils::HashString("fpga-image"); + static constexpr uint32_t host_reservation_HASH = ConstExprHashingUtils::HashString("host-reservation"); + static constexpr uint32_t image_HASH = ConstExprHashingUtils::HashString("image"); + static constexpr uint32_t import_image_task_HASH = ConstExprHashingUtils::HashString("import-image-task"); + static constexpr uint32_t import_snapshot_task_HASH = ConstExprHashingUtils::HashString("import-snapshot-task"); + static constexpr uint32_t instance_HASH = ConstExprHashingUtils::HashString("instance"); + static constexpr uint32_t instance_event_window_HASH = ConstExprHashingUtils::HashString("instance-event-window"); + static constexpr uint32_t internet_gateway_HASH = ConstExprHashingUtils::HashString("internet-gateway"); + static constexpr uint32_t ipam_HASH = ConstExprHashingUtils::HashString("ipam"); + static constexpr uint32_t ipam_pool_HASH = ConstExprHashingUtils::HashString("ipam-pool"); + static constexpr uint32_t ipam_scope_HASH = ConstExprHashingUtils::HashString("ipam-scope"); + static constexpr uint32_t ipv4pool_ec2_HASH = ConstExprHashingUtils::HashString("ipv4pool-ec2"); + static constexpr uint32_t ipv6pool_ec2_HASH = ConstExprHashingUtils::HashString("ipv6pool-ec2"); + static constexpr uint32_t key_pair_HASH = ConstExprHashingUtils::HashString("key-pair"); + static constexpr uint32_t launch_template_HASH = ConstExprHashingUtils::HashString("launch-template"); + static constexpr uint32_t local_gateway_HASH = ConstExprHashingUtils::HashString("local-gateway"); + static constexpr uint32_t local_gateway_route_table_HASH = ConstExprHashingUtils::HashString("local-gateway-route-table"); + static constexpr uint32_t local_gateway_virtual_interface_HASH = ConstExprHashingUtils::HashString("local-gateway-virtual-interface"); + static constexpr uint32_t local_gateway_virtual_interface_group_HASH = ConstExprHashingUtils::HashString("local-gateway-virtual-interface-group"); + static constexpr uint32_t local_gateway_route_table_vpc_association_HASH = ConstExprHashingUtils::HashString("local-gateway-route-table-vpc-association"); + static constexpr uint32_t local_gateway_route_table_virtual_interface_group_association_HASH = ConstExprHashingUtils::HashString("local-gateway-route-table-virtual-interface-group-association"); + static constexpr uint32_t natgateway_HASH = ConstExprHashingUtils::HashString("natgateway"); + static constexpr uint32_t network_acl_HASH = ConstExprHashingUtils::HashString("network-acl"); + static constexpr uint32_t network_interface_HASH = ConstExprHashingUtils::HashString("network-interface"); + static constexpr uint32_t network_insights_analysis_HASH = ConstExprHashingUtils::HashString("network-insights-analysis"); + static constexpr uint32_t network_insights_path_HASH = ConstExprHashingUtils::HashString("network-insights-path"); + static constexpr uint32_t network_insights_access_scope_HASH = ConstExprHashingUtils::HashString("network-insights-access-scope"); + static constexpr uint32_t network_insights_access_scope_analysis_HASH = ConstExprHashingUtils::HashString("network-insights-access-scope-analysis"); + static constexpr uint32_t placement_group_HASH = ConstExprHashingUtils::HashString("placement-group"); + static constexpr uint32_t prefix_list_HASH = ConstExprHashingUtils::HashString("prefix-list"); + static constexpr uint32_t replace_root_volume_task_HASH = ConstExprHashingUtils::HashString("replace-root-volume-task"); + static constexpr uint32_t reserved_instances_HASH = ConstExprHashingUtils::HashString("reserved-instances"); + static constexpr uint32_t route_table_HASH = ConstExprHashingUtils::HashString("route-table"); + static constexpr uint32_t security_group_HASH = ConstExprHashingUtils::HashString("security-group"); + static constexpr uint32_t security_group_rule_HASH = ConstExprHashingUtils::HashString("security-group-rule"); + static constexpr uint32_t snapshot_HASH = ConstExprHashingUtils::HashString("snapshot"); + static constexpr uint32_t spot_fleet_request_HASH = ConstExprHashingUtils::HashString("spot-fleet-request"); + static constexpr uint32_t spot_instances_request_HASH = ConstExprHashingUtils::HashString("spot-instances-request"); + static constexpr uint32_t subnet_HASH = ConstExprHashingUtils::HashString("subnet"); + static constexpr uint32_t subnet_cidr_reservation_HASH = ConstExprHashingUtils::HashString("subnet-cidr-reservation"); + static constexpr uint32_t traffic_mirror_filter_HASH = ConstExprHashingUtils::HashString("traffic-mirror-filter"); + static constexpr uint32_t traffic_mirror_session_HASH = ConstExprHashingUtils::HashString("traffic-mirror-session"); + static constexpr uint32_t traffic_mirror_target_HASH = ConstExprHashingUtils::HashString("traffic-mirror-target"); + static constexpr uint32_t transit_gateway_HASH = ConstExprHashingUtils::HashString("transit-gateway"); + static constexpr uint32_t transit_gateway_attachment_HASH = ConstExprHashingUtils::HashString("transit-gateway-attachment"); + static constexpr uint32_t transit_gateway_connect_peer_HASH = ConstExprHashingUtils::HashString("transit-gateway-connect-peer"); + static constexpr uint32_t transit_gateway_multicast_domain_HASH = ConstExprHashingUtils::HashString("transit-gateway-multicast-domain"); + static constexpr uint32_t transit_gateway_policy_table_HASH = ConstExprHashingUtils::HashString("transit-gateway-policy-table"); + static constexpr uint32_t transit_gateway_route_table_HASH = ConstExprHashingUtils::HashString("transit-gateway-route-table"); + static constexpr uint32_t transit_gateway_route_table_announcement_HASH = ConstExprHashingUtils::HashString("transit-gateway-route-table-announcement"); + static constexpr uint32_t volume_HASH = ConstExprHashingUtils::HashString("volume"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); + static constexpr uint32_t vpc_endpoint_HASH = ConstExprHashingUtils::HashString("vpc-endpoint"); + static constexpr uint32_t vpc_endpoint_connection_HASH = ConstExprHashingUtils::HashString("vpc-endpoint-connection"); + static constexpr uint32_t vpc_endpoint_service_HASH = ConstExprHashingUtils::HashString("vpc-endpoint-service"); + static constexpr uint32_t vpc_endpoint_service_permission_HASH = ConstExprHashingUtils::HashString("vpc-endpoint-service-permission"); + static constexpr uint32_t vpc_peering_connection_HASH = ConstExprHashingUtils::HashString("vpc-peering-connection"); + static constexpr uint32_t vpn_connection_HASH = ConstExprHashingUtils::HashString("vpn-connection"); + static constexpr uint32_t vpn_gateway_HASH = ConstExprHashingUtils::HashString("vpn-gateway"); + static constexpr uint32_t vpc_flow_log_HASH = ConstExprHashingUtils::HashString("vpc-flow-log"); + static constexpr uint32_t capacity_reservation_fleet_HASH = ConstExprHashingUtils::HashString("capacity-reservation-fleet"); + static constexpr uint32_t traffic_mirror_filter_rule_HASH = ConstExprHashingUtils::HashString("traffic-mirror-filter-rule"); + static constexpr uint32_t vpc_endpoint_connection_device_type_HASH = ConstExprHashingUtils::HashString("vpc-endpoint-connection-device-type"); + static constexpr uint32_t verified_access_instance_HASH = ConstExprHashingUtils::HashString("verified-access-instance"); + static constexpr uint32_t verified_access_group_HASH = ConstExprHashingUtils::HashString("verified-access-group"); + static constexpr uint32_t verified_access_endpoint_HASH = ConstExprHashingUtils::HashString("verified-access-endpoint"); + static constexpr uint32_t verified_access_policy_HASH = ConstExprHashingUtils::HashString("verified-access-policy"); + static constexpr uint32_t verified_access_trust_provider_HASH = ConstExprHashingUtils::HashString("verified-access-trust-provider"); + static constexpr uint32_t vpn_connection_device_type_HASH = ConstExprHashingUtils::HashString("vpn-connection-device-type"); + static constexpr uint32_t vpc_block_public_access_exclusion_HASH = ConstExprHashingUtils::HashString("vpc-block-public-access-exclusion"); + static constexpr uint32_t ipam_resource_discovery_HASH = ConstExprHashingUtils::HashString("ipam-resource-discovery"); + static constexpr uint32_t ipam_resource_discovery_association_HASH = ConstExprHashingUtils::HashString("ipam-resource-discovery-association"); + static constexpr uint32_t instance_connect_endpoint_HASH = ConstExprHashingUtils::HashString("instance-connect-endpoint"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == capacity_reservation_HASH) { return ResourceType::capacity_reservation; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RootDeviceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RootDeviceType.cpp index d9844a0f1d6..4770492586c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RootDeviceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RootDeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RootDeviceTypeMapper { - static const int ebs_HASH = HashingUtils::HashString("ebs"); - static const int instance_store_HASH = HashingUtils::HashString("instance-store"); + static constexpr uint32_t ebs_HASH = ConstExprHashingUtils::HashString("ebs"); + static constexpr uint32_t instance_store_HASH = ConstExprHashingUtils::HashString("instance-store"); RootDeviceType GetRootDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ebs_HASH) { return RootDeviceType::ebs; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RouteOrigin.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RouteOrigin.cpp index f625a64b260..3ab6890db89 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RouteOrigin.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RouteOrigin.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RouteOriginMapper { - static const int CreateRouteTable_HASH = HashingUtils::HashString("CreateRouteTable"); - static const int CreateRoute_HASH = HashingUtils::HashString("CreateRoute"); - static const int EnableVgwRoutePropagation_HASH = HashingUtils::HashString("EnableVgwRoutePropagation"); + static constexpr uint32_t CreateRouteTable_HASH = ConstExprHashingUtils::HashString("CreateRouteTable"); + static constexpr uint32_t CreateRoute_HASH = ConstExprHashingUtils::HashString("CreateRoute"); + static constexpr uint32_t EnableVgwRoutePropagation_HASH = ConstExprHashingUtils::HashString("EnableVgwRoutePropagation"); RouteOrigin GetRouteOriginForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreateRouteTable_HASH) { return RouteOrigin::CreateRouteTable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RouteState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RouteState.cpp index c44f6a3fbe0..64823d82937 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RouteState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RouteState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteStateMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int blackhole_HASH = HashingUtils::HashString("blackhole"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t blackhole_HASH = ConstExprHashingUtils::HashString("blackhole"); RouteState GetRouteStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return RouteState::active; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RouteTableAssociationStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RouteTableAssociationStateCode.cpp index 9b1153fa270..be7ba733d63 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RouteTableAssociationStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RouteTableAssociationStateCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RouteTableAssociationStateCodeMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); RouteTableAssociationStateCode GetRouteTableAssociationStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return RouteTableAssociationStateCode::associating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/RuleAction.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/RuleAction.cpp index 639f5fbf917..9c3d839b770 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/RuleAction.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/RuleAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleActionMapper { - static const int allow_HASH = HashingUtils::HashString("allow"); - static const int deny_HASH = HashingUtils::HashString("deny"); + static constexpr uint32_t allow_HASH = ConstExprHashingUtils::HashString("allow"); + static constexpr uint32_t deny_HASH = ConstExprHashingUtils::HashString("deny"); RuleAction GetRuleActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == allow_HASH) { return RuleAction::allow; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SSEType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SSEType.cpp index 388aabd7cdd..3664673c56d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SSEType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SSEType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SSETypeMapper { - static const int sse_ebs_HASH = HashingUtils::HashString("sse-ebs"); - static const int sse_kms_HASH = HashingUtils::HashString("sse-kms"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t sse_ebs_HASH = ConstExprHashingUtils::HashString("sse-ebs"); + static constexpr uint32_t sse_kms_HASH = ConstExprHashingUtils::HashString("sse-kms"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); SSEType GetSSETypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sse_ebs_HASH) { return SSEType::sse_ebs; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Scope.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Scope.cpp index 1d1becfecd9..fecb098d0e2 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Scope.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Scope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScopeMapper { - static const int Availability_Zone_HASH = HashingUtils::HashString("Availability Zone"); - static const int Region_HASH = HashingUtils::HashString("Region"); + static constexpr uint32_t Availability_Zone_HASH = ConstExprHashingUtils::HashString("Availability Zone"); + static constexpr uint32_t Region_HASH = ConstExprHashingUtils::HashString("Region"); Scope GetScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Availability_Zone_HASH) { return Scope::Availability_Zone; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SelfServicePortal.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SelfServicePortal.cpp index f4420520237..9be0a6b9b93 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SelfServicePortal.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SelfServicePortal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SelfServicePortalMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); SelfServicePortal GetSelfServicePortalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return SelfServicePortal::enabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ServiceConnectivityType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ServiceConnectivityType.cpp index dde7314d8ca..289e025386f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ServiceConnectivityType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ServiceConnectivityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceConnectivityTypeMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); ServiceConnectivityType GetServiceConnectivityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return ServiceConnectivityType::ipv4; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ServiceState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ServiceState.cpp index b8d8fa3c085..c9e77923d3c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ServiceState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ServiceState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServiceStateMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ServiceState GetServiceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ServiceState::Pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ServiceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ServiceType.cpp index 23425089ce5..bac2b767f6c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ServiceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ServiceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServiceTypeMapper { - static const int Interface_HASH = HashingUtils::HashString("Interface"); - static const int Gateway_HASH = HashingUtils::HashString("Gateway"); - static const int GatewayLoadBalancer_HASH = HashingUtils::HashString("GatewayLoadBalancer"); + static constexpr uint32_t Interface_HASH = ConstExprHashingUtils::HashString("Interface"); + static constexpr uint32_t Gateway_HASH = ConstExprHashingUtils::HashString("Gateway"); + static constexpr uint32_t GatewayLoadBalancer_HASH = ConstExprHashingUtils::HashString("GatewayLoadBalancer"); ServiceType GetServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Interface_HASH) { return ServiceType::Interface; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ShutdownBehavior.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ShutdownBehavior.cpp index ab0ab01a43c..e61016ff093 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/ShutdownBehavior.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ShutdownBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShutdownBehaviorMapper { - static const int stop_HASH = HashingUtils::HashString("stop"); - static const int terminate_HASH = HashingUtils::HashString("terminate"); + static constexpr uint32_t stop_HASH = ConstExprHashingUtils::HashString("stop"); + static constexpr uint32_t terminate_HASH = ConstExprHashingUtils::HashString("terminate"); ShutdownBehavior GetShutdownBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == stop_HASH) { return ShutdownBehavior::stop; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotAttributeName.cpp index a9ad6ca7d0c..00938917ac0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotAttributeName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnapshotAttributeNameMapper { - static const int productCodes_HASH = HashingUtils::HashString("productCodes"); - static const int createVolumePermission_HASH = HashingUtils::HashString("createVolumePermission"); + static constexpr uint32_t productCodes_HASH = ConstExprHashingUtils::HashString("productCodes"); + static constexpr uint32_t createVolumePermission_HASH = ConstExprHashingUtils::HashString("createVolumePermission"); SnapshotAttributeName GetSnapshotAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == productCodes_HASH) { return SnapshotAttributeName::productCodes; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotState.cpp index f32fa5d46aa..1f8148470cb 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SnapshotState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SnapshotStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int error_HASH = HashingUtils::HashString("error"); - static const int recoverable_HASH = HashingUtils::HashString("recoverable"); - static const int recovering_HASH = HashingUtils::HashString("recovering"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t recoverable_HASH = ConstExprHashingUtils::HashString("recoverable"); + static constexpr uint32_t recovering_HASH = ConstExprHashingUtils::HashString("recovering"); SnapshotState GetSnapshotStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return SnapshotState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SpotAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SpotAllocationStrategy.cpp index c3abf6d7c83..bf0f0d19a8e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SpotAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SpotAllocationStrategy.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SpotAllocationStrategyMapper { - static const int lowest_price_HASH = HashingUtils::HashString("lowest-price"); - static const int diversified_HASH = HashingUtils::HashString("diversified"); - static const int capacity_optimized_HASH = HashingUtils::HashString("capacity-optimized"); - static const int capacity_optimized_prioritized_HASH = HashingUtils::HashString("capacity-optimized-prioritized"); - static const int price_capacity_optimized_HASH = HashingUtils::HashString("price-capacity-optimized"); + static constexpr uint32_t lowest_price_HASH = ConstExprHashingUtils::HashString("lowest-price"); + static constexpr uint32_t diversified_HASH = ConstExprHashingUtils::HashString("diversified"); + static constexpr uint32_t capacity_optimized_HASH = ConstExprHashingUtils::HashString("capacity-optimized"); + static constexpr uint32_t capacity_optimized_prioritized_HASH = ConstExprHashingUtils::HashString("capacity-optimized-prioritized"); + static constexpr uint32_t price_capacity_optimized_HASH = ConstExprHashingUtils::HashString("price-capacity-optimized"); SpotAllocationStrategy GetSpotAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == lowest_price_HASH) { return SpotAllocationStrategy::lowest_price; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceInterruptionBehavior.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceInterruptionBehavior.cpp index b67f5db2882..bebb6f303c0 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceInterruptionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceInterruptionBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SpotInstanceInterruptionBehaviorMapper { - static const int hibernate_HASH = HashingUtils::HashString("hibernate"); - static const int stop_HASH = HashingUtils::HashString("stop"); - static const int terminate_HASH = HashingUtils::HashString("terminate"); + static constexpr uint32_t hibernate_HASH = ConstExprHashingUtils::HashString("hibernate"); + static constexpr uint32_t stop_HASH = ConstExprHashingUtils::HashString("stop"); + static constexpr uint32_t terminate_HASH = ConstExprHashingUtils::HashString("terminate"); SpotInstanceInterruptionBehavior GetSpotInstanceInterruptionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hibernate_HASH) { return SpotInstanceInterruptionBehavior::hibernate; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceState.cpp index 2e62d7802c7..33cf550eb99 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SpotInstanceStateMapper { - static const int open_HASH = HashingUtils::HashString("open"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int closed_HASH = HashingUtils::HashString("closed"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t closed_HASH = ConstExprHashingUtils::HashString("closed"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); SpotInstanceState GetSpotInstanceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return SpotInstanceState::open; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceType.cpp index f5f1b661123..fc5317a35db 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SpotInstanceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SpotInstanceTypeMapper { - static const int one_time_HASH = HashingUtils::HashString("one-time"); - static const int persistent_HASH = HashingUtils::HashString("persistent"); + static constexpr uint32_t one_time_HASH = ConstExprHashingUtils::HashString("one-time"); + static constexpr uint32_t persistent_HASH = ConstExprHashingUtils::HashString("persistent"); SpotInstanceType GetSpotInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == one_time_HASH) { return SpotInstanceType::one_time; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SpreadLevel.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SpreadLevel.cpp index 9108d586742..bfd9feaf5cd 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SpreadLevel.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SpreadLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SpreadLevelMapper { - static const int host_HASH = HashingUtils::HashString("host"); - static const int rack_HASH = HashingUtils::HashString("rack"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); + static constexpr uint32_t rack_HASH = ConstExprHashingUtils::HashString("rack"); SpreadLevel GetSpreadLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == host_HASH) { return SpreadLevel::host; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/State.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/State.cpp index c2308779412..3910815ee56 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/State.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StateMapper { - static const int PendingAcceptance_HASH = HashingUtils::HashString("PendingAcceptance"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Expired_HASH = HashingUtils::HashString("Expired"); + static constexpr uint32_t PendingAcceptance_HASH = ConstExprHashingUtils::HashString("PendingAcceptance"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Expired_HASH = ConstExprHashingUtils::HashString("Expired"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PendingAcceptance_HASH) { return State::PendingAcceptance; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/StaticSourcesSupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/StaticSourcesSupportValue.cpp index 14169e95860..d236c5caef7 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/StaticSourcesSupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/StaticSourcesSupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StaticSourcesSupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); StaticSourcesSupportValue GetStaticSourcesSupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return StaticSourcesSupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/StatisticType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/StatisticType.cpp index 71acf83e3c0..6b824f86f62 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/StatisticType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/StatisticType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StatisticTypeMapper { - static const int p50_HASH = HashingUtils::HashString("p50"); + static constexpr uint32_t p50_HASH = ConstExprHashingUtils::HashString("p50"); StatisticType GetStatisticTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == p50_HASH) { return StatisticType::p50; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Status.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Status.cpp index 95034ed6fc2..757d49d9b36 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int MoveInProgress_HASH = HashingUtils::HashString("MoveInProgress"); - static const int InVpc_HASH = HashingUtils::HashString("InVpc"); - static const int InClassic_HASH = HashingUtils::HashString("InClassic"); + static constexpr uint32_t MoveInProgress_HASH = ConstExprHashingUtils::HashString("MoveInProgress"); + static constexpr uint32_t InVpc_HASH = ConstExprHashingUtils::HashString("InVpc"); + static constexpr uint32_t InClassic_HASH = ConstExprHashingUtils::HashString("InClassic"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MoveInProgress_HASH) { return Status::MoveInProgress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/StatusName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/StatusName.cpp index 9d8cf1d6651..f8df1a9306e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/StatusName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/StatusName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StatusNameMapper { - static const int reachability_HASH = HashingUtils::HashString("reachability"); + static constexpr uint32_t reachability_HASH = ConstExprHashingUtils::HashString("reachability"); StatusName GetStatusNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == reachability_HASH) { return StatusName::reachability; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/StatusType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/StatusType.cpp index 07427581e45..4af0a8b0c5c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/StatusType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/StatusType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusTypeMapper { - static const int passed_HASH = HashingUtils::HashString("passed"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int insufficient_data_HASH = HashingUtils::HashString("insufficient-data"); - static const int initializing_HASH = HashingUtils::HashString("initializing"); + static constexpr uint32_t passed_HASH = ConstExprHashingUtils::HashString("passed"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t insufficient_data_HASH = ConstExprHashingUtils::HashString("insufficient-data"); + static constexpr uint32_t initializing_HASH = ConstExprHashingUtils::HashString("initializing"); StatusType GetStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == passed_HASH) { return StatusType::passed; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/StorageTier.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/StorageTier.cpp index 1d0f57d6baf..ad4b8ba0e60 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/StorageTier.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/StorageTier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageTierMapper { - static const int archive_HASH = HashingUtils::HashString("archive"); - static const int standard_HASH = HashingUtils::HashString("standard"); + static constexpr uint32_t archive_HASH = ConstExprHashingUtils::HashString("archive"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); StorageTier GetStorageTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == archive_HASH) { return StorageTier::archive; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrBlockStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrBlockStateCode.cpp index 4f893537b5a..bd39b2e45fa 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrBlockStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrBlockStateCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SubnetCidrBlockStateCodeMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); - static const int failing_HASH = HashingUtils::HashString("failing"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); + static constexpr uint32_t failing_HASH = ConstExprHashingUtils::HashString("failing"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); SubnetCidrBlockStateCode GetSubnetCidrBlockStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return SubnetCidrBlockStateCode::associating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrReservationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrReservationType.cpp index cee1baffcc9..3f0be24dfc3 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrReservationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SubnetCidrReservationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubnetCidrReservationTypeMapper { - static const int prefix_HASH = HashingUtils::HashString("prefix"); - static const int explicit__HASH = HashingUtils::HashString("explicit"); + static constexpr uint32_t prefix_HASH = ConstExprHashingUtils::HashString("prefix"); + static constexpr uint32_t explicit__HASH = ConstExprHashingUtils::HashString("explicit"); SubnetCidrReservationType GetSubnetCidrReservationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == prefix_HASH) { return SubnetCidrReservationType::prefix; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SubnetState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SubnetState.cpp index e2f659fee19..589bc6ca922 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SubnetState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SubnetState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubnetStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); SubnetState GetSubnetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return SubnetState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SummaryStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SummaryStatus.cpp index 3871b3666c1..dc0c7bfe30a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SummaryStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SummaryStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SummaryStatusMapper { - static const int ok_HASH = HashingUtils::HashString("ok"); - static const int impaired_HASH = HashingUtils::HashString("impaired"); - static const int insufficient_data_HASH = HashingUtils::HashString("insufficient-data"); - static const int not_applicable_HASH = HashingUtils::HashString("not-applicable"); - static const int initializing_HASH = HashingUtils::HashString("initializing"); + static constexpr uint32_t ok_HASH = ConstExprHashingUtils::HashString("ok"); + static constexpr uint32_t impaired_HASH = ConstExprHashingUtils::HashString("impaired"); + static constexpr uint32_t insufficient_data_HASH = ConstExprHashingUtils::HashString("insufficient-data"); + static constexpr uint32_t not_applicable_HASH = ConstExprHashingUtils::HashString("not-applicable"); + static constexpr uint32_t initializing_HASH = ConstExprHashingUtils::HashString("initializing"); SummaryStatus GetSummaryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ok_HASH) { return SummaryStatus::ok; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/SupportedAdditionalProcessorFeature.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/SupportedAdditionalProcessorFeature.cpp index 835bd623b96..052461cdcc5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/SupportedAdditionalProcessorFeature.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/SupportedAdditionalProcessorFeature.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SupportedAdditionalProcessorFeatureMapper { - static const int amd_sev_snp_HASH = HashingUtils::HashString("amd-sev-snp"); + static constexpr uint32_t amd_sev_snp_HASH = ConstExprHashingUtils::HashString("amd-sev-snp"); SupportedAdditionalProcessorFeature GetSupportedAdditionalProcessorFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == amd_sev_snp_HASH) { return SupportedAdditionalProcessorFeature::amd_sev_snp; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TargetCapacityUnitType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TargetCapacityUnitType.cpp index 2e346d1249c..a9bcb9d6624 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TargetCapacityUnitType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TargetCapacityUnitType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetCapacityUnitTypeMapper { - static const int vcpu_HASH = HashingUtils::HashString("vcpu"); - static const int memory_mib_HASH = HashingUtils::HashString("memory-mib"); - static const int units_HASH = HashingUtils::HashString("units"); + static constexpr uint32_t vcpu_HASH = ConstExprHashingUtils::HashString("vcpu"); + static constexpr uint32_t memory_mib_HASH = ConstExprHashingUtils::HashString("memory-mib"); + static constexpr uint32_t units_HASH = ConstExprHashingUtils::HashString("units"); TargetCapacityUnitType GetTargetCapacityUnitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vcpu_HASH) { return TargetCapacityUnitType::vcpu; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TargetStorageTier.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TargetStorageTier.cpp index 7e160c576ee..195a8ad4b3c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TargetStorageTier.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TargetStorageTier.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetStorageTierMapper { - static const int archive_HASH = HashingUtils::HashString("archive"); + static constexpr uint32_t archive_HASH = ConstExprHashingUtils::HashString("archive"); TargetStorageTier GetTargetStorageTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == archive_HASH) { return TargetStorageTier::archive; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TelemetryStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TelemetryStatus.cpp index 7776ef0cb44..419672598b8 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TelemetryStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TelemetryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TelemetryStatusMapper { - static const int UP_HASH = HashingUtils::HashString("UP"); - static const int DOWN_HASH = HashingUtils::HashString("DOWN"); + static constexpr uint32_t UP_HASH = ConstExprHashingUtils::HashString("UP"); + static constexpr uint32_t DOWN_HASH = ConstExprHashingUtils::HashString("DOWN"); TelemetryStatus GetTelemetryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UP_HASH) { return TelemetryStatus::UP; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/Tenancy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/Tenancy.cpp index b3cb10f7ff9..546d5e6a889 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/Tenancy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/Tenancy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TenancyMapper { - static const int default__HASH = HashingUtils::HashString("default"); - static const int dedicated_HASH = HashingUtils::HashString("dedicated"); - static const int host_HASH = HashingUtils::HashString("host"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); + static constexpr uint32_t dedicated_HASH = ConstExprHashingUtils::HashString("dedicated"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); Tenancy GetTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return Tenancy::default_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TieringOperationStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TieringOperationStatus.cpp index c9faa7af8ba..2a7299405f4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TieringOperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TieringOperationStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TieringOperationStatusMapper { - static const int archival_in_progress_HASH = HashingUtils::HashString("archival-in-progress"); - static const int archival_completed_HASH = HashingUtils::HashString("archival-completed"); - static const int archival_failed_HASH = HashingUtils::HashString("archival-failed"); - static const int temporary_restore_in_progress_HASH = HashingUtils::HashString("temporary-restore-in-progress"); - static const int temporary_restore_completed_HASH = HashingUtils::HashString("temporary-restore-completed"); - static const int temporary_restore_failed_HASH = HashingUtils::HashString("temporary-restore-failed"); - static const int permanent_restore_in_progress_HASH = HashingUtils::HashString("permanent-restore-in-progress"); - static const int permanent_restore_completed_HASH = HashingUtils::HashString("permanent-restore-completed"); - static const int permanent_restore_failed_HASH = HashingUtils::HashString("permanent-restore-failed"); + static constexpr uint32_t archival_in_progress_HASH = ConstExprHashingUtils::HashString("archival-in-progress"); + static constexpr uint32_t archival_completed_HASH = ConstExprHashingUtils::HashString("archival-completed"); + static constexpr uint32_t archival_failed_HASH = ConstExprHashingUtils::HashString("archival-failed"); + static constexpr uint32_t temporary_restore_in_progress_HASH = ConstExprHashingUtils::HashString("temporary-restore-in-progress"); + static constexpr uint32_t temporary_restore_completed_HASH = ConstExprHashingUtils::HashString("temporary-restore-completed"); + static constexpr uint32_t temporary_restore_failed_HASH = ConstExprHashingUtils::HashString("temporary-restore-failed"); + static constexpr uint32_t permanent_restore_in_progress_HASH = ConstExprHashingUtils::HashString("permanent-restore-in-progress"); + static constexpr uint32_t permanent_restore_completed_HASH = ConstExprHashingUtils::HashString("permanent-restore-completed"); + static constexpr uint32_t permanent_restore_failed_HASH = ConstExprHashingUtils::HashString("permanent-restore-failed"); TieringOperationStatus GetTieringOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == archival_in_progress_HASH) { return TieringOperationStatus::archival_in_progress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TpmSupportValues.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TpmSupportValues.cpp index aa4a7046df8..97fb4160cca 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TpmSupportValues.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TpmSupportValues.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TpmSupportValuesMapper { - static const int v2_0_HASH = HashingUtils::HashString("v2.0"); + static constexpr uint32_t v2_0_HASH = ConstExprHashingUtils::HashString("v2.0"); TpmSupportValues GetTpmSupportValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == v2_0_HASH) { return TpmSupportValues::v2_0; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficDirection.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficDirection.cpp index e8a7564a480..6f21678ebcb 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficDirection.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrafficDirectionMapper { - static const int ingress_HASH = HashingUtils::HashString("ingress"); - static const int egress_HASH = HashingUtils::HashString("egress"); + static constexpr uint32_t ingress_HASH = ConstExprHashingUtils::HashString("ingress"); + static constexpr uint32_t egress_HASH = ConstExprHashingUtils::HashString("egress"); TrafficDirection GetTrafficDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ingress_HASH) { return TrafficDirection::ingress; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorFilterRuleField.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorFilterRuleField.cpp index 7e2c5ee8e6d..19b266c97be 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorFilterRuleField.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorFilterRuleField.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TrafficMirrorFilterRuleFieldMapper { - static const int destination_port_range_HASH = HashingUtils::HashString("destination-port-range"); - static const int source_port_range_HASH = HashingUtils::HashString("source-port-range"); - static const int protocol_HASH = HashingUtils::HashString("protocol"); - static const int description_HASH = HashingUtils::HashString("description"); + static constexpr uint32_t destination_port_range_HASH = ConstExprHashingUtils::HashString("destination-port-range"); + static constexpr uint32_t source_port_range_HASH = ConstExprHashingUtils::HashString("source-port-range"); + static constexpr uint32_t protocol_HASH = ConstExprHashingUtils::HashString("protocol"); + static constexpr uint32_t description_HASH = ConstExprHashingUtils::HashString("description"); TrafficMirrorFilterRuleField GetTrafficMirrorFilterRuleFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == destination_port_range_HASH) { return TrafficMirrorFilterRuleField::destination_port_range; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorNetworkService.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorNetworkService.cpp index 4bf00a1031c..8944d0f991b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorNetworkService.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorNetworkService.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TrafficMirrorNetworkServiceMapper { - static const int amazon_dns_HASH = HashingUtils::HashString("amazon-dns"); + static constexpr uint32_t amazon_dns_HASH = ConstExprHashingUtils::HashString("amazon-dns"); TrafficMirrorNetworkService GetTrafficMirrorNetworkServiceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == amazon_dns_HASH) { return TrafficMirrorNetworkService::amazon_dns; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorRuleAction.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorRuleAction.cpp index 4b2d51c06cd..fcee19f2686 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorRuleAction.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorRuleAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrafficMirrorRuleActionMapper { - static const int accept_HASH = HashingUtils::HashString("accept"); - static const int reject_HASH = HashingUtils::HashString("reject"); + static constexpr uint32_t accept_HASH = ConstExprHashingUtils::HashString("accept"); + static constexpr uint32_t reject_HASH = ConstExprHashingUtils::HashString("reject"); TrafficMirrorRuleAction GetTrafficMirrorRuleActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == accept_HASH) { return TrafficMirrorRuleAction::accept; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorSessionField.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorSessionField.cpp index bd36f089f99..032b74f149f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorSessionField.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorSessionField.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrafficMirrorSessionFieldMapper { - static const int packet_length_HASH = HashingUtils::HashString("packet-length"); - static const int description_HASH = HashingUtils::HashString("description"); - static const int virtual_network_id_HASH = HashingUtils::HashString("virtual-network-id"); + static constexpr uint32_t packet_length_HASH = ConstExprHashingUtils::HashString("packet-length"); + static constexpr uint32_t description_HASH = ConstExprHashingUtils::HashString("description"); + static constexpr uint32_t virtual_network_id_HASH = ConstExprHashingUtils::HashString("virtual-network-id"); TrafficMirrorSessionField GetTrafficMirrorSessionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == packet_length_HASH) { return TrafficMirrorSessionField::packet_length; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorTargetType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorTargetType.cpp index e70fa08aa2e..9c943f41aea 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorTargetType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficMirrorTargetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrafficMirrorTargetTypeMapper { - static const int network_interface_HASH = HashingUtils::HashString("network-interface"); - static const int network_load_balancer_HASH = HashingUtils::HashString("network-load-balancer"); - static const int gateway_load_balancer_endpoint_HASH = HashingUtils::HashString("gateway-load-balancer-endpoint"); + static constexpr uint32_t network_interface_HASH = ConstExprHashingUtils::HashString("network-interface"); + static constexpr uint32_t network_load_balancer_HASH = ConstExprHashingUtils::HashString("network-load-balancer"); + static constexpr uint32_t gateway_load_balancer_endpoint_HASH = ConstExprHashingUtils::HashString("gateway-load-balancer-endpoint"); TrafficMirrorTargetType GetTrafficMirrorTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == network_interface_HASH) { return TrafficMirrorTargetType::network_interface; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficType.cpp index 468162cd7a1..4ed3e4e1884 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrafficType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrafficType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrafficTypeMapper { - static const int ACCEPT_HASH = HashingUtils::HashString("ACCEPT"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ACCEPT_HASH = ConstExprHashingUtils::HashString("ACCEPT"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); TrafficType GetTrafficTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPT_HASH) { return TrafficType::ACCEPT; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAssociationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAssociationState.cpp index f0a6819223e..bef14675948 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayAssociationStateMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); TransitGatewayAssociationState GetTransitGatewayAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return TransitGatewayAssociationState::associating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentResourceType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentResourceType.cpp index faa49dbe39c..b418ec76c90 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentResourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TransitGatewayAttachmentResourceTypeMapper { - static const int vpc_HASH = HashingUtils::HashString("vpc"); - static const int vpn_HASH = HashingUtils::HashString("vpn"); - static const int direct_connect_gateway_HASH = HashingUtils::HashString("direct-connect-gateway"); - static const int connect_HASH = HashingUtils::HashString("connect"); - static const int peering_HASH = HashingUtils::HashString("peering"); - static const int tgw_peering_HASH = HashingUtils::HashString("tgw-peering"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); + static constexpr uint32_t vpn_HASH = ConstExprHashingUtils::HashString("vpn"); + static constexpr uint32_t direct_connect_gateway_HASH = ConstExprHashingUtils::HashString("direct-connect-gateway"); + static constexpr uint32_t connect_HASH = ConstExprHashingUtils::HashString("connect"); + static constexpr uint32_t peering_HASH = ConstExprHashingUtils::HashString("peering"); + static constexpr uint32_t tgw_peering_HASH = ConstExprHashingUtils::HashString("tgw-peering"); TransitGatewayAttachmentResourceType GetTransitGatewayAttachmentResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vpc_HASH) { return TransitGatewayAttachmentResourceType::vpc; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentState.cpp index 442e12342fc..f8b29fa5052 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayAttachmentState.cpp @@ -20,24 +20,24 @@ namespace Aws namespace TransitGatewayAttachmentStateMapper { - static const int initiating_HASH = HashingUtils::HashString("initiating"); - static const int initiatingRequest_HASH = HashingUtils::HashString("initiatingRequest"); - static const int pendingAcceptance_HASH = HashingUtils::HashString("pendingAcceptance"); - static const int rollingBack_HASH = HashingUtils::HashString("rollingBack"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int rejected_HASH = HashingUtils::HashString("rejected"); - static const int rejecting_HASH = HashingUtils::HashString("rejecting"); - static const int failing_HASH = HashingUtils::HashString("failing"); + static constexpr uint32_t initiating_HASH = ConstExprHashingUtils::HashString("initiating"); + static constexpr uint32_t initiatingRequest_HASH = ConstExprHashingUtils::HashString("initiatingRequest"); + static constexpr uint32_t pendingAcceptance_HASH = ConstExprHashingUtils::HashString("pendingAcceptance"); + static constexpr uint32_t rollingBack_HASH = ConstExprHashingUtils::HashString("rollingBack"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t rejected_HASH = ConstExprHashingUtils::HashString("rejected"); + static constexpr uint32_t rejecting_HASH = ConstExprHashingUtils::HashString("rejecting"); + static constexpr uint32_t failing_HASH = ConstExprHashingUtils::HashString("failing"); TransitGatewayAttachmentState GetTransitGatewayAttachmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == initiating_HASH) { return TransitGatewayAttachmentState::initiating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayConnectPeerState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayConnectPeerState.cpp index 32792ec1d1d..8606ba07493 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayConnectPeerState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayConnectPeerState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayConnectPeerStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayConnectPeerState GetTransitGatewayConnectPeerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayConnectPeerState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulitcastDomainAssociationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulitcastDomainAssociationState.cpp index b285096ad35..e4747a00534 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulitcastDomainAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulitcastDomainAssociationState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TransitGatewayMulitcastDomainAssociationStateMapper { - static const int pendingAcceptance_HASH = HashingUtils::HashString("pendingAcceptance"); - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); - static const int rejected_HASH = HashingUtils::HashString("rejected"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t pendingAcceptance_HASH = ConstExprHashingUtils::HashString("pendingAcceptance"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); + static constexpr uint32_t rejected_HASH = ConstExprHashingUtils::HashString("rejected"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); TransitGatewayMulitcastDomainAssociationState GetTransitGatewayMulitcastDomainAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pendingAcceptance_HASH) { return TransitGatewayMulitcastDomainAssociationState::pendingAcceptance; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulticastDomainState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulticastDomainState.cpp index e81b5f6c138..70fb6bcca2d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulticastDomainState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayMulticastDomainState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayMulticastDomainStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayMulticastDomainState GetTransitGatewayMulticastDomainStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayMulticastDomainState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPolicyTableState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPolicyTableState.cpp index 4f684ede5de..42feaac2fd1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPolicyTableState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPolicyTableState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayPolicyTableStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayPolicyTableState GetTransitGatewayPolicyTableStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayPolicyTableState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPrefixListReferenceState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPrefixListReferenceState.cpp index 1c963cf034e..07f7d6940d1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPrefixListReferenceState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPrefixListReferenceState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayPrefixListReferenceStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); TransitGatewayPrefixListReferenceState GetTransitGatewayPrefixListReferenceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayPrefixListReferenceState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPropagationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPropagationState.cpp index b47d992ddd9..f45dd6e51ff 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPropagationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayPropagationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayPropagationStateMapper { - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); TransitGatewayPropagationState GetTransitGatewayPropagationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabling_HASH) { return TransitGatewayPropagationState::enabling; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteState.cpp index 641ee76c4be..66e3bf8708a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransitGatewayRouteStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int blackhole_HASH = HashingUtils::HashString("blackhole"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t blackhole_HASH = ConstExprHashingUtils::HashString("blackhole"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayRouteState GetTransitGatewayRouteStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayRouteState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementDirection.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementDirection.cpp index e446b0234b9..6b5dd63ec98 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementDirection.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransitGatewayRouteTableAnnouncementDirectionMapper { - static const int outgoing_HASH = HashingUtils::HashString("outgoing"); - static const int incoming_HASH = HashingUtils::HashString("incoming"); + static constexpr uint32_t outgoing_HASH = ConstExprHashingUtils::HashString("outgoing"); + static constexpr uint32_t incoming_HASH = ConstExprHashingUtils::HashString("incoming"); TransitGatewayRouteTableAnnouncementDirection GetTransitGatewayRouteTableAnnouncementDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == outgoing_HASH) { return TransitGatewayRouteTableAnnouncementDirection::outgoing; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementState.cpp index 6cb6ec787ad..6eb2d41e058 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableAnnouncementState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TransitGatewayRouteTableAnnouncementStateMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int failing_HASH = HashingUtils::HashString("failing"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t failing_HASH = ConstExprHashingUtils::HashString("failing"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayRouteTableAnnouncementState GetTransitGatewayRouteTableAnnouncementStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return TransitGatewayRouteTableAnnouncementState::available; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableState.cpp index 42ca5dbc101..8853a2ae990 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteTableState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayRouteTableStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayRouteTableState GetTransitGatewayRouteTableStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayRouteTableState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteType.cpp index ea9d4bf4a68..5bd0c05de3b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayRouteType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransitGatewayRouteTypeMapper { - static const int static__HASH = HashingUtils::HashString("static"); - static const int propagated_HASH = HashingUtils::HashString("propagated"); + static constexpr uint32_t static__HASH = ConstExprHashingUtils::HashString("static"); + static constexpr uint32_t propagated_HASH = ConstExprHashingUtils::HashString("propagated"); TransitGatewayRouteType GetTransitGatewayRouteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == static__HASH) { return TransitGatewayRouteType::static_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayState.cpp index 70eaff04b03..7600f058f7b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransitGatewayState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransitGatewayStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); TransitGatewayState GetTransitGatewayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return TransitGatewayState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TransportProtocol.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TransportProtocol.cpp index 107aea9528a..b71c4555309 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TransportProtocol.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TransportProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransportProtocolMapper { - static const int tcp_HASH = HashingUtils::HashString("tcp"); - static const int udp_HASH = HashingUtils::HashString("udp"); + static constexpr uint32_t tcp_HASH = ConstExprHashingUtils::HashString("tcp"); + static constexpr uint32_t udp_HASH = ConstExprHashingUtils::HashString("udp"); TransportProtocol GetTransportProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == tcp_HASH) { return TransportProtocol::tcp; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TrustProviderType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TrustProviderType.cpp index 9575df3f27f..7cd1cf5e961 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TrustProviderType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TrustProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrustProviderTypeMapper { - static const int user_HASH = HashingUtils::HashString("user"); - static const int device_HASH = HashingUtils::HashString("device"); + static constexpr uint32_t user_HASH = ConstExprHashingUtils::HashString("user"); + static constexpr uint32_t device_HASH = ConstExprHashingUtils::HashString("device"); TrustProviderType GetTrustProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == user_HASH) { return TrustProviderType::user; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/TunnelInsideIpVersion.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/TunnelInsideIpVersion.cpp index bd93f8a44a6..6c48f5af954 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/TunnelInsideIpVersion.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/TunnelInsideIpVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TunnelInsideIpVersionMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); TunnelInsideIpVersion GetTunnelInsideIpVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return TunnelInsideIpVersion::ipv4; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/UnlimitedSupportedInstanceFamily.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/UnlimitedSupportedInstanceFamily.cpp index aa47f708a22..1863cbf8e0f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/UnlimitedSupportedInstanceFamily.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/UnlimitedSupportedInstanceFamily.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UnlimitedSupportedInstanceFamilyMapper { - static const int t2_HASH = HashingUtils::HashString("t2"); - static const int t3_HASH = HashingUtils::HashString("t3"); - static const int t3a_HASH = HashingUtils::HashString("t3a"); - static const int t4g_HASH = HashingUtils::HashString("t4g"); + static constexpr uint32_t t2_HASH = ConstExprHashingUtils::HashString("t2"); + static constexpr uint32_t t3_HASH = ConstExprHashingUtils::HashString("t3"); + static constexpr uint32_t t3a_HASH = ConstExprHashingUtils::HashString("t3a"); + static constexpr uint32_t t4g_HASH = ConstExprHashingUtils::HashString("t4g"); UnlimitedSupportedInstanceFamily GetUnlimitedSupportedInstanceFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == t2_HASH) { return UnlimitedSupportedInstanceFamily::t2; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/UnsuccessfulInstanceCreditSpecificationErrorCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/UnsuccessfulInstanceCreditSpecificationErrorCode.cpp index 39249fabb7c..c4bbde0d607 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/UnsuccessfulInstanceCreditSpecificationErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/UnsuccessfulInstanceCreditSpecificationErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UnsuccessfulInstanceCreditSpecificationErrorCodeMapper { - static const int InvalidInstanceID_Malformed_HASH = HashingUtils::HashString("InvalidInstanceID.Malformed"); - static const int InvalidInstanceID_NotFound_HASH = HashingUtils::HashString("InvalidInstanceID.NotFound"); - static const int IncorrectInstanceState_HASH = HashingUtils::HashString("IncorrectInstanceState"); - static const int InstanceCreditSpecification_NotSupported_HASH = HashingUtils::HashString("InstanceCreditSpecification.NotSupported"); + static constexpr uint32_t InvalidInstanceID_Malformed_HASH = ConstExprHashingUtils::HashString("InvalidInstanceID.Malformed"); + static constexpr uint32_t InvalidInstanceID_NotFound_HASH = ConstExprHashingUtils::HashString("InvalidInstanceID.NotFound"); + static constexpr uint32_t IncorrectInstanceState_HASH = ConstExprHashingUtils::HashString("IncorrectInstanceState"); + static constexpr uint32_t InstanceCreditSpecification_NotSupported_HASH = ConstExprHashingUtils::HashString("InstanceCreditSpecification.NotSupported"); UnsuccessfulInstanceCreditSpecificationErrorCode GetUnsuccessfulInstanceCreditSpecificationErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidInstanceID_Malformed_HASH) { return UnsuccessfulInstanceCreditSpecificationErrorCode::InvalidInstanceID_Malformed; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/UsageClassType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/UsageClassType.cpp index 38f8b7ab82e..b4b5e6d4b73 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/UsageClassType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/UsageClassType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UsageClassTypeMapper { - static const int spot_HASH = HashingUtils::HashString("spot"); - static const int on_demand_HASH = HashingUtils::HashString("on-demand"); + static constexpr uint32_t spot_HASH = ConstExprHashingUtils::HashString("spot"); + static constexpr uint32_t on_demand_HASH = ConstExprHashingUtils::HashString("on-demand"); UsageClassType GetUsageClassTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == spot_HASH) { return UsageClassType::spot; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/UserTrustProviderType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/UserTrustProviderType.cpp index d16bc1e7b90..e96c8b3e209 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/UserTrustProviderType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/UserTrustProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserTrustProviderTypeMapper { - static const int iam_identity_center_HASH = HashingUtils::HashString("iam-identity-center"); - static const int oidc_HASH = HashingUtils::HashString("oidc"); + static constexpr uint32_t iam_identity_center_HASH = ConstExprHashingUtils::HashString("iam-identity-center"); + static constexpr uint32_t oidc_HASH = ConstExprHashingUtils::HashString("oidc"); UserTrustProviderType GetUserTrustProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == iam_identity_center_HASH) { return UserTrustProviderType::iam_identity_center; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointAttachmentType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointAttachmentType.cpp index 2fe726aa06c..c97f80f8b9f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointAttachmentType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointAttachmentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VerifiedAccessEndpointAttachmentTypeMapper { - static const int vpc_HASH = HashingUtils::HashString("vpc"); + static constexpr uint32_t vpc_HASH = ConstExprHashingUtils::HashString("vpc"); VerifiedAccessEndpointAttachmentType GetVerifiedAccessEndpointAttachmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vpc_HASH) { return VerifiedAccessEndpointAttachmentType::vpc; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointProtocol.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointProtocol.cpp index 5e4fe5d4933..4dc494f2f4f 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointProtocol.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VerifiedAccessEndpointProtocolMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int https_HASH = HashingUtils::HashString("https"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t https_HASH = ConstExprHashingUtils::HashString("https"); VerifiedAccessEndpointProtocol GetVerifiedAccessEndpointProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return VerifiedAccessEndpointProtocol::http; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointStatusCode.cpp index 84657970ee4..6b558053dbb 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointStatusCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VerifiedAccessEndpointStatusCodeMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int updating_HASH = HashingUtils::HashString("updating"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t updating_HASH = ConstExprHashingUtils::HashString("updating"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); VerifiedAccessEndpointStatusCode GetVerifiedAccessEndpointStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return VerifiedAccessEndpointStatusCode::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointType.cpp index 143341419b2..6dee4958e7e 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessEndpointType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VerifiedAccessEndpointTypeMapper { - static const int load_balancer_HASH = HashingUtils::HashString("load-balancer"); - static const int network_interface_HASH = HashingUtils::HashString("network-interface"); + static constexpr uint32_t load_balancer_HASH = ConstExprHashingUtils::HashString("load-balancer"); + static constexpr uint32_t network_interface_HASH = ConstExprHashingUtils::HashString("network-interface"); VerifiedAccessEndpointType GetVerifiedAccessEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == load_balancer_HASH) { return VerifiedAccessEndpointType::load_balancer; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessLogDeliveryStatusCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessLogDeliveryStatusCode.cpp index faa3567419a..3f2aa01d60b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessLogDeliveryStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VerifiedAccessLogDeliveryStatusCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VerifiedAccessLogDeliveryStatusCodeMapper { - static const int success_HASH = HashingUtils::HashString("success"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t success_HASH = ConstExprHashingUtils::HashString("success"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); VerifiedAccessLogDeliveryStatusCode GetVerifiedAccessLogDeliveryStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == success_HASH) { return VerifiedAccessLogDeliveryStatusCode::success; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VirtualizationType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VirtualizationType.cpp index 690da561454..223ebc5a50b 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VirtualizationType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VirtualizationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VirtualizationTypeMapper { - static const int hvm_HASH = HashingUtils::HashString("hvm"); - static const int paravirtual_HASH = HashingUtils::HashString("paravirtual"); + static constexpr uint32_t hvm_HASH = ConstExprHashingUtils::HashString("hvm"); + static constexpr uint32_t paravirtual_HASH = ConstExprHashingUtils::HashString("paravirtual"); VirtualizationType GetVirtualizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == hvm_HASH) { return VirtualizationType::hvm; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttachmentState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttachmentState.cpp index f30a8b22198..4d0f6f6a859 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttachmentState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttachmentState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VolumeAttachmentStateMapper { - static const int attaching_HASH = HashingUtils::HashString("attaching"); - static const int attached_HASH = HashingUtils::HashString("attached"); - static const int detaching_HASH = HashingUtils::HashString("detaching"); - static const int detached_HASH = HashingUtils::HashString("detached"); - static const int busy_HASH = HashingUtils::HashString("busy"); + static constexpr uint32_t attaching_HASH = ConstExprHashingUtils::HashString("attaching"); + static constexpr uint32_t attached_HASH = ConstExprHashingUtils::HashString("attached"); + static constexpr uint32_t detaching_HASH = ConstExprHashingUtils::HashString("detaching"); + static constexpr uint32_t detached_HASH = ConstExprHashingUtils::HashString("detached"); + static constexpr uint32_t busy_HASH = ConstExprHashingUtils::HashString("busy"); VolumeAttachmentState GetVolumeAttachmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == attaching_HASH) { return VolumeAttachmentState::attaching; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttributeName.cpp index c4a89d467bc..c11a67f5143 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeAttributeName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VolumeAttributeNameMapper { - static const int autoEnableIO_HASH = HashingUtils::HashString("autoEnableIO"); - static const int productCodes_HASH = HashingUtils::HashString("productCodes"); + static constexpr uint32_t autoEnableIO_HASH = ConstExprHashingUtils::HashString("autoEnableIO"); + static constexpr uint32_t productCodes_HASH = ConstExprHashingUtils::HashString("productCodes"); VolumeAttributeName GetVolumeAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == autoEnableIO_HASH) { return VolumeAttributeName::autoEnableIO; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeModificationState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeModificationState.cpp index 0d189522a9e..609c8ede240 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeModificationState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeModificationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VolumeModificationStateMapper { - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int optimizing_HASH = HashingUtils::HashString("optimizing"); - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t optimizing_HASH = ConstExprHashingUtils::HashString("optimizing"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); VolumeModificationState GetVolumeModificationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == modifying_HASH) { return VolumeModificationState::modifying; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeState.cpp index daf2ce04800..ba29e47dbad 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace VolumeStateMapper { - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int in_use_HASH = HashingUtils::HashString("in-use"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int error_HASH = HashingUtils::HashString("error"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t in_use_HASH = ConstExprHashingUtils::HashString("in-use"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); VolumeState GetVolumeStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == creating_HASH) { return VolumeState::creating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusInfoStatus.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusInfoStatus.cpp index e204f977b2c..7b7d2e11205 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusInfoStatus.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusInfoStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VolumeStatusInfoStatusMapper { - static const int ok_HASH = HashingUtils::HashString("ok"); - static const int impaired_HASH = HashingUtils::HashString("impaired"); - static const int insufficient_data_HASH = HashingUtils::HashString("insufficient-data"); + static constexpr uint32_t ok_HASH = ConstExprHashingUtils::HashString("ok"); + static constexpr uint32_t impaired_HASH = ConstExprHashingUtils::HashString("impaired"); + static constexpr uint32_t insufficient_data_HASH = ConstExprHashingUtils::HashString("insufficient-data"); VolumeStatusInfoStatus GetVolumeStatusInfoStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ok_HASH) { return VolumeStatusInfoStatus::ok; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusName.cpp index b882e9960fd..8a601651ff6 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeStatusName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VolumeStatusNameMapper { - static const int io_enabled_HASH = HashingUtils::HashString("io-enabled"); - static const int io_performance_HASH = HashingUtils::HashString("io-performance"); + static constexpr uint32_t io_enabled_HASH = ConstExprHashingUtils::HashString("io-enabled"); + static constexpr uint32_t io_performance_HASH = ConstExprHashingUtils::HashString("io-performance"); VolumeStatusName GetVolumeStatusNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == io_enabled_HASH) { return VolumeStatusName::io_enabled; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeType.cpp index e5817ebef89..64b187baf7a 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VolumeType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VolumeType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace VolumeTypeMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int io1_HASH = HashingUtils::HashString("io1"); - static const int io2_HASH = HashingUtils::HashString("io2"); - static const int gp2_HASH = HashingUtils::HashString("gp2"); - static const int sc1_HASH = HashingUtils::HashString("sc1"); - static const int st1_HASH = HashingUtils::HashString("st1"); - static const int gp3_HASH = HashingUtils::HashString("gp3"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t io1_HASH = ConstExprHashingUtils::HashString("io1"); + static constexpr uint32_t io2_HASH = ConstExprHashingUtils::HashString("io2"); + static constexpr uint32_t gp2_HASH = ConstExprHashingUtils::HashString("gp2"); + static constexpr uint32_t sc1_HASH = ConstExprHashingUtils::HashString("sc1"); + static constexpr uint32_t st1_HASH = ConstExprHashingUtils::HashString("st1"); + static constexpr uint32_t gp3_HASH = ConstExprHashingUtils::HashString("gp3"); VolumeType GetVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return VolumeType::standard; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpcAttributeName.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpcAttributeName.cpp index 8d065520b9b..3ce25306d37 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpcAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpcAttributeName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VpcAttributeNameMapper { - static const int enableDnsSupport_HASH = HashingUtils::HashString("enableDnsSupport"); - static const int enableDnsHostnames_HASH = HashingUtils::HashString("enableDnsHostnames"); - static const int enableNetworkAddressUsageMetrics_HASH = HashingUtils::HashString("enableNetworkAddressUsageMetrics"); + static constexpr uint32_t enableDnsSupport_HASH = ConstExprHashingUtils::HashString("enableDnsSupport"); + static constexpr uint32_t enableDnsHostnames_HASH = ConstExprHashingUtils::HashString("enableDnsHostnames"); + static constexpr uint32_t enableNetworkAddressUsageMetrics_HASH = ConstExprHashingUtils::HashString("enableNetworkAddressUsageMetrics"); VpcAttributeName GetVpcAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enableDnsSupport_HASH) { return VpcAttributeName::enableDnsSupport; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpcCidrBlockStateCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpcCidrBlockStateCode.cpp index bcd1d8d1b99..b0d9fff4756 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpcCidrBlockStateCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpcCidrBlockStateCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace VpcCidrBlockStateCodeMapper { - static const int associating_HASH = HashingUtils::HashString("associating"); - static const int associated_HASH = HashingUtils::HashString("associated"); - static const int disassociating_HASH = HashingUtils::HashString("disassociating"); - static const int disassociated_HASH = HashingUtils::HashString("disassociated"); - static const int failing_HASH = HashingUtils::HashString("failing"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t associating_HASH = ConstExprHashingUtils::HashString("associating"); + static constexpr uint32_t associated_HASH = ConstExprHashingUtils::HashString("associated"); + static constexpr uint32_t disassociating_HASH = ConstExprHashingUtils::HashString("disassociating"); + static constexpr uint32_t disassociated_HASH = ConstExprHashingUtils::HashString("disassociated"); + static constexpr uint32_t failing_HASH = ConstExprHashingUtils::HashString("failing"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); VpcCidrBlockStateCode GetVpcCidrBlockStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == associating_HASH) { return VpcCidrBlockStateCode::associating; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpcEndpointType.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpcEndpointType.cpp index 5c2a540af97..78c1a9eed4c 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpcEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpcEndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VpcEndpointTypeMapper { - static const int Interface_HASH = HashingUtils::HashString("Interface"); - static const int Gateway_HASH = HashingUtils::HashString("Gateway"); - static const int GatewayLoadBalancer_HASH = HashingUtils::HashString("GatewayLoadBalancer"); + static constexpr uint32_t Interface_HASH = ConstExprHashingUtils::HashString("Interface"); + static constexpr uint32_t Gateway_HASH = ConstExprHashingUtils::HashString("Gateway"); + static constexpr uint32_t GatewayLoadBalancer_HASH = ConstExprHashingUtils::HashString("GatewayLoadBalancer"); VpcEndpointType GetVpcEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Interface_HASH) { return VpcEndpointType::Interface; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpcPeeringConnectionStateReasonCode.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpcPeeringConnectionStateReasonCode.cpp index b05c9148cee..25ef15a0d54 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpcPeeringConnectionStateReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpcPeeringConnectionStateReasonCode.cpp @@ -20,20 +20,20 @@ namespace Aws namespace VpcPeeringConnectionStateReasonCodeMapper { - static const int initiating_request_HASH = HashingUtils::HashString("initiating-request"); - static const int pending_acceptance_HASH = HashingUtils::HashString("pending-acceptance"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int rejected_HASH = HashingUtils::HashString("rejected"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int expired_HASH = HashingUtils::HashString("expired"); - static const int provisioning_HASH = HashingUtils::HashString("provisioning"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); + static constexpr uint32_t initiating_request_HASH = ConstExprHashingUtils::HashString("initiating-request"); + static constexpr uint32_t pending_acceptance_HASH = ConstExprHashingUtils::HashString("pending-acceptance"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t rejected_HASH = ConstExprHashingUtils::HashString("rejected"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t expired_HASH = ConstExprHashingUtils::HashString("expired"); + static constexpr uint32_t provisioning_HASH = ConstExprHashingUtils::HashString("provisioning"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); VpcPeeringConnectionStateReasonCode GetVpcPeeringConnectionStateReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == initiating_request_HASH) { return VpcPeeringConnectionStateReasonCode::initiating_request; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpcState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpcState.cpp index 0825c34ed8f..556e8cbfba1 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpcState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpcState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VpcStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); VpcState GetVpcStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return VpcState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpcTenancy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpcTenancy.cpp index 805e7ea5651..3e5cafd7e86 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpcTenancy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpcTenancy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VpcTenancyMapper { - static const int default__HASH = HashingUtils::HashString("default"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); VpcTenancy GetVpcTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == default__HASH) { return VpcTenancy::default_; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpnEcmpSupportValue.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpnEcmpSupportValue.cpp index ca0f921a705..641a906be4d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpnEcmpSupportValue.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpnEcmpSupportValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VpnEcmpSupportValueMapper { - static const int enable_HASH = HashingUtils::HashString("enable"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t enable_HASH = ConstExprHashingUtils::HashString("enable"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); VpnEcmpSupportValue GetVpnEcmpSupportValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enable_HASH) { return VpnEcmpSupportValue::enable; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpnProtocol.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpnProtocol.cpp index 3a4ad7fa039..4d54a815aec 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpnProtocol.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpnProtocol.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VpnProtocolMapper { - static const int openvpn_HASH = HashingUtils::HashString("openvpn"); + static constexpr uint32_t openvpn_HASH = ConstExprHashingUtils::HashString("openvpn"); VpnProtocol GetVpnProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == openvpn_HASH) { return VpnProtocol::openvpn; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpnState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpnState.cpp index fa020626e0a..70076b4faca 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpnState.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpnState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VpnStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); VpnState GetVpnStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return VpnState::pending; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/VpnStaticRouteSource.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/VpnStaticRouteSource.cpp index 8283c37dfcd..4aabc35c1f4 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/VpnStaticRouteSource.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/VpnStaticRouteSource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VpnStaticRouteSourceMapper { - static const int Static_HASH = HashingUtils::HashString("Static"); + static constexpr uint32_t Static_HASH = ConstExprHashingUtils::HashString("Static"); VpnStaticRouteSource GetVpnStaticRouteSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Static_HASH) { return VpnStaticRouteSource::Static; diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/WeekDay.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/WeekDay.cpp index 591c4ac790b..aabbad96a13 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/WeekDay.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/WeekDay.cpp @@ -20,18 +20,18 @@ namespace Aws namespace WeekDayMapper { - static const int sunday_HASH = HashingUtils::HashString("sunday"); - static const int monday_HASH = HashingUtils::HashString("monday"); - static const int tuesday_HASH = HashingUtils::HashString("tuesday"); - static const int wednesday_HASH = HashingUtils::HashString("wednesday"); - static const int thursday_HASH = HashingUtils::HashString("thursday"); - static const int friday_HASH = HashingUtils::HashString("friday"); - static const int saturday_HASH = HashingUtils::HashString("saturday"); + static constexpr uint32_t sunday_HASH = ConstExprHashingUtils::HashString("sunday"); + static constexpr uint32_t monday_HASH = ConstExprHashingUtils::HashString("monday"); + static constexpr uint32_t tuesday_HASH = ConstExprHashingUtils::HashString("tuesday"); + static constexpr uint32_t wednesday_HASH = ConstExprHashingUtils::HashString("wednesday"); + static constexpr uint32_t thursday_HASH = ConstExprHashingUtils::HashString("thursday"); + static constexpr uint32_t friday_HASH = ConstExprHashingUtils::HashString("friday"); + static constexpr uint32_t saturday_HASH = ConstExprHashingUtils::HashString("saturday"); WeekDay GetWeekDayForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sunday_HASH) { return WeekDay::sunday; diff --git a/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicErrors.cpp b/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicErrors.cpp index 6bbe1eb6f66..509644f2c30 100644 --- a/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicErrors.cpp +++ b/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicErrors.cpp @@ -26,35 +26,35 @@ template<> AWS_ECRPUBLIC_API InvalidLayerPartException ECRPublicError::GetModele namespace ECRPublicErrorMapper { -static const int INVALID_LAYER_HASH = HashingUtils::HashString("InvalidLayerException"); -static const int IMAGE_DIGEST_DOES_NOT_MATCH_HASH = HashingUtils::HashString("ImageDigestDoesNotMatchException"); -static const int REFERENCED_IMAGES_NOT_FOUND_HASH = HashingUtils::HashString("ReferencedImagesNotFoundException"); -static const int IMAGE_TAG_ALREADY_EXISTS_HASH = HashingUtils::HashString("ImageTagAlreadyExistsException"); -static const int REPOSITORY_NOT_EMPTY_HASH = HashingUtils::HashString("RepositoryNotEmptyException"); -static const int REPOSITORY_CATALOG_DATA_NOT_FOUND_HASH = HashingUtils::HashString("RepositoryCatalogDataNotFoundException"); -static const int LAYERS_NOT_FOUND_HASH = HashingUtils::HashString("LayersNotFoundException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int SERVER_HASH = HashingUtils::HashString("ServerException"); -static const int REPOSITORY_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("RepositoryPolicyNotFoundException"); -static const int REPOSITORY_NOT_FOUND_HASH = HashingUtils::HashString("RepositoryNotFoundException"); -static const int LAYER_PART_TOO_SMALL_HASH = HashingUtils::HashString("LayerPartTooSmallException"); -static const int EMPTY_UPLOAD_HASH = HashingUtils::HashString("EmptyUploadException"); -static const int UNSUPPORTED_COMMAND_HASH = HashingUtils::HashString("UnsupportedCommandException"); -static const int REPOSITORY_ALREADY_EXISTS_HASH = HashingUtils::HashString("RepositoryAlreadyExistsException"); -static const int REGISTRY_NOT_FOUND_HASH = HashingUtils::HashString("RegistryNotFoundException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int IMAGE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ImageAlreadyExistsException"); -static const int INVALID_TAG_PARAMETER_HASH = HashingUtils::HashString("InvalidTagParameterException"); -static const int LAYER_ALREADY_EXISTS_HASH = HashingUtils::HashString("LayerAlreadyExistsException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INVALID_LAYER_PART_HASH = HashingUtils::HashString("InvalidLayerPartException"); -static const int IMAGE_NOT_FOUND_HASH = HashingUtils::HashString("ImageNotFoundException"); -static const int UPLOAD_NOT_FOUND_HASH = HashingUtils::HashString("UploadNotFoundException"); +static constexpr uint32_t INVALID_LAYER_HASH = ConstExprHashingUtils::HashString("InvalidLayerException"); +static constexpr uint32_t IMAGE_DIGEST_DOES_NOT_MATCH_HASH = ConstExprHashingUtils::HashString("ImageDigestDoesNotMatchException"); +static constexpr uint32_t REFERENCED_IMAGES_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ReferencedImagesNotFoundException"); +static constexpr uint32_t IMAGE_TAG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ImageTagAlreadyExistsException"); +static constexpr uint32_t REPOSITORY_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("RepositoryNotEmptyException"); +static constexpr uint32_t REPOSITORY_CATALOG_DATA_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RepositoryCatalogDataNotFoundException"); +static constexpr uint32_t LAYERS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LayersNotFoundException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("ServerException"); +static constexpr uint32_t REPOSITORY_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RepositoryPolicyNotFoundException"); +static constexpr uint32_t REPOSITORY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RepositoryNotFoundException"); +static constexpr uint32_t LAYER_PART_TOO_SMALL_HASH = ConstExprHashingUtils::HashString("LayerPartTooSmallException"); +static constexpr uint32_t EMPTY_UPLOAD_HASH = ConstExprHashingUtils::HashString("EmptyUploadException"); +static constexpr uint32_t UNSUPPORTED_COMMAND_HASH = ConstExprHashingUtils::HashString("UnsupportedCommandException"); +static constexpr uint32_t REPOSITORY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RepositoryAlreadyExistsException"); +static constexpr uint32_t REGISTRY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RegistryNotFoundException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t IMAGE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ImageAlreadyExistsException"); +static constexpr uint32_t INVALID_TAG_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidTagParameterException"); +static constexpr uint32_t LAYER_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("LayerAlreadyExistsException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INVALID_LAYER_PART_HASH = ConstExprHashingUtils::HashString("InvalidLayerPartException"); +static constexpr uint32_t IMAGE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ImageNotFoundException"); +static constexpr uint32_t UPLOAD_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("UploadNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_LAYER_HASH) { diff --git a/generated/src/aws-cpp-sdk-ecr-public/source/model/ImageFailureCode.cpp b/generated/src/aws-cpp-sdk-ecr-public/source/model/ImageFailureCode.cpp index ed52bffe5c0..6bb5de3d2da 100644 --- a/generated/src/aws-cpp-sdk-ecr-public/source/model/ImageFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ecr-public/source/model/ImageFailureCode.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ImageFailureCodeMapper { - static const int InvalidImageDigest_HASH = HashingUtils::HashString("InvalidImageDigest"); - static const int InvalidImageTag_HASH = HashingUtils::HashString("InvalidImageTag"); - static const int ImageTagDoesNotMatchDigest_HASH = HashingUtils::HashString("ImageTagDoesNotMatchDigest"); - static const int ImageNotFound_HASH = HashingUtils::HashString("ImageNotFound"); - static const int MissingDigestAndTag_HASH = HashingUtils::HashString("MissingDigestAndTag"); - static const int ImageReferencedByManifestList_HASH = HashingUtils::HashString("ImageReferencedByManifestList"); - static const int KmsError_HASH = HashingUtils::HashString("KmsError"); + static constexpr uint32_t InvalidImageDigest_HASH = ConstExprHashingUtils::HashString("InvalidImageDigest"); + static constexpr uint32_t InvalidImageTag_HASH = ConstExprHashingUtils::HashString("InvalidImageTag"); + static constexpr uint32_t ImageTagDoesNotMatchDigest_HASH = ConstExprHashingUtils::HashString("ImageTagDoesNotMatchDigest"); + static constexpr uint32_t ImageNotFound_HASH = ConstExprHashingUtils::HashString("ImageNotFound"); + static constexpr uint32_t MissingDigestAndTag_HASH = ConstExprHashingUtils::HashString("MissingDigestAndTag"); + static constexpr uint32_t ImageReferencedByManifestList_HASH = ConstExprHashingUtils::HashString("ImageReferencedByManifestList"); + static constexpr uint32_t KmsError_HASH = ConstExprHashingUtils::HashString("KmsError"); ImageFailureCode GetImageFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidImageDigest_HASH) { return ImageFailureCode::InvalidImageDigest; diff --git a/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerAvailability.cpp b/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerAvailability.cpp index 454c5a04fe5..dfce3479013 100644 --- a/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerAvailability.cpp +++ b/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerAvailability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LayerAvailabilityMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); LayerAvailability GetLayerAvailabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return LayerAvailability::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerFailureCode.cpp b/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerFailureCode.cpp index ddc14841bfd..652d88acc20 100644 --- a/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ecr-public/source/model/LayerFailureCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LayerFailureCodeMapper { - static const int InvalidLayerDigest_HASH = HashingUtils::HashString("InvalidLayerDigest"); - static const int MissingLayerDigest_HASH = HashingUtils::HashString("MissingLayerDigest"); + static constexpr uint32_t InvalidLayerDigest_HASH = ConstExprHashingUtils::HashString("InvalidLayerDigest"); + static constexpr uint32_t MissingLayerDigest_HASH = ConstExprHashingUtils::HashString("MissingLayerDigest"); LayerFailureCode GetLayerFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidLayerDigest_HASH) { return LayerFailureCode::InvalidLayerDigest; diff --git a/generated/src/aws-cpp-sdk-ecr-public/source/model/RegistryAliasStatus.cpp b/generated/src/aws-cpp-sdk-ecr-public/source/model/RegistryAliasStatus.cpp index 8d1e4bc92a4..9894273d457 100644 --- a/generated/src/aws-cpp-sdk-ecr-public/source/model/RegistryAliasStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecr-public/source/model/RegistryAliasStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RegistryAliasStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); RegistryAliasStatus GetRegistryAliasStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RegistryAliasStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ecr/source/ECRErrors.cpp b/generated/src/aws-cpp-sdk-ecr/source/ECRErrors.cpp index ae9c45e4405..4dc02709b5f 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/ECRErrors.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/ECRErrors.cpp @@ -33,43 +33,43 @@ template<> AWS_ECR_API InvalidLayerPartException ECRError::GetModeledError() namespace ECRErrorMapper { -static const int IMAGE_DIGEST_DOES_NOT_MATCH_HASH = HashingUtils::HashString("ImageDigestDoesNotMatchException"); -static const int IMAGE_TAG_ALREADY_EXISTS_HASH = HashingUtils::HashString("ImageTagAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int LAYER_INACCESSIBLE_HASH = HashingUtils::HashString("LayerInaccessibleException"); -static const int UNSUPPORTED_UPSTREAM_REGISTRY_HASH = HashingUtils::HashString("UnsupportedUpstreamRegistryException"); -static const int REPOSITORY_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("RepositoryPolicyNotFoundException"); -static const int SCAN_NOT_FOUND_HASH = HashingUtils::HashString("ScanNotFoundException"); -static const int LAYER_PART_TOO_SMALL_HASH = HashingUtils::HashString("LayerPartTooSmallException"); -static const int LIFECYCLE_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("LifecyclePolicyNotFoundException"); -static const int LIFECYCLE_POLICY_PREVIEW_NOT_FOUND_HASH = HashingUtils::HashString("LifecyclePolicyPreviewNotFoundException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int REGISTRY_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("RegistryPolicyNotFoundException"); -static const int INVALID_TAG_PARAMETER_HASH = HashingUtils::HashString("InvalidTagParameterException"); -static const int PULL_THROUGH_CACHE_RULE_NOT_FOUND_HASH = HashingUtils::HashString("PullThroughCacheRuleNotFoundException"); -static const int IMAGE_NOT_FOUND_HASH = HashingUtils::HashString("ImageNotFoundException"); -static const int INVALID_LAYER_HASH = HashingUtils::HashString("InvalidLayerException"); -static const int REFERENCED_IMAGES_NOT_FOUND_HASH = HashingUtils::HashString("ReferencedImagesNotFoundException"); -static const int REPOSITORY_NOT_EMPTY_HASH = HashingUtils::HashString("RepositoryNotEmptyException"); -static const int LAYERS_NOT_FOUND_HASH = HashingUtils::HashString("LayersNotFoundException"); -static const int SERVER_HASH = HashingUtils::HashString("ServerException"); -static const int REPOSITORY_NOT_FOUND_HASH = HashingUtils::HashString("RepositoryNotFoundException"); -static const int LIFECYCLE_POLICY_PREVIEW_IN_PROGRESS_HASH = HashingUtils::HashString("LifecyclePolicyPreviewInProgressException"); -static const int EMPTY_UPLOAD_HASH = HashingUtils::HashString("EmptyUploadException"); -static const int REPOSITORY_ALREADY_EXISTS_HASH = HashingUtils::HashString("RepositoryAlreadyExistsException"); -static const int UNSUPPORTED_IMAGE_TYPE_HASH = HashingUtils::HashString("UnsupportedImageTypeException"); -static const int KMS_HASH = HashingUtils::HashString("KmsException"); -static const int IMAGE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ImageAlreadyExistsException"); -static const int LAYER_ALREADY_EXISTS_HASH = HashingUtils::HashString("LayerAlreadyExistsException"); -static const int PULL_THROUGH_CACHE_RULE_ALREADY_EXISTS_HASH = HashingUtils::HashString("PullThroughCacheRuleAlreadyExistsException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INVALID_LAYER_PART_HASH = HashingUtils::HashString("InvalidLayerPartException"); -static const int UPLOAD_NOT_FOUND_HASH = HashingUtils::HashString("UploadNotFoundException"); +static constexpr uint32_t IMAGE_DIGEST_DOES_NOT_MATCH_HASH = ConstExprHashingUtils::HashString("ImageDigestDoesNotMatchException"); +static constexpr uint32_t IMAGE_TAG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ImageTagAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t LAYER_INACCESSIBLE_HASH = ConstExprHashingUtils::HashString("LayerInaccessibleException"); +static constexpr uint32_t UNSUPPORTED_UPSTREAM_REGISTRY_HASH = ConstExprHashingUtils::HashString("UnsupportedUpstreamRegistryException"); +static constexpr uint32_t REPOSITORY_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RepositoryPolicyNotFoundException"); +static constexpr uint32_t SCAN_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ScanNotFoundException"); +static constexpr uint32_t LAYER_PART_TOO_SMALL_HASH = ConstExprHashingUtils::HashString("LayerPartTooSmallException"); +static constexpr uint32_t LIFECYCLE_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LifecyclePolicyNotFoundException"); +static constexpr uint32_t LIFECYCLE_POLICY_PREVIEW_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LifecyclePolicyPreviewNotFoundException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t REGISTRY_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RegistryPolicyNotFoundException"); +static constexpr uint32_t INVALID_TAG_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidTagParameterException"); +static constexpr uint32_t PULL_THROUGH_CACHE_RULE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PullThroughCacheRuleNotFoundException"); +static constexpr uint32_t IMAGE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ImageNotFoundException"); +static constexpr uint32_t INVALID_LAYER_HASH = ConstExprHashingUtils::HashString("InvalidLayerException"); +static constexpr uint32_t REFERENCED_IMAGES_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ReferencedImagesNotFoundException"); +static constexpr uint32_t REPOSITORY_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("RepositoryNotEmptyException"); +static constexpr uint32_t LAYERS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LayersNotFoundException"); +static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("ServerException"); +static constexpr uint32_t REPOSITORY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RepositoryNotFoundException"); +static constexpr uint32_t LIFECYCLE_POLICY_PREVIEW_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("LifecyclePolicyPreviewInProgressException"); +static constexpr uint32_t EMPTY_UPLOAD_HASH = ConstExprHashingUtils::HashString("EmptyUploadException"); +static constexpr uint32_t REPOSITORY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RepositoryAlreadyExistsException"); +static constexpr uint32_t UNSUPPORTED_IMAGE_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedImageTypeException"); +static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KmsException"); +static constexpr uint32_t IMAGE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ImageAlreadyExistsException"); +static constexpr uint32_t LAYER_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("LayerAlreadyExistsException"); +static constexpr uint32_t PULL_THROUGH_CACHE_RULE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("PullThroughCacheRuleAlreadyExistsException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INVALID_LAYER_PART_HASH = ConstExprHashingUtils::HashString("InvalidLayerPartException"); +static constexpr uint32_t UPLOAD_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("UploadNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == IMAGE_DIGEST_DOES_NOT_MATCH_HASH) { diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/EncryptionType.cpp index d7409e2bc4a..530e29d7f17 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES256_HASH) { return EncryptionType::AES256; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/FindingSeverity.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/FindingSeverity.cpp index 0fdc36ed6d2..1a45145361a 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/FindingSeverity.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/FindingSeverity.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FindingSeverityMapper { - static const int INFORMATIONAL_HASH = HashingUtils::HashString("INFORMATIONAL"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int UNDEFINED_HASH = HashingUtils::HashString("UNDEFINED"); + static constexpr uint32_t INFORMATIONAL_HASH = ConstExprHashingUtils::HashString("INFORMATIONAL"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t UNDEFINED_HASH = ConstExprHashingUtils::HashString("UNDEFINED"); FindingSeverity GetFindingSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFORMATIONAL_HASH) { return FindingSeverity::INFORMATIONAL; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ImageActionType.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ImageActionType.cpp index 785835576d1..2077e847a5f 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ImageActionType.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ImageActionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImageActionTypeMapper { - static const int EXPIRE_HASH = HashingUtils::HashString("EXPIRE"); + static constexpr uint32_t EXPIRE_HASH = ConstExprHashingUtils::HashString("EXPIRE"); ImageActionType GetImageActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXPIRE_HASH) { return ImageActionType::EXPIRE; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ImageFailureCode.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ImageFailureCode.cpp index a665504767e..a889d53f098 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ImageFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ImageFailureCode.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ImageFailureCodeMapper { - static const int InvalidImageDigest_HASH = HashingUtils::HashString("InvalidImageDigest"); - static const int InvalidImageTag_HASH = HashingUtils::HashString("InvalidImageTag"); - static const int ImageTagDoesNotMatchDigest_HASH = HashingUtils::HashString("ImageTagDoesNotMatchDigest"); - static const int ImageNotFound_HASH = HashingUtils::HashString("ImageNotFound"); - static const int MissingDigestAndTag_HASH = HashingUtils::HashString("MissingDigestAndTag"); - static const int ImageReferencedByManifestList_HASH = HashingUtils::HashString("ImageReferencedByManifestList"); - static const int KmsError_HASH = HashingUtils::HashString("KmsError"); + static constexpr uint32_t InvalidImageDigest_HASH = ConstExprHashingUtils::HashString("InvalidImageDigest"); + static constexpr uint32_t InvalidImageTag_HASH = ConstExprHashingUtils::HashString("InvalidImageTag"); + static constexpr uint32_t ImageTagDoesNotMatchDigest_HASH = ConstExprHashingUtils::HashString("ImageTagDoesNotMatchDigest"); + static constexpr uint32_t ImageNotFound_HASH = ConstExprHashingUtils::HashString("ImageNotFound"); + static constexpr uint32_t MissingDigestAndTag_HASH = ConstExprHashingUtils::HashString("MissingDigestAndTag"); + static constexpr uint32_t ImageReferencedByManifestList_HASH = ConstExprHashingUtils::HashString("ImageReferencedByManifestList"); + static constexpr uint32_t KmsError_HASH = ConstExprHashingUtils::HashString("KmsError"); ImageFailureCode GetImageFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidImageDigest_HASH) { return ImageFailureCode::InvalidImageDigest; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ImageTagMutability.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ImageTagMutability.cpp index 946cf8628a6..417b807ab86 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ImageTagMutability.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ImageTagMutability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageTagMutabilityMapper { - static const int MUTABLE_HASH = HashingUtils::HashString("MUTABLE"); - static const int IMMUTABLE_HASH = HashingUtils::HashString("IMMUTABLE"); + static constexpr uint32_t MUTABLE_HASH = ConstExprHashingUtils::HashString("MUTABLE"); + static constexpr uint32_t IMMUTABLE_HASH = ConstExprHashingUtils::HashString("IMMUTABLE"); ImageTagMutability GetImageTagMutabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MUTABLE_HASH) { return ImageTagMutability::MUTABLE; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/LayerAvailability.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/LayerAvailability.cpp index d3240a65909..d81f447e9f0 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/LayerAvailability.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/LayerAvailability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LayerAvailabilityMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); LayerAvailability GetLayerAvailabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return LayerAvailability::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/LayerFailureCode.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/LayerFailureCode.cpp index c444ddecbd6..670447d85af 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/LayerFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/LayerFailureCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LayerFailureCodeMapper { - static const int InvalidLayerDigest_HASH = HashingUtils::HashString("InvalidLayerDigest"); - static const int MissingLayerDigest_HASH = HashingUtils::HashString("MissingLayerDigest"); + static constexpr uint32_t InvalidLayerDigest_HASH = ConstExprHashingUtils::HashString("InvalidLayerDigest"); + static constexpr uint32_t MissingLayerDigest_HASH = ConstExprHashingUtils::HashString("MissingLayerDigest"); LayerFailureCode GetLayerFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidLayerDigest_HASH) { return LayerFailureCode::InvalidLayerDigest; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/LifecyclePolicyPreviewStatus.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/LifecyclePolicyPreviewStatus.cpp index c2b577f5bca..fccf9e1241b 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/LifecyclePolicyPreviewStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/LifecyclePolicyPreviewStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LifecyclePolicyPreviewStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LifecyclePolicyPreviewStatus GetLifecyclePolicyPreviewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return LifecyclePolicyPreviewStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ReplicationStatus.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ReplicationStatus.cpp index 2da4a2b8b2f..f63bf3392bd 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ReplicationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReplicationStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReplicationStatus GetReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ReplicationStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/RepositoryFilterType.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/RepositoryFilterType.cpp index e15017348b5..7ce2374bd6e 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/RepositoryFilterType.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/RepositoryFilterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RepositoryFilterTypeMapper { - static const int PREFIX_MATCH_HASH = HashingUtils::HashString("PREFIX_MATCH"); + static constexpr uint32_t PREFIX_MATCH_HASH = ConstExprHashingUtils::HashString("PREFIX_MATCH"); RepositoryFilterType GetRepositoryFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREFIX_MATCH_HASH) { return RepositoryFilterType::PREFIX_MATCH; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ScanFrequency.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ScanFrequency.cpp index a2654f00314..a806626ebdb 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ScanFrequency.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ScanFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScanFrequencyMapper { - static const int SCAN_ON_PUSH_HASH = HashingUtils::HashString("SCAN_ON_PUSH"); - static const int CONTINUOUS_SCAN_HASH = HashingUtils::HashString("CONTINUOUS_SCAN"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t SCAN_ON_PUSH_HASH = ConstExprHashingUtils::HashString("SCAN_ON_PUSH"); + static constexpr uint32_t CONTINUOUS_SCAN_HASH = ConstExprHashingUtils::HashString("CONTINUOUS_SCAN"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); ScanFrequency GetScanFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCAN_ON_PUSH_HASH) { return ScanFrequency::SCAN_ON_PUSH; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ScanStatus.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ScanStatus.cpp index 1ad8f946f18..3e1d458c893 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ScanStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ScanStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ScanStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UNSUPPORTED_IMAGE_HASH = HashingUtils::HashString("UNSUPPORTED_IMAGE"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SCAN_ELIGIBILITY_EXPIRED_HASH = HashingUtils::HashString("SCAN_ELIGIBILITY_EXPIRED"); - static const int FINDINGS_UNAVAILABLE_HASH = HashingUtils::HashString("FINDINGS_UNAVAILABLE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UNSUPPORTED_IMAGE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_IMAGE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SCAN_ELIGIBILITY_EXPIRED_HASH = ConstExprHashingUtils::HashString("SCAN_ELIGIBILITY_EXPIRED"); + static constexpr uint32_t FINDINGS_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("FINDINGS_UNAVAILABLE"); ScanStatus GetScanStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ScanStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ScanType.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ScanType.cpp index e19b06a342b..c8417f19f74 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ScanType.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanTypeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int ENHANCED_HASH = HashingUtils::HashString("ENHANCED"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t ENHANCED_HASH = ConstExprHashingUtils::HashString("ENHANCED"); ScanType GetScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return ScanType::BASIC; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ScanningConfigurationFailureCode.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ScanningConfigurationFailureCode.cpp index 3060ec28d70..c828b86b9ac 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ScanningConfigurationFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ScanningConfigurationFailureCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ScanningConfigurationFailureCodeMapper { - static const int REPOSITORY_NOT_FOUND_HASH = HashingUtils::HashString("REPOSITORY_NOT_FOUND"); + static constexpr uint32_t REPOSITORY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("REPOSITORY_NOT_FOUND"); ScanningConfigurationFailureCode GetScanningConfigurationFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPOSITORY_NOT_FOUND_HASH) { return ScanningConfigurationFailureCode::REPOSITORY_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/ScanningRepositoryFilterType.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/ScanningRepositoryFilterType.cpp index e4a348c20cb..ac3a6a6d009 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/ScanningRepositoryFilterType.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/ScanningRepositoryFilterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ScanningRepositoryFilterTypeMapper { - static const int WILDCARD_HASH = HashingUtils::HashString("WILDCARD"); + static constexpr uint32_t WILDCARD_HASH = ConstExprHashingUtils::HashString("WILDCARD"); ScanningRepositoryFilterType GetScanningRepositoryFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WILDCARD_HASH) { return ScanningRepositoryFilterType::WILDCARD; diff --git a/generated/src/aws-cpp-sdk-ecr/source/model/TagStatus.cpp b/generated/src/aws-cpp-sdk-ecr/source/model/TagStatus.cpp index 4ba39956bd5..f72c89ce0d4 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/model/TagStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/model/TagStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TagStatusMapper { - static const int TAGGED_HASH = HashingUtils::HashString("TAGGED"); - static const int UNTAGGED_HASH = HashingUtils::HashString("UNTAGGED"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); + static constexpr uint32_t TAGGED_HASH = ConstExprHashingUtils::HashString("TAGGED"); + static constexpr uint32_t UNTAGGED_HASH = ConstExprHashingUtils::HashString("UNTAGGED"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); TagStatus GetTagStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGGED_HASH) { return TagStatus::TAGGED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/ECSErrors.cpp b/generated/src/aws-cpp-sdk-ecs/source/ECSErrors.cpp index 76693b281ee..92b2cc9da08 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/ECSErrors.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/ECSErrors.cpp @@ -18,34 +18,34 @@ namespace ECS namespace ECSErrorMapper { -static const int CLIENT_HASH = HashingUtils::HashString("ClientException"); -static const int NO_UPDATE_AVAILABLE_HASH = HashingUtils::HashString("NoUpdateAvailableException"); -static const int UNSUPPORTED_FEATURE_HASH = HashingUtils::HashString("UnsupportedFeatureException"); -static const int TARGET_NOT_FOUND_HASH = HashingUtils::HashString("TargetNotFoundException"); -static const int CLUSTER_CONTAINS_CONTAINER_INSTANCES_HASH = HashingUtils::HashString("ClusterContainsContainerInstancesException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int PLATFORM_TASK_DEFINITION_INCOMPATIBILITY_HASH = HashingUtils::HashString("PlatformTaskDefinitionIncompatibilityException"); -static const int MISSING_VERSION_HASH = HashingUtils::HashString("MissingVersionException"); -static const int SERVER_HASH = HashingUtils::HashString("ServerException"); -static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UpdateInProgressException"); -static const int NAMESPACE_NOT_FOUND_HASH = HashingUtils::HashString("NamespaceNotFoundException"); -static const int BLOCKED_HASH = HashingUtils::HashString("BlockedException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int PLATFORM_UNKNOWN_HASH = HashingUtils::HashString("PlatformUnknownException"); -static const int CLUSTER_NOT_FOUND_HASH = HashingUtils::HashString("ClusterNotFoundException"); -static const int CLUSTER_CONTAINS_SERVICES_HASH = HashingUtils::HashString("ClusterContainsServicesException"); -static const int TARGET_NOT_CONNECTED_HASH = HashingUtils::HashString("TargetNotConnectedException"); -static const int CLUSTER_CONTAINS_TASKS_HASH = HashingUtils::HashString("ClusterContainsTasksException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int TASK_SET_NOT_FOUND_HASH = HashingUtils::HashString("TaskSetNotFoundException"); -static const int SERVICE_NOT_FOUND_HASH = HashingUtils::HashString("ServiceNotFoundException"); -static const int SERVICE_NOT_ACTIVE_HASH = HashingUtils::HashString("ServiceNotActiveException"); -static const int ATTRIBUTE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AttributeLimitExceededException"); +static constexpr uint32_t CLIENT_HASH = ConstExprHashingUtils::HashString("ClientException"); +static constexpr uint32_t NO_UPDATE_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NoUpdateAvailableException"); +static constexpr uint32_t UNSUPPORTED_FEATURE_HASH = ConstExprHashingUtils::HashString("UnsupportedFeatureException"); +static constexpr uint32_t TARGET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TargetNotFoundException"); +static constexpr uint32_t CLUSTER_CONTAINS_CONTAINER_INSTANCES_HASH = ConstExprHashingUtils::HashString("ClusterContainsContainerInstancesException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t PLATFORM_TASK_DEFINITION_INCOMPATIBILITY_HASH = ConstExprHashingUtils::HashString("PlatformTaskDefinitionIncompatibilityException"); +static constexpr uint32_t MISSING_VERSION_HASH = ConstExprHashingUtils::HashString("MissingVersionException"); +static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("ServerException"); +static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UpdateInProgressException"); +static constexpr uint32_t NAMESPACE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NamespaceNotFoundException"); +static constexpr uint32_t BLOCKED_HASH = ConstExprHashingUtils::HashString("BlockedException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t PLATFORM_UNKNOWN_HASH = ConstExprHashingUtils::HashString("PlatformUnknownException"); +static constexpr uint32_t CLUSTER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ClusterNotFoundException"); +static constexpr uint32_t CLUSTER_CONTAINS_SERVICES_HASH = ConstExprHashingUtils::HashString("ClusterContainsServicesException"); +static constexpr uint32_t TARGET_NOT_CONNECTED_HASH = ConstExprHashingUtils::HashString("TargetNotConnectedException"); +static constexpr uint32_t CLUSTER_CONTAINS_TASKS_HASH = ConstExprHashingUtils::HashString("ClusterContainsTasksException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t TASK_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TaskSetNotFoundException"); +static constexpr uint32_t SERVICE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ServiceNotFoundException"); +static constexpr uint32_t SERVICE_NOT_ACTIVE_HASH = ConstExprHashingUtils::HashString("ServiceNotActiveException"); +static constexpr uint32_t ATTRIBUTE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AttributeLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLIENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/AgentUpdateStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/AgentUpdateStatus.cpp index 51b8172696b..c200491eb57 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/AgentUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/AgentUpdateStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AgentUpdateStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STAGING_HASH = HashingUtils::HashString("STAGING"); - static const int STAGED_HASH = HashingUtils::HashString("STAGED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATED_HASH = HashingUtils::HashString("UPDATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STAGING_HASH = ConstExprHashingUtils::HashString("STAGING"); + static constexpr uint32_t STAGED_HASH = ConstExprHashingUtils::HashString("STAGED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATED_HASH = ConstExprHashingUtils::HashString("UPDATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AgentUpdateStatus GetAgentUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return AgentUpdateStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ApplicationProtocol.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ApplicationProtocol.cpp index 272ff34855e..1079c077cbb 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ApplicationProtocol.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ApplicationProtocol.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationProtocolMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int http2_HASH = HashingUtils::HashString("http2"); - static const int grpc_HASH = HashingUtils::HashString("grpc"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t http2_HASH = ConstExprHashingUtils::HashString("http2"); + static constexpr uint32_t grpc_HASH = ConstExprHashingUtils::HashString("grpc"); ApplicationProtocol GetApplicationProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return ApplicationProtocol::http; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/AssignPublicIp.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/AssignPublicIp.cpp index f2c1eae574e..0d06607f83e 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/AssignPublicIp.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/AssignPublicIp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssignPublicIpMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignPublicIp GetAssignPublicIpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignPublicIp::ENABLED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/CPUArchitecture.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/CPUArchitecture.cpp index 9034be0d42a..92e4c40bf01 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/CPUArchitecture.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/CPUArchitecture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CPUArchitectureMapper { - static const int X86_64_HASH = HashingUtils::HashString("X86_64"); - static const int ARM64_HASH = HashingUtils::HashString("ARM64"); + static constexpr uint32_t X86_64_HASH = ConstExprHashingUtils::HashString("X86_64"); + static constexpr uint32_t ARM64_HASH = ConstExprHashingUtils::HashString("ARM64"); CPUArchitecture GetCPUArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == X86_64_HASH) { return CPUArchitecture::X86_64; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderField.cpp index 1bea891bb96..9b01e107fdc 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CapacityProviderFieldMapper { - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); CapacityProviderField GetCapacityProviderFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGS_HASH) { return CapacityProviderField::TAGS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderStatus.cpp index 630599d4f5f..41b61d1ae64 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapacityProviderStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); CapacityProviderStatus GetCapacityProviderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CapacityProviderStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderUpdateStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderUpdateStatus.cpp index 4d4b9c86ea0..e85448c70d9 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/CapacityProviderUpdateStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CapacityProviderUpdateStatusMapper { - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); CapacityProviderUpdateStatus GetCapacityProviderUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE_IN_PROGRESS_HASH) { return CapacityProviderUpdateStatus::DELETE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ClusterField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ClusterField.cpp index 43667ffd432..1da7b8becc8 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ClusterField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ClusterField.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ClusterFieldMapper { - static const int ATTACHMENTS_HASH = HashingUtils::HashString("ATTACHMENTS"); - static const int CONFIGURATIONS_HASH = HashingUtils::HashString("CONFIGURATIONS"); - static const int SETTINGS_HASH = HashingUtils::HashString("SETTINGS"); - static const int STATISTICS_HASH = HashingUtils::HashString("STATISTICS"); - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t ATTACHMENTS_HASH = ConstExprHashingUtils::HashString("ATTACHMENTS"); + static constexpr uint32_t CONFIGURATIONS_HASH = ConstExprHashingUtils::HashString("CONFIGURATIONS"); + static constexpr uint32_t SETTINGS_HASH = ConstExprHashingUtils::HashString("SETTINGS"); + static constexpr uint32_t STATISTICS_HASH = ConstExprHashingUtils::HashString("STATISTICS"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); ClusterField GetClusterFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTACHMENTS_HASH) { return ClusterField::ATTACHMENTS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ClusterSettingName.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ClusterSettingName.cpp index bd16b0fa49e..ebf5353e0de 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ClusterSettingName.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ClusterSettingName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ClusterSettingNameMapper { - static const int containerInsights_HASH = HashingUtils::HashString("containerInsights"); + static constexpr uint32_t containerInsights_HASH = ConstExprHashingUtils::HashString("containerInsights"); ClusterSettingName GetClusterSettingNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == containerInsights_HASH) { return ClusterSettingName::containerInsights; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/Compatibility.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/Compatibility.cpp index 05d4fc0d3f1..e37fe99ed5b 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/Compatibility.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/Compatibility.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CompatibilityMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); Compatibility GetCompatibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return Compatibility::EC2; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/Connectivity.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/Connectivity.cpp index b42b9bc9fe9..45d8820277e 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/Connectivity.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/Connectivity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectivityMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); Connectivity GetConnectivityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return Connectivity::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ContainerCondition.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ContainerCondition.cpp index ed8d11f4c44..d23de3d0f58 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ContainerCondition.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ContainerCondition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ContainerConditionMapper { - static const int START_HASH = HashingUtils::HashString("START"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); + static constexpr uint32_t START_HASH = ConstExprHashingUtils::HashString("START"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); ContainerCondition GetContainerConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_HASH) { return ContainerCondition::START; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceField.cpp index e314987f950..11c9033cc48 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceField.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContainerInstanceFieldMapper { - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); - static const int CONTAINER_INSTANCE_HEALTH_HASH = HashingUtils::HashString("CONTAINER_INSTANCE_HEALTH"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); + static constexpr uint32_t CONTAINER_INSTANCE_HEALTH_HASH = ConstExprHashingUtils::HashString("CONTAINER_INSTANCE_HEALTH"); ContainerInstanceField GetContainerInstanceFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGS_HASH) { return ContainerInstanceField::TAGS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceStatus.cpp index 5e42bec22a4..240384c1b64 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ContainerInstanceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ContainerInstanceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DRAINING_HASH = HashingUtils::HashString("DRAINING"); - static const int REGISTERING_HASH = HashingUtils::HashString("REGISTERING"); - static const int DEREGISTERING_HASH = HashingUtils::HashString("DEREGISTERING"); - static const int REGISTRATION_FAILED_HASH = HashingUtils::HashString("REGISTRATION_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DRAINING_HASH = ConstExprHashingUtils::HashString("DRAINING"); + static constexpr uint32_t REGISTERING_HASH = ConstExprHashingUtils::HashString("REGISTERING"); + static constexpr uint32_t DEREGISTERING_HASH = ConstExprHashingUtils::HashString("DEREGISTERING"); + static constexpr uint32_t REGISTRATION_FAILED_HASH = ConstExprHashingUtils::HashString("REGISTRATION_FAILED"); ContainerInstanceStatus GetContainerInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ContainerInstanceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentControllerType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentControllerType.cpp index bd5cc3121db..ea425a2f552 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentControllerType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentControllerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeploymentControllerTypeMapper { - static const int ECS_HASH = HashingUtils::HashString("ECS"); - static const int CODE_DEPLOY_HASH = HashingUtils::HashString("CODE_DEPLOY"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t ECS_HASH = ConstExprHashingUtils::HashString("ECS"); + static constexpr uint32_t CODE_DEPLOY_HASH = ConstExprHashingUtils::HashString("CODE_DEPLOY"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); DeploymentControllerType GetDeploymentControllerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECS_HASH) { return DeploymentControllerType::ECS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentRolloutState.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentRolloutState.cpp index 27f1f209e0c..48e2198218d 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentRolloutState.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/DeploymentRolloutState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeploymentRolloutStateMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); DeploymentRolloutState GetDeploymentRolloutStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return DeploymentRolloutState::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/DesiredStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/DesiredStatus.cpp index b1841a2335e..d8db6ddf4bd 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/DesiredStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/DesiredStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DesiredStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); DesiredStatus GetDesiredStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return DesiredStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/DeviceCgroupPermission.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/DeviceCgroupPermission.cpp index 31019ba78b1..777b2ed03d0 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/DeviceCgroupPermission.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/DeviceCgroupPermission.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeviceCgroupPermissionMapper { - static const int read_HASH = HashingUtils::HashString("read"); - static const int write_HASH = HashingUtils::HashString("write"); - static const int mknod_HASH = HashingUtils::HashString("mknod"); + static constexpr uint32_t read_HASH = ConstExprHashingUtils::HashString("read"); + static constexpr uint32_t write_HASH = ConstExprHashingUtils::HashString("write"); + static constexpr uint32_t mknod_HASH = ConstExprHashingUtils::HashString("mknod"); DeviceCgroupPermission GetDeviceCgroupPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == read_HASH) { return DeviceCgroupPermission::read; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/EFSAuthorizationConfigIAM.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/EFSAuthorizationConfigIAM.cpp index 4a328b8d84b..9375bc40da6 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/EFSAuthorizationConfigIAM.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/EFSAuthorizationConfigIAM.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EFSAuthorizationConfigIAMMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EFSAuthorizationConfigIAM GetEFSAuthorizationConfigIAMForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EFSAuthorizationConfigIAM::ENABLED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/EFSTransitEncryption.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/EFSTransitEncryption.cpp index 0dfb5122be0..44ab983bacc 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/EFSTransitEncryption.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/EFSTransitEncryption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EFSTransitEncryptionMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EFSTransitEncryption GetEFSTransitEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EFSTransitEncryption::ENABLED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/EnvironmentFileType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/EnvironmentFileType.cpp index d00cc5c074c..e7630c5f62b 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/EnvironmentFileType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/EnvironmentFileType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EnvironmentFileTypeMapper { - static const int s3_HASH = HashingUtils::HashString("s3"); + static constexpr uint32_t s3_HASH = ConstExprHashingUtils::HashString("s3"); EnvironmentFileType GetEnvironmentFileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s3_HASH) { return EnvironmentFileType::s3; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ExecuteCommandLogging.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ExecuteCommandLogging.cpp index 9cd06a9cc96..83251cf4c39 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ExecuteCommandLogging.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ExecuteCommandLogging.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExecuteCommandLoggingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int OVERRIDE_HASH = HashingUtils::HashString("OVERRIDE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t OVERRIDE_HASH = ConstExprHashingUtils::HashString("OVERRIDE"); ExecuteCommandLogging GetExecuteCommandLoggingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ExecuteCommandLogging::NONE; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/FirelensConfigurationType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/FirelensConfigurationType.cpp index b31f1a10659..603f13f5647 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/FirelensConfigurationType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/FirelensConfigurationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FirelensConfigurationTypeMapper { - static const int fluentd_HASH = HashingUtils::HashString("fluentd"); - static const int fluentbit_HASH = HashingUtils::HashString("fluentbit"); + static constexpr uint32_t fluentd_HASH = ConstExprHashingUtils::HashString("fluentd"); + static constexpr uint32_t fluentbit_HASH = ConstExprHashingUtils::HashString("fluentbit"); FirelensConfigurationType GetFirelensConfigurationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == fluentd_HASH) { return FirelensConfigurationType::fluentd; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/HealthStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/HealthStatus.cpp index 1f61e051acf..29e96a31eda 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/HealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/HealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HealthStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); HealthStatus GetHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return HealthStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckState.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckState.cpp index 0a97ead89f0..53b2d66b3ed 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckState.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstanceHealthCheckStateMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int IMPAIRED_HASH = HashingUtils::HashString("IMPAIRED"); - static const int INSUFFICIENT_DATA_HASH = HashingUtils::HashString("INSUFFICIENT_DATA"); - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t IMPAIRED_HASH = ConstExprHashingUtils::HashString("IMPAIRED"); + static constexpr uint32_t INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATA"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); InstanceHealthCheckState GetInstanceHealthCheckStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return InstanceHealthCheckState::OK; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckType.cpp index 7f8cccd54d7..041c8240c32 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/InstanceHealthCheckType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InstanceHealthCheckTypeMapper { - static const int CONTAINER_RUNTIME_HASH = HashingUtils::HashString("CONTAINER_RUNTIME"); + static constexpr uint32_t CONTAINER_RUNTIME_HASH = ConstExprHashingUtils::HashString("CONTAINER_RUNTIME"); InstanceHealthCheckType GetInstanceHealthCheckTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTAINER_RUNTIME_HASH) { return InstanceHealthCheckType::CONTAINER_RUNTIME; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/IpcMode.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/IpcMode.cpp index 259f3777bfc..9cbf8e7584f 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/IpcMode.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/IpcMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IpcModeMapper { - static const int host_HASH = HashingUtils::HashString("host"); - static const int task_HASH = HashingUtils::HashString("task"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); + static constexpr uint32_t task_HASH = ConstExprHashingUtils::HashString("task"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); IpcMode GetIpcModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == host_HASH) { return IpcMode::host; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/LaunchType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/LaunchType.cpp index bde375c83a3..33d6e4dd654 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/LaunchType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/LaunchType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LaunchTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); LaunchType GetLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return LaunchType::EC2; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/LogDriver.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/LogDriver.cpp index e8e3656c069..b74b672a82c 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/LogDriver.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/LogDriver.cpp @@ -20,19 +20,19 @@ namespace Aws namespace LogDriverMapper { - static const int json_file_HASH = HashingUtils::HashString("json-file"); - static const int syslog_HASH = HashingUtils::HashString("syslog"); - static const int journald_HASH = HashingUtils::HashString("journald"); - static const int gelf_HASH = HashingUtils::HashString("gelf"); - static const int fluentd_HASH = HashingUtils::HashString("fluentd"); - static const int awslogs_HASH = HashingUtils::HashString("awslogs"); - static const int splunk_HASH = HashingUtils::HashString("splunk"); - static const int awsfirelens_HASH = HashingUtils::HashString("awsfirelens"); + static constexpr uint32_t json_file_HASH = ConstExprHashingUtils::HashString("json-file"); + static constexpr uint32_t syslog_HASH = ConstExprHashingUtils::HashString("syslog"); + static constexpr uint32_t journald_HASH = ConstExprHashingUtils::HashString("journald"); + static constexpr uint32_t gelf_HASH = ConstExprHashingUtils::HashString("gelf"); + static constexpr uint32_t fluentd_HASH = ConstExprHashingUtils::HashString("fluentd"); + static constexpr uint32_t awslogs_HASH = ConstExprHashingUtils::HashString("awslogs"); + static constexpr uint32_t splunk_HASH = ConstExprHashingUtils::HashString("splunk"); + static constexpr uint32_t awsfirelens_HASH = ConstExprHashingUtils::HashString("awsfirelens"); LogDriver GetLogDriverForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_file_HASH) { return LogDriver::json_file; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ManagedAgentName.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ManagedAgentName.cpp index 20377158623..a135dce9d40 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ManagedAgentName.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ManagedAgentName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ManagedAgentNameMapper { - static const int ExecuteCommandAgent_HASH = HashingUtils::HashString("ExecuteCommandAgent"); + static constexpr uint32_t ExecuteCommandAgent_HASH = ConstExprHashingUtils::HashString("ExecuteCommandAgent"); ManagedAgentName GetManagedAgentNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ExecuteCommandAgent_HASH) { return ManagedAgentName::ExecuteCommandAgent; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ManagedScalingStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ManagedScalingStatus.cpp index 9a38b0bd437..d9604a2b7b2 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ManagedScalingStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ManagedScalingStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManagedScalingStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ManagedScalingStatus GetManagedScalingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ManagedScalingStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ManagedTerminationProtection.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ManagedTerminationProtection.cpp index 522ad9a1129..2e6031a9537 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ManagedTerminationProtection.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ManagedTerminationProtection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManagedTerminationProtectionMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ManagedTerminationProtection GetManagedTerminationProtectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ManagedTerminationProtection::ENABLED; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/NetworkMode.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/NetworkMode.cpp index a0ef481de95..88a8d1209bf 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/NetworkMode.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/NetworkMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NetworkModeMapper { - static const int bridge_HASH = HashingUtils::HashString("bridge"); - static const int host_HASH = HashingUtils::HashString("host"); - static const int awsvpc_HASH = HashingUtils::HashString("awsvpc"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t bridge_HASH = ConstExprHashingUtils::HashString("bridge"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); + static constexpr uint32_t awsvpc_HASH = ConstExprHashingUtils::HashString("awsvpc"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); NetworkMode GetNetworkModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == bridge_HASH) { return NetworkMode::bridge; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/OSFamily.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/OSFamily.cpp index 414db7d381a..e1b73233e3d 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/OSFamily.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/OSFamily.cpp @@ -20,19 +20,19 @@ namespace Aws namespace OSFamilyMapper { - static const int WINDOWS_SERVER_2019_FULL_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019_FULL"); - static const int WINDOWS_SERVER_2019_CORE_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019_CORE"); - static const int WINDOWS_SERVER_2016_FULL_HASH = HashingUtils::HashString("WINDOWS_SERVER_2016_FULL"); - static const int WINDOWS_SERVER_2004_CORE_HASH = HashingUtils::HashString("WINDOWS_SERVER_2004_CORE"); - static const int WINDOWS_SERVER_2022_CORE_HASH = HashingUtils::HashString("WINDOWS_SERVER_2022_CORE"); - static const int WINDOWS_SERVER_2022_FULL_HASH = HashingUtils::HashString("WINDOWS_SERVER_2022_FULL"); - static const int WINDOWS_SERVER_20H2_CORE_HASH = HashingUtils::HashString("WINDOWS_SERVER_20H2_CORE"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); + static constexpr uint32_t WINDOWS_SERVER_2019_FULL_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2019_FULL"); + static constexpr uint32_t WINDOWS_SERVER_2019_CORE_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2019_CORE"); + static constexpr uint32_t WINDOWS_SERVER_2016_FULL_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2016_FULL"); + static constexpr uint32_t WINDOWS_SERVER_2004_CORE_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2004_CORE"); + static constexpr uint32_t WINDOWS_SERVER_2022_CORE_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2022_CORE"); + static constexpr uint32_t WINDOWS_SERVER_2022_FULL_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2022_FULL"); + static constexpr uint32_t WINDOWS_SERVER_20H2_CORE_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_20H2_CORE"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); OSFamily GetOSFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_SERVER_2019_FULL_HASH) { return OSFamily::WINDOWS_SERVER_2019_FULL; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/PidMode.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/PidMode.cpp index 33b2dae6dfb..61f970ef166 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/PidMode.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/PidMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PidModeMapper { - static const int host_HASH = HashingUtils::HashString("host"); - static const int task_HASH = HashingUtils::HashString("task"); + static constexpr uint32_t host_HASH = ConstExprHashingUtils::HashString("host"); + static constexpr uint32_t task_HASH = ConstExprHashingUtils::HashString("task"); PidMode GetPidModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == host_HASH) { return PidMode::host; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/PlacementConstraintType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/PlacementConstraintType.cpp index 860353727d7..e41f90bb4fd 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/PlacementConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/PlacementConstraintType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlacementConstraintTypeMapper { - static const int distinctInstance_HASH = HashingUtils::HashString("distinctInstance"); - static const int memberOf_HASH = HashingUtils::HashString("memberOf"); + static constexpr uint32_t distinctInstance_HASH = ConstExprHashingUtils::HashString("distinctInstance"); + static constexpr uint32_t memberOf_HASH = ConstExprHashingUtils::HashString("memberOf"); PlacementConstraintType GetPlacementConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == distinctInstance_HASH) { return PlacementConstraintType::distinctInstance; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/PlacementStrategyType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/PlacementStrategyType.cpp index 2b818f8b375..ec0c5eeeb2d 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/PlacementStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/PlacementStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementStrategyTypeMapper { - static const int random_HASH = HashingUtils::HashString("random"); - static const int spread_HASH = HashingUtils::HashString("spread"); - static const int binpack_HASH = HashingUtils::HashString("binpack"); + static constexpr uint32_t random_HASH = ConstExprHashingUtils::HashString("random"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); + static constexpr uint32_t binpack_HASH = ConstExprHashingUtils::HashString("binpack"); PlacementStrategyType GetPlacementStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == random_HASH) { return PlacementStrategyType::random; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/PlatformDeviceType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/PlatformDeviceType.cpp index 5bd903871c2..7156e852cc7 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/PlatformDeviceType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/PlatformDeviceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PlatformDeviceTypeMapper { - static const int GPU_HASH = HashingUtils::HashString("GPU"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); PlatformDeviceType GetPlatformDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GPU_HASH) { return PlatformDeviceType::GPU; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/PropagateTags.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/PropagateTags.cpp index 5f6fc430faa..d220912bdaa 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/PropagateTags.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/PropagateTags.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PropagateTagsMapper { - static const int TASK_DEFINITION_HASH = HashingUtils::HashString("TASK_DEFINITION"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t TASK_DEFINITION_HASH = ConstExprHashingUtils::HashString("TASK_DEFINITION"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); PropagateTags GetPropagateTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_DEFINITION_HASH) { return PropagateTags::TASK_DEFINITION; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ProxyConfigurationType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ProxyConfigurationType.cpp index 91e4e5935d2..2429d2dd045 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ProxyConfigurationType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ProxyConfigurationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProxyConfigurationTypeMapper { - static const int APPMESH_HASH = HashingUtils::HashString("APPMESH"); + static constexpr uint32_t APPMESH_HASH = ConstExprHashingUtils::HashString("APPMESH"); ProxyConfigurationType GetProxyConfigurationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPMESH_HASH) { return ProxyConfigurationType::APPMESH; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ResourceType.cpp index 9a2131765ce..726080664c3 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int GPU_HASH = HashingUtils::HashString("GPU"); - static const int InferenceAccelerator_HASH = HashingUtils::HashString("InferenceAccelerator"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); + static constexpr uint32_t InferenceAccelerator_HASH = ConstExprHashingUtils::HashString("InferenceAccelerator"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GPU_HASH) { return ResourceType::GPU; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ScaleUnit.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ScaleUnit.cpp index 3d2e6f43a1c..4b3ed6ea082 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ScaleUnit.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ScaleUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ScaleUnitMapper { - static const int PERCENT_HASH = HashingUtils::HashString("PERCENT"); + static constexpr uint32_t PERCENT_HASH = ConstExprHashingUtils::HashString("PERCENT"); ScaleUnit GetScaleUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERCENT_HASH) { return ScaleUnit::PERCENT; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/SchedulingStrategy.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/SchedulingStrategy.cpp index de02dae1672..8ce5a781a37 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/SchedulingStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/SchedulingStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SchedulingStrategyMapper { - static const int REPLICA_HASH = HashingUtils::HashString("REPLICA"); - static const int DAEMON_HASH = HashingUtils::HashString("DAEMON"); + static constexpr uint32_t REPLICA_HASH = ConstExprHashingUtils::HashString("REPLICA"); + static constexpr uint32_t DAEMON_HASH = ConstExprHashingUtils::HashString("DAEMON"); SchedulingStrategy GetSchedulingStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPLICA_HASH) { return SchedulingStrategy::REPLICA; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/Scope.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/Scope.cpp index bd34b0f27d0..f618d49c056 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/Scope.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/Scope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScopeMapper { - static const int task_HASH = HashingUtils::HashString("task"); - static const int shared_HASH = HashingUtils::HashString("shared"); + static constexpr uint32_t task_HASH = ConstExprHashingUtils::HashString("task"); + static constexpr uint32_t shared_HASH = ConstExprHashingUtils::HashString("shared"); Scope GetScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == task_HASH) { return Scope::task; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/ServiceField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/ServiceField.cpp index eb993619146..6bf2f357e69 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/ServiceField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/ServiceField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceFieldMapper { - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); ServiceField GetServiceFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGS_HASH) { return ServiceField::TAGS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/SettingName.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/SettingName.cpp index f090a3aee25..d2b06be9ca7 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/SettingName.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/SettingName.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SettingNameMapper { - static const int serviceLongArnFormat_HASH = HashingUtils::HashString("serviceLongArnFormat"); - static const int taskLongArnFormat_HASH = HashingUtils::HashString("taskLongArnFormat"); - static const int containerInstanceLongArnFormat_HASH = HashingUtils::HashString("containerInstanceLongArnFormat"); - static const int awsvpcTrunking_HASH = HashingUtils::HashString("awsvpcTrunking"); - static const int containerInsights_HASH = HashingUtils::HashString("containerInsights"); - static const int fargateFIPSMode_HASH = HashingUtils::HashString("fargateFIPSMode"); - static const int tagResourceAuthorization_HASH = HashingUtils::HashString("tagResourceAuthorization"); - static const int fargateTaskRetirementWaitPeriod_HASH = HashingUtils::HashString("fargateTaskRetirementWaitPeriod"); + static constexpr uint32_t serviceLongArnFormat_HASH = ConstExprHashingUtils::HashString("serviceLongArnFormat"); + static constexpr uint32_t taskLongArnFormat_HASH = ConstExprHashingUtils::HashString("taskLongArnFormat"); + static constexpr uint32_t containerInstanceLongArnFormat_HASH = ConstExprHashingUtils::HashString("containerInstanceLongArnFormat"); + static constexpr uint32_t awsvpcTrunking_HASH = ConstExprHashingUtils::HashString("awsvpcTrunking"); + static constexpr uint32_t containerInsights_HASH = ConstExprHashingUtils::HashString("containerInsights"); + static constexpr uint32_t fargateFIPSMode_HASH = ConstExprHashingUtils::HashString("fargateFIPSMode"); + static constexpr uint32_t tagResourceAuthorization_HASH = ConstExprHashingUtils::HashString("tagResourceAuthorization"); + static constexpr uint32_t fargateTaskRetirementWaitPeriod_HASH = ConstExprHashingUtils::HashString("fargateTaskRetirementWaitPeriod"); SettingName GetSettingNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == serviceLongArnFormat_HASH) { return SettingName::serviceLongArnFormat; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/SortOrder.cpp index 3f1c48cd1ea..48478d08fa3 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/StabilityStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/StabilityStatus.cpp index 414e12de5b2..31439912cb4 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/StabilityStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/StabilityStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StabilityStatusMapper { - static const int STEADY_STATE_HASH = HashingUtils::HashString("STEADY_STATE"); - static const int STABILIZING_HASH = HashingUtils::HashString("STABILIZING"); + static constexpr uint32_t STEADY_STATE_HASH = ConstExprHashingUtils::HashString("STEADY_STATE"); + static constexpr uint32_t STABILIZING_HASH = ConstExprHashingUtils::HashString("STABILIZING"); StabilityStatus GetStabilityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STEADY_STATE_HASH) { return StabilityStatus::STEADY_STATE; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TargetType.cpp index 24be7db6258..424574e3f67 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetTypeMapper { - static const int container_instance_HASH = HashingUtils::HashString("container-instance"); + static constexpr uint32_t container_instance_HASH = ConstExprHashingUtils::HashString("container-instance"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == container_instance_HASH) { return TargetType::container_instance; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionFamilyStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionFamilyStatus.cpp index e7a11baf3c5..759ef9db673 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionFamilyStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionFamilyStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TaskDefinitionFamilyStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); TaskDefinitionFamilyStatus GetTaskDefinitionFamilyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TaskDefinitionFamilyStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionField.cpp index eaaa6ee7b25..0b2e386889f 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TaskDefinitionFieldMapper { - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); TaskDefinitionField GetTaskDefinitionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGS_HASH) { return TaskDefinitionField::TAGS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionPlacementConstraintType.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionPlacementConstraintType.cpp index b87344647e4..5b5316165b2 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionPlacementConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionPlacementConstraintType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TaskDefinitionPlacementConstraintTypeMapper { - static const int memberOf_HASH = HashingUtils::HashString("memberOf"); + static constexpr uint32_t memberOf_HASH = ConstExprHashingUtils::HashString("memberOf"); TaskDefinitionPlacementConstraintType GetTaskDefinitionPlacementConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == memberOf_HASH) { return TaskDefinitionPlacementConstraintType::memberOf; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionStatus.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionStatus.cpp index 511dc6f5e05..042be076140 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskDefinitionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TaskDefinitionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); TaskDefinitionStatus GetTaskDefinitionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TaskDefinitionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskField.cpp index d6e805b0b83..227dcf919b0 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TaskFieldMapper { - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); TaskField GetTaskFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGS_HASH) { return TaskField::TAGS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskSetField.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskSetField.cpp index 3c8782753d6..c56aff022e6 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskSetField.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskSetField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TaskSetFieldMapper { - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); TaskSetField GetTaskSetFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAGS_HASH) { return TaskSetField::TAGS; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TaskStopCode.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TaskStopCode.cpp index 126f777ea65..0051be4b5ab 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TaskStopCode.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TaskStopCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TaskStopCodeMapper { - static const int TaskFailedToStart_HASH = HashingUtils::HashString("TaskFailedToStart"); - static const int EssentialContainerExited_HASH = HashingUtils::HashString("EssentialContainerExited"); - static const int UserInitiated_HASH = HashingUtils::HashString("UserInitiated"); - static const int ServiceSchedulerInitiated_HASH = HashingUtils::HashString("ServiceSchedulerInitiated"); - static const int SpotInterruption_HASH = HashingUtils::HashString("SpotInterruption"); - static const int TerminationNotice_HASH = HashingUtils::HashString("TerminationNotice"); + static constexpr uint32_t TaskFailedToStart_HASH = ConstExprHashingUtils::HashString("TaskFailedToStart"); + static constexpr uint32_t EssentialContainerExited_HASH = ConstExprHashingUtils::HashString("EssentialContainerExited"); + static constexpr uint32_t UserInitiated_HASH = ConstExprHashingUtils::HashString("UserInitiated"); + static constexpr uint32_t ServiceSchedulerInitiated_HASH = ConstExprHashingUtils::HashString("ServiceSchedulerInitiated"); + static constexpr uint32_t SpotInterruption_HASH = ConstExprHashingUtils::HashString("SpotInterruption"); + static constexpr uint32_t TerminationNotice_HASH = ConstExprHashingUtils::HashString("TerminationNotice"); TaskStopCode GetTaskStopCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TaskFailedToStart_HASH) { return TaskStopCode::TaskFailedToStart; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/TransportProtocol.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/TransportProtocol.cpp index cfa6cd7ed26..b6398791651 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/TransportProtocol.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/TransportProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransportProtocolMapper { - static const int tcp_HASH = HashingUtils::HashString("tcp"); - static const int udp_HASH = HashingUtils::HashString("udp"); + static constexpr uint32_t tcp_HASH = ConstExprHashingUtils::HashString("tcp"); + static constexpr uint32_t udp_HASH = ConstExprHashingUtils::HashString("udp"); TransportProtocol GetTransportProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == tcp_HASH) { return TransportProtocol::tcp; diff --git a/generated/src/aws-cpp-sdk-ecs/source/model/UlimitName.cpp b/generated/src/aws-cpp-sdk-ecs/source/model/UlimitName.cpp index ec7313f9743..ad67c391a3c 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/model/UlimitName.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/model/UlimitName.cpp @@ -20,26 +20,26 @@ namespace Aws namespace UlimitNameMapper { - static const int core_HASH = HashingUtils::HashString("core"); - static const int cpu_HASH = HashingUtils::HashString("cpu"); - static const int data_HASH = HashingUtils::HashString("data"); - static const int fsize_HASH = HashingUtils::HashString("fsize"); - static const int locks_HASH = HashingUtils::HashString("locks"); - static const int memlock_HASH = HashingUtils::HashString("memlock"); - static const int msgqueue_HASH = HashingUtils::HashString("msgqueue"); - static const int nice_HASH = HashingUtils::HashString("nice"); - static const int nofile_HASH = HashingUtils::HashString("nofile"); - static const int nproc_HASH = HashingUtils::HashString("nproc"); - static const int rss_HASH = HashingUtils::HashString("rss"); - static const int rtprio_HASH = HashingUtils::HashString("rtprio"); - static const int rttime_HASH = HashingUtils::HashString("rttime"); - static const int sigpending_HASH = HashingUtils::HashString("sigpending"); - static const int stack_HASH = HashingUtils::HashString("stack"); + static constexpr uint32_t core_HASH = ConstExprHashingUtils::HashString("core"); + static constexpr uint32_t cpu_HASH = ConstExprHashingUtils::HashString("cpu"); + static constexpr uint32_t data_HASH = ConstExprHashingUtils::HashString("data"); + static constexpr uint32_t fsize_HASH = ConstExprHashingUtils::HashString("fsize"); + static constexpr uint32_t locks_HASH = ConstExprHashingUtils::HashString("locks"); + static constexpr uint32_t memlock_HASH = ConstExprHashingUtils::HashString("memlock"); + static constexpr uint32_t msgqueue_HASH = ConstExprHashingUtils::HashString("msgqueue"); + static constexpr uint32_t nice_HASH = ConstExprHashingUtils::HashString("nice"); + static constexpr uint32_t nofile_HASH = ConstExprHashingUtils::HashString("nofile"); + static constexpr uint32_t nproc_HASH = ConstExprHashingUtils::HashString("nproc"); + static constexpr uint32_t rss_HASH = ConstExprHashingUtils::HashString("rss"); + static constexpr uint32_t rtprio_HASH = ConstExprHashingUtils::HashString("rtprio"); + static constexpr uint32_t rttime_HASH = ConstExprHashingUtils::HashString("rttime"); + static constexpr uint32_t sigpending_HASH = ConstExprHashingUtils::HashString("sigpending"); + static constexpr uint32_t stack_HASH = ConstExprHashingUtils::HashString("stack"); UlimitName GetUlimitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == core_HASH) { return UlimitName::core; diff --git a/generated/src/aws-cpp-sdk-eks/source/EKSErrors.cpp b/generated/src/aws-cpp-sdk-eks/source/EKSErrors.cpp index 03dcae79a83..f376d7ff6cf 100644 --- a/generated/src/aws-cpp-sdk-eks/source/EKSErrors.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/EKSErrors.cpp @@ -75,21 +75,21 @@ template<> AWS_EKS_API InvalidRequestException EKSError::GetModeledError() namespace EKSErrorMapper { -static const int CLIENT_HASH = HashingUtils::HashString("ClientException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int UNSUPPORTED_AVAILABILITY_ZONE_HASH = HashingUtils::HashString("UnsupportedAvailabilityZoneException"); -static const int SERVER_HASH = HashingUtils::HashString("ServerException"); -static const int RESOURCE_PROPAGATION_DELAY_HASH = HashingUtils::HashString("ResourcePropagationDelayException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CLIENT_HASH = ConstExprHashingUtils::HashString("ClientException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t UNSUPPORTED_AVAILABILITY_ZONE_HASH = ConstExprHashingUtils::HashString("UnsupportedAvailabilityZoneException"); +static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("ServerException"); +static constexpr uint32_t RESOURCE_PROPAGATION_DELAY_HASH = ConstExprHashingUtils::HashString("ResourcePropagationDelayException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLIENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-eks/source/model/AMITypes.cpp b/generated/src/aws-cpp-sdk-eks/source/model/AMITypes.cpp index 3f97a292890..948848ceade 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/AMITypes.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/AMITypes.cpp @@ -20,23 +20,23 @@ namespace Aws namespace AMITypesMapper { - static const int AL2_x86_64_HASH = HashingUtils::HashString("AL2_x86_64"); - static const int AL2_x86_64_GPU_HASH = HashingUtils::HashString("AL2_x86_64_GPU"); - static const int AL2_ARM_64_HASH = HashingUtils::HashString("AL2_ARM_64"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int BOTTLEROCKET_ARM_64_HASH = HashingUtils::HashString("BOTTLEROCKET_ARM_64"); - static const int BOTTLEROCKET_x86_64_HASH = HashingUtils::HashString("BOTTLEROCKET_x86_64"); - static const int BOTTLEROCKET_ARM_64_NVIDIA_HASH = HashingUtils::HashString("BOTTLEROCKET_ARM_64_NVIDIA"); - static const int BOTTLEROCKET_x86_64_NVIDIA_HASH = HashingUtils::HashString("BOTTLEROCKET_x86_64_NVIDIA"); - static const int WINDOWS_CORE_2019_x86_64_HASH = HashingUtils::HashString("WINDOWS_CORE_2019_x86_64"); - static const int WINDOWS_FULL_2019_x86_64_HASH = HashingUtils::HashString("WINDOWS_FULL_2019_x86_64"); - static const int WINDOWS_CORE_2022_x86_64_HASH = HashingUtils::HashString("WINDOWS_CORE_2022_x86_64"); - static const int WINDOWS_FULL_2022_x86_64_HASH = HashingUtils::HashString("WINDOWS_FULL_2022_x86_64"); + static constexpr uint32_t AL2_x86_64_HASH = ConstExprHashingUtils::HashString("AL2_x86_64"); + static constexpr uint32_t AL2_x86_64_GPU_HASH = ConstExprHashingUtils::HashString("AL2_x86_64_GPU"); + static constexpr uint32_t AL2_ARM_64_HASH = ConstExprHashingUtils::HashString("AL2_ARM_64"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t BOTTLEROCKET_ARM_64_HASH = ConstExprHashingUtils::HashString("BOTTLEROCKET_ARM_64"); + static constexpr uint32_t BOTTLEROCKET_x86_64_HASH = ConstExprHashingUtils::HashString("BOTTLEROCKET_x86_64"); + static constexpr uint32_t BOTTLEROCKET_ARM_64_NVIDIA_HASH = ConstExprHashingUtils::HashString("BOTTLEROCKET_ARM_64_NVIDIA"); + static constexpr uint32_t BOTTLEROCKET_x86_64_NVIDIA_HASH = ConstExprHashingUtils::HashString("BOTTLEROCKET_x86_64_NVIDIA"); + static constexpr uint32_t WINDOWS_CORE_2019_x86_64_HASH = ConstExprHashingUtils::HashString("WINDOWS_CORE_2019_x86_64"); + static constexpr uint32_t WINDOWS_FULL_2019_x86_64_HASH = ConstExprHashingUtils::HashString("WINDOWS_FULL_2019_x86_64"); + static constexpr uint32_t WINDOWS_CORE_2022_x86_64_HASH = ConstExprHashingUtils::HashString("WINDOWS_CORE_2022_x86_64"); + static constexpr uint32_t WINDOWS_FULL_2022_x86_64_HASH = ConstExprHashingUtils::HashString("WINDOWS_FULL_2022_x86_64"); AMITypes GetAMITypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AL2_x86_64_HASH) { return AMITypes::AL2_x86_64; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/AddonIssueCode.cpp b/generated/src/aws-cpp-sdk-eks/source/model/AddonIssueCode.cpp index 1981d22228b..2430f52137e 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/AddonIssueCode.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/AddonIssueCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace AddonIssueCodeMapper { - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int InternalFailure_HASH = HashingUtils::HashString("InternalFailure"); - static const int ClusterUnreachable_HASH = HashingUtils::HashString("ClusterUnreachable"); - static const int InsufficientNumberOfReplicas_HASH = HashingUtils::HashString("InsufficientNumberOfReplicas"); - static const int ConfigurationConflict_HASH = HashingUtils::HashString("ConfigurationConflict"); - static const int AdmissionRequestDenied_HASH = HashingUtils::HashString("AdmissionRequestDenied"); - static const int UnsupportedAddonModification_HASH = HashingUtils::HashString("UnsupportedAddonModification"); - static const int K8sResourceNotFound_HASH = HashingUtils::HashString("K8sResourceNotFound"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t InternalFailure_HASH = ConstExprHashingUtils::HashString("InternalFailure"); + static constexpr uint32_t ClusterUnreachable_HASH = ConstExprHashingUtils::HashString("ClusterUnreachable"); + static constexpr uint32_t InsufficientNumberOfReplicas_HASH = ConstExprHashingUtils::HashString("InsufficientNumberOfReplicas"); + static constexpr uint32_t ConfigurationConflict_HASH = ConstExprHashingUtils::HashString("ConfigurationConflict"); + static constexpr uint32_t AdmissionRequestDenied_HASH = ConstExprHashingUtils::HashString("AdmissionRequestDenied"); + static constexpr uint32_t UnsupportedAddonModification_HASH = ConstExprHashingUtils::HashString("UnsupportedAddonModification"); + static constexpr uint32_t K8sResourceNotFound_HASH = ConstExprHashingUtils::HashString("K8sResourceNotFound"); AddonIssueCode GetAddonIssueCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccessDenied_HASH) { return AddonIssueCode::AccessDenied; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/AddonStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/AddonStatus.cpp index c91b5d45bf0..d3ebca8daba 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/AddonStatus.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/AddonStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace AddonStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); AddonStatus GetAddonStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AddonStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/CapacityTypes.cpp b/generated/src/aws-cpp-sdk-eks/source/model/CapacityTypes.cpp index 564ff6e1e89..ee6becb8cbe 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/CapacityTypes.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/CapacityTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapacityTypesMapper { - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int SPOT_HASH = HashingUtils::HashString("SPOT"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t SPOT_HASH = ConstExprHashingUtils::HashString("SPOT"); CapacityTypes GetCapacityTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_HASH) { return CapacityTypes::ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ClusterIssueCode.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ClusterIssueCode.cpp index 854581586ad..6871af5dc9b 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/ClusterIssueCode.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/ClusterIssueCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ClusterIssueCodeMapper { - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int ClusterUnreachable_HASH = HashingUtils::HashString("ClusterUnreachable"); - static const int ConfigurationConflict_HASH = HashingUtils::HashString("ConfigurationConflict"); - static const int InternalFailure_HASH = HashingUtils::HashString("InternalFailure"); - static const int ResourceLimitExceeded_HASH = HashingUtils::HashString("ResourceLimitExceeded"); - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t ClusterUnreachable_HASH = ConstExprHashingUtils::HashString("ClusterUnreachable"); + static constexpr uint32_t ConfigurationConflict_HASH = ConstExprHashingUtils::HashString("ConfigurationConflict"); + static constexpr uint32_t InternalFailure_HASH = ConstExprHashingUtils::HashString("InternalFailure"); + static constexpr uint32_t ResourceLimitExceeded_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); ClusterIssueCode GetClusterIssueCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccessDenied_HASH) { return ClusterIssueCode::AccessDenied; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ClusterStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ClusterStatus.cpp index 974fb7f8d37..b94c2c3f9db 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/ClusterStatus.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/ClusterStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ClusterStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); ClusterStatus GetClusterStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ClusterStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ConfigStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ConfigStatus.cpp index 9e55e092d9a..ab561734e4c 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/ConfigStatus.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/ConfigStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); ConfigStatus GetConfigStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConfigStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ConnectorConfigProvider.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ConnectorConfigProvider.cpp index 15a5c42484a..872f2ddb86c 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/ConnectorConfigProvider.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/ConnectorConfigProvider.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ConnectorConfigProviderMapper { - static const int EKS_ANYWHERE_HASH = HashingUtils::HashString("EKS_ANYWHERE"); - static const int ANTHOS_HASH = HashingUtils::HashString("ANTHOS"); - static const int GKE_HASH = HashingUtils::HashString("GKE"); - static const int AKS_HASH = HashingUtils::HashString("AKS"); - static const int OPENSHIFT_HASH = HashingUtils::HashString("OPENSHIFT"); - static const int TANZU_HASH = HashingUtils::HashString("TANZU"); - static const int RANCHER_HASH = HashingUtils::HashString("RANCHER"); - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t EKS_ANYWHERE_HASH = ConstExprHashingUtils::HashString("EKS_ANYWHERE"); + static constexpr uint32_t ANTHOS_HASH = ConstExprHashingUtils::HashString("ANTHOS"); + static constexpr uint32_t GKE_HASH = ConstExprHashingUtils::HashString("GKE"); + static constexpr uint32_t AKS_HASH = ConstExprHashingUtils::HashString("AKS"); + static constexpr uint32_t OPENSHIFT_HASH = ConstExprHashingUtils::HashString("OPENSHIFT"); + static constexpr uint32_t TANZU_HASH = ConstExprHashingUtils::HashString("TANZU"); + static constexpr uint32_t RANCHER_HASH = ConstExprHashingUtils::HashString("RANCHER"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ConnectorConfigProvider GetConnectorConfigProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EKS_ANYWHERE_HASH) { return ConnectorConfigProvider::EKS_ANYWHERE; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ErrorCode.cpp index 2c6147c5468..28ccc1533a3 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/ErrorCode.cpp @@ -20,28 +20,28 @@ namespace Aws namespace ErrorCodeMapper { - static const int SubnetNotFound_HASH = HashingUtils::HashString("SubnetNotFound"); - static const int SecurityGroupNotFound_HASH = HashingUtils::HashString("SecurityGroupNotFound"); - static const int EniLimitReached_HASH = HashingUtils::HashString("EniLimitReached"); - static const int IpNotAvailable_HASH = HashingUtils::HashString("IpNotAvailable"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int OperationNotPermitted_HASH = HashingUtils::HashString("OperationNotPermitted"); - static const int VpcIdNotFound_HASH = HashingUtils::HashString("VpcIdNotFound"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int NodeCreationFailure_HASH = HashingUtils::HashString("NodeCreationFailure"); - static const int PodEvictionFailure_HASH = HashingUtils::HashString("PodEvictionFailure"); - static const int InsufficientFreeAddresses_HASH = HashingUtils::HashString("InsufficientFreeAddresses"); - static const int ClusterUnreachable_HASH = HashingUtils::HashString("ClusterUnreachable"); - static const int InsufficientNumberOfReplicas_HASH = HashingUtils::HashString("InsufficientNumberOfReplicas"); - static const int ConfigurationConflict_HASH = HashingUtils::HashString("ConfigurationConflict"); - static const int AdmissionRequestDenied_HASH = HashingUtils::HashString("AdmissionRequestDenied"); - static const int UnsupportedAddonModification_HASH = HashingUtils::HashString("UnsupportedAddonModification"); - static const int K8sResourceNotFound_HASH = HashingUtils::HashString("K8sResourceNotFound"); + static constexpr uint32_t SubnetNotFound_HASH = ConstExprHashingUtils::HashString("SubnetNotFound"); + static constexpr uint32_t SecurityGroupNotFound_HASH = ConstExprHashingUtils::HashString("SecurityGroupNotFound"); + static constexpr uint32_t EniLimitReached_HASH = ConstExprHashingUtils::HashString("EniLimitReached"); + static constexpr uint32_t IpNotAvailable_HASH = ConstExprHashingUtils::HashString("IpNotAvailable"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t OperationNotPermitted_HASH = ConstExprHashingUtils::HashString("OperationNotPermitted"); + static constexpr uint32_t VpcIdNotFound_HASH = ConstExprHashingUtils::HashString("VpcIdNotFound"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t NodeCreationFailure_HASH = ConstExprHashingUtils::HashString("NodeCreationFailure"); + static constexpr uint32_t PodEvictionFailure_HASH = ConstExprHashingUtils::HashString("PodEvictionFailure"); + static constexpr uint32_t InsufficientFreeAddresses_HASH = ConstExprHashingUtils::HashString("InsufficientFreeAddresses"); + static constexpr uint32_t ClusterUnreachable_HASH = ConstExprHashingUtils::HashString("ClusterUnreachable"); + static constexpr uint32_t InsufficientNumberOfReplicas_HASH = ConstExprHashingUtils::HashString("InsufficientNumberOfReplicas"); + static constexpr uint32_t ConfigurationConflict_HASH = ConstExprHashingUtils::HashString("ConfigurationConflict"); + static constexpr uint32_t AdmissionRequestDenied_HASH = ConstExprHashingUtils::HashString("AdmissionRequestDenied"); + static constexpr uint32_t UnsupportedAddonModification_HASH = ConstExprHashingUtils::HashString("UnsupportedAddonModification"); + static constexpr uint32_t K8sResourceNotFound_HASH = ConstExprHashingUtils::HashString("K8sResourceNotFound"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SubnetNotFound_HASH) { return ErrorCode::SubnetNotFound; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/FargateProfileStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/FargateProfileStatus.cpp index 778c9afa43e..5a5fdc30075 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/FargateProfileStatus.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/FargateProfileStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FargateProfileStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); FargateProfileStatus GetFargateProfileStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return FargateProfileStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/IpFamily.cpp b/generated/src/aws-cpp-sdk-eks/source/model/IpFamily.cpp index 3c8837dea61..d34cafbe2c6 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/IpFamily.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/IpFamily.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpFamilyMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); IpFamily GetIpFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return IpFamily::ipv4; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-eks/source/model/LogType.cpp index fcac4d78f3e..4b9b91531b3 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/LogType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LogTypeMapper { - static const int api_HASH = HashingUtils::HashString("api"); - static const int audit_HASH = HashingUtils::HashString("audit"); - static const int authenticator_HASH = HashingUtils::HashString("authenticator"); - static const int controllerManager_HASH = HashingUtils::HashString("controllerManager"); - static const int scheduler_HASH = HashingUtils::HashString("scheduler"); + static constexpr uint32_t api_HASH = ConstExprHashingUtils::HashString("api"); + static constexpr uint32_t audit_HASH = ConstExprHashingUtils::HashString("audit"); + static constexpr uint32_t authenticator_HASH = ConstExprHashingUtils::HashString("authenticator"); + static constexpr uint32_t controllerManager_HASH = ConstExprHashingUtils::HashString("controllerManager"); + static constexpr uint32_t scheduler_HASH = ConstExprHashingUtils::HashString("scheduler"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == api_HASH) { return LogType::api; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/NodegroupIssueCode.cpp b/generated/src/aws-cpp-sdk-eks/source/model/NodegroupIssueCode.cpp index d5660607fea..9d323f9ca97 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/NodegroupIssueCode.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/NodegroupIssueCode.cpp @@ -20,44 +20,44 @@ namespace Aws namespace NodegroupIssueCodeMapper { - static const int AutoScalingGroupNotFound_HASH = HashingUtils::HashString("AutoScalingGroupNotFound"); - static const int AutoScalingGroupInvalidConfiguration_HASH = HashingUtils::HashString("AutoScalingGroupInvalidConfiguration"); - static const int Ec2SecurityGroupNotFound_HASH = HashingUtils::HashString("Ec2SecurityGroupNotFound"); - static const int Ec2SecurityGroupDeletionFailure_HASH = HashingUtils::HashString("Ec2SecurityGroupDeletionFailure"); - static const int Ec2LaunchTemplateNotFound_HASH = HashingUtils::HashString("Ec2LaunchTemplateNotFound"); - static const int Ec2LaunchTemplateVersionMismatch_HASH = HashingUtils::HashString("Ec2LaunchTemplateVersionMismatch"); - static const int Ec2SubnetNotFound_HASH = HashingUtils::HashString("Ec2SubnetNotFound"); - static const int Ec2SubnetInvalidConfiguration_HASH = HashingUtils::HashString("Ec2SubnetInvalidConfiguration"); - static const int IamInstanceProfileNotFound_HASH = HashingUtils::HashString("IamInstanceProfileNotFound"); - static const int Ec2SubnetMissingIpv6Assignment_HASH = HashingUtils::HashString("Ec2SubnetMissingIpv6Assignment"); - static const int IamLimitExceeded_HASH = HashingUtils::HashString("IamLimitExceeded"); - static const int IamNodeRoleNotFound_HASH = HashingUtils::HashString("IamNodeRoleNotFound"); - static const int NodeCreationFailure_HASH = HashingUtils::HashString("NodeCreationFailure"); - static const int AsgInstanceLaunchFailures_HASH = HashingUtils::HashString("AsgInstanceLaunchFailures"); - static const int InstanceLimitExceeded_HASH = HashingUtils::HashString("InstanceLimitExceeded"); - static const int InsufficientFreeAddresses_HASH = HashingUtils::HashString("InsufficientFreeAddresses"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); - static const int InternalFailure_HASH = HashingUtils::HashString("InternalFailure"); - static const int ClusterUnreachable_HASH = HashingUtils::HashString("ClusterUnreachable"); - static const int AmiIdNotFound_HASH = HashingUtils::HashString("AmiIdNotFound"); - static const int AutoScalingGroupOptInRequired_HASH = HashingUtils::HashString("AutoScalingGroupOptInRequired"); - static const int AutoScalingGroupRateLimitExceeded_HASH = HashingUtils::HashString("AutoScalingGroupRateLimitExceeded"); - static const int Ec2LaunchTemplateDeletionFailure_HASH = HashingUtils::HashString("Ec2LaunchTemplateDeletionFailure"); - static const int Ec2LaunchTemplateInvalidConfiguration_HASH = HashingUtils::HashString("Ec2LaunchTemplateInvalidConfiguration"); - static const int Ec2LaunchTemplateMaxLimitExceeded_HASH = HashingUtils::HashString("Ec2LaunchTemplateMaxLimitExceeded"); - static const int Ec2SubnetListTooLong_HASH = HashingUtils::HashString("Ec2SubnetListTooLong"); - static const int IamThrottling_HASH = HashingUtils::HashString("IamThrottling"); - static const int NodeTerminationFailure_HASH = HashingUtils::HashString("NodeTerminationFailure"); - static const int PodEvictionFailure_HASH = HashingUtils::HashString("PodEvictionFailure"); - static const int SourceEc2LaunchTemplateNotFound_HASH = HashingUtils::HashString("SourceEc2LaunchTemplateNotFound"); - static const int LimitExceeded_HASH = HashingUtils::HashString("LimitExceeded"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int AutoScalingGroupInstanceRefreshActive_HASH = HashingUtils::HashString("AutoScalingGroupInstanceRefreshActive"); + static constexpr uint32_t AutoScalingGroupNotFound_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupNotFound"); + static constexpr uint32_t AutoScalingGroupInvalidConfiguration_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupInvalidConfiguration"); + static constexpr uint32_t Ec2SecurityGroupNotFound_HASH = ConstExprHashingUtils::HashString("Ec2SecurityGroupNotFound"); + static constexpr uint32_t Ec2SecurityGroupDeletionFailure_HASH = ConstExprHashingUtils::HashString("Ec2SecurityGroupDeletionFailure"); + static constexpr uint32_t Ec2LaunchTemplateNotFound_HASH = ConstExprHashingUtils::HashString("Ec2LaunchTemplateNotFound"); + static constexpr uint32_t Ec2LaunchTemplateVersionMismatch_HASH = ConstExprHashingUtils::HashString("Ec2LaunchTemplateVersionMismatch"); + static constexpr uint32_t Ec2SubnetNotFound_HASH = ConstExprHashingUtils::HashString("Ec2SubnetNotFound"); + static constexpr uint32_t Ec2SubnetInvalidConfiguration_HASH = ConstExprHashingUtils::HashString("Ec2SubnetInvalidConfiguration"); + static constexpr uint32_t IamInstanceProfileNotFound_HASH = ConstExprHashingUtils::HashString("IamInstanceProfileNotFound"); + static constexpr uint32_t Ec2SubnetMissingIpv6Assignment_HASH = ConstExprHashingUtils::HashString("Ec2SubnetMissingIpv6Assignment"); + static constexpr uint32_t IamLimitExceeded_HASH = ConstExprHashingUtils::HashString("IamLimitExceeded"); + static constexpr uint32_t IamNodeRoleNotFound_HASH = ConstExprHashingUtils::HashString("IamNodeRoleNotFound"); + static constexpr uint32_t NodeCreationFailure_HASH = ConstExprHashingUtils::HashString("NodeCreationFailure"); + static constexpr uint32_t AsgInstanceLaunchFailures_HASH = ConstExprHashingUtils::HashString("AsgInstanceLaunchFailures"); + static constexpr uint32_t InstanceLimitExceeded_HASH = ConstExprHashingUtils::HashString("InstanceLimitExceeded"); + static constexpr uint32_t InsufficientFreeAddresses_HASH = ConstExprHashingUtils::HashString("InsufficientFreeAddresses"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); + static constexpr uint32_t InternalFailure_HASH = ConstExprHashingUtils::HashString("InternalFailure"); + static constexpr uint32_t ClusterUnreachable_HASH = ConstExprHashingUtils::HashString("ClusterUnreachable"); + static constexpr uint32_t AmiIdNotFound_HASH = ConstExprHashingUtils::HashString("AmiIdNotFound"); + static constexpr uint32_t AutoScalingGroupOptInRequired_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupOptInRequired"); + static constexpr uint32_t AutoScalingGroupRateLimitExceeded_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupRateLimitExceeded"); + static constexpr uint32_t Ec2LaunchTemplateDeletionFailure_HASH = ConstExprHashingUtils::HashString("Ec2LaunchTemplateDeletionFailure"); + static constexpr uint32_t Ec2LaunchTemplateInvalidConfiguration_HASH = ConstExprHashingUtils::HashString("Ec2LaunchTemplateInvalidConfiguration"); + static constexpr uint32_t Ec2LaunchTemplateMaxLimitExceeded_HASH = ConstExprHashingUtils::HashString("Ec2LaunchTemplateMaxLimitExceeded"); + static constexpr uint32_t Ec2SubnetListTooLong_HASH = ConstExprHashingUtils::HashString("Ec2SubnetListTooLong"); + static constexpr uint32_t IamThrottling_HASH = ConstExprHashingUtils::HashString("IamThrottling"); + static constexpr uint32_t NodeTerminationFailure_HASH = ConstExprHashingUtils::HashString("NodeTerminationFailure"); + static constexpr uint32_t PodEvictionFailure_HASH = ConstExprHashingUtils::HashString("PodEvictionFailure"); + static constexpr uint32_t SourceEc2LaunchTemplateNotFound_HASH = ConstExprHashingUtils::HashString("SourceEc2LaunchTemplateNotFound"); + static constexpr uint32_t LimitExceeded_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t AutoScalingGroupInstanceRefreshActive_HASH = ConstExprHashingUtils::HashString("AutoScalingGroupInstanceRefreshActive"); NodegroupIssueCode GetNodegroupIssueCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AutoScalingGroupNotFound_HASH) { return NodegroupIssueCode::AutoScalingGroupNotFound; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/NodegroupStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/NodegroupStatus.cpp index 18618f65984..6f697b2215d 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/NodegroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/NodegroupStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace NodegroupStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DEGRADED_HASH = HashingUtils::HashString("DEGRADED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DEGRADED_HASH = ConstExprHashingUtils::HashString("DEGRADED"); NodegroupStatus GetNodegroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return NodegroupStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ResolveConflicts.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ResolveConflicts.cpp index 5e1e54d0e48..ec53ebc0c0c 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/ResolveConflicts.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/ResolveConflicts.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResolveConflictsMapper { - static const int OVERWRITE_HASH = HashingUtils::HashString("OVERWRITE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); + static constexpr uint32_t OVERWRITE_HASH = ConstExprHashingUtils::HashString("OVERWRITE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRESERVE_HASH = ConstExprHashingUtils::HashString("PRESERVE"); ResolveConflicts GetResolveConflictsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERWRITE_HASH) { return ResolveConflicts::OVERWRITE; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/TaintEffect.cpp b/generated/src/aws-cpp-sdk-eks/source/model/TaintEffect.cpp index 140f4559456..a510a38cfab 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/TaintEffect.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/TaintEffect.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TaintEffectMapper { - static const int NO_SCHEDULE_HASH = HashingUtils::HashString("NO_SCHEDULE"); - static const int NO_EXECUTE_HASH = HashingUtils::HashString("NO_EXECUTE"); - static const int PREFER_NO_SCHEDULE_HASH = HashingUtils::HashString("PREFER_NO_SCHEDULE"); + static constexpr uint32_t NO_SCHEDULE_HASH = ConstExprHashingUtils::HashString("NO_SCHEDULE"); + static constexpr uint32_t NO_EXECUTE_HASH = ConstExprHashingUtils::HashString("NO_EXECUTE"); + static constexpr uint32_t PREFER_NO_SCHEDULE_HASH = ConstExprHashingUtils::HashString("PREFER_NO_SCHEDULE"); TaintEffect GetTaintEffectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_SCHEDULE_HASH) { return TaintEffect::NO_SCHEDULE; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/UpdateParamType.cpp b/generated/src/aws-cpp-sdk-eks/source/model/UpdateParamType.cpp index 8a4dcb710ad..7fd94014fc1 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/UpdateParamType.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/UpdateParamType.cpp @@ -20,34 +20,34 @@ namespace Aws namespace UpdateParamTypeMapper { - static const int Version_HASH = HashingUtils::HashString("Version"); - static const int PlatformVersion_HASH = HashingUtils::HashString("PlatformVersion"); - static const int EndpointPrivateAccess_HASH = HashingUtils::HashString("EndpointPrivateAccess"); - static const int EndpointPublicAccess_HASH = HashingUtils::HashString("EndpointPublicAccess"); - static const int ClusterLogging_HASH = HashingUtils::HashString("ClusterLogging"); - static const int DesiredSize_HASH = HashingUtils::HashString("DesiredSize"); - static const int LabelsToAdd_HASH = HashingUtils::HashString("LabelsToAdd"); - static const int LabelsToRemove_HASH = HashingUtils::HashString("LabelsToRemove"); - static const int TaintsToAdd_HASH = HashingUtils::HashString("TaintsToAdd"); - static const int TaintsToRemove_HASH = HashingUtils::HashString("TaintsToRemove"); - static const int MaxSize_HASH = HashingUtils::HashString("MaxSize"); - static const int MinSize_HASH = HashingUtils::HashString("MinSize"); - static const int ReleaseVersion_HASH = HashingUtils::HashString("ReleaseVersion"); - static const int PublicAccessCidrs_HASH = HashingUtils::HashString("PublicAccessCidrs"); - static const int LaunchTemplateName_HASH = HashingUtils::HashString("LaunchTemplateName"); - static const int LaunchTemplateVersion_HASH = HashingUtils::HashString("LaunchTemplateVersion"); - static const int IdentityProviderConfig_HASH = HashingUtils::HashString("IdentityProviderConfig"); - static const int EncryptionConfig_HASH = HashingUtils::HashString("EncryptionConfig"); - static const int AddonVersion_HASH = HashingUtils::HashString("AddonVersion"); - static const int ServiceAccountRoleArn_HASH = HashingUtils::HashString("ServiceAccountRoleArn"); - static const int ResolveConflicts_HASH = HashingUtils::HashString("ResolveConflicts"); - static const int MaxUnavailable_HASH = HashingUtils::HashString("MaxUnavailable"); - static const int MaxUnavailablePercentage_HASH = HashingUtils::HashString("MaxUnavailablePercentage"); + static constexpr uint32_t Version_HASH = ConstExprHashingUtils::HashString("Version"); + static constexpr uint32_t PlatformVersion_HASH = ConstExprHashingUtils::HashString("PlatformVersion"); + static constexpr uint32_t EndpointPrivateAccess_HASH = ConstExprHashingUtils::HashString("EndpointPrivateAccess"); + static constexpr uint32_t EndpointPublicAccess_HASH = ConstExprHashingUtils::HashString("EndpointPublicAccess"); + static constexpr uint32_t ClusterLogging_HASH = ConstExprHashingUtils::HashString("ClusterLogging"); + static constexpr uint32_t DesiredSize_HASH = ConstExprHashingUtils::HashString("DesiredSize"); + static constexpr uint32_t LabelsToAdd_HASH = ConstExprHashingUtils::HashString("LabelsToAdd"); + static constexpr uint32_t LabelsToRemove_HASH = ConstExprHashingUtils::HashString("LabelsToRemove"); + static constexpr uint32_t TaintsToAdd_HASH = ConstExprHashingUtils::HashString("TaintsToAdd"); + static constexpr uint32_t TaintsToRemove_HASH = ConstExprHashingUtils::HashString("TaintsToRemove"); + static constexpr uint32_t MaxSize_HASH = ConstExprHashingUtils::HashString("MaxSize"); + static constexpr uint32_t MinSize_HASH = ConstExprHashingUtils::HashString("MinSize"); + static constexpr uint32_t ReleaseVersion_HASH = ConstExprHashingUtils::HashString("ReleaseVersion"); + static constexpr uint32_t PublicAccessCidrs_HASH = ConstExprHashingUtils::HashString("PublicAccessCidrs"); + static constexpr uint32_t LaunchTemplateName_HASH = ConstExprHashingUtils::HashString("LaunchTemplateName"); + static constexpr uint32_t LaunchTemplateVersion_HASH = ConstExprHashingUtils::HashString("LaunchTemplateVersion"); + static constexpr uint32_t IdentityProviderConfig_HASH = ConstExprHashingUtils::HashString("IdentityProviderConfig"); + static constexpr uint32_t EncryptionConfig_HASH = ConstExprHashingUtils::HashString("EncryptionConfig"); + static constexpr uint32_t AddonVersion_HASH = ConstExprHashingUtils::HashString("AddonVersion"); + static constexpr uint32_t ServiceAccountRoleArn_HASH = ConstExprHashingUtils::HashString("ServiceAccountRoleArn"); + static constexpr uint32_t ResolveConflicts_HASH = ConstExprHashingUtils::HashString("ResolveConflicts"); + static constexpr uint32_t MaxUnavailable_HASH = ConstExprHashingUtils::HashString("MaxUnavailable"); + static constexpr uint32_t MaxUnavailablePercentage_HASH = ConstExprHashingUtils::HashString("MaxUnavailablePercentage"); UpdateParamType GetUpdateParamTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Version_HASH) { return UpdateParamType::Version; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/UpdateStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/UpdateStatus.cpp index 2ed80c8a6d3..f6dbeab75f5 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/UpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/UpdateStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UpdateStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); UpdateStatus GetUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return UpdateStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-eks/source/model/UpdateType.cpp b/generated/src/aws-cpp-sdk-eks/source/model/UpdateType.cpp index 615205b299a..d7a17cba5ae 100644 --- a/generated/src/aws-cpp-sdk-eks/source/model/UpdateType.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/model/UpdateType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace UpdateTypeMapper { - static const int VersionUpdate_HASH = HashingUtils::HashString("VersionUpdate"); - static const int EndpointAccessUpdate_HASH = HashingUtils::HashString("EndpointAccessUpdate"); - static const int LoggingUpdate_HASH = HashingUtils::HashString("LoggingUpdate"); - static const int ConfigUpdate_HASH = HashingUtils::HashString("ConfigUpdate"); - static const int AssociateIdentityProviderConfig_HASH = HashingUtils::HashString("AssociateIdentityProviderConfig"); - static const int DisassociateIdentityProviderConfig_HASH = HashingUtils::HashString("DisassociateIdentityProviderConfig"); - static const int AssociateEncryptionConfig_HASH = HashingUtils::HashString("AssociateEncryptionConfig"); - static const int AddonUpdate_HASH = HashingUtils::HashString("AddonUpdate"); + static constexpr uint32_t VersionUpdate_HASH = ConstExprHashingUtils::HashString("VersionUpdate"); + static constexpr uint32_t EndpointAccessUpdate_HASH = ConstExprHashingUtils::HashString("EndpointAccessUpdate"); + static constexpr uint32_t LoggingUpdate_HASH = ConstExprHashingUtils::HashString("LoggingUpdate"); + static constexpr uint32_t ConfigUpdate_HASH = ConstExprHashingUtils::HashString("ConfigUpdate"); + static constexpr uint32_t AssociateIdentityProviderConfig_HASH = ConstExprHashingUtils::HashString("AssociateIdentityProviderConfig"); + static constexpr uint32_t DisassociateIdentityProviderConfig_HASH = ConstExprHashingUtils::HashString("DisassociateIdentityProviderConfig"); + static constexpr uint32_t AssociateEncryptionConfig_HASH = ConstExprHashingUtils::HashString("AssociateEncryptionConfig"); + static constexpr uint32_t AddonUpdate_HASH = ConstExprHashingUtils::HashString("AddonUpdate"); UpdateType GetUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VersionUpdate_HASH) { return UpdateType::VersionUpdate; diff --git a/generated/src/aws-cpp-sdk-elastic-inference/source/ElasticInferenceErrors.cpp b/generated/src/aws-cpp-sdk-elastic-inference/source/ElasticInferenceErrors.cpp index 6a93efddfa8..382ecb5e30b 100644 --- a/generated/src/aws-cpp-sdk-elastic-inference/source/ElasticInferenceErrors.cpp +++ b/generated/src/aws-cpp-sdk-elastic-inference/source/ElasticInferenceErrors.cpp @@ -18,13 +18,13 @@ namespace ElasticInference namespace ElasticInferenceErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-elastic-inference/source/model/LocationType.cpp b/generated/src/aws-cpp-sdk-elastic-inference/source/model/LocationType.cpp index 7167ad9e568..acc98699f0d 100644 --- a/generated/src/aws-cpp-sdk-elastic-inference/source/model/LocationType.cpp +++ b/generated/src/aws-cpp-sdk-elastic-inference/source/model/LocationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LocationTypeMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int availability_zone_HASH = HashingUtils::HashString("availability-zone"); - static const int availability_zone_id_HASH = HashingUtils::HashString("availability-zone-id"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t availability_zone_HASH = ConstExprHashingUtils::HashString("availability-zone"); + static constexpr uint32_t availability_zone_id_HASH = ConstExprHashingUtils::HashString("availability-zone-id"); LocationType GetLocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return LocationType::region; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheErrors.cpp b/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheErrors.cpp index faa94e49869..94a61b2e07b 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheErrors.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheErrors.cpp @@ -18,76 +18,76 @@ namespace ElastiCache namespace ElastiCacheErrorMapper { -static const int INVALID_A_R_N_FAULT_HASH = HashingUtils::HashString("InvalidARN"); -static const int SNAPSHOT_FEATURE_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("SnapshotFeatureNotSupportedFault"); -static const int CACHE_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CacheParameterGroupNotFound"); -static const int SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("SnapshotAlreadyExistsFault"); -static const int RESERVED_CACHE_NODES_OFFERING_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedCacheNodesOfferingNotFound"); -static const int CACHE_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("CacheSubnetGroupQuotaExceeded"); -static const int DEFAULT_USER_ASSOCIATED_TO_USER_GROUP_FAULT_HASH = HashingUtils::HashString("DefaultUserAssociatedToUserGroup"); -static const int REPLICATION_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ReplicationGroupAlreadyExists"); -static const int DEFAULT_USER_REQUIRED_HASH = HashingUtils::HashString("DefaultUserRequired"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int USER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("UserAlreadyExists"); -static const int CACHE_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("CacheClusterAlreadyExists"); -static const int REPLICATION_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReplicationGroupNotFoundFault"); -static const int USER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("UserNotFound"); -static const int INVALID_K_M_S_KEY_FAULT_HASH = HashingUtils::HashString("InvalidKMSKeyFault"); -static const int CACHE_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("CacheSubnetGroupAlreadyExists"); -static const int CACHE_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("CacheSubnetQuotaExceededFault"); -static const int SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SnapshotNotFoundFault"); -static const int SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotQuotaExceededFault"); -static const int SERVICE_UPDATE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ServiceUpdateNotFoundFault"); -static const int INVALID_CACHE_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidCacheClusterState"); -static const int NODE_GROUPS_PER_REPLICATION_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeGroupsPerReplicationGroupQuotaExceeded"); -static const int CACHE_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("CacheParameterGroupAlreadyExists"); -static const int SUBNET_NOT_ALLOWED_FAULT_HASH = HashingUtils::HashString("SubnetNotAllowedFault"); -static const int RESERVED_CACHE_NODE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ReservedCacheNodeQuotaExceeded"); -static const int NODE_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("NodeGroupNotFoundFault"); -static const int USER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("UserQuotaExceeded"); -static const int INVALID_USER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidUserGroupState"); -static const int INVALID_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidSnapshotState"); -static const int USER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("UserGroupQuotaExceeded"); -static const int TAG_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("TagNotFound"); -static const int CACHE_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CacheClusterNotFound"); -static const int NODE_QUOTA_FOR_CLUSTER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeQuotaForClusterExceeded"); -static const int REPLICATION_GROUP_NOT_UNDER_MIGRATION_FAULT_HASH = HashingUtils::HashString("ReplicationGroupNotUnderMigrationFault"); -static const int CACHE_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CacheSecurityGroupNotFound"); -static const int SUBNET_IN_USE_HASH = HashingUtils::HashString("SubnetInUse"); -static const int AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("AuthorizationAlreadyExists"); -static const int CLUSTER_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterQuotaForCustomerExceeded"); -static const int RESERVED_CACHE_NODE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedCacheNodeNotFound"); -static const int CACHE_SECURITY_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("QuotaExceeded.CacheSecurityGroup"); -static const int CACHE_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("CacheParameterGroupQuotaExceeded"); -static const int CACHE_SUBNET_GROUP_IN_USE_HASH = HashingUtils::HashString("CacheSubnetGroupInUse"); -static const int CACHE_SECURITY_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("CacheSecurityGroupAlreadyExists"); -static const int REPLICATION_GROUP_ALREADY_UNDER_MIGRATION_FAULT_HASH = HashingUtils::HashString("ReplicationGroupAlreadyUnderMigrationFault"); -static const int RESERVED_CACHE_NODE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ReservedCacheNodeAlreadyExists"); -static const int INVALID_CACHE_SECURITY_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidCacheSecurityGroupState"); -static const int CACHE_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CacheSubnetGroupNotFoundFault"); -static const int INVALID_USER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidUserState"); -static const int USER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("UserGroupNotFound"); -static const int GLOBAL_REPLICATION_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("GlobalReplicationGroupAlreadyExistsFault"); -static const int A_P_I_CALL_RATE_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("APICallRateForCustomerExceeded"); -static const int USER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("UserGroupAlreadyExists"); -static const int INVALID_REPLICATION_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidReplicationGroupState"); -static const int INSUFFICIENT_CACHE_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientCacheClusterCapacity"); -static const int INVALID_CACHE_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidCacheParameterGroupState"); -static const int GLOBAL_REPLICATION_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("GlobalReplicationGroupNotFoundFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int SERVICE_LINKED_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ServiceLinkedRoleNotFoundFault"); -static const int AUTHORIZATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("AuthorizationNotFound"); -static const int TAG_QUOTA_PER_RESOURCE_EXCEEDED_HASH = HashingUtils::HashString("TagQuotaPerResourceExceeded"); -static const int INVALID_GLOBAL_REPLICATION_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidGlobalReplicationGroupState"); -static const int TEST_FAILOVER_NOT_AVAILABLE_FAULT_HASH = HashingUtils::HashString("TestFailoverNotAvailableFault"); -static const int NODE_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeQuotaForCustomerExceeded"); -static const int DUPLICATE_USER_NAME_FAULT_HASH = HashingUtils::HashString("DuplicateUserName"); -static const int NO_OPERATION_FAULT_HASH = HashingUtils::HashString("NoOperationFault"); +static constexpr uint32_t INVALID_A_R_N_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidARN"); +static constexpr uint32_t SNAPSHOT_FEATURE_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotFeatureNotSupportedFault"); +static constexpr uint32_t CACHE_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CacheParameterGroupNotFound"); +static constexpr uint32_t SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotAlreadyExistsFault"); +static constexpr uint32_t RESERVED_CACHE_NODES_OFFERING_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedCacheNodesOfferingNotFound"); +static constexpr uint32_t CACHE_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("CacheSubnetGroupQuotaExceeded"); +static constexpr uint32_t DEFAULT_USER_ASSOCIATED_TO_USER_GROUP_FAULT_HASH = ConstExprHashingUtils::HashString("DefaultUserAssociatedToUserGroup"); +static constexpr uint32_t REPLICATION_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ReplicationGroupAlreadyExists"); +static constexpr uint32_t DEFAULT_USER_REQUIRED_HASH = ConstExprHashingUtils::HashString("DefaultUserRequired"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t USER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("UserAlreadyExists"); +static constexpr uint32_t CACHE_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("CacheClusterAlreadyExists"); +static constexpr uint32_t REPLICATION_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReplicationGroupNotFoundFault"); +static constexpr uint32_t USER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("UserNotFound"); +static constexpr uint32_t INVALID_K_M_S_KEY_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidKMSKeyFault"); +static constexpr uint32_t CACHE_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("CacheSubnetGroupAlreadyExists"); +static constexpr uint32_t CACHE_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("CacheSubnetQuotaExceededFault"); +static constexpr uint32_t SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotNotFoundFault"); +static constexpr uint32_t SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotQuotaExceededFault"); +static constexpr uint32_t SERVICE_UPDATE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ServiceUpdateNotFoundFault"); +static constexpr uint32_t INVALID_CACHE_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidCacheClusterState"); +static constexpr uint32_t NODE_GROUPS_PER_REPLICATION_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeGroupsPerReplicationGroupQuotaExceeded"); +static constexpr uint32_t CACHE_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("CacheParameterGroupAlreadyExists"); +static constexpr uint32_t SUBNET_NOT_ALLOWED_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetNotAllowedFault"); +static constexpr uint32_t RESERVED_CACHE_NODE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedCacheNodeQuotaExceeded"); +static constexpr uint32_t NODE_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("NodeGroupNotFoundFault"); +static constexpr uint32_t USER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("UserQuotaExceeded"); +static constexpr uint32_t INVALID_USER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidUserGroupState"); +static constexpr uint32_t INVALID_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidSnapshotState"); +static constexpr uint32_t USER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("UserGroupQuotaExceeded"); +static constexpr uint32_t TAG_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("TagNotFound"); +static constexpr uint32_t CACHE_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CacheClusterNotFound"); +static constexpr uint32_t NODE_QUOTA_FOR_CLUSTER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeQuotaForClusterExceeded"); +static constexpr uint32_t REPLICATION_GROUP_NOT_UNDER_MIGRATION_FAULT_HASH = ConstExprHashingUtils::HashString("ReplicationGroupNotUnderMigrationFault"); +static constexpr uint32_t CACHE_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CacheSecurityGroupNotFound"); +static constexpr uint32_t SUBNET_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetInUse"); +static constexpr uint32_t AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationAlreadyExists"); +static constexpr uint32_t CLUSTER_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterQuotaForCustomerExceeded"); +static constexpr uint32_t RESERVED_CACHE_NODE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedCacheNodeNotFound"); +static constexpr uint32_t CACHE_SECURITY_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("QuotaExceeded.CacheSecurityGroup"); +static constexpr uint32_t CACHE_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("CacheParameterGroupQuotaExceeded"); +static constexpr uint32_t CACHE_SUBNET_GROUP_IN_USE_HASH = ConstExprHashingUtils::HashString("CacheSubnetGroupInUse"); +static constexpr uint32_t CACHE_SECURITY_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("CacheSecurityGroupAlreadyExists"); +static constexpr uint32_t REPLICATION_GROUP_ALREADY_UNDER_MIGRATION_FAULT_HASH = ConstExprHashingUtils::HashString("ReplicationGroupAlreadyUnderMigrationFault"); +static constexpr uint32_t RESERVED_CACHE_NODE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedCacheNodeAlreadyExists"); +static constexpr uint32_t INVALID_CACHE_SECURITY_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidCacheSecurityGroupState"); +static constexpr uint32_t CACHE_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CacheSubnetGroupNotFoundFault"); +static constexpr uint32_t INVALID_USER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidUserState"); +static constexpr uint32_t USER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("UserGroupNotFound"); +static constexpr uint32_t GLOBAL_REPLICATION_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalReplicationGroupAlreadyExistsFault"); +static constexpr uint32_t A_P_I_CALL_RATE_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("APICallRateForCustomerExceeded"); +static constexpr uint32_t USER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("UserGroupAlreadyExists"); +static constexpr uint32_t INVALID_REPLICATION_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidReplicationGroupState"); +static constexpr uint32_t INSUFFICIENT_CACHE_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientCacheClusterCapacity"); +static constexpr uint32_t INVALID_CACHE_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidCacheParameterGroupState"); +static constexpr uint32_t GLOBAL_REPLICATION_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalReplicationGroupNotFoundFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t SERVICE_LINKED_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ServiceLinkedRoleNotFoundFault"); +static constexpr uint32_t AUTHORIZATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationNotFound"); +static constexpr uint32_t TAG_QUOTA_PER_RESOURCE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagQuotaPerResourceExceeded"); +static constexpr uint32_t INVALID_GLOBAL_REPLICATION_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidGlobalReplicationGroupState"); +static constexpr uint32_t TEST_FAILOVER_NOT_AVAILABLE_FAULT_HASH = ConstExprHashingUtils::HashString("TestFailoverNotAvailableFault"); +static constexpr uint32_t NODE_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeQuotaForCustomerExceeded"); +static constexpr uint32_t DUPLICATE_USER_NAME_FAULT_HASH = ConstExprHashingUtils::HashString("DuplicateUserName"); +static constexpr uint32_t NO_OPERATION_FAULT_HASH = ConstExprHashingUtils::HashString("NoOperationFault"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_A_R_N_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/AZMode.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/AZMode.cpp index d7101d72e4c..4cb4527f77b 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/AZMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/AZMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AZModeMapper { - static const int single_az_HASH = HashingUtils::HashString("single-az"); - static const int cross_az_HASH = HashingUtils::HashString("cross-az"); + static constexpr uint32_t single_az_HASH = ConstExprHashingUtils::HashString("single-az"); + static constexpr uint32_t cross_az_HASH = ConstExprHashingUtils::HashString("cross-az"); AZMode GetAZModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == single_az_HASH) { return AZMode::single_az; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStatus.cpp index 42dbe64a82b..74c2053c1ff 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthTokenUpdateStatusMapper { - static const int SETTING_HASH = HashingUtils::HashString("SETTING"); - static const int ROTATING_HASH = HashingUtils::HashString("ROTATING"); + static constexpr uint32_t SETTING_HASH = ConstExprHashingUtils::HashString("SETTING"); + static constexpr uint32_t ROTATING_HASH = ConstExprHashingUtils::HashString("ROTATING"); AuthTokenUpdateStatus GetAuthTokenUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SETTING_HASH) { return AuthTokenUpdateStatus::SETTING; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStrategyType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStrategyType.cpp index 1c0a631f530..51f1f4e570d 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/AuthTokenUpdateStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthTokenUpdateStrategyTypeMapper { - static const int SET_HASH = HashingUtils::HashString("SET"); - static const int ROTATE_HASH = HashingUtils::HashString("ROTATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t SET_HASH = ConstExprHashingUtils::HashString("SET"); + static constexpr uint32_t ROTATE_HASH = ConstExprHashingUtils::HashString("ROTATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); AuthTokenUpdateStrategyType GetAuthTokenUpdateStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SET_HASH) { return AuthTokenUpdateStrategyType::SET; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/AuthenticationType.cpp index 21835791896..d9c63682c73 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/AuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/AuthenticationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthenticationTypeMapper { - static const int password_HASH = HashingUtils::HashString("password"); - static const int no_password_HASH = HashingUtils::HashString("no-password"); - static const int iam_HASH = HashingUtils::HashString("iam"); + static constexpr uint32_t password_HASH = ConstExprHashingUtils::HashString("password"); + static constexpr uint32_t no_password_HASH = ConstExprHashingUtils::HashString("no-password"); + static constexpr uint32_t iam_HASH = ConstExprHashingUtils::HashString("iam"); AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == password_HASH) { return AuthenticationType::password; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/AutomaticFailoverStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/AutomaticFailoverStatus.cpp index ea59e787a13..94d61e8a187 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/AutomaticFailoverStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/AutomaticFailoverStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AutomaticFailoverStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); AutomaticFailoverStatus GetAutomaticFailoverStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return AutomaticFailoverStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/ChangeType.cpp index 04aa467feca..c123ca0b096 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/ChangeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeTypeMapper { - static const int immediate_HASH = HashingUtils::HashString("immediate"); - static const int requires_reboot_HASH = HashingUtils::HashString("requires-reboot"); + static constexpr uint32_t immediate_HASH = ConstExprHashingUtils::HashString("immediate"); + static constexpr uint32_t requires_reboot_HASH = ConstExprHashingUtils::HashString("requires-reboot"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == immediate_HASH) { return ChangeType::immediate; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/ClusterMode.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/ClusterMode.cpp index 4cd71ccc98f..cbdf6c2e9f3 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/ClusterMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/ClusterMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClusterModeMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int compatible_HASH = HashingUtils::HashString("compatible"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t compatible_HASH = ConstExprHashingUtils::HashString("compatible"); ClusterMode GetClusterModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return ClusterMode::enabled; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/DataTieringStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/DataTieringStatus.cpp index 43bb39df49f..c9309a3a7e2 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/DataTieringStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/DataTieringStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataTieringStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); DataTieringStatus GetDataTieringStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return DataTieringStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/DestinationType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/DestinationType.cpp index 3f232677d03..4f6c579e016 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/DestinationType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/DestinationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DestinationTypeMapper { - static const int cloudwatch_logs_HASH = HashingUtils::HashString("cloudwatch-logs"); - static const int kinesis_firehose_HASH = HashingUtils::HashString("kinesis-firehose"); + static constexpr uint32_t cloudwatch_logs_HASH = ConstExprHashingUtils::HashString("cloudwatch-logs"); + static constexpr uint32_t kinesis_firehose_HASH = ConstExprHashingUtils::HashString("kinesis-firehose"); DestinationType GetDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cloudwatch_logs_HASH) { return DestinationType::cloudwatch_logs; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/InputAuthenticationType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/InputAuthenticationType.cpp index dc78c9fe77d..9529d9cb2bc 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/InputAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/InputAuthenticationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputAuthenticationTypeMapper { - static const int password_HASH = HashingUtils::HashString("password"); - static const int no_password_required_HASH = HashingUtils::HashString("no-password-required"); - static const int iam_HASH = HashingUtils::HashString("iam"); + static constexpr uint32_t password_HASH = ConstExprHashingUtils::HashString("password"); + static constexpr uint32_t no_password_required_HASH = ConstExprHashingUtils::HashString("no-password-required"); + static constexpr uint32_t iam_HASH = ConstExprHashingUtils::HashString("iam"); InputAuthenticationType GetInputAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == password_HASH) { return InputAuthenticationType::password; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/IpDiscovery.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/IpDiscovery.cpp index 64b0d65c670..9c2f0391f8a 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/IpDiscovery.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/IpDiscovery.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpDiscoveryMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); IpDiscovery GetIpDiscoveryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return IpDiscovery::ipv4; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/LogDeliveryConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/LogDeliveryConfigurationStatus.cpp index 5387ceef0fc..d39d583a63e 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/LogDeliveryConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/LogDeliveryConfigurationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LogDeliveryConfigurationStatusMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int error_HASH = HashingUtils::HashString("error"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); LogDeliveryConfigurationStatus GetLogDeliveryConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return LogDeliveryConfigurationStatus::active; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/LogFormat.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/LogFormat.cpp index f90db3d3b51..06c1735476d 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/LogFormat.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/LogFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogFormatMapper { - static const int text_HASH = HashingUtils::HashString("text"); - static const int json_HASH = HashingUtils::HashString("json"); + static constexpr uint32_t text_HASH = ConstExprHashingUtils::HashString("text"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); LogFormat GetLogFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == text_HASH) { return LogFormat::text; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/LogType.cpp index 688cb1c4370..80d5ac14fd8 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/LogType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogTypeMapper { - static const int slow_log_HASH = HashingUtils::HashString("slow-log"); - static const int engine_log_HASH = HashingUtils::HashString("engine-log"); + static constexpr uint32_t slow_log_HASH = ConstExprHashingUtils::HashString("slow-log"); + static constexpr uint32_t engine_log_HASH = ConstExprHashingUtils::HashString("engine-log"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == slow_log_HASH) { return LogType::slow_log; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/MultiAZStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/MultiAZStatus.cpp index db3e7d55c83..35982e75266 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/MultiAZStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/MultiAZStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MultiAZStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); MultiAZStatus GetMultiAZStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return MultiAZStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/NetworkType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/NetworkType.cpp index e09e1755c72..77354c54603 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/NetworkType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/NetworkType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NetworkTypeMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); - static const int dual_stack_HASH = HashingUtils::HashString("dual_stack"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); + static constexpr uint32_t dual_stack_HASH = ConstExprHashingUtils::HashString("dual_stack"); NetworkType GetNetworkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return NetworkType::ipv4; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateInitiatedBy.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateInitiatedBy.cpp index 312e7b70561..38a1a358268 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateInitiatedBy.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateInitiatedBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NodeUpdateInitiatedByMapper { - static const int system_HASH = HashingUtils::HashString("system"); - static const int customer_HASH = HashingUtils::HashString("customer"); + static constexpr uint32_t system_HASH = ConstExprHashingUtils::HashString("system"); + static constexpr uint32_t customer_HASH = ConstExprHashingUtils::HashString("customer"); NodeUpdateInitiatedBy GetNodeUpdateInitiatedByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == system_HASH) { return NodeUpdateInitiatedBy::system; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateStatus.cpp index 65dce245afb..ec756a054b5 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/NodeUpdateStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NodeUpdateStatusMapper { - static const int not_applied_HASH = HashingUtils::HashString("not-applied"); - static const int waiting_to_start_HASH = HashingUtils::HashString("waiting-to-start"); - static const int in_progress_HASH = HashingUtils::HashString("in-progress"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int complete_HASH = HashingUtils::HashString("complete"); + static constexpr uint32_t not_applied_HASH = ConstExprHashingUtils::HashString("not-applied"); + static constexpr uint32_t waiting_to_start_HASH = ConstExprHashingUtils::HashString("waiting-to-start"); + static constexpr uint32_t in_progress_HASH = ConstExprHashingUtils::HashString("in-progress"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t complete_HASH = ConstExprHashingUtils::HashString("complete"); NodeUpdateStatus GetNodeUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == not_applied_HASH) { return NodeUpdateStatus::not_applied; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/OutpostMode.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/OutpostMode.cpp index 8fcb77de929..f353b390368 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/OutpostMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/OutpostMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutpostModeMapper { - static const int single_outpost_HASH = HashingUtils::HashString("single-outpost"); - static const int cross_outpost_HASH = HashingUtils::HashString("cross-outpost"); + static constexpr uint32_t single_outpost_HASH = ConstExprHashingUtils::HashString("single-outpost"); + static constexpr uint32_t cross_outpost_HASH = ConstExprHashingUtils::HashString("cross-outpost"); OutpostMode GetOutpostModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == single_outpost_HASH) { return OutpostMode::single_outpost; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/PendingAutomaticFailoverStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/PendingAutomaticFailoverStatus.cpp index e7365177e93..62d1dc4b0d0 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/PendingAutomaticFailoverStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/PendingAutomaticFailoverStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PendingAutomaticFailoverStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); PendingAutomaticFailoverStatus GetPendingAutomaticFailoverStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return PendingAutomaticFailoverStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateSeverity.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateSeverity.cpp index bacf8118a9f..79fae0d48a6 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateSeverity.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateSeverity.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ServiceUpdateSeverityMapper { - static const int critical_HASH = HashingUtils::HashString("critical"); - static const int important_HASH = HashingUtils::HashString("important"); - static const int medium_HASH = HashingUtils::HashString("medium"); - static const int low_HASH = HashingUtils::HashString("low"); + static constexpr uint32_t critical_HASH = ConstExprHashingUtils::HashString("critical"); + static constexpr uint32_t important_HASH = ConstExprHashingUtils::HashString("important"); + static constexpr uint32_t medium_HASH = ConstExprHashingUtils::HashString("medium"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); ServiceUpdateSeverity GetServiceUpdateSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == critical_HASH) { return ServiceUpdateSeverity::critical; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateStatus.cpp index 1ef0478e5d5..89b8ea3badd 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServiceUpdateStatusMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int expired_HASH = HashingUtils::HashString("expired"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t expired_HASH = ConstExprHashingUtils::HashString("expired"); ServiceUpdateStatus GetServiceUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return ServiceUpdateStatus::available; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateType.cpp index 5b62b118daa..7c5a6ea5330 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/ServiceUpdateType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceUpdateTypeMapper { - static const int security_update_HASH = HashingUtils::HashString("security-update"); + static constexpr uint32_t security_update_HASH = ConstExprHashingUtils::HashString("security-update"); ServiceUpdateType GetServiceUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == security_update_HASH) { return ServiceUpdateType::security_update; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/SlaMet.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/SlaMet.cpp index 0c0e65ac970..baf97af6bb1 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/SlaMet.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/SlaMet.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SlaMetMapper { - static const int yes_HASH = HashingUtils::HashString("yes"); - static const int no_HASH = HashingUtils::HashString("no"); - static const int n_a_HASH = HashingUtils::HashString("n/a"); + static constexpr uint32_t yes_HASH = ConstExprHashingUtils::HashString("yes"); + static constexpr uint32_t no_HASH = ConstExprHashingUtils::HashString("no"); + static constexpr uint32_t n_a_HASH = ConstExprHashingUtils::HashString("n/a"); SlaMet GetSlaMetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == yes_HASH) { return SlaMet::yes; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/SourceType.cpp index 2d11d44c12b..ae837e895f1 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/SourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SourceTypeMapper { - static const int cache_cluster_HASH = HashingUtils::HashString("cache-cluster"); - static const int cache_parameter_group_HASH = HashingUtils::HashString("cache-parameter-group"); - static const int cache_security_group_HASH = HashingUtils::HashString("cache-security-group"); - static const int cache_subnet_group_HASH = HashingUtils::HashString("cache-subnet-group"); - static const int replication_group_HASH = HashingUtils::HashString("replication-group"); - static const int user_HASH = HashingUtils::HashString("user"); - static const int user_group_HASH = HashingUtils::HashString("user-group"); + static constexpr uint32_t cache_cluster_HASH = ConstExprHashingUtils::HashString("cache-cluster"); + static constexpr uint32_t cache_parameter_group_HASH = ConstExprHashingUtils::HashString("cache-parameter-group"); + static constexpr uint32_t cache_security_group_HASH = ConstExprHashingUtils::HashString("cache-security-group"); + static constexpr uint32_t cache_subnet_group_HASH = ConstExprHashingUtils::HashString("cache-subnet-group"); + static constexpr uint32_t replication_group_HASH = ConstExprHashingUtils::HashString("replication-group"); + static constexpr uint32_t user_HASH = ConstExprHashingUtils::HashString("user"); + static constexpr uint32_t user_group_HASH = ConstExprHashingUtils::HashString("user-group"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cache_cluster_HASH) { return SourceType::cache_cluster; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/TransitEncryptionMode.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/TransitEncryptionMode.cpp index 5ee68638538..674a99dc93f 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/TransitEncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/TransitEncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransitEncryptionModeMapper { - static const int preferred_HASH = HashingUtils::HashString("preferred"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t preferred_HASH = ConstExprHashingUtils::HashString("preferred"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); TransitEncryptionMode GetTransitEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == preferred_HASH) { return TransitEncryptionMode::preferred; diff --git a/generated/src/aws-cpp-sdk-elasticache/source/model/UpdateActionStatus.cpp b/generated/src/aws-cpp-sdk-elasticache/source/model/UpdateActionStatus.cpp index a2637d122cb..998cb06d96d 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/model/UpdateActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/model/UpdateActionStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace UpdateActionStatusMapper { - static const int not_applied_HASH = HashingUtils::HashString("not-applied"); - static const int waiting_to_start_HASH = HashingUtils::HashString("waiting-to-start"); - static const int in_progress_HASH = HashingUtils::HashString("in-progress"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int complete_HASH = HashingUtils::HashString("complete"); - static const int scheduling_HASH = HashingUtils::HashString("scheduling"); - static const int scheduled_HASH = HashingUtils::HashString("scheduled"); - static const int not_applicable_HASH = HashingUtils::HashString("not-applicable"); + static constexpr uint32_t not_applied_HASH = ConstExprHashingUtils::HashString("not-applied"); + static constexpr uint32_t waiting_to_start_HASH = ConstExprHashingUtils::HashString("waiting-to-start"); + static constexpr uint32_t in_progress_HASH = ConstExprHashingUtils::HashString("in-progress"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t complete_HASH = ConstExprHashingUtils::HashString("complete"); + static constexpr uint32_t scheduling_HASH = ConstExprHashingUtils::HashString("scheduling"); + static constexpr uint32_t scheduled_HASH = ConstExprHashingUtils::HashString("scheduled"); + static constexpr uint32_t not_applicable_HASH = ConstExprHashingUtils::HashString("not-applicable"); UpdateActionStatus GetUpdateActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == not_applied_HASH) { return UpdateActionStatus::not_applied; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkErrors.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkErrors.cpp index d9510351760..e03aa307009 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkErrors.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkErrors.cpp @@ -18,29 +18,29 @@ namespace ElasticBeanstalk namespace ElasticBeanstalkErrorMapper { -static const int ELASTIC_BEANSTALK_SERVICE_HASH = HashingUtils::HashString("ElasticBeanstalkServiceException"); -static const int S3_LOCATION_NOT_IN_SERVICE_REGION_HASH = HashingUtils::HashString("S3LocationNotInServiceRegionException"); -static const int TOO_MANY_APPLICATIONS_HASH = HashingUtils::HashString("TooManyApplicationsException"); -static const int CODE_BUILD_NOT_IN_SERVICE_REGION_HASH = HashingUtils::HashString("CodeBuildNotInServiceRegionException"); -static const int PLATFORM_VERSION_STILL_REFERENCED_HASH = HashingUtils::HashString("PlatformVersionStillReferencedException"); -static const int TOO_MANY_CONFIGURATION_TEMPLATES_HASH = HashingUtils::HashString("TooManyConfigurationTemplatesException"); -static const int MANAGED_ACTION_INVALID_STATE_HASH = HashingUtils::HashString("ManagedActionInvalidStateException"); -static const int TOO_MANY_APPLICATION_VERSIONS_HASH = HashingUtils::HashString("TooManyApplicationVersionsException"); -static const int OPERATION_IN_PROGRESS_HASH = HashingUtils::HashString("OperationInProgressFailure"); -static const int S3_SUBSCRIPTION_REQUIRED_HASH = HashingUtils::HashString("S3SubscriptionRequiredException"); -static const int INSUFFICIENT_PRIVILEGES_HASH = HashingUtils::HashString("InsufficientPrivilegesException"); -static const int RESOURCE_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("ResourceTypeNotSupportedException"); -static const int TOO_MANY_ENVIRONMENTS_HASH = HashingUtils::HashString("TooManyEnvironmentsException"); -static const int TOO_MANY_BUCKETS_HASH = HashingUtils::HashString("TooManyBucketsException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int SOURCE_BUNDLE_DELETION_HASH = HashingUtils::HashString("SourceBundleDeletionFailure"); -static const int TOO_MANY_PLATFORMS_HASH = HashingUtils::HashString("TooManyPlatformsException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t ELASTIC_BEANSTALK_SERVICE_HASH = ConstExprHashingUtils::HashString("ElasticBeanstalkServiceException"); +static constexpr uint32_t S3_LOCATION_NOT_IN_SERVICE_REGION_HASH = ConstExprHashingUtils::HashString("S3LocationNotInServiceRegionException"); +static constexpr uint32_t TOO_MANY_APPLICATIONS_HASH = ConstExprHashingUtils::HashString("TooManyApplicationsException"); +static constexpr uint32_t CODE_BUILD_NOT_IN_SERVICE_REGION_HASH = ConstExprHashingUtils::HashString("CodeBuildNotInServiceRegionException"); +static constexpr uint32_t PLATFORM_VERSION_STILL_REFERENCED_HASH = ConstExprHashingUtils::HashString("PlatformVersionStillReferencedException"); +static constexpr uint32_t TOO_MANY_CONFIGURATION_TEMPLATES_HASH = ConstExprHashingUtils::HashString("TooManyConfigurationTemplatesException"); +static constexpr uint32_t MANAGED_ACTION_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("ManagedActionInvalidStateException"); +static constexpr uint32_t TOO_MANY_APPLICATION_VERSIONS_HASH = ConstExprHashingUtils::HashString("TooManyApplicationVersionsException"); +static constexpr uint32_t OPERATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("OperationInProgressFailure"); +static constexpr uint32_t S3_SUBSCRIPTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("S3SubscriptionRequiredException"); +static constexpr uint32_t INSUFFICIENT_PRIVILEGES_HASH = ConstExprHashingUtils::HashString("InsufficientPrivilegesException"); +static constexpr uint32_t RESOURCE_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ResourceTypeNotSupportedException"); +static constexpr uint32_t TOO_MANY_ENVIRONMENTS_HASH = ConstExprHashingUtils::HashString("TooManyEnvironmentsException"); +static constexpr uint32_t TOO_MANY_BUCKETS_HASH = ConstExprHashingUtils::HashString("TooManyBucketsException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t SOURCE_BUNDLE_DELETION_HASH = ConstExprHashingUtils::HashString("SourceBundleDeletionFailure"); +static constexpr uint32_t TOO_MANY_PLATFORMS_HASH = ConstExprHashingUtils::HashString("TooManyPlatformsException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == ELASTIC_BEANSTALK_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionHistoryStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionHistoryStatus.cpp index 020a092d42d..be1b1d84ba0 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionHistoryStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionHistoryStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionHistoryStatusMapper { - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); ActionHistoryStatus GetActionHistoryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Completed_HASH) { return ActionHistoryStatus::Completed; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionStatus.cpp index 2be6d7b302a..7475fe37872 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActionStatusMapper { - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); ActionStatus GetActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scheduled_HASH) { return ActionStatus::Scheduled; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionType.cpp index 2d71c08e3c5..f3325ad5031 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionTypeMapper { - static const int InstanceRefresh_HASH = HashingUtils::HashString("InstanceRefresh"); - static const int PlatformUpdate_HASH = HashingUtils::HashString("PlatformUpdate"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t InstanceRefresh_HASH = ConstExprHashingUtils::HashString("InstanceRefresh"); + static constexpr uint32_t PlatformUpdate_HASH = ConstExprHashingUtils::HashString("PlatformUpdate"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InstanceRefresh_HASH) { return ActionType::InstanceRefresh; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ApplicationVersionStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ApplicationVersionStatus.cpp index e8da2149d21..6a39d897ac8 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ApplicationVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ApplicationVersionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ApplicationVersionStatusMapper { - static const int Processed_HASH = HashingUtils::HashString("Processed"); - static const int Unprocessed_HASH = HashingUtils::HashString("Unprocessed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int Building_HASH = HashingUtils::HashString("Building"); + static constexpr uint32_t Processed_HASH = ConstExprHashingUtils::HashString("Processed"); + static constexpr uint32_t Unprocessed_HASH = ConstExprHashingUtils::HashString("Unprocessed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Building_HASH = ConstExprHashingUtils::HashString("Building"); ApplicationVersionStatus GetApplicationVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Processed_HASH) { return ApplicationVersionStatus::Processed; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ComputeType.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ComputeType.cpp index 8e7b7c4ae68..86bad6424cd 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ComputeType.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ComputeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComputeTypeMapper { - static const int BUILD_GENERAL1_SMALL_HASH = HashingUtils::HashString("BUILD_GENERAL1_SMALL"); - static const int BUILD_GENERAL1_MEDIUM_HASH = HashingUtils::HashString("BUILD_GENERAL1_MEDIUM"); - static const int BUILD_GENERAL1_LARGE_HASH = HashingUtils::HashString("BUILD_GENERAL1_LARGE"); + static constexpr uint32_t BUILD_GENERAL1_SMALL_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_SMALL"); + static constexpr uint32_t BUILD_GENERAL1_MEDIUM_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_MEDIUM"); + static constexpr uint32_t BUILD_GENERAL1_LARGE_HASH = ConstExprHashingUtils::HashString("BUILD_GENERAL1_LARGE"); ComputeType GetComputeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILD_GENERAL1_SMALL_HASH) { return ComputeType::BUILD_GENERAL1_SMALL; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationDeploymentStatus.cpp index b4de7deb231..62f02b5d4f5 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationDeploymentStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigurationDeploymentStatusMapper { - static const int deployed_HASH = HashingUtils::HashString("deployed"); - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t deployed_HASH = ConstExprHashingUtils::HashString("deployed"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); ConfigurationDeploymentStatus GetConfigurationDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == deployed_HASH) { return ConfigurationDeploymentStatus::deployed; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationOptionValueType.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationOptionValueType.cpp index a56eb647518..642d87049fc 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationOptionValueType.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ConfigurationOptionValueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigurationOptionValueTypeMapper { - static const int Scalar_HASH = HashingUtils::HashString("Scalar"); - static const int List_HASH = HashingUtils::HashString("List"); + static constexpr uint32_t Scalar_HASH = ConstExprHashingUtils::HashString("Scalar"); + static constexpr uint32_t List_HASH = ConstExprHashingUtils::HashString("List"); ConfigurationOptionValueType GetConfigurationOptionValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scalar_HASH) { return ConfigurationOptionValueType::Scalar; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealth.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealth.cpp index d8f6e887d23..bd9e7b9a4c7 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealth.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealth.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EnvironmentHealthMapper { - static const int Green_HASH = HashingUtils::HashString("Green"); - static const int Yellow_HASH = HashingUtils::HashString("Yellow"); - static const int Red_HASH = HashingUtils::HashString("Red"); - static const int Grey_HASH = HashingUtils::HashString("Grey"); + static constexpr uint32_t Green_HASH = ConstExprHashingUtils::HashString("Green"); + static constexpr uint32_t Yellow_HASH = ConstExprHashingUtils::HashString("Yellow"); + static constexpr uint32_t Red_HASH = ConstExprHashingUtils::HashString("Red"); + static constexpr uint32_t Grey_HASH = ConstExprHashingUtils::HashString("Grey"); EnvironmentHealth GetEnvironmentHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Green_HASH) { return EnvironmentHealth::Green; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthAttribute.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthAttribute.cpp index a29771e9698..f8edc0e6337 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthAttribute.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthAttribute.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EnvironmentHealthAttributeMapper { - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int Color_HASH = HashingUtils::HashString("Color"); - static const int Causes_HASH = HashingUtils::HashString("Causes"); - static const int ApplicationMetrics_HASH = HashingUtils::HashString("ApplicationMetrics"); - static const int InstancesHealth_HASH = HashingUtils::HashString("InstancesHealth"); - static const int All_HASH = HashingUtils::HashString("All"); - static const int HealthStatus_HASH = HashingUtils::HashString("HealthStatus"); - static const int RefreshedAt_HASH = HashingUtils::HashString("RefreshedAt"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t Color_HASH = ConstExprHashingUtils::HashString("Color"); + static constexpr uint32_t Causes_HASH = ConstExprHashingUtils::HashString("Causes"); + static constexpr uint32_t ApplicationMetrics_HASH = ConstExprHashingUtils::HashString("ApplicationMetrics"); + static constexpr uint32_t InstancesHealth_HASH = ConstExprHashingUtils::HashString("InstancesHealth"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t HealthStatus_HASH = ConstExprHashingUtils::HashString("HealthStatus"); + static constexpr uint32_t RefreshedAt_HASH = ConstExprHashingUtils::HashString("RefreshedAt"); EnvironmentHealthAttribute GetEnvironmentHealthAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Status_HASH) { return EnvironmentHealthAttribute::Status; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthStatus.cpp index d82dbe299fe..d3d95ed380a 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentHealthStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace EnvironmentHealthStatusMapper { - static const int NoData_HASH = HashingUtils::HashString("NoData"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Ok_HASH = HashingUtils::HashString("Ok"); - static const int Info_HASH = HashingUtils::HashString("Info"); - static const int Warning_HASH = HashingUtils::HashString("Warning"); - static const int Degraded_HASH = HashingUtils::HashString("Degraded"); - static const int Severe_HASH = HashingUtils::HashString("Severe"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t NoData_HASH = ConstExprHashingUtils::HashString("NoData"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Ok_HASH = ConstExprHashingUtils::HashString("Ok"); + static constexpr uint32_t Info_HASH = ConstExprHashingUtils::HashString("Info"); + static constexpr uint32_t Warning_HASH = ConstExprHashingUtils::HashString("Warning"); + static constexpr uint32_t Degraded_HASH = ConstExprHashingUtils::HashString("Degraded"); + static constexpr uint32_t Severe_HASH = ConstExprHashingUtils::HashString("Severe"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); EnvironmentHealthStatus GetEnvironmentHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NoData_HASH) { return EnvironmentHealthStatus::NoData; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentInfoType.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentInfoType.cpp index 4e48b367686..2055a4dcc50 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentInfoType.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentInfoType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnvironmentInfoTypeMapper { - static const int tail_HASH = HashingUtils::HashString("tail"); - static const int bundle_HASH = HashingUtils::HashString("bundle"); + static constexpr uint32_t tail_HASH = ConstExprHashingUtils::HashString("tail"); + static constexpr uint32_t bundle_HASH = ConstExprHashingUtils::HashString("bundle"); EnvironmentInfoType GetEnvironmentInfoTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == tail_HASH) { return EnvironmentInfoType::tail; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentStatus.cpp index b452d3568bf..2d031c7f7bd 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EnvironmentStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EnvironmentStatusMapper { - static const int Aborting_HASH = HashingUtils::HashString("Aborting"); - static const int Launching_HASH = HashingUtils::HashString("Launching"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int LinkingFrom_HASH = HashingUtils::HashString("LinkingFrom"); - static const int LinkingTo_HASH = HashingUtils::HashString("LinkingTo"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); - static const int Terminating_HASH = HashingUtils::HashString("Terminating"); - static const int Terminated_HASH = HashingUtils::HashString("Terminated"); + static constexpr uint32_t Aborting_HASH = ConstExprHashingUtils::HashString("Aborting"); + static constexpr uint32_t Launching_HASH = ConstExprHashingUtils::HashString("Launching"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t LinkingFrom_HASH = ConstExprHashingUtils::HashString("LinkingFrom"); + static constexpr uint32_t LinkingTo_HASH = ConstExprHashingUtils::HashString("LinkingTo"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); + static constexpr uint32_t Terminating_HASH = ConstExprHashingUtils::HashString("Terminating"); + static constexpr uint32_t Terminated_HASH = ConstExprHashingUtils::HashString("Terminated"); EnvironmentStatus GetEnvironmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Aborting_HASH) { return EnvironmentStatus::Aborting; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EventSeverity.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EventSeverity.cpp index 5316cd84513..f2c30ce2a02 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EventSeverity.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/EventSeverity.cpp @@ -20,17 +20,17 @@ namespace Aws namespace EventSeverityMapper { - static const int TRACE_HASH = HashingUtils::HashString("TRACE"); - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int FATAL_HASH = HashingUtils::HashString("FATAL"); + static constexpr uint32_t TRACE_HASH = ConstExprHashingUtils::HashString("TRACE"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t FATAL_HASH = ConstExprHashingUtils::HashString("FATAL"); EventSeverity GetEventSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRACE_HASH) { return EventSeverity::TRACE; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/FailureType.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/FailureType.cpp index 841aea0ab2b..1a31a317fa1 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/FailureType.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/FailureType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FailureTypeMapper { - static const int UpdateCancelled_HASH = HashingUtils::HashString("UpdateCancelled"); - static const int CancellationFailed_HASH = HashingUtils::HashString("CancellationFailed"); - static const int RollbackFailed_HASH = HashingUtils::HashString("RollbackFailed"); - static const int RollbackSuccessful_HASH = HashingUtils::HashString("RollbackSuccessful"); - static const int InternalFailure_HASH = HashingUtils::HashString("InternalFailure"); - static const int InvalidEnvironmentState_HASH = HashingUtils::HashString("InvalidEnvironmentState"); - static const int PermissionsError_HASH = HashingUtils::HashString("PermissionsError"); + static constexpr uint32_t UpdateCancelled_HASH = ConstExprHashingUtils::HashString("UpdateCancelled"); + static constexpr uint32_t CancellationFailed_HASH = ConstExprHashingUtils::HashString("CancellationFailed"); + static constexpr uint32_t RollbackFailed_HASH = ConstExprHashingUtils::HashString("RollbackFailed"); + static constexpr uint32_t RollbackSuccessful_HASH = ConstExprHashingUtils::HashString("RollbackSuccessful"); + static constexpr uint32_t InternalFailure_HASH = ConstExprHashingUtils::HashString("InternalFailure"); + static constexpr uint32_t InvalidEnvironmentState_HASH = ConstExprHashingUtils::HashString("InvalidEnvironmentState"); + static constexpr uint32_t PermissionsError_HASH = ConstExprHashingUtils::HashString("PermissionsError"); FailureType GetFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UpdateCancelled_HASH) { return FailureType::UpdateCancelled; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/InstancesHealthAttribute.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/InstancesHealthAttribute.cpp index d6054f09bc0..493842aa74b 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/InstancesHealthAttribute.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/InstancesHealthAttribute.cpp @@ -20,22 +20,22 @@ namespace Aws namespace InstancesHealthAttributeMapper { - static const int HealthStatus_HASH = HashingUtils::HashString("HealthStatus"); - static const int Color_HASH = HashingUtils::HashString("Color"); - static const int Causes_HASH = HashingUtils::HashString("Causes"); - static const int ApplicationMetrics_HASH = HashingUtils::HashString("ApplicationMetrics"); - static const int RefreshedAt_HASH = HashingUtils::HashString("RefreshedAt"); - static const int LaunchedAt_HASH = HashingUtils::HashString("LaunchedAt"); - static const int System_HASH = HashingUtils::HashString("System"); - static const int Deployment_HASH = HashingUtils::HashString("Deployment"); - static const int AvailabilityZone_HASH = HashingUtils::HashString("AvailabilityZone"); - static const int InstanceType_HASH = HashingUtils::HashString("InstanceType"); - static const int All_HASH = HashingUtils::HashString("All"); + static constexpr uint32_t HealthStatus_HASH = ConstExprHashingUtils::HashString("HealthStatus"); + static constexpr uint32_t Color_HASH = ConstExprHashingUtils::HashString("Color"); + static constexpr uint32_t Causes_HASH = ConstExprHashingUtils::HashString("Causes"); + static constexpr uint32_t ApplicationMetrics_HASH = ConstExprHashingUtils::HashString("ApplicationMetrics"); + static constexpr uint32_t RefreshedAt_HASH = ConstExprHashingUtils::HashString("RefreshedAt"); + static constexpr uint32_t LaunchedAt_HASH = ConstExprHashingUtils::HashString("LaunchedAt"); + static constexpr uint32_t System_HASH = ConstExprHashingUtils::HashString("System"); + static constexpr uint32_t Deployment_HASH = ConstExprHashingUtils::HashString("Deployment"); + static constexpr uint32_t AvailabilityZone_HASH = ConstExprHashingUtils::HashString("AvailabilityZone"); + static constexpr uint32_t InstanceType_HASH = ConstExprHashingUtils::HashString("InstanceType"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); InstancesHealthAttribute GetInstancesHealthAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HealthStatus_HASH) { return InstancesHealthAttribute::HealthStatus; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/PlatformStatus.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/PlatformStatus.cpp index 75b6d53b925..7c1a91bef1e 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/PlatformStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/PlatformStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PlatformStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); PlatformStatus GetPlatformStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return PlatformStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceRepository.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceRepository.cpp index f0a44ddb5f7..da2a357f2bd 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceRepository.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceRepository.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SourceRepositoryMapper { - static const int CodeCommit_HASH = HashingUtils::HashString("CodeCommit"); - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t CodeCommit_HASH = ConstExprHashingUtils::HashString("CodeCommit"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); SourceRepository GetSourceRepositoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CodeCommit_HASH) { return SourceRepository::CodeCommit; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceType.cpp index 711468ddd15..100d5601f6b 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/SourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SourceTypeMapper { - static const int Git_HASH = HashingUtils::HashString("Git"); - static const int Zip_HASH = HashingUtils::HashString("Zip"); + static constexpr uint32_t Git_HASH = ConstExprHashingUtils::HashString("Git"); + static constexpr uint32_t Zip_HASH = ConstExprHashingUtils::HashString("Zip"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Git_HASH) { return SourceType::Git; diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ValidationSeverity.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ValidationSeverity.cpp index 4651c2a9588..07ef397ecd0 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ValidationSeverity.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/model/ValidationSeverity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationSeverityMapper { - static const int error_HASH = HashingUtils::HashString("error"); - static const int warning_HASH = HashingUtils::HashString("warning"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t warning_HASH = ConstExprHashingUtils::HashString("warning"); ValidationSeverity GetValidationSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == error_HASH) { return ValidationSeverity::error; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSErrors.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSErrors.cpp index 914685cdeb5..202bf8c14f0 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSErrors.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSErrors.cpp @@ -229,38 +229,38 @@ template<> AWS_EFS_API BadRequest EFSError::GetModeledError() namespace EFSErrorMapper { -static const int SECURITY_GROUP_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SecurityGroupLimitExceeded"); -static const int SECURITY_GROUP_NOT_FOUND_HASH = HashingUtils::HashString("SecurityGroupNotFound"); -static const int ACCESS_POINT_ALREADY_EXISTS_HASH = HashingUtils::HashString("AccessPointAlreadyExists"); -static const int NO_FREE_ADDRESSES_IN_SUBNET_HASH = HashingUtils::HashString("NoFreeAddressesInSubnet"); -static const int DEPENDENCY_TIMEOUT_HASH = HashingUtils::HashString("DependencyTimeout"); -static const int INSUFFICIENT_THROUGHPUT_CAPACITY_HASH = HashingUtils::HashString("InsufficientThroughputCapacity"); -static const int MOUNT_TARGET_NOT_FOUND_HASH = HashingUtils::HashString("MountTargetNotFound"); -static const int FILE_SYSTEM_NOT_FOUND_HASH = HashingUtils::HashString("FileSystemNotFound"); -static const int INCORRECT_FILE_SYSTEM_LIFE_CYCLE_STATE_HASH = HashingUtils::HashString("IncorrectFileSystemLifeCycleState"); -static const int FILE_SYSTEM_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FileSystemLimitExceeded"); -static const int UNSUPPORTED_AVAILABILITY_ZONE_HASH = HashingUtils::HashString("UnsupportedAvailabilityZone"); -static const int FILE_SYSTEM_ALREADY_EXISTS_HASH = HashingUtils::HashString("FileSystemAlreadyExists"); -static const int POLICY_NOT_FOUND_HASH = HashingUtils::HashString("PolicyNotFound"); -static const int ACCESS_POINT_NOT_FOUND_HASH = HashingUtils::HashString("AccessPointNotFound"); -static const int ACCESS_POINT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AccessPointLimitExceeded"); -static const int IP_ADDRESS_IN_USE_HASH = HashingUtils::HashString("IpAddressInUse"); -static const int INCORRECT_MOUNT_TARGET_STATE_HASH = HashingUtils::HashString("IncorrectMountTargetState"); -static const int REPLICATION_NOT_FOUND_HASH = HashingUtils::HashString("ReplicationNotFound"); -static const int AVAILABILITY_ZONES_MISMATCH_HASH = HashingUtils::HashString("AvailabilityZonesMismatch"); -static const int MOUNT_TARGET_CONFLICT_HASH = HashingUtils::HashString("MountTargetConflict"); -static const int INVALID_POLICY_HASH = HashingUtils::HashString("InvalidPolicyException"); -static const int THROUGHPUT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ThroughputLimitExceeded"); -static const int FILE_SYSTEM_IN_USE_HASH = HashingUtils::HashString("FileSystemInUse"); -static const int NETWORK_INTERFACE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("NetworkInterfaceLimitExceeded"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequests"); -static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SubnetNotFound"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequest"); +static constexpr uint32_t SECURITY_GROUP_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SecurityGroupLimitExceeded"); +static constexpr uint32_t SECURITY_GROUP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SecurityGroupNotFound"); +static constexpr uint32_t ACCESS_POINT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AccessPointAlreadyExists"); +static constexpr uint32_t NO_FREE_ADDRESSES_IN_SUBNET_HASH = ConstExprHashingUtils::HashString("NoFreeAddressesInSubnet"); +static constexpr uint32_t DEPENDENCY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("DependencyTimeout"); +static constexpr uint32_t INSUFFICIENT_THROUGHPUT_CAPACITY_HASH = ConstExprHashingUtils::HashString("InsufficientThroughputCapacity"); +static constexpr uint32_t MOUNT_TARGET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("MountTargetNotFound"); +static constexpr uint32_t FILE_SYSTEM_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FileSystemNotFound"); +static constexpr uint32_t INCORRECT_FILE_SYSTEM_LIFE_CYCLE_STATE_HASH = ConstExprHashingUtils::HashString("IncorrectFileSystemLifeCycleState"); +static constexpr uint32_t FILE_SYSTEM_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FileSystemLimitExceeded"); +static constexpr uint32_t UNSUPPORTED_AVAILABILITY_ZONE_HASH = ConstExprHashingUtils::HashString("UnsupportedAvailabilityZone"); +static constexpr uint32_t FILE_SYSTEM_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FileSystemAlreadyExists"); +static constexpr uint32_t POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PolicyNotFound"); +static constexpr uint32_t ACCESS_POINT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AccessPointNotFound"); +static constexpr uint32_t ACCESS_POINT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AccessPointLimitExceeded"); +static constexpr uint32_t IP_ADDRESS_IN_USE_HASH = ConstExprHashingUtils::HashString("IpAddressInUse"); +static constexpr uint32_t INCORRECT_MOUNT_TARGET_STATE_HASH = ConstExprHashingUtils::HashString("IncorrectMountTargetState"); +static constexpr uint32_t REPLICATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ReplicationNotFound"); +static constexpr uint32_t AVAILABILITY_ZONES_MISMATCH_HASH = ConstExprHashingUtils::HashString("AvailabilityZonesMismatch"); +static constexpr uint32_t MOUNT_TARGET_CONFLICT_HASH = ConstExprHashingUtils::HashString("MountTargetConflict"); +static constexpr uint32_t INVALID_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidPolicyException"); +static constexpr uint32_t THROUGHPUT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ThroughputLimitExceeded"); +static constexpr uint32_t FILE_SYSTEM_IN_USE_HASH = ConstExprHashingUtils::HashString("FileSystemInUse"); +static constexpr uint32_t NETWORK_INTERFACE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NetworkInterfaceLimitExceeded"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequests"); +static constexpr uint32_t SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SubnetNotFound"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequest"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SECURITY_GROUP_LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/LifeCycleState.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/LifeCycleState.cpp index ce344031342..64f579c01e0 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/LifeCycleState.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/LifeCycleState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LifeCycleStateMapper { - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int updating_HASH = HashingUtils::HashString("updating"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int error_HASH = HashingUtils::HashString("error"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t updating_HASH = ConstExprHashingUtils::HashString("updating"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); LifeCycleState GetLifeCycleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == creating_HASH) { return LifeCycleState::creating; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/PerformanceMode.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/PerformanceMode.cpp index bc3f886f724..d4520b0c862 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/PerformanceMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/PerformanceMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PerformanceModeMapper { - static const int generalPurpose_HASH = HashingUtils::HashString("generalPurpose"); - static const int maxIO_HASH = HashingUtils::HashString("maxIO"); + static constexpr uint32_t generalPurpose_HASH = ConstExprHashingUtils::HashString("generalPurpose"); + static constexpr uint32_t maxIO_HASH = ConstExprHashingUtils::HashString("maxIO"); PerformanceMode GetPerformanceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == generalPurpose_HASH) { return PerformanceMode::generalPurpose; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ReplicationStatus.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ReplicationStatus.cpp index 26a17be09fe..d1e5373392c 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ReplicationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReplicationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int PAUSING_HASH = HashingUtils::HashString("PAUSING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t PAUSING_HASH = ConstExprHashingUtils::HashString("PAUSING"); ReplicationStatus GetReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ReplicationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Resource.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Resource.cpp index c5ee1698969..c3c427642c2 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Resource.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Resource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceMapper { - static const int FILE_SYSTEM_HASH = HashingUtils::HashString("FILE_SYSTEM"); - static const int MOUNT_TARGET_HASH = HashingUtils::HashString("MOUNT_TARGET"); + static constexpr uint32_t FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("FILE_SYSTEM"); + static constexpr uint32_t MOUNT_TARGET_HASH = ConstExprHashingUtils::HashString("MOUNT_TARGET"); Resource GetResourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILE_SYSTEM_HASH) { return Resource::FILE_SYSTEM; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ResourceIdType.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ResourceIdType.cpp index 3199da0a708..ade7a0d9ed1 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ResourceIdType.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ResourceIdType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceIdTypeMapper { - static const int LONG_ID_HASH = HashingUtils::HashString("LONG_ID"); - static const int SHORT_ID_HASH = HashingUtils::HashString("SHORT_ID"); + static constexpr uint32_t LONG_ID_HASH = ConstExprHashingUtils::HashString("LONG_ID"); + static constexpr uint32_t SHORT_ID_HASH = ConstExprHashingUtils::HashString("SHORT_ID"); ResourceIdType GetResourceIdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LONG_ID_HASH) { return ResourceIdType::LONG_ID; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Status.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Status.cpp index 7cd3f46f763..637dd3881c5 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/Status.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Status::ENABLED; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ThroughputMode.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ThroughputMode.cpp index e4f86388270..ccf9f2cf8c7 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ThroughputMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/ThroughputMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ThroughputModeMapper { - static const int bursting_HASH = HashingUtils::HashString("bursting"); - static const int provisioned_HASH = HashingUtils::HashString("provisioned"); - static const int elastic_HASH = HashingUtils::HashString("elastic"); + static constexpr uint32_t bursting_HASH = ConstExprHashingUtils::HashString("bursting"); + static constexpr uint32_t provisioned_HASH = ConstExprHashingUtils::HashString("provisioned"); + static constexpr uint32_t elastic_HASH = ConstExprHashingUtils::HashString("elastic"); ThroughputMode GetThroughputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == bursting_HASH) { return ThroughputMode::bursting; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToIARules.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToIARules.cpp index 267efcc47d1..6a7bf1cc57a 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToIARules.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToIARules.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TransitionToIARulesMapper { - static const int AFTER_7_DAYS_HASH = HashingUtils::HashString("AFTER_7_DAYS"); - static const int AFTER_14_DAYS_HASH = HashingUtils::HashString("AFTER_14_DAYS"); - static const int AFTER_30_DAYS_HASH = HashingUtils::HashString("AFTER_30_DAYS"); - static const int AFTER_60_DAYS_HASH = HashingUtils::HashString("AFTER_60_DAYS"); - static const int AFTER_90_DAYS_HASH = HashingUtils::HashString("AFTER_90_DAYS"); - static const int AFTER_1_DAY_HASH = HashingUtils::HashString("AFTER_1_DAY"); + static constexpr uint32_t AFTER_7_DAYS_HASH = ConstExprHashingUtils::HashString("AFTER_7_DAYS"); + static constexpr uint32_t AFTER_14_DAYS_HASH = ConstExprHashingUtils::HashString("AFTER_14_DAYS"); + static constexpr uint32_t AFTER_30_DAYS_HASH = ConstExprHashingUtils::HashString("AFTER_30_DAYS"); + static constexpr uint32_t AFTER_60_DAYS_HASH = ConstExprHashingUtils::HashString("AFTER_60_DAYS"); + static constexpr uint32_t AFTER_90_DAYS_HASH = ConstExprHashingUtils::HashString("AFTER_90_DAYS"); + static constexpr uint32_t AFTER_1_DAY_HASH = ConstExprHashingUtils::HashString("AFTER_1_DAY"); TransitionToIARules GetTransitionToIARulesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AFTER_7_DAYS_HASH) { return TransitionToIARules::AFTER_7_DAYS; diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToPrimaryStorageClassRules.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToPrimaryStorageClassRules.cpp index bd6f5646763..307eb4efb07 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToPrimaryStorageClassRules.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/model/TransitionToPrimaryStorageClassRules.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TransitionToPrimaryStorageClassRulesMapper { - static const int AFTER_1_ACCESS_HASH = HashingUtils::HashString("AFTER_1_ACCESS"); + static constexpr uint32_t AFTER_1_ACCESS_HASH = ConstExprHashingUtils::HashString("AFTER_1_ACCESS"); TransitionToPrimaryStorageClassRules GetTransitionToPrimaryStorageClassRulesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AFTER_1_ACCESS_HASH) { return TransitionToPrimaryStorageClassRules::AFTER_1_ACCESS; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingErrors.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingErrors.cpp index 30c23e7ef67..6ff9eeb7e84 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingErrors.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingErrors.cpp @@ -18,33 +18,33 @@ namespace ElasticLoadBalancing namespace ElasticLoadBalancingErrorMapper { -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermitted"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int INVALID_SCHEME_HASH = HashingUtils::HashString("InvalidScheme"); -static const int POLICY_TYPE_NOT_FOUND_HASH = HashingUtils::HashString("PolicyTypeNotFound"); -static const int DUPLICATE_ACCESS_POINT_NAME_HASH = HashingUtils::HashString("DuplicateLoadBalancerName"); -static const int INVALID_END_POINT_HASH = HashingUtils::HashString("InvalidInstance"); -static const int DUPLICATE_LISTENER_HASH = HashingUtils::HashString("DuplicateListener"); -static const int LOAD_BALANCER_ATTRIBUTE_NOT_FOUND_HASH = HashingUtils::HashString("LoadBalancerAttributeNotFound"); -static const int POLICY_NOT_FOUND_HASH = HashingUtils::HashString("PolicyNotFound"); -static const int TOO_MANY_ACCESS_POINTS_HASH = HashingUtils::HashString("TooManyLoadBalancers"); -static const int DUPLICATE_TAG_KEYS_HASH = HashingUtils::HashString("DuplicateTagKeys"); -static const int LISTENER_NOT_FOUND_HASH = HashingUtils::HashString("ListenerNotFound"); -static const int DUPLICATE_POLICY_NAME_HASH = HashingUtils::HashString("DuplicatePolicyName"); -static const int DEPENDENCY_THROTTLE_HASH = HashingUtils::HashString("DependencyThrottle"); -static const int INVALID_CONFIGURATION_REQUEST_HASH = HashingUtils::HashString("InvalidConfigurationRequest"); -static const int UNSUPPORTED_PROTOCOL_HASH = HashingUtils::HashString("UnsupportedProtocol"); -static const int ACCESS_POINT_NOT_FOUND_HASH = HashingUtils::HashString("LoadBalancerNotFound"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTags"); -static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SubnetNotFound"); -static const int INVALID_SECURITY_GROUP_HASH = HashingUtils::HashString("InvalidSecurityGroup"); -static const int TOO_MANY_POLICIES_HASH = HashingUtils::HashString("TooManyPolicies"); -static const int CERTIFICATE_NOT_FOUND_HASH = HashingUtils::HashString("CertificateNotFound"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermitted"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t INVALID_SCHEME_HASH = ConstExprHashingUtils::HashString("InvalidScheme"); +static constexpr uint32_t POLICY_TYPE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PolicyTypeNotFound"); +static constexpr uint32_t DUPLICATE_ACCESS_POINT_NAME_HASH = ConstExprHashingUtils::HashString("DuplicateLoadBalancerName"); +static constexpr uint32_t INVALID_END_POINT_HASH = ConstExprHashingUtils::HashString("InvalidInstance"); +static constexpr uint32_t DUPLICATE_LISTENER_HASH = ConstExprHashingUtils::HashString("DuplicateListener"); +static constexpr uint32_t LOAD_BALANCER_ATTRIBUTE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LoadBalancerAttributeNotFound"); +static constexpr uint32_t POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PolicyNotFound"); +static constexpr uint32_t TOO_MANY_ACCESS_POINTS_HASH = ConstExprHashingUtils::HashString("TooManyLoadBalancers"); +static constexpr uint32_t DUPLICATE_TAG_KEYS_HASH = ConstExprHashingUtils::HashString("DuplicateTagKeys"); +static constexpr uint32_t LISTENER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ListenerNotFound"); +static constexpr uint32_t DUPLICATE_POLICY_NAME_HASH = ConstExprHashingUtils::HashString("DuplicatePolicyName"); +static constexpr uint32_t DEPENDENCY_THROTTLE_HASH = ConstExprHashingUtils::HashString("DependencyThrottle"); +static constexpr uint32_t INVALID_CONFIGURATION_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidConfigurationRequest"); +static constexpr uint32_t UNSUPPORTED_PROTOCOL_HASH = ConstExprHashingUtils::HashString("UnsupportedProtocol"); +static constexpr uint32_t ACCESS_POINT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LoadBalancerNotFound"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTags"); +static constexpr uint32_t SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SubnetNotFound"); +static constexpr uint32_t INVALID_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("InvalidSecurityGroup"); +static constexpr uint32_t TOO_MANY_POLICIES_HASH = ConstExprHashingUtils::HashString("TooManyPolicies"); +static constexpr uint32_t CERTIFICATE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CertificateNotFound"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == OPERATION_NOT_PERMITTED_HASH) { diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp index bf69838eb91..460474da526 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Errors.cpp @@ -18,48 +18,48 @@ namespace ElasticLoadBalancingv2 namespace ElasticLoadBalancingv2ErrorMapper { -static const int AVAILABILITY_ZONE_NOT_SUPPORTED_HASH = HashingUtils::HashString("AvailabilityZoneNotSupported"); -static const int INVALID_SCHEME_HASH = HashingUtils::HashString("InvalidScheme"); -static const int INCOMPATIBLE_PROTOCOLS_HASH = HashingUtils::HashString("IncompatibleProtocols"); -static const int TOO_MANY_TARGETS_HASH = HashingUtils::HashString("TooManyTargets"); -static const int DUPLICATE_LISTENER_HASH = HashingUtils::HashString("DuplicateListener"); -static const int TOO_MANY_RULES_HASH = HashingUtils::HashString("TooManyRules"); -static const int LISTENER_NOT_FOUND_HASH = HashingUtils::HashString("ListenerNotFound"); -static const int A_L_P_N_POLICY_NOT_SUPPORTED_HASH = HashingUtils::HashString("ALPNPolicyNotFound"); -static const int HEALTH_UNAVAILABLE_HASH = HashingUtils::HashString("HealthUnavailable"); -static const int TOO_MANY_UNIQUE_TARGET_GROUPS_PER_LOAD_BALANCER_HASH = HashingUtils::HashString("TooManyUniqueTargetGroupsPerLoadBalancer"); -static const int TOO_MANY_ACTIONS_HASH = HashingUtils::HashString("TooManyActions"); -static const int ALLOCATION_ID_NOT_FOUND_HASH = HashingUtils::HashString("AllocationIdNotFound"); -static const int TOO_MANY_CERTIFICATES_HASH = HashingUtils::HashString("TooManyCertificates"); -static const int TARGET_GROUP_NOT_FOUND_HASH = HashingUtils::HashString("TargetGroupNotFound"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUse"); -static const int DUPLICATE_LOAD_BALANCER_NAME_HASH = HashingUtils::HashString("DuplicateLoadBalancerName"); -static const int LOAD_BALANCER_NOT_FOUND_HASH = HashingUtils::HashString("LoadBalancerNotFound"); -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermitted"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int INVALID_LOAD_BALANCER_ACTION_HASH = HashingUtils::HashString("InvalidLoadBalancerAction"); -static const int DUPLICATE_TARGET_GROUP_NAME_HASH = HashingUtils::HashString("DuplicateTargetGroupName"); -static const int S_S_L_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("SSLPolicyNotFound"); -static const int TOO_MANY_TARGET_GROUPS_HASH = HashingUtils::HashString("TooManyTargetGroups"); -static const int TOO_MANY_LISTENERS_HASH = HashingUtils::HashString("TooManyListeners"); -static const int DUPLICATE_TAG_KEYS_HASH = HashingUtils::HashString("DuplicateTagKeys"); -static const int RULE_NOT_FOUND_HASH = HashingUtils::HashString("RuleNotFound"); -static const int PRIORITY_IN_USE_HASH = HashingUtils::HashString("PriorityInUse"); -static const int TOO_MANY_REGISTRATIONS_FOR_TARGET_ID_HASH = HashingUtils::HashString("TooManyRegistrationsForTargetId"); -static const int INVALID_CONFIGURATION_REQUEST_HASH = HashingUtils::HashString("InvalidConfigurationRequest"); -static const int UNSUPPORTED_PROTOCOL_HASH = HashingUtils::HashString("UnsupportedProtocol"); -static const int INVALID_TARGET_HASH = HashingUtils::HashString("InvalidTarget"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTags"); -static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SubnetNotFound"); -static const int INVALID_SECURITY_GROUP_HASH = HashingUtils::HashString("InvalidSecurityGroup"); -static const int CERTIFICATE_NOT_FOUND_HASH = HashingUtils::HashString("CertificateNotFound"); -static const int TARGET_GROUP_ASSOCIATION_LIMIT_HASH = HashingUtils::HashString("TargetGroupAssociationLimit"); -static const int TOO_MANY_LOAD_BALANCERS_HASH = HashingUtils::HashString("TooManyLoadBalancers"); +static constexpr uint32_t AVAILABILITY_ZONE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("AvailabilityZoneNotSupported"); +static constexpr uint32_t INVALID_SCHEME_HASH = ConstExprHashingUtils::HashString("InvalidScheme"); +static constexpr uint32_t INCOMPATIBLE_PROTOCOLS_HASH = ConstExprHashingUtils::HashString("IncompatibleProtocols"); +static constexpr uint32_t TOO_MANY_TARGETS_HASH = ConstExprHashingUtils::HashString("TooManyTargets"); +static constexpr uint32_t DUPLICATE_LISTENER_HASH = ConstExprHashingUtils::HashString("DuplicateListener"); +static constexpr uint32_t TOO_MANY_RULES_HASH = ConstExprHashingUtils::HashString("TooManyRules"); +static constexpr uint32_t LISTENER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ListenerNotFound"); +static constexpr uint32_t A_L_P_N_POLICY_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ALPNPolicyNotFound"); +static constexpr uint32_t HEALTH_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("HealthUnavailable"); +static constexpr uint32_t TOO_MANY_UNIQUE_TARGET_GROUPS_PER_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("TooManyUniqueTargetGroupsPerLoadBalancer"); +static constexpr uint32_t TOO_MANY_ACTIONS_HASH = ConstExprHashingUtils::HashString("TooManyActions"); +static constexpr uint32_t ALLOCATION_ID_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AllocationIdNotFound"); +static constexpr uint32_t TOO_MANY_CERTIFICATES_HASH = ConstExprHashingUtils::HashString("TooManyCertificates"); +static constexpr uint32_t TARGET_GROUP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TargetGroupNotFound"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUse"); +static constexpr uint32_t DUPLICATE_LOAD_BALANCER_NAME_HASH = ConstExprHashingUtils::HashString("DuplicateLoadBalancerName"); +static constexpr uint32_t LOAD_BALANCER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LoadBalancerNotFound"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermitted"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t INVALID_LOAD_BALANCER_ACTION_HASH = ConstExprHashingUtils::HashString("InvalidLoadBalancerAction"); +static constexpr uint32_t DUPLICATE_TARGET_GROUP_NAME_HASH = ConstExprHashingUtils::HashString("DuplicateTargetGroupName"); +static constexpr uint32_t S_S_L_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SSLPolicyNotFound"); +static constexpr uint32_t TOO_MANY_TARGET_GROUPS_HASH = ConstExprHashingUtils::HashString("TooManyTargetGroups"); +static constexpr uint32_t TOO_MANY_LISTENERS_HASH = ConstExprHashingUtils::HashString("TooManyListeners"); +static constexpr uint32_t DUPLICATE_TAG_KEYS_HASH = ConstExprHashingUtils::HashString("DuplicateTagKeys"); +static constexpr uint32_t RULE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RuleNotFound"); +static constexpr uint32_t PRIORITY_IN_USE_HASH = ConstExprHashingUtils::HashString("PriorityInUse"); +static constexpr uint32_t TOO_MANY_REGISTRATIONS_FOR_TARGET_ID_HASH = ConstExprHashingUtils::HashString("TooManyRegistrationsForTargetId"); +static constexpr uint32_t INVALID_CONFIGURATION_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidConfigurationRequest"); +static constexpr uint32_t UNSUPPORTED_PROTOCOL_HASH = ConstExprHashingUtils::HashString("UnsupportedProtocol"); +static constexpr uint32_t INVALID_TARGET_HASH = ConstExprHashingUtils::HashString("InvalidTarget"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTags"); +static constexpr uint32_t SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SubnetNotFound"); +static constexpr uint32_t INVALID_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("InvalidSecurityGroup"); +static constexpr uint32_t CERTIFICATE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CertificateNotFound"); +static constexpr uint32_t TARGET_GROUP_ASSOCIATION_LIMIT_HASH = ConstExprHashingUtils::HashString("TargetGroupAssociationLimit"); +static constexpr uint32_t TOO_MANY_LOAD_BALANCERS_HASH = ConstExprHashingUtils::HashString("TooManyLoadBalancers"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == AVAILABILITY_ZONE_NOT_SUPPORTED_HASH) { diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ActionTypeEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ActionTypeEnum.cpp index 68287dd874f..ea21c780eb0 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ActionTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ActionTypeEnum.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ActionTypeEnumMapper { - static const int forward_HASH = HashingUtils::HashString("forward"); - static const int authenticate_oidc_HASH = HashingUtils::HashString("authenticate-oidc"); - static const int authenticate_cognito_HASH = HashingUtils::HashString("authenticate-cognito"); - static const int redirect_HASH = HashingUtils::HashString("redirect"); - static const int fixed_response_HASH = HashingUtils::HashString("fixed-response"); + static constexpr uint32_t forward_HASH = ConstExprHashingUtils::HashString("forward"); + static constexpr uint32_t authenticate_oidc_HASH = ConstExprHashingUtils::HashString("authenticate-oidc"); + static constexpr uint32_t authenticate_cognito_HASH = ConstExprHashingUtils::HashString("authenticate-cognito"); + static constexpr uint32_t redirect_HASH = ConstExprHashingUtils::HashString("redirect"); + static constexpr uint32_t fixed_response_HASH = ConstExprHashingUtils::HashString("fixed-response"); ActionTypeEnum GetActionTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == forward_HASH) { return ActionTypeEnum::forward; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateCognitoActionConditionalBehaviorEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateCognitoActionConditionalBehaviorEnum.cpp index af39edff1d7..60a84674feb 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateCognitoActionConditionalBehaviorEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateCognitoActionConditionalBehaviorEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthenticateCognitoActionConditionalBehaviorEnumMapper { - static const int deny_HASH = HashingUtils::HashString("deny"); - static const int allow_HASH = HashingUtils::HashString("allow"); - static const int authenticate_HASH = HashingUtils::HashString("authenticate"); + static constexpr uint32_t deny_HASH = ConstExprHashingUtils::HashString("deny"); + static constexpr uint32_t allow_HASH = ConstExprHashingUtils::HashString("allow"); + static constexpr uint32_t authenticate_HASH = ConstExprHashingUtils::HashString("authenticate"); AuthenticateCognitoActionConditionalBehaviorEnum GetAuthenticateCognitoActionConditionalBehaviorEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == deny_HASH) { return AuthenticateCognitoActionConditionalBehaviorEnum::deny; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateOidcActionConditionalBehaviorEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateOidcActionConditionalBehaviorEnum.cpp index 43d9da5a2bb..3915f020719 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateOidcActionConditionalBehaviorEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/AuthenticateOidcActionConditionalBehaviorEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthenticateOidcActionConditionalBehaviorEnumMapper { - static const int deny_HASH = HashingUtils::HashString("deny"); - static const int allow_HASH = HashingUtils::HashString("allow"); - static const int authenticate_HASH = HashingUtils::HashString("authenticate"); + static constexpr uint32_t deny_HASH = ConstExprHashingUtils::HashString("deny"); + static constexpr uint32_t allow_HASH = ConstExprHashingUtils::HashString("allow"); + static constexpr uint32_t authenticate_HASH = ConstExprHashingUtils::HashString("authenticate"); AuthenticateOidcActionConditionalBehaviorEnum GetAuthenticateOidcActionConditionalBehaviorEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == deny_HASH) { return AuthenticateOidcActionConditionalBehaviorEnum::deny; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.cpp index 937a9cf6e84..9ebdc70ece1 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnumMapper { - static const int on_HASH = HashingUtils::HashString("on"); - static const int off_HASH = HashingUtils::HashString("off"); + static constexpr uint32_t on_HASH = ConstExprHashingUtils::HashString("on"); + static constexpr uint32_t off_HASH = ConstExprHashingUtils::HashString("off"); EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum GetEnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == on_HASH) { return EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum::on; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/IpAddressType.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/IpAddressType.cpp index b3b96a071ef..3836261e9b2 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/IpAddressType.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/IpAddressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpAddressTypeMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int dualstack_HASH = HashingUtils::HashString("dualstack"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t dualstack_HASH = ConstExprHashingUtils::HashString("dualstack"); IpAddressType GetIpAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return IpAddressType::ipv4; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerSchemeEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerSchemeEnum.cpp index 0320d2f1936..7a20f62a070 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerSchemeEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerSchemeEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LoadBalancerSchemeEnumMapper { - static const int internet_facing_HASH = HashingUtils::HashString("internet-facing"); - static const int internal_HASH = HashingUtils::HashString("internal"); + static constexpr uint32_t internet_facing_HASH = ConstExprHashingUtils::HashString("internet-facing"); + static constexpr uint32_t internal_HASH = ConstExprHashingUtils::HashString("internal"); LoadBalancerSchemeEnum GetLoadBalancerSchemeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == internet_facing_HASH) { return LoadBalancerSchemeEnum::internet_facing; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerStateEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerStateEnum.cpp index 6cf8316b039..1e6c5a55edd 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerStateEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerStateEnum.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LoadBalancerStateEnumMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int provisioning_HASH = HashingUtils::HashString("provisioning"); - static const int active_impaired_HASH = HashingUtils::HashString("active_impaired"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t provisioning_HASH = ConstExprHashingUtils::HashString("provisioning"); + static constexpr uint32_t active_impaired_HASH = ConstExprHashingUtils::HashString("active_impaired"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); LoadBalancerStateEnum GetLoadBalancerStateEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return LoadBalancerStateEnum::active; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerTypeEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerTypeEnum.cpp index 3a3e44569f3..12e109486f8 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/LoadBalancerTypeEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LoadBalancerTypeEnumMapper { - static const int application_HASH = HashingUtils::HashString("application"); - static const int network_HASH = HashingUtils::HashString("network"); - static const int gateway_HASH = HashingUtils::HashString("gateway"); + static constexpr uint32_t application_HASH = ConstExprHashingUtils::HashString("application"); + static constexpr uint32_t network_HASH = ConstExprHashingUtils::HashString("network"); + static constexpr uint32_t gateway_HASH = ConstExprHashingUtils::HashString("gateway"); LoadBalancerTypeEnum GetLoadBalancerTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == application_HASH) { return LoadBalancerTypeEnum::application; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ProtocolEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ProtocolEnum.cpp index fcbde380696..694fe97287a 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ProtocolEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/ProtocolEnum.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ProtocolEnumMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int TLS_HASH = HashingUtils::HashString("TLS"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); - static const int TCP_UDP_HASH = HashingUtils::HashString("TCP_UDP"); - static const int GENEVE_HASH = HashingUtils::HashString("GENEVE"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t TLS_HASH = ConstExprHashingUtils::HashString("TLS"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_UDP_HASH = ConstExprHashingUtils::HashString("TCP_UDP"); + static constexpr uint32_t GENEVE_HASH = ConstExprHashingUtils::HashString("GENEVE"); ProtocolEnum GetProtocolEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return ProtocolEnum::HTTP; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/RedirectActionStatusCodeEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/RedirectActionStatusCodeEnum.cpp index e65a411a276..912d0658f85 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/RedirectActionStatusCodeEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/RedirectActionStatusCodeEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RedirectActionStatusCodeEnumMapper { - static const int HTTP_301_HASH = HashingUtils::HashString("HTTP_301"); - static const int HTTP_302_HASH = HashingUtils::HashString("HTTP_302"); + static constexpr uint32_t HTTP_301_HASH = ConstExprHashingUtils::HashString("HTTP_301"); + static constexpr uint32_t HTTP_302_HASH = ConstExprHashingUtils::HashString("HTTP_302"); RedirectActionStatusCodeEnum GetRedirectActionStatusCodeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_301_HASH) { return RedirectActionStatusCodeEnum::HTTP_301; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetGroupIpAddressTypeEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetGroupIpAddressTypeEnum.cpp index bc5d9795ddc..c8946da7b19 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetGroupIpAddressTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetGroupIpAddressTypeEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetGroupIpAddressTypeEnumMapper { - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); - static const int ipv6_HASH = HashingUtils::HashString("ipv6"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); + static constexpr uint32_t ipv6_HASH = ConstExprHashingUtils::HashString("ipv6"); TargetGroupIpAddressTypeEnum GetTargetGroupIpAddressTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ipv4_HASH) { return TargetGroupIpAddressTypeEnum::ipv4; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthReasonEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthReasonEnum.cpp index 80e8be47760..3a7c72b81c4 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthReasonEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthReasonEnum.cpp @@ -20,23 +20,23 @@ namespace Aws namespace TargetHealthReasonEnumMapper { - static const int Elb_RegistrationInProgress_HASH = HashingUtils::HashString("Elb.RegistrationInProgress"); - static const int Elb_InitialHealthChecking_HASH = HashingUtils::HashString("Elb.InitialHealthChecking"); - static const int Target_ResponseCodeMismatch_HASH = HashingUtils::HashString("Target.ResponseCodeMismatch"); - static const int Target_Timeout_HASH = HashingUtils::HashString("Target.Timeout"); - static const int Target_FailedHealthChecks_HASH = HashingUtils::HashString("Target.FailedHealthChecks"); - static const int Target_NotRegistered_HASH = HashingUtils::HashString("Target.NotRegistered"); - static const int Target_NotInUse_HASH = HashingUtils::HashString("Target.NotInUse"); - static const int Target_DeregistrationInProgress_HASH = HashingUtils::HashString("Target.DeregistrationInProgress"); - static const int Target_InvalidState_HASH = HashingUtils::HashString("Target.InvalidState"); - static const int Target_IpUnusable_HASH = HashingUtils::HashString("Target.IpUnusable"); - static const int Target_HealthCheckDisabled_HASH = HashingUtils::HashString("Target.HealthCheckDisabled"); - static const int Elb_InternalError_HASH = HashingUtils::HashString("Elb.InternalError"); + static constexpr uint32_t Elb_RegistrationInProgress_HASH = ConstExprHashingUtils::HashString("Elb.RegistrationInProgress"); + static constexpr uint32_t Elb_InitialHealthChecking_HASH = ConstExprHashingUtils::HashString("Elb.InitialHealthChecking"); + static constexpr uint32_t Target_ResponseCodeMismatch_HASH = ConstExprHashingUtils::HashString("Target.ResponseCodeMismatch"); + static constexpr uint32_t Target_Timeout_HASH = ConstExprHashingUtils::HashString("Target.Timeout"); + static constexpr uint32_t Target_FailedHealthChecks_HASH = ConstExprHashingUtils::HashString("Target.FailedHealthChecks"); + static constexpr uint32_t Target_NotRegistered_HASH = ConstExprHashingUtils::HashString("Target.NotRegistered"); + static constexpr uint32_t Target_NotInUse_HASH = ConstExprHashingUtils::HashString("Target.NotInUse"); + static constexpr uint32_t Target_DeregistrationInProgress_HASH = ConstExprHashingUtils::HashString("Target.DeregistrationInProgress"); + static constexpr uint32_t Target_InvalidState_HASH = ConstExprHashingUtils::HashString("Target.InvalidState"); + static constexpr uint32_t Target_IpUnusable_HASH = ConstExprHashingUtils::HashString("Target.IpUnusable"); + static constexpr uint32_t Target_HealthCheckDisabled_HASH = ConstExprHashingUtils::HashString("Target.HealthCheckDisabled"); + static constexpr uint32_t Elb_InternalError_HASH = ConstExprHashingUtils::HashString("Elb.InternalError"); TargetHealthReasonEnum GetTargetHealthReasonEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Elb_RegistrationInProgress_HASH) { return TargetHealthReasonEnum::Elb_RegistrationInProgress; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp index 7083a227f91..0982935accc 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetHealthStateEnum.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TargetHealthStateEnumMapper { - static const int initial_HASH = HashingUtils::HashString("initial"); - static const int healthy_HASH = HashingUtils::HashString("healthy"); - static const int unhealthy_HASH = HashingUtils::HashString("unhealthy"); - static const int unused_HASH = HashingUtils::HashString("unused"); - static const int draining_HASH = HashingUtils::HashString("draining"); - static const int unavailable_HASH = HashingUtils::HashString("unavailable"); + static constexpr uint32_t initial_HASH = ConstExprHashingUtils::HashString("initial"); + static constexpr uint32_t healthy_HASH = ConstExprHashingUtils::HashString("healthy"); + static constexpr uint32_t unhealthy_HASH = ConstExprHashingUtils::HashString("unhealthy"); + static constexpr uint32_t unused_HASH = ConstExprHashingUtils::HashString("unused"); + static constexpr uint32_t draining_HASH = ConstExprHashingUtils::HashString("draining"); + static constexpr uint32_t unavailable_HASH = ConstExprHashingUtils::HashString("unavailable"); TargetHealthStateEnum GetTargetHealthStateEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == initial_HASH) { return TargetHealthStateEnum::initial; diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetTypeEnum.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetTypeEnum.cpp index 4834d5c0138..b1dfaddfc72 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/model/TargetTypeEnum.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TargetTypeEnumMapper { - static const int instance_HASH = HashingUtils::HashString("instance"); - static const int ip_HASH = HashingUtils::HashString("ip"); - static const int lambda_HASH = HashingUtils::HashString("lambda"); - static const int alb_HASH = HashingUtils::HashString("alb"); + static constexpr uint32_t instance_HASH = ConstExprHashingUtils::HashString("instance"); + static constexpr uint32_t ip_HASH = ConstExprHashingUtils::HashString("ip"); + static constexpr uint32_t lambda_HASH = ConstExprHashingUtils::HashString("lambda"); + static constexpr uint32_t alb_HASH = ConstExprHashingUtils::HashString("alb"); TargetTypeEnum GetTargetTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == instance_HASH) { return TargetTypeEnum::instance; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRErrors.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRErrors.cpp index 86cb18e6eb3..eea2b836444 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRErrors.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRErrors.cpp @@ -26,13 +26,13 @@ template<> AWS_EMR_API InvalidRequestException EMRError::GetModeledError() namespace EMRErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ActionOnFailure.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ActionOnFailure.cpp index f39efb86fcd..b098c4c88ba 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ActionOnFailure.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ActionOnFailure.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActionOnFailureMapper { - static const int TERMINATE_JOB_FLOW_HASH = HashingUtils::HashString("TERMINATE_JOB_FLOW"); - static const int TERMINATE_CLUSTER_HASH = HashingUtils::HashString("TERMINATE_CLUSTER"); - static const int CANCEL_AND_WAIT_HASH = HashingUtils::HashString("CANCEL_AND_WAIT"); - static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); + static constexpr uint32_t TERMINATE_JOB_FLOW_HASH = ConstExprHashingUtils::HashString("TERMINATE_JOB_FLOW"); + static constexpr uint32_t TERMINATE_CLUSTER_HASH = ConstExprHashingUtils::HashString("TERMINATE_CLUSTER"); + static constexpr uint32_t CANCEL_AND_WAIT_HASH = ConstExprHashingUtils::HashString("CANCEL_AND_WAIT"); + static constexpr uint32_t CONTINUE_HASH = ConstExprHashingUtils::HashString("CONTINUE"); ActionOnFailure GetActionOnFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERMINATE_JOB_FLOW_HASH) { return ActionOnFailure::TERMINATE_JOB_FLOW; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AdjustmentType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AdjustmentType.cpp index 2d772cee98d..84e59bdfd3a 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AdjustmentType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AdjustmentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AdjustmentTypeMapper { - static const int CHANGE_IN_CAPACITY_HASH = HashingUtils::HashString("CHANGE_IN_CAPACITY"); - static const int PERCENT_CHANGE_IN_CAPACITY_HASH = HashingUtils::HashString("PERCENT_CHANGE_IN_CAPACITY"); - static const int EXACT_CAPACITY_HASH = HashingUtils::HashString("EXACT_CAPACITY"); + static constexpr uint32_t CHANGE_IN_CAPACITY_HASH = ConstExprHashingUtils::HashString("CHANGE_IN_CAPACITY"); + static constexpr uint32_t PERCENT_CHANGE_IN_CAPACITY_HASH = ConstExprHashingUtils::HashString("PERCENT_CHANGE_IN_CAPACITY"); + static constexpr uint32_t EXACT_CAPACITY_HASH = ConstExprHashingUtils::HashString("EXACT_CAPACITY"); AdjustmentType GetAdjustmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHANGE_IN_CAPACITY_HASH) { return AdjustmentType::CHANGE_IN_CAPACITY; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AuthMode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AuthMode.cpp index 98e369d3590..f5908954718 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AuthMode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AuthMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthModeMapper { - static const int SSO_HASH = HashingUtils::HashString("SSO"); - static const int IAM_HASH = HashingUtils::HashString("IAM"); + static constexpr uint32_t SSO_HASH = ConstExprHashingUtils::HashString("SSO"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); AuthMode GetAuthModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSO_HASH) { return AuthMode::SSO; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyState.cpp index 426feb88c15..b9fab163d0c 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AutoScalingPolicyStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ATTACHING_HASH = HashingUtils::HashString("ATTACHING"); - static const int ATTACHED_HASH = HashingUtils::HashString("ATTACHED"); - static const int DETACHING_HASH = HashingUtils::HashString("DETACHING"); - static const int DETACHED_HASH = HashingUtils::HashString("DETACHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ATTACHING_HASH = ConstExprHashingUtils::HashString("ATTACHING"); + static constexpr uint32_t ATTACHED_HASH = ConstExprHashingUtils::HashString("ATTACHED"); + static constexpr uint32_t DETACHING_HASH = ConstExprHashingUtils::HashString("DETACHING"); + static constexpr uint32_t DETACHED_HASH = ConstExprHashingUtils::HashString("DETACHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AutoScalingPolicyState GetAutoScalingPolicyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return AutoScalingPolicyState::PENDING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyStateChangeReasonCode.cpp index 8166f419d58..e1eec3aa270 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/AutoScalingPolicyStateChangeReasonCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutoScalingPolicyStateChangeReasonCodeMapper { - static const int USER_REQUEST_HASH = HashingUtils::HashString("USER_REQUEST"); - static const int PROVISION_FAILURE_HASH = HashingUtils::HashString("PROVISION_FAILURE"); - static const int CLEANUP_FAILURE_HASH = HashingUtils::HashString("CLEANUP_FAILURE"); + static constexpr uint32_t USER_REQUEST_HASH = ConstExprHashingUtils::HashString("USER_REQUEST"); + static constexpr uint32_t PROVISION_FAILURE_HASH = ConstExprHashingUtils::HashString("PROVISION_FAILURE"); + static constexpr uint32_t CLEANUP_FAILURE_HASH = ConstExprHashingUtils::HashString("CLEANUP_FAILURE"); AutoScalingPolicyStateChangeReasonCode GetAutoScalingPolicyStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_REQUEST_HASH) { return AutoScalingPolicyStateChangeReasonCode::USER_REQUEST; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/CancelStepsRequestStatus.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/CancelStepsRequestStatus.cpp index 1df78e067ab..1361576b094 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/CancelStepsRequestStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/CancelStepsRequestStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CancelStepsRequestStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CancelStepsRequestStatus GetCancelStepsRequestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return CancelStepsRequestStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterState.cpp index 339323bf842..f2c82194b1b 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ClusterStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int BOOTSTRAPPING_HASH = HashingUtils::HashString("BOOTSTRAPPING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int WAITING_HASH = HashingUtils::HashString("WAITING"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int TERMINATED_WITH_ERRORS_HASH = HashingUtils::HashString("TERMINATED_WITH_ERRORS"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t BOOTSTRAPPING_HASH = ConstExprHashingUtils::HashString("BOOTSTRAPPING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t WAITING_HASH = ConstExprHashingUtils::HashString("WAITING"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t TERMINATED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("TERMINATED_WITH_ERRORS"); ClusterState GetClusterStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return ClusterState::STARTING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterStateChangeReasonCode.cpp index 970d381ad7b..7a7310d152b 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ClusterStateChangeReasonCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ClusterStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int INSTANCE_FAILURE_HASH = HashingUtils::HashString("INSTANCE_FAILURE"); - static const int INSTANCE_FLEET_TIMEOUT_HASH = HashingUtils::HashString("INSTANCE_FLEET_TIMEOUT"); - static const int BOOTSTRAP_FAILURE_HASH = HashingUtils::HashString("BOOTSTRAP_FAILURE"); - static const int USER_REQUEST_HASH = HashingUtils::HashString("USER_REQUEST"); - static const int STEP_FAILURE_HASH = HashingUtils::HashString("STEP_FAILURE"); - static const int ALL_STEPS_COMPLETED_HASH = HashingUtils::HashString("ALL_STEPS_COMPLETED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t INSTANCE_FAILURE_HASH = ConstExprHashingUtils::HashString("INSTANCE_FAILURE"); + static constexpr uint32_t INSTANCE_FLEET_TIMEOUT_HASH = ConstExprHashingUtils::HashString("INSTANCE_FLEET_TIMEOUT"); + static constexpr uint32_t BOOTSTRAP_FAILURE_HASH = ConstExprHashingUtils::HashString("BOOTSTRAP_FAILURE"); + static constexpr uint32_t USER_REQUEST_HASH = ConstExprHashingUtils::HashString("USER_REQUEST"); + static constexpr uint32_t STEP_FAILURE_HASH = ConstExprHashingUtils::HashString("STEP_FAILURE"); + static constexpr uint32_t ALL_STEPS_COMPLETED_HASH = ConstExprHashingUtils::HashString("ALL_STEPS_COMPLETED"); ClusterStateChangeReasonCode GetClusterStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return ClusterStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComparisonOperator.cpp index 89b6764823a..63dac0178e0 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComparisonOperator.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GREATER_THAN_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int LESS_THAN_OR_EQUAL_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t LESS_THAN_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("LESS_THAN_OR_EQUAL"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_THAN_OR_EQUAL_HASH) { return ComparisonOperator::GREATER_THAN_OR_EQUAL; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComputeLimitsUnitType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComputeLimitsUnitType.cpp index 0fa31555d8a..4fc691be1c6 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComputeLimitsUnitType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ComputeLimitsUnitType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComputeLimitsUnitTypeMapper { - static const int InstanceFleetUnits_HASH = HashingUtils::HashString("InstanceFleetUnits"); - static const int Instances_HASH = HashingUtils::HashString("Instances"); - static const int VCPU_HASH = HashingUtils::HashString("VCPU"); + static constexpr uint32_t InstanceFleetUnits_HASH = ConstExprHashingUtils::HashString("InstanceFleetUnits"); + static constexpr uint32_t Instances_HASH = ConstExprHashingUtils::HashString("Instances"); + static constexpr uint32_t VCPU_HASH = ConstExprHashingUtils::HashString("VCPU"); ComputeLimitsUnitType GetComputeLimitsUnitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InstanceFleetUnits_HASH) { return ComputeLimitsUnitType::InstanceFleetUnits; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ExecutionEngineType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ExecutionEngineType.cpp index f49b17ab485..5d119d92309 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ExecutionEngineType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ExecutionEngineType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExecutionEngineTypeMapper { - static const int EMR_HASH = HashingUtils::HashString("EMR"); + static constexpr uint32_t EMR_HASH = ConstExprHashingUtils::HashString("EMR"); ExecutionEngineType GetExecutionEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMR_HASH) { return ExecutionEngineType::EMR; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/IdentityType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/IdentityType.cpp index 5ac53373b73..9215c052c62 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/IdentityType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/IdentityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IdentityTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); IdentityType GetIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return IdentityType::USER; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceCollectionType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceCollectionType.cpp index 6ddca25f190..3baa37f9384 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceCollectionType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceCollectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceCollectionTypeMapper { - static const int INSTANCE_FLEET_HASH = HashingUtils::HashString("INSTANCE_FLEET"); - static const int INSTANCE_GROUP_HASH = HashingUtils::HashString("INSTANCE_GROUP"); + static constexpr uint32_t INSTANCE_FLEET_HASH = ConstExprHashingUtils::HashString("INSTANCE_FLEET"); + static constexpr uint32_t INSTANCE_GROUP_HASH = ConstExprHashingUtils::HashString("INSTANCE_GROUP"); InstanceCollectionType GetInstanceCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANCE_FLEET_HASH) { return InstanceCollectionType::INSTANCE_FLEET; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetState.cpp index 3b1c6a6938e..0020d482e3d 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace InstanceFleetStateMapper { - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int BOOTSTRAPPING_HASH = HashingUtils::HashString("BOOTSTRAPPING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int RESIZING_HASH = HashingUtils::HashString("RESIZING"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t BOOTSTRAPPING_HASH = ConstExprHashingUtils::HashString("BOOTSTRAPPING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t RESIZING_HASH = ConstExprHashingUtils::HashString("RESIZING"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); InstanceFleetState GetInstanceFleetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONING_HASH) { return InstanceFleetState::PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetStateChangeReasonCode.cpp index 880c3a19864..e7ea4d8103c 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetStateChangeReasonCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstanceFleetStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int INSTANCE_FAILURE_HASH = HashingUtils::HashString("INSTANCE_FAILURE"); - static const int CLUSTER_TERMINATED_HASH = HashingUtils::HashString("CLUSTER_TERMINATED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t INSTANCE_FAILURE_HASH = ConstExprHashingUtils::HashString("INSTANCE_FAILURE"); + static constexpr uint32_t CLUSTER_TERMINATED_HASH = ConstExprHashingUtils::HashString("CLUSTER_TERMINATED"); InstanceFleetStateChangeReasonCode GetInstanceFleetStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return InstanceFleetStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetType.cpp index bdcbe8bf6fc..7694f29c55c 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceFleetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceFleetTypeMapper { - static const int MASTER_HASH = HashingUtils::HashString("MASTER"); - static const int CORE_HASH = HashingUtils::HashString("CORE"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); + static constexpr uint32_t MASTER_HASH = ConstExprHashingUtils::HashString("MASTER"); + static constexpr uint32_t CORE_HASH = ConstExprHashingUtils::HashString("CORE"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); InstanceFleetType GetInstanceFleetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MASTER_HASH) { return InstanceFleetType::MASTER; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupState.cpp index 443933c8970..5f64a5d791b 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace InstanceGroupStateMapper { - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int BOOTSTRAPPING_HASH = HashingUtils::HashString("BOOTSTRAPPING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int RECONFIGURING_HASH = HashingUtils::HashString("RECONFIGURING"); - static const int RESIZING_HASH = HashingUtils::HashString("RESIZING"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int ARRESTED_HASH = HashingUtils::HashString("ARRESTED"); - static const int SHUTTING_DOWN_HASH = HashingUtils::HashString("SHUTTING_DOWN"); - static const int ENDED_HASH = HashingUtils::HashString("ENDED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t BOOTSTRAPPING_HASH = ConstExprHashingUtils::HashString("BOOTSTRAPPING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t RECONFIGURING_HASH = ConstExprHashingUtils::HashString("RECONFIGURING"); + static constexpr uint32_t RESIZING_HASH = ConstExprHashingUtils::HashString("RESIZING"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t ARRESTED_HASH = ConstExprHashingUtils::HashString("ARRESTED"); + static constexpr uint32_t SHUTTING_DOWN_HASH = ConstExprHashingUtils::HashString("SHUTTING_DOWN"); + static constexpr uint32_t ENDED_HASH = ConstExprHashingUtils::HashString("ENDED"); InstanceGroupState GetInstanceGroupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONING_HASH) { return InstanceGroupState::PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupStateChangeReasonCode.cpp index c3c97e3ea89..e48a72e5125 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupStateChangeReasonCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstanceGroupStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int INSTANCE_FAILURE_HASH = HashingUtils::HashString("INSTANCE_FAILURE"); - static const int CLUSTER_TERMINATED_HASH = HashingUtils::HashString("CLUSTER_TERMINATED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t INSTANCE_FAILURE_HASH = ConstExprHashingUtils::HashString("INSTANCE_FAILURE"); + static constexpr uint32_t CLUSTER_TERMINATED_HASH = ConstExprHashingUtils::HashString("CLUSTER_TERMINATED"); InstanceGroupStateChangeReasonCode GetInstanceGroupStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return InstanceGroupStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupType.cpp index d33c07a29a0..d44567dcf54 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceGroupType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceGroupTypeMapper { - static const int MASTER_HASH = HashingUtils::HashString("MASTER"); - static const int CORE_HASH = HashingUtils::HashString("CORE"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); + static constexpr uint32_t MASTER_HASH = ConstExprHashingUtils::HashString("MASTER"); + static constexpr uint32_t CORE_HASH = ConstExprHashingUtils::HashString("CORE"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); InstanceGroupType GetInstanceGroupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MASTER_HASH) { return InstanceGroupType::MASTER; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceRoleType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceRoleType.cpp index 43d348b46d8..3a4dda7f870 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceRoleType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceRoleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceRoleTypeMapper { - static const int MASTER_HASH = HashingUtils::HashString("MASTER"); - static const int CORE_HASH = HashingUtils::HashString("CORE"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); + static constexpr uint32_t MASTER_HASH = ConstExprHashingUtils::HashString("MASTER"); + static constexpr uint32_t CORE_HASH = ConstExprHashingUtils::HashString("CORE"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); InstanceRoleType GetInstanceRoleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MASTER_HASH) { return InstanceRoleType::MASTER; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceState.cpp index 28a434e337f..41b4221f570 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InstanceStateMapper { - static const int AWAITING_FULFILLMENT_HASH = HashingUtils::HashString("AWAITING_FULFILLMENT"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int BOOTSTRAPPING_HASH = HashingUtils::HashString("BOOTSTRAPPING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t AWAITING_FULFILLMENT_HASH = ConstExprHashingUtils::HashString("AWAITING_FULFILLMENT"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t BOOTSTRAPPING_HASH = ConstExprHashingUtils::HashString("BOOTSTRAPPING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); InstanceState GetInstanceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWAITING_FULFILLMENT_HASH) { return InstanceState::AWAITING_FULFILLMENT; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceStateChangeReasonCode.cpp index c08f2ef47ee..19918aabdc8 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/InstanceStateChangeReasonCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InstanceStateChangeReasonCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int INSTANCE_FAILURE_HASH = HashingUtils::HashString("INSTANCE_FAILURE"); - static const int BOOTSTRAP_FAILURE_HASH = HashingUtils::HashString("BOOTSTRAP_FAILURE"); - static const int CLUSTER_TERMINATED_HASH = HashingUtils::HashString("CLUSTER_TERMINATED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t INSTANCE_FAILURE_HASH = ConstExprHashingUtils::HashString("INSTANCE_FAILURE"); + static constexpr uint32_t BOOTSTRAP_FAILURE_HASH = ConstExprHashingUtils::HashString("BOOTSTRAP_FAILURE"); + static constexpr uint32_t CLUSTER_TERMINATED_HASH = ConstExprHashingUtils::HashString("CLUSTER_TERMINATED"); InstanceStateChangeReasonCode GetInstanceStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return InstanceStateChangeReasonCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/JobFlowExecutionState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/JobFlowExecutionState.cpp index cf87a1981a6..ffe4f9c9ad9 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/JobFlowExecutionState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/JobFlowExecutionState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace JobFlowExecutionStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int BOOTSTRAPPING_HASH = HashingUtils::HashString("BOOTSTRAPPING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int WAITING_HASH = HashingUtils::HashString("WAITING"); - static const int SHUTTING_DOWN_HASH = HashingUtils::HashString("SHUTTING_DOWN"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t BOOTSTRAPPING_HASH = ConstExprHashingUtils::HashString("BOOTSTRAPPING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t WAITING_HASH = ConstExprHashingUtils::HashString("WAITING"); + static constexpr uint32_t SHUTTING_DOWN_HASH = ConstExprHashingUtils::HashString("SHUTTING_DOWN"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); JobFlowExecutionState GetJobFlowExecutionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return JobFlowExecutionState::STARTING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/MarketType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/MarketType.cpp index 3089d24ae9b..641561cf46d 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/MarketType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/MarketType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MarketTypeMapper { - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int SPOT_HASH = HashingUtils::HashString("SPOT"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t SPOT_HASH = ConstExprHashingUtils::HashString("SPOT"); MarketType GetMarketTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_HASH) { return MarketType::ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/NotebookExecutionStatus.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/NotebookExecutionStatus.cpp index 777bac9ec34..012a962b3be 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/NotebookExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/NotebookExecutionStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace NotebookExecutionStatusMapper { - static const int START_PENDING_HASH = HashingUtils::HashString("START_PENDING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FINISHING_HASH = HashingUtils::HashString("FINISHING"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILING_HASH = HashingUtils::HashString("FAILING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOP_PENDING_HASH = HashingUtils::HashString("STOP_PENDING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t START_PENDING_HASH = ConstExprHashingUtils::HashString("START_PENDING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FINISHING_HASH = ConstExprHashingUtils::HashString("FINISHING"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILING_HASH = ConstExprHashingUtils::HashString("FAILING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOP_PENDING_HASH = ConstExprHashingUtils::HashString("STOP_PENDING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); NotebookExecutionStatus GetNotebookExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_PENDING_HASH) { return NotebookExecutionStatus::START_PENDING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationPreference.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationPreference.cpp index 3fc78ee1ec8..dded7f696bb 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationPreference.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationPreference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OnDemandCapacityReservationPreferenceMapper { - static const int open_HASH = HashingUtils::HashString("open"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); OnDemandCapacityReservationPreference GetOnDemandCapacityReservationPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return OnDemandCapacityReservationPreference::open; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationUsageStrategy.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationUsageStrategy.cpp index 002072fa513..4ec22b5b39b 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationUsageStrategy.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandCapacityReservationUsageStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OnDemandCapacityReservationUsageStrategyMapper { - static const int use_capacity_reservations_first_HASH = HashingUtils::HashString("use-capacity-reservations-first"); + static constexpr uint32_t use_capacity_reservations_first_HASH = ConstExprHashingUtils::HashString("use-capacity-reservations-first"); OnDemandCapacityReservationUsageStrategy GetOnDemandCapacityReservationUsageStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == use_capacity_reservations_first_HASH) { return OnDemandCapacityReservationUsageStrategy::use_capacity_reservations_first; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandProvisioningAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandProvisioningAllocationStrategy.cpp index c1e71347407..a3d782307ca 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandProvisioningAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OnDemandProvisioningAllocationStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OnDemandProvisioningAllocationStrategyMapper { - static const int lowest_price_HASH = HashingUtils::HashString("lowest-price"); + static constexpr uint32_t lowest_price_HASH = ConstExprHashingUtils::HashString("lowest-price"); OnDemandProvisioningAllocationStrategy GetOnDemandProvisioningAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == lowest_price_HASH) { return OnDemandProvisioningAllocationStrategy::lowest_price; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OutputNotebookFormat.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OutputNotebookFormat.cpp index 729c9747c6f..5ac852afcf2 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OutputNotebookFormat.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/OutputNotebookFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OutputNotebookFormatMapper { - static const int HTML_HASH = HashingUtils::HashString("HTML"); + static constexpr uint32_t HTML_HASH = ConstExprHashingUtils::HashString("HTML"); OutputNotebookFormat GetOutputNotebookFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTML_HASH) { return OutputNotebookFormat::HTML; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/PlacementGroupStrategy.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/PlacementGroupStrategy.cpp index 38fffb196db..75e7ea286e4 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/PlacementGroupStrategy.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/PlacementGroupStrategy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PlacementGroupStrategyMapper { - static const int SPREAD_HASH = HashingUtils::HashString("SPREAD"); - static const int PARTITION_HASH = HashingUtils::HashString("PARTITION"); - static const int CLUSTER_HASH = HashingUtils::HashString("CLUSTER"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SPREAD_HASH = ConstExprHashingUtils::HashString("SPREAD"); + static constexpr uint32_t PARTITION_HASH = ConstExprHashingUtils::HashString("PARTITION"); + static constexpr uint32_t CLUSTER_HASH = ConstExprHashingUtils::HashString("CLUSTER"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); PlacementGroupStrategy GetPlacementGroupStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPREAD_HASH) { return PlacementGroupStrategy::SPREAD; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ReconfigurationType.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ReconfigurationType.cpp index ecffbcec27e..b6cec968c88 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ReconfigurationType.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ReconfigurationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReconfigurationTypeMapper { - static const int OVERWRITE_HASH = HashingUtils::HashString("OVERWRITE"); - static const int MERGE_HASH = HashingUtils::HashString("MERGE"); + static constexpr uint32_t OVERWRITE_HASH = ConstExprHashingUtils::HashString("OVERWRITE"); + static constexpr uint32_t MERGE_HASH = ConstExprHashingUtils::HashString("MERGE"); ReconfigurationType GetReconfigurationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERWRITE_HASH) { return ReconfigurationType::OVERWRITE; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/RepoUpgradeOnBoot.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/RepoUpgradeOnBoot.cpp index 0182b8c47db..327f5894597 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/RepoUpgradeOnBoot.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/RepoUpgradeOnBoot.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RepoUpgradeOnBootMapper { - static const int SECURITY_HASH = HashingUtils::HashString("SECURITY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SECURITY_HASH = ConstExprHashingUtils::HashString("SECURITY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); RepoUpgradeOnBoot GetRepoUpgradeOnBootForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECURITY_HASH) { return RepoUpgradeOnBoot::SECURITY; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ScaleDownBehavior.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ScaleDownBehavior.cpp index 3893cf73dc3..e862c06e9f4 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ScaleDownBehavior.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/ScaleDownBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScaleDownBehaviorMapper { - static const int TERMINATE_AT_INSTANCE_HOUR_HASH = HashingUtils::HashString("TERMINATE_AT_INSTANCE_HOUR"); - static const int TERMINATE_AT_TASK_COMPLETION_HASH = HashingUtils::HashString("TERMINATE_AT_TASK_COMPLETION"); + static constexpr uint32_t TERMINATE_AT_INSTANCE_HOUR_HASH = ConstExprHashingUtils::HashString("TERMINATE_AT_INSTANCE_HOUR"); + static constexpr uint32_t TERMINATE_AT_TASK_COMPLETION_HASH = ConstExprHashingUtils::HashString("TERMINATE_AT_TASK_COMPLETION"); ScaleDownBehavior GetScaleDownBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERMINATE_AT_INSTANCE_HOUR_HASH) { return ScaleDownBehavior::TERMINATE_AT_INSTANCE_HOUR; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningAllocationStrategy.cpp index efbc6d9302b..952280824d3 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningAllocationStrategy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SpotProvisioningAllocationStrategyMapper { - static const int capacity_optimized_HASH = HashingUtils::HashString("capacity-optimized"); - static const int price_capacity_optimized_HASH = HashingUtils::HashString("price-capacity-optimized"); - static const int lowest_price_HASH = HashingUtils::HashString("lowest-price"); - static const int diversified_HASH = HashingUtils::HashString("diversified"); + static constexpr uint32_t capacity_optimized_HASH = ConstExprHashingUtils::HashString("capacity-optimized"); + static constexpr uint32_t price_capacity_optimized_HASH = ConstExprHashingUtils::HashString("price-capacity-optimized"); + static constexpr uint32_t lowest_price_HASH = ConstExprHashingUtils::HashString("lowest-price"); + static constexpr uint32_t diversified_HASH = ConstExprHashingUtils::HashString("diversified"); SpotProvisioningAllocationStrategy GetSpotProvisioningAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == capacity_optimized_HASH) { return SpotProvisioningAllocationStrategy::capacity_optimized; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningTimeoutAction.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningTimeoutAction.cpp index ee2cc912c68..ee1725d923c 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningTimeoutAction.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/SpotProvisioningTimeoutAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SpotProvisioningTimeoutActionMapper { - static const int SWITCH_TO_ON_DEMAND_HASH = HashingUtils::HashString("SWITCH_TO_ON_DEMAND"); - static const int TERMINATE_CLUSTER_HASH = HashingUtils::HashString("TERMINATE_CLUSTER"); + static constexpr uint32_t SWITCH_TO_ON_DEMAND_HASH = ConstExprHashingUtils::HashString("SWITCH_TO_ON_DEMAND"); + static constexpr uint32_t TERMINATE_CLUSTER_HASH = ConstExprHashingUtils::HashString("TERMINATE_CLUSTER"); SpotProvisioningTimeoutAction GetSpotProvisioningTimeoutActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SWITCH_TO_ON_DEMAND_HASH) { return SpotProvisioningTimeoutAction::SWITCH_TO_ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Statistic.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Statistic.cpp index 696ee626a01..f7b2cf59199 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Statistic.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Statistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatisticMapper { - static const int SAMPLE_COUNT_HASH = HashingUtils::HashString("SAMPLE_COUNT"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int MINIMUM_HASH = HashingUtils::HashString("MINIMUM"); - static const int MAXIMUM_HASH = HashingUtils::HashString("MAXIMUM"); + static constexpr uint32_t SAMPLE_COUNT_HASH = ConstExprHashingUtils::HashString("SAMPLE_COUNT"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t MINIMUM_HASH = ConstExprHashingUtils::HashString("MINIMUM"); + static constexpr uint32_t MAXIMUM_HASH = ConstExprHashingUtils::HashString("MAXIMUM"); Statistic GetStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAMPLE_COUNT_HASH) { return Statistic::SAMPLE_COUNT; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepCancellationOption.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepCancellationOption.cpp index 88615465023..b4193457dc6 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepCancellationOption.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepCancellationOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StepCancellationOptionMapper { - static const int SEND_INTERRUPT_HASH = HashingUtils::HashString("SEND_INTERRUPT"); - static const int TERMINATE_PROCESS_HASH = HashingUtils::HashString("TERMINATE_PROCESS"); + static constexpr uint32_t SEND_INTERRUPT_HASH = ConstExprHashingUtils::HashString("SEND_INTERRUPT"); + static constexpr uint32_t TERMINATE_PROCESS_HASH = ConstExprHashingUtils::HashString("TERMINATE_PROCESS"); StepCancellationOption GetStepCancellationOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_INTERRUPT_HASH) { return StepCancellationOption::SEND_INTERRUPT; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepExecutionState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepExecutionState.cpp index f5513c0a758..18adcf39351 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepExecutionState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepExecutionState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StepExecutionStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INTERRUPTED_HASH = HashingUtils::HashString("INTERRUPTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CONTINUE_HASH = ConstExprHashingUtils::HashString("CONTINUE"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INTERRUPTED_HASH = ConstExprHashingUtils::HashString("INTERRUPTED"); StepExecutionState GetStepExecutionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return StepExecutionState::PENDING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepState.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepState.cpp index 57c08dd9494..ec4133acd71 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepState.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StepStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CANCEL_PENDING_HASH = HashingUtils::HashString("CANCEL_PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INTERRUPTED_HASH = HashingUtils::HashString("INTERRUPTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CANCEL_PENDING_HASH = ConstExprHashingUtils::HashString("CANCEL_PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INTERRUPTED_HASH = ConstExprHashingUtils::HashString("INTERRUPTED"); StepState GetStepStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return StepState::PENDING; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepStateChangeReasonCode.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepStateChangeReasonCode.cpp index f291a7b4cc7..f2f97d78b38 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepStateChangeReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/StepStateChangeReasonCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StepStateChangeReasonCodeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); StepStateChangeReasonCode GetStepStateChangeReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return StepStateChangeReasonCode::NONE; diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Unit.cpp index e5d12370683..1cc56b43f78 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/model/Unit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace UnitMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int MICRO_SECONDS_HASH = HashingUtils::HashString("MICRO_SECONDS"); - static const int MILLI_SECONDS_HASH = HashingUtils::HashString("MILLI_SECONDS"); - static const int BYTES_HASH = HashingUtils::HashString("BYTES"); - static const int KILO_BYTES_HASH = HashingUtils::HashString("KILO_BYTES"); - static const int MEGA_BYTES_HASH = HashingUtils::HashString("MEGA_BYTES"); - static const int GIGA_BYTES_HASH = HashingUtils::HashString("GIGA_BYTES"); - static const int TERA_BYTES_HASH = HashingUtils::HashString("TERA_BYTES"); - static const int BITS_HASH = HashingUtils::HashString("BITS"); - static const int KILO_BITS_HASH = HashingUtils::HashString("KILO_BITS"); - static const int MEGA_BITS_HASH = HashingUtils::HashString("MEGA_BITS"); - static const int GIGA_BITS_HASH = HashingUtils::HashString("GIGA_BITS"); - static const int TERA_BITS_HASH = HashingUtils::HashString("TERA_BITS"); - static const int PERCENT_HASH = HashingUtils::HashString("PERCENT"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int BYTES_PER_SECOND_HASH = HashingUtils::HashString("BYTES_PER_SECOND"); - static const int KILO_BYTES_PER_SECOND_HASH = HashingUtils::HashString("KILO_BYTES_PER_SECOND"); - static const int MEGA_BYTES_PER_SECOND_HASH = HashingUtils::HashString("MEGA_BYTES_PER_SECOND"); - static const int GIGA_BYTES_PER_SECOND_HASH = HashingUtils::HashString("GIGA_BYTES_PER_SECOND"); - static const int TERA_BYTES_PER_SECOND_HASH = HashingUtils::HashString("TERA_BYTES_PER_SECOND"); - static const int BITS_PER_SECOND_HASH = HashingUtils::HashString("BITS_PER_SECOND"); - static const int KILO_BITS_PER_SECOND_HASH = HashingUtils::HashString("KILO_BITS_PER_SECOND"); - static const int MEGA_BITS_PER_SECOND_HASH = HashingUtils::HashString("MEGA_BITS_PER_SECOND"); - static const int GIGA_BITS_PER_SECOND_HASH = HashingUtils::HashString("GIGA_BITS_PER_SECOND"); - static const int TERA_BITS_PER_SECOND_HASH = HashingUtils::HashString("TERA_BITS_PER_SECOND"); - static const int COUNT_PER_SECOND_HASH = HashingUtils::HashString("COUNT_PER_SECOND"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t MICRO_SECONDS_HASH = ConstExprHashingUtils::HashString("MICRO_SECONDS"); + static constexpr uint32_t MILLI_SECONDS_HASH = ConstExprHashingUtils::HashString("MILLI_SECONDS"); + static constexpr uint32_t BYTES_HASH = ConstExprHashingUtils::HashString("BYTES"); + static constexpr uint32_t KILO_BYTES_HASH = ConstExprHashingUtils::HashString("KILO_BYTES"); + static constexpr uint32_t MEGA_BYTES_HASH = ConstExprHashingUtils::HashString("MEGA_BYTES"); + static constexpr uint32_t GIGA_BYTES_HASH = ConstExprHashingUtils::HashString("GIGA_BYTES"); + static constexpr uint32_t TERA_BYTES_HASH = ConstExprHashingUtils::HashString("TERA_BYTES"); + static constexpr uint32_t BITS_HASH = ConstExprHashingUtils::HashString("BITS"); + static constexpr uint32_t KILO_BITS_HASH = ConstExprHashingUtils::HashString("KILO_BITS"); + static constexpr uint32_t MEGA_BITS_HASH = ConstExprHashingUtils::HashString("MEGA_BITS"); + static constexpr uint32_t GIGA_BITS_HASH = ConstExprHashingUtils::HashString("GIGA_BITS"); + static constexpr uint32_t TERA_BITS_HASH = ConstExprHashingUtils::HashString("TERA_BITS"); + static constexpr uint32_t PERCENT_HASH = ConstExprHashingUtils::HashString("PERCENT"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("BYTES_PER_SECOND"); + static constexpr uint32_t KILO_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("KILO_BYTES_PER_SECOND"); + static constexpr uint32_t MEGA_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("MEGA_BYTES_PER_SECOND"); + static constexpr uint32_t GIGA_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("GIGA_BYTES_PER_SECOND"); + static constexpr uint32_t TERA_BYTES_PER_SECOND_HASH = ConstExprHashingUtils::HashString("TERA_BYTES_PER_SECOND"); + static constexpr uint32_t BITS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("BITS_PER_SECOND"); + static constexpr uint32_t KILO_BITS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("KILO_BITS_PER_SECOND"); + static constexpr uint32_t MEGA_BITS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("MEGA_BITS_PER_SECOND"); + static constexpr uint32_t GIGA_BITS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("GIGA_BITS_PER_SECOND"); + static constexpr uint32_t TERA_BITS_PER_SECOND_HASH = ConstExprHashingUtils::HashString("TERA_BITS_PER_SECOND"); + static constexpr uint32_t COUNT_PER_SECOND_HASH = ConstExprHashingUtils::HashString("COUNT_PER_SECOND"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Unit::NONE; diff --git a/generated/src/aws-cpp-sdk-elastictranscoder/source/ElasticTranscoderErrors.cpp b/generated/src/aws-cpp-sdk-elastictranscoder/source/ElasticTranscoderErrors.cpp index 94dbb7c96ea..4166f7122b1 100644 --- a/generated/src/aws-cpp-sdk-elastictranscoder/source/ElasticTranscoderErrors.cpp +++ b/generated/src/aws-cpp-sdk-elastictranscoder/source/ElasticTranscoderErrors.cpp @@ -18,15 +18,15 @@ namespace ElasticTranscoder namespace ElasticTranscoderErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int INCOMPATIBLE_VERSION_HASH = HashingUtils::HashString("IncompatibleVersionException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t INCOMPATIBLE_VERSION_HASH = ConstExprHashingUtils::HashString("IncompatibleVersionException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-email/source/SESErrors.cpp b/generated/src/aws-cpp-sdk-email/source/SESErrors.cpp index 17b9413f441..fb5b6305d70 100644 --- a/generated/src/aws-cpp-sdk-email/source/SESErrors.cpp +++ b/generated/src/aws-cpp-sdk-email/source/SESErrors.cpp @@ -187,45 +187,45 @@ template<> AWS_SES_API RuleDoesNotExistException SESError::GetModeledError() namespace SESErrorMapper { -static const int CONFIGURATION_SET_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ConfigurationSetDoesNotExist"); -static const int INVALID_FIREHOSE_DESTINATION_HASH = HashingUtils::HashString("InvalidFirehoseDestination"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceeded"); -static const int INVALID_TRACKING_OPTIONS_HASH = HashingUtils::HashString("InvalidTrackingOptions"); -static const int INVALID_SNS_TOPIC_HASH = HashingUtils::HashString("InvalidSnsTopic"); -static const int PRODUCTION_ACCESS_NOT_GRANTED_HASH = HashingUtils::HashString("ProductionAccessNotGranted"); -static const int TRACKING_OPTIONS_DOES_NOT_EXIST_HASH = HashingUtils::HashString("TrackingOptionsDoesNotExistException"); -static const int CONFIGURATION_SET_SENDING_PAUSED_HASH = HashingUtils::HashString("ConfigurationSetSendingPausedException"); -static const int INVALID_S3_CONFIGURATION_HASH = HashingUtils::HashString("InvalidS3Configuration"); -static const int EVENT_DESTINATION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("EventDestinationDoesNotExist"); -static const int TEMPLATE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("TemplateDoesNotExist"); -static const int MISSING_RENDERING_ATTRIBUTE_HASH = HashingUtils::HashString("MissingRenderingAttribute"); -static const int CONFIGURATION_SET_ALREADY_EXISTS_HASH = HashingUtils::HashString("ConfigurationSetAlreadyExists"); -static const int INVALID_DELIVERY_OPTIONS_HASH = HashingUtils::HashString("InvalidDeliveryOptions"); -static const int EVENT_DESTINATION_ALREADY_EXISTS_HASH = HashingUtils::HashString("EventDestinationAlreadyExists"); -static const int CUSTOM_VERIFICATION_EMAIL_TEMPLATE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("CustomVerificationEmailTemplateDoesNotExist"); -static const int INVALID_LAMBDA_FUNCTION_HASH = HashingUtils::HashString("InvalidLambdaFunction"); -static const int ACCOUNT_SENDING_PAUSED_HASH = HashingUtils::HashString("AccountSendingPausedException"); -static const int INVALID_CONFIGURATION_SET_HASH = HashingUtils::HashString("InvalidConfigurationSet"); -static const int INVALID_CLOUD_WATCH_DESTINATION_HASH = HashingUtils::HashString("InvalidCloudWatchDestination"); -static const int INVALID_POLICY_HASH = HashingUtils::HashString("InvalidPolicy"); -static const int INVALID_RENDERING_PARAMETER_HASH = HashingUtils::HashString("InvalidRenderingParameter"); -static const int INVALID_S_N_S_DESTINATION_HASH = HashingUtils::HashString("InvalidSNSDestination"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExists"); -static const int TRACKING_OPTIONS_ALREADY_EXISTS_HASH = HashingUtils::HashString("TrackingOptionsAlreadyExistsException"); -static const int INVALID_TEMPLATE_HASH = HashingUtils::HashString("InvalidTemplate"); -static const int CUSTOM_VERIFICATION_EMAIL_INVALID_CONTENT_HASH = HashingUtils::HashString("CustomVerificationEmailInvalidContent"); -static const int MESSAGE_REJECTED_HASH = HashingUtils::HashString("MessageRejected"); -static const int FROM_EMAIL_ADDRESS_NOT_VERIFIED_HASH = HashingUtils::HashString("FromEmailAddressNotVerified"); -static const int MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = HashingUtils::HashString("MailFromDomainNotVerifiedException"); -static const int CANNOT_DELETE_HASH = HashingUtils::HashString("CannotDelete"); -static const int RULE_SET_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RuleSetDoesNotExist"); -static const int CUSTOM_VERIFICATION_EMAIL_TEMPLATE_ALREADY_EXISTS_HASH = HashingUtils::HashString("CustomVerificationEmailTemplateAlreadyExists"); -static const int RULE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RuleDoesNotExist"); +static constexpr uint32_t CONFIGURATION_SET_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ConfigurationSetDoesNotExist"); +static constexpr uint32_t INVALID_FIREHOSE_DESTINATION_HASH = ConstExprHashingUtils::HashString("InvalidFirehoseDestination"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); +static constexpr uint32_t INVALID_TRACKING_OPTIONS_HASH = ConstExprHashingUtils::HashString("InvalidTrackingOptions"); +static constexpr uint32_t INVALID_SNS_TOPIC_HASH = ConstExprHashingUtils::HashString("InvalidSnsTopic"); +static constexpr uint32_t PRODUCTION_ACCESS_NOT_GRANTED_HASH = ConstExprHashingUtils::HashString("ProductionAccessNotGranted"); +static constexpr uint32_t TRACKING_OPTIONS_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("TrackingOptionsDoesNotExistException"); +static constexpr uint32_t CONFIGURATION_SET_SENDING_PAUSED_HASH = ConstExprHashingUtils::HashString("ConfigurationSetSendingPausedException"); +static constexpr uint32_t INVALID_S3_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidS3Configuration"); +static constexpr uint32_t EVENT_DESTINATION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("EventDestinationDoesNotExist"); +static constexpr uint32_t TEMPLATE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("TemplateDoesNotExist"); +static constexpr uint32_t MISSING_RENDERING_ATTRIBUTE_HASH = ConstExprHashingUtils::HashString("MissingRenderingAttribute"); +static constexpr uint32_t CONFIGURATION_SET_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ConfigurationSetAlreadyExists"); +static constexpr uint32_t INVALID_DELIVERY_OPTIONS_HASH = ConstExprHashingUtils::HashString("InvalidDeliveryOptions"); +static constexpr uint32_t EVENT_DESTINATION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EventDestinationAlreadyExists"); +static constexpr uint32_t CUSTOM_VERIFICATION_EMAIL_TEMPLATE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("CustomVerificationEmailTemplateDoesNotExist"); +static constexpr uint32_t INVALID_LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("InvalidLambdaFunction"); +static constexpr uint32_t ACCOUNT_SENDING_PAUSED_HASH = ConstExprHashingUtils::HashString("AccountSendingPausedException"); +static constexpr uint32_t INVALID_CONFIGURATION_SET_HASH = ConstExprHashingUtils::HashString("InvalidConfigurationSet"); +static constexpr uint32_t INVALID_CLOUD_WATCH_DESTINATION_HASH = ConstExprHashingUtils::HashString("InvalidCloudWatchDestination"); +static constexpr uint32_t INVALID_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidPolicy"); +static constexpr uint32_t INVALID_RENDERING_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidRenderingParameter"); +static constexpr uint32_t INVALID_S_N_S_DESTINATION_HASH = ConstExprHashingUtils::HashString("InvalidSNSDestination"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExists"); +static constexpr uint32_t TRACKING_OPTIONS_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TrackingOptionsAlreadyExistsException"); +static constexpr uint32_t INVALID_TEMPLATE_HASH = ConstExprHashingUtils::HashString("InvalidTemplate"); +static constexpr uint32_t CUSTOM_VERIFICATION_EMAIL_INVALID_CONTENT_HASH = ConstExprHashingUtils::HashString("CustomVerificationEmailInvalidContent"); +static constexpr uint32_t MESSAGE_REJECTED_HASH = ConstExprHashingUtils::HashString("MessageRejected"); +static constexpr uint32_t FROM_EMAIL_ADDRESS_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("FromEmailAddressNotVerified"); +static constexpr uint32_t MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("MailFromDomainNotVerifiedException"); +static constexpr uint32_t CANNOT_DELETE_HASH = ConstExprHashingUtils::HashString("CannotDelete"); +static constexpr uint32_t RULE_SET_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RuleSetDoesNotExist"); +static constexpr uint32_t CUSTOM_VERIFICATION_EMAIL_TEMPLATE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("CustomVerificationEmailTemplateAlreadyExists"); +static constexpr uint32_t RULE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RuleDoesNotExist"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFIGURATION_SET_DOES_NOT_EXIST_HASH) { diff --git a/generated/src/aws-cpp-sdk-email/source/model/BehaviorOnMXFailure.cpp b/generated/src/aws-cpp-sdk-email/source/model/BehaviorOnMXFailure.cpp index 423d74678f3..40fbc9cf3c7 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/BehaviorOnMXFailure.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/BehaviorOnMXFailure.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BehaviorOnMXFailureMapper { - static const int UseDefaultValue_HASH = HashingUtils::HashString("UseDefaultValue"); - static const int RejectMessage_HASH = HashingUtils::HashString("RejectMessage"); + static constexpr uint32_t UseDefaultValue_HASH = ConstExprHashingUtils::HashString("UseDefaultValue"); + static constexpr uint32_t RejectMessage_HASH = ConstExprHashingUtils::HashString("RejectMessage"); BehaviorOnMXFailure GetBehaviorOnMXFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UseDefaultValue_HASH) { return BehaviorOnMXFailure::UseDefaultValue; diff --git a/generated/src/aws-cpp-sdk-email/source/model/BounceType.cpp b/generated/src/aws-cpp-sdk-email/source/model/BounceType.cpp index 0137fec7919..bdc87b2dcd9 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/BounceType.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/BounceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BounceTypeMapper { - static const int DoesNotExist_HASH = HashingUtils::HashString("DoesNotExist"); - static const int MessageTooLarge_HASH = HashingUtils::HashString("MessageTooLarge"); - static const int ExceededQuota_HASH = HashingUtils::HashString("ExceededQuota"); - static const int ContentRejected_HASH = HashingUtils::HashString("ContentRejected"); - static const int Undefined_HASH = HashingUtils::HashString("Undefined"); - static const int TemporaryFailure_HASH = HashingUtils::HashString("TemporaryFailure"); + static constexpr uint32_t DoesNotExist_HASH = ConstExprHashingUtils::HashString("DoesNotExist"); + static constexpr uint32_t MessageTooLarge_HASH = ConstExprHashingUtils::HashString("MessageTooLarge"); + static constexpr uint32_t ExceededQuota_HASH = ConstExprHashingUtils::HashString("ExceededQuota"); + static constexpr uint32_t ContentRejected_HASH = ConstExprHashingUtils::HashString("ContentRejected"); + static constexpr uint32_t Undefined_HASH = ConstExprHashingUtils::HashString("Undefined"); + static constexpr uint32_t TemporaryFailure_HASH = ConstExprHashingUtils::HashString("TemporaryFailure"); BounceType GetBounceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DoesNotExist_HASH) { return BounceType::DoesNotExist; diff --git a/generated/src/aws-cpp-sdk-email/source/model/BulkEmailStatus.cpp b/generated/src/aws-cpp-sdk-email/source/model/BulkEmailStatus.cpp index 68ea62ee111..1335bae7744 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/BulkEmailStatus.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/BulkEmailStatus.cpp @@ -20,25 +20,25 @@ namespace Aws namespace BulkEmailStatusMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int MessageRejected_HASH = HashingUtils::HashString("MessageRejected"); - static const int MailFromDomainNotVerified_HASH = HashingUtils::HashString("MailFromDomainNotVerified"); - static const int ConfigurationSetDoesNotExist_HASH = HashingUtils::HashString("ConfigurationSetDoesNotExist"); - static const int TemplateDoesNotExist_HASH = HashingUtils::HashString("TemplateDoesNotExist"); - static const int AccountSuspended_HASH = HashingUtils::HashString("AccountSuspended"); - static const int AccountThrottled_HASH = HashingUtils::HashString("AccountThrottled"); - static const int AccountDailyQuotaExceeded_HASH = HashingUtils::HashString("AccountDailyQuotaExceeded"); - static const int InvalidSendingPoolName_HASH = HashingUtils::HashString("InvalidSendingPoolName"); - static const int AccountSendingPaused_HASH = HashingUtils::HashString("AccountSendingPaused"); - static const int ConfigurationSetSendingPaused_HASH = HashingUtils::HashString("ConfigurationSetSendingPaused"); - static const int InvalidParameterValue_HASH = HashingUtils::HashString("InvalidParameterValue"); - static const int TransientFailure_HASH = HashingUtils::HashString("TransientFailure"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t MessageRejected_HASH = ConstExprHashingUtils::HashString("MessageRejected"); + static constexpr uint32_t MailFromDomainNotVerified_HASH = ConstExprHashingUtils::HashString("MailFromDomainNotVerified"); + static constexpr uint32_t ConfigurationSetDoesNotExist_HASH = ConstExprHashingUtils::HashString("ConfigurationSetDoesNotExist"); + static constexpr uint32_t TemplateDoesNotExist_HASH = ConstExprHashingUtils::HashString("TemplateDoesNotExist"); + static constexpr uint32_t AccountSuspended_HASH = ConstExprHashingUtils::HashString("AccountSuspended"); + static constexpr uint32_t AccountThrottled_HASH = ConstExprHashingUtils::HashString("AccountThrottled"); + static constexpr uint32_t AccountDailyQuotaExceeded_HASH = ConstExprHashingUtils::HashString("AccountDailyQuotaExceeded"); + static constexpr uint32_t InvalidSendingPoolName_HASH = ConstExprHashingUtils::HashString("InvalidSendingPoolName"); + static constexpr uint32_t AccountSendingPaused_HASH = ConstExprHashingUtils::HashString("AccountSendingPaused"); + static constexpr uint32_t ConfigurationSetSendingPaused_HASH = ConstExprHashingUtils::HashString("ConfigurationSetSendingPaused"); + static constexpr uint32_t InvalidParameterValue_HASH = ConstExprHashingUtils::HashString("InvalidParameterValue"); + static constexpr uint32_t TransientFailure_HASH = ConstExprHashingUtils::HashString("TransientFailure"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); BulkEmailStatus GetBulkEmailStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return BulkEmailStatus::Success; diff --git a/generated/src/aws-cpp-sdk-email/source/model/ConfigurationSetAttribute.cpp b/generated/src/aws-cpp-sdk-email/source/model/ConfigurationSetAttribute.cpp index 87d8422da46..1c37eae115f 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/ConfigurationSetAttribute.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/ConfigurationSetAttribute.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConfigurationSetAttributeMapper { - static const int eventDestinations_HASH = HashingUtils::HashString("eventDestinations"); - static const int trackingOptions_HASH = HashingUtils::HashString("trackingOptions"); - static const int deliveryOptions_HASH = HashingUtils::HashString("deliveryOptions"); - static const int reputationOptions_HASH = HashingUtils::HashString("reputationOptions"); + static constexpr uint32_t eventDestinations_HASH = ConstExprHashingUtils::HashString("eventDestinations"); + static constexpr uint32_t trackingOptions_HASH = ConstExprHashingUtils::HashString("trackingOptions"); + static constexpr uint32_t deliveryOptions_HASH = ConstExprHashingUtils::HashString("deliveryOptions"); + static constexpr uint32_t reputationOptions_HASH = ConstExprHashingUtils::HashString("reputationOptions"); ConfigurationSetAttribute GetConfigurationSetAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == eventDestinations_HASH) { return ConfigurationSetAttribute::eventDestinations; diff --git a/generated/src/aws-cpp-sdk-email/source/model/CustomMailFromStatus.cpp b/generated/src/aws-cpp-sdk-email/source/model/CustomMailFromStatus.cpp index 90650cf0912..60056c18256 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/CustomMailFromStatus.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/CustomMailFromStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CustomMailFromStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int TemporaryFailure_HASH = HashingUtils::HashString("TemporaryFailure"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t TemporaryFailure_HASH = ConstExprHashingUtils::HashString("TemporaryFailure"); CustomMailFromStatus GetCustomMailFromStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return CustomMailFromStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-email/source/model/DimensionValueSource.cpp b/generated/src/aws-cpp-sdk-email/source/model/DimensionValueSource.cpp index cd09d13b9de..38bb652e788 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/DimensionValueSource.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/DimensionValueSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DimensionValueSourceMapper { - static const int messageTag_HASH = HashingUtils::HashString("messageTag"); - static const int emailHeader_HASH = HashingUtils::HashString("emailHeader"); - static const int linkTag_HASH = HashingUtils::HashString("linkTag"); + static constexpr uint32_t messageTag_HASH = ConstExprHashingUtils::HashString("messageTag"); + static constexpr uint32_t emailHeader_HASH = ConstExprHashingUtils::HashString("emailHeader"); + static constexpr uint32_t linkTag_HASH = ConstExprHashingUtils::HashString("linkTag"); DimensionValueSource GetDimensionValueSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == messageTag_HASH) { return DimensionValueSource::messageTag; diff --git a/generated/src/aws-cpp-sdk-email/source/model/DsnAction.cpp b/generated/src/aws-cpp-sdk-email/source/model/DsnAction.cpp index dee0b69a097..1f617a02d4a 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/DsnAction.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/DsnAction.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DsnActionMapper { - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int delayed_HASH = HashingUtils::HashString("delayed"); - static const int delivered_HASH = HashingUtils::HashString("delivered"); - static const int relayed_HASH = HashingUtils::HashString("relayed"); - static const int expanded_HASH = HashingUtils::HashString("expanded"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t delayed_HASH = ConstExprHashingUtils::HashString("delayed"); + static constexpr uint32_t delivered_HASH = ConstExprHashingUtils::HashString("delivered"); + static constexpr uint32_t relayed_HASH = ConstExprHashingUtils::HashString("relayed"); + static constexpr uint32_t expanded_HASH = ConstExprHashingUtils::HashString("expanded"); DsnAction GetDsnActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == failed_HASH) { return DsnAction::failed; diff --git a/generated/src/aws-cpp-sdk-email/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-email/source/model/EventType.cpp index 773fa8d764e..3864c5c44ae 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/EventType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EventTypeMapper { - static const int send_HASH = HashingUtils::HashString("send"); - static const int reject_HASH = HashingUtils::HashString("reject"); - static const int bounce_HASH = HashingUtils::HashString("bounce"); - static const int complaint_HASH = HashingUtils::HashString("complaint"); - static const int delivery_HASH = HashingUtils::HashString("delivery"); - static const int open_HASH = HashingUtils::HashString("open"); - static const int click_HASH = HashingUtils::HashString("click"); - static const int renderingFailure_HASH = HashingUtils::HashString("renderingFailure"); + static constexpr uint32_t send_HASH = ConstExprHashingUtils::HashString("send"); + static constexpr uint32_t reject_HASH = ConstExprHashingUtils::HashString("reject"); + static constexpr uint32_t bounce_HASH = ConstExprHashingUtils::HashString("bounce"); + static constexpr uint32_t complaint_HASH = ConstExprHashingUtils::HashString("complaint"); + static constexpr uint32_t delivery_HASH = ConstExprHashingUtils::HashString("delivery"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t click_HASH = ConstExprHashingUtils::HashString("click"); + static constexpr uint32_t renderingFailure_HASH = ConstExprHashingUtils::HashString("renderingFailure"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == send_HASH) { return EventType::send; diff --git a/generated/src/aws-cpp-sdk-email/source/model/IdentityType.cpp b/generated/src/aws-cpp-sdk-email/source/model/IdentityType.cpp index 65d1d08828d..2e718d4b03d 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/IdentityType.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/IdentityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IdentityTypeMapper { - static const int EmailAddress_HASH = HashingUtils::HashString("EmailAddress"); - static const int Domain_HASH = HashingUtils::HashString("Domain"); + static constexpr uint32_t EmailAddress_HASH = ConstExprHashingUtils::HashString("EmailAddress"); + static constexpr uint32_t Domain_HASH = ConstExprHashingUtils::HashString("Domain"); IdentityType GetIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EmailAddress_HASH) { return IdentityType::EmailAddress; diff --git a/generated/src/aws-cpp-sdk-email/source/model/InvocationType.cpp b/generated/src/aws-cpp-sdk-email/source/model/InvocationType.cpp index fdb448885aa..7016db977cd 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/InvocationType.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/InvocationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InvocationTypeMapper { - static const int Event_HASH = HashingUtils::HashString("Event"); - static const int RequestResponse_HASH = HashingUtils::HashString("RequestResponse"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); + static constexpr uint32_t RequestResponse_HASH = ConstExprHashingUtils::HashString("RequestResponse"); InvocationType GetInvocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Event_HASH) { return InvocationType::Event; diff --git a/generated/src/aws-cpp-sdk-email/source/model/NotificationType.cpp b/generated/src/aws-cpp-sdk-email/source/model/NotificationType.cpp index adce126c8c0..5841233d670 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/NotificationType.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/NotificationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotificationTypeMapper { - static const int Bounce_HASH = HashingUtils::HashString("Bounce"); - static const int Complaint_HASH = HashingUtils::HashString("Complaint"); - static const int Delivery_HASH = HashingUtils::HashString("Delivery"); + static constexpr uint32_t Bounce_HASH = ConstExprHashingUtils::HashString("Bounce"); + static constexpr uint32_t Complaint_HASH = ConstExprHashingUtils::HashString("Complaint"); + static constexpr uint32_t Delivery_HASH = ConstExprHashingUtils::HashString("Delivery"); NotificationType GetNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Bounce_HASH) { return NotificationType::Bounce; diff --git a/generated/src/aws-cpp-sdk-email/source/model/ReceiptFilterPolicy.cpp b/generated/src/aws-cpp-sdk-email/source/model/ReceiptFilterPolicy.cpp index 178d4c4c60d..a5f696cce7c 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/ReceiptFilterPolicy.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/ReceiptFilterPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReceiptFilterPolicyMapper { - static const int Block_HASH = HashingUtils::HashString("Block"); - static const int Allow_HASH = HashingUtils::HashString("Allow"); + static constexpr uint32_t Block_HASH = ConstExprHashingUtils::HashString("Block"); + static constexpr uint32_t Allow_HASH = ConstExprHashingUtils::HashString("Allow"); ReceiptFilterPolicy GetReceiptFilterPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Block_HASH) { return ReceiptFilterPolicy::Block; diff --git a/generated/src/aws-cpp-sdk-email/source/model/SNSActionEncoding.cpp b/generated/src/aws-cpp-sdk-email/source/model/SNSActionEncoding.cpp index cffb2945d95..6e950328822 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/SNSActionEncoding.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/SNSActionEncoding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SNSActionEncodingMapper { - static const int UTF_8_HASH = HashingUtils::HashString("UTF-8"); - static const int Base64_HASH = HashingUtils::HashString("Base64"); + static constexpr uint32_t UTF_8_HASH = ConstExprHashingUtils::HashString("UTF-8"); + static constexpr uint32_t Base64_HASH = ConstExprHashingUtils::HashString("Base64"); SNSActionEncoding GetSNSActionEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UTF_8_HASH) { return SNSActionEncoding::UTF_8; diff --git a/generated/src/aws-cpp-sdk-email/source/model/StopScope.cpp b/generated/src/aws-cpp-sdk-email/source/model/StopScope.cpp index 2b94ca7c1ad..cc86383fd7b 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/StopScope.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/StopScope.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StopScopeMapper { - static const int RuleSet_HASH = HashingUtils::HashString("RuleSet"); + static constexpr uint32_t RuleSet_HASH = ConstExprHashingUtils::HashString("RuleSet"); StopScope GetStopScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RuleSet_HASH) { return StopScope::RuleSet; diff --git a/generated/src/aws-cpp-sdk-email/source/model/TlsPolicy.cpp b/generated/src/aws-cpp-sdk-email/source/model/TlsPolicy.cpp index 976169d3968..3d821be2288 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/TlsPolicy.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/TlsPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TlsPolicyMapper { - static const int Require_HASH = HashingUtils::HashString("Require"); - static const int Optional_HASH = HashingUtils::HashString("Optional"); + static constexpr uint32_t Require_HASH = ConstExprHashingUtils::HashString("Require"); + static constexpr uint32_t Optional_HASH = ConstExprHashingUtils::HashString("Optional"); TlsPolicy GetTlsPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Require_HASH) { return TlsPolicy::Require; diff --git a/generated/src/aws-cpp-sdk-email/source/model/VerificationStatus.cpp b/generated/src/aws-cpp-sdk-email/source/model/VerificationStatus.cpp index 87fd55e45dc..6ddc1390ffb 100644 --- a/generated/src/aws-cpp-sdk-email/source/model/VerificationStatus.cpp +++ b/generated/src/aws-cpp-sdk-email/source/model/VerificationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VerificationStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int TemporaryFailure_HASH = HashingUtils::HashString("TemporaryFailure"); - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t TemporaryFailure_HASH = ConstExprHashingUtils::HashString("TemporaryFailure"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); VerificationStatus GetVerificationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return VerificationStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersErrors.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersErrors.cpp index 24110362b09..4bf297c76fd 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersErrors.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersErrors.cpp @@ -18,12 +18,12 @@ namespace EMRContainers namespace EMRContainersErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/ContainerProviderType.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/ContainerProviderType.cpp index 04d24d3ff1c..f5aa760a14e 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/ContainerProviderType.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/ContainerProviderType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContainerProviderTypeMapper { - static const int EKS_HASH = HashingUtils::HashString("EKS"); + static constexpr uint32_t EKS_HASH = ConstExprHashingUtils::HashString("EKS"); ContainerProviderType GetContainerProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EKS_HASH) { return ContainerProviderType::EKS; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/EndpointState.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/EndpointState.cpp index e2ba85fed15..7c5f4c5593e 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/EndpointState.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/EndpointState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EndpointStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int TERMINATED_WITH_ERRORS_HASH = HashingUtils::HashString("TERMINATED_WITH_ERRORS"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t TERMINATED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("TERMINATED_WITH_ERRORS"); EndpointState GetEndpointStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return EndpointState::CREATING; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/FailureReason.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/FailureReason.cpp index 5679c6e8b58..38e852be3c5 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/FailureReason.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/FailureReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FailureReasonMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int USER_ERROR_HASH = HashingUtils::HashString("USER_ERROR"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int CLUSTER_UNAVAILABLE_HASH = HashingUtils::HashString("CLUSTER_UNAVAILABLE"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t USER_ERROR_HASH = ConstExprHashingUtils::HashString("USER_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t CLUSTER_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("CLUSTER_UNAVAILABLE"); FailureReason GetFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return FailureReason::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/JobRunState.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/JobRunState.cpp index 5ad1d2a93ce..96f7e50b607 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/JobRunState.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/JobRunState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobRunStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int CANCEL_PENDING_HASH = HashingUtils::HashString("CANCEL_PENDING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CANCEL_PENDING_HASH = ConstExprHashingUtils::HashString("CANCEL_PENDING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); JobRunState GetJobRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return JobRunState::PENDING; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/PersistentAppUI.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/PersistentAppUI.cpp index 0d8fe2981a2..3709035b6cc 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/PersistentAppUI.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/PersistentAppUI.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PersistentAppUIMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); PersistentAppUI GetPersistentAppUIForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return PersistentAppUI::ENABLED; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/TemplateParameterDataType.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/TemplateParameterDataType.cpp index 24bca907fd7..27184152f47 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/TemplateParameterDataType.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/TemplateParameterDataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateParameterDataTypeMapper { - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); TemplateParameterDataType GetTemplateParameterDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NUMBER_HASH) { return TemplateParameterDataType::NUMBER; diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/model/VirtualClusterState.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/model/VirtualClusterState.cpp index f870b929fc6..138072254cb 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/model/VirtualClusterState.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/model/VirtualClusterState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VirtualClusterStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int ARRESTED_HASH = HashingUtils::HashString("ARRESTED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t ARRESTED_HASH = ConstExprHashingUtils::HashString("ARRESTED"); VirtualClusterState GetVirtualClusterStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return VirtualClusterState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessErrors.cpp b/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessErrors.cpp index 551bcf287dd..76651ffb7c1 100644 --- a/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessErrors.cpp +++ b/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessErrors.cpp @@ -18,14 +18,14 @@ namespace EMRServerless namespace EMRServerlessErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-emr-serverless/source/model/ApplicationState.cpp b/generated/src/aws-cpp-sdk-emr-serverless/source/model/ApplicationState.cpp index 6f9beed3460..3b9c1216ec3 100644 --- a/generated/src/aws-cpp-sdk-emr-serverless/source/model/ApplicationState.cpp +++ b/generated/src/aws-cpp-sdk-emr-serverless/source/model/ApplicationState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ApplicationStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); ApplicationState GetApplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ApplicationState::CREATING; diff --git a/generated/src/aws-cpp-sdk-emr-serverless/source/model/Architecture.cpp b/generated/src/aws-cpp-sdk-emr-serverless/source/model/Architecture.cpp index 09e1a7e4a7f..27280f15fac 100644 --- a/generated/src/aws-cpp-sdk-emr-serverless/source/model/Architecture.cpp +++ b/generated/src/aws-cpp-sdk-emr-serverless/source/model/Architecture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArchitectureMapper { - static const int ARM64_HASH = HashingUtils::HashString("ARM64"); - static const int X86_64_HASH = HashingUtils::HashString("X86_64"); + static constexpr uint32_t ARM64_HASH = ConstExprHashingUtils::HashString("ARM64"); + static constexpr uint32_t X86_64_HASH = ConstExprHashingUtils::HashString("X86_64"); Architecture GetArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARM64_HASH) { return Architecture::ARM64; diff --git a/generated/src/aws-cpp-sdk-emr-serverless/source/model/JobRunState.cpp b/generated/src/aws-cpp-sdk-emr-serverless/source/model/JobRunState.cpp index 62d4e8bb561..9ff3ef398dc 100644 --- a/generated/src/aws-cpp-sdk-emr-serverless/source/model/JobRunState.cpp +++ b/generated/src/aws-cpp-sdk-emr-serverless/source/model/JobRunState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace JobRunStateMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); JobRunState GetJobRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobRunState::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionErrors.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionErrors.cpp index edd489695ef..a0d42883390 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionErrors.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_ENTITYRESOLUTION_API ExceedsLimitException EntityResolutionError: namespace EntityResolutionErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int EXCEEDS_LIMIT_HASH = HashingUtils::HashString("ExceedsLimitException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t EXCEEDS_LIMIT_HASH = ConstExprHashingUtils::HashString("ExceedsLimitException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/model/AttributeMatchingModel.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/model/AttributeMatchingModel.cpp index a390b5a8885..2b01b55c2b4 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/model/AttributeMatchingModel.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/model/AttributeMatchingModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AttributeMatchingModelMapper { - static const int ONE_TO_ONE_HASH = HashingUtils::HashString("ONE_TO_ONE"); - static const int MANY_TO_MANY_HASH = HashingUtils::HashString("MANY_TO_MANY"); + static constexpr uint32_t ONE_TO_ONE_HASH = ConstExprHashingUtils::HashString("ONE_TO_ONE"); + static constexpr uint32_t MANY_TO_MANY_HASH = ConstExprHashingUtils::HashString("MANY_TO_MANY"); AttributeMatchingModel GetAttributeMatchingModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_TO_ONE_HASH) { return AttributeMatchingModel::ONE_TO_ONE; diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/model/IncrementalRunType.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/model/IncrementalRunType.cpp index 0934bc7c2b7..ed5943d2e7e 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/model/IncrementalRunType.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/model/IncrementalRunType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IncrementalRunTypeMapper { - static const int IMMEDIATE_HASH = HashingUtils::HashString("IMMEDIATE"); + static constexpr uint32_t IMMEDIATE_HASH = ConstExprHashingUtils::HashString("IMMEDIATE"); IncrementalRunType GetIncrementalRunTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMMEDIATE_HASH) { return IncrementalRunType::IMMEDIATE; diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/model/JobStatus.cpp index a0cc65b4f31..2752663279d 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/model/JobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return JobStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/model/ResolutionType.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/model/ResolutionType.cpp index aaa812c5cc3..cb9215358cd 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/model/ResolutionType.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/model/ResolutionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResolutionTypeMapper { - static const int RULE_MATCHING_HASH = HashingUtils::HashString("RULE_MATCHING"); - static const int ML_MATCHING_HASH = HashingUtils::HashString("ML_MATCHING"); + static constexpr uint32_t RULE_MATCHING_HASH = ConstExprHashingUtils::HashString("RULE_MATCHING"); + static constexpr uint32_t ML_MATCHING_HASH = ConstExprHashingUtils::HashString("ML_MATCHING"); ResolutionType GetResolutionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RULE_MATCHING_HASH) { return ResolutionType::RULE_MATCHING; diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/model/SchemaAttributeType.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/model/SchemaAttributeType.cpp index a74d56e99cc..60273adccbe 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/model/SchemaAttributeType.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/model/SchemaAttributeType.cpp @@ -20,30 +20,30 @@ namespace Aws namespace SchemaAttributeTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int NAME_FIRST_HASH = HashingUtils::HashString("NAME_FIRST"); - static const int NAME_MIDDLE_HASH = HashingUtils::HashString("NAME_MIDDLE"); - static const int NAME_LAST_HASH = HashingUtils::HashString("NAME_LAST"); - static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS"); - static const int ADDRESS_STREET1_HASH = HashingUtils::HashString("ADDRESS_STREET1"); - static const int ADDRESS_STREET2_HASH = HashingUtils::HashString("ADDRESS_STREET2"); - static const int ADDRESS_STREET3_HASH = HashingUtils::HashString("ADDRESS_STREET3"); - static const int ADDRESS_CITY_HASH = HashingUtils::HashString("ADDRESS_CITY"); - static const int ADDRESS_STATE_HASH = HashingUtils::HashString("ADDRESS_STATE"); - static const int ADDRESS_COUNTRY_HASH = HashingUtils::HashString("ADDRESS_COUNTRY"); - static const int ADDRESS_POSTALCODE_HASH = HashingUtils::HashString("ADDRESS_POSTALCODE"); - static const int PHONE_HASH = HashingUtils::HashString("PHONE"); - static const int PHONE_NUMBER_HASH = HashingUtils::HashString("PHONE_NUMBER"); - static const int PHONE_COUNTRYCODE_HASH = HashingUtils::HashString("PHONE_COUNTRYCODE"); - static const int EMAIL_ADDRESS_HASH = HashingUtils::HashString("EMAIL_ADDRESS"); - static const int UNIQUE_ID_HASH = HashingUtils::HashString("UNIQUE_ID"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t NAME_FIRST_HASH = ConstExprHashingUtils::HashString("NAME_FIRST"); + static constexpr uint32_t NAME_MIDDLE_HASH = ConstExprHashingUtils::HashString("NAME_MIDDLE"); + static constexpr uint32_t NAME_LAST_HASH = ConstExprHashingUtils::HashString("NAME_LAST"); + static constexpr uint32_t ADDRESS_HASH = ConstExprHashingUtils::HashString("ADDRESS"); + static constexpr uint32_t ADDRESS_STREET1_HASH = ConstExprHashingUtils::HashString("ADDRESS_STREET1"); + static constexpr uint32_t ADDRESS_STREET2_HASH = ConstExprHashingUtils::HashString("ADDRESS_STREET2"); + static constexpr uint32_t ADDRESS_STREET3_HASH = ConstExprHashingUtils::HashString("ADDRESS_STREET3"); + static constexpr uint32_t ADDRESS_CITY_HASH = ConstExprHashingUtils::HashString("ADDRESS_CITY"); + static constexpr uint32_t ADDRESS_STATE_HASH = ConstExprHashingUtils::HashString("ADDRESS_STATE"); + static constexpr uint32_t ADDRESS_COUNTRY_HASH = ConstExprHashingUtils::HashString("ADDRESS_COUNTRY"); + static constexpr uint32_t ADDRESS_POSTALCODE_HASH = ConstExprHashingUtils::HashString("ADDRESS_POSTALCODE"); + static constexpr uint32_t PHONE_HASH = ConstExprHashingUtils::HashString("PHONE"); + static constexpr uint32_t PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER"); + static constexpr uint32_t PHONE_COUNTRYCODE_HASH = ConstExprHashingUtils::HashString("PHONE_COUNTRYCODE"); + static constexpr uint32_t EMAIL_ADDRESS_HASH = ConstExprHashingUtils::HashString("EMAIL_ADDRESS"); + static constexpr uint32_t UNIQUE_ID_HASH = ConstExprHashingUtils::HashString("UNIQUE_ID"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); SchemaAttributeType GetSchemaAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return SchemaAttributeType::NAME; diff --git a/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceErrors.cpp b/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceErrors.cpp index ffa9428ce14..bd1ad9f3e94 100644 --- a/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceErrors.cpp @@ -18,19 +18,19 @@ namespace ElasticsearchService namespace ElasticsearchServiceErrorMapper { -static const int DISABLED_OPERATION_HASH = HashingUtils::HashString("DisabledOperationException"); -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int BASE_HASH = HashingUtils::HashString("BaseException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_TYPE_HASH = HashingUtils::HashString("InvalidTypeException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t DISABLED_OPERATION_HASH = ConstExprHashingUtils::HashString("DisabledOperationException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t BASE_HASH = ConstExprHashingUtils::HashString("BaseException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidTypeException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == DISABLED_OPERATION_HASH) { diff --git a/generated/src/aws-cpp-sdk-es/source/model/AutoTuneDesiredState.cpp b/generated/src/aws-cpp-sdk-es/source/model/AutoTuneDesiredState.cpp index 2612461f60e..8fa42118a37 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/AutoTuneDesiredState.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/AutoTuneDesiredState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoTuneDesiredStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AutoTuneDesiredState GetAutoTuneDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutoTuneDesiredState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-es/source/model/AutoTuneState.cpp b/generated/src/aws-cpp-sdk-es/source/model/AutoTuneState.cpp index b8338b6a848..1dcd1f28670 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/AutoTuneState.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/AutoTuneState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AutoTuneStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLE_IN_PROGRESS_HASH = HashingUtils::HashString("ENABLE_IN_PROGRESS"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); - static const int DISABLED_AND_ROLLBACK_SCHEDULED_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_SCHEDULED"); - static const int DISABLED_AND_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_IN_PROGRESS"); - static const int DISABLED_AND_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_COMPLETE"); - static const int DISABLED_AND_ROLLBACK_ERROR_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_ERROR"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ENABLE_IN_PROGRESS"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_SCHEDULED_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_SCHEDULED"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_COMPLETE"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_ERROR_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_ERROR"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); AutoTuneState GetAutoTuneStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutoTuneState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-es/source/model/AutoTuneType.cpp b/generated/src/aws-cpp-sdk-es/source/model/AutoTuneType.cpp index c212da1889e..2d23863a777 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/AutoTuneType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/AutoTuneType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AutoTuneTypeMapper { - static const int SCHEDULED_ACTION_HASH = HashingUtils::HashString("SCHEDULED_ACTION"); + static constexpr uint32_t SCHEDULED_ACTION_HASH = ConstExprHashingUtils::HashString("SCHEDULED_ACTION"); AutoTuneType GetAutoTuneTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_ACTION_HASH) { return AutoTuneType::SCHEDULED_ACTION; diff --git a/generated/src/aws-cpp-sdk-es/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-es/source/model/DeploymentStatus.cpp index 94340680534..0a2fa4ddf99 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/DeploymentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeploymentStatusMapper { - static const int PENDING_UPDATE_HASH = HashingUtils::HashString("PENDING_UPDATE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int NOT_ELIGIBLE_HASH = HashingUtils::HashString("NOT_ELIGIBLE"); - static const int ELIGIBLE_HASH = HashingUtils::HashString("ELIGIBLE"); + static constexpr uint32_t PENDING_UPDATE_HASH = ConstExprHashingUtils::HashString("PENDING_UPDATE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_ELIGIBLE_HASH = ConstExprHashingUtils::HashString("NOT_ELIGIBLE"); + static constexpr uint32_t ELIGIBLE_HASH = ConstExprHashingUtils::HashString("ELIGIBLE"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_UPDATE_HASH) { return DeploymentStatus::PENDING_UPDATE; diff --git a/generated/src/aws-cpp-sdk-es/source/model/DescribePackagesFilterName.cpp b/generated/src/aws-cpp-sdk-es/source/model/DescribePackagesFilterName.cpp index 893ada68bdb..ec9a4a3005f 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/DescribePackagesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/DescribePackagesFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DescribePackagesFilterNameMapper { - static const int PackageID_HASH = HashingUtils::HashString("PackageID"); - static const int PackageName_HASH = HashingUtils::HashString("PackageName"); - static const int PackageStatus_HASH = HashingUtils::HashString("PackageStatus"); + static constexpr uint32_t PackageID_HASH = ConstExprHashingUtils::HashString("PackageID"); + static constexpr uint32_t PackageName_HASH = ConstExprHashingUtils::HashString("PackageName"); + static constexpr uint32_t PackageStatus_HASH = ConstExprHashingUtils::HashString("PackageStatus"); DescribePackagesFilterName GetDescribePackagesFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PackageID_HASH) { return DescribePackagesFilterName::PackageID; diff --git a/generated/src/aws-cpp-sdk-es/source/model/DomainPackageStatus.cpp b/generated/src/aws-cpp-sdk-es/source/model/DomainPackageStatus.cpp index 2df9be64d14..3361b423267 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/DomainPackageStatus.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/DomainPackageStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DomainPackageStatusMapper { - static const int ASSOCIATING_HASH = HashingUtils::HashString("ASSOCIATING"); - static const int ASSOCIATION_FAILED_HASH = HashingUtils::HashString("ASSOCIATION_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DISSOCIATING_HASH = HashingUtils::HashString("DISSOCIATING"); - static const int DISSOCIATION_FAILED_HASH = HashingUtils::HashString("DISSOCIATION_FAILED"); + static constexpr uint32_t ASSOCIATING_HASH = ConstExprHashingUtils::HashString("ASSOCIATING"); + static constexpr uint32_t ASSOCIATION_FAILED_HASH = ConstExprHashingUtils::HashString("ASSOCIATION_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DISSOCIATING_HASH = ConstExprHashingUtils::HashString("DISSOCIATING"); + static constexpr uint32_t DISSOCIATION_FAILED_HASH = ConstExprHashingUtils::HashString("DISSOCIATION_FAILED"); DomainPackageStatus GetDomainPackageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATING_HASH) { return DomainPackageStatus::ASSOCIATING; diff --git a/generated/src/aws-cpp-sdk-es/source/model/ESPartitionInstanceType.cpp b/generated/src/aws-cpp-sdk-es/source/model/ESPartitionInstanceType.cpp index aa8fe946cb1..722915fc359 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/ESPartitionInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/ESPartitionInstanceType.cpp @@ -20,69 +20,69 @@ namespace Aws namespace ESPartitionInstanceTypeMapper { - static const int m3_medium_elasticsearch_HASH = HashingUtils::HashString("m3.medium.elasticsearch"); - static const int m3_large_elasticsearch_HASH = HashingUtils::HashString("m3.large.elasticsearch"); - static const int m3_xlarge_elasticsearch_HASH = HashingUtils::HashString("m3.xlarge.elasticsearch"); - static const int m3_2xlarge_elasticsearch_HASH = HashingUtils::HashString("m3.2xlarge.elasticsearch"); - static const int m4_large_elasticsearch_HASH = HashingUtils::HashString("m4.large.elasticsearch"); - static const int m4_xlarge_elasticsearch_HASH = HashingUtils::HashString("m4.xlarge.elasticsearch"); - static const int m4_2xlarge_elasticsearch_HASH = HashingUtils::HashString("m4.2xlarge.elasticsearch"); - static const int m4_4xlarge_elasticsearch_HASH = HashingUtils::HashString("m4.4xlarge.elasticsearch"); - static const int m4_10xlarge_elasticsearch_HASH = HashingUtils::HashString("m4.10xlarge.elasticsearch"); - static const int m5_large_elasticsearch_HASH = HashingUtils::HashString("m5.large.elasticsearch"); - static const int m5_xlarge_elasticsearch_HASH = HashingUtils::HashString("m5.xlarge.elasticsearch"); - static const int m5_2xlarge_elasticsearch_HASH = HashingUtils::HashString("m5.2xlarge.elasticsearch"); - static const int m5_4xlarge_elasticsearch_HASH = HashingUtils::HashString("m5.4xlarge.elasticsearch"); - static const int m5_12xlarge_elasticsearch_HASH = HashingUtils::HashString("m5.12xlarge.elasticsearch"); - static const int r5_large_elasticsearch_HASH = HashingUtils::HashString("r5.large.elasticsearch"); - static const int r5_xlarge_elasticsearch_HASH = HashingUtils::HashString("r5.xlarge.elasticsearch"); - static const int r5_2xlarge_elasticsearch_HASH = HashingUtils::HashString("r5.2xlarge.elasticsearch"); - static const int r5_4xlarge_elasticsearch_HASH = HashingUtils::HashString("r5.4xlarge.elasticsearch"); - static const int r5_12xlarge_elasticsearch_HASH = HashingUtils::HashString("r5.12xlarge.elasticsearch"); - static const int c5_large_elasticsearch_HASH = HashingUtils::HashString("c5.large.elasticsearch"); - static const int c5_xlarge_elasticsearch_HASH = HashingUtils::HashString("c5.xlarge.elasticsearch"); - static const int c5_2xlarge_elasticsearch_HASH = HashingUtils::HashString("c5.2xlarge.elasticsearch"); - static const int c5_4xlarge_elasticsearch_HASH = HashingUtils::HashString("c5.4xlarge.elasticsearch"); - static const int c5_9xlarge_elasticsearch_HASH = HashingUtils::HashString("c5.9xlarge.elasticsearch"); - static const int c5_18xlarge_elasticsearch_HASH = HashingUtils::HashString("c5.18xlarge.elasticsearch"); - static const int ultrawarm1_medium_elasticsearch_HASH = HashingUtils::HashString("ultrawarm1.medium.elasticsearch"); - static const int ultrawarm1_large_elasticsearch_HASH = HashingUtils::HashString("ultrawarm1.large.elasticsearch"); - static const int t2_micro_elasticsearch_HASH = HashingUtils::HashString("t2.micro.elasticsearch"); - static const int t2_small_elasticsearch_HASH = HashingUtils::HashString("t2.small.elasticsearch"); - static const int t2_medium_elasticsearch_HASH = HashingUtils::HashString("t2.medium.elasticsearch"); - static const int r3_large_elasticsearch_HASH = HashingUtils::HashString("r3.large.elasticsearch"); - static const int r3_xlarge_elasticsearch_HASH = HashingUtils::HashString("r3.xlarge.elasticsearch"); - static const int r3_2xlarge_elasticsearch_HASH = HashingUtils::HashString("r3.2xlarge.elasticsearch"); - static const int r3_4xlarge_elasticsearch_HASH = HashingUtils::HashString("r3.4xlarge.elasticsearch"); - static const int r3_8xlarge_elasticsearch_HASH = HashingUtils::HashString("r3.8xlarge.elasticsearch"); - static const int i2_xlarge_elasticsearch_HASH = HashingUtils::HashString("i2.xlarge.elasticsearch"); - static const int i2_2xlarge_elasticsearch_HASH = HashingUtils::HashString("i2.2xlarge.elasticsearch"); - static const int d2_xlarge_elasticsearch_HASH = HashingUtils::HashString("d2.xlarge.elasticsearch"); - static const int d2_2xlarge_elasticsearch_HASH = HashingUtils::HashString("d2.2xlarge.elasticsearch"); - static const int d2_4xlarge_elasticsearch_HASH = HashingUtils::HashString("d2.4xlarge.elasticsearch"); - static const int d2_8xlarge_elasticsearch_HASH = HashingUtils::HashString("d2.8xlarge.elasticsearch"); - static const int c4_large_elasticsearch_HASH = HashingUtils::HashString("c4.large.elasticsearch"); - static const int c4_xlarge_elasticsearch_HASH = HashingUtils::HashString("c4.xlarge.elasticsearch"); - static const int c4_2xlarge_elasticsearch_HASH = HashingUtils::HashString("c4.2xlarge.elasticsearch"); - static const int c4_4xlarge_elasticsearch_HASH = HashingUtils::HashString("c4.4xlarge.elasticsearch"); - static const int c4_8xlarge_elasticsearch_HASH = HashingUtils::HashString("c4.8xlarge.elasticsearch"); - static const int r4_large_elasticsearch_HASH = HashingUtils::HashString("r4.large.elasticsearch"); - static const int r4_xlarge_elasticsearch_HASH = HashingUtils::HashString("r4.xlarge.elasticsearch"); - static const int r4_2xlarge_elasticsearch_HASH = HashingUtils::HashString("r4.2xlarge.elasticsearch"); - static const int r4_4xlarge_elasticsearch_HASH = HashingUtils::HashString("r4.4xlarge.elasticsearch"); - static const int r4_8xlarge_elasticsearch_HASH = HashingUtils::HashString("r4.8xlarge.elasticsearch"); - static const int r4_16xlarge_elasticsearch_HASH = HashingUtils::HashString("r4.16xlarge.elasticsearch"); - static const int i3_large_elasticsearch_HASH = HashingUtils::HashString("i3.large.elasticsearch"); - static const int i3_xlarge_elasticsearch_HASH = HashingUtils::HashString("i3.xlarge.elasticsearch"); - static const int i3_2xlarge_elasticsearch_HASH = HashingUtils::HashString("i3.2xlarge.elasticsearch"); - static const int i3_4xlarge_elasticsearch_HASH = HashingUtils::HashString("i3.4xlarge.elasticsearch"); - static const int i3_8xlarge_elasticsearch_HASH = HashingUtils::HashString("i3.8xlarge.elasticsearch"); - static const int i3_16xlarge_elasticsearch_HASH = HashingUtils::HashString("i3.16xlarge.elasticsearch"); + static constexpr uint32_t m3_medium_elasticsearch_HASH = ConstExprHashingUtils::HashString("m3.medium.elasticsearch"); + static constexpr uint32_t m3_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("m3.large.elasticsearch"); + static constexpr uint32_t m3_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m3.xlarge.elasticsearch"); + static constexpr uint32_t m3_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m3.2xlarge.elasticsearch"); + static constexpr uint32_t m4_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("m4.large.elasticsearch"); + static constexpr uint32_t m4_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m4.xlarge.elasticsearch"); + static constexpr uint32_t m4_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m4.2xlarge.elasticsearch"); + static constexpr uint32_t m4_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m4.4xlarge.elasticsearch"); + static constexpr uint32_t m4_10xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m4.10xlarge.elasticsearch"); + static constexpr uint32_t m5_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("m5.large.elasticsearch"); + static constexpr uint32_t m5_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m5.xlarge.elasticsearch"); + static constexpr uint32_t m5_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m5.2xlarge.elasticsearch"); + static constexpr uint32_t m5_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m5.4xlarge.elasticsearch"); + static constexpr uint32_t m5_12xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("m5.12xlarge.elasticsearch"); + static constexpr uint32_t r5_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("r5.large.elasticsearch"); + static constexpr uint32_t r5_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r5.xlarge.elasticsearch"); + static constexpr uint32_t r5_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r5.2xlarge.elasticsearch"); + static constexpr uint32_t r5_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r5.4xlarge.elasticsearch"); + static constexpr uint32_t r5_12xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r5.12xlarge.elasticsearch"); + static constexpr uint32_t c5_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("c5.large.elasticsearch"); + static constexpr uint32_t c5_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c5.xlarge.elasticsearch"); + static constexpr uint32_t c5_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c5.2xlarge.elasticsearch"); + static constexpr uint32_t c5_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c5.4xlarge.elasticsearch"); + static constexpr uint32_t c5_9xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c5.9xlarge.elasticsearch"); + static constexpr uint32_t c5_18xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c5.18xlarge.elasticsearch"); + static constexpr uint32_t ultrawarm1_medium_elasticsearch_HASH = ConstExprHashingUtils::HashString("ultrawarm1.medium.elasticsearch"); + static constexpr uint32_t ultrawarm1_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("ultrawarm1.large.elasticsearch"); + static constexpr uint32_t t2_micro_elasticsearch_HASH = ConstExprHashingUtils::HashString("t2.micro.elasticsearch"); + static constexpr uint32_t t2_small_elasticsearch_HASH = ConstExprHashingUtils::HashString("t2.small.elasticsearch"); + static constexpr uint32_t t2_medium_elasticsearch_HASH = ConstExprHashingUtils::HashString("t2.medium.elasticsearch"); + static constexpr uint32_t r3_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("r3.large.elasticsearch"); + static constexpr uint32_t r3_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r3.xlarge.elasticsearch"); + static constexpr uint32_t r3_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r3.2xlarge.elasticsearch"); + static constexpr uint32_t r3_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r3.4xlarge.elasticsearch"); + static constexpr uint32_t r3_8xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r3.8xlarge.elasticsearch"); + static constexpr uint32_t i2_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i2.xlarge.elasticsearch"); + static constexpr uint32_t i2_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i2.2xlarge.elasticsearch"); + static constexpr uint32_t d2_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("d2.xlarge.elasticsearch"); + static constexpr uint32_t d2_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("d2.2xlarge.elasticsearch"); + static constexpr uint32_t d2_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("d2.4xlarge.elasticsearch"); + static constexpr uint32_t d2_8xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("d2.8xlarge.elasticsearch"); + static constexpr uint32_t c4_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("c4.large.elasticsearch"); + static constexpr uint32_t c4_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c4.xlarge.elasticsearch"); + static constexpr uint32_t c4_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c4.2xlarge.elasticsearch"); + static constexpr uint32_t c4_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c4.4xlarge.elasticsearch"); + static constexpr uint32_t c4_8xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("c4.8xlarge.elasticsearch"); + static constexpr uint32_t r4_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("r4.large.elasticsearch"); + static constexpr uint32_t r4_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r4.xlarge.elasticsearch"); + static constexpr uint32_t r4_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r4.2xlarge.elasticsearch"); + static constexpr uint32_t r4_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r4.4xlarge.elasticsearch"); + static constexpr uint32_t r4_8xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r4.8xlarge.elasticsearch"); + static constexpr uint32_t r4_16xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("r4.16xlarge.elasticsearch"); + static constexpr uint32_t i3_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("i3.large.elasticsearch"); + static constexpr uint32_t i3_xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i3.xlarge.elasticsearch"); + static constexpr uint32_t i3_2xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i3.2xlarge.elasticsearch"); + static constexpr uint32_t i3_4xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i3.4xlarge.elasticsearch"); + static constexpr uint32_t i3_8xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i3.8xlarge.elasticsearch"); + static constexpr uint32_t i3_16xlarge_elasticsearch_HASH = ConstExprHashingUtils::HashString("i3.16xlarge.elasticsearch"); ESPartitionInstanceType GetESPartitionInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == m3_medium_elasticsearch_HASH) { return ESPartitionInstanceType::m3_medium_elasticsearch; diff --git a/generated/src/aws-cpp-sdk-es/source/model/ESWarmPartitionInstanceType.cpp b/generated/src/aws-cpp-sdk-es/source/model/ESWarmPartitionInstanceType.cpp index 260d8166bfa..dbc0520677c 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/ESWarmPartitionInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/ESWarmPartitionInstanceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ESWarmPartitionInstanceTypeMapper { - static const int ultrawarm1_medium_elasticsearch_HASH = HashingUtils::HashString("ultrawarm1.medium.elasticsearch"); - static const int ultrawarm1_large_elasticsearch_HASH = HashingUtils::HashString("ultrawarm1.large.elasticsearch"); + static constexpr uint32_t ultrawarm1_medium_elasticsearch_HASH = ConstExprHashingUtils::HashString("ultrawarm1.medium.elasticsearch"); + static constexpr uint32_t ultrawarm1_large_elasticsearch_HASH = ConstExprHashingUtils::HashString("ultrawarm1.large.elasticsearch"); ESWarmPartitionInstanceType GetESWarmPartitionInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ultrawarm1_medium_elasticsearch_HASH) { return ESWarmPartitionInstanceType::ultrawarm1_medium_elasticsearch; diff --git a/generated/src/aws-cpp-sdk-es/source/model/EngineType.cpp b/generated/src/aws-cpp-sdk-es/source/model/EngineType.cpp index 01e4c5a9b54..a0045ce5d2a 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/EngineType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/EngineType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngineTypeMapper { - static const int OpenSearch_HASH = HashingUtils::HashString("OpenSearch"); - static const int Elasticsearch_HASH = HashingUtils::HashString("Elasticsearch"); + static constexpr uint32_t OpenSearch_HASH = ConstExprHashingUtils::HashString("OpenSearch"); + static constexpr uint32_t Elasticsearch_HASH = ConstExprHashingUtils::HashString("Elasticsearch"); EngineType GetEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OpenSearch_HASH) { return EngineType::OpenSearch; diff --git a/generated/src/aws-cpp-sdk-es/source/model/InboundCrossClusterSearchConnectionStatusCode.cpp b/generated/src/aws-cpp-sdk-es/source/model/InboundCrossClusterSearchConnectionStatusCode.cpp index d60534b7472..a094f8a080b 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/InboundCrossClusterSearchConnectionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/InboundCrossClusterSearchConnectionStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InboundCrossClusterSearchConnectionStatusCodeMapper { - static const int PENDING_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_ACCEPTANCE"); - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int REJECTING_HASH = HashingUtils::HashString("REJECTING"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPTANCE"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t REJECTING_HASH = ConstExprHashingUtils::HashString("REJECTING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); InboundCrossClusterSearchConnectionStatusCode GetInboundCrossClusterSearchConnectionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_ACCEPTANCE_HASH) { return InboundCrossClusterSearchConnectionStatusCode::PENDING_ACCEPTANCE; diff --git a/generated/src/aws-cpp-sdk-es/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-es/source/model/LogType.cpp index 50f70701b7f..ba338894c8c 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/LogType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LogTypeMapper { - static const int INDEX_SLOW_LOGS_HASH = HashingUtils::HashString("INDEX_SLOW_LOGS"); - static const int SEARCH_SLOW_LOGS_HASH = HashingUtils::HashString("SEARCH_SLOW_LOGS"); - static const int ES_APPLICATION_LOGS_HASH = HashingUtils::HashString("ES_APPLICATION_LOGS"); - static const int AUDIT_LOGS_HASH = HashingUtils::HashString("AUDIT_LOGS"); + static constexpr uint32_t INDEX_SLOW_LOGS_HASH = ConstExprHashingUtils::HashString("INDEX_SLOW_LOGS"); + static constexpr uint32_t SEARCH_SLOW_LOGS_HASH = ConstExprHashingUtils::HashString("SEARCH_SLOW_LOGS"); + static constexpr uint32_t ES_APPLICATION_LOGS_HASH = ConstExprHashingUtils::HashString("ES_APPLICATION_LOGS"); + static constexpr uint32_t AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("AUDIT_LOGS"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INDEX_SLOW_LOGS_HASH) { return LogType::INDEX_SLOW_LOGS; diff --git a/generated/src/aws-cpp-sdk-es/source/model/OptionState.cpp b/generated/src/aws-cpp-sdk-es/source/model/OptionState.cpp index a1101289595..efa752b60e2 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/OptionState.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/OptionState.cpp @@ -20,14 +20,14 @@ namespace Aws 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 constexpr uint32_t RequiresIndexDocuments_HASH = ConstExprHashingUtils::HashString("RequiresIndexDocuments"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); OptionState GetOptionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RequiresIndexDocuments_HASH) { return OptionState::RequiresIndexDocuments; diff --git a/generated/src/aws-cpp-sdk-es/source/model/OutboundCrossClusterSearchConnectionStatusCode.cpp b/generated/src/aws-cpp-sdk-es/source/model/OutboundCrossClusterSearchConnectionStatusCode.cpp index 30b55cd0a3e..90ae63993ae 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/OutboundCrossClusterSearchConnectionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/OutboundCrossClusterSearchConnectionStatusCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace OutboundCrossClusterSearchConnectionStatusCodeMapper { - static const int PENDING_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_ACCEPTANCE"); - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPTANCE"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); OutboundCrossClusterSearchConnectionStatusCode GetOutboundCrossClusterSearchConnectionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_ACCEPTANCE_HASH) { return OutboundCrossClusterSearchConnectionStatusCode::PENDING_ACCEPTANCE; diff --git a/generated/src/aws-cpp-sdk-es/source/model/OverallChangeStatus.cpp b/generated/src/aws-cpp-sdk-es/source/model/OverallChangeStatus.cpp index 8278f7ece7c..9b898ad122e 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/OverallChangeStatus.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/OverallChangeStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OverallChangeStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); OverallChangeStatus GetOverallChangeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return OverallChangeStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-es/source/model/PackageStatus.cpp b/generated/src/aws-cpp-sdk-es/source/model/PackageStatus.cpp index 0089bf393a6..cd46e620baa 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/PackageStatus.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/PackageStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace PackageStatusMapper { - static const int COPYING_HASH = HashingUtils::HashString("COPYING"); - static const int COPY_FAILED_HASH = HashingUtils::HashString("COPY_FAILED"); - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t COPYING_HASH = ConstExprHashingUtils::HashString("COPYING"); + static constexpr uint32_t COPY_FAILED_HASH = ConstExprHashingUtils::HashString("COPY_FAILED"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); PackageStatus GetPackageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPYING_HASH) { return PackageStatus::COPYING; diff --git a/generated/src/aws-cpp-sdk-es/source/model/PackageType.cpp b/generated/src/aws-cpp-sdk-es/source/model/PackageType.cpp index 6c19b769803..9dbd3335edb 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/PackageType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/PackageType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PackageTypeMapper { - static const int TXT_DICTIONARY_HASH = HashingUtils::HashString("TXT-DICTIONARY"); + static constexpr uint32_t TXT_DICTIONARY_HASH = ConstExprHashingUtils::HashString("TXT-DICTIONARY"); PackageType GetPackageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TXT_DICTIONARY_HASH) { return PackageType::TXT_DICTIONARY; diff --git a/generated/src/aws-cpp-sdk-es/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-es/source/model/PrincipalType.cpp index 66f2c3ff955..8a2f876aa42 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/PrincipalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PrincipalTypeMapper { - static const int AWS_ACCOUNT_HASH = HashingUtils::HashString("AWS_ACCOUNT"); - static const int AWS_SERVICE_HASH = HashingUtils::HashString("AWS_SERVICE"); + static constexpr uint32_t AWS_ACCOUNT_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT"); + static constexpr uint32_t AWS_SERVICE_HASH = ConstExprHashingUtils::HashString("AWS_SERVICE"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ACCOUNT_HASH) { return PrincipalType::AWS_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-es/source/model/ReservedElasticsearchInstancePaymentOption.cpp b/generated/src/aws-cpp-sdk-es/source/model/ReservedElasticsearchInstancePaymentOption.cpp index 19901b66eb9..6b3ef1076d1 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/ReservedElasticsearchInstancePaymentOption.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/ReservedElasticsearchInstancePaymentOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReservedElasticsearchInstancePaymentOptionMapper { - static const int ALL_UPFRONT_HASH = HashingUtils::HashString("ALL_UPFRONT"); - static const int PARTIAL_UPFRONT_HASH = HashingUtils::HashString("PARTIAL_UPFRONT"); - static const int NO_UPFRONT_HASH = HashingUtils::HashString("NO_UPFRONT"); + static constexpr uint32_t ALL_UPFRONT_HASH = ConstExprHashingUtils::HashString("ALL_UPFRONT"); + static constexpr uint32_t PARTIAL_UPFRONT_HASH = ConstExprHashingUtils::HashString("PARTIAL_UPFRONT"); + static constexpr uint32_t NO_UPFRONT_HASH = ConstExprHashingUtils::HashString("NO_UPFRONT"); ReservedElasticsearchInstancePaymentOption GetReservedElasticsearchInstancePaymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_UPFRONT_HASH) { return ReservedElasticsearchInstancePaymentOption::ALL_UPFRONT; diff --git a/generated/src/aws-cpp-sdk-es/source/model/RollbackOnDisable.cpp b/generated/src/aws-cpp-sdk-es/source/model/RollbackOnDisable.cpp index bacf07adfab..0d2c5eee38c 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/RollbackOnDisable.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/RollbackOnDisable.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RollbackOnDisableMapper { - static const int NO_ROLLBACK_HASH = HashingUtils::HashString("NO_ROLLBACK"); - static const int DEFAULT_ROLLBACK_HASH = HashingUtils::HashString("DEFAULT_ROLLBACK"); + static constexpr uint32_t NO_ROLLBACK_HASH = ConstExprHashingUtils::HashString("NO_ROLLBACK"); + static constexpr uint32_t DEFAULT_ROLLBACK_HASH = ConstExprHashingUtils::HashString("DEFAULT_ROLLBACK"); RollbackOnDisable GetRollbackOnDisableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_ROLLBACK_HASH) { return RollbackOnDisable::NO_ROLLBACK; diff --git a/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneActionType.cpp b/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneActionType.cpp index 8a6532e804a..7f736d024de 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneActionType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduledAutoTuneActionTypeMapper { - static const int JVM_HEAP_SIZE_TUNING_HASH = HashingUtils::HashString("JVM_HEAP_SIZE_TUNING"); - static const int JVM_YOUNG_GEN_TUNING_HASH = HashingUtils::HashString("JVM_YOUNG_GEN_TUNING"); + static constexpr uint32_t JVM_HEAP_SIZE_TUNING_HASH = ConstExprHashingUtils::HashString("JVM_HEAP_SIZE_TUNING"); + static constexpr uint32_t JVM_YOUNG_GEN_TUNING_HASH = ConstExprHashingUtils::HashString("JVM_YOUNG_GEN_TUNING"); ScheduledAutoTuneActionType GetScheduledAutoTuneActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JVM_HEAP_SIZE_TUNING_HASH) { return ScheduledAutoTuneActionType::JVM_HEAP_SIZE_TUNING; diff --git a/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneSeverityType.cpp b/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneSeverityType.cpp index dccdebb267c..065bcd8520a 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneSeverityType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/ScheduledAutoTuneSeverityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScheduledAutoTuneSeverityTypeMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); ScheduledAutoTuneSeverityType GetScheduledAutoTuneSeverityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return ScheduledAutoTuneSeverityType::LOW; diff --git a/generated/src/aws-cpp-sdk-es/source/model/TLSSecurityPolicy.cpp b/generated/src/aws-cpp-sdk-es/source/model/TLSSecurityPolicy.cpp index df14400ae92..a3635f251e2 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/TLSSecurityPolicy.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/TLSSecurityPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws 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"); + static constexpr uint32_t Policy_Min_TLS_1_0_2019_07_HASH = ConstExprHashingUtils::HashString("Policy-Min-TLS-1-0-2019-07"); + static constexpr uint32_t Policy_Min_TLS_1_2_2019_07_HASH = ConstExprHashingUtils::HashString("Policy-Min-TLS-1-2-2019-07"); TLSSecurityPolicy GetTLSSecurityPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t 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; diff --git a/generated/src/aws-cpp-sdk-es/source/model/TimeUnit.cpp b/generated/src/aws-cpp-sdk-es/source/model/TimeUnit.cpp index 1a3c64b495b..c902fd2e609 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/TimeUnit.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/TimeUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TimeUnitMapper { - static const int HOURS_HASH = HashingUtils::HashString("HOURS"); + static constexpr uint32_t HOURS_HASH = ConstExprHashingUtils::HashString("HOURS"); TimeUnit GetTimeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURS_HASH) { return TimeUnit::HOURS; diff --git a/generated/src/aws-cpp-sdk-es/source/model/UpgradeStatus.cpp b/generated/src/aws-cpp-sdk-es/source/model/UpgradeStatus.cpp index e7871c76f7b..6783146690e 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/UpgradeStatus.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/UpgradeStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UpgradeStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int SUCCEEDED_WITH_ISSUES_HASH = HashingUtils::HashString("SUCCEEDED_WITH_ISSUES"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t SUCCEEDED_WITH_ISSUES_HASH = ConstExprHashingUtils::HashString("SUCCEEDED_WITH_ISSUES"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); UpgradeStatus GetUpgradeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return UpgradeStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-es/source/model/UpgradeStep.cpp b/generated/src/aws-cpp-sdk-es/source/model/UpgradeStep.cpp index 9d98e90fb2c..08383116c30 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/UpgradeStep.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/UpgradeStep.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UpgradeStepMapper { - static const int PRE_UPGRADE_CHECK_HASH = HashingUtils::HashString("PRE_UPGRADE_CHECK"); - static const int SNAPSHOT_HASH = HashingUtils::HashString("SNAPSHOT"); - static const int UPGRADE_HASH = HashingUtils::HashString("UPGRADE"); + static constexpr uint32_t PRE_UPGRADE_CHECK_HASH = ConstExprHashingUtils::HashString("PRE_UPGRADE_CHECK"); + static constexpr uint32_t SNAPSHOT_HASH = ConstExprHashingUtils::HashString("SNAPSHOT"); + static constexpr uint32_t UPGRADE_HASH = ConstExprHashingUtils::HashString("UPGRADE"); UpgradeStep GetUpgradeStepForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRE_UPGRADE_CHECK_HASH) { return UpgradeStep::PRE_UPGRADE_CHECK; diff --git a/generated/src/aws-cpp-sdk-es/source/model/VolumeType.cpp b/generated/src/aws-cpp-sdk-es/source/model/VolumeType.cpp index a5699e1ae77..94cca9a768f 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/VolumeType.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/VolumeType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VolumeTypeMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int gp2_HASH = HashingUtils::HashString("gp2"); - static const int io1_HASH = HashingUtils::HashString("io1"); - static const int gp3_HASH = HashingUtils::HashString("gp3"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t gp2_HASH = ConstExprHashingUtils::HashString("gp2"); + static constexpr uint32_t io1_HASH = ConstExprHashingUtils::HashString("io1"); + static constexpr uint32_t gp3_HASH = ConstExprHashingUtils::HashString("gp3"); VolumeType GetVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return VolumeType::standard; diff --git a/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointErrorCode.cpp b/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointErrorCode.cpp index ceb02ca62fe..a5f9e526bac 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VpcEndpointErrorCodeMapper { - static const int ENDPOINT_NOT_FOUND_HASH = HashingUtils::HashString("ENDPOINT_NOT_FOUND"); - static const int SERVER_ERROR_HASH = HashingUtils::HashString("SERVER_ERROR"); + static constexpr uint32_t ENDPOINT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENDPOINT_NOT_FOUND"); + static constexpr uint32_t SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("SERVER_ERROR"); VpcEndpointErrorCode GetVpcEndpointErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENDPOINT_NOT_FOUND_HASH) { return VpcEndpointErrorCode::ENDPOINT_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointStatus.cpp b/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointStatus.cpp index 11326e445d1..964afe17792 100644 --- a/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-es/source/model/VpcEndpointStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace VpcEndpointStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); VpcEndpointStatus GetVpcEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return VpcEndpointStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeErrors.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeErrors.cpp index fd69b1c2f4b..01bd87cd8dc 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeErrors.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeErrors.cpp @@ -18,21 +18,21 @@ namespace EventBridge namespace EventBridgeErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int OPERATION_DISABLED_HASH = HashingUtils::HashString("OperationDisabledException"); -static const int INVALID_EVENT_PATTERN_HASH = HashingUtils::HashString("InvalidEventPatternException"); -static const int MANAGED_RULE_HASH = HashingUtils::HashString("ManagedRuleException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int POLICY_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("PolicyLengthExceededException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int ILLEGAL_STATUS_HASH = HashingUtils::HashString("IllegalStatusException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t OPERATION_DISABLED_HASH = ConstExprHashingUtils::HashString("OperationDisabledException"); +static constexpr uint32_t INVALID_EVENT_PATTERN_HASH = ConstExprHashingUtils::HashString("InvalidEventPatternException"); +static constexpr uint32_t MANAGED_RULE_HASH = ConstExprHashingUtils::HashString("ManagedRuleException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t POLICY_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PolicyLengthExceededException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t ILLEGAL_STATUS_HASH = ConstExprHashingUtils::HashString("IllegalStatusException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationHttpMethod.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationHttpMethod.cpp index 9ab80480b4b..93cc02d0b51 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationHttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationHttpMethod.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ApiDestinationHttpMethodMapper { - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int OPTIONS_HASH = HashingUtils::HashString("OPTIONS"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int PATCH_HASH = HashingUtils::HashString("PATCH"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t OPTIONS_HASH = ConstExprHashingUtils::HashString("OPTIONS"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t PATCH_HASH = ConstExprHashingUtils::HashString("PATCH"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ApiDestinationHttpMethod GetApiDestinationHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POST_HASH) { return ApiDestinationHttpMethod::POST; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationState.cpp index 78e638e4516..1dfca3ceb0f 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ApiDestinationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApiDestinationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ApiDestinationState GetApiDestinationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ApiDestinationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ArchiveState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ArchiveState.cpp index d7c15a3d8c0..a9502672f47 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ArchiveState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ArchiveState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ArchiveStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ArchiveState GetArchiveStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ArchiveState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/AssignPublicIp.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/AssignPublicIp.cpp index 4639a23ecbc..5ee6705700e 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/AssignPublicIp.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/AssignPublicIp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssignPublicIpMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignPublicIp GetAssignPublicIpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignPublicIp::ENABLED; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionAuthorizationType.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionAuthorizationType.cpp index 2a205f6f1aa..fc41861ec89 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionAuthorizationType.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionAuthorizationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionAuthorizationTypeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int OAUTH_CLIENT_CREDENTIALS_HASH = HashingUtils::HashString("OAUTH_CLIENT_CREDENTIALS"); - static const int API_KEY_HASH = HashingUtils::HashString("API_KEY"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t OAUTH_CLIENT_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("OAUTH_CLIENT_CREDENTIALS"); + static constexpr uint32_t API_KEY_HASH = ConstExprHashingUtils::HashString("API_KEY"); ConnectionAuthorizationType GetConnectionAuthorizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return ConnectionAuthorizationType::BASIC; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionOAuthHttpMethod.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionOAuthHttpMethod.cpp index 9935f7bac25..f65ae7783e0 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionOAuthHttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionOAuthHttpMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionOAuthHttpMethodMapper { - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); ConnectionOAuthHttpMethod GetConnectionOAuthHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GET__HASH) { return ConnectionOAuthHttpMethod::GET_; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionState.cpp index 87f9b7fdf06..33a62ce3426 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ConnectionState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ConnectionStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int AUTHORIZED_HASH = HashingUtils::HashString("AUTHORIZED"); - static const int DEAUTHORIZED_HASH = HashingUtils::HashString("DEAUTHORIZED"); - static const int AUTHORIZING_HASH = HashingUtils::HashString("AUTHORIZING"); - static const int DEAUTHORIZING_HASH = HashingUtils::HashString("DEAUTHORIZING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t AUTHORIZED_HASH = ConstExprHashingUtils::HashString("AUTHORIZED"); + static constexpr uint32_t DEAUTHORIZED_HASH = ConstExprHashingUtils::HashString("DEAUTHORIZED"); + static constexpr uint32_t AUTHORIZING_HASH = ConstExprHashingUtils::HashString("AUTHORIZING"); + static constexpr uint32_t DEAUTHORIZING_HASH = ConstExprHashingUtils::HashString("DEAUTHORIZING"); ConnectionState GetConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConnectionState::CREATING; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/EndpointState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/EndpointState.cpp index ce2c99e4820..1f9c4507d41 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/EndpointState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/EndpointState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace EndpointStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); EndpointState GetEndpointStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return EndpointState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/EventSourceState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/EventSourceState.cpp index ebd498545d1..281238abf97 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/EventSourceState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/EventSourceState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventSourceStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); EventSourceState GetEventSourceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return EventSourceState::PENDING; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/LaunchType.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/LaunchType.cpp index d5d6c79489b..842c5c912eb 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/LaunchType.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/LaunchType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LaunchTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); LaunchType GetLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return LaunchType::EC2; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementConstraintType.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementConstraintType.cpp index 073256409e4..bbe7133b8dc 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementConstraintType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlacementConstraintTypeMapper { - static const int distinctInstance_HASH = HashingUtils::HashString("distinctInstance"); - static const int memberOf_HASH = HashingUtils::HashString("memberOf"); + static constexpr uint32_t distinctInstance_HASH = ConstExprHashingUtils::HashString("distinctInstance"); + static constexpr uint32_t memberOf_HASH = ConstExprHashingUtils::HashString("memberOf"); PlacementConstraintType GetPlacementConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == distinctInstance_HASH) { return PlacementConstraintType::distinctInstance; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementStrategyType.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementStrategyType.cpp index e787d9c8c62..a5c25e667a7 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/PlacementStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementStrategyTypeMapper { - static const int random_HASH = HashingUtils::HashString("random"); - static const int spread_HASH = HashingUtils::HashString("spread"); - static const int binpack_HASH = HashingUtils::HashString("binpack"); + static constexpr uint32_t random_HASH = ConstExprHashingUtils::HashString("random"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); + static constexpr uint32_t binpack_HASH = ConstExprHashingUtils::HashString("binpack"); PlacementStrategyType GetPlacementStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == random_HASH) { return PlacementStrategyType::random; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/PropagateTags.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/PropagateTags.cpp index 6d2329b5b2b..b16d3a0cbbd 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/PropagateTags.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/PropagateTags.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PropagateTagsMapper { - static const int TASK_DEFINITION_HASH = HashingUtils::HashString("TASK_DEFINITION"); + static constexpr uint32_t TASK_DEFINITION_HASH = ConstExprHashingUtils::HashString("TASK_DEFINITION"); PropagateTags GetPropagateTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_DEFINITION_HASH) { return PropagateTags::TASK_DEFINITION; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplayState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplayState.cpp index cc7ffd0ccf4..d101033428e 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplayState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplayState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReplayStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReplayState GetReplayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return ReplayState::STARTING; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplicationState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplicationState.cpp index ee574eaf786..9af4a5b77a3 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplicationState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/ReplicationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ReplicationState GetReplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ReplicationState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/model/RuleState.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/model/RuleState.cpp index ea8e940ae5d..38ee7dd0931 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/model/RuleState.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/model/RuleState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); RuleState GetRuleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RuleState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsErrors.cpp b/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsErrors.cpp index d4357f047d4..55ec3ee829f 100644 --- a/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsErrors.cpp +++ b/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsErrors.cpp @@ -18,21 +18,21 @@ namespace CloudWatchEvents namespace CloudWatchEventsErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int OPERATION_DISABLED_HASH = HashingUtils::HashString("OperationDisabledException"); -static const int INVALID_EVENT_PATTERN_HASH = HashingUtils::HashString("InvalidEventPatternException"); -static const int MANAGED_RULE_HASH = HashingUtils::HashString("ManagedRuleException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int POLICY_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("PolicyLengthExceededException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int ILLEGAL_STATUS_HASH = HashingUtils::HashString("IllegalStatusException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t OPERATION_DISABLED_HASH = ConstExprHashingUtils::HashString("OperationDisabledException"); +static constexpr uint32_t INVALID_EVENT_PATTERN_HASH = ConstExprHashingUtils::HashString("InvalidEventPatternException"); +static constexpr uint32_t MANAGED_RULE_HASH = ConstExprHashingUtils::HashString("ManagedRuleException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t POLICY_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PolicyLengthExceededException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t ILLEGAL_STATUS_HASH = ConstExprHashingUtils::HashString("IllegalStatusException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationHttpMethod.cpp b/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationHttpMethod.cpp index dfe3b35c312..c84fc77e5bc 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationHttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationHttpMethod.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ApiDestinationHttpMethodMapper { - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int OPTIONS_HASH = HashingUtils::HashString("OPTIONS"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int PATCH_HASH = HashingUtils::HashString("PATCH"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t OPTIONS_HASH = ConstExprHashingUtils::HashString("OPTIONS"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t PATCH_HASH = ConstExprHashingUtils::HashString("PATCH"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ApiDestinationHttpMethod GetApiDestinationHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POST_HASH) { return ApiDestinationHttpMethod::POST; diff --git a/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationState.cpp b/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationState.cpp index f1de2598056..8981108d4dd 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationState.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ApiDestinationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApiDestinationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ApiDestinationState GetApiDestinationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ApiDestinationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-events/source/model/ArchiveState.cpp b/generated/src/aws-cpp-sdk-events/source/model/ArchiveState.cpp index cebb67c6a9b..9e68753ca01 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ArchiveState.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ArchiveState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ArchiveStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ArchiveState GetArchiveStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ArchiveState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-events/source/model/AssignPublicIp.cpp b/generated/src/aws-cpp-sdk-events/source/model/AssignPublicIp.cpp index c89c65154d3..aefd93504d6 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/AssignPublicIp.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/AssignPublicIp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssignPublicIpMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignPublicIp GetAssignPublicIpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignPublicIp::ENABLED; diff --git a/generated/src/aws-cpp-sdk-events/source/model/ConnectionAuthorizationType.cpp b/generated/src/aws-cpp-sdk-events/source/model/ConnectionAuthorizationType.cpp index cf7e1f06570..222eef0a05f 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ConnectionAuthorizationType.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ConnectionAuthorizationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionAuthorizationTypeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int OAUTH_CLIENT_CREDENTIALS_HASH = HashingUtils::HashString("OAUTH_CLIENT_CREDENTIALS"); - static const int API_KEY_HASH = HashingUtils::HashString("API_KEY"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t OAUTH_CLIENT_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("OAUTH_CLIENT_CREDENTIALS"); + static constexpr uint32_t API_KEY_HASH = ConstExprHashingUtils::HashString("API_KEY"); ConnectionAuthorizationType GetConnectionAuthorizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return ConnectionAuthorizationType::BASIC; diff --git a/generated/src/aws-cpp-sdk-events/source/model/ConnectionOAuthHttpMethod.cpp b/generated/src/aws-cpp-sdk-events/source/model/ConnectionOAuthHttpMethod.cpp index 629f47170ae..5d32000647c 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ConnectionOAuthHttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ConnectionOAuthHttpMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionOAuthHttpMethodMapper { - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); ConnectionOAuthHttpMethod GetConnectionOAuthHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GET__HASH) { return ConnectionOAuthHttpMethod::GET_; diff --git a/generated/src/aws-cpp-sdk-events/source/model/ConnectionState.cpp b/generated/src/aws-cpp-sdk-events/source/model/ConnectionState.cpp index 71a77f7d662..f4f4a354606 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ConnectionState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ConnectionStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int AUTHORIZED_HASH = HashingUtils::HashString("AUTHORIZED"); - static const int DEAUTHORIZED_HASH = HashingUtils::HashString("DEAUTHORIZED"); - static const int AUTHORIZING_HASH = HashingUtils::HashString("AUTHORIZING"); - static const int DEAUTHORIZING_HASH = HashingUtils::HashString("DEAUTHORIZING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t AUTHORIZED_HASH = ConstExprHashingUtils::HashString("AUTHORIZED"); + static constexpr uint32_t DEAUTHORIZED_HASH = ConstExprHashingUtils::HashString("DEAUTHORIZED"); + static constexpr uint32_t AUTHORIZING_HASH = ConstExprHashingUtils::HashString("AUTHORIZING"); + static constexpr uint32_t DEAUTHORIZING_HASH = ConstExprHashingUtils::HashString("DEAUTHORIZING"); ConnectionState GetConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConnectionState::CREATING; diff --git a/generated/src/aws-cpp-sdk-events/source/model/EventSourceState.cpp b/generated/src/aws-cpp-sdk-events/source/model/EventSourceState.cpp index 5d3f4620710..83cec455bd6 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/EventSourceState.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/EventSourceState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventSourceStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); EventSourceState GetEventSourceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return EventSourceState::PENDING; diff --git a/generated/src/aws-cpp-sdk-events/source/model/LaunchType.cpp b/generated/src/aws-cpp-sdk-events/source/model/LaunchType.cpp index 9e34789abd7..46b633b732e 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/LaunchType.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/LaunchType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LaunchTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); LaunchType GetLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return LaunchType::EC2; diff --git a/generated/src/aws-cpp-sdk-events/source/model/PlacementConstraintType.cpp b/generated/src/aws-cpp-sdk-events/source/model/PlacementConstraintType.cpp index 4a798143cdd..92024d906b4 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/PlacementConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/PlacementConstraintType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlacementConstraintTypeMapper { - static const int distinctInstance_HASH = HashingUtils::HashString("distinctInstance"); - static const int memberOf_HASH = HashingUtils::HashString("memberOf"); + static constexpr uint32_t distinctInstance_HASH = ConstExprHashingUtils::HashString("distinctInstance"); + static constexpr uint32_t memberOf_HASH = ConstExprHashingUtils::HashString("memberOf"); PlacementConstraintType GetPlacementConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == distinctInstance_HASH) { return PlacementConstraintType::distinctInstance; diff --git a/generated/src/aws-cpp-sdk-events/source/model/PlacementStrategyType.cpp b/generated/src/aws-cpp-sdk-events/source/model/PlacementStrategyType.cpp index 87d246c98eb..f2d91292d56 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/PlacementStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/PlacementStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementStrategyTypeMapper { - static const int random_HASH = HashingUtils::HashString("random"); - static const int spread_HASH = HashingUtils::HashString("spread"); - static const int binpack_HASH = HashingUtils::HashString("binpack"); + static constexpr uint32_t random_HASH = ConstExprHashingUtils::HashString("random"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); + static constexpr uint32_t binpack_HASH = ConstExprHashingUtils::HashString("binpack"); PlacementStrategyType GetPlacementStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == random_HASH) { return PlacementStrategyType::random; diff --git a/generated/src/aws-cpp-sdk-events/source/model/PropagateTags.cpp b/generated/src/aws-cpp-sdk-events/source/model/PropagateTags.cpp index 462878ad928..1f72068b804 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/PropagateTags.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/PropagateTags.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PropagateTagsMapper { - static const int TASK_DEFINITION_HASH = HashingUtils::HashString("TASK_DEFINITION"); + static constexpr uint32_t TASK_DEFINITION_HASH = ConstExprHashingUtils::HashString("TASK_DEFINITION"); PropagateTags GetPropagateTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_DEFINITION_HASH) { return PropagateTags::TASK_DEFINITION; diff --git a/generated/src/aws-cpp-sdk-events/source/model/ReplayState.cpp b/generated/src/aws-cpp-sdk-events/source/model/ReplayState.cpp index f87ea64e86a..912d7b2a8b8 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/ReplayState.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/ReplayState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReplayStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReplayState GetReplayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return ReplayState::STARTING; diff --git a/generated/src/aws-cpp-sdk-events/source/model/RuleState.cpp b/generated/src/aws-cpp-sdk-events/source/model/RuleState.cpp index 3a8aa0093a1..5b4ff28b818 100644 --- a/generated/src/aws-cpp-sdk-events/source/model/RuleState.cpp +++ b/generated/src/aws-cpp-sdk-events/source/model/RuleState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); RuleState GetRuleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RuleState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-evidently/source/CloudWatchEvidentlyErrors.cpp b/generated/src/aws-cpp-sdk-evidently/source/CloudWatchEvidentlyErrors.cpp index f51c41538d5..d8a61d8eb24 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/CloudWatchEvidentlyErrors.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/CloudWatchEvidentlyErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_CLOUDWATCHEVIDENTLY_API ValidationException CloudWatchEvidentlyEr namespace CloudWatchEvidentlyErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ChangeDirectionEnum.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ChangeDirectionEnum.cpp index 522b1bd4d50..c1e2f81df0f 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ChangeDirectionEnum.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ChangeDirectionEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeDirectionEnumMapper { - static const int INCREASE_HASH = HashingUtils::HashString("INCREASE"); - static const int DECREASE_HASH = HashingUtils::HashString("DECREASE"); + static constexpr uint32_t INCREASE_HASH = ConstExprHashingUtils::HashString("INCREASE"); + static constexpr uint32_t DECREASE_HASH = ConstExprHashingUtils::HashString("DECREASE"); ChangeDirectionEnum GetChangeDirectionEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCREASE_HASH) { return ChangeDirectionEnum::INCREASE; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/EventType.cpp index a2578e94890..35dc67d4198 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/EventType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventTypeMapper { - static const int aws_evidently_evaluation_HASH = HashingUtils::HashString("aws.evidently.evaluation"); - static const int aws_evidently_custom_HASH = HashingUtils::HashString("aws.evidently.custom"); + static constexpr uint32_t aws_evidently_evaluation_HASH = ConstExprHashingUtils::HashString("aws.evidently.evaluation"); + static constexpr uint32_t aws_evidently_custom_HASH = ConstExprHashingUtils::HashString("aws.evidently.custom"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_evidently_evaluation_HASH) { return EventType::aws_evidently_evaluation; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentBaseStat.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentBaseStat.cpp index bc505d2dacb..1e03b76563f 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentBaseStat.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentBaseStat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExperimentBaseStatMapper { - static const int Mean_HASH = HashingUtils::HashString("Mean"); + static constexpr uint32_t Mean_HASH = ConstExprHashingUtils::HashString("Mean"); ExperimentBaseStat GetExperimentBaseStatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Mean_HASH) { return ExperimentBaseStat::Mean; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentReportName.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentReportName.cpp index 9c7bd01d65a..4fd81a53fc5 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentReportName.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentReportName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExperimentReportNameMapper { - static const int BayesianInference_HASH = HashingUtils::HashString("BayesianInference"); + static constexpr uint32_t BayesianInference_HASH = ConstExprHashingUtils::HashString("BayesianInference"); ExperimentReportName GetExperimentReportNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BayesianInference_HASH) { return ExperimentReportName::BayesianInference; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultRequestType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultRequestType.cpp index d486742be21..0ede08c2353 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultRequestType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultRequestType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExperimentResultRequestTypeMapper { - static const int BaseStat_HASH = HashingUtils::HashString("BaseStat"); - static const int TreatmentEffect_HASH = HashingUtils::HashString("TreatmentEffect"); - static const int ConfidenceInterval_HASH = HashingUtils::HashString("ConfidenceInterval"); - static const int PValue_HASH = HashingUtils::HashString("PValue"); + static constexpr uint32_t BaseStat_HASH = ConstExprHashingUtils::HashString("BaseStat"); + static constexpr uint32_t TreatmentEffect_HASH = ConstExprHashingUtils::HashString("TreatmentEffect"); + static constexpr uint32_t ConfidenceInterval_HASH = ConstExprHashingUtils::HashString("ConfidenceInterval"); + static constexpr uint32_t PValue_HASH = ConstExprHashingUtils::HashString("PValue"); ExperimentResultRequestType GetExperimentResultRequestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BaseStat_HASH) { return ExperimentResultRequestType::BaseStat; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultResponseType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultResponseType.cpp index a82e9c2d747..c37942475ea 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultResponseType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentResultResponseType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ExperimentResultResponseTypeMapper { - static const int Mean_HASH = HashingUtils::HashString("Mean"); - static const int TreatmentEffect_HASH = HashingUtils::HashString("TreatmentEffect"); - static const int ConfidenceIntervalUpperBound_HASH = HashingUtils::HashString("ConfidenceIntervalUpperBound"); - static const int ConfidenceIntervalLowerBound_HASH = HashingUtils::HashString("ConfidenceIntervalLowerBound"); - static const int PValue_HASH = HashingUtils::HashString("PValue"); + static constexpr uint32_t Mean_HASH = ConstExprHashingUtils::HashString("Mean"); + static constexpr uint32_t TreatmentEffect_HASH = ConstExprHashingUtils::HashString("TreatmentEffect"); + static constexpr uint32_t ConfidenceIntervalUpperBound_HASH = ConstExprHashingUtils::HashString("ConfidenceIntervalUpperBound"); + static constexpr uint32_t ConfidenceIntervalLowerBound_HASH = ConstExprHashingUtils::HashString("ConfidenceIntervalLowerBound"); + static constexpr uint32_t PValue_HASH = ConstExprHashingUtils::HashString("PValue"); ExperimentResultResponseType GetExperimentResultResponseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Mean_HASH) { return ExperimentResultResponseType::Mean; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStatus.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStatus.cpp index 67ce9d4d1e7..d41d0e19b45 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStatus.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ExperimentStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); ExperimentStatus GetExperimentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return ExperimentStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStopDesiredState.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStopDesiredState.cpp index 42820b474da..7ad3d943947 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStopDesiredState.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentStopDesiredState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExperimentStopDesiredStateMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); ExperimentStopDesiredState GetExperimentStopDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return ExperimentStopDesiredState::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentType.cpp index 616b17ac107..f982d757fb5 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ExperimentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExperimentTypeMapper { - static const int aws_evidently_onlineab_HASH = HashingUtils::HashString("aws.evidently.onlineab"); + static constexpr uint32_t aws_evidently_onlineab_HASH = ConstExprHashingUtils::HashString("aws.evidently.onlineab"); ExperimentType GetExperimentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_evidently_onlineab_HASH) { return ExperimentType::aws_evidently_onlineab; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/FeatureEvaluationStrategy.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/FeatureEvaluationStrategy.cpp index 854a6d2b6ae..68cbb899a6d 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/FeatureEvaluationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/FeatureEvaluationStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureEvaluationStrategyMapper { - static const int ALL_RULES_HASH = HashingUtils::HashString("ALL_RULES"); - static const int DEFAULT_VARIATION_HASH = HashingUtils::HashString("DEFAULT_VARIATION"); + static constexpr uint32_t ALL_RULES_HASH = ConstExprHashingUtils::HashString("ALL_RULES"); + static constexpr uint32_t DEFAULT_VARIATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_VARIATION"); FeatureEvaluationStrategy GetFeatureEvaluationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_RULES_HASH) { return FeatureEvaluationStrategy::ALL_RULES; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/FeatureStatus.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/FeatureStatus.cpp index a4a99c9f8dd..95a37b9c3da 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/FeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/FeatureStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); FeatureStatus GetFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return FeatureStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStatus.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStatus.cpp index a2131b4ceba..0aceb8e2c0f 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStatus.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LaunchStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); LaunchStatus GetLaunchStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return LaunchStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStopDesiredState.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStopDesiredState.cpp index 2e953e734b7..af18c2e4c92 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStopDesiredState.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/LaunchStopDesiredState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchStopDesiredStateMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); LaunchStopDesiredState GetLaunchStopDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return LaunchStopDesiredState::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/LaunchType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/LaunchType.cpp index 8529f1b3c12..2f54f913686 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/LaunchType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/LaunchType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LaunchTypeMapper { - static const int aws_evidently_splits_HASH = HashingUtils::HashString("aws.evidently.splits"); + static constexpr uint32_t aws_evidently_splits_HASH = ConstExprHashingUtils::HashString("aws.evidently.splits"); LaunchType GetLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_evidently_splits_HASH) { return LaunchType::aws_evidently_splits; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ProjectStatus.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ProjectStatus.cpp index f76c5f810cd..efa5e742d69 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ProjectStatus.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ProjectStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProjectStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); ProjectStatus GetProjectStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return ProjectStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/SegmentReferenceResourceType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/SegmentReferenceResourceType.cpp index 015aba63620..2e242995ac4 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/SegmentReferenceResourceType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/SegmentReferenceResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SegmentReferenceResourceTypeMapper { - static const int EXPERIMENT_HASH = HashingUtils::HashString("EXPERIMENT"); - static const int LAUNCH_HASH = HashingUtils::HashString("LAUNCH"); + static constexpr uint32_t EXPERIMENT_HASH = ConstExprHashingUtils::HashString("EXPERIMENT"); + static constexpr uint32_t LAUNCH_HASH = ConstExprHashingUtils::HashString("LAUNCH"); SegmentReferenceResourceType GetSegmentReferenceResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXPERIMENT_HASH) { return SegmentReferenceResourceType::EXPERIMENT; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/ValidationExceptionReason.cpp index 41ccabfff82..f96fbc93fd3 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-evidently/source/model/VariationValueType.cpp b/generated/src/aws-cpp-sdk-evidently/source/model/VariationValueType.cpp index cc59d41c765..97ef49d05ba 100644 --- a/generated/src/aws-cpp-sdk-evidently/source/model/VariationValueType.cpp +++ b/generated/src/aws-cpp-sdk-evidently/source/model/VariationValueType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VariationValueTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int LONG_HASH = HashingUtils::HashString("LONG"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t LONG_HASH = ConstExprHashingUtils::HashString("LONG"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); VariationValueType GetVariationValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return VariationValueType::STRING; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataErrors.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataErrors.cpp index e3b9d9e797a..97293a9874c 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataErrors.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataErrors.cpp @@ -40,14 +40,14 @@ template<> AWS_FINSPACEDATA_API ValidationException FinSpaceDataError::GetModele namespace FinSpaceDataErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/ApiAccess.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/ApiAccess.cpp index fc704788f48..1d67c413766 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/ApiAccess.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/ApiAccess.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApiAccessMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ApiAccess GetApiAccessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ApiAccess::ENABLED; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/ApplicationPermission.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/ApplicationPermission.cpp index 5d968b31348..4f5d631b8e0 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/ApplicationPermission.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/ApplicationPermission.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ApplicationPermissionMapper { - static const int CreateDataset_HASH = HashingUtils::HashString("CreateDataset"); - static const int ManageClusters_HASH = HashingUtils::HashString("ManageClusters"); - static const int ManageUsersAndGroups_HASH = HashingUtils::HashString("ManageUsersAndGroups"); - static const int ManageAttributeSets_HASH = HashingUtils::HashString("ManageAttributeSets"); - static const int ViewAuditData_HASH = HashingUtils::HashString("ViewAuditData"); - static const int AccessNotebooks_HASH = HashingUtils::HashString("AccessNotebooks"); - static const int GetTemporaryCredentials_HASH = HashingUtils::HashString("GetTemporaryCredentials"); + static constexpr uint32_t CreateDataset_HASH = ConstExprHashingUtils::HashString("CreateDataset"); + static constexpr uint32_t ManageClusters_HASH = ConstExprHashingUtils::HashString("ManageClusters"); + static constexpr uint32_t ManageUsersAndGroups_HASH = ConstExprHashingUtils::HashString("ManageUsersAndGroups"); + static constexpr uint32_t ManageAttributeSets_HASH = ConstExprHashingUtils::HashString("ManageAttributeSets"); + static constexpr uint32_t ViewAuditData_HASH = ConstExprHashingUtils::HashString("ViewAuditData"); + static constexpr uint32_t AccessNotebooks_HASH = ConstExprHashingUtils::HashString("AccessNotebooks"); + static constexpr uint32_t GetTemporaryCredentials_HASH = ConstExprHashingUtils::HashString("GetTemporaryCredentials"); ApplicationPermission GetApplicationPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreateDataset_HASH) { return ApplicationPermission::CreateDataset; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/ChangeType.cpp index e81f5bfbe0e..2179a424a81 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/ChangeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeTypeMapper { - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); - static const int APPEND_HASH = HashingUtils::HashString("APPEND"); - static const int MODIFY_HASH = HashingUtils::HashString("MODIFY"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); + static constexpr uint32_t APPEND_HASH = ConstExprHashingUtils::HashString("APPEND"); + static constexpr uint32_t MODIFY_HASH = ConstExprHashingUtils::HashString("MODIFY"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPLACE_HASH) { return ChangeType::REPLACE; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/ColumnDataType.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/ColumnDataType.cpp index c020ce507a3..8f7bb074be1 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/ColumnDataType.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/ColumnDataType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ColumnDataTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int CHAR__HASH = HashingUtils::HashString("CHAR"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int TINYINT_HASH = HashingUtils::HashString("TINYINT"); - static const int SMALLINT_HASH = HashingUtils::HashString("SMALLINT"); - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int FLOAT_HASH = HashingUtils::HashString("FLOAT"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int DATETIME_HASH = HashingUtils::HashString("DATETIME"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int BINARY_HASH = HashingUtils::HashString("BINARY"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t CHAR__HASH = ConstExprHashingUtils::HashString("CHAR"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t TINYINT_HASH = ConstExprHashingUtils::HashString("TINYINT"); + static constexpr uint32_t SMALLINT_HASH = ConstExprHashingUtils::HashString("SMALLINT"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t FLOAT_HASH = ConstExprHashingUtils::HashString("FLOAT"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t DATETIME_HASH = ConstExprHashingUtils::HashString("DATETIME"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t BINARY_HASH = ConstExprHashingUtils::HashString("BINARY"); ColumnDataType GetColumnDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return ColumnDataType::STRING; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/DataViewStatus.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/DataViewStatus.cpp index 380550584db..8c6b61bf8c1 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/DataViewStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/DataViewStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataViewStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_CLEANUP_FAILED_HASH = HashingUtils::HashString("FAILED_CLEANUP_FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_CLEANUP_FAILED_HASH = ConstExprHashingUtils::HashString("FAILED_CLEANUP_FAILED"); DataViewStatus GetDataViewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return DataViewStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetKind.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetKind.cpp index c853166a551..67b3c6d21ca 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetKind.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetKind.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatasetKindMapper { - static const int TABULAR_HASH = HashingUtils::HashString("TABULAR"); - static const int NON_TABULAR_HASH = HashingUtils::HashString("NON_TABULAR"); + static constexpr uint32_t TABULAR_HASH = ConstExprHashingUtils::HashString("TABULAR"); + static constexpr uint32_t NON_TABULAR_HASH = ConstExprHashingUtils::HashString("NON_TABULAR"); DatasetKind GetDatasetKindForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABULAR_HASH) { return DatasetKind::TABULAR; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetStatus.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetStatus.cpp index 955c58a1196..25c1d8c137a 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/DatasetStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DatasetStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); DatasetStatus GetDatasetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DatasetStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/ErrorCategory.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/ErrorCategory.cpp index d9fab7eba12..d21d9135f0d 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/ErrorCategory.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/ErrorCategory.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ErrorCategoryMapper { - static const int VALIDATION_HASH = HashingUtils::HashString("VALIDATION"); - static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("SERVICE_QUOTA_EXCEEDED"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int THROTTLING_HASH = HashingUtils::HashString("THROTTLING"); - static const int INTERNAL_SERVICE_EXCEPTION_HASH = HashingUtils::HashString("INTERNAL_SERVICE_EXCEPTION"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int USER_RECOVERABLE_HASH = HashingUtils::HashString("USER_RECOVERABLE"); + static constexpr uint32_t VALIDATION_HASH = ConstExprHashingUtils::HashString("VALIDATION"); + static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SERVICE_QUOTA_EXCEEDED"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t THROTTLING_HASH = ConstExprHashingUtils::HashString("THROTTLING"); + static constexpr uint32_t INTERNAL_SERVICE_EXCEPTION_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_EXCEPTION"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t USER_RECOVERABLE_HASH = ConstExprHashingUtils::HashString("USER_RECOVERABLE"); ErrorCategory GetErrorCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_HASH) { return ErrorCategory::VALIDATION; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/ExportFileFormat.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/ExportFileFormat.cpp index 208bb89e3ae..605d97d8b66 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/ExportFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/ExportFileFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportFileFormatMapper { - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); - static const int DELIMITED_TEXT_HASH = HashingUtils::HashString("DELIMITED_TEXT"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); + static constexpr uint32_t DELIMITED_TEXT_HASH = ConstExprHashingUtils::HashString("DELIMITED_TEXT"); ExportFileFormat GetExportFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARQUET_HASH) { return ExportFileFormat::PARQUET; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/IngestionStatus.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/IngestionStatus.cpp index 8df522cbac5..a111dcb4b55 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/IngestionStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/IngestionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IngestionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOP_REQUESTED_HASH = HashingUtils::HashString("STOP_REQUESTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOP_REQUESTED_HASH = ConstExprHashingUtils::HashString("STOP_REQUESTED"); IngestionStatus GetIngestionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return IngestionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/LocationType.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/LocationType.cpp index 2396dc6fdfb..36370685c83 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/LocationType.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/LocationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocationTypeMapper { - static const int INGESTION_HASH = HashingUtils::HashString("INGESTION"); - static const int SAGEMAKER_HASH = HashingUtils::HashString("SAGEMAKER"); + static constexpr uint32_t INGESTION_HASH = ConstExprHashingUtils::HashString("INGESTION"); + static constexpr uint32_t SAGEMAKER_HASH = ConstExprHashingUtils::HashString("SAGEMAKER"); LocationType GetLocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INGESTION_HASH) { return LocationType::INGESTION; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/PermissionGroupMembershipStatus.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/PermissionGroupMembershipStatus.cpp index 73eb0d60111..5955755f3f0 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/PermissionGroupMembershipStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/PermissionGroupMembershipStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PermissionGroupMembershipStatusMapper { - static const int ADDITION_IN_PROGRESS_HASH = HashingUtils::HashString("ADDITION_IN_PROGRESS"); - static const int ADDITION_SUCCESS_HASH = HashingUtils::HashString("ADDITION_SUCCESS"); - static const int REMOVAL_IN_PROGRESS_HASH = HashingUtils::HashString("REMOVAL_IN_PROGRESS"); + static constexpr uint32_t ADDITION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ADDITION_IN_PROGRESS"); + static constexpr uint32_t ADDITION_SUCCESS_HASH = ConstExprHashingUtils::HashString("ADDITION_SUCCESS"); + static constexpr uint32_t REMOVAL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REMOVAL_IN_PROGRESS"); PermissionGroupMembershipStatus GetPermissionGroupMembershipStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADDITION_IN_PROGRESS_HASH) { return PermissionGroupMembershipStatus::ADDITION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/UserStatus.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/UserStatus.cpp index b88bc93bcf4..68c4ecfe7b8 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/UserStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/UserStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UserStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); UserStatus GetUserStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return UserStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/model/UserType.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/model/UserType.cpp index a572390c96c..8d88c37f0b0 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/model/UserType.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/model/UserType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserTypeMapper { - static const int SUPER_USER_HASH = HashingUtils::HashString("SUPER_USER"); - static const int APP_USER_HASH = HashingUtils::HashString("APP_USER"); + static constexpr uint32_t SUPER_USER_HASH = ConstExprHashingUtils::HashString("SUPER_USER"); + static constexpr uint32_t APP_USER_HASH = ConstExprHashingUtils::HashString("APP_USER"); UserType GetUserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUPER_USER_HASH) { return UserType::SUPER_USER; diff --git a/generated/src/aws-cpp-sdk-finspace/source/FinspaceErrors.cpp b/generated/src/aws-cpp-sdk-finspace/source/FinspaceErrors.cpp index 0608f9027d1..70db4d4c837 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/FinspaceErrors.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/FinspaceErrors.cpp @@ -26,17 +26,17 @@ template<> AWS_FINSPACE_API ConflictException FinspaceError::GetModeledError() namespace FinspaceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/AutoScalingMetric.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/AutoScalingMetric.cpp index b19155594fe..2dfc23e1795 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/AutoScalingMetric.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/AutoScalingMetric.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AutoScalingMetricMapper { - static const int CPU_UTILIZATION_PERCENTAGE_HASH = HashingUtils::HashString("CPU_UTILIZATION_PERCENTAGE"); + static constexpr uint32_t CPU_UTILIZATION_PERCENTAGE_HASH = ConstExprHashingUtils::HashString("CPU_UTILIZATION_PERCENTAGE"); AutoScalingMetric GetAutoScalingMetricForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPU_UTILIZATION_PERCENTAGE_HASH) { return AutoScalingMetric::CPU_UTILIZATION_PERCENTAGE; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/ChangeType.cpp index 3a283f5bb9f..5861b84e76d 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/ChangeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeTypeMapper { - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUT_HASH) { return ChangeType::PUT; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/ChangesetStatus.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/ChangesetStatus.cpp index d75b90b4d3b..9771ad227b5 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/ChangesetStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/ChangesetStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChangesetStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ChangesetStatus GetChangesetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ChangesetStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/DnsStatus.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/DnsStatus.cpp index 5252411ab23..3a8fd81eade 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/DnsStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/DnsStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DnsStatusMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int UPDATE_REQUESTED_HASH = HashingUtils::HashString("UPDATE_REQUESTED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_UPDATE_HASH = HashingUtils::HashString("FAILED_UPDATE"); - static const int SUCCESSFULLY_UPDATED_HASH = HashingUtils::HashString("SUCCESSFULLY_UPDATED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t UPDATE_REQUESTED_HASH = ConstExprHashingUtils::HashString("UPDATE_REQUESTED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_UPDATE_HASH = ConstExprHashingUtils::HashString("FAILED_UPDATE"); + static constexpr uint32_t SUCCESSFULLY_UPDATED_HASH = ConstExprHashingUtils::HashString("SUCCESSFULLY_UPDATED"); DnsStatus GetDnsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DnsStatus::NONE; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/EnvironmentStatus.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/EnvironmentStatus.cpp index 511e088b0b0..db72e49db1f 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/EnvironmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/EnvironmentStatus.cpp @@ -20,24 +20,24 @@ namespace Aws namespace EnvironmentStatusMapper { - static const int CREATE_REQUESTED_HASH = HashingUtils::HashString("CREATE_REQUESTED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int DELETE_REQUESTED_HASH = HashingUtils::HashString("DELETE_REQUESTED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_CREATION_HASH = HashingUtils::HashString("FAILED_CREATION"); - static const int RETRY_DELETION_HASH = HashingUtils::HashString("RETRY_DELETION"); - static const int FAILED_DELETION_HASH = HashingUtils::HashString("FAILED_DELETION"); - static const int UPDATE_NETWORK_REQUESTED_HASH = HashingUtils::HashString("UPDATE_NETWORK_REQUESTED"); - static const int UPDATING_NETWORK_HASH = HashingUtils::HashString("UPDATING_NETWORK"); - static const int FAILED_UPDATING_NETWORK_HASH = HashingUtils::HashString("FAILED_UPDATING_NETWORK"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t CREATE_REQUESTED_HASH = ConstExprHashingUtils::HashString("CREATE_REQUESTED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t DELETE_REQUESTED_HASH = ConstExprHashingUtils::HashString("DELETE_REQUESTED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_CREATION_HASH = ConstExprHashingUtils::HashString("FAILED_CREATION"); + static constexpr uint32_t RETRY_DELETION_HASH = ConstExprHashingUtils::HashString("RETRY_DELETION"); + static constexpr uint32_t FAILED_DELETION_HASH = ConstExprHashingUtils::HashString("FAILED_DELETION"); + static constexpr uint32_t UPDATE_NETWORK_REQUESTED_HASH = ConstExprHashingUtils::HashString("UPDATE_NETWORK_REQUESTED"); + static constexpr uint32_t UPDATING_NETWORK_HASH = ConstExprHashingUtils::HashString("UPDATING_NETWORK"); + static constexpr uint32_t FAILED_UPDATING_NETWORK_HASH = ConstExprHashingUtils::HashString("FAILED_UPDATING_NETWORK"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); EnvironmentStatus GetEnvironmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_REQUESTED_HASH) { return EnvironmentStatus::CREATE_REQUESTED; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/ErrorDetails.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/ErrorDetails.cpp index acfcc785066..4d929678eaa 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/ErrorDetails.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/ErrorDetails.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ErrorDetailsMapper { - static const int The_inputs_to_this_request_are_invalid_HASH = HashingUtils::HashString("The inputs to this request are invalid."); - static const int Service_limits_have_been_exceeded_HASH = HashingUtils::HashString("Service limits have been exceeded."); - static const int Missing_required_permission_to_perform_this_request_HASH = HashingUtils::HashString("Missing required permission to perform this request."); - static const int One_or_more_inputs_to_this_request_were_not_found_HASH = HashingUtils::HashString("One or more inputs to this request were not found."); - static const int The_system_temporarily_lacks_sufficient_resources_to_process_the_request_HASH = HashingUtils::HashString("The system temporarily lacks sufficient resources to process the request."); - static const int An_internal_error_has_occurred_HASH = HashingUtils::HashString("An internal error has occurred."); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int A_user_recoverable_error_has_occurred_HASH = HashingUtils::HashString("A user recoverable error has occurred"); + static constexpr uint32_t The_inputs_to_this_request_are_invalid_HASH = ConstExprHashingUtils::HashString("The inputs to this request are invalid."); + static constexpr uint32_t Service_limits_have_been_exceeded_HASH = ConstExprHashingUtils::HashString("Service limits have been exceeded."); + static constexpr uint32_t Missing_required_permission_to_perform_this_request_HASH = ConstExprHashingUtils::HashString("Missing required permission to perform this request."); + static constexpr uint32_t One_or_more_inputs_to_this_request_were_not_found_HASH = ConstExprHashingUtils::HashString("One or more inputs to this request were not found."); + static constexpr uint32_t The_system_temporarily_lacks_sufficient_resources_to_process_the_request_HASH = ConstExprHashingUtils::HashString("The system temporarily lacks sufficient resources to process the request."); + static constexpr uint32_t An_internal_error_has_occurred_HASH = ConstExprHashingUtils::HashString("An internal error has occurred."); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t A_user_recoverable_error_has_occurred_HASH = ConstExprHashingUtils::HashString("A user recoverable error has occurred"); ErrorDetails GetErrorDetailsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == The_inputs_to_this_request_are_invalid_HASH) { return ErrorDetails::The_inputs_to_this_request_are_invalid; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/FederationMode.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/FederationMode.cpp index 27625b825b8..9638bcac824 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/FederationMode.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/FederationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FederationModeMapper { - static const int FEDERATED_HASH = HashingUtils::HashString("FEDERATED"); - static const int LOCAL_HASH = HashingUtils::HashString("LOCAL"); + static constexpr uint32_t FEDERATED_HASH = ConstExprHashingUtils::HashString("FEDERATED"); + static constexpr uint32_t LOCAL_HASH = ConstExprHashingUtils::HashString("LOCAL"); FederationMode GetFederationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FEDERATED_HASH) { return FederationMode::FEDERATED; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/IPAddressType.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/IPAddressType.cpp index afbb8c812ce..c9fc53ccd5c 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/IPAddressType.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/IPAddressType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IPAddressTypeMapper { - static const int IP_V4_HASH = HashingUtils::HashString("IP_V4"); + static constexpr uint32_t IP_V4_HASH = ConstExprHashingUtils::HashString("IP_V4"); IPAddressType GetIPAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_V4_HASH) { return IPAddressType::IP_V4; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/KxAzMode.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxAzMode.cpp index 98e87ad4182..159f2be3a02 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/KxAzMode.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxAzMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KxAzModeMapper { - static const int SINGLE_HASH = HashingUtils::HashString("SINGLE"); - static const int MULTI_HASH = HashingUtils::HashString("MULTI"); + static constexpr uint32_t SINGLE_HASH = ConstExprHashingUtils::HashString("SINGLE"); + static constexpr uint32_t MULTI_HASH = ConstExprHashingUtils::HashString("MULTI"); KxAzMode GetKxAzModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_HASH) { return KxAzMode::SINGLE; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterStatus.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterStatus.cpp index 2a038202296..7fc0bd4e043 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace KxClusterStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); KxClusterStatus GetKxClusterStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return KxClusterStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterType.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterType.cpp index 22c6a5e15f8..4ea6434c547 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterType.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxClusterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace KxClusterTypeMapper { - static const int HDB_HASH = HashingUtils::HashString("HDB"); - static const int RDB_HASH = HashingUtils::HashString("RDB"); - static const int GATEWAY_HASH = HashingUtils::HashString("GATEWAY"); + static constexpr uint32_t HDB_HASH = ConstExprHashingUtils::HashString("HDB"); + static constexpr uint32_t RDB_HASH = ConstExprHashingUtils::HashString("RDB"); + static constexpr uint32_t GATEWAY_HASH = ConstExprHashingUtils::HashString("GATEWAY"); KxClusterType GetKxClusterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HDB_HASH) { return KxClusterType::HDB; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/KxDeploymentStrategy.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxDeploymentStrategy.cpp index f40a8b560e2..829035a7038 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/KxDeploymentStrategy.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxDeploymentStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KxDeploymentStrategyMapper { - static const int NO_RESTART_HASH = HashingUtils::HashString("NO_RESTART"); - static const int ROLLING_HASH = HashingUtils::HashString("ROLLING"); + static constexpr uint32_t NO_RESTART_HASH = ConstExprHashingUtils::HashString("NO_RESTART"); + static constexpr uint32_t ROLLING_HASH = ConstExprHashingUtils::HashString("ROLLING"); KxDeploymentStrategy GetKxDeploymentStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_RESTART_HASH) { return KxDeploymentStrategy::NO_RESTART; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/KxSavedownStorageType.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxSavedownStorageType.cpp index 2cbb431a671..e0e543fdaa0 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/KxSavedownStorageType.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxSavedownStorageType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace KxSavedownStorageTypeMapper { - static const int SDS01_HASH = HashingUtils::HashString("SDS01"); + static constexpr uint32_t SDS01_HASH = ConstExprHashingUtils::HashString("SDS01"); KxSavedownStorageType GetKxSavedownStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SDS01_HASH) { return KxSavedownStorageType::SDS01; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/RuleAction.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/RuleAction.cpp index 0b363def115..5319ec0880c 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/RuleAction.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/RuleAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleActionMapper { - static const int allow_HASH = HashingUtils::HashString("allow"); - static const int deny_HASH = HashingUtils::HashString("deny"); + static constexpr uint32_t allow_HASH = ConstExprHashingUtils::HashString("allow"); + static constexpr uint32_t deny_HASH = ConstExprHashingUtils::HashString("deny"); RuleAction GetRuleActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == allow_HASH) { return RuleAction::allow; diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/TgwStatus.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/TgwStatus.cpp index 529abce7262..a31b44cae4f 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/TgwStatus.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/TgwStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TgwStatusMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int UPDATE_REQUESTED_HASH = HashingUtils::HashString("UPDATE_REQUESTED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_UPDATE_HASH = HashingUtils::HashString("FAILED_UPDATE"); - static const int SUCCESSFULLY_UPDATED_HASH = HashingUtils::HashString("SUCCESSFULLY_UPDATED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t UPDATE_REQUESTED_HASH = ConstExprHashingUtils::HashString("UPDATE_REQUESTED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_UPDATE_HASH = ConstExprHashingUtils::HashString("FAILED_UPDATE"); + static constexpr uint32_t SUCCESSFULLY_UPDATED_HASH = ConstExprHashingUtils::HashString("SUCCESSFULLY_UPDATED"); TgwStatus GetTgwStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TgwStatus::NONE; diff --git a/generated/src/aws-cpp-sdk-firehose/source/FirehoseErrors.cpp b/generated/src/aws-cpp-sdk-firehose/source/FirehoseErrors.cpp index 1f9bb03fdbb..6ec4dc9be68 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/FirehoseErrors.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/FirehoseErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_FIREHOSE_API InvalidKMSResourceException FirehoseError::GetModele namespace FirehoseErrorMapper { -static const int INVALID_K_M_S_RESOURCE_HASH = HashingUtils::HashString("InvalidKMSResourceException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t INVALID_K_M_S_RESOURCE_HASH = ConstExprHashingUtils::HashString("InvalidKMSResourceException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_K_M_S_RESOURCE_HASH) { diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/AmazonOpenSearchServerlessS3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/AmazonOpenSearchServerlessS3BackupMode.cpp index a1b53593ccc..8575933a198 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/AmazonOpenSearchServerlessS3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/AmazonOpenSearchServerlessS3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AmazonOpenSearchServerlessS3BackupModeMapper { - static const int FailedDocumentsOnly_HASH = HashingUtils::HashString("FailedDocumentsOnly"); - static const int AllDocuments_HASH = HashingUtils::HashString("AllDocuments"); + static constexpr uint32_t FailedDocumentsOnly_HASH = ConstExprHashingUtils::HashString("FailedDocumentsOnly"); + static constexpr uint32_t AllDocuments_HASH = ConstExprHashingUtils::HashString("AllDocuments"); AmazonOpenSearchServerlessS3BackupMode GetAmazonOpenSearchServerlessS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FailedDocumentsOnly_HASH) { return AmazonOpenSearchServerlessS3BackupMode::FailedDocumentsOnly; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceIndexRotationPeriod.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceIndexRotationPeriod.cpp index ec446b795e0..00338061cc4 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceIndexRotationPeriod.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceIndexRotationPeriod.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AmazonopensearchserviceIndexRotationPeriodMapper { - static const int NoRotation_HASH = HashingUtils::HashString("NoRotation"); - static const int OneHour_HASH = HashingUtils::HashString("OneHour"); - static const int OneDay_HASH = HashingUtils::HashString("OneDay"); - static const int OneWeek_HASH = HashingUtils::HashString("OneWeek"); - static const int OneMonth_HASH = HashingUtils::HashString("OneMonth"); + static constexpr uint32_t NoRotation_HASH = ConstExprHashingUtils::HashString("NoRotation"); + static constexpr uint32_t OneHour_HASH = ConstExprHashingUtils::HashString("OneHour"); + static constexpr uint32_t OneDay_HASH = ConstExprHashingUtils::HashString("OneDay"); + static constexpr uint32_t OneWeek_HASH = ConstExprHashingUtils::HashString("OneWeek"); + static constexpr uint32_t OneMonth_HASH = ConstExprHashingUtils::HashString("OneMonth"); AmazonopensearchserviceIndexRotationPeriod GetAmazonopensearchserviceIndexRotationPeriodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NoRotation_HASH) { return AmazonopensearchserviceIndexRotationPeriod::NoRotation; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceS3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceS3BackupMode.cpp index 71280ea5f8e..e949a4536b3 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceS3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/AmazonopensearchserviceS3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AmazonopensearchserviceS3BackupModeMapper { - static const int FailedDocumentsOnly_HASH = HashingUtils::HashString("FailedDocumentsOnly"); - static const int AllDocuments_HASH = HashingUtils::HashString("AllDocuments"); + static constexpr uint32_t FailedDocumentsOnly_HASH = ConstExprHashingUtils::HashString("FailedDocumentsOnly"); + static constexpr uint32_t AllDocuments_HASH = ConstExprHashingUtils::HashString("AllDocuments"); AmazonopensearchserviceS3BackupMode GetAmazonopensearchserviceS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FailedDocumentsOnly_HASH) { return AmazonopensearchserviceS3BackupMode::FailedDocumentsOnly; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/CompressionFormat.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/CompressionFormat.cpp index b37cee7948a..83642fe90be 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/CompressionFormat.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/CompressionFormat.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CompressionFormatMapper { - static const int UNCOMPRESSED_HASH = HashingUtils::HashString("UNCOMPRESSED"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int ZIP_HASH = HashingUtils::HashString("ZIP"); - static const int Snappy_HASH = HashingUtils::HashString("Snappy"); - static const int HADOOP_SNAPPY_HASH = HashingUtils::HashString("HADOOP_SNAPPY"); + static constexpr uint32_t UNCOMPRESSED_HASH = ConstExprHashingUtils::HashString("UNCOMPRESSED"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t ZIP_HASH = ConstExprHashingUtils::HashString("ZIP"); + static constexpr uint32_t Snappy_HASH = ConstExprHashingUtils::HashString("Snappy"); + static constexpr uint32_t HADOOP_SNAPPY_HASH = ConstExprHashingUtils::HashString("HADOOP_SNAPPY"); CompressionFormat GetCompressionFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNCOMPRESSED_HASH) { return CompressionFormat::UNCOMPRESSED; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/Connectivity.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/Connectivity.cpp index d495fc931f6..f9fd6016253 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/Connectivity.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/Connectivity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectivityMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); Connectivity GetConnectivityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return Connectivity::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ContentEncoding.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ContentEncoding.cpp index c09660fb15b..99727293162 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ContentEncoding.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ContentEncoding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentEncodingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); ContentEncoding GetContentEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ContentEncoding::NONE; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/DefaultDocumentIdFormat.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/DefaultDocumentIdFormat.cpp index 9df0258c54f..173b862878c 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/DefaultDocumentIdFormat.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/DefaultDocumentIdFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefaultDocumentIdFormatMapper { - static const int FIREHOSE_DEFAULT_HASH = HashingUtils::HashString("FIREHOSE_DEFAULT"); - static const int NO_DOCUMENT_ID_HASH = HashingUtils::HashString("NO_DOCUMENT_ID"); + static constexpr uint32_t FIREHOSE_DEFAULT_HASH = ConstExprHashingUtils::HashString("FIREHOSE_DEFAULT"); + static constexpr uint32_t NO_DOCUMENT_ID_HASH = ConstExprHashingUtils::HashString("NO_DOCUMENT_ID"); DefaultDocumentIdFormat GetDefaultDocumentIdFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIREHOSE_DEFAULT_HASH) { return DefaultDocumentIdFormat::FIREHOSE_DEFAULT; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamEncryptionStatus.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamEncryptionStatus.cpp index 6234a487ad7..8841cd04717 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamEncryptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamEncryptionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeliveryStreamEncryptionStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLING_FAILED_HASH = HashingUtils::HashString("ENABLING_FAILED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLING_FAILED_HASH = HashingUtils::HashString("DISABLING_FAILED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLING_FAILED_HASH = ConstExprHashingUtils::HashString("ENABLING_FAILED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLING_FAILED_HASH = ConstExprHashingUtils::HashString("DISABLING_FAILED"); DeliveryStreamEncryptionStatus GetDeliveryStreamEncryptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DeliveryStreamEncryptionStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamFailureType.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamFailureType.cpp index c5e39c2fb32..21708ed6cd2 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamFailureType.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamFailureType.cpp @@ -20,26 +20,26 @@ namespace Aws namespace DeliveryStreamFailureTypeMapper { - static const int RETIRE_KMS_GRANT_FAILED_HASH = HashingUtils::HashString("RETIRE_KMS_GRANT_FAILED"); - static const int CREATE_KMS_GRANT_FAILED_HASH = HashingUtils::HashString("CREATE_KMS_GRANT_FAILED"); - static const int KMS_ACCESS_DENIED_HASH = HashingUtils::HashString("KMS_ACCESS_DENIED"); - static const int DISABLED_KMS_KEY_HASH = HashingUtils::HashString("DISABLED_KMS_KEY"); - static const int INVALID_KMS_KEY_HASH = HashingUtils::HashString("INVALID_KMS_KEY"); - static const int KMS_KEY_NOT_FOUND_HASH = HashingUtils::HashString("KMS_KEY_NOT_FOUND"); - static const int KMS_OPT_IN_REQUIRED_HASH = HashingUtils::HashString("KMS_OPT_IN_REQUIRED"); - static const int CREATE_ENI_FAILED_HASH = HashingUtils::HashString("CREATE_ENI_FAILED"); - static const int DELETE_ENI_FAILED_HASH = HashingUtils::HashString("DELETE_ENI_FAILED"); - static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SUBNET_NOT_FOUND"); - static const int SECURITY_GROUP_NOT_FOUND_HASH = HashingUtils::HashString("SECURITY_GROUP_NOT_FOUND"); - static const int ENI_ACCESS_DENIED_HASH = HashingUtils::HashString("ENI_ACCESS_DENIED"); - static const int SUBNET_ACCESS_DENIED_HASH = HashingUtils::HashString("SUBNET_ACCESS_DENIED"); - static const int SECURITY_GROUP_ACCESS_DENIED_HASH = HashingUtils::HashString("SECURITY_GROUP_ACCESS_DENIED"); - static const int UNKNOWN_ERROR_HASH = HashingUtils::HashString("UNKNOWN_ERROR"); + static constexpr uint32_t RETIRE_KMS_GRANT_FAILED_HASH = ConstExprHashingUtils::HashString("RETIRE_KMS_GRANT_FAILED"); + static constexpr uint32_t CREATE_KMS_GRANT_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_KMS_GRANT_FAILED"); + static constexpr uint32_t KMS_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("KMS_ACCESS_DENIED"); + static constexpr uint32_t DISABLED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("DISABLED_KMS_KEY"); + static constexpr uint32_t INVALID_KMS_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_KMS_KEY"); + static constexpr uint32_t KMS_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KMS_KEY_NOT_FOUND"); + static constexpr uint32_t KMS_OPT_IN_REQUIRED_HASH = ConstExprHashingUtils::HashString("KMS_OPT_IN_REQUIRED"); + static constexpr uint32_t CREATE_ENI_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_ENI_FAILED"); + static constexpr uint32_t DELETE_ENI_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_ENI_FAILED"); + static constexpr uint32_t SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SUBNET_NOT_FOUND"); + static constexpr uint32_t SECURITY_GROUP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUP_NOT_FOUND"); + static constexpr uint32_t ENI_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ENI_ACCESS_DENIED"); + static constexpr uint32_t SUBNET_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("SUBNET_ACCESS_DENIED"); + static constexpr uint32_t SECURITY_GROUP_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUP_ACCESS_DENIED"); + static constexpr uint32_t UNKNOWN_ERROR_HASH = ConstExprHashingUtils::HashString("UNKNOWN_ERROR"); DeliveryStreamFailureType GetDeliveryStreamFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RETIRE_KMS_GRANT_FAILED_HASH) { return DeliveryStreamFailureType::RETIRE_KMS_GRANT_FAILED; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamStatus.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamStatus.cpp index 98c97a31dd2..f2da3a6682d 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamStatus.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeliveryStreamStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATING_FAILED_HASH = HashingUtils::HashString("CREATING_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETING_FAILED_HASH = HashingUtils::HashString("DELETING_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATING_FAILED_HASH = ConstExprHashingUtils::HashString("CREATING_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETING_FAILED_HASH = ConstExprHashingUtils::HashString("DELETING_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); DeliveryStreamStatus GetDeliveryStreamStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DeliveryStreamStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamType.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamType.cpp index 395c3261740..86879f849d2 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamType.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/DeliveryStreamType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeliveryStreamTypeMapper { - static const int DirectPut_HASH = HashingUtils::HashString("DirectPut"); - static const int KinesisStreamAsSource_HASH = HashingUtils::HashString("KinesisStreamAsSource"); - static const int MSKAsSource_HASH = HashingUtils::HashString("MSKAsSource"); + static constexpr uint32_t DirectPut_HASH = ConstExprHashingUtils::HashString("DirectPut"); + static constexpr uint32_t KinesisStreamAsSource_HASH = ConstExprHashingUtils::HashString("KinesisStreamAsSource"); + static constexpr uint32_t MSKAsSource_HASH = ConstExprHashingUtils::HashString("MSKAsSource"); DeliveryStreamType GetDeliveryStreamTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DirectPut_HASH) { return DeliveryStreamType::DirectPut; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchIndexRotationPeriod.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchIndexRotationPeriod.cpp index 3e8ec6e75d8..213a933f81b 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchIndexRotationPeriod.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchIndexRotationPeriod.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ElasticsearchIndexRotationPeriodMapper { - static const int NoRotation_HASH = HashingUtils::HashString("NoRotation"); - static const int OneHour_HASH = HashingUtils::HashString("OneHour"); - static const int OneDay_HASH = HashingUtils::HashString("OneDay"); - static const int OneWeek_HASH = HashingUtils::HashString("OneWeek"); - static const int OneMonth_HASH = HashingUtils::HashString("OneMonth"); + static constexpr uint32_t NoRotation_HASH = ConstExprHashingUtils::HashString("NoRotation"); + static constexpr uint32_t OneHour_HASH = ConstExprHashingUtils::HashString("OneHour"); + static constexpr uint32_t OneDay_HASH = ConstExprHashingUtils::HashString("OneDay"); + static constexpr uint32_t OneWeek_HASH = ConstExprHashingUtils::HashString("OneWeek"); + static constexpr uint32_t OneMonth_HASH = ConstExprHashingUtils::HashString("OneMonth"); ElasticsearchIndexRotationPeriod GetElasticsearchIndexRotationPeriodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NoRotation_HASH) { return ElasticsearchIndexRotationPeriod::NoRotation; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchS3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchS3BackupMode.cpp index 3e5ae5bc40c..b79f32bf3f1 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchS3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ElasticsearchS3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ElasticsearchS3BackupModeMapper { - static const int FailedDocumentsOnly_HASH = HashingUtils::HashString("FailedDocumentsOnly"); - static const int AllDocuments_HASH = HashingUtils::HashString("AllDocuments"); + static constexpr uint32_t FailedDocumentsOnly_HASH = ConstExprHashingUtils::HashString("FailedDocumentsOnly"); + static constexpr uint32_t AllDocuments_HASH = ConstExprHashingUtils::HashString("AllDocuments"); ElasticsearchS3BackupMode GetElasticsearchS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FailedDocumentsOnly_HASH) { return ElasticsearchS3BackupMode::FailedDocumentsOnly; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/HECEndpointType.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/HECEndpointType.cpp index 7a6e22a2867..d2d36ed4916 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/HECEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/HECEndpointType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HECEndpointTypeMapper { - static const int Raw_HASH = HashingUtils::HashString("Raw"); - static const int Event_HASH = HashingUtils::HashString("Event"); + static constexpr uint32_t Raw_HASH = ConstExprHashingUtils::HashString("Raw"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); HECEndpointType GetHECEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Raw_HASH) { return HECEndpointType::Raw; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/HttpEndpointS3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/HttpEndpointS3BackupMode.cpp index fbd2849b432..83fa70e6af9 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/HttpEndpointS3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/HttpEndpointS3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpEndpointS3BackupModeMapper { - static const int FailedDataOnly_HASH = HashingUtils::HashString("FailedDataOnly"); - static const int AllData_HASH = HashingUtils::HashString("AllData"); + static constexpr uint32_t FailedDataOnly_HASH = ConstExprHashingUtils::HashString("FailedDataOnly"); + static constexpr uint32_t AllData_HASH = ConstExprHashingUtils::HashString("AllData"); HttpEndpointS3BackupMode GetHttpEndpointS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FailedDataOnly_HASH) { return HttpEndpointS3BackupMode::FailedDataOnly; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/KeyType.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/KeyType.cpp index be5220e8914..b6b64ebe026 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/KeyType.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/KeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyTypeMapper { - static const int AWS_OWNED_CMK_HASH = HashingUtils::HashString("AWS_OWNED_CMK"); - static const int CUSTOMER_MANAGED_CMK_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_CMK"); + static constexpr uint32_t AWS_OWNED_CMK_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_CMK"); + static constexpr uint32_t CUSTOMER_MANAGED_CMK_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_CMK"); KeyType GetKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_OWNED_CMK_HASH) { return KeyType::AWS_OWNED_CMK; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/NoEncryptionConfig.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/NoEncryptionConfig.cpp index 9d78ba95bfd..932d9525a5e 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/NoEncryptionConfig.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/NoEncryptionConfig.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NoEncryptionConfigMapper { - static const int NoEncryption_HASH = HashingUtils::HashString("NoEncryption"); + static constexpr uint32_t NoEncryption_HASH = ConstExprHashingUtils::HashString("NoEncryption"); NoEncryptionConfig GetNoEncryptionConfigForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NoEncryption_HASH) { return NoEncryptionConfig::NoEncryption; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/OrcCompression.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/OrcCompression.cpp index 4079f33adf9..1b980e8b396 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/OrcCompression.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/OrcCompression.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrcCompressionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ZLIB_HASH = HashingUtils::HashString("ZLIB"); - static const int SNAPPY_HASH = HashingUtils::HashString("SNAPPY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ZLIB_HASH = ConstExprHashingUtils::HashString("ZLIB"); + static constexpr uint32_t SNAPPY_HASH = ConstExprHashingUtils::HashString("SNAPPY"); OrcCompression GetOrcCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return OrcCompression::NONE; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/OrcFormatVersion.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/OrcFormatVersion.cpp index 2e42c7e7680..92ab8aa22d4 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/OrcFormatVersion.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/OrcFormatVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrcFormatVersionMapper { - static const int V0_11_HASH = HashingUtils::HashString("V0_11"); - static const int V0_12_HASH = HashingUtils::HashString("V0_12"); + static constexpr uint32_t V0_11_HASH = ConstExprHashingUtils::HashString("V0_11"); + static constexpr uint32_t V0_12_HASH = ConstExprHashingUtils::HashString("V0_12"); OrcFormatVersion GetOrcFormatVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V0_11_HASH) { return OrcFormatVersion::V0_11; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ParquetCompression.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ParquetCompression.cpp index ec25f147f34..2070c6c6981 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ParquetCompression.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ParquetCompression.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ParquetCompressionMapper { - static const int UNCOMPRESSED_HASH = HashingUtils::HashString("UNCOMPRESSED"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int SNAPPY_HASH = HashingUtils::HashString("SNAPPY"); + static constexpr uint32_t UNCOMPRESSED_HASH = ConstExprHashingUtils::HashString("UNCOMPRESSED"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t SNAPPY_HASH = ConstExprHashingUtils::HashString("SNAPPY"); ParquetCompression GetParquetCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNCOMPRESSED_HASH) { return ParquetCompression::UNCOMPRESSED; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ParquetWriterVersion.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ParquetWriterVersion.cpp index 2ad3b8cb904..2676e0a09d1 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ParquetWriterVersion.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ParquetWriterVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParquetWriterVersionMapper { - static const int V1_HASH = HashingUtils::HashString("V1"); - static const int V2_HASH = HashingUtils::HashString("V2"); + static constexpr uint32_t V1_HASH = ConstExprHashingUtils::HashString("V1"); + static constexpr uint32_t V2_HASH = ConstExprHashingUtils::HashString("V2"); ParquetWriterVersion GetParquetWriterVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V1_HASH) { return ParquetWriterVersion::V1; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorParameterName.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorParameterName.cpp index dc64379caef..344f42d1af1 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorParameterName.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorParameterName.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ProcessorParameterNameMapper { - static const int LambdaArn_HASH = HashingUtils::HashString("LambdaArn"); - static const int NumberOfRetries_HASH = HashingUtils::HashString("NumberOfRetries"); - static const int MetadataExtractionQuery_HASH = HashingUtils::HashString("MetadataExtractionQuery"); - static const int JsonParsingEngine_HASH = HashingUtils::HashString("JsonParsingEngine"); - static const int RoleArn_HASH = HashingUtils::HashString("RoleArn"); - static const int BufferSizeInMBs_HASH = HashingUtils::HashString("BufferSizeInMBs"); - static const int BufferIntervalInSeconds_HASH = HashingUtils::HashString("BufferIntervalInSeconds"); - static const int SubRecordType_HASH = HashingUtils::HashString("SubRecordType"); - static const int Delimiter_HASH = HashingUtils::HashString("Delimiter"); - static const int CompressionFormat_HASH = HashingUtils::HashString("CompressionFormat"); + static constexpr uint32_t LambdaArn_HASH = ConstExprHashingUtils::HashString("LambdaArn"); + static constexpr uint32_t NumberOfRetries_HASH = ConstExprHashingUtils::HashString("NumberOfRetries"); + static constexpr uint32_t MetadataExtractionQuery_HASH = ConstExprHashingUtils::HashString("MetadataExtractionQuery"); + static constexpr uint32_t JsonParsingEngine_HASH = ConstExprHashingUtils::HashString("JsonParsingEngine"); + static constexpr uint32_t RoleArn_HASH = ConstExprHashingUtils::HashString("RoleArn"); + static constexpr uint32_t BufferSizeInMBs_HASH = ConstExprHashingUtils::HashString("BufferSizeInMBs"); + static constexpr uint32_t BufferIntervalInSeconds_HASH = ConstExprHashingUtils::HashString("BufferIntervalInSeconds"); + static constexpr uint32_t SubRecordType_HASH = ConstExprHashingUtils::HashString("SubRecordType"); + static constexpr uint32_t Delimiter_HASH = ConstExprHashingUtils::HashString("Delimiter"); + static constexpr uint32_t CompressionFormat_HASH = ConstExprHashingUtils::HashString("CompressionFormat"); ProcessorParameterName GetProcessorParameterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LambdaArn_HASH) { return ProcessorParameterName::LambdaArn; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorType.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorType.cpp index 557881d5944..347c801827e 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorType.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/ProcessorType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProcessorTypeMapper { - static const int RecordDeAggregation_HASH = HashingUtils::HashString("RecordDeAggregation"); - static const int Decompression_HASH = HashingUtils::HashString("Decompression"); - static const int Lambda_HASH = HashingUtils::HashString("Lambda"); - static const int MetadataExtraction_HASH = HashingUtils::HashString("MetadataExtraction"); - static const int AppendDelimiterToRecord_HASH = HashingUtils::HashString("AppendDelimiterToRecord"); + static constexpr uint32_t RecordDeAggregation_HASH = ConstExprHashingUtils::HashString("RecordDeAggregation"); + static constexpr uint32_t Decompression_HASH = ConstExprHashingUtils::HashString("Decompression"); + static constexpr uint32_t Lambda_HASH = ConstExprHashingUtils::HashString("Lambda"); + static constexpr uint32_t MetadataExtraction_HASH = ConstExprHashingUtils::HashString("MetadataExtraction"); + static constexpr uint32_t AppendDelimiterToRecord_HASH = ConstExprHashingUtils::HashString("AppendDelimiterToRecord"); ProcessorType GetProcessorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RecordDeAggregation_HASH) { return ProcessorType::RecordDeAggregation; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/RedshiftS3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/RedshiftS3BackupMode.cpp index a28e380ae79..74484ebfc6b 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/RedshiftS3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/RedshiftS3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RedshiftS3BackupModeMapper { - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); RedshiftS3BackupMode GetRedshiftS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Disabled_HASH) { return RedshiftS3BackupMode::Disabled; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/S3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/S3BackupMode.cpp index 5ba68a3706b..1a38591a22f 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/S3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/S3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3BackupModeMapper { - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); S3BackupMode GetS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Disabled_HASH) { return S3BackupMode::Disabled; diff --git a/generated/src/aws-cpp-sdk-firehose/source/model/SplunkS3BackupMode.cpp b/generated/src/aws-cpp-sdk-firehose/source/model/SplunkS3BackupMode.cpp index c69241cf720..480f55a8793 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/model/SplunkS3BackupMode.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/model/SplunkS3BackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SplunkS3BackupModeMapper { - static const int FailedEventsOnly_HASH = HashingUtils::HashString("FailedEventsOnly"); - static const int AllEvents_HASH = HashingUtils::HashString("AllEvents"); + static constexpr uint32_t FailedEventsOnly_HASH = ConstExprHashingUtils::HashString("FailedEventsOnly"); + static constexpr uint32_t AllEvents_HASH = ConstExprHashingUtils::HashString("AllEvents"); SplunkS3BackupMode GetSplunkS3BackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FailedEventsOnly_HASH) { return SplunkS3BackupMode::FailedEventsOnly; diff --git a/generated/src/aws-cpp-sdk-fis/source/FISErrors.cpp b/generated/src/aws-cpp-sdk-fis/source/FISErrors.cpp index bfa555ff1c5..5d55f47c80c 100644 --- a/generated/src/aws-cpp-sdk-fis/source/FISErrors.cpp +++ b/generated/src/aws-cpp-sdk-fis/source/FISErrors.cpp @@ -18,13 +18,13 @@ namespace FIS namespace FISErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-fis/source/model/ExperimentActionStatus.cpp b/generated/src/aws-cpp-sdk-fis/source/model/ExperimentActionStatus.cpp index 35d59293872..89c33d36d8c 100644 --- a/generated/src/aws-cpp-sdk-fis/source/model/ExperimentActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-fis/source/model/ExperimentActionStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ExperimentActionStatusMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int initiating_HASH = HashingUtils::HashString("initiating"); - static const int running_HASH = HashingUtils::HashString("running"); - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int cancelled_HASH = HashingUtils::HashString("cancelled"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t initiating_HASH = ConstExprHashingUtils::HashString("initiating"); + static constexpr uint32_t running_HASH = ConstExprHashingUtils::HashString("running"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t cancelled_HASH = ConstExprHashingUtils::HashString("cancelled"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); ExperimentActionStatus GetExperimentActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return ExperimentActionStatus::pending; diff --git a/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp b/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp index 52cefc99153..0adb5afe1c4 100644 --- a/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp +++ b/generated/src/aws-cpp-sdk-fis/source/model/ExperimentStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ExperimentStatusMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int initiating_HASH = HashingUtils::HashString("initiating"); - static const int running_HASH = HashingUtils::HashString("running"); - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t initiating_HASH = ConstExprHashingUtils::HashString("initiating"); + static constexpr uint32_t running_HASH = ConstExprHashingUtils::HashString("running"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); ExperimentStatus GetExperimentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return ExperimentStatus::pending; diff --git a/generated/src/aws-cpp-sdk-fms/source/FMSErrors.cpp b/generated/src/aws-cpp-sdk-fms/source/FMSErrors.cpp index b6f62e9e9d7..8b46fa957fb 100644 --- a/generated/src/aws-cpp-sdk-fms/source/FMSErrors.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/FMSErrors.cpp @@ -18,16 +18,16 @@ namespace FMS namespace FMSErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_TYPE_HASH = HashingUtils::HashString("InvalidTypeException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidTypeException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-fms/source/model/AccountRoleStatus.cpp b/generated/src/aws-cpp-sdk-fms/source/model/AccountRoleStatus.cpp index f8df31c0097..d8c41e7add1 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/AccountRoleStatus.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/AccountRoleStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AccountRoleStatusMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); AccountRoleStatus GetAccountRoleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return AccountRoleStatus::READY; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyScopeIdType.cpp b/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyScopeIdType.cpp index 51365fe76b0..6bfced4d6ac 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyScopeIdType.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyScopeIdType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomerPolicyScopeIdTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORG_UNIT_HASH = HashingUtils::HashString("ORG_UNIT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORG_UNIT_HASH = ConstExprHashingUtils::HashString("ORG_UNIT"); CustomerPolicyScopeIdType GetCustomerPolicyScopeIdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return CustomerPolicyScopeIdType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyStatus.cpp b/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyStatus.cpp index 2c68d4f1304..2b0d478107b 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyStatus.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/CustomerPolicyStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomerPolicyStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int OUT_OF_ADMIN_SCOPE_HASH = HashingUtils::HashString("OUT_OF_ADMIN_SCOPE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t OUT_OF_ADMIN_SCOPE_HASH = ConstExprHashingUtils::HashString("OUT_OF_ADMIN_SCOPE"); CustomerPolicyStatus GetCustomerPolicyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CustomerPolicyStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/DependentServiceName.cpp b/generated/src/aws-cpp-sdk-fms/source/model/DependentServiceName.cpp index bbc2e783043..0d8967b0f49 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/DependentServiceName.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/DependentServiceName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DependentServiceNameMapper { - static const int AWSCONFIG_HASH = HashingUtils::HashString("AWSCONFIG"); - static const int AWSWAF_HASH = HashingUtils::HashString("AWSWAF"); - static const int AWSSHIELD_ADVANCED_HASH = HashingUtils::HashString("AWSSHIELD_ADVANCED"); - static const int AWSVPC_HASH = HashingUtils::HashString("AWSVPC"); + static constexpr uint32_t AWSCONFIG_HASH = ConstExprHashingUtils::HashString("AWSCONFIG"); + static constexpr uint32_t AWSWAF_HASH = ConstExprHashingUtils::HashString("AWSWAF"); + static constexpr uint32_t AWSSHIELD_ADVANCED_HASH = ConstExprHashingUtils::HashString("AWSSHIELD_ADVANCED"); + static constexpr uint32_t AWSVPC_HASH = ConstExprHashingUtils::HashString("AWSVPC"); DependentServiceName GetDependentServiceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSCONFIG_HASH) { return DependentServiceName::AWSCONFIG; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/DestinationType.cpp b/generated/src/aws-cpp-sdk-fms/source/model/DestinationType.cpp index ad2f0081724..f9c317d48f1 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/DestinationType.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/DestinationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DestinationTypeMapper { - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); - static const int PREFIX_LIST_HASH = HashingUtils::HashString("PREFIX_LIST"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); + static constexpr uint32_t PREFIX_LIST_HASH = ConstExprHashingUtils::HashString("PREFIX_LIST"); DestinationType GetDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_HASH) { return DestinationType::IPV4; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/FailedItemReason.cpp b/generated/src/aws-cpp-sdk-fms/source/model/FailedItemReason.cpp index e67ae1b1048..850f6eba840 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/FailedItemReason.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/FailedItemReason.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FailedItemReasonMapper { - static const int NOT_VALID_ARN_HASH = HashingUtils::HashString("NOT_VALID_ARN"); - static const int NOT_VALID_PARTITION_HASH = HashingUtils::HashString("NOT_VALID_PARTITION"); - static const int NOT_VALID_REGION_HASH = HashingUtils::HashString("NOT_VALID_REGION"); - static const int NOT_VALID_SERVICE_HASH = HashingUtils::HashString("NOT_VALID_SERVICE"); - static const int NOT_VALID_RESOURCE_TYPE_HASH = HashingUtils::HashString("NOT_VALID_RESOURCE_TYPE"); - static const int NOT_VALID_ACCOUNT_ID_HASH = HashingUtils::HashString("NOT_VALID_ACCOUNT_ID"); + static constexpr uint32_t NOT_VALID_ARN_HASH = ConstExprHashingUtils::HashString("NOT_VALID_ARN"); + static constexpr uint32_t NOT_VALID_PARTITION_HASH = ConstExprHashingUtils::HashString("NOT_VALID_PARTITION"); + static constexpr uint32_t NOT_VALID_REGION_HASH = ConstExprHashingUtils::HashString("NOT_VALID_REGION"); + static constexpr uint32_t NOT_VALID_SERVICE_HASH = ConstExprHashingUtils::HashString("NOT_VALID_SERVICE"); + static constexpr uint32_t NOT_VALID_RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("NOT_VALID_RESOURCE_TYPE"); + static constexpr uint32_t NOT_VALID_ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("NOT_VALID_ACCOUNT_ID"); FailedItemReason GetFailedItemReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_VALID_ARN_HASH) { return FailedItemReason::NOT_VALID_ARN; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/FirewallDeploymentModel.cpp b/generated/src/aws-cpp-sdk-fms/source/model/FirewallDeploymentModel.cpp index 59b0486d631..63bf8d9e621 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/FirewallDeploymentModel.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/FirewallDeploymentModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FirewallDeploymentModelMapper { - static const int CENTRALIZED_HASH = HashingUtils::HashString("CENTRALIZED"); - static const int DISTRIBUTED_HASH = HashingUtils::HashString("DISTRIBUTED"); + static constexpr uint32_t CENTRALIZED_HASH = ConstExprHashingUtils::HashString("CENTRALIZED"); + static constexpr uint32_t DISTRIBUTED_HASH = ConstExprHashingUtils::HashString("DISTRIBUTED"); FirewallDeploymentModel GetFirewallDeploymentModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENTRALIZED_HASH) { return FirewallDeploymentModel::CENTRALIZED; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/MarketplaceSubscriptionOnboardingStatus.cpp b/generated/src/aws-cpp-sdk-fms/source/model/MarketplaceSubscriptionOnboardingStatus.cpp index 0aed9263462..dc203273767 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/MarketplaceSubscriptionOnboardingStatus.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/MarketplaceSubscriptionOnboardingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MarketplaceSubscriptionOnboardingStatusMapper { - static const int NO_SUBSCRIPTION_HASH = HashingUtils::HashString("NO_SUBSCRIPTION"); - static const int NOT_COMPLETE_HASH = HashingUtils::HashString("NOT_COMPLETE"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + static constexpr uint32_t NO_SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("NO_SUBSCRIPTION"); + static constexpr uint32_t NOT_COMPLETE_HASH = ConstExprHashingUtils::HashString("NOT_COMPLETE"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); MarketplaceSubscriptionOnboardingStatus GetMarketplaceSubscriptionOnboardingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_SUBSCRIPTION_HASH) { return MarketplaceSubscriptionOnboardingStatus::NO_SUBSCRIPTION; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/NetworkFirewallOverrideAction.cpp b/generated/src/aws-cpp-sdk-fms/source/model/NetworkFirewallOverrideAction.cpp index cdfea00e3b2..6e19bbbe4b7 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/NetworkFirewallOverrideAction.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/NetworkFirewallOverrideAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NetworkFirewallOverrideActionMapper { - static const int DROP_TO_ALERT_HASH = HashingUtils::HashString("DROP_TO_ALERT"); + static constexpr uint32_t DROP_TO_ALERT_HASH = ConstExprHashingUtils::HashString("DROP_TO_ALERT"); NetworkFirewallOverrideAction GetNetworkFirewallOverrideActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROP_TO_ALERT_HASH) { return NetworkFirewallOverrideAction::DROP_TO_ALERT; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/OrganizationStatus.cpp b/generated/src/aws-cpp-sdk-fms/source/model/OrganizationStatus.cpp index a1d042278b6..9a90253d934 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/OrganizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/OrganizationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OrganizationStatusMapper { - static const int ONBOARDING_HASH = HashingUtils::HashString("ONBOARDING"); - static const int ONBOARDING_COMPLETE_HASH = HashingUtils::HashString("ONBOARDING_COMPLETE"); - static const int OFFBOARDING_HASH = HashingUtils::HashString("OFFBOARDING"); - static const int OFFBOARDING_COMPLETE_HASH = HashingUtils::HashString("OFFBOARDING_COMPLETE"); + static constexpr uint32_t ONBOARDING_HASH = ConstExprHashingUtils::HashString("ONBOARDING"); + static constexpr uint32_t ONBOARDING_COMPLETE_HASH = ConstExprHashingUtils::HashString("ONBOARDING_COMPLETE"); + static constexpr uint32_t OFFBOARDING_HASH = ConstExprHashingUtils::HashString("OFFBOARDING"); + static constexpr uint32_t OFFBOARDING_COMPLETE_HASH = ConstExprHashingUtils::HashString("OFFBOARDING_COMPLETE"); OrganizationStatus GetOrganizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONBOARDING_HASH) { return OrganizationStatus::ONBOARDING; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/PolicyComplianceStatusType.cpp b/generated/src/aws-cpp-sdk-fms/source/model/PolicyComplianceStatusType.cpp index 6b456c6c405..c46f2e905bb 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/PolicyComplianceStatusType.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/PolicyComplianceStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PolicyComplianceStatusTypeMapper { - static const int COMPLIANT_HASH = HashingUtils::HashString("COMPLIANT"); - static const int NON_COMPLIANT_HASH = HashingUtils::HashString("NON_COMPLIANT"); + static constexpr uint32_t COMPLIANT_HASH = ConstExprHashingUtils::HashString("COMPLIANT"); + static constexpr uint32_t NON_COMPLIANT_HASH = ConstExprHashingUtils::HashString("NON_COMPLIANT"); PolicyComplianceStatusType GetPolicyComplianceStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANT_HASH) { return PolicyComplianceStatusType::COMPLIANT; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/RemediationActionType.cpp b/generated/src/aws-cpp-sdk-fms/source/model/RemediationActionType.cpp index d7ec721cf1c..ab444ae7a7f 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/RemediationActionType.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/RemediationActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RemediationActionTypeMapper { - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); - static const int MODIFY_HASH = HashingUtils::HashString("MODIFY"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); + static constexpr uint32_t MODIFY_HASH = ConstExprHashingUtils::HashString("MODIFY"); RemediationActionType GetRemediationActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REMOVE_HASH) { return RemediationActionType::REMOVE; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/ResourceSetStatus.cpp b/generated/src/aws-cpp-sdk-fms/source/model/ResourceSetStatus.cpp index 0eb766fdb5f..44384df5c69 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/ResourceSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/ResourceSetStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceSetStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int OUT_OF_ADMIN_SCOPE_HASH = HashingUtils::HashString("OUT_OF_ADMIN_SCOPE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t OUT_OF_ADMIN_SCOPE_HASH = ConstExprHashingUtils::HashString("OUT_OF_ADMIN_SCOPE"); ResourceSetStatus GetResourceSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ResourceSetStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/RuleOrder.cpp b/generated/src/aws-cpp-sdk-fms/source/model/RuleOrder.cpp index 4a667b6b884..39af4c1641a 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/RuleOrder.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/RuleOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleOrderMapper { - static const int STRICT_ORDER_HASH = HashingUtils::HashString("STRICT_ORDER"); - static const int DEFAULT_ACTION_ORDER_HASH = HashingUtils::HashString("DEFAULT_ACTION_ORDER"); + static constexpr uint32_t STRICT_ORDER_HASH = ConstExprHashingUtils::HashString("STRICT_ORDER"); + static constexpr uint32_t DEFAULT_ACTION_ORDER_HASH = ConstExprHashingUtils::HashString("DEFAULT_ACTION_ORDER"); RuleOrder GetRuleOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRICT_ORDER_HASH) { return RuleOrder::STRICT_ORDER; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/SecurityServiceType.cpp b/generated/src/aws-cpp-sdk-fms/source/model/SecurityServiceType.cpp index 0914db76656..707fd656cd2 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/SecurityServiceType.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/SecurityServiceType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace SecurityServiceTypeMapper { - static const int WAF_HASH = HashingUtils::HashString("WAF"); - static const int WAFV2_HASH = HashingUtils::HashString("WAFV2"); - static const int SHIELD_ADVANCED_HASH = HashingUtils::HashString("SHIELD_ADVANCED"); - static const int SECURITY_GROUPS_COMMON_HASH = HashingUtils::HashString("SECURITY_GROUPS_COMMON"); - static const int SECURITY_GROUPS_CONTENT_AUDIT_HASH = HashingUtils::HashString("SECURITY_GROUPS_CONTENT_AUDIT"); - static const int SECURITY_GROUPS_USAGE_AUDIT_HASH = HashingUtils::HashString("SECURITY_GROUPS_USAGE_AUDIT"); - static const int NETWORK_FIREWALL_HASH = HashingUtils::HashString("NETWORK_FIREWALL"); - static const int DNS_FIREWALL_HASH = HashingUtils::HashString("DNS_FIREWALL"); - static const int THIRD_PARTY_FIREWALL_HASH = HashingUtils::HashString("THIRD_PARTY_FIREWALL"); - static const int IMPORT_NETWORK_FIREWALL_HASH = HashingUtils::HashString("IMPORT_NETWORK_FIREWALL"); + static constexpr uint32_t WAF_HASH = ConstExprHashingUtils::HashString("WAF"); + static constexpr uint32_t WAFV2_HASH = ConstExprHashingUtils::HashString("WAFV2"); + static constexpr uint32_t SHIELD_ADVANCED_HASH = ConstExprHashingUtils::HashString("SHIELD_ADVANCED"); + static constexpr uint32_t SECURITY_GROUPS_COMMON_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUPS_COMMON"); + static constexpr uint32_t SECURITY_GROUPS_CONTENT_AUDIT_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUPS_CONTENT_AUDIT"); + static constexpr uint32_t SECURITY_GROUPS_USAGE_AUDIT_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUPS_USAGE_AUDIT"); + static constexpr uint32_t NETWORK_FIREWALL_HASH = ConstExprHashingUtils::HashString("NETWORK_FIREWALL"); + static constexpr uint32_t DNS_FIREWALL_HASH = ConstExprHashingUtils::HashString("DNS_FIREWALL"); + static constexpr uint32_t THIRD_PARTY_FIREWALL_HASH = ConstExprHashingUtils::HashString("THIRD_PARTY_FIREWALL"); + static constexpr uint32_t IMPORT_NETWORK_FIREWALL_HASH = ConstExprHashingUtils::HashString("IMPORT_NETWORK_FIREWALL"); SecurityServiceType GetSecurityServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAF_HASH) { return SecurityServiceType::WAF; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-fms/source/model/TargetType.cpp index 84e08925628..0acf256e678 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/TargetType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace TargetTypeMapper { - static const int GATEWAY_HASH = HashingUtils::HashString("GATEWAY"); - static const int CARRIER_GATEWAY_HASH = HashingUtils::HashString("CARRIER_GATEWAY"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); - static const int LOCAL_GATEWAY_HASH = HashingUtils::HashString("LOCAL_GATEWAY"); - static const int NAT_GATEWAY_HASH = HashingUtils::HashString("NAT_GATEWAY"); - static const int NETWORK_INTERFACE_HASH = HashingUtils::HashString("NETWORK_INTERFACE"); - static const int VPC_ENDPOINT_HASH = HashingUtils::HashString("VPC_ENDPOINT"); - static const int VPC_PEERING_CONNECTION_HASH = HashingUtils::HashString("VPC_PEERING_CONNECTION"); - static const int EGRESS_ONLY_INTERNET_GATEWAY_HASH = HashingUtils::HashString("EGRESS_ONLY_INTERNET_GATEWAY"); - static const int TRANSIT_GATEWAY_HASH = HashingUtils::HashString("TRANSIT_GATEWAY"); + static constexpr uint32_t GATEWAY_HASH = ConstExprHashingUtils::HashString("GATEWAY"); + static constexpr uint32_t CARRIER_GATEWAY_HASH = ConstExprHashingUtils::HashString("CARRIER_GATEWAY"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); + static constexpr uint32_t LOCAL_GATEWAY_HASH = ConstExprHashingUtils::HashString("LOCAL_GATEWAY"); + static constexpr uint32_t NAT_GATEWAY_HASH = ConstExprHashingUtils::HashString("NAT_GATEWAY"); + static constexpr uint32_t NETWORK_INTERFACE_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE"); + static constexpr uint32_t VPC_ENDPOINT_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT"); + static constexpr uint32_t VPC_PEERING_CONNECTION_HASH = ConstExprHashingUtils::HashString("VPC_PEERING_CONNECTION"); + static constexpr uint32_t EGRESS_ONLY_INTERNET_GATEWAY_HASH = ConstExprHashingUtils::HashString("EGRESS_ONLY_INTERNET_GATEWAY"); + static constexpr uint32_t TRANSIT_GATEWAY_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GATEWAY_HASH) { return TargetType::GATEWAY; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewall.cpp b/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewall.cpp index 3f6bef777a5..f6c9c4a2793 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewall.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewall.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThirdPartyFirewallMapper { - static const int PALO_ALTO_NETWORKS_CLOUD_NGFW_HASH = HashingUtils::HashString("PALO_ALTO_NETWORKS_CLOUD_NGFW"); - static const int FORTIGATE_CLOUD_NATIVE_FIREWALL_HASH = HashingUtils::HashString("FORTIGATE_CLOUD_NATIVE_FIREWALL"); + static constexpr uint32_t PALO_ALTO_NETWORKS_CLOUD_NGFW_HASH = ConstExprHashingUtils::HashString("PALO_ALTO_NETWORKS_CLOUD_NGFW"); + static constexpr uint32_t FORTIGATE_CLOUD_NATIVE_FIREWALL_HASH = ConstExprHashingUtils::HashString("FORTIGATE_CLOUD_NATIVE_FIREWALL"); ThirdPartyFirewall GetThirdPartyFirewallForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PALO_ALTO_NETWORKS_CLOUD_NGFW_HASH) { return ThirdPartyFirewall::PALO_ALTO_NETWORKS_CLOUD_NGFW; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewallAssociationStatus.cpp b/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewallAssociationStatus.cpp index dc49a7d5258..528d7709e86 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewallAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/ThirdPartyFirewallAssociationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ThirdPartyFirewallAssociationStatusMapper { - static const int ONBOARDING_HASH = HashingUtils::HashString("ONBOARDING"); - static const int ONBOARD_COMPLETE_HASH = HashingUtils::HashString("ONBOARD_COMPLETE"); - static const int OFFBOARDING_HASH = HashingUtils::HashString("OFFBOARDING"); - static const int OFFBOARD_COMPLETE_HASH = HashingUtils::HashString("OFFBOARD_COMPLETE"); - static const int NOT_EXIST_HASH = HashingUtils::HashString("NOT_EXIST"); + static constexpr uint32_t ONBOARDING_HASH = ConstExprHashingUtils::HashString("ONBOARDING"); + static constexpr uint32_t ONBOARD_COMPLETE_HASH = ConstExprHashingUtils::HashString("ONBOARD_COMPLETE"); + static constexpr uint32_t OFFBOARDING_HASH = ConstExprHashingUtils::HashString("OFFBOARDING"); + static constexpr uint32_t OFFBOARD_COMPLETE_HASH = ConstExprHashingUtils::HashString("OFFBOARD_COMPLETE"); + static constexpr uint32_t NOT_EXIST_HASH = ConstExprHashingUtils::HashString("NOT_EXIST"); ThirdPartyFirewallAssociationStatus GetThirdPartyFirewallAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONBOARDING_HASH) { return ThirdPartyFirewallAssociationStatus::ONBOARDING; diff --git a/generated/src/aws-cpp-sdk-fms/source/model/ViolationReason.cpp b/generated/src/aws-cpp-sdk-fms/source/model/ViolationReason.cpp index b49b4808cb4..671001453a1 100644 --- a/generated/src/aws-cpp-sdk-fms/source/model/ViolationReason.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/model/ViolationReason.cpp @@ -20,39 +20,39 @@ namespace Aws namespace ViolationReasonMapper { - static const int WEB_ACL_MISSING_RULE_GROUP_HASH = HashingUtils::HashString("WEB_ACL_MISSING_RULE_GROUP"); - static const int RESOURCE_MISSING_WEB_ACL_HASH = HashingUtils::HashString("RESOURCE_MISSING_WEB_ACL"); - static const int RESOURCE_INCORRECT_WEB_ACL_HASH = HashingUtils::HashString("RESOURCE_INCORRECT_WEB_ACL"); - static const int RESOURCE_MISSING_SHIELD_PROTECTION_HASH = HashingUtils::HashString("RESOURCE_MISSING_SHIELD_PROTECTION"); - static const int RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION_HASH = HashingUtils::HashString("RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION"); - static const int RESOURCE_MISSING_SECURITY_GROUP_HASH = HashingUtils::HashString("RESOURCE_MISSING_SECURITY_GROUP"); - static const int RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP_HASH = HashingUtils::HashString("RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP"); - static const int SECURITY_GROUP_UNUSED_HASH = HashingUtils::HashString("SECURITY_GROUP_UNUSED"); - static const int SECURITY_GROUP_REDUNDANT_HASH = HashingUtils::HashString("SECURITY_GROUP_REDUNDANT"); - static const int FMS_CREATED_SECURITY_GROUP_EDITED_HASH = HashingUtils::HashString("FMS_CREATED_SECURITY_GROUP_EDITED"); - static const int MISSING_FIREWALL_HASH = HashingUtils::HashString("MISSING_FIREWALL"); - static const int MISSING_FIREWALL_SUBNET_IN_AZ_HASH = HashingUtils::HashString("MISSING_FIREWALL_SUBNET_IN_AZ"); - static const int MISSING_EXPECTED_ROUTE_TABLE_HASH = HashingUtils::HashString("MISSING_EXPECTED_ROUTE_TABLE"); - static const int NETWORK_FIREWALL_POLICY_MODIFIED_HASH = HashingUtils::HashString("NETWORK_FIREWALL_POLICY_MODIFIED"); - static const int FIREWALL_SUBNET_IS_OUT_OF_SCOPE_HASH = HashingUtils::HashString("FIREWALL_SUBNET_IS_OUT_OF_SCOPE"); - static const int INTERNET_GATEWAY_MISSING_EXPECTED_ROUTE_HASH = HashingUtils::HashString("INTERNET_GATEWAY_MISSING_EXPECTED_ROUTE"); - static const int FIREWALL_SUBNET_MISSING_EXPECTED_ROUTE_HASH = HashingUtils::HashString("FIREWALL_SUBNET_MISSING_EXPECTED_ROUTE"); - static const int UNEXPECTED_FIREWALL_ROUTES_HASH = HashingUtils::HashString("UNEXPECTED_FIREWALL_ROUTES"); - static const int UNEXPECTED_TARGET_GATEWAY_ROUTES_HASH = HashingUtils::HashString("UNEXPECTED_TARGET_GATEWAY_ROUTES"); - static const int TRAFFIC_INSPECTION_CROSSES_AZ_BOUNDARY_HASH = HashingUtils::HashString("TRAFFIC_INSPECTION_CROSSES_AZ_BOUNDARY"); - static const int INVALID_ROUTE_CONFIGURATION_HASH = HashingUtils::HashString("INVALID_ROUTE_CONFIGURATION"); - static const int MISSING_TARGET_GATEWAY_HASH = HashingUtils::HashString("MISSING_TARGET_GATEWAY"); - static const int INTERNET_TRAFFIC_NOT_INSPECTED_HASH = HashingUtils::HashString("INTERNET_TRAFFIC_NOT_INSPECTED"); - static const int BLACK_HOLE_ROUTE_DETECTED_HASH = HashingUtils::HashString("BLACK_HOLE_ROUTE_DETECTED"); - static const int BLACK_HOLE_ROUTE_DETECTED_IN_FIREWALL_SUBNET_HASH = HashingUtils::HashString("BLACK_HOLE_ROUTE_DETECTED_IN_FIREWALL_SUBNET"); - static const int RESOURCE_MISSING_DNS_FIREWALL_HASH = HashingUtils::HashString("RESOURCE_MISSING_DNS_FIREWALL"); - static const int ROUTE_HAS_OUT_OF_SCOPE_ENDPOINT_HASH = HashingUtils::HashString("ROUTE_HAS_OUT_OF_SCOPE_ENDPOINT"); - static const int FIREWALL_SUBNET_MISSING_VPCE_ENDPOINT_HASH = HashingUtils::HashString("FIREWALL_SUBNET_MISSING_VPCE_ENDPOINT"); + static constexpr uint32_t WEB_ACL_MISSING_RULE_GROUP_HASH = ConstExprHashingUtils::HashString("WEB_ACL_MISSING_RULE_GROUP"); + static constexpr uint32_t RESOURCE_MISSING_WEB_ACL_HASH = ConstExprHashingUtils::HashString("RESOURCE_MISSING_WEB_ACL"); + static constexpr uint32_t RESOURCE_INCORRECT_WEB_ACL_HASH = ConstExprHashingUtils::HashString("RESOURCE_INCORRECT_WEB_ACL"); + static constexpr uint32_t RESOURCE_MISSING_SHIELD_PROTECTION_HASH = ConstExprHashingUtils::HashString("RESOURCE_MISSING_SHIELD_PROTECTION"); + static constexpr uint32_t RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION_HASH = ConstExprHashingUtils::HashString("RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION"); + static constexpr uint32_t RESOURCE_MISSING_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("RESOURCE_MISSING_SECURITY_GROUP"); + static constexpr uint32_t RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP"); + static constexpr uint32_t SECURITY_GROUP_UNUSED_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUP_UNUSED"); + static constexpr uint32_t SECURITY_GROUP_REDUNDANT_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUP_REDUNDANT"); + static constexpr uint32_t FMS_CREATED_SECURITY_GROUP_EDITED_HASH = ConstExprHashingUtils::HashString("FMS_CREATED_SECURITY_GROUP_EDITED"); + static constexpr uint32_t MISSING_FIREWALL_HASH = ConstExprHashingUtils::HashString("MISSING_FIREWALL"); + static constexpr uint32_t MISSING_FIREWALL_SUBNET_IN_AZ_HASH = ConstExprHashingUtils::HashString("MISSING_FIREWALL_SUBNET_IN_AZ"); + static constexpr uint32_t MISSING_EXPECTED_ROUTE_TABLE_HASH = ConstExprHashingUtils::HashString("MISSING_EXPECTED_ROUTE_TABLE"); + static constexpr uint32_t NETWORK_FIREWALL_POLICY_MODIFIED_HASH = ConstExprHashingUtils::HashString("NETWORK_FIREWALL_POLICY_MODIFIED"); + static constexpr uint32_t FIREWALL_SUBNET_IS_OUT_OF_SCOPE_HASH = ConstExprHashingUtils::HashString("FIREWALL_SUBNET_IS_OUT_OF_SCOPE"); + static constexpr uint32_t INTERNET_GATEWAY_MISSING_EXPECTED_ROUTE_HASH = ConstExprHashingUtils::HashString("INTERNET_GATEWAY_MISSING_EXPECTED_ROUTE"); + static constexpr uint32_t FIREWALL_SUBNET_MISSING_EXPECTED_ROUTE_HASH = ConstExprHashingUtils::HashString("FIREWALL_SUBNET_MISSING_EXPECTED_ROUTE"); + static constexpr uint32_t UNEXPECTED_FIREWALL_ROUTES_HASH = ConstExprHashingUtils::HashString("UNEXPECTED_FIREWALL_ROUTES"); + static constexpr uint32_t UNEXPECTED_TARGET_GATEWAY_ROUTES_HASH = ConstExprHashingUtils::HashString("UNEXPECTED_TARGET_GATEWAY_ROUTES"); + static constexpr uint32_t TRAFFIC_INSPECTION_CROSSES_AZ_BOUNDARY_HASH = ConstExprHashingUtils::HashString("TRAFFIC_INSPECTION_CROSSES_AZ_BOUNDARY"); + static constexpr uint32_t INVALID_ROUTE_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INVALID_ROUTE_CONFIGURATION"); + static constexpr uint32_t MISSING_TARGET_GATEWAY_HASH = ConstExprHashingUtils::HashString("MISSING_TARGET_GATEWAY"); + static constexpr uint32_t INTERNET_TRAFFIC_NOT_INSPECTED_HASH = ConstExprHashingUtils::HashString("INTERNET_TRAFFIC_NOT_INSPECTED"); + static constexpr uint32_t BLACK_HOLE_ROUTE_DETECTED_HASH = ConstExprHashingUtils::HashString("BLACK_HOLE_ROUTE_DETECTED"); + static constexpr uint32_t BLACK_HOLE_ROUTE_DETECTED_IN_FIREWALL_SUBNET_HASH = ConstExprHashingUtils::HashString("BLACK_HOLE_ROUTE_DETECTED_IN_FIREWALL_SUBNET"); + static constexpr uint32_t RESOURCE_MISSING_DNS_FIREWALL_HASH = ConstExprHashingUtils::HashString("RESOURCE_MISSING_DNS_FIREWALL"); + static constexpr uint32_t ROUTE_HAS_OUT_OF_SCOPE_ENDPOINT_HASH = ConstExprHashingUtils::HashString("ROUTE_HAS_OUT_OF_SCOPE_ENDPOINT"); + static constexpr uint32_t FIREWALL_SUBNET_MISSING_VPCE_ENDPOINT_HASH = ConstExprHashingUtils::HashString("FIREWALL_SUBNET_MISSING_VPCE_ENDPOINT"); ViolationReason GetViolationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEB_ACL_MISSING_RULE_GROUP_HASH) { return ViolationReason::WEB_ACL_MISSING_RULE_GROUP; diff --git a/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceErrors.cpp b/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceErrors.cpp index 19caecb49e3..a3400e92df3 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceErrors.cpp @@ -18,16 +18,16 @@ namespace ForecastService namespace ForecastServiceErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/AttributeType.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/AttributeType.cpp index fc334fb6138..825ab8d319d 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/AttributeType.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/AttributeType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AttributeTypeMapper { - static const int string_HASH = HashingUtils::HashString("string"); - static const int integer_HASH = HashingUtils::HashString("integer"); - static const int float__HASH = HashingUtils::HashString("float"); - static const int timestamp_HASH = HashingUtils::HashString("timestamp"); - static const int geolocation_HASH = HashingUtils::HashString("geolocation"); + static constexpr uint32_t string_HASH = ConstExprHashingUtils::HashString("string"); + static constexpr uint32_t integer_HASH = ConstExprHashingUtils::HashString("integer"); + static constexpr uint32_t float__HASH = ConstExprHashingUtils::HashString("float"); + static constexpr uint32_t timestamp_HASH = ConstExprHashingUtils::HashString("timestamp"); + static constexpr uint32_t geolocation_HASH = ConstExprHashingUtils::HashString("geolocation"); AttributeType GetAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == string_HASH) { return AttributeType::string; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/AutoMLOverrideStrategy.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/AutoMLOverrideStrategy.cpp index 64887c96d8f..e70fbb35199 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/AutoMLOverrideStrategy.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/AutoMLOverrideStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoMLOverrideStrategyMapper { - static const int LatencyOptimized_HASH = HashingUtils::HashString("LatencyOptimized"); - static const int AccuracyOptimized_HASH = HashingUtils::HashString("AccuracyOptimized"); + static constexpr uint32_t LatencyOptimized_HASH = ConstExprHashingUtils::HashString("LatencyOptimized"); + static constexpr uint32_t AccuracyOptimized_HASH = ConstExprHashingUtils::HashString("AccuracyOptimized"); AutoMLOverrideStrategy GetAutoMLOverrideStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LatencyOptimized_HASH) { return AutoMLOverrideStrategy::LatencyOptimized; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/Condition.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/Condition.cpp index 0cf4724bd0d..897c5914dbd 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/Condition.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/Condition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConditionMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); Condition GetConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return Condition::EQUALS; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/DatasetType.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/DatasetType.cpp index f431c0dbdc9..80781113cd2 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/DatasetType.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/DatasetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasetTypeMapper { - static const int TARGET_TIME_SERIES_HASH = HashingUtils::HashString("TARGET_TIME_SERIES"); - static const int RELATED_TIME_SERIES_HASH = HashingUtils::HashString("RELATED_TIME_SERIES"); - static const int ITEM_METADATA_HASH = HashingUtils::HashString("ITEM_METADATA"); + static constexpr uint32_t TARGET_TIME_SERIES_HASH = ConstExprHashingUtils::HashString("TARGET_TIME_SERIES"); + static constexpr uint32_t RELATED_TIME_SERIES_HASH = ConstExprHashingUtils::HashString("RELATED_TIME_SERIES"); + static constexpr uint32_t ITEM_METADATA_HASH = ConstExprHashingUtils::HashString("ITEM_METADATA"); DatasetType GetDatasetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TARGET_TIME_SERIES_HASH) { return DatasetType::TARGET_TIME_SERIES; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/DayOfWeek.cpp index 53e8195f62a..3f382f9ea55 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONDAY_HASH) { return DayOfWeek::MONDAY; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/Domain.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/Domain.cpp index a7d60f0e2d8..ba564251c98 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/Domain.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/Domain.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DomainMapper { - static const int RETAIL_HASH = HashingUtils::HashString("RETAIL"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int INVENTORY_PLANNING_HASH = HashingUtils::HashString("INVENTORY_PLANNING"); - static const int EC2_CAPACITY_HASH = HashingUtils::HashString("EC2_CAPACITY"); - static const int WORK_FORCE_HASH = HashingUtils::HashString("WORK_FORCE"); - static const int WEB_TRAFFIC_HASH = HashingUtils::HashString("WEB_TRAFFIC"); - static const int METRICS_HASH = HashingUtils::HashString("METRICS"); + static constexpr uint32_t RETAIL_HASH = ConstExprHashingUtils::HashString("RETAIL"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t INVENTORY_PLANNING_HASH = ConstExprHashingUtils::HashString("INVENTORY_PLANNING"); + static constexpr uint32_t EC2_CAPACITY_HASH = ConstExprHashingUtils::HashString("EC2_CAPACITY"); + static constexpr uint32_t WORK_FORCE_HASH = ConstExprHashingUtils::HashString("WORK_FORCE"); + static constexpr uint32_t WEB_TRAFFIC_HASH = ConstExprHashingUtils::HashString("WEB_TRAFFIC"); + static constexpr uint32_t METRICS_HASH = ConstExprHashingUtils::HashString("METRICS"); Domain GetDomainForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RETAIL_HASH) { return Domain::RETAIL; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/EvaluationType.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/EvaluationType.cpp index fff8efd173e..ee9f8438c80 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/EvaluationType.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/EvaluationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationTypeMapper { - static const int SUMMARY_HASH = HashingUtils::HashString("SUMMARY"); - static const int COMPUTED_HASH = HashingUtils::HashString("COMPUTED"); + static constexpr uint32_t SUMMARY_HASH = ConstExprHashingUtils::HashString("SUMMARY"); + static constexpr uint32_t COMPUTED_HASH = ConstExprHashingUtils::HashString("COMPUTED"); EvaluationType GetEvaluationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUMMARY_HASH) { return EvaluationType::SUMMARY; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/FeaturizationMethodName.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/FeaturizationMethodName.cpp index d713565f433..9abdef0a706 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/FeaturizationMethodName.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/FeaturizationMethodName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FeaturizationMethodNameMapper { - static const int filling_HASH = HashingUtils::HashString("filling"); + static constexpr uint32_t filling_HASH = ConstExprHashingUtils::HashString("filling"); FeaturizationMethodName GetFeaturizationMethodNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == filling_HASH) { return FeaturizationMethodName::filling; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/FilterConditionString.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/FilterConditionString.cpp index 1534ef939d3..a128c6d3472 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/FilterConditionString.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/FilterConditionString.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterConditionStringMapper { - static const int IS_HASH = HashingUtils::HashString("IS"); - static const int IS_NOT_HASH = HashingUtils::HashString("IS_NOT"); + static constexpr uint32_t IS_HASH = ConstExprHashingUtils::HashString("IS"); + static constexpr uint32_t IS_NOT_HASH = ConstExprHashingUtils::HashString("IS_NOT"); FilterConditionString GetFilterConditionStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IS_HASH) { return FilterConditionString::IS; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/ImportMode.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/ImportMode.cpp index bee88f6d8a1..8fd7f495b03 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/ImportMode.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/ImportMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImportModeMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int INCREMENTAL_HASH = HashingUtils::HashString("INCREMENTAL"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t INCREMENTAL_HASH = ConstExprHashingUtils::HashString("INCREMENTAL"); ImportMode GetImportModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return ImportMode::FULL; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/Month.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/Month.cpp index ae60949fe6a..f57a4af8905 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/Month.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/Month.cpp @@ -20,23 +20,23 @@ namespace Aws namespace MonthMapper { - static const int JANUARY_HASH = HashingUtils::HashString("JANUARY"); - static const int FEBRUARY_HASH = HashingUtils::HashString("FEBRUARY"); - static const int MARCH_HASH = HashingUtils::HashString("MARCH"); - static const int APRIL_HASH = HashingUtils::HashString("APRIL"); - static const int MAY_HASH = HashingUtils::HashString("MAY"); - static const int JUNE_HASH = HashingUtils::HashString("JUNE"); - static const int JULY_HASH = HashingUtils::HashString("JULY"); - static const int AUGUST_HASH = HashingUtils::HashString("AUGUST"); - static const int SEPTEMBER_HASH = HashingUtils::HashString("SEPTEMBER"); - static const int OCTOBER_HASH = HashingUtils::HashString("OCTOBER"); - static const int NOVEMBER_HASH = HashingUtils::HashString("NOVEMBER"); - static const int DECEMBER_HASH = HashingUtils::HashString("DECEMBER"); + static constexpr uint32_t JANUARY_HASH = ConstExprHashingUtils::HashString("JANUARY"); + static constexpr uint32_t FEBRUARY_HASH = ConstExprHashingUtils::HashString("FEBRUARY"); + static constexpr uint32_t MARCH_HASH = ConstExprHashingUtils::HashString("MARCH"); + static constexpr uint32_t APRIL_HASH = ConstExprHashingUtils::HashString("APRIL"); + static constexpr uint32_t MAY_HASH = ConstExprHashingUtils::HashString("MAY"); + static constexpr uint32_t JUNE_HASH = ConstExprHashingUtils::HashString("JUNE"); + static constexpr uint32_t JULY_HASH = ConstExprHashingUtils::HashString("JULY"); + static constexpr uint32_t AUGUST_HASH = ConstExprHashingUtils::HashString("AUGUST"); + static constexpr uint32_t SEPTEMBER_HASH = ConstExprHashingUtils::HashString("SEPTEMBER"); + static constexpr uint32_t OCTOBER_HASH = ConstExprHashingUtils::HashString("OCTOBER"); + static constexpr uint32_t NOVEMBER_HASH = ConstExprHashingUtils::HashString("NOVEMBER"); + static constexpr uint32_t DECEMBER_HASH = ConstExprHashingUtils::HashString("DECEMBER"); Month GetMonthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JANUARY_HASH) { return Month::JANUARY; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/Operation.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/Operation.cpp index 857ab708b8f..f114db90cf8 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/Operation.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/Operation.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OperationMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int SUBTRACT_HASH = HashingUtils::HashString("SUBTRACT"); - static const int MULTIPLY_HASH = HashingUtils::HashString("MULTIPLY"); - static const int DIVIDE_HASH = HashingUtils::HashString("DIVIDE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t SUBTRACT_HASH = ConstExprHashingUtils::HashString("SUBTRACT"); + static constexpr uint32_t MULTIPLY_HASH = ConstExprHashingUtils::HashString("MULTIPLY"); + static constexpr uint32_t DIVIDE_HASH = ConstExprHashingUtils::HashString("DIVIDE"); Operation GetOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return Operation::ADD; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/OptimizationMetric.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/OptimizationMetric.cpp index 1e1390f2432..1c8a37f3505 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/OptimizationMetric.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/OptimizationMetric.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OptimizationMetricMapper { - static const int WAPE_HASH = HashingUtils::HashString("WAPE"); - static const int RMSE_HASH = HashingUtils::HashString("RMSE"); - static const int AverageWeightedQuantileLoss_HASH = HashingUtils::HashString("AverageWeightedQuantileLoss"); - static const int MASE_HASH = HashingUtils::HashString("MASE"); - static const int MAPE_HASH = HashingUtils::HashString("MAPE"); + static constexpr uint32_t WAPE_HASH = ConstExprHashingUtils::HashString("WAPE"); + static constexpr uint32_t RMSE_HASH = ConstExprHashingUtils::HashString("RMSE"); + static constexpr uint32_t AverageWeightedQuantileLoss_HASH = ConstExprHashingUtils::HashString("AverageWeightedQuantileLoss"); + static constexpr uint32_t MASE_HASH = ConstExprHashingUtils::HashString("MASE"); + static constexpr uint32_t MAPE_HASH = ConstExprHashingUtils::HashString("MAPE"); OptimizationMetric GetOptimizationMetricForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAPE_HASH) { return OptimizationMetric::WAPE; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/ScalingType.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/ScalingType.cpp index a88050292f7..8bf35d06584 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/ScalingType.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/ScalingType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ScalingTypeMapper { - static const int Auto_HASH = HashingUtils::HashString("Auto"); - static const int Linear_HASH = HashingUtils::HashString("Linear"); - static const int Logarithmic_HASH = HashingUtils::HashString("Logarithmic"); - static const int ReverseLogarithmic_HASH = HashingUtils::HashString("ReverseLogarithmic"); + static constexpr uint32_t Auto_HASH = ConstExprHashingUtils::HashString("Auto"); + static constexpr uint32_t Linear_HASH = ConstExprHashingUtils::HashString("Linear"); + static constexpr uint32_t Logarithmic_HASH = ConstExprHashingUtils::HashString("Logarithmic"); + static constexpr uint32_t ReverseLogarithmic_HASH = ConstExprHashingUtils::HashString("ReverseLogarithmic"); ScalingType GetScalingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Auto_HASH) { return ScalingType::Auto; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/State.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/State.cpp index 6e874bc1a90..85e709c0e59 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/State.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StateMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return State::Active; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/TimePointGranularity.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/TimePointGranularity.cpp index b50df291b28..9666bd15a92 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/TimePointGranularity.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/TimePointGranularity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimePointGranularityMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int SPECIFIC_HASH = HashingUtils::HashString("SPECIFIC"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t SPECIFIC_HASH = ConstExprHashingUtils::HashString("SPECIFIC"); TimePointGranularity GetTimePointGranularityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return TimePointGranularity::ALL; diff --git a/generated/src/aws-cpp-sdk-forecast/source/model/TimeSeriesGranularity.cpp b/generated/src/aws-cpp-sdk-forecast/source/model/TimeSeriesGranularity.cpp index e6e8e6f7dbd..8414d04d3a5 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/model/TimeSeriesGranularity.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/model/TimeSeriesGranularity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimeSeriesGranularityMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int SPECIFIC_HASH = HashingUtils::HashString("SPECIFIC"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t SPECIFIC_HASH = ConstExprHashingUtils::HashString("SPECIFIC"); TimeSeriesGranularity GetTimeSeriesGranularityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return TimeSeriesGranularity::ALL; diff --git a/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceErrors.cpp b/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceErrors.cpp index 35ebf954144..14a16ee50f4 100644 --- a/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceErrors.cpp @@ -18,15 +18,15 @@ namespace ForecastQueryService namespace ForecastQueryServiceErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorErrors.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorErrors.cpp index 0f8138d012e..f20c0cb415d 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorErrors.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorErrors.cpp @@ -18,14 +18,14 @@ namespace FraudDetector namespace FraudDetectorErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/AsyncJobStatus.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/AsyncJobStatus.cpp index 1952521aee4..d3c626c0b27 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/AsyncJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/AsyncJobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AsyncJobStatusMapper { - static const int IN_PROGRESS_INITIALIZING_HASH = HashingUtils::HashString("IN_PROGRESS_INITIALIZING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCEL_IN_PROGRESS_HASH = HashingUtils::HashString("CANCEL_IN_PROGRESS"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_INITIALIZING_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS_INITIALIZING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCEL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CANCEL_IN_PROGRESS"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AsyncJobStatus GetAsyncJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_INITIALIZING_HASH) { return AsyncJobStatus::IN_PROGRESS_INITIALIZING; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/DataSource.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/DataSource.cpp index 8b38656fd83..77e767459d4 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/DataSource.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/DataSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataSourceMapper { - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int MODEL_SCORE_HASH = HashingUtils::HashString("MODEL_SCORE"); - static const int EXTERNAL_MODEL_SCORE_HASH = HashingUtils::HashString("EXTERNAL_MODEL_SCORE"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t MODEL_SCORE_HASH = ConstExprHashingUtils::HashString("MODEL_SCORE"); + static constexpr uint32_t EXTERNAL_MODEL_SCORE_HASH = ConstExprHashingUtils::HashString("EXTERNAL_MODEL_SCORE"); DataSource GetDataSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_HASH) { return DataSource::EVENT; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/DataType.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/DataType.cpp index 4a414a78c15..183855ad4a8 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/DataType.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/DataType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int FLOAT_HASH = HashingUtils::HashString("FLOAT"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int DATETIME_HASH = HashingUtils::HashString("DATETIME"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t FLOAT_HASH = ConstExprHashingUtils::HashString("FLOAT"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t DATETIME_HASH = ConstExprHashingUtils::HashString("DATETIME"); DataType GetDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return DataType::STRING; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/DetectorVersionStatus.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/DetectorVersionStatus.cpp index 9d51f19c302..28c6f8e6011 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/DetectorVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/DetectorVersionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DetectorVersionStatusMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); DetectorVersionStatus GetDetectorVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return DetectorVersionStatus::DRAFT; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/EventIngestion.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/EventIngestion.cpp index 30932dc5f9a..cad559d8204 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/EventIngestion.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/EventIngestion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventIngestionMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EventIngestion GetEventIngestionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EventIngestion::ENABLED; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/Language.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/Language.cpp index 88716a5a6c3..14b0ca59fc9 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/Language.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/Language.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LanguageMapper { - static const int DETECTORPL_HASH = HashingUtils::HashString("DETECTORPL"); + static constexpr uint32_t DETECTORPL_HASH = ConstExprHashingUtils::HashString("DETECTORPL"); Language GetLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DETECTORPL_HASH) { return Language::DETECTORPL; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ListUpdateMode.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ListUpdateMode.cpp index 956255d7411..dcfcc1ecb20 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ListUpdateMode.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ListUpdateMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListUpdateModeMapper { - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); - static const int APPEND_HASH = HashingUtils::HashString("APPEND"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); + static constexpr uint32_t APPEND_HASH = ConstExprHashingUtils::HashString("APPEND"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); ListUpdateMode GetListUpdateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPLACE_HASH) { return ListUpdateMode::REPLACE; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelEndpointStatus.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelEndpointStatus.cpp index ef800a63572..83aaf2f11a2 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelEndpointStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelEndpointStatusMapper { - static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED"); - static const int DISSOCIATED_HASH = HashingUtils::HashString("DISSOCIATED"); + static constexpr uint32_t ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ASSOCIATED"); + static constexpr uint32_t DISSOCIATED_HASH = ConstExprHashingUtils::HashString("DISSOCIATED"); ModelEndpointStatus GetModelEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATED_HASH) { return ModelEndpointStatus::ASSOCIATED; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelInputDataFormat.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelInputDataFormat.cpp index 6afa85105c8..e4f469e41d0 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelInputDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelInputDataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelInputDataFormatMapper { - static const int TEXT_CSV_HASH = HashingUtils::HashString("TEXT_CSV"); - static const int APPLICATION_JSON_HASH = HashingUtils::HashString("APPLICATION_JSON"); + static constexpr uint32_t TEXT_CSV_HASH = ConstExprHashingUtils::HashString("TEXT_CSV"); + static constexpr uint32_t APPLICATION_JSON_HASH = ConstExprHashingUtils::HashString("APPLICATION_JSON"); ModelInputDataFormat GetModelInputDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_CSV_HASH) { return ModelInputDataFormat::TEXT_CSV; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelOutputDataFormat.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelOutputDataFormat.cpp index 09d084e1ddd..ea6508a0ae6 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelOutputDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelOutputDataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelOutputDataFormatMapper { - static const int TEXT_CSV_HASH = HashingUtils::HashString("TEXT_CSV"); - static const int APPLICATION_JSONLINES_HASH = HashingUtils::HashString("APPLICATION_JSONLINES"); + static constexpr uint32_t TEXT_CSV_HASH = ConstExprHashingUtils::HashString("TEXT_CSV"); + static constexpr uint32_t APPLICATION_JSONLINES_HASH = ConstExprHashingUtils::HashString("APPLICATION_JSONLINES"); ModelOutputDataFormat GetModelOutputDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_CSV_HASH) { return ModelOutputDataFormat::TEXT_CSV; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelSource.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelSource.cpp index 79baeb53e46..1bd97eefed3 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelSource.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelSource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ModelSourceMapper { - static const int SAGEMAKER_HASH = HashingUtils::HashString("SAGEMAKER"); + static constexpr uint32_t SAGEMAKER_HASH = ConstExprHashingUtils::HashString("SAGEMAKER"); ModelSource GetModelSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAGEMAKER_HASH) { return ModelSource::SAGEMAKER; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelTypeEnum.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelTypeEnum.cpp index b560e98e52d..d9ed0d4e8e3 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelTypeEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelTypeEnumMapper { - static const int ONLINE_FRAUD_INSIGHTS_HASH = HashingUtils::HashString("ONLINE_FRAUD_INSIGHTS"); - static const int TRANSACTION_FRAUD_INSIGHTS_HASH = HashingUtils::HashString("TRANSACTION_FRAUD_INSIGHTS"); - static const int ACCOUNT_TAKEOVER_INSIGHTS_HASH = HashingUtils::HashString("ACCOUNT_TAKEOVER_INSIGHTS"); + static constexpr uint32_t ONLINE_FRAUD_INSIGHTS_HASH = ConstExprHashingUtils::HashString("ONLINE_FRAUD_INSIGHTS"); + static constexpr uint32_t TRANSACTION_FRAUD_INSIGHTS_HASH = ConstExprHashingUtils::HashString("TRANSACTION_FRAUD_INSIGHTS"); + static constexpr uint32_t ACCOUNT_TAKEOVER_INSIGHTS_HASH = ConstExprHashingUtils::HashString("ACCOUNT_TAKEOVER_INSIGHTS"); ModelTypeEnum GetModelTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLINE_FRAUD_INSIGHTS_HASH) { return ModelTypeEnum::ONLINE_FRAUD_INSIGHTS; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelVersionStatus.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelVersionStatus.cpp index 968fdc720b7..222f74facca 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/ModelVersionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelVersionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int TRAINING_CANCELLED_HASH = HashingUtils::HashString("TRAINING_CANCELLED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t TRAINING_CANCELLED_HASH = ConstExprHashingUtils::HashString("TRAINING_CANCELLED"); ModelVersionStatus GetModelVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ModelVersionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/RuleExecutionMode.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/RuleExecutionMode.cpp index 86c8c7ac097..f42c5180ee5 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/RuleExecutionMode.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/RuleExecutionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleExecutionModeMapper { - static const int ALL_MATCHED_HASH = HashingUtils::HashString("ALL_MATCHED"); - static const int FIRST_MATCHED_HASH = HashingUtils::HashString("FIRST_MATCHED"); + static constexpr uint32_t ALL_MATCHED_HASH = ConstExprHashingUtils::HashString("ALL_MATCHED"); + static constexpr uint32_t FIRST_MATCHED_HASH = ConstExprHashingUtils::HashString("FIRST_MATCHED"); RuleExecutionMode GetRuleExecutionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_MATCHED_HASH) { return RuleExecutionMode::ALL_MATCHED; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/TrainingDataSourceEnum.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/TrainingDataSourceEnum.cpp index 8a5870500e7..689ea9078dd 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/TrainingDataSourceEnum.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/TrainingDataSourceEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrainingDataSourceEnumMapper { - static const int EXTERNAL_EVENTS_HASH = HashingUtils::HashString("EXTERNAL_EVENTS"); - static const int INGESTED_EVENTS_HASH = HashingUtils::HashString("INGESTED_EVENTS"); + static constexpr uint32_t EXTERNAL_EVENTS_HASH = ConstExprHashingUtils::HashString("EXTERNAL_EVENTS"); + static constexpr uint32_t INGESTED_EVENTS_HASH = ConstExprHashingUtils::HashString("INGESTED_EVENTS"); TrainingDataSourceEnum GetTrainingDataSourceEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTERNAL_EVENTS_HASH) { return TrainingDataSourceEnum::EXTERNAL_EVENTS; diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/model/UnlabeledEventsTreatment.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/model/UnlabeledEventsTreatment.cpp index 35a72150623..ae076bc49cd 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/model/UnlabeledEventsTreatment.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/model/UnlabeledEventsTreatment.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UnlabeledEventsTreatmentMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int FRAUD_HASH = HashingUtils::HashString("FRAUD"); - static const int LEGIT_HASH = HashingUtils::HashString("LEGIT"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t FRAUD_HASH = ConstExprHashingUtils::HashString("FRAUD"); + static constexpr uint32_t LEGIT_HASH = ConstExprHashingUtils::HashString("LEGIT"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); UnlabeledEventsTreatment GetUnlabeledEventsTreatmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return UnlabeledEventsTreatment::IGNORE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/FSxErrors.cpp b/generated/src/aws-cpp-sdk-fsx/source/FSxErrors.cpp index 2d471ff226f..6fbbcbfdfcf 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/FSxErrors.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/FSxErrors.cpp @@ -89,44 +89,44 @@ template<> AWS_FSX_API ResourceDoesNotSupportTagging FSxError::GetModeledError() namespace FSxErrorMapper { -static const int INCOMPATIBLE_PARAMETER_HASH = HashingUtils::HashString("IncompatibleParameterError"); -static const int SNAPSHOT_NOT_FOUND_HASH = HashingUtils::HashString("SnapshotNotFound"); -static const int DATA_REPOSITORY_ASSOCIATION_NOT_FOUND_HASH = HashingUtils::HashString("DataRepositoryAssociationNotFound"); -static const int ACTIVE_DIRECTORY_HASH = HashingUtils::HashString("ActiveDirectoryError"); -static const int FILE_SYSTEM_NOT_FOUND_HASH = HashingUtils::HashString("FileSystemNotFound"); -static const int INVALID_DATA_REPOSITORY_TYPE_HASH = HashingUtils::HashString("InvalidDataRepositoryType"); -static const int INVALID_NETWORK_SETTINGS_HASH = HashingUtils::HashString("InvalidNetworkSettings"); -static const int INVALID_SOURCE_KMS_KEY_HASH = HashingUtils::HashString("InvalidSourceKmsKey"); -static const int INVALID_IMPORT_PATH_HASH = HashingUtils::HashString("InvalidImportPath"); -static const int SOURCE_BACKUP_UNAVAILABLE_HASH = HashingUtils::HashString("SourceBackupUnavailable"); -static const int BACKUP_BEING_COPIED_HASH = HashingUtils::HashString("BackupBeingCopied"); -static const int INVALID_PER_UNIT_STORAGE_THROUGHPUT_HASH = HashingUtils::HashString("InvalidPerUnitStorageThroughput"); -static const int INVALID_REGION_HASH = HashingUtils::HashString("InvalidRegion"); -static const int INVALID_EXPORT_PATH_HASH = HashingUtils::HashString("InvalidExportPath"); -static const int BACKUP_IN_PROGRESS_HASH = HashingUtils::HashString("BackupInProgress"); -static const int BACKUP_NOT_FOUND_HASH = HashingUtils::HashString("BackupNotFound"); -static const int DATA_REPOSITORY_TASK_NOT_FOUND_HASH = HashingUtils::HashString("DataRepositoryTaskNotFound"); -static const int MISSING_FILE_CACHE_CONFIGURATION_HASH = HashingUtils::HashString("MissingFileCacheConfiguration"); -static const int BACKUP_RESTORING_HASH = HashingUtils::HashString("BackupRestoring"); -static const int INCOMPATIBLE_REGION_FOR_MULTI_A_Z_HASH = HashingUtils::HashString("IncompatibleRegionForMultiAZ"); -static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceeded"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperation"); -static const int DATA_REPOSITORY_TASK_ENDED_HASH = HashingUtils::HashString("DataRepositoryTaskEnded"); -static const int NOT_SERVICE_RESOURCE_HASH = HashingUtils::HashString("NotServiceResourceError"); -static const int INVALID_DESTINATION_KMS_KEY_HASH = HashingUtils::HashString("InvalidDestinationKmsKey"); -static const int RESOURCE_DOES_NOT_SUPPORT_TAGGING_HASH = HashingUtils::HashString("ResourceDoesNotSupportTagging"); -static const int DATA_REPOSITORY_TASK_EXECUTING_HASH = HashingUtils::HashString("DataRepositoryTaskExecuting"); -static const int STORAGE_VIRTUAL_MACHINE_NOT_FOUND_HASH = HashingUtils::HashString("StorageVirtualMachineNotFound"); -static const int FILE_CACHE_NOT_FOUND_HASH = HashingUtils::HashString("FileCacheNotFound"); -static const int VOLUME_NOT_FOUND_HASH = HashingUtils::HashString("VolumeNotFound"); -static const int MISSING_VOLUME_CONFIGURATION_HASH = HashingUtils::HashString("MissingVolumeConfiguration"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequest"); -static const int MISSING_FILE_SYSTEM_CONFIGURATION_HASH = HashingUtils::HashString("MissingFileSystemConfiguration"); +static constexpr uint32_t INCOMPATIBLE_PARAMETER_HASH = ConstExprHashingUtils::HashString("IncompatibleParameterError"); +static constexpr uint32_t SNAPSHOT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SnapshotNotFound"); +static constexpr uint32_t DATA_REPOSITORY_ASSOCIATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DataRepositoryAssociationNotFound"); +static constexpr uint32_t ACTIVE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("ActiveDirectoryError"); +static constexpr uint32_t FILE_SYSTEM_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FileSystemNotFound"); +static constexpr uint32_t INVALID_DATA_REPOSITORY_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidDataRepositoryType"); +static constexpr uint32_t INVALID_NETWORK_SETTINGS_HASH = ConstExprHashingUtils::HashString("InvalidNetworkSettings"); +static constexpr uint32_t INVALID_SOURCE_KMS_KEY_HASH = ConstExprHashingUtils::HashString("InvalidSourceKmsKey"); +static constexpr uint32_t INVALID_IMPORT_PATH_HASH = ConstExprHashingUtils::HashString("InvalidImportPath"); +static constexpr uint32_t SOURCE_BACKUP_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("SourceBackupUnavailable"); +static constexpr uint32_t BACKUP_BEING_COPIED_HASH = ConstExprHashingUtils::HashString("BackupBeingCopied"); +static constexpr uint32_t INVALID_PER_UNIT_STORAGE_THROUGHPUT_HASH = ConstExprHashingUtils::HashString("InvalidPerUnitStorageThroughput"); +static constexpr uint32_t INVALID_REGION_HASH = ConstExprHashingUtils::HashString("InvalidRegion"); +static constexpr uint32_t INVALID_EXPORT_PATH_HASH = ConstExprHashingUtils::HashString("InvalidExportPath"); +static constexpr uint32_t BACKUP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("BackupInProgress"); +static constexpr uint32_t BACKUP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("BackupNotFound"); +static constexpr uint32_t DATA_REPOSITORY_TASK_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DataRepositoryTaskNotFound"); +static constexpr uint32_t MISSING_FILE_CACHE_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("MissingFileCacheConfiguration"); +static constexpr uint32_t BACKUP_RESTORING_HASH = ConstExprHashingUtils::HashString("BackupRestoring"); +static constexpr uint32_t INCOMPATIBLE_REGION_FOR_MULTI_A_Z_HASH = ConstExprHashingUtils::HashString("IncompatibleRegionForMultiAZ"); +static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceeded"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperation"); +static constexpr uint32_t DATA_REPOSITORY_TASK_ENDED_HASH = ConstExprHashingUtils::HashString("DataRepositoryTaskEnded"); +static constexpr uint32_t NOT_SERVICE_RESOURCE_HASH = ConstExprHashingUtils::HashString("NotServiceResourceError"); +static constexpr uint32_t INVALID_DESTINATION_KMS_KEY_HASH = ConstExprHashingUtils::HashString("InvalidDestinationKmsKey"); +static constexpr uint32_t RESOURCE_DOES_NOT_SUPPORT_TAGGING_HASH = ConstExprHashingUtils::HashString("ResourceDoesNotSupportTagging"); +static constexpr uint32_t DATA_REPOSITORY_TASK_EXECUTING_HASH = ConstExprHashingUtils::HashString("DataRepositoryTaskExecuting"); +static constexpr uint32_t STORAGE_VIRTUAL_MACHINE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StorageVirtualMachineNotFound"); +static constexpr uint32_t FILE_CACHE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FileCacheNotFound"); +static constexpr uint32_t VOLUME_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("VolumeNotFound"); +static constexpr uint32_t MISSING_VOLUME_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("MissingVolumeConfiguration"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequest"); +static constexpr uint32_t MISSING_FILE_SYSTEM_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("MissingFileSystemConfiguration"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INCOMPATIBLE_PARAMETER_HASH) { diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/ActiveDirectoryErrorType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/ActiveDirectoryErrorType.cpp index f04526f42cf..e865f29f249 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/ActiveDirectoryErrorType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/ActiveDirectoryErrorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActiveDirectoryErrorTypeMapper { - static const int DOMAIN_NOT_FOUND_HASH = HashingUtils::HashString("DOMAIN_NOT_FOUND"); - static const int INCOMPATIBLE_DOMAIN_MODE_HASH = HashingUtils::HashString("INCOMPATIBLE_DOMAIN_MODE"); - static const int WRONG_VPC_HASH = HashingUtils::HashString("WRONG_VPC"); - static const int INVALID_DOMAIN_STAGE_HASH = HashingUtils::HashString("INVALID_DOMAIN_STAGE"); + static constexpr uint32_t DOMAIN_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DOMAIN_NOT_FOUND"); + static constexpr uint32_t INCOMPATIBLE_DOMAIN_MODE_HASH = ConstExprHashingUtils::HashString("INCOMPATIBLE_DOMAIN_MODE"); + static constexpr uint32_t WRONG_VPC_HASH = ConstExprHashingUtils::HashString("WRONG_VPC"); + static constexpr uint32_t INVALID_DOMAIN_STAGE_HASH = ConstExprHashingUtils::HashString("INVALID_DOMAIN_STAGE"); ActiveDirectoryErrorType GetActiveDirectoryErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOMAIN_NOT_FOUND_HASH) { return ActiveDirectoryErrorType::DOMAIN_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp index 2a90bf686d3..3274ee7afdb 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace AdministrativeActionTypeMapper { - static const int FILE_SYSTEM_UPDATE_HASH = HashingUtils::HashString("FILE_SYSTEM_UPDATE"); - static const int STORAGE_OPTIMIZATION_HASH = HashingUtils::HashString("STORAGE_OPTIMIZATION"); - static const int FILE_SYSTEM_ALIAS_ASSOCIATION_HASH = HashingUtils::HashString("FILE_SYSTEM_ALIAS_ASSOCIATION"); - static const int FILE_SYSTEM_ALIAS_DISASSOCIATION_HASH = HashingUtils::HashString("FILE_SYSTEM_ALIAS_DISASSOCIATION"); - static const int VOLUME_UPDATE_HASH = HashingUtils::HashString("VOLUME_UPDATE"); - static const int SNAPSHOT_UPDATE_HASH = HashingUtils::HashString("SNAPSHOT_UPDATE"); - static const int RELEASE_NFS_V3_LOCKS_HASH = HashingUtils::HashString("RELEASE_NFS_V3_LOCKS"); - static const int VOLUME_RESTORE_HASH = HashingUtils::HashString("VOLUME_RESTORE"); - static const int THROUGHPUT_OPTIMIZATION_HASH = HashingUtils::HashString("THROUGHPUT_OPTIMIZATION"); - static const int IOPS_OPTIMIZATION_HASH = HashingUtils::HashString("IOPS_OPTIMIZATION"); - static const int STORAGE_TYPE_OPTIMIZATION_HASH = HashingUtils::HashString("STORAGE_TYPE_OPTIMIZATION"); - static const int MISCONFIGURED_STATE_RECOVERY_HASH = HashingUtils::HashString("MISCONFIGURED_STATE_RECOVERY"); + static constexpr uint32_t FILE_SYSTEM_UPDATE_HASH = ConstExprHashingUtils::HashString("FILE_SYSTEM_UPDATE"); + static constexpr uint32_t STORAGE_OPTIMIZATION_HASH = ConstExprHashingUtils::HashString("STORAGE_OPTIMIZATION"); + static constexpr uint32_t FILE_SYSTEM_ALIAS_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("FILE_SYSTEM_ALIAS_ASSOCIATION"); + static constexpr uint32_t FILE_SYSTEM_ALIAS_DISASSOCIATION_HASH = ConstExprHashingUtils::HashString("FILE_SYSTEM_ALIAS_DISASSOCIATION"); + static constexpr uint32_t VOLUME_UPDATE_HASH = ConstExprHashingUtils::HashString("VOLUME_UPDATE"); + static constexpr uint32_t SNAPSHOT_UPDATE_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_UPDATE"); + static constexpr uint32_t RELEASE_NFS_V3_LOCKS_HASH = ConstExprHashingUtils::HashString("RELEASE_NFS_V3_LOCKS"); + static constexpr uint32_t VOLUME_RESTORE_HASH = ConstExprHashingUtils::HashString("VOLUME_RESTORE"); + static constexpr uint32_t THROUGHPUT_OPTIMIZATION_HASH = ConstExprHashingUtils::HashString("THROUGHPUT_OPTIMIZATION"); + static constexpr uint32_t IOPS_OPTIMIZATION_HASH = ConstExprHashingUtils::HashString("IOPS_OPTIMIZATION"); + static constexpr uint32_t STORAGE_TYPE_OPTIMIZATION_HASH = ConstExprHashingUtils::HashString("STORAGE_TYPE_OPTIMIZATION"); + static constexpr uint32_t MISCONFIGURED_STATE_RECOVERY_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED_STATE_RECOVERY"); AdministrativeActionType GetAdministrativeActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILE_SYSTEM_UPDATE_HASH) { return AdministrativeActionType::FILE_SYSTEM_UPDATE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/AliasLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/AliasLifecycle.cpp index 336d775755c..e1549d55a2f 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/AliasLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/AliasLifecycle.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AliasLifecycleMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); AliasLifecycle GetAliasLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return AliasLifecycle::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/AutoImportPolicyType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/AutoImportPolicyType.cpp index 52a94f4d4de..14d07a1d508 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/AutoImportPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/AutoImportPolicyType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AutoImportPolicyTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int NEW_CHANGED_HASH = HashingUtils::HashString("NEW_CHANGED"); - static const int NEW_CHANGED_DELETED_HASH = HashingUtils::HashString("NEW_CHANGED_DELETED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t NEW_CHANGED_HASH = ConstExprHashingUtils::HashString("NEW_CHANGED"); + static constexpr uint32_t NEW_CHANGED_DELETED_HASH = ConstExprHashingUtils::HashString("NEW_CHANGED_DELETED"); AutoImportPolicyType GetAutoImportPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AutoImportPolicyType::NONE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/AutocommitPeriodType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/AutocommitPeriodType.cpp index 3d846c82056..403e1bc7e24 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/AutocommitPeriodType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/AutocommitPeriodType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AutocommitPeriodTypeMapper { - static const int MINUTES_HASH = HashingUtils::HashString("MINUTES"); - static const int HOURS_HASH = HashingUtils::HashString("HOURS"); - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); - static const int YEARS_HASH = HashingUtils::HashString("YEARS"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t MINUTES_HASH = ConstExprHashingUtils::HashString("MINUTES"); + static constexpr uint32_t HOURS_HASH = ConstExprHashingUtils::HashString("HOURS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); + static constexpr uint32_t YEARS_HASH = ConstExprHashingUtils::HashString("YEARS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AutocommitPeriodType GetAutocommitPeriodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MINUTES_HASH) { return AutocommitPeriodType::MINUTES; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/BackupLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/BackupLifecycle.cpp index 467162f786e..45c09e8866f 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/BackupLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/BackupLifecycle.cpp @@ -20,18 +20,18 @@ namespace Aws namespace BackupLifecycleMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int TRANSFERRING_HASH = HashingUtils::HashString("TRANSFERRING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int COPYING_HASH = HashingUtils::HashString("COPYING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t TRANSFERRING_HASH = ConstExprHashingUtils::HashString("TRANSFERRING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t COPYING_HASH = ConstExprHashingUtils::HashString("COPYING"); BackupLifecycle GetBackupLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return BackupLifecycle::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/BackupType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/BackupType.cpp index 24897826691..11782c66fdb 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/BackupType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/BackupType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BackupTypeMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int USER_INITIATED_HASH = HashingUtils::HashString("USER_INITIATED"); - static const int AWS_BACKUP_HASH = HashingUtils::HashString("AWS_BACKUP"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t USER_INITIATED_HASH = ConstExprHashingUtils::HashString("USER_INITIATED"); + static constexpr uint32_t AWS_BACKUP_HASH = ConstExprHashingUtils::HashString("AWS_BACKUP"); BackupType GetBackupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return BackupType::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DataCompressionType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DataCompressionType.cpp index dad16434375..cac88db79f4 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DataCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DataCompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataCompressionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int LZ4_HASH = HashingUtils::HashString("LZ4"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t LZ4_HASH = ConstExprHashingUtils::HashString("LZ4"); DataCompressionType GetDataCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DataCompressionType::NONE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryLifecycle.cpp index 39627bad649..0bc6877c682 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryLifecycle.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataRepositoryLifecycleMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int MISCONFIGURED_HASH = HashingUtils::HashString("MISCONFIGURED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t MISCONFIGURED_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DataRepositoryLifecycle GetDataRepositoryLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DataRepositoryLifecycle::CREATING; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskFilterName.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskFilterName.cpp index 164c06f52f0..3615709f209 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskFilterName.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskFilterName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DataRepositoryTaskFilterNameMapper { - static const int file_system_id_HASH = HashingUtils::HashString("file-system-id"); - static const int task_lifecycle_HASH = HashingUtils::HashString("task-lifecycle"); - static const int data_repository_association_id_HASH = HashingUtils::HashString("data-repository-association-id"); - static const int file_cache_id_HASH = HashingUtils::HashString("file-cache-id"); + static constexpr uint32_t file_system_id_HASH = ConstExprHashingUtils::HashString("file-system-id"); + static constexpr uint32_t task_lifecycle_HASH = ConstExprHashingUtils::HashString("task-lifecycle"); + static constexpr uint32_t data_repository_association_id_HASH = ConstExprHashingUtils::HashString("data-repository-association-id"); + static constexpr uint32_t file_cache_id_HASH = ConstExprHashingUtils::HashString("file-cache-id"); DataRepositoryTaskFilterName GetDataRepositoryTaskFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == file_system_id_HASH) { return DataRepositoryTaskFilterName::file_system_id; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskLifecycle.cpp index b6766f8ea7b..dda02b52ae6 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskLifecycle.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataRepositoryTaskLifecycleMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int EXECUTING_HASH = HashingUtils::HashString("EXECUTING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int CANCELING_HASH = HashingUtils::HashString("CANCELING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t EXECUTING_HASH = ConstExprHashingUtils::HashString("EXECUTING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t CANCELING_HASH = ConstExprHashingUtils::HashString("CANCELING"); DataRepositoryTaskLifecycle GetDataRepositoryTaskLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DataRepositoryTaskLifecycle::PENDING; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskType.cpp index 7f58092d4a3..e9d535ea32f 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DataRepositoryTaskType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DataRepositoryTaskTypeMapper { - static const int EXPORT_TO_REPOSITORY_HASH = HashingUtils::HashString("EXPORT_TO_REPOSITORY"); - static const int IMPORT_METADATA_FROM_REPOSITORY_HASH = HashingUtils::HashString("IMPORT_METADATA_FROM_REPOSITORY"); - static const int RELEASE_DATA_FROM_FILESYSTEM_HASH = HashingUtils::HashString("RELEASE_DATA_FROM_FILESYSTEM"); - static const int AUTO_RELEASE_DATA_HASH = HashingUtils::HashString("AUTO_RELEASE_DATA"); + static constexpr uint32_t EXPORT_TO_REPOSITORY_HASH = ConstExprHashingUtils::HashString("EXPORT_TO_REPOSITORY"); + static constexpr uint32_t IMPORT_METADATA_FROM_REPOSITORY_HASH = ConstExprHashingUtils::HashString("IMPORT_METADATA_FROM_REPOSITORY"); + static constexpr uint32_t RELEASE_DATA_FROM_FILESYSTEM_HASH = ConstExprHashingUtils::HashString("RELEASE_DATA_FROM_FILESYSTEM"); + static constexpr uint32_t AUTO_RELEASE_DATA_HASH = ConstExprHashingUtils::HashString("AUTO_RELEASE_DATA"); DataRepositoryTaskType GetDataRepositoryTaskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXPORT_TO_REPOSITORY_HASH) { return DataRepositoryTaskType::EXPORT_TO_REPOSITORY; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DeleteFileSystemOpenZFSOption.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DeleteFileSystemOpenZFSOption.cpp index 80c2a96b4fd..dec8a01523c 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DeleteFileSystemOpenZFSOption.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DeleteFileSystemOpenZFSOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DeleteFileSystemOpenZFSOptionMapper { - static const int DELETE_CHILD_VOLUMES_AND_SNAPSHOTS_HASH = HashingUtils::HashString("DELETE_CHILD_VOLUMES_AND_SNAPSHOTS"); + static constexpr uint32_t DELETE_CHILD_VOLUMES_AND_SNAPSHOTS_HASH = ConstExprHashingUtils::HashString("DELETE_CHILD_VOLUMES_AND_SNAPSHOTS"); DeleteFileSystemOpenZFSOption GetDeleteFileSystemOpenZFSOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE_CHILD_VOLUMES_AND_SNAPSHOTS_HASH) { return DeleteFileSystemOpenZFSOption::DELETE_CHILD_VOLUMES_AND_SNAPSHOTS; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DeleteOpenZFSVolumeOption.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DeleteOpenZFSVolumeOption.cpp index 5461822f52f..dc3b532ed4e 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DeleteOpenZFSVolumeOption.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DeleteOpenZFSVolumeOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DeleteOpenZFSVolumeOptionMapper { - static const int DELETE_CHILD_VOLUMES_AND_SNAPSHOTS_HASH = HashingUtils::HashString("DELETE_CHILD_VOLUMES_AND_SNAPSHOTS"); + static constexpr uint32_t DELETE_CHILD_VOLUMES_AND_SNAPSHOTS_HASH = ConstExprHashingUtils::HashString("DELETE_CHILD_VOLUMES_AND_SNAPSHOTS"); DeleteOpenZFSVolumeOption GetDeleteOpenZFSVolumeOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE_CHILD_VOLUMES_AND_SNAPSHOTS_HASH) { return DeleteOpenZFSVolumeOption::DELETE_CHILD_VOLUMES_AND_SNAPSHOTS; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DiskIopsConfigurationMode.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DiskIopsConfigurationMode.cpp index f2ceb6093b1..d4b8d955f1e 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DiskIopsConfigurationMode.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DiskIopsConfigurationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DiskIopsConfigurationModeMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int USER_PROVISIONED_HASH = HashingUtils::HashString("USER_PROVISIONED"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t USER_PROVISIONED_HASH = ConstExprHashingUtils::HashString("USER_PROVISIONED"); DiskIopsConfigurationMode GetDiskIopsConfigurationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return DiskIopsConfigurationMode::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/DriveCacheType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/DriveCacheType.cpp index fffb4f05636..967cab8b105 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/DriveCacheType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/DriveCacheType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DriveCacheTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int READ_HASH = HashingUtils::HashString("READ"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); DriveCacheType GetDriveCacheTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DriveCacheType::NONE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/EventType.cpp index 1b675b34c05..4683c75de72 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/EventType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventTypeMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int CHANGED_HASH = HashingUtils::HashString("CHANGED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t CHANGED_HASH = ConstExprHashingUtils::HashString("CHANGED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return EventType::NEW_; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLifecycle.cpp index b0f98d0e8ce..d365699519d 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLifecycle.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FileCacheLifecycleMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); FileCacheLifecycle GetFileCacheLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return FileCacheLifecycle::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLustreDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLustreDeploymentType.cpp index 3f72f5c17b1..c8fc4c1184e 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLustreDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheLustreDeploymentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FileCacheLustreDeploymentTypeMapper { - static const int CACHE_1_HASH = HashingUtils::HashString("CACHE_1"); + static constexpr uint32_t CACHE_1_HASH = ConstExprHashingUtils::HashString("CACHE_1"); FileCacheLustreDeploymentType GetFileCacheLustreDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CACHE_1_HASH) { return FileCacheLustreDeploymentType::CACHE_1; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheType.cpp index c078e2b2692..e190151e282 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FileCacheType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FileCacheTypeMapper { - static const int LUSTRE_HASH = HashingUtils::HashString("LUSTRE"); + static constexpr uint32_t LUSTRE_HASH = ConstExprHashingUtils::HashString("LUSTRE"); FileCacheType GetFileCacheTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LUSTRE_HASH) { return FileCacheType::LUSTRE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemLifecycle.cpp index ff15ca63230..16776c4bfe7 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemLifecycle.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FileSystemLifecycleMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int MISCONFIGURED_HASH = HashingUtils::HashString("MISCONFIGURED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int MISCONFIGURED_UNAVAILABLE_HASH = HashingUtils::HashString("MISCONFIGURED_UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t MISCONFIGURED_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t MISCONFIGURED_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED_UNAVAILABLE"); FileSystemLifecycle GetFileSystemLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return FileSystemLifecycle::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemMaintenanceOperation.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemMaintenanceOperation.cpp index f94b455c9bd..474932a7916 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemMaintenanceOperation.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemMaintenanceOperation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileSystemMaintenanceOperationMapper { - static const int PATCHING_HASH = HashingUtils::HashString("PATCHING"); - static const int BACKING_UP_HASH = HashingUtils::HashString("BACKING_UP"); + static constexpr uint32_t PATCHING_HASH = ConstExprHashingUtils::HashString("PATCHING"); + static constexpr uint32_t BACKING_UP_HASH = ConstExprHashingUtils::HashString("BACKING_UP"); FileSystemMaintenanceOperation GetFileSystemMaintenanceOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PATCHING_HASH) { return FileSystemMaintenanceOperation::PATCHING; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemType.cpp index f635e7bd1aa..10577a2795b 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FileSystemType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FileSystemTypeMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int LUSTRE_HASH = HashingUtils::HashString("LUSTRE"); - static const int ONTAP_HASH = HashingUtils::HashString("ONTAP"); - static const int OPENZFS_HASH = HashingUtils::HashString("OPENZFS"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LUSTRE_HASH = ConstExprHashingUtils::HashString("LUSTRE"); + static constexpr uint32_t ONTAP_HASH = ConstExprHashingUtils::HashString("ONTAP"); + static constexpr uint32_t OPENZFS_HASH = ConstExprHashingUtils::HashString("OPENZFS"); FileSystemType GetFileSystemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return FileSystemType::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FilterName.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FilterName.cpp index 9a2518f28ba..8baff726e9a 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FilterName.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FilterName.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FilterNameMapper { - static const int file_system_id_HASH = HashingUtils::HashString("file-system-id"); - static const int backup_type_HASH = HashingUtils::HashString("backup-type"); - static const int file_system_type_HASH = HashingUtils::HashString("file-system-type"); - static const int volume_id_HASH = HashingUtils::HashString("volume-id"); - static const int data_repository_type_HASH = HashingUtils::HashString("data-repository-type"); - static const int file_cache_id_HASH = HashingUtils::HashString("file-cache-id"); - static const int file_cache_type_HASH = HashingUtils::HashString("file-cache-type"); + static constexpr uint32_t file_system_id_HASH = ConstExprHashingUtils::HashString("file-system-id"); + static constexpr uint32_t backup_type_HASH = ConstExprHashingUtils::HashString("backup-type"); + static constexpr uint32_t file_system_type_HASH = ConstExprHashingUtils::HashString("file-system-type"); + static constexpr uint32_t volume_id_HASH = ConstExprHashingUtils::HashString("volume-id"); + static constexpr uint32_t data_repository_type_HASH = ConstExprHashingUtils::HashString("data-repository-type"); + static constexpr uint32_t file_cache_id_HASH = ConstExprHashingUtils::HashString("file-cache-id"); + static constexpr uint32_t file_cache_type_HASH = ConstExprHashingUtils::HashString("file-cache-type"); FilterName GetFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == file_system_id_HASH) { return FilterName::file_system_id; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/FlexCacheEndpointType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/FlexCacheEndpointType.cpp index 39af54f1d33..e7980273fbb 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/FlexCacheEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/FlexCacheEndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FlexCacheEndpointTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ORIGIN_HASH = HashingUtils::HashString("ORIGIN"); - static const int CACHE_HASH = HashingUtils::HashString("CACHE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ORIGIN_HASH = ConstExprHashingUtils::HashString("ORIGIN"); + static constexpr uint32_t CACHE_HASH = ConstExprHashingUtils::HashString("CACHE"); FlexCacheEndpointType GetFlexCacheEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return FlexCacheEndpointType::NONE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/InputOntapVolumeType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/InputOntapVolumeType.cpp index d488498528f..bcc1772e4a9 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/InputOntapVolumeType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/InputOntapVolumeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputOntapVolumeTypeMapper { - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int DP_HASH = HashingUtils::HashString("DP"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t DP_HASH = ConstExprHashingUtils::HashString("DP"); InputOntapVolumeType GetInputOntapVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RW_HASH) { return InputOntapVolumeType::RW; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/LustreAccessAuditLogLevel.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/LustreAccessAuditLogLevel.cpp index 7256a7a4195..017457815c6 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/LustreAccessAuditLogLevel.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/LustreAccessAuditLogLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LustreAccessAuditLogLevelMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int WARN_ONLY_HASH = HashingUtils::HashString("WARN_ONLY"); - static const int ERROR_ONLY_HASH = HashingUtils::HashString("ERROR_ONLY"); - static const int WARN_ERROR_HASH = HashingUtils::HashString("WARN_ERROR"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t WARN_ONLY_HASH = ConstExprHashingUtils::HashString("WARN_ONLY"); + static constexpr uint32_t ERROR_ONLY_HASH = ConstExprHashingUtils::HashString("ERROR_ONLY"); + static constexpr uint32_t WARN_ERROR_HASH = ConstExprHashingUtils::HashString("WARN_ERROR"); LustreAccessAuditLogLevel GetLustreAccessAuditLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return LustreAccessAuditLogLevel::DISABLED; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/LustreDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/LustreDeploymentType.cpp index e65e9afc988..29999e0f979 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/LustreDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/LustreDeploymentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LustreDeploymentTypeMapper { - static const int SCRATCH_1_HASH = HashingUtils::HashString("SCRATCH_1"); - static const int SCRATCH_2_HASH = HashingUtils::HashString("SCRATCH_2"); - static const int PERSISTENT_1_HASH = HashingUtils::HashString("PERSISTENT_1"); - static const int PERSISTENT_2_HASH = HashingUtils::HashString("PERSISTENT_2"); + static constexpr uint32_t SCRATCH_1_HASH = ConstExprHashingUtils::HashString("SCRATCH_1"); + static constexpr uint32_t SCRATCH_2_HASH = ConstExprHashingUtils::HashString("SCRATCH_2"); + static constexpr uint32_t PERSISTENT_1_HASH = ConstExprHashingUtils::HashString("PERSISTENT_1"); + static constexpr uint32_t PERSISTENT_2_HASH = ConstExprHashingUtils::HashString("PERSISTENT_2"); LustreDeploymentType GetLustreDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCRATCH_1_HASH) { return LustreDeploymentType::SCRATCH_1; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/NfsVersion.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/NfsVersion.cpp index 9bc5146d2da..1dcb8d7e87d 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/NfsVersion.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/NfsVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NfsVersionMapper { - static const int NFS3_HASH = HashingUtils::HashString("NFS3"); + static constexpr uint32_t NFS3_HASH = ConstExprHashingUtils::HashString("NFS3"); NfsVersion GetNfsVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NFS3_HASH) { return NfsVersion::NFS3; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp index bcf213e690d..b64a91eb16c 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OntapDeploymentTypeMapper { - static const int MULTI_AZ_1_HASH = HashingUtils::HashString("MULTI_AZ_1"); - static const int SINGLE_AZ_1_HASH = HashingUtils::HashString("SINGLE_AZ_1"); + static constexpr uint32_t MULTI_AZ_1_HASH = ConstExprHashingUtils::HashString("MULTI_AZ_1"); + static constexpr uint32_t SINGLE_AZ_1_HASH = ConstExprHashingUtils::HashString("SINGLE_AZ_1"); OntapDeploymentType GetOntapDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_AZ_1_HASH) { return OntapDeploymentType::MULTI_AZ_1; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OntapVolumeType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OntapVolumeType.cpp index f0bc40b08bc..cf8cb6c2ec1 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OntapVolumeType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OntapVolumeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OntapVolumeTypeMapper { - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int DP_HASH = HashingUtils::HashString("DP"); - static const int LS_HASH = HashingUtils::HashString("LS"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t DP_HASH = ConstExprHashingUtils::HashString("DP"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); OntapVolumeType GetOntapVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RW_HASH) { return OntapVolumeType::RW; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSCopyStrategy.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSCopyStrategy.cpp index cf7b623478b..f8b4b24d9c2 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSCopyStrategy.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSCopyStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OpenZFSCopyStrategyMapper { - static const int CLONE_HASH = HashingUtils::HashString("CLONE"); - static const int FULL_COPY_HASH = HashingUtils::HashString("FULL_COPY"); + static constexpr uint32_t CLONE_HASH = ConstExprHashingUtils::HashString("CLONE"); + static constexpr uint32_t FULL_COPY_HASH = ConstExprHashingUtils::HashString("FULL_COPY"); OpenZFSCopyStrategy GetOpenZFSCopyStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLONE_HASH) { return OpenZFSCopyStrategy::CLONE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDataCompressionType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDataCompressionType.cpp index 5ed06471139..3b3abf3081b 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDataCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDataCompressionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OpenZFSDataCompressionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ZSTD_HASH = HashingUtils::HashString("ZSTD"); - static const int LZ4_HASH = HashingUtils::HashString("LZ4"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ZSTD_HASH = ConstExprHashingUtils::HashString("ZSTD"); + static constexpr uint32_t LZ4_HASH = ConstExprHashingUtils::HashString("LZ4"); OpenZFSDataCompressionType GetOpenZFSDataCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return OpenZFSDataCompressionType::NONE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp index cc4bea6ba0a..4b3814ce7a2 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OpenZFSDeploymentTypeMapper { - static const int SINGLE_AZ_1_HASH = HashingUtils::HashString("SINGLE_AZ_1"); - static const int SINGLE_AZ_2_HASH = HashingUtils::HashString("SINGLE_AZ_2"); - static const int MULTI_AZ_1_HASH = HashingUtils::HashString("MULTI_AZ_1"); + static constexpr uint32_t SINGLE_AZ_1_HASH = ConstExprHashingUtils::HashString("SINGLE_AZ_1"); + static constexpr uint32_t SINGLE_AZ_2_HASH = ConstExprHashingUtils::HashString("SINGLE_AZ_2"); + static constexpr uint32_t MULTI_AZ_1_HASH = ConstExprHashingUtils::HashString("MULTI_AZ_1"); OpenZFSDeploymentType GetOpenZFSDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_AZ_1_HASH) { return OpenZFSDeploymentType::SINGLE_AZ_1; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSQuotaType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSQuotaType.cpp index d56c486f657..562c4ec6d9a 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSQuotaType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSQuotaType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OpenZFSQuotaTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); OpenZFSQuotaType GetOpenZFSQuotaTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return OpenZFSQuotaType::USER; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/PrivilegedDelete.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/PrivilegedDelete.cpp index 8a2adbbdbf9..512aaa38687 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/PrivilegedDelete.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/PrivilegedDelete.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PrivilegedDeleteMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int PERMANENTLY_DISABLED_HASH = HashingUtils::HashString("PERMANENTLY_DISABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t PERMANENTLY_DISABLED_HASH = ConstExprHashingUtils::HashString("PERMANENTLY_DISABLED"); PrivilegedDelete GetPrivilegedDeleteForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return PrivilegedDelete::DISABLED; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/ReportFormat.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/ReportFormat.cpp index 0822d0a1823..3ffb8c12204 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/ReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/ReportFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ReportFormatMapper { - static const int REPORT_CSV_20191124_HASH = HashingUtils::HashString("REPORT_CSV_20191124"); + static constexpr uint32_t REPORT_CSV_20191124_HASH = ConstExprHashingUtils::HashString("REPORT_CSV_20191124"); ReportFormat GetReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPORT_CSV_20191124_HASH) { return ReportFormat::REPORT_CSV_20191124; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/ReportScope.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/ReportScope.cpp index b3918e79995..bce7a29b3b9 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/ReportScope.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/ReportScope.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ReportScopeMapper { - static const int FAILED_FILES_ONLY_HASH = HashingUtils::HashString("FAILED_FILES_ONLY"); + static constexpr uint32_t FAILED_FILES_ONLY_HASH = ConstExprHashingUtils::HashString("FAILED_FILES_ONLY"); ReportScope GetReportScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_FILES_ONLY_HASH) { return ReportScope::FAILED_FILES_ONLY; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/ResourceType.cpp index fa7bc3562b4..1fb0091f239 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int FILE_SYSTEM_HASH = HashingUtils::HashString("FILE_SYSTEM"); - static const int VOLUME_HASH = HashingUtils::HashString("VOLUME"); + static constexpr uint32_t FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("FILE_SYSTEM"); + static constexpr uint32_t VOLUME_HASH = ConstExprHashingUtils::HashString("VOLUME"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILE_SYSTEM_HASH) { return ResourceType::FILE_SYSTEM; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/RestoreOpenZFSVolumeOption.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/RestoreOpenZFSVolumeOption.cpp index 55f49652ca4..a63fb0f73c8 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/RestoreOpenZFSVolumeOption.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/RestoreOpenZFSVolumeOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RestoreOpenZFSVolumeOptionMapper { - static const int DELETE_INTERMEDIATE_SNAPSHOTS_HASH = HashingUtils::HashString("DELETE_INTERMEDIATE_SNAPSHOTS"); - static const int DELETE_CLONED_VOLUMES_HASH = HashingUtils::HashString("DELETE_CLONED_VOLUMES"); + static constexpr uint32_t DELETE_INTERMEDIATE_SNAPSHOTS_HASH = ConstExprHashingUtils::HashString("DELETE_INTERMEDIATE_SNAPSHOTS"); + static constexpr uint32_t DELETE_CLONED_VOLUMES_HASH = ConstExprHashingUtils::HashString("DELETE_CLONED_VOLUMES"); RestoreOpenZFSVolumeOption GetRestoreOpenZFSVolumeOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE_INTERMEDIATE_SNAPSHOTS_HASH) { return RestoreOpenZFSVolumeOption::DELETE_INTERMEDIATE_SNAPSHOTS; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/RetentionPeriodType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/RetentionPeriodType.cpp index ce1d5ecd3b4..c0b2b415c52 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/RetentionPeriodType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/RetentionPeriodType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace RetentionPeriodTypeMapper { - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int MINUTES_HASH = HashingUtils::HashString("MINUTES"); - static const int HOURS_HASH = HashingUtils::HashString("HOURS"); - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); - static const int YEARS_HASH = HashingUtils::HashString("YEARS"); - static const int INFINITE_HASH = HashingUtils::HashString("INFINITE"); - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t MINUTES_HASH = ConstExprHashingUtils::HashString("MINUTES"); + static constexpr uint32_t HOURS_HASH = ConstExprHashingUtils::HashString("HOURS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); + static constexpr uint32_t YEARS_HASH = ConstExprHashingUtils::HashString("YEARS"); + static constexpr uint32_t INFINITE_HASH = ConstExprHashingUtils::HashString("INFINITE"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); RetentionPeriodType GetRetentionPeriodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECONDS_HASH) { return RetentionPeriodType::SECONDS; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/SecurityStyle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/SecurityStyle.cpp index 542a43234db..0402b9a696f 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/SecurityStyle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/SecurityStyle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SecurityStyleMapper { - static const int UNIX_HASH = HashingUtils::HashString("UNIX"); - static const int NTFS_HASH = HashingUtils::HashString("NTFS"); - static const int MIXED_HASH = HashingUtils::HashString("MIXED"); + static constexpr uint32_t UNIX_HASH = ConstExprHashingUtils::HashString("UNIX"); + static constexpr uint32_t NTFS_HASH = ConstExprHashingUtils::HashString("NTFS"); + static constexpr uint32_t MIXED_HASH = ConstExprHashingUtils::HashString("MIXED"); SecurityStyle GetSecurityStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNIX_HASH) { return SecurityStyle::UNIX; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/ServiceLimit.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/ServiceLimit.cpp index 179b2d550b2..ce2807eafe3 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/ServiceLimit.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/ServiceLimit.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ServiceLimitMapper { - static const int FILE_SYSTEM_COUNT_HASH = HashingUtils::HashString("FILE_SYSTEM_COUNT"); - static const int TOTAL_THROUGHPUT_CAPACITY_HASH = HashingUtils::HashString("TOTAL_THROUGHPUT_CAPACITY"); - static const int TOTAL_STORAGE_HASH = HashingUtils::HashString("TOTAL_STORAGE"); - static const int TOTAL_USER_INITIATED_BACKUPS_HASH = HashingUtils::HashString("TOTAL_USER_INITIATED_BACKUPS"); - static const int TOTAL_USER_TAGS_HASH = HashingUtils::HashString("TOTAL_USER_TAGS"); - static const int TOTAL_IN_PROGRESS_COPY_BACKUPS_HASH = HashingUtils::HashString("TOTAL_IN_PROGRESS_COPY_BACKUPS"); - static const int STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM_HASH = HashingUtils::HashString("STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM"); - static const int VOLUMES_PER_FILE_SYSTEM_HASH = HashingUtils::HashString("VOLUMES_PER_FILE_SYSTEM"); - static const int TOTAL_SSD_IOPS_HASH = HashingUtils::HashString("TOTAL_SSD_IOPS"); - static const int FILE_CACHE_COUNT_HASH = HashingUtils::HashString("FILE_CACHE_COUNT"); + static constexpr uint32_t FILE_SYSTEM_COUNT_HASH = ConstExprHashingUtils::HashString("FILE_SYSTEM_COUNT"); + static constexpr uint32_t TOTAL_THROUGHPUT_CAPACITY_HASH = ConstExprHashingUtils::HashString("TOTAL_THROUGHPUT_CAPACITY"); + static constexpr uint32_t TOTAL_STORAGE_HASH = ConstExprHashingUtils::HashString("TOTAL_STORAGE"); + static constexpr uint32_t TOTAL_USER_INITIATED_BACKUPS_HASH = ConstExprHashingUtils::HashString("TOTAL_USER_INITIATED_BACKUPS"); + static constexpr uint32_t TOTAL_USER_TAGS_HASH = ConstExprHashingUtils::HashString("TOTAL_USER_TAGS"); + static constexpr uint32_t TOTAL_IN_PROGRESS_COPY_BACKUPS_HASH = ConstExprHashingUtils::HashString("TOTAL_IN_PROGRESS_COPY_BACKUPS"); + static constexpr uint32_t STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM"); + static constexpr uint32_t VOLUMES_PER_FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("VOLUMES_PER_FILE_SYSTEM"); + static constexpr uint32_t TOTAL_SSD_IOPS_HASH = ConstExprHashingUtils::HashString("TOTAL_SSD_IOPS"); + static constexpr uint32_t FILE_CACHE_COUNT_HASH = ConstExprHashingUtils::HashString("FILE_CACHE_COUNT"); ServiceLimit GetServiceLimitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILE_SYSTEM_COUNT_HASH) { return ServiceLimit::FILE_SYSTEM_COUNT; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/SnaplockType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/SnaplockType.cpp index 9922d11da8b..01bb1bf0f7f 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/SnaplockType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/SnaplockType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnaplockTypeMapper { - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); - static const int ENTERPRISE_HASH = HashingUtils::HashString("ENTERPRISE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t ENTERPRISE_HASH = ConstExprHashingUtils::HashString("ENTERPRISE"); SnaplockType GetSnaplockTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANCE_HASH) { return SnaplockType::COMPLIANCE; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotFilterName.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotFilterName.cpp index 12a2ed6e62a..9cd349870ff 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotFilterName.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnapshotFilterNameMapper { - static const int file_system_id_HASH = HashingUtils::HashString("file-system-id"); - static const int volume_id_HASH = HashingUtils::HashString("volume-id"); + static constexpr uint32_t file_system_id_HASH = ConstExprHashingUtils::HashString("file-system-id"); + static constexpr uint32_t volume_id_HASH = ConstExprHashingUtils::HashString("volume-id"); SnapshotFilterName GetSnapshotFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == file_system_id_HASH) { return SnapshotFilterName::file_system_id; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotLifecycle.cpp index aa30356ad68..962f08895a9 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/SnapshotLifecycle.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SnapshotLifecycleMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); SnapshotLifecycle GetSnapshotLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return SnapshotLifecycle::PENDING; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp index 13c826d785f..103747929fd 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int UPDATED_OPTIMIZING_HASH = HashingUtils::HashString("UPDATED_OPTIMIZING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t UPDATED_OPTIMIZING_HASH = ConstExprHashingUtils::HashString("UPDATED_OPTIMIZING"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return Status::FAILED; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/StorageType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/StorageType.cpp index d4bf4f3682f..d08e5499e80 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/StorageType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/StorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageTypeMapper { - static const int SSD_HASH = HashingUtils::HashString("SSD"); - static const int HDD_HASH = HashingUtils::HashString("HDD"); + static constexpr uint32_t SSD_HASH = ConstExprHashingUtils::HashString("SSD"); + static constexpr uint32_t HDD_HASH = ConstExprHashingUtils::HashString("HDD"); StorageType GetStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSD_HASH) { return StorageType::SSD; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineFilterName.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineFilterName.cpp index 3f15046a578..0dab0096a01 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineFilterName.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StorageVirtualMachineFilterNameMapper { - static const int file_system_id_HASH = HashingUtils::HashString("file-system-id"); + static constexpr uint32_t file_system_id_HASH = ConstExprHashingUtils::HashString("file-system-id"); StorageVirtualMachineFilterName GetStorageVirtualMachineFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == file_system_id_HASH) { return StorageVirtualMachineFilterName::file_system_id; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineLifecycle.cpp index 70ab769d953..664d45f1c5c 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineLifecycle.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StorageVirtualMachineLifecycleMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int MISCONFIGURED_HASH = HashingUtils::HashString("MISCONFIGURED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t MISCONFIGURED_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); StorageVirtualMachineLifecycle GetStorageVirtualMachineLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return StorageVirtualMachineLifecycle::CREATED; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineRootVolumeSecurityStyle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineRootVolumeSecurityStyle.cpp index dd271b4c604..cbdd6a65ea6 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineRootVolumeSecurityStyle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineRootVolumeSecurityStyle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StorageVirtualMachineRootVolumeSecurityStyleMapper { - static const int UNIX_HASH = HashingUtils::HashString("UNIX"); - static const int NTFS_HASH = HashingUtils::HashString("NTFS"); - static const int MIXED_HASH = HashingUtils::HashString("MIXED"); + static constexpr uint32_t UNIX_HASH = ConstExprHashingUtils::HashString("UNIX"); + static constexpr uint32_t NTFS_HASH = ConstExprHashingUtils::HashString("NTFS"); + static constexpr uint32_t MIXED_HASH = ConstExprHashingUtils::HashString("MIXED"); StorageVirtualMachineRootVolumeSecurityStyle GetStorageVirtualMachineRootVolumeSecurityStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNIX_HASH) { return StorageVirtualMachineRootVolumeSecurityStyle::UNIX; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineSubtype.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineSubtype.cpp index a116e096bdf..2d8c365b6cb 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineSubtype.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/StorageVirtualMachineSubtype.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StorageVirtualMachineSubtypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int DP_DESTINATION_HASH = HashingUtils::HashString("DP_DESTINATION"); - static const int SYNC_DESTINATION_HASH = HashingUtils::HashString("SYNC_DESTINATION"); - static const int SYNC_SOURCE_HASH = HashingUtils::HashString("SYNC_SOURCE"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t DP_DESTINATION_HASH = ConstExprHashingUtils::HashString("DP_DESTINATION"); + static constexpr uint32_t SYNC_DESTINATION_HASH = ConstExprHashingUtils::HashString("SYNC_DESTINATION"); + static constexpr uint32_t SYNC_SOURCE_HASH = ConstExprHashingUtils::HashString("SYNC_SOURCE"); StorageVirtualMachineSubtype GetStorageVirtualMachineSubtypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return StorageVirtualMachineSubtype::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/TieringPolicyName.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/TieringPolicyName.cpp index 3c07014e154..b3304f8c722 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/TieringPolicyName.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/TieringPolicyName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TieringPolicyNameMapper { - static const int SNAPSHOT_ONLY_HASH = HashingUtils::HashString("SNAPSHOT_ONLY"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SNAPSHOT_ONLY_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_ONLY"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); TieringPolicyName GetTieringPolicyNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNAPSHOT_ONLY_HASH) { return TieringPolicyName::SNAPSHOT_ONLY; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/Unit.cpp index b4bc4a2ef6c..7dff2742744 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/Unit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UnitMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return Unit::DAYS; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/VolumeFilterName.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/VolumeFilterName.cpp index 2ebfe151a4c..6818e8b7dc3 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/VolumeFilterName.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/VolumeFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VolumeFilterNameMapper { - static const int file_system_id_HASH = HashingUtils::HashString("file-system-id"); - static const int storage_virtual_machine_id_HASH = HashingUtils::HashString("storage-virtual-machine-id"); + static constexpr uint32_t file_system_id_HASH = ConstExprHashingUtils::HashString("file-system-id"); + static constexpr uint32_t storage_virtual_machine_id_HASH = ConstExprHashingUtils::HashString("storage-virtual-machine-id"); VolumeFilterName GetVolumeFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == file_system_id_HASH) { return VolumeFilterName::file_system_id; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/VolumeLifecycle.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/VolumeLifecycle.cpp index fc16f669c92..09a6c68c425 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/VolumeLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/VolumeLifecycle.cpp @@ -20,18 +20,18 @@ namespace Aws namespace VolumeLifecycleMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int MISCONFIGURED_HASH = HashingUtils::HashString("MISCONFIGURED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t MISCONFIGURED_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); VolumeLifecycle GetVolumeLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return VolumeLifecycle::CREATING; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/VolumeType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/VolumeType.cpp index 817e6f54137..4cf76c5bc4a 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/VolumeType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/VolumeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VolumeTypeMapper { - static const int ONTAP_HASH = HashingUtils::HashString("ONTAP"); - static const int OPENZFS_HASH = HashingUtils::HashString("OPENZFS"); + static constexpr uint32_t ONTAP_HASH = ConstExprHashingUtils::HashString("ONTAP"); + static constexpr uint32_t OPENZFS_HASH = ConstExprHashingUtils::HashString("OPENZFS"); VolumeType GetVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONTAP_HASH) { return VolumeType::ONTAP; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/WindowsAccessAuditLogLevel.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/WindowsAccessAuditLogLevel.cpp index 32de1fdd19d..4fc7a2a4b98 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/WindowsAccessAuditLogLevel.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/WindowsAccessAuditLogLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WindowsAccessAuditLogLevelMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int SUCCESS_ONLY_HASH = HashingUtils::HashString("SUCCESS_ONLY"); - static const int FAILURE_ONLY_HASH = HashingUtils::HashString("FAILURE_ONLY"); - static const int SUCCESS_AND_FAILURE_HASH = HashingUtils::HashString("SUCCESS_AND_FAILURE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t SUCCESS_ONLY_HASH = ConstExprHashingUtils::HashString("SUCCESS_ONLY"); + static constexpr uint32_t FAILURE_ONLY_HASH = ConstExprHashingUtils::HashString("FAILURE_ONLY"); + static constexpr uint32_t SUCCESS_AND_FAILURE_HASH = ConstExprHashingUtils::HashString("SUCCESS_AND_FAILURE"); WindowsAccessAuditLogLevel GetWindowsAccessAuditLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return WindowsAccessAuditLogLevel::DISABLED; diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/WindowsDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/WindowsDeploymentType.cpp index 54d1af7388d..25881b85e92 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/WindowsDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/WindowsDeploymentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WindowsDeploymentTypeMapper { - static const int MULTI_AZ_1_HASH = HashingUtils::HashString("MULTI_AZ_1"); - static const int SINGLE_AZ_1_HASH = HashingUtils::HashString("SINGLE_AZ_1"); - static const int SINGLE_AZ_2_HASH = HashingUtils::HashString("SINGLE_AZ_2"); + static constexpr uint32_t MULTI_AZ_1_HASH = ConstExprHashingUtils::HashString("MULTI_AZ_1"); + static constexpr uint32_t SINGLE_AZ_1_HASH = ConstExprHashingUtils::HashString("SINGLE_AZ_1"); + static constexpr uint32_t SINGLE_AZ_2_HASH = ConstExprHashingUtils::HashString("SINGLE_AZ_2"); WindowsDeploymentType GetWindowsDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_AZ_1_HASH) { return WindowsDeploymentType::MULTI_AZ_1; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/GameLiftErrors.cpp b/generated/src/aws-cpp-sdk-gamelift/source/GameLiftErrors.cpp index f97bb7409d3..6093f18e5a6 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/GameLiftErrors.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/GameLiftErrors.cpp @@ -18,26 +18,26 @@ namespace GameLift namespace GameLiftErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INVALID_GAME_SESSION_STATUS_HASH = HashingUtils::HashString("InvalidGameSessionStatusException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int FLEET_CAPACITY_EXCEEDED_HASH = HashingUtils::HashString("FleetCapacityExceededException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int UNSUPPORTED_REGION_HASH = HashingUtils::HashString("UnsupportedRegionException"); -static const int TAGGING_FAILED_HASH = HashingUtils::HashString("TaggingFailedException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int OUT_OF_CAPACITY_HASH = HashingUtils::HashString("OutOfCapacityException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int INVALID_FLEET_STATUS_HASH = HashingUtils::HashString("InvalidFleetStatusException"); -static const int GAME_SESSION_FULL_HASH = HashingUtils::HashString("GameSessionFullException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); -static const int TERMINAL_ROUTING_STRATEGY_HASH = HashingUtils::HashString("TerminalRoutingStrategyException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INVALID_GAME_SESSION_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidGameSessionStatusException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t FLEET_CAPACITY_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FleetCapacityExceededException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t UNSUPPORTED_REGION_HASH = ConstExprHashingUtils::HashString("UnsupportedRegionException"); +static constexpr uint32_t TAGGING_FAILED_HASH = ConstExprHashingUtils::HashString("TaggingFailedException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t OUT_OF_CAPACITY_HASH = ConstExprHashingUtils::HashString("OutOfCapacityException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t INVALID_FLEET_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidFleetStatusException"); +static constexpr uint32_t GAME_SESSION_FULL_HASH = ConstExprHashingUtils::HashString("GameSessionFullException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t TERMINAL_ROUTING_STRATEGY_HASH = ConstExprHashingUtils::HashString("TerminalRoutingStrategyException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/AcceptanceType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/AcceptanceType.cpp index cd02d2e2399..98b201efd25 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/AcceptanceType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/AcceptanceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AcceptanceTypeMapper { - static const int ACCEPT_HASH = HashingUtils::HashString("ACCEPT"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); + static constexpr uint32_t ACCEPT_HASH = ConstExprHashingUtils::HashString("ACCEPT"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); AcceptanceType GetAcceptanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPT_HASH) { return AcceptanceType::ACCEPT; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/BackfillMode.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/BackfillMode.cpp index ca847b2741f..33afa1fea08 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/BackfillMode.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/BackfillMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BackfillModeMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); BackfillMode GetBackfillModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return BackfillMode::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/BalancingStrategy.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/BalancingStrategy.cpp index 1367a4c4a6b..099592cfbf6 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/BalancingStrategy.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/BalancingStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BalancingStrategyMapper { - static const int SPOT_ONLY_HASH = HashingUtils::HashString("SPOT_ONLY"); - static const int SPOT_PREFERRED_HASH = HashingUtils::HashString("SPOT_PREFERRED"); - static const int ON_DEMAND_ONLY_HASH = HashingUtils::HashString("ON_DEMAND_ONLY"); + static constexpr uint32_t SPOT_ONLY_HASH = ConstExprHashingUtils::HashString("SPOT_ONLY"); + static constexpr uint32_t SPOT_PREFERRED_HASH = ConstExprHashingUtils::HashString("SPOT_PREFERRED"); + static constexpr uint32_t ON_DEMAND_ONLY_HASH = ConstExprHashingUtils::HashString("ON_DEMAND_ONLY"); BalancingStrategy GetBalancingStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPOT_ONLY_HASH) { return BalancingStrategy::SPOT_ONLY; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/BuildStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/BuildStatus.cpp index 5e365b167e0..822666d5497 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/BuildStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/BuildStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BuildStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); BuildStatus GetBuildStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return BuildStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/CertificateType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/CertificateType.cpp index b675c918e5a..d209b38a454 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/CertificateType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/CertificateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateTypeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int GENERATED_HASH = HashingUtils::HashString("GENERATED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t GENERATED_HASH = ConstExprHashingUtils::HashString("GENERATED"); CertificateType GetCertificateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CertificateType::DISABLED; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/ComparisonOperatorType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/ComparisonOperatorType.cpp index e4cdb0cacf3..757bb6e8de8 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/ComparisonOperatorType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/ComparisonOperatorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComparisonOperatorTypeMapper { - static const int GreaterThanOrEqualToThreshold_HASH = HashingUtils::HashString("GreaterThanOrEqualToThreshold"); - static const int GreaterThanThreshold_HASH = HashingUtils::HashString("GreaterThanThreshold"); - static const int LessThanThreshold_HASH = HashingUtils::HashString("LessThanThreshold"); - static const int LessThanOrEqualToThreshold_HASH = HashingUtils::HashString("LessThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanThreshold"); + static constexpr uint32_t LessThanThreshold_HASH = ConstExprHashingUtils::HashString("LessThanThreshold"); + static constexpr uint32_t LessThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("LessThanOrEqualToThreshold"); ComparisonOperatorType GetComparisonOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreaterThanOrEqualToThreshold_HASH) { return ComparisonOperatorType::GreaterThanOrEqualToThreshold; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeStatus.cpp index 72cda8be6cb..1a76392fa3f 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComputeStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); ComputeStatus GetComputeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ComputeStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeType.cpp index 0e28b4a0e19..ca5ae22da2b 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/ComputeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComputeTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int ANYWHERE_HASH = HashingUtils::HashString("ANYWHERE"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t ANYWHERE_HASH = ConstExprHashingUtils::HashString("ANYWHERE"); ComputeType GetComputeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return ComputeType::EC2; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/EC2InstanceType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/EC2InstanceType.cpp index c2027e5ede1..18116d345c2 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/EC2InstanceType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/EC2InstanceType.cpp @@ -20,188 +20,188 @@ namespace Aws namespace EC2InstanceTypeMapper { - static const int t2_micro_HASH = HashingUtils::HashString("t2.micro"); - static const int t2_small_HASH = HashingUtils::HashString("t2.small"); - static const int t2_medium_HASH = HashingUtils::HashString("t2.medium"); - static const int t2_large_HASH = HashingUtils::HashString("t2.large"); - static const int c3_large_HASH = HashingUtils::HashString("c3.large"); - static const int c3_xlarge_HASH = HashingUtils::HashString("c3.xlarge"); - static const int c3_2xlarge_HASH = HashingUtils::HashString("c3.2xlarge"); - static const int c3_4xlarge_HASH = HashingUtils::HashString("c3.4xlarge"); - static const int c3_8xlarge_HASH = HashingUtils::HashString("c3.8xlarge"); - static const int c4_large_HASH = HashingUtils::HashString("c4.large"); - static const int c4_xlarge_HASH = HashingUtils::HashString("c4.xlarge"); - static const int c4_2xlarge_HASH = HashingUtils::HashString("c4.2xlarge"); - static const int c4_4xlarge_HASH = HashingUtils::HashString("c4.4xlarge"); - static const int c4_8xlarge_HASH = HashingUtils::HashString("c4.8xlarge"); - static const int c5_large_HASH = HashingUtils::HashString("c5.large"); - static const int c5_xlarge_HASH = HashingUtils::HashString("c5.xlarge"); - static const int c5_2xlarge_HASH = HashingUtils::HashString("c5.2xlarge"); - static const int c5_4xlarge_HASH = HashingUtils::HashString("c5.4xlarge"); - static const int c5_9xlarge_HASH = HashingUtils::HashString("c5.9xlarge"); - static const int c5_12xlarge_HASH = HashingUtils::HashString("c5.12xlarge"); - static const int c5_18xlarge_HASH = HashingUtils::HashString("c5.18xlarge"); - static const int c5_24xlarge_HASH = HashingUtils::HashString("c5.24xlarge"); - static const int c5a_large_HASH = HashingUtils::HashString("c5a.large"); - static const int c5a_xlarge_HASH = HashingUtils::HashString("c5a.xlarge"); - static const int c5a_2xlarge_HASH = HashingUtils::HashString("c5a.2xlarge"); - static const int c5a_4xlarge_HASH = HashingUtils::HashString("c5a.4xlarge"); - static const int c5a_8xlarge_HASH = HashingUtils::HashString("c5a.8xlarge"); - static const int c5a_12xlarge_HASH = HashingUtils::HashString("c5a.12xlarge"); - static const int c5a_16xlarge_HASH = HashingUtils::HashString("c5a.16xlarge"); - static const int c5a_24xlarge_HASH = HashingUtils::HashString("c5a.24xlarge"); - static const int r3_large_HASH = HashingUtils::HashString("r3.large"); - static const int r3_xlarge_HASH = HashingUtils::HashString("r3.xlarge"); - static const int r3_2xlarge_HASH = HashingUtils::HashString("r3.2xlarge"); - static const int r3_4xlarge_HASH = HashingUtils::HashString("r3.4xlarge"); - static const int r3_8xlarge_HASH = HashingUtils::HashString("r3.8xlarge"); - static const int r4_large_HASH = HashingUtils::HashString("r4.large"); - static const int r4_xlarge_HASH = HashingUtils::HashString("r4.xlarge"); - static const int r4_2xlarge_HASH = HashingUtils::HashString("r4.2xlarge"); - static const int r4_4xlarge_HASH = HashingUtils::HashString("r4.4xlarge"); - static const int r4_8xlarge_HASH = HashingUtils::HashString("r4.8xlarge"); - static const int r4_16xlarge_HASH = HashingUtils::HashString("r4.16xlarge"); - static const int r5_large_HASH = HashingUtils::HashString("r5.large"); - static const int r5_xlarge_HASH = HashingUtils::HashString("r5.xlarge"); - static const int r5_2xlarge_HASH = HashingUtils::HashString("r5.2xlarge"); - static const int r5_4xlarge_HASH = HashingUtils::HashString("r5.4xlarge"); - static const int r5_8xlarge_HASH = HashingUtils::HashString("r5.8xlarge"); - static const int r5_12xlarge_HASH = HashingUtils::HashString("r5.12xlarge"); - static const int r5_16xlarge_HASH = HashingUtils::HashString("r5.16xlarge"); - static const int r5_24xlarge_HASH = HashingUtils::HashString("r5.24xlarge"); - static const int r5a_large_HASH = HashingUtils::HashString("r5a.large"); - static const int r5a_xlarge_HASH = HashingUtils::HashString("r5a.xlarge"); - static const int r5a_2xlarge_HASH = HashingUtils::HashString("r5a.2xlarge"); - static const int r5a_4xlarge_HASH = HashingUtils::HashString("r5a.4xlarge"); - static const int r5a_8xlarge_HASH = HashingUtils::HashString("r5a.8xlarge"); - static const int r5a_12xlarge_HASH = HashingUtils::HashString("r5a.12xlarge"); - static const int r5a_16xlarge_HASH = HashingUtils::HashString("r5a.16xlarge"); - static const int r5a_24xlarge_HASH = HashingUtils::HashString("r5a.24xlarge"); - static const int m3_medium_HASH = HashingUtils::HashString("m3.medium"); - static const int m3_large_HASH = HashingUtils::HashString("m3.large"); - static const int m3_xlarge_HASH = HashingUtils::HashString("m3.xlarge"); - static const int m3_2xlarge_HASH = HashingUtils::HashString("m3.2xlarge"); - static const int m4_large_HASH = HashingUtils::HashString("m4.large"); - static const int m4_xlarge_HASH = HashingUtils::HashString("m4.xlarge"); - static const int m4_2xlarge_HASH = HashingUtils::HashString("m4.2xlarge"); - static const int m4_4xlarge_HASH = HashingUtils::HashString("m4.4xlarge"); - static const int m4_10xlarge_HASH = HashingUtils::HashString("m4.10xlarge"); - static const int m5_large_HASH = HashingUtils::HashString("m5.large"); - static const int m5_xlarge_HASH = HashingUtils::HashString("m5.xlarge"); - static const int m5_2xlarge_HASH = HashingUtils::HashString("m5.2xlarge"); - static const int m5_4xlarge_HASH = HashingUtils::HashString("m5.4xlarge"); - static const int m5_8xlarge_HASH = HashingUtils::HashString("m5.8xlarge"); - static const int m5_12xlarge_HASH = HashingUtils::HashString("m5.12xlarge"); - static const int m5_16xlarge_HASH = HashingUtils::HashString("m5.16xlarge"); - static const int m5_24xlarge_HASH = HashingUtils::HashString("m5.24xlarge"); - static const int m5a_large_HASH = HashingUtils::HashString("m5a.large"); - static const int m5a_xlarge_HASH = HashingUtils::HashString("m5a.xlarge"); - static const int m5a_2xlarge_HASH = HashingUtils::HashString("m5a.2xlarge"); - static const int m5a_4xlarge_HASH = HashingUtils::HashString("m5a.4xlarge"); - static const int m5a_8xlarge_HASH = HashingUtils::HashString("m5a.8xlarge"); - static const int m5a_12xlarge_HASH = HashingUtils::HashString("m5a.12xlarge"); - static const int m5a_16xlarge_HASH = HashingUtils::HashString("m5a.16xlarge"); - static const int m5a_24xlarge_HASH = HashingUtils::HashString("m5a.24xlarge"); - static const int c5d_large_HASH = HashingUtils::HashString("c5d.large"); - static const int c5d_xlarge_HASH = HashingUtils::HashString("c5d.xlarge"); - static const int c5d_2xlarge_HASH = HashingUtils::HashString("c5d.2xlarge"); - static const int c5d_4xlarge_HASH = HashingUtils::HashString("c5d.4xlarge"); - static const int c5d_9xlarge_HASH = HashingUtils::HashString("c5d.9xlarge"); - static const int c5d_12xlarge_HASH = HashingUtils::HashString("c5d.12xlarge"); - static const int c5d_18xlarge_HASH = HashingUtils::HashString("c5d.18xlarge"); - static const int c5d_24xlarge_HASH = HashingUtils::HashString("c5d.24xlarge"); - static const int c6a_large_HASH = HashingUtils::HashString("c6a.large"); - static const int c6a_xlarge_HASH = HashingUtils::HashString("c6a.xlarge"); - static const int c6a_2xlarge_HASH = HashingUtils::HashString("c6a.2xlarge"); - static const int c6a_4xlarge_HASH = HashingUtils::HashString("c6a.4xlarge"); - static const int c6a_8xlarge_HASH = HashingUtils::HashString("c6a.8xlarge"); - static const int c6a_12xlarge_HASH = HashingUtils::HashString("c6a.12xlarge"); - static const int c6a_16xlarge_HASH = HashingUtils::HashString("c6a.16xlarge"); - static const int c6a_24xlarge_HASH = HashingUtils::HashString("c6a.24xlarge"); - static const int c6i_large_HASH = HashingUtils::HashString("c6i.large"); - static const int c6i_xlarge_HASH = HashingUtils::HashString("c6i.xlarge"); - static const int c6i_2xlarge_HASH = HashingUtils::HashString("c6i.2xlarge"); - static const int c6i_4xlarge_HASH = HashingUtils::HashString("c6i.4xlarge"); - static const int c6i_8xlarge_HASH = HashingUtils::HashString("c6i.8xlarge"); - static const int c6i_12xlarge_HASH = HashingUtils::HashString("c6i.12xlarge"); - static const int c6i_16xlarge_HASH = HashingUtils::HashString("c6i.16xlarge"); - static const int c6i_24xlarge_HASH = HashingUtils::HashString("c6i.24xlarge"); - static const int r5d_large_HASH = HashingUtils::HashString("r5d.large"); - static const int r5d_xlarge_HASH = HashingUtils::HashString("r5d.xlarge"); - static const int r5d_2xlarge_HASH = HashingUtils::HashString("r5d.2xlarge"); - static const int r5d_4xlarge_HASH = HashingUtils::HashString("r5d.4xlarge"); - static const int r5d_8xlarge_HASH = HashingUtils::HashString("r5d.8xlarge"); - static const int r5d_12xlarge_HASH = HashingUtils::HashString("r5d.12xlarge"); - static const int r5d_16xlarge_HASH = HashingUtils::HashString("r5d.16xlarge"); - static const int r5d_24xlarge_HASH = HashingUtils::HashString("r5d.24xlarge"); - static const int m6g_medium_HASH = HashingUtils::HashString("m6g.medium"); - static const int m6g_large_HASH = HashingUtils::HashString("m6g.large"); - static const int m6g_xlarge_HASH = HashingUtils::HashString("m6g.xlarge"); - static const int m6g_2xlarge_HASH = HashingUtils::HashString("m6g.2xlarge"); - static const int m6g_4xlarge_HASH = HashingUtils::HashString("m6g.4xlarge"); - static const int m6g_8xlarge_HASH = HashingUtils::HashString("m6g.8xlarge"); - static const int m6g_12xlarge_HASH = HashingUtils::HashString("m6g.12xlarge"); - static const int m6g_16xlarge_HASH = HashingUtils::HashString("m6g.16xlarge"); - static const int c6g_medium_HASH = HashingUtils::HashString("c6g.medium"); - static const int c6g_large_HASH = HashingUtils::HashString("c6g.large"); - static const int c6g_xlarge_HASH = HashingUtils::HashString("c6g.xlarge"); - static const int c6g_2xlarge_HASH = HashingUtils::HashString("c6g.2xlarge"); - static const int c6g_4xlarge_HASH = HashingUtils::HashString("c6g.4xlarge"); - static const int c6g_8xlarge_HASH = HashingUtils::HashString("c6g.8xlarge"); - static const int c6g_12xlarge_HASH = HashingUtils::HashString("c6g.12xlarge"); - static const int c6g_16xlarge_HASH = HashingUtils::HashString("c6g.16xlarge"); - static const int r6g_medium_HASH = HashingUtils::HashString("r6g.medium"); - static const int r6g_large_HASH = HashingUtils::HashString("r6g.large"); - static const int r6g_xlarge_HASH = HashingUtils::HashString("r6g.xlarge"); - static const int r6g_2xlarge_HASH = HashingUtils::HashString("r6g.2xlarge"); - static const int r6g_4xlarge_HASH = HashingUtils::HashString("r6g.4xlarge"); - static const int r6g_8xlarge_HASH = HashingUtils::HashString("r6g.8xlarge"); - static const int r6g_12xlarge_HASH = HashingUtils::HashString("r6g.12xlarge"); - static const int r6g_16xlarge_HASH = HashingUtils::HashString("r6g.16xlarge"); - static const int c6gn_medium_HASH = HashingUtils::HashString("c6gn.medium"); - static const int c6gn_large_HASH = HashingUtils::HashString("c6gn.large"); - static const int c6gn_xlarge_HASH = HashingUtils::HashString("c6gn.xlarge"); - static const int c6gn_2xlarge_HASH = HashingUtils::HashString("c6gn.2xlarge"); - static const int c6gn_4xlarge_HASH = HashingUtils::HashString("c6gn.4xlarge"); - static const int c6gn_8xlarge_HASH = HashingUtils::HashString("c6gn.8xlarge"); - static const int c6gn_12xlarge_HASH = HashingUtils::HashString("c6gn.12xlarge"); - static const int c6gn_16xlarge_HASH = HashingUtils::HashString("c6gn.16xlarge"); - static const int c7g_medium_HASH = HashingUtils::HashString("c7g.medium"); - static const int c7g_large_HASH = HashingUtils::HashString("c7g.large"); - static const int c7g_xlarge_HASH = HashingUtils::HashString("c7g.xlarge"); - static const int c7g_2xlarge_HASH = HashingUtils::HashString("c7g.2xlarge"); - static const int c7g_4xlarge_HASH = HashingUtils::HashString("c7g.4xlarge"); - static const int c7g_8xlarge_HASH = HashingUtils::HashString("c7g.8xlarge"); - static const int c7g_12xlarge_HASH = HashingUtils::HashString("c7g.12xlarge"); - static const int c7g_16xlarge_HASH = HashingUtils::HashString("c7g.16xlarge"); - static const int r7g_medium_HASH = HashingUtils::HashString("r7g.medium"); - static const int r7g_large_HASH = HashingUtils::HashString("r7g.large"); - static const int r7g_xlarge_HASH = HashingUtils::HashString("r7g.xlarge"); - static const int r7g_2xlarge_HASH = HashingUtils::HashString("r7g.2xlarge"); - static const int r7g_4xlarge_HASH = HashingUtils::HashString("r7g.4xlarge"); - static const int r7g_8xlarge_HASH = HashingUtils::HashString("r7g.8xlarge"); - static const int r7g_12xlarge_HASH = HashingUtils::HashString("r7g.12xlarge"); - static const int r7g_16xlarge_HASH = HashingUtils::HashString("r7g.16xlarge"); - static const int m7g_medium_HASH = HashingUtils::HashString("m7g.medium"); - static const int m7g_large_HASH = HashingUtils::HashString("m7g.large"); - static const int m7g_xlarge_HASH = HashingUtils::HashString("m7g.xlarge"); - static const int m7g_2xlarge_HASH = HashingUtils::HashString("m7g.2xlarge"); - static const int m7g_4xlarge_HASH = HashingUtils::HashString("m7g.4xlarge"); - static const int m7g_8xlarge_HASH = HashingUtils::HashString("m7g.8xlarge"); - static const int m7g_12xlarge_HASH = HashingUtils::HashString("m7g.12xlarge"); - static const int m7g_16xlarge_HASH = HashingUtils::HashString("m7g.16xlarge"); - static const int g5g_xlarge_HASH = HashingUtils::HashString("g5g.xlarge"); - static const int g5g_2xlarge_HASH = HashingUtils::HashString("g5g.2xlarge"); - static const int g5g_4xlarge_HASH = HashingUtils::HashString("g5g.4xlarge"); - static const int g5g_8xlarge_HASH = HashingUtils::HashString("g5g.8xlarge"); - static const int g5g_16xlarge_HASH = HashingUtils::HashString("g5g.16xlarge"); + static constexpr uint32_t t2_micro_HASH = ConstExprHashingUtils::HashString("t2.micro"); + static constexpr uint32_t t2_small_HASH = ConstExprHashingUtils::HashString("t2.small"); + static constexpr uint32_t t2_medium_HASH = ConstExprHashingUtils::HashString("t2.medium"); + static constexpr uint32_t t2_large_HASH = ConstExprHashingUtils::HashString("t2.large"); + static constexpr uint32_t c3_large_HASH = ConstExprHashingUtils::HashString("c3.large"); + static constexpr uint32_t c3_xlarge_HASH = ConstExprHashingUtils::HashString("c3.xlarge"); + static constexpr uint32_t c3_2xlarge_HASH = ConstExprHashingUtils::HashString("c3.2xlarge"); + static constexpr uint32_t c3_4xlarge_HASH = ConstExprHashingUtils::HashString("c3.4xlarge"); + static constexpr uint32_t c3_8xlarge_HASH = ConstExprHashingUtils::HashString("c3.8xlarge"); + static constexpr uint32_t c4_large_HASH = ConstExprHashingUtils::HashString("c4.large"); + static constexpr uint32_t c4_xlarge_HASH = ConstExprHashingUtils::HashString("c4.xlarge"); + static constexpr uint32_t c4_2xlarge_HASH = ConstExprHashingUtils::HashString("c4.2xlarge"); + static constexpr uint32_t c4_4xlarge_HASH = ConstExprHashingUtils::HashString("c4.4xlarge"); + static constexpr uint32_t c4_8xlarge_HASH = ConstExprHashingUtils::HashString("c4.8xlarge"); + static constexpr uint32_t c5_large_HASH = ConstExprHashingUtils::HashString("c5.large"); + static constexpr uint32_t c5_xlarge_HASH = ConstExprHashingUtils::HashString("c5.xlarge"); + static constexpr uint32_t c5_2xlarge_HASH = ConstExprHashingUtils::HashString("c5.2xlarge"); + static constexpr uint32_t c5_4xlarge_HASH = ConstExprHashingUtils::HashString("c5.4xlarge"); + static constexpr uint32_t c5_9xlarge_HASH = ConstExprHashingUtils::HashString("c5.9xlarge"); + static constexpr uint32_t c5_12xlarge_HASH = ConstExprHashingUtils::HashString("c5.12xlarge"); + static constexpr uint32_t c5_18xlarge_HASH = ConstExprHashingUtils::HashString("c5.18xlarge"); + static constexpr uint32_t c5_24xlarge_HASH = ConstExprHashingUtils::HashString("c5.24xlarge"); + static constexpr uint32_t c5a_large_HASH = ConstExprHashingUtils::HashString("c5a.large"); + static constexpr uint32_t c5a_xlarge_HASH = ConstExprHashingUtils::HashString("c5a.xlarge"); + static constexpr uint32_t c5a_2xlarge_HASH = ConstExprHashingUtils::HashString("c5a.2xlarge"); + static constexpr uint32_t c5a_4xlarge_HASH = ConstExprHashingUtils::HashString("c5a.4xlarge"); + static constexpr uint32_t c5a_8xlarge_HASH = ConstExprHashingUtils::HashString("c5a.8xlarge"); + static constexpr uint32_t c5a_12xlarge_HASH = ConstExprHashingUtils::HashString("c5a.12xlarge"); + static constexpr uint32_t c5a_16xlarge_HASH = ConstExprHashingUtils::HashString("c5a.16xlarge"); + static constexpr uint32_t c5a_24xlarge_HASH = ConstExprHashingUtils::HashString("c5a.24xlarge"); + static constexpr uint32_t r3_large_HASH = ConstExprHashingUtils::HashString("r3.large"); + static constexpr uint32_t r3_xlarge_HASH = ConstExprHashingUtils::HashString("r3.xlarge"); + static constexpr uint32_t r3_2xlarge_HASH = ConstExprHashingUtils::HashString("r3.2xlarge"); + static constexpr uint32_t r3_4xlarge_HASH = ConstExprHashingUtils::HashString("r3.4xlarge"); + static constexpr uint32_t r3_8xlarge_HASH = ConstExprHashingUtils::HashString("r3.8xlarge"); + static constexpr uint32_t r4_large_HASH = ConstExprHashingUtils::HashString("r4.large"); + static constexpr uint32_t r4_xlarge_HASH = ConstExprHashingUtils::HashString("r4.xlarge"); + static constexpr uint32_t r4_2xlarge_HASH = ConstExprHashingUtils::HashString("r4.2xlarge"); + static constexpr uint32_t r4_4xlarge_HASH = ConstExprHashingUtils::HashString("r4.4xlarge"); + static constexpr uint32_t r4_8xlarge_HASH = ConstExprHashingUtils::HashString("r4.8xlarge"); + static constexpr uint32_t r4_16xlarge_HASH = ConstExprHashingUtils::HashString("r4.16xlarge"); + static constexpr uint32_t r5_large_HASH = ConstExprHashingUtils::HashString("r5.large"); + static constexpr uint32_t r5_xlarge_HASH = ConstExprHashingUtils::HashString("r5.xlarge"); + static constexpr uint32_t r5_2xlarge_HASH = ConstExprHashingUtils::HashString("r5.2xlarge"); + static constexpr uint32_t r5_4xlarge_HASH = ConstExprHashingUtils::HashString("r5.4xlarge"); + static constexpr uint32_t r5_8xlarge_HASH = ConstExprHashingUtils::HashString("r5.8xlarge"); + static constexpr uint32_t r5_12xlarge_HASH = ConstExprHashingUtils::HashString("r5.12xlarge"); + static constexpr uint32_t r5_16xlarge_HASH = ConstExprHashingUtils::HashString("r5.16xlarge"); + static constexpr uint32_t r5_24xlarge_HASH = ConstExprHashingUtils::HashString("r5.24xlarge"); + static constexpr uint32_t r5a_large_HASH = ConstExprHashingUtils::HashString("r5a.large"); + static constexpr uint32_t r5a_xlarge_HASH = ConstExprHashingUtils::HashString("r5a.xlarge"); + static constexpr uint32_t r5a_2xlarge_HASH = ConstExprHashingUtils::HashString("r5a.2xlarge"); + static constexpr uint32_t r5a_4xlarge_HASH = ConstExprHashingUtils::HashString("r5a.4xlarge"); + static constexpr uint32_t r5a_8xlarge_HASH = ConstExprHashingUtils::HashString("r5a.8xlarge"); + static constexpr uint32_t r5a_12xlarge_HASH = ConstExprHashingUtils::HashString("r5a.12xlarge"); + static constexpr uint32_t r5a_16xlarge_HASH = ConstExprHashingUtils::HashString("r5a.16xlarge"); + static constexpr uint32_t r5a_24xlarge_HASH = ConstExprHashingUtils::HashString("r5a.24xlarge"); + static constexpr uint32_t m3_medium_HASH = ConstExprHashingUtils::HashString("m3.medium"); + static constexpr uint32_t m3_large_HASH = ConstExprHashingUtils::HashString("m3.large"); + static constexpr uint32_t m3_xlarge_HASH = ConstExprHashingUtils::HashString("m3.xlarge"); + static constexpr uint32_t m3_2xlarge_HASH = ConstExprHashingUtils::HashString("m3.2xlarge"); + static constexpr uint32_t m4_large_HASH = ConstExprHashingUtils::HashString("m4.large"); + static constexpr uint32_t m4_xlarge_HASH = ConstExprHashingUtils::HashString("m4.xlarge"); + static constexpr uint32_t m4_2xlarge_HASH = ConstExprHashingUtils::HashString("m4.2xlarge"); + static constexpr uint32_t m4_4xlarge_HASH = ConstExprHashingUtils::HashString("m4.4xlarge"); + static constexpr uint32_t m4_10xlarge_HASH = ConstExprHashingUtils::HashString("m4.10xlarge"); + static constexpr uint32_t m5_large_HASH = ConstExprHashingUtils::HashString("m5.large"); + static constexpr uint32_t m5_xlarge_HASH = ConstExprHashingUtils::HashString("m5.xlarge"); + static constexpr uint32_t m5_2xlarge_HASH = ConstExprHashingUtils::HashString("m5.2xlarge"); + static constexpr uint32_t m5_4xlarge_HASH = ConstExprHashingUtils::HashString("m5.4xlarge"); + static constexpr uint32_t m5_8xlarge_HASH = ConstExprHashingUtils::HashString("m5.8xlarge"); + static constexpr uint32_t m5_12xlarge_HASH = ConstExprHashingUtils::HashString("m5.12xlarge"); + static constexpr uint32_t m5_16xlarge_HASH = ConstExprHashingUtils::HashString("m5.16xlarge"); + static constexpr uint32_t m5_24xlarge_HASH = ConstExprHashingUtils::HashString("m5.24xlarge"); + static constexpr uint32_t m5a_large_HASH = ConstExprHashingUtils::HashString("m5a.large"); + static constexpr uint32_t m5a_xlarge_HASH = ConstExprHashingUtils::HashString("m5a.xlarge"); + static constexpr uint32_t m5a_2xlarge_HASH = ConstExprHashingUtils::HashString("m5a.2xlarge"); + static constexpr uint32_t m5a_4xlarge_HASH = ConstExprHashingUtils::HashString("m5a.4xlarge"); + static constexpr uint32_t m5a_8xlarge_HASH = ConstExprHashingUtils::HashString("m5a.8xlarge"); + static constexpr uint32_t m5a_12xlarge_HASH = ConstExprHashingUtils::HashString("m5a.12xlarge"); + static constexpr uint32_t m5a_16xlarge_HASH = ConstExprHashingUtils::HashString("m5a.16xlarge"); + static constexpr uint32_t m5a_24xlarge_HASH = ConstExprHashingUtils::HashString("m5a.24xlarge"); + static constexpr uint32_t c5d_large_HASH = ConstExprHashingUtils::HashString("c5d.large"); + static constexpr uint32_t c5d_xlarge_HASH = ConstExprHashingUtils::HashString("c5d.xlarge"); + static constexpr uint32_t c5d_2xlarge_HASH = ConstExprHashingUtils::HashString("c5d.2xlarge"); + static constexpr uint32_t c5d_4xlarge_HASH = ConstExprHashingUtils::HashString("c5d.4xlarge"); + static constexpr uint32_t c5d_9xlarge_HASH = ConstExprHashingUtils::HashString("c5d.9xlarge"); + static constexpr uint32_t c5d_12xlarge_HASH = ConstExprHashingUtils::HashString("c5d.12xlarge"); + static constexpr uint32_t c5d_18xlarge_HASH = ConstExprHashingUtils::HashString("c5d.18xlarge"); + static constexpr uint32_t c5d_24xlarge_HASH = ConstExprHashingUtils::HashString("c5d.24xlarge"); + static constexpr uint32_t c6a_large_HASH = ConstExprHashingUtils::HashString("c6a.large"); + static constexpr uint32_t c6a_xlarge_HASH = ConstExprHashingUtils::HashString("c6a.xlarge"); + static constexpr uint32_t c6a_2xlarge_HASH = ConstExprHashingUtils::HashString("c6a.2xlarge"); + static constexpr uint32_t c6a_4xlarge_HASH = ConstExprHashingUtils::HashString("c6a.4xlarge"); + static constexpr uint32_t c6a_8xlarge_HASH = ConstExprHashingUtils::HashString("c6a.8xlarge"); + static constexpr uint32_t c6a_12xlarge_HASH = ConstExprHashingUtils::HashString("c6a.12xlarge"); + static constexpr uint32_t c6a_16xlarge_HASH = ConstExprHashingUtils::HashString("c6a.16xlarge"); + static constexpr uint32_t c6a_24xlarge_HASH = ConstExprHashingUtils::HashString("c6a.24xlarge"); + static constexpr uint32_t c6i_large_HASH = ConstExprHashingUtils::HashString("c6i.large"); + static constexpr uint32_t c6i_xlarge_HASH = ConstExprHashingUtils::HashString("c6i.xlarge"); + static constexpr uint32_t c6i_2xlarge_HASH = ConstExprHashingUtils::HashString("c6i.2xlarge"); + static constexpr uint32_t c6i_4xlarge_HASH = ConstExprHashingUtils::HashString("c6i.4xlarge"); + static constexpr uint32_t c6i_8xlarge_HASH = ConstExprHashingUtils::HashString("c6i.8xlarge"); + static constexpr uint32_t c6i_12xlarge_HASH = ConstExprHashingUtils::HashString("c6i.12xlarge"); + static constexpr uint32_t c6i_16xlarge_HASH = ConstExprHashingUtils::HashString("c6i.16xlarge"); + static constexpr uint32_t c6i_24xlarge_HASH = ConstExprHashingUtils::HashString("c6i.24xlarge"); + static constexpr uint32_t r5d_large_HASH = ConstExprHashingUtils::HashString("r5d.large"); + static constexpr uint32_t r5d_xlarge_HASH = ConstExprHashingUtils::HashString("r5d.xlarge"); + static constexpr uint32_t r5d_2xlarge_HASH = ConstExprHashingUtils::HashString("r5d.2xlarge"); + static constexpr uint32_t r5d_4xlarge_HASH = ConstExprHashingUtils::HashString("r5d.4xlarge"); + static constexpr uint32_t r5d_8xlarge_HASH = ConstExprHashingUtils::HashString("r5d.8xlarge"); + static constexpr uint32_t r5d_12xlarge_HASH = ConstExprHashingUtils::HashString("r5d.12xlarge"); + static constexpr uint32_t r5d_16xlarge_HASH = ConstExprHashingUtils::HashString("r5d.16xlarge"); + static constexpr uint32_t r5d_24xlarge_HASH = ConstExprHashingUtils::HashString("r5d.24xlarge"); + static constexpr uint32_t m6g_medium_HASH = ConstExprHashingUtils::HashString("m6g.medium"); + static constexpr uint32_t m6g_large_HASH = ConstExprHashingUtils::HashString("m6g.large"); + static constexpr uint32_t m6g_xlarge_HASH = ConstExprHashingUtils::HashString("m6g.xlarge"); + static constexpr uint32_t m6g_2xlarge_HASH = ConstExprHashingUtils::HashString("m6g.2xlarge"); + static constexpr uint32_t m6g_4xlarge_HASH = ConstExprHashingUtils::HashString("m6g.4xlarge"); + static constexpr uint32_t m6g_8xlarge_HASH = ConstExprHashingUtils::HashString("m6g.8xlarge"); + static constexpr uint32_t m6g_12xlarge_HASH = ConstExprHashingUtils::HashString("m6g.12xlarge"); + static constexpr uint32_t m6g_16xlarge_HASH = ConstExprHashingUtils::HashString("m6g.16xlarge"); + static constexpr uint32_t c6g_medium_HASH = ConstExprHashingUtils::HashString("c6g.medium"); + static constexpr uint32_t c6g_large_HASH = ConstExprHashingUtils::HashString("c6g.large"); + static constexpr uint32_t c6g_xlarge_HASH = ConstExprHashingUtils::HashString("c6g.xlarge"); + static constexpr uint32_t c6g_2xlarge_HASH = ConstExprHashingUtils::HashString("c6g.2xlarge"); + static constexpr uint32_t c6g_4xlarge_HASH = ConstExprHashingUtils::HashString("c6g.4xlarge"); + static constexpr uint32_t c6g_8xlarge_HASH = ConstExprHashingUtils::HashString("c6g.8xlarge"); + static constexpr uint32_t c6g_12xlarge_HASH = ConstExprHashingUtils::HashString("c6g.12xlarge"); + static constexpr uint32_t c6g_16xlarge_HASH = ConstExprHashingUtils::HashString("c6g.16xlarge"); + static constexpr uint32_t r6g_medium_HASH = ConstExprHashingUtils::HashString("r6g.medium"); + static constexpr uint32_t r6g_large_HASH = ConstExprHashingUtils::HashString("r6g.large"); + static constexpr uint32_t r6g_xlarge_HASH = ConstExprHashingUtils::HashString("r6g.xlarge"); + static constexpr uint32_t r6g_2xlarge_HASH = ConstExprHashingUtils::HashString("r6g.2xlarge"); + static constexpr uint32_t r6g_4xlarge_HASH = ConstExprHashingUtils::HashString("r6g.4xlarge"); + static constexpr uint32_t r6g_8xlarge_HASH = ConstExprHashingUtils::HashString("r6g.8xlarge"); + static constexpr uint32_t r6g_12xlarge_HASH = ConstExprHashingUtils::HashString("r6g.12xlarge"); + static constexpr uint32_t r6g_16xlarge_HASH = ConstExprHashingUtils::HashString("r6g.16xlarge"); + static constexpr uint32_t c6gn_medium_HASH = ConstExprHashingUtils::HashString("c6gn.medium"); + static constexpr uint32_t c6gn_large_HASH = ConstExprHashingUtils::HashString("c6gn.large"); + static constexpr uint32_t c6gn_xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.xlarge"); + static constexpr uint32_t c6gn_2xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.2xlarge"); + static constexpr uint32_t c6gn_4xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.4xlarge"); + static constexpr uint32_t c6gn_8xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.8xlarge"); + static constexpr uint32_t c6gn_12xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.12xlarge"); + static constexpr uint32_t c6gn_16xlarge_HASH = ConstExprHashingUtils::HashString("c6gn.16xlarge"); + static constexpr uint32_t c7g_medium_HASH = ConstExprHashingUtils::HashString("c7g.medium"); + static constexpr uint32_t c7g_large_HASH = ConstExprHashingUtils::HashString("c7g.large"); + static constexpr uint32_t c7g_xlarge_HASH = ConstExprHashingUtils::HashString("c7g.xlarge"); + static constexpr uint32_t c7g_2xlarge_HASH = ConstExprHashingUtils::HashString("c7g.2xlarge"); + static constexpr uint32_t c7g_4xlarge_HASH = ConstExprHashingUtils::HashString("c7g.4xlarge"); + static constexpr uint32_t c7g_8xlarge_HASH = ConstExprHashingUtils::HashString("c7g.8xlarge"); + static constexpr uint32_t c7g_12xlarge_HASH = ConstExprHashingUtils::HashString("c7g.12xlarge"); + static constexpr uint32_t c7g_16xlarge_HASH = ConstExprHashingUtils::HashString("c7g.16xlarge"); + static constexpr uint32_t r7g_medium_HASH = ConstExprHashingUtils::HashString("r7g.medium"); + static constexpr uint32_t r7g_large_HASH = ConstExprHashingUtils::HashString("r7g.large"); + static constexpr uint32_t r7g_xlarge_HASH = ConstExprHashingUtils::HashString("r7g.xlarge"); + static constexpr uint32_t r7g_2xlarge_HASH = ConstExprHashingUtils::HashString("r7g.2xlarge"); + static constexpr uint32_t r7g_4xlarge_HASH = ConstExprHashingUtils::HashString("r7g.4xlarge"); + static constexpr uint32_t r7g_8xlarge_HASH = ConstExprHashingUtils::HashString("r7g.8xlarge"); + static constexpr uint32_t r7g_12xlarge_HASH = ConstExprHashingUtils::HashString("r7g.12xlarge"); + static constexpr uint32_t r7g_16xlarge_HASH = ConstExprHashingUtils::HashString("r7g.16xlarge"); + static constexpr uint32_t m7g_medium_HASH = ConstExprHashingUtils::HashString("m7g.medium"); + static constexpr uint32_t m7g_large_HASH = ConstExprHashingUtils::HashString("m7g.large"); + static constexpr uint32_t m7g_xlarge_HASH = ConstExprHashingUtils::HashString("m7g.xlarge"); + static constexpr uint32_t m7g_2xlarge_HASH = ConstExprHashingUtils::HashString("m7g.2xlarge"); + static constexpr uint32_t m7g_4xlarge_HASH = ConstExprHashingUtils::HashString("m7g.4xlarge"); + static constexpr uint32_t m7g_8xlarge_HASH = ConstExprHashingUtils::HashString("m7g.8xlarge"); + static constexpr uint32_t m7g_12xlarge_HASH = ConstExprHashingUtils::HashString("m7g.12xlarge"); + static constexpr uint32_t m7g_16xlarge_HASH = ConstExprHashingUtils::HashString("m7g.16xlarge"); + static constexpr uint32_t g5g_xlarge_HASH = ConstExprHashingUtils::HashString("g5g.xlarge"); + static constexpr uint32_t g5g_2xlarge_HASH = ConstExprHashingUtils::HashString("g5g.2xlarge"); + static constexpr uint32_t g5g_4xlarge_HASH = ConstExprHashingUtils::HashString("g5g.4xlarge"); + static constexpr uint32_t g5g_8xlarge_HASH = ConstExprHashingUtils::HashString("g5g.8xlarge"); + static constexpr uint32_t g5g_16xlarge_HASH = ConstExprHashingUtils::HashString("g5g.16xlarge"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, EC2InstanceType& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, EC2InstanceType& enumValue) { if (hashCode == t2_micro_HASH) { @@ -815,7 +815,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, EC2InstanceType& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, EC2InstanceType& enumValue) { if (hashCode == c6g_medium_HASH) { @@ -1629,7 +1629,7 @@ namespace Aws EC2InstanceType GetEC2InstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); EC2InstanceType enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/EventCode.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/EventCode.cpp index 153d9bff120..10bce092871 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/EventCode.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/EventCode.cpp @@ -20,45 +20,45 @@ namespace Aws namespace EventCodeMapper { - static const int GENERIC_EVENT_HASH = HashingUtils::HashString("GENERIC_EVENT"); - static const int FLEET_CREATED_HASH = HashingUtils::HashString("FLEET_CREATED"); - static const int FLEET_DELETED_HASH = HashingUtils::HashString("FLEET_DELETED"); - static const int FLEET_SCALING_EVENT_HASH = HashingUtils::HashString("FLEET_SCALING_EVENT"); - static const int FLEET_STATE_DOWNLOADING_HASH = HashingUtils::HashString("FLEET_STATE_DOWNLOADING"); - static const int FLEET_STATE_VALIDATING_HASH = HashingUtils::HashString("FLEET_STATE_VALIDATING"); - static const int FLEET_STATE_BUILDING_HASH = HashingUtils::HashString("FLEET_STATE_BUILDING"); - static const int FLEET_STATE_ACTIVATING_HASH = HashingUtils::HashString("FLEET_STATE_ACTIVATING"); - static const int FLEET_STATE_ACTIVE_HASH = HashingUtils::HashString("FLEET_STATE_ACTIVE"); - static const int FLEET_STATE_ERROR_HASH = HashingUtils::HashString("FLEET_STATE_ERROR"); - static const int FLEET_INITIALIZATION_FAILED_HASH = HashingUtils::HashString("FLEET_INITIALIZATION_FAILED"); - static const int FLEET_BINARY_DOWNLOAD_FAILED_HASH = HashingUtils::HashString("FLEET_BINARY_DOWNLOAD_FAILED"); - static const int FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND_HASH = HashingUtils::HashString("FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND"); - static const int FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE_HASH = HashingUtils::HashString("FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE"); - static const int FLEET_VALIDATION_TIMED_OUT_HASH = HashingUtils::HashString("FLEET_VALIDATION_TIMED_OUT"); - static const int FLEET_ACTIVATION_FAILED_HASH = HashingUtils::HashString("FLEET_ACTIVATION_FAILED"); - static const int FLEET_ACTIVATION_FAILED_NO_INSTANCES_HASH = HashingUtils::HashString("FLEET_ACTIVATION_FAILED_NO_INSTANCES"); - static const int FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED_HASH = HashingUtils::HashString("FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED"); - static const int SERVER_PROCESS_INVALID_PATH_HASH = HashingUtils::HashString("SERVER_PROCESS_INVALID_PATH"); - static const int SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT_HASH = HashingUtils::HashString("SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT"); - static const int SERVER_PROCESS_PROCESS_READY_TIMEOUT_HASH = HashingUtils::HashString("SERVER_PROCESS_PROCESS_READY_TIMEOUT"); - static const int SERVER_PROCESS_CRASHED_HASH = HashingUtils::HashString("SERVER_PROCESS_CRASHED"); - static const int SERVER_PROCESS_TERMINATED_UNHEALTHY_HASH = HashingUtils::HashString("SERVER_PROCESS_TERMINATED_UNHEALTHY"); - static const int SERVER_PROCESS_FORCE_TERMINATED_HASH = HashingUtils::HashString("SERVER_PROCESS_FORCE_TERMINATED"); - static const int SERVER_PROCESS_PROCESS_EXIT_TIMEOUT_HASH = HashingUtils::HashString("SERVER_PROCESS_PROCESS_EXIT_TIMEOUT"); - static const int GAME_SESSION_ACTIVATION_TIMEOUT_HASH = HashingUtils::HashString("GAME_SESSION_ACTIVATION_TIMEOUT"); - static const int FLEET_CREATION_EXTRACTING_BUILD_HASH = HashingUtils::HashString("FLEET_CREATION_EXTRACTING_BUILD"); - static const int FLEET_CREATION_RUNNING_INSTALLER_HASH = HashingUtils::HashString("FLEET_CREATION_RUNNING_INSTALLER"); - static const int FLEET_CREATION_VALIDATING_RUNTIME_CONFIG_HASH = HashingUtils::HashString("FLEET_CREATION_VALIDATING_RUNTIME_CONFIG"); - static const int FLEET_VPC_PEERING_SUCCEEDED_HASH = HashingUtils::HashString("FLEET_VPC_PEERING_SUCCEEDED"); - static const int FLEET_VPC_PEERING_FAILED_HASH = HashingUtils::HashString("FLEET_VPC_PEERING_FAILED"); - static const int FLEET_VPC_PEERING_DELETED_HASH = HashingUtils::HashString("FLEET_VPC_PEERING_DELETED"); - static const int INSTANCE_INTERRUPTED_HASH = HashingUtils::HashString("INSTANCE_INTERRUPTED"); - static const int INSTANCE_RECYCLED_HASH = HashingUtils::HashString("INSTANCE_RECYCLED"); + static constexpr uint32_t GENERIC_EVENT_HASH = ConstExprHashingUtils::HashString("GENERIC_EVENT"); + static constexpr uint32_t FLEET_CREATED_HASH = ConstExprHashingUtils::HashString("FLEET_CREATED"); + static constexpr uint32_t FLEET_DELETED_HASH = ConstExprHashingUtils::HashString("FLEET_DELETED"); + static constexpr uint32_t FLEET_SCALING_EVENT_HASH = ConstExprHashingUtils::HashString("FLEET_SCALING_EVENT"); + static constexpr uint32_t FLEET_STATE_DOWNLOADING_HASH = ConstExprHashingUtils::HashString("FLEET_STATE_DOWNLOADING"); + static constexpr uint32_t FLEET_STATE_VALIDATING_HASH = ConstExprHashingUtils::HashString("FLEET_STATE_VALIDATING"); + static constexpr uint32_t FLEET_STATE_BUILDING_HASH = ConstExprHashingUtils::HashString("FLEET_STATE_BUILDING"); + static constexpr uint32_t FLEET_STATE_ACTIVATING_HASH = ConstExprHashingUtils::HashString("FLEET_STATE_ACTIVATING"); + static constexpr uint32_t FLEET_STATE_ACTIVE_HASH = ConstExprHashingUtils::HashString("FLEET_STATE_ACTIVE"); + static constexpr uint32_t FLEET_STATE_ERROR_HASH = ConstExprHashingUtils::HashString("FLEET_STATE_ERROR"); + static constexpr uint32_t FLEET_INITIALIZATION_FAILED_HASH = ConstExprHashingUtils::HashString("FLEET_INITIALIZATION_FAILED"); + static constexpr uint32_t FLEET_BINARY_DOWNLOAD_FAILED_HASH = ConstExprHashingUtils::HashString("FLEET_BINARY_DOWNLOAD_FAILED"); + static constexpr uint32_t FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND"); + static constexpr uint32_t FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE_HASH = ConstExprHashingUtils::HashString("FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE"); + static constexpr uint32_t FLEET_VALIDATION_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("FLEET_VALIDATION_TIMED_OUT"); + static constexpr uint32_t FLEET_ACTIVATION_FAILED_HASH = ConstExprHashingUtils::HashString("FLEET_ACTIVATION_FAILED"); + static constexpr uint32_t FLEET_ACTIVATION_FAILED_NO_INSTANCES_HASH = ConstExprHashingUtils::HashString("FLEET_ACTIVATION_FAILED_NO_INSTANCES"); + static constexpr uint32_t FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED_HASH = ConstExprHashingUtils::HashString("FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED"); + static constexpr uint32_t SERVER_PROCESS_INVALID_PATH_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_INVALID_PATH"); + static constexpr uint32_t SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT"); + static constexpr uint32_t SERVER_PROCESS_PROCESS_READY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_PROCESS_READY_TIMEOUT"); + static constexpr uint32_t SERVER_PROCESS_CRASHED_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_CRASHED"); + static constexpr uint32_t SERVER_PROCESS_TERMINATED_UNHEALTHY_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_TERMINATED_UNHEALTHY"); + static constexpr uint32_t SERVER_PROCESS_FORCE_TERMINATED_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_FORCE_TERMINATED"); + static constexpr uint32_t SERVER_PROCESS_PROCESS_EXIT_TIMEOUT_HASH = ConstExprHashingUtils::HashString("SERVER_PROCESS_PROCESS_EXIT_TIMEOUT"); + static constexpr uint32_t GAME_SESSION_ACTIVATION_TIMEOUT_HASH = ConstExprHashingUtils::HashString("GAME_SESSION_ACTIVATION_TIMEOUT"); + static constexpr uint32_t FLEET_CREATION_EXTRACTING_BUILD_HASH = ConstExprHashingUtils::HashString("FLEET_CREATION_EXTRACTING_BUILD"); + static constexpr uint32_t FLEET_CREATION_RUNNING_INSTALLER_HASH = ConstExprHashingUtils::HashString("FLEET_CREATION_RUNNING_INSTALLER"); + static constexpr uint32_t FLEET_CREATION_VALIDATING_RUNTIME_CONFIG_HASH = ConstExprHashingUtils::HashString("FLEET_CREATION_VALIDATING_RUNTIME_CONFIG"); + static constexpr uint32_t FLEET_VPC_PEERING_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("FLEET_VPC_PEERING_SUCCEEDED"); + static constexpr uint32_t FLEET_VPC_PEERING_FAILED_HASH = ConstExprHashingUtils::HashString("FLEET_VPC_PEERING_FAILED"); + static constexpr uint32_t FLEET_VPC_PEERING_DELETED_HASH = ConstExprHashingUtils::HashString("FLEET_VPC_PEERING_DELETED"); + static constexpr uint32_t INSTANCE_INTERRUPTED_HASH = ConstExprHashingUtils::HashString("INSTANCE_INTERRUPTED"); + static constexpr uint32_t INSTANCE_RECYCLED_HASH = ConstExprHashingUtils::HashString("INSTANCE_RECYCLED"); EventCode GetEventCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERIC_EVENT_HASH) { return EventCode::GENERIC_EVENT; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/FilterInstanceStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/FilterInstanceStatus.cpp index f51fe8350ce..06561f16fec 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/FilterInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/FilterInstanceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterInstanceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DRAINING_HASH = HashingUtils::HashString("DRAINING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DRAINING_HASH = ConstExprHashingUtils::HashString("DRAINING"); FilterInstanceStatus GetFilterInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return FilterInstanceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/FleetAction.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/FleetAction.cpp index c2326883039..6d352ea6515 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/FleetAction.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/FleetAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FleetActionMapper { - static const int AUTO_SCALING_HASH = HashingUtils::HashString("AUTO_SCALING"); + static constexpr uint32_t AUTO_SCALING_HASH = ConstExprHashingUtils::HashString("AUTO_SCALING"); FleetAction GetFleetActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_SCALING_HASH) { return FleetAction::AUTO_SCALING; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/FleetStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/FleetStatus.cpp index 85971f8178e..614e7ab298a 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/FleetStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/FleetStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace FleetStatusMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int DOWNLOADING_HASH = HashingUtils::HashString("DOWNLOADING"); - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int BUILDING_HASH = HashingUtils::HashString("BUILDING"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t DOWNLOADING_HASH = ConstExprHashingUtils::HashString("DOWNLOADING"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t BUILDING_HASH = ConstExprHashingUtils::HashString("BUILDING"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); FleetStatus GetFleetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return FleetStatus::NEW_; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/FleetType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/FleetType.cpp index 605cfc106e3..eb1809dc0ba 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/FleetType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/FleetType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FleetTypeMapper { - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int SPOT_HASH = HashingUtils::HashString("SPOT"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t SPOT_HASH = ConstExprHashingUtils::HashString("SPOT"); FleetType GetFleetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_HASH) { return FleetType::ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/FlexMatchMode.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/FlexMatchMode.cpp index da57e962a01..28a9208c819 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/FlexMatchMode.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/FlexMatchMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FlexMatchModeMapper { - static const int STANDALONE_HASH = HashingUtils::HashString("STANDALONE"); - static const int WITH_QUEUE_HASH = HashingUtils::HashString("WITH_QUEUE"); + static constexpr uint32_t STANDALONE_HASH = ConstExprHashingUtils::HashString("STANDALONE"); + static constexpr uint32_t WITH_QUEUE_HASH = ConstExprHashingUtils::HashString("WITH_QUEUE"); FlexMatchMode GetFlexMatchModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDALONE_HASH) { return FlexMatchMode::STANDALONE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerClaimStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerClaimStatus.cpp index e35c455ee54..3e8ce588f62 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerClaimStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerClaimStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GameServerClaimStatusMapper { - static const int CLAIMED_HASH = HashingUtils::HashString("CLAIMED"); + static constexpr uint32_t CLAIMED_HASH = ConstExprHashingUtils::HashString("CLAIMED"); GameServerClaimStatus GetGameServerClaimStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLAIMED_HASH) { return GameServerClaimStatus::CLAIMED; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupAction.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupAction.cpp index d5f1171052f..15ee8f0847e 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupAction.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GameServerGroupActionMapper { - static const int REPLACE_INSTANCE_TYPES_HASH = HashingUtils::HashString("REPLACE_INSTANCE_TYPES"); + static constexpr uint32_t REPLACE_INSTANCE_TYPES_HASH = ConstExprHashingUtils::HashString("REPLACE_INSTANCE_TYPES"); GameServerGroupAction GetGameServerGroupActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPLACE_INSTANCE_TYPES_HASH) { return GameServerGroupAction::REPLACE_INSTANCE_TYPES; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupDeleteOption.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupDeleteOption.cpp index cdb9e301237..3bcab877d8b 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupDeleteOption.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupDeleteOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GameServerGroupDeleteOptionMapper { - static const int SAFE_DELETE_HASH = HashingUtils::HashString("SAFE_DELETE"); - static const int FORCE_DELETE_HASH = HashingUtils::HashString("FORCE_DELETE"); - static const int RETAIN_HASH = HashingUtils::HashString("RETAIN"); + static constexpr uint32_t SAFE_DELETE_HASH = ConstExprHashingUtils::HashString("SAFE_DELETE"); + static constexpr uint32_t FORCE_DELETE_HASH = ConstExprHashingUtils::HashString("FORCE_DELETE"); + static constexpr uint32_t RETAIN_HASH = ConstExprHashingUtils::HashString("RETAIN"); GameServerGroupDeleteOption GetGameServerGroupDeleteOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAFE_DELETE_HASH) { return GameServerGroupDeleteOption::SAFE_DELETE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupInstanceType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupInstanceType.cpp index 0d2d005f46b..dcd603e263f 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupInstanceType.cpp @@ -20,99 +20,99 @@ namespace Aws namespace GameServerGroupInstanceTypeMapper { - static const int c4_large_HASH = HashingUtils::HashString("c4.large"); - static const int c4_xlarge_HASH = HashingUtils::HashString("c4.xlarge"); - static const int c4_2xlarge_HASH = HashingUtils::HashString("c4.2xlarge"); - static const int c4_4xlarge_HASH = HashingUtils::HashString("c4.4xlarge"); - static const int c4_8xlarge_HASH = HashingUtils::HashString("c4.8xlarge"); - static const int c5_large_HASH = HashingUtils::HashString("c5.large"); - static const int c5_xlarge_HASH = HashingUtils::HashString("c5.xlarge"); - static const int c5_2xlarge_HASH = HashingUtils::HashString("c5.2xlarge"); - static const int c5_4xlarge_HASH = HashingUtils::HashString("c5.4xlarge"); - static const int c5_9xlarge_HASH = HashingUtils::HashString("c5.9xlarge"); - static const int c5_12xlarge_HASH = HashingUtils::HashString("c5.12xlarge"); - static const int c5_18xlarge_HASH = HashingUtils::HashString("c5.18xlarge"); - static const int c5_24xlarge_HASH = HashingUtils::HashString("c5.24xlarge"); - static const int c5a_large_HASH = HashingUtils::HashString("c5a.large"); - static const int c5a_xlarge_HASH = HashingUtils::HashString("c5a.xlarge"); - static const int c5a_2xlarge_HASH = HashingUtils::HashString("c5a.2xlarge"); - static const int c5a_4xlarge_HASH = HashingUtils::HashString("c5a.4xlarge"); - static const int c5a_8xlarge_HASH = HashingUtils::HashString("c5a.8xlarge"); - static const int c5a_12xlarge_HASH = HashingUtils::HashString("c5a.12xlarge"); - static const int c5a_16xlarge_HASH = HashingUtils::HashString("c5a.16xlarge"); - static const int c5a_24xlarge_HASH = HashingUtils::HashString("c5a.24xlarge"); - static const int c6g_medium_HASH = HashingUtils::HashString("c6g.medium"); - static const int c6g_large_HASH = HashingUtils::HashString("c6g.large"); - static const int c6g_xlarge_HASH = HashingUtils::HashString("c6g.xlarge"); - static const int c6g_2xlarge_HASH = HashingUtils::HashString("c6g.2xlarge"); - static const int c6g_4xlarge_HASH = HashingUtils::HashString("c6g.4xlarge"); - static const int c6g_8xlarge_HASH = HashingUtils::HashString("c6g.8xlarge"); - static const int c6g_12xlarge_HASH = HashingUtils::HashString("c6g.12xlarge"); - static const int c6g_16xlarge_HASH = HashingUtils::HashString("c6g.16xlarge"); - static const int r4_large_HASH = HashingUtils::HashString("r4.large"); - static const int r4_xlarge_HASH = HashingUtils::HashString("r4.xlarge"); - static const int r4_2xlarge_HASH = HashingUtils::HashString("r4.2xlarge"); - static const int r4_4xlarge_HASH = HashingUtils::HashString("r4.4xlarge"); - static const int r4_8xlarge_HASH = HashingUtils::HashString("r4.8xlarge"); - static const int r4_16xlarge_HASH = HashingUtils::HashString("r4.16xlarge"); - static const int r5_large_HASH = HashingUtils::HashString("r5.large"); - static const int r5_xlarge_HASH = HashingUtils::HashString("r5.xlarge"); - static const int r5_2xlarge_HASH = HashingUtils::HashString("r5.2xlarge"); - static const int r5_4xlarge_HASH = HashingUtils::HashString("r5.4xlarge"); - static const int r5_8xlarge_HASH = HashingUtils::HashString("r5.8xlarge"); - static const int r5_12xlarge_HASH = HashingUtils::HashString("r5.12xlarge"); - static const int r5_16xlarge_HASH = HashingUtils::HashString("r5.16xlarge"); - static const int r5_24xlarge_HASH = HashingUtils::HashString("r5.24xlarge"); - static const int r5a_large_HASH = HashingUtils::HashString("r5a.large"); - static const int r5a_xlarge_HASH = HashingUtils::HashString("r5a.xlarge"); - static const int r5a_2xlarge_HASH = HashingUtils::HashString("r5a.2xlarge"); - static const int r5a_4xlarge_HASH = HashingUtils::HashString("r5a.4xlarge"); - static const int r5a_8xlarge_HASH = HashingUtils::HashString("r5a.8xlarge"); - static const int r5a_12xlarge_HASH = HashingUtils::HashString("r5a.12xlarge"); - static const int r5a_16xlarge_HASH = HashingUtils::HashString("r5a.16xlarge"); - static const int r5a_24xlarge_HASH = HashingUtils::HashString("r5a.24xlarge"); - static const int r6g_medium_HASH = HashingUtils::HashString("r6g.medium"); - static const int r6g_large_HASH = HashingUtils::HashString("r6g.large"); - static const int r6g_xlarge_HASH = HashingUtils::HashString("r6g.xlarge"); - static const int r6g_2xlarge_HASH = HashingUtils::HashString("r6g.2xlarge"); - static const int r6g_4xlarge_HASH = HashingUtils::HashString("r6g.4xlarge"); - static const int r6g_8xlarge_HASH = HashingUtils::HashString("r6g.8xlarge"); - static const int r6g_12xlarge_HASH = HashingUtils::HashString("r6g.12xlarge"); - static const int r6g_16xlarge_HASH = HashingUtils::HashString("r6g.16xlarge"); - static const int m4_large_HASH = HashingUtils::HashString("m4.large"); - static const int m4_xlarge_HASH = HashingUtils::HashString("m4.xlarge"); - static const int m4_2xlarge_HASH = HashingUtils::HashString("m4.2xlarge"); - static const int m4_4xlarge_HASH = HashingUtils::HashString("m4.4xlarge"); - static const int m4_10xlarge_HASH = HashingUtils::HashString("m4.10xlarge"); - static const int m5_large_HASH = HashingUtils::HashString("m5.large"); - static const int m5_xlarge_HASH = HashingUtils::HashString("m5.xlarge"); - static const int m5_2xlarge_HASH = HashingUtils::HashString("m5.2xlarge"); - static const int m5_4xlarge_HASH = HashingUtils::HashString("m5.4xlarge"); - static const int m5_8xlarge_HASH = HashingUtils::HashString("m5.8xlarge"); - static const int m5_12xlarge_HASH = HashingUtils::HashString("m5.12xlarge"); - static const int m5_16xlarge_HASH = HashingUtils::HashString("m5.16xlarge"); - static const int m5_24xlarge_HASH = HashingUtils::HashString("m5.24xlarge"); - static const int m5a_large_HASH = HashingUtils::HashString("m5a.large"); - static const int m5a_xlarge_HASH = HashingUtils::HashString("m5a.xlarge"); - static const int m5a_2xlarge_HASH = HashingUtils::HashString("m5a.2xlarge"); - static const int m5a_4xlarge_HASH = HashingUtils::HashString("m5a.4xlarge"); - static const int m5a_8xlarge_HASH = HashingUtils::HashString("m5a.8xlarge"); - static const int m5a_12xlarge_HASH = HashingUtils::HashString("m5a.12xlarge"); - static const int m5a_16xlarge_HASH = HashingUtils::HashString("m5a.16xlarge"); - static const int m5a_24xlarge_HASH = HashingUtils::HashString("m5a.24xlarge"); - static const int m6g_medium_HASH = HashingUtils::HashString("m6g.medium"); - static const int m6g_large_HASH = HashingUtils::HashString("m6g.large"); - static const int m6g_xlarge_HASH = HashingUtils::HashString("m6g.xlarge"); - static const int m6g_2xlarge_HASH = HashingUtils::HashString("m6g.2xlarge"); - static const int m6g_4xlarge_HASH = HashingUtils::HashString("m6g.4xlarge"); - static const int m6g_8xlarge_HASH = HashingUtils::HashString("m6g.8xlarge"); - static const int m6g_12xlarge_HASH = HashingUtils::HashString("m6g.12xlarge"); - static const int m6g_16xlarge_HASH = HashingUtils::HashString("m6g.16xlarge"); + static constexpr uint32_t c4_large_HASH = ConstExprHashingUtils::HashString("c4.large"); + static constexpr uint32_t c4_xlarge_HASH = ConstExprHashingUtils::HashString("c4.xlarge"); + static constexpr uint32_t c4_2xlarge_HASH = ConstExprHashingUtils::HashString("c4.2xlarge"); + static constexpr uint32_t c4_4xlarge_HASH = ConstExprHashingUtils::HashString("c4.4xlarge"); + static constexpr uint32_t c4_8xlarge_HASH = ConstExprHashingUtils::HashString("c4.8xlarge"); + static constexpr uint32_t c5_large_HASH = ConstExprHashingUtils::HashString("c5.large"); + static constexpr uint32_t c5_xlarge_HASH = ConstExprHashingUtils::HashString("c5.xlarge"); + static constexpr uint32_t c5_2xlarge_HASH = ConstExprHashingUtils::HashString("c5.2xlarge"); + static constexpr uint32_t c5_4xlarge_HASH = ConstExprHashingUtils::HashString("c5.4xlarge"); + static constexpr uint32_t c5_9xlarge_HASH = ConstExprHashingUtils::HashString("c5.9xlarge"); + static constexpr uint32_t c5_12xlarge_HASH = ConstExprHashingUtils::HashString("c5.12xlarge"); + static constexpr uint32_t c5_18xlarge_HASH = ConstExprHashingUtils::HashString("c5.18xlarge"); + static constexpr uint32_t c5_24xlarge_HASH = ConstExprHashingUtils::HashString("c5.24xlarge"); + static constexpr uint32_t c5a_large_HASH = ConstExprHashingUtils::HashString("c5a.large"); + static constexpr uint32_t c5a_xlarge_HASH = ConstExprHashingUtils::HashString("c5a.xlarge"); + static constexpr uint32_t c5a_2xlarge_HASH = ConstExprHashingUtils::HashString("c5a.2xlarge"); + static constexpr uint32_t c5a_4xlarge_HASH = ConstExprHashingUtils::HashString("c5a.4xlarge"); + static constexpr uint32_t c5a_8xlarge_HASH = ConstExprHashingUtils::HashString("c5a.8xlarge"); + static constexpr uint32_t c5a_12xlarge_HASH = ConstExprHashingUtils::HashString("c5a.12xlarge"); + static constexpr uint32_t c5a_16xlarge_HASH = ConstExprHashingUtils::HashString("c5a.16xlarge"); + static constexpr uint32_t c5a_24xlarge_HASH = ConstExprHashingUtils::HashString("c5a.24xlarge"); + static constexpr uint32_t c6g_medium_HASH = ConstExprHashingUtils::HashString("c6g.medium"); + static constexpr uint32_t c6g_large_HASH = ConstExprHashingUtils::HashString("c6g.large"); + static constexpr uint32_t c6g_xlarge_HASH = ConstExprHashingUtils::HashString("c6g.xlarge"); + static constexpr uint32_t c6g_2xlarge_HASH = ConstExprHashingUtils::HashString("c6g.2xlarge"); + static constexpr uint32_t c6g_4xlarge_HASH = ConstExprHashingUtils::HashString("c6g.4xlarge"); + static constexpr uint32_t c6g_8xlarge_HASH = ConstExprHashingUtils::HashString("c6g.8xlarge"); + static constexpr uint32_t c6g_12xlarge_HASH = ConstExprHashingUtils::HashString("c6g.12xlarge"); + static constexpr uint32_t c6g_16xlarge_HASH = ConstExprHashingUtils::HashString("c6g.16xlarge"); + static constexpr uint32_t r4_large_HASH = ConstExprHashingUtils::HashString("r4.large"); + static constexpr uint32_t r4_xlarge_HASH = ConstExprHashingUtils::HashString("r4.xlarge"); + static constexpr uint32_t r4_2xlarge_HASH = ConstExprHashingUtils::HashString("r4.2xlarge"); + static constexpr uint32_t r4_4xlarge_HASH = ConstExprHashingUtils::HashString("r4.4xlarge"); + static constexpr uint32_t r4_8xlarge_HASH = ConstExprHashingUtils::HashString("r4.8xlarge"); + static constexpr uint32_t r4_16xlarge_HASH = ConstExprHashingUtils::HashString("r4.16xlarge"); + static constexpr uint32_t r5_large_HASH = ConstExprHashingUtils::HashString("r5.large"); + static constexpr uint32_t r5_xlarge_HASH = ConstExprHashingUtils::HashString("r5.xlarge"); + static constexpr uint32_t r5_2xlarge_HASH = ConstExprHashingUtils::HashString("r5.2xlarge"); + static constexpr uint32_t r5_4xlarge_HASH = ConstExprHashingUtils::HashString("r5.4xlarge"); + static constexpr uint32_t r5_8xlarge_HASH = ConstExprHashingUtils::HashString("r5.8xlarge"); + static constexpr uint32_t r5_12xlarge_HASH = ConstExprHashingUtils::HashString("r5.12xlarge"); + static constexpr uint32_t r5_16xlarge_HASH = ConstExprHashingUtils::HashString("r5.16xlarge"); + static constexpr uint32_t r5_24xlarge_HASH = ConstExprHashingUtils::HashString("r5.24xlarge"); + static constexpr uint32_t r5a_large_HASH = ConstExprHashingUtils::HashString("r5a.large"); + static constexpr uint32_t r5a_xlarge_HASH = ConstExprHashingUtils::HashString("r5a.xlarge"); + static constexpr uint32_t r5a_2xlarge_HASH = ConstExprHashingUtils::HashString("r5a.2xlarge"); + static constexpr uint32_t r5a_4xlarge_HASH = ConstExprHashingUtils::HashString("r5a.4xlarge"); + static constexpr uint32_t r5a_8xlarge_HASH = ConstExprHashingUtils::HashString("r5a.8xlarge"); + static constexpr uint32_t r5a_12xlarge_HASH = ConstExprHashingUtils::HashString("r5a.12xlarge"); + static constexpr uint32_t r5a_16xlarge_HASH = ConstExprHashingUtils::HashString("r5a.16xlarge"); + static constexpr uint32_t r5a_24xlarge_HASH = ConstExprHashingUtils::HashString("r5a.24xlarge"); + static constexpr uint32_t r6g_medium_HASH = ConstExprHashingUtils::HashString("r6g.medium"); + static constexpr uint32_t r6g_large_HASH = ConstExprHashingUtils::HashString("r6g.large"); + static constexpr uint32_t r6g_xlarge_HASH = ConstExprHashingUtils::HashString("r6g.xlarge"); + static constexpr uint32_t r6g_2xlarge_HASH = ConstExprHashingUtils::HashString("r6g.2xlarge"); + static constexpr uint32_t r6g_4xlarge_HASH = ConstExprHashingUtils::HashString("r6g.4xlarge"); + static constexpr uint32_t r6g_8xlarge_HASH = ConstExprHashingUtils::HashString("r6g.8xlarge"); + static constexpr uint32_t r6g_12xlarge_HASH = ConstExprHashingUtils::HashString("r6g.12xlarge"); + static constexpr uint32_t r6g_16xlarge_HASH = ConstExprHashingUtils::HashString("r6g.16xlarge"); + static constexpr uint32_t m4_large_HASH = ConstExprHashingUtils::HashString("m4.large"); + static constexpr uint32_t m4_xlarge_HASH = ConstExprHashingUtils::HashString("m4.xlarge"); + static constexpr uint32_t m4_2xlarge_HASH = ConstExprHashingUtils::HashString("m4.2xlarge"); + static constexpr uint32_t m4_4xlarge_HASH = ConstExprHashingUtils::HashString("m4.4xlarge"); + static constexpr uint32_t m4_10xlarge_HASH = ConstExprHashingUtils::HashString("m4.10xlarge"); + static constexpr uint32_t m5_large_HASH = ConstExprHashingUtils::HashString("m5.large"); + static constexpr uint32_t m5_xlarge_HASH = ConstExprHashingUtils::HashString("m5.xlarge"); + static constexpr uint32_t m5_2xlarge_HASH = ConstExprHashingUtils::HashString("m5.2xlarge"); + static constexpr uint32_t m5_4xlarge_HASH = ConstExprHashingUtils::HashString("m5.4xlarge"); + static constexpr uint32_t m5_8xlarge_HASH = ConstExprHashingUtils::HashString("m5.8xlarge"); + static constexpr uint32_t m5_12xlarge_HASH = ConstExprHashingUtils::HashString("m5.12xlarge"); + static constexpr uint32_t m5_16xlarge_HASH = ConstExprHashingUtils::HashString("m5.16xlarge"); + static constexpr uint32_t m5_24xlarge_HASH = ConstExprHashingUtils::HashString("m5.24xlarge"); + static constexpr uint32_t m5a_large_HASH = ConstExprHashingUtils::HashString("m5a.large"); + static constexpr uint32_t m5a_xlarge_HASH = ConstExprHashingUtils::HashString("m5a.xlarge"); + static constexpr uint32_t m5a_2xlarge_HASH = ConstExprHashingUtils::HashString("m5a.2xlarge"); + static constexpr uint32_t m5a_4xlarge_HASH = ConstExprHashingUtils::HashString("m5a.4xlarge"); + static constexpr uint32_t m5a_8xlarge_HASH = ConstExprHashingUtils::HashString("m5a.8xlarge"); + static constexpr uint32_t m5a_12xlarge_HASH = ConstExprHashingUtils::HashString("m5a.12xlarge"); + static constexpr uint32_t m5a_16xlarge_HASH = ConstExprHashingUtils::HashString("m5a.16xlarge"); + static constexpr uint32_t m5a_24xlarge_HASH = ConstExprHashingUtils::HashString("m5a.24xlarge"); + static constexpr uint32_t m6g_medium_HASH = ConstExprHashingUtils::HashString("m6g.medium"); + static constexpr uint32_t m6g_large_HASH = ConstExprHashingUtils::HashString("m6g.large"); + static constexpr uint32_t m6g_xlarge_HASH = ConstExprHashingUtils::HashString("m6g.xlarge"); + static constexpr uint32_t m6g_2xlarge_HASH = ConstExprHashingUtils::HashString("m6g.2xlarge"); + static constexpr uint32_t m6g_4xlarge_HASH = ConstExprHashingUtils::HashString("m6g.4xlarge"); + static constexpr uint32_t m6g_8xlarge_HASH = ConstExprHashingUtils::HashString("m6g.8xlarge"); + static constexpr uint32_t m6g_12xlarge_HASH = ConstExprHashingUtils::HashString("m6g.12xlarge"); + static constexpr uint32_t m6g_16xlarge_HASH = ConstExprHashingUtils::HashString("m6g.16xlarge"); GameServerGroupInstanceType GetGameServerGroupInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == c4_large_HASH) { return GameServerGroupInstanceType::c4_large; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupStatus.cpp index 10b831d2492..2cf074baf5e 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerGroupStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace GameServerGroupStatusMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_SCHEDULED_HASH = HashingUtils::HashString("DELETE_SCHEDULED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_SCHEDULED_HASH = ConstExprHashingUtils::HashString("DELETE_SCHEDULED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); GameServerGroupStatus GetGameServerGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return GameServerGroupStatus::NEW_; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerHealthCheck.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerHealthCheck.cpp index 7f27e162bdf..508795b7764 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerHealthCheck.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerHealthCheck.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GameServerHealthCheckMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); GameServerHealthCheck GetGameServerHealthCheckForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return GameServerHealthCheck::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerInstanceStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerInstanceStatus.cpp index 7f3f020039e..7eaa48662a2 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerInstanceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GameServerInstanceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DRAINING_HASH = HashingUtils::HashString("DRAINING"); - static const int SPOT_TERMINATING_HASH = HashingUtils::HashString("SPOT_TERMINATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DRAINING_HASH = ConstExprHashingUtils::HashString("DRAINING"); + static constexpr uint32_t SPOT_TERMINATING_HASH = ConstExprHashingUtils::HashString("SPOT_TERMINATING"); GameServerInstanceStatus GetGameServerInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return GameServerInstanceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerProtectionPolicy.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerProtectionPolicy.cpp index e92518f675a..7f52f95b96b 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerProtectionPolicy.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerProtectionPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GameServerProtectionPolicyMapper { - static const int NO_PROTECTION_HASH = HashingUtils::HashString("NO_PROTECTION"); - static const int FULL_PROTECTION_HASH = HashingUtils::HashString("FULL_PROTECTION"); + static constexpr uint32_t NO_PROTECTION_HASH = ConstExprHashingUtils::HashString("NO_PROTECTION"); + static constexpr uint32_t FULL_PROTECTION_HASH = ConstExprHashingUtils::HashString("FULL_PROTECTION"); GameServerProtectionPolicy GetGameServerProtectionPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PROTECTION_HASH) { return GameServerProtectionPolicy::NO_PROTECTION; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerUtilizationStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerUtilizationStatus.cpp index 6a96e5ba2d2..dff0baeacba 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerUtilizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameServerUtilizationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GameServerUtilizationStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UTILIZED_HASH = HashingUtils::HashString("UTILIZED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UTILIZED_HASH = ConstExprHashingUtils::HashString("UTILIZED"); GameServerUtilizationStatus GetGameServerUtilizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return GameServerUtilizationStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionPlacementState.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionPlacementState.cpp index a7b94a61a8a..e9d76ae02f4 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionPlacementState.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionPlacementState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace GameSessionPlacementStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FULFILLED_HASH = HashingUtils::HashString("FULFILLED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FULFILLED_HASH = ConstExprHashingUtils::HashString("FULFILLED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); GameSessionPlacementState GetGameSessionPlacementStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return GameSessionPlacementState::PENDING; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatus.cpp index 1ff1efe62a2..74ef52aa633 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace GameSessionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); GameSessionStatus GetGameSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return GameSessionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatusReason.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatusReason.cpp index 8dd3713605d..840c38d2641 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/GameSessionStatusReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GameSessionStatusReasonMapper { - static const int INTERRUPTED_HASH = HashingUtils::HashString("INTERRUPTED"); + static constexpr uint32_t INTERRUPTED_HASH = ConstExprHashingUtils::HashString("INTERRUPTED"); GameSessionStatusReason GetGameSessionStatusReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERRUPTED_HASH) { return GameSessionStatusReason::INTERRUPTED; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/InstanceStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/InstanceStatus.cpp index 33c46bacb95..4484f45f6b6 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/InstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/InstanceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); InstanceStatus GetInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return InstanceStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/IpProtocol.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/IpProtocol.cpp index 30755089591..9b66c72210e 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/IpProtocol.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/IpProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); IpProtocol GetIpProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return IpProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/LocationFilter.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/LocationFilter.cpp index 7e55913e833..45b175e422d 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/LocationFilter.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/LocationFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocationFilterMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); LocationFilter GetLocationFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return LocationFilter::AWS; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/LocationUpdateStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/LocationUpdateStatus.cpp index f47c3c868a5..010fbb13ec9 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/LocationUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/LocationUpdateStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LocationUpdateStatusMapper { - static const int PENDING_UPDATE_HASH = HashingUtils::HashString("PENDING_UPDATE"); + static constexpr uint32_t PENDING_UPDATE_HASH = ConstExprHashingUtils::HashString("PENDING_UPDATE"); LocationUpdateStatus GetLocationUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_UPDATE_HASH) { return LocationUpdateStatus::PENDING_UPDATE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/MatchmakingConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/MatchmakingConfigurationStatus.cpp index 1ce5f2e8038..e206792835d 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/MatchmakingConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/MatchmakingConfigurationStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace MatchmakingConfigurationStatusMapper { - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PLACING_HASH = HashingUtils::HashString("PLACING"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int REQUIRES_ACCEPTANCE_HASH = HashingUtils::HashString("REQUIRES_ACCEPTANCE"); - static const int SEARCHING_HASH = HashingUtils::HashString("SEARCHING"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PLACING_HASH = ConstExprHashingUtils::HashString("PLACING"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t REQUIRES_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("REQUIRES_ACCEPTANCE"); + static constexpr uint32_t SEARCHING_HASH = ConstExprHashingUtils::HashString("SEARCHING"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); MatchmakingConfigurationStatus GetMatchmakingConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCELLED_HASH) { return MatchmakingConfigurationStatus::CANCELLED; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/MetricName.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/MetricName.cpp index 6b19e5006ea..af49b91207b 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/MetricName.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/MetricName.cpp @@ -20,23 +20,23 @@ namespace Aws namespace MetricNameMapper { - static const int ActivatingGameSessions_HASH = HashingUtils::HashString("ActivatingGameSessions"); - static const int ActiveGameSessions_HASH = HashingUtils::HashString("ActiveGameSessions"); - static const int ActiveInstances_HASH = HashingUtils::HashString("ActiveInstances"); - static const int AvailableGameSessions_HASH = HashingUtils::HashString("AvailableGameSessions"); - static const int AvailablePlayerSessions_HASH = HashingUtils::HashString("AvailablePlayerSessions"); - static const int CurrentPlayerSessions_HASH = HashingUtils::HashString("CurrentPlayerSessions"); - static const int IdleInstances_HASH = HashingUtils::HashString("IdleInstances"); - static const int PercentAvailableGameSessions_HASH = HashingUtils::HashString("PercentAvailableGameSessions"); - static const int PercentIdleInstances_HASH = HashingUtils::HashString("PercentIdleInstances"); - static const int QueueDepth_HASH = HashingUtils::HashString("QueueDepth"); - static const int WaitTime_HASH = HashingUtils::HashString("WaitTime"); - static const int ConcurrentActivatableGameSessions_HASH = HashingUtils::HashString("ConcurrentActivatableGameSessions"); + static constexpr uint32_t ActivatingGameSessions_HASH = ConstExprHashingUtils::HashString("ActivatingGameSessions"); + static constexpr uint32_t ActiveGameSessions_HASH = ConstExprHashingUtils::HashString("ActiveGameSessions"); + static constexpr uint32_t ActiveInstances_HASH = ConstExprHashingUtils::HashString("ActiveInstances"); + static constexpr uint32_t AvailableGameSessions_HASH = ConstExprHashingUtils::HashString("AvailableGameSessions"); + static constexpr uint32_t AvailablePlayerSessions_HASH = ConstExprHashingUtils::HashString("AvailablePlayerSessions"); + static constexpr uint32_t CurrentPlayerSessions_HASH = ConstExprHashingUtils::HashString("CurrentPlayerSessions"); + static constexpr uint32_t IdleInstances_HASH = ConstExprHashingUtils::HashString("IdleInstances"); + static constexpr uint32_t PercentAvailableGameSessions_HASH = ConstExprHashingUtils::HashString("PercentAvailableGameSessions"); + static constexpr uint32_t PercentIdleInstances_HASH = ConstExprHashingUtils::HashString("PercentIdleInstances"); + static constexpr uint32_t QueueDepth_HASH = ConstExprHashingUtils::HashString("QueueDepth"); + static constexpr uint32_t WaitTime_HASH = ConstExprHashingUtils::HashString("WaitTime"); + static constexpr uint32_t ConcurrentActivatableGameSessions_HASH = ConstExprHashingUtils::HashString("ConcurrentActivatableGameSessions"); MetricName GetMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ActivatingGameSessions_HASH) { return MetricName::ActivatingGameSessions; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/OperatingSystem.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/OperatingSystem.cpp index 7e5a708938f..17cf50f073d 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/OperatingSystem.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/OperatingSystem.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OperatingSystemMapper { - static const int WINDOWS_2012_HASH = HashingUtils::HashString("WINDOWS_2012"); - static const int AMAZON_LINUX_HASH = HashingUtils::HashString("AMAZON_LINUX"); - static const int AMAZON_LINUX_2_HASH = HashingUtils::HashString("AMAZON_LINUX_2"); - static const int WINDOWS_2016_HASH = HashingUtils::HashString("WINDOWS_2016"); - static const int AMAZON_LINUX_2023_HASH = HashingUtils::HashString("AMAZON_LINUX_2023"); + static constexpr uint32_t WINDOWS_2012_HASH = ConstExprHashingUtils::HashString("WINDOWS_2012"); + static constexpr uint32_t AMAZON_LINUX_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX"); + static constexpr uint32_t AMAZON_LINUX_2_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX_2"); + static constexpr uint32_t WINDOWS_2016_HASH = ConstExprHashingUtils::HashString("WINDOWS_2016"); + static constexpr uint32_t AMAZON_LINUX_2023_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX_2023"); OperatingSystem GetOperatingSystemForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_2012_HASH) { return OperatingSystem::WINDOWS_2012; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionCreationPolicy.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionCreationPolicy.cpp index 90b833a1f6e..3be10bd5049 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionCreationPolicy.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionCreationPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlayerSessionCreationPolicyMapper { - static const int ACCEPT_ALL_HASH = HashingUtils::HashString("ACCEPT_ALL"); - static const int DENY_ALL_HASH = HashingUtils::HashString("DENY_ALL"); + static constexpr uint32_t ACCEPT_ALL_HASH = ConstExprHashingUtils::HashString("ACCEPT_ALL"); + static constexpr uint32_t DENY_ALL_HASH = ConstExprHashingUtils::HashString("DENY_ALL"); PlayerSessionCreationPolicy GetPlayerSessionCreationPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPT_ALL_HASH) { return PlayerSessionCreationPolicy::ACCEPT_ALL; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionStatus.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionStatus.cpp index 64e73092a34..7869c1bd393 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/PlayerSessionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PlayerSessionStatusMapper { - static const int RESERVED_HASH = HashingUtils::HashString("RESERVED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int TIMEDOUT_HASH = HashingUtils::HashString("TIMEDOUT"); + static constexpr uint32_t RESERVED_HASH = ConstExprHashingUtils::HashString("RESERVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t TIMEDOUT_HASH = ConstExprHashingUtils::HashString("TIMEDOUT"); PlayerSessionStatus GetPlayerSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESERVED_HASH) { return PlayerSessionStatus::RESERVED; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/PolicyType.cpp index 85898de0386..ddd601efdc9 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/PolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PolicyTypeMapper { - static const int RuleBased_HASH = HashingUtils::HashString("RuleBased"); - static const int TargetBased_HASH = HashingUtils::HashString("TargetBased"); + static constexpr uint32_t RuleBased_HASH = ConstExprHashingUtils::HashString("RuleBased"); + static constexpr uint32_t TargetBased_HASH = ConstExprHashingUtils::HashString("TargetBased"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RuleBased_HASH) { return PolicyType::RuleBased; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/PriorityType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/PriorityType.cpp index afe2e250499..81f3fef820d 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/PriorityType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/PriorityType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PriorityTypeMapper { - static const int LATENCY_HASH = HashingUtils::HashString("LATENCY"); - static const int COST_HASH = HashingUtils::HashString("COST"); - static const int DESTINATION_HASH = HashingUtils::HashString("DESTINATION"); - static const int LOCATION_HASH = HashingUtils::HashString("LOCATION"); + static constexpr uint32_t LATENCY_HASH = ConstExprHashingUtils::HashString("LATENCY"); + static constexpr uint32_t COST_HASH = ConstExprHashingUtils::HashString("COST"); + static constexpr uint32_t DESTINATION_HASH = ConstExprHashingUtils::HashString("DESTINATION"); + static constexpr uint32_t LOCATION_HASH = ConstExprHashingUtils::HashString("LOCATION"); PriorityType GetPriorityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LATENCY_HASH) { return PriorityType::LATENCY; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/ProtectionPolicy.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/ProtectionPolicy.cpp index 52daa84bab9..182c3585c91 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/ProtectionPolicy.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/ProtectionPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtectionPolicyMapper { - static const int NoProtection_HASH = HashingUtils::HashString("NoProtection"); - static const int FullProtection_HASH = HashingUtils::HashString("FullProtection"); + static constexpr uint32_t NoProtection_HASH = ConstExprHashingUtils::HashString("NoProtection"); + static constexpr uint32_t FullProtection_HASH = ConstExprHashingUtils::HashString("FullProtection"); ProtectionPolicy GetProtectionPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NoProtection_HASH) { return ProtectionPolicy::NoProtection; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/RoutingStrategyType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/RoutingStrategyType.cpp index bd7e8c9815a..c29e096d7d7 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/RoutingStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/RoutingStrategyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RoutingStrategyTypeMapper { - static const int SIMPLE_HASH = HashingUtils::HashString("SIMPLE"); - static const int TERMINAL_HASH = HashingUtils::HashString("TERMINAL"); + static constexpr uint32_t SIMPLE_HASH = ConstExprHashingUtils::HashString("SIMPLE"); + static constexpr uint32_t TERMINAL_HASH = ConstExprHashingUtils::HashString("TERMINAL"); RoutingStrategyType GetRoutingStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIMPLE_HASH) { return RoutingStrategyType::SIMPLE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingAdjustmentType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingAdjustmentType.cpp index aefe3b74d57..1ab8ad29f97 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingAdjustmentType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingAdjustmentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScalingAdjustmentTypeMapper { - static const int ChangeInCapacity_HASH = HashingUtils::HashString("ChangeInCapacity"); - static const int ExactCapacity_HASH = HashingUtils::HashString("ExactCapacity"); - static const int PercentChangeInCapacity_HASH = HashingUtils::HashString("PercentChangeInCapacity"); + static constexpr uint32_t ChangeInCapacity_HASH = ConstExprHashingUtils::HashString("ChangeInCapacity"); + static constexpr uint32_t ExactCapacity_HASH = ConstExprHashingUtils::HashString("ExactCapacity"); + static constexpr uint32_t PercentChangeInCapacity_HASH = ConstExprHashingUtils::HashString("PercentChangeInCapacity"); ScalingAdjustmentType GetScalingAdjustmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChangeInCapacity_HASH) { return ScalingAdjustmentType::ChangeInCapacity; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingStatusType.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingStatusType.cpp index 62a7d9c51a8..1773ddfb4b3 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingStatusType.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/ScalingStatusType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ScalingStatusTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATE_REQUESTED_HASH = HashingUtils::HashString("UPDATE_REQUESTED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETE_REQUESTED_HASH = HashingUtils::HashString("DELETE_REQUESTED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATE_REQUESTED_HASH = ConstExprHashingUtils::HashString("UPDATE_REQUESTED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETE_REQUESTED_HASH = ConstExprHashingUtils::HashString("DELETE_REQUESTED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ScalingStatusType GetScalingStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ScalingStatusType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-gamelift/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-gamelift/source/model/SortOrder.cpp index 22d5b482cb5..b8e6a4eddc2 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/GameSparksErrors.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/GameSparksErrors.cpp index 239046bb707..7ad6e7d21f8 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/GameSparksErrors.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/GameSparksErrors.cpp @@ -18,14 +18,14 @@ namespace GameSparks namespace GameSparksErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentAction.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentAction.cpp index 1eeaf0ebd2b..3fb7178f5ab 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentAction.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentActionMapper { - static const int DEPLOY_HASH = HashingUtils::HashString("DEPLOY"); - static const int UNDEPLOY_HASH = HashingUtils::HashString("UNDEPLOY"); + static constexpr uint32_t DEPLOY_HASH = ConstExprHashingUtils::HashString("DEPLOY"); + static constexpr uint32_t UNDEPLOY_HASH = ConstExprHashingUtils::HashString("UNDEPLOY"); DeploymentAction GetDeploymentActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOY_HASH) { return DeploymentAction::DEPLOY; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentState.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentState.cpp index 6861fc478ca..49ca9729732 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentState.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/DeploymentState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeploymentStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DeploymentState GetDeploymentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DeploymentState::PENDING; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/GameState.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/GameState.cpp index 12f1c176c44..16aa78e648a 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/GameState.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/GameState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GameStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); GameState GetGameStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return GameState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/GeneratedCodeJobState.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/GeneratedCodeJobState.cpp index 543eb55c46c..24187b46654 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/GeneratedCodeJobState.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/GeneratedCodeJobState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GeneratedCodeJobStateMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); GeneratedCodeJobState GetGeneratedCodeJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return GeneratedCodeJobState::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/Operation.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/Operation.cpp index 3e7479ec24c..21082833517 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/Operation.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/Operation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperationMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); Operation GetOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return Operation::ADD; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/ResultCode.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/ResultCode.cpp index 641996ae360..50f981b3112 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/ResultCode.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/ResultCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResultCodeMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int INVALID_ROLE_FAILURE_HASH = HashingUtils::HashString("INVALID_ROLE_FAILURE"); - static const int UNSPECIFIED_FAILURE_HASH = HashingUtils::HashString("UNSPECIFIED_FAILURE"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t INVALID_ROLE_FAILURE_HASH = ConstExprHashingUtils::HashString("INVALID_ROLE_FAILURE"); + static constexpr uint32_t UNSPECIFIED_FAILURE_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED_FAILURE"); ResultCode GetResultCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return ResultCode::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-gamesparks/source/model/StageState.cpp b/generated/src/aws-cpp-sdk-gamesparks/source/model/StageState.cpp index e6af7c230f8..f15787f758b 100644 --- a/generated/src/aws-cpp-sdk-gamesparks/source/model/StageState.cpp +++ b/generated/src/aws-cpp-sdk-gamesparks/source/model/StageState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StageStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); StageState GetStageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return StageState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-glacier/source/GlacierErrors.cpp b/generated/src/aws-cpp-sdk-glacier/source/GlacierErrors.cpp index 73fe40cb49c..5c97d7ba2af 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/GlacierErrors.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/GlacierErrors.cpp @@ -75,15 +75,15 @@ template<> AWS_GLACIER_API MissingParameterValueException GlacierError::GetModel namespace GlacierErrorMapper { -static const int INSUFFICIENT_CAPACITY_HASH = HashingUtils::HashString("InsufficientCapacityException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int POLICY_ENFORCED_HASH = HashingUtils::HashString("PolicyEnforcedException"); -static const int MISSING_PARAMETER_VALUE_HASH = HashingUtils::HashString("MissingParameterValueException"); +static constexpr uint32_t INSUFFICIENT_CAPACITY_HASH = ConstExprHashingUtils::HashString("InsufficientCapacityException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t POLICY_ENFORCED_HASH = ConstExprHashingUtils::HashString("PolicyEnforcedException"); +static constexpr uint32_t MISSING_PARAMETER_VALUE_HASH = ConstExprHashingUtils::HashString("MissingParameterValueException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INSUFFICIENT_CAPACITY_HASH) { diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/ActionCode.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/ActionCode.cpp index 8594e6a9da0..d81a6dd8fb0 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/ActionCode.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/ActionCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionCodeMapper { - static const int ArchiveRetrieval_HASH = HashingUtils::HashString("ArchiveRetrieval"); - static const int InventoryRetrieval_HASH = HashingUtils::HashString("InventoryRetrieval"); - static const int Select_HASH = HashingUtils::HashString("Select"); + static constexpr uint32_t ArchiveRetrieval_HASH = ConstExprHashingUtils::HashString("ArchiveRetrieval"); + static constexpr uint32_t InventoryRetrieval_HASH = ConstExprHashingUtils::HashString("InventoryRetrieval"); + static constexpr uint32_t Select_HASH = ConstExprHashingUtils::HashString("Select"); ActionCode GetActionCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ArchiveRetrieval_HASH) { return ActionCode::ArchiveRetrieval; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/CannedACL.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/CannedACL.cpp index 6498bde6dcb..5819d37da6c 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/CannedACL.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/CannedACL.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CannedACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); CannedACL GetCannedACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return CannedACL::private_; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/EncryptionType.cpp index 4e2c3433265..774a2c82fe3 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int aws_kms_HASH = HashingUtils::HashString("aws:kms"); - static const int AES256_HASH = HashingUtils::HashString("AES256"); + static constexpr uint32_t aws_kms_HASH = ConstExprHashingUtils::HashString("aws:kms"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_kms_HASH) { return EncryptionType::aws_kms; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/ExpressionType.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/ExpressionType.cpp index b0dda852d11..18d42b35c69 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/ExpressionType.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/ExpressionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExpressionTypeMapper { - static const int SQL_HASH = HashingUtils::HashString("SQL"); + static constexpr uint32_t SQL_HASH = ConstExprHashingUtils::HashString("SQL"); ExpressionType GetExpressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQL_HASH) { return ExpressionType::SQL; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/FileHeaderInfo.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/FileHeaderInfo.cpp index fc2797669b3..b65aab9a814 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/FileHeaderInfo.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/FileHeaderInfo.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileHeaderInfoMapper { - static const int USE_HASH = HashingUtils::HashString("USE"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t USE_HASH = ConstExprHashingUtils::HashString("USE"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); FileHeaderInfo GetFileHeaderInfoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_HASH) { return FileHeaderInfo::USE; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/Permission.cpp index 2f713a670c7..548b2f408df 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/Permission.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PermissionMapper { - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); - static const int WRITE_ACP_HASH = HashingUtils::HashString("WRITE_ACP"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int READ_ACP_HASH = HashingUtils::HashString("READ_ACP"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); + static constexpr uint32_t WRITE_ACP_HASH = ConstExprHashingUtils::HashString("WRITE_ACP"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t READ_ACP_HASH = ConstExprHashingUtils::HashString("READ_ACP"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_CONTROL_HASH) { return Permission::FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/QuoteFields.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/QuoteFields.cpp index e6fe145d074..6e7f9f66f60 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/QuoteFields.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/QuoteFields.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuoteFieldsMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int ASNEEDED_HASH = HashingUtils::HashString("ASNEEDED"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t ASNEEDED_HASH = ConstExprHashingUtils::HashString("ASNEEDED"); QuoteFields GetQuoteFieldsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return QuoteFields::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/StatusCode.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/StatusCode.cpp index fc6923ee675..1703b547cdb 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/StatusCode.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/StatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusCodeMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); StatusCode GetStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return StatusCode::InProgress; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/StorageClass.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/StorageClass.cpp index 19a1c94315e..c92fe9c0980 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/StorageClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); StorageClass GetStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-glacier/source/model/Type.cpp b/generated/src/aws-cpp-sdk-glacier/source/model/Type.cpp index 2f217cffcbe..158bbf62e4b 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/model/Type.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TypeMapper { - static const int AmazonCustomerByEmail_HASH = HashingUtils::HashString("AmazonCustomerByEmail"); - static const int CanonicalUser_HASH = HashingUtils::HashString("CanonicalUser"); - static const int Group_HASH = HashingUtils::HashString("Group"); + static constexpr uint32_t AmazonCustomerByEmail_HASH = ConstExprHashingUtils::HashString("AmazonCustomerByEmail"); + static constexpr uint32_t CanonicalUser_HASH = ConstExprHashingUtils::HashString("CanonicalUser"); + static constexpr uint32_t Group_HASH = ConstExprHashingUtils::HashString("Group"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AmazonCustomerByEmail_HASH) { return Type::AmazonCustomerByEmail; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorErrors.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorErrors.cpp index de0701c5805..4c780d0b5dd 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorErrors.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorErrors.cpp @@ -18,29 +18,29 @@ namespace GlobalAccelerator namespace GlobalAcceleratorErrorMapper { -static const int ENDPOINT_ALREADY_EXISTS_HASH = HashingUtils::HashString("EndpointAlreadyExistsException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ACCELERATOR_NOT_FOUND_HASH = HashingUtils::HashString("AcceleratorNotFoundException"); -static const int INCORRECT_CIDR_STATE_HASH = HashingUtils::HashString("IncorrectCidrStateException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int TRANSACTION_IN_PROGRESS_HASH = HashingUtils::HashString("TransactionInProgressException"); -static const int BYOIP_CIDR_NOT_FOUND_HASH = HashingUtils::HashString("ByoipCidrNotFoundException"); -static const int LISTENER_NOT_FOUND_HASH = HashingUtils::HashString("ListenerNotFoundException"); -static const int ASSOCIATED_LISTENER_FOUND_HASH = HashingUtils::HashString("AssociatedListenerFoundException"); -static const int ENDPOINT_GROUP_NOT_FOUND_HASH = HashingUtils::HashString("EndpointGroupNotFoundException"); -static const int INVALID_PORT_RANGE_HASH = HashingUtils::HashString("InvalidPortRangeException"); -static const int ENDPOINT_NOT_FOUND_HASH = HashingUtils::HashString("EndpointNotFoundException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); -static const int ENDPOINT_GROUP_ALREADY_EXISTS_HASH = HashingUtils::HashString("EndpointGroupAlreadyExistsException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int ASSOCIATED_ENDPOINT_GROUP_FOUND_HASH = HashingUtils::HashString("AssociatedEndpointGroupFoundException"); -static const int ACCELERATOR_NOT_DISABLED_HASH = HashingUtils::HashString("AcceleratorNotDisabledException"); +static constexpr uint32_t ENDPOINT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EndpointAlreadyExistsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ACCELERATOR_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AcceleratorNotFoundException"); +static constexpr uint32_t INCORRECT_CIDR_STATE_HASH = ConstExprHashingUtils::HashString("IncorrectCidrStateException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t TRANSACTION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TransactionInProgressException"); +static constexpr uint32_t BYOIP_CIDR_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ByoipCidrNotFoundException"); +static constexpr uint32_t LISTENER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ListenerNotFoundException"); +static constexpr uint32_t ASSOCIATED_LISTENER_FOUND_HASH = ConstExprHashingUtils::HashString("AssociatedListenerFoundException"); +static constexpr uint32_t ENDPOINT_GROUP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EndpointGroupNotFoundException"); +static constexpr uint32_t INVALID_PORT_RANGE_HASH = ConstExprHashingUtils::HashString("InvalidPortRangeException"); +static constexpr uint32_t ENDPOINT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EndpointNotFoundException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t ENDPOINT_GROUP_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EndpointGroupAlreadyExistsException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t ASSOCIATED_ENDPOINT_GROUP_FOUND_HASH = ConstExprHashingUtils::HashString("AssociatedEndpointGroupFoundException"); +static constexpr uint32_t ACCELERATOR_NOT_DISABLED_HASH = ConstExprHashingUtils::HashString("AcceleratorNotDisabledException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == ENDPOINT_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/AcceleratorStatus.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/AcceleratorStatus.cpp index a70fb235272..fc8b987b475 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/AcceleratorStatus.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/AcceleratorStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AcceleratorStatusMapper { - static const int DEPLOYED_HASH = HashingUtils::HashString("DEPLOYED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t DEPLOYED_HASH = ConstExprHashingUtils::HashString("DEPLOYED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); AcceleratorStatus GetAcceleratorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOYED_HASH) { return AcceleratorStatus::DEPLOYED; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ByoipCidrState.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ByoipCidrState.cpp index 7bf932b67f2..82b2d30d46f 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ByoipCidrState.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ByoipCidrState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ByoipCidrStateMapper { - static const int PENDING_PROVISIONING_HASH = HashingUtils::HashString("PENDING_PROVISIONING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int PENDING_ADVERTISING_HASH = HashingUtils::HashString("PENDING_ADVERTISING"); - static const int ADVERTISING_HASH = HashingUtils::HashString("ADVERTISING"); - static const int PENDING_WITHDRAWING_HASH = HashingUtils::HashString("PENDING_WITHDRAWING"); - static const int PENDING_DEPROVISIONING_HASH = HashingUtils::HashString("PENDING_DEPROVISIONING"); - static const int DEPROVISIONED_HASH = HashingUtils::HashString("DEPROVISIONED"); - static const int FAILED_PROVISION_HASH = HashingUtils::HashString("FAILED_PROVISION"); - static const int FAILED_ADVERTISING_HASH = HashingUtils::HashString("FAILED_ADVERTISING"); - static const int FAILED_WITHDRAW_HASH = HashingUtils::HashString("FAILED_WITHDRAW"); - static const int FAILED_DEPROVISION_HASH = HashingUtils::HashString("FAILED_DEPROVISION"); + static constexpr uint32_t PENDING_PROVISIONING_HASH = ConstExprHashingUtils::HashString("PENDING_PROVISIONING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t PENDING_ADVERTISING_HASH = ConstExprHashingUtils::HashString("PENDING_ADVERTISING"); + static constexpr uint32_t ADVERTISING_HASH = ConstExprHashingUtils::HashString("ADVERTISING"); + static constexpr uint32_t PENDING_WITHDRAWING_HASH = ConstExprHashingUtils::HashString("PENDING_WITHDRAWING"); + static constexpr uint32_t PENDING_DEPROVISIONING_HASH = ConstExprHashingUtils::HashString("PENDING_DEPROVISIONING"); + static constexpr uint32_t DEPROVISIONED_HASH = ConstExprHashingUtils::HashString("DEPROVISIONED"); + static constexpr uint32_t FAILED_PROVISION_HASH = ConstExprHashingUtils::HashString("FAILED_PROVISION"); + static constexpr uint32_t FAILED_ADVERTISING_HASH = ConstExprHashingUtils::HashString("FAILED_ADVERTISING"); + static constexpr uint32_t FAILED_WITHDRAW_HASH = ConstExprHashingUtils::HashString("FAILED_WITHDRAW"); + static constexpr uint32_t FAILED_DEPROVISION_HASH = ConstExprHashingUtils::HashString("FAILED_DEPROVISION"); ByoipCidrState GetByoipCidrStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_PROVISIONING_HASH) { return ByoipCidrState::PENDING_PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ClientAffinity.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ClientAffinity.cpp index 832c2fa1709..e9e14d917be 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ClientAffinity.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/ClientAffinity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClientAffinityMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SOURCE_IP_HASH = HashingUtils::HashString("SOURCE_IP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SOURCE_IP_HASH = ConstExprHashingUtils::HashString("SOURCE_IP"); ClientAffinity GetClientAffinityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ClientAffinity::NONE; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingAcceleratorStatus.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingAcceleratorStatus.cpp index 9d5bb895a4b..1d1c19c55a8 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingAcceleratorStatus.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingAcceleratorStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomRoutingAcceleratorStatusMapper { - static const int DEPLOYED_HASH = HashingUtils::HashString("DEPLOYED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t DEPLOYED_HASH = ConstExprHashingUtils::HashString("DEPLOYED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); CustomRoutingAcceleratorStatus GetCustomRoutingAcceleratorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOYED_HASH) { return CustomRoutingAcceleratorStatus::DEPLOYED; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingDestinationTrafficState.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingDestinationTrafficState.cpp index 00ccdebf4c2..be6ca371db1 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingDestinationTrafficState.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingDestinationTrafficState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomRoutingDestinationTrafficStateMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); CustomRoutingDestinationTrafficState GetCustomRoutingDestinationTrafficStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return CustomRoutingDestinationTrafficState::ALLOW; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingProtocol.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingProtocol.cpp index 6f3b2d0a2e5..3c03f904967 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingProtocol.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/CustomRoutingProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomRoutingProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); CustomRoutingProtocol GetCustomRoutingProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return CustomRoutingProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthCheckProtocol.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthCheckProtocol.cpp index 449682fa50d..9d2ee9d100f 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthCheckProtocol.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthCheckProtocol.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HealthCheckProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); HealthCheckProtocol GetHealthCheckProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return HealthCheckProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthState.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthState.cpp index 5c090587afc..c102b0d25bd 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthState.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/HealthState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HealthStateMapper { - static const int INITIAL_HASH = HashingUtils::HashString("INITIAL"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t INITIAL_HASH = ConstExprHashingUtils::HashString("INITIAL"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); HealthState GetHealthStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIAL_HASH) { return HealthState::INITIAL; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressFamily.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressFamily.cpp index 85b0dc19531..f295c2f1363 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressFamily.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressFamily.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpAddressFamilyMapper { - static const int IPv4_HASH = HashingUtils::HashString("IPv4"); - static const int IPv6_HASH = HashingUtils::HashString("IPv6"); + static constexpr uint32_t IPv4_HASH = ConstExprHashingUtils::HashString("IPv4"); + static constexpr uint32_t IPv6_HASH = ConstExprHashingUtils::HashString("IPv6"); IpAddressFamily GetIpAddressFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPv4_HASH) { return IpAddressFamily::IPv4; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressType.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressType.cpp index 375ccc326e6..466c5e4a8f1 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressType.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/IpAddressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpAddressTypeMapper { - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int DUAL_STACK_HASH = HashingUtils::HashString("DUAL_STACK"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t DUAL_STACK_HASH = ConstExprHashingUtils::HashString("DUAL_STACK"); IpAddressType GetIpAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_HASH) { return IpAddressType::IPV4; diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/Protocol.cpp index 35711ebda09..5972d337d9d 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/model/Protocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return Protocol::TCP; diff --git a/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp b/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp index 7a8dc024977..dcbe6ab3338 100644 --- a/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp @@ -24,8 +24,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -39,22 +39,22 @@ #include #include #include -#include #include +#include #include #include #include #include #include -#include #include -#include +#include #include +#include #include #include #include -#include #include +#include #include #include #include @@ -63,19 +63,19 @@ #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include @@ -92,9 +92,9 @@ #include #include #include -#include -#include #include +#include +#include #include #include #include @@ -114,8 +114,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -332,52 +332,52 @@ CheckSchemaVersionValidityOutcome GlueClient::CheckSchemaVersionValidity(const C {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -BatchGetWorkflowsOutcome GlueClient::BatchGetWorkflows(const BatchGetWorkflowsRequest& request) const +BatchGetBlueprintsOutcome GlueClient::BatchGetBlueprints(const BatchGetBlueprintsRequest& request) const { - AWS_OPERATION_GUARD(BatchGetWorkflows); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetWorkflows, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetWorkflows, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(BatchGetBlueprints); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetBlueprints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetBlueprints, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, BatchGetWorkflows, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetWorkflows", + AWS_OPERATION_CHECK_PTR(meter, BatchGetBlueprints, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetBlueprints", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> BatchGetWorkflowsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> BatchGetBlueprintsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchGetWorkflows, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return BatchGetWorkflowsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchGetBlueprints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return BatchGetBlueprintsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -BatchGetBlueprintsOutcome GlueClient::BatchGetBlueprints(const BatchGetBlueprintsRequest& request) const +BatchGetWorkflowsOutcome GlueClient::BatchGetWorkflows(const BatchGetWorkflowsRequest& request) const { - AWS_OPERATION_GUARD(BatchGetBlueprints); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetBlueprints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetBlueprints, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(BatchGetWorkflows); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetWorkflows, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetWorkflows, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, BatchGetBlueprints, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetBlueprints", + AWS_OPERATION_CHECK_PTR(meter, BatchGetWorkflows, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetWorkflows", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> BatchGetBlueprintsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> BatchGetWorkflowsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchGetBlueprints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return BatchGetBlueprintsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchGetWorkflows, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return BatchGetWorkflowsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -722,52 +722,52 @@ GetDevEndpointOutcome GlueClient::GetDevEndpoint(const GetDevEndpointRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateUserDefinedFunctionOutcome GlueClient::CreateUserDefinedFunction(const CreateUserDefinedFunctionRequest& request) const +BatchGetJobsOutcome GlueClient::BatchGetJobs(const BatchGetJobsRequest& request) const { - AWS_OPERATION_GUARD(CreateUserDefinedFunction); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(BatchGetJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateUserDefinedFunction", + AWS_OPERATION_CHECK_PTR(meter, BatchGetJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetJobs", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateUserDefinedFunctionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> BatchGetJobsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateUserDefinedFunctionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchGetJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return BatchGetJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -BatchGetJobsOutcome GlueClient::BatchGetJobs(const BatchGetJobsRequest& request) const +CreateUserDefinedFunctionOutcome GlueClient::CreateUserDefinedFunction(const CreateUserDefinedFunctionRequest& request) const { - AWS_OPERATION_GUARD(BatchGetJobs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchGetJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchGetJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateUserDefinedFunction); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, BatchGetJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchGetJobs", + AWS_OPERATION_CHECK_PTR(meter, CreateUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateUserDefinedFunction", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> BatchGetJobsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateUserDefinedFunctionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchGetJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return BatchGetJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateUserDefinedFunctionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -904,32 +904,6 @@ CreateConnectionOutcome GlueClient::CreateConnection(const CreateConnectionReque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetBlueprintRunOutcome GlueClient::GetBlueprintRun(const GetBlueprintRunRequest& request) const -{ - AWS_OPERATION_GUARD(GetBlueprintRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetBlueprintRun", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetBlueprintRunOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetBlueprintRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeleteCrawlerOutcome GlueClient::DeleteCrawler(const DeleteCrawlerRequest& request) const { AWS_OPERATION_GUARD(DeleteCrawler); @@ -956,26 +930,26 @@ DeleteCrawlerOutcome GlueClient::DeleteCrawler(const DeleteCrawlerRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetBlueprintRunsOutcome GlueClient::GetBlueprintRuns(const GetBlueprintRunsRequest& request) const +GetBlueprintRunOutcome GlueClient::GetBlueprintRun(const GetBlueprintRunRequest& request) const { - AWS_OPERATION_GUARD(GetBlueprintRuns); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetBlueprintRuns, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetBlueprintRuns, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetBlueprintRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetBlueprintRuns, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetBlueprintRuns", + AWS_OPERATION_CHECK_PTR(meter, GetBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetBlueprintRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetBlueprintRunsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetBlueprintRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetBlueprintRuns, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetBlueprintRunsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetBlueprintRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1008,6 +982,32 @@ BatchDeletePartitionOutcome GlueClient::BatchDeletePartition(const BatchDeletePa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetBlueprintRunsOutcome GlueClient::GetBlueprintRuns(const GetBlueprintRunsRequest& request) const +{ + AWS_OPERATION_GUARD(GetBlueprintRuns); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetBlueprintRuns, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetBlueprintRuns, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetBlueprintRuns, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetBlueprintRuns", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetBlueprintRunsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetBlueprintRuns, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetBlueprintRunsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateTableOutcome GlueClient::CreateTable(const CreateTableRequest& request) const { AWS_OPERATION_GUARD(CreateTable); @@ -1086,52 +1086,52 @@ GetDataQualityRuleRecommendationRunOutcome GlueClient::GetDataQualityRuleRecomme {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetDataQualityRulesetEvaluationRunOutcome GlueClient::GetDataQualityRulesetEvaluationRun(const GetDataQualityRulesetEvaluationRunRequest& request) const +DeleteTriggerOutcome GlueClient::DeleteTrigger(const DeleteTriggerRequest& request) const { - AWS_OPERATION_GUARD(GetDataQualityRulesetEvaluationRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTrigger); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetDataQualityRulesetEvaluationRun", + AWS_OPERATION_CHECK_PTR(meter, DeleteTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrigger", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetDataQualityRulesetEvaluationRunOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTriggerOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetDataQualityRulesetEvaluationRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTriggerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTriggerOutcome GlueClient::DeleteTrigger(const DeleteTriggerRequest& request) const +GetDataQualityRulesetEvaluationRunOutcome GlueClient::GetDataQualityRulesetEvaluationRun(const GetDataQualityRulesetEvaluationRunRequest& request) const { - AWS_OPERATION_GUARD(DeleteTrigger); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetDataQualityRulesetEvaluationRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrigger", + AWS_OPERATION_CHECK_PTR(meter, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetDataQualityRulesetEvaluationRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTriggerOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetDataQualityRulesetEvaluationRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTriggerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetDataQualityRulesetEvaluationRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1346,52 +1346,52 @@ CreateScriptOutcome GlueClient::CreateScript(const CreateScriptRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteResourcePolicyOutcome GlueClient::DeleteResourcePolicy(const DeleteResourcePolicyRequest& request) const +CreateDataQualityRulesetOutcome GlueClient::CreateDataQualityRuleset(const CreateDataQualityRulesetRequest& request) const { - AWS_OPERATION_GUARD(DeleteResourcePolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateDataQualityRuleset); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDataQualityRuleset, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDataQualityRuleset, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteResourcePolicy", + AWS_OPERATION_CHECK_PTR(meter, CreateDataQualityRuleset, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDataQualityRuleset", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteResourcePolicyOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateDataQualityRulesetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDataQualityRuleset, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateDataQualityRulesetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateDataQualityRulesetOutcome GlueClient::CreateDataQualityRuleset(const CreateDataQualityRulesetRequest& request) const +DeleteResourcePolicyOutcome GlueClient::DeleteResourcePolicy(const DeleteResourcePolicyRequest& request) const { - AWS_OPERATION_GUARD(CreateDataQualityRuleset); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDataQualityRuleset, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDataQualityRuleset, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteResourcePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateDataQualityRuleset, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDataQualityRuleset", + AWS_OPERATION_CHECK_PTR(meter, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteResourcePolicy", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateDataQualityRulesetOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteResourcePolicyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDataQualityRuleset, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateDataQualityRulesetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1450,52 +1450,52 @@ BatchDeleteConnectionOutcome GlueClient::BatchDeleteConnection(const BatchDelete {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetCrawlerMetricsOutcome GlueClient::GetCrawlerMetrics(const GetCrawlerMetricsRequest& request) const +GetCatalogImportStatusOutcome GlueClient::GetCatalogImportStatus(const GetCatalogImportStatusRequest& request) const { - AWS_OPERATION_GUARD(GetCrawlerMetrics); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetCrawlerMetrics, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetCrawlerMetrics, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetCatalogImportStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetCatalogImportStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetCatalogImportStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetCrawlerMetrics, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetCrawlerMetrics", + AWS_OPERATION_CHECK_PTR(meter, GetCatalogImportStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetCatalogImportStatus", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetCrawlerMetricsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetCatalogImportStatusOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetCrawlerMetrics, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetCrawlerMetricsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetCatalogImportStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetCatalogImportStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetCatalogImportStatusOutcome GlueClient::GetCatalogImportStatus(const GetCatalogImportStatusRequest& request) const +GetCrawlerMetricsOutcome GlueClient::GetCrawlerMetrics(const GetCrawlerMetricsRequest& request) const { - AWS_OPERATION_GUARD(GetCatalogImportStatus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetCatalogImportStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetCatalogImportStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetCrawlerMetrics); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetCrawlerMetrics, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetCrawlerMetrics, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetCatalogImportStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetCatalogImportStatus", + AWS_OPERATION_CHECK_PTR(meter, GetCrawlerMetrics, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetCrawlerMetrics", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetCatalogImportStatusOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetCrawlerMetricsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetCatalogImportStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetCatalogImportStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetCrawlerMetrics, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetCrawlerMetricsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1632,52 +1632,52 @@ CancelMLTaskRunOutcome GlueClient::CancelMLTaskRun(const CancelMLTaskRunRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteSecurityConfigurationOutcome GlueClient::DeleteSecurityConfiguration(const DeleteSecurityConfigurationRequest& request) const +DeleteColumnStatisticsForPartitionOutcome GlueClient::DeleteColumnStatisticsForPartition(const DeleteColumnStatisticsForPartitionRequest& request) const { - AWS_OPERATION_GUARD(DeleteSecurityConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSecurityConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSecurityConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteColumnStatisticsForPartition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteSecurityConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteSecurityConfiguration", + AWS_OPERATION_CHECK_PTR(meter, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteColumnStatisticsForPartition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteSecurityConfigurationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteColumnStatisticsForPartitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSecurityConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteSecurityConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteColumnStatisticsForPartitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteColumnStatisticsForPartitionOutcome GlueClient::DeleteColumnStatisticsForPartition(const DeleteColumnStatisticsForPartitionRequest& request) const +DeleteSecurityConfigurationOutcome GlueClient::DeleteSecurityConfiguration(const DeleteSecurityConfigurationRequest& request) const { - AWS_OPERATION_GUARD(DeleteColumnStatisticsForPartition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteSecurityConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteSecurityConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteSecurityConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteColumnStatisticsForPartition", + AWS_OPERATION_CHECK_PTR(meter, DeleteSecurityConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteSecurityConfiguration", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteColumnStatisticsForPartitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteSecurityConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteColumnStatisticsForPartition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteColumnStatisticsForPartitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteSecurityConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteSecurityConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2100,26 +2100,26 @@ CreateBlueprintOutcome GlueClient::CreateBlueprint(const CreateBlueprintRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteUserDefinedFunctionOutcome GlueClient::DeleteUserDefinedFunction(const DeleteUserDefinedFunctionRequest& request) const +CancelDataQualityRulesetEvaluationRunOutcome GlueClient::CancelDataQualityRulesetEvaluationRun(const CancelDataQualityRulesetEvaluationRunRequest& request) const { - AWS_OPERATION_GUARD(DeleteUserDefinedFunction); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CancelDataQualityRulesetEvaluationRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteUserDefinedFunction", + AWS_OPERATION_CHECK_PTR(meter, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CancelDataQualityRulesetEvaluationRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteUserDefinedFunctionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CancelDataQualityRulesetEvaluationRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteUserDefinedFunctionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CancelDataQualityRulesetEvaluationRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2152,26 +2152,26 @@ CreateSecurityConfigurationOutcome GlueClient::CreateSecurityConfiguration(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CancelDataQualityRulesetEvaluationRunOutcome GlueClient::CancelDataQualityRulesetEvaluationRun(const CancelDataQualityRulesetEvaluationRunRequest& request) const +DeleteUserDefinedFunctionOutcome GlueClient::DeleteUserDefinedFunction(const DeleteUserDefinedFunctionRequest& request) const { - AWS_OPERATION_GUARD(CancelDataQualityRulesetEvaluationRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteUserDefinedFunction); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CancelDataQualityRulesetEvaluationRun", + AWS_OPERATION_CHECK_PTR(meter, DeleteUserDefinedFunction, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteUserDefinedFunction", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CancelDataQualityRulesetEvaluationRunOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteUserDefinedFunctionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelDataQualityRulesetEvaluationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CancelDataQualityRulesetEvaluationRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteUserDefinedFunction, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteUserDefinedFunctionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2672,52 +2672,52 @@ GetMLTransformOutcome GlueClient::GetMLTransform(const GetMLTransformRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteRegistryOutcome GlueClient::DeleteRegistry(const DeleteRegistryRequest& request) const +DeletePartitionIndexOutcome GlueClient::DeletePartitionIndex(const DeletePartitionIndexRequest& request) const { - AWS_OPERATION_GUARD(DeleteRegistry); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRegistry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRegistry, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeletePartitionIndex); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePartitionIndex, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePartitionIndex, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteRegistry, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRegistry", + AWS_OPERATION_CHECK_PTR(meter, DeletePartitionIndex, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePartitionIndex", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteRegistryOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeletePartitionIndexOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRegistry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteRegistryOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeletePartitionIndex, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeletePartitionIndexOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeletePartitionIndexOutcome GlueClient::DeletePartitionIndex(const DeletePartitionIndexRequest& request) const +DeleteRegistryOutcome GlueClient::DeleteRegistry(const DeleteRegistryRequest& request) const { - AWS_OPERATION_GUARD(DeletePartitionIndex); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePartitionIndex, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePartitionIndex, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteRegistry); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRegistry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRegistry, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeletePartitionIndex, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePartitionIndex", + AWS_OPERATION_CHECK_PTR(meter, DeleteRegistry, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRegistry", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeletePartitionIndexOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteRegistryOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeletePartitionIndex, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeletePartitionIndexOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRegistry, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteRegistryOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-glue/source/GlueClient1.cpp b/generated/src/aws-cpp-sdk-glue/source/GlueClient1.cpp index d4449b49be4..6c3afa668be 100644 --- a/generated/src/aws-cpp-sdk-glue/source/GlueClient1.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/GlueClient1.cpp @@ -25,8 +25,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -41,18 +41,18 @@ #include #include #include -#include #include +#include #include #include -#include -#include #include +#include +#include #include #include #include -#include #include +#include #include #include #include @@ -60,39 +60,39 @@ #include #include #include -#include #include +#include #include #include #include #include #include #include -#include -#include #include +#include +#include #include #include #include #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include -#include #include +#include #include -#include #include +#include #include #include #include @@ -108,8 +108,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -240,52 +240,52 @@ PutResourcePolicyOutcome GlueClient::PutResourcePolicy(const PutResourcePolicyRe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetWorkflowRunPropertiesOutcome GlueClient::GetWorkflowRunProperties(const GetWorkflowRunPropertiesRequest& request) const +GetTableVersionsOutcome GlueClient::GetTableVersions(const GetTableVersionsRequest& request) const { - AWS_OPERATION_GUARD(GetWorkflowRunProperties); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetTableVersions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTableVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTableVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetWorkflowRunProperties", + AWS_OPERATION_CHECK_PTR(meter, GetTableVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTableVersions", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetWorkflowRunPropertiesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetTableVersionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetWorkflowRunPropertiesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTableVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetTableVersionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetTableVersionsOutcome GlueClient::GetTableVersions(const GetTableVersionsRequest& request) const +GetWorkflowRunPropertiesOutcome GlueClient::GetWorkflowRunProperties(const GetWorkflowRunPropertiesRequest& request) const { - AWS_OPERATION_GUARD(GetTableVersions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTableVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTableVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetWorkflowRunProperties); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetTableVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTableVersions", + AWS_OPERATION_CHECK_PTR(meter, GetWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetWorkflowRunProperties", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetTableVersionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetWorkflowRunPropertiesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTableVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetTableVersionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetWorkflowRunPropertiesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -656,52 +656,52 @@ GetMappingOutcome GlueClient::GetMapping(const GetMappingRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UntagResourceOutcome GlueClient::UntagResource(const UntagResourceRequest& request) const +GetStatementOutcome GlueClient::GetStatement(const GetStatementRequest& request) const { - AWS_OPERATION_GUARD(UntagResource); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetStatement); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetStatement, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetStatement, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + AWS_OPERATION_CHECK_PTR(meter, GetStatement, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetStatement", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UntagResourceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetStatementOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetStatement, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetStatementOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetStatementOutcome GlueClient::GetStatement(const GetStatementRequest& request) const +UntagResourceOutcome GlueClient::UntagResource(const UntagResourceRequest& request) const { - AWS_OPERATION_GUARD(GetStatement); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetStatement, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetStatement, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UntagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetStatement, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetStatement", + AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetStatementOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UntagResourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetStatement, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetStatementOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -760,26 +760,26 @@ GetResourcePolicyOutcome GlueClient::GetResourcePolicy(const GetResourcePolicyRe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateBlueprintOutcome GlueClient::UpdateBlueprint(const UpdateBlueprintRequest& request) const +GetTablesOutcome GlueClient::GetTables(const GetTablesRequest& request) const { - AWS_OPERATION_GUARD(UpdateBlueprint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateBlueprint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateBlueprint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetTables); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTables, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateBlueprint, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateBlueprint", + AWS_OPERATION_CHECK_PTR(meter, GetTables, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTables", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateBlueprintOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetTablesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateBlueprint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateBlueprintOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetTablesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -812,26 +812,26 @@ ImportCatalogToGlueOutcome GlueClient::ImportCatalogToGlue(const ImportCatalogTo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetTablesOutcome GlueClient::GetTables(const GetTablesRequest& request) const +UpdateBlueprintOutcome GlueClient::UpdateBlueprint(const UpdateBlueprintRequest& request) const { - AWS_OPERATION_GUARD(GetTables); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTables, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateBlueprint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateBlueprint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateBlueprint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetTables, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTables", + AWS_OPERATION_CHECK_PTR(meter, UpdateBlueprint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateBlueprint", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetTablesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateBlueprintOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTables, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetTablesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateBlueprint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateBlueprintOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -916,52 +916,52 @@ ListStatementsOutcome GlueClient::ListStatements(const ListStatementsRequest& re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -TagResourceOutcome GlueClient::TagResource(const TagResourceRequest& request) const +GetSchemaVersionsDiffOutcome GlueClient::GetSchemaVersionsDiff(const GetSchemaVersionsDiffRequest& request) const { - AWS_OPERATION_GUARD(TagResource); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetSchemaVersionsDiff); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSchemaVersionsDiff, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSchemaVersionsDiff, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", + AWS_OPERATION_CHECK_PTR(meter, GetSchemaVersionsDiff, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSchemaVersionsDiff", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> TagResourceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetSchemaVersionsDiffOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return TagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSchemaVersionsDiff, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetSchemaVersionsDiffOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetSchemaVersionsDiffOutcome GlueClient::GetSchemaVersionsDiff(const GetSchemaVersionsDiffRequest& request) const +TagResourceOutcome GlueClient::TagResource(const TagResourceRequest& request) const { - AWS_OPERATION_GUARD(GetSchemaVersionsDiff); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSchemaVersionsDiff, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSchemaVersionsDiff, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(TagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetSchemaVersionsDiff, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSchemaVersionsDiff", + AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetSchemaVersionsDiffOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> TagResourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSchemaVersionsDiff, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetSchemaVersionsDiffOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return TagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1150,52 +1150,52 @@ ListDataQualityRulesetsOutcome GlueClient::ListDataQualityRulesets(const ListDat {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateSourceControlFromJobOutcome GlueClient::UpdateSourceControlFromJob(const UpdateSourceControlFromJobRequest& request) const +GetSchemaVersionOutcome GlueClient::GetSchemaVersion(const GetSchemaVersionRequest& request) const { - AWS_OPERATION_GUARD(UpdateSourceControlFromJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSourceControlFromJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSourceControlFromJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetSchemaVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSchemaVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSchemaVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateSourceControlFromJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSourceControlFromJob", + AWS_OPERATION_CHECK_PTR(meter, GetSchemaVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSchemaVersion", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateSourceControlFromJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetSchemaVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateSourceControlFromJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateSourceControlFromJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSchemaVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetSchemaVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetSchemaVersionOutcome GlueClient::GetSchemaVersion(const GetSchemaVersionRequest& request) const +UpdateSourceControlFromJobOutcome GlueClient::UpdateSourceControlFromJob(const UpdateSourceControlFromJobRequest& request) const { - AWS_OPERATION_GUARD(GetSchemaVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSchemaVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSchemaVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateSourceControlFromJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSourceControlFromJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSourceControlFromJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetSchemaVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSchemaVersion", + AWS_OPERATION_CHECK_PTR(meter, UpdateSourceControlFromJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSourceControlFromJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetSchemaVersionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateSourceControlFromJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSchemaVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetSchemaVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateSourceControlFromJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateSourceControlFromJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1358,26 +1358,26 @@ ListTriggersOutcome GlueClient::ListTriggers(const ListTriggersRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StopWorkflowRunOutcome GlueClient::StopWorkflowRun(const StopWorkflowRunRequest& request) const +GetUnfilteredTableMetadataOutcome GlueClient::GetUnfilteredTableMetadata(const GetUnfilteredTableMetadataRequest& request) const { - AWS_OPERATION_GUARD(StopWorkflowRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopWorkflowRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopWorkflowRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetUnfilteredTableMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StopWorkflowRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopWorkflowRun", + AWS_OPERATION_CHECK_PTR(meter, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetUnfilteredTableMetadata", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StopWorkflowRunOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetUnfilteredTableMetadataOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopWorkflowRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StopWorkflowRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetUnfilteredTableMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1410,26 +1410,26 @@ StopCrawlerOutcome GlueClient::StopCrawler(const StopCrawlerRequest& request) co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetUnfilteredTableMetadataOutcome GlueClient::GetUnfilteredTableMetadata(const GetUnfilteredTableMetadataRequest& request) const +StopWorkflowRunOutcome GlueClient::StopWorkflowRun(const StopWorkflowRunRequest& request) const { - AWS_OPERATION_GUARD(GetUnfilteredTableMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StopWorkflowRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopWorkflowRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopWorkflowRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetUnfilteredTableMetadata", + AWS_OPERATION_CHECK_PTR(meter, StopWorkflowRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopWorkflowRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetUnfilteredTableMetadataOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StopWorkflowRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetUnfilteredTableMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetUnfilteredTableMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopWorkflowRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StopWorkflowRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1592,52 +1592,52 @@ UpdateCrawlerOutcome GlueClient::UpdateCrawler(const UpdateCrawlerRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartTriggerOutcome GlueClient::StartTrigger(const StartTriggerRequest& request) const +RemoveSchemaVersionMetadataOutcome GlueClient::RemoveSchemaVersionMetadata(const RemoveSchemaVersionMetadataRequest& request) const { - AWS_OPERATION_GUARD(StartTrigger); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(RemoveSchemaVersionMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartTrigger", + AWS_OPERATION_CHECK_PTR(meter, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RemoveSchemaVersionMetadata", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartTriggerOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> RemoveSchemaVersionMetadataOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartTriggerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RemoveSchemaVersionMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RemoveSchemaVersionMetadataOutcome GlueClient::RemoveSchemaVersionMetadata(const RemoveSchemaVersionMetadataRequest& request) const +StartTriggerOutcome GlueClient::StartTrigger(const StartTriggerRequest& request) const { - AWS_OPERATION_GUARD(RemoveSchemaVersionMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartTrigger); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RemoveSchemaVersionMetadata", + AWS_OPERATION_CHECK_PTR(meter, StartTrigger, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartTrigger", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RemoveSchemaVersionMetadataOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartTriggerOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RemoveSchemaVersionMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RemoveSchemaVersionMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartTrigger, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartTriggerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1774,52 +1774,52 @@ StopTriggerOutcome GlueClient::StopTrigger(const StopTriggerRequest& request) co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartBlueprintRunOutcome GlueClient::StartBlueprintRun(const StartBlueprintRunRequest& request) const +ListRegistriesOutcome GlueClient::ListRegistries(const ListRegistriesRequest& request) const { - AWS_OPERATION_GUARD(StartBlueprintRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListRegistries); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRegistries, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRegistries, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartBlueprintRun", + AWS_OPERATION_CHECK_PTR(meter, ListRegistries, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListRegistries", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartBlueprintRunOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListRegistriesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartBlueprintRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListRegistries, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListRegistriesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListRegistriesOutcome GlueClient::ListRegistries(const ListRegistriesRequest& request) const +StartBlueprintRunOutcome GlueClient::StartBlueprintRun(const StartBlueprintRunRequest& request) const { - AWS_OPERATION_GUARD(ListRegistries); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRegistries, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRegistries, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartBlueprintRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListRegistries, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListRegistries", + AWS_OPERATION_CHECK_PTR(meter, StartBlueprintRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartBlueprintRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListRegistriesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartBlueprintRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListRegistries, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListRegistriesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartBlueprintRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartBlueprintRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1878,52 +1878,52 @@ GetPartitionOutcome GlueClient::GetPartition(const GetPartitionRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartDataQualityRuleRecommendationRunOutcome GlueClient::StartDataQualityRuleRecommendationRun(const StartDataQualityRuleRecommendationRunRequest& request) const +ListCrawlsOutcome GlueClient::ListCrawls(const ListCrawlsRequest& request) const { - AWS_OPERATION_GUARD(StartDataQualityRuleRecommendationRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListCrawls); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCrawls, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCrawls, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartDataQualityRuleRecommendationRun", + AWS_OPERATION_CHECK_PTR(meter, ListCrawls, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCrawls", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartDataQualityRuleRecommendationRunOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCrawlsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartDataQualityRuleRecommendationRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCrawls, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListCrawlsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCrawlsOutcome GlueClient::ListCrawls(const ListCrawlsRequest& request) const +StartDataQualityRuleRecommendationRunOutcome GlueClient::StartDataQualityRuleRecommendationRun(const StartDataQualityRuleRecommendationRunRequest& request) const { - AWS_OPERATION_GUARD(ListCrawls); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCrawls, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCrawls, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartDataQualityRuleRecommendationRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCrawls, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCrawls", + AWS_OPERATION_CHECK_PTR(meter, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartDataQualityRuleRecommendationRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListCrawlsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartDataQualityRuleRecommendationRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCrawls, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListCrawlsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartDataQualityRuleRecommendationRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartDataQualityRuleRecommendationRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1956,52 +1956,52 @@ StartWorkflowRunOutcome GlueClient::StartWorkflowRun(const StartWorkflowRunReque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -PutWorkflowRunPropertiesOutcome GlueClient::PutWorkflowRunProperties(const PutWorkflowRunPropertiesRequest& request) const +GetResourcePoliciesOutcome GlueClient::GetResourcePolicies(const GetResourcePoliciesRequest& request) const { - AWS_OPERATION_GUARD(PutWorkflowRunProperties); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetResourcePolicies); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetResourcePolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetResourcePolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, PutWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutWorkflowRunProperties", + AWS_OPERATION_CHECK_PTR(meter, GetResourcePolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetResourcePolicies", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> PutWorkflowRunPropertiesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetResourcePoliciesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return PutWorkflowRunPropertiesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetResourcePolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetResourcePoliciesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetResourcePoliciesOutcome GlueClient::GetResourcePolicies(const GetResourcePoliciesRequest& request) const +PutWorkflowRunPropertiesOutcome GlueClient::PutWorkflowRunProperties(const PutWorkflowRunPropertiesRequest& request) const { - AWS_OPERATION_GUARD(GetResourcePolicies); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetResourcePolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetResourcePolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(PutWorkflowRunProperties); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetResourcePolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetResourcePolicies", + AWS_OPERATION_CHECK_PTR(meter, PutWorkflowRunProperties, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutWorkflowRunProperties", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetResourcePoliciesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> PutWorkflowRunPropertiesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetResourcePolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetResourcePoliciesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutWorkflowRunProperties, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return PutWorkflowRunPropertiesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2398,52 +2398,52 @@ GetTriggerOutcome GlueClient::GetTrigger(const GetTriggerRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartMLEvaluationTaskRunOutcome GlueClient::StartMLEvaluationTaskRun(const StartMLEvaluationTaskRunRequest& request) const +GetTagsOutcome GlueClient::GetTags(const GetTagsRequest& request) const { - AWS_OPERATION_GUARD(StartMLEvaluationTaskRun); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetTags); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTags, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartMLEvaluationTaskRun", + AWS_OPERATION_CHECK_PTR(meter, GetTags, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTags", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartMLEvaluationTaskRunOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetTagsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartMLEvaluationTaskRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetTagsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetTagsOutcome GlueClient::GetTags(const GetTagsRequest& request) const +StartMLEvaluationTaskRunOutcome GlueClient::StartMLEvaluationTaskRun(const StartMLEvaluationTaskRunRequest& request) const { - AWS_OPERATION_GUARD(GetTags); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTags, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartMLEvaluationTaskRun); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetTags, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTags", + AWS_OPERATION_CHECK_PTR(meter, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartMLEvaluationTaskRun", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetTagsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartMLEvaluationTaskRunOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTags, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetTagsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartMLEvaluationTaskRun, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartMLEvaluationTaskRunOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-glue/source/GlueErrors.cpp b/generated/src/aws-cpp-sdk-glue/source/GlueErrors.cpp index 125acf1df39..b7adb6ea73a 100644 --- a/generated/src/aws-cpp-sdk-glue/source/GlueErrors.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/GlueErrors.cpp @@ -47,41 +47,41 @@ template<> AWS_GLUE_API FederationSourceException GlueError::GetModeledError() namespace GlueErrorMapper { -static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int FEDERATION_SOURCE_RETRYABLE_HASH = HashingUtils::HashString("FederationSourceRetryableException"); -static const int ILLEGAL_BLUEPRINT_STATE_HASH = HashingUtils::HashString("IllegalBlueprintStateException"); -static const int SCHEDULER_RUNNING_HASH = HashingUtils::HashString("SchedulerRunningException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int CRAWLER_RUNNING_HASH = HashingUtils::HashString("CrawlerRunningException"); -static const int GLUE_ENCRYPTION_HASH = HashingUtils::HashString("GlueEncryptionException"); -static const int M_L_TRANSFORM_NOT_READY_HASH = HashingUtils::HashString("MLTransformNotReadyException"); -static const int PERMISSION_TYPE_MISMATCH_HASH = HashingUtils::HashString("PermissionTypeMismatchException"); -static const int RESOURCE_NUMBER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceNumberLimitExceededException"); -static const int OPERATION_TIMEOUT_HASH = HashingUtils::HashString("OperationTimeoutException"); -static const int VERSION_MISMATCH_HASH = HashingUtils::HashString("VersionMismatchException"); -static const int CRAWLER_NOT_RUNNING_HASH = HashingUtils::HashString("CrawlerNotRunningException"); -static const int SCHEDULER_NOT_RUNNING_HASH = HashingUtils::HashString("SchedulerNotRunningException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int CONDITION_CHECK_FAILURE_HASH = HashingUtils::HashString("ConditionCheckFailureException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int FEDERATED_RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("FederatedResourceAlreadyExistsException"); -static const int ILLEGAL_WORKFLOW_STATE_HASH = HashingUtils::HashString("IllegalWorkflowStateException"); -static const int ENTITY_NOT_FOUND_HASH = HashingUtils::HashString("EntityNotFoundException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); -static const int SCHEDULER_TRANSITIONING_HASH = HashingUtils::HashString("SchedulerTransitioningException"); -static const int CRAWLER_STOPPING_HASH = HashingUtils::HashString("CrawlerStoppingException"); -static const int NO_SCHEDULE_HASH = HashingUtils::HashString("NoScheduleException"); -static const int CONCURRENT_RUNS_EXCEEDED_HASH = HashingUtils::HashString("ConcurrentRunsExceededException"); -static const int ILLEGAL_SESSION_STATE_HASH = HashingUtils::HashString("IllegalSessionStateException"); -static const int FEDERATION_SOURCE_HASH = HashingUtils::HashString("FederationSourceException"); +static constexpr uint32_t RESOURCE_NOT_READY_HASH = ConstExprHashingUtils::HashString("ResourceNotReadyException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t FEDERATION_SOURCE_RETRYABLE_HASH = ConstExprHashingUtils::HashString("FederationSourceRetryableException"); +static constexpr uint32_t ILLEGAL_BLUEPRINT_STATE_HASH = ConstExprHashingUtils::HashString("IllegalBlueprintStateException"); +static constexpr uint32_t SCHEDULER_RUNNING_HASH = ConstExprHashingUtils::HashString("SchedulerRunningException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t CRAWLER_RUNNING_HASH = ConstExprHashingUtils::HashString("CrawlerRunningException"); +static constexpr uint32_t GLUE_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("GlueEncryptionException"); +static constexpr uint32_t M_L_TRANSFORM_NOT_READY_HASH = ConstExprHashingUtils::HashString("MLTransformNotReadyException"); +static constexpr uint32_t PERMISSION_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("PermissionTypeMismatchException"); +static constexpr uint32_t RESOURCE_NUMBER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceNumberLimitExceededException"); +static constexpr uint32_t OPERATION_TIMEOUT_HASH = ConstExprHashingUtils::HashString("OperationTimeoutException"); +static constexpr uint32_t VERSION_MISMATCH_HASH = ConstExprHashingUtils::HashString("VersionMismatchException"); +static constexpr uint32_t CRAWLER_NOT_RUNNING_HASH = ConstExprHashingUtils::HashString("CrawlerNotRunningException"); +static constexpr uint32_t SCHEDULER_NOT_RUNNING_HASH = ConstExprHashingUtils::HashString("SchedulerNotRunningException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t CONDITION_CHECK_FAILURE_HASH = ConstExprHashingUtils::HashString("ConditionCheckFailureException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t FEDERATED_RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("FederatedResourceAlreadyExistsException"); +static constexpr uint32_t ILLEGAL_WORKFLOW_STATE_HASH = ConstExprHashingUtils::HashString("IllegalWorkflowStateException"); +static constexpr uint32_t ENTITY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EntityNotFoundException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t SCHEDULER_TRANSITIONING_HASH = ConstExprHashingUtils::HashString("SchedulerTransitioningException"); +static constexpr uint32_t CRAWLER_STOPPING_HASH = ConstExprHashingUtils::HashString("CrawlerStoppingException"); +static constexpr uint32_t NO_SCHEDULE_HASH = ConstExprHashingUtils::HashString("NoScheduleException"); +static constexpr uint32_t CONCURRENT_RUNS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ConcurrentRunsExceededException"); +static constexpr uint32_t ILLEGAL_SESSION_STATE_HASH = ConstExprHashingUtils::HashString("IllegalSessionStateException"); +static constexpr uint32_t FEDERATION_SOURCE_HASH = ConstExprHashingUtils::HashString("FederationSourceException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_NOT_READY_HASH) { diff --git a/generated/src/aws-cpp-sdk-glue/source/model/AdditionalOptionKeys.cpp b/generated/src/aws-cpp-sdk-glue/source/model/AdditionalOptionKeys.cpp index d1a9ea40334..79cf9a10bfe 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/AdditionalOptionKeys.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/AdditionalOptionKeys.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AdditionalOptionKeysMapper { - static const int performanceTuning_caching_HASH = HashingUtils::HashString("performanceTuning.caching"); + static constexpr uint32_t performanceTuning_caching_HASH = ConstExprHashingUtils::HashString("performanceTuning.caching"); AdditionalOptionKeys GetAdditionalOptionKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == performanceTuning_caching_HASH) { return AdditionalOptionKeys::performanceTuning_caching; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/AggFunction.cpp b/generated/src/aws-cpp-sdk-glue/source/model/AggFunction.cpp index 40e44a65d1a..756241e3b36 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/AggFunction.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/AggFunction.cpp @@ -20,26 +20,26 @@ namespace Aws namespace AggFunctionMapper { - static const int avg_HASH = HashingUtils::HashString("avg"); - static const int countDistinct_HASH = HashingUtils::HashString("countDistinct"); - static const int count_HASH = HashingUtils::HashString("count"); - static const int first_HASH = HashingUtils::HashString("first"); - static const int last_HASH = HashingUtils::HashString("last"); - static const int kurtosis_HASH = HashingUtils::HashString("kurtosis"); - static const int max_HASH = HashingUtils::HashString("max"); - static const int min_HASH = HashingUtils::HashString("min"); - static const int skewness_HASH = HashingUtils::HashString("skewness"); - static const int stddev_samp_HASH = HashingUtils::HashString("stddev_samp"); - static const int stddev_pop_HASH = HashingUtils::HashString("stddev_pop"); - static const int sum_HASH = HashingUtils::HashString("sum"); - static const int sumDistinct_HASH = HashingUtils::HashString("sumDistinct"); - static const int var_samp_HASH = HashingUtils::HashString("var_samp"); - static const int var_pop_HASH = HashingUtils::HashString("var_pop"); + static constexpr uint32_t avg_HASH = ConstExprHashingUtils::HashString("avg"); + static constexpr uint32_t countDistinct_HASH = ConstExprHashingUtils::HashString("countDistinct"); + static constexpr uint32_t count_HASH = ConstExprHashingUtils::HashString("count"); + static constexpr uint32_t first_HASH = ConstExprHashingUtils::HashString("first"); + static constexpr uint32_t last_HASH = ConstExprHashingUtils::HashString("last"); + static constexpr uint32_t kurtosis_HASH = ConstExprHashingUtils::HashString("kurtosis"); + static constexpr uint32_t max_HASH = ConstExprHashingUtils::HashString("max"); + static constexpr uint32_t min_HASH = ConstExprHashingUtils::HashString("min"); + static constexpr uint32_t skewness_HASH = ConstExprHashingUtils::HashString("skewness"); + static constexpr uint32_t stddev_samp_HASH = ConstExprHashingUtils::HashString("stddev_samp"); + static constexpr uint32_t stddev_pop_HASH = ConstExprHashingUtils::HashString("stddev_pop"); + static constexpr uint32_t sum_HASH = ConstExprHashingUtils::HashString("sum"); + static constexpr uint32_t sumDistinct_HASH = ConstExprHashingUtils::HashString("sumDistinct"); + static constexpr uint32_t var_samp_HASH = ConstExprHashingUtils::HashString("var_samp"); + static constexpr uint32_t var_pop_HASH = ConstExprHashingUtils::HashString("var_pop"); AggFunction GetAggFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == avg_HASH) { return AggFunction::avg; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/BackfillErrorCode.cpp b/generated/src/aws-cpp-sdk-glue/source/model/BackfillErrorCode.cpp index 22bde1072b7..00a1316ad38 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/BackfillErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/BackfillErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace BackfillErrorCodeMapper { - static const int ENCRYPTED_PARTITION_ERROR_HASH = HashingUtils::HashString("ENCRYPTED_PARTITION_ERROR"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INVALID_PARTITION_TYPE_DATA_ERROR_HASH = HashingUtils::HashString("INVALID_PARTITION_TYPE_DATA_ERROR"); - static const int MISSING_PARTITION_VALUE_ERROR_HASH = HashingUtils::HashString("MISSING_PARTITION_VALUE_ERROR"); - static const int UNSUPPORTED_PARTITION_CHARACTER_ERROR_HASH = HashingUtils::HashString("UNSUPPORTED_PARTITION_CHARACTER_ERROR"); + static constexpr uint32_t ENCRYPTED_PARTITION_ERROR_HASH = ConstExprHashingUtils::HashString("ENCRYPTED_PARTITION_ERROR"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_PARTITION_TYPE_DATA_ERROR_HASH = ConstExprHashingUtils::HashString("INVALID_PARTITION_TYPE_DATA_ERROR"); + static constexpr uint32_t MISSING_PARTITION_VALUE_ERROR_HASH = ConstExprHashingUtils::HashString("MISSING_PARTITION_VALUE_ERROR"); + static constexpr uint32_t UNSUPPORTED_PARTITION_CHARACTER_ERROR_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_PARTITION_CHARACTER_ERROR"); BackfillErrorCode GetBackfillErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENCRYPTED_PARTITION_ERROR_HASH) { return BackfillErrorCode::ENCRYPTED_PARTITION_ERROR; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/BlueprintRunState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/BlueprintRunState.cpp index 00c31120792..72c2b8a4897 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/BlueprintRunState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/BlueprintRunState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BlueprintRunStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ROLLING_BACK_HASH = HashingUtils::HashString("ROLLING_BACK"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ROLLING_BACK_HASH = ConstExprHashingUtils::HashString("ROLLING_BACK"); BlueprintRunState GetBlueprintRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return BlueprintRunState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/BlueprintStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/BlueprintStatus.cpp index fd517c7333f..5ccab6a0238 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/BlueprintStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/BlueprintStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BlueprintStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); BlueprintStatus GetBlueprintStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return BlueprintStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CatalogEncryptionMode.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CatalogEncryptionMode.cpp index 1dd6408925f..e1f703121d2 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CatalogEncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CatalogEncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CatalogEncryptionModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE-KMS"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE-KMS"); CatalogEncryptionMode GetCatalogEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CatalogEncryptionMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CloudWatchEncryptionMode.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CloudWatchEncryptionMode.cpp index 1672f9424f2..db003a4e8a2 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CloudWatchEncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CloudWatchEncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CloudWatchEncryptionModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE-KMS"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE-KMS"); CloudWatchEncryptionMode GetCloudWatchEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CloudWatchEncryptionMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ColumnStatisticsType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ColumnStatisticsType.cpp index 695b3a06d9a..caff1735ce7 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ColumnStatisticsType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ColumnStatisticsType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ColumnStatisticsTypeMapper { - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int DECIMAL_HASH = HashingUtils::HashString("DECIMAL"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int LONG_HASH = HashingUtils::HashString("LONG"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int BINARY_HASH = HashingUtils::HashString("BINARY"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t DECIMAL_HASH = ConstExprHashingUtils::HashString("DECIMAL"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t LONG_HASH = ConstExprHashingUtils::HashString("LONG"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t BINARY_HASH = ConstExprHashingUtils::HashString("BINARY"); ColumnStatisticsType GetColumnStatisticsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BOOLEAN_HASH) { return ColumnStatisticsType::BOOLEAN; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Comparator.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Comparator.cpp index 5b13955c0a1..4ffab22b77a 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Comparator.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Comparator.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ComparatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_EQUALS_HASH = HashingUtils::HashString("GREATER_THAN_EQUALS"); - static const int LESS_THAN_EQUALS_HASH = HashingUtils::HashString("LESS_THAN_EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_EQUALS_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_EQUALS"); + static constexpr uint32_t LESS_THAN_EQUALS_HASH = ConstExprHashingUtils::HashString("LESS_THAN_EQUALS"); Comparator GetComparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return Comparator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Compatibility.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Compatibility.cpp index a94cfbb3e84..cb2a62caa14 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Compatibility.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Compatibility.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CompatibilityMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int BACKWARD_HASH = HashingUtils::HashString("BACKWARD"); - static const int BACKWARD_ALL_HASH = HashingUtils::HashString("BACKWARD_ALL"); - static const int FORWARD_HASH = HashingUtils::HashString("FORWARD"); - static const int FORWARD_ALL_HASH = HashingUtils::HashString("FORWARD_ALL"); - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int FULL_ALL_HASH = HashingUtils::HashString("FULL_ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t BACKWARD_HASH = ConstExprHashingUtils::HashString("BACKWARD"); + static constexpr uint32_t BACKWARD_ALL_HASH = ConstExprHashingUtils::HashString("BACKWARD_ALL"); + static constexpr uint32_t FORWARD_HASH = ConstExprHashingUtils::HashString("FORWARD"); + static constexpr uint32_t FORWARD_ALL_HASH = ConstExprHashingUtils::HashString("FORWARD_ALL"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t FULL_ALL_HASH = ConstExprHashingUtils::HashString("FULL_ALL"); Compatibility GetCompatibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Compatibility::NONE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CompressionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CompressionType.cpp index 4973bdb7b65..51472af1446 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CompressionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompressionTypeMapper { - static const int gzip_HASH = HashingUtils::HashString("gzip"); - static const int bzip2_HASH = HashingUtils::HashString("bzip2"); + static constexpr uint32_t gzip_HASH = ConstExprHashingUtils::HashString("gzip"); + static constexpr uint32_t bzip2_HASH = ConstExprHashingUtils::HashString("bzip2"); CompressionType GetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gzip_HASH) { return CompressionType::gzip; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ConnectionPropertyKey.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ConnectionPropertyKey.cpp index ace682833e8..f86761025b5 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ConnectionPropertyKey.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ConnectionPropertyKey.cpp @@ -20,50 +20,50 @@ namespace Aws namespace ConnectionPropertyKeyMapper { - static const int HOST_HASH = HashingUtils::HashString("HOST"); - static const int PORT_HASH = HashingUtils::HashString("PORT"); - static const int USERNAME_HASH = HashingUtils::HashString("USERNAME"); - static const int PASSWORD_HASH = HashingUtils::HashString("PASSWORD"); - static const int ENCRYPTED_PASSWORD_HASH = HashingUtils::HashString("ENCRYPTED_PASSWORD"); - static const int JDBC_DRIVER_JAR_URI_HASH = HashingUtils::HashString("JDBC_DRIVER_JAR_URI"); - static const int JDBC_DRIVER_CLASS_NAME_HASH = HashingUtils::HashString("JDBC_DRIVER_CLASS_NAME"); - static const int JDBC_ENGINE_HASH = HashingUtils::HashString("JDBC_ENGINE"); - static const int JDBC_ENGINE_VERSION_HASH = HashingUtils::HashString("JDBC_ENGINE_VERSION"); - static const int CONFIG_FILES_HASH = HashingUtils::HashString("CONFIG_FILES"); - static const int INSTANCE_ID_HASH = HashingUtils::HashString("INSTANCE_ID"); - static const int JDBC_CONNECTION_URL_HASH = HashingUtils::HashString("JDBC_CONNECTION_URL"); - static const int JDBC_ENFORCE_SSL_HASH = HashingUtils::HashString("JDBC_ENFORCE_SSL"); - static const int CUSTOM_JDBC_CERT_HASH = HashingUtils::HashString("CUSTOM_JDBC_CERT"); - static const int SKIP_CUSTOM_JDBC_CERT_VALIDATION_HASH = HashingUtils::HashString("SKIP_CUSTOM_JDBC_CERT_VALIDATION"); - static const int CUSTOM_JDBC_CERT_STRING_HASH = HashingUtils::HashString("CUSTOM_JDBC_CERT_STRING"); - static const int CONNECTION_URL_HASH = HashingUtils::HashString("CONNECTION_URL"); - static const int KAFKA_BOOTSTRAP_SERVERS_HASH = HashingUtils::HashString("KAFKA_BOOTSTRAP_SERVERS"); - static const int KAFKA_SSL_ENABLED_HASH = HashingUtils::HashString("KAFKA_SSL_ENABLED"); - static const int KAFKA_CUSTOM_CERT_HASH = HashingUtils::HashString("KAFKA_CUSTOM_CERT"); - static const int KAFKA_SKIP_CUSTOM_CERT_VALIDATION_HASH = HashingUtils::HashString("KAFKA_SKIP_CUSTOM_CERT_VALIDATION"); - static const int KAFKA_CLIENT_KEYSTORE_HASH = HashingUtils::HashString("KAFKA_CLIENT_KEYSTORE"); - static const int KAFKA_CLIENT_KEYSTORE_PASSWORD_HASH = HashingUtils::HashString("KAFKA_CLIENT_KEYSTORE_PASSWORD"); - static const int KAFKA_CLIENT_KEY_PASSWORD_HASH = HashingUtils::HashString("KAFKA_CLIENT_KEY_PASSWORD"); - static const int ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD_HASH = HashingUtils::HashString("ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD"); - static const int ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD_HASH = HashingUtils::HashString("ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD"); - static const int SECRET_ID_HASH = HashingUtils::HashString("SECRET_ID"); - static const int CONNECTOR_URL_HASH = HashingUtils::HashString("CONNECTOR_URL"); - static const int CONNECTOR_TYPE_HASH = HashingUtils::HashString("CONNECTOR_TYPE"); - static const int CONNECTOR_CLASS_NAME_HASH = HashingUtils::HashString("CONNECTOR_CLASS_NAME"); - static const int KAFKA_SASL_MECHANISM_HASH = HashingUtils::HashString("KAFKA_SASL_MECHANISM"); - static const int KAFKA_SASL_SCRAM_USERNAME_HASH = HashingUtils::HashString("KAFKA_SASL_SCRAM_USERNAME"); - static const int KAFKA_SASL_SCRAM_PASSWORD_HASH = HashingUtils::HashString("KAFKA_SASL_SCRAM_PASSWORD"); - static const int KAFKA_SASL_SCRAM_SECRETS_ARN_HASH = HashingUtils::HashString("KAFKA_SASL_SCRAM_SECRETS_ARN"); - static const int ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD_HASH = HashingUtils::HashString("ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD"); - static const int KAFKA_SASL_GSSAPI_KEYTAB_HASH = HashingUtils::HashString("KAFKA_SASL_GSSAPI_KEYTAB"); - static const int KAFKA_SASL_GSSAPI_KRB5_CONF_HASH = HashingUtils::HashString("KAFKA_SASL_GSSAPI_KRB5_CONF"); - static const int KAFKA_SASL_GSSAPI_SERVICE_HASH = HashingUtils::HashString("KAFKA_SASL_GSSAPI_SERVICE"); - static const int KAFKA_SASL_GSSAPI_PRINCIPAL_HASH = HashingUtils::HashString("KAFKA_SASL_GSSAPI_PRINCIPAL"); + static constexpr uint32_t HOST_HASH = ConstExprHashingUtils::HashString("HOST"); + static constexpr uint32_t PORT_HASH = ConstExprHashingUtils::HashString("PORT"); + static constexpr uint32_t USERNAME_HASH = ConstExprHashingUtils::HashString("USERNAME"); + static constexpr uint32_t PASSWORD_HASH = ConstExprHashingUtils::HashString("PASSWORD"); + static constexpr uint32_t ENCRYPTED_PASSWORD_HASH = ConstExprHashingUtils::HashString("ENCRYPTED_PASSWORD"); + static constexpr uint32_t JDBC_DRIVER_JAR_URI_HASH = ConstExprHashingUtils::HashString("JDBC_DRIVER_JAR_URI"); + static constexpr uint32_t JDBC_DRIVER_CLASS_NAME_HASH = ConstExprHashingUtils::HashString("JDBC_DRIVER_CLASS_NAME"); + static constexpr uint32_t JDBC_ENGINE_HASH = ConstExprHashingUtils::HashString("JDBC_ENGINE"); + static constexpr uint32_t JDBC_ENGINE_VERSION_HASH = ConstExprHashingUtils::HashString("JDBC_ENGINE_VERSION"); + static constexpr uint32_t CONFIG_FILES_HASH = ConstExprHashingUtils::HashString("CONFIG_FILES"); + static constexpr uint32_t INSTANCE_ID_HASH = ConstExprHashingUtils::HashString("INSTANCE_ID"); + static constexpr uint32_t JDBC_CONNECTION_URL_HASH = ConstExprHashingUtils::HashString("JDBC_CONNECTION_URL"); + static constexpr uint32_t JDBC_ENFORCE_SSL_HASH = ConstExprHashingUtils::HashString("JDBC_ENFORCE_SSL"); + static constexpr uint32_t CUSTOM_JDBC_CERT_HASH = ConstExprHashingUtils::HashString("CUSTOM_JDBC_CERT"); + static constexpr uint32_t SKIP_CUSTOM_JDBC_CERT_VALIDATION_HASH = ConstExprHashingUtils::HashString("SKIP_CUSTOM_JDBC_CERT_VALIDATION"); + static constexpr uint32_t CUSTOM_JDBC_CERT_STRING_HASH = ConstExprHashingUtils::HashString("CUSTOM_JDBC_CERT_STRING"); + static constexpr uint32_t CONNECTION_URL_HASH = ConstExprHashingUtils::HashString("CONNECTION_URL"); + static constexpr uint32_t KAFKA_BOOTSTRAP_SERVERS_HASH = ConstExprHashingUtils::HashString("KAFKA_BOOTSTRAP_SERVERS"); + static constexpr uint32_t KAFKA_SSL_ENABLED_HASH = ConstExprHashingUtils::HashString("KAFKA_SSL_ENABLED"); + static constexpr uint32_t KAFKA_CUSTOM_CERT_HASH = ConstExprHashingUtils::HashString("KAFKA_CUSTOM_CERT"); + static constexpr uint32_t KAFKA_SKIP_CUSTOM_CERT_VALIDATION_HASH = ConstExprHashingUtils::HashString("KAFKA_SKIP_CUSTOM_CERT_VALIDATION"); + static constexpr uint32_t KAFKA_CLIENT_KEYSTORE_HASH = ConstExprHashingUtils::HashString("KAFKA_CLIENT_KEYSTORE"); + static constexpr uint32_t KAFKA_CLIENT_KEYSTORE_PASSWORD_HASH = ConstExprHashingUtils::HashString("KAFKA_CLIENT_KEYSTORE_PASSWORD"); + static constexpr uint32_t KAFKA_CLIENT_KEY_PASSWORD_HASH = ConstExprHashingUtils::HashString("KAFKA_CLIENT_KEY_PASSWORD"); + static constexpr uint32_t ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD_HASH = ConstExprHashingUtils::HashString("ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD"); + static constexpr uint32_t ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD_HASH = ConstExprHashingUtils::HashString("ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD"); + static constexpr uint32_t SECRET_ID_HASH = ConstExprHashingUtils::HashString("SECRET_ID"); + static constexpr uint32_t CONNECTOR_URL_HASH = ConstExprHashingUtils::HashString("CONNECTOR_URL"); + static constexpr uint32_t CONNECTOR_TYPE_HASH = ConstExprHashingUtils::HashString("CONNECTOR_TYPE"); + static constexpr uint32_t CONNECTOR_CLASS_NAME_HASH = ConstExprHashingUtils::HashString("CONNECTOR_CLASS_NAME"); + static constexpr uint32_t KAFKA_SASL_MECHANISM_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_MECHANISM"); + static constexpr uint32_t KAFKA_SASL_SCRAM_USERNAME_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_SCRAM_USERNAME"); + static constexpr uint32_t KAFKA_SASL_SCRAM_PASSWORD_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_SCRAM_PASSWORD"); + static constexpr uint32_t KAFKA_SASL_SCRAM_SECRETS_ARN_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_SCRAM_SECRETS_ARN"); + static constexpr uint32_t ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD_HASH = ConstExprHashingUtils::HashString("ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD"); + static constexpr uint32_t KAFKA_SASL_GSSAPI_KEYTAB_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_GSSAPI_KEYTAB"); + static constexpr uint32_t KAFKA_SASL_GSSAPI_KRB5_CONF_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_GSSAPI_KRB5_CONF"); + static constexpr uint32_t KAFKA_SASL_GSSAPI_SERVICE_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_GSSAPI_SERVICE"); + static constexpr uint32_t KAFKA_SASL_GSSAPI_PRINCIPAL_HASH = ConstExprHashingUtils::HashString("KAFKA_SASL_GSSAPI_PRINCIPAL"); ConnectionPropertyKey GetConnectionPropertyKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOST_HASH) { return ConnectionPropertyKey::HOST; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ConnectionType.cpp index d6acd210c34..42a4cbe213d 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ConnectionType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ConnectionTypeMapper { - static const int JDBC_HASH = HashingUtils::HashString("JDBC"); - static const int SFTP_HASH = HashingUtils::HashString("SFTP"); - static const int MONGODB_HASH = HashingUtils::HashString("MONGODB"); - static const int KAFKA_HASH = HashingUtils::HashString("KAFKA"); - static const int NETWORK_HASH = HashingUtils::HashString("NETWORK"); - static const int MARKETPLACE_HASH = HashingUtils::HashString("MARKETPLACE"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t JDBC_HASH = ConstExprHashingUtils::HashString("JDBC"); + static constexpr uint32_t SFTP_HASH = ConstExprHashingUtils::HashString("SFTP"); + static constexpr uint32_t MONGODB_HASH = ConstExprHashingUtils::HashString("MONGODB"); + static constexpr uint32_t KAFKA_HASH = ConstExprHashingUtils::HashString("KAFKA"); + static constexpr uint32_t NETWORK_HASH = ConstExprHashingUtils::HashString("NETWORK"); + static constexpr uint32_t MARKETPLACE_HASH = ConstExprHashingUtils::HashString("MARKETPLACE"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JDBC_HASH) { return ConnectionType::JDBC; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CrawlState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CrawlState.cpp index e8d6866314f..a35d79f3ffe 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CrawlState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CrawlState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CrawlStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); CrawlState GetCrawlStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return CrawlState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CrawlerHistoryState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CrawlerHistoryState.cpp index 60180079863..084b2a0e7ad 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CrawlerHistoryState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CrawlerHistoryState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CrawlerHistoryStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); CrawlerHistoryState GetCrawlerHistoryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return CrawlerHistoryState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CrawlerLineageSettings.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CrawlerLineageSettings.cpp index 04692c3e279..6f39aad1853 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CrawlerLineageSettings.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CrawlerLineageSettings.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CrawlerLineageSettingsMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); CrawlerLineageSettings GetCrawlerLineageSettingsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return CrawlerLineageSettings::ENABLE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CrawlerState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CrawlerState.cpp index 6dad96ec3ff..38d71a20899 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CrawlerState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CrawlerState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CrawlerStateMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); CrawlerState GetCrawlerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return CrawlerState::READY; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CsvHeaderOption.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CsvHeaderOption.cpp index 42943d973ba..7d39beabeb1 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CsvHeaderOption.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CsvHeaderOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CsvHeaderOptionMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int PRESENT_HASH = HashingUtils::HashString("PRESENT"); - static const int ABSENT_HASH = HashingUtils::HashString("ABSENT"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t PRESENT_HASH = ConstExprHashingUtils::HashString("PRESENT"); + static constexpr uint32_t ABSENT_HASH = ConstExprHashingUtils::HashString("ABSENT"); CsvHeaderOption GetCsvHeaderOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return CsvHeaderOption::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CsvSerdeOption.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CsvSerdeOption.cpp index b108431a378..30c5e3f65c6 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CsvSerdeOption.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CsvSerdeOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CsvSerdeOptionMapper { - static const int OpenCSVSerDe_HASH = HashingUtils::HashString("OpenCSVSerDe"); - static const int LazySimpleSerDe_HASH = HashingUtils::HashString("LazySimpleSerDe"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t OpenCSVSerDe_HASH = ConstExprHashingUtils::HashString("OpenCSVSerDe"); + static constexpr uint32_t LazySimpleSerDe_HASH = ConstExprHashingUtils::HashString("LazySimpleSerDe"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); CsvSerdeOption GetCsvSerdeOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OpenCSVSerDe_HASH) { return CsvSerdeOption::OpenCSVSerDe; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DQStopJobOnFailureTiming.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DQStopJobOnFailureTiming.cpp index c3828e6159c..61a402943dd 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DQStopJobOnFailureTiming.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DQStopJobOnFailureTiming.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DQStopJobOnFailureTimingMapper { - static const int Immediate_HASH = HashingUtils::HashString("Immediate"); - static const int AfterDataLoad_HASH = HashingUtils::HashString("AfterDataLoad"); + static constexpr uint32_t Immediate_HASH = ConstExprHashingUtils::HashString("Immediate"); + static constexpr uint32_t AfterDataLoad_HASH = ConstExprHashingUtils::HashString("AfterDataLoad"); DQStopJobOnFailureTiming GetDQStopJobOnFailureTimingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Immediate_HASH) { return DQStopJobOnFailureTiming::Immediate; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DQTransformOutput.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DQTransformOutput.cpp index 58bf2d996bc..e58dffb16bd 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DQTransformOutput.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DQTransformOutput.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DQTransformOutputMapper { - static const int PrimaryInput_HASH = HashingUtils::HashString("PrimaryInput"); - static const int EvaluationResults_HASH = HashingUtils::HashString("EvaluationResults"); + static constexpr uint32_t PrimaryInput_HASH = ConstExprHashingUtils::HashString("PrimaryInput"); + static constexpr uint32_t EvaluationResults_HASH = ConstExprHashingUtils::HashString("EvaluationResults"); DQTransformOutput GetDQTransformOutputForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PrimaryInput_HASH) { return DQTransformOutput::PrimaryInput; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DataFormat.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DataFormat.cpp index d23773977a9..f2b8969fdfc 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DataFormat.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DataFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataFormatMapper { - static const int AVRO_HASH = HashingUtils::HashString("AVRO"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int PROTOBUF_HASH = HashingUtils::HashString("PROTOBUF"); + static constexpr uint32_t AVRO_HASH = ConstExprHashingUtils::HashString("AVRO"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t PROTOBUF_HASH = ConstExprHashingUtils::HashString("PROTOBUF"); DataFormat GetDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVRO_HASH) { return DataFormat::AVRO; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityRuleResultStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityRuleResultStatus.cpp index 47db8dbdafb..19bcb7198d9 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DataQualityRuleResultStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DataQualityRuleResultStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataQualityRuleResultStatusMapper { - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); DataQualityRuleResultStatus GetDataQualityRuleResultStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_HASH) { return DataQualityRuleResultStatus::PASS; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DeleteBehavior.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DeleteBehavior.cpp index 18a31c7e16e..0fc71ce0e8d 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DeleteBehavior.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DeleteBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeleteBehaviorMapper { - static const int LOG_HASH = HashingUtils::HashString("LOG"); - static const int DELETE_FROM_DATABASE_HASH = HashingUtils::HashString("DELETE_FROM_DATABASE"); - static const int DEPRECATE_IN_DATABASE_HASH = HashingUtils::HashString("DEPRECATE_IN_DATABASE"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); + static constexpr uint32_t DELETE_FROM_DATABASE_HASH = ConstExprHashingUtils::HashString("DELETE_FROM_DATABASE"); + static constexpr uint32_t DEPRECATE_IN_DATABASE_HASH = ConstExprHashingUtils::HashString("DEPRECATE_IN_DATABASE"); DeleteBehavior GetDeleteBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOG_HASH) { return DeleteBehavior::LOG; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/DeltaTargetCompressionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/DeltaTargetCompressionType.cpp index 4f559474b1e..a0753e1a4ce 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/DeltaTargetCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/DeltaTargetCompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeltaTargetCompressionTypeMapper { - static const int uncompressed_HASH = HashingUtils::HashString("uncompressed"); - static const int snappy_HASH = HashingUtils::HashString("snappy"); + static constexpr uint32_t uncompressed_HASH = ConstExprHashingUtils::HashString("uncompressed"); + static constexpr uint32_t snappy_HASH = ConstExprHashingUtils::HashString("snappy"); DeltaTargetCompressionType GetDeltaTargetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == uncompressed_HASH) { return DeltaTargetCompressionType::uncompressed; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/EnableHybridValues.cpp b/generated/src/aws-cpp-sdk-glue/source/model/EnableHybridValues.cpp index 0fd7cf5692d..9d9bf521e2b 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/EnableHybridValues.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/EnableHybridValues.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnableHybridValuesMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); EnableHybridValues GetEnableHybridValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return EnableHybridValues::TRUE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ExecutionClass.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ExecutionClass.cpp index c6532d2050c..eb13f1e526c 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ExecutionClass.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ExecutionClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExecutionClassMapper { - static const int FLEX_HASH = HashingUtils::HashString("FLEX"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t FLEX_HASH = ConstExprHashingUtils::HashString("FLEX"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ExecutionClass GetExecutionClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLEX_HASH) { return ExecutionClass::FLEX; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ExistCondition.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ExistCondition.cpp index eacc4112641..01e475cf976 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ExistCondition.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ExistCondition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExistConditionMapper { - static const int MUST_EXIST_HASH = HashingUtils::HashString("MUST_EXIST"); - static const int NOT_EXIST_HASH = HashingUtils::HashString("NOT_EXIST"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t MUST_EXIST_HASH = ConstExprHashingUtils::HashString("MUST_EXIST"); + static constexpr uint32_t NOT_EXIST_HASH = ConstExprHashingUtils::HashString("NOT_EXIST"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ExistCondition GetExistConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MUST_EXIST_HASH) { return ExistCondition::MUST_EXIST; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/FederationSourceErrorCode.cpp b/generated/src/aws-cpp-sdk-glue/source/model/FederationSourceErrorCode.cpp index 7df87f4e23e..0edc968a1bd 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/FederationSourceErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/FederationSourceErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FederationSourceErrorCodeMapper { - static const int InvalidResponseException_HASH = HashingUtils::HashString("InvalidResponseException"); - static const int OperationTimeoutException_HASH = HashingUtils::HashString("OperationTimeoutException"); - static const int OperationNotSupportedException_HASH = HashingUtils::HashString("OperationNotSupportedException"); - static const int InternalServiceException_HASH = HashingUtils::HashString("InternalServiceException"); - static const int ThrottlingException_HASH = HashingUtils::HashString("ThrottlingException"); + static constexpr uint32_t InvalidResponseException_HASH = ConstExprHashingUtils::HashString("InvalidResponseException"); + static constexpr uint32_t OperationTimeoutException_HASH = ConstExprHashingUtils::HashString("OperationTimeoutException"); + static constexpr uint32_t OperationNotSupportedException_HASH = ConstExprHashingUtils::HashString("OperationNotSupportedException"); + static constexpr uint32_t InternalServiceException_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); + static constexpr uint32_t ThrottlingException_HASH = ConstExprHashingUtils::HashString("ThrottlingException"); FederationSourceErrorCode GetFederationSourceErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvalidResponseException_HASH) { return FederationSourceErrorCode::InvalidResponseException; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/FieldName.cpp b/generated/src/aws-cpp-sdk-glue/source/model/FieldName.cpp index b312376a36b..678eb09ba97 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/FieldName.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/FieldName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FieldNameMapper { - static const int CRAWL_ID_HASH = HashingUtils::HashString("CRAWL_ID"); - static const int STATE_HASH = HashingUtils::HashString("STATE"); - static const int START_TIME_HASH = HashingUtils::HashString("START_TIME"); - static const int END_TIME_HASH = HashingUtils::HashString("END_TIME"); - static const int DPU_HOUR_HASH = HashingUtils::HashString("DPU_HOUR"); + static constexpr uint32_t CRAWL_ID_HASH = ConstExprHashingUtils::HashString("CRAWL_ID"); + static constexpr uint32_t STATE_HASH = ConstExprHashingUtils::HashString("STATE"); + static constexpr uint32_t START_TIME_HASH = ConstExprHashingUtils::HashString("START_TIME"); + static constexpr uint32_t END_TIME_HASH = ConstExprHashingUtils::HashString("END_TIME"); + static constexpr uint32_t DPU_HOUR_HASH = ConstExprHashingUtils::HashString("DPU_HOUR"); FieldName GetFieldNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRAWL_ID_HASH) { return FieldName::CRAWL_ID; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/FilterLogicalOperator.cpp b/generated/src/aws-cpp-sdk-glue/source/model/FilterLogicalOperator.cpp index 304e3dc282a..466f0868265 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/FilterLogicalOperator.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/FilterLogicalOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterLogicalOperatorMapper { - static const int AND_HASH = HashingUtils::HashString("AND"); - static const int OR_HASH = HashingUtils::HashString("OR"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); + static constexpr uint32_t OR_HASH = ConstExprHashingUtils::HashString("OR"); FilterLogicalOperator GetFilterLogicalOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AND_HASH) { return FilterLogicalOperator::AND; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/FilterOperation.cpp b/generated/src/aws-cpp-sdk-glue/source/model/FilterOperation.cpp index 63bcb08bb38..e2b0c7f0c02 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/FilterOperation.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/FilterOperation.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FilterOperationMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int LTE_HASH = HashingUtils::HashString("LTE"); - static const int GTE_HASH = HashingUtils::HashString("GTE"); - static const int REGEX_HASH = HashingUtils::HashString("REGEX"); - static const int ISNULL_HASH = HashingUtils::HashString("ISNULL"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t LTE_HASH = ConstExprHashingUtils::HashString("LTE"); + static constexpr uint32_t GTE_HASH = ConstExprHashingUtils::HashString("GTE"); + static constexpr uint32_t REGEX_HASH = ConstExprHashingUtils::HashString("REGEX"); + static constexpr uint32_t ISNULL_HASH = ConstExprHashingUtils::HashString("ISNULL"); FilterOperation GetFilterOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return FilterOperation::EQ; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/FilterOperator.cpp b/generated/src/aws-cpp-sdk-glue/source/model/FilterOperator.cpp index 7bb09c9b64c..c50d2230dca 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/FilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/FilterOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FilterOperatorMapper { - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); FilterOperator GetFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GT_HASH) { return FilterOperator::GT; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/FilterValueType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/FilterValueType.cpp index c041579059f..e12d2fd6267 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/FilterValueType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/FilterValueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterValueTypeMapper { - static const int COLUMNEXTRACTED_HASH = HashingUtils::HashString("COLUMNEXTRACTED"); - static const int CONSTANT_HASH = HashingUtils::HashString("CONSTANT"); + static constexpr uint32_t COLUMNEXTRACTED_HASH = ConstExprHashingUtils::HashString("COLUMNEXTRACTED"); + static constexpr uint32_t CONSTANT_HASH = ConstExprHashingUtils::HashString("CONSTANT"); FilterValueType GetFilterValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMNEXTRACTED_HASH) { return FilterValueType::COLUMNEXTRACTED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/GlueRecordType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/GlueRecordType.cpp index a0f66ba7550..8b1292a4687 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/GlueRecordType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/GlueRecordType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace GlueRecordTypeMapper { - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int INT_HASH = HashingUtils::HashString("INT"); - static const int FLOAT_HASH = HashingUtils::HashString("FLOAT"); - static const int LONG_HASH = HashingUtils::HashString("LONG"); - static const int BIGDECIMAL_HASH = HashingUtils::HashString("BIGDECIMAL"); - static const int BYTE_HASH = HashingUtils::HashString("BYTE"); - static const int SHORT_HASH = HashingUtils::HashString("SHORT"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t INT_HASH = ConstExprHashingUtils::HashString("INT"); + static constexpr uint32_t FLOAT_HASH = ConstExprHashingUtils::HashString("FLOAT"); + static constexpr uint32_t LONG_HASH = ConstExprHashingUtils::HashString("LONG"); + static constexpr uint32_t BIGDECIMAL_HASH = ConstExprHashingUtils::HashString("BIGDECIMAL"); + static constexpr uint32_t BYTE_HASH = ConstExprHashingUtils::HashString("BYTE"); + static constexpr uint32_t SHORT_HASH = ConstExprHashingUtils::HashString("SHORT"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); GlueRecordType GetGlueRecordTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATE_HASH) { return GlueRecordType::DATE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/HudiTargetCompressionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/HudiTargetCompressionType.cpp index 5a073f5ef0a..47c548f7628 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/HudiTargetCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/HudiTargetCompressionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HudiTargetCompressionTypeMapper { - static const int gzip_HASH = HashingUtils::HashString("gzip"); - static const int lzo_HASH = HashingUtils::HashString("lzo"); - static const int uncompressed_HASH = HashingUtils::HashString("uncompressed"); - static const int snappy_HASH = HashingUtils::HashString("snappy"); + static constexpr uint32_t gzip_HASH = ConstExprHashingUtils::HashString("gzip"); + static constexpr uint32_t lzo_HASH = ConstExprHashingUtils::HashString("lzo"); + static constexpr uint32_t uncompressed_HASH = ConstExprHashingUtils::HashString("uncompressed"); + static constexpr uint32_t snappy_HASH = ConstExprHashingUtils::HashString("snappy"); HudiTargetCompressionType GetHudiTargetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gzip_HASH) { return HudiTargetCompressionType::gzip; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JDBCConnectionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JDBCConnectionType.cpp index 241db868f83..f7b404b5ad6 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JDBCConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JDBCConnectionType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace JDBCConnectionTypeMapper { - static const int sqlserver_HASH = HashingUtils::HashString("sqlserver"); - static const int mysql_HASH = HashingUtils::HashString("mysql"); - static const int oracle_HASH = HashingUtils::HashString("oracle"); - static const int postgresql_HASH = HashingUtils::HashString("postgresql"); - static const int redshift_HASH = HashingUtils::HashString("redshift"); + static constexpr uint32_t sqlserver_HASH = ConstExprHashingUtils::HashString("sqlserver"); + static constexpr uint32_t mysql_HASH = ConstExprHashingUtils::HashString("mysql"); + static constexpr uint32_t oracle_HASH = ConstExprHashingUtils::HashString("oracle"); + static constexpr uint32_t postgresql_HASH = ConstExprHashingUtils::HashString("postgresql"); + static constexpr uint32_t redshift_HASH = ConstExprHashingUtils::HashString("redshift"); JDBCConnectionType GetJDBCConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sqlserver_HASH) { return JDBCConnectionType::sqlserver; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JDBCDataType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JDBCDataType.cpp index 77544ba27e7..c19cf62cae0 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JDBCDataType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JDBCDataType.cpp @@ -20,50 +20,50 @@ namespace Aws namespace JDBCDataTypeMapper { - static const int ARRAY_HASH = HashingUtils::HashString("ARRAY"); - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int BINARY_HASH = HashingUtils::HashString("BINARY"); - static const int BIT_HASH = HashingUtils::HashString("BIT"); - static const int BLOB_HASH = HashingUtils::HashString("BLOB"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int CHAR__HASH = HashingUtils::HashString("CHAR"); - static const int CLOB_HASH = HashingUtils::HashString("CLOB"); - static const int DATALINK_HASH = HashingUtils::HashString("DATALINK"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int DECIMAL_HASH = HashingUtils::HashString("DECIMAL"); - static const int DISTINCT_HASH = HashingUtils::HashString("DISTINCT"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int FLOAT_HASH = HashingUtils::HashString("FLOAT"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int JAVA_OBJECT_HASH = HashingUtils::HashString("JAVA_OBJECT"); - static const int LONGNVARCHAR_HASH = HashingUtils::HashString("LONGNVARCHAR"); - static const int LONGVARBINARY_HASH = HashingUtils::HashString("LONGVARBINARY"); - static const int LONGVARCHAR_HASH = HashingUtils::HashString("LONGVARCHAR"); - static const int NCHAR_HASH = HashingUtils::HashString("NCHAR"); - static const int NCLOB_HASH = HashingUtils::HashString("NCLOB"); - static const int NULL__HASH = HashingUtils::HashString("NULL"); - static const int NUMERIC_HASH = HashingUtils::HashString("NUMERIC"); - static const int NVARCHAR_HASH = HashingUtils::HashString("NVARCHAR"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int REAL_HASH = HashingUtils::HashString("REAL"); - static const int REF_HASH = HashingUtils::HashString("REF"); - static const int REF_CURSOR_HASH = HashingUtils::HashString("REF_CURSOR"); - static const int ROWID_HASH = HashingUtils::HashString("ROWID"); - static const int SMALLINT_HASH = HashingUtils::HashString("SMALLINT"); - static const int SQLXML_HASH = HashingUtils::HashString("SQLXML"); - static const int STRUCT_HASH = HashingUtils::HashString("STRUCT"); - static const int TIME_HASH = HashingUtils::HashString("TIME"); - static const int TIME_WITH_TIMEZONE_HASH = HashingUtils::HashString("TIME_WITH_TIMEZONE"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int TIMESTAMP_WITH_TIMEZONE_HASH = HashingUtils::HashString("TIMESTAMP_WITH_TIMEZONE"); - static const int TINYINT_HASH = HashingUtils::HashString("TINYINT"); - static const int VARBINARY_HASH = HashingUtils::HashString("VARBINARY"); - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); + static constexpr uint32_t ARRAY_HASH = ConstExprHashingUtils::HashString("ARRAY"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t BINARY_HASH = ConstExprHashingUtils::HashString("BINARY"); + static constexpr uint32_t BIT_HASH = ConstExprHashingUtils::HashString("BIT"); + static constexpr uint32_t BLOB_HASH = ConstExprHashingUtils::HashString("BLOB"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t CHAR__HASH = ConstExprHashingUtils::HashString("CHAR"); + static constexpr uint32_t CLOB_HASH = ConstExprHashingUtils::HashString("CLOB"); + static constexpr uint32_t DATALINK_HASH = ConstExprHashingUtils::HashString("DATALINK"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t DECIMAL_HASH = ConstExprHashingUtils::HashString("DECIMAL"); + static constexpr uint32_t DISTINCT_HASH = ConstExprHashingUtils::HashString("DISTINCT"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t FLOAT_HASH = ConstExprHashingUtils::HashString("FLOAT"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t JAVA_OBJECT_HASH = ConstExprHashingUtils::HashString("JAVA_OBJECT"); + static constexpr uint32_t LONGNVARCHAR_HASH = ConstExprHashingUtils::HashString("LONGNVARCHAR"); + static constexpr uint32_t LONGVARBINARY_HASH = ConstExprHashingUtils::HashString("LONGVARBINARY"); + static constexpr uint32_t LONGVARCHAR_HASH = ConstExprHashingUtils::HashString("LONGVARCHAR"); + static constexpr uint32_t NCHAR_HASH = ConstExprHashingUtils::HashString("NCHAR"); + static constexpr uint32_t NCLOB_HASH = ConstExprHashingUtils::HashString("NCLOB"); + static constexpr uint32_t NULL__HASH = ConstExprHashingUtils::HashString("NULL"); + static constexpr uint32_t NUMERIC_HASH = ConstExprHashingUtils::HashString("NUMERIC"); + static constexpr uint32_t NVARCHAR_HASH = ConstExprHashingUtils::HashString("NVARCHAR"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t REAL_HASH = ConstExprHashingUtils::HashString("REAL"); + static constexpr uint32_t REF_HASH = ConstExprHashingUtils::HashString("REF"); + static constexpr uint32_t REF_CURSOR_HASH = ConstExprHashingUtils::HashString("REF_CURSOR"); + static constexpr uint32_t ROWID_HASH = ConstExprHashingUtils::HashString("ROWID"); + static constexpr uint32_t SMALLINT_HASH = ConstExprHashingUtils::HashString("SMALLINT"); + static constexpr uint32_t SQLXML_HASH = ConstExprHashingUtils::HashString("SQLXML"); + static constexpr uint32_t STRUCT_HASH = ConstExprHashingUtils::HashString("STRUCT"); + static constexpr uint32_t TIME_HASH = ConstExprHashingUtils::HashString("TIME"); + static constexpr uint32_t TIME_WITH_TIMEZONE_HASH = ConstExprHashingUtils::HashString("TIME_WITH_TIMEZONE"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t TIMESTAMP_WITH_TIMEZONE_HASH = ConstExprHashingUtils::HashString("TIMESTAMP_WITH_TIMEZONE"); + static constexpr uint32_t TINYINT_HASH = ConstExprHashingUtils::HashString("TINYINT"); + static constexpr uint32_t VARBINARY_HASH = ConstExprHashingUtils::HashString("VARBINARY"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); JDBCDataType GetJDBCDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARRAY_HASH) { return JDBCDataType::ARRAY; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JdbcMetadataEntry.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JdbcMetadataEntry.cpp index 516aecf14d3..f324eda59d5 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JdbcMetadataEntry.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JdbcMetadataEntry.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JdbcMetadataEntryMapper { - static const int COMMENTS_HASH = HashingUtils::HashString("COMMENTS"); - static const int RAWTYPES_HASH = HashingUtils::HashString("RAWTYPES"); + static constexpr uint32_t COMMENTS_HASH = ConstExprHashingUtils::HashString("COMMENTS"); + static constexpr uint32_t RAWTYPES_HASH = ConstExprHashingUtils::HashString("RAWTYPES"); JdbcMetadataEntry GetJdbcMetadataEntryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMENTS_HASH) { return JdbcMetadataEntry::COMMENTS; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JobBookmarksEncryptionMode.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JobBookmarksEncryptionMode.cpp index f1cac6c76aa..19a46bb8669 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JobBookmarksEncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JobBookmarksEncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobBookmarksEncryptionModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int CSE_KMS_HASH = HashingUtils::HashString("CSE-KMS"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t CSE_KMS_HASH = ConstExprHashingUtils::HashString("CSE-KMS"); JobBookmarksEncryptionMode GetJobBookmarksEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return JobBookmarksEncryptionMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp index 6d41ea0cc3e..20a7b9b72ca 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace JobRunStateMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int WAITING_HASH = HashingUtils::HashString("WAITING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t WAITING_HASH = ConstExprHashingUtils::HashString("WAITING"); JobRunState GetJobRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return JobRunState::STARTING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JoinType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JoinType.cpp index f5a74f76bb3..c17d723691e 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JoinType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JoinType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JoinTypeMapper { - static const int equijoin_HASH = HashingUtils::HashString("equijoin"); - static const int left_HASH = HashingUtils::HashString("left"); - static const int right_HASH = HashingUtils::HashString("right"); - static const int outer_HASH = HashingUtils::HashString("outer"); - static const int leftsemi_HASH = HashingUtils::HashString("leftsemi"); - static const int leftanti_HASH = HashingUtils::HashString("leftanti"); + static constexpr uint32_t equijoin_HASH = ConstExprHashingUtils::HashString("equijoin"); + static constexpr uint32_t left_HASH = ConstExprHashingUtils::HashString("left"); + static constexpr uint32_t right_HASH = ConstExprHashingUtils::HashString("right"); + static constexpr uint32_t outer_HASH = ConstExprHashingUtils::HashString("outer"); + static constexpr uint32_t leftsemi_HASH = ConstExprHashingUtils::HashString("leftsemi"); + static constexpr uint32_t leftanti_HASH = ConstExprHashingUtils::HashString("leftanti"); JoinType GetJoinTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == equijoin_HASH) { return JoinType::equijoin; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Language.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Language.cpp index cbf6e4cefb3..4d07fac14cf 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Language.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Language.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LanguageMapper { - static const int PYTHON_HASH = HashingUtils::HashString("PYTHON"); - static const int SCALA_HASH = HashingUtils::HashString("SCALA"); + static constexpr uint32_t PYTHON_HASH = ConstExprHashingUtils::HashString("PYTHON"); + static constexpr uint32_t SCALA_HASH = ConstExprHashingUtils::HashString("SCALA"); Language GetLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PYTHON_HASH) { return Language::PYTHON; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/LastCrawlStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/LastCrawlStatus.cpp index 42d6517452b..7925ad16a47 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/LastCrawlStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/LastCrawlStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LastCrawlStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LastCrawlStatus GetLastCrawlStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return LastCrawlStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Logical.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Logical.cpp index c42c4336226..c75c85b9b5c 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Logical.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Logical.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogicalMapper { - static const int AND_HASH = HashingUtils::HashString("AND"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); Logical GetLogicalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AND_HASH) { return Logical::AND; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/LogicalOperator.cpp b/generated/src/aws-cpp-sdk-glue/source/model/LogicalOperator.cpp index 134c6041f10..f79dd2d6ecb 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/LogicalOperator.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/LogicalOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LogicalOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); LogicalOperator GetLogicalOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return LogicalOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/MLUserDataEncryptionModeString.cpp b/generated/src/aws-cpp-sdk-glue/source/model/MLUserDataEncryptionModeString.cpp index 8221de65795..52b166eb072 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/MLUserDataEncryptionModeString.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/MLUserDataEncryptionModeString.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MLUserDataEncryptionModeStringMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE-KMS"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE-KMS"); MLUserDataEncryptionModeString GetMLUserDataEncryptionModeStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return MLUserDataEncryptionModeString::DISABLED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/MetadataOperation.cpp b/generated/src/aws-cpp-sdk-glue/source/model/MetadataOperation.cpp index 472ab21c986..1638dbbad07 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/MetadataOperation.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/MetadataOperation.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MetadataOperationMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); MetadataOperation GetMetadataOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return MetadataOperation::CREATE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/NodeType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/NodeType.cpp index 775e0aa75de..4cce565a3e6 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/NodeType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/NodeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NodeTypeMapper { - static const int CRAWLER_HASH = HashingUtils::HashString("CRAWLER"); - static const int JOB_HASH = HashingUtils::HashString("JOB"); - static const int TRIGGER_HASH = HashingUtils::HashString("TRIGGER"); + static constexpr uint32_t CRAWLER_HASH = ConstExprHashingUtils::HashString("CRAWLER"); + static constexpr uint32_t JOB_HASH = ConstExprHashingUtils::HashString("JOB"); + static constexpr uint32_t TRIGGER_HASH = ConstExprHashingUtils::HashString("TRIGGER"); NodeType GetNodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRAWLER_HASH) { return NodeType::CRAWLER; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ParamType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ParamType.cpp index 73f54be1aca..de1d6e01985 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ParamType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ParamType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ParamTypeMapper { - static const int str_HASH = HashingUtils::HashString("str"); - static const int int__HASH = HashingUtils::HashString("int"); - static const int float__HASH = HashingUtils::HashString("float"); - static const int complex_HASH = HashingUtils::HashString("complex"); - static const int bool__HASH = HashingUtils::HashString("bool"); - static const int list_HASH = HashingUtils::HashString("list"); - static const int null_HASH = HashingUtils::HashString("null"); + static constexpr uint32_t str_HASH = ConstExprHashingUtils::HashString("str"); + static constexpr uint32_t int__HASH = ConstExprHashingUtils::HashString("int"); + static constexpr uint32_t float__HASH = ConstExprHashingUtils::HashString("float"); + static constexpr uint32_t complex_HASH = ConstExprHashingUtils::HashString("complex"); + static constexpr uint32_t bool__HASH = ConstExprHashingUtils::HashString("bool"); + static constexpr uint32_t list_HASH = ConstExprHashingUtils::HashString("list"); + static constexpr uint32_t null_HASH = ConstExprHashingUtils::HashString("null"); ParamType GetParamTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == str_HASH) { return ParamType::str; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ParquetCompressionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ParquetCompressionType.cpp index 2766de9f315..42221a53c80 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ParquetCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ParquetCompressionType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ParquetCompressionTypeMapper { - static const int snappy_HASH = HashingUtils::HashString("snappy"); - static const int lzo_HASH = HashingUtils::HashString("lzo"); - static const int gzip_HASH = HashingUtils::HashString("gzip"); - static const int uncompressed_HASH = HashingUtils::HashString("uncompressed"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t snappy_HASH = ConstExprHashingUtils::HashString("snappy"); + static constexpr uint32_t lzo_HASH = ConstExprHashingUtils::HashString("lzo"); + static constexpr uint32_t gzip_HASH = ConstExprHashingUtils::HashString("gzip"); + static constexpr uint32_t uncompressed_HASH = ConstExprHashingUtils::HashString("uncompressed"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); ParquetCompressionType GetParquetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == snappy_HASH) { return ParquetCompressionType::snappy; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/PartitionIndexStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/PartitionIndexStatus.cpp index 5bfd8623ce3..a0cdbc6412e 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/PartitionIndexStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/PartitionIndexStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PartitionIndexStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); PartitionIndexStatus GetPartitionIndexStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return PartitionIndexStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Permission.cpp index fd2eecf2d23..82abf27e4b1 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Permission.cpp @@ -20,20 +20,20 @@ namespace Aws namespace PermissionMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int SELECT_HASH = HashingUtils::HashString("SELECT"); - static const int ALTER_HASH = HashingUtils::HashString("ALTER"); - static const int DROP_HASH = HashingUtils::HashString("DROP"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int CREATE_DATABASE_HASH = HashingUtils::HashString("CREATE_DATABASE"); - static const int CREATE_TABLE_HASH = HashingUtils::HashString("CREATE_TABLE"); - static const int DATA_LOCATION_ACCESS_HASH = HashingUtils::HashString("DATA_LOCATION_ACCESS"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t SELECT_HASH = ConstExprHashingUtils::HashString("SELECT"); + static constexpr uint32_t ALTER_HASH = ConstExprHashingUtils::HashString("ALTER"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t CREATE_DATABASE_HASH = ConstExprHashingUtils::HashString("CREATE_DATABASE"); + static constexpr uint32_t CREATE_TABLE_HASH = ConstExprHashingUtils::HashString("CREATE_TABLE"); + static constexpr uint32_t DATA_LOCATION_ACCESS_HASH = ConstExprHashingUtils::HashString("DATA_LOCATION_ACCESS"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return Permission::ALL; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/PermissionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/PermissionType.cpp index 5f555d36b04..75735b9634c 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/PermissionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/PermissionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PermissionTypeMapper { - static const int COLUMN_PERMISSION_HASH = HashingUtils::HashString("COLUMN_PERMISSION"); - static const int CELL_FILTER_PERMISSION_HASH = HashingUtils::HashString("CELL_FILTER_PERMISSION"); - static const int NESTED_PERMISSION_HASH = HashingUtils::HashString("NESTED_PERMISSION"); - static const int NESTED_CELL_PERMISSION_HASH = HashingUtils::HashString("NESTED_CELL_PERMISSION"); + static constexpr uint32_t COLUMN_PERMISSION_HASH = ConstExprHashingUtils::HashString("COLUMN_PERMISSION"); + static constexpr uint32_t CELL_FILTER_PERMISSION_HASH = ConstExprHashingUtils::HashString("CELL_FILTER_PERMISSION"); + static constexpr uint32_t NESTED_PERMISSION_HASH = ConstExprHashingUtils::HashString("NESTED_PERMISSION"); + static constexpr uint32_t NESTED_CELL_PERMISSION_HASH = ConstExprHashingUtils::HashString("NESTED_CELL_PERMISSION"); PermissionType GetPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMN_PERMISSION_HASH) { return PermissionType::COLUMN_PERMISSION; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/PiiType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/PiiType.cpp index 6ca1f8d8caf..5e4a14ed043 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/PiiType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/PiiType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PiiTypeMapper { - static const int RowAudit_HASH = HashingUtils::HashString("RowAudit"); - static const int RowMasking_HASH = HashingUtils::HashString("RowMasking"); - static const int ColumnAudit_HASH = HashingUtils::HashString("ColumnAudit"); - static const int ColumnMasking_HASH = HashingUtils::HashString("ColumnMasking"); + static constexpr uint32_t RowAudit_HASH = ConstExprHashingUtils::HashString("RowAudit"); + static constexpr uint32_t RowMasking_HASH = ConstExprHashingUtils::HashString("RowMasking"); + static constexpr uint32_t ColumnAudit_HASH = ConstExprHashingUtils::HashString("ColumnAudit"); + static constexpr uint32_t ColumnMasking_HASH = ConstExprHashingUtils::HashString("ColumnMasking"); PiiType GetPiiTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RowAudit_HASH) { return PiiType::RowAudit; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/PrincipalType.cpp index f11e83d539a..027f916eb69 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/PrincipalType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PrincipalTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int ROLE_HASH = HashingUtils::HashString("ROLE"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t ROLE_HASH = ConstExprHashingUtils::HashString("ROLE"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return PrincipalType::USER; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/QuoteChar.cpp b/generated/src/aws-cpp-sdk-glue/source/model/QuoteChar.cpp index 3e1d78ff00e..33da9cac9f9 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/QuoteChar.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/QuoteChar.cpp @@ -20,15 +20,15 @@ namespace Aws namespace QuoteCharMapper { - static const int quote_HASH = HashingUtils::HashString("quote"); - static const int quillemet_HASH = HashingUtils::HashString("quillemet"); - static const int single_quote_HASH = HashingUtils::HashString("single_quote"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); + static constexpr uint32_t quote_HASH = ConstExprHashingUtils::HashString("quote"); + static constexpr uint32_t quillemet_HASH = ConstExprHashingUtils::HashString("quillemet"); + static constexpr uint32_t single_quote_HASH = ConstExprHashingUtils::HashString("single_quote"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); QuoteChar GetQuoteCharForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == quote_HASH) { return QuoteChar::quote; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/RecrawlBehavior.cpp b/generated/src/aws-cpp-sdk-glue/source/model/RecrawlBehavior.cpp index 721aa2887a1..b8cf4676fed 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/RecrawlBehavior.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/RecrawlBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecrawlBehaviorMapper { - static const int CRAWL_EVERYTHING_HASH = HashingUtils::HashString("CRAWL_EVERYTHING"); - static const int CRAWL_NEW_FOLDERS_ONLY_HASH = HashingUtils::HashString("CRAWL_NEW_FOLDERS_ONLY"); - static const int CRAWL_EVENT_MODE_HASH = HashingUtils::HashString("CRAWL_EVENT_MODE"); + static constexpr uint32_t CRAWL_EVERYTHING_HASH = ConstExprHashingUtils::HashString("CRAWL_EVERYTHING"); + static constexpr uint32_t CRAWL_NEW_FOLDERS_ONLY_HASH = ConstExprHashingUtils::HashString("CRAWL_NEW_FOLDERS_ONLY"); + static constexpr uint32_t CRAWL_EVENT_MODE_HASH = ConstExprHashingUtils::HashString("CRAWL_EVENT_MODE"); RecrawlBehavior GetRecrawlBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRAWL_EVERYTHING_HASH) { return RecrawlBehavior::CRAWL_EVERYTHING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/RegistryStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/RegistryStatus.cpp index 57e86923e26..0aa3ae6d354 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/RegistryStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/RegistryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RegistryStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); RegistryStatus GetRegistryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return RegistryStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ResourceShareType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ResourceShareType.cpp index 71820c49e3f..ebdae955f9b 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ResourceShareType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ResourceShareType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceShareTypeMapper { - static const int FOREIGN_HASH = HashingUtils::HashString("FOREIGN"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int FEDERATED_HASH = HashingUtils::HashString("FEDERATED"); + static constexpr uint32_t FOREIGN_HASH = ConstExprHashingUtils::HashString("FOREIGN"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t FEDERATED_HASH = ConstExprHashingUtils::HashString("FEDERATED"); ResourceShareType GetResourceShareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOREIGN_HASH) { return ResourceShareType::FOREIGN; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ResourceType.cpp index 1fb9b2d8802..2bb5d398917 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceTypeMapper { - static const int JAR_HASH = HashingUtils::HashString("JAR"); - static const int FILE_HASH = HashingUtils::HashString("FILE"); - static const int ARCHIVE_HASH = HashingUtils::HashString("ARCHIVE"); + static constexpr uint32_t JAR_HASH = ConstExprHashingUtils::HashString("JAR"); + static constexpr uint32_t FILE_HASH = ConstExprHashingUtils::HashString("FILE"); + static constexpr uint32_t ARCHIVE_HASH = ConstExprHashingUtils::HashString("ARCHIVE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JAR_HASH) { return ResourceType::JAR; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/S3EncryptionMode.cpp b/generated/src/aws-cpp-sdk-glue/source/model/S3EncryptionMode.cpp index 9a41b8bed66..0addb5782d1 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/S3EncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/S3EncryptionMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace S3EncryptionModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE-KMS"); - static const int SSE_S3_HASH = HashingUtils::HashString("SSE-S3"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE-KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE-S3"); S3EncryptionMode GetS3EncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return S3EncryptionMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/ScheduleState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/ScheduleState.cpp index 153fa02409e..cf9ab9d7b25 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/ScheduleState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/ScheduleState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScheduleStateMapper { - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int NOT_SCHEDULED_HASH = HashingUtils::HashString("NOT_SCHEDULED"); - static const int TRANSITIONING_HASH = HashingUtils::HashString("TRANSITIONING"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t NOT_SCHEDULED_HASH = ConstExprHashingUtils::HashString("NOT_SCHEDULED"); + static constexpr uint32_t TRANSITIONING_HASH = ConstExprHashingUtils::HashString("TRANSITIONING"); ScheduleState GetScheduleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_HASH) { return ScheduleState::SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SchemaDiffType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SchemaDiffType.cpp index 4d9883ec5b4..d87cef65b7d 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SchemaDiffType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SchemaDiffType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SchemaDiffTypeMapper { - static const int SYNTAX_DIFF_HASH = HashingUtils::HashString("SYNTAX_DIFF"); + static constexpr uint32_t SYNTAX_DIFF_HASH = ConstExprHashingUtils::HashString("SYNTAX_DIFF"); SchemaDiffType GetSchemaDiffTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYNTAX_DIFF_HASH) { return SchemaDiffType::SYNTAX_DIFF; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SchemaStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SchemaStatus.cpp index b5c62e09cc6..57a2a2f7dfb 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SchemaStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SchemaStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SchemaStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); SchemaStatus GetSchemaStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return SchemaStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SchemaVersionStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SchemaVersionStatus.cpp index 3650b2b2181..3fdc097ea65 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SchemaVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SchemaVersionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SchemaVersionStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILURE_HASH = HashingUtils::HashString("FAILURE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILURE_HASH = ConstExprHashingUtils::HashString("FAILURE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); SchemaVersionStatus GetSchemaVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return SchemaVersionStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Separator.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Separator.cpp index 11300d9987d..8bb1b7c4073 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Separator.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Separator.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SeparatorMapper { - static const int comma_HASH = HashingUtils::HashString("comma"); - static const int ctrla_HASH = HashingUtils::HashString("ctrla"); - static const int pipe_HASH = HashingUtils::HashString("pipe"); - static const int semicolon_HASH = HashingUtils::HashString("semicolon"); - static const int tab_HASH = HashingUtils::HashString("tab"); + static constexpr uint32_t comma_HASH = ConstExprHashingUtils::HashString("comma"); + static constexpr uint32_t ctrla_HASH = ConstExprHashingUtils::HashString("ctrla"); + static constexpr uint32_t pipe_HASH = ConstExprHashingUtils::HashString("pipe"); + static constexpr uint32_t semicolon_HASH = ConstExprHashingUtils::HashString("semicolon"); + static constexpr uint32_t tab_HASH = ConstExprHashingUtils::HashString("tab"); Separator GetSeparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == comma_HASH) { return Separator::comma; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SessionStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SessionStatus.cpp index 4c03f7afcd0..2e2e39086f3 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SessionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SessionStatusMapper { - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); SessionStatus GetSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONING_HASH) { return SessionStatus::PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Sort.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Sort.cpp index 10402e325a3..4cfa8f78f4e 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Sort.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Sort.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); Sort GetSortForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return Sort::ASC; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SortDirectionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SortDirectionType.cpp index 872ee1f80ca..68c697ccdbd 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SortDirectionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SortDirectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortDirectionTypeMapper { - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); SortDirectionType GetSortDirectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESCENDING_HASH) { return SortDirectionType::DESCENDING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SourceControlAuthStrategy.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SourceControlAuthStrategy.cpp index b9b0dc67e58..c604df55755 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SourceControlAuthStrategy.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SourceControlAuthStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SourceControlAuthStrategyMapper { - static const int PERSONAL_ACCESS_TOKEN_HASH = HashingUtils::HashString("PERSONAL_ACCESS_TOKEN"); - static const int AWS_SECRETS_MANAGER_HASH = HashingUtils::HashString("AWS_SECRETS_MANAGER"); + static constexpr uint32_t PERSONAL_ACCESS_TOKEN_HASH = ConstExprHashingUtils::HashString("PERSONAL_ACCESS_TOKEN"); + static constexpr uint32_t AWS_SECRETS_MANAGER_HASH = ConstExprHashingUtils::HashString("AWS_SECRETS_MANAGER"); SourceControlAuthStrategy GetSourceControlAuthStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSONAL_ACCESS_TOKEN_HASH) { return SourceControlAuthStrategy::PERSONAL_ACCESS_TOKEN; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/SourceControlProvider.cpp b/generated/src/aws-cpp-sdk-glue/source/model/SourceControlProvider.cpp index 6bcabd12f1e..b993a8d6393 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/SourceControlProvider.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/SourceControlProvider.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SourceControlProviderMapper { - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int GITLAB_HASH = HashingUtils::HashString("GITLAB"); - static const int BITBUCKET_HASH = HashingUtils::HashString("BITBUCKET"); - static const int AWS_CODE_COMMIT_HASH = HashingUtils::HashString("AWS_CODE_COMMIT"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t GITLAB_HASH = ConstExprHashingUtils::HashString("GITLAB"); + static constexpr uint32_t BITBUCKET_HASH = ConstExprHashingUtils::HashString("BITBUCKET"); + static constexpr uint32_t AWS_CODE_COMMIT_HASH = ConstExprHashingUtils::HashString("AWS_CODE_COMMIT"); SourceControlProvider GetSourceControlProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HASH) { return SourceControlProvider::GITHUB; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/StartingPosition.cpp b/generated/src/aws-cpp-sdk-glue/source/model/StartingPosition.cpp index 9f49bc93499..4a1106592cf 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/StartingPosition.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/StartingPosition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StartingPositionMapper { - static const int latest_HASH = HashingUtils::HashString("latest"); - static const int trim_horizon_HASH = HashingUtils::HashString("trim_horizon"); - static const int earliest_HASH = HashingUtils::HashString("earliest"); - static const int timestamp_HASH = HashingUtils::HashString("timestamp"); + static constexpr uint32_t latest_HASH = ConstExprHashingUtils::HashString("latest"); + static constexpr uint32_t trim_horizon_HASH = ConstExprHashingUtils::HashString("trim_horizon"); + static constexpr uint32_t earliest_HASH = ConstExprHashingUtils::HashString("earliest"); + static constexpr uint32_t timestamp_HASH = ConstExprHashingUtils::HashString("timestamp"); StartingPosition GetStartingPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == latest_HASH) { return StartingPosition::latest; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/StatementState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/StatementState.cpp index 82d0bdd404f..f237fd7814d 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/StatementState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/StatementState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StatementStateMapper { - static const int WAITING_HASH = HashingUtils::HashString("WAITING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t WAITING_HASH = ConstExprHashingUtils::HashString("WAITING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); StatementState GetStatementStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAITING_HASH) { return StatementState::WAITING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TargetFormat.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TargetFormat.cpp index de89209cb82..c8e7506ee2d 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TargetFormat.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TargetFormat.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TargetFormatMapper { - static const int json_HASH = HashingUtils::HashString("json"); - static const int csv_HASH = HashingUtils::HashString("csv"); - static const int avro_HASH = HashingUtils::HashString("avro"); - static const int orc_HASH = HashingUtils::HashString("orc"); - static const int parquet_HASH = HashingUtils::HashString("parquet"); - static const int hudi_HASH = HashingUtils::HashString("hudi"); - static const int delta_HASH = HashingUtils::HashString("delta"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); + static constexpr uint32_t csv_HASH = ConstExprHashingUtils::HashString("csv"); + static constexpr uint32_t avro_HASH = ConstExprHashingUtils::HashString("avro"); + static constexpr uint32_t orc_HASH = ConstExprHashingUtils::HashString("orc"); + static constexpr uint32_t parquet_HASH = ConstExprHashingUtils::HashString("parquet"); + static constexpr uint32_t hudi_HASH = ConstExprHashingUtils::HashString("hudi"); + static constexpr uint32_t delta_HASH = ConstExprHashingUtils::HashString("delta"); TargetFormat GetTargetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_HASH) { return TargetFormat::json; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TaskRunSortColumnType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TaskRunSortColumnType.cpp index 4f7d1e330ca..c82a05e9edd 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TaskRunSortColumnType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TaskRunSortColumnType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TaskRunSortColumnTypeMapper { - static const int TASK_RUN_TYPE_HASH = HashingUtils::HashString("TASK_RUN_TYPE"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); + static constexpr uint32_t TASK_RUN_TYPE_HASH = ConstExprHashingUtils::HashString("TASK_RUN_TYPE"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); TaskRunSortColumnType GetTaskRunSortColumnTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_RUN_TYPE_HASH) { return TaskRunSortColumnType::TASK_RUN_TYPE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TaskStatusType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TaskStatusType.cpp index 25e3af93190..3bcf8a65d8a 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TaskStatusType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TaskStatusType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TaskStatusTypeMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); TaskStatusType GetTaskStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return TaskStatusType::STARTING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TaskType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TaskType.cpp index b9f09c2ad2f..3da90a48698 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TaskType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TaskType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TaskTypeMapper { - static const int EVALUATION_HASH = HashingUtils::HashString("EVALUATION"); - static const int LABELING_SET_GENERATION_HASH = HashingUtils::HashString("LABELING_SET_GENERATION"); - static const int IMPORT_LABELS_HASH = HashingUtils::HashString("IMPORT_LABELS"); - static const int EXPORT_LABELS_HASH = HashingUtils::HashString("EXPORT_LABELS"); - static const int FIND_MATCHES_HASH = HashingUtils::HashString("FIND_MATCHES"); + static constexpr uint32_t EVALUATION_HASH = ConstExprHashingUtils::HashString("EVALUATION"); + static constexpr uint32_t LABELING_SET_GENERATION_HASH = ConstExprHashingUtils::HashString("LABELING_SET_GENERATION"); + static constexpr uint32_t IMPORT_LABELS_HASH = ConstExprHashingUtils::HashString("IMPORT_LABELS"); + static constexpr uint32_t EXPORT_LABELS_HASH = ConstExprHashingUtils::HashString("EXPORT_LABELS"); + static constexpr uint32_t FIND_MATCHES_HASH = ConstExprHashingUtils::HashString("FIND_MATCHES"); TaskType GetTaskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVALUATION_HASH) { return TaskType::EVALUATION; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TransformSortColumnType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TransformSortColumnType.cpp index 91bbe0d8e29..ad79121d4ce 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TransformSortColumnType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TransformSortColumnType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransformSortColumnTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int TRANSFORM_TYPE_HASH = HashingUtils::HashString("TRANSFORM_TYPE"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int LAST_MODIFIED_HASH = HashingUtils::HashString("LAST_MODIFIED"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t TRANSFORM_TYPE_HASH = ConstExprHashingUtils::HashString("TRANSFORM_TYPE"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t LAST_MODIFIED_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED"); TransformSortColumnType GetTransformSortColumnTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return TransformSortColumnType::NAME; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TransformStatusType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TransformStatusType.cpp index 49a4a8660f6..e830934b634 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TransformStatusType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TransformStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TransformStatusTypeMapper { - static const int NOT_READY_HASH = HashingUtils::HashString("NOT_READY"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t NOT_READY_HASH = ConstExprHashingUtils::HashString("NOT_READY"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); TransformStatusType GetTransformStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_READY_HASH) { return TransformStatusType::NOT_READY; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TransformType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TransformType.cpp index 4aa7d649d5a..14b95b14d16 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TransformType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TransformType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TransformTypeMapper { - static const int FIND_MATCHES_HASH = HashingUtils::HashString("FIND_MATCHES"); + static constexpr uint32_t FIND_MATCHES_HASH = ConstExprHashingUtils::HashString("FIND_MATCHES"); TransformType GetTransformTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIND_MATCHES_HASH) { return TransformType::FIND_MATCHES; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TriggerState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TriggerState.cpp index 38311ab3c4c..80be2e3132c 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TriggerState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TriggerState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace TriggerStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int DEACTIVATING_HASH = HashingUtils::HashString("DEACTIVATING"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t DEACTIVATING_HASH = ConstExprHashingUtils::HashString("DEACTIVATING"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); TriggerState GetTriggerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return TriggerState::CREATING; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/TriggerType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/TriggerType.cpp index 282f5e0ded5..6b5789edd03 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/TriggerType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/TriggerType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TriggerTypeMapper { - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int CONDITIONAL_HASH = HashingUtils::HashString("CONDITIONAL"); - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t CONDITIONAL_HASH = ConstExprHashingUtils::HashString("CONDITIONAL"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); TriggerType GetTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_HASH) { return TriggerType::SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/UnionType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/UnionType.cpp index 37ec1fdf52c..1e3fb6813f1 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/UnionType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/UnionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UnionTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int DISTINCT_HASH = HashingUtils::HashString("DISTINCT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t DISTINCT_HASH = ConstExprHashingUtils::HashString("DISTINCT"); UnionType GetUnionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return UnionType::ALL; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/UpdateBehavior.cpp b/generated/src/aws-cpp-sdk-glue/source/model/UpdateBehavior.cpp index 1d95ae235c7..58e5fab1dea 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/UpdateBehavior.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/UpdateBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateBehaviorMapper { - static const int LOG_HASH = HashingUtils::HashString("LOG"); - static const int UPDATE_IN_DATABASE_HASH = HashingUtils::HashString("UPDATE_IN_DATABASE"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); + static constexpr uint32_t UPDATE_IN_DATABASE_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_DATABASE"); UpdateBehavior GetUpdateBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOG_HASH) { return UpdateBehavior::LOG; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/UpdateCatalogBehavior.cpp b/generated/src/aws-cpp-sdk-glue/source/model/UpdateCatalogBehavior.cpp index 59386828a7d..38a7a9a84ce 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/UpdateCatalogBehavior.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/UpdateCatalogBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateCatalogBehaviorMapper { - static const int UPDATE_IN_DATABASE_HASH = HashingUtils::HashString("UPDATE_IN_DATABASE"); - static const int LOG_HASH = HashingUtils::HashString("LOG"); + static constexpr uint32_t UPDATE_IN_DATABASE_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_DATABASE"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); UpdateCatalogBehavior GetUpdateCatalogBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_IN_DATABASE_HASH) { return UpdateCatalogBehavior::UPDATE_IN_DATABASE; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/WorkerType.cpp b/generated/src/aws-cpp-sdk-glue/source/model/WorkerType.cpp index 992ae004336..41c56277304 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/WorkerType.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/WorkerType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace WorkerTypeMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int G_1X_HASH = HashingUtils::HashString("G.1X"); - static const int G_2X_HASH = HashingUtils::HashString("G.2X"); - static const int G_025X_HASH = HashingUtils::HashString("G.025X"); - static const int G_4X_HASH = HashingUtils::HashString("G.4X"); - static const int G_8X_HASH = HashingUtils::HashString("G.8X"); - static const int Z_2X_HASH = HashingUtils::HashString("Z.2X"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t G_1X_HASH = ConstExprHashingUtils::HashString("G.1X"); + static constexpr uint32_t G_2X_HASH = ConstExprHashingUtils::HashString("G.2X"); + static constexpr uint32_t G_025X_HASH = ConstExprHashingUtils::HashString("G.025X"); + static constexpr uint32_t G_4X_HASH = ConstExprHashingUtils::HashString("G.4X"); + static constexpr uint32_t G_8X_HASH = ConstExprHashingUtils::HashString("G.8X"); + static constexpr uint32_t Z_2X_HASH = ConstExprHashingUtils::HashString("Z.2X"); WorkerType GetWorkerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return WorkerType::Standard; diff --git a/generated/src/aws-cpp-sdk-glue/source/model/WorkflowRunStatus.cpp b/generated/src/aws-cpp-sdk-glue/source/model/WorkflowRunStatus.cpp index 5251d3087a9..f91acc7cc9c 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/WorkflowRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/WorkflowRunStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkflowRunStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); WorkflowRunStatus GetWorkflowRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return WorkflowRunStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaErrors.cpp b/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaErrors.cpp index 357d37ab0c7..2509ccc5e37 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaErrors.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_MANAGEDGRAFANA_API ValidationException ManagedGrafanaError::GetMo namespace ManagedGrafanaErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/AccountAccessType.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/AccountAccessType.cpp index e0b78d232aa..b2ed3f62493 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/AccountAccessType.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/AccountAccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccountAccessTypeMapper { - static const int CURRENT_ACCOUNT_HASH = HashingUtils::HashString("CURRENT_ACCOUNT"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t CURRENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("CURRENT_ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); AccountAccessType GetAccountAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_ACCOUNT_HASH) { return AccountAccessType::CURRENT_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/AuthenticationProviderTypes.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/AuthenticationProviderTypes.cpp index f9924e1aa60..f882e12f357 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/AuthenticationProviderTypes.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/AuthenticationProviderTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthenticationProviderTypesMapper { - static const int AWS_SSO_HASH = HashingUtils::HashString("AWS_SSO"); - static const int SAML_HASH = HashingUtils::HashString("SAML"); + static constexpr uint32_t AWS_SSO_HASH = ConstExprHashingUtils::HashString("AWS_SSO"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); AuthenticationProviderTypes GetAuthenticationProviderTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_SSO_HASH) { return AuthenticationProviderTypes::AWS_SSO; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/DataSourceType.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/DataSourceType.cpp index d79ea87c5dd..aa0955b0b6b 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/DataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/DataSourceType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace DataSourceTypeMapper { - static const int AMAZON_OPENSEARCH_SERVICE_HASH = HashingUtils::HashString("AMAZON_OPENSEARCH_SERVICE"); - static const int CLOUDWATCH_HASH = HashingUtils::HashString("CLOUDWATCH"); - static const int PROMETHEUS_HASH = HashingUtils::HashString("PROMETHEUS"); - static const int XRAY_HASH = HashingUtils::HashString("XRAY"); - static const int TIMESTREAM_HASH = HashingUtils::HashString("TIMESTREAM"); - static const int SITEWISE_HASH = HashingUtils::HashString("SITEWISE"); - static const int ATHENA_HASH = HashingUtils::HashString("ATHENA"); - static const int REDSHIFT_HASH = HashingUtils::HashString("REDSHIFT"); - static const int TWINMAKER_HASH = HashingUtils::HashString("TWINMAKER"); + static constexpr uint32_t AMAZON_OPENSEARCH_SERVICE_HASH = ConstExprHashingUtils::HashString("AMAZON_OPENSEARCH_SERVICE"); + static constexpr uint32_t CLOUDWATCH_HASH = ConstExprHashingUtils::HashString("CLOUDWATCH"); + static constexpr uint32_t PROMETHEUS_HASH = ConstExprHashingUtils::HashString("PROMETHEUS"); + static constexpr uint32_t XRAY_HASH = ConstExprHashingUtils::HashString("XRAY"); + static constexpr uint32_t TIMESTREAM_HASH = ConstExprHashingUtils::HashString("TIMESTREAM"); + static constexpr uint32_t SITEWISE_HASH = ConstExprHashingUtils::HashString("SITEWISE"); + static constexpr uint32_t ATHENA_HASH = ConstExprHashingUtils::HashString("ATHENA"); + static constexpr uint32_t REDSHIFT_HASH = ConstExprHashingUtils::HashString("REDSHIFT"); + static constexpr uint32_t TWINMAKER_HASH = ConstExprHashingUtils::HashString("TWINMAKER"); DataSourceType GetDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AMAZON_OPENSEARCH_SERVICE_HASH) { return DataSourceType::AMAZON_OPENSEARCH_SERVICE; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/LicenseType.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/LicenseType.cpp index 77462150dd6..5ab328553f0 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/LicenseType.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/LicenseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LicenseTypeMapper { - static const int ENTERPRISE_HASH = HashingUtils::HashString("ENTERPRISE"); - static const int ENTERPRISE_FREE_TRIAL_HASH = HashingUtils::HashString("ENTERPRISE_FREE_TRIAL"); + static constexpr uint32_t ENTERPRISE_HASH = ConstExprHashingUtils::HashString("ENTERPRISE"); + static constexpr uint32_t ENTERPRISE_FREE_TRIAL_HASH = ConstExprHashingUtils::HashString("ENTERPRISE_FREE_TRIAL"); LicenseType GetLicenseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENTERPRISE_HASH) { return LicenseType::ENTERPRISE; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/NotificationDestinationType.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/NotificationDestinationType.cpp index c5619384b63..65929e9090b 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/NotificationDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/NotificationDestinationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NotificationDestinationTypeMapper { - static const int SNS_HASH = HashingUtils::HashString("SNS"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); NotificationDestinationType GetNotificationDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNS_HASH) { return NotificationDestinationType::SNS; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/PermissionType.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/PermissionType.cpp index 4b7e7bc4f0a..651f48a074c 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/PermissionType.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/PermissionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionTypeMapper { - static const int CUSTOMER_MANAGED_HASH = HashingUtils::HashString("CUSTOMER_MANAGED"); - static const int SERVICE_MANAGED_HASH = HashingUtils::HashString("SERVICE_MANAGED"); + static constexpr uint32_t CUSTOMER_MANAGED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED"); + static constexpr uint32_t SERVICE_MANAGED_HASH = ConstExprHashingUtils::HashString("SERVICE_MANAGED"); PermissionType GetPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_HASH) { return PermissionType::CUSTOMER_MANAGED; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/Role.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/Role.cpp index 171408e87ad..6e0ef061fdb 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/Role.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/Role.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RoleMapper { - static const int ADMIN_HASH = HashingUtils::HashString("ADMIN"); - static const int EDITOR_HASH = HashingUtils::HashString("EDITOR"); - static const int VIEWER_HASH = HashingUtils::HashString("VIEWER"); + static constexpr uint32_t ADMIN_HASH = ConstExprHashingUtils::HashString("ADMIN"); + static constexpr uint32_t EDITOR_HASH = ConstExprHashingUtils::HashString("EDITOR"); + static constexpr uint32_t VIEWER_HASH = ConstExprHashingUtils::HashString("VIEWER"); Role GetRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADMIN_HASH) { return Role::ADMIN; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/SamlConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/SamlConfigurationStatus.cpp index cb2a235a668..31ed86677a5 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/SamlConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/SamlConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SamlConfigurationStatusMapper { - static const int CONFIGURED_HASH = HashingUtils::HashString("CONFIGURED"); - static const int NOT_CONFIGURED_HASH = HashingUtils::HashString("NOT_CONFIGURED"); + static constexpr uint32_t CONFIGURED_HASH = ConstExprHashingUtils::HashString("CONFIGURED"); + static constexpr uint32_t NOT_CONFIGURED_HASH = ConstExprHashingUtils::HashString("NOT_CONFIGURED"); SamlConfigurationStatus GetSamlConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIGURED_HASH) { return SamlConfigurationStatus::CONFIGURED; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/UpdateAction.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/UpdateAction.cpp index 439859d9f88..017bb7d57dd 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/UpdateAction.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/UpdateAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateActionMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int REVOKE_HASH = HashingUtils::HashString("REVOKE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t REVOKE_HASH = ConstExprHashingUtils::HashString("REVOKE"); UpdateAction GetUpdateActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return UpdateAction::ADD; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/UserType.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/UserType.cpp index f71590fff94..09d515b17b9 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/UserType.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/UserType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserTypeMapper { - static const int SSO_USER_HASH = HashingUtils::HashString("SSO_USER"); - static const int SSO_GROUP_HASH = HashingUtils::HashString("SSO_GROUP"); + static constexpr uint32_t SSO_USER_HASH = ConstExprHashingUtils::HashString("SSO_USER"); + static constexpr uint32_t SSO_GROUP_HASH = ConstExprHashingUtils::HashString("SSO_GROUP"); UserType GetUserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSO_USER_HASH) { return UserType::SSO_USER; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/ValidationExceptionReason.cpp index a8906d7a635..12a594be482 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-grafana/source/model/WorkspaceStatus.cpp b/generated/src/aws-cpp-sdk-grafana/source/model/WorkspaceStatus.cpp index f17a977154f..3362eb57e03 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/model/WorkspaceStatus.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/model/WorkspaceStatus.cpp @@ -20,24 +20,24 @@ namespace Aws namespace WorkspaceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPGRADING_HASH = HashingUtils::HashString("UPGRADING"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int UPGRADE_FAILED_HASH = HashingUtils::HashString("UPGRADE_FAILED"); - static const int LICENSE_REMOVAL_FAILED_HASH = HashingUtils::HashString("LICENSE_REMOVAL_FAILED"); - static const int VERSION_UPDATING_HASH = HashingUtils::HashString("VERSION_UPDATING"); - static const int VERSION_UPDATE_FAILED_HASH = HashingUtils::HashString("VERSION_UPDATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPGRADING_HASH = ConstExprHashingUtils::HashString("UPGRADING"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t UPGRADE_FAILED_HASH = ConstExprHashingUtils::HashString("UPGRADE_FAILED"); + static constexpr uint32_t LICENSE_REMOVAL_FAILED_HASH = ConstExprHashingUtils::HashString("LICENSE_REMOVAL_FAILED"); + static constexpr uint32_t VERSION_UPDATING_HASH = ConstExprHashingUtils::HashString("VERSION_UPDATING"); + static constexpr uint32_t VERSION_UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("VERSION_UPDATE_FAILED"); WorkspaceStatus GetWorkspaceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return WorkspaceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/GreengrassErrors.cpp b/generated/src/aws-cpp-sdk-greengrass/source/GreengrassErrors.cpp index f27e7b04c13..37a0b7a2eb5 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/GreengrassErrors.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/GreengrassErrors.cpp @@ -33,13 +33,13 @@ template<> AWS_GREENGRASS_API InternalServerErrorException GreengrassError::GetM namespace GreengrassErrorMapper { -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == BAD_REQUEST_HASH) { diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/BulkDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/BulkDeploymentStatus.cpp index 526fb4902d3..206ed16eaae 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/BulkDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/BulkDeploymentStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BulkDeploymentStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); BulkDeploymentStatus GetBulkDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return BulkDeploymentStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/ConfigurationSyncStatus.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/ConfigurationSyncStatus.cpp index 7ca10a588ed..95778778765 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/ConfigurationSyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/ConfigurationSyncStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigurationSyncStatusMapper { - static const int InSync_HASH = HashingUtils::HashString("InSync"); - static const int OutOfSync_HASH = HashingUtils::HashString("OutOfSync"); + static constexpr uint32_t InSync_HASH = ConstExprHashingUtils::HashString("InSync"); + static constexpr uint32_t OutOfSync_HASH = ConstExprHashingUtils::HashString("OutOfSync"); ConfigurationSyncStatus GetConfigurationSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InSync_HASH) { return ConfigurationSyncStatus::InSync; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/DeploymentType.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/DeploymentType.cpp index 42f0e7fe401..998210daf03 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/DeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/DeploymentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeploymentTypeMapper { - static const int NewDeployment_HASH = HashingUtils::HashString("NewDeployment"); - static const int Redeployment_HASH = HashingUtils::HashString("Redeployment"); - static const int ResetDeployment_HASH = HashingUtils::HashString("ResetDeployment"); - static const int ForceResetDeployment_HASH = HashingUtils::HashString("ForceResetDeployment"); + static constexpr uint32_t NewDeployment_HASH = ConstExprHashingUtils::HashString("NewDeployment"); + static constexpr uint32_t Redeployment_HASH = ConstExprHashingUtils::HashString("Redeployment"); + static constexpr uint32_t ResetDeployment_HASH = ConstExprHashingUtils::HashString("ResetDeployment"); + static constexpr uint32_t ForceResetDeployment_HASH = ConstExprHashingUtils::HashString("ForceResetDeployment"); DeploymentType GetDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NewDeployment_HASH) { return DeploymentType::NewDeployment; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/EncodingType.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/EncodingType.cpp index c09b807eec0..e3490d5a75b 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/EncodingType.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/EncodingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncodingTypeMapper { - static const int binary_HASH = HashingUtils::HashString("binary"); - static const int json_HASH = HashingUtils::HashString("json"); + static constexpr uint32_t binary_HASH = ConstExprHashingUtils::HashString("binary"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); EncodingType GetEncodingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == binary_HASH) { return EncodingType::binary; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/FunctionIsolationMode.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/FunctionIsolationMode.cpp index 78232bca6d9..c867c575b98 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/FunctionIsolationMode.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/FunctionIsolationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FunctionIsolationModeMapper { - static const int GreengrassContainer_HASH = HashingUtils::HashString("GreengrassContainer"); - static const int NoContainer_HASH = HashingUtils::HashString("NoContainer"); + static constexpr uint32_t GreengrassContainer_HASH = ConstExprHashingUtils::HashString("GreengrassContainer"); + static constexpr uint32_t NoContainer_HASH = ConstExprHashingUtils::HashString("NoContainer"); FunctionIsolationMode GetFunctionIsolationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreengrassContainer_HASH) { return FunctionIsolationMode::GreengrassContainer; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerComponent.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerComponent.cpp index 98269fd39a8..4a9f5d4be1c 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerComponent.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerComponent.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LoggerComponentMapper { - static const int GreengrassSystem_HASH = HashingUtils::HashString("GreengrassSystem"); - static const int Lambda_HASH = HashingUtils::HashString("Lambda"); + static constexpr uint32_t GreengrassSystem_HASH = ConstExprHashingUtils::HashString("GreengrassSystem"); + static constexpr uint32_t Lambda_HASH = ConstExprHashingUtils::HashString("Lambda"); LoggerComponent GetLoggerComponentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreengrassSystem_HASH) { return LoggerComponent::GreengrassSystem; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerLevel.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerLevel.cpp index 8b2ad2349ae..22d91d7ae99 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerLevel.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerLevel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LoggerLevelMapper { - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int FATAL_HASH = HashingUtils::HashString("FATAL"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t FATAL_HASH = ConstExprHashingUtils::HashString("FATAL"); LoggerLevel GetLoggerLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEBUG__HASH) { return LoggerLevel::DEBUG_; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerType.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerType.cpp index 06e4f98874c..e732975e3e5 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerType.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/LoggerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LoggerTypeMapper { - static const int FileSystem_HASH = HashingUtils::HashString("FileSystem"); - static const int AWSCloudWatch_HASH = HashingUtils::HashString("AWSCloudWatch"); + static constexpr uint32_t FileSystem_HASH = ConstExprHashingUtils::HashString("FileSystem"); + static constexpr uint32_t AWSCloudWatch_HASH = ConstExprHashingUtils::HashString("AWSCloudWatch"); LoggerType GetLoggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FileSystem_HASH) { return LoggerType::FileSystem; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/Permission.cpp index de5320bff5b..2ca3cb42f21 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/Permission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionMapper { - static const int ro_HASH = HashingUtils::HashString("ro"); - static const int rw_HASH = HashingUtils::HashString("rw"); + static constexpr uint32_t ro_HASH = ConstExprHashingUtils::HashString("ro"); + static constexpr uint32_t rw_HASH = ConstExprHashingUtils::HashString("rw"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ro_HASH) { return Permission::ro; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/SoftwareToUpdate.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/SoftwareToUpdate.cpp index 11d4c2ac75a..baf7eb63b53 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/SoftwareToUpdate.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/SoftwareToUpdate.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SoftwareToUpdateMapper { - static const int core_HASH = HashingUtils::HashString("core"); - static const int ota_agent_HASH = HashingUtils::HashString("ota_agent"); + static constexpr uint32_t core_HASH = ConstExprHashingUtils::HashString("core"); + static constexpr uint32_t ota_agent_HASH = ConstExprHashingUtils::HashString("ota_agent"); SoftwareToUpdate GetSoftwareToUpdateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == core_HASH) { return SoftwareToUpdate::core; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/Telemetry.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/Telemetry.cpp index 9b8d306b670..4d681be85d9 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/Telemetry.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/Telemetry.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TelemetryMapper { - static const int On_HASH = HashingUtils::HashString("On"); - static const int Off_HASH = HashingUtils::HashString("Off"); + static constexpr uint32_t On_HASH = ConstExprHashingUtils::HashString("On"); + static constexpr uint32_t Off_HASH = ConstExprHashingUtils::HashString("Off"); Telemetry GetTelemetryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == On_HASH) { return Telemetry::On; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateAgentLogLevel.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateAgentLogLevel.cpp index db37e5a1bf5..9e69a07c19d 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateAgentLogLevel.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateAgentLogLevel.cpp @@ -20,19 +20,19 @@ namespace Aws namespace UpdateAgentLogLevelMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int TRACE_HASH = HashingUtils::HashString("TRACE"); - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); - static const int VERBOSE_HASH = HashingUtils::HashString("VERBOSE"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int FATAL_HASH = HashingUtils::HashString("FATAL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t TRACE_HASH = ConstExprHashingUtils::HashString("TRACE"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); + static constexpr uint32_t VERBOSE_HASH = ConstExprHashingUtils::HashString("VERBOSE"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t FATAL_HASH = ConstExprHashingUtils::HashString("FATAL"); UpdateAgentLogLevel GetUpdateAgentLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return UpdateAgentLogLevel::NONE; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsArchitecture.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsArchitecture.cpp index 1c7b97172aa..feb23ee5b58 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsArchitecture.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsArchitecture.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UpdateTargetsArchitectureMapper { - static const int armv6l_HASH = HashingUtils::HashString("armv6l"); - static const int armv7l_HASH = HashingUtils::HashString("armv7l"); - static const int x86_64_HASH = HashingUtils::HashString("x86_64"); - static const int aarch64_HASH = HashingUtils::HashString("aarch64"); + static constexpr uint32_t armv6l_HASH = ConstExprHashingUtils::HashString("armv6l"); + static constexpr uint32_t armv7l_HASH = ConstExprHashingUtils::HashString("armv7l"); + static constexpr uint32_t x86_64_HASH = ConstExprHashingUtils::HashString("x86_64"); + static constexpr uint32_t aarch64_HASH = ConstExprHashingUtils::HashString("aarch64"); UpdateTargetsArchitecture GetUpdateTargetsArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == armv6l_HASH) { return UpdateTargetsArchitecture::armv6l; diff --git a/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsOperatingSystem.cpp b/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsOperatingSystem.cpp index 95f30018a14..c2ca831cefc 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsOperatingSystem.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/model/UpdateTargetsOperatingSystem.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UpdateTargetsOperatingSystemMapper { - static const int ubuntu_HASH = HashingUtils::HashString("ubuntu"); - static const int raspbian_HASH = HashingUtils::HashString("raspbian"); - static const int amazon_linux_HASH = HashingUtils::HashString("amazon_linux"); - static const int openwrt_HASH = HashingUtils::HashString("openwrt"); + static constexpr uint32_t ubuntu_HASH = ConstExprHashingUtils::HashString("ubuntu"); + static constexpr uint32_t raspbian_HASH = ConstExprHashingUtils::HashString("raspbian"); + static constexpr uint32_t amazon_linux_HASH = ConstExprHashingUtils::HashString("amazon_linux"); + static constexpr uint32_t openwrt_HASH = ConstExprHashingUtils::HashString("openwrt"); UpdateTargetsOperatingSystem GetUpdateTargetsOperatingSystemForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ubuntu_HASH) { return UpdateTargetsOperatingSystem::ubuntu; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp index cb229d9afde..a7241df2e93 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp @@ -61,15 +61,15 @@ template<> AWS_GREENGRASSV2_API ValidationException GreengrassV2Error::GetModele namespace GreengrassV2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int REQUEST_ALREADY_IN_PROGRESS_HASH = HashingUtils::HashString("RequestAlreadyInProgressException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t REQUEST_ALREADY_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("RequestAlreadyInProgressException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp index 6bb2c2d13a1..40a6f8b7364 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CloudComponentStateMapper { - static const int REQUESTED_HASH = HashingUtils::HashString("REQUESTED"); - static const int INITIATED_HASH = HashingUtils::HashString("INITIATED"); - static const int DEPLOYABLE_HASH = HashingUtils::HashString("DEPLOYABLE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t REQUESTED_HASH = ConstExprHashingUtils::HashString("REQUESTED"); + static constexpr uint32_t INITIATED_HASH = ConstExprHashingUtils::HashString("INITIATED"); + static constexpr uint32_t DEPLOYABLE_HASH = ConstExprHashingUtils::HashString("DEPLOYABLE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); CloudComponentState GetCloudComponentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUESTED_HASH) { return CloudComponentState::REQUESTED; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp index ce67f9105bd..06679651978 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComponentDependencyTypeMapper { - static const int HARD_HASH = HashingUtils::HashString("HARD"); - static const int SOFT_HASH = HashingUtils::HashString("SOFT"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); + static constexpr uint32_t SOFT_HASH = ConstExprHashingUtils::HashString("SOFT"); ComponentDependencyType GetComponentDependencyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HARD_HASH) { return ComponentDependencyType::HARD; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp index aedf190e6f2..1acf1275df4 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComponentVisibilityScopeMapper { - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); ComponentVisibilityScope GetComponentVisibilityScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIVATE__HASH) { return ComponentVisibilityScope::PRIVATE_; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp index 55d51782b54..949ba0d40a8 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CoreDeviceStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); CoreDeviceStatus GetCoreDeviceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return CoreDeviceStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp index 3c4b257d967..8bcd3468c23 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentComponentUpdatePolicyActionMapper { - static const int NOTIFY_COMPONENTS_HASH = HashingUtils::HashString("NOTIFY_COMPONENTS"); - static const int SKIP_NOTIFY_COMPONENTS_HASH = HashingUtils::HashString("SKIP_NOTIFY_COMPONENTS"); + static constexpr uint32_t NOTIFY_COMPONENTS_HASH = ConstExprHashingUtils::HashString("NOTIFY_COMPONENTS"); + static constexpr uint32_t SKIP_NOTIFY_COMPONENTS_HASH = ConstExprHashingUtils::HashString("SKIP_NOTIFY_COMPONENTS"); DeploymentComponentUpdatePolicyAction GetDeploymentComponentUpdatePolicyActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOTIFY_COMPONENTS_HASH) { return DeploymentComponentUpdatePolicyAction::NOTIFY_COMPONENTS; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp index be2b14008bc..672ae3e868f 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentFailureHandlingPolicyMapper { - static const int ROLLBACK_HASH = HashingUtils::HashString("ROLLBACK"); - static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); + static constexpr uint32_t ROLLBACK_HASH = ConstExprHashingUtils::HashString("ROLLBACK"); + static constexpr uint32_t DO_NOTHING_HASH = ConstExprHashingUtils::HashString("DO_NOTHING"); DeploymentFailureHandlingPolicy GetDeploymentFailureHandlingPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROLLBACK_HASH) { return DeploymentFailureHandlingPolicy::ROLLBACK; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp index 829a63ce286..4be61471299 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentHistoryFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int LATEST_ONLY_HASH = HashingUtils::HashString("LATEST_ONLY"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t LATEST_ONLY_HASH = ConstExprHashingUtils::HashString("LATEST_ONLY"); DeploymentHistoryFilter GetDeploymentHistoryFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return DeploymentHistoryFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp index 8b4fc5e331e..19e56a5239e 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeploymentStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DeploymentStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp index c51c862b735..9e23814d971 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EffectiveDeploymentExecutionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); EffectiveDeploymentExecutionStatus GetEffectiveDeploymentExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return EffectiveDeploymentExecutionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp index 9b99e3487f6..5467a2c71d7 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace InstalledComponentLifecycleStateMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int INSTALLED_HASH = HashingUtils::HashString("INSTALLED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int ERRORED_HASH = HashingUtils::HashString("ERRORED"); - static const int BROKEN_HASH = HashingUtils::HashString("BROKEN"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t INSTALLED_HASH = ConstExprHashingUtils::HashString("INSTALLED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t ERRORED_HASH = ConstExprHashingUtils::HashString("ERRORED"); + static constexpr uint32_t BROKEN_HASH = ConstExprHashingUtils::HashString("BROKEN"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); InstalledComponentLifecycleState GetInstalledComponentLifecycleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return InstalledComponentLifecycleState::NEW_; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentTopologyFilter.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentTopologyFilter.cpp index acba4715c03..a91af030d3d 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentTopologyFilter.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentTopologyFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstalledComponentTopologyFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ROOT_HASH = HashingUtils::HashString("ROOT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ROOT_HASH = ConstExprHashingUtils::HashString("ROOT"); InstalledComponentTopologyFilter GetInstalledComponentTopologyFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return InstalledComponentTopologyFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp index 17e2b56ccf5..15fca3a4898 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IoTJobAbortActionMapper { - static const int CANCEL_HASH = HashingUtils::HashString("CANCEL"); + static constexpr uint32_t CANCEL_HASH = ConstExprHashingUtils::HashString("CANCEL"); IoTJobAbortAction GetIoTJobAbortActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCEL_HASH) { return IoTJobAbortAction::CANCEL; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp index e7c7c136d57..6b56f46f485 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IoTJobExecutionFailureTypeMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); IoTJobExecutionFailureType GetIoTJobExecutionFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return IoTJobExecutionFailureType::FAILED; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp index 14501af1892..c6791604459 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaEventSourceTypeMapper { - static const int PUB_SUB_HASH = HashingUtils::HashString("PUB_SUB"); - static const int IOT_CORE_HASH = HashingUtils::HashString("IOT_CORE"); + static constexpr uint32_t PUB_SUB_HASH = ConstExprHashingUtils::HashString("PUB_SUB"); + static constexpr uint32_t IOT_CORE_HASH = ConstExprHashingUtils::HashString("IOT_CORE"); LambdaEventSourceType GetLambdaEventSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUB_SUB_HASH) { return LambdaEventSourceType::PUB_SUB; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp index ab17c2c0a7e..1e9a1b61477 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaFilesystemPermissionMapper { - static const int ro_HASH = HashingUtils::HashString("ro"); - static const int rw_HASH = HashingUtils::HashString("rw"); + static constexpr uint32_t ro_HASH = ConstExprHashingUtils::HashString("ro"); + static constexpr uint32_t rw_HASH = ConstExprHashingUtils::HashString("rw"); LambdaFilesystemPermission GetLambdaFilesystemPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ro_HASH) { return LambdaFilesystemPermission::ro; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp index 812a6c1c85a..a0fcb599bdc 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaInputPayloadEncodingTypeMapper { - static const int json_HASH = HashingUtils::HashString("json"); - static const int binary_HASH = HashingUtils::HashString("binary"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); + static constexpr uint32_t binary_HASH = ConstExprHashingUtils::HashString("binary"); LambdaInputPayloadEncodingType GetLambdaInputPayloadEncodingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_HASH) { return LambdaInputPayloadEncodingType::json; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp index 32956f70f75..9ffb098d911 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaIsolationModeMapper { - static const int GreengrassContainer_HASH = HashingUtils::HashString("GreengrassContainer"); - static const int NoContainer_HASH = HashingUtils::HashString("NoContainer"); + static constexpr uint32_t GreengrassContainer_HASH = ConstExprHashingUtils::HashString("GreengrassContainer"); + static constexpr uint32_t NoContainer_HASH = ConstExprHashingUtils::HashString("NoContainer"); LambdaIsolationMode GetLambdaIsolationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreengrassContainer_HASH) { return LambdaIsolationMode::GreengrassContainer; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp index 16ce819b584..9b63094f20f 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecipeOutputFormatMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int YAML_HASH = HashingUtils::HashString("YAML"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t YAML_HASH = ConstExprHashingUtils::HashString("YAML"); RecipeOutputFormat GetRecipeOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return RecipeOutputFormat::JSON; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp index 9519179526d..9634dfec3e1 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/model/VendorGuidance.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/model/VendorGuidance.cpp index dc8a554b17f..95ebd3085dd 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/model/VendorGuidance.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/model/VendorGuidance.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VendorGuidanceMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DISCONTINUED_HASH = HashingUtils::HashString("DISCONTINUED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DISCONTINUED_HASH = ConstExprHashingUtils::HashString("DISCONTINUED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VendorGuidance GetVendorGuidanceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return VendorGuidance::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/GroundStationErrors.cpp b/generated/src/aws-cpp-sdk-groundstation/source/GroundStationErrors.cpp index 313d5e2119a..0a8832412d1 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/GroundStationErrors.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/GroundStationErrors.cpp @@ -40,14 +40,14 @@ template<> AWS_GROUNDSTATION_API DependencyException GroundStationError::GetMode namespace GroundStationErrorMapper { -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int DEPENDENCY_HASH = HashingUtils::HashString("DependencyException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t DEPENDENCY_HASH = ConstExprHashingUtils::HashString("DependencyException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_PARAMETER_HASH) { diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/AgentStatus.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/AgentStatus.cpp index 7de4905bf31..4fe8379bec9 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/AgentStatus.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/AgentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AgentStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AgentStatus GetAgentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return AgentStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/AngleUnits.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/AngleUnits.cpp index e149570560f..f6ab8271c44 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/AngleUnits.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/AngleUnits.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AngleUnitsMapper { - static const int DEGREE_ANGLE_HASH = HashingUtils::HashString("DEGREE_ANGLE"); - static const int RADIAN_HASH = HashingUtils::HashString("RADIAN"); + static constexpr uint32_t DEGREE_ANGLE_HASH = ConstExprHashingUtils::HashString("DEGREE_ANGLE"); + static constexpr uint32_t RADIAN_HASH = ConstExprHashingUtils::HashString("RADIAN"); AngleUnits GetAngleUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEGREE_ANGLE_HASH) { return AngleUnits::DEGREE_ANGLE; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/AuditResults.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/AuditResults.cpp index f071f1e0aa3..7d7f8d2e3c8 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/AuditResults.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/AuditResults.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuditResultsMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); AuditResults GetAuditResultsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return AuditResults::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/BandwidthUnits.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/BandwidthUnits.cpp index 3b2191d9f9c..55c6f52b5c1 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/BandwidthUnits.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/BandwidthUnits.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BandwidthUnitsMapper { - static const int GHz_HASH = HashingUtils::HashString("GHz"); - static const int MHz_HASH = HashingUtils::HashString("MHz"); - static const int kHz_HASH = HashingUtils::HashString("kHz"); + static constexpr uint32_t GHz_HASH = ConstExprHashingUtils::HashString("GHz"); + static constexpr uint32_t MHz_HASH = ConstExprHashingUtils::HashString("MHz"); + static constexpr uint32_t kHz_HASH = ConstExprHashingUtils::HashString("kHz"); BandwidthUnits GetBandwidthUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GHz_HASH) { return BandwidthUnits::GHz; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealth.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealth.cpp index c0e30d193ae..8bdd0c93834 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealth.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealth.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapabilityHealthMapper { - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); CapabilityHealth GetCapabilityHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNHEALTHY_HASH) { return CapabilityHealth::UNHEALTHY; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealthReason.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealthReason.cpp index df1f396068d..50d21c2d752 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealthReason.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/CapabilityHealthReason.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CapabilityHealthReasonMapper { - static const int NO_REGISTERED_AGENT_HASH = HashingUtils::HashString("NO_REGISTERED_AGENT"); - static const int INVALID_IP_OWNERSHIP_HASH = HashingUtils::HashString("INVALID_IP_OWNERSHIP"); - static const int NOT_AUTHORIZED_TO_CREATE_SLR_HASH = HashingUtils::HashString("NOT_AUTHORIZED_TO_CREATE_SLR"); - static const int UNVERIFIED_IP_OWNERSHIP_HASH = HashingUtils::HashString("UNVERIFIED_IP_OWNERSHIP"); - static const int INITIALIZING_DATAPLANE_HASH = HashingUtils::HashString("INITIALIZING_DATAPLANE"); - static const int DATAPLANE_FAILURE_HASH = HashingUtils::HashString("DATAPLANE_FAILURE"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); + static constexpr uint32_t NO_REGISTERED_AGENT_HASH = ConstExprHashingUtils::HashString("NO_REGISTERED_AGENT"); + static constexpr uint32_t INVALID_IP_OWNERSHIP_HASH = ConstExprHashingUtils::HashString("INVALID_IP_OWNERSHIP"); + static constexpr uint32_t NOT_AUTHORIZED_TO_CREATE_SLR_HASH = ConstExprHashingUtils::HashString("NOT_AUTHORIZED_TO_CREATE_SLR"); + static constexpr uint32_t UNVERIFIED_IP_OWNERSHIP_HASH = ConstExprHashingUtils::HashString("UNVERIFIED_IP_OWNERSHIP"); + static constexpr uint32_t INITIALIZING_DATAPLANE_HASH = ConstExprHashingUtils::HashString("INITIALIZING_DATAPLANE"); + static constexpr uint32_t DATAPLANE_FAILURE_HASH = ConstExprHashingUtils::HashString("DATAPLANE_FAILURE"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); CapabilityHealthReason GetCapabilityHealthReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_REGISTERED_AGENT_HASH) { return CapabilityHealthReason::NO_REGISTERED_AGENT; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/ConfigCapabilityType.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/ConfigCapabilityType.cpp index 6cc64901b06..38d93658ed4 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/ConfigCapabilityType.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/ConfigCapabilityType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ConfigCapabilityTypeMapper { - static const int antenna_downlink_HASH = HashingUtils::HashString("antenna-downlink"); - static const int antenna_downlink_demod_decode_HASH = HashingUtils::HashString("antenna-downlink-demod-decode"); - static const int antenna_uplink_HASH = HashingUtils::HashString("antenna-uplink"); - static const int dataflow_endpoint_HASH = HashingUtils::HashString("dataflow-endpoint"); - static const int tracking_HASH = HashingUtils::HashString("tracking"); - static const int uplink_echo_HASH = HashingUtils::HashString("uplink-echo"); - static const int s3_recording_HASH = HashingUtils::HashString("s3-recording"); + static constexpr uint32_t antenna_downlink_HASH = ConstExprHashingUtils::HashString("antenna-downlink"); + static constexpr uint32_t antenna_downlink_demod_decode_HASH = ConstExprHashingUtils::HashString("antenna-downlink-demod-decode"); + static constexpr uint32_t antenna_uplink_HASH = ConstExprHashingUtils::HashString("antenna-uplink"); + static constexpr uint32_t dataflow_endpoint_HASH = ConstExprHashingUtils::HashString("dataflow-endpoint"); + static constexpr uint32_t tracking_HASH = ConstExprHashingUtils::HashString("tracking"); + static constexpr uint32_t uplink_echo_HASH = ConstExprHashingUtils::HashString("uplink-echo"); + static constexpr uint32_t s3_recording_HASH = ConstExprHashingUtils::HashString("s3-recording"); ConfigCapabilityType GetConfigCapabilityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == antenna_downlink_HASH) { return ConfigCapabilityType::antenna_downlink; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/ContactStatus.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/ContactStatus.cpp index fa03db60bca..a6cd010281f 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/ContactStatus.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/ContactStatus.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ContactStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int AWS_CANCELLED_HASH = HashingUtils::HashString("AWS_CANCELLED"); - static const int AWS_FAILED_HASH = HashingUtils::HashString("AWS_FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int FAILED_TO_SCHEDULE_HASH = HashingUtils::HashString("FAILED_TO_SCHEDULE"); - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int POSTPASS_HASH = HashingUtils::HashString("POSTPASS"); - static const int PREPASS_HASH = HashingUtils::HashString("PREPASS"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int SCHEDULING_HASH = HashingUtils::HashString("SCHEDULING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t AWS_CANCELLED_HASH = ConstExprHashingUtils::HashString("AWS_CANCELLED"); + static constexpr uint32_t AWS_FAILED_HASH = ConstExprHashingUtils::HashString("AWS_FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t FAILED_TO_SCHEDULE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_SCHEDULE"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t POSTPASS_HASH = ConstExprHashingUtils::HashString("POSTPASS"); + static constexpr uint32_t PREPASS_HASH = ConstExprHashingUtils::HashString("PREPASS"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t SCHEDULING_HASH = ConstExprHashingUtils::HashString("SCHEDULING"); ContactStatus GetContactStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return ContactStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/Criticality.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/Criticality.cpp index 52c56944c68..71de2212135 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/Criticality.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/Criticality.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CriticalityMapper { - static const int PREFERRED_HASH = HashingUtils::HashString("PREFERRED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); - static const int REQUIRED_HASH = HashingUtils::HashString("REQUIRED"); + static constexpr uint32_t PREFERRED_HASH = ConstExprHashingUtils::HashString("PREFERRED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); + static constexpr uint32_t REQUIRED_HASH = ConstExprHashingUtils::HashString("REQUIRED"); Criticality GetCriticalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREFERRED_HASH) { return Criticality::PREFERRED; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/EirpUnits.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/EirpUnits.cpp index d720783c927..4e925ee896d 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/EirpUnits.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/EirpUnits.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EirpUnitsMapper { - static const int dBW_HASH = HashingUtils::HashString("dBW"); + static constexpr uint32_t dBW_HASH = ConstExprHashingUtils::HashString("dBW"); EirpUnits GetEirpUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == dBW_HASH) { return EirpUnits::dBW; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/EndpointStatus.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/EndpointStatus.cpp index 385232ebc93..459af282a7c 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/EndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/EndpointStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EndpointStatusMapper { - static const int created_HASH = HashingUtils::HashString("created"); - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int deleted_HASH = HashingUtils::HashString("deleted"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t created_HASH = ConstExprHashingUtils::HashString("created"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t deleted_HASH = ConstExprHashingUtils::HashString("deleted"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); EndpointStatus GetEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == created_HASH) { return EndpointStatus::created; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisInvalidReason.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisInvalidReason.cpp index 62cc6b39e74..74a4de64c43 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisInvalidReason.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisInvalidReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EphemerisInvalidReasonMapper { - static const int METADATA_INVALID_HASH = HashingUtils::HashString("METADATA_INVALID"); - static const int TIME_RANGE_INVALID_HASH = HashingUtils::HashString("TIME_RANGE_INVALID"); - static const int TRAJECTORY_INVALID_HASH = HashingUtils::HashString("TRAJECTORY_INVALID"); - static const int KMS_KEY_INVALID_HASH = HashingUtils::HashString("KMS_KEY_INVALID"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t METADATA_INVALID_HASH = ConstExprHashingUtils::HashString("METADATA_INVALID"); + static constexpr uint32_t TIME_RANGE_INVALID_HASH = ConstExprHashingUtils::HashString("TIME_RANGE_INVALID"); + static constexpr uint32_t TRAJECTORY_INVALID_HASH = ConstExprHashingUtils::HashString("TRAJECTORY_INVALID"); + static constexpr uint32_t KMS_KEY_INVALID_HASH = ConstExprHashingUtils::HashString("KMS_KEY_INVALID"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); EphemerisInvalidReason GetEphemerisInvalidReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == METADATA_INVALID_HASH) { return EphemerisInvalidReason::METADATA_INVALID; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisSource.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisSource.cpp index 342ab614e83..f4ab7fdb079 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisSource.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EphemerisSourceMapper { - static const int CUSTOMER_PROVIDED_HASH = HashingUtils::HashString("CUSTOMER_PROVIDED"); - static const int SPACE_TRACK_HASH = HashingUtils::HashString("SPACE_TRACK"); + static constexpr uint32_t CUSTOMER_PROVIDED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_PROVIDED"); + static constexpr uint32_t SPACE_TRACK_HASH = ConstExprHashingUtils::HashString("SPACE_TRACK"); EphemerisSource GetEphemerisSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_PROVIDED_HASH) { return EphemerisSource::CUSTOMER_PROVIDED; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisStatus.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisStatus.cpp index ccbacb922af..f5e14f84e04 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisStatus.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/EphemerisStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace EphemerisStatusMapper { - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int INVALID_HASH = HashingUtils::HashString("INVALID"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t INVALID_HASH = ConstExprHashingUtils::HashString("INVALID"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); EphemerisStatus GetEphemerisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATING_HASH) { return EphemerisStatus::VALIDATING; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/FrequencyUnits.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/FrequencyUnits.cpp index 63280335611..7547c450abd 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/FrequencyUnits.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/FrequencyUnits.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FrequencyUnitsMapper { - static const int GHz_HASH = HashingUtils::HashString("GHz"); - static const int MHz_HASH = HashingUtils::HashString("MHz"); - static const int kHz_HASH = HashingUtils::HashString("kHz"); + static constexpr uint32_t GHz_HASH = ConstExprHashingUtils::HashString("GHz"); + static constexpr uint32_t MHz_HASH = ConstExprHashingUtils::HashString("MHz"); + static constexpr uint32_t kHz_HASH = ConstExprHashingUtils::HashString("kHz"); FrequencyUnits GetFrequencyUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GHz_HASH) { return FrequencyUnits::GHz; diff --git a/generated/src/aws-cpp-sdk-groundstation/source/model/Polarization.cpp b/generated/src/aws-cpp-sdk-groundstation/source/model/Polarization.cpp index 2ef5a769b5c..76000a00a2f 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/model/Polarization.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/model/Polarization.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolarizationMapper { - static const int LEFT_HAND_HASH = HashingUtils::HashString("LEFT_HAND"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int RIGHT_HAND_HASH = HashingUtils::HashString("RIGHT_HAND"); + static constexpr uint32_t LEFT_HAND_HASH = ConstExprHashingUtils::HashString("LEFT_HAND"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t RIGHT_HAND_HASH = ConstExprHashingUtils::HashString("RIGHT_HAND"); Polarization GetPolarizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEFT_HAND_HASH) { return Polarization::LEFT_HAND; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyErrors.cpp b/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyErrors.cpp index 5bb2eab8142..1b16ea0bc06 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyErrors.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_GUARDDUTY_API InternalServerErrorException GuardDutyError::GetMod namespace GuardDutyErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/AdminStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/AdminStatus.cpp index 35b55212bd4..15cf467b7c5 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/AdminStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/AdminStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdminStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); AdminStatus GetAdminStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AdminStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/AutoEnableMembers.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/AutoEnableMembers.cpp index f6f9d331ae9..078e1e52496 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/AutoEnableMembers.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/AutoEnableMembers.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutoEnableMembersMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AutoEnableMembers GetAutoEnableMembersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return AutoEnableMembers::NEW_; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageFilterCriterionKey.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageFilterCriterionKey.cpp index b09b9001b60..9180a93cdcc 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageFilterCriterionKey.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageFilterCriterionKey.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CoverageFilterCriterionKeyMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int CLUSTER_NAME_HASH = HashingUtils::HashString("CLUSTER_NAME"); - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); - static const int COVERAGE_STATUS_HASH = HashingUtils::HashString("COVERAGE_STATUS"); - static const int ADDON_VERSION_HASH = HashingUtils::HashString("ADDON_VERSION"); - static const int MANAGEMENT_TYPE_HASH = HashingUtils::HashString("MANAGEMENT_TYPE"); - static const int EKS_CLUSTER_NAME_HASH = HashingUtils::HashString("EKS_CLUSTER_NAME"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t CLUSTER_NAME_HASH = ConstExprHashingUtils::HashString("CLUSTER_NAME"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t COVERAGE_STATUS_HASH = ConstExprHashingUtils::HashString("COVERAGE_STATUS"); + static constexpr uint32_t ADDON_VERSION_HASH = ConstExprHashingUtils::HashString("ADDON_VERSION"); + static constexpr uint32_t MANAGEMENT_TYPE_HASH = ConstExprHashingUtils::HashString("MANAGEMENT_TYPE"); + static constexpr uint32_t EKS_CLUSTER_NAME_HASH = ConstExprHashingUtils::HashString("EKS_CLUSTER_NAME"); CoverageFilterCriterionKey GetCoverageFilterCriterionKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return CoverageFilterCriterionKey::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageSortKey.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageSortKey.cpp index 6ecba51ec20..49003598290 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageSortKey.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageSortKey.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CoverageSortKeyMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int CLUSTER_NAME_HASH = HashingUtils::HashString("CLUSTER_NAME"); - static const int COVERAGE_STATUS_HASH = HashingUtils::HashString("COVERAGE_STATUS"); - static const int ISSUE_HASH = HashingUtils::HashString("ISSUE"); - static const int ADDON_VERSION_HASH = HashingUtils::HashString("ADDON_VERSION"); - static const int UPDATED_AT_HASH = HashingUtils::HashString("UPDATED_AT"); - static const int EKS_CLUSTER_NAME_HASH = HashingUtils::HashString("EKS_CLUSTER_NAME"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t CLUSTER_NAME_HASH = ConstExprHashingUtils::HashString("CLUSTER_NAME"); + static constexpr uint32_t COVERAGE_STATUS_HASH = ConstExprHashingUtils::HashString("COVERAGE_STATUS"); + static constexpr uint32_t ISSUE_HASH = ConstExprHashingUtils::HashString("ISSUE"); + static constexpr uint32_t ADDON_VERSION_HASH = ConstExprHashingUtils::HashString("ADDON_VERSION"); + static constexpr uint32_t UPDATED_AT_HASH = ConstExprHashingUtils::HashString("UPDATED_AT"); + static constexpr uint32_t EKS_CLUSTER_NAME_HASH = ConstExprHashingUtils::HashString("EKS_CLUSTER_NAME"); CoverageSortKey GetCoverageSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return CoverageSortKey::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatisticsType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatisticsType.cpp index 7b45a391811..df8c01fa664 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatisticsType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatisticsType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CoverageStatisticsTypeMapper { - static const int COUNT_BY_RESOURCE_TYPE_HASH = HashingUtils::HashString("COUNT_BY_RESOURCE_TYPE"); - static const int COUNT_BY_COVERAGE_STATUS_HASH = HashingUtils::HashString("COUNT_BY_COVERAGE_STATUS"); + static constexpr uint32_t COUNT_BY_RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("COUNT_BY_RESOURCE_TYPE"); + static constexpr uint32_t COUNT_BY_COVERAGE_STATUS_HASH = ConstExprHashingUtils::HashString("COUNT_BY_COVERAGE_STATUS"); CoverageStatisticsType GetCoverageStatisticsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_BY_RESOURCE_TYPE_HASH) { return CoverageStatisticsType::COUNT_BY_RESOURCE_TYPE; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatus.cpp index 4ced2830fbd..47acf8192ea 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/CoverageStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CoverageStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); CoverageStatus GetCoverageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return CoverageStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/CriterionKey.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/CriterionKey.cpp index 0977e679913..1b953c8ac16 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/CriterionKey.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/CriterionKey.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CriterionKeyMapper { - static const int EC2_INSTANCE_ARN_HASH = HashingUtils::HashString("EC2_INSTANCE_ARN"); - static const int SCAN_ID_HASH = HashingUtils::HashString("SCAN_ID"); - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int GUARDDUTY_FINDING_ID_HASH = HashingUtils::HashString("GUARDDUTY_FINDING_ID"); - static const int SCAN_START_TIME_HASH = HashingUtils::HashString("SCAN_START_TIME"); - static const int SCAN_STATUS_HASH = HashingUtils::HashString("SCAN_STATUS"); - static const int SCAN_TYPE_HASH = HashingUtils::HashString("SCAN_TYPE"); + static constexpr uint32_t EC2_INSTANCE_ARN_HASH = ConstExprHashingUtils::HashString("EC2_INSTANCE_ARN"); + static constexpr uint32_t SCAN_ID_HASH = ConstExprHashingUtils::HashString("SCAN_ID"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t GUARDDUTY_FINDING_ID_HASH = ConstExprHashingUtils::HashString("GUARDDUTY_FINDING_ID"); + static constexpr uint32_t SCAN_START_TIME_HASH = ConstExprHashingUtils::HashString("SCAN_START_TIME"); + static constexpr uint32_t SCAN_STATUS_HASH = ConstExprHashingUtils::HashString("SCAN_STATUS"); + static constexpr uint32_t SCAN_TYPE_HASH = ConstExprHashingUtils::HashString("SCAN_TYPE"); CriterionKey GetCriterionKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_INSTANCE_ARN_HASH) { return CriterionKey::EC2_INSTANCE_ARN; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/DataSource.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/DataSource.cpp index 22ff2bd24bc..ea240c80006 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/DataSource.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/DataSource.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataSourceMapper { - static const int FLOW_LOGS_HASH = HashingUtils::HashString("FLOW_LOGS"); - static const int CLOUD_TRAIL_HASH = HashingUtils::HashString("CLOUD_TRAIL"); - static const int DNS_LOGS_HASH = HashingUtils::HashString("DNS_LOGS"); - static const int S3_LOGS_HASH = HashingUtils::HashString("S3_LOGS"); - static const int KUBERNETES_AUDIT_LOGS_HASH = HashingUtils::HashString("KUBERNETES_AUDIT_LOGS"); - static const int EC2_MALWARE_SCAN_HASH = HashingUtils::HashString("EC2_MALWARE_SCAN"); + static constexpr uint32_t FLOW_LOGS_HASH = ConstExprHashingUtils::HashString("FLOW_LOGS"); + static constexpr uint32_t CLOUD_TRAIL_HASH = ConstExprHashingUtils::HashString("CLOUD_TRAIL"); + static constexpr uint32_t DNS_LOGS_HASH = ConstExprHashingUtils::HashString("DNS_LOGS"); + static constexpr uint32_t S3_LOGS_HASH = ConstExprHashingUtils::HashString("S3_LOGS"); + static constexpr uint32_t KUBERNETES_AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("KUBERNETES_AUDIT_LOGS"); + static constexpr uint32_t EC2_MALWARE_SCAN_HASH = ConstExprHashingUtils::HashString("EC2_MALWARE_SCAN"); DataSource GetDataSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOW_LOGS_HASH) { return DataSource::FLOW_LOGS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/DataSourceStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/DataSourceStatus.cpp index f70a5a8dd58..b79948cb4b0 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/DataSourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/DataSourceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataSourceStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DataSourceStatus GetDataSourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DataSourceStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/DestinationType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/DestinationType.cpp index dac974b71b4..cf8ea1f8512 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/DestinationType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/DestinationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DestinationTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); DestinationType GetDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return DestinationType::S3; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeature.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeature.cpp index cd7cf76364e..e92acb63de8 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeature.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeature.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DetectorFeatureMapper { - static const int S3_DATA_EVENTS_HASH = HashingUtils::HashString("S3_DATA_EVENTS"); - static const int EKS_AUDIT_LOGS_HASH = HashingUtils::HashString("EKS_AUDIT_LOGS"); - static const int EBS_MALWARE_PROTECTION_HASH = HashingUtils::HashString("EBS_MALWARE_PROTECTION"); - static const int RDS_LOGIN_EVENTS_HASH = HashingUtils::HashString("RDS_LOGIN_EVENTS"); - static const int EKS_RUNTIME_MONITORING_HASH = HashingUtils::HashString("EKS_RUNTIME_MONITORING"); - static const int LAMBDA_NETWORK_LOGS_HASH = HashingUtils::HashString("LAMBDA_NETWORK_LOGS"); + static constexpr uint32_t S3_DATA_EVENTS_HASH = ConstExprHashingUtils::HashString("S3_DATA_EVENTS"); + static constexpr uint32_t EKS_AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("EKS_AUDIT_LOGS"); + static constexpr uint32_t EBS_MALWARE_PROTECTION_HASH = ConstExprHashingUtils::HashString("EBS_MALWARE_PROTECTION"); + static constexpr uint32_t RDS_LOGIN_EVENTS_HASH = ConstExprHashingUtils::HashString("RDS_LOGIN_EVENTS"); + static constexpr uint32_t EKS_RUNTIME_MONITORING_HASH = ConstExprHashingUtils::HashString("EKS_RUNTIME_MONITORING"); + static constexpr uint32_t LAMBDA_NETWORK_LOGS_HASH = ConstExprHashingUtils::HashString("LAMBDA_NETWORK_LOGS"); DetectorFeature GetDetectorFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_DATA_EVENTS_HASH) { return DetectorFeature::S3_DATA_EVENTS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeatureResult.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeatureResult.cpp index 309a3a60d68..34ae0d7d1a0 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeatureResult.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorFeatureResult.cpp @@ -20,20 +20,20 @@ namespace Aws namespace DetectorFeatureResultMapper { - static const int FLOW_LOGS_HASH = HashingUtils::HashString("FLOW_LOGS"); - static const int CLOUD_TRAIL_HASH = HashingUtils::HashString("CLOUD_TRAIL"); - static const int DNS_LOGS_HASH = HashingUtils::HashString("DNS_LOGS"); - static const int S3_DATA_EVENTS_HASH = HashingUtils::HashString("S3_DATA_EVENTS"); - static const int EKS_AUDIT_LOGS_HASH = HashingUtils::HashString("EKS_AUDIT_LOGS"); - static const int EBS_MALWARE_PROTECTION_HASH = HashingUtils::HashString("EBS_MALWARE_PROTECTION"); - static const int RDS_LOGIN_EVENTS_HASH = HashingUtils::HashString("RDS_LOGIN_EVENTS"); - static const int EKS_RUNTIME_MONITORING_HASH = HashingUtils::HashString("EKS_RUNTIME_MONITORING"); - static const int LAMBDA_NETWORK_LOGS_HASH = HashingUtils::HashString("LAMBDA_NETWORK_LOGS"); + static constexpr uint32_t FLOW_LOGS_HASH = ConstExprHashingUtils::HashString("FLOW_LOGS"); + static constexpr uint32_t CLOUD_TRAIL_HASH = ConstExprHashingUtils::HashString("CLOUD_TRAIL"); + static constexpr uint32_t DNS_LOGS_HASH = ConstExprHashingUtils::HashString("DNS_LOGS"); + static constexpr uint32_t S3_DATA_EVENTS_HASH = ConstExprHashingUtils::HashString("S3_DATA_EVENTS"); + static constexpr uint32_t EKS_AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("EKS_AUDIT_LOGS"); + static constexpr uint32_t EBS_MALWARE_PROTECTION_HASH = ConstExprHashingUtils::HashString("EBS_MALWARE_PROTECTION"); + static constexpr uint32_t RDS_LOGIN_EVENTS_HASH = ConstExprHashingUtils::HashString("RDS_LOGIN_EVENTS"); + static constexpr uint32_t EKS_RUNTIME_MONITORING_HASH = ConstExprHashingUtils::HashString("EKS_RUNTIME_MONITORING"); + static constexpr uint32_t LAMBDA_NETWORK_LOGS_HASH = ConstExprHashingUtils::HashString("LAMBDA_NETWORK_LOGS"); DetectorFeatureResult GetDetectorFeatureResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOW_LOGS_HASH) { return DetectorFeatureResult::FLOW_LOGS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorStatus.cpp index ed8d2e5cf3a..c9772e63bd6 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/DetectorStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DetectorStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DetectorStatus GetDetectorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DetectorStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/EbsSnapshotPreservation.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/EbsSnapshotPreservation.cpp index 78d102cbc53..bec6fe2941b 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/EbsSnapshotPreservation.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/EbsSnapshotPreservation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EbsSnapshotPreservationMapper { - static const int NO_RETENTION_HASH = HashingUtils::HashString("NO_RETENTION"); - static const int RETENTION_WITH_FINDING_HASH = HashingUtils::HashString("RETENTION_WITH_FINDING"); + static constexpr uint32_t NO_RETENTION_HASH = ConstExprHashingUtils::HashString("NO_RETENTION"); + static constexpr uint32_t RETENTION_WITH_FINDING_HASH = ConstExprHashingUtils::HashString("RETENTION_WITH_FINDING"); EbsSnapshotPreservation GetEbsSnapshotPreservationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_RETENTION_HASH) { return EbsSnapshotPreservation::NO_RETENTION; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureAdditionalConfiguration.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureAdditionalConfiguration.cpp index d334253fce4..9bd3526471f 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureAdditionalConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureAdditionalConfiguration.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FeatureAdditionalConfigurationMapper { - static const int EKS_ADDON_MANAGEMENT_HASH = HashingUtils::HashString("EKS_ADDON_MANAGEMENT"); + static constexpr uint32_t EKS_ADDON_MANAGEMENT_HASH = ConstExprHashingUtils::HashString("EKS_ADDON_MANAGEMENT"); FeatureAdditionalConfiguration GetFeatureAdditionalConfigurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EKS_ADDON_MANAGEMENT_HASH) { return FeatureAdditionalConfiguration::EKS_ADDON_MANAGEMENT; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureStatus.cpp index ccf12120e64..fb52ec7dcfe 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/FeatureStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); FeatureStatus GetFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return FeatureStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/Feedback.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/Feedback.cpp index 56c8f5ddddf..33637c6f11a 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/Feedback.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/Feedback.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeedbackMapper { - static const int USEFUL_HASH = HashingUtils::HashString("USEFUL"); - static const int NOT_USEFUL_HASH = HashingUtils::HashString("NOT_USEFUL"); + static constexpr uint32_t USEFUL_HASH = ConstExprHashingUtils::HashString("USEFUL"); + static constexpr uint32_t NOT_USEFUL_HASH = ConstExprHashingUtils::HashString("NOT_USEFUL"); Feedback GetFeedbackForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USEFUL_HASH) { return Feedback::USEFUL; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/FilterAction.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/FilterAction.cpp index 0ecb761127d..c62c7c5ba77 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/FilterAction.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/FilterAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterActionMapper { - static const int NOOP_HASH = HashingUtils::HashString("NOOP"); - static const int ARCHIVE_HASH = HashingUtils::HashString("ARCHIVE"); + static constexpr uint32_t NOOP_HASH = ConstExprHashingUtils::HashString("NOOP"); + static constexpr uint32_t ARCHIVE_HASH = ConstExprHashingUtils::HashString("ARCHIVE"); FilterAction GetFilterActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOOP_HASH) { return FilterAction::NOOP; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/FindingPublishingFrequency.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/FindingPublishingFrequency.cpp index 5a36d9894e4..06e8f969fe0 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/FindingPublishingFrequency.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/FindingPublishingFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingPublishingFrequencyMapper { - static const int FIFTEEN_MINUTES_HASH = HashingUtils::HashString("FIFTEEN_MINUTES"); - static const int ONE_HOUR_HASH = HashingUtils::HashString("ONE_HOUR"); - static const int SIX_HOURS_HASH = HashingUtils::HashString("SIX_HOURS"); + static constexpr uint32_t FIFTEEN_MINUTES_HASH = ConstExprHashingUtils::HashString("FIFTEEN_MINUTES"); + static constexpr uint32_t ONE_HOUR_HASH = ConstExprHashingUtils::HashString("ONE_HOUR"); + static constexpr uint32_t SIX_HOURS_HASH = ConstExprHashingUtils::HashString("SIX_HOURS"); FindingPublishingFrequency GetFindingPublishingFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIFTEEN_MINUTES_HASH) { return FindingPublishingFrequency::FIFTEEN_MINUTES; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/FindingStatisticType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/FindingStatisticType.cpp index ce45f13e9e6..c17ae56f891 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/FindingStatisticType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/FindingStatisticType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FindingStatisticTypeMapper { - static const int COUNT_BY_SEVERITY_HASH = HashingUtils::HashString("COUNT_BY_SEVERITY"); + static constexpr uint32_t COUNT_BY_SEVERITY_HASH = ConstExprHashingUtils::HashString("COUNT_BY_SEVERITY"); FindingStatisticType GetFindingStatisticTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_BY_SEVERITY_HASH) { return FindingStatisticType::COUNT_BY_SEVERITY; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/FreeTrialFeatureResult.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/FreeTrialFeatureResult.cpp index df6c485744a..8355f9267a1 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/FreeTrialFeatureResult.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/FreeTrialFeatureResult.cpp @@ -20,20 +20,20 @@ namespace Aws namespace FreeTrialFeatureResultMapper { - static const int FLOW_LOGS_HASH = HashingUtils::HashString("FLOW_LOGS"); - static const int CLOUD_TRAIL_HASH = HashingUtils::HashString("CLOUD_TRAIL"); - static const int DNS_LOGS_HASH = HashingUtils::HashString("DNS_LOGS"); - static const int S3_DATA_EVENTS_HASH = HashingUtils::HashString("S3_DATA_EVENTS"); - static const int EKS_AUDIT_LOGS_HASH = HashingUtils::HashString("EKS_AUDIT_LOGS"); - static const int EBS_MALWARE_PROTECTION_HASH = HashingUtils::HashString("EBS_MALWARE_PROTECTION"); - static const int RDS_LOGIN_EVENTS_HASH = HashingUtils::HashString("RDS_LOGIN_EVENTS"); - static const int EKS_RUNTIME_MONITORING_HASH = HashingUtils::HashString("EKS_RUNTIME_MONITORING"); - static const int LAMBDA_NETWORK_LOGS_HASH = HashingUtils::HashString("LAMBDA_NETWORK_LOGS"); + static constexpr uint32_t FLOW_LOGS_HASH = ConstExprHashingUtils::HashString("FLOW_LOGS"); + static constexpr uint32_t CLOUD_TRAIL_HASH = ConstExprHashingUtils::HashString("CLOUD_TRAIL"); + static constexpr uint32_t DNS_LOGS_HASH = ConstExprHashingUtils::HashString("DNS_LOGS"); + static constexpr uint32_t S3_DATA_EVENTS_HASH = ConstExprHashingUtils::HashString("S3_DATA_EVENTS"); + static constexpr uint32_t EKS_AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("EKS_AUDIT_LOGS"); + static constexpr uint32_t EBS_MALWARE_PROTECTION_HASH = ConstExprHashingUtils::HashString("EBS_MALWARE_PROTECTION"); + static constexpr uint32_t RDS_LOGIN_EVENTS_HASH = ConstExprHashingUtils::HashString("RDS_LOGIN_EVENTS"); + static constexpr uint32_t EKS_RUNTIME_MONITORING_HASH = ConstExprHashingUtils::HashString("EKS_RUNTIME_MONITORING"); + static constexpr uint32_t LAMBDA_NETWORK_LOGS_HASH = ConstExprHashingUtils::HashString("LAMBDA_NETWORK_LOGS"); FreeTrialFeatureResult GetFreeTrialFeatureResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOW_LOGS_HASH) { return FreeTrialFeatureResult::FLOW_LOGS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetFormat.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetFormat.cpp index ff07ad094b6..61c2b898d28 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetFormat.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetFormat.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IpSetFormatMapper { - static const int TXT_HASH = HashingUtils::HashString("TXT"); - static const int STIX_HASH = HashingUtils::HashString("STIX"); - static const int OTX_CSV_HASH = HashingUtils::HashString("OTX_CSV"); - static const int ALIEN_VAULT_HASH = HashingUtils::HashString("ALIEN_VAULT"); - static const int PROOF_POINT_HASH = HashingUtils::HashString("PROOF_POINT"); - static const int FIRE_EYE_HASH = HashingUtils::HashString("FIRE_EYE"); + static constexpr uint32_t TXT_HASH = ConstExprHashingUtils::HashString("TXT"); + static constexpr uint32_t STIX_HASH = ConstExprHashingUtils::HashString("STIX"); + static constexpr uint32_t OTX_CSV_HASH = ConstExprHashingUtils::HashString("OTX_CSV"); + static constexpr uint32_t ALIEN_VAULT_HASH = ConstExprHashingUtils::HashString("ALIEN_VAULT"); + static constexpr uint32_t PROOF_POINT_HASH = ConstExprHashingUtils::HashString("PROOF_POINT"); + static constexpr uint32_t FIRE_EYE_HASH = ConstExprHashingUtils::HashString("FIRE_EYE"); IpSetFormat GetIpSetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TXT_HASH) { return IpSetFormat::TXT; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetStatus.cpp index 0cf23bcd810..58be68b9423 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/IpSetStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace IpSetStatusMapper { - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DEACTIVATING_HASH = HashingUtils::HashString("DEACTIVATING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETE_PENDING_HASH = HashingUtils::HashString("DELETE_PENDING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DEACTIVATING_HASH = ConstExprHashingUtils::HashString("DEACTIVATING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETE_PENDING_HASH = ConstExprHashingUtils::HashString("DELETE_PENDING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); IpSetStatus GetIpSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INACTIVE_HASH) { return IpSetStatus::INACTIVE; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ManagementType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ManagementType.cpp index a5e7a7db6d3..de4ef6b3ae6 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ManagementType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ManagementType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManagementTypeMapper { - static const int AUTO_MANAGED_HASH = HashingUtils::HashString("AUTO_MANAGED"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTO_MANAGED_HASH = ConstExprHashingUtils::HashString("AUTO_MANAGED"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); ManagementType GetManagementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_MANAGED_HASH) { return ManagementType::AUTO_MANAGED; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrderBy.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrderBy.cpp index 460f808e25d..4e045d4c722 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/OrderBy.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrderBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderByMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); OrderBy GetOrderByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return OrderBy::ASC; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeature.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeature.cpp index 9c6724010e1..4d16c99fa5c 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeature.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeature.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OrgFeatureMapper { - static const int S3_DATA_EVENTS_HASH = HashingUtils::HashString("S3_DATA_EVENTS"); - static const int EKS_AUDIT_LOGS_HASH = HashingUtils::HashString("EKS_AUDIT_LOGS"); - static const int EBS_MALWARE_PROTECTION_HASH = HashingUtils::HashString("EBS_MALWARE_PROTECTION"); - static const int RDS_LOGIN_EVENTS_HASH = HashingUtils::HashString("RDS_LOGIN_EVENTS"); - static const int EKS_RUNTIME_MONITORING_HASH = HashingUtils::HashString("EKS_RUNTIME_MONITORING"); - static const int LAMBDA_NETWORK_LOGS_HASH = HashingUtils::HashString("LAMBDA_NETWORK_LOGS"); + static constexpr uint32_t S3_DATA_EVENTS_HASH = ConstExprHashingUtils::HashString("S3_DATA_EVENTS"); + static constexpr uint32_t EKS_AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("EKS_AUDIT_LOGS"); + static constexpr uint32_t EBS_MALWARE_PROTECTION_HASH = ConstExprHashingUtils::HashString("EBS_MALWARE_PROTECTION"); + static constexpr uint32_t RDS_LOGIN_EVENTS_HASH = ConstExprHashingUtils::HashString("RDS_LOGIN_EVENTS"); + static constexpr uint32_t EKS_RUNTIME_MONITORING_HASH = ConstExprHashingUtils::HashString("EKS_RUNTIME_MONITORING"); + static constexpr uint32_t LAMBDA_NETWORK_LOGS_HASH = ConstExprHashingUtils::HashString("LAMBDA_NETWORK_LOGS"); OrgFeature GetOrgFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_DATA_EVENTS_HASH) { return OrgFeature::S3_DATA_EVENTS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureAdditionalConfiguration.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureAdditionalConfiguration.cpp index 1306df2c676..3165c527670 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureAdditionalConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureAdditionalConfiguration.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OrgFeatureAdditionalConfigurationMapper { - static const int EKS_ADDON_MANAGEMENT_HASH = HashingUtils::HashString("EKS_ADDON_MANAGEMENT"); + static constexpr uint32_t EKS_ADDON_MANAGEMENT_HASH = ConstExprHashingUtils::HashString("EKS_ADDON_MANAGEMENT"); OrgFeatureAdditionalConfiguration GetOrgFeatureAdditionalConfigurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EKS_ADDON_MANAGEMENT_HASH) { return OrgFeatureAdditionalConfiguration::EKS_ADDON_MANAGEMENT; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureStatus.cpp index 6b9ea09f4e1..cf37747be23 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrgFeatureStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrgFeatureStatusMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); OrgFeatureStatus GetOrgFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return OrgFeatureStatus::NEW_; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/PublishingStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/PublishingStatus.cpp index 7c849720d52..b6308742787 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/PublishingStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/PublishingStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PublishingStatusMapper { - static const int PENDING_VERIFICATION_HASH = HashingUtils::HashString("PENDING_VERIFICATION"); - static const int PUBLISHING_HASH = HashingUtils::HashString("PUBLISHING"); - static const int UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY_HASH = HashingUtils::HashString("UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PENDING_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PENDING_VERIFICATION"); + static constexpr uint32_t PUBLISHING_HASH = ConstExprHashingUtils::HashString("PUBLISHING"); + static constexpr uint32_t UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY_HASH = ConstExprHashingUtils::HashString("UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); PublishingStatus GetPublishingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VERIFICATION_HASH) { return PublishingStatus::PENDING_VERIFICATION; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ResourceType.cpp index fcb372adb81..a3181ddcb89 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceTypeMapper { - static const int EKS_HASH = HashingUtils::HashString("EKS"); + static constexpr uint32_t EKS_HASH = ConstExprHashingUtils::HashString("EKS"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EKS_HASH) { return ResourceType::EKS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanCriterionKey.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanCriterionKey.cpp index e776d2ac71f..ed72deb1154 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanCriterionKey.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanCriterionKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ScanCriterionKeyMapper { - static const int EC2_INSTANCE_TAG_HASH = HashingUtils::HashString("EC2_INSTANCE_TAG"); + static constexpr uint32_t EC2_INSTANCE_TAG_HASH = ConstExprHashingUtils::HashString("EC2_INSTANCE_TAG"); ScanCriterionKey GetScanCriterionKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_INSTANCE_TAG_HASH) { return ScanCriterionKey::EC2_INSTANCE_TAG; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanResult.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanResult.cpp index 91c2380e05d..80c3556ad65 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanResult.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanResult.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanResultMapper { - static const int CLEAN_HASH = HashingUtils::HashString("CLEAN"); - static const int INFECTED_HASH = HashingUtils::HashString("INFECTED"); + static constexpr uint32_t CLEAN_HASH = ConstExprHashingUtils::HashString("CLEAN"); + static constexpr uint32_t INFECTED_HASH = ConstExprHashingUtils::HashString("INFECTED"); ScanResult GetScanResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLEAN_HASH) { return ScanResult::CLEAN; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanStatus.cpp index 495c72207d4..49b7ccb5a5b 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ScanStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); ScanStatus GetScanStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return ScanStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanType.cpp index 00b1572dcd2..c2cfaab8e28 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ScanType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanTypeMapper { - static const int GUARDDUTY_INITIATED_HASH = HashingUtils::HashString("GUARDDUTY_INITIATED"); - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t GUARDDUTY_INITIATED_HASH = ConstExprHashingUtils::HashString("GUARDDUTY_INITIATED"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); ScanType GetScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GUARDDUTY_INITIATED_HASH) { return ScanType::GUARDDUTY_INITIATED; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetFormat.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetFormat.cpp index c0274c97b66..9daf8d42ee3 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetFormat.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetFormat.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ThreatIntelSetFormatMapper { - static const int TXT_HASH = HashingUtils::HashString("TXT"); - static const int STIX_HASH = HashingUtils::HashString("STIX"); - static const int OTX_CSV_HASH = HashingUtils::HashString("OTX_CSV"); - static const int ALIEN_VAULT_HASH = HashingUtils::HashString("ALIEN_VAULT"); - static const int PROOF_POINT_HASH = HashingUtils::HashString("PROOF_POINT"); - static const int FIRE_EYE_HASH = HashingUtils::HashString("FIRE_EYE"); + static constexpr uint32_t TXT_HASH = ConstExprHashingUtils::HashString("TXT"); + static constexpr uint32_t STIX_HASH = ConstExprHashingUtils::HashString("STIX"); + static constexpr uint32_t OTX_CSV_HASH = ConstExprHashingUtils::HashString("OTX_CSV"); + static constexpr uint32_t ALIEN_VAULT_HASH = ConstExprHashingUtils::HashString("ALIEN_VAULT"); + static constexpr uint32_t PROOF_POINT_HASH = ConstExprHashingUtils::HashString("PROOF_POINT"); + static constexpr uint32_t FIRE_EYE_HASH = ConstExprHashingUtils::HashString("FIRE_EYE"); ThreatIntelSetFormat GetThreatIntelSetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TXT_HASH) { return ThreatIntelSetFormat::TXT; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetStatus.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetStatus.cpp index ddbaad7fed5..d86b04ae9c2 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/ThreatIntelSetStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ThreatIntelSetStatusMapper { - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DEACTIVATING_HASH = HashingUtils::HashString("DEACTIVATING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETE_PENDING_HASH = HashingUtils::HashString("DELETE_PENDING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DEACTIVATING_HASH = ConstExprHashingUtils::HashString("DEACTIVATING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETE_PENDING_HASH = ConstExprHashingUtils::HashString("DELETE_PENDING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ThreatIntelSetStatus GetThreatIntelSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INACTIVE_HASH) { return ThreatIntelSetStatus::INACTIVE; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageFeature.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageFeature.cpp index c71aa6c3be9..929ae7cf7cb 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageFeature.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageFeature.cpp @@ -20,20 +20,20 @@ namespace Aws namespace UsageFeatureMapper { - static const int FLOW_LOGS_HASH = HashingUtils::HashString("FLOW_LOGS"); - static const int CLOUD_TRAIL_HASH = HashingUtils::HashString("CLOUD_TRAIL"); - static const int DNS_LOGS_HASH = HashingUtils::HashString("DNS_LOGS"); - static const int S3_DATA_EVENTS_HASH = HashingUtils::HashString("S3_DATA_EVENTS"); - static const int EKS_AUDIT_LOGS_HASH = HashingUtils::HashString("EKS_AUDIT_LOGS"); - static const int EBS_MALWARE_PROTECTION_HASH = HashingUtils::HashString("EBS_MALWARE_PROTECTION"); - static const int RDS_LOGIN_EVENTS_HASH = HashingUtils::HashString("RDS_LOGIN_EVENTS"); - static const int LAMBDA_NETWORK_LOGS_HASH = HashingUtils::HashString("LAMBDA_NETWORK_LOGS"); - static const int EKS_RUNTIME_MONITORING_HASH = HashingUtils::HashString("EKS_RUNTIME_MONITORING"); + static constexpr uint32_t FLOW_LOGS_HASH = ConstExprHashingUtils::HashString("FLOW_LOGS"); + static constexpr uint32_t CLOUD_TRAIL_HASH = ConstExprHashingUtils::HashString("CLOUD_TRAIL"); + static constexpr uint32_t DNS_LOGS_HASH = ConstExprHashingUtils::HashString("DNS_LOGS"); + static constexpr uint32_t S3_DATA_EVENTS_HASH = ConstExprHashingUtils::HashString("S3_DATA_EVENTS"); + static constexpr uint32_t EKS_AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("EKS_AUDIT_LOGS"); + static constexpr uint32_t EBS_MALWARE_PROTECTION_HASH = ConstExprHashingUtils::HashString("EBS_MALWARE_PROTECTION"); + static constexpr uint32_t RDS_LOGIN_EVENTS_HASH = ConstExprHashingUtils::HashString("RDS_LOGIN_EVENTS"); + static constexpr uint32_t LAMBDA_NETWORK_LOGS_HASH = ConstExprHashingUtils::HashString("LAMBDA_NETWORK_LOGS"); + static constexpr uint32_t EKS_RUNTIME_MONITORING_HASH = ConstExprHashingUtils::HashString("EKS_RUNTIME_MONITORING"); UsageFeature GetUsageFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOW_LOGS_HASH) { return UsageFeature::FLOW_LOGS; diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp index ae72ca0c71a..80e1af1b50e 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UsageStatisticTypeMapper { - static const int SUM_BY_ACCOUNT_HASH = HashingUtils::HashString("SUM_BY_ACCOUNT"); - static const int SUM_BY_DATA_SOURCE_HASH = HashingUtils::HashString("SUM_BY_DATA_SOURCE"); - static const int SUM_BY_RESOURCE_HASH = HashingUtils::HashString("SUM_BY_RESOURCE"); - static const int TOP_RESOURCES_HASH = HashingUtils::HashString("TOP_RESOURCES"); - static const int SUM_BY_FEATURES_HASH = HashingUtils::HashString("SUM_BY_FEATURES"); + static constexpr uint32_t SUM_BY_ACCOUNT_HASH = ConstExprHashingUtils::HashString("SUM_BY_ACCOUNT"); + static constexpr uint32_t SUM_BY_DATA_SOURCE_HASH = ConstExprHashingUtils::HashString("SUM_BY_DATA_SOURCE"); + static constexpr uint32_t SUM_BY_RESOURCE_HASH = ConstExprHashingUtils::HashString("SUM_BY_RESOURCE"); + static constexpr uint32_t TOP_RESOURCES_HASH = ConstExprHashingUtils::HashString("TOP_RESOURCES"); + static constexpr uint32_t SUM_BY_FEATURES_HASH = ConstExprHashingUtils::HashString("SUM_BY_FEATURES"); UsageStatisticType GetUsageStatisticTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_BY_ACCOUNT_HASH) { return UsageStatisticType::SUM_BY_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-health/source/HealthErrors.cpp b/generated/src/aws-cpp-sdk-health/source/HealthErrors.cpp index e9543c1210c..bbd6040fc2a 100644 --- a/generated/src/aws-cpp-sdk-health/source/HealthErrors.cpp +++ b/generated/src/aws-cpp-sdk-health/source/HealthErrors.cpp @@ -18,14 +18,14 @@ namespace Health namespace HealthErrorMapper { -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationToken"); -static const int UNSUPPORTED_LOCALE_HASH = HashingUtils::HashString("UnsupportedLocale"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationToken"); +static constexpr uint32_t UNSUPPORTED_LOCALE_HASH = ConstExprHashingUtils::HashString("UnsupportedLocale"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_PAGINATION_TOKEN_HASH) { diff --git a/generated/src/aws-cpp-sdk-health/source/model/EntityStatusCode.cpp b/generated/src/aws-cpp-sdk-health/source/model/EntityStatusCode.cpp index 039c73d27ef..6233ee87eb6 100644 --- a/generated/src/aws-cpp-sdk-health/source/model/EntityStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-health/source/model/EntityStatusCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EntityStatusCodeMapper { - static const int IMPAIRED_HASH = HashingUtils::HashString("IMPAIRED"); - static const int UNIMPAIRED_HASH = HashingUtils::HashString("UNIMPAIRED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t IMPAIRED_HASH = ConstExprHashingUtils::HashString("IMPAIRED"); + static constexpr uint32_t UNIMPAIRED_HASH = ConstExprHashingUtils::HashString("UNIMPAIRED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); EntityStatusCode GetEntityStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPAIRED_HASH) { return EntityStatusCode::IMPAIRED; diff --git a/generated/src/aws-cpp-sdk-health/source/model/EventAggregateField.cpp b/generated/src/aws-cpp-sdk-health/source/model/EventAggregateField.cpp index 7d4f47b77f9..e311f4f416a 100644 --- a/generated/src/aws-cpp-sdk-health/source/model/EventAggregateField.cpp +++ b/generated/src/aws-cpp-sdk-health/source/model/EventAggregateField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventAggregateFieldMapper { - static const int eventTypeCategory_HASH = HashingUtils::HashString("eventTypeCategory"); + static constexpr uint32_t eventTypeCategory_HASH = ConstExprHashingUtils::HashString("eventTypeCategory"); EventAggregateField GetEventAggregateFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == eventTypeCategory_HASH) { return EventAggregateField::eventTypeCategory; diff --git a/generated/src/aws-cpp-sdk-health/source/model/EventScopeCode.cpp b/generated/src/aws-cpp-sdk-health/source/model/EventScopeCode.cpp index 014674c2a4a..993d02f34b0 100644 --- a/generated/src/aws-cpp-sdk-health/source/model/EventScopeCode.cpp +++ b/generated/src/aws-cpp-sdk-health/source/model/EventScopeCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventScopeCodeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int ACCOUNT_SPECIFIC_HASH = HashingUtils::HashString("ACCOUNT_SPECIFIC"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t ACCOUNT_SPECIFIC_HASH = ConstExprHashingUtils::HashString("ACCOUNT_SPECIFIC"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); EventScopeCode GetEventScopeCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return EventScopeCode::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-health/source/model/EventStatusCode.cpp b/generated/src/aws-cpp-sdk-health/source/model/EventStatusCode.cpp index ade527dc9f7..3f4f91721ea 100644 --- a/generated/src/aws-cpp-sdk-health/source/model/EventStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-health/source/model/EventStatusCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventStatusCodeMapper { - static const int open_HASH = HashingUtils::HashString("open"); - static const int closed_HASH = HashingUtils::HashString("closed"); - static const int upcoming_HASH = HashingUtils::HashString("upcoming"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t closed_HASH = ConstExprHashingUtils::HashString("closed"); + static constexpr uint32_t upcoming_HASH = ConstExprHashingUtils::HashString("upcoming"); EventStatusCode GetEventStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return EventStatusCode::open; diff --git a/generated/src/aws-cpp-sdk-health/source/model/EventTypeCategory.cpp b/generated/src/aws-cpp-sdk-health/source/model/EventTypeCategory.cpp index c4e9c32b7e9..f183ded9686 100644 --- a/generated/src/aws-cpp-sdk-health/source/model/EventTypeCategory.cpp +++ b/generated/src/aws-cpp-sdk-health/source/model/EventTypeCategory.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EventTypeCategoryMapper { - static const int issue_HASH = HashingUtils::HashString("issue"); - static const int accountNotification_HASH = HashingUtils::HashString("accountNotification"); - static const int scheduledChange_HASH = HashingUtils::HashString("scheduledChange"); - static const int investigation_HASH = HashingUtils::HashString("investigation"); + static constexpr uint32_t issue_HASH = ConstExprHashingUtils::HashString("issue"); + static constexpr uint32_t accountNotification_HASH = ConstExprHashingUtils::HashString("accountNotification"); + static constexpr uint32_t scheduledChange_HASH = ConstExprHashingUtils::HashString("scheduledChange"); + static constexpr uint32_t investigation_HASH = ConstExprHashingUtils::HashString("investigation"); EventTypeCategory GetEventTypeCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == issue_HASH) { return EventTypeCategory::issue; diff --git a/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeErrors.cpp b/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeErrors.cpp index d233b5f5e54..a1f3fc35ed3 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeErrors.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeErrors.cpp @@ -18,13 +18,13 @@ namespace HealthLake namespace HealthLakeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-healthlake/source/model/AuthorizationStrategy.cpp b/generated/src/aws-cpp-sdk-healthlake/source/model/AuthorizationStrategy.cpp index a230f67d47e..a6c0744751c 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/model/AuthorizationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/model/AuthorizationStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthorizationStrategyMapper { - static const int SMART_ON_FHIR_V1_HASH = HashingUtils::HashString("SMART_ON_FHIR_V1"); - static const int AWS_AUTH_HASH = HashingUtils::HashString("AWS_AUTH"); + static constexpr uint32_t SMART_ON_FHIR_V1_HASH = ConstExprHashingUtils::HashString("SMART_ON_FHIR_V1"); + static constexpr uint32_t AWS_AUTH_HASH = ConstExprHashingUtils::HashString("AWS_AUTH"); AuthorizationStrategy GetAuthorizationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMART_ON_FHIR_V1_HASH) { return AuthorizationStrategy::SMART_ON_FHIR_V1; diff --git a/generated/src/aws-cpp-sdk-healthlake/source/model/CmkType.cpp b/generated/src/aws-cpp-sdk-healthlake/source/model/CmkType.cpp index 924d918a375..65e1c16b1c9 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/model/CmkType.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/model/CmkType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmkTypeMapper { - static const int CUSTOMER_MANAGED_KMS_KEY_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_KMS_KEY"); - static const int AWS_OWNED_KMS_KEY_HASH = HashingUtils::HashString("AWS_OWNED_KMS_KEY"); + static constexpr uint32_t CUSTOMER_MANAGED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_KMS_KEY"); + static constexpr uint32_t AWS_OWNED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_KMS_KEY"); CmkType GetCmkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_KMS_KEY_HASH) { return CmkType::CUSTOMER_MANAGED_KMS_KEY; diff --git a/generated/src/aws-cpp-sdk-healthlake/source/model/DatastoreStatus.cpp b/generated/src/aws-cpp-sdk-healthlake/source/model/DatastoreStatus.cpp index f3274674bb7..5541469e20e 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/model/DatastoreStatus.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/model/DatastoreStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DatastoreStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); DatastoreStatus GetDatastoreStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DatastoreStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-healthlake/source/model/FHIRVersion.cpp b/generated/src/aws-cpp-sdk-healthlake/source/model/FHIRVersion.cpp index b04e4ba2a53..1734a76ec6c 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/model/FHIRVersion.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/model/FHIRVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FHIRVersionMapper { - static const int R4_HASH = HashingUtils::HashString("R4"); + static constexpr uint32_t R4_HASH = ConstExprHashingUtils::HashString("R4"); FHIRVersion GetFHIRVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == R4_HASH) { return FHIRVersion::R4; diff --git a/generated/src/aws-cpp-sdk-healthlake/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-healthlake/source/model/JobStatus.cpp index 611953cc8e4..41785f3c3eb 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/model/JobStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_WITH_ERRORS_HASH = HashingUtils::HashString("COMPLETED_WITH_ERRORS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCEL_SUBMITTED_HASH = HashingUtils::HashString("CANCEL_SUBMITTED"); - static const int CANCEL_IN_PROGRESS_HASH = HashingUtils::HashString("CANCEL_IN_PROGRESS"); - static const int CANCEL_COMPLETED_HASH = HashingUtils::HashString("CANCEL_COMPLETED"); - static const int CANCEL_FAILED_HASH = HashingUtils::HashString("CANCEL_FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ERRORS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCEL_SUBMITTED_HASH = ConstExprHashingUtils::HashString("CANCEL_SUBMITTED"); + static constexpr uint32_t CANCEL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CANCEL_IN_PROGRESS"); + static constexpr uint32_t CANCEL_COMPLETED_HASH = ConstExprHashingUtils::HashString("CANCEL_COMPLETED"); + static constexpr uint32_t CANCEL_FAILED_HASH = ConstExprHashingUtils::HashString("CANCEL_FAILED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-healthlake/source/model/PreloadDataType.cpp b/generated/src/aws-cpp-sdk-healthlake/source/model/PreloadDataType.cpp index 0a534a7f812..2163ef5f67e 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/model/PreloadDataType.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/model/PreloadDataType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PreloadDataTypeMapper { - static const int SYNTHEA_HASH = HashingUtils::HashString("SYNTHEA"); + static constexpr uint32_t SYNTHEA_HASH = ConstExprHashingUtils::HashString("SYNTHEA"); PreloadDataType GetPreloadDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYNTHEA_HASH) { return PreloadDataType::SYNTHEA; diff --git a/generated/src/aws-cpp-sdk-honeycode/source/HoneycodeErrors.cpp b/generated/src/aws-cpp-sdk-honeycode/source/HoneycodeErrors.cpp index 3a453072805..5f13a2a830e 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/HoneycodeErrors.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/HoneycodeErrors.cpp @@ -18,15 +18,15 @@ namespace Honeycode namespace HoneycodeErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int AUTOMATION_EXECUTION_TIMEOUT_HASH = HashingUtils::HashString("AutomationExecutionTimeoutException"); -static const int AUTOMATION_EXECUTION_HASH = HashingUtils::HashString("AutomationExecutionException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t AUTOMATION_EXECUTION_TIMEOUT_HASH = ConstExprHashingUtils::HashString("AutomationExecutionTimeoutException"); +static constexpr uint32_t AUTOMATION_EXECUTION_HASH = ConstExprHashingUtils::HashString("AutomationExecutionException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-honeycode/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-honeycode/source/model/ErrorCode.cpp index 1bbd4ffab40..14581284d36 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/model/ErrorCode.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ErrorCodeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INVALID_URL_ERROR_HASH = HashingUtils::HashString("INVALID_URL_ERROR"); - static const int INVALID_IMPORT_OPTIONS_ERROR_HASH = HashingUtils::HashString("INVALID_IMPORT_OPTIONS_ERROR"); - static const int INVALID_TABLE_ID_ERROR_HASH = HashingUtils::HashString("INVALID_TABLE_ID_ERROR"); - static const int INVALID_TABLE_COLUMN_ID_ERROR_HASH = HashingUtils::HashString("INVALID_TABLE_COLUMN_ID_ERROR"); - static const int TABLE_NOT_FOUND_ERROR_HASH = HashingUtils::HashString("TABLE_NOT_FOUND_ERROR"); - static const int FILE_EMPTY_ERROR_HASH = HashingUtils::HashString("FILE_EMPTY_ERROR"); - static const int INVALID_FILE_TYPE_ERROR_HASH = HashingUtils::HashString("INVALID_FILE_TYPE_ERROR"); - static const int FILE_PARSING_ERROR_HASH = HashingUtils::HashString("FILE_PARSING_ERROR"); - static const int FILE_SIZE_LIMIT_ERROR_HASH = HashingUtils::HashString("FILE_SIZE_LIMIT_ERROR"); - static const int FILE_NOT_FOUND_ERROR_HASH = HashingUtils::HashString("FILE_NOT_FOUND_ERROR"); - static const int UNKNOWN_ERROR_HASH = HashingUtils::HashString("UNKNOWN_ERROR"); - static const int RESOURCE_NOT_FOUND_ERROR_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND_ERROR"); - static const int SYSTEM_LIMIT_ERROR_HASH = HashingUtils::HashString("SYSTEM_LIMIT_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INVALID_URL_ERROR_HASH = ConstExprHashingUtils::HashString("INVALID_URL_ERROR"); + static constexpr uint32_t INVALID_IMPORT_OPTIONS_ERROR_HASH = ConstExprHashingUtils::HashString("INVALID_IMPORT_OPTIONS_ERROR"); + static constexpr uint32_t INVALID_TABLE_ID_ERROR_HASH = ConstExprHashingUtils::HashString("INVALID_TABLE_ID_ERROR"); + static constexpr uint32_t INVALID_TABLE_COLUMN_ID_ERROR_HASH = ConstExprHashingUtils::HashString("INVALID_TABLE_COLUMN_ID_ERROR"); + static constexpr uint32_t TABLE_NOT_FOUND_ERROR_HASH = ConstExprHashingUtils::HashString("TABLE_NOT_FOUND_ERROR"); + static constexpr uint32_t FILE_EMPTY_ERROR_HASH = ConstExprHashingUtils::HashString("FILE_EMPTY_ERROR"); + static constexpr uint32_t INVALID_FILE_TYPE_ERROR_HASH = ConstExprHashingUtils::HashString("INVALID_FILE_TYPE_ERROR"); + static constexpr uint32_t FILE_PARSING_ERROR_HASH = ConstExprHashingUtils::HashString("FILE_PARSING_ERROR"); + static constexpr uint32_t FILE_SIZE_LIMIT_ERROR_HASH = ConstExprHashingUtils::HashString("FILE_SIZE_LIMIT_ERROR"); + static constexpr uint32_t FILE_NOT_FOUND_ERROR_HASH = ConstExprHashingUtils::HashString("FILE_NOT_FOUND_ERROR"); + static constexpr uint32_t UNKNOWN_ERROR_HASH = ConstExprHashingUtils::HashString("UNKNOWN_ERROR"); + static constexpr uint32_t RESOURCE_NOT_FOUND_ERROR_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND_ERROR"); + static constexpr uint32_t SYSTEM_LIMIT_ERROR_HASH = ConstExprHashingUtils::HashString("SYSTEM_LIMIT_ERROR"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return ErrorCode::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-honeycode/source/model/Format.cpp b/generated/src/aws-cpp-sdk-honeycode/source/model/Format.cpp index 3600924efdd..146c36eea34 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/model/Format.cpp @@ -20,23 +20,23 @@ namespace Aws namespace FormatMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int CURRENCY_HASH = HashingUtils::HashString("CURRENCY"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int TIME_HASH = HashingUtils::HashString("TIME"); - static const int DATE_TIME_HASH = HashingUtils::HashString("DATE_TIME"); - static const int PERCENTAGE_HASH = HashingUtils::HashString("PERCENTAGE"); - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); - static const int ACCOUNTING_HASH = HashingUtils::HashString("ACCOUNTING"); - static const int CONTACT_HASH = HashingUtils::HashString("CONTACT"); - static const int ROWLINK_HASH = HashingUtils::HashString("ROWLINK"); - static const int ROWSET_HASH = HashingUtils::HashString("ROWSET"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t CURRENCY_HASH = ConstExprHashingUtils::HashString("CURRENCY"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t TIME_HASH = ConstExprHashingUtils::HashString("TIME"); + static constexpr uint32_t DATE_TIME_HASH = ConstExprHashingUtils::HashString("DATE_TIME"); + static constexpr uint32_t PERCENTAGE_HASH = ConstExprHashingUtils::HashString("PERCENTAGE"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); + static constexpr uint32_t ACCOUNTING_HASH = ConstExprHashingUtils::HashString("ACCOUNTING"); + static constexpr uint32_t CONTACT_HASH = ConstExprHashingUtils::HashString("CONTACT"); + static constexpr uint32_t ROWLINK_HASH = ConstExprHashingUtils::HashString("ROWLINK"); + static constexpr uint32_t ROWSET_HASH = ConstExprHashingUtils::HashString("ROWSET"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return Format::AUTO; diff --git a/generated/src/aws-cpp-sdk-honeycode/source/model/ImportDataCharacterEncoding.cpp b/generated/src/aws-cpp-sdk-honeycode/source/model/ImportDataCharacterEncoding.cpp index b010c272bcb..f5529dfa631 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/model/ImportDataCharacterEncoding.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/model/ImportDataCharacterEncoding.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ImportDataCharacterEncodingMapper { - static const int UTF_8_HASH = HashingUtils::HashString("UTF-8"); - static const int US_ASCII_HASH = HashingUtils::HashString("US-ASCII"); - static const int ISO_8859_1_HASH = HashingUtils::HashString("ISO-8859-1"); - static const int UTF_16BE_HASH = HashingUtils::HashString("UTF-16BE"); - static const int UTF_16LE_HASH = HashingUtils::HashString("UTF-16LE"); - static const int UTF_16_HASH = HashingUtils::HashString("UTF-16"); + static constexpr uint32_t UTF_8_HASH = ConstExprHashingUtils::HashString("UTF-8"); + static constexpr uint32_t US_ASCII_HASH = ConstExprHashingUtils::HashString("US-ASCII"); + static constexpr uint32_t ISO_8859_1_HASH = ConstExprHashingUtils::HashString("ISO-8859-1"); + static constexpr uint32_t UTF_16BE_HASH = ConstExprHashingUtils::HashString("UTF-16BE"); + static constexpr uint32_t UTF_16LE_HASH = ConstExprHashingUtils::HashString("UTF-16LE"); + static constexpr uint32_t UTF_16_HASH = ConstExprHashingUtils::HashString("UTF-16"); ImportDataCharacterEncoding GetImportDataCharacterEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UTF_8_HASH) { return ImportDataCharacterEncoding::UTF_8; diff --git a/generated/src/aws-cpp-sdk-honeycode/source/model/ImportSourceDataFormat.cpp b/generated/src/aws-cpp-sdk-honeycode/source/model/ImportSourceDataFormat.cpp index 8adcade6ae7..96c492f17ff 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/model/ImportSourceDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/model/ImportSourceDataFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImportSourceDataFormatMapper { - static const int DELIMITED_TEXT_HASH = HashingUtils::HashString("DELIMITED_TEXT"); + static constexpr uint32_t DELIMITED_TEXT_HASH = ConstExprHashingUtils::HashString("DELIMITED_TEXT"); ImportSourceDataFormat GetImportSourceDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELIMITED_TEXT_HASH) { return ImportSourceDataFormat::DELIMITED_TEXT; diff --git a/generated/src/aws-cpp-sdk-honeycode/source/model/TableDataImportJobStatus.cpp b/generated/src/aws-cpp-sdk-honeycode/source/model/TableDataImportJobStatus.cpp index c08a86a7a8a..9472977454d 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/model/TableDataImportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/model/TableDataImportJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TableDataImportJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); TableDataImportJobStatus GetTableDataImportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return TableDataImportJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-honeycode/source/model/UpsertAction.cpp b/generated/src/aws-cpp-sdk-honeycode/source/model/UpsertAction.cpp index 9fbfc0faf0b..16c1f932a47 100644 --- a/generated/src/aws-cpp-sdk-honeycode/source/model/UpsertAction.cpp +++ b/generated/src/aws-cpp-sdk-honeycode/source/model/UpsertAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpsertActionMapper { - static const int UPDATED_HASH = HashingUtils::HashString("UPDATED"); - static const int APPENDED_HASH = HashingUtils::HashString("APPENDED"); + static constexpr uint32_t UPDATED_HASH = ConstExprHashingUtils::HashString("UPDATED"); + static constexpr uint32_t APPENDED_HASH = ConstExprHashingUtils::HashString("APPENDED"); UpsertAction GetUpsertActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATED_HASH) { return UpsertAction::UPDATED; diff --git a/generated/src/aws-cpp-sdk-iam/source/IAMErrors.cpp b/generated/src/aws-cpp-sdk-iam/source/IAMErrors.cpp index b2fcd8af2bb..8aacad0ef4a 100644 --- a/generated/src/aws-cpp-sdk-iam/source/IAMErrors.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/IAMErrors.cpp @@ -18,38 +18,38 @@ namespace IAM namespace IAMErrorMapper { -static const int ENTITY_ALREADY_EXISTS_HASH = HashingUtils::HashString("EntityAlreadyExists"); -static const int DELETE_CONFLICT_HASH = HashingUtils::HashString("DeleteConflict"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceeded"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModification"); -static const int INVALID_AUTHENTICATION_CODE_HASH = HashingUtils::HashString("InvalidAuthenticationCode"); -static const int INVALID_USER_TYPE_HASH = HashingUtils::HashString("InvalidUserType"); -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocument"); -static const int SERVICE_NOT_SUPPORTED_HASH = HashingUtils::HashString("NotSupportedService"); -static const int UNMODIFIABLE_ENTITY_HASH = HashingUtils::HashString("UnmodifiableEntity"); -static const int NO_SUCH_ENTITY_HASH = HashingUtils::HashString("NoSuchEntity"); -static const int DUPLICATE_S_S_H_PUBLIC_KEY_HASH = HashingUtils::HashString("DuplicateSSHPublicKey"); -static const int INVALID_CERTIFICATE_HASH = HashingUtils::HashString("InvalidCertificate"); -static const int INVALID_PUBLIC_KEY_HASH = HashingUtils::HashString("InvalidPublicKey"); -static const int POLICY_NOT_ATTACHABLE_HASH = HashingUtils::HashString("PolicyNotAttachable"); -static const int DUPLICATE_CERTIFICATE_HASH = HashingUtils::HashString("DuplicateCertificate"); -static const int PASSWORD_POLICY_VIOLATION_HASH = HashingUtils::HashString("PasswordPolicyViolation"); -static const int UNRECOGNIZED_PUBLIC_KEY_ENCODING_HASH = HashingUtils::HashString("UnrecognizedPublicKeyEncoding"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInput"); -static const int CREDENTIAL_REPORT_NOT_READY_HASH = HashingUtils::HashString("ReportInProgress"); -static const int CREDENTIAL_REPORT_NOT_PRESENT_HASH = HashingUtils::HashString("ReportNotPresent"); -static const int CREDENTIAL_REPORT_EXPIRED_HASH = HashingUtils::HashString("ReportExpired"); -static const int KEY_PAIR_MISMATCH_HASH = HashingUtils::HashString("KeyPairMismatch"); -static const int MALFORMED_CERTIFICATE_HASH = HashingUtils::HashString("MalformedCertificate"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailure"); -static const int POLICY_EVALUATION_HASH = HashingUtils::HashString("PolicyEvaluation"); -static const int ENTITY_TEMPORARILY_UNMODIFIABLE_HASH = HashingUtils::HashString("EntityTemporarilyUnmodifiable"); -static const int REPORT_GENERATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ReportGenerationLimitExceeded"); +static constexpr uint32_t ENTITY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EntityAlreadyExists"); +static constexpr uint32_t DELETE_CONFLICT_HASH = ConstExprHashingUtils::HashString("DeleteConflict"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModification"); +static constexpr uint32_t INVALID_AUTHENTICATION_CODE_HASH = ConstExprHashingUtils::HashString("InvalidAuthenticationCode"); +static constexpr uint32_t INVALID_USER_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidUserType"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocument"); +static constexpr uint32_t SERVICE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("NotSupportedService"); +static constexpr uint32_t UNMODIFIABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnmodifiableEntity"); +static constexpr uint32_t NO_SUCH_ENTITY_HASH = ConstExprHashingUtils::HashString("NoSuchEntity"); +static constexpr uint32_t DUPLICATE_S_S_H_PUBLIC_KEY_HASH = ConstExprHashingUtils::HashString("DuplicateSSHPublicKey"); +static constexpr uint32_t INVALID_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("InvalidCertificate"); +static constexpr uint32_t INVALID_PUBLIC_KEY_HASH = ConstExprHashingUtils::HashString("InvalidPublicKey"); +static constexpr uint32_t POLICY_NOT_ATTACHABLE_HASH = ConstExprHashingUtils::HashString("PolicyNotAttachable"); +static constexpr uint32_t DUPLICATE_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("DuplicateCertificate"); +static constexpr uint32_t PASSWORD_POLICY_VIOLATION_HASH = ConstExprHashingUtils::HashString("PasswordPolicyViolation"); +static constexpr uint32_t UNRECOGNIZED_PUBLIC_KEY_ENCODING_HASH = ConstExprHashingUtils::HashString("UnrecognizedPublicKeyEncoding"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInput"); +static constexpr uint32_t CREDENTIAL_REPORT_NOT_READY_HASH = ConstExprHashingUtils::HashString("ReportInProgress"); +static constexpr uint32_t CREDENTIAL_REPORT_NOT_PRESENT_HASH = ConstExprHashingUtils::HashString("ReportNotPresent"); +static constexpr uint32_t CREDENTIAL_REPORT_EXPIRED_HASH = ConstExprHashingUtils::HashString("ReportExpired"); +static constexpr uint32_t KEY_PAIR_MISMATCH_HASH = ConstExprHashingUtils::HashString("KeyPairMismatch"); +static constexpr uint32_t MALFORMED_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("MalformedCertificate"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailure"); +static constexpr uint32_t POLICY_EVALUATION_HASH = ConstExprHashingUtils::HashString("PolicyEvaluation"); +static constexpr uint32_t ENTITY_TEMPORARILY_UNMODIFIABLE_HASH = ConstExprHashingUtils::HashString("EntityTemporarilyUnmodifiable"); +static constexpr uint32_t REPORT_GENERATION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ReportGenerationLimitExceeded"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == ENTITY_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-iam/source/model/AccessAdvisorUsageGranularityType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/AccessAdvisorUsageGranularityType.cpp index 8307a932cbb..97ec928dafd 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/AccessAdvisorUsageGranularityType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/AccessAdvisorUsageGranularityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessAdvisorUsageGranularityTypeMapper { - static const int SERVICE_LEVEL_HASH = HashingUtils::HashString("SERVICE_LEVEL"); - static const int ACTION_LEVEL_HASH = HashingUtils::HashString("ACTION_LEVEL"); + static constexpr uint32_t SERVICE_LEVEL_HASH = ConstExprHashingUtils::HashString("SERVICE_LEVEL"); + static constexpr uint32_t ACTION_LEVEL_HASH = ConstExprHashingUtils::HashString("ACTION_LEVEL"); AccessAdvisorUsageGranularityType GetAccessAdvisorUsageGranularityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_LEVEL_HASH) { return AccessAdvisorUsageGranularityType::SERVICE_LEVEL; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/AssignmentStatusType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/AssignmentStatusType.cpp index c99df95f7cf..99014d0b372 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/AssignmentStatusType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/AssignmentStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssignmentStatusTypeMapper { - static const int Assigned_HASH = HashingUtils::HashString("Assigned"); - static const int Unassigned_HASH = HashingUtils::HashString("Unassigned"); - static const int Any_HASH = HashingUtils::HashString("Any"); + static constexpr uint32_t Assigned_HASH = ConstExprHashingUtils::HashString("Assigned"); + static constexpr uint32_t Unassigned_HASH = ConstExprHashingUtils::HashString("Unassigned"); + static constexpr uint32_t Any_HASH = ConstExprHashingUtils::HashString("Any"); AssignmentStatusType GetAssignmentStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Assigned_HASH) { return AssignmentStatusType::Assigned; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/ContextKeyTypeEnum.cpp b/generated/src/aws-cpp-sdk-iam/source/model/ContextKeyTypeEnum.cpp index e3fb6bb5ed0..53066ee6802 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/ContextKeyTypeEnum.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/ContextKeyTypeEnum.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ContextKeyTypeEnumMapper { - static const int string_HASH = HashingUtils::HashString("string"); - static const int stringList_HASH = HashingUtils::HashString("stringList"); - static const int numeric_HASH = HashingUtils::HashString("numeric"); - static const int numericList_HASH = HashingUtils::HashString("numericList"); - static const int boolean_HASH = HashingUtils::HashString("boolean"); - static const int booleanList_HASH = HashingUtils::HashString("booleanList"); - static const int ip_HASH = HashingUtils::HashString("ip"); - static const int ipList_HASH = HashingUtils::HashString("ipList"); - static const int binary_HASH = HashingUtils::HashString("binary"); - static const int binaryList_HASH = HashingUtils::HashString("binaryList"); - static const int date_HASH = HashingUtils::HashString("date"); - static const int dateList_HASH = HashingUtils::HashString("dateList"); + static constexpr uint32_t string_HASH = ConstExprHashingUtils::HashString("string"); + static constexpr uint32_t stringList_HASH = ConstExprHashingUtils::HashString("stringList"); + static constexpr uint32_t numeric_HASH = ConstExprHashingUtils::HashString("numeric"); + static constexpr uint32_t numericList_HASH = ConstExprHashingUtils::HashString("numericList"); + static constexpr uint32_t boolean_HASH = ConstExprHashingUtils::HashString("boolean"); + static constexpr uint32_t booleanList_HASH = ConstExprHashingUtils::HashString("booleanList"); + static constexpr uint32_t ip_HASH = ConstExprHashingUtils::HashString("ip"); + static constexpr uint32_t ipList_HASH = ConstExprHashingUtils::HashString("ipList"); + static constexpr uint32_t binary_HASH = ConstExprHashingUtils::HashString("binary"); + static constexpr uint32_t binaryList_HASH = ConstExprHashingUtils::HashString("binaryList"); + static constexpr uint32_t date_HASH = ConstExprHashingUtils::HashString("date"); + static constexpr uint32_t dateList_HASH = ConstExprHashingUtils::HashString("dateList"); ContextKeyTypeEnum GetContextKeyTypeEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == string_HASH) { return ContextKeyTypeEnum::string; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/DeletionTaskStatusType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/DeletionTaskStatusType.cpp index 651c09bd2e2..1a73c83a8e8 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/DeletionTaskStatusType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/DeletionTaskStatusType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeletionTaskStatusTypeMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); DeletionTaskStatusType GetDeletionTaskStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return DeletionTaskStatusType::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/EncodingType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/EncodingType.cpp index 4274cd6c0d7..01a786d5ae7 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/EncodingType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/EncodingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncodingTypeMapper { - static const int SSH_HASH = HashingUtils::HashString("SSH"); - static const int PEM_HASH = HashingUtils::HashString("PEM"); + static constexpr uint32_t SSH_HASH = ConstExprHashingUtils::HashString("SSH"); + static constexpr uint32_t PEM_HASH = ConstExprHashingUtils::HashString("PEM"); EncodingType GetEncodingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSH_HASH) { return EncodingType::SSH; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/EntityType.cpp index f376586bd01..979bc9ce571 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/EntityType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EntityTypeMapper { - static const int User_HASH = HashingUtils::HashString("User"); - static const int Role_HASH = HashingUtils::HashString("Role"); - static const int Group_HASH = HashingUtils::HashString("Group"); - static const int LocalManagedPolicy_HASH = HashingUtils::HashString("LocalManagedPolicy"); - static const int AWSManagedPolicy_HASH = HashingUtils::HashString("AWSManagedPolicy"); + static constexpr uint32_t User_HASH = ConstExprHashingUtils::HashString("User"); + static constexpr uint32_t Role_HASH = ConstExprHashingUtils::HashString("Role"); + static constexpr uint32_t Group_HASH = ConstExprHashingUtils::HashString("Group"); + static constexpr uint32_t LocalManagedPolicy_HASH = ConstExprHashingUtils::HashString("LocalManagedPolicy"); + static constexpr uint32_t AWSManagedPolicy_HASH = ConstExprHashingUtils::HashString("AWSManagedPolicy"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == User_HASH) { return EntityType::User; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/GlobalEndpointTokenVersion.cpp b/generated/src/aws-cpp-sdk-iam/source/model/GlobalEndpointTokenVersion.cpp index fb1ad6e35ec..d1d0e798b28 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/GlobalEndpointTokenVersion.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/GlobalEndpointTokenVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlobalEndpointTokenVersionMapper { - static const int v1Token_HASH = HashingUtils::HashString("v1Token"); - static const int v2Token_HASH = HashingUtils::HashString("v2Token"); + static constexpr uint32_t v1Token_HASH = ConstExprHashingUtils::HashString("v1Token"); + static constexpr uint32_t v2Token_HASH = ConstExprHashingUtils::HashString("v2Token"); GlobalEndpointTokenVersion GetGlobalEndpointTokenVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == v1Token_HASH) { return GlobalEndpointTokenVersion::v1Token; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/JobStatusType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/JobStatusType.cpp index d25cc2e451b..f4038040513 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/JobStatusType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/JobStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobStatusTypeMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); JobStatusType GetJobStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return JobStatusType::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PermissionsBoundaryAttachmentType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PermissionsBoundaryAttachmentType.cpp index 40c4dc1cc92..518e43f0f68 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PermissionsBoundaryAttachmentType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PermissionsBoundaryAttachmentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PermissionsBoundaryAttachmentTypeMapper { - static const int PermissionsBoundaryPolicy_HASH = HashingUtils::HashString("PermissionsBoundaryPolicy"); + static constexpr uint32_t PermissionsBoundaryPolicy_HASH = ConstExprHashingUtils::HashString("PermissionsBoundaryPolicy"); PermissionsBoundaryAttachmentType GetPermissionsBoundaryAttachmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PermissionsBoundaryPolicy_HASH) { return PermissionsBoundaryAttachmentType::PermissionsBoundaryPolicy; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PolicyEvaluationDecisionType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PolicyEvaluationDecisionType.cpp index d9fe5b593ea..94575565292 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PolicyEvaluationDecisionType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PolicyEvaluationDecisionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolicyEvaluationDecisionTypeMapper { - static const int allowed_HASH = HashingUtils::HashString("allowed"); - static const int explicitDeny_HASH = HashingUtils::HashString("explicitDeny"); - static const int implicitDeny_HASH = HashingUtils::HashString("implicitDeny"); + static constexpr uint32_t allowed_HASH = ConstExprHashingUtils::HashString("allowed"); + static constexpr uint32_t explicitDeny_HASH = ConstExprHashingUtils::HashString("explicitDeny"); + static constexpr uint32_t implicitDeny_HASH = ConstExprHashingUtils::HashString("implicitDeny"); PolicyEvaluationDecisionType GetPolicyEvaluationDecisionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == allowed_HASH) { return PolicyEvaluationDecisionType::allowed; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PolicyOwnerEntityType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PolicyOwnerEntityType.cpp index 6195f0de2c6..4c9fecd32d2 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PolicyOwnerEntityType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PolicyOwnerEntityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolicyOwnerEntityTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int ROLE_HASH = HashingUtils::HashString("ROLE"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t ROLE_HASH = ConstExprHashingUtils::HashString("ROLE"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); PolicyOwnerEntityType GetPolicyOwnerEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return PolicyOwnerEntityType::USER; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PolicyScopeType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PolicyScopeType.cpp index a4e4a845f5b..45acb8a74e7 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PolicyScopeType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PolicyScopeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolicyScopeTypeMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int Local_HASH = HashingUtils::HashString("Local"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t Local_HASH = ConstExprHashingUtils::HashString("Local"); PolicyScopeType GetPolicyScopeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return PolicyScopeType::All; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PolicySourceType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PolicySourceType.cpp index 4073cf74c0a..ca1d8224847 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PolicySourceType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PolicySourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PolicySourceTypeMapper { - static const int user_HASH = HashingUtils::HashString("user"); - static const int group_HASH = HashingUtils::HashString("group"); - static const int role_HASH = HashingUtils::HashString("role"); - static const int aws_managed_HASH = HashingUtils::HashString("aws-managed"); - static const int user_managed_HASH = HashingUtils::HashString("user-managed"); - static const int resource_HASH = HashingUtils::HashString("resource"); - static const int none_HASH = HashingUtils::HashString("none"); + static constexpr uint32_t user_HASH = ConstExprHashingUtils::HashString("user"); + static constexpr uint32_t group_HASH = ConstExprHashingUtils::HashString("group"); + static constexpr uint32_t role_HASH = ConstExprHashingUtils::HashString("role"); + static constexpr uint32_t aws_managed_HASH = ConstExprHashingUtils::HashString("aws-managed"); + static constexpr uint32_t user_managed_HASH = ConstExprHashingUtils::HashString("user-managed"); + static constexpr uint32_t resource_HASH = ConstExprHashingUtils::HashString("resource"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); PolicySourceType GetPolicySourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == user_HASH) { return PolicySourceType::user; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PolicyType.cpp index d5193dcc921..f3fdd1d5c5c 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PolicyTypeMapper { - static const int INLINE_HASH = HashingUtils::HashString("INLINE"); - static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); + static constexpr uint32_t INLINE_HASH = ConstExprHashingUtils::HashString("INLINE"); + static constexpr uint32_t MANAGED_HASH = ConstExprHashingUtils::HashString("MANAGED"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INLINE_HASH) { return PolicyType::INLINE; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/PolicyUsageType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/PolicyUsageType.cpp index 51b52918f7c..4f38d282f21 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/PolicyUsageType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/PolicyUsageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PolicyUsageTypeMapper { - static const int PermissionsPolicy_HASH = HashingUtils::HashString("PermissionsPolicy"); - static const int PermissionsBoundary_HASH = HashingUtils::HashString("PermissionsBoundary"); + static constexpr uint32_t PermissionsPolicy_HASH = ConstExprHashingUtils::HashString("PermissionsPolicy"); + static constexpr uint32_t PermissionsBoundary_HASH = ConstExprHashingUtils::HashString("PermissionsBoundary"); PolicyUsageType GetPolicyUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PermissionsPolicy_HASH) { return PolicyUsageType::PermissionsPolicy; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/ReportFormatType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/ReportFormatType.cpp index 825264de96b..5915face09a 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/ReportFormatType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/ReportFormatType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ReportFormatTypeMapper { - static const int text_csv_HASH = HashingUtils::HashString("text/csv"); + static constexpr uint32_t text_csv_HASH = ConstExprHashingUtils::HashString("text/csv"); ReportFormatType GetReportFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == text_csv_HASH) { return ReportFormatType::text_csv; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/ReportStateType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/ReportStateType.cpp index 1bb71910dad..48429aad015 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/ReportStateType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/ReportStateType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReportStateTypeMapper { - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); ReportStateType GetReportStateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTED_HASH) { return ReportStateType::STARTED; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/SortKeyType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/SortKeyType.cpp index 1173b74516f..0b522e0acc0 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/SortKeyType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/SortKeyType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SortKeyTypeMapper { - static const int SERVICE_NAMESPACE_ASCENDING_HASH = HashingUtils::HashString("SERVICE_NAMESPACE_ASCENDING"); - static const int SERVICE_NAMESPACE_DESCENDING_HASH = HashingUtils::HashString("SERVICE_NAMESPACE_DESCENDING"); - static const int LAST_AUTHENTICATED_TIME_ASCENDING_HASH = HashingUtils::HashString("LAST_AUTHENTICATED_TIME_ASCENDING"); - static const int LAST_AUTHENTICATED_TIME_DESCENDING_HASH = HashingUtils::HashString("LAST_AUTHENTICATED_TIME_DESCENDING"); + static constexpr uint32_t SERVICE_NAMESPACE_ASCENDING_HASH = ConstExprHashingUtils::HashString("SERVICE_NAMESPACE_ASCENDING"); + static constexpr uint32_t SERVICE_NAMESPACE_DESCENDING_HASH = ConstExprHashingUtils::HashString("SERVICE_NAMESPACE_DESCENDING"); + static constexpr uint32_t LAST_AUTHENTICATED_TIME_ASCENDING_HASH = ConstExprHashingUtils::HashString("LAST_AUTHENTICATED_TIME_ASCENDING"); + static constexpr uint32_t LAST_AUTHENTICATED_TIME_DESCENDING_HASH = ConstExprHashingUtils::HashString("LAST_AUTHENTICATED_TIME_DESCENDING"); SortKeyType GetSortKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_NAMESPACE_ASCENDING_HASH) { return SortKeyType::SERVICE_NAMESPACE_ASCENDING; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/StatusType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/StatusType.cpp index 9007828f9a0..ac667336047 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/StatusType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/StatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusTypeMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); StatusType GetStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return StatusType::Active; diff --git a/generated/src/aws-cpp-sdk-iam/source/model/SummaryKeyType.cpp b/generated/src/aws-cpp-sdk-iam/source/model/SummaryKeyType.cpp index e30696b9872..68494ae0e15 100644 --- a/generated/src/aws-cpp-sdk-iam/source/model/SummaryKeyType.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/model/SummaryKeyType.cpp @@ -20,37 +20,37 @@ namespace Aws namespace SummaryKeyTypeMapper { - static const int Users_HASH = HashingUtils::HashString("Users"); - static const int UsersQuota_HASH = HashingUtils::HashString("UsersQuota"); - static const int Groups_HASH = HashingUtils::HashString("Groups"); - static const int GroupsQuota_HASH = HashingUtils::HashString("GroupsQuota"); - static const int ServerCertificates_HASH = HashingUtils::HashString("ServerCertificates"); - static const int ServerCertificatesQuota_HASH = HashingUtils::HashString("ServerCertificatesQuota"); - static const int UserPolicySizeQuota_HASH = HashingUtils::HashString("UserPolicySizeQuota"); - static const int GroupPolicySizeQuota_HASH = HashingUtils::HashString("GroupPolicySizeQuota"); - static const int GroupsPerUserQuota_HASH = HashingUtils::HashString("GroupsPerUserQuota"); - static const int SigningCertificatesPerUserQuota_HASH = HashingUtils::HashString("SigningCertificatesPerUserQuota"); - static const int AccessKeysPerUserQuota_HASH = HashingUtils::HashString("AccessKeysPerUserQuota"); - static const int MFADevices_HASH = HashingUtils::HashString("MFADevices"); - static const int MFADevicesInUse_HASH = HashingUtils::HashString("MFADevicesInUse"); - static const int AccountMFAEnabled_HASH = HashingUtils::HashString("AccountMFAEnabled"); - static const int AccountAccessKeysPresent_HASH = HashingUtils::HashString("AccountAccessKeysPresent"); - static const int AccountSigningCertificatesPresent_HASH = HashingUtils::HashString("AccountSigningCertificatesPresent"); - static const int AttachedPoliciesPerGroupQuota_HASH = HashingUtils::HashString("AttachedPoliciesPerGroupQuota"); - static const int AttachedPoliciesPerRoleQuota_HASH = HashingUtils::HashString("AttachedPoliciesPerRoleQuota"); - static const int AttachedPoliciesPerUserQuota_HASH = HashingUtils::HashString("AttachedPoliciesPerUserQuota"); - static const int Policies_HASH = HashingUtils::HashString("Policies"); - static const int PoliciesQuota_HASH = HashingUtils::HashString("PoliciesQuota"); - static const int PolicySizeQuota_HASH = HashingUtils::HashString("PolicySizeQuota"); - static const int PolicyVersionsInUse_HASH = HashingUtils::HashString("PolicyVersionsInUse"); - static const int PolicyVersionsInUseQuota_HASH = HashingUtils::HashString("PolicyVersionsInUseQuota"); - static const int VersionsPerPolicyQuota_HASH = HashingUtils::HashString("VersionsPerPolicyQuota"); - static const int GlobalEndpointTokenVersion_HASH = HashingUtils::HashString("GlobalEndpointTokenVersion"); + static constexpr uint32_t Users_HASH = ConstExprHashingUtils::HashString("Users"); + static constexpr uint32_t UsersQuota_HASH = ConstExprHashingUtils::HashString("UsersQuota"); + static constexpr uint32_t Groups_HASH = ConstExprHashingUtils::HashString("Groups"); + static constexpr uint32_t GroupsQuota_HASH = ConstExprHashingUtils::HashString("GroupsQuota"); + static constexpr uint32_t ServerCertificates_HASH = ConstExprHashingUtils::HashString("ServerCertificates"); + static constexpr uint32_t ServerCertificatesQuota_HASH = ConstExprHashingUtils::HashString("ServerCertificatesQuota"); + static constexpr uint32_t UserPolicySizeQuota_HASH = ConstExprHashingUtils::HashString("UserPolicySizeQuota"); + static constexpr uint32_t GroupPolicySizeQuota_HASH = ConstExprHashingUtils::HashString("GroupPolicySizeQuota"); + static constexpr uint32_t GroupsPerUserQuota_HASH = ConstExprHashingUtils::HashString("GroupsPerUserQuota"); + static constexpr uint32_t SigningCertificatesPerUserQuota_HASH = ConstExprHashingUtils::HashString("SigningCertificatesPerUserQuota"); + static constexpr uint32_t AccessKeysPerUserQuota_HASH = ConstExprHashingUtils::HashString("AccessKeysPerUserQuota"); + static constexpr uint32_t MFADevices_HASH = ConstExprHashingUtils::HashString("MFADevices"); + static constexpr uint32_t MFADevicesInUse_HASH = ConstExprHashingUtils::HashString("MFADevicesInUse"); + static constexpr uint32_t AccountMFAEnabled_HASH = ConstExprHashingUtils::HashString("AccountMFAEnabled"); + static constexpr uint32_t AccountAccessKeysPresent_HASH = ConstExprHashingUtils::HashString("AccountAccessKeysPresent"); + static constexpr uint32_t AccountSigningCertificatesPresent_HASH = ConstExprHashingUtils::HashString("AccountSigningCertificatesPresent"); + static constexpr uint32_t AttachedPoliciesPerGroupQuota_HASH = ConstExprHashingUtils::HashString("AttachedPoliciesPerGroupQuota"); + static constexpr uint32_t AttachedPoliciesPerRoleQuota_HASH = ConstExprHashingUtils::HashString("AttachedPoliciesPerRoleQuota"); + static constexpr uint32_t AttachedPoliciesPerUserQuota_HASH = ConstExprHashingUtils::HashString("AttachedPoliciesPerUserQuota"); + static constexpr uint32_t Policies_HASH = ConstExprHashingUtils::HashString("Policies"); + static constexpr uint32_t PoliciesQuota_HASH = ConstExprHashingUtils::HashString("PoliciesQuota"); + static constexpr uint32_t PolicySizeQuota_HASH = ConstExprHashingUtils::HashString("PolicySizeQuota"); + static constexpr uint32_t PolicyVersionsInUse_HASH = ConstExprHashingUtils::HashString("PolicyVersionsInUse"); + static constexpr uint32_t PolicyVersionsInUseQuota_HASH = ConstExprHashingUtils::HashString("PolicyVersionsInUseQuota"); + static constexpr uint32_t VersionsPerPolicyQuota_HASH = ConstExprHashingUtils::HashString("VersionsPerPolicyQuota"); + static constexpr uint32_t GlobalEndpointTokenVersion_HASH = ConstExprHashingUtils::HashString("GlobalEndpointTokenVersion"); SummaryKeyType GetSummaryKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Users_HASH) { return SummaryKeyType::Users; diff --git a/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreErrors.cpp b/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreErrors.cpp index 538422ab2b7..9b1be3c0217 100644 --- a/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreErrors.cpp +++ b/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreErrors.cpp @@ -68,14 +68,14 @@ template<> AWS_IDENTITYSTORE_API AccessDeniedException IdentityStoreError::GetMo namespace IdentityStoreErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-identitystore/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-identitystore/source/model/ConflictExceptionReason.cpp index 28650192003..829099a3bde 100644 --- a/generated/src/aws-cpp-sdk-identitystore/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-identitystore/source/model/ConflictExceptionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConflictExceptionReasonMapper { - static const int UNIQUENESS_CONSTRAINT_VIOLATION_HASH = HashingUtils::HashString("UNIQUENESS_CONSTRAINT_VIOLATION"); - static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("CONCURRENT_MODIFICATION"); + static constexpr uint32_t UNIQUENESS_CONSTRAINT_VIOLATION_HASH = ConstExprHashingUtils::HashString("UNIQUENESS_CONSTRAINT_VIOLATION"); + static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("CONCURRENT_MODIFICATION"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNIQUENESS_CONSTRAINT_VIOLATION_HASH) { return ConflictExceptionReason::UNIQUENESS_CONSTRAINT_VIOLATION; diff --git a/generated/src/aws-cpp-sdk-identitystore/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-identitystore/source/model/ResourceType.cpp index b50a69f23fe..4548f9b736c 100644 --- a/generated/src/aws-cpp-sdk-identitystore/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-identitystore/source/model/ResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceTypeMapper { - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int IDENTITY_STORE_HASH = HashingUtils::HashString("IDENTITY_STORE"); - static const int GROUP_MEMBERSHIP_HASH = HashingUtils::HashString("GROUP_MEMBERSHIP"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t IDENTITY_STORE_HASH = ConstExprHashingUtils::HashString("IDENTITY_STORE"); + static constexpr uint32_t GROUP_MEMBERSHIP_HASH = ConstExprHashingUtils::HashString("GROUP_MEMBERSHIP"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GROUP_HASH) { return ResourceType::GROUP; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderErrors.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderErrors.cpp index 3fb113b3629..31487cccfe0 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderErrors.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderErrors.cpp @@ -18,24 +18,24 @@ namespace imagebuilder namespace ImagebuilderErrorMapper { -static const int CLIENT_HASH = HashingUtils::HashString("ClientException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int RESOURCE_DEPENDENCY_HASH = HashingUtils::HashString("ResourceDependencyException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INVALID_VERSION_NUMBER_HASH = HashingUtils::HashString("InvalidVersionNumberException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int CALL_RATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CallRateLimitExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CLIENT_HASH = ConstExprHashingUtils::HashString("ClientException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t RESOURCE_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("ResourceDependencyException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INVALID_VERSION_NUMBER_HASH = ConstExprHashingUtils::HashString("InvalidVersionNumberException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t CALL_RATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CallRateLimitExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLIENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/BuildType.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/BuildType.cpp index 0277d4ff706..703d13ccf5a 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/BuildType.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/BuildType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BuildTypeMapper { - static const int USER_INITIATED_HASH = HashingUtils::HashString("USER_INITIATED"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); + static constexpr uint32_t USER_INITIATED_HASH = ConstExprHashingUtils::HashString("USER_INITIATED"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); BuildType GetBuildTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_INITIATED_HASH) { return BuildType::USER_INITIATED; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentFormat.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentFormat.cpp index e5c603cb057..908a7dfda80 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentFormat.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ComponentFormatMapper { - static const int SHELL_HASH = HashingUtils::HashString("SHELL"); + static constexpr uint32_t SHELL_HASH = ConstExprHashingUtils::HashString("SHELL"); ComponentFormat GetComponentFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHELL_HASH) { return ComponentFormat::SHELL; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentStatus.cpp index 48125a31a8e..13df0e5c22c 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ComponentStatusMapper { - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); ComponentStatus GetComponentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPRECATED_HASH) { return ComponentStatus::DEPRECATED; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentType.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentType.cpp index 92a06fd0c49..ac67185130e 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentType.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ComponentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComponentTypeMapper { - static const int BUILD_HASH = HashingUtils::HashString("BUILD"); - static const int TEST_HASH = HashingUtils::HashString("TEST"); + static constexpr uint32_t BUILD_HASH = ConstExprHashingUtils::HashString("BUILD"); + static constexpr uint32_t TEST_HASH = ConstExprHashingUtils::HashString("TEST"); ComponentType GetComponentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILD_HASH) { return ComponentType::BUILD; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerRepositoryService.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerRepositoryService.cpp index bc886baafd9..1d53274c3c1 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerRepositoryService.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerRepositoryService.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContainerRepositoryServiceMapper { - static const int ECR_HASH = HashingUtils::HashString("ECR"); + static constexpr uint32_t ECR_HASH = ConstExprHashingUtils::HashString("ECR"); ContainerRepositoryService GetContainerRepositoryServiceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECR_HASH) { return ContainerRepositoryService::ECR; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerType.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerType.cpp index 1aa383dfbfe..db7fd0c7c60 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerType.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ContainerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContainerTypeMapper { - static const int DOCKER_HASH = HashingUtils::HashString("DOCKER"); + static constexpr uint32_t DOCKER_HASH = ConstExprHashingUtils::HashString("DOCKER"); ContainerType GetContainerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCKER_HASH) { return ContainerType::DOCKER; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/DiskImageFormat.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/DiskImageFormat.cpp index d1ae7eceaf9..f164f96252c 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/DiskImageFormat.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/DiskImageFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DiskImageFormatMapper { - static const int VMDK_HASH = HashingUtils::HashString("VMDK"); - static const int RAW_HASH = HashingUtils::HashString("RAW"); - static const int VHD_HASH = HashingUtils::HashString("VHD"); + static constexpr uint32_t VMDK_HASH = ConstExprHashingUtils::HashString("VMDK"); + static constexpr uint32_t RAW_HASH = ConstExprHashingUtils::HashString("RAW"); + static constexpr uint32_t VHD_HASH = ConstExprHashingUtils::HashString("VHD"); DiskImageFormat GetDiskImageFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VMDK_HASH) { return DiskImageFormat::VMDK; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/EbsVolumeType.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/EbsVolumeType.cpp index f210ef474dd..f421c4f4bfe 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/EbsVolumeType.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/EbsVolumeType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace EbsVolumeTypeMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int io1_HASH = HashingUtils::HashString("io1"); - static const int io2_HASH = HashingUtils::HashString("io2"); - static const int gp2_HASH = HashingUtils::HashString("gp2"); - static const int gp3_HASH = HashingUtils::HashString("gp3"); - static const int sc1_HASH = HashingUtils::HashString("sc1"); - static const int st1_HASH = HashingUtils::HashString("st1"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t io1_HASH = ConstExprHashingUtils::HashString("io1"); + static constexpr uint32_t io2_HASH = ConstExprHashingUtils::HashString("io2"); + static constexpr uint32_t gp2_HASH = ConstExprHashingUtils::HashString("gp2"); + static constexpr uint32_t gp3_HASH = ConstExprHashingUtils::HashString("gp3"); + static constexpr uint32_t sc1_HASH = ConstExprHashingUtils::HashString("sc1"); + static constexpr uint32_t st1_HASH = ConstExprHashingUtils::HashString("st1"); EbsVolumeType GetEbsVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return EbsVolumeType::standard; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageScanStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageScanStatus.cpp index d89e989fe03..a890abdc3cf 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageScanStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageScanStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ImageScanStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SCANNING_HASH = HashingUtils::HashString("SCANNING"); - static const int COLLECTING_HASH = HashingUtils::HashString("COLLECTING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int ABANDONED_HASH = HashingUtils::HashString("ABANDONED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SCANNING_HASH = ConstExprHashingUtils::HashString("SCANNING"); + static constexpr uint32_t COLLECTING_HASH = ConstExprHashingUtils::HashString("COLLECTING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ABANDONED_HASH = ConstExprHashingUtils::HashString("ABANDONED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); ImageScanStatus GetImageScanStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ImageScanStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageSource.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageSource.cpp index 60cf150c8fb..916162c3506 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageSource.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageSource.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ImageSourceMapper { - static const int AMAZON_MANAGED_HASH = HashingUtils::HashString("AMAZON_MANAGED"); - static const int AWS_MARKETPLACE_HASH = HashingUtils::HashString("AWS_MARKETPLACE"); - static const int IMPORTED_HASH = HashingUtils::HashString("IMPORTED"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AMAZON_MANAGED_HASH = ConstExprHashingUtils::HashString("AMAZON_MANAGED"); + static constexpr uint32_t AWS_MARKETPLACE_HASH = ConstExprHashingUtils::HashString("AWS_MARKETPLACE"); + static constexpr uint32_t IMPORTED_HASH = ConstExprHashingUtils::HashString("IMPORTED"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ImageSource GetImageSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AMAZON_MANAGED_HASH) { return ImageSource::AMAZON_MANAGED; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageStatus.cpp index 10b8954ecba..3978a49f28c 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ImageStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int BUILDING_HASH = HashingUtils::HashString("BUILDING"); - static const int TESTING_HASH = HashingUtils::HashString("TESTING"); - static const int DISTRIBUTING_HASH = HashingUtils::HashString("DISTRIBUTING"); - static const int INTEGRATING_HASH = HashingUtils::HashString("INTEGRATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t BUILDING_HASH = ConstExprHashingUtils::HashString("BUILDING"); + static constexpr uint32_t TESTING_HASH = ConstExprHashingUtils::HashString("TESTING"); + static constexpr uint32_t DISTRIBUTING_HASH = ConstExprHashingUtils::HashString("DISTRIBUTING"); + static constexpr uint32_t INTEGRATING_HASH = ConstExprHashingUtils::HashString("INTEGRATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ImageStatus GetImageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ImageStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageType.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageType.cpp index e01ff48599f..3f4bfe490de 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageType.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/ImageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageTypeMapper { - static const int AMI_HASH = HashingUtils::HashString("AMI"); - static const int DOCKER_HASH = HashingUtils::HashString("DOCKER"); + static constexpr uint32_t AMI_HASH = ConstExprHashingUtils::HashString("AMI"); + static constexpr uint32_t DOCKER_HASH = ConstExprHashingUtils::HashString("DOCKER"); ImageType GetImageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AMI_HASH) { return ImageType::AMI; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/Ownership.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/Ownership.cpp index 17669c99baa..f672d6f1340 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/Ownership.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/Ownership.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OwnershipMapper { - static const int Self_HASH = HashingUtils::HashString("Self"); - static const int Shared_HASH = HashingUtils::HashString("Shared"); - static const int Amazon_HASH = HashingUtils::HashString("Amazon"); - static const int ThirdParty_HASH = HashingUtils::HashString("ThirdParty"); + static constexpr uint32_t Self_HASH = ConstExprHashingUtils::HashString("Self"); + static constexpr uint32_t Shared_HASH = ConstExprHashingUtils::HashString("Shared"); + static constexpr uint32_t Amazon_HASH = ConstExprHashingUtils::HashString("Amazon"); + static constexpr uint32_t ThirdParty_HASH = ConstExprHashingUtils::HashString("ThirdParty"); Ownership GetOwnershipForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Self_HASH) { return Ownership::Self; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp index 29f909315eb..15680a7c0b4 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PipelineExecutionStartConditionMapper { - static const int EXPRESSION_MATCH_ONLY_HASH = HashingUtils::HashString("EXPRESSION_MATCH_ONLY"); - static const int EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE_HASH = HashingUtils::HashString("EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"); + static constexpr uint32_t EXPRESSION_MATCH_ONLY_HASH = ConstExprHashingUtils::HashString("EXPRESSION_MATCH_ONLY"); + static constexpr uint32_t EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE_HASH = ConstExprHashingUtils::HashString("EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"); PipelineExecutionStartCondition GetPipelineExecutionStartConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXPRESSION_MATCH_ONLY_HASH) { return PipelineExecutionStartCondition::EXPRESSION_MATCH_ONLY; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineStatus.cpp index 05fe01e55f8..35945a655c7 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/PipelineStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PipelineStatusMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); PipelineStatus GetPipelineStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return PipelineStatus::DISABLED; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/Platform.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/Platform.cpp index 2c506412f2b..f16b5952937 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/Platform.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/Platform.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlatformMapper { - static const int Windows_HASH = HashingUtils::HashString("Windows"); - static const int Linux_HASH = HashingUtils::HashString("Linux"); + static constexpr uint32_t Windows_HASH = ConstExprHashingUtils::HashString("Windows"); + static constexpr uint32_t Linux_HASH = ConstExprHashingUtils::HashString("Linux"); Platform GetPlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Windows_HASH) { return Platform::Windows; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowExecutionStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowExecutionStatus.cpp index 740792a2d7e..43b896d6f2e 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowExecutionStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace WorkflowExecutionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("ROLLBACK_IN_PROGRESS"); - static const int ROLLBACK_COMPLETED_HASH = HashingUtils::HashString("ROLLBACK_COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t ROLLBACK_COMPLETED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_COMPLETED"); WorkflowExecutionStatus GetWorkflowExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return WorkflowExecutionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionRollbackStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionRollbackStatus.cpp index d8c10005bb6..b311e57d728 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionRollbackStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionRollbackStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WorkflowStepExecutionRollbackStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); WorkflowStepExecutionRollbackStatus GetWorkflowStepExecutionRollbackStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return WorkflowStepExecutionRollbackStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionStatus.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionStatus.cpp index 5ff01ca07e9..8b0a1a157a0 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowStepExecutionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkflowStepExecutionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); WorkflowStepExecutionStatus GetWorkflowStepExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return WorkflowStepExecutionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowType.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowType.cpp index 84ede9b270a..151744daec9 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowType.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/model/WorkflowType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WorkflowTypeMapper { - static const int BUILD_HASH = HashingUtils::HashString("BUILD"); - static const int TEST_HASH = HashingUtils::HashString("TEST"); - static const int DISTRIBUTION_HASH = HashingUtils::HashString("DISTRIBUTION"); + static constexpr uint32_t BUILD_HASH = ConstExprHashingUtils::HashString("BUILD"); + static constexpr uint32_t TEST_HASH = ConstExprHashingUtils::HashString("TEST"); + static constexpr uint32_t DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("DISTRIBUTION"); WorkflowType GetWorkflowTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILD_HASH) { return WorkflowType::BUILD; diff --git a/generated/src/aws-cpp-sdk-importexport/source/ImportExportErrors.cpp b/generated/src/aws-cpp-sdk-importexport/source/ImportExportErrors.cpp index 6a6f7551b46..44b53df73bf 100644 --- a/generated/src/aws-cpp-sdk-importexport/source/ImportExportErrors.cpp +++ b/generated/src/aws-cpp-sdk-importexport/source/ImportExportErrors.cpp @@ -18,29 +18,29 @@ namespace ImportExport namespace ImportExportErrorMapper { -static const int INVALID_VERSION_HASH = HashingUtils::HashString("InvalidVersionException"); -static const int INVALID_ADDRESS_HASH = HashingUtils::HashString("InvalidAddressException"); -static const int EXPIRED_JOB_ID_HASH = HashingUtils::HashString("ExpiredJobIdException"); -static const int UNABLE_TO_CANCEL_JOB_ID_HASH = HashingUtils::HashString("UnableToCancelJobIdException"); -static const int INVALID_CUSTOMS_HASH = HashingUtils::HashString("InvalidCustomsException"); -static const int INVALID_JOB_ID_HASH = HashingUtils::HashString("InvalidJobIdException"); -static const int CREATE_JOB_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("CreateJobQuotaExceededException"); -static const int UNABLE_TO_UPDATE_JOB_ID_HASH = HashingUtils::HashString("UnableToUpdateJobIdException"); -static const int MISSING_MANIFEST_FIELD_HASH = HashingUtils::HashString("MissingManifestFieldException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int CANCELED_JOB_ID_HASH = HashingUtils::HashString("CanceledJobIdException"); -static const int NO_SUCH_BUCKET_HASH = HashingUtils::HashString("NoSuchBucketException"); -static const int MALFORMED_MANIFEST_HASH = HashingUtils::HashString("MalformedManifestException"); -static const int INVALID_FILE_SYSTEM_HASH = HashingUtils::HashString("InvalidFileSystemException"); -static const int BUCKET_PERMISSION_HASH = HashingUtils::HashString("BucketPermissionException"); -static const int MULTIPLE_REGIONS_HASH = HashingUtils::HashString("MultipleRegionsException"); -static const int INVALID_MANIFEST_FIELD_HASH = HashingUtils::HashString("InvalidManifestFieldException"); -static const int MISSING_CUSTOMS_HASH = HashingUtils::HashString("MissingCustomsException"); +static constexpr uint32_t INVALID_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidVersionException"); +static constexpr uint32_t INVALID_ADDRESS_HASH = ConstExprHashingUtils::HashString("InvalidAddressException"); +static constexpr uint32_t EXPIRED_JOB_ID_HASH = ConstExprHashingUtils::HashString("ExpiredJobIdException"); +static constexpr uint32_t UNABLE_TO_CANCEL_JOB_ID_HASH = ConstExprHashingUtils::HashString("UnableToCancelJobIdException"); +static constexpr uint32_t INVALID_CUSTOMS_HASH = ConstExprHashingUtils::HashString("InvalidCustomsException"); +static constexpr uint32_t INVALID_JOB_ID_HASH = ConstExprHashingUtils::HashString("InvalidJobIdException"); +static constexpr uint32_t CREATE_JOB_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CreateJobQuotaExceededException"); +static constexpr uint32_t UNABLE_TO_UPDATE_JOB_ID_HASH = ConstExprHashingUtils::HashString("UnableToUpdateJobIdException"); +static constexpr uint32_t MISSING_MANIFEST_FIELD_HASH = ConstExprHashingUtils::HashString("MissingManifestFieldException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t CANCELED_JOB_ID_HASH = ConstExprHashingUtils::HashString("CanceledJobIdException"); +static constexpr uint32_t NO_SUCH_BUCKET_HASH = ConstExprHashingUtils::HashString("NoSuchBucketException"); +static constexpr uint32_t MALFORMED_MANIFEST_HASH = ConstExprHashingUtils::HashString("MalformedManifestException"); +static constexpr uint32_t INVALID_FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("InvalidFileSystemException"); +static constexpr uint32_t BUCKET_PERMISSION_HASH = ConstExprHashingUtils::HashString("BucketPermissionException"); +static constexpr uint32_t MULTIPLE_REGIONS_HASH = ConstExprHashingUtils::HashString("MultipleRegionsException"); +static constexpr uint32_t INVALID_MANIFEST_FIELD_HASH = ConstExprHashingUtils::HashString("InvalidManifestFieldException"); +static constexpr uint32_t MISSING_CUSTOMS_HASH = ConstExprHashingUtils::HashString("MissingCustomsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_VERSION_HASH) { diff --git a/generated/src/aws-cpp-sdk-importexport/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-importexport/source/model/JobType.cpp index 3a2db913f37..8772775d200 100644 --- a/generated/src/aws-cpp-sdk-importexport/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-importexport/source/model/JobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobTypeMapper { - static const int Import_HASH = HashingUtils::HashString("Import"); - static const int Export_HASH = HashingUtils::HashString("Export"); + static constexpr uint32_t Import_HASH = ConstExprHashingUtils::HashString("Import"); + static constexpr uint32_t Export_HASH = ConstExprHashingUtils::HashString("Export"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Import_HASH) { return JobType::Import; diff --git a/generated/src/aws-cpp-sdk-inspector/source/InspectorErrors.cpp b/generated/src/aws-cpp-sdk-inspector/source/InspectorErrors.cpp index 49d98e94fa4..e56d47548ec 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/InspectorErrors.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/InspectorErrors.cpp @@ -89,21 +89,21 @@ template<> AWS_INSPECTOR_API InvalidCrossAccountRoleException InspectorError::Ge namespace InspectorErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int AGENTS_ALREADY_RUNNING_ASSESSMENT_HASH = HashingUtils::HashString("AgentsAlreadyRunningAssessmentException"); -static const int PREVIEW_GENERATION_IN_PROGRESS_HASH = HashingUtils::HashString("PreviewGenerationInProgressException"); -static const int UNSUPPORTED_FEATURE_HASH = HashingUtils::HashString("UnsupportedFeatureException"); -static const int NO_SUCH_ENTITY_HASH = HashingUtils::HashString("NoSuchEntityException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ASSESSMENT_RUN_IN_PROGRESS_HASH = HashingUtils::HashString("AssessmentRunInProgressException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int SERVICE_TEMPORARILY_UNAVAILABLE_HASH = HashingUtils::HashString("ServiceTemporarilyUnavailableException"); -static const int INVALID_CROSS_ACCOUNT_ROLE_HASH = HashingUtils::HashString("InvalidCrossAccountRoleException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t AGENTS_ALREADY_RUNNING_ASSESSMENT_HASH = ConstExprHashingUtils::HashString("AgentsAlreadyRunningAssessmentException"); +static constexpr uint32_t PREVIEW_GENERATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("PreviewGenerationInProgressException"); +static constexpr uint32_t UNSUPPORTED_FEATURE_HASH = ConstExprHashingUtils::HashString("UnsupportedFeatureException"); +static constexpr uint32_t NO_SUCH_ENTITY_HASH = ConstExprHashingUtils::HashString("NoSuchEntityException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ASSESSMENT_RUN_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("AssessmentRunInProgressException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t SERVICE_TEMPORARILY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ServiceTemporarilyUnavailableException"); +static constexpr uint32_t INVALID_CROSS_ACCOUNT_ROLE_HASH = ConstExprHashingUtils::HashString("InvalidCrossAccountRoleException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/AccessDeniedErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/AccessDeniedErrorCode.cpp index 25ef984f62f..c2148ae917d 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/AccessDeniedErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/AccessDeniedErrorCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace AccessDeniedErrorCodeMapper { - static const int ACCESS_DENIED_TO_ASSESSMENT_TARGET_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_ASSESSMENT_TARGET"); - static const int ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE"); - static const int ACCESS_DENIED_TO_ASSESSMENT_RUN_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_ASSESSMENT_RUN"); - static const int ACCESS_DENIED_TO_FINDING_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_FINDING"); - static const int ACCESS_DENIED_TO_RESOURCE_GROUP_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_RESOURCE_GROUP"); - static const int ACCESS_DENIED_TO_RULES_PACKAGE_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_RULES_PACKAGE"); - static const int ACCESS_DENIED_TO_SNS_TOPIC_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_SNS_TOPIC"); - static const int ACCESS_DENIED_TO_IAM_ROLE_HASH = HashingUtils::HashString("ACCESS_DENIED_TO_IAM_ROLE"); + static constexpr uint32_t ACCESS_DENIED_TO_ASSESSMENT_TARGET_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_ASSESSMENT_TARGET"); + static constexpr uint32_t ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE"); + static constexpr uint32_t ACCESS_DENIED_TO_ASSESSMENT_RUN_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_ASSESSMENT_RUN"); + static constexpr uint32_t ACCESS_DENIED_TO_FINDING_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_FINDING"); + static constexpr uint32_t ACCESS_DENIED_TO_RESOURCE_GROUP_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_RESOURCE_GROUP"); + static constexpr uint32_t ACCESS_DENIED_TO_RULES_PACKAGE_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_RULES_PACKAGE"); + static constexpr uint32_t ACCESS_DENIED_TO_SNS_TOPIC_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_SNS_TOPIC"); + static constexpr uint32_t ACCESS_DENIED_TO_IAM_ROLE_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_TO_IAM_ROLE"); AccessDeniedErrorCode GetAccessDeniedErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_TO_ASSESSMENT_TARGET_HASH) { return AccessDeniedErrorCode::ACCESS_DENIED_TO_ASSESSMENT_TARGET; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealth.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealth.cpp index 45f2fd0e88c..02d7c1547bb 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealth.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealth.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AgentHealthMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); AgentHealth GetAgentHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return AgentHealth::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealthCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealthCode.cpp index 6416fccc446..b0e75802eb6 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealthCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/AgentHealthCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AgentHealthCodeMapper { - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SHUTDOWN_HASH = HashingUtils::HashString("SHUTDOWN"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int THROTTLED_HASH = HashingUtils::HashString("THROTTLED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SHUTDOWN_HASH = ConstExprHashingUtils::HashString("SHUTDOWN"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t THROTTLED_HASH = ConstExprHashingUtils::HashString("THROTTLED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); AgentHealthCode GetAgentHealthCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IDLE_HASH) { return AgentHealthCode::IDLE; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunNotificationSnsStatusCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunNotificationSnsStatusCode.cpp index 15367daa2dc..97990f6da44 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunNotificationSnsStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunNotificationSnsStatusCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AssessmentRunNotificationSnsStatusCodeMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int TOPIC_DOES_NOT_EXIST_HASH = HashingUtils::HashString("TOPIC_DOES_NOT_EXIST"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t TOPIC_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("TOPIC_DOES_NOT_EXIST"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); AssessmentRunNotificationSnsStatusCode GetAssessmentRunNotificationSnsStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return AssessmentRunNotificationSnsStatusCode::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunState.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunState.cpp index f54520d3c59..d3349109df3 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunState.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/AssessmentRunState.cpp @@ -20,24 +20,24 @@ namespace Aws namespace AssessmentRunStateMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int START_DATA_COLLECTION_PENDING_HASH = HashingUtils::HashString("START_DATA_COLLECTION_PENDING"); - static const int START_DATA_COLLECTION_IN_PROGRESS_HASH = HashingUtils::HashString("START_DATA_COLLECTION_IN_PROGRESS"); - static const int COLLECTING_DATA_HASH = HashingUtils::HashString("COLLECTING_DATA"); - static const int STOP_DATA_COLLECTION_PENDING_HASH = HashingUtils::HashString("STOP_DATA_COLLECTION_PENDING"); - static const int DATA_COLLECTED_HASH = HashingUtils::HashString("DATA_COLLECTED"); - static const int START_EVALUATING_RULES_PENDING_HASH = HashingUtils::HashString("START_EVALUATING_RULES_PENDING"); - static const int EVALUATING_RULES_HASH = HashingUtils::HashString("EVALUATING_RULES"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_ERRORS_HASH = HashingUtils::HashString("COMPLETED_WITH_ERRORS"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t START_DATA_COLLECTION_PENDING_HASH = ConstExprHashingUtils::HashString("START_DATA_COLLECTION_PENDING"); + static constexpr uint32_t START_DATA_COLLECTION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("START_DATA_COLLECTION_IN_PROGRESS"); + static constexpr uint32_t COLLECTING_DATA_HASH = ConstExprHashingUtils::HashString("COLLECTING_DATA"); + static constexpr uint32_t STOP_DATA_COLLECTION_PENDING_HASH = ConstExprHashingUtils::HashString("STOP_DATA_COLLECTION_PENDING"); + static constexpr uint32_t DATA_COLLECTED_HASH = ConstExprHashingUtils::HashString("DATA_COLLECTED"); + static constexpr uint32_t START_EVALUATING_RULES_PENDING_HASH = ConstExprHashingUtils::HashString("START_EVALUATING_RULES_PENDING"); + static constexpr uint32_t EVALUATING_RULES_HASH = ConstExprHashingUtils::HashString("EVALUATING_RULES"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ERRORS"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); AssessmentRunState GetAssessmentRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return AssessmentRunState::CREATED; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/AssetType.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/AssetType.cpp index 32f8dec6b3a..1f8f74e10c3 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/AssetType.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/AssetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetTypeMapper { - static const int ec2_instance_HASH = HashingUtils::HashString("ec2-instance"); + static constexpr uint32_t ec2_instance_HASH = ConstExprHashingUtils::HashString("ec2-instance"); AssetType GetAssetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ec2_instance_HASH) { return AssetType::ec2_instance; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/FailedItemErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/FailedItemErrorCode.cpp index e755fad900d..b5945734730 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/FailedItemErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/FailedItemErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FailedItemErrorCodeMapper { - static const int INVALID_ARN_HASH = HashingUtils::HashString("INVALID_ARN"); - static const int DUPLICATE_ARN_HASH = HashingUtils::HashString("DUPLICATE_ARN"); - static const int ITEM_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ITEM_DOES_NOT_EXIST"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LIMIT_EXCEEDED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ARN"); + static constexpr uint32_t DUPLICATE_ARN_HASH = ConstExprHashingUtils::HashString("DUPLICATE_ARN"); + static constexpr uint32_t ITEM_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ITEM_DOES_NOT_EXIST"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LIMIT_EXCEEDED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); FailedItemErrorCode GetFailedItemErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_ARN_HASH) { return FailedItemErrorCode::INVALID_ARN; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/InspectorEvent.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/InspectorEvent.cpp index cd380fdf8f1..0d8c2f4ed96 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/InspectorEvent.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/InspectorEvent.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InspectorEventMapper { - static const int ASSESSMENT_RUN_STARTED_HASH = HashingUtils::HashString("ASSESSMENT_RUN_STARTED"); - static const int ASSESSMENT_RUN_COMPLETED_HASH = HashingUtils::HashString("ASSESSMENT_RUN_COMPLETED"); - static const int ASSESSMENT_RUN_STATE_CHANGED_HASH = HashingUtils::HashString("ASSESSMENT_RUN_STATE_CHANGED"); - static const int FINDING_REPORTED_HASH = HashingUtils::HashString("FINDING_REPORTED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t ASSESSMENT_RUN_STARTED_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_RUN_STARTED"); + static constexpr uint32_t ASSESSMENT_RUN_COMPLETED_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_RUN_COMPLETED"); + static constexpr uint32_t ASSESSMENT_RUN_STATE_CHANGED_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_RUN_STATE_CHANGED"); + static constexpr uint32_t FINDING_REPORTED_HASH = ConstExprHashingUtils::HashString("FINDING_REPORTED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); InspectorEvent GetInspectorEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSESSMENT_RUN_STARTED_HASH) { return InspectorEvent::ASSESSMENT_RUN_STARTED; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/InvalidCrossAccountRoleErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/InvalidCrossAccountRoleErrorCode.cpp index 7caf7766999..59c3bf1c032 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/InvalidCrossAccountRoleErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/InvalidCrossAccountRoleErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InvalidCrossAccountRoleErrorCodeMapper { - static const int ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP_HASH = HashingUtils::HashString("ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP"); - static const int ROLE_DOES_NOT_HAVE_CORRECT_POLICY_HASH = HashingUtils::HashString("ROLE_DOES_NOT_HAVE_CORRECT_POLICY"); + static constexpr uint32_t ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP_HASH = ConstExprHashingUtils::HashString("ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP"); + static constexpr uint32_t ROLE_DOES_NOT_HAVE_CORRECT_POLICY_HASH = ConstExprHashingUtils::HashString("ROLE_DOES_NOT_HAVE_CORRECT_POLICY"); InvalidCrossAccountRoleErrorCode GetInvalidCrossAccountRoleErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP_HASH) { return InvalidCrossAccountRoleErrorCode::ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/InvalidInputErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/InvalidInputErrorCode.cpp index 0570794dea4..37abeede8a4 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/InvalidInputErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/InvalidInputErrorCode.cpp @@ -20,65 +20,65 @@ namespace Aws namespace InvalidInputErrorCodeMapper { - static const int INVALID_ASSESSMENT_TARGET_ARN_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TARGET_ARN"); - static const int INVALID_ASSESSMENT_TEMPLATE_ARN_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_ARN"); - static const int INVALID_ASSESSMENT_RUN_ARN_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_RUN_ARN"); - static const int INVALID_FINDING_ARN_HASH = HashingUtils::HashString("INVALID_FINDING_ARN"); - static const int INVALID_RESOURCE_GROUP_ARN_HASH = HashingUtils::HashString("INVALID_RESOURCE_GROUP_ARN"); - static const int INVALID_RULES_PACKAGE_ARN_HASH = HashingUtils::HashString("INVALID_RULES_PACKAGE_ARN"); - static const int INVALID_RESOURCE_ARN_HASH = HashingUtils::HashString("INVALID_RESOURCE_ARN"); - static const int INVALID_SNS_TOPIC_ARN_HASH = HashingUtils::HashString("INVALID_SNS_TOPIC_ARN"); - static const int INVALID_IAM_ROLE_ARN_HASH = HashingUtils::HashString("INVALID_IAM_ROLE_ARN"); - static const int INVALID_ASSESSMENT_TARGET_NAME_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TARGET_NAME"); - static const int INVALID_ASSESSMENT_TARGET_NAME_PATTERN_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TARGET_NAME_PATTERN"); - static const int INVALID_ASSESSMENT_TEMPLATE_NAME_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_NAME"); - static const int INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN"); - static const int INVALID_ASSESSMENT_TEMPLATE_DURATION_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_DURATION"); - static const int INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE"); - static const int INVALID_ASSESSMENT_RUN_DURATION_RANGE_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_RUN_DURATION_RANGE"); - static const int INVALID_ASSESSMENT_RUN_START_TIME_RANGE_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_RUN_START_TIME_RANGE"); - static const int INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE"); - static const int INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE"); - static const int INVALID_ASSESSMENT_RUN_STATE_HASH = HashingUtils::HashString("INVALID_ASSESSMENT_RUN_STATE"); - static const int INVALID_TAG_HASH = HashingUtils::HashString("INVALID_TAG"); - static const int INVALID_TAG_KEY_HASH = HashingUtils::HashString("INVALID_TAG_KEY"); - static const int INVALID_TAG_VALUE_HASH = HashingUtils::HashString("INVALID_TAG_VALUE"); - static const int INVALID_RESOURCE_GROUP_TAG_KEY_HASH = HashingUtils::HashString("INVALID_RESOURCE_GROUP_TAG_KEY"); - static const int INVALID_RESOURCE_GROUP_TAG_VALUE_HASH = HashingUtils::HashString("INVALID_RESOURCE_GROUP_TAG_VALUE"); - static const int INVALID_ATTRIBUTE_HASH = HashingUtils::HashString("INVALID_ATTRIBUTE"); - static const int INVALID_USER_ATTRIBUTE_HASH = HashingUtils::HashString("INVALID_USER_ATTRIBUTE"); - static const int INVALID_USER_ATTRIBUTE_KEY_HASH = HashingUtils::HashString("INVALID_USER_ATTRIBUTE_KEY"); - static const int INVALID_USER_ATTRIBUTE_VALUE_HASH = HashingUtils::HashString("INVALID_USER_ATTRIBUTE_VALUE"); - static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("INVALID_PAGINATION_TOKEN"); - static const int INVALID_MAX_RESULTS_HASH = HashingUtils::HashString("INVALID_MAX_RESULTS"); - static const int INVALID_AGENT_ID_HASH = HashingUtils::HashString("INVALID_AGENT_ID"); - static const int INVALID_AUTO_SCALING_GROUP_HASH = HashingUtils::HashString("INVALID_AUTO_SCALING_GROUP"); - static const int INVALID_RULE_NAME_HASH = HashingUtils::HashString("INVALID_RULE_NAME"); - static const int INVALID_SEVERITY_HASH = HashingUtils::HashString("INVALID_SEVERITY"); - static const int INVALID_LOCALE_HASH = HashingUtils::HashString("INVALID_LOCALE"); - static const int INVALID_EVENT_HASH = HashingUtils::HashString("INVALID_EVENT"); - static const int ASSESSMENT_TARGET_NAME_ALREADY_TAKEN_HASH = HashingUtils::HashString("ASSESSMENT_TARGET_NAME_ALREADY_TAKEN"); - static const int ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN_HASH = HashingUtils::HashString("ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN"); - static const int INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS"); - static const int INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS"); - static const int INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS"); - static const int INVALID_NUMBER_OF_FINDING_ARNS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_FINDING_ARNS"); - static const int INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS"); - static const int INVALID_NUMBER_OF_RULES_PACKAGE_ARNS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_RULES_PACKAGE_ARNS"); - static const int INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES"); - static const int INVALID_NUMBER_OF_TAGS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_TAGS"); - static const int INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS"); - static const int INVALID_NUMBER_OF_ATTRIBUTES_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_ATTRIBUTES"); - static const int INVALID_NUMBER_OF_USER_ATTRIBUTES_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_USER_ATTRIBUTES"); - static const int INVALID_NUMBER_OF_AGENT_IDS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_AGENT_IDS"); - static const int INVALID_NUMBER_OF_AUTO_SCALING_GROUPS_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_AUTO_SCALING_GROUPS"); - static const int INVALID_NUMBER_OF_RULE_NAMES_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_RULE_NAMES"); - static const int INVALID_NUMBER_OF_SEVERITIES_HASH = HashingUtils::HashString("INVALID_NUMBER_OF_SEVERITIES"); + static constexpr uint32_t INVALID_ASSESSMENT_TARGET_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TARGET_ARN"); + static constexpr uint32_t INVALID_ASSESSMENT_TEMPLATE_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_ARN"); + static constexpr uint32_t INVALID_ASSESSMENT_RUN_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_RUN_ARN"); + static constexpr uint32_t INVALID_FINDING_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_FINDING_ARN"); + static constexpr uint32_t INVALID_RESOURCE_GROUP_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_RESOURCE_GROUP_ARN"); + static constexpr uint32_t INVALID_RULES_PACKAGE_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_RULES_PACKAGE_ARN"); + static constexpr uint32_t INVALID_RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_RESOURCE_ARN"); + static constexpr uint32_t INVALID_SNS_TOPIC_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_SNS_TOPIC_ARN"); + static constexpr uint32_t INVALID_IAM_ROLE_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_IAM_ROLE_ARN"); + static constexpr uint32_t INVALID_ASSESSMENT_TARGET_NAME_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TARGET_NAME"); + static constexpr uint32_t INVALID_ASSESSMENT_TARGET_NAME_PATTERN_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TARGET_NAME_PATTERN"); + static constexpr uint32_t INVALID_ASSESSMENT_TEMPLATE_NAME_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_NAME"); + static constexpr uint32_t INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN"); + static constexpr uint32_t INVALID_ASSESSMENT_TEMPLATE_DURATION_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_DURATION"); + static constexpr uint32_t INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE"); + static constexpr uint32_t INVALID_ASSESSMENT_RUN_DURATION_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_RUN_DURATION_RANGE"); + static constexpr uint32_t INVALID_ASSESSMENT_RUN_START_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_RUN_START_TIME_RANGE"); + static constexpr uint32_t INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE"); + static constexpr uint32_t INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE"); + static constexpr uint32_t INVALID_ASSESSMENT_RUN_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_ASSESSMENT_RUN_STATE"); + static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("INVALID_TAG"); + static constexpr uint32_t INVALID_TAG_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_TAG_KEY"); + static constexpr uint32_t INVALID_TAG_VALUE_HASH = ConstExprHashingUtils::HashString("INVALID_TAG_VALUE"); + static constexpr uint32_t INVALID_RESOURCE_GROUP_TAG_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_RESOURCE_GROUP_TAG_KEY"); + static constexpr uint32_t INVALID_RESOURCE_GROUP_TAG_VALUE_HASH = ConstExprHashingUtils::HashString("INVALID_RESOURCE_GROUP_TAG_VALUE"); + static constexpr uint32_t INVALID_ATTRIBUTE_HASH = ConstExprHashingUtils::HashString("INVALID_ATTRIBUTE"); + static constexpr uint32_t INVALID_USER_ATTRIBUTE_HASH = ConstExprHashingUtils::HashString("INVALID_USER_ATTRIBUTE"); + static constexpr uint32_t INVALID_USER_ATTRIBUTE_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_USER_ATTRIBUTE_KEY"); + static constexpr uint32_t INVALID_USER_ATTRIBUTE_VALUE_HASH = ConstExprHashingUtils::HashString("INVALID_USER_ATTRIBUTE_VALUE"); + static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_PAGINATION_TOKEN"); + static constexpr uint32_t INVALID_MAX_RESULTS_HASH = ConstExprHashingUtils::HashString("INVALID_MAX_RESULTS"); + static constexpr uint32_t INVALID_AGENT_ID_HASH = ConstExprHashingUtils::HashString("INVALID_AGENT_ID"); + static constexpr uint32_t INVALID_AUTO_SCALING_GROUP_HASH = ConstExprHashingUtils::HashString("INVALID_AUTO_SCALING_GROUP"); + static constexpr uint32_t INVALID_RULE_NAME_HASH = ConstExprHashingUtils::HashString("INVALID_RULE_NAME"); + static constexpr uint32_t INVALID_SEVERITY_HASH = ConstExprHashingUtils::HashString("INVALID_SEVERITY"); + static constexpr uint32_t INVALID_LOCALE_HASH = ConstExprHashingUtils::HashString("INVALID_LOCALE"); + static constexpr uint32_t INVALID_EVENT_HASH = ConstExprHashingUtils::HashString("INVALID_EVENT"); + static constexpr uint32_t ASSESSMENT_TARGET_NAME_ALREADY_TAKEN_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_TARGET_NAME_ALREADY_TAKEN"); + static constexpr uint32_t ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN"); + static constexpr uint32_t INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS"); + static constexpr uint32_t INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS"); + static constexpr uint32_t INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS"); + static constexpr uint32_t INVALID_NUMBER_OF_FINDING_ARNS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_FINDING_ARNS"); + static constexpr uint32_t INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS"); + static constexpr uint32_t INVALID_NUMBER_OF_RULES_PACKAGE_ARNS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_RULES_PACKAGE_ARNS"); + static constexpr uint32_t INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES"); + static constexpr uint32_t INVALID_NUMBER_OF_TAGS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_TAGS"); + static constexpr uint32_t INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS"); + static constexpr uint32_t INVALID_NUMBER_OF_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_ATTRIBUTES"); + static constexpr uint32_t INVALID_NUMBER_OF_USER_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_USER_ATTRIBUTES"); + static constexpr uint32_t INVALID_NUMBER_OF_AGENT_IDS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_AGENT_IDS"); + static constexpr uint32_t INVALID_NUMBER_OF_AUTO_SCALING_GROUPS_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_AUTO_SCALING_GROUPS"); + static constexpr uint32_t INVALID_NUMBER_OF_RULE_NAMES_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_RULE_NAMES"); + static constexpr uint32_t INVALID_NUMBER_OF_SEVERITIES_HASH = ConstExprHashingUtils::HashString("INVALID_NUMBER_OF_SEVERITIES"); InvalidInputErrorCode GetInvalidInputErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_ASSESSMENT_TARGET_ARN_HASH) { return InvalidInputErrorCode::INVALID_ASSESSMENT_TARGET_ARN; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/LimitExceededErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/LimitExceededErrorCode.cpp index f4e5203232f..6216be690f1 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/LimitExceededErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/LimitExceededErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LimitExceededErrorCodeMapper { - static const int ASSESSMENT_TARGET_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ASSESSMENT_TARGET_LIMIT_EXCEEDED"); - static const int ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED"); - static const int ASSESSMENT_RUN_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ASSESSMENT_RUN_LIMIT_EXCEEDED"); - static const int RESOURCE_GROUP_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RESOURCE_GROUP_LIMIT_EXCEEDED"); - static const int EVENT_SUBSCRIPTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EVENT_SUBSCRIPTION_LIMIT_EXCEEDED"); + static constexpr uint32_t ASSESSMENT_TARGET_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_TARGET_LIMIT_EXCEEDED"); + static constexpr uint32_t ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED"); + static constexpr uint32_t ASSESSMENT_RUN_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_RUN_LIMIT_EXCEEDED"); + static constexpr uint32_t RESOURCE_GROUP_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RESOURCE_GROUP_LIMIT_EXCEEDED"); + static constexpr uint32_t EVENT_SUBSCRIPTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("EVENT_SUBSCRIPTION_LIMIT_EXCEEDED"); LimitExceededErrorCode GetLimitExceededErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSESSMENT_TARGET_LIMIT_EXCEEDED_HASH) { return LimitExceededErrorCode::ASSESSMENT_TARGET_LIMIT_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/Locale.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/Locale.cpp index 1cdc3da7e38..0b0e9ca9c38 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/Locale.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/Locale.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LocaleMapper { - static const int EN_US_HASH = HashingUtils::HashString("EN_US"); + static constexpr uint32_t EN_US_HASH = ConstExprHashingUtils::HashString("EN_US"); Locale GetLocaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EN_US_HASH) { return Locale::EN_US; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/NoSuchEntityErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/NoSuchEntityErrorCode.cpp index 9097e0437d5..6fccddd74ec 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/NoSuchEntityErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/NoSuchEntityErrorCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace NoSuchEntityErrorCodeMapper { - static const int ASSESSMENT_TARGET_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ASSESSMENT_TARGET_DOES_NOT_EXIST"); - static const int ASSESSMENT_TEMPLATE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ASSESSMENT_TEMPLATE_DOES_NOT_EXIST"); - static const int ASSESSMENT_RUN_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ASSESSMENT_RUN_DOES_NOT_EXIST"); - static const int FINDING_DOES_NOT_EXIST_HASH = HashingUtils::HashString("FINDING_DOES_NOT_EXIST"); - static const int RESOURCE_GROUP_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RESOURCE_GROUP_DOES_NOT_EXIST"); - static const int RULES_PACKAGE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RULES_PACKAGE_DOES_NOT_EXIST"); - static const int SNS_TOPIC_DOES_NOT_EXIST_HASH = HashingUtils::HashString("SNS_TOPIC_DOES_NOT_EXIST"); - static const int IAM_ROLE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("IAM_ROLE_DOES_NOT_EXIST"); + static constexpr uint32_t ASSESSMENT_TARGET_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_TARGET_DOES_NOT_EXIST"); + static constexpr uint32_t ASSESSMENT_TEMPLATE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_TEMPLATE_DOES_NOT_EXIST"); + static constexpr uint32_t ASSESSMENT_RUN_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ASSESSMENT_RUN_DOES_NOT_EXIST"); + static constexpr uint32_t FINDING_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("FINDING_DOES_NOT_EXIST"); + static constexpr uint32_t RESOURCE_GROUP_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RESOURCE_GROUP_DOES_NOT_EXIST"); + static constexpr uint32_t RULES_PACKAGE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RULES_PACKAGE_DOES_NOT_EXIST"); + static constexpr uint32_t SNS_TOPIC_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("SNS_TOPIC_DOES_NOT_EXIST"); + static constexpr uint32_t IAM_ROLE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_DOES_NOT_EXIST"); NoSuchEntityErrorCode GetNoSuchEntityErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSESSMENT_TARGET_DOES_NOT_EXIST_HASH) { return NoSuchEntityErrorCode::ASSESSMENT_TARGET_DOES_NOT_EXIST; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/PreviewStatus.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/PreviewStatus.cpp index 0e56884c8f7..e17dba00926 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/PreviewStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/PreviewStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PreviewStatusMapper { - static const int WORK_IN_PROGRESS_HASH = HashingUtils::HashString("WORK_IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t WORK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("WORK_IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); PreviewStatus GetPreviewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORK_IN_PROGRESS_HASH) { return PreviewStatus::WORK_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/ReportFileFormat.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/ReportFileFormat.cpp index eb471cf1b37..1b63e71ccfb 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/ReportFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/ReportFileFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportFileFormatMapper { - static const int HTML_HASH = HashingUtils::HashString("HTML"); - static const int PDF_HASH = HashingUtils::HashString("PDF"); + static constexpr uint32_t HTML_HASH = ConstExprHashingUtils::HashString("HTML"); + static constexpr uint32_t PDF_HASH = ConstExprHashingUtils::HashString("PDF"); ReportFileFormat GetReportFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTML_HASH) { return ReportFileFormat::HTML; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/ReportStatus.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/ReportStatus.cpp index a05b74029b9..4110f4b8cfd 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/ReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/ReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReportStatusMapper { - static const int WORK_IN_PROGRESS_HASH = HashingUtils::HashString("WORK_IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t WORK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("WORK_IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ReportStatus GetReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORK_IN_PROGRESS_HASH) { return ReportStatus::WORK_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/ReportType.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/ReportType.cpp index 301b74403eb..15ee38352a1 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/ReportType.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/ReportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportTypeMapper { - static const int FINDING_HASH = HashingUtils::HashString("FINDING"); - static const int FULL_HASH = HashingUtils::HashString("FULL"); + static constexpr uint32_t FINDING_HASH = ConstExprHashingUtils::HashString("FINDING"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); ReportType GetReportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINDING_HASH) { return ReportType::FINDING; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/ScopeType.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/ScopeType.cpp index 48307eb0155..f62b8c938a2 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/ScopeType.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/ScopeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScopeTypeMapper { - static const int INSTANCE_ID_HASH = HashingUtils::HashString("INSTANCE_ID"); - static const int RULES_PACKAGE_ARN_HASH = HashingUtils::HashString("RULES_PACKAGE_ARN"); + static constexpr uint32_t INSTANCE_ID_HASH = ConstExprHashingUtils::HashString("INSTANCE_ID"); + static constexpr uint32_t RULES_PACKAGE_ARN_HASH = ConstExprHashingUtils::HashString("RULES_PACKAGE_ARN"); ScopeType GetScopeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANCE_ID_HASH) { return ScopeType::INSTANCE_ID; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/Severity.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/Severity.cpp index b7f992da2b8..81efaf25fbf 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/Severity.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/Severity.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SeverityMapper { - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); - static const int Informational_HASH = HashingUtils::HashString("Informational"); - static const int Undefined_HASH = HashingUtils::HashString("Undefined"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); + static constexpr uint32_t Informational_HASH = ConstExprHashingUtils::HashString("Informational"); + static constexpr uint32_t Undefined_HASH = ConstExprHashingUtils::HashString("Undefined"); Severity GetSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Low_HASH) { return Severity::Low; diff --git a/generated/src/aws-cpp-sdk-inspector/source/model/StopAction.cpp b/generated/src/aws-cpp-sdk-inspector/source/model/StopAction.cpp index f34f2f393de..8c5a6601cb6 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/model/StopAction.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/model/StopAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StopActionMapper { - static const int START_EVALUATION_HASH = HashingUtils::HashString("START_EVALUATION"); - static const int SKIP_EVALUATION_HASH = HashingUtils::HashString("SKIP_EVALUATION"); + static constexpr uint32_t START_EVALUATION_HASH = ConstExprHashingUtils::HashString("START_EVALUATION"); + static constexpr uint32_t SKIP_EVALUATION_HASH = ConstExprHashingUtils::HashString("SKIP_EVALUATION"); StopAction GetStopActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_EVALUATION_HASH) { return StopAction::START_EVALUATION; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Errors.cpp b/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Errors.cpp index 45428753a7c..a6c7d13c898 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Errors.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Errors.cpp @@ -54,15 +54,15 @@ template<> AWS_INSPECTOR2_API ValidationException Inspector2Error::GetModeledErr namespace Inspector2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AccountSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AccountSortBy.cpp index 6e5ca045326..635adc6eff9 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AccountSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AccountSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccountSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); AccountSortBy GetAccountSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return AccountSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationFindingType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationFindingType.cpp index 1b3a5a35937..d8503b6ab6e 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationFindingType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationFindingType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AggregationFindingTypeMapper { - static const int NETWORK_REACHABILITY_HASH = HashingUtils::HashString("NETWORK_REACHABILITY"); - static const int PACKAGE_VULNERABILITY_HASH = HashingUtils::HashString("PACKAGE_VULNERABILITY"); - static const int CODE_VULNERABILITY_HASH = HashingUtils::HashString("CODE_VULNERABILITY"); + static constexpr uint32_t NETWORK_REACHABILITY_HASH = ConstExprHashingUtils::HashString("NETWORK_REACHABILITY"); + static constexpr uint32_t PACKAGE_VULNERABILITY_HASH = ConstExprHashingUtils::HashString("PACKAGE_VULNERABILITY"); + static constexpr uint32_t CODE_VULNERABILITY_HASH = ConstExprHashingUtils::HashString("CODE_VULNERABILITY"); AggregationFindingType GetAggregationFindingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NETWORK_REACHABILITY_HASH) { return AggregationFindingType::NETWORK_REACHABILITY; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationResourceType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationResourceType.cpp index 47b769bdb64..a8dbf82eec2 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationResourceType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AggregationResourceTypeMapper { - static const int AWS_EC2_INSTANCE_HASH = HashingUtils::HashString("AWS_EC2_INSTANCE"); - static const int AWS_ECR_CONTAINER_IMAGE_HASH = HashingUtils::HashString("AWS_ECR_CONTAINER_IMAGE"); - static const int AWS_LAMBDA_FUNCTION_HASH = HashingUtils::HashString("AWS_LAMBDA_FUNCTION"); + static constexpr uint32_t AWS_EC2_INSTANCE_HASH = ConstExprHashingUtils::HashString("AWS_EC2_INSTANCE"); + static constexpr uint32_t AWS_ECR_CONTAINER_IMAGE_HASH = ConstExprHashingUtils::HashString("AWS_ECR_CONTAINER_IMAGE"); + static constexpr uint32_t AWS_LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA_FUNCTION"); AggregationResourceType GetAggregationResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_EC2_INSTANCE_HASH) { return AggregationResourceType::AWS_EC2_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationType.cpp index 2e61274231e..80e421e7aba 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AggregationType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace AggregationTypeMapper { - static const int FINDING_TYPE_HASH = HashingUtils::HashString("FINDING_TYPE"); - static const int PACKAGE_HASH = HashingUtils::HashString("PACKAGE"); - static const int TITLE_HASH = HashingUtils::HashString("TITLE"); - static const int REPOSITORY_HASH = HashingUtils::HashString("REPOSITORY"); - static const int AMI_HASH = HashingUtils::HashString("AMI"); - static const int AWS_EC2_INSTANCE_HASH = HashingUtils::HashString("AWS_EC2_INSTANCE"); - static const int AWS_ECR_CONTAINER_HASH = HashingUtils::HashString("AWS_ECR_CONTAINER"); - static const int IMAGE_LAYER_HASH = HashingUtils::HashString("IMAGE_LAYER"); - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int AWS_LAMBDA_FUNCTION_HASH = HashingUtils::HashString("AWS_LAMBDA_FUNCTION"); - static const int LAMBDA_LAYER_HASH = HashingUtils::HashString("LAMBDA_LAYER"); + static constexpr uint32_t FINDING_TYPE_HASH = ConstExprHashingUtils::HashString("FINDING_TYPE"); + static constexpr uint32_t PACKAGE_HASH = ConstExprHashingUtils::HashString("PACKAGE"); + static constexpr uint32_t TITLE_HASH = ConstExprHashingUtils::HashString("TITLE"); + static constexpr uint32_t REPOSITORY_HASH = ConstExprHashingUtils::HashString("REPOSITORY"); + static constexpr uint32_t AMI_HASH = ConstExprHashingUtils::HashString("AMI"); + static constexpr uint32_t AWS_EC2_INSTANCE_HASH = ConstExprHashingUtils::HashString("AWS_EC2_INSTANCE"); + static constexpr uint32_t AWS_ECR_CONTAINER_HASH = ConstExprHashingUtils::HashString("AWS_ECR_CONTAINER"); + static constexpr uint32_t IMAGE_LAYER_HASH = ConstExprHashingUtils::HashString("IMAGE_LAYER"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t AWS_LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA_FUNCTION"); + static constexpr uint32_t LAMBDA_LAYER_HASH = ConstExprHashingUtils::HashString("LAMBDA_LAYER"); AggregationType GetAggregationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINDING_TYPE_HASH) { return AggregationType::FINDING_TYPE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AmiSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AmiSortBy.cpp index 16e8de5c491..454cc91fb18 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AmiSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AmiSortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AmiSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int AFFECTED_INSTANCES_HASH = HashingUtils::HashString("AFFECTED_INSTANCES"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t AFFECTED_INSTANCES_HASH = ConstExprHashingUtils::HashString("AFFECTED_INSTANCES"); AmiSortBy GetAmiSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return AmiSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Architecture.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Architecture.cpp index c76dc234238..46e7e6e969c 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Architecture.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Architecture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArchitectureMapper { - static const int X86_64_HASH = HashingUtils::HashString("X86_64"); - static const int ARM64_HASH = HashingUtils::HashString("ARM64"); + static constexpr uint32_t X86_64_HASH = ConstExprHashingUtils::HashString("X86_64"); + static constexpr uint32_t ARM64_HASH = ConstExprHashingUtils::HashString("ARM64"); Architecture GetArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == X86_64_HASH) { return Architecture::X86_64; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AwsEcrContainerSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AwsEcrContainerSortBy.cpp index 1e19a5cba04..48535836367 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AwsEcrContainerSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AwsEcrContainerSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AwsEcrContainerSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); AwsEcrContainerSortBy GetAwsEcrContainerSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return AwsEcrContainerSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/CodeSnippetErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/CodeSnippetErrorCode.cpp index 525df37fcc5..d0b410cf895 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/CodeSnippetErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/CodeSnippetErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CodeSnippetErrorCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int CODE_SNIPPET_NOT_FOUND_HASH = HashingUtils::HashString("CODE_SNIPPET_NOT_FOUND"); - static const int INVALID_INPUT_HASH = HashingUtils::HashString("INVALID_INPUT"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t CODE_SNIPPET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CODE_SNIPPET_NOT_FOUND"); + static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("INVALID_INPUT"); CodeSnippetErrorCode GetCodeSnippetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return CodeSnippetErrorCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageMapComparison.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageMapComparison.cpp index 08b0a842049..6859f86a9d4 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageMapComparison.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageMapComparison.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CoverageMapComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); CoverageMapComparison GetCoverageMapComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return CoverageMapComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageResourceType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageResourceType.cpp index f3f2bf3fd92..f6fd1602c91 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageResourceType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CoverageResourceTypeMapper { - static const int AWS_EC2_INSTANCE_HASH = HashingUtils::HashString("AWS_EC2_INSTANCE"); - static const int AWS_ECR_CONTAINER_IMAGE_HASH = HashingUtils::HashString("AWS_ECR_CONTAINER_IMAGE"); - static const int AWS_ECR_REPOSITORY_HASH = HashingUtils::HashString("AWS_ECR_REPOSITORY"); - static const int AWS_LAMBDA_FUNCTION_HASH = HashingUtils::HashString("AWS_LAMBDA_FUNCTION"); + static constexpr uint32_t AWS_EC2_INSTANCE_HASH = ConstExprHashingUtils::HashString("AWS_EC2_INSTANCE"); + static constexpr uint32_t AWS_ECR_CONTAINER_IMAGE_HASH = ConstExprHashingUtils::HashString("AWS_ECR_CONTAINER_IMAGE"); + static constexpr uint32_t AWS_ECR_REPOSITORY_HASH = ConstExprHashingUtils::HashString("AWS_ECR_REPOSITORY"); + static constexpr uint32_t AWS_LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA_FUNCTION"); CoverageResourceType GetCoverageResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_EC2_INSTANCE_HASH) { return CoverageResourceType::AWS_EC2_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageStringComparison.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageStringComparison.cpp index 355c86579ec..9032ba8609a 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageStringComparison.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/CoverageStringComparison.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CoverageStringComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); CoverageStringComparison GetCoverageStringComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return CoverageStringComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Currency.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Currency.cpp index b054c65c850..69ba020290c 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Currency.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Currency.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CurrencyMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); Currency GetCurrencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return Currency::USD; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/DelegatedAdminStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/DelegatedAdminStatus.cpp index 2a5ec96b540..3f35a78f90d 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/DelegatedAdminStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/DelegatedAdminStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DelegatedAdminStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); DelegatedAdminStatus GetDelegatedAdminStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DelegatedAdminStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2DeepInspectionStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2DeepInspectionStatus.cpp index 622c063537d..5ff6e0af9fb 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2DeepInspectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2DeepInspectionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Ec2DeepInspectionStatusMapper { - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); Ec2DeepInspectionStatus GetEc2DeepInspectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATED_HASH) { return Ec2DeepInspectionStatus::ACTIVATED; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2InstanceSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2InstanceSortBy.cpp index 4f11f894f30..a3cd8ebcbba 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2InstanceSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2InstanceSortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Ec2InstanceSortByMapper { - static const int NETWORK_FINDINGS_HASH = HashingUtils::HashString("NETWORK_FINDINGS"); - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t NETWORK_FINDINGS_HASH = ConstExprHashingUtils::HashString("NETWORK_FINDINGS"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); Ec2InstanceSortBy GetEc2InstanceSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NETWORK_FINDINGS_HASH) { return Ec2InstanceSortBy::NETWORK_FINDINGS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2Platform.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2Platform.cpp index 12425693092..6fb59c1d297 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2Platform.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Ec2Platform.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Ec2PlatformMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int MACOS_HASH = HashingUtils::HashString("MACOS"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t MACOS_HASH = ConstExprHashingUtils::HashString("MACOS"); Ec2Platform GetEc2PlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return Ec2Platform::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDuration.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDuration.cpp index 5bce9b11c92..4b02fd141b2 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDuration.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDuration.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EcrRescanDurationMapper { - static const int LIFETIME_HASH = HashingUtils::HashString("LIFETIME"); - static const int DAYS_30_HASH = HashingUtils::HashString("DAYS_30"); - static const int DAYS_180_HASH = HashingUtils::HashString("DAYS_180"); + static constexpr uint32_t LIFETIME_HASH = ConstExprHashingUtils::HashString("LIFETIME"); + static constexpr uint32_t DAYS_30_HASH = ConstExprHashingUtils::HashString("DAYS_30"); + static constexpr uint32_t DAYS_180_HASH = ConstExprHashingUtils::HashString("DAYS_180"); EcrRescanDuration GetEcrRescanDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIFETIME_HASH) { return EcrRescanDuration::LIFETIME; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDurationStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDurationStatus.cpp index e510a922869..948337d938a 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/EcrRescanDurationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EcrRescanDurationStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); EcrRescanDurationStatus GetEcrRescanDurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return EcrRescanDurationStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/EcrScanFrequency.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/EcrScanFrequency.cpp index 99f9d0743e2..6d6d6b8f71b 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/EcrScanFrequency.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/EcrScanFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EcrScanFrequencyMapper { - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); - static const int SCAN_ON_PUSH_HASH = HashingUtils::HashString("SCAN_ON_PUSH"); - static const int CONTINUOUS_SCAN_HASH = HashingUtils::HashString("CONTINUOUS_SCAN"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); + static constexpr uint32_t SCAN_ON_PUSH_HASH = ConstExprHashingUtils::HashString("SCAN_ON_PUSH"); + static constexpr uint32_t CONTINUOUS_SCAN_HASH = ConstExprHashingUtils::HashString("CONTINUOUS_SCAN"); EcrScanFrequency GetEcrScanFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANUAL_HASH) { return EcrScanFrequency::MANUAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp index 0fac70be5de..b2fbc1d2b56 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ErrorCodeMapper { - static const int ALREADY_ENABLED_HASH = HashingUtils::HashString("ALREADY_ENABLED"); - static const int ENABLE_IN_PROGRESS_HASH = HashingUtils::HashString("ENABLE_IN_PROGRESS"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); - static const int SUSPEND_IN_PROGRESS_HASH = HashingUtils::HashString("SUSPEND_IN_PROGRESS"); - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int SSM_UNAVAILABLE_HASH = HashingUtils::HashString("SSM_UNAVAILABLE"); - static const int SSM_THROTTLED_HASH = HashingUtils::HashString("SSM_THROTTLED"); - static const int EVENTBRIDGE_UNAVAILABLE_HASH = HashingUtils::HashString("EVENTBRIDGE_UNAVAILABLE"); - static const int EVENTBRIDGE_THROTTLED_HASH = HashingUtils::HashString("EVENTBRIDGE_THROTTLED"); - static const int RESOURCE_SCAN_NOT_DISABLED_HASH = HashingUtils::HashString("RESOURCE_SCAN_NOT_DISABLED"); - static const int DISASSOCIATE_ALL_MEMBERS_HASH = HashingUtils::HashString("DISASSOCIATE_ALL_MEMBERS"); - static const int ACCOUNT_IS_ISOLATED_HASH = HashingUtils::HashString("ACCOUNT_IS_ISOLATED"); + static constexpr uint32_t ALREADY_ENABLED_HASH = ConstExprHashingUtils::HashString("ALREADY_ENABLED"); + static constexpr uint32_t ENABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ENABLE_IN_PROGRESS"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t SUSPEND_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("SUSPEND_IN_PROGRESS"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t SSM_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("SSM_UNAVAILABLE"); + static constexpr uint32_t SSM_THROTTLED_HASH = ConstExprHashingUtils::HashString("SSM_THROTTLED"); + static constexpr uint32_t EVENTBRIDGE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("EVENTBRIDGE_UNAVAILABLE"); + static constexpr uint32_t EVENTBRIDGE_THROTTLED_HASH = ConstExprHashingUtils::HashString("EVENTBRIDGE_THROTTLED"); + static constexpr uint32_t RESOURCE_SCAN_NOT_DISABLED_HASH = ConstExprHashingUtils::HashString("RESOURCE_SCAN_NOT_DISABLED"); + static constexpr uint32_t DISASSOCIATE_ALL_MEMBERS_HASH = ConstExprHashingUtils::HashString("DISASSOCIATE_ALL_MEMBERS"); + static constexpr uint32_t ACCOUNT_IS_ISOLATED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_IS_ISOLATED"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALREADY_ENABLED_HASH) { return ErrorCode::ALREADY_ENABLED; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ExploitAvailable.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ExploitAvailable.cpp index 645fdad7e2b..50582b545f8 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ExploitAvailable.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ExploitAvailable.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExploitAvailableMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); ExploitAvailable GetExploitAvailableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return ExploitAvailable::YES; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ExternalReportStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ExternalReportStatus.cpp index c7ecb8cdab5..b13ca5231a3 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ExternalReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ExternalReportStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExternalReportStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ExternalReportStatus GetExternalReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return ExternalReportStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FilterAction.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FilterAction.cpp index 4b90bf722e5..c382100f9cd 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FilterAction.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FilterAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterActionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SUPPRESS_HASH = HashingUtils::HashString("SUPPRESS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SUPPRESS_HASH = ConstExprHashingUtils::HashString("SUPPRESS"); FilterAction GetFilterActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return FilterAction::NONE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingDetailsErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingDetailsErrorCode.cpp index 60bb441dcfa..a9b29400484 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingDetailsErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingDetailsErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FindingDetailsErrorCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int FINDING_DETAILS_NOT_FOUND_HASH = HashingUtils::HashString("FINDING_DETAILS_NOT_FOUND"); - static const int INVALID_INPUT_HASH = HashingUtils::HashString("INVALID_INPUT"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t FINDING_DETAILS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FINDING_DETAILS_NOT_FOUND"); + static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("INVALID_INPUT"); FindingDetailsErrorCode GetFindingDetailsErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return FindingDetailsErrorCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingStatus.cpp index fcc1705f224..c40f0056cc3 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int SUPPRESSED_HASH = HashingUtils::HashString("SUPPRESSED"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t SUPPRESSED_HASH = ConstExprHashingUtils::HashString("SUPPRESSED"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); FindingStatus GetFindingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return FindingStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingType.cpp index 14de64a97f1..5461efa6959 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingTypeMapper { - static const int NETWORK_REACHABILITY_HASH = HashingUtils::HashString("NETWORK_REACHABILITY"); - static const int PACKAGE_VULNERABILITY_HASH = HashingUtils::HashString("PACKAGE_VULNERABILITY"); - static const int CODE_VULNERABILITY_HASH = HashingUtils::HashString("CODE_VULNERABILITY"); + static constexpr uint32_t NETWORK_REACHABILITY_HASH = ConstExprHashingUtils::HashString("NETWORK_REACHABILITY"); + static constexpr uint32_t PACKAGE_VULNERABILITY_HASH = ConstExprHashingUtils::HashString("PACKAGE_VULNERABILITY"); + static constexpr uint32_t CODE_VULNERABILITY_HASH = ConstExprHashingUtils::HashString("CODE_VULNERABILITY"); FindingType GetFindingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NETWORK_REACHABILITY_HASH) { return FindingType::NETWORK_REACHABILITY; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeSortBy.cpp index 56beb24d334..c57b62b027e 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingTypeSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); FindingTypeSortBy GetFindingTypeSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return FindingTypeSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FixAvailable.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FixAvailable.cpp index e6bc0525082..0a679ef9ecd 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FixAvailable.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FixAvailable.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FixAvailableMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int PARTIAL_HASH = HashingUtils::HashString("PARTIAL"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t PARTIAL_HASH = ConstExprHashingUtils::HashString("PARTIAL"); FixAvailable GetFixAvailableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return FixAvailable::YES; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialInfoErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialInfoErrorCode.cpp index 6d13b2e8afc..7d2f32a818d 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialInfoErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialInfoErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FreeTrialInfoErrorCodeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); FreeTrialInfoErrorCode GetFreeTrialInfoErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return FreeTrialInfoErrorCode::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialStatus.cpp index 02c83ee77f8..9f464e0540a 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FreeTrialStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); FreeTrialStatus GetFreeTrialStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return FreeTrialStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialType.cpp index 7646303f034..fba73bc386c 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FreeTrialType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FreeTrialTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int ECR_HASH = HashingUtils::HashString("ECR"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int LAMBDA_CODE_HASH = HashingUtils::HashString("LAMBDA_CODE"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t ECR_HASH = ConstExprHashingUtils::HashString("ECR"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t LAMBDA_CODE_HASH = ConstExprHashingUtils::HashString("LAMBDA_CODE"); FreeTrialType GetFreeTrialTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return FreeTrialType::EC2; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/GroupKey.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/GroupKey.cpp index fe0d464713f..1668c15c645 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/GroupKey.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/GroupKey.cpp @@ -20,16 +20,16 @@ namespace Aws namespace GroupKeyMapper { - static const int SCAN_STATUS_CODE_HASH = HashingUtils::HashString("SCAN_STATUS_CODE"); - static const int SCAN_STATUS_REASON_HASH = HashingUtils::HashString("SCAN_STATUS_REASON"); - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); - static const int ECR_REPOSITORY_NAME_HASH = HashingUtils::HashString("ECR_REPOSITORY_NAME"); + static constexpr uint32_t SCAN_STATUS_CODE_HASH = ConstExprHashingUtils::HashString("SCAN_STATUS_CODE"); + static constexpr uint32_t SCAN_STATUS_REASON_HASH = ConstExprHashingUtils::HashString("SCAN_STATUS_REASON"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t ECR_REPOSITORY_NAME_HASH = ConstExprHashingUtils::HashString("ECR_REPOSITORY_NAME"); GroupKey GetGroupKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCAN_STATUS_CODE_HASH) { return GroupKey::SCAN_STATUS_CODE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ImageLayerSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ImageLayerSortBy.cpp index c3cfbb49e1a..9b19177b8d0 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ImageLayerSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ImageLayerSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageLayerSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ImageLayerSortBy GetImageLayerSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return ImageLayerSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaFunctionSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaFunctionSortBy.cpp index 2bdaca509d9..6e5da963519 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaFunctionSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaFunctionSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LambdaFunctionSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); LambdaFunctionSortBy GetLambdaFunctionSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return LambdaFunctionSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaLayerSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaLayerSortBy.cpp index 839c6aac723..8fac563afc5 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaLayerSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/LambdaLayerSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LambdaLayerSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); LambdaLayerSortBy GetLambdaLayerSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return LambdaLayerSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/MapComparison.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/MapComparison.cpp index 71435925567..f7752b2f9ef 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/MapComparison.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/MapComparison.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MapComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); MapComparison GetMapComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return MapComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/NetworkProtocol.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/NetworkProtocol.cpp index c39f6ad90c4..d467e4ffb25 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/NetworkProtocol.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/NetworkProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkProtocolMapper { - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); NetworkProtocol GetNetworkProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TCP_HASH) { return NetworkProtocol::TCP; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Operation.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Operation.cpp index 800f3ef3012..a9d65125487 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Operation.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Operation.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OperationMapper { - static const int ENABLE_SCANNING_HASH = HashingUtils::HashString("ENABLE_SCANNING"); - static const int DISABLE_SCANNING_HASH = HashingUtils::HashString("DISABLE_SCANNING"); - static const int ENABLE_REPOSITORY_HASH = HashingUtils::HashString("ENABLE_REPOSITORY"); - static const int DISABLE_REPOSITORY_HASH = HashingUtils::HashString("DISABLE_REPOSITORY"); + static constexpr uint32_t ENABLE_SCANNING_HASH = ConstExprHashingUtils::HashString("ENABLE_SCANNING"); + static constexpr uint32_t DISABLE_SCANNING_HASH = ConstExprHashingUtils::HashString("DISABLE_SCANNING"); + static constexpr uint32_t ENABLE_REPOSITORY_HASH = ConstExprHashingUtils::HashString("ENABLE_REPOSITORY"); + static constexpr uint32_t DISABLE_REPOSITORY_HASH = ConstExprHashingUtils::HashString("DISABLE_REPOSITORY"); Operation GetOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_SCANNING_HASH) { return Operation::ENABLE_SCANNING; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp index 6c4a582612a..036b4b0d0bb 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp @@ -20,28 +20,28 @@ namespace Aws namespace PackageManagerMapper { - static const int BUNDLER_HASH = HashingUtils::HashString("BUNDLER"); - static const int CARGO_HASH = HashingUtils::HashString("CARGO"); - static const int COMPOSER_HASH = HashingUtils::HashString("COMPOSER"); - static const int NPM_HASH = HashingUtils::HashString("NPM"); - static const int NUGET_HASH = HashingUtils::HashString("NUGET"); - static const int PIPENV_HASH = HashingUtils::HashString("PIPENV"); - static const int POETRY_HASH = HashingUtils::HashString("POETRY"); - static const int YARN_HASH = HashingUtils::HashString("YARN"); - static const int GOBINARY_HASH = HashingUtils::HashString("GOBINARY"); - static const int GOMOD_HASH = HashingUtils::HashString("GOMOD"); - static const int JAR_HASH = HashingUtils::HashString("JAR"); - static const int OS_HASH = HashingUtils::HashString("OS"); - static const int PIP_HASH = HashingUtils::HashString("PIP"); - static const int PYTHONPKG_HASH = HashingUtils::HashString("PYTHONPKG"); - static const int NODEPKG_HASH = HashingUtils::HashString("NODEPKG"); - static const int POM_HASH = HashingUtils::HashString("POM"); - static const int GEMSPEC_HASH = HashingUtils::HashString("GEMSPEC"); + static constexpr uint32_t BUNDLER_HASH = ConstExprHashingUtils::HashString("BUNDLER"); + static constexpr uint32_t CARGO_HASH = ConstExprHashingUtils::HashString("CARGO"); + static constexpr uint32_t COMPOSER_HASH = ConstExprHashingUtils::HashString("COMPOSER"); + static constexpr uint32_t NPM_HASH = ConstExprHashingUtils::HashString("NPM"); + static constexpr uint32_t NUGET_HASH = ConstExprHashingUtils::HashString("NUGET"); + static constexpr uint32_t PIPENV_HASH = ConstExprHashingUtils::HashString("PIPENV"); + static constexpr uint32_t POETRY_HASH = ConstExprHashingUtils::HashString("POETRY"); + static constexpr uint32_t YARN_HASH = ConstExprHashingUtils::HashString("YARN"); + static constexpr uint32_t GOBINARY_HASH = ConstExprHashingUtils::HashString("GOBINARY"); + static constexpr uint32_t GOMOD_HASH = ConstExprHashingUtils::HashString("GOMOD"); + static constexpr uint32_t JAR_HASH = ConstExprHashingUtils::HashString("JAR"); + static constexpr uint32_t OS_HASH = ConstExprHashingUtils::HashString("OS"); + static constexpr uint32_t PIP_HASH = ConstExprHashingUtils::HashString("PIP"); + static constexpr uint32_t PYTHONPKG_HASH = ConstExprHashingUtils::HashString("PYTHONPKG"); + static constexpr uint32_t NODEPKG_HASH = ConstExprHashingUtils::HashString("NODEPKG"); + static constexpr uint32_t POM_HASH = ConstExprHashingUtils::HashString("POM"); + static constexpr uint32_t GEMSPEC_HASH = ConstExprHashingUtils::HashString("GEMSPEC"); PackageManager GetPackageManagerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUNDLER_HASH) { return PackageManager::BUNDLER; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageSortBy.cpp index 8b78643a433..497975cd014 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PackageSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); PackageSortBy GetPackageSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return PackageSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageType.cpp index e41edbb7c39..7a0af75d1b9 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PackageTypeMapper { - static const int IMAGE_HASH = HashingUtils::HashString("IMAGE"); - static const int ZIP_HASH = HashingUtils::HashString("ZIP"); + static constexpr uint32_t IMAGE_HASH = ConstExprHashingUtils::HashString("IMAGE"); + static constexpr uint32_t ZIP_HASH = ConstExprHashingUtils::HashString("ZIP"); PackageType GetPackageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMAGE_HASH) { return PackageType::IMAGE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/RelationshipStatus.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/RelationshipStatus.cpp index 73b8b5b7e2b..5dd33f9e01f 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/RelationshipStatus.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/RelationshipStatus.cpp @@ -20,23 +20,23 @@ namespace Aws namespace RelationshipStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int INVITED_HASH = HashingUtils::HashString("INVITED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); - static const int RESIGNED_HASH = HashingUtils::HashString("RESIGNED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int EMAIL_VERIFICATION_IN_PROGRESS_HASH = HashingUtils::HashString("EMAIL_VERIFICATION_IN_PROGRESS"); - static const int EMAIL_VERIFICATION_FAILED_HASH = HashingUtils::HashString("EMAIL_VERIFICATION_FAILED"); - static const int REGION_DISABLED_HASH = HashingUtils::HashString("REGION_DISABLED"); - static const int ACCOUNT_SUSPENDED_HASH = HashingUtils::HashString("ACCOUNT_SUSPENDED"); - static const int CANNOT_CREATE_DETECTOR_IN_ORG_MASTER_HASH = HashingUtils::HashString("CANNOT_CREATE_DETECTOR_IN_ORG_MASTER"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t INVITED_HASH = ConstExprHashingUtils::HashString("INVITED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); + static constexpr uint32_t RESIGNED_HASH = ConstExprHashingUtils::HashString("RESIGNED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t EMAIL_VERIFICATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("EMAIL_VERIFICATION_IN_PROGRESS"); + static constexpr uint32_t EMAIL_VERIFICATION_FAILED_HASH = ConstExprHashingUtils::HashString("EMAIL_VERIFICATION_FAILED"); + static constexpr uint32_t REGION_DISABLED_HASH = ConstExprHashingUtils::HashString("REGION_DISABLED"); + static constexpr uint32_t ACCOUNT_SUSPENDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_SUSPENDED"); + static constexpr uint32_t CANNOT_CREATE_DETECTOR_IN_ORG_MASTER_HASH = ConstExprHashingUtils::HashString("CANNOT_CREATE_DETECTOR_IN_ORG_MASTER"); RelationshipStatus GetRelationshipStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return RelationshipStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ReportFormat.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ReportFormat.cpp index 123028f876b..a2c8a86e651 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ReportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); ReportFormat GetReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return ReportFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ReportingErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ReportingErrorCode.cpp index e5df2440506..aa57e8430e2 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ReportingErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ReportingErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReportingErrorCodeMapper { - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INVALID_PERMISSIONS_HASH = HashingUtils::HashString("INVALID_PERMISSIONS"); - static const int NO_FINDINGS_FOUND_HASH = HashingUtils::HashString("NO_FINDINGS_FOUND"); - static const int BUCKET_NOT_FOUND_HASH = HashingUtils::HashString("BUCKET_NOT_FOUND"); - static const int INCOMPATIBLE_BUCKET_REGION_HASH = HashingUtils::HashString("INCOMPATIBLE_BUCKET_REGION"); - static const int MALFORMED_KMS_KEY_HASH = HashingUtils::HashString("MALFORMED_KMS_KEY"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INVALID_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("INVALID_PERMISSIONS"); + static constexpr uint32_t NO_FINDINGS_FOUND_HASH = ConstExprHashingUtils::HashString("NO_FINDINGS_FOUND"); + static constexpr uint32_t BUCKET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("BUCKET_NOT_FOUND"); + static constexpr uint32_t INCOMPATIBLE_BUCKET_REGION_HASH = ConstExprHashingUtils::HashString("INCOMPATIBLE_BUCKET_REGION"); + static constexpr uint32_t MALFORMED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("MALFORMED_KMS_KEY"); ReportingErrorCode GetReportingErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_ERROR_HASH) { return ReportingErrorCode::INTERNAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/RepositorySortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/RepositorySortBy.cpp index e15fae36c57..a8ca44a1fc5 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/RepositorySortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/RepositorySortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RepositorySortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int AFFECTED_IMAGES_HASH = HashingUtils::HashString("AFFECTED_IMAGES"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t AFFECTED_IMAGES_HASH = ConstExprHashingUtils::HashString("AFFECTED_IMAGES"); RepositorySortBy GetRepositorySortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return RepositorySortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceMapComparison.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceMapComparison.cpp index 8386caf07b2..85ac900e829 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceMapComparison.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceMapComparison.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceMapComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); ResourceMapComparison GetResourceMapComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return ResourceMapComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceScanType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceScanType.cpp index 81476487374..4e9a4e98a4e 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceScanType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceScanType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceScanTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int ECR_HASH = HashingUtils::HashString("ECR"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int LAMBDA_CODE_HASH = HashingUtils::HashString("LAMBDA_CODE"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t ECR_HASH = ConstExprHashingUtils::HashString("ECR"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t LAMBDA_CODE_HASH = ConstExprHashingUtils::HashString("LAMBDA_CODE"); ResourceScanType GetResourceScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return ResourceScanType::EC2; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceStringComparison.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceStringComparison.cpp index e5f0da44f5e..e4ae3ab74f6 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceStringComparison.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceStringComparison.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceStringComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); ResourceStringComparison GetResourceStringComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return ResourceStringComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceType.cpp index e40facf2f5f..6f4f6f9e407 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceTypeMapper { - static const int AWS_EC2_INSTANCE_HASH = HashingUtils::HashString("AWS_EC2_INSTANCE"); - static const int AWS_ECR_CONTAINER_IMAGE_HASH = HashingUtils::HashString("AWS_ECR_CONTAINER_IMAGE"); - static const int AWS_ECR_REPOSITORY_HASH = HashingUtils::HashString("AWS_ECR_REPOSITORY"); - static const int AWS_LAMBDA_FUNCTION_HASH = HashingUtils::HashString("AWS_LAMBDA_FUNCTION"); + static constexpr uint32_t AWS_EC2_INSTANCE_HASH = ConstExprHashingUtils::HashString("AWS_EC2_INSTANCE"); + static constexpr uint32_t AWS_ECR_CONTAINER_IMAGE_HASH = ConstExprHashingUtils::HashString("AWS_ECR_CONTAINER_IMAGE"); + static constexpr uint32_t AWS_ECR_REPOSITORY_HASH = ConstExprHashingUtils::HashString("AWS_ECR_REPOSITORY"); + static constexpr uint32_t AWS_LAMBDA_FUNCTION_HASH = ConstExprHashingUtils::HashString("AWS_LAMBDA_FUNCTION"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_EC2_INSTANCE_HASH) { return ResourceType::AWS_EC2_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp index 6dfb232222f..e5b6c6954be 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp @@ -20,26 +20,26 @@ namespace Aws namespace RuntimeMapper { - static const int NODEJS_HASH = HashingUtils::HashString("NODEJS"); - static const int NODEJS_12_X_HASH = HashingUtils::HashString("NODEJS_12_X"); - static const int NODEJS_14_X_HASH = HashingUtils::HashString("NODEJS_14_X"); - static const int NODEJS_16_X_HASH = HashingUtils::HashString("NODEJS_16_X"); - static const int JAVA_8_HASH = HashingUtils::HashString("JAVA_8"); - static const int JAVA_8_AL2_HASH = HashingUtils::HashString("JAVA_8_AL2"); - static const int JAVA_11_HASH = HashingUtils::HashString("JAVA_11"); - static const int PYTHON_3_7_HASH = HashingUtils::HashString("PYTHON_3_7"); - static const int PYTHON_3_8_HASH = HashingUtils::HashString("PYTHON_3_8"); - static const int PYTHON_3_9_HASH = HashingUtils::HashString("PYTHON_3_9"); - static const int UNSUPPORTED_HASH = HashingUtils::HashString("UNSUPPORTED"); - static const int NODEJS_18_X_HASH = HashingUtils::HashString("NODEJS_18_X"); - static const int GO_1_X_HASH = HashingUtils::HashString("GO_1_X"); - static const int JAVA_17_HASH = HashingUtils::HashString("JAVA_17"); - static const int PYTHON_3_10_HASH = HashingUtils::HashString("PYTHON_3_10"); + static constexpr uint32_t NODEJS_HASH = ConstExprHashingUtils::HashString("NODEJS"); + static constexpr uint32_t NODEJS_12_X_HASH = ConstExprHashingUtils::HashString("NODEJS_12_X"); + static constexpr uint32_t NODEJS_14_X_HASH = ConstExprHashingUtils::HashString("NODEJS_14_X"); + static constexpr uint32_t NODEJS_16_X_HASH = ConstExprHashingUtils::HashString("NODEJS_16_X"); + static constexpr uint32_t JAVA_8_HASH = ConstExprHashingUtils::HashString("JAVA_8"); + static constexpr uint32_t JAVA_8_AL2_HASH = ConstExprHashingUtils::HashString("JAVA_8_AL2"); + static constexpr uint32_t JAVA_11_HASH = ConstExprHashingUtils::HashString("JAVA_11"); + static constexpr uint32_t PYTHON_3_7_HASH = ConstExprHashingUtils::HashString("PYTHON_3_7"); + static constexpr uint32_t PYTHON_3_8_HASH = ConstExprHashingUtils::HashString("PYTHON_3_8"); + static constexpr uint32_t PYTHON_3_9_HASH = ConstExprHashingUtils::HashString("PYTHON_3_9"); + static constexpr uint32_t UNSUPPORTED_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED"); + static constexpr uint32_t NODEJS_18_X_HASH = ConstExprHashingUtils::HashString("NODEJS_18_X"); + static constexpr uint32_t GO_1_X_HASH = ConstExprHashingUtils::HashString("GO_1_X"); + static constexpr uint32_t JAVA_17_HASH = ConstExprHashingUtils::HashString("JAVA_17"); + static constexpr uint32_t PYTHON_3_10_HASH = ConstExprHashingUtils::HashString("PYTHON_3_10"); Runtime GetRuntimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NODEJS_HASH) { return Runtime::NODEJS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/SbomReportFormat.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/SbomReportFormat.cpp index 537c02c61b4..21649f67eda 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/SbomReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/SbomReportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SbomReportFormatMapper { - static const int CYCLONEDX_1_4_HASH = HashingUtils::HashString("CYCLONEDX_1_4"); - static const int SPDX_2_3_HASH = HashingUtils::HashString("SPDX_2_3"); + static constexpr uint32_t CYCLONEDX_1_4_HASH = ConstExprHashingUtils::HashString("CYCLONEDX_1_4"); + static constexpr uint32_t SPDX_2_3_HASH = ConstExprHashingUtils::HashString("SPDX_2_3"); SbomReportFormat GetSbomReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CYCLONEDX_1_4_HASH) { return SbomReportFormat::CYCLONEDX_1_4; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusCode.cpp index a9834f10dc9..f474f340484 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanStatusCodeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); ScanStatusCode GetScanStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ScanStatusCode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp index 918524a8f29..5d6d7961cf3 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp @@ -20,35 +20,35 @@ namespace Aws namespace ScanStatusReasonMapper { - static const int PENDING_INITIAL_SCAN_HASH = HashingUtils::HashString("PENDING_INITIAL_SCAN"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int UNMANAGED_EC2_INSTANCE_HASH = HashingUtils::HashString("UNMANAGED_EC2_INSTANCE"); - static const int UNSUPPORTED_OS_HASH = HashingUtils::HashString("UNSUPPORTED_OS"); - static const int SCAN_ELIGIBILITY_EXPIRED_HASH = HashingUtils::HashString("SCAN_ELIGIBILITY_EXPIRED"); - static const int RESOURCE_TERMINATED_HASH = HashingUtils::HashString("RESOURCE_TERMINATED"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int NO_RESOURCES_FOUND_HASH = HashingUtils::HashString("NO_RESOURCES_FOUND"); - static const int IMAGE_SIZE_EXCEEDED_HASH = HashingUtils::HashString("IMAGE_SIZE_EXCEEDED"); - static const int SCAN_FREQUENCY_MANUAL_HASH = HashingUtils::HashString("SCAN_FREQUENCY_MANUAL"); - static const int SCAN_FREQUENCY_SCAN_ON_PUSH_HASH = HashingUtils::HashString("SCAN_FREQUENCY_SCAN_ON_PUSH"); - static const int EC2_INSTANCE_STOPPED_HASH = HashingUtils::HashString("EC2_INSTANCE_STOPPED"); - static const int PENDING_DISABLE_HASH = HashingUtils::HashString("PENDING_DISABLE"); - static const int NO_INVENTORY_HASH = HashingUtils::HashString("NO_INVENTORY"); - static const int STALE_INVENTORY_HASH = HashingUtils::HashString("STALE_INVENTORY"); - static const int EXCLUDED_BY_TAG_HASH = HashingUtils::HashString("EXCLUDED_BY_TAG"); - static const int UNSUPPORTED_RUNTIME_HASH = HashingUtils::HashString("UNSUPPORTED_RUNTIME"); - static const int UNSUPPORTED_MEDIA_TYPE_HASH = HashingUtils::HashString("UNSUPPORTED_MEDIA_TYPE"); - static const int UNSUPPORTED_CONFIG_FILE_HASH = HashingUtils::HashString("UNSUPPORTED_CONFIG_FILE"); - static const int DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED"); - static const int DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED"); - static const int DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED"); - static const int DEEP_INSPECTION_NO_INVENTORY_HASH = HashingUtils::HashString("DEEP_INSPECTION_NO_INVENTORY"); + static constexpr uint32_t PENDING_INITIAL_SCAN_HASH = ConstExprHashingUtils::HashString("PENDING_INITIAL_SCAN"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t UNMANAGED_EC2_INSTANCE_HASH = ConstExprHashingUtils::HashString("UNMANAGED_EC2_INSTANCE"); + static constexpr uint32_t UNSUPPORTED_OS_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_OS"); + static constexpr uint32_t SCAN_ELIGIBILITY_EXPIRED_HASH = ConstExprHashingUtils::HashString("SCAN_ELIGIBILITY_EXPIRED"); + static constexpr uint32_t RESOURCE_TERMINATED_HASH = ConstExprHashingUtils::HashString("RESOURCE_TERMINATED"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t NO_RESOURCES_FOUND_HASH = ConstExprHashingUtils::HashString("NO_RESOURCES_FOUND"); + static constexpr uint32_t IMAGE_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("IMAGE_SIZE_EXCEEDED"); + static constexpr uint32_t SCAN_FREQUENCY_MANUAL_HASH = ConstExprHashingUtils::HashString("SCAN_FREQUENCY_MANUAL"); + static constexpr uint32_t SCAN_FREQUENCY_SCAN_ON_PUSH_HASH = ConstExprHashingUtils::HashString("SCAN_FREQUENCY_SCAN_ON_PUSH"); + static constexpr uint32_t EC2_INSTANCE_STOPPED_HASH = ConstExprHashingUtils::HashString("EC2_INSTANCE_STOPPED"); + static constexpr uint32_t PENDING_DISABLE_HASH = ConstExprHashingUtils::HashString("PENDING_DISABLE"); + static constexpr uint32_t NO_INVENTORY_HASH = ConstExprHashingUtils::HashString("NO_INVENTORY"); + static constexpr uint32_t STALE_INVENTORY_HASH = ConstExprHashingUtils::HashString("STALE_INVENTORY"); + static constexpr uint32_t EXCLUDED_BY_TAG_HASH = ConstExprHashingUtils::HashString("EXCLUDED_BY_TAG"); + static constexpr uint32_t UNSUPPORTED_RUNTIME_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_RUNTIME"); + static constexpr uint32_t UNSUPPORTED_MEDIA_TYPE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_MEDIA_TYPE"); + static constexpr uint32_t UNSUPPORTED_CONFIG_FILE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_CONFIG_FILE"); + static constexpr uint32_t DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED"); + static constexpr uint32_t DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED"); + static constexpr uint32_t DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED"); + static constexpr uint32_t DEEP_INSPECTION_NO_INVENTORY_HASH = ConstExprHashingUtils::HashString("DEEP_INSPECTION_NO_INVENTORY"); ScanStatusReason GetScanStatusReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_INITIAL_SCAN_HASH) { return ScanStatusReason::PENDING_INITIAL_SCAN; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanType.cpp index d12b543005c..538eb851148 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScanTypeMapper { - static const int NETWORK_HASH = HashingUtils::HashString("NETWORK"); - static const int PACKAGE_HASH = HashingUtils::HashString("PACKAGE"); - static const int CODE_HASH = HashingUtils::HashString("CODE"); + static constexpr uint32_t NETWORK_HASH = ConstExprHashingUtils::HashString("NETWORK"); + static constexpr uint32_t PACKAGE_HASH = ConstExprHashingUtils::HashString("PACKAGE"); + static constexpr uint32_t CODE_HASH = ConstExprHashingUtils::HashString("CODE"); ScanType GetScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NETWORK_HASH) { return ScanType::NETWORK; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Service.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Service.cpp index 52d27303186..c5886e485e8 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Service.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Service.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServiceMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int ECR_HASH = HashingUtils::HashString("ECR"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t ECR_HASH = ConstExprHashingUtils::HashString("ECR"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); Service GetServiceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return Service::EC2; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Severity.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Severity.cpp index 99675d81172..15f72fa74f6 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Severity.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Severity.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SeverityMapper { - static const int INFORMATIONAL_HASH = HashingUtils::HashString("INFORMATIONAL"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int UNTRIAGED_HASH = HashingUtils::HashString("UNTRIAGED"); + static constexpr uint32_t INFORMATIONAL_HASH = ConstExprHashingUtils::HashString("INFORMATIONAL"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t UNTRIAGED_HASH = ConstExprHashingUtils::HashString("UNTRIAGED"); Severity GetSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFORMATIONAL_HASH) { return Severity::INFORMATIONAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/SortField.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/SortField.cpp index 0dd9b74a03c..65379dcdaf3 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/SortField.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/SortField.cpp @@ -20,28 +20,28 @@ namespace Aws namespace SortFieldMapper { - static const int AWS_ACCOUNT_ID_HASH = HashingUtils::HashString("AWS_ACCOUNT_ID"); - static const int FINDING_TYPE_HASH = HashingUtils::HashString("FINDING_TYPE"); - static const int SEVERITY_HASH = HashingUtils::HashString("SEVERITY"); - static const int FIRST_OBSERVED_AT_HASH = HashingUtils::HashString("FIRST_OBSERVED_AT"); - static const int LAST_OBSERVED_AT_HASH = HashingUtils::HashString("LAST_OBSERVED_AT"); - static const int FINDING_STATUS_HASH = HashingUtils::HashString("FINDING_STATUS"); - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); - static const int ECR_IMAGE_PUSHED_AT_HASH = HashingUtils::HashString("ECR_IMAGE_PUSHED_AT"); - static const int ECR_IMAGE_REPOSITORY_NAME_HASH = HashingUtils::HashString("ECR_IMAGE_REPOSITORY_NAME"); - static const int ECR_IMAGE_REGISTRY_HASH = HashingUtils::HashString("ECR_IMAGE_REGISTRY"); - static const int NETWORK_PROTOCOL_HASH = HashingUtils::HashString("NETWORK_PROTOCOL"); - static const int COMPONENT_TYPE_HASH = HashingUtils::HashString("COMPONENT_TYPE"); - static const int VULNERABILITY_ID_HASH = HashingUtils::HashString("VULNERABILITY_ID"); - static const int VULNERABILITY_SOURCE_HASH = HashingUtils::HashString("VULNERABILITY_SOURCE"); - static const int INSPECTOR_SCORE_HASH = HashingUtils::HashString("INSPECTOR_SCORE"); - static const int VENDOR_SEVERITY_HASH = HashingUtils::HashString("VENDOR_SEVERITY"); - static const int EPSS_SCORE_HASH = HashingUtils::HashString("EPSS_SCORE"); + static constexpr uint32_t AWS_ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT_ID"); + static constexpr uint32_t FINDING_TYPE_HASH = ConstExprHashingUtils::HashString("FINDING_TYPE"); + static constexpr uint32_t SEVERITY_HASH = ConstExprHashingUtils::HashString("SEVERITY"); + static constexpr uint32_t FIRST_OBSERVED_AT_HASH = ConstExprHashingUtils::HashString("FIRST_OBSERVED_AT"); + static constexpr uint32_t LAST_OBSERVED_AT_HASH = ConstExprHashingUtils::HashString("LAST_OBSERVED_AT"); + static constexpr uint32_t FINDING_STATUS_HASH = ConstExprHashingUtils::HashString("FINDING_STATUS"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t ECR_IMAGE_PUSHED_AT_HASH = ConstExprHashingUtils::HashString("ECR_IMAGE_PUSHED_AT"); + static constexpr uint32_t ECR_IMAGE_REPOSITORY_NAME_HASH = ConstExprHashingUtils::HashString("ECR_IMAGE_REPOSITORY_NAME"); + static constexpr uint32_t ECR_IMAGE_REGISTRY_HASH = ConstExprHashingUtils::HashString("ECR_IMAGE_REGISTRY"); + static constexpr uint32_t NETWORK_PROTOCOL_HASH = ConstExprHashingUtils::HashString("NETWORK_PROTOCOL"); + static constexpr uint32_t COMPONENT_TYPE_HASH = ConstExprHashingUtils::HashString("COMPONENT_TYPE"); + static constexpr uint32_t VULNERABILITY_ID_HASH = ConstExprHashingUtils::HashString("VULNERABILITY_ID"); + static constexpr uint32_t VULNERABILITY_SOURCE_HASH = ConstExprHashingUtils::HashString("VULNERABILITY_SOURCE"); + static constexpr uint32_t INSPECTOR_SCORE_HASH = ConstExprHashingUtils::HashString("INSPECTOR_SCORE"); + static constexpr uint32_t VENDOR_SEVERITY_HASH = ConstExprHashingUtils::HashString("VENDOR_SEVERITY"); + static constexpr uint32_t EPSS_SCORE_HASH = ConstExprHashingUtils::HashString("EPSS_SCORE"); SortField GetSortFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ACCOUNT_ID_HASH) { return SortField::AWS_ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/SortOrder.cpp index b98f304e948..03544ecc0a5 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Status.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Status.cpp index ac26ae377a2..ce9fb383f9a 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Status.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int SUSPENDING_HASH = HashingUtils::HashString("SUSPENDING"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t SUSPENDING_HASH = ConstExprHashingUtils::HashString("SUSPENDING"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return Status::ENABLING; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/StringComparison.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/StringComparison.cpp index 1336684600a..bbda11063c8 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/StringComparison.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/StringComparison.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StringComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int PREFIX_HASH = HashingUtils::HashString("PREFIX"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t PREFIX_HASH = ConstExprHashingUtils::HashString("PREFIX"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); StringComparison GetStringComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return StringComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/TitleSortBy.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/TitleSortBy.cpp index 4aa968c6413..f214fd2f682 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/TitleSortBy.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/TitleSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TitleSortByMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); TitleSortBy GetTitleSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return TitleSortBy::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/UsageType.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/UsageType.cpp index 26dc991b697..a34a6fafb24 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/UsageType.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/UsageType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UsageTypeMapper { - static const int EC2_INSTANCE_HOURS_HASH = HashingUtils::HashString("EC2_INSTANCE_HOURS"); - static const int ECR_INITIAL_SCAN_HASH = HashingUtils::HashString("ECR_INITIAL_SCAN"); - static const int ECR_RESCAN_HASH = HashingUtils::HashString("ECR_RESCAN"); - static const int LAMBDA_FUNCTION_HOURS_HASH = HashingUtils::HashString("LAMBDA_FUNCTION_HOURS"); - static const int LAMBDA_FUNCTION_CODE_HOURS_HASH = HashingUtils::HashString("LAMBDA_FUNCTION_CODE_HOURS"); + static constexpr uint32_t EC2_INSTANCE_HOURS_HASH = ConstExprHashingUtils::HashString("EC2_INSTANCE_HOURS"); + static constexpr uint32_t ECR_INITIAL_SCAN_HASH = ConstExprHashingUtils::HashString("ECR_INITIAL_SCAN"); + static constexpr uint32_t ECR_RESCAN_HASH = ConstExprHashingUtils::HashString("ECR_RESCAN"); + static constexpr uint32_t LAMBDA_FUNCTION_HOURS_HASH = ConstExprHashingUtils::HashString("LAMBDA_FUNCTION_HOURS"); + static constexpr uint32_t LAMBDA_FUNCTION_CODE_HOURS_HASH = ConstExprHashingUtils::HashString("LAMBDA_FUNCTION_CODE_HOURS"); UsageType GetUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_INSTANCE_HOURS_HASH) { return UsageType::EC2_INSTANCE_HOURS; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ValidationExceptionReason.cpp index e1a0aa2ce8b..c851fcfac67 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ValidationExceptionReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANNOT_PARSE_HASH) { return ValidationExceptionReason::CANNOT_PARSE; diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/VulnerabilitySource.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/VulnerabilitySource.cpp index 1cbacbe096f..3c1f951db16 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/VulnerabilitySource.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/VulnerabilitySource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VulnerabilitySourceMapper { - static const int NVD_HASH = HashingUtils::HashString("NVD"); + static constexpr uint32_t NVD_HASH = ConstExprHashingUtils::HashString("NVD"); VulnerabilitySource GetVulnerabilitySourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NVD_HASH) { return VulnerabilitySource::NVD; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorErrors.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorErrors.cpp index 5da278e50d6..c08fb6b7c69 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorErrors.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorErrors.cpp @@ -18,18 +18,18 @@ namespace InternetMonitor namespace InternetMonitorErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventImpactType.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventImpactType.cpp index 076f76c1880..94906a7d6ff 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventImpactType.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventImpactType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HealthEventImpactTypeMapper { - static const int AVAILABILITY_HASH = HashingUtils::HashString("AVAILABILITY"); - static const int PERFORMANCE_HASH = HashingUtils::HashString("PERFORMANCE"); - static const int LOCAL_AVAILABILITY_HASH = HashingUtils::HashString("LOCAL_AVAILABILITY"); - static const int LOCAL_PERFORMANCE_HASH = HashingUtils::HashString("LOCAL_PERFORMANCE"); + static constexpr uint32_t AVAILABILITY_HASH = ConstExprHashingUtils::HashString("AVAILABILITY"); + static constexpr uint32_t PERFORMANCE_HASH = ConstExprHashingUtils::HashString("PERFORMANCE"); + static constexpr uint32_t LOCAL_AVAILABILITY_HASH = ConstExprHashingUtils::HashString("LOCAL_AVAILABILITY"); + static constexpr uint32_t LOCAL_PERFORMANCE_HASH = ConstExprHashingUtils::HashString("LOCAL_PERFORMANCE"); HealthEventImpactType GetHealthEventImpactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABILITY_HASH) { return HealthEventImpactType::AVAILABILITY; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventStatus.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventStatus.cpp index ab79cc4c408..c4276959b09 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventStatus.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/HealthEventStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HealthEventStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); HealthEventStatus GetHealthEventStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return HealthEventStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/LocalHealthEventsConfigStatus.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/LocalHealthEventsConfigStatus.cpp index e5446d29fd1..e28c7ce171a 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/LocalHealthEventsConfigStatus.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/LocalHealthEventsConfigStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LocalHealthEventsConfigStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LocalHealthEventsConfigStatus GetLocalHealthEventsConfigStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return LocalHealthEventsConfigStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/LogDeliveryStatus.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/LogDeliveryStatus.cpp index 310a4f7f25b..76a3c99a72e 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/LogDeliveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/LogDeliveryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogDeliveryStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LogDeliveryStatus GetLogDeliveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return LogDeliveryStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorConfigState.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorConfigState.cpp index b9e5165665c..d33fa2397a9 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorConfigState.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorConfigState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MonitorConfigStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); MonitorConfigState GetMonitorConfigStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return MonitorConfigState::PENDING; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorProcessingStatusCode.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorProcessingStatusCode.cpp index 5c2953b53e6..654120c003a 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorProcessingStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/MonitorProcessingStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MonitorProcessingStatusCodeMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int COLLECTING_DATA_HASH = HashingUtils::HashString("COLLECTING_DATA"); - static const int INSUFFICIENT_DATA_HASH = HashingUtils::HashString("INSUFFICIENT_DATA"); - static const int FAULT_SERVICE_HASH = HashingUtils::HashString("FAULT_SERVICE"); - static const int FAULT_ACCESS_CLOUDWATCH_HASH = HashingUtils::HashString("FAULT_ACCESS_CLOUDWATCH"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t COLLECTING_DATA_HASH = ConstExprHashingUtils::HashString("COLLECTING_DATA"); + static constexpr uint32_t INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATA"); + static constexpr uint32_t FAULT_SERVICE_HASH = ConstExprHashingUtils::HashString("FAULT_SERVICE"); + static constexpr uint32_t FAULT_ACCESS_CLOUDWATCH_HASH = ConstExprHashingUtils::HashString("FAULT_ACCESS_CLOUDWATCH"); MonitorProcessingStatusCode GetMonitorProcessingStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return MonitorProcessingStatusCode::OK; diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/model/TriangulationEventType.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/model/TriangulationEventType.cpp index 912782cf62b..53947dceded 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/model/TriangulationEventType.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/model/TriangulationEventType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TriangulationEventTypeMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int Internet_HASH = HashingUtils::HashString("Internet"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t Internet_HASH = ConstExprHashingUtils::HashString("Internet"); TriangulationEventType GetTriangulationEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return TriangulationEventType::AWS; diff --git a/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneErrors.cpp b/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneErrors.cpp index 8529a41d47f..43b6f22001f 100644 --- a/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneErrors.cpp +++ b/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneErrors.cpp @@ -18,17 +18,17 @@ namespace IoTDataPlane namespace IoTDataPlaneErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int UNSUPPORTED_DOCUMENT_ENCODING_HASH = HashingUtils::HashString("UnsupportedDocumentEncodingException"); -static const int METHOD_NOT_ALLOWED_HASH = HashingUtils::HashString("MethodNotAllowedException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); -static const int REQUEST_ENTITY_TOO_LARGE_HASH = HashingUtils::HashString("RequestEntityTooLargeException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t UNSUPPORTED_DOCUMENT_ENCODING_HASH = ConstExprHashingUtils::HashString("UnsupportedDocumentEncodingException"); +static constexpr uint32_t METHOD_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("MethodNotAllowedException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t REQUEST_ENTITY_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("RequestEntityTooLargeException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iot-data/source/model/PayloadFormatIndicator.cpp b/generated/src/aws-cpp-sdk-iot-data/source/model/PayloadFormatIndicator.cpp index f70ba9a9b63..7aa9d9c29a6 100644 --- a/generated/src/aws-cpp-sdk-iot-data/source/model/PayloadFormatIndicator.cpp +++ b/generated/src/aws-cpp-sdk-iot-data/source/model/PayloadFormatIndicator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PayloadFormatIndicatorMapper { - static const int UNSPECIFIED_BYTES_HASH = HashingUtils::HashString("UNSPECIFIED_BYTES"); - static const int UTF8_DATA_HASH = HashingUtils::HashString("UTF8_DATA"); + static constexpr uint32_t UNSPECIFIED_BYTES_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED_BYTES"); + static constexpr uint32_t UTF8_DATA_HASH = ConstExprHashingUtils::HashString("UTF8_DATA"); PayloadFormatIndicator GetPayloadFormatIndicatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNSPECIFIED_BYTES_HASH) { return PayloadFormatIndicator::UNSPECIFIED_BYTES; diff --git a/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneErrors.cpp b/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneErrors.cpp index 027a71a299e..350b31ee46e 100644 --- a/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneErrors.cpp +++ b/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneErrors.cpp @@ -26,15 +26,15 @@ template<> AWS_IOTJOBSDATAPLANE_API ThrottlingException IoTJobsDataPlaneError::G namespace IoTJobsDataPlaneErrorMapper { -static const int TERMINAL_STATE_HASH = HashingUtils::HashString("TerminalStateException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); -static const int CERTIFICATE_VALIDATION_HASH = HashingUtils::HashString("CertificateValidationException"); -static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransitionException"); +static constexpr uint32_t TERMINAL_STATE_HASH = ConstExprHashingUtils::HashString("TerminalStateException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CERTIFICATE_VALIDATION_HASH = ConstExprHashingUtils::HashString("CertificateValidationException"); +static constexpr uint32_t INVALID_STATE_TRANSITION_HASH = ConstExprHashingUtils::HashString("InvalidStateTransitionException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TERMINAL_STATE_HASH) { diff --git a/generated/src/aws-cpp-sdk-iot-jobs-data/source/model/JobExecutionStatus.cpp b/generated/src/aws-cpp-sdk-iot-jobs-data/source/model/JobExecutionStatus.cpp index d6dc33d5b92..1017aac0f11 100644 --- a/generated/src/aws-cpp-sdk-iot-jobs-data/source/model/JobExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot-jobs-data/source/model/JobExecutionStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace JobExecutionStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); JobExecutionStatus GetJobExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return JobExecutionStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-iot-roborunner/source/IoTRoboRunnerErrors.cpp b/generated/src/aws-cpp-sdk-iot-roborunner/source/IoTRoboRunnerErrors.cpp index 9a2e797d3e4..f6d48a94eef 100644 --- a/generated/src/aws-cpp-sdk-iot-roborunner/source/IoTRoboRunnerErrors.cpp +++ b/generated/src/aws-cpp-sdk-iot-roborunner/source/IoTRoboRunnerErrors.cpp @@ -18,14 +18,14 @@ namespace IoTRoboRunner namespace IoTRoboRunnerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iot-roborunner/source/model/DestinationState.cpp b/generated/src/aws-cpp-sdk-iot-roborunner/source/model/DestinationState.cpp index 8fcab65ddeb..f13ec243098 100644 --- a/generated/src/aws-cpp-sdk-iot-roborunner/source/model/DestinationState.cpp +++ b/generated/src/aws-cpp-sdk-iot-roborunner/source/model/DestinationState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DestinationStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DECOMMISSIONED_HASH = HashingUtils::HashString("DECOMMISSIONED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DECOMMISSIONED_HASH = ConstExprHashingUtils::HashString("DECOMMISSIONED"); DestinationState GetDestinationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DestinationState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp index 6404050f407..42e6f80d3f2 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp @@ -21,46 +21,46 @@ #include #include #include -#include #include +#include #include #include #include #include -#include #include -#include +#include #include -#include +#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include -#include #include +#include #include -#include -#include #include +#include +#include #include #include -#include #include +#include #include -#include #include +#include #include #include #include @@ -84,8 +84,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -96,26 +96,26 @@ #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include -#include -#include -#include #include +#include +#include +#include #include #include #include -#include #include +#include #include #include #include @@ -254,66 +254,66 @@ void IoTClient::OverrideEndpoint(const Aws::String& endpoint) m_endpointProvider->OverrideEndpoint(endpoint); } -DescribeJobOutcome IoTClient::DescribeJob(const DescribeJobRequest& request) const +DeleteThingGroupOutcome IoTClient::DeleteThingGroup(const DeleteThingGroupRequest& request) const { - AWS_OPERATION_GUARD(DescribeJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.JobIdHasBeenSet()) + AWS_OPERATION_GUARD(DeleteThingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingGroupNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeJob", "Required field: JobId, is not set"); - return DescribeJobOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false)); + AWS_LOGSTREAM_ERROR("DeleteThingGroup", "Required field: ThingGroupName, is not set"); + return DeleteThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeJob", + AWS_OPERATION_CHECK_PTR(meter, DeleteThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteThingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteThingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobId()); - return DescribeJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); + return DeleteThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteThingGroupOutcome IoTClient::DeleteThingGroup(const DeleteThingGroupRequest& request) const +DescribeJobOutcome IoTClient::DescribeJob(const DescribeJobRequest& request) const { - AWS_OPERATION_GUARD(DeleteThingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingGroupNameHasBeenSet()) + AWS_OPERATION_GUARD(DescribeJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.JobIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DeleteThingGroup", "Required field: ThingGroupName, is not set"); - return DeleteThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); + AWS_LOGSTREAM_ERROR("DescribeJob", "Required field: JobId, is not set"); + return DescribeJobOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteThingGroup", + AWS_OPERATION_CHECK_PTR(meter, DescribeJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteThingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); - return DeleteThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/jobs/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobId()); + return DescribeJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -453,39 +453,6 @@ DeleteThingOutcome IoTClient::DeleteThing(const DeleteThingRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTopicRuleOutcome IoTClient::DeleteTopicRule(const DeleteTopicRuleRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteTopicRule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.RuleNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteTopicRule", "Required field: RuleName, is not set"); - return DeleteTopicRuleOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RuleName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTopicRule", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTopicRuleOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRuleName()); - return DeleteTopicRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeleteThingTypeOutcome IoTClient::DeleteThingType(const DeleteThingTypeRequest& request) const { AWS_OPERATION_GUARD(DeleteThingType); @@ -519,34 +486,33 @@ DeleteThingTypeOutcome IoTClient::DeleteThingType(const DeleteThingTypeRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CancelJobOutcome IoTClient::CancelJob(const CancelJobRequest& request) const +DeleteTopicRuleOutcome IoTClient::DeleteTopicRule(const DeleteTopicRuleRequest& request) const { - AWS_OPERATION_GUARD(CancelJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.JobIdHasBeenSet()) + AWS_OPERATION_GUARD(DeleteTopicRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.RuleNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CancelJob", "Required field: JobId, is not set"); - return CancelJobOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false)); + AWS_LOGSTREAM_ERROR("DeleteTopicRule", "Required field: RuleName, is not set"); + return DeleteTopicRuleOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RuleName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CancelJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CancelJob", + AWS_OPERATION_CHECK_PTR(meter, DeleteTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTopicRule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CancelJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTopicRuleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/cancel"); - return CancelJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRuleName()); + return DeleteTopicRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -587,27 +553,34 @@ CancelAuditTaskOutcome IoTClient::CancelAuditTask(const CancelAuditTaskRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteAccountAuditConfigurationOutcome IoTClient::DeleteAccountAuditConfiguration(const DeleteAccountAuditConfigurationRequest& request) const +CancelJobOutcome IoTClient::CancelJob(const CancelJobRequest& request) const { - AWS_OPERATION_GUARD(DeleteAccountAuditConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CancelJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.JobIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CancelJob", "Required field: JobId, is not set"); + return CancelJobOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAccountAuditConfiguration", + AWS_OPERATION_CHECK_PTR(meter, CancelJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CancelJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteAccountAuditConfigurationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CancelJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/audit/configuration"); - return DeleteAccountAuditConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/jobs/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/cancel"); + return CancelJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -647,6 +620,33 @@ CancelCertificateTransferOutcome IoTClient::CancelCertificateTransfer(const Canc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteAccountAuditConfigurationOutcome IoTClient::DeleteAccountAuditConfiguration(const DeleteAccountAuditConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAccountAuditConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAccountAuditConfiguration", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAccountAuditConfigurationOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/audit/configuration"); + return DeleteAccountAuditConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateJobOutcome IoTClient::CreateJob(const CreateJobRequest& request) const { AWS_OPERATION_GUARD(CreateJob); @@ -812,39 +812,6 @@ CreateCustomMetricOutcome IoTClient::CreateCustomMetric(const CreateCustomMetric {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteDimensionOutcome IoTClient::DeleteDimension(const DeleteDimensionRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteDimension); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteDimension, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.NameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteDimension", "Required field: Name, is not set"); - return DeleteDimensionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Name]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteDimension, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteDimension, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteDimension", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteDimensionOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteDimension, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/dimensions/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetName()); - return DeleteDimensionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeleteCertificateOutcome IoTClient::DeleteCertificate(const DeleteCertificateRequest& request) const { AWS_OPERATION_GUARD(DeleteCertificate); @@ -878,13 +845,46 @@ DeleteCertificateOutcome IoTClient::DeleteCertificate(const DeleteCertificateReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeIndexOutcome IoTClient::DescribeIndex(const DescribeIndexRequest& request) const +DeleteDimensionOutcome IoTClient::DeleteDimension(const DeleteDimensionRequest& request) const { - AWS_OPERATION_GUARD(DescribeIndex); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeIndex, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.IndexNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeIndex", "Required field: IndexName, is not set"); + AWS_OPERATION_GUARD(DeleteDimension); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteDimension, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.NameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteDimension", "Required field: Name, is not set"); + return DeleteDimensionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Name]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteDimension, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteDimension, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteDimension", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteDimensionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteDimension, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dimensions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetName()); + return DeleteDimensionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DescribeIndexOutcome IoTClient::DescribeIndex(const DescribeIndexRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeIndex); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeIndex, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IndexNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeIndex", "Required field: IndexName, is not set"); return DescribeIndexOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [IndexName]", false)); } AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeIndex, CoreErrors, CoreErrors::NOT_INITIALIZED); @@ -1004,6 +1004,33 @@ CreateSecurityProfileOutcome IoTClient::CreateSecurityProfile(const CreateSecuri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateKeysAndCertificateOutcome IoTClient::CreateKeysAndCertificate(const CreateKeysAndCertificateRequest& request) const +{ + AWS_OPERATION_GUARD(CreateKeysAndCertificate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateKeysAndCertificate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateKeysAndCertificate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateKeysAndCertificate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateKeysAndCertificate", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateKeysAndCertificateOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateKeysAndCertificate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/keys-and-certificate"); + return CreateKeysAndCertificateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteV2LoggingLevelOutcome IoTClient::DeleteV2LoggingLevel(const DeleteV2LoggingLevelRequest& request) const { AWS_OPERATION_GUARD(DeleteV2LoggingLevel); @@ -1041,33 +1068,6 @@ DeleteV2LoggingLevelOutcome IoTClient::DeleteV2LoggingLevel(const DeleteV2Loggin {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateKeysAndCertificateOutcome IoTClient::CreateKeysAndCertificate(const CreateKeysAndCertificateRequest& request) const -{ - AWS_OPERATION_GUARD(CreateKeysAndCertificate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateKeysAndCertificate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateKeysAndCertificate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateKeysAndCertificate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateKeysAndCertificate", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateKeysAndCertificateOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateKeysAndCertificate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/keys-and-certificate"); - return CreateKeysAndCertificateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeleteDomainConfigurationOutcome IoTClient::DeleteDomainConfiguration(const DeleteDomainConfigurationRequest& request) const { AWS_OPERATION_GUARD(DeleteDomainConfiguration); @@ -1134,6 +1134,33 @@ DeleteCACertificateOutcome IoTClient::DeleteCACertificate(const DeleteCACertific {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeAccountAuditConfigurationOutcome IoTClient::DescribeAccountAuditConfiguration(const DescribeAccountAuditConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeAccountAuditConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeAccountAuditConfiguration", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeAccountAuditConfigurationOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/audit/configuration"); + return DescribeAccountAuditConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeDimensionOutcome IoTClient::DescribeDimension(const DescribeDimensionRequest& request) const { AWS_OPERATION_GUARD(DescribeDimension); @@ -1167,33 +1194,6 @@ DescribeDimensionOutcome IoTClient::DescribeDimension(const DescribeDimensionReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeAccountAuditConfigurationOutcome IoTClient::DescribeAccountAuditConfiguration(const DescribeAccountAuditConfigurationRequest& request) const -{ - AWS_OPERATION_GUARD(DescribeAccountAuditConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeAccountAuditConfiguration", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeAccountAuditConfigurationOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAccountAuditConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/audit/configuration"); - return DescribeAccountAuditConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - CreateBillingGroupOutcome IoTClient::CreateBillingGroup(const CreateBillingGroupRequest& request) const { AWS_OPERATION_GUARD(CreateBillingGroup); @@ -1227,40 +1227,34 @@ CreateBillingGroupOutcome IoTClient::CreateBillingGroup(const CreateBillingGroup {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeletePackageVersionOutcome IoTClient::DeletePackageVersion(const DeletePackageVersionRequest& request) const +CancelAuditMitigationActionsTaskOutcome IoTClient::CancelAuditMitigationActionsTask(const CancelAuditMitigationActionsTaskRequest& request) const { - AWS_OPERATION_GUARD(DeletePackageVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PackageNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeletePackageVersion", "Required field: PackageName, is not set"); - return DeletePackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PackageName]", false)); - } - if (!request.VersionNameHasBeenSet()) + AWS_OPERATION_GUARD(CancelAuditMitigationActionsTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TaskIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DeletePackageVersion", "Required field: VersionName, is not set"); - return DeletePackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionName]", false)); + AWS_LOGSTREAM_ERROR("CancelAuditMitigationActionsTask", "Required field: TaskId, is not set"); + return CancelAuditMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeletePackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePackageVersion", + AWS_OPERATION_CHECK_PTR(meter, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CancelAuditMitigationActionsTask", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeletePackageVersionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CancelAuditMitigationActionsTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeletePackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/packages/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPackageName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionName()); - return DeletePackageVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/audit/mitigationactions/tasks/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/cancel"); + return CancelAuditMitigationActionsTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1300,34 +1294,40 @@ CreateDimensionOutcome IoTClient::CreateDimension(const CreateDimensionRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CancelAuditMitigationActionsTaskOutcome IoTClient::CancelAuditMitigationActionsTask(const CancelAuditMitigationActionsTaskRequest& request) const +DeletePackageVersionOutcome IoTClient::DeletePackageVersion(const DeletePackageVersionRequest& request) const { - AWS_OPERATION_GUARD(CancelAuditMitigationActionsTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TaskIdHasBeenSet()) + AWS_OPERATION_GUARD(DeletePackageVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PackageNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CancelAuditMitigationActionsTask", "Required field: TaskId, is not set"); - return CancelAuditMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + AWS_LOGSTREAM_ERROR("DeletePackageVersion", "Required field: PackageName, is not set"); + return DeletePackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PackageName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.VersionNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeletePackageVersion", "Required field: VersionName, is not set"); + return DeletePackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CancelAuditMitigationActionsTask", + AWS_OPERATION_CHECK_PTR(meter, DeletePackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePackageVersion", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CancelAuditMitigationActionsTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeletePackageVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CancelAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/audit/mitigationactions/tasks/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/cancel"); - return CancelAuditMitigationActionsTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeletePackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/packages/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPackageName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionName()); + return DeletePackageVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1414,6 +1414,39 @@ DeleteJobExecutionOutcome IoTClient::DeleteJobExecution(const DeleteJobExecution {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteRoleAliasOutcome IoTClient::DeleteRoleAlias(const DeleteRoleAliasRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteRoleAlias); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRoleAlias, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.RoleAliasHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteRoleAlias", "Required field: RoleAlias, is not set"); + return DeleteRoleAliasOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RoleAlias]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRoleAlias, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteRoleAlias, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRoleAlias", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteRoleAliasOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRoleAlias, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/role-aliases/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRoleAlias()); + return DeleteRoleAliasOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeJobExecutionOutcome IoTClient::DescribeJobExecution(const DescribeJobExecutionRequest& request) const { AWS_OPERATION_GUARD(DescribeJobExecution); @@ -1454,39 +1487,6 @@ DescribeJobExecutionOutcome IoTClient::DescribeJobExecution(const DescribeJobExe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteRoleAliasOutcome IoTClient::DeleteRoleAlias(const DeleteRoleAliasRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteRoleAlias); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRoleAlias, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.RoleAliasHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteRoleAlias", "Required field: RoleAlias, is not set"); - return DeleteRoleAliasOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RoleAlias]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRoleAlias, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteRoleAlias, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRoleAlias", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteRoleAliasOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRoleAlias, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/role-aliases/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRoleAlias()); - return DeleteRoleAliasOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - CreateScheduledAuditOutcome IoTClient::CreateScheduledAudit(const CreateScheduledAuditRequest& request) const { AWS_OPERATION_GUARD(CreateScheduledAudit); @@ -1520,66 +1520,66 @@ CreateScheduledAuditOutcome IoTClient::CreateScheduledAudit(const CreateSchedule {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTopicRuleOutcome IoTClient::CreateTopicRule(const CreateTopicRuleRequest& request) const +CreateDynamicThingGroupOutcome IoTClient::CreateDynamicThingGroup(const CreateDynamicThingGroupRequest& request) const { - AWS_OPERATION_GUARD(CreateTopicRule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.RuleNameHasBeenSet()) + AWS_OPERATION_GUARD(CreateDynamicThingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingGroupNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreateTopicRule", "Required field: RuleName, is not set"); - return CreateTopicRuleOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RuleName]", false)); + AWS_LOGSTREAM_ERROR("CreateDynamicThingGroup", "Required field: ThingGroupName, is not set"); + return CreateDynamicThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTopicRule", + AWS_OPERATION_CHECK_PTR(meter, CreateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDynamicThingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTopicRuleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateDynamicThingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRuleName()); - return CreateTopicRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dynamic-thing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); + return CreateDynamicThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateDynamicThingGroupOutcome IoTClient::CreateDynamicThingGroup(const CreateDynamicThingGroupRequest& request) const +CreateTopicRuleOutcome IoTClient::CreateTopicRule(const CreateTopicRuleRequest& request) const { - AWS_OPERATION_GUARD(CreateDynamicThingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingGroupNameHasBeenSet()) + AWS_OPERATION_GUARD(CreateTopicRule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.RuleNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreateDynamicThingGroup", "Required field: ThingGroupName, is not set"); - return CreateDynamicThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); + AWS_LOGSTREAM_ERROR("CreateTopicRule", "Required field: RuleName, is not set"); + return CreateTopicRuleOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RuleName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDynamicThingGroup", + AWS_OPERATION_CHECK_PTR(meter, CreateTopicRule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTopicRule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateDynamicThingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTopicRuleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/dynamic-thing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); - return CreateDynamicThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTopicRule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/rules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetRuleName()); + return CreateTopicRuleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2364,33 +2364,6 @@ CreateFleetMetricOutcome IoTClient::CreateFleetMetric(const CreateFleetMetricReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeDefaultAuthorizerOutcome IoTClient::DescribeDefaultAuthorizer(const DescribeDefaultAuthorizerRequest& request) const -{ - AWS_OPERATION_GUARD(DescribeDefaultAuthorizer); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeDefaultAuthorizer", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeDefaultAuthorizerOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/default-authorizer"); - return DescribeDefaultAuthorizerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DeletePackageOutcome IoTClient::DeletePackage(const DeletePackageRequest& request) const { AWS_OPERATION_GUARD(DeletePackage); @@ -2424,6 +2397,33 @@ DeletePackageOutcome IoTClient::DeletePackage(const DeletePackageRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeDefaultAuthorizerOutcome IoTClient::DescribeDefaultAuthorizer(const DescribeDefaultAuthorizerRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeDefaultAuthorizer); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeDefaultAuthorizer", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeDefaultAuthorizerOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/default-authorizer"); + return DescribeDefaultAuthorizerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeAuthorizerOutcome IoTClient::DescribeAuthorizer(const DescribeAuthorizerRequest& request) const { AWS_OPERATION_GUARD(DescribeAuthorizer); @@ -2737,39 +2737,6 @@ ClearDefaultAuthorizerOutcome IoTClient::ClearDefaultAuthorizer(const ClearDefau {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeletePolicyOutcome IoTClient::DeletePolicy(const DeletePolicyRequest& request) const -{ - AWS_OPERATION_GUARD(DeletePolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PolicyNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeletePolicy", "Required field: PolicyName, is not set"); - return DeletePolicyOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PolicyName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeletePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePolicy", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeletePolicyOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeletePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/policies/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPolicyName()); - return DeletePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - AttachThingPrincipalOutcome IoTClient::AttachThingPrincipal(const AttachThingPrincipalRequest& request) const { AWS_OPERATION_GUARD(AttachThingPrincipal); @@ -2809,6 +2776,39 @@ AttachThingPrincipalOutcome IoTClient::AttachThingPrincipal(const AttachThingPri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeletePolicyOutcome IoTClient::DeletePolicy(const DeletePolicyRequest& request) const +{ + AWS_OPERATION_GUARD(DeletePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeletePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PolicyNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeletePolicy", "Required field: PolicyName, is not set"); + return DeletePolicyOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PolicyName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeletePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeletePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeletePolicy", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeletePolicyOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeletePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/policies/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPolicyName()); + return DeletePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateMitigationActionOutcome IoTClient::CreateMitigationAction(const CreateMitigationActionRequest& request) const { AWS_OPERATION_GUARD(CreateMitigationAction); @@ -2936,66 +2936,66 @@ CreateCertificateFromCsrOutcome IoTClient::CreateCertificateFromCsr(const Create {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteFleetMetricOutcome IoTClient::DeleteFleetMetric(const DeleteFleetMetricRequest& request) const +DeleteDynamicThingGroupOutcome IoTClient::DeleteDynamicThingGroup(const DeleteDynamicThingGroupRequest& request) const { - AWS_OPERATION_GUARD(DeleteFleetMetric); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteFleetMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.MetricNameHasBeenSet()) + AWS_OPERATION_GUARD(DeleteDynamicThingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingGroupNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DeleteFleetMetric", "Required field: MetricName, is not set"); - return DeleteFleetMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + AWS_LOGSTREAM_ERROR("DeleteDynamicThingGroup", "Required field: ThingGroupName, is not set"); + return DeleteDynamicThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteFleetMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteFleetMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteFleetMetric", + AWS_OPERATION_CHECK_PTR(meter, DeleteDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteDynamicThingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteFleetMetricOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteDynamicThingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteFleetMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/fleet-metric/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetMetricName()); - return DeleteFleetMetricOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dynamic-thing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); + return DeleteDynamicThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteDynamicThingGroupOutcome IoTClient::DeleteDynamicThingGroup(const DeleteDynamicThingGroupRequest& request) const +DeleteFleetMetricOutcome IoTClient::DeleteFleetMetric(const DeleteFleetMetricRequest& request) const { - AWS_OPERATION_GUARD(DeleteDynamicThingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingGroupNameHasBeenSet()) + AWS_OPERATION_GUARD(DeleteFleetMetric); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteFleetMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.MetricNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DeleteDynamicThingGroup", "Required field: ThingGroupName, is not set"); - return DeleteDynamicThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); + AWS_LOGSTREAM_ERROR("DeleteFleetMetric", "Required field: MetricName, is not set"); + return DeleteFleetMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteFleetMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteDynamicThingGroup", + AWS_OPERATION_CHECK_PTR(meter, DeleteFleetMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteFleetMetric", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteDynamicThingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteFleetMetricOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/dynamic-thing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); - return DeleteDynamicThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteFleetMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/fleet-metric/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetMetricName()); + return DeleteFleetMetricOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3101,133 +3101,133 @@ DeleteSecurityProfileOutcome IoTClient::DeleteSecurityProfile(const DeleteSecuri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteOTAUpdateOutcome IoTClient::DeleteOTAUpdate(const DeleteOTAUpdateRequest& request) const +CreatePackageOutcome IoTClient::CreatePackage(const CreatePackageRequest& request) const { - AWS_OPERATION_GUARD(DeleteOTAUpdate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOTAUpdate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.OtaUpdateIdHasBeenSet()) + AWS_OPERATION_GUARD(CreatePackage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PackageNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DeleteOTAUpdate", "Required field: OtaUpdateId, is not set"); - return DeleteOTAUpdateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [OtaUpdateId]", false)); + AWS_LOGSTREAM_ERROR("CreatePackage", "Required field: PackageName, is not set"); + return CreatePackageOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PackageName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteOTAUpdate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePackage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteOTAUpdate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteOTAUpdate", + AWS_OPERATION_CHECK_PTR(meter, CreatePackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePackage", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteOTAUpdateOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreatePackageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteOTAUpdate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/otaUpdates/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetOtaUpdateId()); - return DeleteOTAUpdateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/packages/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPackageName()); + return CreatePackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteJobTemplateOutcome IoTClient::DeleteJobTemplate(const DeleteJobTemplateRequest& request) const +CreatePolicyVersionOutcome IoTClient::CreatePolicyVersion(const CreatePolicyVersionRequest& request) const { - AWS_OPERATION_GUARD(DeleteJobTemplate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.JobTemplateIdHasBeenSet()) + AWS_OPERATION_GUARD(CreatePolicyVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePolicyVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PolicyNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DeleteJobTemplate", "Required field: JobTemplateId, is not set"); - return DeleteJobTemplateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobTemplateId]", false)); + AWS_LOGSTREAM_ERROR("CreatePolicyVersion", "Required field: PolicyName, is not set"); + return CreatePolicyVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PolicyName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePolicyVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteJobTemplate", + AWS_OPERATION_CHECK_PTR(meter, CreatePolicyVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePolicyVersion", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteJobTemplateOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreatePolicyVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/job-templates/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobTemplateId()); - return DeleteJobTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePolicyVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/policies/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPolicyName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/version"); + return CreatePolicyVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreatePolicyVersionOutcome IoTClient::CreatePolicyVersion(const CreatePolicyVersionRequest& request) const +DeleteJobTemplateOutcome IoTClient::DeleteJobTemplate(const DeleteJobTemplateRequest& request) const { - AWS_OPERATION_GUARD(CreatePolicyVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePolicyVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PolicyNameHasBeenSet()) + AWS_OPERATION_GUARD(DeleteJobTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.JobTemplateIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreatePolicyVersion", "Required field: PolicyName, is not set"); - return CreatePolicyVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PolicyName]", false)); + AWS_LOGSTREAM_ERROR("DeleteJobTemplate", "Required field: JobTemplateId, is not set"); + return DeleteJobTemplateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobTemplateId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePolicyVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreatePolicyVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePolicyVersion", + AWS_OPERATION_CHECK_PTR(meter, DeleteJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteJobTemplate", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreatePolicyVersionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteJobTemplateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePolicyVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/policies/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPolicyName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/version"); - return CreatePolicyVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/job-templates/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobTemplateId()); + return DeleteJobTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreatePackageOutcome IoTClient::CreatePackage(const CreatePackageRequest& request) const +DeleteOTAUpdateOutcome IoTClient::DeleteOTAUpdate(const DeleteOTAUpdateRequest& request) const { - AWS_OPERATION_GUARD(CreatePackage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PackageNameHasBeenSet()) + AWS_OPERATION_GUARD(DeleteOTAUpdate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOTAUpdate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.OtaUpdateIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("CreatePackage", "Required field: PackageName, is not set"); - return CreatePackageOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PackageName]", false)); + AWS_LOGSTREAM_ERROR("DeleteOTAUpdate", "Required field: OtaUpdateId, is not set"); + return DeleteOTAUpdateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [OtaUpdateId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteOTAUpdate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreatePackage, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePackage", + AWS_OPERATION_CHECK_PTR(meter, DeleteOTAUpdate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteOTAUpdate", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreatePackageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteOTAUpdateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/packages/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPackageName()); - return CreatePackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteOTAUpdate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/otaUpdates/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetOtaUpdateId()); + return DeleteOTAUpdateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3327,33 +3327,6 @@ CreateStreamOutcome IoTClient::CreateStream(const CreateStreamRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteRegistrationCodeOutcome IoTClient::DeleteRegistrationCode(const DeleteRegistrationCodeRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteRegistrationCode); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRegistrationCode, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRegistrationCode, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteRegistrationCode, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRegistrationCode", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteRegistrationCodeOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRegistrationCode, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/registrationcode"); - return DeleteRegistrationCodeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - CreateOTAUpdateOutcome IoTClient::CreateOTAUpdate(const CreateOTAUpdateRequest& request) const { AWS_OPERATION_GUARD(CreateOTAUpdate); @@ -3387,6 +3360,33 @@ CreateOTAUpdateOutcome IoTClient::CreateOTAUpdate(const CreateOTAUpdateRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteRegistrationCodeOutcome IoTClient::DeleteRegistrationCode(const DeleteRegistrationCodeRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteRegistrationCode); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRegistrationCode, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRegistrationCode, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteRegistrationCode, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRegistrationCode", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteRegistrationCodeOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRegistrationCode, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/registrationcode"); + return DeleteRegistrationCodeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ConfirmTopicRuleDestinationOutcome IoTClient::ConfirmTopicRuleDestination(const ConfirmTopicRuleDestinationRequest& request) const { AWS_OPERATION_GUARD(ConfirmTopicRuleDestination); diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp index 18649a8a00a..4e5ce74cb9e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp @@ -23,40 +23,40 @@ #include #include #include -#include -#include #include +#include +#include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include -#include #include -#include -#include -#include -#include +#include #include +#include +#include +#include +#include #include #include #include #include #include -#include #include +#include #include #include #include @@ -71,8 +71,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -84,41 +84,41 @@ #include #include #include -#include -#include #include +#include +#include #include #include #include #include #include #include -#include #include +#include #include -#include #include +#include #include #include -#include #include -#include +#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include #include #include -#include -#include #include +#include +#include #include #include @@ -197,33 +197,40 @@ ListTopicRulesOutcome IoTClient::ListTopicRules(const ListTopicRulesRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTargetsForPolicyOutcome IoTClient::ListTargetsForPolicy(const ListTargetsForPolicyRequest& request) const +DescribeProvisioningTemplateVersionOutcome IoTClient::DescribeProvisioningTemplateVersion(const DescribeProvisioningTemplateVersionRequest& request) const { - AWS_OPERATION_GUARD(ListTargetsForPolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTargetsForPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PolicyNameHasBeenSet()) + AWS_OPERATION_GUARD(DescribeProvisioningTemplateVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TemplateNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListTargetsForPolicy", "Required field: PolicyName, is not set"); - return ListTargetsForPolicyOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PolicyName]", false)); + AWS_LOGSTREAM_ERROR("DescribeProvisioningTemplateVersion", "Required field: TemplateName, is not set"); + return DescribeProvisioningTemplateVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TemplateName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTargetsForPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.VersionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeProvisioningTemplateVersion", "Required field: VersionId, is not set"); + return DescribeProvisioningTemplateVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTargetsForPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTargetsForPolicy", + AWS_OPERATION_CHECK_PTR(meter, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProvisioningTemplateVersion", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTargetsForPolicyOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeProvisioningTemplateVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTargetsForPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/policy-targets/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPolicyName()); - return ListTargetsForPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/provisioning-templates/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTemplateName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionId()); + return DescribeProvisioningTemplateVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -257,40 +264,33 @@ GetCardinalityOutcome IoTClient::GetCardinality(const GetCardinalityRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeProvisioningTemplateVersionOutcome IoTClient::DescribeProvisioningTemplateVersion(const DescribeProvisioningTemplateVersionRequest& request) const +ListTargetsForPolicyOutcome IoTClient::ListTargetsForPolicy(const ListTargetsForPolicyRequest& request) const { - AWS_OPERATION_GUARD(DescribeProvisioningTemplateVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TemplateNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeProvisioningTemplateVersion", "Required field: TemplateName, is not set"); - return DescribeProvisioningTemplateVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TemplateName]", false)); - } - if (!request.VersionIdHasBeenSet()) + AWS_OPERATION_GUARD(ListTargetsForPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTargetsForPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PolicyNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeProvisioningTemplateVersion", "Required field: VersionId, is not set"); - return DescribeProvisioningTemplateVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionId]", false)); + AWS_LOGSTREAM_ERROR("ListTargetsForPolicy", "Required field: PolicyName, is not set"); + return ListTargetsForPolicyOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PolicyName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTargetsForPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProvisioningTemplateVersion", + AWS_OPERATION_CHECK_PTR(meter, ListTargetsForPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTargetsForPolicy", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeProvisioningTemplateVersionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTargetsForPolicyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeProvisioningTemplateVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/provisioning-templates/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTemplateName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionId()); - return DescribeProvisioningTemplateVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTargetsForPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/policy-targets/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPolicyName()); + return ListTargetsForPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -358,54 +358,54 @@ ListThingsInThingGroupOutcome IoTClient::ListThingsInThingGroup(const ListThings {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListProvisioningTemplatesOutcome IoTClient::ListProvisioningTemplates(const ListProvisioningTemplatesRequest& request) const +GetPercentilesOutcome IoTClient::GetPercentiles(const GetPercentilesRequest& request) const { - AWS_OPERATION_GUARD(ListProvisioningTemplates); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProvisioningTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProvisioningTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetPercentiles); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetPercentiles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetPercentiles, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListProvisioningTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProvisioningTemplates", + AWS_OPERATION_CHECK_PTR(meter, GetPercentiles, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetPercentiles", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListProvisioningTemplatesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetPercentilesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListProvisioningTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/provisioning-templates"); - return ListProvisioningTemplatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetPercentiles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/indices/percentiles"); + return GetPercentilesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetPercentilesOutcome IoTClient::GetPercentiles(const GetPercentilesRequest& request) const +ListProvisioningTemplatesOutcome IoTClient::ListProvisioningTemplates(const ListProvisioningTemplatesRequest& request) const { - AWS_OPERATION_GUARD(GetPercentiles); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetPercentiles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetPercentiles, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListProvisioningTemplates); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProvisioningTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProvisioningTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetPercentiles, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetPercentiles", + AWS_OPERATION_CHECK_PTR(meter, ListProvisioningTemplates, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProvisioningTemplates", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetPercentilesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListProvisioningTemplatesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetPercentiles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/indices/percentiles"); - return GetPercentilesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListProvisioningTemplates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/provisioning-templates"); + return ListProvisioningTemplatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -535,33 +535,6 @@ ListDetectMitigationActionsTasksOutcome IoTClient::ListDetectMitigationActionsTa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTopicRuleDestinationsOutcome IoTClient::ListTopicRuleDestinations(const ListTopicRuleDestinationsRequest& request) const -{ - AWS_OPERATION_GUARD(ListTopicRuleDestinations); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTopicRuleDestinations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTopicRuleDestinations, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTopicRuleDestinations, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTopicRuleDestinations", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTopicRuleDestinationsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTopicRuleDestinations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/destinations"); - return ListTopicRuleDestinationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DetachThingPrincipalOutcome IoTClient::DetachThingPrincipal(const DetachThingPrincipalRequest& request) const { AWS_OPERATION_GUARD(DetachThingPrincipal); @@ -601,6 +574,33 @@ DetachThingPrincipalOutcome IoTClient::DetachThingPrincipal(const DetachThingPri {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListTopicRuleDestinationsOutcome IoTClient::ListTopicRuleDestinations(const ListTopicRuleDestinationsRequest& request) const +{ + AWS_OPERATION_GUARD(ListTopicRuleDestinations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTopicRuleDestinations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTopicRuleDestinations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTopicRuleDestinations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTopicRuleDestinations", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTopicRuleDestinationsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTopicRuleDestinations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/destinations"); + return ListTopicRuleDestinationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListOutgoingCertificatesOutcome IoTClient::ListOutgoingCertificates(const ListOutgoingCertificatesRequest& request) const { AWS_OPERATION_GUARD(ListOutgoingCertificates); @@ -709,33 +709,6 @@ GetBucketsAggregationOutcome IoTClient::GetBucketsAggregation(const GetBucketsAg {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCertificatesOutcome IoTClient::ListCertificates(const ListCertificatesRequest& request) const -{ - AWS_OPERATION_GUARD(ListCertificates); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCertificates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCertificates, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCertificates, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCertificates", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListCertificatesOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCertificates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/certificates"); - return ListCertificatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ListAuditMitigationActionsTasksOutcome IoTClient::ListAuditMitigationActionsTasks(const ListAuditMitigationActionsTasksRequest& request) const { AWS_OPERATION_GUARD(ListAuditMitigationActionsTasks); @@ -773,77 +746,67 @@ ListAuditMitigationActionsTasksOutcome IoTClient::ListAuditMitigationActionsTask {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetPackageVersionOutcome IoTClient::GetPackageVersion(const GetPackageVersionRequest& request) const +ListCertificatesOutcome IoTClient::ListCertificates(const ListCertificatesRequest& request) const { - AWS_OPERATION_GUARD(GetPackageVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetPackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.PackageNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetPackageVersion", "Required field: PackageName, is not set"); - return GetPackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PackageName]", false)); - } - if (!request.VersionNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetPackageVersion", "Required field: VersionName, is not set"); - return GetPackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetPackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListCertificates); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCertificates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCertificates, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetPackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetPackageVersion", + AWS_OPERATION_CHECK_PTR(meter, ListCertificates, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCertificates", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetPackageVersionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCertificatesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetPackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/packages/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPackageName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionName()); - return GetPackageVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCertificates, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/certificates"); + return ListCertificatesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListViolationEventsOutcome IoTClient::ListViolationEvents(const ListViolationEventsRequest& request) const +GetPackageVersionOutcome IoTClient::GetPackageVersion(const GetPackageVersionRequest& request) const { - AWS_OPERATION_GUARD(ListViolationEvents); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.StartTimeHasBeenSet()) + AWS_OPERATION_GUARD(GetPackageVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetPackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PackageNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: StartTime, is not set"); - return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); + AWS_LOGSTREAM_ERROR("GetPackageVersion", "Required field: PackageName, is not set"); + return GetPackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PackageName]", false)); } - if (!request.EndTimeHasBeenSet()) + if (!request.VersionNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: EndTime, is not set"); - return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); + AWS_LOGSTREAM_ERROR("GetPackageVersion", "Required field: VersionName, is not set"); + return GetPackageVersionOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetPackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListViolationEvents", + AWS_OPERATION_CHECK_PTR(meter, GetPackageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetPackageVersion", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListViolationEventsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetPackageVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/violation-events"); - return ListViolationEventsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetPackageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/packages/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetPackageName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionName()); + return GetPackageVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -877,59 +840,103 @@ ListJobsOutcome IoTClient::ListJobs(const ListJobsRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTagsForResourceOutcome IoTClient::ListTagsForResource(const ListTagsForResourceRequest& request) const +ListViolationEventsOutcome IoTClient::ListViolationEvents(const ListViolationEventsRequest& request) const { - AWS_OPERATION_GUARD(ListTagsForResource); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) + AWS_OPERATION_GUARD(ListViolationEvents); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.StartTimeHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); - return ListTagsForResourceOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: StartTime, is not set"); + return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + if (!request.EndTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: EndTime, is not set"); + return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTagsForResource", + AWS_OPERATION_CHECK_PTR(meter, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListViolationEvents", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTagsForResourceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListViolationEventsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/tags"); - return ListTagsForResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/violation-events"); + return ListViolationEventsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListDetectMitigationActionsExecutionsOutcome IoTClient::ListDetectMitigationActionsExecutions(const ListDetectMitigationActionsExecutionsRequest& request) const +DescribeManagedJobTemplateOutcome IoTClient::DescribeManagedJobTemplate(const DescribeManagedJobTemplateRequest& request) const { - AWS_OPERATION_GUARD(ListDetectMitigationActionsExecutions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeManagedJobTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeManagedJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TemplateNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeManagedJobTemplate", "Required field: TemplateName, is not set"); + return DescribeManagedJobTemplateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TemplateName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeManagedJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDetectMitigationActionsExecutions", + AWS_OPERATION_CHECK_PTR(meter, DescribeManagedJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeManagedJobTemplate", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListDetectMitigationActionsExecutionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeManagedJobTemplateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/detect/mitigationactions/executions"); - return ListDetectMitigationActionsExecutionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeManagedJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/managed-job-templates/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTemplateName()); + return DescribeManagedJobTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DescribeThingTypeOutcome IoTClient::DescribeThingType(const DescribeThingTypeRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeThingType); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeThingType, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingTypeNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeThingType", "Required field: ThingTypeName, is not set"); + return DescribeThingTypeOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingTypeName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeThingType, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeThingType, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeThingType", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeThingTypeOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeThingType, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-types/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingTypeName()); + return DescribeThingTypeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -969,66 +976,59 @@ ListAttachedPoliciesOutcome IoTClient::ListAttachedPolicies(const ListAttachedPo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeThingTypeOutcome IoTClient::DescribeThingType(const DescribeThingTypeRequest& request) const +ListDetectMitigationActionsExecutionsOutcome IoTClient::ListDetectMitigationActionsExecutions(const ListDetectMitigationActionsExecutionsRequest& request) const { - AWS_OPERATION_GUARD(DescribeThingType); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeThingType, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingTypeNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeThingType", "Required field: ThingTypeName, is not set"); - return DescribeThingTypeOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingTypeName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeThingType, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListDetectMitigationActionsExecutions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeThingType, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeThingType", + AWS_OPERATION_CHECK_PTR(meter, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDetectMitigationActionsExecutions", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeThingTypeOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListDetectMitigationActionsExecutionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeThingType, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-types/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingTypeName()); - return DescribeThingTypeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListDetectMitigationActionsExecutions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/detect/mitigationactions/executions"); + return ListDetectMitigationActionsExecutionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeManagedJobTemplateOutcome IoTClient::DescribeManagedJobTemplate(const DescribeManagedJobTemplateRequest& request) const +ListTagsForResourceOutcome IoTClient::ListTagsForResource(const ListTagsForResourceRequest& request) const { - AWS_OPERATION_GUARD(DescribeManagedJobTemplate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeManagedJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TemplateNameHasBeenSet()) + AWS_OPERATION_GUARD(ListTagsForResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceArnHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeManagedJobTemplate", "Required field: TemplateName, is not set"); - return DescribeManagedJobTemplateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TemplateName]", false)); + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeManagedJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeManagedJobTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeManagedJobTemplate", + AWS_OPERATION_CHECK_PTR(meter, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTagsForResource", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeManagedJobTemplateOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTagsForResourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeManagedJobTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/managed-job-templates/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTemplateName()); - return DescribeManagedJobTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags"); + return ListTagsForResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1186,33 +1186,6 @@ ListThingTypesOutcome IoTClient::ListThingTypes(const ListThingTypesRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListMitigationActionsOutcome IoTClient::ListMitigationActions(const ListMitigationActionsRequest& request) const -{ - AWS_OPERATION_GUARD(ListMitigationActions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListMitigationActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListMitigationActions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListMitigationActions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListMitigationActions", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListMitigationActionsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListMitigationActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/mitigationactions/actions"); - return ListMitigationActionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - EnableTopicRuleOutcome IoTClient::EnableTopicRule(const EnableTopicRuleRequest& request) const { AWS_OPERATION_GUARD(EnableTopicRule); @@ -1247,6 +1220,33 @@ EnableTopicRuleOutcome IoTClient::EnableTopicRule(const EnableTopicRuleRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListMitigationActionsOutcome IoTClient::ListMitigationActions(const ListMitigationActionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListMitigationActions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListMitigationActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListMitigationActions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListMitigationActions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListMitigationActions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListMitigationActionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListMitigationActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/mitigationactions/actions"); + return ListMitigationActionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeScheduledAuditOutcome IoTClient::DescribeScheduledAudit(const DescribeScheduledAuditRequest& request) const { AWS_OPERATION_GUARD(DescribeScheduledAudit); @@ -1701,66 +1701,66 @@ ListStreamsOutcome IoTClient::ListStreams(const ListStreamsRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeThingRegistrationTaskOutcome IoTClient::DescribeThingRegistrationTask(const DescribeThingRegistrationTaskRequest& request) const +DescribeThingGroupOutcome IoTClient::DescribeThingGroup(const DescribeThingGroupRequest& request) const { - AWS_OPERATION_GUARD(DescribeThingRegistrationTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TaskIdHasBeenSet()) + AWS_OPERATION_GUARD(DescribeThingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingGroupNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeThingRegistrationTask", "Required field: TaskId, is not set"); - return DescribeThingRegistrationTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + AWS_LOGSTREAM_ERROR("DescribeThingGroup", "Required field: ThingGroupName, is not set"); + return DescribeThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeThingRegistrationTask", + AWS_OPERATION_CHECK_PTR(meter, DescribeThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeThingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeThingRegistrationTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeThingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-registration-tasks/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); - return DescribeThingRegistrationTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); + return DescribeThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeThingGroupOutcome IoTClient::DescribeThingGroup(const DescribeThingGroupRequest& request) const +DescribeThingRegistrationTaskOutcome IoTClient::DescribeThingRegistrationTask(const DescribeThingRegistrationTaskRequest& request) const { - AWS_OPERATION_GUARD(DescribeThingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingGroupNameHasBeenSet()) + AWS_OPERATION_GUARD(DescribeThingRegistrationTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TaskIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeThingGroup", "Required field: ThingGroupName, is not set"); - return DescribeThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); + AWS_LOGSTREAM_ERROR("DescribeThingRegistrationTask", "Required field: TaskId, is not set"); + return DescribeThingRegistrationTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeThingGroup", + AWS_OPERATION_CHECK_PTR(meter, DescribeThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeThingRegistrationTask", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeThingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeThingRegistrationTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); - return DescribeThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-registration-tasks/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); + return DescribeThingRegistrationTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2096,27 +2096,47 @@ GetPackageOutcome IoTClient::GetPackage(const GetPackageRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListV2LoggingLevelsOutcome IoTClient::ListV2LoggingLevels(const ListV2LoggingLevelsRequest& request) const +ListMetricValuesOutcome IoTClient::ListMetricValues(const ListMetricValuesRequest& request) const { - AWS_OPERATION_GUARD(ListV2LoggingLevels); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListMetricValues); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListMetricValues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: ThingName, is not set"); + return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingName]", false)); + } + if (!request.MetricNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: MetricName, is not set"); + return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + } + if (!request.StartTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: StartTime, is not set"); + return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); + } + if (!request.EndTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: EndTime, is not set"); + return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListMetricValues, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListV2LoggingLevels", + AWS_OPERATION_CHECK_PTR(meter, ListMetricValues, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListMetricValues", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListV2LoggingLevelsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListMetricValuesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/v2LoggingLevel"); - return ListV2LoggingLevelsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListMetricValues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/metric-values"); + return ListMetricValuesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2155,47 +2175,27 @@ ListSecurityProfilesForTargetOutcome IoTClient::ListSecurityProfilesForTarget(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListMetricValuesOutcome IoTClient::ListMetricValues(const ListMetricValuesRequest& request) const +ListV2LoggingLevelsOutcome IoTClient::ListV2LoggingLevels(const ListV2LoggingLevelsRequest& request) const { - AWS_OPERATION_GUARD(ListMetricValues); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListMetricValues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: ThingName, is not set"); - return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingName]", false)); - } - if (!request.MetricNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: MetricName, is not set"); - return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); - } - if (!request.StartTimeHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: StartTime, is not set"); - return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); - } - if (!request.EndTimeHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListMetricValues", "Required field: EndTime, is not set"); - return ListMetricValuesOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListMetricValues, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListV2LoggingLevels); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListMetricValues, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListMetricValues", + AWS_OPERATION_CHECK_PTR(meter, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListV2LoggingLevels", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListMetricValuesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListV2LoggingLevelsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListMetricValues, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/metric-values"); - return ListMetricValuesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2LoggingLevel"); + return ListV2LoggingLevelsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2380,67 +2380,67 @@ DetachPolicyOutcome IoTClient::DetachPolicy(const DetachPolicyRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListThingsInBillingGroupOutcome IoTClient::ListThingsInBillingGroup(const ListThingsInBillingGroupRequest& request) const +DescribeProvisioningTemplateOutcome IoTClient::DescribeProvisioningTemplate(const DescribeProvisioningTemplateRequest& request) const { - AWS_OPERATION_GUARD(ListThingsInBillingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListThingsInBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BillingGroupNameHasBeenSet()) + AWS_OPERATION_GUARD(DescribeProvisioningTemplate); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProvisioningTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TemplateNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListThingsInBillingGroup", "Required field: BillingGroupName, is not set"); - return ListThingsInBillingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BillingGroupName]", false)); + AWS_LOGSTREAM_ERROR("DescribeProvisioningTemplate", "Required field: TemplateName, is not set"); + return DescribeProvisioningTemplateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TemplateName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListThingsInBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProvisioningTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListThingsInBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListThingsInBillingGroup", + AWS_OPERATION_CHECK_PTR(meter, DescribeProvisioningTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProvisioningTemplate", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListThingsInBillingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeProvisioningTemplateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListThingsInBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/billing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBillingGroupName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/things"); - return ListThingsInBillingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeProvisioningTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/provisioning-templates/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTemplateName()); + return DescribeProvisioningTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeProvisioningTemplateOutcome IoTClient::DescribeProvisioningTemplate(const DescribeProvisioningTemplateRequest& request) const +ListThingsInBillingGroupOutcome IoTClient::ListThingsInBillingGroup(const ListThingsInBillingGroupRequest& request) const { - AWS_OPERATION_GUARD(DescribeProvisioningTemplate); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProvisioningTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TemplateNameHasBeenSet()) + AWS_OPERATION_GUARD(ListThingsInBillingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListThingsInBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BillingGroupNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("DescribeProvisioningTemplate", "Required field: TemplateName, is not set"); - return DescribeProvisioningTemplateOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TemplateName]", false)); + AWS_LOGSTREAM_ERROR("ListThingsInBillingGroup", "Required field: BillingGroupName, is not set"); + return ListThingsInBillingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BillingGroupName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProvisioningTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListThingsInBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeProvisioningTemplate, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProvisioningTemplate", + AWS_OPERATION_CHECK_PTR(meter, ListThingsInBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListThingsInBillingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeProvisioningTemplateOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListThingsInBillingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeProvisioningTemplate, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/provisioning-templates/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTemplateName()); - return DescribeProvisioningTemplateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListThingsInBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/billing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBillingGroupName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/things"); + return ListThingsInBillingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2474,33 +2474,6 @@ RegisterThingOutcome IoTClient::RegisterThing(const RegisterThingRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RemoveThingFromBillingGroupOutcome IoTClient::RemoveThingFromBillingGroup(const RemoveThingFromBillingGroupRequest& request) const -{ - AWS_OPERATION_GUARD(RemoveThingFromBillingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RemoveThingFromBillingGroup", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RemoveThingFromBillingGroupOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/billing-groups/removeThingFromBillingGroup"); - return RemoveThingFromBillingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - GetOTAUpdateOutcome IoTClient::GetOTAUpdate(const GetOTAUpdateRequest& request) const { AWS_OPERATION_GUARD(GetOTAUpdate); @@ -2534,6 +2507,33 @@ GetOTAUpdateOutcome IoTClient::GetOTAUpdate(const GetOTAUpdateRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +RemoveThingFromBillingGroupOutcome IoTClient::RemoveThingFromBillingGroup(const RemoveThingFromBillingGroupRequest& request) const +{ + AWS_OPERATION_GUARD(RemoveThingFromBillingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RemoveThingFromBillingGroup", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> RemoveThingFromBillingGroupOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RemoveThingFromBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/billing-groups/removeThingFromBillingGroup"); + return RemoveThingFromBillingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetEffectivePoliciesOutcome IoTClient::GetEffectivePolicies(const GetEffectivePoliciesRequest& request) const { AWS_OPERATION_GUARD(GetEffectivePolicies); @@ -2588,6 +2588,33 @@ ListIndicesOutcome IoTClient::ListIndices(const ListIndicesRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListPoliciesOutcome IoTClient::ListPolicies(const ListPoliciesRequest& request) const +{ + AWS_OPERATION_GUARD(ListPolicies); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListPolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListPolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListPolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListPolicies", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListPoliciesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListPolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/policies"); + return ListPoliciesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + RejectCertificateTransferOutcome IoTClient::RejectCertificateTransfer(const RejectCertificateTransferRequest& request) const { AWS_OPERATION_GUARD(RejectCertificateTransfer); @@ -2621,27 +2648,27 @@ RejectCertificateTransferOutcome IoTClient::RejectCertificateTransfer(const Reje {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListPoliciesOutcome IoTClient::ListPolicies(const ListPoliciesRequest& request) const +GetIndexingConfigurationOutcome IoTClient::GetIndexingConfiguration(const GetIndexingConfigurationRequest& request) const { - AWS_OPERATION_GUARD(ListPolicies); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListPolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListPolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetIndexingConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListPolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListPolicies", + AWS_OPERATION_CHECK_PTR(meter, GetIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetIndexingConfiguration", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListPoliciesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetIndexingConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListPolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/policies"); - return ListPoliciesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/indexing/config"); + return GetIndexingConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2682,33 +2709,6 @@ ListTargetsForSecurityProfileOutcome IoTClient::ListTargetsForSecurityProfile(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetIndexingConfigurationOutcome IoTClient::GetIndexingConfiguration(const GetIndexingConfigurationRequest& request) const -{ - AWS_OPERATION_GUARD(GetIndexingConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetIndexingConfiguration", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetIndexingConfigurationOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/indexing/config"); - return GetIndexingConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ListDomainConfigurationsOutcome IoTClient::ListDomainConfigurations(const ListDomainConfigurationsRequest& request) const { AWS_OPERATION_GUARD(ListDomainConfigurations); @@ -2883,33 +2883,6 @@ DescribeThingOutcome IoTClient::DescribeThing(const DescribeThingRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListPackagesOutcome IoTClient::ListPackages(const ListPackagesRequest& request) const -{ - AWS_OPERATION_GUARD(ListPackages); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListPackages", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListPackagesOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/packages"); - return ListPackagesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DescribeSecurityProfileOutcome IoTClient::DescribeSecurityProfile(const DescribeSecurityProfileRequest& request) const { AWS_OPERATION_GUARD(DescribeSecurityProfile); @@ -2943,6 +2916,33 @@ DescribeSecurityProfileOutcome IoTClient::DescribeSecurityProfile(const Describe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListPackagesOutcome IoTClient::ListPackages(const ListPackagesRequest& request) const +{ + AWS_OPERATION_GUARD(ListPackages); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListPackages", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListPackagesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/packages"); + return ListPackagesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListRoleAliasesOutcome IoTClient::ListRoleAliases(const ListRoleAliasesRequest& request) const { AWS_OPERATION_GUARD(ListRoleAliases); @@ -3065,34 +3065,33 @@ RegisterCertificateWithoutCAOutcome IoTClient::RegisterCertificateWithoutCA(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListThingGroupsForThingOutcome IoTClient::ListThingGroupsForThing(const ListThingGroupsForThingRequest& request) const +ListCertificatesByCAOutcome IoTClient::ListCertificatesByCA(const ListCertificatesByCARequest& request) const { - AWS_OPERATION_GUARD(ListThingGroupsForThing); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListThingGroupsForThing, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingNameHasBeenSet()) + AWS_OPERATION_GUARD(ListCertificatesByCA); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCertificatesByCA, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.CaCertificateIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListThingGroupsForThing", "Required field: ThingName, is not set"); - return ListThingGroupsForThingOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingName]", false)); + AWS_LOGSTREAM_ERROR("ListCertificatesByCA", "Required field: CaCertificateId, is not set"); + return ListCertificatesByCAOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CaCertificateId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListThingGroupsForThing, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCertificatesByCA, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListThingGroupsForThing, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListThingGroupsForThing", + AWS_OPERATION_CHECK_PTR(meter, ListCertificatesByCA, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCertificatesByCA", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListThingGroupsForThingOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCertificatesByCAOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListThingGroupsForThing, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/things/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups"); - return ListThingGroupsForThingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCertificatesByCA, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/certificates-by-ca/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetCaCertificateId()); + return ListCertificatesByCAOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -3131,33 +3130,34 @@ ListRelatedResourcesForAuditFindingOutcome IoTClient::ListRelatedResourcesForAud {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCertificatesByCAOutcome IoTClient::ListCertificatesByCA(const ListCertificatesByCARequest& request) const +ListThingGroupsForThingOutcome IoTClient::ListThingGroupsForThing(const ListThingGroupsForThingRequest& request) const { - AWS_OPERATION_GUARD(ListCertificatesByCA); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCertificatesByCA, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.CaCertificateIdHasBeenSet()) + AWS_OPERATION_GUARD(ListThingGroupsForThing); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListThingGroupsForThing, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("ListCertificatesByCA", "Required field: CaCertificateId, is not set"); - return ListCertificatesByCAOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CaCertificateId]", false)); + AWS_LOGSTREAM_ERROR("ListThingGroupsForThing", "Required field: ThingName, is not set"); + return ListThingGroupsForThingOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCertificatesByCA, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListThingGroupsForThing, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCertificatesByCA, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCertificatesByCA", + AWS_OPERATION_CHECK_PTR(meter, ListThingGroupsForThing, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListThingGroupsForThing", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListCertificatesByCAOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListThingGroupsForThingOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCertificatesByCA, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/certificates-by-ca/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetCaCertificateId()); - return ListCertificatesByCAOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListThingGroupsForThing, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/things/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups"); + return ListThingGroupsForThingOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp index 1efd1a40c26..cb9725502ac 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp @@ -24,21 +24,21 @@ #include #include #include -#include -#include #include +#include +#include #include #include #include #include -#include #include +#include #include #include #include #include -#include #include +#include #include #include #include @@ -46,27 +46,27 @@ #include #include #include -#include -#include -#include #include -#include +#include +#include +#include #include +#include #include -#include -#include #include +#include +#include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include @@ -175,33 +175,27 @@ UpdatePackageOutcome IoTClient::UpdatePackage(const UpdatePackageRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateThingGroupOutcome IoTClient::UpdateThingGroup(const UpdateThingGroupRequest& request) const +TagResourceOutcome IoTClient::TagResource(const TagResourceRequest& request) const { - AWS_OPERATION_GUARD(UpdateThingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingGroupNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateThingGroup", "Required field: ThingGroupName, is not set"); - return UpdateThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(TagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateThingGroup", + AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateThingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> TagResourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); - return UpdateThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags"); + return TagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -235,27 +229,33 @@ TestAuthorizationOutcome IoTClient::TestAuthorization(const TestAuthorizationReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -TagResourceOutcome IoTClient::TagResource(const TagResourceRequest& request) const +UpdateThingGroupOutcome IoTClient::UpdateThingGroup(const UpdateThingGroupRequest& request) const { - AWS_OPERATION_GUARD(TagResource); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateThingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingGroupNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateThingGroup", "Required field: ThingGroupName, is not set"); + return UpdateThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", + AWS_OPERATION_CHECK_PTR(meter, UpdateThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateThingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> TagResourceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateThingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/tags"); - return TagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); + return UpdateThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -389,66 +389,66 @@ TestInvokeAuthorizerOutcome IoTClient::TestInvokeAuthorizer(const TestInvokeAuth {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateDomainConfigurationOutcome IoTClient::UpdateDomainConfiguration(const UpdateDomainConfigurationRequest& request) const +StartDetectMitigationActionsTaskOutcome IoTClient::StartDetectMitigationActionsTask(const StartDetectMitigationActionsTaskRequest& request) const { - AWS_OPERATION_GUARD(UpdateDomainConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDomainConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.DomainConfigurationNameHasBeenSet()) + AWS_OPERATION_GUARD(StartDetectMitigationActionsTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TaskIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateDomainConfiguration", "Required field: DomainConfigurationName, is not set"); - return UpdateDomainConfigurationOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainConfigurationName]", false)); + AWS_LOGSTREAM_ERROR("StartDetectMitigationActionsTask", "Required field: TaskId, is not set"); + return StartDetectMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDomainConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateDomainConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDomainConfiguration", + AWS_OPERATION_CHECK_PTR(meter, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartDetectMitigationActionsTask", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateDomainConfigurationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartDetectMitigationActionsTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateDomainConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/domainConfigurations/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainConfigurationName()); - return UpdateDomainConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/detect/mitigationactions/tasks/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); + return StartDetectMitigationActionsTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartDetectMitigationActionsTaskOutcome IoTClient::StartDetectMitigationActionsTask(const StartDetectMitigationActionsTaskRequest& request) const +UpdateDomainConfigurationOutcome IoTClient::UpdateDomainConfiguration(const UpdateDomainConfigurationRequest& request) const { - AWS_OPERATION_GUARD(StartDetectMitigationActionsTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TaskIdHasBeenSet()) + AWS_OPERATION_GUARD(UpdateDomainConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDomainConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DomainConfigurationNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("StartDetectMitigationActionsTask", "Required field: TaskId, is not set"); - return StartDetectMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + AWS_LOGSTREAM_ERROR("UpdateDomainConfiguration", "Required field: DomainConfigurationName, is not set"); + return UpdateDomainConfigurationOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DomainConfigurationName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDomainConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartDetectMitigationActionsTask", + AWS_OPERATION_CHECK_PTR(meter, UpdateDomainConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDomainConfiguration", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartDetectMitigationActionsTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateDomainConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartDetectMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/detect/mitigationactions/tasks/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); - return StartDetectMitigationActionsTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateDomainConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/domainConfigurations/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDomainConfigurationName()); + return UpdateDomainConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -595,33 +595,6 @@ UpdateDimensionOutcome IoTClient::UpdateDimension(const UpdateDimensionRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdatePackageConfigurationOutcome IoTClient::UpdatePackageConfiguration(const UpdatePackageConfigurationRequest& request) const -{ - AWS_OPERATION_GUARD(UpdatePackageConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdatePackageConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdatePackageConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdatePackageConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdatePackageConfiguration", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdatePackageConfigurationOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdatePackageConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/package-configuration"); - return UpdatePackageConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - UpdateJobOutcome IoTClient::UpdateJob(const UpdateJobRequest& request) const { AWS_OPERATION_GUARD(UpdateJob); @@ -655,6 +628,33 @@ UpdateJobOutcome IoTClient::UpdateJob(const UpdateJobRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdatePackageConfigurationOutcome IoTClient::UpdatePackageConfiguration(const UpdatePackageConfigurationRequest& request) const +{ + AWS_OPERATION_GUARD(UpdatePackageConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdatePackageConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdatePackageConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdatePackageConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdatePackageConfiguration", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdatePackageConfigurationOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdatePackageConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/package-configuration"); + return UpdatePackageConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + SetV2LoggingOptionsOutcome IoTClient::SetV2LoggingOptions(const SetV2LoggingOptionsRequest& request) const { AWS_OPERATION_GUARD(SetV2LoggingOptions); @@ -880,60 +880,33 @@ UpdateAccountAuditConfigurationOutcome IoTClient::UpdateAccountAuditConfiguratio {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateIndexingConfigurationOutcome IoTClient::UpdateIndexingConfiguration(const UpdateIndexingConfigurationRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateIndexingConfiguration); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateIndexingConfiguration", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateIndexingConfigurationOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/indexing/config"); - return UpdateIndexingConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -UpdateCustomMetricOutcome IoTClient::UpdateCustomMetric(const UpdateCustomMetricRequest& request) const +StartAuditMitigationActionsTaskOutcome IoTClient::StartAuditMitigationActionsTask(const StartAuditMitigationActionsTaskRequest& request) const { - AWS_OPERATION_GUARD(UpdateCustomMetric); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCustomMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.MetricNameHasBeenSet()) + AWS_OPERATION_GUARD(StartAuditMitigationActionsTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.TaskIdHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateCustomMetric", "Required field: MetricName, is not set"); - return UpdateCustomMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + AWS_LOGSTREAM_ERROR("StartAuditMitigationActionsTask", "Required field: TaskId, is not set"); + return StartAuditMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCustomMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateCustomMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCustomMetric", + AWS_OPERATION_CHECK_PTR(meter, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartAuditMitigationActionsTask", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateCustomMetricOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartAuditMitigationActionsTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCustomMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/custom-metric/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetMetricName()); - return UpdateCustomMetricOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/audit/mitigationactions/tasks/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); + return StartAuditMitigationActionsTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -978,66 +951,60 @@ TransferCertificateOutcome IoTClient::TransferCertificate(const TransferCertific {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartAuditMitigationActionsTaskOutcome IoTClient::StartAuditMitigationActionsTask(const StartAuditMitigationActionsTaskRequest& request) const +UpdateCustomMetricOutcome IoTClient::UpdateCustomMetric(const UpdateCustomMetricRequest& request) const { - AWS_OPERATION_GUARD(StartAuditMitigationActionsTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.TaskIdHasBeenSet()) + AWS_OPERATION_GUARD(UpdateCustomMetric); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCustomMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.MetricNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("StartAuditMitigationActionsTask", "Required field: TaskId, is not set"); - return StartAuditMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + AWS_LOGSTREAM_ERROR("UpdateCustomMetric", "Required field: MetricName, is not set"); + return UpdateCustomMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCustomMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartAuditMitigationActionsTask", + AWS_OPERATION_CHECK_PTR(meter, UpdateCustomMetric, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCustomMetric", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartAuditMitigationActionsTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCustomMetricOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartAuditMitigationActionsTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/audit/mitigationactions/tasks/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetTaskId()); - return StartAuditMitigationActionsTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCustomMetric, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/custom-metric/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetMetricName()); + return UpdateCustomMetricOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateBillingGroupOutcome IoTClient::UpdateBillingGroup(const UpdateBillingGroupRequest& request) const +UpdateIndexingConfigurationOutcome IoTClient::UpdateIndexingConfiguration(const UpdateIndexingConfigurationRequest& request) const { - AWS_OPERATION_GUARD(UpdateBillingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BillingGroupNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateBillingGroup", "Required field: BillingGroupName, is not set"); - return UpdateBillingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BillingGroupName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateIndexingConfiguration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateBillingGroup", + AWS_OPERATION_CHECK_PTR(meter, UpdateIndexingConfiguration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateIndexingConfiguration", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateBillingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateIndexingConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/billing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBillingGroupName()); - return UpdateBillingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateIndexingConfiguration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/indexing/config"); + return UpdateIndexingConfigurationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1071,6 +1038,39 @@ StartOnDemandAuditTaskOutcome IoTClient::StartOnDemandAuditTask(const StartOnDem {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateBillingGroupOutcome IoTClient::UpdateBillingGroup(const UpdateBillingGroupRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateBillingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.BillingGroupNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateBillingGroup", "Required field: BillingGroupName, is not set"); + return UpdateBillingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BillingGroupName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateBillingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateBillingGroup", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateBillingGroupOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateBillingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/billing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBillingGroupName()); + return UpdateBillingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + SearchIndexOutcome IoTClient::SearchIndex(const SearchIndexRequest& request) const { AWS_OPERATION_GUARD(SearchIndex); @@ -1098,27 +1098,27 @@ SearchIndexOutcome IoTClient::SearchIndex(const SearchIndexRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartThingRegistrationTaskOutcome IoTClient::StartThingRegistrationTask(const StartThingRegistrationTaskRequest& request) const +SetDefaultAuthorizerOutcome IoTClient::SetDefaultAuthorizer(const SetDefaultAuthorizerRequest& request) const { - AWS_OPERATION_GUARD(StartThingRegistrationTask); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SetDefaultAuthorizer); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SetDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SetDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartThingRegistrationTask", + AWS_OPERATION_CHECK_PTR(meter, SetDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SetDefaultAuthorizer", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartThingRegistrationTaskOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SetDefaultAuthorizerOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/thing-registration-tasks"); - return StartThingRegistrationTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SetDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/default-authorizer"); + return SetDefaultAuthorizerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1152,27 +1152,27 @@ SetV2LoggingLevelOutcome IoTClient::SetV2LoggingLevel(const SetV2LoggingLevelReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SetDefaultAuthorizerOutcome IoTClient::SetDefaultAuthorizer(const SetDefaultAuthorizerRequest& request) const +StartThingRegistrationTaskOutcome IoTClient::StartThingRegistrationTask(const StartThingRegistrationTaskRequest& request) const { - AWS_OPERATION_GUARD(SetDefaultAuthorizer); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SetDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SetDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartThingRegistrationTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SetDefaultAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SetDefaultAuthorizer", + AWS_OPERATION_CHECK_PTR(meter, StartThingRegistrationTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartThingRegistrationTask", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SetDefaultAuthorizerOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartThingRegistrationTaskOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SetDefaultAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/default-authorizer"); - return SetDefaultAuthorizerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartThingRegistrationTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-registration-tasks"); + return StartThingRegistrationTaskOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1245,6 +1245,33 @@ UpdateCACertificateOutcome IoTClient::UpdateCACertificate(const UpdateCACertific {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +SetLoggingOptionsOutcome IoTClient::SetLoggingOptions(const SetLoggingOptionsRequest& request) const +{ + AWS_OPERATION_GUARD(SetLoggingOptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SetLoggingOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SetLoggingOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, SetLoggingOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SetLoggingOptions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> SetLoggingOptionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SetLoggingOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/loggingOptions"); + return SetLoggingOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateFleetMetricOutcome IoTClient::UpdateFleetMetric(const UpdateFleetMetricRequest& request) const { AWS_OPERATION_GUARD(UpdateFleetMetric); @@ -1278,33 +1305,6 @@ UpdateFleetMetricOutcome IoTClient::UpdateFleetMetric(const UpdateFleetMetricReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SetLoggingOptionsOutcome IoTClient::SetLoggingOptions(const SetLoggingOptionsRequest& request) const -{ - AWS_OPERATION_GUARD(SetLoggingOptions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SetLoggingOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SetLoggingOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SetLoggingOptions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SetLoggingOptions", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SetLoggingOptionsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SetLoggingOptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/loggingOptions"); - return SetLoggingOptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - UntagResourceOutcome IoTClient::UntagResource(const UntagResourceRequest& request) const { AWS_OPERATION_GUARD(UntagResource); @@ -1446,66 +1446,66 @@ UpdateThingGroupsForThingOutcome IoTClient::UpdateThingGroupsForThing(const Upda {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateDynamicThingGroupOutcome IoTClient::UpdateDynamicThingGroup(const UpdateDynamicThingGroupRequest& request) const +UpdateAuthorizerOutcome IoTClient::UpdateAuthorizer(const UpdateAuthorizerRequest& request) const { - AWS_OPERATION_GUARD(UpdateDynamicThingGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ThingGroupNameHasBeenSet()) + AWS_OPERATION_GUARD(UpdateAuthorizer); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AuthorizerNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateDynamicThingGroup", "Required field: ThingGroupName, is not set"); - return UpdateDynamicThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); + AWS_LOGSTREAM_ERROR("UpdateAuthorizer", "Required field: AuthorizerName, is not set"); + return UpdateAuthorizerOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AuthorizerName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDynamicThingGroup", + AWS_OPERATION_CHECK_PTR(meter, UpdateAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAuthorizer", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateDynamicThingGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateAuthorizerOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/dynamic-thing-groups/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); - return UpdateDynamicThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/authorizer/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAuthorizerName()); + return UpdateAuthorizerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateAuthorizerOutcome IoTClient::UpdateAuthorizer(const UpdateAuthorizerRequest& request) const +UpdateDynamicThingGroupOutcome IoTClient::UpdateDynamicThingGroup(const UpdateDynamicThingGroupRequest& request) const { - AWS_OPERATION_GUARD(UpdateAuthorizer); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.AuthorizerNameHasBeenSet()) + AWS_OPERATION_GUARD(UpdateDynamicThingGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingGroupNameHasBeenSet()) { - AWS_LOGSTREAM_ERROR("UpdateAuthorizer", "Required field: AuthorizerName, is not set"); - return UpdateAuthorizerOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AuthorizerName]", false)); + AWS_LOGSTREAM_ERROR("UpdateDynamicThingGroup", "Required field: ThingGroupName, is not set"); + return UpdateDynamicThingGroupOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingGroupName]", false)); } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateAuthorizer, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAuthorizer", + AWS_OPERATION_CHECK_PTR(meter, UpdateDynamicThingGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDynamicThingGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateAuthorizerOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateDynamicThingGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateAuthorizer, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/authorizer/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAuthorizerName()); - return UpdateAuthorizerOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateDynamicThingGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dynamic-thing-groups/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingGroupName()); + return UpdateDynamicThingGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTErrors.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTErrors.cpp index aa7d86e8b1c..a9d788f8a79 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTErrors.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTErrors.cpp @@ -33,39 +33,39 @@ template<> AWS_IOT_API ResourceAlreadyExistsException IoTError::GetModeledError( namespace IoTErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int VERSION_CONFLICT_HASH = HashingUtils::HashString("VersionConflictException"); -static const int DELETE_CONFLICT_HASH = HashingUtils::HashString("DeleteConflictException"); -static const int NOT_CONFIGURED_HASH = HashingUtils::HashString("NotConfiguredException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int MALFORMED_POLICY_HASH = HashingUtils::HashString("MalformedPolicyException"); -static const int INVALID_AGGREGATION_HASH = HashingUtils::HashString("InvalidAggregationException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int INVALID_RESPONSE_HASH = HashingUtils::HashString("InvalidResponseException"); -static const int TRANSFER_ALREADY_COMPLETED_HASH = HashingUtils::HashString("TransferAlreadyCompletedException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); -static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransitionException"); -static const int CERTIFICATE_VALIDATION_HASH = HashingUtils::HashString("CertificateValidationException"); -static const int CONFLICTING_RESOURCE_UPDATE_HASH = HashingUtils::HashString("ConflictingResourceUpdateException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int TRANSFER_CONFLICT_HASH = HashingUtils::HashString("TransferConflictException"); -static const int SQL_PARSE_HASH = HashingUtils::HashString("SqlParseException"); -static const int REGISTRATION_CODE_VALIDATION_HASH = HashingUtils::HashString("RegistrationCodeValidationException"); -static const int CERTIFICATE_CONFLICT_HASH = HashingUtils::HashString("CertificateConflictException"); -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int TASK_ALREADY_EXISTS_HASH = HashingUtils::HashString("TaskAlreadyExistsException"); -static const int RESOURCE_REGISTRATION_FAILURE_HASH = HashingUtils::HashString("ResourceRegistrationFailureException"); -static const int INVALID_QUERY_HASH = HashingUtils::HashString("InvalidQueryException"); -static const int INDEX_NOT_READY_HASH = HashingUtils::HashString("IndexNotReadyException"); -static const int VERSIONS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VersionsLimitExceededException"); -static const int CERTIFICATE_STATE_HASH = HashingUtils::HashString("CertificateStateException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t VERSION_CONFLICT_HASH = ConstExprHashingUtils::HashString("VersionConflictException"); +static constexpr uint32_t DELETE_CONFLICT_HASH = ConstExprHashingUtils::HashString("DeleteConflictException"); +static constexpr uint32_t NOT_CONFIGURED_HASH = ConstExprHashingUtils::HashString("NotConfiguredException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t MALFORMED_POLICY_HASH = ConstExprHashingUtils::HashString("MalformedPolicyException"); +static constexpr uint32_t INVALID_AGGREGATION_HASH = ConstExprHashingUtils::HashString("InvalidAggregationException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t INVALID_RESPONSE_HASH = ConstExprHashingUtils::HashString("InvalidResponseException"); +static constexpr uint32_t TRANSFER_ALREADY_COMPLETED_HASH = ConstExprHashingUtils::HashString("TransferAlreadyCompletedException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INVALID_STATE_TRANSITION_HASH = ConstExprHashingUtils::HashString("InvalidStateTransitionException"); +static constexpr uint32_t CERTIFICATE_VALIDATION_HASH = ConstExprHashingUtils::HashString("CertificateValidationException"); +static constexpr uint32_t CONFLICTING_RESOURCE_UPDATE_HASH = ConstExprHashingUtils::HashString("ConflictingResourceUpdateException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t TRANSFER_CONFLICT_HASH = ConstExprHashingUtils::HashString("TransferConflictException"); +static constexpr uint32_t SQL_PARSE_HASH = ConstExprHashingUtils::HashString("SqlParseException"); +static constexpr uint32_t REGISTRATION_CODE_VALIDATION_HASH = ConstExprHashingUtils::HashString("RegistrationCodeValidationException"); +static constexpr uint32_t CERTIFICATE_CONFLICT_HASH = ConstExprHashingUtils::HashString("CertificateConflictException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t TASK_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TaskAlreadyExistsException"); +static constexpr uint32_t RESOURCE_REGISTRATION_FAILURE_HASH = ConstExprHashingUtils::HashString("ResourceRegistrationFailureException"); +static constexpr uint32_t INVALID_QUERY_HASH = ConstExprHashingUtils::HashString("InvalidQueryException"); +static constexpr uint32_t INDEX_NOT_READY_HASH = ConstExprHashingUtils::HashString("IndexNotReadyException"); +static constexpr uint32_t VERSIONS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VersionsLimitExceededException"); +static constexpr uint32_t CERTIFICATE_STATE_HASH = ConstExprHashingUtils::HashString("CertificateStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AbortAction.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AbortAction.cpp index d6f5782c324..7ca39c04d73 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AbortAction.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AbortAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AbortActionMapper { - static const int CANCEL_HASH = HashingUtils::HashString("CANCEL"); + static constexpr uint32_t CANCEL_HASH = ConstExprHashingUtils::HashString("CANCEL"); AbortAction GetAbortActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCEL_HASH) { return AbortAction::CANCEL; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ActionType.cpp index 025f4af12d1..1bd86a33587 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ActionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActionTypeMapper { - static const int PUBLISH_HASH = HashingUtils::HashString("PUBLISH"); - static const int SUBSCRIBE_HASH = HashingUtils::HashString("SUBSCRIBE"); - static const int RECEIVE_HASH = HashingUtils::HashString("RECEIVE"); - static const int CONNECT_HASH = HashingUtils::HashString("CONNECT"); + static constexpr uint32_t PUBLISH_HASH = ConstExprHashingUtils::HashString("PUBLISH"); + static constexpr uint32_t SUBSCRIBE_HASH = ConstExprHashingUtils::HashString("SUBSCRIBE"); + static constexpr uint32_t RECEIVE_HASH = ConstExprHashingUtils::HashString("RECEIVE"); + static constexpr uint32_t CONNECT_HASH = ConstExprHashingUtils::HashString("CONNECT"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISH_HASH) { return ActionType::PUBLISH; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AggregationTypeName.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AggregationTypeName.cpp index 98912e93784..f824a612ded 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AggregationTypeName.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AggregationTypeName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AggregationTypeNameMapper { - static const int Statistics_HASH = HashingUtils::HashString("Statistics"); - static const int Percentiles_HASH = HashingUtils::HashString("Percentiles"); - static const int Cardinality_HASH = HashingUtils::HashString("Cardinality"); + static constexpr uint32_t Statistics_HASH = ConstExprHashingUtils::HashString("Statistics"); + static constexpr uint32_t Percentiles_HASH = ConstExprHashingUtils::HashString("Percentiles"); + static constexpr uint32_t Cardinality_HASH = ConstExprHashingUtils::HashString("Cardinality"); AggregationTypeName GetAggregationTypeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Statistics_HASH) { return AggregationTypeName::Statistics; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AlertTargetType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AlertTargetType.cpp index 82b13066ae3..8d493bf038f 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AlertTargetType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AlertTargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AlertTargetTypeMapper { - static const int SNS_HASH = HashingUtils::HashString("SNS"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); AlertTargetType GetAlertTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNS_HASH) { return AlertTargetType::SNS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditCheckRunStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditCheckRunStatus.cpp index d16f297374c..4c2b65d4ebf 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditCheckRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditCheckRunStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AuditCheckRunStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int WAITING_FOR_DATA_COLLECTION_HASH = HashingUtils::HashString("WAITING_FOR_DATA_COLLECTION"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int COMPLETED_COMPLIANT_HASH = HashingUtils::HashString("COMPLETED_COMPLIANT"); - static const int COMPLETED_NON_COMPLIANT_HASH = HashingUtils::HashString("COMPLETED_NON_COMPLIANT"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t WAITING_FOR_DATA_COLLECTION_HASH = ConstExprHashingUtils::HashString("WAITING_FOR_DATA_COLLECTION"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t COMPLETED_COMPLIANT_HASH = ConstExprHashingUtils::HashString("COMPLETED_COMPLIANT"); + static constexpr uint32_t COMPLETED_NON_COMPLIANT_HASH = ConstExprHashingUtils::HashString("COMPLETED_NON_COMPLIANT"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AuditCheckRunStatus GetAuditCheckRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return AuditCheckRunStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditFindingSeverity.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditFindingSeverity.cpp index 84066d604ac..d553d478b66 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditFindingSeverity.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditFindingSeverity.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuditFindingSeverityMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); AuditFindingSeverity GetAuditFindingSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return AuditFindingSeverity::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditFrequency.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditFrequency.cpp index 158fe632530..e3ac496ce09 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditFrequency.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditFrequency.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuditFrequencyMapper { - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); - static const int BIWEEKLY_HASH = HashingUtils::HashString("BIWEEKLY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); + static constexpr uint32_t BIWEEKLY_HASH = ConstExprHashingUtils::HashString("BIWEEKLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); AuditFrequency GetAuditFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAILY_HASH) { return AuditFrequency::DAILY; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsExecutionStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsExecutionStatus.cpp index ded496d2d14..47d491d8a79 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsExecutionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AuditMitigationActionsExecutionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); AuditMitigationActionsExecutionStatus GetAuditMitigationActionsExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return AuditMitigationActionsExecutionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsTaskStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsTaskStatus.cpp index 209def6cbba..66251da39db 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditMitigationActionsTaskStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuditMitigationActionsTaskStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); AuditMitigationActionsTaskStatus GetAuditMitigationActionsTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return AuditMitigationActionsTaskStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditNotificationType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditNotificationType.cpp index 7a7a8b1b45d..bfedd3cc1db 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditNotificationType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditNotificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AuditNotificationTypeMapper { - static const int SNS_HASH = HashingUtils::HashString("SNS"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); AuditNotificationType GetAuditNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNS_HASH) { return AuditNotificationType::SNS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskStatus.cpp index b955d507a21..26a9daccb14 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuditTaskStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); AuditTaskStatus GetAuditTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return AuditTaskStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskType.cpp index 9a56913f949..40e8bc4abc3 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuditTaskType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuditTaskTypeMapper { - static const int ON_DEMAND_AUDIT_TASK_HASH = HashingUtils::HashString("ON_DEMAND_AUDIT_TASK"); - static const int SCHEDULED_AUDIT_TASK_HASH = HashingUtils::HashString("SCHEDULED_AUDIT_TASK"); + static constexpr uint32_t ON_DEMAND_AUDIT_TASK_HASH = ConstExprHashingUtils::HashString("ON_DEMAND_AUDIT_TASK"); + static constexpr uint32_t SCHEDULED_AUDIT_TASK_HASH = ConstExprHashingUtils::HashString("SCHEDULED_AUDIT_TASK"); AuditTaskType GetAuditTaskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_AUDIT_TASK_HASH) { return AuditTaskType::ON_DEMAND_AUDIT_TASK; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuthDecision.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuthDecision.cpp index e86bbf58bc3..a530b2d7a04 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuthDecision.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuthDecision.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthDecisionMapper { - static const int ALLOWED_HASH = HashingUtils::HashString("ALLOWED"); - static const int EXPLICIT_DENY_HASH = HashingUtils::HashString("EXPLICIT_DENY"); - static const int IMPLICIT_DENY_HASH = HashingUtils::HashString("IMPLICIT_DENY"); + static constexpr uint32_t ALLOWED_HASH = ConstExprHashingUtils::HashString("ALLOWED"); + static constexpr uint32_t EXPLICIT_DENY_HASH = ConstExprHashingUtils::HashString("EXPLICIT_DENY"); + static constexpr uint32_t IMPLICIT_DENY_HASH = ConstExprHashingUtils::HashString("IMPLICIT_DENY"); AuthDecision GetAuthDecisionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOWED_HASH) { return AuthDecision::ALLOWED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AuthorizerStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AuthorizerStatus.cpp index d3a657cf4cd..aafbde1504e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AuthorizerStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AuthorizerStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthorizerStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AuthorizerStatus GetAuthorizerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AuthorizerStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AutoRegistrationStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AutoRegistrationStatus.cpp index 9900ab23e6b..5b23e48be6e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AutoRegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AutoRegistrationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoRegistrationStatusMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); AutoRegistrationStatus GetAutoRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return AutoRegistrationStatus::ENABLE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaAbortAction.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaAbortAction.cpp index 42298048a1d..39cb8d21b9a 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaAbortAction.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaAbortAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AwsJobAbortCriteriaAbortActionMapper { - static const int CANCEL_HASH = HashingUtils::HashString("CANCEL"); + static constexpr uint32_t CANCEL_HASH = ConstExprHashingUtils::HashString("CANCEL"); AwsJobAbortCriteriaAbortAction GetAwsJobAbortCriteriaAbortActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCEL_HASH) { return AwsJobAbortCriteriaAbortAction::CANCEL; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaFailureType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaFailureType.cpp index 0fa615feb02..1907b89fb91 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaFailureType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AwsJobAbortCriteriaFailureType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AwsJobAbortCriteriaFailureTypeMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); AwsJobAbortCriteriaFailureType GetAwsJobAbortCriteriaFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return AwsJobAbortCriteriaFailureType::FAILED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp index d0c7686d0ec..e1cd1a1cd0a 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BehaviorCriteriaTypeMapper { - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); - static const int STATISTICAL_HASH = HashingUtils::HashString("STATISTICAL"); - static const int MACHINE_LEARNING_HASH = HashingUtils::HashString("MACHINE_LEARNING"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); + static constexpr uint32_t STATISTICAL_HASH = ConstExprHashingUtils::HashString("STATISTICAL"); + static constexpr uint32_t MACHINE_LEARNING_HASH = ConstExprHashingUtils::HashString("MACHINE_LEARNING"); BehaviorCriteriaType GetBehaviorCriteriaTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC__HASH) { return BehaviorCriteriaType::STATIC_; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CACertificateStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CACertificateStatus.cpp index 0c46f37e099..719c0b8e920 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CACertificateStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CACertificateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CACertificateStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); CACertificateStatus GetCACertificateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CACertificateStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CACertificateUpdateAction.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CACertificateUpdateAction.cpp index d3ce7b28f66..6921b6a420c 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CACertificateUpdateAction.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CACertificateUpdateAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CACertificateUpdateActionMapper { - static const int DEACTIVATE_HASH = HashingUtils::HashString("DEACTIVATE"); + static constexpr uint32_t DEACTIVATE_HASH = ConstExprHashingUtils::HashString("DEACTIVATE"); CACertificateUpdateAction GetCACertificateUpdateActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEACTIVATE_HASH) { return CACertificateUpdateAction::DEACTIVATE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CannedAccessControlList.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CannedAccessControlList.cpp index a29118cf1f4..f84d51d51b1 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CannedAccessControlList.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CannedAccessControlList.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CannedAccessControlListMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); - static const int log_delivery_write_HASH = HashingUtils::HashString("log-delivery-write"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t log_delivery_write_HASH = ConstExprHashingUtils::HashString("log-delivery-write"); CannedAccessControlList GetCannedAccessControlListForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return CannedAccessControlList::private_; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CertificateMode.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CertificateMode.cpp index c4682e5735e..67fdd8ce861 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CertificateMode.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CertificateMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateModeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int SNI_ONLY_HASH = HashingUtils::HashString("SNI_ONLY"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t SNI_ONLY_HASH = ConstExprHashingUtils::HashString("SNI_ONLY"); CertificateMode GetCertificateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return CertificateMode::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CertificateStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CertificateStatus.cpp index 749eeb8ed77..5e9897e15c8 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CertificateStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CertificateStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CertificateStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int PENDING_TRANSFER_HASH = HashingUtils::HashString("PENDING_TRANSFER"); - static const int REGISTER_INACTIVE_HASH = HashingUtils::HashString("REGISTER_INACTIVE"); - static const int PENDING_ACTIVATION_HASH = HashingUtils::HashString("PENDING_ACTIVATION"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t PENDING_TRANSFER_HASH = ConstExprHashingUtils::HashString("PENDING_TRANSFER"); + static constexpr uint32_t REGISTER_INACTIVE_HASH = ConstExprHashingUtils::HashString("REGISTER_INACTIVE"); + static constexpr uint32_t PENDING_ACTIVATION_HASH = ConstExprHashingUtils::HashString("PENDING_ACTIVATION"); CertificateStatus GetCertificateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CertificateStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp index 3b22cecf1a5..76c6027ee33 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int less_than_HASH = HashingUtils::HashString("less-than"); - static const int less_than_equals_HASH = HashingUtils::HashString("less-than-equals"); - static const int greater_than_HASH = HashingUtils::HashString("greater-than"); - static const int greater_than_equals_HASH = HashingUtils::HashString("greater-than-equals"); - static const int in_cidr_set_HASH = HashingUtils::HashString("in-cidr-set"); - static const int not_in_cidr_set_HASH = HashingUtils::HashString("not-in-cidr-set"); - static const int in_port_set_HASH = HashingUtils::HashString("in-port-set"); - static const int not_in_port_set_HASH = HashingUtils::HashString("not-in-port-set"); - static const int in_set_HASH = HashingUtils::HashString("in-set"); - static const int not_in_set_HASH = HashingUtils::HashString("not-in-set"); + static constexpr uint32_t less_than_HASH = ConstExprHashingUtils::HashString("less-than"); + static constexpr uint32_t less_than_equals_HASH = ConstExprHashingUtils::HashString("less-than-equals"); + static constexpr uint32_t greater_than_HASH = ConstExprHashingUtils::HashString("greater-than"); + static constexpr uint32_t greater_than_equals_HASH = ConstExprHashingUtils::HashString("greater-than-equals"); + static constexpr uint32_t in_cidr_set_HASH = ConstExprHashingUtils::HashString("in-cidr-set"); + static constexpr uint32_t not_in_cidr_set_HASH = ConstExprHashingUtils::HashString("not-in-cidr-set"); + static constexpr uint32_t in_port_set_HASH = ConstExprHashingUtils::HashString("in-port-set"); + static constexpr uint32_t not_in_port_set_HASH = ConstExprHashingUtils::HashString("not-in-port-set"); + static constexpr uint32_t in_set_HASH = ConstExprHashingUtils::HashString("in-set"); + static constexpr uint32_t not_in_set_HASH = ConstExprHashingUtils::HashString("not-in-set"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == less_than_HASH) { return ComparisonOperator::less_than; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp index bc547005bd3..b1cd5829399 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfidenceLevelMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); ConfidenceLevel GetConfidenceLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return ConfidenceLevel::LOW; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp index be33987f2e7..cb0e57a09f3 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CustomMetricTypeMapper { - static const int string_list_HASH = HashingUtils::HashString("string-list"); - static const int ip_address_list_HASH = HashingUtils::HashString("ip-address-list"); - static const int number_list_HASH = HashingUtils::HashString("number-list"); - static const int number_HASH = HashingUtils::HashString("number"); + static constexpr uint32_t string_list_HASH = ConstExprHashingUtils::HashString("string-list"); + static constexpr uint32_t ip_address_list_HASH = ConstExprHashingUtils::HashString("ip-address-list"); + static constexpr uint32_t number_list_HASH = ConstExprHashingUtils::HashString("number-list"); + static constexpr uint32_t number_HASH = ConstExprHashingUtils::HashString("number"); CustomMetricType GetCustomMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == string_list_HASH) { return CustomMetricType::string_list; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DayOfWeek.cpp index 763c1527589..a6af8308b1b 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int SUN_HASH = HashingUtils::HashString("SUN"); - static const int MON_HASH = HashingUtils::HashString("MON"); - static const int TUE_HASH = HashingUtils::HashString("TUE"); - static const int WED_HASH = HashingUtils::HashString("WED"); - static const int THU_HASH = HashingUtils::HashString("THU"); - static const int FRI_HASH = HashingUtils::HashString("FRI"); - static const int SAT_HASH = HashingUtils::HashString("SAT"); + static constexpr uint32_t SUN_HASH = ConstExprHashingUtils::HashString("SUN"); + static constexpr uint32_t MON_HASH = ConstExprHashingUtils::HashString("MON"); + static constexpr uint32_t TUE_HASH = ConstExprHashingUtils::HashString("TUE"); + static constexpr uint32_t WED_HASH = ConstExprHashingUtils::HashString("WED"); + static constexpr uint32_t THU_HASH = ConstExprHashingUtils::HashString("THU"); + static constexpr uint32_t FRI_HASH = ConstExprHashingUtils::HashString("FRI"); + static constexpr uint32_t SAT_HASH = ConstExprHashingUtils::HashString("SAT"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUN_HASH) { return DayOfWeek::SUN; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp index 149ad0823bb..f2a001e88e3 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DetectMitigationActionExecutionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); DetectMitigationActionExecutionStatus GetDetectMitigationActionExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DetectMitigationActionExecutionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp index 5b349b1ba18..89235a8cc4c 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DetectMitigationActionsTaskStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); DetectMitigationActionsTaskStatus GetDetectMitigationActionsTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DetectMitigationActionsTaskStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DeviceCertificateUpdateAction.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DeviceCertificateUpdateAction.cpp index 29efd783718..0ae5afc3e7f 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DeviceCertificateUpdateAction.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DeviceCertificateUpdateAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DeviceCertificateUpdateActionMapper { - static const int DEACTIVATE_HASH = HashingUtils::HashString("DEACTIVATE"); + static constexpr uint32_t DEACTIVATE_HASH = ConstExprHashingUtils::HashString("DEACTIVATE"); DeviceCertificateUpdateAction GetDeviceCertificateUpdateActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEACTIVATE_HASH) { return DeviceCertificateUpdateAction::DEACTIVATE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DeviceDefenderIndexingMode.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DeviceDefenderIndexingMode.cpp index 59b2155a21d..6282148978c 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DeviceDefenderIndexingMode.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DeviceDefenderIndexingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceDefenderIndexingModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int VIOLATIONS_HASH = HashingUtils::HashString("VIOLATIONS"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t VIOLATIONS_HASH = ConstExprHashingUtils::HashString("VIOLATIONS"); DeviceDefenderIndexingMode GetDeviceDefenderIndexingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return DeviceDefenderIndexingMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DimensionType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DimensionType.cpp index 811122cf2e8..fb719c14e2e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DimensionType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DimensionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DimensionTypeMapper { - static const int TOPIC_FILTER_HASH = HashingUtils::HashString("TOPIC_FILTER"); + static constexpr uint32_t TOPIC_FILTER_HASH = ConstExprHashingUtils::HashString("TOPIC_FILTER"); DimensionType GetDimensionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOPIC_FILTER_HASH) { return DimensionType::TOPIC_FILTER; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DimensionValueOperator.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DimensionValueOperator.cpp index b85d7eb719f..a965e356d94 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DimensionValueOperator.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DimensionValueOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DimensionValueOperatorMapper { - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int NOT_IN_HASH = HashingUtils::HashString("NOT_IN"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t NOT_IN_HASH = ConstExprHashingUtils::HashString("NOT_IN"); DimensionValueOperator GetDimensionValueOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_HASH) { return DimensionValueOperator::IN; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DomainConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DomainConfigurationStatus.cpp index 82c7e339d97..c15dbb596aa 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DomainConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DomainConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DomainConfigurationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DomainConfigurationStatus GetDomainConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DomainConfigurationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DomainType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DomainType.cpp index 7e3c6a8f651..2455e810658 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DomainType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DomainType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DomainTypeMapper { - static const int ENDPOINT_HASH = HashingUtils::HashString("ENDPOINT"); - static const int AWS_MANAGED_HASH = HashingUtils::HashString("AWS_MANAGED"); - static const int CUSTOMER_MANAGED_HASH = HashingUtils::HashString("CUSTOMER_MANAGED"); + static constexpr uint32_t ENDPOINT_HASH = ConstExprHashingUtils::HashString("ENDPOINT"); + static constexpr uint32_t AWS_MANAGED_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED"); + static constexpr uint32_t CUSTOMER_MANAGED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED"); DomainType GetDomainTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENDPOINT_HASH) { return DomainType::ENDPOINT; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DynamicGroupStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DynamicGroupStatus.cpp index e63f5dc5f6c..6532f326c40 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DynamicGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DynamicGroupStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DynamicGroupStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int BUILDING_HASH = HashingUtils::HashString("BUILDING"); - static const int REBUILDING_HASH = HashingUtils::HashString("REBUILDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t BUILDING_HASH = ConstExprHashingUtils::HashString("BUILDING"); + static constexpr uint32_t REBUILDING_HASH = ConstExprHashingUtils::HashString("REBUILDING"); DynamicGroupStatus GetDynamicGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DynamicGroupStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/DynamoKeyType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/DynamoKeyType.cpp index b81e6bce484..8f37773125d 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/DynamoKeyType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/DynamoKeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DynamoKeyTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); DynamoKeyType GetDynamoKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return DynamoKeyType::STRING; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/EventType.cpp index 257bb6b62c8..891f2bbe0cc 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/EventType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace EventTypeMapper { - static const int THING_HASH = HashingUtils::HashString("THING"); - static const int THING_GROUP_HASH = HashingUtils::HashString("THING_GROUP"); - static const int THING_TYPE_HASH = HashingUtils::HashString("THING_TYPE"); - static const int THING_GROUP_MEMBERSHIP_HASH = HashingUtils::HashString("THING_GROUP_MEMBERSHIP"); - static const int THING_GROUP_HIERARCHY_HASH = HashingUtils::HashString("THING_GROUP_HIERARCHY"); - static const int THING_TYPE_ASSOCIATION_HASH = HashingUtils::HashString("THING_TYPE_ASSOCIATION"); - static const int JOB_HASH = HashingUtils::HashString("JOB"); - static const int JOB_EXECUTION_HASH = HashingUtils::HashString("JOB_EXECUTION"); - static const int POLICY_HASH = HashingUtils::HashString("POLICY"); - static const int CERTIFICATE_HASH = HashingUtils::HashString("CERTIFICATE"); - static const int CA_CERTIFICATE_HASH = HashingUtils::HashString("CA_CERTIFICATE"); + static constexpr uint32_t THING_HASH = ConstExprHashingUtils::HashString("THING"); + static constexpr uint32_t THING_GROUP_HASH = ConstExprHashingUtils::HashString("THING_GROUP"); + static constexpr uint32_t THING_TYPE_HASH = ConstExprHashingUtils::HashString("THING_TYPE"); + static constexpr uint32_t THING_GROUP_MEMBERSHIP_HASH = ConstExprHashingUtils::HashString("THING_GROUP_MEMBERSHIP"); + static constexpr uint32_t THING_GROUP_HIERARCHY_HASH = ConstExprHashingUtils::HashString("THING_GROUP_HIERARCHY"); + static constexpr uint32_t THING_TYPE_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("THING_TYPE_ASSOCIATION"); + static constexpr uint32_t JOB_HASH = ConstExprHashingUtils::HashString("JOB"); + static constexpr uint32_t JOB_EXECUTION_HASH = ConstExprHashingUtils::HashString("JOB_EXECUTION"); + static constexpr uint32_t POLICY_HASH = ConstExprHashingUtils::HashString("POLICY"); + static constexpr uint32_t CERTIFICATE_HASH = ConstExprHashingUtils::HashString("CERTIFICATE"); + static constexpr uint32_t CA_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("CA_CERTIFICATE"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == THING_HASH) { return EventType::THING; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/FieldType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/FieldType.cpp index e1683da415c..f424d76c0df 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/FieldType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/FieldType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FieldTypeMapper { - static const int Number_HASH = HashingUtils::HashString("Number"); - static const int String_HASH = HashingUtils::HashString("String"); - static const int Boolean_HASH = HashingUtils::HashString("Boolean"); + static constexpr uint32_t Number_HASH = ConstExprHashingUtils::HashString("Number"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t Boolean_HASH = ConstExprHashingUtils::HashString("Boolean"); FieldType GetFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Number_HASH) { return FieldType::Number; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/FleetMetricUnit.cpp b/generated/src/aws-cpp-sdk-iot/source/model/FleetMetricUnit.cpp index f9ce690e564..852c68fe3bd 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/FleetMetricUnit.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/FleetMetricUnit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace FleetMetricUnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); FleetMetricUnit GetFleetMetricUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return FleetMetricUnit::Seconds; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/IndexStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/IndexStatus.cpp index 7256f2abe48..8f9dfe67e6d 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/IndexStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/IndexStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IndexStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int BUILDING_HASH = HashingUtils::HashString("BUILDING"); - static const int REBUILDING_HASH = HashingUtils::HashString("REBUILDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t BUILDING_HASH = ConstExprHashingUtils::HashString("BUILDING"); + static constexpr uint32_t REBUILDING_HASH = ConstExprHashingUtils::HashString("REBUILDING"); IndexStatus GetIndexStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return IndexStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/JobEndBehavior.cpp b/generated/src/aws-cpp-sdk-iot/source/model/JobEndBehavior.cpp index d6c92fed962..9503362d5b2 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/JobEndBehavior.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/JobEndBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobEndBehaviorMapper { - static const int STOP_ROLLOUT_HASH = HashingUtils::HashString("STOP_ROLLOUT"); - static const int CANCEL_HASH = HashingUtils::HashString("CANCEL"); - static const int FORCE_CANCEL_HASH = HashingUtils::HashString("FORCE_CANCEL"); + static constexpr uint32_t STOP_ROLLOUT_HASH = ConstExprHashingUtils::HashString("STOP_ROLLOUT"); + static constexpr uint32_t CANCEL_HASH = ConstExprHashingUtils::HashString("CANCEL"); + static constexpr uint32_t FORCE_CANCEL_HASH = ConstExprHashingUtils::HashString("FORCE_CANCEL"); JobEndBehavior GetJobEndBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOP_ROLLOUT_HASH) { return JobEndBehavior::STOP_ROLLOUT; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionFailureType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionFailureType.cpp index 17274e24d18..043701a61a7 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionFailureType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionFailureType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobExecutionFailureTypeMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); JobExecutionFailureType GetJobExecutionFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return JobExecutionFailureType::FAILED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionStatus.cpp index 7025ce5b4a6..f24c51042d8 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/JobExecutionStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace JobExecutionStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); JobExecutionStatus GetJobExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return JobExecutionStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/JobStatus.cpp index e2316697e55..6ff385c5d66 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/JobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace JobStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int DELETION_IN_PROGRESS_HASH = HashingUtils::HashString("DELETION_IN_PROGRESS"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t DELETION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETION_IN_PROGRESS"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return JobStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-iot/source/model/LogLevel.cpp index d083727bdce..6553955133e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/LogLevel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LogLevelMapper { - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEBUG__HASH) { return LogLevel::DEBUG_; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/LogTargetType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/LogTargetType.cpp index 5345c2ad730..20d2bb02371 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/LogTargetType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/LogTargetType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace LogTargetTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int THING_GROUP_HASH = HashingUtils::HashString("THING_GROUP"); - static const int CLIENT_ID_HASH = HashingUtils::HashString("CLIENT_ID"); - static const int SOURCE_IP_HASH = HashingUtils::HashString("SOURCE_IP"); - static const int PRINCIPAL_ID_HASH = HashingUtils::HashString("PRINCIPAL_ID"); - static const int EVENT_TYPE_HASH = HashingUtils::HashString("EVENT_TYPE"); - static const int DEVICE_DEFENDER_HASH = HashingUtils::HashString("DEVICE_DEFENDER"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t THING_GROUP_HASH = ConstExprHashingUtils::HashString("THING_GROUP"); + static constexpr uint32_t CLIENT_ID_HASH = ConstExprHashingUtils::HashString("CLIENT_ID"); + static constexpr uint32_t SOURCE_IP_HASH = ConstExprHashingUtils::HashString("SOURCE_IP"); + static constexpr uint32_t PRINCIPAL_ID_HASH = ConstExprHashingUtils::HashString("PRINCIPAL_ID"); + static constexpr uint32_t EVENT_TYPE_HASH = ConstExprHashingUtils::HashString("EVENT_TYPE"); + static constexpr uint32_t DEVICE_DEFENDER_HASH = ConstExprHashingUtils::HashString("DEVICE_DEFENDER"); LogTargetType GetLogTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return LogTargetType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/MessageFormat.cpp b/generated/src/aws-cpp-sdk-iot/source/model/MessageFormat.cpp index 544fe2f452d..1d18af38fbb 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/MessageFormat.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/MessageFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageFormatMapper { - static const int RAW_HASH = HashingUtils::HashString("RAW"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t RAW_HASH = ConstExprHashingUtils::HashString("RAW"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); MessageFormat GetMessageFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RAW_HASH) { return MessageFormat::RAW; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/MitigationActionType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/MitigationActionType.cpp index 0f7f2113564..364eded5bdf 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/MitigationActionType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/MitigationActionType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MitigationActionTypeMapper { - static const int UPDATE_DEVICE_CERTIFICATE_HASH = HashingUtils::HashString("UPDATE_DEVICE_CERTIFICATE"); - static const int UPDATE_CA_CERTIFICATE_HASH = HashingUtils::HashString("UPDATE_CA_CERTIFICATE"); - static const int ADD_THINGS_TO_THING_GROUP_HASH = HashingUtils::HashString("ADD_THINGS_TO_THING_GROUP"); - static const int REPLACE_DEFAULT_POLICY_VERSION_HASH = HashingUtils::HashString("REPLACE_DEFAULT_POLICY_VERSION"); - static const int ENABLE_IOT_LOGGING_HASH = HashingUtils::HashString("ENABLE_IOT_LOGGING"); - static const int PUBLISH_FINDING_TO_SNS_HASH = HashingUtils::HashString("PUBLISH_FINDING_TO_SNS"); + static constexpr uint32_t UPDATE_DEVICE_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("UPDATE_DEVICE_CERTIFICATE"); + static constexpr uint32_t UPDATE_CA_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("UPDATE_CA_CERTIFICATE"); + static constexpr uint32_t ADD_THINGS_TO_THING_GROUP_HASH = ConstExprHashingUtils::HashString("ADD_THINGS_TO_THING_GROUP"); + static constexpr uint32_t REPLACE_DEFAULT_POLICY_VERSION_HASH = ConstExprHashingUtils::HashString("REPLACE_DEFAULT_POLICY_VERSION"); + static constexpr uint32_t ENABLE_IOT_LOGGING_HASH = ConstExprHashingUtils::HashString("ENABLE_IOT_LOGGING"); + static constexpr uint32_t PUBLISH_FINDING_TO_SNS_HASH = ConstExprHashingUtils::HashString("PUBLISH_FINDING_TO_SNS"); MitigationActionType GetMitigationActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_DEVICE_CERTIFICATE_HASH) { return MitigationActionType::UPDATE_DEVICE_CERTIFICATE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ModelStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ModelStatus.cpp index e4ad8b89db0..f082856d561 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ModelStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ModelStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelStatusMapper { - static const int PENDING_BUILD_HASH = HashingUtils::HashString("PENDING_BUILD"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PENDING_BUILD_HASH = ConstExprHashingUtils::HashString("PENDING_BUILD"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ModelStatus GetModelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_BUILD_HASH) { return ModelStatus::PENDING_BUILD; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/NamedShadowIndexingMode.cpp b/generated/src/aws-cpp-sdk-iot/source/model/NamedShadowIndexingMode.cpp index d60c731c71e..6ac0f2eb57e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/NamedShadowIndexingMode.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/NamedShadowIndexingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NamedShadowIndexingModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int ON_HASH = HashingUtils::HashString("ON"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); NamedShadowIndexingMode GetNamedShadowIndexingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return NamedShadowIndexingMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/OTAUpdateStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/OTAUpdateStatus.cpp index fccb2263758..c1d98651c60 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/OTAUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/OTAUpdateStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OTAUpdateStatusMapper { - static const int CREATE_PENDING_HASH = HashingUtils::HashString("CREATE_PENDING"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_PENDING_HASH = ConstExprHashingUtils::HashString("CREATE_PENDING"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); OTAUpdateStatus GetOTAUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_PENDING_HASH) { return OTAUpdateStatus::CREATE_PENDING; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionAction.cpp b/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionAction.cpp index 7f45058c65e..357c74ccdbd 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionAction.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PackageVersionActionMapper { - static const int PUBLISH_HASH = HashingUtils::HashString("PUBLISH"); - static const int DEPRECATE_HASH = HashingUtils::HashString("DEPRECATE"); + static constexpr uint32_t PUBLISH_HASH = ConstExprHashingUtils::HashString("PUBLISH"); + static constexpr uint32_t DEPRECATE_HASH = ConstExprHashingUtils::HashString("DEPRECATE"); PackageVersionAction GetPackageVersionActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISH_HASH) { return PackageVersionAction::PUBLISH; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionStatus.cpp index fdce37671cf..56058586501 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/PackageVersionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PackageVersionStatusMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); PackageVersionStatus GetPackageVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return PackageVersionStatus::DRAFT; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/PolicyTemplateName.cpp b/generated/src/aws-cpp-sdk-iot/source/model/PolicyTemplateName.cpp index 66a94af1f99..e1b4dd329f6 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/PolicyTemplateName.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/PolicyTemplateName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PolicyTemplateNameMapper { - static const int BLANK_POLICY_HASH = HashingUtils::HashString("BLANK_POLICY"); + static constexpr uint32_t BLANK_POLICY_HASH = ConstExprHashingUtils::HashString("BLANK_POLICY"); PolicyTemplateName GetPolicyTemplateNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLANK_POLICY_HASH) { return PolicyTemplateName::BLANK_POLICY; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-iot/source/model/Protocol.cpp index b9a5fe1176b..9b9706d37f5 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/Protocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolMapper { - static const int MQTT_HASH = HashingUtils::HashString("MQTT"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t MQTT_HASH = ConstExprHashingUtils::HashString("MQTT"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MQTT_HASH) { return Protocol::MQTT; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ReportType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ReportType.cpp index dd95f48f24f..6f02fb3c89b 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ReportType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ReportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportTypeMapper { - static const int ERRORS_HASH = HashingUtils::HashString("ERRORS"); - static const int RESULTS_HASH = HashingUtils::HashString("RESULTS"); + static constexpr uint32_t ERRORS_HASH = ConstExprHashingUtils::HashString("ERRORS"); + static constexpr uint32_t RESULTS_HASH = ConstExprHashingUtils::HashString("RESULTS"); ReportType GetReportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERRORS_HASH) { return ReportType::ERRORS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ResourceType.cpp index dc60e0d6144..3361126d317 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ResourceType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ResourceTypeMapper { - static const int DEVICE_CERTIFICATE_HASH = HashingUtils::HashString("DEVICE_CERTIFICATE"); - static const int CA_CERTIFICATE_HASH = HashingUtils::HashString("CA_CERTIFICATE"); - static const int IOT_POLICY_HASH = HashingUtils::HashString("IOT_POLICY"); - static const int COGNITO_IDENTITY_POOL_HASH = HashingUtils::HashString("COGNITO_IDENTITY_POOL"); - static const int CLIENT_ID_HASH = HashingUtils::HashString("CLIENT_ID"); - static const int ACCOUNT_SETTINGS_HASH = HashingUtils::HashString("ACCOUNT_SETTINGS"); - static const int ROLE_ALIAS_HASH = HashingUtils::HashString("ROLE_ALIAS"); - static const int IAM_ROLE_HASH = HashingUtils::HashString("IAM_ROLE"); - static const int ISSUER_CERTIFICATE_HASH = HashingUtils::HashString("ISSUER_CERTIFICATE"); + static constexpr uint32_t DEVICE_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("DEVICE_CERTIFICATE"); + static constexpr uint32_t CA_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("CA_CERTIFICATE"); + static constexpr uint32_t IOT_POLICY_HASH = ConstExprHashingUtils::HashString("IOT_POLICY"); + static constexpr uint32_t COGNITO_IDENTITY_POOL_HASH = ConstExprHashingUtils::HashString("COGNITO_IDENTITY_POOL"); + static constexpr uint32_t CLIENT_ID_HASH = ConstExprHashingUtils::HashString("CLIENT_ID"); + static constexpr uint32_t ACCOUNT_SETTINGS_HASH = ConstExprHashingUtils::HashString("ACCOUNT_SETTINGS"); + static constexpr uint32_t ROLE_ALIAS_HASH = ConstExprHashingUtils::HashString("ROLE_ALIAS"); + static constexpr uint32_t IAM_ROLE_HASH = ConstExprHashingUtils::HashString("IAM_ROLE"); + static constexpr uint32_t ISSUER_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("ISSUER_CERTIFICATE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVICE_CERTIFICATE_HASH) { return ResourceType::DEVICE_CERTIFICATE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/RetryableFailureType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/RetryableFailureType.cpp index 457b424ffb1..e15333e497f 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/RetryableFailureType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/RetryableFailureType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RetryableFailureTypeMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); RetryableFailureType GetRetryableFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return RetryableFailureType::FAILED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateStatus.cpp index 5c8bf8d6d3a..033b6f17528 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServerCertificateStatusMapper { - static const int INVALID_HASH = HashingUtils::HashString("INVALID"); - static const int VALID_HASH = HashingUtils::HashString("VALID"); + static constexpr uint32_t INVALID_HASH = ConstExprHashingUtils::HashString("INVALID"); + static constexpr uint32_t VALID_HASH = ConstExprHashingUtils::HashString("VALID"); ServerCertificateStatus GetServerCertificateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_HASH) { return ServerCertificateStatus::INVALID; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ServiceType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ServiceType.cpp index d128ebb140d..2a91f65c8b8 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ServiceType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ServiceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServiceTypeMapper { - static const int DATA_HASH = HashingUtils::HashString("DATA"); - static const int CREDENTIAL_PROVIDER_HASH = HashingUtils::HashString("CREDENTIAL_PROVIDER"); - static const int JOBS_HASH = HashingUtils::HashString("JOBS"); + static constexpr uint32_t DATA_HASH = ConstExprHashingUtils::HashString("DATA"); + static constexpr uint32_t CREDENTIAL_PROVIDER_HASH = ConstExprHashingUtils::HashString("CREDENTIAL_PROVIDER"); + static constexpr uint32_t JOBS_HASH = ConstExprHashingUtils::HashString("JOBS"); ServiceType GetServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATA_HASH) { return ServiceType::DATA; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/Status.cpp b/generated/src/aws-cpp-sdk-iot/source/model/Status.cpp index 56cdf6d2df7..b17eb89046d 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/Status.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return Status::InProgress; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/TargetSelection.cpp b/generated/src/aws-cpp-sdk-iot/source/model/TargetSelection.cpp index 691bfc01092..fb8c7de420c 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/TargetSelection.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/TargetSelection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetSelectionMapper { - static const int CONTINUOUS_HASH = HashingUtils::HashString("CONTINUOUS"); - static const int SNAPSHOT_HASH = HashingUtils::HashString("SNAPSHOT"); + static constexpr uint32_t CONTINUOUS_HASH = ConstExprHashingUtils::HashString("CONTINUOUS"); + static constexpr uint32_t SNAPSHOT_HASH = ConstExprHashingUtils::HashString("SNAPSHOT"); TargetSelection GetTargetSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTINUOUS_HASH) { return TargetSelection::CONTINUOUS; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/TemplateType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/TemplateType.cpp index a6aa5daa77e..51e16d3b59b 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/TemplateType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/TemplateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateTypeMapper { - static const int FLEET_PROVISIONING_HASH = HashingUtils::HashString("FLEET_PROVISIONING"); - static const int JITP_HASH = HashingUtils::HashString("JITP"); + static constexpr uint32_t FLEET_PROVISIONING_HASH = ConstExprHashingUtils::HashString("FLEET_PROVISIONING"); + static constexpr uint32_t JITP_HASH = ConstExprHashingUtils::HashString("JITP"); TemplateType GetTemplateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLEET_PROVISIONING_HASH) { return TemplateType::FLEET_PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ThingConnectivityIndexingMode.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ThingConnectivityIndexingMode.cpp index 169d70b77d1..9490c9b2ee3 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ThingConnectivityIndexingMode.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ThingConnectivityIndexingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThingConnectivityIndexingModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); ThingConnectivityIndexingMode GetThingConnectivityIndexingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return ThingConnectivityIndexingMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ThingGroupIndexingMode.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ThingGroupIndexingMode.cpp index 6f1dd14b322..3b0cb729071 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ThingGroupIndexingMode.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ThingGroupIndexingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThingGroupIndexingModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int ON_HASH = HashingUtils::HashString("ON"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); ThingGroupIndexingMode GetThingGroupIndexingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return ThingGroupIndexingMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ThingIndexingMode.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ThingIndexingMode.cpp index 69025fd6b4c..93e6b6483e1 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ThingIndexingMode.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ThingIndexingMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ThingIndexingModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int REGISTRY_HASH = HashingUtils::HashString("REGISTRY"); - static const int REGISTRY_AND_SHADOW_HASH = HashingUtils::HashString("REGISTRY_AND_SHADOW"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t REGISTRY_HASH = ConstExprHashingUtils::HashString("REGISTRY"); + static constexpr uint32_t REGISTRY_AND_SHADOW_HASH = ConstExprHashingUtils::HashString("REGISTRY_AND_SHADOW"); ThingIndexingMode GetThingIndexingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return ThingIndexingMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp b/generated/src/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp index 9e2d2f56e6f..0e29f2f878e 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TopicRuleDestinationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); TopicRuleDestinationStatus GetTopicRuleDestinationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return TopicRuleDestinationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/VerificationState.cpp b/generated/src/aws-cpp-sdk-iot/source/model/VerificationState.cpp index fbfc6d2184f..c8f3c089d1d 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/VerificationState.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/VerificationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VerificationStateMapper { - static const int FALSE_POSITIVE_HASH = HashingUtils::HashString("FALSE_POSITIVE"); - static const int BENIGN_POSITIVE_HASH = HashingUtils::HashString("BENIGN_POSITIVE"); - static const int TRUE_POSITIVE_HASH = HashingUtils::HashString("TRUE_POSITIVE"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t FALSE_POSITIVE_HASH = ConstExprHashingUtils::HashString("FALSE_POSITIVE"); + static constexpr uint32_t BENIGN_POSITIVE_HASH = ConstExprHashingUtils::HashString("BENIGN_POSITIVE"); + static constexpr uint32_t TRUE_POSITIVE_HASH = ConstExprHashingUtils::HashString("TRUE_POSITIVE"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); VerificationState GetVerificationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FALSE_POSITIVE_HASH) { return VerificationState::FALSE_POSITIVE; diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ViolationEventType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ViolationEventType.cpp index 0752e21803f..0d8365456f3 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ViolationEventType.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ViolationEventType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ViolationEventTypeMapper { - static const int in_alarm_HASH = HashingUtils::HashString("in-alarm"); - static const int alarm_cleared_HASH = HashingUtils::HashString("alarm-cleared"); - static const int alarm_invalidated_HASH = HashingUtils::HashString("alarm-invalidated"); + static constexpr uint32_t in_alarm_HASH = ConstExprHashingUtils::HashString("in-alarm"); + static constexpr uint32_t alarm_cleared_HASH = ConstExprHashingUtils::HashString("alarm-cleared"); + static constexpr uint32_t alarm_invalidated_HASH = ConstExprHashingUtils::HashString("alarm-invalidated"); ViolationEventType GetViolationEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == in_alarm_HASH) { return ViolationEventType::in_alarm; diff --git a/generated/src/aws-cpp-sdk-iot1click-devices/source/IoT1ClickDevicesServiceErrors.cpp b/generated/src/aws-cpp-sdk-iot1click-devices/source/IoT1ClickDevicesServiceErrors.cpp index 155e4deced9..b767693f2b2 100644 --- a/generated/src/aws-cpp-sdk-iot1click-devices/source/IoT1ClickDevicesServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-iot1click-devices/source/IoT1ClickDevicesServiceErrors.cpp @@ -68,16 +68,16 @@ template<> AWS_IOT1CLICKDEVICESSERVICE_API InternalFailureException IoT1ClickDev namespace IoT1ClickDevicesServiceErrorMapper { -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int RANGE_NOT_SATISFIABLE_HASH = HashingUtils::HashString("RangeNotSatisfiableException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailedException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t RANGE_NOT_SATISFIABLE_HASH = ConstExprHashingUtils::HashString("RangeNotSatisfiableException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == FORBIDDEN_HASH) { diff --git a/generated/src/aws-cpp-sdk-iot1click-projects/source/IoT1ClickProjectsErrors.cpp b/generated/src/aws-cpp-sdk-iot1click-projects/source/IoT1ClickProjectsErrors.cpp index 75c02e8a1ce..181cb107311 100644 --- a/generated/src/aws-cpp-sdk-iot1click-projects/source/IoT1ClickProjectsErrors.cpp +++ b/generated/src/aws-cpp-sdk-iot1click-projects/source/IoT1ClickProjectsErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_IOT1CLICKPROJECTS_API InvalidRequestException IoT1ClickProjectsEr namespace IoT1ClickProjectsErrorMapper { -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/IoTAnalyticsErrors.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/IoTAnalyticsErrors.cpp index 16b137cfd68..54d505ea42f 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/IoTAnalyticsErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/IoTAnalyticsErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_IOTANALYTICS_API ResourceAlreadyExistsException IoTAnalyticsError namespace IoTAnalyticsErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/ChannelStatus.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/ChannelStatus.cpp index 41d9768fbf6..379dcd557d7 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/ChannelStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/ChannelStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChannelStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ChannelStatus GetChannelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ChannelStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/ComputeType.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/ComputeType.cpp index ee172e22c7c..adb211f6321 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/ComputeType.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/ComputeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComputeTypeMapper { - static const int ACU_1_HASH = HashingUtils::HashString("ACU_1"); - static const int ACU_2_HASH = HashingUtils::HashString("ACU_2"); + static constexpr uint32_t ACU_1_HASH = ConstExprHashingUtils::HashString("ACU_1"); + static constexpr uint32_t ACU_2_HASH = ConstExprHashingUtils::HashString("ACU_2"); ComputeType GetComputeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACU_1_HASH) { return ComputeType::ACU_1; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetActionType.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetActionType.cpp index 1e06dea027b..853bc80156a 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetActionType.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatasetActionTypeMapper { - static const int QUERY_HASH = HashingUtils::HashString("QUERY"); - static const int CONTAINER_HASH = HashingUtils::HashString("CONTAINER"); + static constexpr uint32_t QUERY_HASH = ConstExprHashingUtils::HashString("QUERY"); + static constexpr uint32_t CONTAINER_HASH = ConstExprHashingUtils::HashString("CONTAINER"); DatasetActionType GetDatasetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUERY_HASH) { return DatasetActionType::QUERY; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetContentState.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetContentState.cpp index 88faf1fd8d9..bcda61e3702 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetContentState.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetContentState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasetContentStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DatasetContentState GetDatasetContentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DatasetContentState::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetStatus.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetStatus.cpp index 65beb530f42..b02f601bbbf 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatasetStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasetStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); DatasetStatus GetDatasetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DatasetStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatastoreStatus.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatastoreStatus.cpp index 5be3534e830..bd93e7d346a 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatastoreStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/DatastoreStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatastoreStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); DatastoreStatus GetDatastoreStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DatastoreStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp index d4414290671..215f59da3ce 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileFormatTypeMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); FileFormatType GetFileFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return FileFormatType::JSON; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/LoggingLevel.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/LoggingLevel.cpp index 708ca63808c..2e1a185760d 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/LoggingLevel.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/LoggingLevel.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LoggingLevelMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); LoggingLevel GetLoggingLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LoggingLevel::ERROR_; diff --git a/generated/src/aws-cpp-sdk-iotanalytics/source/model/ReprocessingStatus.cpp b/generated/src/aws-cpp-sdk-iotanalytics/source/model/ReprocessingStatus.cpp index 883dbb2d761..de612fe2f14 100644 --- a/generated/src/aws-cpp-sdk-iotanalytics/source/model/ReprocessingStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotanalytics/source/model/ReprocessingStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReprocessingStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReprocessingStatus GetReprocessingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return ReprocessingStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp index e0e06ee727b..d85508232b4 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp @@ -18,13 +18,13 @@ namespace IoTDeviceAdvisor namespace IoTDeviceAdvisorErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/AuthenticationMethod.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/AuthenticationMethod.cpp index 8d721d64915..542f90ea017 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/AuthenticationMethod.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/AuthenticationMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthenticationMethodMapper { - static const int X509ClientCertificate_HASH = HashingUtils::HashString("X509ClientCertificate"); - static const int SignatureVersion4_HASH = HashingUtils::HashString("SignatureVersion4"); + static constexpr uint32_t X509ClientCertificate_HASH = ConstExprHashingUtils::HashString("X509ClientCertificate"); + static constexpr uint32_t SignatureVersion4_HASH = ConstExprHashingUtils::HashString("SignatureVersion4"); AuthenticationMethod GetAuthenticationMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == X509ClientCertificate_HASH) { return AuthenticationMethod::X509ClientCertificate; diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Protocol.cpp index 9655f850871..844f77dcb32 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Protocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProtocolMapper { - static const int MqttV3_1_1_HASH = HashingUtils::HashString("MqttV3_1_1"); - static const int MqttV5_HASH = HashingUtils::HashString("MqttV5"); - static const int MqttV3_1_1_OverWebSocket_HASH = HashingUtils::HashString("MqttV3_1_1_OverWebSocket"); - static const int MqttV5_OverWebSocket_HASH = HashingUtils::HashString("MqttV5_OverWebSocket"); + static constexpr uint32_t MqttV3_1_1_HASH = ConstExprHashingUtils::HashString("MqttV3_1_1"); + static constexpr uint32_t MqttV5_HASH = ConstExprHashingUtils::HashString("MqttV5"); + static constexpr uint32_t MqttV3_1_1_OverWebSocket_HASH = ConstExprHashingUtils::HashString("MqttV3_1_1_OverWebSocket"); + static constexpr uint32_t MqttV5_OverWebSocket_HASH = ConstExprHashingUtils::HashString("MqttV5_OverWebSocket"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MqttV3_1_1_HASH) { return Protocol::MqttV3_1_1; diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp index b8840a29800..4386531fe5f 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp @@ -20,20 +20,20 @@ namespace Aws namespace StatusMapper { - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int PASS_WITH_WARNINGS_HASH = HashingUtils::HashString("PASS_WITH_WARNINGS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t PASS_WITH_WARNINGS_HASH = ConstExprHashingUtils::HashString("PASS_WITH_WARNINGS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_HASH) { return Status::PASS; diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp index ad969fb52ec..4ea80817389 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SuiteRunStatusMapper { - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int PASS_WITH_WARNINGS_HASH = HashingUtils::HashString("PASS_WITH_WARNINGS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t PASS_WITH_WARNINGS_HASH = ConstExprHashingUtils::HashString("PASS_WITH_WARNINGS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); SuiteRunStatus GetSuiteRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_HASH) { return SuiteRunStatus::PASS; diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioStatus.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioStatus.cpp index 426628eec19..0e06cf4a6e6 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TestCaseScenarioStatusMapper { - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int PASS_WITH_WARNINGS_HASH = HashingUtils::HashString("PASS_WITH_WARNINGS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t PASS_WITH_WARNINGS_HASH = ConstExprHashingUtils::HashString("PASS_WITH_WARNINGS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); TestCaseScenarioStatus GetTestCaseScenarioStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_HASH) { return TestCaseScenarioStatus::PASS; diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioType.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioType.cpp index 55f2bc54586..d750bcdb8c2 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioType.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseScenarioType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestCaseScenarioTypeMapper { - static const int Advanced_HASH = HashingUtils::HashString("Advanced"); - static const int Basic_HASH = HashingUtils::HashString("Basic"); + static constexpr uint32_t Advanced_HASH = ConstExprHashingUtils::HashString("Advanced"); + static constexpr uint32_t Basic_HASH = ConstExprHashingUtils::HashString("Basic"); TestCaseScenarioType GetTestCaseScenarioTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Advanced_HASH) { return TestCaseScenarioType::Advanced; diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/IoTEventsDataErrors.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/IoTEventsDataErrors.cpp index d7be2638823..0aecc2e2d33 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/IoTEventsDataErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/IoTEventsDataErrors.cpp @@ -18,12 +18,12 @@ namespace IoTEventsData namespace IoTEventsDataErrorMapper { -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_REQUEST_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/model/AlarmStateName.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/model/AlarmStateName.cpp index 433b0d945fb..026096e5b24 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/model/AlarmStateName.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/model/AlarmStateName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AlarmStateNameMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ACKNOWLEDGED_HASH = HashingUtils::HashString("ACKNOWLEDGED"); - static const int SNOOZE_DISABLED_HASH = HashingUtils::HashString("SNOOZE_DISABLED"); - static const int LATCHED_HASH = HashingUtils::HashString("LATCHED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACKNOWLEDGED_HASH = ConstExprHashingUtils::HashString("ACKNOWLEDGED"); + static constexpr uint32_t SNOOZE_DISABLED_HASH = ConstExprHashingUtils::HashString("SNOOZE_DISABLED"); + static constexpr uint32_t LATCHED_HASH = ConstExprHashingUtils::HashString("LATCHED"); AlarmStateName GetAlarmStateNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return AlarmStateName::DISABLED; diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/model/ComparisonOperator.cpp index 242f147d3f2..deafdeb1c45 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/model/ComparisonOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GREATER_HASH = HashingUtils::HashString("GREATER"); - static const int GREATER_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_OR_EQUAL"); - static const int LESS_HASH = HashingUtils::HashString("LESS"); - static const int LESS_OR_EQUAL_HASH = HashingUtils::HashString("LESS_OR_EQUAL"); - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int NOT_EQUAL_HASH = HashingUtils::HashString("NOT_EQUAL"); + static constexpr uint32_t GREATER_HASH = ConstExprHashingUtils::HashString("GREATER"); + static constexpr uint32_t GREATER_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("GREATER_OR_EQUAL"); + static constexpr uint32_t LESS_HASH = ConstExprHashingUtils::HashString("LESS"); + static constexpr uint32_t LESS_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("LESS_OR_EQUAL"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_HASH) { return ComparisonOperator::GREATER; diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/model/CustomerActionName.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/model/CustomerActionName.cpp index 26137db6f6a..79dfb1c38b5 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/model/CustomerActionName.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/model/CustomerActionName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CustomerActionNameMapper { - static const int SNOOZE_HASH = HashingUtils::HashString("SNOOZE"); - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); - static const int ACKNOWLEDGE_HASH = HashingUtils::HashString("ACKNOWLEDGE"); - static const int RESET_HASH = HashingUtils::HashString("RESET"); + static constexpr uint32_t SNOOZE_HASH = ConstExprHashingUtils::HashString("SNOOZE"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); + static constexpr uint32_t ACKNOWLEDGE_HASH = ConstExprHashingUtils::HashString("ACKNOWLEDGE"); + static constexpr uint32_t RESET_HASH = ConstExprHashingUtils::HashString("RESET"); CustomerActionName GetCustomerActionNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNOOZE_HASH) { return CustomerActionName::SNOOZE; diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/model/ErrorCode.cpp index f27301021f5..a7df7883e03 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/model/ErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ErrorCodeMapper { - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int InvalidRequestException_HASH = HashingUtils::HashString("InvalidRequestException"); - static const int InternalFailureException_HASH = HashingUtils::HashString("InternalFailureException"); - static const int ServiceUnavailableException_HASH = HashingUtils::HashString("ServiceUnavailableException"); - static const int ThrottlingException_HASH = HashingUtils::HashString("ThrottlingException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t InvalidRequestException_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); + static constexpr uint32_t InternalFailureException_HASH = ConstExprHashingUtils::HashString("InternalFailureException"); + static constexpr uint32_t ServiceUnavailableException_HASH = ConstExprHashingUtils::HashString("ServiceUnavailableException"); + static constexpr uint32_t ThrottlingException_HASH = ConstExprHashingUtils::HashString("ThrottlingException"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFoundException_HASH) { return ErrorCode::ResourceNotFoundException; diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/model/EventType.cpp index f8816bf11c7..0d55731c5ce 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/model/EventType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventTypeMapper { - static const int STATE_CHANGE_HASH = HashingUtils::HashString("STATE_CHANGE"); + static constexpr uint32_t STATE_CHANGE_HASH = ConstExprHashingUtils::HashString("STATE_CHANGE"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATE_CHANGE_HASH) { return EventType::STATE_CHANGE; diff --git a/generated/src/aws-cpp-sdk-iotevents-data/source/model/TriggerType.cpp b/generated/src/aws-cpp-sdk-iotevents-data/source/model/TriggerType.cpp index 4267c10bc96..4cc30934c3d 100644 --- a/generated/src/aws-cpp-sdk-iotevents-data/source/model/TriggerType.cpp +++ b/generated/src/aws-cpp-sdk-iotevents-data/source/model/TriggerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TriggerTypeMapper { - static const int SNOOZE_TIMEOUT_HASH = HashingUtils::HashString("SNOOZE_TIMEOUT"); + static constexpr uint32_t SNOOZE_TIMEOUT_HASH = ConstExprHashingUtils::HashString("SNOOZE_TIMEOUT"); TriggerType GetTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNOOZE_TIMEOUT_HASH) { return TriggerType::SNOOZE_TIMEOUT; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/IoTEventsErrors.cpp b/generated/src/aws-cpp-sdk-iotevents/source/IoTEventsErrors.cpp index 25c658fb859..aa671aa42d1 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/IoTEventsErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/IoTEventsErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_IOTEVENTS_API ResourceAlreadyExistsException IoTEventsError::GetM namespace IoTEventsErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/AlarmModelVersionStatus.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/AlarmModelVersionStatus.cpp index 1c172a659de..854d663cdbd 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/AlarmModelVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/AlarmModelVersionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AlarmModelVersionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AlarmModelVersionStatus GetAlarmModelVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AlarmModelVersionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisResultLevel.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisResultLevel.cpp index 8486af91117..f90ee0c76f4 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisResultLevel.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisResultLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalysisResultLevelMapper { - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); AnalysisResultLevel GetAnalysisResultLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFO_HASH) { return AnalysisResultLevel::INFO; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisStatus.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisStatus.cpp index 1abb138d303..c10a4225b00 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/AnalysisStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalysisStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AnalysisStatus GetAnalysisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return AnalysisStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/ComparisonOperator.cpp index e8c2ef39629..8fdbe84083a 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/ComparisonOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GREATER_HASH = HashingUtils::HashString("GREATER"); - static const int GREATER_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_OR_EQUAL"); - static const int LESS_HASH = HashingUtils::HashString("LESS"); - static const int LESS_OR_EQUAL_HASH = HashingUtils::HashString("LESS_OR_EQUAL"); - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int NOT_EQUAL_HASH = HashingUtils::HashString("NOT_EQUAL"); + static constexpr uint32_t GREATER_HASH = ConstExprHashingUtils::HashString("GREATER"); + static constexpr uint32_t GREATER_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("GREATER_OR_EQUAL"); + static constexpr uint32_t LESS_HASH = ConstExprHashingUtils::HashString("LESS"); + static constexpr uint32_t LESS_OR_EQUAL_HASH = ConstExprHashingUtils::HashString("LESS_OR_EQUAL"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_HASH) { return ComparisonOperator::GREATER; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/DetectorModelVersionStatus.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/DetectorModelVersionStatus.cpp index 10223642c20..8fac795697e 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/DetectorModelVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/DetectorModelVersionStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DetectorModelVersionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DetectorModelVersionStatus GetDetectorModelVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DetectorModelVersionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/EvaluationMethod.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/EvaluationMethod.cpp index d5f4b460521..059bca16842 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/EvaluationMethod.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/EvaluationMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationMethodMapper { - static const int BATCH_HASH = HashingUtils::HashString("BATCH"); - static const int SERIAL_HASH = HashingUtils::HashString("SERIAL"); + static constexpr uint32_t BATCH_HASH = ConstExprHashingUtils::HashString("BATCH"); + static constexpr uint32_t SERIAL_HASH = ConstExprHashingUtils::HashString("SERIAL"); EvaluationMethod GetEvaluationMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BATCH_HASH) { return EvaluationMethod::BATCH; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/InputStatus.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/InputStatus.cpp index bc4e13b45ac..9c839269b73 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/InputStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/InputStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InputStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); InputStatus GetInputStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return InputStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/LoggingLevel.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/LoggingLevel.cpp index 076e61c9d85..3f148bf019a 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/LoggingLevel.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/LoggingLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LoggingLevelMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); LoggingLevel GetLoggingLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LoggingLevel::ERROR_; diff --git a/generated/src/aws-cpp-sdk-iotevents/source/model/PayloadType.cpp b/generated/src/aws-cpp-sdk-iotevents/source/model/PayloadType.cpp index 0c8948ed663..70f812eae07 100644 --- a/generated/src/aws-cpp-sdk-iotevents/source/model/PayloadType.cpp +++ b/generated/src/aws-cpp-sdk-iotevents/source/model/PayloadType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PayloadTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); PayloadType GetPayloadTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return PayloadType::STRING; diff --git a/generated/src/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp b/generated/src/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp index 3eb36518a0d..6ae38f97a6f 100644 --- a/generated/src/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp @@ -18,14 +18,14 @@ namespace IoTFleetHub namespace IoTFleetHubErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp b/generated/src/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp index 36f36233920..f783d6c952d 100644 --- a/generated/src/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp +++ b/generated/src/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ApplicationStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ApplicationState GetApplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ApplicationState::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseErrors.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseErrors.cpp index e2c3953b474..86707fe2ed1 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseErrors.cpp @@ -82,17 +82,17 @@ template<> AWS_IOTFLEETWISE_API InvalidSignalsException IoTFleetWiseError::GetMo namespace IoTFleetWiseErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int DECODER_MANIFEST_VALIDATION_HASH = HashingUtils::HashString("DecoderManifestValidationException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_NODE_HASH = HashingUtils::HashString("InvalidNodeException"); -static const int INVALID_SIGNALS_HASH = HashingUtils::HashString("InvalidSignalsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t DECODER_MANIFEST_VALIDATION_HASH = ConstExprHashingUtils::HashString("DecoderManifestValidationException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_NODE_HASH = ConstExprHashingUtils::HashString("InvalidNodeException"); +static constexpr uint32_t INVALID_SIGNALS_HASH = ConstExprHashingUtils::HashString("InvalidSignalsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/CampaignStatus.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/CampaignStatus.cpp index 5afaa5abc58..860a06469b9 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/CampaignStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/CampaignStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CampaignStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int WAITING_FOR_APPROVAL_HASH = HashingUtils::HashString("WAITING_FOR_APPROVAL"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t WAITING_FOR_APPROVAL_HASH = ConstExprHashingUtils::HashString("WAITING_FOR_APPROVAL"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); CampaignStatus GetCampaignStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CampaignStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/Compression.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/Compression.cpp index 0bfe1c943e6..622dac51884 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/Compression.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/Compression.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompressionMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int SNAPPY_HASH = HashingUtils::HashString("SNAPPY"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t SNAPPY_HASH = ConstExprHashingUtils::HashString("SNAPPY"); Compression GetCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return Compression::OFF; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DataFormat.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DataFormat.cpp index 395aec70ec9..60bc489f5b7 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DataFormat.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataFormatMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); DataFormat GetDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return DataFormat::JSON; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DiagnosticsMode.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DiagnosticsMode.cpp index d425861e111..377112ddee3 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DiagnosticsMode.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/DiagnosticsMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DiagnosticsModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int SEND_ACTIVE_DTCS_HASH = HashingUtils::HashString("SEND_ACTIVE_DTCS"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t SEND_ACTIVE_DTCS_HASH = ConstExprHashingUtils::HashString("SEND_ACTIVE_DTCS"); DiagnosticsMode GetDiagnosticsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return DiagnosticsMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionStatus.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionStatus.cpp index f3e694ac906..9c913711385 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EncryptionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILURE_HASH = HashingUtils::HashString("FAILURE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILURE_HASH = ConstExprHashingUtils::HashString("FAILURE"); EncryptionStatus GetEncryptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return EncryptionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionType.cpp index 8d34599e645..df41c16f362 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int KMS_BASED_ENCRYPTION_HASH = HashingUtils::HashString("KMS_BASED_ENCRYPTION"); - static const int FLEETWISE_DEFAULT_ENCRYPTION_HASH = HashingUtils::HashString("FLEETWISE_DEFAULT_ENCRYPTION"); + static constexpr uint32_t KMS_BASED_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("KMS_BASED_ENCRYPTION"); + static constexpr uint32_t FLEETWISE_DEFAULT_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("FLEETWISE_DEFAULT_ENCRYPTION"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KMS_BASED_ENCRYPTION_HASH) { return EncryptionType::KMS_BASED_ENCRYPTION; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/LogType.cpp index cb255fb8aff..87806484ecb 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/LogType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogTypeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return LogType::OFF; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ManifestStatus.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ManifestStatus.cpp index 4e2832d0cd7..2b3b948720e 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ManifestStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ManifestStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManifestStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); ManifestStatus GetManifestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ManifestStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceFailureReason.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceFailureReason.cpp index 44ea8ab1a57..587c7e9ab6d 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceFailureReason.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceFailureReason.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NetworkInterfaceFailureReasonMapper { - static const int DUPLICATE_NETWORK_INTERFACE_HASH = HashingUtils::HashString("DUPLICATE_NETWORK_INTERFACE"); - static const int CONFLICTING_NETWORK_INTERFACE_HASH = HashingUtils::HashString("CONFLICTING_NETWORK_INTERFACE"); - static const int NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS_HASH = HashingUtils::HashString("NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS"); - static const int CAN_NETWORK_INTERFACE_INFO_IS_NULL_HASH = HashingUtils::HashString("CAN_NETWORK_INTERFACE_INFO_IS_NULL"); - static const int OBD_NETWORK_INTERFACE_INFO_IS_NULL_HASH = HashingUtils::HashString("OBD_NETWORK_INTERFACE_INFO_IS_NULL"); - static const int NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS_HASH = HashingUtils::HashString("NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS"); + static constexpr uint32_t DUPLICATE_NETWORK_INTERFACE_HASH = ConstExprHashingUtils::HashString("DUPLICATE_NETWORK_INTERFACE"); + static constexpr uint32_t CONFLICTING_NETWORK_INTERFACE_HASH = ConstExprHashingUtils::HashString("CONFLICTING_NETWORK_INTERFACE"); + static constexpr uint32_t NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE_TO_ADD_ALREADY_EXISTS"); + static constexpr uint32_t CAN_NETWORK_INTERFACE_INFO_IS_NULL_HASH = ConstExprHashingUtils::HashString("CAN_NETWORK_INTERFACE_INFO_IS_NULL"); + static constexpr uint32_t OBD_NETWORK_INTERFACE_INFO_IS_NULL_HASH = ConstExprHashingUtils::HashString("OBD_NETWORK_INTERFACE_INFO_IS_NULL"); + static constexpr uint32_t NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE_TO_REMOVE_ASSOCIATED_WITH_SIGNALS"); NetworkInterfaceFailureReason GetNetworkInterfaceFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_NETWORK_INTERFACE_HASH) { return NetworkInterfaceFailureReason::DUPLICATE_NETWORK_INTERFACE; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceType.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceType.cpp index 705419ee8a2..83177e4ce6f 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceType.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NetworkInterfaceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkInterfaceTypeMapper { - static const int CAN_INTERFACE_HASH = HashingUtils::HashString("CAN_INTERFACE"); - static const int OBD_INTERFACE_HASH = HashingUtils::HashString("OBD_INTERFACE"); + static constexpr uint32_t CAN_INTERFACE_HASH = ConstExprHashingUtils::HashString("CAN_INTERFACE"); + static constexpr uint32_t OBD_INTERFACE_HASH = ConstExprHashingUtils::HashString("OBD_INTERFACE"); NetworkInterfaceType GetNetworkInterfaceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAN_INTERFACE_HASH) { return NetworkInterfaceType::CAN_INTERFACE; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NodeDataType.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NodeDataType.cpp index acac795da9b..07fa52c58cc 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NodeDataType.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/NodeDataType.cpp @@ -20,38 +20,38 @@ namespace Aws namespace NodeDataTypeMapper { - static const int INT8_HASH = HashingUtils::HashString("INT8"); - static const int UINT8_HASH = HashingUtils::HashString("UINT8"); - static const int INT16_HASH = HashingUtils::HashString("INT16"); - static const int UINT16_HASH = HashingUtils::HashString("UINT16"); - static const int INT32_HASH = HashingUtils::HashString("INT32"); - static const int UINT32_HASH = HashingUtils::HashString("UINT32"); - static const int INT64_HASH = HashingUtils::HashString("INT64"); - static const int UINT64_HASH = HashingUtils::HashString("UINT64"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int FLOAT_HASH = HashingUtils::HashString("FLOAT"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int UNIX_TIMESTAMP_HASH = HashingUtils::HashString("UNIX_TIMESTAMP"); - static const int INT8_ARRAY_HASH = HashingUtils::HashString("INT8_ARRAY"); - static const int UINT8_ARRAY_HASH = HashingUtils::HashString("UINT8_ARRAY"); - static const int INT16_ARRAY_HASH = HashingUtils::HashString("INT16_ARRAY"); - static const int UINT16_ARRAY_HASH = HashingUtils::HashString("UINT16_ARRAY"); - static const int INT32_ARRAY_HASH = HashingUtils::HashString("INT32_ARRAY"); - static const int UINT32_ARRAY_HASH = HashingUtils::HashString("UINT32_ARRAY"); - static const int INT64_ARRAY_HASH = HashingUtils::HashString("INT64_ARRAY"); - static const int UINT64_ARRAY_HASH = HashingUtils::HashString("UINT64_ARRAY"); - static const int BOOLEAN_ARRAY_HASH = HashingUtils::HashString("BOOLEAN_ARRAY"); - static const int FLOAT_ARRAY_HASH = HashingUtils::HashString("FLOAT_ARRAY"); - static const int DOUBLE_ARRAY_HASH = HashingUtils::HashString("DOUBLE_ARRAY"); - static const int STRING_ARRAY_HASH = HashingUtils::HashString("STRING_ARRAY"); - static const int UNIX_TIMESTAMP_ARRAY_HASH = HashingUtils::HashString("UNIX_TIMESTAMP_ARRAY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t INT8_HASH = ConstExprHashingUtils::HashString("INT8"); + static constexpr uint32_t UINT8_HASH = ConstExprHashingUtils::HashString("UINT8"); + static constexpr uint32_t INT16_HASH = ConstExprHashingUtils::HashString("INT16"); + static constexpr uint32_t UINT16_HASH = ConstExprHashingUtils::HashString("UINT16"); + static constexpr uint32_t INT32_HASH = ConstExprHashingUtils::HashString("INT32"); + static constexpr uint32_t UINT32_HASH = ConstExprHashingUtils::HashString("UINT32"); + static constexpr uint32_t INT64_HASH = ConstExprHashingUtils::HashString("INT64"); + static constexpr uint32_t UINT64_HASH = ConstExprHashingUtils::HashString("UINT64"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t FLOAT_HASH = ConstExprHashingUtils::HashString("FLOAT"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t UNIX_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("UNIX_TIMESTAMP"); + static constexpr uint32_t INT8_ARRAY_HASH = ConstExprHashingUtils::HashString("INT8_ARRAY"); + static constexpr uint32_t UINT8_ARRAY_HASH = ConstExprHashingUtils::HashString("UINT8_ARRAY"); + static constexpr uint32_t INT16_ARRAY_HASH = ConstExprHashingUtils::HashString("INT16_ARRAY"); + static constexpr uint32_t UINT16_ARRAY_HASH = ConstExprHashingUtils::HashString("UINT16_ARRAY"); + static constexpr uint32_t INT32_ARRAY_HASH = ConstExprHashingUtils::HashString("INT32_ARRAY"); + static constexpr uint32_t UINT32_ARRAY_HASH = ConstExprHashingUtils::HashString("UINT32_ARRAY"); + static constexpr uint32_t INT64_ARRAY_HASH = ConstExprHashingUtils::HashString("INT64_ARRAY"); + static constexpr uint32_t UINT64_ARRAY_HASH = ConstExprHashingUtils::HashString("UINT64_ARRAY"); + static constexpr uint32_t BOOLEAN_ARRAY_HASH = ConstExprHashingUtils::HashString("BOOLEAN_ARRAY"); + static constexpr uint32_t FLOAT_ARRAY_HASH = ConstExprHashingUtils::HashString("FLOAT_ARRAY"); + static constexpr uint32_t DOUBLE_ARRAY_HASH = ConstExprHashingUtils::HashString("DOUBLE_ARRAY"); + static constexpr uint32_t STRING_ARRAY_HASH = ConstExprHashingUtils::HashString("STRING_ARRAY"); + static constexpr uint32_t UNIX_TIMESTAMP_ARRAY_HASH = ConstExprHashingUtils::HashString("UNIX_TIMESTAMP_ARRAY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); NodeDataType GetNodeDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INT8_HASH) { return NodeDataType::INT8; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/RegistrationStatus.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/RegistrationStatus.cpp index ec86114b370..e2265f0770f 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/RegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/RegistrationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RegistrationStatusMapper { - static const int REGISTRATION_PENDING_HASH = HashingUtils::HashString("REGISTRATION_PENDING"); - static const int REGISTRATION_SUCCESS_HASH = HashingUtils::HashString("REGISTRATION_SUCCESS"); - static const int REGISTRATION_FAILURE_HASH = HashingUtils::HashString("REGISTRATION_FAILURE"); + static constexpr uint32_t REGISTRATION_PENDING_HASH = ConstExprHashingUtils::HashString("REGISTRATION_PENDING"); + static constexpr uint32_t REGISTRATION_SUCCESS_HASH = ConstExprHashingUtils::HashString("REGISTRATION_SUCCESS"); + static constexpr uint32_t REGISTRATION_FAILURE_HASH = ConstExprHashingUtils::HashString("REGISTRATION_FAILURE"); RegistrationStatus GetRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTRATION_PENDING_HASH) { return RegistrationStatus::REGISTRATION_PENDING; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderFailureReason.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderFailureReason.cpp index e6ec8292860..50e4ec8ae1c 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderFailureReason.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderFailureReason.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SignalDecoderFailureReasonMapper { - static const int DUPLICATE_SIGNAL_HASH = HashingUtils::HashString("DUPLICATE_SIGNAL"); - static const int CONFLICTING_SIGNAL_HASH = HashingUtils::HashString("CONFLICTING_SIGNAL"); - static const int SIGNAL_TO_ADD_ALREADY_EXISTS_HASH = HashingUtils::HashString("SIGNAL_TO_ADD_ALREADY_EXISTS"); - static const int SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE_HASH = HashingUtils::HashString("SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE"); - static const int NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE_HASH = HashingUtils::HashString("NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE"); - static const int SIGNAL_NOT_IN_MODEL_HASH = HashingUtils::HashString("SIGNAL_NOT_IN_MODEL"); - static const int CAN_SIGNAL_INFO_IS_NULL_HASH = HashingUtils::HashString("CAN_SIGNAL_INFO_IS_NULL"); - static const int OBD_SIGNAL_INFO_IS_NULL_HASH = HashingUtils::HashString("OBD_SIGNAL_INFO_IS_NULL"); - static const int NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL_HASH = HashingUtils::HashString("NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL"); + static constexpr uint32_t DUPLICATE_SIGNAL_HASH = ConstExprHashingUtils::HashString("DUPLICATE_SIGNAL"); + static constexpr uint32_t CONFLICTING_SIGNAL_HASH = ConstExprHashingUtils::HashString("CONFLICTING_SIGNAL"); + static constexpr uint32_t SIGNAL_TO_ADD_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("SIGNAL_TO_ADD_ALREADY_EXISTS"); + static constexpr uint32_t SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE_HASH = ConstExprHashingUtils::HashString("SIGNAL_NOT_ASSOCIATED_WITH_NETWORK_INTERFACE"); + static constexpr uint32_t NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE_TYPE_INCOMPATIBLE_WITH_SIGNAL_DECODER_TYPE"); + static constexpr uint32_t SIGNAL_NOT_IN_MODEL_HASH = ConstExprHashingUtils::HashString("SIGNAL_NOT_IN_MODEL"); + static constexpr uint32_t CAN_SIGNAL_INFO_IS_NULL_HASH = ConstExprHashingUtils::HashString("CAN_SIGNAL_INFO_IS_NULL"); + static constexpr uint32_t OBD_SIGNAL_INFO_IS_NULL_HASH = ConstExprHashingUtils::HashString("OBD_SIGNAL_INFO_IS_NULL"); + static constexpr uint32_t NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL_HASH = ConstExprHashingUtils::HashString("NO_DECODER_INFO_FOR_SIGNAL_IN_MODEL"); SignalDecoderFailureReason GetSignalDecoderFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_SIGNAL_HASH) { return SignalDecoderFailureReason::DUPLICATE_SIGNAL; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderType.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderType.cpp index d4d42576bba..d7b65fba47f 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderType.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SignalDecoderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SignalDecoderTypeMapper { - static const int CAN_SIGNAL_HASH = HashingUtils::HashString("CAN_SIGNAL"); - static const int OBD_SIGNAL_HASH = HashingUtils::HashString("OBD_SIGNAL"); + static constexpr uint32_t CAN_SIGNAL_HASH = ConstExprHashingUtils::HashString("CAN_SIGNAL"); + static constexpr uint32_t OBD_SIGNAL_HASH = ConstExprHashingUtils::HashString("OBD_SIGNAL"); SignalDecoderType GetSignalDecoderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAN_SIGNAL_HASH) { return SignalDecoderType::CAN_SIGNAL; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SpoolingMode.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SpoolingMode.cpp index 1d9510b7d9b..524b62ad7b3 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SpoolingMode.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/SpoolingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SpoolingModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int TO_DISK_HASH = HashingUtils::HashString("TO_DISK"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t TO_DISK_HASH = ConstExprHashingUtils::HashString("TO_DISK"); SpoolingMode GetSpoolingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return SpoolingMode::OFF; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/StorageCompressionFormat.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/StorageCompressionFormat.cpp index a7d8685b84a..859f99d78da 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/StorageCompressionFormat.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/StorageCompressionFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageCompressionFormatMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); StorageCompressionFormat GetStorageCompressionFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return StorageCompressionFormat::NONE; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/TriggerMode.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/TriggerMode.cpp index 35e73196912..9d58699d3c1 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/TriggerMode.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/TriggerMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TriggerModeMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int RISING_EDGE_HASH = HashingUtils::HashString("RISING_EDGE"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t RISING_EDGE_HASH = ConstExprHashingUtils::HashString("RISING_EDGE"); TriggerMode GetTriggerModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return TriggerMode::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateCampaignAction.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateCampaignAction.cpp index cb9524ee360..a3ac7f9e143 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateCampaignAction.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateCampaignAction.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UpdateCampaignActionMapper { - static const int APPROVE_HASH = HashingUtils::HashString("APPROVE"); - static const int SUSPEND_HASH = HashingUtils::HashString("SUSPEND"); - static const int RESUME_HASH = HashingUtils::HashString("RESUME"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); + static constexpr uint32_t APPROVE_HASH = ConstExprHashingUtils::HashString("APPROVE"); + static constexpr uint32_t SUSPEND_HASH = ConstExprHashingUtils::HashString("SUSPEND"); + static constexpr uint32_t RESUME_HASH = ConstExprHashingUtils::HashString("RESUME"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); UpdateCampaignAction GetUpdateCampaignActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVE_HASH) { return UpdateCampaignAction::APPROVE; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateMode.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateMode.cpp index 0973b093248..c4b01e7c548 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateMode.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/UpdateMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateModeMapper { - static const int Overwrite_HASH = HashingUtils::HashString("Overwrite"); - static const int Merge_HASH = HashingUtils::HashString("Merge"); + static constexpr uint32_t Overwrite_HASH = ConstExprHashingUtils::HashString("Overwrite"); + static constexpr uint32_t Merge_HASH = ConstExprHashingUtils::HashString("Merge"); UpdateMode GetUpdateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Overwrite_HASH) { return UpdateMode::Overwrite; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ValidationExceptionReason.cpp index afb9c14d8d7..86f9339b6c1 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleAssociationBehavior.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleAssociationBehavior.cpp index 179657946b1..cf247b927eb 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleAssociationBehavior.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleAssociationBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VehicleAssociationBehaviorMapper { - static const int CreateIotThing_HASH = HashingUtils::HashString("CreateIotThing"); - static const int ValidateIotThingExists_HASH = HashingUtils::HashString("ValidateIotThingExists"); + static constexpr uint32_t CreateIotThing_HASH = ConstExprHashingUtils::HashString("CreateIotThing"); + static constexpr uint32_t ValidateIotThingExists_HASH = ConstExprHashingUtils::HashString("ValidateIotThingExists"); VehicleAssociationBehavior GetVehicleAssociationBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreateIotThing_HASH) { return VehicleAssociationBehavior::CreateIotThing; diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleState.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleState.cpp index f69b5cbf3cd..474529fc179 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleState.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/model/VehicleState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VehicleStateMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); VehicleState GetVehicleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return VehicleState::CREATED; diff --git a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingErrors.cpp b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingErrors.cpp index 62f2b11f165..26b0b969b83 100644 --- a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingErrors.cpp @@ -18,12 +18,12 @@ namespace IoTSecureTunneling namespace IoTSecureTunnelingErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ClientMode.cpp b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ClientMode.cpp index 9e22e05f285..2bb5ab1f9ab 100644 --- a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ClientMode.cpp +++ b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ClientMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClientModeMapper { - static const int SOURCE_HASH = HashingUtils::HashString("SOURCE"); - static const int DESTINATION_HASH = HashingUtils::HashString("DESTINATION"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t SOURCE_HASH = ConstExprHashingUtils::HashString("SOURCE"); + static constexpr uint32_t DESTINATION_HASH = ConstExprHashingUtils::HashString("DESTINATION"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ClientMode GetClientModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE_HASH) { return ClientMode::SOURCE; diff --git a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ConnectionStatus.cpp index 96feca88c88..90e8b151ed2 100644 --- a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/ConnectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionStatusMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return ConnectionStatus::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/TunnelStatus.cpp b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/TunnelStatus.cpp index d8832929c92..c1d221f86e5 100644 --- a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/TunnelStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/model/TunnelStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TunnelStatusMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); TunnelStatus GetTunnelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return TunnelStatus::OPEN; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseErrors.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseErrors.cpp index c2a7cd2ccfe..ab83d3eb2b4 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseErrors.cpp @@ -40,17 +40,17 @@ template<> AWS_IOTSITEWISE_API ConflictingOperationException IoTSiteWiseError::G namespace IoTSiteWiseErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int CONFLICTING_OPERATION_HASH = HashingUtils::HashString("ConflictingOperationException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICTING_OPERATION_HASH = ConstExprHashingUtils::HashString("ConflictingOperationException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AggregateType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AggregateType.cpp index d64b181a913..f763c4679a9 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AggregateType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AggregateType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AggregateTypeMapper { - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int MAXIMUM_HASH = HashingUtils::HashString("MAXIMUM"); - static const int MINIMUM_HASH = HashingUtils::HashString("MINIMUM"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int STANDARD_DEVIATION_HASH = HashingUtils::HashString("STANDARD_DEVIATION"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t MAXIMUM_HASH = ConstExprHashingUtils::HashString("MAXIMUM"); + static constexpr uint32_t MINIMUM_HASH = ConstExprHashingUtils::HashString("MINIMUM"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t STANDARD_DEVIATION_HASH = ConstExprHashingUtils::HashString("STANDARD_DEVIATION"); AggregateType GetAggregateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVERAGE_HASH) { return AggregateType::AVERAGE; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetErrorCode.cpp index c913369d660..3a2bb23bcc2 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetErrorCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetErrorCodeMapper { - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); AssetErrorCode GetAssetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_FAILURE_HASH) { return AssetErrorCode::INTERNAL_FAILURE; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetModelState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetModelState.cpp index 552c4728dc7..7ef9a18782c 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetModelState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetModelState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AssetModelStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int PROPAGATING_HASH = HashingUtils::HashString("PROPAGATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t PROPAGATING_HASH = ConstExprHashingUtils::HashString("PROPAGATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AssetModelState GetAssetModelStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AssetModelState::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetRelationshipType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetRelationshipType.cpp index e454f25a5ce..f01c0bfa995 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetRelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetRelationshipType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetRelationshipTypeMapper { - static const int HIERARCHY_HASH = HashingUtils::HashString("HIERARCHY"); + static constexpr uint32_t HIERARCHY_HASH = ConstExprHashingUtils::HashString("HIERARCHY"); AssetRelationshipType GetAssetRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIERARCHY_HASH) { return AssetRelationshipType::HIERARCHY; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetState.cpp index a12efe977ae..5af87191d2e 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AssetState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssetStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AssetState GetAssetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AssetState::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AuthMode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AuthMode.cpp index 6859b7dc2ef..40b506ff693 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/AuthMode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/AuthMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthModeMapper { - static const int IAM_HASH = HashingUtils::HashString("IAM"); - static const int SSO_HASH = HashingUtils::HashString("SSO"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); + static constexpr uint32_t SSO_HASH = ConstExprHashingUtils::HashString("SSO"); AuthMode GetAuthModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_HASH) { return AuthMode::IAM; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchEntryCompletionStatus.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchEntryCompletionStatus.cpp index 6de9fec91f2..31a5277b74d 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchEntryCompletionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchEntryCompletionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BatchEntryCompletionStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); BatchEntryCompletionStatus GetBatchEntryCompletionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return BatchEntryCompletionStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyAggregatesErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyAggregatesErrorCode.cpp index ba1b7c101f4..b0e7c1c9fbc 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyAggregatesErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyAggregatesErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatchGetAssetPropertyAggregatesErrorCodeMapper { - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int InvalidRequestException_HASH = HashingUtils::HashString("InvalidRequestException"); - static const int AccessDeniedException_HASH = HashingUtils::HashString("AccessDeniedException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t InvalidRequestException_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); + static constexpr uint32_t AccessDeniedException_HASH = ConstExprHashingUtils::HashString("AccessDeniedException"); BatchGetAssetPropertyAggregatesErrorCode GetBatchGetAssetPropertyAggregatesErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFoundException_HASH) { return BatchGetAssetPropertyAggregatesErrorCode::ResourceNotFoundException; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueErrorCode.cpp index ea488339da5..a1895180a06 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatchGetAssetPropertyValueErrorCodeMapper { - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int InvalidRequestException_HASH = HashingUtils::HashString("InvalidRequestException"); - static const int AccessDeniedException_HASH = HashingUtils::HashString("AccessDeniedException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t InvalidRequestException_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); + static constexpr uint32_t AccessDeniedException_HASH = ConstExprHashingUtils::HashString("AccessDeniedException"); BatchGetAssetPropertyValueErrorCode GetBatchGetAssetPropertyValueErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFoundException_HASH) { return BatchGetAssetPropertyValueErrorCode::ResourceNotFoundException; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueHistoryErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueHistoryErrorCode.cpp index ee93d4652bd..70a11a3e12e 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueHistoryErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchGetAssetPropertyValueHistoryErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatchGetAssetPropertyValueHistoryErrorCodeMapper { - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int InvalidRequestException_HASH = HashingUtils::HashString("InvalidRequestException"); - static const int AccessDeniedException_HASH = HashingUtils::HashString("AccessDeniedException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t InvalidRequestException_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); + static constexpr uint32_t AccessDeniedException_HASH = ConstExprHashingUtils::HashString("AccessDeniedException"); BatchGetAssetPropertyValueHistoryErrorCode GetBatchGetAssetPropertyValueHistoryErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFoundException_HASH) { return BatchGetAssetPropertyValueHistoryErrorCode::ResourceNotFoundException; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchPutAssetPropertyValueErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchPutAssetPropertyValueErrorCode.cpp index d0a69207dd1..fe58f0916bc 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchPutAssetPropertyValueErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/BatchPutAssetPropertyValueErrorCode.cpp @@ -20,20 +20,20 @@ namespace Aws namespace BatchPutAssetPropertyValueErrorCodeMapper { - static const int ResourceNotFoundException_HASH = HashingUtils::HashString("ResourceNotFoundException"); - static const int InvalidRequestException_HASH = HashingUtils::HashString("InvalidRequestException"); - static const int InternalFailureException_HASH = HashingUtils::HashString("InternalFailureException"); - static const int ServiceUnavailableException_HASH = HashingUtils::HashString("ServiceUnavailableException"); - static const int ThrottlingException_HASH = HashingUtils::HashString("ThrottlingException"); - static const int LimitExceededException_HASH = HashingUtils::HashString("LimitExceededException"); - static const int ConflictingOperationException_HASH = HashingUtils::HashString("ConflictingOperationException"); - static const int TimestampOutOfRangeException_HASH = HashingUtils::HashString("TimestampOutOfRangeException"); - static const int AccessDeniedException_HASH = HashingUtils::HashString("AccessDeniedException"); + static constexpr uint32_t ResourceNotFoundException_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundException"); + static constexpr uint32_t InvalidRequestException_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); + static constexpr uint32_t InternalFailureException_HASH = ConstExprHashingUtils::HashString("InternalFailureException"); + static constexpr uint32_t ServiceUnavailableException_HASH = ConstExprHashingUtils::HashString("ServiceUnavailableException"); + static constexpr uint32_t ThrottlingException_HASH = ConstExprHashingUtils::HashString("ThrottlingException"); + static constexpr uint32_t LimitExceededException_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); + static constexpr uint32_t ConflictingOperationException_HASH = ConstExprHashingUtils::HashString("ConflictingOperationException"); + static constexpr uint32_t TimestampOutOfRangeException_HASH = ConstExprHashingUtils::HashString("TimestampOutOfRangeException"); + static constexpr uint32_t AccessDeniedException_HASH = ConstExprHashingUtils::HashString("AccessDeniedException"); BatchPutAssetPropertyValueErrorCode GetBatchPutAssetPropertyValueErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFoundException_HASH) { return BatchPutAssetPropertyValueErrorCode::ResourceNotFoundException; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/CapabilitySyncStatus.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/CapabilitySyncStatus.cpp index a1e01a3c495..467e3df1c82 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/CapabilitySyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/CapabilitySyncStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CapabilitySyncStatusMapper { - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int OUT_OF_SYNC_HASH = HashingUtils::HashString("OUT_OF_SYNC"); - static const int SYNC_FAILED_HASH = HashingUtils::HashString("SYNC_FAILED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t OUT_OF_SYNC_HASH = ConstExprHashingUtils::HashString("OUT_OF_SYNC"); + static constexpr uint32_t SYNC_FAILED_HASH = ConstExprHashingUtils::HashString("SYNC_FAILED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); CapabilitySyncStatus GetCapabilitySyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_SYNC_HASH) { return CapabilitySyncStatus::IN_SYNC; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ColumnName.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ColumnName.cpp index 95ef580b51f..757a37e72da 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ColumnName.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ColumnName.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ColumnNameMapper { - static const int ALIAS_HASH = HashingUtils::HashString("ALIAS"); - static const int ASSET_ID_HASH = HashingUtils::HashString("ASSET_ID"); - static const int PROPERTY_ID_HASH = HashingUtils::HashString("PROPERTY_ID"); - static const int DATA_TYPE_HASH = HashingUtils::HashString("DATA_TYPE"); - static const int TIMESTAMP_SECONDS_HASH = HashingUtils::HashString("TIMESTAMP_SECONDS"); - static const int TIMESTAMP_NANO_OFFSET_HASH = HashingUtils::HashString("TIMESTAMP_NANO_OFFSET"); - static const int QUALITY_HASH = HashingUtils::HashString("QUALITY"); - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); + static constexpr uint32_t ALIAS_HASH = ConstExprHashingUtils::HashString("ALIAS"); + static constexpr uint32_t ASSET_ID_HASH = ConstExprHashingUtils::HashString("ASSET_ID"); + static constexpr uint32_t PROPERTY_ID_HASH = ConstExprHashingUtils::HashString("PROPERTY_ID"); + static constexpr uint32_t DATA_TYPE_HASH = ConstExprHashingUtils::HashString("DATA_TYPE"); + static constexpr uint32_t TIMESTAMP_SECONDS_HASH = ConstExprHashingUtils::HashString("TIMESTAMP_SECONDS"); + static constexpr uint32_t TIMESTAMP_NANO_OFFSET_HASH = ConstExprHashingUtils::HashString("TIMESTAMP_NANO_OFFSET"); + static constexpr uint32_t QUALITY_HASH = ConstExprHashingUtils::HashString("QUALITY"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); ColumnName GetColumnNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALIAS_HASH) { return ColumnName::ALIAS; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ComputeLocation.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ComputeLocation.cpp index f50efbd7dac..747519efd54 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ComputeLocation.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ComputeLocation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComputeLocationMapper { - static const int EDGE_HASH = HashingUtils::HashString("EDGE"); - static const int CLOUD_HASH = HashingUtils::HashString("CLOUD"); + static constexpr uint32_t EDGE_HASH = ConstExprHashingUtils::HashString("EDGE"); + static constexpr uint32_t CLOUD_HASH = ConstExprHashingUtils::HashString("CLOUD"); ComputeLocation GetComputeLocationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EDGE_HASH) { return ComputeLocation::EDGE; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ConfigurationState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ConfigurationState.cpp index 41dd57e1558..8d84c2f444b 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ConfigurationState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ConfigurationState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigurationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ConfigurationState GetConfigurationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ConfigurationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/DetailedErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/DetailedErrorCode.cpp index 932ac5d9e5f..bbebbd0bad8 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/DetailedErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/DetailedErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DetailedErrorCodeMapper { - static const int INCOMPATIBLE_COMPUTE_LOCATION_HASH = HashingUtils::HashString("INCOMPATIBLE_COMPUTE_LOCATION"); - static const int INCOMPATIBLE_FORWARDING_CONFIGURATION_HASH = HashingUtils::HashString("INCOMPATIBLE_FORWARDING_CONFIGURATION"); + static constexpr uint32_t INCOMPATIBLE_COMPUTE_LOCATION_HASH = ConstExprHashingUtils::HashString("INCOMPATIBLE_COMPUTE_LOCATION"); + static constexpr uint32_t INCOMPATIBLE_FORWARDING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INCOMPATIBLE_FORWARDING_CONFIGURATION"); DetailedErrorCode GetDetailedErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCOMPATIBLE_COMPUTE_LOCATION_HASH) { return DetailedErrorCode::INCOMPATIBLE_COMPUTE_LOCATION; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/DisassociatedDataStorageState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/DisassociatedDataStorageState.cpp index 4958c8c26f2..0491f99ee81 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/DisassociatedDataStorageState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/DisassociatedDataStorageState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DisassociatedDataStorageStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DisassociatedDataStorageState GetDisassociatedDataStorageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DisassociatedDataStorageState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/EncryptionType.cpp index 85117cc5679..c0f856eb8bf 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int SITEWISE_DEFAULT_ENCRYPTION_HASH = HashingUtils::HashString("SITEWISE_DEFAULT_ENCRYPTION"); - static const int KMS_BASED_ENCRYPTION_HASH = HashingUtils::HashString("KMS_BASED_ENCRYPTION"); + static constexpr uint32_t SITEWISE_DEFAULT_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("SITEWISE_DEFAULT_ENCRYPTION"); + static constexpr uint32_t KMS_BASED_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("KMS_BASED_ENCRYPTION"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SITEWISE_DEFAULT_ENCRYPTION_HASH) { return EncryptionType::SITEWISE_DEFAULT_ENCRYPTION; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ErrorCode.cpp index d4f8b3a8ed4..f50f12cbc59 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorCodeMapper { - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_ERROR_HASH) { return ErrorCode::VALIDATION_ERROR; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ForwardingConfigState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ForwardingConfigState.cpp index d652139cbca..29b0cb05bc5 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ForwardingConfigState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ForwardingConfigState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ForwardingConfigStateMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); ForwardingConfigState GetForwardingConfigStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return ForwardingConfigState::DISABLED; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/IdentityType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/IdentityType.cpp index 8dc420e1a2d..53db5cbe3fe 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/IdentityType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/IdentityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IdentityTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int IAM_HASH = HashingUtils::HashString("IAM"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); IdentityType GetIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return IdentityType::USER; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ImageFileType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ImageFileType.cpp index 750e1f08263..d4427f5a410 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ImageFileType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ImageFileType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImageFileTypeMapper { - static const int PNG_HASH = HashingUtils::HashString("PNG"); + static constexpr uint32_t PNG_HASH = ConstExprHashingUtils::HashString("PNG"); ImageFileType GetImageFileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PNG_HASH) { return ImageFileType::PNG; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/JobStatus.cpp index 1f7a03775fc..73047463e89 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/JobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return JobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetModelPropertiesFilter.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetModelPropertiesFilter.cpp index cc15d419468..461be5e4610 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetModelPropertiesFilter.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetModelPropertiesFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListAssetModelPropertiesFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int BASE_HASH = HashingUtils::HashString("BASE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t BASE_HASH = ConstExprHashingUtils::HashString("BASE"); ListAssetModelPropertiesFilter GetListAssetModelPropertiesFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ListAssetModelPropertiesFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetPropertiesFilter.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetPropertiesFilter.cpp index fbfc30cabb1..f930a0f551a 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetPropertiesFilter.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetPropertiesFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListAssetPropertiesFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int BASE_HASH = HashingUtils::HashString("BASE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t BASE_HASH = ConstExprHashingUtils::HashString("BASE"); ListAssetPropertiesFilter GetListAssetPropertiesFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ListAssetPropertiesFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetsFilter.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetsFilter.cpp index f9bb64033b8..7df4f43b887 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetsFilter.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListAssetsFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListAssetsFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int TOP_LEVEL_HASH = HashingUtils::HashString("TOP_LEVEL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t TOP_LEVEL_HASH = ConstExprHashingUtils::HashString("TOP_LEVEL"); ListAssetsFilter GetListAssetsFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ListAssetsFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListBulkImportJobsFilter.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListBulkImportJobsFilter.cpp index 8bf52bfb86b..5dbc6a5d63d 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListBulkImportJobsFilter.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListBulkImportJobsFilter.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ListBulkImportJobsFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ListBulkImportJobsFilter GetListBulkImportJobsFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ListBulkImportJobsFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListTimeSeriesType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListTimeSeriesType.cpp index 5ddf5ad19de..4fbf7ff9fb9 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListTimeSeriesType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ListTimeSeriesType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListTimeSeriesTypeMapper { - static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED"); - static const int DISASSOCIATED_HASH = HashingUtils::HashString("DISASSOCIATED"); + static constexpr uint32_t ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ASSOCIATED"); + static constexpr uint32_t DISASSOCIATED_HASH = ConstExprHashingUtils::HashString("DISASSOCIATED"); ListTimeSeriesType GetListTimeSeriesTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATED_HASH) { return ListTimeSeriesType::ASSOCIATED; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/LoggingLevel.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/LoggingLevel.cpp index 7b29bd88d3b..b4749036e00 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/LoggingLevel.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/LoggingLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LoggingLevelMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); LoggingLevel GetLoggingLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LoggingLevel::ERROR_; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/MonitorErrorCode.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/MonitorErrorCode.cpp index 4b540f752dc..818dd5d3043 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/MonitorErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/MonitorErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MonitorErrorCodeMapper { - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LIMIT_EXCEEDED"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LIMIT_EXCEEDED"); MonitorErrorCode GetMonitorErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_FAILURE_HASH) { return MonitorErrorCode::INTERNAL_FAILURE; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/Permission.cpp index 1b3a563d150..597d646c3da 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/Permission.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionMapper { - static const int ADMINISTRATOR_HASH = HashingUtils::HashString("ADMINISTRATOR"); - static const int VIEWER_HASH = HashingUtils::HashString("VIEWER"); + static constexpr uint32_t ADMINISTRATOR_HASH = ConstExprHashingUtils::HashString("ADMINISTRATOR"); + static constexpr uint32_t VIEWER_HASH = ConstExprHashingUtils::HashString("VIEWER"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADMINISTRATOR_HASH) { return Permission::ADMINISTRATOR; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/PortalState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/PortalState.cpp index 7d62d8991ad..16631ef3a30 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/PortalState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/PortalState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PortalStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); PortalState GetPortalStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return PortalState::CREATING; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyDataType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyDataType.cpp index e4e17eedb26..4324612ee03 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyDataType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyDataType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PropertyDataTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int STRUCT_HASH = HashingUtils::HashString("STRUCT"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t STRUCT_HASH = ConstExprHashingUtils::HashString("STRUCT"); PropertyDataType GetPropertyDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return PropertyDataType::STRING; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyNotificationState.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyNotificationState.cpp index 14c78c35064..98c886475b6 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyNotificationState.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/PropertyNotificationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PropertyNotificationStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); PropertyNotificationState GetPropertyNotificationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return PropertyNotificationState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/Quality.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/Quality.cpp index f0102667db2..a425c73676d 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/Quality.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/Quality.cpp @@ -20,14 +20,14 @@ namespace Aws namespace QualityMapper { - static const int GOOD_HASH = HashingUtils::HashString("GOOD"); - static const int BAD_HASH = HashingUtils::HashString("BAD"); - static const int UNCERTAIN_HASH = HashingUtils::HashString("UNCERTAIN"); + static constexpr uint32_t GOOD_HASH = ConstExprHashingUtils::HashString("GOOD"); + static constexpr uint32_t BAD_HASH = ConstExprHashingUtils::HashString("BAD"); + static constexpr uint32_t UNCERTAIN_HASH = ConstExprHashingUtils::HashString("UNCERTAIN"); Quality GetQualityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GOOD_HASH) { return Quality::GOOD; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ResourceType.cpp index b941862c65b..16b7e3dfb0e 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int PORTAL_HASH = HashingUtils::HashString("PORTAL"); - static const int PROJECT_HASH = HashingUtils::HashString("PROJECT"); + static constexpr uint32_t PORTAL_HASH = ConstExprHashingUtils::HashString("PORTAL"); + static constexpr uint32_t PROJECT_HASH = ConstExprHashingUtils::HashString("PROJECT"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PORTAL_HASH) { return ResourceType::PORTAL; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/StorageType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/StorageType.cpp index 9ef7c8abf6a..65fb3a7ecee 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/StorageType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/StorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageTypeMapper { - static const int SITEWISE_DEFAULT_STORAGE_HASH = HashingUtils::HashString("SITEWISE_DEFAULT_STORAGE"); - static const int MULTI_LAYER_STORAGE_HASH = HashingUtils::HashString("MULTI_LAYER_STORAGE"); + static constexpr uint32_t SITEWISE_DEFAULT_STORAGE_HASH = ConstExprHashingUtils::HashString("SITEWISE_DEFAULT_STORAGE"); + static constexpr uint32_t MULTI_LAYER_STORAGE_HASH = ConstExprHashingUtils::HashString("MULTI_LAYER_STORAGE"); StorageType GetStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SITEWISE_DEFAULT_STORAGE_HASH) { return StorageType::SITEWISE_DEFAULT_STORAGE; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/TimeOrdering.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/TimeOrdering.cpp index dda801e1f3f..462bb1dac80 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/TimeOrdering.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/TimeOrdering.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimeOrderingMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); TimeOrdering GetTimeOrderingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return TimeOrdering::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalDirection.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalDirection.cpp index 2ab59d1e8b6..f1dfca3d823 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalDirection.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TraversalDirectionMapper { - static const int PARENT_HASH = HashingUtils::HashString("PARENT"); - static const int CHILD_HASH = HashingUtils::HashString("CHILD"); + static constexpr uint32_t PARENT_HASH = ConstExprHashingUtils::HashString("PARENT"); + static constexpr uint32_t CHILD_HASH = ConstExprHashingUtils::HashString("CHILD"); TraversalDirection GetTraversalDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARENT_HASH) { return TraversalDirection::PARENT; diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalType.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalType.cpp index f493f33878b..bd9ba03a4db 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalType.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/model/TraversalType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TraversalTypeMapper { - static const int PATH_TO_ROOT_HASH = HashingUtils::HashString("PATH_TO_ROOT"); + static constexpr uint32_t PATH_TO_ROOT_HASH = ConstExprHashingUtils::HashString("PATH_TO_ROOT"); TraversalType GetTraversalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PATH_TO_ROOT_HASH) { return TraversalType::PATH_TO_ROOT; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DefinitionLanguage.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DefinitionLanguage.cpp index 47db82efb86..413f353f645 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DefinitionLanguage.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DefinitionLanguage.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DefinitionLanguageMapper { - static const int GRAPHQL_HASH = HashingUtils::HashString("GRAPHQL"); + static constexpr uint32_t GRAPHQL_HASH = ConstExprHashingUtils::HashString("GRAPHQL"); DefinitionLanguage GetDefinitionLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GRAPHQL_HASH) { return DefinitionLanguage::GRAPHQL; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DeploymentTarget.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DeploymentTarget.cpp index 8d387de9357..877741a9386 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DeploymentTarget.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/DeploymentTarget.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentTargetMapper { - static const int GREENGRASS_HASH = HashingUtils::HashString("GREENGRASS"); - static const int CLOUD_HASH = HashingUtils::HashString("CLOUD"); + static constexpr uint32_t GREENGRASS_HASH = ConstExprHashingUtils::HashString("GREENGRASS"); + static constexpr uint32_t CLOUD_HASH = ConstExprHashingUtils::HashString("CLOUD"); DeploymentTarget GetDeploymentTargetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREENGRASS_HASH) { return DeploymentTarget::GREENGRASS; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityFilterName.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityFilterName.cpp index 0fdc9568c67..97afece3147 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityFilterName.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityFilterName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EntityFilterNameMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int NAMESPACE_HASH = HashingUtils::HashString("NAMESPACE"); - static const int SEMANTIC_TYPE_PATH_HASH = HashingUtils::HashString("SEMANTIC_TYPE_PATH"); - static const int REFERENCED_ENTITY_ID_HASH = HashingUtils::HashString("REFERENCED_ENTITY_ID"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t NAMESPACE_HASH = ConstExprHashingUtils::HashString("NAMESPACE"); + static constexpr uint32_t SEMANTIC_TYPE_PATH_HASH = ConstExprHashingUtils::HashString("SEMANTIC_TYPE_PATH"); + static constexpr uint32_t REFERENCED_ENTITY_ID_HASH = ConstExprHashingUtils::HashString("REFERENCED_ENTITY_ID"); EntityFilterName GetEntityFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return EntityFilterName::NAME; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityType.cpp index c92828c0cf4..1b6109844a6 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/EntityType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace EntityTypeMapper { - static const int DEVICE_HASH = HashingUtils::HashString("DEVICE"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); - static const int DEVICE_MODEL_HASH = HashingUtils::HashString("DEVICE_MODEL"); - static const int CAPABILITY_HASH = HashingUtils::HashString("CAPABILITY"); - static const int STATE_HASH = HashingUtils::HashString("STATE"); - static const int ACTION_HASH = HashingUtils::HashString("ACTION"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int PROPERTY_HASH = HashingUtils::HashString("PROPERTY"); - static const int MAPPING_HASH = HashingUtils::HashString("MAPPING"); - static const int ENUM_HASH = HashingUtils::HashString("ENUM"); + static constexpr uint32_t DEVICE_HASH = ConstExprHashingUtils::HashString("DEVICE"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); + static constexpr uint32_t DEVICE_MODEL_HASH = ConstExprHashingUtils::HashString("DEVICE_MODEL"); + static constexpr uint32_t CAPABILITY_HASH = ConstExprHashingUtils::HashString("CAPABILITY"); + static constexpr uint32_t STATE_HASH = ConstExprHashingUtils::HashString("STATE"); + static constexpr uint32_t ACTION_HASH = ConstExprHashingUtils::HashString("ACTION"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t PROPERTY_HASH = ConstExprHashingUtils::HashString("PROPERTY"); + static constexpr uint32_t MAPPING_HASH = ConstExprHashingUtils::HashString("MAPPING"); + static constexpr uint32_t ENUM_HASH = ConstExprHashingUtils::HashString("ENUM"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVICE_HASH) { return EntityType::DEVICE; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionEventType.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionEventType.cpp index efbda50041e..d35b3e89482 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionEventType.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionEventType.cpp @@ -20,28 +20,28 @@ namespace Aws namespace FlowExecutionEventTypeMapper { - static const int EXECUTION_STARTED_HASH = HashingUtils::HashString("EXECUTION_STARTED"); - static const int EXECUTION_FAILED_HASH = HashingUtils::HashString("EXECUTION_FAILED"); - static const int EXECUTION_ABORTED_HASH = HashingUtils::HashString("EXECUTION_ABORTED"); - static const int EXECUTION_SUCCEEDED_HASH = HashingUtils::HashString("EXECUTION_SUCCEEDED"); - static const int STEP_STARTED_HASH = HashingUtils::HashString("STEP_STARTED"); - static const int STEP_FAILED_HASH = HashingUtils::HashString("STEP_FAILED"); - static const int STEP_SUCCEEDED_HASH = HashingUtils::HashString("STEP_SUCCEEDED"); - static const int ACTIVITY_SCHEDULED_HASH = HashingUtils::HashString("ACTIVITY_SCHEDULED"); - static const int ACTIVITY_STARTED_HASH = HashingUtils::HashString("ACTIVITY_STARTED"); - static const int ACTIVITY_FAILED_HASH = HashingUtils::HashString("ACTIVITY_FAILED"); - static const int ACTIVITY_SUCCEEDED_HASH = HashingUtils::HashString("ACTIVITY_SUCCEEDED"); - static const int START_FLOW_EXECUTION_TASK_HASH = HashingUtils::HashString("START_FLOW_EXECUTION_TASK"); - static const int SCHEDULE_NEXT_READY_STEPS_TASK_HASH = HashingUtils::HashString("SCHEDULE_NEXT_READY_STEPS_TASK"); - static const int THING_ACTION_TASK_HASH = HashingUtils::HashString("THING_ACTION_TASK"); - static const int THING_ACTION_TASK_FAILED_HASH = HashingUtils::HashString("THING_ACTION_TASK_FAILED"); - static const int THING_ACTION_TASK_SUCCEEDED_HASH = HashingUtils::HashString("THING_ACTION_TASK_SUCCEEDED"); - static const int ACKNOWLEDGE_TASK_MESSAGE_HASH = HashingUtils::HashString("ACKNOWLEDGE_TASK_MESSAGE"); + static constexpr uint32_t EXECUTION_STARTED_HASH = ConstExprHashingUtils::HashString("EXECUTION_STARTED"); + static constexpr uint32_t EXECUTION_FAILED_HASH = ConstExprHashingUtils::HashString("EXECUTION_FAILED"); + static constexpr uint32_t EXECUTION_ABORTED_HASH = ConstExprHashingUtils::HashString("EXECUTION_ABORTED"); + static constexpr uint32_t EXECUTION_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("EXECUTION_SUCCEEDED"); + static constexpr uint32_t STEP_STARTED_HASH = ConstExprHashingUtils::HashString("STEP_STARTED"); + static constexpr uint32_t STEP_FAILED_HASH = ConstExprHashingUtils::HashString("STEP_FAILED"); + static constexpr uint32_t STEP_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("STEP_SUCCEEDED"); + static constexpr uint32_t ACTIVITY_SCHEDULED_HASH = ConstExprHashingUtils::HashString("ACTIVITY_SCHEDULED"); + static constexpr uint32_t ACTIVITY_STARTED_HASH = ConstExprHashingUtils::HashString("ACTIVITY_STARTED"); + static constexpr uint32_t ACTIVITY_FAILED_HASH = ConstExprHashingUtils::HashString("ACTIVITY_FAILED"); + static constexpr uint32_t ACTIVITY_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("ACTIVITY_SUCCEEDED"); + static constexpr uint32_t START_FLOW_EXECUTION_TASK_HASH = ConstExprHashingUtils::HashString("START_FLOW_EXECUTION_TASK"); + static constexpr uint32_t SCHEDULE_NEXT_READY_STEPS_TASK_HASH = ConstExprHashingUtils::HashString("SCHEDULE_NEXT_READY_STEPS_TASK"); + static constexpr uint32_t THING_ACTION_TASK_HASH = ConstExprHashingUtils::HashString("THING_ACTION_TASK"); + static constexpr uint32_t THING_ACTION_TASK_FAILED_HASH = ConstExprHashingUtils::HashString("THING_ACTION_TASK_FAILED"); + static constexpr uint32_t THING_ACTION_TASK_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("THING_ACTION_TASK_SUCCEEDED"); + static constexpr uint32_t ACKNOWLEDGE_TASK_MESSAGE_HASH = ConstExprHashingUtils::HashString("ACKNOWLEDGE_TASK_MESSAGE"); FlowExecutionEventType GetFlowExecutionEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXECUTION_STARTED_HASH) { return FlowExecutionEventType::EXECUTION_STARTED; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionStatus.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionStatus.cpp index 98496f3b4ea..3d475000e28 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowExecutionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FlowExecutionStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); FlowExecutionStatus GetFlowExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return FlowExecutionStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowTemplateFilterName.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowTemplateFilterName.cpp index fc9f4156fe8..43fcf60808b 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowTemplateFilterName.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/FlowTemplateFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FlowTemplateFilterNameMapper { - static const int DEVICE_MODEL_ID_HASH = HashingUtils::HashString("DEVICE_MODEL_ID"); + static constexpr uint32_t DEVICE_MODEL_ID_HASH = ConstExprHashingUtils::HashString("DEVICE_MODEL_ID"); FlowTemplateFilterName GetFlowTemplateFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVICE_MODEL_ID_HASH) { return FlowTemplateFilterName::DEVICE_MODEL_ID; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatus.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatus.cpp index 2a21aa79fab..4952d9e25fa 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NamespaceDeletionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); NamespaceDeletionStatus GetNamespaceDeletionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return NamespaceDeletionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatusErrorCodes.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatusErrorCodes.cpp index 61887654ded..788cab4fe2f 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatusErrorCodes.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/NamespaceDeletionStatusErrorCodes.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NamespaceDeletionStatusErrorCodesMapper { - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); NamespaceDeletionStatusErrorCodes GetNamespaceDeletionStatusErrorCodesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_FAILED_HASH) { return NamespaceDeletionStatusErrorCodes::VALIDATION_FAILED; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceDeploymentStatus.cpp index 03c8438b3ef..0d2870f3d1a 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceDeploymentStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SystemInstanceDeploymentStatusMapper { - static const int NOT_DEPLOYED_HASH = HashingUtils::HashString("NOT_DEPLOYED"); - static const int BOOTSTRAP_HASH = HashingUtils::HashString("BOOTSTRAP"); - static const int DEPLOY_IN_PROGRESS_HASH = HashingUtils::HashString("DEPLOY_IN_PROGRESS"); - static const int DEPLOYED_IN_TARGET_HASH = HashingUtils::HashString("DEPLOYED_IN_TARGET"); - static const int UNDEPLOY_IN_PROGRESS_HASH = HashingUtils::HashString("UNDEPLOY_IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_DELETE_HASH = HashingUtils::HashString("PENDING_DELETE"); - static const int DELETED_IN_TARGET_HASH = HashingUtils::HashString("DELETED_IN_TARGET"); + static constexpr uint32_t NOT_DEPLOYED_HASH = ConstExprHashingUtils::HashString("NOT_DEPLOYED"); + static constexpr uint32_t BOOTSTRAP_HASH = ConstExprHashingUtils::HashString("BOOTSTRAP"); + static constexpr uint32_t DEPLOY_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DEPLOY_IN_PROGRESS"); + static constexpr uint32_t DEPLOYED_IN_TARGET_HASH = ConstExprHashingUtils::HashString("DEPLOYED_IN_TARGET"); + static constexpr uint32_t UNDEPLOY_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UNDEPLOY_IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_DELETE_HASH = ConstExprHashingUtils::HashString("PENDING_DELETE"); + static constexpr uint32_t DELETED_IN_TARGET_HASH = ConstExprHashingUtils::HashString("DELETED_IN_TARGET"); SystemInstanceDeploymentStatus GetSystemInstanceDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_DEPLOYED_HASH) { return SystemInstanceDeploymentStatus::NOT_DEPLOYED; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceFilterName.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceFilterName.cpp index d6dd38df92c..1b40257ef54 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceFilterName.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemInstanceFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SystemInstanceFilterNameMapper { - static const int SYSTEM_TEMPLATE_ID_HASH = HashingUtils::HashString("SYSTEM_TEMPLATE_ID"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int GREENGRASS_GROUP_NAME_HASH = HashingUtils::HashString("GREENGRASS_GROUP_NAME"); + static constexpr uint32_t SYSTEM_TEMPLATE_ID_HASH = ConstExprHashingUtils::HashString("SYSTEM_TEMPLATE_ID"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t GREENGRASS_GROUP_NAME_HASH = ConstExprHashingUtils::HashString("GREENGRASS_GROUP_NAME"); SystemInstanceFilterName GetSystemInstanceFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYSTEM_TEMPLATE_ID_HASH) { return SystemInstanceFilterName::SYSTEM_TEMPLATE_ID; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemTemplateFilterName.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemTemplateFilterName.cpp index e9cf5bafd8d..264b8087d07 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemTemplateFilterName.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/SystemTemplateFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SystemTemplateFilterNameMapper { - static const int FLOW_TEMPLATE_ID_HASH = HashingUtils::HashString("FLOW_TEMPLATE_ID"); + static constexpr uint32_t FLOW_TEMPLATE_ID_HASH = ConstExprHashingUtils::HashString("FLOW_TEMPLATE_ID"); SystemTemplateFilterName GetSystemTemplateFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOW_TEMPLATE_ID_HASH) { return SystemTemplateFilterName::FLOW_TEMPLATE_ID; diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/UploadStatus.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/UploadStatus.cpp index 0f5811843ae..1c83b052565 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/UploadStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/model/UploadStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UploadStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); UploadStatus GetUploadStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return UploadStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerErrors.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerErrors.cpp index 32f1d124c7e..1fee6024f1c 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerErrors.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerErrors.cpp @@ -18,18 +18,18 @@ namespace IoTTwinMaker namespace IoTTwinMakerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int CONNECTOR_FAILURE_HASH = HashingUtils::HashString("ConnectorFailureException"); -static const int QUERY_TIMEOUT_HASH = HashingUtils::HashString("QueryTimeoutException"); -static const int CONNECTOR_TIMEOUT_HASH = HashingUtils::HashString("ConnectorTimeoutException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONNECTOR_FAILURE_HASH = ConstExprHashingUtils::HashString("ConnectorFailureException"); +static constexpr uint32_t QUERY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("QueryTimeoutException"); +static constexpr uint32_t CONNECTOR_TIMEOUT_HASH = ConstExprHashingUtils::HashString("ConnectorTimeoutException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ColumnType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ColumnType.cpp index 0e754446ed1..e8f71466bc1 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ColumnType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ColumnType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ColumnTypeMapper { - static const int NODE_HASH = HashingUtils::HashString("NODE"); - static const int EDGE_HASH = HashingUtils::HashString("EDGE"); - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); + static constexpr uint32_t NODE_HASH = ConstExprHashingUtils::HashString("NODE"); + static constexpr uint32_t EDGE_HASH = ConstExprHashingUtils::HashString("EDGE"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); ColumnType GetColumnTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NODE_HASH) { return ColumnType::NODE; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ComponentUpdateType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ComponentUpdateType.cpp index e14f380a5f7..6d074e14638 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ComponentUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ComponentUpdateType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComponentUpdateTypeMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ComponentUpdateType GetComponentUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return ComponentUpdateType::CREATE; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ErrorCode.cpp index d77a4d86866..aca1801eaae 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ErrorCodeMapper { - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int SYNC_INITIALIZING_ERROR_HASH = HashingUtils::HashString("SYNC_INITIALIZING_ERROR"); - static const int SYNC_CREATING_ERROR_HASH = HashingUtils::HashString("SYNC_CREATING_ERROR"); - static const int SYNC_PROCESSING_ERROR_HASH = HashingUtils::HashString("SYNC_PROCESSING_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t SYNC_INITIALIZING_ERROR_HASH = ConstExprHashingUtils::HashString("SYNC_INITIALIZING_ERROR"); + static constexpr uint32_t SYNC_CREATING_ERROR_HASH = ConstExprHashingUtils::HashString("SYNC_CREATING_ERROR"); + static constexpr uint32_t SYNC_PROCESSING_ERROR_HASH = ConstExprHashingUtils::HashString("SYNC_PROCESSING_ERROR"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_ERROR_HASH) { return ErrorCode::VALIDATION_ERROR; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/GroupType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/GroupType.cpp index 94f9e09ee45..e0db5609cc9 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/GroupType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/GroupType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GroupTypeMapper { - static const int TABULAR_HASH = HashingUtils::HashString("TABULAR"); + static constexpr uint32_t TABULAR_HASH = ConstExprHashingUtils::HashString("TABULAR"); GroupType GetGroupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABULAR_HASH) { return GroupType::TABULAR; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/InterpolationType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/InterpolationType.cpp index d17f168ec1f..1f9b8d67692 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/InterpolationType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/InterpolationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InterpolationTypeMapper { - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); InterpolationType GetInterpolationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINEAR_HASH) { return InterpolationType::LINEAR; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Order.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Order.cpp index a9f5994ca3e..ae2cef43d64 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Order.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Order.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); Order GetOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return Order::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/OrderByTime.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/OrderByTime.cpp index 1fc808bfbdb..5fc0daaa27d 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/OrderByTime.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/OrderByTime.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderByTimeMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); OrderByTime GetOrderByTimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return OrderByTime::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ParentEntityUpdateType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ParentEntityUpdateType.cpp index e8154f4b429..7d68d13e6f7 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ParentEntityUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/ParentEntityUpdateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParentEntityUpdateTypeMapper { - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ParentEntityUpdateType GetParentEntityUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_HASH) { return ParentEntityUpdateType::UPDATE; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingMode.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingMode.cpp index fbbf2f2b1e1..c5201503890 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingMode.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PricingModeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int TIERED_BUNDLE_HASH = HashingUtils::HashString("TIERED_BUNDLE"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t TIERED_BUNDLE_HASH = ConstExprHashingUtils::HashString("TIERED_BUNDLE"); PricingMode GetPricingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return PricingMode::BASIC; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingTier.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingTier.cpp index 02031604018..a238ad512f9 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingTier.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PricingTier.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PricingTierMapper { - static const int TIER_1_HASH = HashingUtils::HashString("TIER_1"); - static const int TIER_2_HASH = HashingUtils::HashString("TIER_2"); - static const int TIER_3_HASH = HashingUtils::HashString("TIER_3"); - static const int TIER_4_HASH = HashingUtils::HashString("TIER_4"); + static constexpr uint32_t TIER_1_HASH = ConstExprHashingUtils::HashString("TIER_1"); + static constexpr uint32_t TIER_2_HASH = ConstExprHashingUtils::HashString("TIER_2"); + static constexpr uint32_t TIER_3_HASH = ConstExprHashingUtils::HashString("TIER_3"); + static constexpr uint32_t TIER_4_HASH = ConstExprHashingUtils::HashString("TIER_4"); PricingTier GetPricingTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TIER_1_HASH) { return PricingTier::TIER_1; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyGroupUpdateType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyGroupUpdateType.cpp index 582f48b2627..dcbdd5d35a9 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyGroupUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyGroupUpdateType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PropertyGroupUpdateTypeMapper { - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); PropertyGroupUpdateType GetPropertyGroupUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_HASH) { return PropertyGroupUpdateType::UPDATE; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyUpdateType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyUpdateType.cpp index 279503a0472..4d8fac3a190 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/PropertyUpdateType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PropertyUpdateTypeMapper { - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); PropertyUpdateType GetPropertyUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_HASH) { return PropertyUpdateType::UPDATE; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SceneErrorCode.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SceneErrorCode.cpp index af5c2e3dfda..57bbac4df0d 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SceneErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SceneErrorCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SceneErrorCodeMapper { - static const int MATTERPORT_ERROR_HASH = HashingUtils::HashString("MATTERPORT_ERROR"); + static constexpr uint32_t MATTERPORT_ERROR_HASH = ConstExprHashingUtils::HashString("MATTERPORT_ERROR"); SceneErrorCode GetSceneErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MATTERPORT_ERROR_HASH) { return SceneErrorCode::MATTERPORT_ERROR; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Scope.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Scope.cpp index 9ee33c936d3..56c9df1e0de 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Scope.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Scope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScopeMapper { - static const int ENTITY_HASH = HashingUtils::HashString("ENTITY"); - static const int WORKSPACE_HASH = HashingUtils::HashString("WORKSPACE"); + static constexpr uint32_t ENTITY_HASH = ConstExprHashingUtils::HashString("ENTITY"); + static constexpr uint32_t WORKSPACE_HASH = ConstExprHashingUtils::HashString("WORKSPACE"); Scope GetScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENTITY_HASH) { return Scope::ENTITY; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/State.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/State.cpp index 59a9f78f1d7..8fa32c8dfae 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/State.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return State::CREATING; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncJobState.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncJobState.cpp index 11c15bbbfad..eb5a9c29916 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncJobState.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncJobState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SyncJobStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); SyncJobState GetSyncJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return SyncJobState::CREATING; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceState.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceState.cpp index 3cad6c27636..7b413e38ef4 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceState.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SyncResourceStateMapper { - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); SyncResourceState GetSyncResourceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZING_HASH) { return SyncResourceState::INITIALIZING; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceType.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceType.cpp index ecb22b38ac3..dab404afa86 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceType.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/SyncResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SyncResourceTypeMapper { - static const int ENTITY_HASH = HashingUtils::HashString("ENTITY"); - static const int COMPONENT_TYPE_HASH = HashingUtils::HashString("COMPONENT_TYPE"); + static constexpr uint32_t ENTITY_HASH = ConstExprHashingUtils::HashString("ENTITY"); + static constexpr uint32_t COMPONENT_TYPE_HASH = ConstExprHashingUtils::HashString("COMPONENT_TYPE"); SyncResourceType GetSyncResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENTITY_HASH) { return SyncResourceType::ENTITY; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Type.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Type.cpp index 850abeabaae..d46c44b928d 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/Type.cpp @@ -20,19 +20,19 @@ namespace Aws namespace TypeMapper { - static const int RELATIONSHIP_HASH = HashingUtils::HashString("RELATIONSHIP"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int LONG_HASH = HashingUtils::HashString("LONG"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int LIST_HASH = HashingUtils::HashString("LIST"); - static const int MAP_HASH = HashingUtils::HashString("MAP"); + static constexpr uint32_t RELATIONSHIP_HASH = ConstExprHashingUtils::HashString("RELATIONSHIP"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t LONG_HASH = ConstExprHashingUtils::HashString("LONG"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t LIST_HASH = ConstExprHashingUtils::HashString("LIST"); + static constexpr uint32_t MAP_HASH = ConstExprHashingUtils::HashString("MAP"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RELATIONSHIP_HASH) { return Type::RELATIONSHIP; diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/UpdateReason.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/UpdateReason.cpp index b1c4f2ac5af..c9ba6d2aedc 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/model/UpdateReason.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/model/UpdateReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UpdateReasonMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int PRICING_TIER_UPDATE_HASH = HashingUtils::HashString("PRICING_TIER_UPDATE"); - static const int ENTITY_COUNT_UPDATE_HASH = HashingUtils::HashString("ENTITY_COUNT_UPDATE"); - static const int PRICING_MODE_UPDATE_HASH = HashingUtils::HashString("PRICING_MODE_UPDATE"); - static const int OVERWRITTEN_HASH = HashingUtils::HashString("OVERWRITTEN"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t PRICING_TIER_UPDATE_HASH = ConstExprHashingUtils::HashString("PRICING_TIER_UPDATE"); + static constexpr uint32_t ENTITY_COUNT_UPDATE_HASH = ConstExprHashingUtils::HashString("ENTITY_COUNT_UPDATE"); + static constexpr uint32_t PRICING_MODE_UPDATE_HASH = ConstExprHashingUtils::HashString("PRICING_MODE_UPDATE"); + static constexpr uint32_t OVERWRITTEN_HASH = ConstExprHashingUtils::HashString("OVERWRITTEN"); UpdateReason GetUpdateReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return UpdateReason::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp index 7ae80d1dfa4..d2aeb9f50e7 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp @@ -40,14 +40,14 @@ template<> AWS_IOTWIRELESS_API TooManyTagsException IoTWirelessError::GetModeled namespace IoTWirelessErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/ApplicationConfigType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/ApplicationConfigType.cpp index 3c5d46f5ee0..9d22cbdac16 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/ApplicationConfigType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/ApplicationConfigType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ApplicationConfigTypeMapper { - static const int SemtechGeolocation_HASH = HashingUtils::HashString("SemtechGeolocation"); + static constexpr uint32_t SemtechGeolocation_HASH = ConstExprHashingUtils::HashString("SemtechGeolocation"); ApplicationConfigType GetApplicationConfigTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SemtechGeolocation_HASH) { return ApplicationConfigType::SemtechGeolocation; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/BatteryLevel.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/BatteryLevel.cpp index 6758a7a9242..cceafd76829 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/BatteryLevel.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/BatteryLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatteryLevelMapper { - static const int normal_HASH = HashingUtils::HashString("normal"); - static const int low_HASH = HashingUtils::HashString("low"); - static const int critical_HASH = HashingUtils::HashString("critical"); + static constexpr uint32_t normal_HASH = ConstExprHashingUtils::HashString("normal"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); + static constexpr uint32_t critical_HASH = ConstExprHashingUtils::HashString("critical"); BatteryLevel GetBatteryLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == normal_HASH) { return BatteryLevel::normal; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/ConnectionStatus.cpp index 53e5f3a7cad..6ede8ec09ed 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/ConnectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionStatusMapper { - static const int Connected_HASH = HashingUtils::HashString("Connected"); - static const int Disconnected_HASH = HashingUtils::HashString("Disconnected"); + static constexpr uint32_t Connected_HASH = ConstExprHashingUtils::HashString("Connected"); + static constexpr uint32_t Disconnected_HASH = ConstExprHashingUtils::HashString("Disconnected"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Connected_HASH) { return ConnectionStatus::Connected; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceProfileType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceProfileType.cpp index 4d4b29deb5a..de1dcaa8c7c 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceProfileType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceProfileType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceProfileTypeMapper { - static const int Sidewalk_HASH = HashingUtils::HashString("Sidewalk"); - static const int LoRaWAN_HASH = HashingUtils::HashString("LoRaWAN"); + static constexpr uint32_t Sidewalk_HASH = ConstExprHashingUtils::HashString("Sidewalk"); + static constexpr uint32_t LoRaWAN_HASH = ConstExprHashingUtils::HashString("LoRaWAN"); DeviceProfileType GetDeviceProfileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sidewalk_HASH) { return DeviceProfileType::Sidewalk; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceState.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceState.cpp index 05414e9acbc..28eb1dfa1ed 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceState.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/DeviceState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeviceStateMapper { - static const int Provisioned_HASH = HashingUtils::HashString("Provisioned"); - static const int RegisteredNotSeen_HASH = HashingUtils::HashString("RegisteredNotSeen"); - static const int RegisteredReachable_HASH = HashingUtils::HashString("RegisteredReachable"); - static const int RegisteredUnreachable_HASH = HashingUtils::HashString("RegisteredUnreachable"); + static constexpr uint32_t Provisioned_HASH = ConstExprHashingUtils::HashString("Provisioned"); + static constexpr uint32_t RegisteredNotSeen_HASH = ConstExprHashingUtils::HashString("RegisteredNotSeen"); + static constexpr uint32_t RegisteredReachable_HASH = ConstExprHashingUtils::HashString("RegisteredReachable"); + static constexpr uint32_t RegisteredUnreachable_HASH = ConstExprHashingUtils::HashString("RegisteredUnreachable"); DeviceState GetDeviceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Provisioned_HASH) { return DeviceState::Provisioned; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/DlClass.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/DlClass.cpp index 72a1bc4b49d..8ca7448649c 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/DlClass.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/DlClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DlClassMapper { - static const int ClassB_HASH = HashingUtils::HashString("ClassB"); - static const int ClassC_HASH = HashingUtils::HashString("ClassC"); + static constexpr uint32_t ClassB_HASH = ConstExprHashingUtils::HashString("ClassB"); + static constexpr uint32_t ClassC_HASH = ConstExprHashingUtils::HashString("ClassC"); DlClass GetDlClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ClassB_HASH) { return DlClass::ClassB; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/DownlinkMode.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/DownlinkMode.cpp index 8382661af11..6a7a10c0efc 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/DownlinkMode.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/DownlinkMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DownlinkModeMapper { - static const int SEQUENTIAL_HASH = HashingUtils::HashString("SEQUENTIAL"); - static const int CONCURRENT_HASH = HashingUtils::HashString("CONCURRENT"); - static const int USING_UPLINK_GATEWAY_HASH = HashingUtils::HashString("USING_UPLINK_GATEWAY"); + static constexpr uint32_t SEQUENTIAL_HASH = ConstExprHashingUtils::HashString("SEQUENTIAL"); + static constexpr uint32_t CONCURRENT_HASH = ConstExprHashingUtils::HashString("CONCURRENT"); + static constexpr uint32_t USING_UPLINK_GATEWAY_HASH = ConstExprHashingUtils::HashString("USING_UPLINK_GATEWAY"); DownlinkMode GetDownlinkModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEQUENTIAL_HASH) { return DownlinkMode::SEQUENTIAL; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/Event.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/Event.cpp index 02db77c8858..6099c10b30f 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/Event.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/Event.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EventMapper { - static const int discovered_HASH = HashingUtils::HashString("discovered"); - static const int lost_HASH = HashingUtils::HashString("lost"); - static const int ack_HASH = HashingUtils::HashString("ack"); - static const int nack_HASH = HashingUtils::HashString("nack"); - static const int passthrough_HASH = HashingUtils::HashString("passthrough"); + static constexpr uint32_t discovered_HASH = ConstExprHashingUtils::HashString("discovered"); + static constexpr uint32_t lost_HASH = ConstExprHashingUtils::HashString("lost"); + static constexpr uint32_t ack_HASH = ConstExprHashingUtils::HashString("ack"); + static constexpr uint32_t nack_HASH = ConstExprHashingUtils::HashString("nack"); + static constexpr uint32_t passthrough_HASH = ConstExprHashingUtils::HashString("passthrough"); Event GetEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == discovered_HASH) { return Event::discovered; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationPartnerType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationPartnerType.cpp index 24bde5e63ef..191eccffeaf 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationPartnerType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationPartnerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EventNotificationPartnerTypeMapper { - static const int Sidewalk_HASH = HashingUtils::HashString("Sidewalk"); + static constexpr uint32_t Sidewalk_HASH = ConstExprHashingUtils::HashString("Sidewalk"); EventNotificationPartnerType GetEventNotificationPartnerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sidewalk_HASH) { return EventNotificationPartnerType::Sidewalk; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationResourceType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationResourceType.cpp index 9f7925e1859..d3fc628369d 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationResourceType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventNotificationResourceTypeMapper { - static const int SidewalkAccount_HASH = HashingUtils::HashString("SidewalkAccount"); - static const int WirelessDevice_HASH = HashingUtils::HashString("WirelessDevice"); - static const int WirelessGateway_HASH = HashingUtils::HashString("WirelessGateway"); + static constexpr uint32_t SidewalkAccount_HASH = ConstExprHashingUtils::HashString("SidewalkAccount"); + static constexpr uint32_t WirelessDevice_HASH = ConstExprHashingUtils::HashString("WirelessDevice"); + static constexpr uint32_t WirelessGateway_HASH = ConstExprHashingUtils::HashString("WirelessGateway"); EventNotificationResourceType GetEventNotificationResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SidewalkAccount_HASH) { return EventNotificationResourceType::SidewalkAccount; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationTopicStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationTopicStatus.cpp index 739060422b5..29ec082779f 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationTopicStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/EventNotificationTopicStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventNotificationTopicStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); EventNotificationTopicStatus GetEventNotificationTopicStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return EventNotificationTopicStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp index 614f76a8473..cfadb611394 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpressionTypeMapper { - static const int RuleName_HASH = HashingUtils::HashString("RuleName"); - static const int MqttTopic_HASH = HashingUtils::HashString("MqttTopic"); + static constexpr uint32_t RuleName_HASH = ConstExprHashingUtils::HashString("RuleName"); + static constexpr uint32_t MqttTopic_HASH = ConstExprHashingUtils::HashString("MqttTopic"); ExpressionType GetExpressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RuleName_HASH) { return ExpressionType::RuleName; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaDeviceStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaDeviceStatus.cpp index 7e8e5939aa9..d8078890328 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaDeviceStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaDeviceStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace FuotaDeviceStatusMapper { - static const int Initial_HASH = HashingUtils::HashString("Initial"); - static const int Package_Not_Supported_HASH = HashingUtils::HashString("Package_Not_Supported"); - static const int FragAlgo_unsupported_HASH = HashingUtils::HashString("FragAlgo_unsupported"); - static const int Not_enough_memory_HASH = HashingUtils::HashString("Not_enough_memory"); - static const int FragIndex_unsupported_HASH = HashingUtils::HashString("FragIndex_unsupported"); - static const int Wrong_descriptor_HASH = HashingUtils::HashString("Wrong_descriptor"); - static const int SessionCnt_replay_HASH = HashingUtils::HashString("SessionCnt_replay"); - static const int MissingFrag_HASH = HashingUtils::HashString("MissingFrag"); - static const int MemoryError_HASH = HashingUtils::HashString("MemoryError"); - static const int MICError_HASH = HashingUtils::HashString("MICError"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); + static constexpr uint32_t Initial_HASH = ConstExprHashingUtils::HashString("Initial"); + static constexpr uint32_t Package_Not_Supported_HASH = ConstExprHashingUtils::HashString("Package_Not_Supported"); + static constexpr uint32_t FragAlgo_unsupported_HASH = ConstExprHashingUtils::HashString("FragAlgo_unsupported"); + static constexpr uint32_t Not_enough_memory_HASH = ConstExprHashingUtils::HashString("Not_enough_memory"); + static constexpr uint32_t FragIndex_unsupported_HASH = ConstExprHashingUtils::HashString("FragIndex_unsupported"); + static constexpr uint32_t Wrong_descriptor_HASH = ConstExprHashingUtils::HashString("Wrong_descriptor"); + static constexpr uint32_t SessionCnt_replay_HASH = ConstExprHashingUtils::HashString("SessionCnt_replay"); + static constexpr uint32_t MissingFrag_HASH = ConstExprHashingUtils::HashString("MissingFrag"); + static constexpr uint32_t MemoryError_HASH = ConstExprHashingUtils::HashString("MemoryError"); + static constexpr uint32_t MICError_HASH = ConstExprHashingUtils::HashString("MICError"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); FuotaDeviceStatus GetFuotaDeviceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initial_HASH) { return FuotaDeviceStatus::Initial; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaTaskStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaTaskStatus.cpp index c4cfdeb3482..8a055c4bf10 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/FuotaTaskStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FuotaTaskStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int FuotaSession_Waiting_HASH = HashingUtils::HashString("FuotaSession_Waiting"); - static const int In_FuotaSession_HASH = HashingUtils::HashString("In_FuotaSession"); - static const int FuotaDone_HASH = HashingUtils::HashString("FuotaDone"); - static const int Delete_Waiting_HASH = HashingUtils::HashString("Delete_Waiting"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t FuotaSession_Waiting_HASH = ConstExprHashingUtils::HashString("FuotaSession_Waiting"); + static constexpr uint32_t In_FuotaSession_HASH = ConstExprHashingUtils::HashString("In_FuotaSession"); + static constexpr uint32_t FuotaDone_HASH = ConstExprHashingUtils::HashString("FuotaDone"); + static constexpr uint32_t Delete_Waiting_HASH = ConstExprHashingUtils::HashString("Delete_Waiting"); FuotaTaskStatus GetFuotaTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return FuotaTaskStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/IdentifierType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/IdentifierType.cpp index 7a0d96b12a8..532285f120d 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/IdentifierType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/IdentifierType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IdentifierTypeMapper { - static const int PartnerAccountId_HASH = HashingUtils::HashString("PartnerAccountId"); - static const int DevEui_HASH = HashingUtils::HashString("DevEui"); - static const int GatewayEui_HASH = HashingUtils::HashString("GatewayEui"); - static const int WirelessDeviceId_HASH = HashingUtils::HashString("WirelessDeviceId"); - static const int WirelessGatewayId_HASH = HashingUtils::HashString("WirelessGatewayId"); + static constexpr uint32_t PartnerAccountId_HASH = ConstExprHashingUtils::HashString("PartnerAccountId"); + static constexpr uint32_t DevEui_HASH = ConstExprHashingUtils::HashString("DevEui"); + static constexpr uint32_t GatewayEui_HASH = ConstExprHashingUtils::HashString("GatewayEui"); + static constexpr uint32_t WirelessDeviceId_HASH = ConstExprHashingUtils::HashString("WirelessDeviceId"); + static constexpr uint32_t WirelessGatewayId_HASH = ConstExprHashingUtils::HashString("WirelessGatewayId"); IdentifierType GetIdentifierTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PartnerAccountId_HASH) { return IdentifierType::PartnerAccountId; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/ImportTaskStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/ImportTaskStatus.cpp index fbfd430c438..b235ac3d1ea 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/ImportTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/ImportTaskStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ImportTaskStatusMapper { - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ImportTaskStatus GetImportTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZING_HASH) { return ImportTaskStatus::INITIALIZING; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/LogLevel.cpp index 3f9b0f89fd4..6a1c365473f 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/LogLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LogLevelMapper { - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFO_HASH) { return LogLevel::INFO; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/MessageType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/MessageType.cpp index 8e8d8a0d464..7044fb79deb 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/MessageType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/MessageType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MessageTypeMapper { - static const int CUSTOM_COMMAND_ID_NOTIFY_HASH = HashingUtils::HashString("CUSTOM_COMMAND_ID_NOTIFY"); - static const int CUSTOM_COMMAND_ID_GET_HASH = HashingUtils::HashString("CUSTOM_COMMAND_ID_GET"); - static const int CUSTOM_COMMAND_ID_SET_HASH = HashingUtils::HashString("CUSTOM_COMMAND_ID_SET"); - static const int CUSTOM_COMMAND_ID_RESP_HASH = HashingUtils::HashString("CUSTOM_COMMAND_ID_RESP"); + static constexpr uint32_t CUSTOM_COMMAND_ID_NOTIFY_HASH = ConstExprHashingUtils::HashString("CUSTOM_COMMAND_ID_NOTIFY"); + static constexpr uint32_t CUSTOM_COMMAND_ID_GET_HASH = ConstExprHashingUtils::HashString("CUSTOM_COMMAND_ID_GET"); + static constexpr uint32_t CUSTOM_COMMAND_ID_SET_HASH = ConstExprHashingUtils::HashString("CUSTOM_COMMAND_ID_SET"); + static constexpr uint32_t CUSTOM_COMMAND_ID_RESP_HASH = ConstExprHashingUtils::HashString("CUSTOM_COMMAND_ID_RESP"); MessageType GetMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOM_COMMAND_ID_NOTIFY_HASH) { return MessageType::CUSTOM_COMMAND_ID_NOTIFY; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/MulticastFrameInfo.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/MulticastFrameInfo.cpp index 04d14b1aa14..14b927b062c 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/MulticastFrameInfo.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/MulticastFrameInfo.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MulticastFrameInfoMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); MulticastFrameInfo GetMulticastFrameInfoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return MulticastFrameInfo::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/OnboardStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/OnboardStatus.cpp index 0b84ee1e0cc..3af136377c7 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/OnboardStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/OnboardStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OnboardStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ONBOARDED_HASH = HashingUtils::HashString("ONBOARDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ONBOARDED_HASH = ConstExprHashingUtils::HashString("ONBOARDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); OnboardStatus GetOnboardStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return OnboardStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp index 4f2b034fffa..95fbf7576e3 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PartnerTypeMapper { - static const int Sidewalk_HASH = HashingUtils::HashString("Sidewalk"); + static constexpr uint32_t Sidewalk_HASH = ConstExprHashingUtils::HashString("Sidewalk"); PartnerType GetPartnerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sidewalk_HASH) { return PartnerType::Sidewalk; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationFec.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationFec.cpp index e4c37c4b168..d1204e7bfa1 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationFec.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationFec.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PositionConfigurationFecMapper { - static const int ROSE_HASH = HashingUtils::HashString("ROSE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ROSE_HASH = ConstExprHashingUtils::HashString("ROSE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); PositionConfigurationFec GetPositionConfigurationFecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROSE_HASH) { return PositionConfigurationFec::ROSE; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationStatus.cpp index 518e95fea9f..f2edd8451f2 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PositionConfigurationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); PositionConfigurationStatus GetPositionConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return PositionConfigurationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionResourceType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionResourceType.cpp index 598d30438e7..39e09ca2046 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionResourceType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PositionResourceTypeMapper { - static const int WirelessDevice_HASH = HashingUtils::HashString("WirelessDevice"); - static const int WirelessGateway_HASH = HashingUtils::HashString("WirelessGateway"); + static constexpr uint32_t WirelessDevice_HASH = ConstExprHashingUtils::HashString("WirelessDevice"); + static constexpr uint32_t WirelessGateway_HASH = ConstExprHashingUtils::HashString("WirelessGateway"); PositionResourceType GetPositionResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WirelessDevice_HASH) { return PositionResourceType::WirelessDevice; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverProvider.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverProvider.cpp index 30baa79c172..c38d8aba4e1 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverProvider.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverProvider.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PositionSolverProviderMapper { - static const int Semtech_HASH = HashingUtils::HashString("Semtech"); + static constexpr uint32_t Semtech_HASH = ConstExprHashingUtils::HashString("Semtech"); PositionSolverProvider GetPositionSolverProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Semtech_HASH) { return PositionSolverProvider::Semtech; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverType.cpp index 53582e971f0..d9da6c6a7ca 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositionSolverType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PositionSolverTypeMapper { - static const int GNSS_HASH = HashingUtils::HashString("GNSS"); + static constexpr uint32_t GNSS_HASH = ConstExprHashingUtils::HashString("GNSS"); PositionSolverType GetPositionSolverTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GNSS_HASH) { return PositionSolverType::GNSS; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositioningConfigStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositioningConfigStatus.cpp index d7c18bf8777..53abb26fe0e 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/PositioningConfigStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/PositioningConfigStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PositioningConfigStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); PositioningConfigStatus GetPositioningConfigStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return PositioningConfigStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/SigningAlg.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/SigningAlg.cpp index 680de1518d7..cefb79ed18b 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/SigningAlg.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/SigningAlg.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SigningAlgMapper { - static const int Ed25519_HASH = HashingUtils::HashString("Ed25519"); - static const int P256r1_HASH = HashingUtils::HashString("P256r1"); + static constexpr uint32_t Ed25519_HASH = ConstExprHashingUtils::HashString("Ed25519"); + static constexpr uint32_t P256r1_HASH = ConstExprHashingUtils::HashString("P256r1"); SigningAlg GetSigningAlgForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ed25519_HASH) { return SigningAlg::Ed25519; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/SupportedRfRegion.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/SupportedRfRegion.cpp index a63ac067ba1..c1922871f66 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/SupportedRfRegion.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/SupportedRfRegion.cpp @@ -20,24 +20,24 @@ namespace Aws namespace SupportedRfRegionMapper { - static const int EU868_HASH = HashingUtils::HashString("EU868"); - static const int US915_HASH = HashingUtils::HashString("US915"); - static const int AU915_HASH = HashingUtils::HashString("AU915"); - static const int AS923_1_HASH = HashingUtils::HashString("AS923-1"); - static const int AS923_2_HASH = HashingUtils::HashString("AS923-2"); - static const int AS923_3_HASH = HashingUtils::HashString("AS923-3"); - static const int AS923_4_HASH = HashingUtils::HashString("AS923-4"); - static const int EU433_HASH = HashingUtils::HashString("EU433"); - static const int CN470_HASH = HashingUtils::HashString("CN470"); - static const int CN779_HASH = HashingUtils::HashString("CN779"); - static const int RU864_HASH = HashingUtils::HashString("RU864"); - static const int KR920_HASH = HashingUtils::HashString("KR920"); - static const int IN865_HASH = HashingUtils::HashString("IN865"); + static constexpr uint32_t EU868_HASH = ConstExprHashingUtils::HashString("EU868"); + static constexpr uint32_t US915_HASH = ConstExprHashingUtils::HashString("US915"); + static constexpr uint32_t AU915_HASH = ConstExprHashingUtils::HashString("AU915"); + static constexpr uint32_t AS923_1_HASH = ConstExprHashingUtils::HashString("AS923-1"); + static constexpr uint32_t AS923_2_HASH = ConstExprHashingUtils::HashString("AS923-2"); + static constexpr uint32_t AS923_3_HASH = ConstExprHashingUtils::HashString("AS923-3"); + static constexpr uint32_t AS923_4_HASH = ConstExprHashingUtils::HashString("AS923-4"); + static constexpr uint32_t EU433_HASH = ConstExprHashingUtils::HashString("EU433"); + static constexpr uint32_t CN470_HASH = ConstExprHashingUtils::HashString("CN470"); + static constexpr uint32_t CN779_HASH = ConstExprHashingUtils::HashString("CN779"); + static constexpr uint32_t RU864_HASH = ConstExprHashingUtils::HashString("RU864"); + static constexpr uint32_t KR920_HASH = ConstExprHashingUtils::HashString("KR920"); + static constexpr uint32_t IN865_HASH = ConstExprHashingUtils::HashString("IN865"); SupportedRfRegion GetSupportedRfRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EU868_HASH) { return SupportedRfRegion::EU868; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceEvent.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceEvent.cpp index cff993b11be..349ce407769 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceEvent.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceEvent.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WirelessDeviceEventMapper { - static const int Join_HASH = HashingUtils::HashString("Join"); - static const int Rejoin_HASH = HashingUtils::HashString("Rejoin"); - static const int Uplink_Data_HASH = HashingUtils::HashString("Uplink_Data"); - static const int Downlink_Data_HASH = HashingUtils::HashString("Downlink_Data"); - static const int Registration_HASH = HashingUtils::HashString("Registration"); + static constexpr uint32_t Join_HASH = ConstExprHashingUtils::HashString("Join"); + static constexpr uint32_t Rejoin_HASH = ConstExprHashingUtils::HashString("Rejoin"); + static constexpr uint32_t Uplink_Data_HASH = ConstExprHashingUtils::HashString("Uplink_Data"); + static constexpr uint32_t Downlink_Data_HASH = ConstExprHashingUtils::HashString("Downlink_Data"); + static constexpr uint32_t Registration_HASH = ConstExprHashingUtils::HashString("Registration"); WirelessDeviceEvent GetWirelessDeviceEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Join_HASH) { return WirelessDeviceEvent::Join; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceFrameInfo.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceFrameInfo.cpp index aa56678382a..9963841905d 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceFrameInfo.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceFrameInfo.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WirelessDeviceFrameInfoMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); WirelessDeviceFrameInfo GetWirelessDeviceFrameInfoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return WirelessDeviceFrameInfo::ENABLED; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp index 52823691481..b5e3fab7245 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WirelessDeviceIdTypeMapper { - static const int WirelessDeviceId_HASH = HashingUtils::HashString("WirelessDeviceId"); - static const int DevEui_HASH = HashingUtils::HashString("DevEui"); - static const int ThingName_HASH = HashingUtils::HashString("ThingName"); - static const int SidewalkManufacturingSn_HASH = HashingUtils::HashString("SidewalkManufacturingSn"); + static constexpr uint32_t WirelessDeviceId_HASH = ConstExprHashingUtils::HashString("WirelessDeviceId"); + static constexpr uint32_t DevEui_HASH = ConstExprHashingUtils::HashString("DevEui"); + static constexpr uint32_t ThingName_HASH = ConstExprHashingUtils::HashString("ThingName"); + static constexpr uint32_t SidewalkManufacturingSn_HASH = ConstExprHashingUtils::HashString("SidewalkManufacturingSn"); WirelessDeviceIdType GetWirelessDeviceIdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WirelessDeviceId_HASH) { return WirelessDeviceIdType::WirelessDeviceId; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceSidewalkStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceSidewalkStatus.cpp index 246ed7bb1c7..95915b9f8ec 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceSidewalkStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceSidewalkStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WirelessDeviceSidewalkStatusMapper { - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int REGISTERED_HASH = HashingUtils::HashString("REGISTERED"); - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t REGISTERED_HASH = ConstExprHashingUtils::HashString("REGISTERED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); WirelessDeviceSidewalkStatus GetWirelessDeviceSidewalkStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONED_HASH) { return WirelessDeviceSidewalkStatus::PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp index 8687f69a05e..582d5cde610 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WirelessDeviceTypeMapper { - static const int Sidewalk_HASH = HashingUtils::HashString("Sidewalk"); - static const int LoRaWAN_HASH = HashingUtils::HashString("LoRaWAN"); + static constexpr uint32_t Sidewalk_HASH = ConstExprHashingUtils::HashString("Sidewalk"); + static constexpr uint32_t LoRaWAN_HASH = ConstExprHashingUtils::HashString("LoRaWAN"); WirelessDeviceType GetWirelessDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sidewalk_HASH) { return WirelessDeviceType::Sidewalk; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayEvent.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayEvent.cpp index 6974afa5c2a..ffb126702e1 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayEvent.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayEvent.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WirelessGatewayEventMapper { - static const int CUPS_Request_HASH = HashingUtils::HashString("CUPS_Request"); - static const int Certificate_HASH = HashingUtils::HashString("Certificate"); + static constexpr uint32_t CUPS_Request_HASH = ConstExprHashingUtils::HashString("CUPS_Request"); + static constexpr uint32_t Certificate_HASH = ConstExprHashingUtils::HashString("Certificate"); WirelessGatewayEvent GetWirelessGatewayEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUPS_Request_HASH) { return WirelessGatewayEvent::CUPS_Request; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp index 25b9e89d955..b4ffaf64a32 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WirelessGatewayIdTypeMapper { - static const int GatewayEui_HASH = HashingUtils::HashString("GatewayEui"); - static const int WirelessGatewayId_HASH = HashingUtils::HashString("WirelessGatewayId"); - static const int ThingName_HASH = HashingUtils::HashString("ThingName"); + static constexpr uint32_t GatewayEui_HASH = ConstExprHashingUtils::HashString("GatewayEui"); + static constexpr uint32_t WirelessGatewayId_HASH = ConstExprHashingUtils::HashString("WirelessGatewayId"); + static constexpr uint32_t ThingName_HASH = ConstExprHashingUtils::HashString("ThingName"); WirelessGatewayIdType GetWirelessGatewayIdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GatewayEui_HASH) { return WirelessGatewayIdType::GatewayEui; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp index f25008430a6..f7a43c80b08 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WirelessGatewayServiceTypeMapper { - static const int CUPS_HASH = HashingUtils::HashString("CUPS"); - static const int LNS_HASH = HashingUtils::HashString("LNS"); + static constexpr uint32_t CUPS_HASH = ConstExprHashingUtils::HashString("CUPS"); + static constexpr uint32_t LNS_HASH = ConstExprHashingUtils::HashString("LNS"); WirelessGatewayServiceType GetWirelessGatewayServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUPS_HASH) { return WirelessGatewayServiceType::CUPS; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp index 7cd9eb8a889..0e2d06dc289 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WirelessGatewayTaskDefinitionTypeMapper { - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); WirelessGatewayTaskDefinitionType GetWirelessGatewayTaskDefinitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_HASH) { return WirelessGatewayTaskDefinitionType::UPDATE; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp index c79550cec64..8c7707ab12a 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace WirelessGatewayTaskStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FIRST_RETRY_HASH = HashingUtils::HashString("FIRST_RETRY"); - static const int SECOND_RETRY_HASH = HashingUtils::HashString("SECOND_RETRY"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FIRST_RETRY_HASH = ConstExprHashingUtils::HashString("FIRST_RETRY"); + static constexpr uint32_t SECOND_RETRY_HASH = ConstExprHashingUtils::HashString("SECOND_RETRY"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); WirelessGatewayTaskStatus GetWirelessGatewayTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return WirelessGatewayTaskStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayType.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayType.cpp index 5d4ebbe3d2e..cc200d9f0e5 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayType.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WirelessGatewayTypeMapper { - static const int LoRaWAN_HASH = HashingUtils::HashString("LoRaWAN"); + static constexpr uint32_t LoRaWAN_HASH = ConstExprHashingUtils::HashString("LoRaWAN"); WirelessGatewayType GetWirelessGatewayTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LoRaWAN_HASH) { return WirelessGatewayType::LoRaWAN; diff --git a/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeErrors.cpp b/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeErrors.cpp index 4bfdf898144..d073254faa5 100644 --- a/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeErrors.cpp @@ -68,15 +68,15 @@ template<> AWS_IVSREALTIME_API AccessDeniedException IvsrealtimeError::GetModele namespace IvsrealtimeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int PENDING_VERIFICATION_HASH = HashingUtils::HashString("PendingVerification"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t PENDING_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PendingVerification"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventErrorCode.cpp b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventErrorCode.cpp index 0167b98b944..df874cf4eec 100644 --- a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventErrorCodeMapper { - static const int INSUFFICIENT_CAPABILITIES_HASH = HashingUtils::HashString("INSUFFICIENT_CAPABILITIES"); - static const int QUOTA_EXCEEDED_HASH = HashingUtils::HashString("QUOTA_EXCEEDED"); - static const int PUBLISHER_NOT_FOUND_HASH = HashingUtils::HashString("PUBLISHER_NOT_FOUND"); + static constexpr uint32_t INSUFFICIENT_CAPABILITIES_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_CAPABILITIES"); + static constexpr uint32_t QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("QUOTA_EXCEEDED"); + static constexpr uint32_t PUBLISHER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PUBLISHER_NOT_FOUND"); EventErrorCode GetEventErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSUFFICIENT_CAPABILITIES_HASH) { return EventErrorCode::INSUFFICIENT_CAPABILITIES; diff --git a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventName.cpp b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventName.cpp index 5edeaf43175..dcdebe81f37 100644 --- a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventName.cpp +++ b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/EventName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace EventNameMapper { - static const int JOINED_HASH = HashingUtils::HashString("JOINED"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int PUBLISH_STARTED_HASH = HashingUtils::HashString("PUBLISH_STARTED"); - static const int PUBLISH_STOPPED_HASH = HashingUtils::HashString("PUBLISH_STOPPED"); - static const int SUBSCRIBE_STARTED_HASH = HashingUtils::HashString("SUBSCRIBE_STARTED"); - static const int SUBSCRIBE_STOPPED_HASH = HashingUtils::HashString("SUBSCRIBE_STOPPED"); - static const int PUBLISH_ERROR_HASH = HashingUtils::HashString("PUBLISH_ERROR"); - static const int SUBSCRIBE_ERROR_HASH = HashingUtils::HashString("SUBSCRIBE_ERROR"); - static const int JOIN_ERROR_HASH = HashingUtils::HashString("JOIN_ERROR"); + static constexpr uint32_t JOINED_HASH = ConstExprHashingUtils::HashString("JOINED"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t PUBLISH_STARTED_HASH = ConstExprHashingUtils::HashString("PUBLISH_STARTED"); + static constexpr uint32_t PUBLISH_STOPPED_HASH = ConstExprHashingUtils::HashString("PUBLISH_STOPPED"); + static constexpr uint32_t SUBSCRIBE_STARTED_HASH = ConstExprHashingUtils::HashString("SUBSCRIBE_STARTED"); + static constexpr uint32_t SUBSCRIBE_STOPPED_HASH = ConstExprHashingUtils::HashString("SUBSCRIBE_STOPPED"); + static constexpr uint32_t PUBLISH_ERROR_HASH = ConstExprHashingUtils::HashString("PUBLISH_ERROR"); + static constexpr uint32_t SUBSCRIBE_ERROR_HASH = ConstExprHashingUtils::HashString("SUBSCRIBE_ERROR"); + static constexpr uint32_t JOIN_ERROR_HASH = ConstExprHashingUtils::HashString("JOIN_ERROR"); EventName GetEventNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JOINED_HASH) { return EventName::JOINED; diff --git a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantState.cpp b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantState.cpp index 7917c223320..d003b3466bb 100644 --- a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantState.cpp +++ b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParticipantStateMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); ParticipantState GetParticipantStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return ParticipantState::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantTokenCapability.cpp b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantTokenCapability.cpp index 50afe159a2d..982e34b5b73 100644 --- a/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantTokenCapability.cpp +++ b/generated/src/aws-cpp-sdk-ivs-realtime/source/model/ParticipantTokenCapability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParticipantTokenCapabilityMapper { - static const int PUBLISH_HASH = HashingUtils::HashString("PUBLISH"); - static const int SUBSCRIBE_HASH = HashingUtils::HashString("SUBSCRIBE"); + static constexpr uint32_t PUBLISH_HASH = ConstExprHashingUtils::HashString("PUBLISH"); + static constexpr uint32_t SUBSCRIBE_HASH = ConstExprHashingUtils::HashString("SUBSCRIBE"); ParticipantTokenCapability GetParticipantTokenCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISH_HASH) { return ParticipantTokenCapability::PUBLISH; diff --git a/generated/src/aws-cpp-sdk-ivs/source/IVSErrors.cpp b/generated/src/aws-cpp-sdk-ivs/source/IVSErrors.cpp index 5350d5854fc..1ff4d147c54 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/IVSErrors.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/IVSErrors.cpp @@ -89,17 +89,17 @@ template<> AWS_IVS_API ChannelNotBroadcasting IVSError::GetModeledError() namespace IVSErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int STREAM_UNAVAILABLE_HASH = HashingUtils::HashString("StreamUnavailable"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int PENDING_VERIFICATION_HASH = HashingUtils::HashString("PendingVerification"); -static const int CHANNEL_NOT_BROADCASTING_HASH = HashingUtils::HashString("ChannelNotBroadcasting"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t STREAM_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("StreamUnavailable"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t PENDING_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PendingVerification"); +static constexpr uint32_t CHANNEL_NOT_BROADCASTING_HASH = ConstExprHashingUtils::HashString("ChannelNotBroadcasting"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/ChannelLatencyMode.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/ChannelLatencyMode.cpp index fc27f8ec513..d8ceb399e7b 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/ChannelLatencyMode.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/ChannelLatencyMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelLatencyModeMapper { - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); ChannelLatencyMode GetChannelLatencyModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NORMAL_HASH) { return ChannelLatencyMode::NORMAL; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/ChannelType.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/ChannelType.cpp index 1517c66d029..71e34964721 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/ChannelType.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/ChannelType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChannelTypeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int ADVANCED_SD_HASH = HashingUtils::HashString("ADVANCED_SD"); - static const int ADVANCED_HD_HASH = HashingUtils::HashString("ADVANCED_HD"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t ADVANCED_SD_HASH = ConstExprHashingUtils::HashString("ADVANCED_SD"); + static constexpr uint32_t ADVANCED_HD_HASH = ConstExprHashingUtils::HashString("ADVANCED_HD"); ChannelType GetChannelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return ChannelType::BASIC; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/RecordingConfigurationState.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/RecordingConfigurationState.cpp index 546d19e31d6..4e572489bd9 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/RecordingConfigurationState.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/RecordingConfigurationState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecordingConfigurationStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); RecordingConfigurationState GetRecordingConfigurationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return RecordingConfigurationState::CREATING; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/RecordingMode.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/RecordingMode.cpp index f40096c0d37..b5b0054712c 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/RecordingMode.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/RecordingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordingModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int INTERVAL_HASH = HashingUtils::HashString("INTERVAL"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t INTERVAL_HASH = ConstExprHashingUtils::HashString("INTERVAL"); RecordingMode GetRecordingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return RecordingMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRendition.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRendition.cpp index 9d6aa8e62a3..162f5548e0a 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRendition.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRendition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RenditionConfigurationRenditionMapper { - static const int FULL_HD_HASH = HashingUtils::HashString("FULL_HD"); - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int LOWEST_RESOLUTION_HASH = HashingUtils::HashString("LOWEST_RESOLUTION"); + static constexpr uint32_t FULL_HD_HASH = ConstExprHashingUtils::HashString("FULL_HD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t LOWEST_RESOLUTION_HASH = ConstExprHashingUtils::HashString("LOWEST_RESOLUTION"); RenditionConfigurationRendition GetRenditionConfigurationRenditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HD_HASH) { return RenditionConfigurationRendition::FULL_HD; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRenditionSelection.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRenditionSelection.cpp index 7663f2b010e..2dc760b642c 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRenditionSelection.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/RenditionConfigurationRenditionSelection.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RenditionConfigurationRenditionSelectionMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); RenditionConfigurationRenditionSelection GetRenditionConfigurationRenditionSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return RenditionConfigurationRenditionSelection::ALL; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/StreamHealth.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/StreamHealth.cpp index aae8fa5b45a..3f5a7a7c2dc 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/StreamHealth.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/StreamHealth.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StreamHealthMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int STARVING_HASH = HashingUtils::HashString("STARVING"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t STARVING_HASH = ConstExprHashingUtils::HashString("STARVING"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); StreamHealth GetStreamHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return StreamHealth::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/StreamState.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/StreamState.cpp index 0f0cbf81135..10f8b9d2fbf 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/StreamState.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/StreamState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StreamStateMapper { - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); StreamState GetStreamStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIVE_HASH) { return StreamState::LIVE; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationResolution.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationResolution.cpp index 19146eb84b0..6e15d7c71d0 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationResolution.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationResolution.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ThumbnailConfigurationResolutionMapper { - static const int FULL_HD_HASH = HashingUtils::HashString("FULL_HD"); - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int LOWEST_RESOLUTION_HASH = HashingUtils::HashString("LOWEST_RESOLUTION"); + static constexpr uint32_t FULL_HD_HASH = ConstExprHashingUtils::HashString("FULL_HD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t LOWEST_RESOLUTION_HASH = ConstExprHashingUtils::HashString("LOWEST_RESOLUTION"); ThumbnailConfigurationResolution GetThumbnailConfigurationResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HD_HASH) { return ThumbnailConfigurationResolution::FULL_HD; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationStorage.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationStorage.cpp index ef6ba20f5ba..569ca9d5751 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationStorage.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/ThumbnailConfigurationStorage.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThumbnailConfigurationStorageMapper { - static const int SEQUENTIAL_HASH = HashingUtils::HashString("SEQUENTIAL"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); + static constexpr uint32_t SEQUENTIAL_HASH = ConstExprHashingUtils::HashString("SEQUENTIAL"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); ThumbnailConfigurationStorage GetThumbnailConfigurationStorageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEQUENTIAL_HASH) { return ThumbnailConfigurationStorage::SEQUENTIAL; diff --git a/generated/src/aws-cpp-sdk-ivs/source/model/TranscodePreset.cpp b/generated/src/aws-cpp-sdk-ivs/source/model/TranscodePreset.cpp index b8a347103a3..c5911d2fefc 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/model/TranscodePreset.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/model/TranscodePreset.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TranscodePresetMapper { - static const int HIGHER_BANDWIDTH_DELIVERY_HASH = HashingUtils::HashString("HIGHER_BANDWIDTH_DELIVERY"); - static const int CONSTRAINED_BANDWIDTH_DELIVERY_HASH = HashingUtils::HashString("CONSTRAINED_BANDWIDTH_DELIVERY"); + static constexpr uint32_t HIGHER_BANDWIDTH_DELIVERY_HASH = ConstExprHashingUtils::HashString("HIGHER_BANDWIDTH_DELIVERY"); + static constexpr uint32_t CONSTRAINED_BANDWIDTH_DELIVERY_HASH = ConstExprHashingUtils::HashString("CONSTRAINED_BANDWIDTH_DELIVERY"); TranscodePreset GetTranscodePresetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGHER_BANDWIDTH_DELIVERY_HASH) { return TranscodePreset::HIGHER_BANDWIDTH_DELIVERY; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/IvschatErrors.cpp b/generated/src/aws-cpp-sdk-ivschat/source/IvschatErrors.cpp index 6fc5f109015..56f57d771f1 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/IvschatErrors.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/IvschatErrors.cpp @@ -54,15 +54,15 @@ template<> AWS_IVSCHAT_API ValidationException IvschatError::GetModeledError() namespace IvschatErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int PENDING_VERIFICATION_HASH = HashingUtils::HashString("PendingVerification"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t PENDING_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PendingVerification"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/ChatTokenCapability.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/ChatTokenCapability.cpp index bde5be34409..b7c0999122f 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/ChatTokenCapability.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/ChatTokenCapability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChatTokenCapabilityMapper { - static const int SEND_MESSAGE_HASH = HashingUtils::HashString("SEND_MESSAGE"); - static const int DISCONNECT_USER_HASH = HashingUtils::HashString("DISCONNECT_USER"); - static const int DELETE_MESSAGE_HASH = HashingUtils::HashString("DELETE_MESSAGE"); + static constexpr uint32_t SEND_MESSAGE_HASH = ConstExprHashingUtils::HashString("SEND_MESSAGE"); + static constexpr uint32_t DISCONNECT_USER_HASH = ConstExprHashingUtils::HashString("DISCONNECT_USER"); + static constexpr uint32_t DELETE_MESSAGE_HASH = ConstExprHashingUtils::HashString("DELETE_MESSAGE"); ChatTokenCapability GetChatTokenCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_MESSAGE_HASH) { return ChatTokenCapability::SEND_MESSAGE; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/CreateLoggingConfigurationState.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/CreateLoggingConfigurationState.cpp index 5a6d0d77b6b..19a1c637d3a 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/CreateLoggingConfigurationState.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/CreateLoggingConfigurationState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CreateLoggingConfigurationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); CreateLoggingConfigurationState GetCreateLoggingConfigurationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return CreateLoggingConfigurationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/FallbackResult.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/FallbackResult.cpp index 8ddbe5ff954..e0e7c9e5151 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/FallbackResult.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/FallbackResult.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FallbackResultMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); FallbackResult GetFallbackResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return FallbackResult::ALLOW; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/LoggingConfigurationState.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/LoggingConfigurationState.cpp index df0480ea8b1..79367525ebd 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/LoggingConfigurationState.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/LoggingConfigurationState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace LoggingConfigurationStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); LoggingConfigurationState GetLoggingConfigurationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return LoggingConfigurationState::CREATING; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/ResourceType.cpp index 96d9ef19c02..f400ebcc77e 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/ResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceTypeMapper { - static const int ROOM_HASH = HashingUtils::HashString("ROOM"); + static constexpr uint32_t ROOM_HASH = ConstExprHashingUtils::HashString("ROOM"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROOM_HASH) { return ResourceType::ROOM; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/UpdateLoggingConfigurationState.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/UpdateLoggingConfigurationState.cpp index f5db6571666..828cc43929b 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/UpdateLoggingConfigurationState.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/UpdateLoggingConfigurationState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UpdateLoggingConfigurationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); UpdateLoggingConfigurationState GetUpdateLoggingConfigurationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return UpdateLoggingConfigurationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ivschat/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-ivschat/source/model/ValidationExceptionReason.cpp index e27edda035e..51f0a1a5e32 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/model/ValidationExceptionReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-kafka/source/KafkaErrors.cpp b/generated/src/aws-cpp-sdk-kafka/source/KafkaErrors.cpp index 93ec5fc8b79..b24c029ee01 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/KafkaErrors.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/KafkaErrors.cpp @@ -75,18 +75,18 @@ template<> AWS_KAFKA_API InternalServerErrorException KafkaError::GetModeledErro namespace KafkaErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/BrokerAZDistribution.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/BrokerAZDistribution.cpp index fcb3ebb9d29..0c2693a69d8 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/BrokerAZDistribution.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/BrokerAZDistribution.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BrokerAZDistributionMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); BrokerAZDistribution GetBrokerAZDistributionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return BrokerAZDistribution::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/ClientBroker.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/ClientBroker.cpp index 0ad91c35a7b..980a47bf269 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/ClientBroker.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/ClientBroker.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClientBrokerMapper { - static const int TLS_HASH = HashingUtils::HashString("TLS"); - static const int TLS_PLAINTEXT_HASH = HashingUtils::HashString("TLS_PLAINTEXT"); - static const int PLAINTEXT_HASH = HashingUtils::HashString("PLAINTEXT"); + static constexpr uint32_t TLS_HASH = ConstExprHashingUtils::HashString("TLS"); + static constexpr uint32_t TLS_PLAINTEXT_HASH = ConstExprHashingUtils::HashString("TLS_PLAINTEXT"); + static constexpr uint32_t PLAINTEXT_HASH = ConstExprHashingUtils::HashString("PLAINTEXT"); ClientBroker GetClientBrokerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TLS_HASH) { return ClientBroker::TLS; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/ClusterState.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/ClusterState.cpp index 0959cf679b2..0951fc129a7 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/ClusterState.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/ClusterState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ClusterStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int HEALING_HASH = HashingUtils::HashString("HEALING"); - static const int MAINTENANCE_HASH = HashingUtils::HashString("MAINTENANCE"); - static const int REBOOTING_BROKER_HASH = HashingUtils::HashString("REBOOTING_BROKER"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t HEALING_HASH = ConstExprHashingUtils::HashString("HEALING"); + static constexpr uint32_t MAINTENANCE_HASH = ConstExprHashingUtils::HashString("MAINTENANCE"); + static constexpr uint32_t REBOOTING_BROKER_HASH = ConstExprHashingUtils::HashString("REBOOTING_BROKER"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); ClusterState GetClusterStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ClusterState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/ClusterType.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/ClusterType.cpp index a3c1ace57bb..883573424af 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/ClusterType.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/ClusterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClusterTypeMapper { - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int SERVERLESS_HASH = HashingUtils::HashString("SERVERLESS"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t SERVERLESS_HASH = ConstExprHashingUtils::HashString("SERVERLESS"); ClusterType GetClusterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONED_HASH) { return ClusterType::PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/ConfigurationState.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/ConfigurationState.cpp index bbf8ece8ea1..736ded265bf 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/ConfigurationState.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/ConfigurationState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigurationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ConfigurationState GetConfigurationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ConfigurationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/EnhancedMonitoring.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/EnhancedMonitoring.cpp index 36f1b7f5a5b..24949b5b087 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/EnhancedMonitoring.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/EnhancedMonitoring.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EnhancedMonitoringMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int PER_BROKER_HASH = HashingUtils::HashString("PER_BROKER"); - static const int PER_TOPIC_PER_BROKER_HASH = HashingUtils::HashString("PER_TOPIC_PER_BROKER"); - static const int PER_TOPIC_PER_PARTITION_HASH = HashingUtils::HashString("PER_TOPIC_PER_PARTITION"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t PER_BROKER_HASH = ConstExprHashingUtils::HashString("PER_BROKER"); + static constexpr uint32_t PER_TOPIC_PER_BROKER_HASH = ConstExprHashingUtils::HashString("PER_TOPIC_PER_BROKER"); + static constexpr uint32_t PER_TOPIC_PER_PARTITION_HASH = ConstExprHashingUtils::HashString("PER_TOPIC_PER_PARTITION"); EnhancedMonitoring GetEnhancedMonitoringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return EnhancedMonitoring::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/KafkaVersionStatus.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/KafkaVersionStatus.cpp index 5f6b84426f2..088648a9846 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/KafkaVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/KafkaVersionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KafkaVersionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); KafkaVersionStatus GetKafkaVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return KafkaVersionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/NodeType.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/NodeType.cpp index c32e3da9835..ee67fba8d74 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/NodeType.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/NodeType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NodeTypeMapper { - static const int BROKER_HASH = HashingUtils::HashString("BROKER"); + static constexpr uint32_t BROKER_HASH = ConstExprHashingUtils::HashString("BROKER"); NodeType GetNodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BROKER_HASH) { return NodeType::BROKER; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/StorageMode.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/StorageMode.cpp index 8879eb05ff1..0e76f7b7813 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/StorageMode.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/StorageMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageModeMapper { - static const int LOCAL_HASH = HashingUtils::HashString("LOCAL"); - static const int TIERED_HASH = HashingUtils::HashString("TIERED"); + static constexpr uint32_t LOCAL_HASH = ConstExprHashingUtils::HashString("LOCAL"); + static constexpr uint32_t TIERED_HASH = ConstExprHashingUtils::HashString("TIERED"); StorageMode GetStorageModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOCAL_HASH) { return StorageMode::LOCAL; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/UserIdentityType.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/UserIdentityType.cpp index 8cfa4cf091f..1c893c7ed49 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/UserIdentityType.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/UserIdentityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserIdentityTypeMapper { - static const int AWSACCOUNT_HASH = HashingUtils::HashString("AWSACCOUNT"); - static const int AWSSERVICE_HASH = HashingUtils::HashString("AWSSERVICE"); + static constexpr uint32_t AWSACCOUNT_HASH = ConstExprHashingUtils::HashString("AWSACCOUNT"); + static constexpr uint32_t AWSSERVICE_HASH = ConstExprHashingUtils::HashString("AWSSERVICE"); UserIdentityType GetUserIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSACCOUNT_HASH) { return UserIdentityType::AWSACCOUNT; diff --git a/generated/src/aws-cpp-sdk-kafka/source/model/VpcConnectionState.cpp b/generated/src/aws-cpp-sdk-kafka/source/model/VpcConnectionState.cpp index f0466ae42f8..08f53318455 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/model/VpcConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/model/VpcConnectionState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace VpcConnectionStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DEACTIVATING_HASH = HashingUtils::HashString("DEACTIVATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int REJECTING_HASH = HashingUtils::HashString("REJECTING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DEACTIVATING_HASH = ConstExprHashingUtils::HashString("DEACTIVATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t REJECTING_HASH = ConstExprHashingUtils::HashString("REJECTING"); VpcConnectionState GetVpcConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return VpcConnectionState::CREATING; diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectErrors.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectErrors.cpp index 6d550db7ac6..e92a590b4aa 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectErrors.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectErrors.cpp @@ -18,18 +18,18 @@ namespace KafkaConnect namespace KafkaConnectErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/ConnectorState.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/ConnectorState.cpp index 9bceae14042..5707ab871f1 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/ConnectorState.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/ConnectorState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ConnectorStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ConnectorState GetConnectorStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return ConnectorState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginContentType.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginContentType.cpp index 857fadea50a..780c0b900bf 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginContentType.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginContentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomPluginContentTypeMapper { - static const int JAR_HASH = HashingUtils::HashString("JAR"); - static const int ZIP_HASH = HashingUtils::HashString("ZIP"); + static constexpr uint32_t JAR_HASH = ConstExprHashingUtils::HashString("JAR"); + static constexpr uint32_t ZIP_HASH = ConstExprHashingUtils::HashString("ZIP"); CustomPluginContentType GetCustomPluginContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JAR_HASH) { return CustomPluginContentType::JAR; diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginState.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginState.cpp index 43ab4c34245..1e3e7f85d4b 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginState.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/CustomPluginState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CustomPluginStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); CustomPluginState GetCustomPluginStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CustomPluginState::CREATING; diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterClientAuthenticationType.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterClientAuthenticationType.cpp index 9af300ef309..1f7743665ed 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterClientAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterClientAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KafkaClusterClientAuthenticationTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int IAM_HASH = HashingUtils::HashString("IAM"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); KafkaClusterClientAuthenticationType GetKafkaClusterClientAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return KafkaClusterClientAuthenticationType::NONE; diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterEncryptionInTransitType.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterEncryptionInTransitType.cpp index 8f7d7b495e3..4c2785b3cdd 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterEncryptionInTransitType.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/model/KafkaClusterEncryptionInTransitType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KafkaClusterEncryptionInTransitTypeMapper { - static const int PLAINTEXT_HASH = HashingUtils::HashString("PLAINTEXT"); - static const int TLS_HASH = HashingUtils::HashString("TLS"); + static constexpr uint32_t PLAINTEXT_HASH = ConstExprHashingUtils::HashString("PLAINTEXT"); + static constexpr uint32_t TLS_HASH = ConstExprHashingUtils::HashString("TLS"); KafkaClusterEncryptionInTransitType GetKafkaClusterEncryptionInTransitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAINTEXT_HASH) { return KafkaClusterEncryptionInTransitType::PLAINTEXT; diff --git a/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingErrors.cpp b/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingErrors.cpp index 3c179bf1535..50b1b6196f5 100644 --- a/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingErrors.cpp +++ b/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingErrors.cpp @@ -18,15 +18,15 @@ namespace KendraRanking namespace KendraRankingErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-kendra-ranking/source/model/RescoreExecutionPlanStatus.cpp b/generated/src/aws-cpp-sdk-kendra-ranking/source/model/RescoreExecutionPlanStatus.cpp index 119591dff40..baf18256bce 100644 --- a/generated/src/aws-cpp-sdk-kendra-ranking/source/model/RescoreExecutionPlanStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra-ranking/source/model/RescoreExecutionPlanStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RescoreExecutionPlanStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RescoreExecutionPlanStatus GetRescoreExecutionPlanStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return RescoreExecutionPlanStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/KendraErrors.cpp b/generated/src/aws-cpp-sdk-kendra/source/KendraErrors.cpp index 53d8f222b3e..158745921d2 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/KendraErrors.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/KendraErrors.cpp @@ -26,19 +26,19 @@ template<> AWS_KENDRA_API FeaturedResultsConflictException KendraError::GetModel namespace KendraErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int RESOURCE_ALREADY_EXIST_HASH = HashingUtils::HashString("ResourceAlreadyExistException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); -static const int FEATURED_RESULTS_CONFLICT_HASH = HashingUtils::HashString("FeaturedResultsConflictException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t RESOURCE_ALREADY_EXIST_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t FEATURED_RESULTS_CONFLICT_HASH = ConstExprHashingUtils::HashString("FeaturedResultsConflictException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/AdditionalResultAttributeValueType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/AdditionalResultAttributeValueType.cpp index 8e012dcad4b..0061d0acef6 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/AdditionalResultAttributeValueType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/AdditionalResultAttributeValueType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AdditionalResultAttributeValueTypeMapper { - static const int TEXT_WITH_HIGHLIGHTS_VALUE_HASH = HashingUtils::HashString("TEXT_WITH_HIGHLIGHTS_VALUE"); + static constexpr uint32_t TEXT_WITH_HIGHLIGHTS_VALUE_HASH = ConstExprHashingUtils::HashString("TEXT_WITH_HIGHLIGHTS_VALUE"); AdditionalResultAttributeValueType GetAdditionalResultAttributeValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_WITH_HIGHLIGHTS_VALUE_HASH) { return AdditionalResultAttributeValueType::TEXT_WITH_HIGHLIGHTS_VALUE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/AlfrescoEntity.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/AlfrescoEntity.cpp index 189fe883815..7464121b0a6 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/AlfrescoEntity.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/AlfrescoEntity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AlfrescoEntityMapper { - static const int wiki_HASH = HashingUtils::HashString("wiki"); - static const int blog_HASH = HashingUtils::HashString("blog"); - static const int documentLibrary_HASH = HashingUtils::HashString("documentLibrary"); + static constexpr uint32_t wiki_HASH = ConstExprHashingUtils::HashString("wiki"); + static constexpr uint32_t blog_HASH = ConstExprHashingUtils::HashString("blog"); + static constexpr uint32_t documentLibrary_HASH = ConstExprHashingUtils::HashString("documentLibrary"); AlfrescoEntity GetAlfrescoEntityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == wiki_HASH) { return AlfrescoEntity::wiki; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/AttributeSuggestionsMode.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/AttributeSuggestionsMode.cpp index b71157b27e2..5a5ed49af31 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/AttributeSuggestionsMode.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/AttributeSuggestionsMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AttributeSuggestionsModeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AttributeSuggestionsMode GetAttributeSuggestionsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AttributeSuggestionsMode::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConditionOperator.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConditionOperator.cpp index 1cc6175e9ac..3ee7b70e105 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConditionOperator.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConditionOperator.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ConditionOperatorMapper { - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int GreaterThanOrEquals_HASH = HashingUtils::HashString("GreaterThanOrEquals"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int LessThanOrEquals_HASH = HashingUtils::HashString("LessThanOrEquals"); - static const int Equals_HASH = HashingUtils::HashString("Equals"); - static const int NotEquals_HASH = HashingUtils::HashString("NotEquals"); - static const int Contains_HASH = HashingUtils::HashString("Contains"); - static const int NotContains_HASH = HashingUtils::HashString("NotContains"); - static const int Exists_HASH = HashingUtils::HashString("Exists"); - static const int NotExists_HASH = HashingUtils::HashString("NotExists"); - static const int BeginsWith_HASH = HashingUtils::HashString("BeginsWith"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t GreaterThanOrEquals_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEquals"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t LessThanOrEquals_HASH = ConstExprHashingUtils::HashString("LessThanOrEquals"); + static constexpr uint32_t Equals_HASH = ConstExprHashingUtils::HashString("Equals"); + static constexpr uint32_t NotEquals_HASH = ConstExprHashingUtils::HashString("NotEquals"); + static constexpr uint32_t Contains_HASH = ConstExprHashingUtils::HashString("Contains"); + static constexpr uint32_t NotContains_HASH = ConstExprHashingUtils::HashString("NotContains"); + static constexpr uint32_t Exists_HASH = ConstExprHashingUtils::HashString("Exists"); + static constexpr uint32_t NotExists_HASH = ConstExprHashingUtils::HashString("NotExists"); + static constexpr uint32_t BeginsWith_HASH = ConstExprHashingUtils::HashString("BeginsWith"); ConditionOperator GetConditionOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreaterThan_HASH) { return ConditionOperator::GreaterThan; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAttachmentFieldName.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAttachmentFieldName.cpp index c93798116bd..11724313963 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAttachmentFieldName.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAttachmentFieldName.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ConfluenceAttachmentFieldNameMapper { - static const int AUTHOR_HASH = HashingUtils::HashString("AUTHOR"); - static const int CONTENT_TYPE_HASH = HashingUtils::HashString("CONTENT_TYPE"); - static const int CREATED_DATE_HASH = HashingUtils::HashString("CREATED_DATE"); - static const int DISPLAY_URL_HASH = HashingUtils::HashString("DISPLAY_URL"); - static const int FILE_SIZE_HASH = HashingUtils::HashString("FILE_SIZE"); - static const int ITEM_TYPE_HASH = HashingUtils::HashString("ITEM_TYPE"); - static const int PARENT_ID_HASH = HashingUtils::HashString("PARENT_ID"); - static const int SPACE_KEY_HASH = HashingUtils::HashString("SPACE_KEY"); - static const int SPACE_NAME_HASH = HashingUtils::HashString("SPACE_NAME"); - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int VERSION_HASH = HashingUtils::HashString("VERSION"); + static constexpr uint32_t AUTHOR_HASH = ConstExprHashingUtils::HashString("AUTHOR"); + static constexpr uint32_t CONTENT_TYPE_HASH = ConstExprHashingUtils::HashString("CONTENT_TYPE"); + static constexpr uint32_t CREATED_DATE_HASH = ConstExprHashingUtils::HashString("CREATED_DATE"); + static constexpr uint32_t DISPLAY_URL_HASH = ConstExprHashingUtils::HashString("DISPLAY_URL"); + static constexpr uint32_t FILE_SIZE_HASH = ConstExprHashingUtils::HashString("FILE_SIZE"); + static constexpr uint32_t ITEM_TYPE_HASH = ConstExprHashingUtils::HashString("ITEM_TYPE"); + static constexpr uint32_t PARENT_ID_HASH = ConstExprHashingUtils::HashString("PARENT_ID"); + static constexpr uint32_t SPACE_KEY_HASH = ConstExprHashingUtils::HashString("SPACE_KEY"); + static constexpr uint32_t SPACE_NAME_HASH = ConstExprHashingUtils::HashString("SPACE_NAME"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t VERSION_HASH = ConstExprHashingUtils::HashString("VERSION"); ConfluenceAttachmentFieldName GetConfluenceAttachmentFieldNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTHOR_HASH) { return ConfluenceAttachmentFieldName::AUTHOR; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAuthenticationType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAuthenticationType.cpp index b03703b6dc1..e645be0a848 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfluenceAuthenticationTypeMapper { - static const int HTTP_BASIC_HASH = HashingUtils::HashString("HTTP_BASIC"); - static const int PAT_HASH = HashingUtils::HashString("PAT"); + static constexpr uint32_t HTTP_BASIC_HASH = ConstExprHashingUtils::HashString("HTTP_BASIC"); + static constexpr uint32_t PAT_HASH = ConstExprHashingUtils::HashString("PAT"); ConfluenceAuthenticationType GetConfluenceAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_BASIC_HASH) { return ConfluenceAuthenticationType::HTTP_BASIC; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceBlogFieldName.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceBlogFieldName.cpp index fab3bf594a3..ec43e8dc9d6 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceBlogFieldName.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceBlogFieldName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ConfluenceBlogFieldNameMapper { - static const int AUTHOR_HASH = HashingUtils::HashString("AUTHOR"); - static const int DISPLAY_URL_HASH = HashingUtils::HashString("DISPLAY_URL"); - static const int ITEM_TYPE_HASH = HashingUtils::HashString("ITEM_TYPE"); - static const int LABELS_HASH = HashingUtils::HashString("LABELS"); - static const int PUBLISH_DATE_HASH = HashingUtils::HashString("PUBLISH_DATE"); - static const int SPACE_KEY_HASH = HashingUtils::HashString("SPACE_KEY"); - static const int SPACE_NAME_HASH = HashingUtils::HashString("SPACE_NAME"); - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int VERSION_HASH = HashingUtils::HashString("VERSION"); + static constexpr uint32_t AUTHOR_HASH = ConstExprHashingUtils::HashString("AUTHOR"); + static constexpr uint32_t DISPLAY_URL_HASH = ConstExprHashingUtils::HashString("DISPLAY_URL"); + static constexpr uint32_t ITEM_TYPE_HASH = ConstExprHashingUtils::HashString("ITEM_TYPE"); + static constexpr uint32_t LABELS_HASH = ConstExprHashingUtils::HashString("LABELS"); + static constexpr uint32_t PUBLISH_DATE_HASH = ConstExprHashingUtils::HashString("PUBLISH_DATE"); + static constexpr uint32_t SPACE_KEY_HASH = ConstExprHashingUtils::HashString("SPACE_KEY"); + static constexpr uint32_t SPACE_NAME_HASH = ConstExprHashingUtils::HashString("SPACE_NAME"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t VERSION_HASH = ConstExprHashingUtils::HashString("VERSION"); ConfluenceBlogFieldName GetConfluenceBlogFieldNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTHOR_HASH) { return ConfluenceBlogFieldName::AUTHOR; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluencePageFieldName.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluencePageFieldName.cpp index d79b44e449d..faf86b2d380 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluencePageFieldName.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluencePageFieldName.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ConfluencePageFieldNameMapper { - static const int AUTHOR_HASH = HashingUtils::HashString("AUTHOR"); - static const int CONTENT_STATUS_HASH = HashingUtils::HashString("CONTENT_STATUS"); - static const int CREATED_DATE_HASH = HashingUtils::HashString("CREATED_DATE"); - static const int DISPLAY_URL_HASH = HashingUtils::HashString("DISPLAY_URL"); - static const int ITEM_TYPE_HASH = HashingUtils::HashString("ITEM_TYPE"); - static const int LABELS_HASH = HashingUtils::HashString("LABELS"); - static const int MODIFIED_DATE_HASH = HashingUtils::HashString("MODIFIED_DATE"); - static const int PARENT_ID_HASH = HashingUtils::HashString("PARENT_ID"); - static const int SPACE_KEY_HASH = HashingUtils::HashString("SPACE_KEY"); - static const int SPACE_NAME_HASH = HashingUtils::HashString("SPACE_NAME"); - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int VERSION_HASH = HashingUtils::HashString("VERSION"); + static constexpr uint32_t AUTHOR_HASH = ConstExprHashingUtils::HashString("AUTHOR"); + static constexpr uint32_t CONTENT_STATUS_HASH = ConstExprHashingUtils::HashString("CONTENT_STATUS"); + static constexpr uint32_t CREATED_DATE_HASH = ConstExprHashingUtils::HashString("CREATED_DATE"); + static constexpr uint32_t DISPLAY_URL_HASH = ConstExprHashingUtils::HashString("DISPLAY_URL"); + static constexpr uint32_t ITEM_TYPE_HASH = ConstExprHashingUtils::HashString("ITEM_TYPE"); + static constexpr uint32_t LABELS_HASH = ConstExprHashingUtils::HashString("LABELS"); + static constexpr uint32_t MODIFIED_DATE_HASH = ConstExprHashingUtils::HashString("MODIFIED_DATE"); + static constexpr uint32_t PARENT_ID_HASH = ConstExprHashingUtils::HashString("PARENT_ID"); + static constexpr uint32_t SPACE_KEY_HASH = ConstExprHashingUtils::HashString("SPACE_KEY"); + static constexpr uint32_t SPACE_NAME_HASH = ConstExprHashingUtils::HashString("SPACE_NAME"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t VERSION_HASH = ConstExprHashingUtils::HashString("VERSION"); ConfluencePageFieldName GetConfluencePageFieldNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTHOR_HASH) { return ConfluencePageFieldName::AUTHOR; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceSpaceFieldName.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceSpaceFieldName.cpp index 6c0c1bfaf01..b8acdf1c5d2 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceSpaceFieldName.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceSpaceFieldName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConfluenceSpaceFieldNameMapper { - static const int DISPLAY_URL_HASH = HashingUtils::HashString("DISPLAY_URL"); - static const int ITEM_TYPE_HASH = HashingUtils::HashString("ITEM_TYPE"); - static const int SPACE_KEY_HASH = HashingUtils::HashString("SPACE_KEY"); - static const int URL_HASH = HashingUtils::HashString("URL"); + static constexpr uint32_t DISPLAY_URL_HASH = ConstExprHashingUtils::HashString("DISPLAY_URL"); + static constexpr uint32_t ITEM_TYPE_HASH = ConstExprHashingUtils::HashString("ITEM_TYPE"); + static constexpr uint32_t SPACE_KEY_HASH = ConstExprHashingUtils::HashString("SPACE_KEY"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); ConfluenceSpaceFieldName GetConfluenceSpaceFieldNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISPLAY_URL_HASH) { return ConfluenceSpaceFieldName::DISPLAY_URL; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceVersion.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceVersion.cpp index be2753142b2..4ddfbbe5398 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceVersion.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ConfluenceVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfluenceVersionMapper { - static const int CLOUD_HASH = HashingUtils::HashString("CLOUD"); - static const int SERVER_HASH = HashingUtils::HashString("SERVER"); + static constexpr uint32_t CLOUD_HASH = ConstExprHashingUtils::HashString("CLOUD"); + static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("SERVER"); ConfluenceVersion GetConfluenceVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUD_HASH) { return ConfluenceVersion::CLOUD; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ContentType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ContentType.cpp index d345abc0506..5283eb55434 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ContentType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ContentType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ContentTypeMapper { - static const int PDF_HASH = HashingUtils::HashString("PDF"); - static const int HTML_HASH = HashingUtils::HashString("HTML"); - static const int MS_WORD_HASH = HashingUtils::HashString("MS_WORD"); - static const int PLAIN_TEXT_HASH = HashingUtils::HashString("PLAIN_TEXT"); - static const int PPT_HASH = HashingUtils::HashString("PPT"); - static const int RTF_HASH = HashingUtils::HashString("RTF"); - static const int XML_HASH = HashingUtils::HashString("XML"); - static const int XSLT_HASH = HashingUtils::HashString("XSLT"); - static const int MS_EXCEL_HASH = HashingUtils::HashString("MS_EXCEL"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int MD_HASH = HashingUtils::HashString("MD"); + static constexpr uint32_t PDF_HASH = ConstExprHashingUtils::HashString("PDF"); + static constexpr uint32_t HTML_HASH = ConstExprHashingUtils::HashString("HTML"); + static constexpr uint32_t MS_WORD_HASH = ConstExprHashingUtils::HashString("MS_WORD"); + static constexpr uint32_t PLAIN_TEXT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT"); + static constexpr uint32_t PPT_HASH = ConstExprHashingUtils::HashString("PPT"); + static constexpr uint32_t RTF_HASH = ConstExprHashingUtils::HashString("RTF"); + static constexpr uint32_t XML_HASH = ConstExprHashingUtils::HashString("XML"); + static constexpr uint32_t XSLT_HASH = ConstExprHashingUtils::HashString("XSLT"); + static constexpr uint32_t MS_EXCEL_HASH = ConstExprHashingUtils::HashString("MS_EXCEL"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t MD_HASH = ConstExprHashingUtils::HashString("MD"); ContentType GetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PDF_HASH) { return ContentType::PDF; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceStatus.cpp index bed5f6196dd..603795d746d 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataSourceStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); DataSourceStatus GetDataSourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DataSourceStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceSyncJobStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceSyncJobStatus.cpp index 3d076ee5813..d8e6da2b319 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceSyncJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceSyncJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DataSourceSyncJobStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int SYNCING_HASH = HashingUtils::HashString("SYNCING"); - static const int INCOMPLETE_HASH = HashingUtils::HashString("INCOMPLETE"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int SYNCING_INDEXING_HASH = HashingUtils::HashString("SYNCING_INDEXING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t SYNCING_HASH = ConstExprHashingUtils::HashString("SYNCING"); + static constexpr uint32_t INCOMPLETE_HASH = ConstExprHashingUtils::HashString("INCOMPLETE"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t SYNCING_INDEXING_HASH = ConstExprHashingUtils::HashString("SYNCING_INDEXING"); DataSourceSyncJobStatus GetDataSourceSyncJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return DataSourceSyncJobStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceType.cpp index c9355d8cbc1..184832ce44e 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/DataSourceType.cpp @@ -20,30 +20,30 @@ namespace Aws namespace DataSourceTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int SHAREPOINT_HASH = HashingUtils::HashString("SHAREPOINT"); - static const int DATABASE_HASH = HashingUtils::HashString("DATABASE"); - static const int SALESFORCE_HASH = HashingUtils::HashString("SALESFORCE"); - static const int ONEDRIVE_HASH = HashingUtils::HashString("ONEDRIVE"); - static const int SERVICENOW_HASH = HashingUtils::HashString("SERVICENOW"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int CONFLUENCE_HASH = HashingUtils::HashString("CONFLUENCE"); - static const int GOOGLEDRIVE_HASH = HashingUtils::HashString("GOOGLEDRIVE"); - static const int WEBCRAWLER_HASH = HashingUtils::HashString("WEBCRAWLER"); - static const int WORKDOCS_HASH = HashingUtils::HashString("WORKDOCS"); - static const int FSX_HASH = HashingUtils::HashString("FSX"); - static const int SLACK_HASH = HashingUtils::HashString("SLACK"); - static const int BOX_HASH = HashingUtils::HashString("BOX"); - static const int QUIP_HASH = HashingUtils::HashString("QUIP"); - static const int JIRA_HASH = HashingUtils::HashString("JIRA"); - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int ALFRESCO_HASH = HashingUtils::HashString("ALFRESCO"); - static const int TEMPLATE_HASH = HashingUtils::HashString("TEMPLATE"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t SHAREPOINT_HASH = ConstExprHashingUtils::HashString("SHAREPOINT"); + static constexpr uint32_t DATABASE_HASH = ConstExprHashingUtils::HashString("DATABASE"); + static constexpr uint32_t SALESFORCE_HASH = ConstExprHashingUtils::HashString("SALESFORCE"); + static constexpr uint32_t ONEDRIVE_HASH = ConstExprHashingUtils::HashString("ONEDRIVE"); + static constexpr uint32_t SERVICENOW_HASH = ConstExprHashingUtils::HashString("SERVICENOW"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t CONFLUENCE_HASH = ConstExprHashingUtils::HashString("CONFLUENCE"); + static constexpr uint32_t GOOGLEDRIVE_HASH = ConstExprHashingUtils::HashString("GOOGLEDRIVE"); + static constexpr uint32_t WEBCRAWLER_HASH = ConstExprHashingUtils::HashString("WEBCRAWLER"); + static constexpr uint32_t WORKDOCS_HASH = ConstExprHashingUtils::HashString("WORKDOCS"); + static constexpr uint32_t FSX_HASH = ConstExprHashingUtils::HashString("FSX"); + static constexpr uint32_t SLACK_HASH = ConstExprHashingUtils::HashString("SLACK"); + static constexpr uint32_t BOX_HASH = ConstExprHashingUtils::HashString("BOX"); + static constexpr uint32_t QUIP_HASH = ConstExprHashingUtils::HashString("QUIP"); + static constexpr uint32_t JIRA_HASH = ConstExprHashingUtils::HashString("JIRA"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t ALFRESCO_HASH = ConstExprHashingUtils::HashString("ALFRESCO"); + static constexpr uint32_t TEMPLATE_HASH = ConstExprHashingUtils::HashString("TEMPLATE"); DataSourceType GetDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return DataSourceType::S3; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/DatabaseEngineType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/DatabaseEngineType.cpp index 6a67e2896fd..83998501c1e 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/DatabaseEngineType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/DatabaseEngineType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DatabaseEngineTypeMapper { - static const int RDS_AURORA_MYSQL_HASH = HashingUtils::HashString("RDS_AURORA_MYSQL"); - static const int RDS_AURORA_POSTGRESQL_HASH = HashingUtils::HashString("RDS_AURORA_POSTGRESQL"); - static const int RDS_MYSQL_HASH = HashingUtils::HashString("RDS_MYSQL"); - static const int RDS_POSTGRESQL_HASH = HashingUtils::HashString("RDS_POSTGRESQL"); + static constexpr uint32_t RDS_AURORA_MYSQL_HASH = ConstExprHashingUtils::HashString("RDS_AURORA_MYSQL"); + static constexpr uint32_t RDS_AURORA_POSTGRESQL_HASH = ConstExprHashingUtils::HashString("RDS_AURORA_POSTGRESQL"); + static constexpr uint32_t RDS_MYSQL_HASH = ConstExprHashingUtils::HashString("RDS_MYSQL"); + static constexpr uint32_t RDS_POSTGRESQL_HASH = ConstExprHashingUtils::HashString("RDS_POSTGRESQL"); DatabaseEngineType GetDatabaseEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RDS_AURORA_MYSQL_HASH) { return DatabaseEngineType::RDS_AURORA_MYSQL; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/DocumentAttributeValueType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/DocumentAttributeValueType.cpp index 5aa1a1828f7..57b3e3c1eb9 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/DocumentAttributeValueType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/DocumentAttributeValueType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DocumentAttributeValueTypeMapper { - static const int STRING_VALUE_HASH = HashingUtils::HashString("STRING_VALUE"); - static const int STRING_LIST_VALUE_HASH = HashingUtils::HashString("STRING_LIST_VALUE"); - static const int LONG_VALUE_HASH = HashingUtils::HashString("LONG_VALUE"); - static const int DATE_VALUE_HASH = HashingUtils::HashString("DATE_VALUE"); + static constexpr uint32_t STRING_VALUE_HASH = ConstExprHashingUtils::HashString("STRING_VALUE"); + static constexpr uint32_t STRING_LIST_VALUE_HASH = ConstExprHashingUtils::HashString("STRING_LIST_VALUE"); + static constexpr uint32_t LONG_VALUE_HASH = ConstExprHashingUtils::HashString("LONG_VALUE"); + static constexpr uint32_t DATE_VALUE_HASH = ConstExprHashingUtils::HashString("DATE_VALUE"); DocumentAttributeValueType GetDocumentAttributeValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_VALUE_HASH) { return DocumentAttributeValueType::STRING_VALUE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/DocumentStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/DocumentStatus.cpp index e81dd92a16c..2ec40463969 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/DocumentStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/DocumentStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DocumentStatusMapper { - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int INDEXED_HASH = HashingUtils::HashString("INDEXED"); - static const int UPDATED_HASH = HashingUtils::HashString("UPDATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t INDEXED_HASH = ConstExprHashingUtils::HashString("INDEXED"); + static constexpr uint32_t UPDATED_HASH = ConstExprHashingUtils::HashString("UPDATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); DocumentStatus GetDocumentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_FOUND_HASH) { return DocumentStatus::NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/EndpointType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/EndpointType.cpp index 610b8582fcf..8c79d551792 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/EndpointType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/EndpointType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EndpointTypeMapper { - static const int HOME_HASH = HashingUtils::HashString("HOME"); + static constexpr uint32_t HOME_HASH = ConstExprHashingUtils::HashString("HOME"); EndpointType GetEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOME_HASH) { return EndpointType::HOME; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/EntityType.cpp index 5ada7553c0f..ae7f771acca 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/EntityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EntityTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return EntityType::USER; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ErrorCode.cpp index 6c05c10a0ee..436137bf9f2 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorCodeMapper { - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); - static const int InvalidRequest_HASH = HashingUtils::HashString("InvalidRequest"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); + static constexpr uint32_t InvalidRequest_HASH = ConstExprHashingUtils::HashString("InvalidRequest"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalError_HASH) { return ErrorCode::InternalError; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ExperienceStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ExperienceStatus.cpp index a7a87f52160..148b2aaae29 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ExperienceStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ExperienceStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExperienceStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ExperienceStatus GetExperienceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ExperienceStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/FaqFileFormat.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/FaqFileFormat.cpp index 6fd76aa7a5b..e4f0cf880e9 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/FaqFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/FaqFileFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FaqFileFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int CSV_WITH_HEADER_HASH = HashingUtils::HashString("CSV_WITH_HEADER"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_WITH_HEADER_HASH = ConstExprHashingUtils::HashString("CSV_WITH_HEADER"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); FaqFileFormat GetFaqFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return FaqFileFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/FaqStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/FaqStatus.cpp index e761ad0a614..f2db2f6ed98 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/FaqStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/FaqStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FaqStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); FaqStatus GetFaqStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return FaqStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/FeaturedResultsSetStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/FeaturedResultsSetStatus.cpp index 19088e8443d..2871bb610b2 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/FeaturedResultsSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/FeaturedResultsSetStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeaturedResultsSetStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); FeaturedResultsSetStatus GetFeaturedResultsSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return FeaturedResultsSetStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/FsxFileSystemType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/FsxFileSystemType.cpp index ea7f2b6d367..a02eb607b2c 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/FsxFileSystemType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/FsxFileSystemType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FsxFileSystemTypeMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); FsxFileSystemType GetFsxFileSystemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return FsxFileSystemType::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/HighlightType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/HighlightType.cpp index 42de31db822..64f0d493958 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/HighlightType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/HighlightType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HighlightTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int THESAURUS_SYNONYM_HASH = HashingUtils::HashString("THESAURUS_SYNONYM"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t THESAURUS_SYNONYM_HASH = ConstExprHashingUtils::HashString("THESAURUS_SYNONYM"); HighlightType GetHighlightTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return HighlightType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/IndexEdition.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/IndexEdition.cpp index 9887b2a5180..d4df1c1273e 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/IndexEdition.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/IndexEdition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IndexEditionMapper { - static const int DEVELOPER_EDITION_HASH = HashingUtils::HashString("DEVELOPER_EDITION"); - static const int ENTERPRISE_EDITION_HASH = HashingUtils::HashString("ENTERPRISE_EDITION"); + static constexpr uint32_t DEVELOPER_EDITION_HASH = ConstExprHashingUtils::HashString("DEVELOPER_EDITION"); + static constexpr uint32_t ENTERPRISE_EDITION_HASH = ConstExprHashingUtils::HashString("ENTERPRISE_EDITION"); IndexEdition GetIndexEditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVELOPER_EDITION_HASH) { return IndexEdition::DEVELOPER_EDITION; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/IndexStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/IndexStatus.cpp index 86143a4fe56..ef17d244d71 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/IndexStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/IndexStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IndexStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int SYSTEM_UPDATING_HASH = HashingUtils::HashString("SYSTEM_UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t SYSTEM_UPDATING_HASH = ConstExprHashingUtils::HashString("SYSTEM_UPDATING"); IndexStatus GetIndexStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return IndexStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/Interval.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/Interval.cpp index 779680e4126..eb0ff11d7d1 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/Interval.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/Interval.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IntervalMapper { - static const int THIS_MONTH_HASH = HashingUtils::HashString("THIS_MONTH"); - static const int THIS_WEEK_HASH = HashingUtils::HashString("THIS_WEEK"); - static const int ONE_WEEK_AGO_HASH = HashingUtils::HashString("ONE_WEEK_AGO"); - static const int TWO_WEEKS_AGO_HASH = HashingUtils::HashString("TWO_WEEKS_AGO"); - static const int ONE_MONTH_AGO_HASH = HashingUtils::HashString("ONE_MONTH_AGO"); - static const int TWO_MONTHS_AGO_HASH = HashingUtils::HashString("TWO_MONTHS_AGO"); + static constexpr uint32_t THIS_MONTH_HASH = ConstExprHashingUtils::HashString("THIS_MONTH"); + static constexpr uint32_t THIS_WEEK_HASH = ConstExprHashingUtils::HashString("THIS_WEEK"); + static constexpr uint32_t ONE_WEEK_AGO_HASH = ConstExprHashingUtils::HashString("ONE_WEEK_AGO"); + static constexpr uint32_t TWO_WEEKS_AGO_HASH = ConstExprHashingUtils::HashString("TWO_WEEKS_AGO"); + static constexpr uint32_t ONE_MONTH_AGO_HASH = ConstExprHashingUtils::HashString("ONE_MONTH_AGO"); + static constexpr uint32_t TWO_MONTHS_AGO_HASH = ConstExprHashingUtils::HashString("TWO_MONTHS_AGO"); Interval GetIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == THIS_MONTH_HASH) { return Interval::THIS_MONTH; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/IssueSubEntity.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/IssueSubEntity.cpp index 60521dd4b60..ef69c65ac8a 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/IssueSubEntity.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/IssueSubEntity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IssueSubEntityMapper { - static const int COMMENTS_HASH = HashingUtils::HashString("COMMENTS"); - static const int ATTACHMENTS_HASH = HashingUtils::HashString("ATTACHMENTS"); - static const int WORKLOGS_HASH = HashingUtils::HashString("WORKLOGS"); + static constexpr uint32_t COMMENTS_HASH = ConstExprHashingUtils::HashString("COMMENTS"); + static constexpr uint32_t ATTACHMENTS_HASH = ConstExprHashingUtils::HashString("ATTACHMENTS"); + static constexpr uint32_t WORKLOGS_HASH = ConstExprHashingUtils::HashString("WORKLOGS"); IssueSubEntity GetIssueSubEntityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMENTS_HASH) { return IssueSubEntity::COMMENTS; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/KeyLocation.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/KeyLocation.cpp index bf885825078..491c2d86b04 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/KeyLocation.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/KeyLocation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyLocationMapper { - static const int URL_HASH = HashingUtils::HashString("URL"); - static const int SECRET_MANAGER_HASH = HashingUtils::HashString("SECRET_MANAGER"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); + static constexpr uint32_t SECRET_MANAGER_HASH = ConstExprHashingUtils::HashString("SECRET_MANAGER"); KeyLocation GetKeyLocationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == URL_HASH) { return KeyLocation::URL; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/MetricType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/MetricType.cpp index eed1ed95e89..16ca4215fc3 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/MetricType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/MetricType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MetricTypeMapper { - static const int QUERIES_BY_COUNT_HASH = HashingUtils::HashString("QUERIES_BY_COUNT"); - static const int QUERIES_BY_ZERO_CLICK_RATE_HASH = HashingUtils::HashString("QUERIES_BY_ZERO_CLICK_RATE"); - static const int QUERIES_BY_ZERO_RESULT_RATE_HASH = HashingUtils::HashString("QUERIES_BY_ZERO_RESULT_RATE"); - static const int DOCS_BY_CLICK_COUNT_HASH = HashingUtils::HashString("DOCS_BY_CLICK_COUNT"); - static const int AGG_QUERY_DOC_METRICS_HASH = HashingUtils::HashString("AGG_QUERY_DOC_METRICS"); - static const int TREND_QUERY_DOC_METRICS_HASH = HashingUtils::HashString("TREND_QUERY_DOC_METRICS"); + static constexpr uint32_t QUERIES_BY_COUNT_HASH = ConstExprHashingUtils::HashString("QUERIES_BY_COUNT"); + static constexpr uint32_t QUERIES_BY_ZERO_CLICK_RATE_HASH = ConstExprHashingUtils::HashString("QUERIES_BY_ZERO_CLICK_RATE"); + static constexpr uint32_t QUERIES_BY_ZERO_RESULT_RATE_HASH = ConstExprHashingUtils::HashString("QUERIES_BY_ZERO_RESULT_RATE"); + static constexpr uint32_t DOCS_BY_CLICK_COUNT_HASH = ConstExprHashingUtils::HashString("DOCS_BY_CLICK_COUNT"); + static constexpr uint32_t AGG_QUERY_DOC_METRICS_HASH = ConstExprHashingUtils::HashString("AGG_QUERY_DOC_METRICS"); + static constexpr uint32_t TREND_QUERY_DOC_METRICS_HASH = ConstExprHashingUtils::HashString("TREND_QUERY_DOC_METRICS"); MetricType GetMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUERIES_BY_COUNT_HASH) { return MetricType::QUERIES_BY_COUNT; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/Mode.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/Mode.cpp index 314fffd4658..ce9f65a2eac 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/Mode.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/Mode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModeMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int LEARN_ONLY_HASH = HashingUtils::HashString("LEARN_ONLY"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t LEARN_ONLY_HASH = ConstExprHashingUtils::HashString("LEARN_ONLY"); Mode GetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Mode::ENABLED; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/Order.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/Order.cpp index 6f12ed91383..4bc0962f75c 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/Order.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/Order.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); Order GetOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return Order::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/Persona.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/Persona.cpp index ced896296d4..1295b436e0a 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/Persona.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/Persona.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PersonaMapper { - static const int OWNER_HASH = HashingUtils::HashString("OWNER"); - static const int VIEWER_HASH = HashingUtils::HashString("VIEWER"); + static constexpr uint32_t OWNER_HASH = ConstExprHashingUtils::HashString("OWNER"); + static constexpr uint32_t VIEWER_HASH = ConstExprHashingUtils::HashString("VIEWER"); Persona GetPersonaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OWNER_HASH) { return Persona::OWNER; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalMappingStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalMappingStatus.cpp index 92ad9c89694..1b920bb3074 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalMappingStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalMappingStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PrincipalMappingStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); PrincipalMappingStatus GetPrincipalMappingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return PrincipalMappingStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalType.cpp index 94719aaa98a..1c0640bf48d 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/PrincipalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PrincipalTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return PrincipalType::USER; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/QueryIdentifiersEnclosingOption.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/QueryIdentifiersEnclosingOption.cpp index bdb57b3b74d..c93ddd04e8a 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/QueryIdentifiersEnclosingOption.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/QueryIdentifiersEnclosingOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueryIdentifiersEnclosingOptionMapper { - static const int DOUBLE_QUOTES_HASH = HashingUtils::HashString("DOUBLE_QUOTES"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t DOUBLE_QUOTES_HASH = ConstExprHashingUtils::HashString("DOUBLE_QUOTES"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); QueryIdentifiersEnclosingOption GetQueryIdentifiersEnclosingOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOUBLE_QUOTES_HASH) { return QueryIdentifiersEnclosingOption::DOUBLE_QUOTES; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultFormat.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultFormat.cpp index 6a3c177a429..9684fe0754f 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultFormat.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueryResultFormatMapper { - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); QueryResultFormat GetQueryResultFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABLE_HASH) { return QueryResultFormat::TABLE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultType.cpp index 9638174f1aa..2e5255c483f 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/QueryResultType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace QueryResultTypeMapper { - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int QUESTION_ANSWER_HASH = HashingUtils::HashString("QUESTION_ANSWER"); - static const int ANSWER_HASH = HashingUtils::HashString("ANSWER"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t QUESTION_ANSWER_HASH = ConstExprHashingUtils::HashString("QUESTION_ANSWER"); + static constexpr uint32_t ANSWER_HASH = ConstExprHashingUtils::HashString("ANSWER"); QueryResultType GetQueryResultTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_HASH) { return QueryResultType::DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsBlockListStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsBlockListStatus.cpp index e5fa9df54b0..4116e7c9074 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsBlockListStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsBlockListStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace QuerySuggestionsBlockListStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_BUT_UPDATE_FAILED_HASH = HashingUtils::HashString("ACTIVE_BUT_UPDATE_FAILED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_BUT_UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("ACTIVE_BUT_UPDATE_FAILED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); QuerySuggestionsBlockListStatus GetQuerySuggestionsBlockListStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return QuerySuggestionsBlockListStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsStatus.cpp index 691f699e83f..b474d50e148 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/QuerySuggestionsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuerySuggestionsStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); QuerySuggestionsStatus GetQuerySuggestionsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return QuerySuggestionsStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ReadAccessType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ReadAccessType.cpp index dd0075a945b..32b386fbfed 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ReadAccessType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ReadAccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReadAccessTypeMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); ReadAccessType GetReadAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return ReadAccessType::ALLOW; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/RelevanceType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/RelevanceType.cpp index cf65a945895..2b10bd44b80 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/RelevanceType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/RelevanceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RelevanceTypeMapper { - static const int RELEVANT_HASH = HashingUtils::HashString("RELEVANT"); - static const int NOT_RELEVANT_HASH = HashingUtils::HashString("NOT_RELEVANT"); + static constexpr uint32_t RELEVANT_HASH = ConstExprHashingUtils::HashString("RELEVANT"); + static constexpr uint32_t NOT_RELEVANT_HASH = ConstExprHashingUtils::HashString("NOT_RELEVANT"); RelevanceType GetRelevanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RELEVANT_HASH) { return RelevanceType::RELEVANT; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceChatterFeedIncludeFilterType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceChatterFeedIncludeFilterType.cpp index 40fe11244bd..c2ec58e21f0 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceChatterFeedIncludeFilterType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceChatterFeedIncludeFilterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SalesforceChatterFeedIncludeFilterTypeMapper { - static const int ACTIVE_USER_HASH = HashingUtils::HashString("ACTIVE_USER"); - static const int STANDARD_USER_HASH = HashingUtils::HashString("STANDARD_USER"); + static constexpr uint32_t ACTIVE_USER_HASH = ConstExprHashingUtils::HashString("ACTIVE_USER"); + static constexpr uint32_t STANDARD_USER_HASH = ConstExprHashingUtils::HashString("STANDARD_USER"); SalesforceChatterFeedIncludeFilterType GetSalesforceChatterFeedIncludeFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_USER_HASH) { return SalesforceChatterFeedIncludeFilterType::ACTIVE_USER; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceKnowledgeArticleState.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceKnowledgeArticleState.cpp index 30e9513a058..e3905fe824d 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceKnowledgeArticleState.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceKnowledgeArticleState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SalesforceKnowledgeArticleStateMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); SalesforceKnowledgeArticleState GetSalesforceKnowledgeArticleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return SalesforceKnowledgeArticleState::DRAFT; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceStandardObjectName.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceStandardObjectName.cpp index f2e05365d64..55afb62f69a 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceStandardObjectName.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SalesforceStandardObjectName.cpp @@ -20,28 +20,28 @@ namespace Aws namespace SalesforceStandardObjectNameMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int CAMPAIGN_HASH = HashingUtils::HashString("CAMPAIGN"); - static const int CASE_HASH = HashingUtils::HashString("CASE"); - static const int CONTACT_HASH = HashingUtils::HashString("CONTACT"); - static const int CONTRACT_HASH = HashingUtils::HashString("CONTRACT"); - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int IDEA_HASH = HashingUtils::HashString("IDEA"); - static const int LEAD_HASH = HashingUtils::HashString("LEAD"); - static const int OPPORTUNITY_HASH = HashingUtils::HashString("OPPORTUNITY"); - static const int PARTNER_HASH = HashingUtils::HashString("PARTNER"); - static const int PRICEBOOK_HASH = HashingUtils::HashString("PRICEBOOK"); - static const int PRODUCT_HASH = HashingUtils::HashString("PRODUCT"); - static const int PROFILE_HASH = HashingUtils::HashString("PROFILE"); - static const int SOLUTION_HASH = HashingUtils::HashString("SOLUTION"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); - static const int USER_HASH = HashingUtils::HashString("USER"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t CAMPAIGN_HASH = ConstExprHashingUtils::HashString("CAMPAIGN"); + static constexpr uint32_t CASE_HASH = ConstExprHashingUtils::HashString("CASE"); + static constexpr uint32_t CONTACT_HASH = ConstExprHashingUtils::HashString("CONTACT"); + static constexpr uint32_t CONTRACT_HASH = ConstExprHashingUtils::HashString("CONTRACT"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t IDEA_HASH = ConstExprHashingUtils::HashString("IDEA"); + static constexpr uint32_t LEAD_HASH = ConstExprHashingUtils::HashString("LEAD"); + static constexpr uint32_t OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("OPPORTUNITY"); + static constexpr uint32_t PARTNER_HASH = ConstExprHashingUtils::HashString("PARTNER"); + static constexpr uint32_t PRICEBOOK_HASH = ConstExprHashingUtils::HashString("PRICEBOOK"); + static constexpr uint32_t PRODUCT_HASH = ConstExprHashingUtils::HashString("PRODUCT"); + static constexpr uint32_t PROFILE_HASH = ConstExprHashingUtils::HashString("PROFILE"); + static constexpr uint32_t SOLUTION_HASH = ConstExprHashingUtils::HashString("SOLUTION"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); SalesforceStandardObjectName GetSalesforceStandardObjectNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return SalesforceStandardObjectName::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ScoreConfidence.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ScoreConfidence.cpp index 55b419fbd31..3539952400f 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ScoreConfidence.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ScoreConfidence.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ScoreConfidenceMapper { - static const int VERY_HIGH_HASH = HashingUtils::HashString("VERY_HIGH"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t VERY_HIGH_HASH = ConstExprHashingUtils::HashString("VERY_HIGH"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); ScoreConfidence GetScoreConfidenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERY_HIGH_HASH) { return ScoreConfidence::VERY_HIGH; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowAuthenticationType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowAuthenticationType.cpp index c32693b5664..921ef8ad79d 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceNowAuthenticationTypeMapper { - static const int HTTP_BASIC_HASH = HashingUtils::HashString("HTTP_BASIC"); - static const int OAUTH2_HASH = HashingUtils::HashString("OAUTH2"); + static constexpr uint32_t HTTP_BASIC_HASH = ConstExprHashingUtils::HashString("HTTP_BASIC"); + static constexpr uint32_t OAUTH2_HASH = ConstExprHashingUtils::HashString("OAUTH2"); ServiceNowAuthenticationType GetServiceNowAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_BASIC_HASH) { return ServiceNowAuthenticationType::HTTP_BASIC; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowBuildVersionType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowBuildVersionType.cpp index 991c7ff1e7d..ba5d29b9ba2 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowBuildVersionType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ServiceNowBuildVersionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceNowBuildVersionTypeMapper { - static const int LONDON_HASH = HashingUtils::HashString("LONDON"); - static const int OTHERS_HASH = HashingUtils::HashString("OTHERS"); + static constexpr uint32_t LONDON_HASH = ConstExprHashingUtils::HashString("LONDON"); + static constexpr uint32_t OTHERS_HASH = ConstExprHashingUtils::HashString("OTHERS"); ServiceNowBuildVersionType GetServiceNowBuildVersionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LONDON_HASH) { return ServiceNowBuildVersionType::LONDON; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SharePointOnlineAuthenticationType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SharePointOnlineAuthenticationType.cpp index a5582316a60..b954c3dab6d 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SharePointOnlineAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SharePointOnlineAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SharePointOnlineAuthenticationTypeMapper { - static const int HTTP_BASIC_HASH = HashingUtils::HashString("HTTP_BASIC"); - static const int OAUTH2_HASH = HashingUtils::HashString("OAUTH2"); + static constexpr uint32_t HTTP_BASIC_HASH = ConstExprHashingUtils::HashString("HTTP_BASIC"); + static constexpr uint32_t OAUTH2_HASH = ConstExprHashingUtils::HashString("OAUTH2"); SharePointOnlineAuthenticationType GetSharePointOnlineAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_BASIC_HASH) { return SharePointOnlineAuthenticationType::HTTP_BASIC; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SharePointVersion.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SharePointVersion.cpp index 1cf5299b3c0..ada3ecd036a 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SharePointVersion.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SharePointVersion.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SharePointVersionMapper { - static const int SHAREPOINT_2013_HASH = HashingUtils::HashString("SHAREPOINT_2013"); - static const int SHAREPOINT_2016_HASH = HashingUtils::HashString("SHAREPOINT_2016"); - static const int SHAREPOINT_ONLINE_HASH = HashingUtils::HashString("SHAREPOINT_ONLINE"); - static const int SHAREPOINT_2019_HASH = HashingUtils::HashString("SHAREPOINT_2019"); + static constexpr uint32_t SHAREPOINT_2013_HASH = ConstExprHashingUtils::HashString("SHAREPOINT_2013"); + static constexpr uint32_t SHAREPOINT_2016_HASH = ConstExprHashingUtils::HashString("SHAREPOINT_2016"); + static constexpr uint32_t SHAREPOINT_ONLINE_HASH = ConstExprHashingUtils::HashString("SHAREPOINT_ONLINE"); + static constexpr uint32_t SHAREPOINT_2019_HASH = ConstExprHashingUtils::HashString("SHAREPOINT_2019"); SharePointVersion GetSharePointVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHAREPOINT_2013_HASH) { return SharePointVersion::SHAREPOINT_2013; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SlackEntity.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SlackEntity.cpp index 50f1a8e742e..df736a0320b 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SlackEntity.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SlackEntity.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SlackEntityMapper { - static const int PUBLIC_CHANNEL_HASH = HashingUtils::HashString("PUBLIC_CHANNEL"); - static const int PRIVATE_CHANNEL_HASH = HashingUtils::HashString("PRIVATE_CHANNEL"); - static const int GROUP_MESSAGE_HASH = HashingUtils::HashString("GROUP_MESSAGE"); - static const int DIRECT_MESSAGE_HASH = HashingUtils::HashString("DIRECT_MESSAGE"); + static constexpr uint32_t PUBLIC_CHANNEL_HASH = ConstExprHashingUtils::HashString("PUBLIC_CHANNEL"); + static constexpr uint32_t PRIVATE_CHANNEL_HASH = ConstExprHashingUtils::HashString("PRIVATE_CHANNEL"); + static constexpr uint32_t GROUP_MESSAGE_HASH = ConstExprHashingUtils::HashString("GROUP_MESSAGE"); + static constexpr uint32_t DIRECT_MESSAGE_HASH = ConstExprHashingUtils::HashString("DIRECT_MESSAGE"); SlackEntity GetSlackEntityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC_CHANNEL_HASH) { return SlackEntity::PUBLIC_CHANNEL; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SortOrder.cpp index 341bcee42fb..089d6db6fe5 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int DESC_HASH = HashingUtils::HashString("DESC"); - static const int ASC_HASH = HashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESC_HASH) { return SortOrder::DESC; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/SuggestionType.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/SuggestionType.cpp index 0fd26e50140..e0b5760db31 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/SuggestionType.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/SuggestionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SuggestionTypeMapper { - static const int QUERY_HASH = HashingUtils::HashString("QUERY"); - static const int DOCUMENT_ATTRIBUTES_HASH = HashingUtils::HashString("DOCUMENT_ATTRIBUTES"); + static constexpr uint32_t QUERY_HASH = ConstExprHashingUtils::HashString("QUERY"); + static constexpr uint32_t DOCUMENT_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("DOCUMENT_ATTRIBUTES"); SuggestionType GetSuggestionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUERY_HASH) { return SuggestionType::QUERY; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/ThesaurusStatus.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/ThesaurusStatus.cpp index 3b219bea5c9..36014049a99 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/ThesaurusStatus.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/ThesaurusStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ThesaurusStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_BUT_UPDATE_FAILED_HASH = HashingUtils::HashString("ACTIVE_BUT_UPDATE_FAILED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_BUT_UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("ACTIVE_BUT_UPDATE_FAILED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ThesaurusStatus GetThesaurusStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ThesaurusStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/Type.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/Type.cpp index d0a1e924f48..3239e284879 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int SAAS_HASH = HashingUtils::HashString("SAAS"); - static const int ON_PREMISE_HASH = HashingUtils::HashString("ON_PREMISE"); + static constexpr uint32_t SAAS_HASH = ConstExprHashingUtils::HashString("SAAS"); + static constexpr uint32_t ON_PREMISE_HASH = ConstExprHashingUtils::HashString("ON_PREMISE"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAAS_HASH) { return Type::SAAS; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/UserContextPolicy.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/UserContextPolicy.cpp index 6f4f55b8b17..e02c9cea748 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/UserContextPolicy.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/UserContextPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserContextPolicyMapper { - static const int ATTRIBUTE_FILTER_HASH = HashingUtils::HashString("ATTRIBUTE_FILTER"); - static const int USER_TOKEN_HASH = HashingUtils::HashString("USER_TOKEN"); + static constexpr uint32_t ATTRIBUTE_FILTER_HASH = ConstExprHashingUtils::HashString("ATTRIBUTE_FILTER"); + static constexpr uint32_t USER_TOKEN_HASH = ConstExprHashingUtils::HashString("USER_TOKEN"); UserContextPolicy GetUserContextPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTRIBUTE_FILTER_HASH) { return UserContextPolicy::ATTRIBUTE_FILTER; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/UserGroupResolutionMode.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/UserGroupResolutionMode.cpp index a5954dc5a1b..40432b4ce01 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/UserGroupResolutionMode.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/UserGroupResolutionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserGroupResolutionModeMapper { - static const int AWS_SSO_HASH = HashingUtils::HashString("AWS_SSO"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t AWS_SSO_HASH = ConstExprHashingUtils::HashString("AWS_SSO"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); UserGroupResolutionMode GetUserGroupResolutionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_SSO_HASH) { return UserGroupResolutionMode::AWS_SSO; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/WarningCode.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/WarningCode.cpp index 56c83fb4d83..39b17762483 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/WarningCode.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/WarningCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WarningCodeMapper { - static const int QUERY_LANGUAGE_INVALID_SYNTAX_HASH = HashingUtils::HashString("QUERY_LANGUAGE_INVALID_SYNTAX"); + static constexpr uint32_t QUERY_LANGUAGE_INVALID_SYNTAX_HASH = ConstExprHashingUtils::HashString("QUERY_LANGUAGE_INVALID_SYNTAX"); WarningCode GetWarningCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUERY_LANGUAGE_INVALID_SYNTAX_HASH) { return WarningCode::QUERY_LANGUAGE_INVALID_SYNTAX; diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/WebCrawlerMode.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/WebCrawlerMode.cpp index c18c6b3a4e4..30ebefd8f9f 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/WebCrawlerMode.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/WebCrawlerMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WebCrawlerModeMapper { - static const int HOST_ONLY_HASH = HashingUtils::HashString("HOST_ONLY"); - static const int SUBDOMAINS_HASH = HashingUtils::HashString("SUBDOMAINS"); - static const int EVERYTHING_HASH = HashingUtils::HashString("EVERYTHING"); + static constexpr uint32_t HOST_ONLY_HASH = ConstExprHashingUtils::HashString("HOST_ONLY"); + static constexpr uint32_t SUBDOMAINS_HASH = ConstExprHashingUtils::HashString("SUBDOMAINS"); + static constexpr uint32_t EVERYTHING_HASH = ConstExprHashingUtils::HashString("EVERYTHING"); WebCrawlerMode GetWebCrawlerModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOST_ONLY_HASH) { return WebCrawlerMode::HOST_ONLY; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesErrors.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesErrors.cpp index f6b776c3d38..87ca6e2bac3 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesErrors.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_KEYSPACES_API ResourceNotFoundException KeyspacesError::GetModele namespace KeyspacesErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/ClientSideTimestampsStatus.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/ClientSideTimestampsStatus.cpp index 846183dba83..baa09ac78d4 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/ClientSideTimestampsStatus.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/ClientSideTimestampsStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ClientSideTimestampsStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); ClientSideTimestampsStatus GetClientSideTimestampsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ClientSideTimestampsStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/EncryptionType.cpp index 2039c8e1f09..7654a1774ba 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int CUSTOMER_MANAGED_KMS_KEY_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_KMS_KEY"); - static const int AWS_OWNED_KMS_KEY_HASH = HashingUtils::HashString("AWS_OWNED_KMS_KEY"); + static constexpr uint32_t CUSTOMER_MANAGED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_KMS_KEY"); + static constexpr uint32_t AWS_OWNED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_KMS_KEY"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_KMS_KEY_HASH) { return EncryptionType::CUSTOMER_MANAGED_KMS_KEY; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/PointInTimeRecoveryStatus.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/PointInTimeRecoveryStatus.cpp index 48cfee31032..d984726f232 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/PointInTimeRecoveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/PointInTimeRecoveryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PointInTimeRecoveryStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); PointInTimeRecoveryStatus GetPointInTimeRecoveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return PointInTimeRecoveryStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/Rs.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/Rs.cpp index b5218bd6d00..f67dcaa49e8 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/Rs.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/Rs.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RsMapper { - static const int SINGLE_REGION_HASH = HashingUtils::HashString("SINGLE_REGION"); - static const int MULTI_REGION_HASH = HashingUtils::HashString("MULTI_REGION"); + static constexpr uint32_t SINGLE_REGION_HASH = ConstExprHashingUtils::HashString("SINGLE_REGION"); + static constexpr uint32_t MULTI_REGION_HASH = ConstExprHashingUtils::HashString("MULTI_REGION"); Rs GetRsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_REGION_HASH) { return Rs::SINGLE_REGION; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/SortOrder.cpp index 94bb899ad49..d94a6031e31 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/TableStatus.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/TableStatus.cpp index 3006c5ad848..ecfccafc049 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/TableStatus.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/TableStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TableStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int RESTORING_HASH = HashingUtils::HashString("RESTORING"); - static const int INACCESSIBLE_ENCRYPTION_CREDENTIALS_HASH = HashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDENTIALS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t RESTORING_HASH = ConstExprHashingUtils::HashString("RESTORING"); + static constexpr uint32_t INACCESSIBLE_ENCRYPTION_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE_ENCRYPTION_CREDENTIALS"); TableStatus GetTableStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TableStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/ThroughputMode.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/ThroughputMode.cpp index cc31a6ad2b6..2f7e9fca322 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/ThroughputMode.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/ThroughputMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThroughputModeMapper { - static const int PAY_PER_REQUEST_HASH = HashingUtils::HashString("PAY_PER_REQUEST"); - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t PAY_PER_REQUEST_HASH = ConstExprHashingUtils::HashString("PAY_PER_REQUEST"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); ThroughputMode GetThroughputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAY_PER_REQUEST_HASH) { return ThroughputMode::PAY_PER_REQUEST; diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/model/TimeToLiveStatus.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/model/TimeToLiveStatus.cpp index 7b80eb709aa..f7a65206097 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/model/TimeToLiveStatus.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/model/TimeToLiveStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TimeToLiveStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); TimeToLiveStatus GetTimeToLiveStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return TimeToLiveStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaErrors.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaErrors.cpp index 168d3e9b3ee..7a00778c312 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaErrors.cpp @@ -18,19 +18,19 @@ namespace KinesisVideoArchivedMedia namespace KinesisVideoArchivedMediaErrorMapper { -static const int INVALID_CODEC_PRIVATE_DATA_HASH = HashingUtils::HashString("InvalidCodecPrivateDataException"); -static const int NO_DATA_RETENTION_HASH = HashingUtils::HashString("NoDataRetentionException"); -static const int MISSING_CODEC_PRIVATE_DATA_HASH = HashingUtils::HashString("MissingCodecPrivateDataException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int UNSUPPORTED_STREAM_MEDIA_TYPE_HASH = HashingUtils::HashString("UnsupportedStreamMediaTypeException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int CLIENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ClientLimitExceededException"); -static const int INVALID_MEDIA_FRAME_HASH = HashingUtils::HashString("InvalidMediaFrameException"); +static constexpr uint32_t INVALID_CODEC_PRIVATE_DATA_HASH = ConstExprHashingUtils::HashString("InvalidCodecPrivateDataException"); +static constexpr uint32_t NO_DATA_RETENTION_HASH = ConstExprHashingUtils::HashString("NoDataRetentionException"); +static constexpr uint32_t MISSING_CODEC_PRIVATE_DATA_HASH = ConstExprHashingUtils::HashString("MissingCodecPrivateDataException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t UNSUPPORTED_STREAM_MEDIA_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedStreamMediaTypeException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t CLIENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ClientLimitExceededException"); +static constexpr uint32_t INVALID_MEDIA_FRAME_HASH = ConstExprHashingUtils::HashString("InvalidMediaFrameException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_CODEC_PRIVATE_DATA_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ClipFragmentSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ClipFragmentSelectorType.cpp index 310a767f9ad..69bc360fea3 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ClipFragmentSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ClipFragmentSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ClipFragmentSelectorTypeMapper { - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); ClipFragmentSelectorType GetClipFragmentSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCER_TIMESTAMP_HASH) { return ClipFragmentSelectorType::PRODUCER_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ContainerFormat.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ContainerFormat.cpp index 91f3b622333..d33e2f82941 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ContainerFormat.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ContainerFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContainerFormatMapper { - static const int FRAGMENTED_MP4_HASH = HashingUtils::HashString("FRAGMENTED_MP4"); - static const int MPEG_TS_HASH = HashingUtils::HashString("MPEG_TS"); + static constexpr uint32_t FRAGMENTED_MP4_HASH = ConstExprHashingUtils::HashString("FRAGMENTED_MP4"); + static constexpr uint32_t MPEG_TS_HASH = ConstExprHashingUtils::HashString("MPEG_TS"); ContainerFormat GetContainerFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAGMENTED_MP4_HASH) { return ContainerFormat::FRAGMENTED_MP4; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentNumber.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentNumber.cpp index 6e1a67471fe..db39a3d34d6 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentNumber.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentNumber.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DASHDisplayFragmentNumberMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); DASHDisplayFragmentNumber GetDASHDisplayFragmentNumberForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return DASHDisplayFragmentNumber::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentTimestamp.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentTimestamp.cpp index 986a9925015..e85d8cfb9a6 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentTimestamp.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHDisplayFragmentTimestamp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DASHDisplayFragmentTimestampMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); DASHDisplayFragmentTimestamp GetDASHDisplayFragmentTimestampForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return DASHDisplayFragmentTimestamp::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHFragmentSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHFragmentSelectorType.cpp index e3003b805ee..2a06a1ef2f2 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHFragmentSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHFragmentSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DASHFragmentSelectorTypeMapper { - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); DASHFragmentSelectorType GetDASHFragmentSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCER_TIMESTAMP_HASH) { return DASHFragmentSelectorType::PRODUCER_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHPlaybackMode.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHPlaybackMode.cpp index 821c486be94..b3fe0411792 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHPlaybackMode.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/DASHPlaybackMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DASHPlaybackModeMapper { - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); - static const int LIVE_REPLAY_HASH = HashingUtils::HashString("LIVE_REPLAY"); - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); + static constexpr uint32_t LIVE_REPLAY_HASH = ConstExprHashingUtils::HashString("LIVE_REPLAY"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); DASHPlaybackMode GetDASHPlaybackModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIVE_HASH) { return DASHPlaybackMode::LIVE; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/Format.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/Format.cpp index 0368950ffa2..faf310648bb 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/Format.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormatMapper { - static const int JPEG_HASH = HashingUtils::HashString("JPEG"); - static const int PNG_HASH = HashingUtils::HashString("PNG"); + static constexpr uint32_t JPEG_HASH = ConstExprHashingUtils::HashString("JPEG"); + static constexpr uint32_t PNG_HASH = ConstExprHashingUtils::HashString("PNG"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JPEG_HASH) { return Format::JPEG; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FormatConfigKey.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FormatConfigKey.cpp index 601d0341612..fd12a6abaa8 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FormatConfigKey.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FormatConfigKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FormatConfigKeyMapper { - static const int JPEGQuality_HASH = HashingUtils::HashString("JPEGQuality"); + static constexpr uint32_t JPEGQuality_HASH = ConstExprHashingUtils::HashString("JPEGQuality"); FormatConfigKey GetFormatConfigKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JPEGQuality_HASH) { return FormatConfigKey::JPEGQuality; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FragmentSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FragmentSelectorType.cpp index 5f0f0f71b2f..ddf72501c7d 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FragmentSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/FragmentSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FragmentSelectorTypeMapper { - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); FragmentSelectorType GetFragmentSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCER_TIMESTAMP_HASH) { return FragmentSelectorType::PRODUCER_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDiscontinuityMode.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDiscontinuityMode.cpp index 59187c34899..ce3decfeaa7 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDiscontinuityMode.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDiscontinuityMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HLSDiscontinuityModeMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); - static const int ON_DISCONTINUITY_HASH = HashingUtils::HashString("ON_DISCONTINUITY"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); + static constexpr uint32_t ON_DISCONTINUITY_HASH = ConstExprHashingUtils::HashString("ON_DISCONTINUITY"); HLSDiscontinuityMode GetHLSDiscontinuityModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return HLSDiscontinuityMode::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDisplayFragmentTimestamp.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDisplayFragmentTimestamp.cpp index 844dc900502..6cb9ad0f5fc 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDisplayFragmentTimestamp.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSDisplayFragmentTimestamp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HLSDisplayFragmentTimestampMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); HLSDisplayFragmentTimestamp GetHLSDisplayFragmentTimestampForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return HLSDisplayFragmentTimestamp::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSFragmentSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSFragmentSelectorType.cpp index 3015b037dd6..06422ea8904 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSFragmentSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSFragmentSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HLSFragmentSelectorTypeMapper { - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); HLSFragmentSelectorType GetHLSFragmentSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCER_TIMESTAMP_HASH) { return HLSFragmentSelectorType::PRODUCER_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSPlaybackMode.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSPlaybackMode.cpp index 8526469767e..723470e0e2f 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSPlaybackMode.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/HLSPlaybackMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HLSPlaybackModeMapper { - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); - static const int LIVE_REPLAY_HASH = HashingUtils::HashString("LIVE_REPLAY"); - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); + static constexpr uint32_t LIVE_REPLAY_HASH = ConstExprHashingUtils::HashString("LIVE_REPLAY"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); HLSPlaybackMode GetHLSPlaybackModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIVE_HASH) { return HLSPlaybackMode::LIVE; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageError.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageError.cpp index 99420e1c282..6da214a0617 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageError.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageError.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageErrorMapper { - static const int NO_MEDIA_HASH = HashingUtils::HashString("NO_MEDIA"); - static const int MEDIA_ERROR_HASH = HashingUtils::HashString("MEDIA_ERROR"); + static constexpr uint32_t NO_MEDIA_HASH = ConstExprHashingUtils::HashString("NO_MEDIA"); + static constexpr uint32_t MEDIA_ERROR_HASH = ConstExprHashingUtils::HashString("MEDIA_ERROR"); ImageError GetImageErrorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_MEDIA_HASH) { return ImageError::NO_MEDIA; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageSelectorType.cpp index af0109d55e1..e715b242fb8 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/model/ImageSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageSelectorTypeMapper { - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); ImageSelectorType GetImageSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCER_TIMESTAMP_HASH) { return ImageSelectorType::PRODUCER_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaErrors.cpp b/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaErrors.cpp index f6fa2b42243..ab3e2d866d8 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaErrors.cpp @@ -18,16 +18,16 @@ namespace KinesisVideoMedia namespace KinesisVideoMediaErrorMapper { -static const int INVALID_ENDPOINT_HASH = HashingUtils::HashString("InvalidEndpointException"); -static const int CONNECTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ConnectionLimitExceededException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int CLIENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ClientLimitExceededException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t INVALID_ENDPOINT_HASH = ConstExprHashingUtils::HashString("InvalidEndpointException"); +static constexpr uint32_t CONNECTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ConnectionLimitExceededException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t CLIENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ClientLimitExceededException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_ENDPOINT_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesis-video-media/source/model/StartSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesis-video-media/source/model/StartSelectorType.cpp index 3a5915d8c06..e65d1aa7e63 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-media/source/model/StartSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-media/source/model/StartSelectorType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StartSelectorTypeMapper { - static const int FRAGMENT_NUMBER_HASH = HashingUtils::HashString("FRAGMENT_NUMBER"); - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); - static const int NOW_HASH = HashingUtils::HashString("NOW"); - static const int EARLIEST_HASH = HashingUtils::HashString("EARLIEST"); - static const int CONTINUATION_TOKEN_HASH = HashingUtils::HashString("CONTINUATION_TOKEN"); + static constexpr uint32_t FRAGMENT_NUMBER_HASH = ConstExprHashingUtils::HashString("FRAGMENT_NUMBER"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); + static constexpr uint32_t EARLIEST_HASH = ConstExprHashingUtils::HashString("EARLIEST"); + static constexpr uint32_t CONTINUATION_TOKEN_HASH = ConstExprHashingUtils::HashString("CONTINUATION_TOKEN"); StartSelectorType GetStartSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAGMENT_NUMBER_HASH) { return StartSelectorType::FRAGMENT_NUMBER; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsErrors.cpp b/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsErrors.cpp index a59c47e06e7..6cd6a66edf2 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsErrors.cpp @@ -18,16 +18,16 @@ namespace KinesisVideoSignalingChannels namespace KinesisVideoSignalingChannelsErrorMapper { -static const int SESSION_EXPIRED_HASH = HashingUtils::HashString("SessionExpiredException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int INVALID_CLIENT_HASH = HashingUtils::HashString("InvalidClientException"); -static const int CLIENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ClientLimitExceededException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t SESSION_EXPIRED_HASH = ConstExprHashingUtils::HashString("SessionExpiredException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t INVALID_CLIENT_HASH = ConstExprHashingUtils::HashString("InvalidClientException"); +static constexpr uint32_t CLIENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ClientLimitExceededException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SESSION_EXPIRED_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/model/Service.cpp b/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/model/Service.cpp index 58dcffde512..c48dc32a1c8 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/model/Service.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/model/Service.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceMapper { - static const int TURN_HASH = HashingUtils::HashString("TURN"); + static constexpr uint32_t TURN_HASH = ConstExprHashingUtils::HashString("TURN"); Service GetServiceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TURN_HASH) { return Service::TURN; diff --git a/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageErrors.cpp b/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageErrors.cpp index 6d336d0ea3c..ac54fe70676 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageErrors.cpp @@ -18,13 +18,13 @@ namespace KinesisVideoWebRTCStorage namespace KinesisVideoWebRTCStorageErrorMapper { -static const int CLIENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ClientLimitExceededException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t CLIENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ClientLimitExceededException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLIENT_LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesis/source/KinesisErrors.cpp b/generated/src/aws-cpp-sdk-kinesis/source/KinesisErrors.cpp index 804b52eea13..9df95e2bb94 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/KinesisErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/KinesisErrors.cpp @@ -18,23 +18,23 @@ namespace Kinesis namespace KinesisErrorMapper { -static const int K_M_S_OPT_IN_REQUIRED_HASH = HashingUtils::HashString("KMSOptInRequired"); -static const int K_M_S_DISABLED_HASH = HashingUtils::HashString("KMSDisabledException"); -static const int K_M_S_ACCESS_DENIED_HASH = HashingUtils::HashString("KMSAccessDeniedException"); -static const int K_M_S_NOT_FOUND_HASH = HashingUtils::HashString("KMSNotFoundException"); -static const int K_M_S_INVALID_STATE_HASH = HashingUtils::HashString("KMSInvalidStateException"); -static const int EXPIRED_ITERATOR_HASH = HashingUtils::HashString("ExpiredIteratorException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int K_M_S_THROTTLING_HASH = HashingUtils::HashString("KMSThrottlingException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("ProvisionedThroughputExceededException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int EXPIRED_NEXT_TOKEN_HASH = HashingUtils::HashString("ExpiredNextTokenException"); +static constexpr uint32_t K_M_S_OPT_IN_REQUIRED_HASH = ConstExprHashingUtils::HashString("KMSOptInRequired"); +static constexpr uint32_t K_M_S_DISABLED_HASH = ConstExprHashingUtils::HashString("KMSDisabledException"); +static constexpr uint32_t K_M_S_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("KMSAccessDeniedException"); +static constexpr uint32_t K_M_S_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KMSNotFoundException"); +static constexpr uint32_t K_M_S_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("KMSInvalidStateException"); +static constexpr uint32_t EXPIRED_ITERATOR_HASH = ConstExprHashingUtils::HashString("ExpiredIteratorException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t K_M_S_THROTTLING_HASH = ConstExprHashingUtils::HashString("KMSThrottlingException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ProvisionedThroughputExceededException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t EXPIRED_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == K_M_S_OPT_IN_REQUIRED_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/ConsumerStatus.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/ConsumerStatus.cpp index a6107cefd14..154b57bdbe2 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/ConsumerStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/ConsumerStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConsumerStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); ConsumerStatus GetConsumerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConsumerStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/EncryptionType.cpp index d6d2b1c3f19..93ce881f06a 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return EncryptionType::NONE; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/MetricsName.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/MetricsName.cpp index 21c244e0754..05902288c52 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/MetricsName.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/MetricsName.cpp @@ -20,19 +20,19 @@ namespace Aws namespace MetricsNameMapper { - static const int IncomingBytes_HASH = HashingUtils::HashString("IncomingBytes"); - static const int IncomingRecords_HASH = HashingUtils::HashString("IncomingRecords"); - static const int OutgoingBytes_HASH = HashingUtils::HashString("OutgoingBytes"); - static const int OutgoingRecords_HASH = HashingUtils::HashString("OutgoingRecords"); - static const int WriteProvisionedThroughputExceeded_HASH = HashingUtils::HashString("WriteProvisionedThroughputExceeded"); - static const int ReadProvisionedThroughputExceeded_HASH = HashingUtils::HashString("ReadProvisionedThroughputExceeded"); - static const int IteratorAgeMilliseconds_HASH = HashingUtils::HashString("IteratorAgeMilliseconds"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t IncomingBytes_HASH = ConstExprHashingUtils::HashString("IncomingBytes"); + static constexpr uint32_t IncomingRecords_HASH = ConstExprHashingUtils::HashString("IncomingRecords"); + static constexpr uint32_t OutgoingBytes_HASH = ConstExprHashingUtils::HashString("OutgoingBytes"); + static constexpr uint32_t OutgoingRecords_HASH = ConstExprHashingUtils::HashString("OutgoingRecords"); + static constexpr uint32_t WriteProvisionedThroughputExceeded_HASH = ConstExprHashingUtils::HashString("WriteProvisionedThroughputExceeded"); + static constexpr uint32_t ReadProvisionedThroughputExceeded_HASH = ConstExprHashingUtils::HashString("ReadProvisionedThroughputExceeded"); + static constexpr uint32_t IteratorAgeMilliseconds_HASH = ConstExprHashingUtils::HashString("IteratorAgeMilliseconds"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); MetricsName GetMetricsNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IncomingBytes_HASH) { return MetricsName::IncomingBytes; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/ScalingType.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/ScalingType.cpp index 653c83e9d36..6ed6f52332e 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/ScalingType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/ScalingType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ScalingTypeMapper { - static const int UNIFORM_SCALING_HASH = HashingUtils::HashString("UNIFORM_SCALING"); + static constexpr uint32_t UNIFORM_SCALING_HASH = ConstExprHashingUtils::HashString("UNIFORM_SCALING"); ScalingType GetScalingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNIFORM_SCALING_HASH) { return ScalingType::UNIFORM_SCALING; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/ShardFilterType.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/ShardFilterType.cpp index d5f92789d11..eca8b24060a 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/ShardFilterType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/ShardFilterType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ShardFilterTypeMapper { - static const int AFTER_SHARD_ID_HASH = HashingUtils::HashString("AFTER_SHARD_ID"); - static const int AT_TRIM_HORIZON_HASH = HashingUtils::HashString("AT_TRIM_HORIZON"); - static const int FROM_TRIM_HORIZON_HASH = HashingUtils::HashString("FROM_TRIM_HORIZON"); - static const int AT_LATEST_HASH = HashingUtils::HashString("AT_LATEST"); - static const int AT_TIMESTAMP_HASH = HashingUtils::HashString("AT_TIMESTAMP"); - static const int FROM_TIMESTAMP_HASH = HashingUtils::HashString("FROM_TIMESTAMP"); + static constexpr uint32_t AFTER_SHARD_ID_HASH = ConstExprHashingUtils::HashString("AFTER_SHARD_ID"); + static constexpr uint32_t AT_TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("AT_TRIM_HORIZON"); + static constexpr uint32_t FROM_TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("FROM_TRIM_HORIZON"); + static constexpr uint32_t AT_LATEST_HASH = ConstExprHashingUtils::HashString("AT_LATEST"); + static constexpr uint32_t AT_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("AT_TIMESTAMP"); + static constexpr uint32_t FROM_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("FROM_TIMESTAMP"); ShardFilterType GetShardFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AFTER_SHARD_ID_HASH) { return ShardFilterType::AFTER_SHARD_ID; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/ShardIteratorType.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/ShardIteratorType.cpp index f88f507927f..c2ad718ede9 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/ShardIteratorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/ShardIteratorType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ShardIteratorTypeMapper { - static const int AT_SEQUENCE_NUMBER_HASH = HashingUtils::HashString("AT_SEQUENCE_NUMBER"); - static const int AFTER_SEQUENCE_NUMBER_HASH = HashingUtils::HashString("AFTER_SEQUENCE_NUMBER"); - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); - static const int AT_TIMESTAMP_HASH = HashingUtils::HashString("AT_TIMESTAMP"); + static constexpr uint32_t AT_SEQUENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("AT_SEQUENCE_NUMBER"); + static constexpr uint32_t AFTER_SEQUENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("AFTER_SEQUENCE_NUMBER"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); + static constexpr uint32_t AT_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("AT_TIMESTAMP"); ShardIteratorType GetShardIteratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AT_SEQUENCE_NUMBER_HASH) { return ShardIteratorType::AT_SEQUENCE_NUMBER; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/StreamMode.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/StreamMode.cpp index f1e8b6f47d2..48a50d81ed5 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/StreamMode.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/StreamMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StreamModeMapper { - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); StreamMode GetStreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONED_HASH) { return StreamMode::PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/StreamStatus.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/StreamStatus.cpp index 2b1ac2f2f8f..fdc38fd13f5 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/StreamStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/StreamStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StreamStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); StreamStatus GetStreamStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return StreamStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp index 3b2144b2cd1..7a99431a6d0 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/SubscribeToShardHandler.cpp @@ -192,11 +192,11 @@ namespace Model namespace SubscribeToShardEventMapper { - static const int SUBSCRIBETOSHARDEVENT_HASH = Aws::Utils::HashingUtils::HashString("SubscribeToShardEvent"); + static constexpr uint32_t SUBSCRIBETOSHARDEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("SubscribeToShardEvent"); SubscribeToShardEventType GetSubscribeToShardEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == SUBSCRIBETOSHARDEVENT_HASH) { return SubscribeToShardEventType::SUBSCRIBETOSHARDEVENT; diff --git a/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsErrors.cpp b/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsErrors.cpp index 84efac7569e..13bb14ba4cc 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsErrors.cpp @@ -26,21 +26,21 @@ template<> AWS_KINESISANALYTICS_API UnableToDetectSchemaException KinesisAnalyti namespace KinesisAnalyticsErrorMapper { -static const int RESOURCE_PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("ResourceProvisionedThroughputExceededException"); -static const int CODE_VALIDATION_HASH = HashingUtils::HashString("CodeValidationException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_APPLICATION_CONFIGURATION_HASH = HashingUtils::HashString("InvalidApplicationConfigurationException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int UNABLE_TO_DETECT_SCHEMA_HASH = HashingUtils::HashString("UnableToDetectSchemaException"); +static constexpr uint32_t RESOURCE_PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceProvisionedThroughputExceededException"); +static constexpr uint32_t CODE_VALIDATION_HASH = ConstExprHashingUtils::HashString("CodeValidationException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_APPLICATION_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidApplicationConfigurationException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t UNABLE_TO_DETECT_SCHEMA_HASH = ConstExprHashingUtils::HashString("UnableToDetectSchemaException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_PROVISIONED_THROUGHPUT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/ApplicationStatus.cpp b/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/ApplicationStatus.cpp index e1ceaf4700d..10d2a42ac16 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/ApplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/ApplicationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ApplicationStatusMapper { - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); ApplicationStatus GetApplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETING_HASH) { return ApplicationStatus::DELETING; diff --git a/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/InputStartingPosition.cpp b/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/InputStartingPosition.cpp index 88cc0bd8622..cbb6698e979 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/InputStartingPosition.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/InputStartingPosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputStartingPositionMapper { - static const int NOW_HASH = HashingUtils::HashString("NOW"); - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LAST_STOPPED_POINT_HASH = HashingUtils::HashString("LAST_STOPPED_POINT"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LAST_STOPPED_POINT_HASH = ConstExprHashingUtils::HashString("LAST_STOPPED_POINT"); InputStartingPosition GetInputStartingPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOW_HASH) { return InputStartingPosition::NOW; diff --git a/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/RecordFormatType.cpp b/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/RecordFormatType.cpp index 6810a11e4f0..12a3e2c4f49 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/RecordFormatType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalytics/source/model/RecordFormatType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordFormatTypeMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); RecordFormatType GetRecordFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return RecordFormatType::JSON; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Errors.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Errors.cpp index bb5e558fb99..482794c0b8c 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Errors.cpp @@ -26,22 +26,22 @@ template<> AWS_KINESISANALYTICSV2_API UnableToDetectSchemaException KinesisAnaly namespace KinesisAnalyticsV2ErrorMapper { -static const int RESOURCE_PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("ResourceProvisionedThroughputExceededException"); -static const int CODE_VALIDATION_HASH = HashingUtils::HashString("CodeValidationException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_APPLICATION_CONFIGURATION_HASH = HashingUtils::HashString("InvalidApplicationConfigurationException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int UNABLE_TO_DETECT_SCHEMA_HASH = HashingUtils::HashString("UnableToDetectSchemaException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceProvisionedThroughputExceededException"); +static constexpr uint32_t CODE_VALIDATION_HASH = ConstExprHashingUtils::HashString("CodeValidationException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_APPLICATION_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidApplicationConfigurationException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t UNABLE_TO_DETECT_SCHEMA_HASH = ConstExprHashingUtils::HashString("UnableToDetectSchemaException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_PROVISIONED_THROUGHPUT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMode.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMode.cpp index d3ab59269b8..e3311a08396 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMode.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplicationModeMapper { - static const int STREAMING_HASH = HashingUtils::HashString("STREAMING"); - static const int INTERACTIVE_HASH = HashingUtils::HashString("INTERACTIVE"); + static constexpr uint32_t STREAMING_HASH = ConstExprHashingUtils::HashString("STREAMING"); + static constexpr uint32_t INTERACTIVE_HASH = ConstExprHashingUtils::HashString("INTERACTIVE"); ApplicationMode GetApplicationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STREAMING_HASH) { return ApplicationMode::STREAMING; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationRestoreType.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationRestoreType.cpp index f4efb34b8b4..d17ffec098e 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationRestoreType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationRestoreType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationRestoreTypeMapper { - static const int SKIP_RESTORE_FROM_SNAPSHOT_HASH = HashingUtils::HashString("SKIP_RESTORE_FROM_SNAPSHOT"); - static const int RESTORE_FROM_LATEST_SNAPSHOT_HASH = HashingUtils::HashString("RESTORE_FROM_LATEST_SNAPSHOT"); - static const int RESTORE_FROM_CUSTOM_SNAPSHOT_HASH = HashingUtils::HashString("RESTORE_FROM_CUSTOM_SNAPSHOT"); + static constexpr uint32_t SKIP_RESTORE_FROM_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("SKIP_RESTORE_FROM_SNAPSHOT"); + static constexpr uint32_t RESTORE_FROM_LATEST_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("RESTORE_FROM_LATEST_SNAPSHOT"); + static constexpr uint32_t RESTORE_FROM_CUSTOM_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("RESTORE_FROM_CUSTOM_SNAPSHOT"); ApplicationRestoreType GetApplicationRestoreTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SKIP_RESTORE_FROM_SNAPSHOT_HASH) { return ApplicationRestoreType::SKIP_RESTORE_FROM_SNAPSHOT; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationStatus.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationStatus.cpp index 5b1096ef2e0..ae66fb184d5 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ApplicationStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ApplicationStatusMapper { - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int AUTOSCALING_HASH = HashingUtils::HashString("AUTOSCALING"); - static const int FORCE_STOPPING_HASH = HashingUtils::HashString("FORCE_STOPPING"); - static const int ROLLING_BACK_HASH = HashingUtils::HashString("ROLLING_BACK"); - static const int MAINTENANCE_HASH = HashingUtils::HashString("MAINTENANCE"); - static const int ROLLED_BACK_HASH = HashingUtils::HashString("ROLLED_BACK"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t AUTOSCALING_HASH = ConstExprHashingUtils::HashString("AUTOSCALING"); + static constexpr uint32_t FORCE_STOPPING_HASH = ConstExprHashingUtils::HashString("FORCE_STOPPING"); + static constexpr uint32_t ROLLING_BACK_HASH = ConstExprHashingUtils::HashString("ROLLING_BACK"); + static constexpr uint32_t MAINTENANCE_HASH = ConstExprHashingUtils::HashString("MAINTENANCE"); + static constexpr uint32_t ROLLED_BACK_HASH = ConstExprHashingUtils::HashString("ROLLED_BACK"); ApplicationStatus GetApplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETING_HASH) { return ApplicationStatus::DELETING; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ArtifactType.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ArtifactType.cpp index cc4bcac4fed..87c60005449 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ArtifactType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ArtifactType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArtifactTypeMapper { - static const int UDF_HASH = HashingUtils::HashString("UDF"); - static const int DEPENDENCY_JAR_HASH = HashingUtils::HashString("DEPENDENCY_JAR"); + static constexpr uint32_t UDF_HASH = ConstExprHashingUtils::HashString("UDF"); + static constexpr uint32_t DEPENDENCY_JAR_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_JAR"); ArtifactType GetArtifactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UDF_HASH) { return ArtifactType::UDF; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/CodeContentType.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/CodeContentType.cpp index 99ff64e56f2..ae1d88b79b2 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/CodeContentType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/CodeContentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CodeContentTypeMapper { - static const int PLAINTEXT_HASH = HashingUtils::HashString("PLAINTEXT"); - static const int ZIPFILE_HASH = HashingUtils::HashString("ZIPFILE"); + static constexpr uint32_t PLAINTEXT_HASH = ConstExprHashingUtils::HashString("PLAINTEXT"); + static constexpr uint32_t ZIPFILE_HASH = ConstExprHashingUtils::HashString("ZIPFILE"); CodeContentType GetCodeContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAINTEXT_HASH) { return CodeContentType::PLAINTEXT; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ConfigurationType.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ConfigurationType.cpp index 725350cf6b2..d141e2e21ca 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ConfigurationType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/ConfigurationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigurationTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ConfigurationType GetConfigurationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ConfigurationType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/InputStartingPosition.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/InputStartingPosition.cpp index c70a06193c9..cc94950369e 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/InputStartingPosition.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/InputStartingPosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputStartingPositionMapper { - static const int NOW_HASH = HashingUtils::HashString("NOW"); - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LAST_STOPPED_POINT_HASH = HashingUtils::HashString("LAST_STOPPED_POINT"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LAST_STOPPED_POINT_HASH = ConstExprHashingUtils::HashString("LAST_STOPPED_POINT"); InputStartingPosition GetInputStartingPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOW_HASH) { return InputStartingPosition::NOW; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/LogLevel.cpp index 6b73c987bd4..f5789218f00 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/LogLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LogLevelMapper { - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFO_HASH) { return LogLevel::INFO; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/MetricsLevel.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/MetricsLevel.cpp index b4eeb3853b8..a8ce1b4f04e 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/MetricsLevel.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/MetricsLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MetricsLevelMapper { - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); - static const int OPERATOR_HASH = HashingUtils::HashString("OPERATOR"); - static const int PARALLELISM_HASH = HashingUtils::HashString("PARALLELISM"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); + static constexpr uint32_t OPERATOR_HASH = ConstExprHashingUtils::HashString("OPERATOR"); + static constexpr uint32_t PARALLELISM_HASH = ConstExprHashingUtils::HashString("PARALLELISM"); MetricsLevel GetMetricsLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLICATION_HASH) { return MetricsLevel::APPLICATION; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RecordFormatType.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RecordFormatType.cpp index 6103b160c01..ca49f42b68a 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RecordFormatType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RecordFormatType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordFormatTypeMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); RecordFormatType GetRecordFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return RecordFormatType::JSON; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RuntimeEnvironment.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RuntimeEnvironment.cpp index 8a18bee0838..bed2f12a5f1 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RuntimeEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/RuntimeEnvironment.cpp @@ -20,20 +20,20 @@ namespace Aws namespace RuntimeEnvironmentMapper { - static const int SQL_1_0_HASH = HashingUtils::HashString("SQL-1_0"); - static const int FLINK_1_6_HASH = HashingUtils::HashString("FLINK-1_6"); - static const int FLINK_1_8_HASH = HashingUtils::HashString("FLINK-1_8"); - static const int ZEPPELIN_FLINK_1_0_HASH = HashingUtils::HashString("ZEPPELIN-FLINK-1_0"); - static const int FLINK_1_11_HASH = HashingUtils::HashString("FLINK-1_11"); - static const int FLINK_1_13_HASH = HashingUtils::HashString("FLINK-1_13"); - static const int ZEPPELIN_FLINK_2_0_HASH = HashingUtils::HashString("ZEPPELIN-FLINK-2_0"); - static const int FLINK_1_15_HASH = HashingUtils::HashString("FLINK-1_15"); - static const int ZEPPELIN_FLINK_3_0_HASH = HashingUtils::HashString("ZEPPELIN-FLINK-3_0"); + static constexpr uint32_t SQL_1_0_HASH = ConstExprHashingUtils::HashString("SQL-1_0"); + static constexpr uint32_t FLINK_1_6_HASH = ConstExprHashingUtils::HashString("FLINK-1_6"); + static constexpr uint32_t FLINK_1_8_HASH = ConstExprHashingUtils::HashString("FLINK-1_8"); + static constexpr uint32_t ZEPPELIN_FLINK_1_0_HASH = ConstExprHashingUtils::HashString("ZEPPELIN-FLINK-1_0"); + static constexpr uint32_t FLINK_1_11_HASH = ConstExprHashingUtils::HashString("FLINK-1_11"); + static constexpr uint32_t FLINK_1_13_HASH = ConstExprHashingUtils::HashString("FLINK-1_13"); + static constexpr uint32_t ZEPPELIN_FLINK_2_0_HASH = ConstExprHashingUtils::HashString("ZEPPELIN-FLINK-2_0"); + static constexpr uint32_t FLINK_1_15_HASH = ConstExprHashingUtils::HashString("FLINK-1_15"); + static constexpr uint32_t ZEPPELIN_FLINK_3_0_HASH = ConstExprHashingUtils::HashString("ZEPPELIN-FLINK-3_0"); RuntimeEnvironment GetRuntimeEnvironmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQL_1_0_HASH) { return RuntimeEnvironment::SQL_1_0; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/SnapshotStatus.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/SnapshotStatus.cpp index 1b084bbd68d..fbde82e3d94 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/SnapshotStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/SnapshotStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SnapshotStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); SnapshotStatus GetSnapshotStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return SnapshotStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/UrlType.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/UrlType.cpp index a6cbc87596c..9fac9830746 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/UrlType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/model/UrlType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UrlTypeMapper { - static const int FLINK_DASHBOARD_URL_HASH = HashingUtils::HashString("FLINK_DASHBOARD_URL"); - static const int ZEPPELIN_UI_URL_HASH = HashingUtils::HashString("ZEPPELIN_UI_URL"); + static constexpr uint32_t FLINK_DASHBOARD_URL_HASH = ConstExprHashingUtils::HashString("FLINK_DASHBOARD_URL"); + static constexpr uint32_t ZEPPELIN_UI_URL_HASH = ConstExprHashingUtils::HashString("ZEPPELIN_UI_URL"); UrlType GetUrlTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLINK_DASHBOARD_URL_HASH) { return UrlType::FLINK_DASHBOARD_URL; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoErrors.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoErrors.cpp index 79f0ab154f0..998fc67b329 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoErrors.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoErrors.cpp @@ -18,24 +18,24 @@ namespace KinesisVideo namespace KinesisVideoErrorMapper { -static const int VERSION_MISMATCH_HASH = HashingUtils::HashString("VersionMismatchException"); -static const int INVALID_RESOURCE_FORMAT_HASH = HashingUtils::HashString("InvalidResourceFormatException"); -static const int ACCOUNT_CHANNEL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AccountChannelLimitExceededException"); -static const int DEVICE_STREAM_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DeviceStreamLimitExceededException"); -static const int INVALID_DEVICE_HASH = HashingUtils::HashString("InvalidDeviceException"); -static const int TAGS_PER_RESOURCE_EXCEEDED_LIMIT_HASH = HashingUtils::HashString("TagsPerResourceExceededLimitException"); -static const int ACCOUNT_STREAM_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AccountStreamLimitExceededException"); -static const int NO_DATA_RETENTION_HASH = HashingUtils::HashString("NoDataRetentionException"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int STREAM_EDGE_CONFIGURATION_NOT_FOUND_HASH = HashingUtils::HashString("StreamEdgeConfigurationNotFoundException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int CLIENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ClientLimitExceededException"); +static constexpr uint32_t VERSION_MISMATCH_HASH = ConstExprHashingUtils::HashString("VersionMismatchException"); +static constexpr uint32_t INVALID_RESOURCE_FORMAT_HASH = ConstExprHashingUtils::HashString("InvalidResourceFormatException"); +static constexpr uint32_t ACCOUNT_CHANNEL_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AccountChannelLimitExceededException"); +static constexpr uint32_t DEVICE_STREAM_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DeviceStreamLimitExceededException"); +static constexpr uint32_t INVALID_DEVICE_HASH = ConstExprHashingUtils::HashString("InvalidDeviceException"); +static constexpr uint32_t TAGS_PER_RESOURCE_EXCEEDED_LIMIT_HASH = ConstExprHashingUtils::HashString("TagsPerResourceExceededLimitException"); +static constexpr uint32_t ACCOUNT_STREAM_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AccountStreamLimitExceededException"); +static constexpr uint32_t NO_DATA_RETENTION_HASH = ConstExprHashingUtils::HashString("NoDataRetentionException"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t STREAM_EDGE_CONFIGURATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StreamEdgeConfigurationNotFoundException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t CLIENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ClientLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == VERSION_MISMATCH_HASH) { diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/APIName.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/APIName.cpp index d5b4444d1e5..60fbc3b20ab 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/APIName.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/APIName.cpp @@ -20,19 +20,19 @@ namespace Aws namespace APINameMapper { - static const int PUT_MEDIA_HASH = HashingUtils::HashString("PUT_MEDIA"); - static const int GET_MEDIA_HASH = HashingUtils::HashString("GET_MEDIA"); - static const int LIST_FRAGMENTS_HASH = HashingUtils::HashString("LIST_FRAGMENTS"); - static const int GET_MEDIA_FOR_FRAGMENT_LIST_HASH = HashingUtils::HashString("GET_MEDIA_FOR_FRAGMENT_LIST"); - static const int GET_HLS_STREAMING_SESSION_URL_HASH = HashingUtils::HashString("GET_HLS_STREAMING_SESSION_URL"); - static const int GET_DASH_STREAMING_SESSION_URL_HASH = HashingUtils::HashString("GET_DASH_STREAMING_SESSION_URL"); - static const int GET_CLIP_HASH = HashingUtils::HashString("GET_CLIP"); - static const int GET_IMAGES_HASH = HashingUtils::HashString("GET_IMAGES"); + static constexpr uint32_t PUT_MEDIA_HASH = ConstExprHashingUtils::HashString("PUT_MEDIA"); + static constexpr uint32_t GET_MEDIA_HASH = ConstExprHashingUtils::HashString("GET_MEDIA"); + static constexpr uint32_t LIST_FRAGMENTS_HASH = ConstExprHashingUtils::HashString("LIST_FRAGMENTS"); + static constexpr uint32_t GET_MEDIA_FOR_FRAGMENT_LIST_HASH = ConstExprHashingUtils::HashString("GET_MEDIA_FOR_FRAGMENT_LIST"); + static constexpr uint32_t GET_HLS_STREAMING_SESSION_URL_HASH = ConstExprHashingUtils::HashString("GET_HLS_STREAMING_SESSION_URL"); + static constexpr uint32_t GET_DASH_STREAMING_SESSION_URL_HASH = ConstExprHashingUtils::HashString("GET_DASH_STREAMING_SESSION_URL"); + static constexpr uint32_t GET_CLIP_HASH = ConstExprHashingUtils::HashString("GET_CLIP"); + static constexpr uint32_t GET_IMAGES_HASH = ConstExprHashingUtils::HashString("GET_IMAGES"); APIName GetAPINameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUT_MEDIA_HASH) { return APIName::PUT_MEDIA; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelProtocol.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelProtocol.cpp index 6a4927d0a0d..919fb6490c0 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelProtocol.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelProtocol.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChannelProtocolMapper { - static const int WSS_HASH = HashingUtils::HashString("WSS"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int WEBRTC_HASH = HashingUtils::HashString("WEBRTC"); + static constexpr uint32_t WSS_HASH = ConstExprHashingUtils::HashString("WSS"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t WEBRTC_HASH = ConstExprHashingUtils::HashString("WEBRTC"); ChannelProtocol GetChannelProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WSS_HASH) { return ChannelProtocol::WSS; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelRole.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelRole.cpp index 50d740144db..c95ac502a67 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelRole.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelRoleMapper { - static const int MASTER_HASH = HashingUtils::HashString("MASTER"); - static const int VIEWER_HASH = HashingUtils::HashString("VIEWER"); + static constexpr uint32_t MASTER_HASH = ConstExprHashingUtils::HashString("MASTER"); + static constexpr uint32_t VIEWER_HASH = ConstExprHashingUtils::HashString("VIEWER"); ChannelRole GetChannelRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MASTER_HASH) { return ChannelRole::MASTER; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelType.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelType.cpp index 04da6658c68..90b2efb0136 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ChannelType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelTypeMapper { - static const int SINGLE_MASTER_HASH = HashingUtils::HashString("SINGLE_MASTER"); - static const int FULL_MESH_HASH = HashingUtils::HashString("FULL_MESH"); + static constexpr uint32_t SINGLE_MASTER_HASH = ConstExprHashingUtils::HashString("SINGLE_MASTER"); + static constexpr uint32_t FULL_MESH_HASH = ConstExprHashingUtils::HashString("FULL_MESH"); ChannelType GetChannelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_MASTER_HASH) { return ChannelType::SINGLE_MASTER; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ComparisonOperator.cpp index cdc07c0ce23..707a50fda18 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ComparisonOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int BEGINS_WITH_HASH = HashingUtils::HashString("BEGINS_WITH"); + static constexpr uint32_t BEGINS_WITH_HASH = ConstExprHashingUtils::HashString("BEGINS_WITH"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEGINS_WITH_HASH) { return ComparisonOperator::BEGINS_WITH; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ConfigurationStatus.cpp index 25f054dd2d7..b5046e67e05 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConfigurationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ConfigurationStatus GetConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ConfigurationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Format.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Format.cpp index 5646017e079..9a300e3f18c 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Format.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormatMapper { - static const int JPEG_HASH = HashingUtils::HashString("JPEG"); - static const int PNG_HASH = HashingUtils::HashString("PNG"); + static constexpr uint32_t JPEG_HASH = ConstExprHashingUtils::HashString("JPEG"); + static constexpr uint32_t PNG_HASH = ConstExprHashingUtils::HashString("PNG"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JPEG_HASH) { return Format::JPEG; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/FormatConfigKey.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/FormatConfigKey.cpp index 4f4bb03ea7b..065b5e48695 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/FormatConfigKey.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/FormatConfigKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FormatConfigKeyMapper { - static const int JPEGQuality_HASH = HashingUtils::HashString("JPEGQuality"); + static constexpr uint32_t JPEGQuality_HASH = ConstExprHashingUtils::HashString("JPEGQuality"); FormatConfigKey GetFormatConfigKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JPEGQuality_HASH) { return FormatConfigKey::JPEGQuality; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ImageSelectorType.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ImageSelectorType.cpp index 7572f17d1dc..27cfdcf8718 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ImageSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/ImageSelectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageSelectorTypeMapper { - static const int SERVER_TIMESTAMP_HASH = HashingUtils::HashString("SERVER_TIMESTAMP"); - static const int PRODUCER_TIMESTAMP_HASH = HashingUtils::HashString("PRODUCER_TIMESTAMP"); + static constexpr uint32_t SERVER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("SERVER_TIMESTAMP"); + static constexpr uint32_t PRODUCER_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("PRODUCER_TIMESTAMP"); ImageSelectorType GetImageSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVER_TIMESTAMP_HASH) { return ImageSelectorType::SERVER_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaStorageConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaStorageConfigurationStatus.cpp index da1f3653825..5f6c2e412b9 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaStorageConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaStorageConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MediaStorageConfigurationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); MediaStorageConfigurationStatus GetMediaStorageConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return MediaStorageConfigurationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaUriType.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaUriType.cpp index 0fa84c5ce07..b3e087dfa9b 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaUriType.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/MediaUriType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MediaUriTypeMapper { - static const int RTSP_URI_HASH = HashingUtils::HashString("RTSP_URI"); - static const int FILE_URI_HASH = HashingUtils::HashString("FILE_URI"); + static constexpr uint32_t RTSP_URI_HASH = ConstExprHashingUtils::HashString("RTSP_URI"); + static constexpr uint32_t FILE_URI_HASH = ConstExprHashingUtils::HashString("FILE_URI"); MediaUriType GetMediaUriTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RTSP_URI_HASH) { return MediaUriType::RTSP_URI; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/RecorderStatus.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/RecorderStatus.cpp index 04e46721388..e7e84e28fbd 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/RecorderStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/RecorderStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecorderStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int USER_ERROR_HASH = HashingUtils::HashString("USER_ERROR"); - static const int SYSTEM_ERROR_HASH = HashingUtils::HashString("SYSTEM_ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t USER_ERROR_HASH = ConstExprHashingUtils::HashString("USER_ERROR"); + static constexpr uint32_t SYSTEM_ERROR_HASH = ConstExprHashingUtils::HashString("SYSTEM_ERROR"); RecorderStatus GetRecorderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return RecorderStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Status.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Status.cpp index 0cf6f55feff..6da03b90b73 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/Status.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return Status::CREATING; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/StrategyOnFullSize.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/StrategyOnFullSize.cpp index 6bd6e1a9c69..a258874ec6e 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/StrategyOnFullSize.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/StrategyOnFullSize.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StrategyOnFullSizeMapper { - static const int DELETE_OLDEST_MEDIA_HASH = HashingUtils::HashString("DELETE_OLDEST_MEDIA"); - static const int DENY_NEW_MEDIA_HASH = HashingUtils::HashString("DENY_NEW_MEDIA"); + static constexpr uint32_t DELETE_OLDEST_MEDIA_HASH = ConstExprHashingUtils::HashString("DELETE_OLDEST_MEDIA"); + static constexpr uint32_t DENY_NEW_MEDIA_HASH = ConstExprHashingUtils::HashString("DENY_NEW_MEDIA"); StrategyOnFullSize GetStrategyOnFullSizeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE_OLDEST_MEDIA_HASH) { return StrategyOnFullSize::DELETE_OLDEST_MEDIA; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/SyncStatus.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/SyncStatus.cpp index 7945ba7d58a..a6a4b00bada 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/SyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/SyncStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SyncStatusMapper { - static const int SYNCING_HASH = HashingUtils::HashString("SYNCING"); - static const int ACKNOWLEDGED_HASH = HashingUtils::HashString("ACKNOWLEDGED"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int SYNC_FAILED_HASH = HashingUtils::HashString("SYNC_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETING_ACKNOWLEDGED_HASH = HashingUtils::HashString("DELETING_ACKNOWLEDGED"); + static constexpr uint32_t SYNCING_HASH = ConstExprHashingUtils::HashString("SYNCING"); + static constexpr uint32_t ACKNOWLEDGED_HASH = ConstExprHashingUtils::HashString("ACKNOWLEDGED"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t SYNC_FAILED_HASH = ConstExprHashingUtils::HashString("SYNC_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETING_ACKNOWLEDGED_HASH = ConstExprHashingUtils::HashString("DELETING_ACKNOWLEDGED"); SyncStatus GetSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYNCING_HASH) { return SyncStatus::SYNCING; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UpdateDataRetentionOperation.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UpdateDataRetentionOperation.cpp index a0080ffa60a..c13efb56660 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UpdateDataRetentionOperation.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UpdateDataRetentionOperation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UpdateDataRetentionOperationMapper { - static const int INCREASE_DATA_RETENTION_HASH = HashingUtils::HashString("INCREASE_DATA_RETENTION"); - static const int DECREASE_DATA_RETENTION_HASH = HashingUtils::HashString("DECREASE_DATA_RETENTION"); + static constexpr uint32_t INCREASE_DATA_RETENTION_HASH = ConstExprHashingUtils::HashString("INCREASE_DATA_RETENTION"); + static constexpr uint32_t DECREASE_DATA_RETENTION_HASH = ConstExprHashingUtils::HashString("DECREASE_DATA_RETENTION"); UpdateDataRetentionOperation GetUpdateDataRetentionOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCREASE_DATA_RETENTION_HASH) { return UpdateDataRetentionOperation::INCREASE_DATA_RETENTION; diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UploaderStatus.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UploaderStatus.cpp index 4d5d4975696..e97a03d6af9 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UploaderStatus.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/model/UploaderStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UploaderStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int USER_ERROR_HASH = HashingUtils::HashString("USER_ERROR"); - static const int SYSTEM_ERROR_HASH = HashingUtils::HashString("SYSTEM_ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t USER_ERROR_HASH = ConstExprHashingUtils::HashString("USER_ERROR"); + static constexpr uint32_t SYSTEM_ERROR_HASH = ConstExprHashingUtils::HashString("SYSTEM_ERROR"); UploaderStatus GetUploaderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return UploaderStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-kms/source/KMSErrors.cpp b/generated/src/aws-cpp-sdk-kms/source/KMSErrors.cpp index cee4c4540e2..5e50ad8b2d2 100644 --- a/generated/src/aws-cpp-sdk-kms/source/KMSErrors.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/KMSErrors.cpp @@ -18,58 +18,58 @@ namespace KMS namespace KMSErrorMapper { -static const int CLOUD_HSM_CLUSTER_NOT_ACTIVE_HASH = HashingUtils::HashString("CloudHsmClusterNotActiveException"); -static const int INCORRECT_TRUST_ANCHOR_HASH = HashingUtils::HashString("IncorrectTrustAnchorException"); -static const int INVALID_GRANT_ID_HASH = HashingUtils::HashString("InvalidGrantIdException"); -static const int XKS_PROXY_INVALID_RESPONSE_HASH = HashingUtils::HashString("XksProxyInvalidResponseException"); -static const int INVALID_IMPORT_TOKEN_HASH = HashingUtils::HashString("InvalidImportTokenException"); -static const int K_M_S_INVALID_STATE_HASH = HashingUtils::HashString("KMSInvalidStateException"); -static const int XKS_KEY_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("XksKeyInvalidConfigurationException"); -static const int INVALID_KEY_USAGE_HASH = HashingUtils::HashString("InvalidKeyUsageException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INCORRECT_KEY_HASH = HashingUtils::HashString("IncorrectKeyException"); -static const int CUSTOM_KEY_STORE_NOT_FOUND_HASH = HashingUtils::HashString("CustomKeyStoreNotFoundException"); -static const int K_M_S_INTERNAL_HASH = HashingUtils::HashString("KMSInternalException"); -static const int CLOUD_HSM_CLUSTER_NOT_RELATED_HASH = HashingUtils::HashString("CloudHsmClusterNotRelatedException"); -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocumentException"); -static const int INVALID_ALIAS_NAME_HASH = HashingUtils::HashString("InvalidAliasNameException"); -static const int XKS_PROXY_URI_UNREACHABLE_HASH = HashingUtils::HashString("XksProxyUriUnreachableException"); -static const int K_M_S_INVALID_MAC_HASH = HashingUtils::HashString("KMSInvalidMacException"); -static const int XKS_PROXY_VPC_ENDPOINT_SERVICE_IN_USE_HASH = HashingUtils::HashString("XksProxyVpcEndpointServiceInUseException"); -static const int XKS_PROXY_INCORRECT_AUTHENTICATION_CREDENTIAL_HASH = HashingUtils::HashString("XksProxyIncorrectAuthenticationCredentialException"); -static const int DISABLED_HASH = HashingUtils::HashString("DisabledException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int XKS_KEY_NOT_FOUND_HASH = HashingUtils::HashString("XksKeyNotFoundException"); -static const int CUSTOM_KEY_STORE_HAS_C_M_KS_HASH = HashingUtils::HashString("CustomKeyStoreHasCMKsException"); -static const int CLOUD_HSM_CLUSTER_NOT_FOUND_HASH = HashingUtils::HashString("CloudHsmClusterNotFoundException"); -static const int INVALID_GRANT_TOKEN_HASH = HashingUtils::HashString("InvalidGrantTokenException"); -static const int INCORRECT_KEY_MATERIAL_HASH = HashingUtils::HashString("IncorrectKeyMaterialException"); -static const int INVALID_MARKER_HASH = HashingUtils::HashString("InvalidMarkerException"); -static const int XKS_PROXY_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("XksProxyVpcEndpointServiceInvalidConfigurationException"); -static const int XKS_PROXY_URI_IN_USE_HASH = HashingUtils::HashString("XksProxyUriInUseException"); -static const int CLOUD_HSM_CLUSTER_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("CloudHsmClusterInvalidConfigurationException"); -static const int DEPENDENCY_TIMEOUT_HASH = HashingUtils::HashString("DependencyTimeoutException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int XKS_PROXY_VPC_ENDPOINT_SERVICE_NOT_FOUND_HASH = HashingUtils::HashString("XksProxyVpcEndpointServiceNotFoundException"); -static const int CUSTOM_KEY_STORE_NAME_IN_USE_HASH = HashingUtils::HashString("CustomKeyStoreNameInUseException"); -static const int TAG_HASH = HashingUtils::HashString("TagException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int CLOUD_HSM_CLUSTER_IN_USE_HASH = HashingUtils::HashString("CloudHsmClusterInUseException"); -static const int XKS_PROXY_URI_ENDPOINT_IN_USE_HASH = HashingUtils::HashString("XksProxyUriEndpointInUseException"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArnException"); -static const int KEY_UNAVAILABLE_HASH = HashingUtils::HashString("KeyUnavailableException"); -static const int INVALID_CIPHERTEXT_HASH = HashingUtils::HashString("InvalidCiphertextException"); -static const int XKS_KEY_ALREADY_IN_USE_HASH = HashingUtils::HashString("XksKeyAlreadyInUseException"); -static const int K_M_S_INVALID_SIGNATURE_HASH = HashingUtils::HashString("KMSInvalidSignatureException"); -static const int CUSTOM_KEY_STORE_INVALID_STATE_HASH = HashingUtils::HashString("CustomKeyStoreInvalidStateException"); -static const int DRY_RUN_OPERATION_HASH = HashingUtils::HashString("DryRunOperationException"); -static const int XKS_PROXY_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("XksProxyInvalidConfigurationException"); -static const int EXPIRED_IMPORT_TOKEN_HASH = HashingUtils::HashString("ExpiredImportTokenException"); +static constexpr uint32_t CLOUD_HSM_CLUSTER_NOT_ACTIVE_HASH = ConstExprHashingUtils::HashString("CloudHsmClusterNotActiveException"); +static constexpr uint32_t INCORRECT_TRUST_ANCHOR_HASH = ConstExprHashingUtils::HashString("IncorrectTrustAnchorException"); +static constexpr uint32_t INVALID_GRANT_ID_HASH = ConstExprHashingUtils::HashString("InvalidGrantIdException"); +static constexpr uint32_t XKS_PROXY_INVALID_RESPONSE_HASH = ConstExprHashingUtils::HashString("XksProxyInvalidResponseException"); +static constexpr uint32_t INVALID_IMPORT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidImportTokenException"); +static constexpr uint32_t K_M_S_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("KMSInvalidStateException"); +static constexpr uint32_t XKS_KEY_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("XksKeyInvalidConfigurationException"); +static constexpr uint32_t INVALID_KEY_USAGE_HASH = ConstExprHashingUtils::HashString("InvalidKeyUsageException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INCORRECT_KEY_HASH = ConstExprHashingUtils::HashString("IncorrectKeyException"); +static constexpr uint32_t CUSTOM_KEY_STORE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CustomKeyStoreNotFoundException"); +static constexpr uint32_t K_M_S_INTERNAL_HASH = ConstExprHashingUtils::HashString("KMSInternalException"); +static constexpr uint32_t CLOUD_HSM_CLUSTER_NOT_RELATED_HASH = ConstExprHashingUtils::HashString("CloudHsmClusterNotRelatedException"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocumentException"); +static constexpr uint32_t INVALID_ALIAS_NAME_HASH = ConstExprHashingUtils::HashString("InvalidAliasNameException"); +static constexpr uint32_t XKS_PROXY_URI_UNREACHABLE_HASH = ConstExprHashingUtils::HashString("XksProxyUriUnreachableException"); +static constexpr uint32_t K_M_S_INVALID_MAC_HASH = ConstExprHashingUtils::HashString("KMSInvalidMacException"); +static constexpr uint32_t XKS_PROXY_VPC_ENDPOINT_SERVICE_IN_USE_HASH = ConstExprHashingUtils::HashString("XksProxyVpcEndpointServiceInUseException"); +static constexpr uint32_t XKS_PROXY_INCORRECT_AUTHENTICATION_CREDENTIAL_HASH = ConstExprHashingUtils::HashString("XksProxyIncorrectAuthenticationCredentialException"); +static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DisabledException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t XKS_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("XksKeyNotFoundException"); +static constexpr uint32_t CUSTOM_KEY_STORE_HAS_C_M_KS_HASH = ConstExprHashingUtils::HashString("CustomKeyStoreHasCMKsException"); +static constexpr uint32_t CLOUD_HSM_CLUSTER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CloudHsmClusterNotFoundException"); +static constexpr uint32_t INVALID_GRANT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidGrantTokenException"); +static constexpr uint32_t INCORRECT_KEY_MATERIAL_HASH = ConstExprHashingUtils::HashString("IncorrectKeyMaterialException"); +static constexpr uint32_t INVALID_MARKER_HASH = ConstExprHashingUtils::HashString("InvalidMarkerException"); +static constexpr uint32_t XKS_PROXY_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("XksProxyVpcEndpointServiceInvalidConfigurationException"); +static constexpr uint32_t XKS_PROXY_URI_IN_USE_HASH = ConstExprHashingUtils::HashString("XksProxyUriInUseException"); +static constexpr uint32_t CLOUD_HSM_CLUSTER_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("CloudHsmClusterInvalidConfigurationException"); +static constexpr uint32_t DEPENDENCY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("DependencyTimeoutException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t XKS_PROXY_VPC_ENDPOINT_SERVICE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("XksProxyVpcEndpointServiceNotFoundException"); +static constexpr uint32_t CUSTOM_KEY_STORE_NAME_IN_USE_HASH = ConstExprHashingUtils::HashString("CustomKeyStoreNameInUseException"); +static constexpr uint32_t TAG_HASH = ConstExprHashingUtils::HashString("TagException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t CLOUD_HSM_CLUSTER_IN_USE_HASH = ConstExprHashingUtils::HashString("CloudHsmClusterInUseException"); +static constexpr uint32_t XKS_PROXY_URI_ENDPOINT_IN_USE_HASH = ConstExprHashingUtils::HashString("XksProxyUriEndpointInUseException"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArnException"); +static constexpr uint32_t KEY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("KeyUnavailableException"); +static constexpr uint32_t INVALID_CIPHERTEXT_HASH = ConstExprHashingUtils::HashString("InvalidCiphertextException"); +static constexpr uint32_t XKS_KEY_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("XksKeyAlreadyInUseException"); +static constexpr uint32_t K_M_S_INVALID_SIGNATURE_HASH = ConstExprHashingUtils::HashString("KMSInvalidSignatureException"); +static constexpr uint32_t CUSTOM_KEY_STORE_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("CustomKeyStoreInvalidStateException"); +static constexpr uint32_t DRY_RUN_OPERATION_HASH = ConstExprHashingUtils::HashString("DryRunOperationException"); +static constexpr uint32_t XKS_PROXY_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("XksProxyInvalidConfigurationException"); +static constexpr uint32_t EXPIRED_IMPORT_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredImportTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLOUD_HSM_CLUSTER_NOT_ACTIVE_HASH) { diff --git a/generated/src/aws-cpp-sdk-kms/source/model/AlgorithmSpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/AlgorithmSpec.cpp index 7eb0948314d..9e2f22b1486 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/AlgorithmSpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/AlgorithmSpec.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AlgorithmSpecMapper { - static const int RSAES_PKCS1_V1_5_HASH = HashingUtils::HashString("RSAES_PKCS1_V1_5"); - static const int RSAES_OAEP_SHA_1_HASH = HashingUtils::HashString("RSAES_OAEP_SHA_1"); - static const int RSAES_OAEP_SHA_256_HASH = HashingUtils::HashString("RSAES_OAEP_SHA_256"); - static const int RSA_AES_KEY_WRAP_SHA_1_HASH = HashingUtils::HashString("RSA_AES_KEY_WRAP_SHA_1"); - static const int RSA_AES_KEY_WRAP_SHA_256_HASH = HashingUtils::HashString("RSA_AES_KEY_WRAP_SHA_256"); + static constexpr uint32_t RSAES_PKCS1_V1_5_HASH = ConstExprHashingUtils::HashString("RSAES_PKCS1_V1_5"); + static constexpr uint32_t RSAES_OAEP_SHA_1_HASH = ConstExprHashingUtils::HashString("RSAES_OAEP_SHA_1"); + static constexpr uint32_t RSAES_OAEP_SHA_256_HASH = ConstExprHashingUtils::HashString("RSAES_OAEP_SHA_256"); + static constexpr uint32_t RSA_AES_KEY_WRAP_SHA_1_HASH = ConstExprHashingUtils::HashString("RSA_AES_KEY_WRAP_SHA_1"); + static constexpr uint32_t RSA_AES_KEY_WRAP_SHA_256_HASH = ConstExprHashingUtils::HashString("RSA_AES_KEY_WRAP_SHA_256"); AlgorithmSpec GetAlgorithmSpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSAES_PKCS1_V1_5_HASH) { return AlgorithmSpec::RSAES_PKCS1_V1_5; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/ConnectionErrorCodeType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/ConnectionErrorCodeType.cpp index efa5a2b5e10..9a504e9e136 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/ConnectionErrorCodeType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/ConnectionErrorCodeType.cpp @@ -20,29 +20,29 @@ namespace Aws namespace ConnectionErrorCodeTypeMapper { - static const int INVALID_CREDENTIALS_HASH = HashingUtils::HashString("INVALID_CREDENTIALS"); - static const int CLUSTER_NOT_FOUND_HASH = HashingUtils::HashString("CLUSTER_NOT_FOUND"); - static const int NETWORK_ERRORS_HASH = HashingUtils::HashString("NETWORK_ERRORS"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INSUFFICIENT_CLOUDHSM_HSMS_HASH = HashingUtils::HashString("INSUFFICIENT_CLOUDHSM_HSMS"); - static const int USER_LOCKED_OUT_HASH = HashingUtils::HashString("USER_LOCKED_OUT"); - static const int USER_NOT_FOUND_HASH = HashingUtils::HashString("USER_NOT_FOUND"); - static const int USER_LOGGED_IN_HASH = HashingUtils::HashString("USER_LOGGED_IN"); - static const int SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("SUBNET_NOT_FOUND"); - static const int INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_HASH = HashingUtils::HashString("INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET"); - static const int XKS_PROXY_ACCESS_DENIED_HASH = HashingUtils::HashString("XKS_PROXY_ACCESS_DENIED"); - static const int XKS_PROXY_NOT_REACHABLE_HASH = HashingUtils::HashString("XKS_PROXY_NOT_REACHABLE"); - static const int XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND_HASH = HashingUtils::HashString("XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND"); - static const int XKS_PROXY_INVALID_RESPONSE_HASH = HashingUtils::HashString("XKS_PROXY_INVALID_RESPONSE"); - static const int XKS_PROXY_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("XKS_PROXY_INVALID_CONFIGURATION"); - static const int XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION"); - static const int XKS_PROXY_TIMED_OUT_HASH = HashingUtils::HashString("XKS_PROXY_TIMED_OUT"); - static const int XKS_PROXY_INVALID_TLS_CONFIGURATION_HASH = HashingUtils::HashString("XKS_PROXY_INVALID_TLS_CONFIGURATION"); + static constexpr uint32_t INVALID_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("INVALID_CREDENTIALS"); + static constexpr uint32_t CLUSTER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CLUSTER_NOT_FOUND"); + static constexpr uint32_t NETWORK_ERRORS_HASH = ConstExprHashingUtils::HashString("NETWORK_ERRORS"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INSUFFICIENT_CLOUDHSM_HSMS_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_CLOUDHSM_HSMS"); + static constexpr uint32_t USER_LOCKED_OUT_HASH = ConstExprHashingUtils::HashString("USER_LOCKED_OUT"); + static constexpr uint32_t USER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("USER_NOT_FOUND"); + static constexpr uint32_t USER_LOGGED_IN_HASH = ConstExprHashingUtils::HashString("USER_LOGGED_IN"); + static constexpr uint32_t SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SUBNET_NOT_FOUND"); + static constexpr uint32_t INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET"); + static constexpr uint32_t XKS_PROXY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("XKS_PROXY_ACCESS_DENIED"); + static constexpr uint32_t XKS_PROXY_NOT_REACHABLE_HASH = ConstExprHashingUtils::HashString("XKS_PROXY_NOT_REACHABLE"); + static constexpr uint32_t XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND"); + static constexpr uint32_t XKS_PROXY_INVALID_RESPONSE_HASH = ConstExprHashingUtils::HashString("XKS_PROXY_INVALID_RESPONSE"); + static constexpr uint32_t XKS_PROXY_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("XKS_PROXY_INVALID_CONFIGURATION"); + static constexpr uint32_t XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION"); + static constexpr uint32_t XKS_PROXY_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("XKS_PROXY_TIMED_OUT"); + static constexpr uint32_t XKS_PROXY_INVALID_TLS_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("XKS_PROXY_INVALID_TLS_CONFIGURATION"); ConnectionErrorCodeType GetConnectionErrorCodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_CREDENTIALS_HASH) { return ConnectionErrorCodeType::INVALID_CREDENTIALS; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/ConnectionStateType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/ConnectionStateType.cpp index e73867953ec..4cc6a323336 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/ConnectionStateType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/ConnectionStateType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ConnectionStateTypeMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int CONNECTING_HASH = HashingUtils::HashString("CONNECTING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); - static const int DISCONNECTING_HASH = HashingUtils::HashString("DISCONNECTING"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t CONNECTING_HASH = ConstExprHashingUtils::HashString("CONNECTING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t DISCONNECTING_HASH = ConstExprHashingUtils::HashString("DISCONNECTING"); ConnectionStateType GetConnectionStateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return ConnectionStateType::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/CustomKeyStoreType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/CustomKeyStoreType.cpp index b1244237286..2125040b2a9 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/CustomKeyStoreType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/CustomKeyStoreType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomKeyStoreTypeMapper { - static const int AWS_CLOUDHSM_HASH = HashingUtils::HashString("AWS_CLOUDHSM"); - static const int EXTERNAL_KEY_STORE_HASH = HashingUtils::HashString("EXTERNAL_KEY_STORE"); + static constexpr uint32_t AWS_CLOUDHSM_HASH = ConstExprHashingUtils::HashString("AWS_CLOUDHSM"); + static constexpr uint32_t EXTERNAL_KEY_STORE_HASH = ConstExprHashingUtils::HashString("EXTERNAL_KEY_STORE"); CustomKeyStoreType GetCustomKeyStoreTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_CLOUDHSM_HASH) { return CustomKeyStoreType::AWS_CLOUDHSM; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/DataKeyPairSpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/DataKeyPairSpec.cpp index a67ed366bb6..98493c40456 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/DataKeyPairSpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/DataKeyPairSpec.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataKeyPairSpecMapper { - static const int RSA_2048_HASH = HashingUtils::HashString("RSA_2048"); - static const int RSA_3072_HASH = HashingUtils::HashString("RSA_3072"); - static const int RSA_4096_HASH = HashingUtils::HashString("RSA_4096"); - static const int ECC_NIST_P256_HASH = HashingUtils::HashString("ECC_NIST_P256"); - static const int ECC_NIST_P384_HASH = HashingUtils::HashString("ECC_NIST_P384"); - static const int ECC_NIST_P521_HASH = HashingUtils::HashString("ECC_NIST_P521"); - static const int ECC_SECG_P256K1_HASH = HashingUtils::HashString("ECC_SECG_P256K1"); - static const int SM2_HASH = HashingUtils::HashString("SM2"); + static constexpr uint32_t RSA_2048_HASH = ConstExprHashingUtils::HashString("RSA_2048"); + static constexpr uint32_t RSA_3072_HASH = ConstExprHashingUtils::HashString("RSA_3072"); + static constexpr uint32_t RSA_4096_HASH = ConstExprHashingUtils::HashString("RSA_4096"); + static constexpr uint32_t ECC_NIST_P256_HASH = ConstExprHashingUtils::HashString("ECC_NIST_P256"); + static constexpr uint32_t ECC_NIST_P384_HASH = ConstExprHashingUtils::HashString("ECC_NIST_P384"); + static constexpr uint32_t ECC_NIST_P521_HASH = ConstExprHashingUtils::HashString("ECC_NIST_P521"); + static constexpr uint32_t ECC_SECG_P256K1_HASH = ConstExprHashingUtils::HashString("ECC_SECG_P256K1"); + static constexpr uint32_t SM2_HASH = ConstExprHashingUtils::HashString("SM2"); DataKeyPairSpec GetDataKeyPairSpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_2048_HASH) { return DataKeyPairSpec::RSA_2048; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/DataKeySpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/DataKeySpec.cpp index 64e10418a3e..22ea3e8e531 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/DataKeySpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/DataKeySpec.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataKeySpecMapper { - static const int AES_256_HASH = HashingUtils::HashString("AES_256"); - static const int AES_128_HASH = HashingUtils::HashString("AES_128"); + static constexpr uint32_t AES_256_HASH = ConstExprHashingUtils::HashString("AES_256"); + static constexpr uint32_t AES_128_HASH = ConstExprHashingUtils::HashString("AES_128"); DataKeySpec GetDataKeySpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES_256_HASH) { return DataKeySpec::AES_256; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/EncryptionAlgorithmSpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/EncryptionAlgorithmSpec.cpp index 01b1455acb2..eb520256249 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/EncryptionAlgorithmSpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/EncryptionAlgorithmSpec.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EncryptionAlgorithmSpecMapper { - static const int SYMMETRIC_DEFAULT_HASH = HashingUtils::HashString("SYMMETRIC_DEFAULT"); - static const int RSAES_OAEP_SHA_1_HASH = HashingUtils::HashString("RSAES_OAEP_SHA_1"); - static const int RSAES_OAEP_SHA_256_HASH = HashingUtils::HashString("RSAES_OAEP_SHA_256"); - static const int SM2PKE_HASH = HashingUtils::HashString("SM2PKE"); + static constexpr uint32_t SYMMETRIC_DEFAULT_HASH = ConstExprHashingUtils::HashString("SYMMETRIC_DEFAULT"); + static constexpr uint32_t RSAES_OAEP_SHA_1_HASH = ConstExprHashingUtils::HashString("RSAES_OAEP_SHA_1"); + static constexpr uint32_t RSAES_OAEP_SHA_256_HASH = ConstExprHashingUtils::HashString("RSAES_OAEP_SHA_256"); + static constexpr uint32_t SM2PKE_HASH = ConstExprHashingUtils::HashString("SM2PKE"); EncryptionAlgorithmSpec GetEncryptionAlgorithmSpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYMMETRIC_DEFAULT_HASH) { return EncryptionAlgorithmSpec::SYMMETRIC_DEFAULT; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/ExpirationModelType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/ExpirationModelType.cpp index 02cf7562058..c57a4670b25 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/ExpirationModelType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/ExpirationModelType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpirationModelTypeMapper { - static const int KEY_MATERIAL_EXPIRES_HASH = HashingUtils::HashString("KEY_MATERIAL_EXPIRES"); - static const int KEY_MATERIAL_DOES_NOT_EXPIRE_HASH = HashingUtils::HashString("KEY_MATERIAL_DOES_NOT_EXPIRE"); + static constexpr uint32_t KEY_MATERIAL_EXPIRES_HASH = ConstExprHashingUtils::HashString("KEY_MATERIAL_EXPIRES"); + static constexpr uint32_t KEY_MATERIAL_DOES_NOT_EXPIRE_HASH = ConstExprHashingUtils::HashString("KEY_MATERIAL_DOES_NOT_EXPIRE"); ExpirationModelType GetExpirationModelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_MATERIAL_EXPIRES_HASH) { return ExpirationModelType::KEY_MATERIAL_EXPIRES; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/GrantOperation.cpp b/generated/src/aws-cpp-sdk-kms/source/model/GrantOperation.cpp index f5347cc6c0b..880ae6deae6 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/GrantOperation.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/GrantOperation.cpp @@ -20,27 +20,27 @@ namespace Aws namespace GrantOperationMapper { - static const int Decrypt_HASH = HashingUtils::HashString("Decrypt"); - static const int Encrypt_HASH = HashingUtils::HashString("Encrypt"); - static const int GenerateDataKey_HASH = HashingUtils::HashString("GenerateDataKey"); - static const int GenerateDataKeyWithoutPlaintext_HASH = HashingUtils::HashString("GenerateDataKeyWithoutPlaintext"); - static const int ReEncryptFrom_HASH = HashingUtils::HashString("ReEncryptFrom"); - static const int ReEncryptTo_HASH = HashingUtils::HashString("ReEncryptTo"); - static const int Sign_HASH = HashingUtils::HashString("Sign"); - static const int Verify_HASH = HashingUtils::HashString("Verify"); - static const int GetPublicKey_HASH = HashingUtils::HashString("GetPublicKey"); - static const int CreateGrant_HASH = HashingUtils::HashString("CreateGrant"); - static const int RetireGrant_HASH = HashingUtils::HashString("RetireGrant"); - static const int DescribeKey_HASH = HashingUtils::HashString("DescribeKey"); - static const int GenerateDataKeyPair_HASH = HashingUtils::HashString("GenerateDataKeyPair"); - static const int GenerateDataKeyPairWithoutPlaintext_HASH = HashingUtils::HashString("GenerateDataKeyPairWithoutPlaintext"); - static const int GenerateMac_HASH = HashingUtils::HashString("GenerateMac"); - static const int VerifyMac_HASH = HashingUtils::HashString("VerifyMac"); + static constexpr uint32_t Decrypt_HASH = ConstExprHashingUtils::HashString("Decrypt"); + static constexpr uint32_t Encrypt_HASH = ConstExprHashingUtils::HashString("Encrypt"); + static constexpr uint32_t GenerateDataKey_HASH = ConstExprHashingUtils::HashString("GenerateDataKey"); + static constexpr uint32_t GenerateDataKeyWithoutPlaintext_HASH = ConstExprHashingUtils::HashString("GenerateDataKeyWithoutPlaintext"); + static constexpr uint32_t ReEncryptFrom_HASH = ConstExprHashingUtils::HashString("ReEncryptFrom"); + static constexpr uint32_t ReEncryptTo_HASH = ConstExprHashingUtils::HashString("ReEncryptTo"); + static constexpr uint32_t Sign_HASH = ConstExprHashingUtils::HashString("Sign"); + static constexpr uint32_t Verify_HASH = ConstExprHashingUtils::HashString("Verify"); + static constexpr uint32_t GetPublicKey_HASH = ConstExprHashingUtils::HashString("GetPublicKey"); + static constexpr uint32_t CreateGrant_HASH = ConstExprHashingUtils::HashString("CreateGrant"); + static constexpr uint32_t RetireGrant_HASH = ConstExprHashingUtils::HashString("RetireGrant"); + static constexpr uint32_t DescribeKey_HASH = ConstExprHashingUtils::HashString("DescribeKey"); + static constexpr uint32_t GenerateDataKeyPair_HASH = ConstExprHashingUtils::HashString("GenerateDataKeyPair"); + static constexpr uint32_t GenerateDataKeyPairWithoutPlaintext_HASH = ConstExprHashingUtils::HashString("GenerateDataKeyPairWithoutPlaintext"); + static constexpr uint32_t GenerateMac_HASH = ConstExprHashingUtils::HashString("GenerateMac"); + static constexpr uint32_t VerifyMac_HASH = ConstExprHashingUtils::HashString("VerifyMac"); GrantOperation GetGrantOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Decrypt_HASH) { return GrantOperation::Decrypt; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/KeyEncryptionMechanism.cpp b/generated/src/aws-cpp-sdk-kms/source/model/KeyEncryptionMechanism.cpp index 47ea951357c..8d3108b8e6b 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/KeyEncryptionMechanism.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/KeyEncryptionMechanism.cpp @@ -20,12 +20,12 @@ namespace Aws namespace KeyEncryptionMechanismMapper { - static const int RSAES_OAEP_SHA_256_HASH = HashingUtils::HashString("RSAES_OAEP_SHA_256"); + static constexpr uint32_t RSAES_OAEP_SHA_256_HASH = ConstExprHashingUtils::HashString("RSAES_OAEP_SHA_256"); KeyEncryptionMechanism GetKeyEncryptionMechanismForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSAES_OAEP_SHA_256_HASH) { return KeyEncryptionMechanism::RSAES_OAEP_SHA_256; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/KeyManagerType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/KeyManagerType.cpp index c7397e4940f..5fe7f20b707 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/KeyManagerType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/KeyManagerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyManagerTypeMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); KeyManagerType GetKeyManagerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return KeyManagerType::AWS; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/KeySpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/KeySpec.cpp index c9071bc547b..31b47612d1d 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/KeySpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/KeySpec.cpp @@ -20,24 +20,24 @@ namespace Aws namespace KeySpecMapper { - static const int RSA_2048_HASH = HashingUtils::HashString("RSA_2048"); - static const int RSA_3072_HASH = HashingUtils::HashString("RSA_3072"); - static const int RSA_4096_HASH = HashingUtils::HashString("RSA_4096"); - static const int ECC_NIST_P256_HASH = HashingUtils::HashString("ECC_NIST_P256"); - static const int ECC_NIST_P384_HASH = HashingUtils::HashString("ECC_NIST_P384"); - static const int ECC_NIST_P521_HASH = HashingUtils::HashString("ECC_NIST_P521"); - static const int ECC_SECG_P256K1_HASH = HashingUtils::HashString("ECC_SECG_P256K1"); - static const int SYMMETRIC_DEFAULT_HASH = HashingUtils::HashString("SYMMETRIC_DEFAULT"); - static const int HMAC_224_HASH = HashingUtils::HashString("HMAC_224"); - static const int HMAC_256_HASH = HashingUtils::HashString("HMAC_256"); - static const int HMAC_384_HASH = HashingUtils::HashString("HMAC_384"); - static const int HMAC_512_HASH = HashingUtils::HashString("HMAC_512"); - static const int SM2_HASH = HashingUtils::HashString("SM2"); + static constexpr uint32_t RSA_2048_HASH = ConstExprHashingUtils::HashString("RSA_2048"); + static constexpr uint32_t RSA_3072_HASH = ConstExprHashingUtils::HashString("RSA_3072"); + static constexpr uint32_t RSA_4096_HASH = ConstExprHashingUtils::HashString("RSA_4096"); + static constexpr uint32_t ECC_NIST_P256_HASH = ConstExprHashingUtils::HashString("ECC_NIST_P256"); + static constexpr uint32_t ECC_NIST_P384_HASH = ConstExprHashingUtils::HashString("ECC_NIST_P384"); + static constexpr uint32_t ECC_NIST_P521_HASH = ConstExprHashingUtils::HashString("ECC_NIST_P521"); + static constexpr uint32_t ECC_SECG_P256K1_HASH = ConstExprHashingUtils::HashString("ECC_SECG_P256K1"); + static constexpr uint32_t SYMMETRIC_DEFAULT_HASH = ConstExprHashingUtils::HashString("SYMMETRIC_DEFAULT"); + static constexpr uint32_t HMAC_224_HASH = ConstExprHashingUtils::HashString("HMAC_224"); + static constexpr uint32_t HMAC_256_HASH = ConstExprHashingUtils::HashString("HMAC_256"); + static constexpr uint32_t HMAC_384_HASH = ConstExprHashingUtils::HashString("HMAC_384"); + static constexpr uint32_t HMAC_512_HASH = ConstExprHashingUtils::HashString("HMAC_512"); + static constexpr uint32_t SM2_HASH = ConstExprHashingUtils::HashString("SM2"); KeySpec GetKeySpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_2048_HASH) { return KeySpec::RSA_2048; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/KeyState.cpp b/generated/src/aws-cpp-sdk-kms/source/model/KeyState.cpp index 19a893bfba2..295569c376d 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/KeyState.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/KeyState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace KeyStateMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); - static const int PendingDeletion_HASH = HashingUtils::HashString("PendingDeletion"); - static const int PendingImport_HASH = HashingUtils::HashString("PendingImport"); - static const int PendingReplicaDeletion_HASH = HashingUtils::HashString("PendingReplicaDeletion"); - static const int Unavailable_HASH = HashingUtils::HashString("Unavailable"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); + static constexpr uint32_t PendingDeletion_HASH = ConstExprHashingUtils::HashString("PendingDeletion"); + static constexpr uint32_t PendingImport_HASH = ConstExprHashingUtils::HashString("PendingImport"); + static constexpr uint32_t PendingReplicaDeletion_HASH = ConstExprHashingUtils::HashString("PendingReplicaDeletion"); + static constexpr uint32_t Unavailable_HASH = ConstExprHashingUtils::HashString("Unavailable"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); KeyState GetKeyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return KeyState::Creating; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/KeyUsageType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/KeyUsageType.cpp index 1a0a2c92a4a..7a3e297fc63 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/KeyUsageType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/KeyUsageType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace KeyUsageTypeMapper { - static const int SIGN_VERIFY_HASH = HashingUtils::HashString("SIGN_VERIFY"); - static const int ENCRYPT_DECRYPT_HASH = HashingUtils::HashString("ENCRYPT_DECRYPT"); - static const int GENERATE_VERIFY_MAC_HASH = HashingUtils::HashString("GENERATE_VERIFY_MAC"); + static constexpr uint32_t SIGN_VERIFY_HASH = ConstExprHashingUtils::HashString("SIGN_VERIFY"); + static constexpr uint32_t ENCRYPT_DECRYPT_HASH = ConstExprHashingUtils::HashString("ENCRYPT_DECRYPT"); + static constexpr uint32_t GENERATE_VERIFY_MAC_HASH = ConstExprHashingUtils::HashString("GENERATE_VERIFY_MAC"); KeyUsageType GetKeyUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIGN_VERIFY_HASH) { return KeyUsageType::SIGN_VERIFY; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/MacAlgorithmSpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/MacAlgorithmSpec.cpp index 8393145cd89..55d77d5df1e 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/MacAlgorithmSpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/MacAlgorithmSpec.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MacAlgorithmSpecMapper { - static const int HMAC_SHA_224_HASH = HashingUtils::HashString("HMAC_SHA_224"); - static const int HMAC_SHA_256_HASH = HashingUtils::HashString("HMAC_SHA_256"); - static const int HMAC_SHA_384_HASH = HashingUtils::HashString("HMAC_SHA_384"); - static const int HMAC_SHA_512_HASH = HashingUtils::HashString("HMAC_SHA_512"); + static constexpr uint32_t HMAC_SHA_224_HASH = ConstExprHashingUtils::HashString("HMAC_SHA_224"); + static constexpr uint32_t HMAC_SHA_256_HASH = ConstExprHashingUtils::HashString("HMAC_SHA_256"); + static constexpr uint32_t HMAC_SHA_384_HASH = ConstExprHashingUtils::HashString("HMAC_SHA_384"); + static constexpr uint32_t HMAC_SHA_512_HASH = ConstExprHashingUtils::HashString("HMAC_SHA_512"); MacAlgorithmSpec GetMacAlgorithmSpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HMAC_SHA_224_HASH) { return MacAlgorithmSpec::HMAC_SHA_224; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/MessageType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/MessageType.cpp index 9831c62549f..e62aa681546 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/MessageType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/MessageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageTypeMapper { - static const int RAW_HASH = HashingUtils::HashString("RAW"); - static const int DIGEST_HASH = HashingUtils::HashString("DIGEST"); + static constexpr uint32_t RAW_HASH = ConstExprHashingUtils::HashString("RAW"); + static constexpr uint32_t DIGEST_HASH = ConstExprHashingUtils::HashString("DIGEST"); MessageType GetMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RAW_HASH) { return MessageType::RAW; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/MultiRegionKeyType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/MultiRegionKeyType.cpp index 78c719312f9..ba9df49536f 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/MultiRegionKeyType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/MultiRegionKeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MultiRegionKeyTypeMapper { - static const int PRIMARY_HASH = HashingUtils::HashString("PRIMARY"); - static const int REPLICA_HASH = HashingUtils::HashString("REPLICA"); + static constexpr uint32_t PRIMARY_HASH = ConstExprHashingUtils::HashString("PRIMARY"); + static constexpr uint32_t REPLICA_HASH = ConstExprHashingUtils::HashString("REPLICA"); MultiRegionKeyType GetMultiRegionKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_HASH) { return MultiRegionKeyType::PRIMARY; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/OriginType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/OriginType.cpp index 4934dd98467..d3f2946d611 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/OriginType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/OriginType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OriginTypeMapper { - static const int AWS_KMS_HASH = HashingUtils::HashString("AWS_KMS"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); - static const int AWS_CLOUDHSM_HASH = HashingUtils::HashString("AWS_CLOUDHSM"); - static const int EXTERNAL_KEY_STORE_HASH = HashingUtils::HashString("EXTERNAL_KEY_STORE"); + static constexpr uint32_t AWS_KMS_HASH = ConstExprHashingUtils::HashString("AWS_KMS"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t AWS_CLOUDHSM_HASH = ConstExprHashingUtils::HashString("AWS_CLOUDHSM"); + static constexpr uint32_t EXTERNAL_KEY_STORE_HASH = ConstExprHashingUtils::HashString("EXTERNAL_KEY_STORE"); OriginType GetOriginTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_KMS_HASH) { return OriginType::AWS_KMS; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/SigningAlgorithmSpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/SigningAlgorithmSpec.cpp index 6b79800fd2d..6fa7aba95ac 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/SigningAlgorithmSpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/SigningAlgorithmSpec.cpp @@ -20,21 +20,21 @@ namespace Aws namespace SigningAlgorithmSpecMapper { - static const int RSASSA_PSS_SHA_256_HASH = HashingUtils::HashString("RSASSA_PSS_SHA_256"); - static const int RSASSA_PSS_SHA_384_HASH = HashingUtils::HashString("RSASSA_PSS_SHA_384"); - static const int RSASSA_PSS_SHA_512_HASH = HashingUtils::HashString("RSASSA_PSS_SHA_512"); - static const int RSASSA_PKCS1_V1_5_SHA_256_HASH = HashingUtils::HashString("RSASSA_PKCS1_V1_5_SHA_256"); - static const int RSASSA_PKCS1_V1_5_SHA_384_HASH = HashingUtils::HashString("RSASSA_PKCS1_V1_5_SHA_384"); - static const int RSASSA_PKCS1_V1_5_SHA_512_HASH = HashingUtils::HashString("RSASSA_PKCS1_V1_5_SHA_512"); - static const int ECDSA_SHA_256_HASH = HashingUtils::HashString("ECDSA_SHA_256"); - static const int ECDSA_SHA_384_HASH = HashingUtils::HashString("ECDSA_SHA_384"); - static const int ECDSA_SHA_512_HASH = HashingUtils::HashString("ECDSA_SHA_512"); - static const int SM2DSA_HASH = HashingUtils::HashString("SM2DSA"); + static constexpr uint32_t RSASSA_PSS_SHA_256_HASH = ConstExprHashingUtils::HashString("RSASSA_PSS_SHA_256"); + static constexpr uint32_t RSASSA_PSS_SHA_384_HASH = ConstExprHashingUtils::HashString("RSASSA_PSS_SHA_384"); + static constexpr uint32_t RSASSA_PSS_SHA_512_HASH = ConstExprHashingUtils::HashString("RSASSA_PSS_SHA_512"); + static constexpr uint32_t RSASSA_PKCS1_V1_5_SHA_256_HASH = ConstExprHashingUtils::HashString("RSASSA_PKCS1_V1_5_SHA_256"); + static constexpr uint32_t RSASSA_PKCS1_V1_5_SHA_384_HASH = ConstExprHashingUtils::HashString("RSASSA_PKCS1_V1_5_SHA_384"); + static constexpr uint32_t RSASSA_PKCS1_V1_5_SHA_512_HASH = ConstExprHashingUtils::HashString("RSASSA_PKCS1_V1_5_SHA_512"); + static constexpr uint32_t ECDSA_SHA_256_HASH = ConstExprHashingUtils::HashString("ECDSA_SHA_256"); + static constexpr uint32_t ECDSA_SHA_384_HASH = ConstExprHashingUtils::HashString("ECDSA_SHA_384"); + static constexpr uint32_t ECDSA_SHA_512_HASH = ConstExprHashingUtils::HashString("ECDSA_SHA_512"); + static constexpr uint32_t SM2DSA_HASH = ConstExprHashingUtils::HashString("SM2DSA"); SigningAlgorithmSpec GetSigningAlgorithmSpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSASSA_PSS_SHA_256_HASH) { return SigningAlgorithmSpec::RSASSA_PSS_SHA_256; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/WrappingKeySpec.cpp b/generated/src/aws-cpp-sdk-kms/source/model/WrappingKeySpec.cpp index b54ee923c59..eb5b058d572 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/WrappingKeySpec.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/WrappingKeySpec.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WrappingKeySpecMapper { - static const int RSA_2048_HASH = HashingUtils::HashString("RSA_2048"); - static const int RSA_3072_HASH = HashingUtils::HashString("RSA_3072"); - static const int RSA_4096_HASH = HashingUtils::HashString("RSA_4096"); + static constexpr uint32_t RSA_2048_HASH = ConstExprHashingUtils::HashString("RSA_2048"); + static constexpr uint32_t RSA_3072_HASH = ConstExprHashingUtils::HashString("RSA_3072"); + static constexpr uint32_t RSA_4096_HASH = ConstExprHashingUtils::HashString("RSA_4096"); WrappingKeySpec GetWrappingKeySpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_2048_HASH) { return WrappingKeySpec::RSA_2048; diff --git a/generated/src/aws-cpp-sdk-kms/source/model/XksProxyConnectivityType.cpp b/generated/src/aws-cpp-sdk-kms/source/model/XksProxyConnectivityType.cpp index eab77d4229c..9671beb6775 100644 --- a/generated/src/aws-cpp-sdk-kms/source/model/XksProxyConnectivityType.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/model/XksProxyConnectivityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XksProxyConnectivityTypeMapper { - static const int PUBLIC_ENDPOINT_HASH = HashingUtils::HashString("PUBLIC_ENDPOINT"); - static const int VPC_ENDPOINT_SERVICE_HASH = HashingUtils::HashString("VPC_ENDPOINT_SERVICE"); + static constexpr uint32_t PUBLIC_ENDPOINT_HASH = ConstExprHashingUtils::HashString("PUBLIC_ENDPOINT"); + static constexpr uint32_t VPC_ENDPOINT_SERVICE_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT_SERVICE"); XksProxyConnectivityType GetXksProxyConnectivityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC_ENDPOINT_HASH) { return XksProxyConnectivityType::PUBLIC_ENDPOINT; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationErrors.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationErrors.cpp index 82547b177b9..a2cf9fa9aa7 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationErrors.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationErrors.cpp @@ -18,27 +18,27 @@ namespace LakeFormation namespace LakeFormationErrorMapper { -static const int OPERATION_TIMEOUT_HASH = HashingUtils::HashString("OperationTimeoutException"); -static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); -static const int TRANSACTION_CANCELED_HASH = HashingUtils::HashString("TransactionCanceledException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int TRANSACTION_COMMIT_IN_PROGRESS_HASH = HashingUtils::HashString("TransactionCommitInProgressException"); -static const int ENTITY_NOT_FOUND_HASH = HashingUtils::HashString("EntityNotFoundException"); -static const int GLUE_ENCRYPTION_HASH = HashingUtils::HashString("GlueEncryptionException"); -static const int PERMISSION_TYPE_MISMATCH_HASH = HashingUtils::HashString("PermissionTypeMismatchException"); -static const int RESOURCE_NUMBER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceNumberLimitExceededException"); -static const int STATISTICS_NOT_READY_YET_HASH = HashingUtils::HashString("StatisticsNotReadyYetException"); -static const int EXPIRED_HASH = HashingUtils::HashString("ExpiredException"); -static const int WORK_UNITS_NOT_READY_YET_HASH = HashingUtils::HashString("WorkUnitsNotReadyYetException"); -static const int TRANSACTION_COMMITTED_HASH = HashingUtils::HashString("TransactionCommittedException"); +static constexpr uint32_t OPERATION_TIMEOUT_HASH = ConstExprHashingUtils::HashString("OperationTimeoutException"); +static constexpr uint32_t RESOURCE_NOT_READY_HASH = ConstExprHashingUtils::HashString("ResourceNotReadyException"); +static constexpr uint32_t TRANSACTION_CANCELED_HASH = ConstExprHashingUtils::HashString("TransactionCanceledException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t TRANSACTION_COMMIT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TransactionCommitInProgressException"); +static constexpr uint32_t ENTITY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EntityNotFoundException"); +static constexpr uint32_t GLUE_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("GlueEncryptionException"); +static constexpr uint32_t PERMISSION_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("PermissionTypeMismatchException"); +static constexpr uint32_t RESOURCE_NUMBER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceNumberLimitExceededException"); +static constexpr uint32_t STATISTICS_NOT_READY_YET_HASH = ConstExprHashingUtils::HashString("StatisticsNotReadyYetException"); +static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("ExpiredException"); +static constexpr uint32_t WORK_UNITS_NOT_READY_YET_HASH = ConstExprHashingUtils::HashString("WorkUnitsNotReadyYetException"); +static constexpr uint32_t TRANSACTION_COMMITTED_HASH = ConstExprHashingUtils::HashString("TransactionCommittedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == OPERATION_TIMEOUT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/ComparisonOperator.cpp index c770945f27e..98e7545cca2 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/ComparisonOperator.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int NOT_CONTAINS_HASH = HashingUtils::HashString("NOT_CONTAINS"); - static const int BEGINS_WITH_HASH = HashingUtils::HashString("BEGINS_WITH"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t NOT_CONTAINS_HASH = ConstExprHashingUtils::HashString("NOT_CONTAINS"); + static constexpr uint32_t BEGINS_WITH_HASH = ConstExprHashingUtils::HashString("BEGINS_WITH"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return ComparisonOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp index 248dcd5c06f..0e6067cec5e 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataLakeResourceTypeMapper { - static const int CATALOG_HASH = HashingUtils::HashString("CATALOG"); - static const int DATABASE_HASH = HashingUtils::HashString("DATABASE"); - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); - static const int DATA_LOCATION_HASH = HashingUtils::HashString("DATA_LOCATION"); - static const int LF_TAG_HASH = HashingUtils::HashString("LF_TAG"); - static const int LF_TAG_POLICY_HASH = HashingUtils::HashString("LF_TAG_POLICY"); - static const int LF_TAG_POLICY_DATABASE_HASH = HashingUtils::HashString("LF_TAG_POLICY_DATABASE"); - static const int LF_TAG_POLICY_TABLE_HASH = HashingUtils::HashString("LF_TAG_POLICY_TABLE"); + static constexpr uint32_t CATALOG_HASH = ConstExprHashingUtils::HashString("CATALOG"); + static constexpr uint32_t DATABASE_HASH = ConstExprHashingUtils::HashString("DATABASE"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); + static constexpr uint32_t DATA_LOCATION_HASH = ConstExprHashingUtils::HashString("DATA_LOCATION"); + static constexpr uint32_t LF_TAG_HASH = ConstExprHashingUtils::HashString("LF_TAG"); + static constexpr uint32_t LF_TAG_POLICY_HASH = ConstExprHashingUtils::HashString("LF_TAG_POLICY"); + static constexpr uint32_t LF_TAG_POLICY_DATABASE_HASH = ConstExprHashingUtils::HashString("LF_TAG_POLICY_DATABASE"); + static constexpr uint32_t LF_TAG_POLICY_TABLE_HASH = ConstExprHashingUtils::HashString("LF_TAG_POLICY_TABLE"); DataLakeResourceType GetDataLakeResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CATALOG_HASH) { return DataLakeResourceType::CATALOG; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/FieldNameString.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/FieldNameString.cpp index 3ff6bac6017..9ea1d31b474 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/FieldNameString.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/FieldNameString.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FieldNameStringMapper { - static const int RESOURCE_ARN_HASH = HashingUtils::HashString("RESOURCE_ARN"); - static const int ROLE_ARN_HASH = HashingUtils::HashString("ROLE_ARN"); - static const int LAST_MODIFIED_HASH = HashingUtils::HashString("LAST_MODIFIED"); + static constexpr uint32_t RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("RESOURCE_ARN"); + static constexpr uint32_t ROLE_ARN_HASH = ConstExprHashingUtils::HashString("ROLE_ARN"); + static constexpr uint32_t LAST_MODIFIED_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED"); FieldNameString GetFieldNameStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_ARN_HASH) { return FieldNameString::RESOURCE_ARN; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/OptimizerType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/OptimizerType.cpp index bfef10194bf..8e307e76122 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/OptimizerType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/OptimizerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OptimizerTypeMapper { - static const int COMPACTION_HASH = HashingUtils::HashString("COMPACTION"); - static const int GARBAGE_COLLECTION_HASH = HashingUtils::HashString("GARBAGE_COLLECTION"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t COMPACTION_HASH = ConstExprHashingUtils::HashString("COMPACTION"); + static constexpr uint32_t GARBAGE_COLLECTION_HASH = ConstExprHashingUtils::HashString("GARBAGE_COLLECTION"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); OptimizerType GetOptimizerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPACTION_HASH) { return OptimizerType::COMPACTION; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp index 313df968f23..efd65fd34aa 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/Permission.cpp @@ -20,24 +20,24 @@ namespace Aws namespace PermissionMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int SELECT_HASH = HashingUtils::HashString("SELECT"); - static const int ALTER_HASH = HashingUtils::HashString("ALTER"); - static const int DROP_HASH = HashingUtils::HashString("DROP"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int DESCRIBE_HASH = HashingUtils::HashString("DESCRIBE"); - static const int CREATE_DATABASE_HASH = HashingUtils::HashString("CREATE_DATABASE"); - static const int CREATE_TABLE_HASH = HashingUtils::HashString("CREATE_TABLE"); - static const int DATA_LOCATION_ACCESS_HASH = HashingUtils::HashString("DATA_LOCATION_ACCESS"); - static const int CREATE_LF_TAG_HASH = HashingUtils::HashString("CREATE_LF_TAG"); - static const int ASSOCIATE_HASH = HashingUtils::HashString("ASSOCIATE"); - static const int GRANT_WITH_LF_TAG_EXPRESSION_HASH = HashingUtils::HashString("GRANT_WITH_LF_TAG_EXPRESSION"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t SELECT_HASH = ConstExprHashingUtils::HashString("SELECT"); + static constexpr uint32_t ALTER_HASH = ConstExprHashingUtils::HashString("ALTER"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t DESCRIBE_HASH = ConstExprHashingUtils::HashString("DESCRIBE"); + static constexpr uint32_t CREATE_DATABASE_HASH = ConstExprHashingUtils::HashString("CREATE_DATABASE"); + static constexpr uint32_t CREATE_TABLE_HASH = ConstExprHashingUtils::HashString("CREATE_TABLE"); + static constexpr uint32_t DATA_LOCATION_ACCESS_HASH = ConstExprHashingUtils::HashString("DATA_LOCATION_ACCESS"); + static constexpr uint32_t CREATE_LF_TAG_HASH = ConstExprHashingUtils::HashString("CREATE_LF_TAG"); + static constexpr uint32_t ASSOCIATE_HASH = ConstExprHashingUtils::HashString("ASSOCIATE"); + static constexpr uint32_t GRANT_WITH_LF_TAG_EXPRESSION_HASH = ConstExprHashingUtils::HashString("GRANT_WITH_LF_TAG_EXPRESSION"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return Permission::ALL; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/PermissionType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/PermissionType.cpp index 5d8d6c154d8..2f39928a54d 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/PermissionType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/PermissionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PermissionTypeMapper { - static const int COLUMN_PERMISSION_HASH = HashingUtils::HashString("COLUMN_PERMISSION"); - static const int CELL_FILTER_PERMISSION_HASH = HashingUtils::HashString("CELL_FILTER_PERMISSION"); - static const int NESTED_PERMISSION_HASH = HashingUtils::HashString("NESTED_PERMISSION"); - static const int NESTED_CELL_PERMISSION_HASH = HashingUtils::HashString("NESTED_CELL_PERMISSION"); + static constexpr uint32_t COLUMN_PERMISSION_HASH = ConstExprHashingUtils::HashString("COLUMN_PERMISSION"); + static constexpr uint32_t CELL_FILTER_PERMISSION_HASH = ConstExprHashingUtils::HashString("CELL_FILTER_PERMISSION"); + static constexpr uint32_t NESTED_PERMISSION_HASH = ConstExprHashingUtils::HashString("NESTED_PERMISSION"); + static constexpr uint32_t NESTED_CELL_PERMISSION_HASH = ConstExprHashingUtils::HashString("NESTED_CELL_PERMISSION"); PermissionType GetPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMN_PERMISSION_HASH) { return PermissionType::COLUMN_PERMISSION; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/QueryStateString.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/QueryStateString.cpp index c1e7aaca72e..d343b5dbc41 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/QueryStateString.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/QueryStateString.cpp @@ -20,16 +20,16 @@ namespace Aws namespace QueryStateStringMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int WORKUNITS_AVAILABLE_HASH = HashingUtils::HashString("WORKUNITS_AVAILABLE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t WORKUNITS_AVAILABLE_HASH = ConstExprHashingUtils::HashString("WORKUNITS_AVAILABLE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); QueryStateString GetQueryStateStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return QueryStateString::PENDING; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceShareType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceShareType.cpp index fd904d869d4..397619cc16f 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceShareType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceShareType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceShareTypeMapper { - static const int FOREIGN_HASH = HashingUtils::HashString("FOREIGN"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t FOREIGN_HASH = ConstExprHashingUtils::HashString("FOREIGN"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ResourceShareType GetResourceShareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOREIGN_HASH) { return ResourceShareType::FOREIGN; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceType.cpp index 3d8b9a51675..3f40a57fed5 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int DATABASE_HASH = HashingUtils::HashString("DATABASE"); - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); + static constexpr uint32_t DATABASE_HASH = ConstExprHashingUtils::HashString("DATABASE"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATABASE_HASH) { return ResourceType::DATABASE; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatus.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatus.cpp index c8c6f611b15..06c8a239fa3 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatus.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransactionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int COMMITTED_HASH = HashingUtils::HashString("COMMITTED"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int COMMIT_IN_PROGRESS_HASH = HashingUtils::HashString("COMMIT_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t COMMITTED_HASH = ConstExprHashingUtils::HashString("COMMITTED"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t COMMIT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("COMMIT_IN_PROGRESS"); TransactionStatus GetTransactionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TransactionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatusFilter.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatusFilter.cpp index abb0d3a2d0e..e87a5a9a6ae 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatusFilter.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionStatusFilter.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransactionStatusFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int COMMITTED_HASH = HashingUtils::HashString("COMMITTED"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t COMMITTED_HASH = ConstExprHashingUtils::HashString("COMMITTED"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); TransactionStatusFilter GetTransactionStatusFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return TransactionStatusFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionType.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionType.cpp index 43b7922d78a..f684b89421e 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionType.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/model/TransactionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TransactionTypeMapper { - static const int READ_AND_WRITE_HASH = HashingUtils::HashString("READ_AND_WRITE"); - static const int READ_ONLY_HASH = HashingUtils::HashString("READ_ONLY"); + static constexpr uint32_t READ_AND_WRITE_HASH = ConstExprHashingUtils::HashString("READ_AND_WRITE"); + static constexpr uint32_t READ_ONLY_HASH = ConstExprHashingUtils::HashString("READ_ONLY"); TransactionType GetTransactionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_AND_WRITE_HASH) { return TransactionType::READ_AND_WRITE; diff --git a/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp b/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp index 7f539bdf824..d59c2b68e9b 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp @@ -285,47 +285,47 @@ template<> AWS_LAMBDA_API CodeStorageExceededException LambdaError::GetModeledEr namespace LambdaErrorMapper { -static const int E_F_S_MOUNT_CONNECTIVITY_HASH = HashingUtils::HashString("EFSMountConnectivityException"); -static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); -static const int PROVISIONED_CONCURRENCY_CONFIG_NOT_FOUND_HASH = HashingUtils::HashString("ProvisionedConcurrencyConfigNotFoundException"); -static const int K_M_S_INVALID_STATE_HASH = HashingUtils::HashString("KMSInvalidStateException"); -static const int RECURSIVE_INVOCATION_HASH = HashingUtils::HashString("RecursiveInvocationException"); -static const int POLICY_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("PolicyLengthExceededException"); -static const int K_M_S_NOT_FOUND_HASH = HashingUtils::HashString("KMSNotFoundException"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException"); -static const int CODE_VERIFICATION_FAILED_HASH = HashingUtils::HashString("CodeVerificationFailedException"); -static const int SNAP_START_HASH = HashingUtils::HashString("SnapStartException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int SUBNET_I_P_ADDRESS_LIMIT_REACHED_HASH = HashingUtils::HashString("SubnetIPAddressLimitReachedException"); -static const int SNAP_START_NOT_READY_HASH = HashingUtils::HashString("SnapStartNotReadyException"); -static const int INVALID_REQUEST_CONTENT_HASH = HashingUtils::HashString("InvalidRequestContentException"); -static const int E_C2_ACCESS_DENIED_HASH = HashingUtils::HashString("EC2AccessDeniedException"); -static const int REQUEST_TOO_LARGE_HASH = HashingUtils::HashString("RequestTooLargeException"); -static const int INVALID_CODE_SIGNATURE_HASH = HashingUtils::HashString("InvalidCodeSignatureException"); -static const int E_F_S_I_O_HASH = HashingUtils::HashString("EFSIOException"); -static const int INVALID_SECURITY_GROUP_I_D_HASH = HashingUtils::HashString("InvalidSecurityGroupIDException"); -static const int INVALID_SUBNET_I_D_HASH = HashingUtils::HashString("InvalidSubnetIDException"); -static const int CODE_SIGNING_CONFIG_NOT_FOUND_HASH = HashingUtils::HashString("CodeSigningConfigNotFoundException"); -static const int E_F_S_MOUNT_TIMEOUT_HASH = HashingUtils::HashString("EFSMountTimeoutException"); -static const int INVALID_RUNTIME_HASH = HashingUtils::HashString("InvalidRuntimeException"); -static const int E_C2_UNEXPECTED_HASH = HashingUtils::HashString("EC2UnexpectedException"); -static const int INVALID_ZIP_FILE_HASH = HashingUtils::HashString("InvalidZipFileException"); -static const int UNSUPPORTED_MEDIA_TYPE_HASH = HashingUtils::HashString("UnsupportedMediaTypeException"); -static const int E_F_S_MOUNT_FAILURE_HASH = HashingUtils::HashString("EFSMountFailureException"); -static const int K_M_S_DISABLED_HASH = HashingUtils::HashString("KMSDisabledException"); -static const int K_M_S_ACCESS_DENIED_HASH = HashingUtils::HashString("KMSAccessDeniedException"); -static const int E_C2_THROTTLED_HASH = HashingUtils::HashString("EC2ThrottledException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int E_N_I_LIMIT_REACHED_HASH = HashingUtils::HashString("ENILimitReachedException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int SNAP_START_TIMEOUT_HASH = HashingUtils::HashString("SnapStartTimeoutException"); -static const int CODE_STORAGE_EXCEEDED_HASH = HashingUtils::HashString("CodeStorageExceededException"); +static constexpr uint32_t E_F_S_MOUNT_CONNECTIVITY_HASH = ConstExprHashingUtils::HashString("EFSMountConnectivityException"); +static constexpr uint32_t RESOURCE_NOT_READY_HASH = ConstExprHashingUtils::HashString("ResourceNotReadyException"); +static constexpr uint32_t PROVISIONED_CONCURRENCY_CONFIG_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ProvisionedConcurrencyConfigNotFoundException"); +static constexpr uint32_t K_M_S_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("KMSInvalidStateException"); +static constexpr uint32_t RECURSIVE_INVOCATION_HASH = ConstExprHashingUtils::HashString("RecursiveInvocationException"); +static constexpr uint32_t POLICY_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PolicyLengthExceededException"); +static constexpr uint32_t K_M_S_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KMSNotFoundException"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailedException"); +static constexpr uint32_t CODE_VERIFICATION_FAILED_HASH = ConstExprHashingUtils::HashString("CodeVerificationFailedException"); +static constexpr uint32_t SNAP_START_HASH = ConstExprHashingUtils::HashString("SnapStartException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t SUBNET_I_P_ADDRESS_LIMIT_REACHED_HASH = ConstExprHashingUtils::HashString("SubnetIPAddressLimitReachedException"); +static constexpr uint32_t SNAP_START_NOT_READY_HASH = ConstExprHashingUtils::HashString("SnapStartNotReadyException"); +static constexpr uint32_t INVALID_REQUEST_CONTENT_HASH = ConstExprHashingUtils::HashString("InvalidRequestContentException"); +static constexpr uint32_t E_C2_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("EC2AccessDeniedException"); +static constexpr uint32_t REQUEST_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("RequestTooLargeException"); +static constexpr uint32_t INVALID_CODE_SIGNATURE_HASH = ConstExprHashingUtils::HashString("InvalidCodeSignatureException"); +static constexpr uint32_t E_F_S_I_O_HASH = ConstExprHashingUtils::HashString("EFSIOException"); +static constexpr uint32_t INVALID_SECURITY_GROUP_I_D_HASH = ConstExprHashingUtils::HashString("InvalidSecurityGroupIDException"); +static constexpr uint32_t INVALID_SUBNET_I_D_HASH = ConstExprHashingUtils::HashString("InvalidSubnetIDException"); +static constexpr uint32_t CODE_SIGNING_CONFIG_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CodeSigningConfigNotFoundException"); +static constexpr uint32_t E_F_S_MOUNT_TIMEOUT_HASH = ConstExprHashingUtils::HashString("EFSMountTimeoutException"); +static constexpr uint32_t INVALID_RUNTIME_HASH = ConstExprHashingUtils::HashString("InvalidRuntimeException"); +static constexpr uint32_t E_C2_UNEXPECTED_HASH = ConstExprHashingUtils::HashString("EC2UnexpectedException"); +static constexpr uint32_t INVALID_ZIP_FILE_HASH = ConstExprHashingUtils::HashString("InvalidZipFileException"); +static constexpr uint32_t UNSUPPORTED_MEDIA_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedMediaTypeException"); +static constexpr uint32_t E_F_S_MOUNT_FAILURE_HASH = ConstExprHashingUtils::HashString("EFSMountFailureException"); +static constexpr uint32_t K_M_S_DISABLED_HASH = ConstExprHashingUtils::HashString("KMSDisabledException"); +static constexpr uint32_t K_M_S_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("KMSAccessDeniedException"); +static constexpr uint32_t E_C2_THROTTLED_HASH = ConstExprHashingUtils::HashString("EC2ThrottledException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t E_N_I_LIMIT_REACHED_HASH = ConstExprHashingUtils::HashString("ENILimitReachedException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t SNAP_START_TIMEOUT_HASH = ConstExprHashingUtils::HashString("SnapStartTimeoutException"); +static constexpr uint32_t CODE_STORAGE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CodeStorageExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == E_F_S_MOUNT_CONNECTIVITY_HASH) { diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/Architecture.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/Architecture.cpp index 5881efa8e98..30d578a7810 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/Architecture.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/Architecture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArchitectureMapper { - static const int x86_64_HASH = HashingUtils::HashString("x86_64"); - static const int arm64_HASH = HashingUtils::HashString("arm64"); + static constexpr uint32_t x86_64_HASH = ConstExprHashingUtils::HashString("x86_64"); + static constexpr uint32_t arm64_HASH = ConstExprHashingUtils::HashString("arm64"); Architecture GetArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == x86_64_HASH) { return Architecture::x86_64; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/CodeSigningPolicy.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/CodeSigningPolicy.cpp index f8d0917ddfd..9f1da651005 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/CodeSigningPolicy.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/CodeSigningPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CodeSigningPolicyMapper { - static const int Warn_HASH = HashingUtils::HashString("Warn"); - static const int Enforce_HASH = HashingUtils::HashString("Enforce"); + static constexpr uint32_t Warn_HASH = ConstExprHashingUtils::HashString("Warn"); + static constexpr uint32_t Enforce_HASH = ConstExprHashingUtils::HashString("Enforce"); CodeSigningPolicy GetCodeSigningPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Warn_HASH) { return CodeSigningPolicy::Warn; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/EndPointType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/EndPointType.cpp index 76e8d7f0c01..9d103ac48fe 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/EndPointType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/EndPointType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EndPointTypeMapper { - static const int KAFKA_BOOTSTRAP_SERVERS_HASH = HashingUtils::HashString("KAFKA_BOOTSTRAP_SERVERS"); + static constexpr uint32_t KAFKA_BOOTSTRAP_SERVERS_HASH = ConstExprHashingUtils::HashString("KAFKA_BOOTSTRAP_SERVERS"); EndPointType GetEndPointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KAFKA_BOOTSTRAP_SERVERS_HASH) { return EndPointType::KAFKA_BOOTSTRAP_SERVERS; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/EventSourcePosition.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/EventSourcePosition.cpp index 6be1bc74292..85401954c1f 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/EventSourcePosition.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/EventSourcePosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EventSourcePositionMapper { - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); - static const int AT_TIMESTAMP_HASH = HashingUtils::HashString("AT_TIMESTAMP"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); + static constexpr uint32_t AT_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("AT_TIMESTAMP"); EventSourcePosition GetEventSourcePositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRIM_HORIZON_HASH) { return EventSourcePosition::TRIM_HORIZON; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/FullDocument.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/FullDocument.cpp index 78e0dbfa914..3d7ea0f57b5 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/FullDocument.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/FullDocument.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FullDocumentMapper { - static const int UpdateLookup_HASH = HashingUtils::HashString("UpdateLookup"); - static const int Default_HASH = HashingUtils::HashString("Default"); + static constexpr uint32_t UpdateLookup_HASH = ConstExprHashingUtils::HashString("UpdateLookup"); + static constexpr uint32_t Default_HASH = ConstExprHashingUtils::HashString("Default"); FullDocument GetFullDocumentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UpdateLookup_HASH) { return FullDocument::UpdateLookup; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp index c102d0faac9..cd39cea16d3 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FunctionResponseTypeMapper { - static const int ReportBatchItemFailures_HASH = HashingUtils::HashString("ReportBatchItemFailures"); + static constexpr uint32_t ReportBatchItemFailures_HASH = ConstExprHashingUtils::HashString("ReportBatchItemFailures"); FunctionResponseType GetFunctionResponseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ReportBatchItemFailures_HASH) { return FunctionResponseType::ReportBatchItemFailures; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/FunctionUrlAuthType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/FunctionUrlAuthType.cpp index 97d675c7a80..f63d8a36142 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/FunctionUrlAuthType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/FunctionUrlAuthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FunctionUrlAuthTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AWS_IAM_HASH = HashingUtils::HashString("AWS_IAM"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AWS_IAM_HASH = ConstExprHashingUtils::HashString("AWS_IAM"); FunctionUrlAuthType GetFunctionUrlAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return FunctionUrlAuthType::NONE; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/FunctionVersion.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/FunctionVersion.cpp index 6a8a4f8debb..8266d3a1b87 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/FunctionVersion.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/FunctionVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FunctionVersionMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); FunctionVersion GetFunctionVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return FunctionVersion::ALL; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/InvocationType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/InvocationType.cpp index a303755c0e1..f33f6b490df 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/InvocationType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/InvocationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InvocationTypeMapper { - static const int Event_HASH = HashingUtils::HashString("Event"); - static const int RequestResponse_HASH = HashingUtils::HashString("RequestResponse"); - static const int DryRun_HASH = HashingUtils::HashString("DryRun"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); + static constexpr uint32_t RequestResponse_HASH = ConstExprHashingUtils::HashString("RequestResponse"); + static constexpr uint32_t DryRun_HASH = ConstExprHashingUtils::HashString("DryRun"); InvocationType GetInvocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Event_HASH) { return InvocationType::Event; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeMode.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeMode.cpp index 9c32beacd20..ec6ef3276e2 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeMode.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InvokeModeMapper { - static const int BUFFERED_HASH = HashingUtils::HashString("BUFFERED"); - static const int RESPONSE_STREAM_HASH = HashingUtils::HashString("RESPONSE_STREAM"); + static constexpr uint32_t BUFFERED_HASH = ConstExprHashingUtils::HashString("BUFFERED"); + static constexpr uint32_t RESPONSE_STREAM_HASH = ConstExprHashingUtils::HashString("RESPONSE_STREAM"); InvokeMode GetInvokeModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUFFERED_HASH) { return InvokeMode::BUFFERED; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp index 23d75cff1f7..d8c9d37af17 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/InvokeWithResponseStreamHandler.cpp @@ -203,12 +203,12 @@ namespace Model namespace InvokeWithResponseStreamEventMapper { - static const int PAYLOADCHUNK_HASH = Aws::Utils::HashingUtils::HashString("PayloadChunk"); - static const int INVOKECOMPLETE_HASH = Aws::Utils::HashingUtils::HashString("InvokeComplete"); + static constexpr uint32_t PAYLOADCHUNK_HASH = Aws::Utils::ConstExprHashingUtils::HashString("PayloadChunk"); + static constexpr uint32_t INVOKECOMPLETE_HASH = Aws::Utils::ConstExprHashingUtils::HashString("InvokeComplete"); InvokeWithResponseStreamEventType GetInvokeWithResponseStreamEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == PAYLOADCHUNK_HASH) { return InvokeWithResponseStreamEventType::PAYLOADCHUNK; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatus.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatus.cpp index 7ca6113835e..84152e47475 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LastUpdateStatusMapper { - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); LastUpdateStatus GetLastUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Successful_HASH) { return LastUpdateStatus::Successful; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatusReasonCode.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatusReasonCode.cpp index 901fcbf4c2f..15d16563777 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatusReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/LastUpdateStatusReasonCode.cpp @@ -20,32 +20,32 @@ namespace Aws namespace LastUpdateStatusReasonCodeMapper { - static const int EniLimitExceeded_HASH = HashingUtils::HashString("EniLimitExceeded"); - static const int InsufficientRolePermissions_HASH = HashingUtils::HashString("InsufficientRolePermissions"); - static const int InvalidConfiguration_HASH = HashingUtils::HashString("InvalidConfiguration"); - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); - static const int SubnetOutOfIPAddresses_HASH = HashingUtils::HashString("SubnetOutOfIPAddresses"); - static const int InvalidSubnet_HASH = HashingUtils::HashString("InvalidSubnet"); - static const int InvalidSecurityGroup_HASH = HashingUtils::HashString("InvalidSecurityGroup"); - static const int ImageDeleted_HASH = HashingUtils::HashString("ImageDeleted"); - static const int ImageAccessDenied_HASH = HashingUtils::HashString("ImageAccessDenied"); - static const int InvalidImage_HASH = HashingUtils::HashString("InvalidImage"); - static const int KMSKeyAccessDenied_HASH = HashingUtils::HashString("KMSKeyAccessDenied"); - static const int KMSKeyNotFound_HASH = HashingUtils::HashString("KMSKeyNotFound"); - static const int InvalidStateKMSKey_HASH = HashingUtils::HashString("InvalidStateKMSKey"); - static const int DisabledKMSKey_HASH = HashingUtils::HashString("DisabledKMSKey"); - static const int EFSIOError_HASH = HashingUtils::HashString("EFSIOError"); - static const int EFSMountConnectivityError_HASH = HashingUtils::HashString("EFSMountConnectivityError"); - static const int EFSMountFailure_HASH = HashingUtils::HashString("EFSMountFailure"); - static const int EFSMountTimeout_HASH = HashingUtils::HashString("EFSMountTimeout"); - static const int InvalidRuntime_HASH = HashingUtils::HashString("InvalidRuntime"); - static const int InvalidZipFileException_HASH = HashingUtils::HashString("InvalidZipFileException"); - static const int FunctionError_HASH = HashingUtils::HashString("FunctionError"); + static constexpr uint32_t EniLimitExceeded_HASH = ConstExprHashingUtils::HashString("EniLimitExceeded"); + static constexpr uint32_t InsufficientRolePermissions_HASH = ConstExprHashingUtils::HashString("InsufficientRolePermissions"); + static constexpr uint32_t InvalidConfiguration_HASH = ConstExprHashingUtils::HashString("InvalidConfiguration"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); + static constexpr uint32_t SubnetOutOfIPAddresses_HASH = ConstExprHashingUtils::HashString("SubnetOutOfIPAddresses"); + static constexpr uint32_t InvalidSubnet_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); + static constexpr uint32_t InvalidSecurityGroup_HASH = ConstExprHashingUtils::HashString("InvalidSecurityGroup"); + static constexpr uint32_t ImageDeleted_HASH = ConstExprHashingUtils::HashString("ImageDeleted"); + static constexpr uint32_t ImageAccessDenied_HASH = ConstExprHashingUtils::HashString("ImageAccessDenied"); + static constexpr uint32_t InvalidImage_HASH = ConstExprHashingUtils::HashString("InvalidImage"); + static constexpr uint32_t KMSKeyAccessDenied_HASH = ConstExprHashingUtils::HashString("KMSKeyAccessDenied"); + static constexpr uint32_t KMSKeyNotFound_HASH = ConstExprHashingUtils::HashString("KMSKeyNotFound"); + static constexpr uint32_t InvalidStateKMSKey_HASH = ConstExprHashingUtils::HashString("InvalidStateKMSKey"); + static constexpr uint32_t DisabledKMSKey_HASH = ConstExprHashingUtils::HashString("DisabledKMSKey"); + static constexpr uint32_t EFSIOError_HASH = ConstExprHashingUtils::HashString("EFSIOError"); + static constexpr uint32_t EFSMountConnectivityError_HASH = ConstExprHashingUtils::HashString("EFSMountConnectivityError"); + static constexpr uint32_t EFSMountFailure_HASH = ConstExprHashingUtils::HashString("EFSMountFailure"); + static constexpr uint32_t EFSMountTimeout_HASH = ConstExprHashingUtils::HashString("EFSMountTimeout"); + static constexpr uint32_t InvalidRuntime_HASH = ConstExprHashingUtils::HashString("InvalidRuntime"); + static constexpr uint32_t InvalidZipFileException_HASH = ConstExprHashingUtils::HashString("InvalidZipFileException"); + static constexpr uint32_t FunctionError_HASH = ConstExprHashingUtils::HashString("FunctionError"); LastUpdateStatusReasonCode GetLastUpdateStatusReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EniLimitExceeded_HASH) { return LastUpdateStatusReasonCode::EniLimitExceeded; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/LogType.cpp index 5f9c46a5117..8018918fc03 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/LogType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Tail_HASH = HashingUtils::HashString("Tail"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Tail_HASH = ConstExprHashingUtils::HashString("Tail"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return LogType::None; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PackageType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PackageType.cpp index 11cbb28bf43..c44480e658b 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PackageType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/PackageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PackageTypeMapper { - static const int Zip_HASH = HashingUtils::HashString("Zip"); - static const int Image_HASH = HashingUtils::HashString("Image"); + static constexpr uint32_t Zip_HASH = ConstExprHashingUtils::HashString("Zip"); + static constexpr uint32_t Image_HASH = ConstExprHashingUtils::HashString("Image"); PackageType GetPackageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Zip_HASH) { return PackageType::Zip; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/ProvisionedConcurrencyStatusEnum.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/ProvisionedConcurrencyStatusEnum.cpp index b196cf1f83e..218bd302119 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/ProvisionedConcurrencyStatusEnum.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/ProvisionedConcurrencyStatusEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProvisionedConcurrencyStatusEnumMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ProvisionedConcurrencyStatusEnum GetProvisionedConcurrencyStatusEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ProvisionedConcurrencyStatusEnum::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/ResponseStreamingInvocationType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/ResponseStreamingInvocationType.cpp index f594ffe94a4..d2b08022f35 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/ResponseStreamingInvocationType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/ResponseStreamingInvocationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResponseStreamingInvocationTypeMapper { - static const int RequestResponse_HASH = HashingUtils::HashString("RequestResponse"); - static const int DryRun_HASH = HashingUtils::HashString("DryRun"); + static constexpr uint32_t RequestResponse_HASH = ConstExprHashingUtils::HashString("RequestResponse"); + static constexpr uint32_t DryRun_HASH = ConstExprHashingUtils::HashString("DryRun"); ResponseStreamingInvocationType GetResponseStreamingInvocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RequestResponse_HASH) { return ResponseStreamingInvocationType::RequestResponse; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp index c99435dfb78..068a22f1b88 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp @@ -20,43 +20,43 @@ namespace Aws namespace RuntimeMapper { - static const int nodejs_HASH = HashingUtils::HashString("nodejs"); - static const int nodejs4_3_HASH = HashingUtils::HashString("nodejs4.3"); - static const int nodejs6_10_HASH = HashingUtils::HashString("nodejs6.10"); - static const int nodejs8_10_HASH = HashingUtils::HashString("nodejs8.10"); - static const int nodejs10_x_HASH = HashingUtils::HashString("nodejs10.x"); - static const int nodejs12_x_HASH = HashingUtils::HashString("nodejs12.x"); - static const int nodejs14_x_HASH = HashingUtils::HashString("nodejs14.x"); - static const int nodejs16_x_HASH = HashingUtils::HashString("nodejs16.x"); - static const int java8_HASH = HashingUtils::HashString("java8"); - static const int java8_al2_HASH = HashingUtils::HashString("java8.al2"); - static const int java11_HASH = HashingUtils::HashString("java11"); - static const int python2_7_HASH = HashingUtils::HashString("python2.7"); - static const int python3_6_HASH = HashingUtils::HashString("python3.6"); - static const int python3_7_HASH = HashingUtils::HashString("python3.7"); - static const int python3_8_HASH = HashingUtils::HashString("python3.8"); - static const int python3_9_HASH = HashingUtils::HashString("python3.9"); - static const int dotnetcore1_0_HASH = HashingUtils::HashString("dotnetcore1.0"); - static const int dotnetcore2_0_HASH = HashingUtils::HashString("dotnetcore2.0"); - static const int dotnetcore2_1_HASH = HashingUtils::HashString("dotnetcore2.1"); - static const int dotnetcore3_1_HASH = HashingUtils::HashString("dotnetcore3.1"); - static const int dotnet6_HASH = HashingUtils::HashString("dotnet6"); - static const int nodejs4_3_edge_HASH = HashingUtils::HashString("nodejs4.3-edge"); - static const int go1_x_HASH = HashingUtils::HashString("go1.x"); - static const int ruby2_5_HASH = HashingUtils::HashString("ruby2.5"); - static const int ruby2_7_HASH = HashingUtils::HashString("ruby2.7"); - static const int provided_HASH = HashingUtils::HashString("provided"); - static const int provided_al2_HASH = HashingUtils::HashString("provided.al2"); - static const int nodejs18_x_HASH = HashingUtils::HashString("nodejs18.x"); - static const int python3_10_HASH = HashingUtils::HashString("python3.10"); - static const int java17_HASH = HashingUtils::HashString("java17"); - static const int ruby3_2_HASH = HashingUtils::HashString("ruby3.2"); - static const int python3_11_HASH = HashingUtils::HashString("python3.11"); + static constexpr uint32_t nodejs_HASH = ConstExprHashingUtils::HashString("nodejs"); + static constexpr uint32_t nodejs4_3_HASH = ConstExprHashingUtils::HashString("nodejs4.3"); + static constexpr uint32_t nodejs6_10_HASH = ConstExprHashingUtils::HashString("nodejs6.10"); + static constexpr uint32_t nodejs8_10_HASH = ConstExprHashingUtils::HashString("nodejs8.10"); + static constexpr uint32_t nodejs10_x_HASH = ConstExprHashingUtils::HashString("nodejs10.x"); + static constexpr uint32_t nodejs12_x_HASH = ConstExprHashingUtils::HashString("nodejs12.x"); + static constexpr uint32_t nodejs14_x_HASH = ConstExprHashingUtils::HashString("nodejs14.x"); + static constexpr uint32_t nodejs16_x_HASH = ConstExprHashingUtils::HashString("nodejs16.x"); + static constexpr uint32_t java8_HASH = ConstExprHashingUtils::HashString("java8"); + static constexpr uint32_t java8_al2_HASH = ConstExprHashingUtils::HashString("java8.al2"); + static constexpr uint32_t java11_HASH = ConstExprHashingUtils::HashString("java11"); + static constexpr uint32_t python2_7_HASH = ConstExprHashingUtils::HashString("python2.7"); + static constexpr uint32_t python3_6_HASH = ConstExprHashingUtils::HashString("python3.6"); + static constexpr uint32_t python3_7_HASH = ConstExprHashingUtils::HashString("python3.7"); + static constexpr uint32_t python3_8_HASH = ConstExprHashingUtils::HashString("python3.8"); + static constexpr uint32_t python3_9_HASH = ConstExprHashingUtils::HashString("python3.9"); + static constexpr uint32_t dotnetcore1_0_HASH = ConstExprHashingUtils::HashString("dotnetcore1.0"); + static constexpr uint32_t dotnetcore2_0_HASH = ConstExprHashingUtils::HashString("dotnetcore2.0"); + static constexpr uint32_t dotnetcore2_1_HASH = ConstExprHashingUtils::HashString("dotnetcore2.1"); + static constexpr uint32_t dotnetcore3_1_HASH = ConstExprHashingUtils::HashString("dotnetcore3.1"); + static constexpr uint32_t dotnet6_HASH = ConstExprHashingUtils::HashString("dotnet6"); + static constexpr uint32_t nodejs4_3_edge_HASH = ConstExprHashingUtils::HashString("nodejs4.3-edge"); + static constexpr uint32_t go1_x_HASH = ConstExprHashingUtils::HashString("go1.x"); + static constexpr uint32_t ruby2_5_HASH = ConstExprHashingUtils::HashString("ruby2.5"); + static constexpr uint32_t ruby2_7_HASH = ConstExprHashingUtils::HashString("ruby2.7"); + static constexpr uint32_t provided_HASH = ConstExprHashingUtils::HashString("provided"); + static constexpr uint32_t provided_al2_HASH = ConstExprHashingUtils::HashString("provided.al2"); + static constexpr uint32_t nodejs18_x_HASH = ConstExprHashingUtils::HashString("nodejs18.x"); + static constexpr uint32_t python3_10_HASH = ConstExprHashingUtils::HashString("python3.10"); + static constexpr uint32_t java17_HASH = ConstExprHashingUtils::HashString("java17"); + static constexpr uint32_t ruby3_2_HASH = ConstExprHashingUtils::HashString("ruby3.2"); + static constexpr uint32_t python3_11_HASH = ConstExprHashingUtils::HashString("python3.11"); Runtime GetRuntimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == nodejs_HASH) { return Runtime::nodejs; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartApplyOn.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartApplyOn.cpp index 394d5534ed2..83a3cc9786a 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartApplyOn.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartApplyOn.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnapStartApplyOnMapper { - static const int PublishedVersions_HASH = HashingUtils::HashString("PublishedVersions"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t PublishedVersions_HASH = ConstExprHashingUtils::HashString("PublishedVersions"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); SnapStartApplyOn GetSnapStartApplyOnForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PublishedVersions_HASH) { return SnapStartApplyOn::PublishedVersions; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartOptimizationStatus.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartOptimizationStatus.cpp index ac9ff618303..818c82b84c8 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartOptimizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/SnapStartOptimizationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnapStartOptimizationStatusMapper { - static const int On_HASH = HashingUtils::HashString("On"); - static const int Off_HASH = HashingUtils::HashString("Off"); + static constexpr uint32_t On_HASH = ConstExprHashingUtils::HashString("On"); + static constexpr uint32_t Off_HASH = ConstExprHashingUtils::HashString("Off"); SnapStartOptimizationStatus GetSnapStartOptimizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == On_HASH) { return SnapStartOptimizationStatus::On; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp index 236e7d3f242..c82b451b606 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SourceAccessTypeMapper { - static const int BASIC_AUTH_HASH = HashingUtils::HashString("BASIC_AUTH"); - static const int VPC_SUBNET_HASH = HashingUtils::HashString("VPC_SUBNET"); - static const int VPC_SECURITY_GROUP_HASH = HashingUtils::HashString("VPC_SECURITY_GROUP"); - static const int SASL_SCRAM_512_AUTH_HASH = HashingUtils::HashString("SASL_SCRAM_512_AUTH"); - static const int SASL_SCRAM_256_AUTH_HASH = HashingUtils::HashString("SASL_SCRAM_256_AUTH"); - static const int VIRTUAL_HOST_HASH = HashingUtils::HashString("VIRTUAL_HOST"); - static const int CLIENT_CERTIFICATE_TLS_AUTH_HASH = HashingUtils::HashString("CLIENT_CERTIFICATE_TLS_AUTH"); - static const int SERVER_ROOT_CA_CERTIFICATE_HASH = HashingUtils::HashString("SERVER_ROOT_CA_CERTIFICATE"); + static constexpr uint32_t BASIC_AUTH_HASH = ConstExprHashingUtils::HashString("BASIC_AUTH"); + static constexpr uint32_t VPC_SUBNET_HASH = ConstExprHashingUtils::HashString("VPC_SUBNET"); + static constexpr uint32_t VPC_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("VPC_SECURITY_GROUP"); + static constexpr uint32_t SASL_SCRAM_512_AUTH_HASH = ConstExprHashingUtils::HashString("SASL_SCRAM_512_AUTH"); + static constexpr uint32_t SASL_SCRAM_256_AUTH_HASH = ConstExprHashingUtils::HashString("SASL_SCRAM_256_AUTH"); + static constexpr uint32_t VIRTUAL_HOST_HASH = ConstExprHashingUtils::HashString("VIRTUAL_HOST"); + static constexpr uint32_t CLIENT_CERTIFICATE_TLS_AUTH_HASH = ConstExprHashingUtils::HashString("CLIENT_CERTIFICATE_TLS_AUTH"); + static constexpr uint32_t SERVER_ROOT_CA_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("SERVER_ROOT_CA_CERTIFICATE"); SourceAccessType GetSourceAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_AUTH_HASH) { return SourceAccessType::BASIC_AUTH; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/State.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/State.cpp index e7d037675a1..32ceb703e88 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/State.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StateMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return State::Pending; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/StateReasonCode.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/StateReasonCode.cpp index 2960f3e46df..f45dc371c43 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/StateReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/StateReasonCode.cpp @@ -20,35 +20,35 @@ namespace Aws namespace StateReasonCodeMapper { - static const int Idle_HASH = HashingUtils::HashString("Idle"); - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Restoring_HASH = HashingUtils::HashString("Restoring"); - static const int EniLimitExceeded_HASH = HashingUtils::HashString("EniLimitExceeded"); - static const int InsufficientRolePermissions_HASH = HashingUtils::HashString("InsufficientRolePermissions"); - static const int InvalidConfiguration_HASH = HashingUtils::HashString("InvalidConfiguration"); - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); - static const int SubnetOutOfIPAddresses_HASH = HashingUtils::HashString("SubnetOutOfIPAddresses"); - static const int InvalidSubnet_HASH = HashingUtils::HashString("InvalidSubnet"); - static const int InvalidSecurityGroup_HASH = HashingUtils::HashString("InvalidSecurityGroup"); - static const int ImageDeleted_HASH = HashingUtils::HashString("ImageDeleted"); - static const int ImageAccessDenied_HASH = HashingUtils::HashString("ImageAccessDenied"); - static const int InvalidImage_HASH = HashingUtils::HashString("InvalidImage"); - static const int KMSKeyAccessDenied_HASH = HashingUtils::HashString("KMSKeyAccessDenied"); - static const int KMSKeyNotFound_HASH = HashingUtils::HashString("KMSKeyNotFound"); - static const int InvalidStateKMSKey_HASH = HashingUtils::HashString("InvalidStateKMSKey"); - static const int DisabledKMSKey_HASH = HashingUtils::HashString("DisabledKMSKey"); - static const int EFSIOError_HASH = HashingUtils::HashString("EFSIOError"); - static const int EFSMountConnectivityError_HASH = HashingUtils::HashString("EFSMountConnectivityError"); - static const int EFSMountFailure_HASH = HashingUtils::HashString("EFSMountFailure"); - static const int EFSMountTimeout_HASH = HashingUtils::HashString("EFSMountTimeout"); - static const int InvalidRuntime_HASH = HashingUtils::HashString("InvalidRuntime"); - static const int InvalidZipFileException_HASH = HashingUtils::HashString("InvalidZipFileException"); - static const int FunctionError_HASH = HashingUtils::HashString("FunctionError"); + static constexpr uint32_t Idle_HASH = ConstExprHashingUtils::HashString("Idle"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Restoring_HASH = ConstExprHashingUtils::HashString("Restoring"); + static constexpr uint32_t EniLimitExceeded_HASH = ConstExprHashingUtils::HashString("EniLimitExceeded"); + static constexpr uint32_t InsufficientRolePermissions_HASH = ConstExprHashingUtils::HashString("InsufficientRolePermissions"); + static constexpr uint32_t InvalidConfiguration_HASH = ConstExprHashingUtils::HashString("InvalidConfiguration"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); + static constexpr uint32_t SubnetOutOfIPAddresses_HASH = ConstExprHashingUtils::HashString("SubnetOutOfIPAddresses"); + static constexpr uint32_t InvalidSubnet_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); + static constexpr uint32_t InvalidSecurityGroup_HASH = ConstExprHashingUtils::HashString("InvalidSecurityGroup"); + static constexpr uint32_t ImageDeleted_HASH = ConstExprHashingUtils::HashString("ImageDeleted"); + static constexpr uint32_t ImageAccessDenied_HASH = ConstExprHashingUtils::HashString("ImageAccessDenied"); + static constexpr uint32_t InvalidImage_HASH = ConstExprHashingUtils::HashString("InvalidImage"); + static constexpr uint32_t KMSKeyAccessDenied_HASH = ConstExprHashingUtils::HashString("KMSKeyAccessDenied"); + static constexpr uint32_t KMSKeyNotFound_HASH = ConstExprHashingUtils::HashString("KMSKeyNotFound"); + static constexpr uint32_t InvalidStateKMSKey_HASH = ConstExprHashingUtils::HashString("InvalidStateKMSKey"); + static constexpr uint32_t DisabledKMSKey_HASH = ConstExprHashingUtils::HashString("DisabledKMSKey"); + static constexpr uint32_t EFSIOError_HASH = ConstExprHashingUtils::HashString("EFSIOError"); + static constexpr uint32_t EFSMountConnectivityError_HASH = ConstExprHashingUtils::HashString("EFSMountConnectivityError"); + static constexpr uint32_t EFSMountFailure_HASH = ConstExprHashingUtils::HashString("EFSMountFailure"); + static constexpr uint32_t EFSMountTimeout_HASH = ConstExprHashingUtils::HashString("EFSMountTimeout"); + static constexpr uint32_t InvalidRuntime_HASH = ConstExprHashingUtils::HashString("InvalidRuntime"); + static constexpr uint32_t InvalidZipFileException_HASH = ConstExprHashingUtils::HashString("InvalidZipFileException"); + static constexpr uint32_t FunctionError_HASH = ConstExprHashingUtils::HashString("FunctionError"); StateReasonCode GetStateReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Idle_HASH) { return StateReasonCode::Idle; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/ThrottleReason.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/ThrottleReason.cpp index 62b077afaf8..77dfa35ab93 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/ThrottleReason.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/ThrottleReason.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ThrottleReasonMapper { - static const int ConcurrentInvocationLimitExceeded_HASH = HashingUtils::HashString("ConcurrentInvocationLimitExceeded"); - static const int FunctionInvocationRateLimitExceeded_HASH = HashingUtils::HashString("FunctionInvocationRateLimitExceeded"); - static const int ReservedFunctionConcurrentInvocationLimitExceeded_HASH = HashingUtils::HashString("ReservedFunctionConcurrentInvocationLimitExceeded"); - static const int ReservedFunctionInvocationRateLimitExceeded_HASH = HashingUtils::HashString("ReservedFunctionInvocationRateLimitExceeded"); - static const int CallerRateLimitExceeded_HASH = HashingUtils::HashString("CallerRateLimitExceeded"); - static const int ConcurrentSnapshotCreateLimitExceeded_HASH = HashingUtils::HashString("ConcurrentSnapshotCreateLimitExceeded"); + static constexpr uint32_t ConcurrentInvocationLimitExceeded_HASH = ConstExprHashingUtils::HashString("ConcurrentInvocationLimitExceeded"); + static constexpr uint32_t FunctionInvocationRateLimitExceeded_HASH = ConstExprHashingUtils::HashString("FunctionInvocationRateLimitExceeded"); + static constexpr uint32_t ReservedFunctionConcurrentInvocationLimitExceeded_HASH = ConstExprHashingUtils::HashString("ReservedFunctionConcurrentInvocationLimitExceeded"); + static constexpr uint32_t ReservedFunctionInvocationRateLimitExceeded_HASH = ConstExprHashingUtils::HashString("ReservedFunctionInvocationRateLimitExceeded"); + static constexpr uint32_t CallerRateLimitExceeded_HASH = ConstExprHashingUtils::HashString("CallerRateLimitExceeded"); + static constexpr uint32_t ConcurrentSnapshotCreateLimitExceeded_HASH = ConstExprHashingUtils::HashString("ConcurrentSnapshotCreateLimitExceeded"); ThrottleReason GetThrottleReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConcurrentInvocationLimitExceeded_HASH) { return ThrottleReason::ConcurrentInvocationLimitExceeded; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/TracingMode.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/TracingMode.cpp index 552eac18e72..20fb645c6f4 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/TracingMode.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/TracingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TracingModeMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int PassThrough_HASH = HashingUtils::HashString("PassThrough"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t PassThrough_HASH = ConstExprHashingUtils::HashString("PassThrough"); TracingMode GetTracingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return TracingMode::Active; diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/UpdateRuntimeOn.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/UpdateRuntimeOn.cpp index ea087bf4566..62a99408aff 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/UpdateRuntimeOn.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/UpdateRuntimeOn.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UpdateRuntimeOnMapper { - static const int Auto_HASH = HashingUtils::HashString("Auto"); - static const int Manual_HASH = HashingUtils::HashString("Manual"); - static const int FunctionUpdate_HASH = HashingUtils::HashString("FunctionUpdate"); + static constexpr uint32_t Auto_HASH = ConstExprHashingUtils::HashString("Auto"); + static constexpr uint32_t Manual_HASH = ConstExprHashingUtils::HashString("Manual"); + static constexpr uint32_t FunctionUpdate_HASH = ConstExprHashingUtils::HashString("FunctionUpdate"); UpdateRuntimeOn GetUpdateRuntimeOnForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Auto_HASH) { return UpdateRuntimeOn::Auto; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceErrors.cpp b/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceErrors.cpp index 39bfd0f8e69..3811a302a99 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceErrors.cpp @@ -33,17 +33,17 @@ template<> AWS_LEXMODELBUILDINGSERVICE_API ResourceInUseException LexModelBuildi namespace LexModelBuildingServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelStatus.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelStatus.cpp index 0e7bd88a662..af34224e47b 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelStatus.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChannelStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ChannelStatus GetChannelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ChannelStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelType.cpp index 485ce9219d9..73931dcd423 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ChannelType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChannelTypeMapper { - static const int Facebook_HASH = HashingUtils::HashString("Facebook"); - static const int Slack_HASH = HashingUtils::HashString("Slack"); - static const int Twilio_Sms_HASH = HashingUtils::HashString("Twilio-Sms"); - static const int Kik_HASH = HashingUtils::HashString("Kik"); + static constexpr uint32_t Facebook_HASH = ConstExprHashingUtils::HashString("Facebook"); + static constexpr uint32_t Slack_HASH = ConstExprHashingUtils::HashString("Slack"); + static constexpr uint32_t Twilio_Sms_HASH = ConstExprHashingUtils::HashString("Twilio-Sms"); + static constexpr uint32_t Kik_HASH = ConstExprHashingUtils::HashString("Kik"); ChannelType GetChannelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Facebook_HASH) { return ChannelType::Facebook; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ContentType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ContentType.cpp index cd131095bbf..1825509fd79 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ContentType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ContentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ContentTypeMapper { - static const int PlainText_HASH = HashingUtils::HashString("PlainText"); - static const int SSML_HASH = HashingUtils::HashString("SSML"); - static const int CustomPayload_HASH = HashingUtils::HashString("CustomPayload"); + static constexpr uint32_t PlainText_HASH = ConstExprHashingUtils::HashString("PlainText"); + static constexpr uint32_t SSML_HASH = ConstExprHashingUtils::HashString("SSML"); + static constexpr uint32_t CustomPayload_HASH = ConstExprHashingUtils::HashString("CustomPayload"); ContentType GetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PlainText_HASH) { return ContentType::PlainText; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/Destination.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/Destination.cpp index f2073b5f291..10563612ae0 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/Destination.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/Destination.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DestinationMapper { - static const int CLOUDWATCH_LOGS_HASH = HashingUtils::HashString("CLOUDWATCH_LOGS"); - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t CLOUDWATCH_LOGS_HASH = ConstExprHashingUtils::HashString("CLOUDWATCH_LOGS"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); Destination GetDestinationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDWATCH_LOGS_HASH) { return Destination::CLOUDWATCH_LOGS; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ExportStatus.cpp index 8a5fb349f7d..823fbf01a00 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ExportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ExportStatus GetExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ExportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ExportType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ExportType.cpp index 5f21e6b3739..e54078cef8f 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ExportType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ExportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportTypeMapper { - static const int ALEXA_SKILLS_KIT_HASH = HashingUtils::HashString("ALEXA_SKILLS_KIT"); - static const int LEX_HASH = HashingUtils::HashString("LEX"); + static constexpr uint32_t ALEXA_SKILLS_KIT_HASH = ConstExprHashingUtils::HashString("ALEXA_SKILLS_KIT"); + static constexpr uint32_t LEX_HASH = ConstExprHashingUtils::HashString("LEX"); ExportType GetExportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALEXA_SKILLS_KIT_HASH) { return ExportType::ALEXA_SKILLS_KIT; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/FulfillmentActivityType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/FulfillmentActivityType.cpp index 707b92ab6b5..2853596f88c 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/FulfillmentActivityType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/FulfillmentActivityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FulfillmentActivityTypeMapper { - static const int ReturnIntent_HASH = HashingUtils::HashString("ReturnIntent"); - static const int CodeHook_HASH = HashingUtils::HashString("CodeHook"); + static constexpr uint32_t ReturnIntent_HASH = ConstExprHashingUtils::HashString("ReturnIntent"); + static constexpr uint32_t CodeHook_HASH = ConstExprHashingUtils::HashString("CodeHook"); FulfillmentActivityType GetFulfillmentActivityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ReturnIntent_HASH) { return FulfillmentActivityType::ReturnIntent; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ImportStatus.cpp index 9e974efa9ce..fc13251d4e6 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ImportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ImportStatus GetImportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ImportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/Locale.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/Locale.cpp index 68617f90188..7fc8fbfd973 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/Locale.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/Locale.cpp @@ -20,24 +20,24 @@ namespace Aws namespace LocaleMapper { - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int en_IN_HASH = HashingUtils::HashString("en-IN"); - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int es_419_HASH = HashingUtils::HashString("es-419"); - static const int es_ES_HASH = HashingUtils::HashString("es-ES"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t en_IN_HASH = ConstExprHashingUtils::HashString("en-IN"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t es_419_HASH = ConstExprHashingUtils::HashString("es-419"); + static constexpr uint32_t es_ES_HASH = ConstExprHashingUtils::HashString("es-ES"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); Locale GetLocaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == de_DE_HASH) { return Locale::de_DE; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/LogType.cpp index 4667dfeb533..0b086be4294 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/LogType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogTypeMapper { - static const int AUDIO_HASH = HashingUtils::HashString("AUDIO"); - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); + static constexpr uint32_t AUDIO_HASH = ConstExprHashingUtils::HashString("AUDIO"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUDIO_HASH) { return LogType::AUDIO; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/MergeStrategy.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/MergeStrategy.cpp index ad15195eb37..ed1ef1e34f5 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/MergeStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/MergeStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MergeStrategyMapper { - static const int OVERWRITE_LATEST_HASH = HashingUtils::HashString("OVERWRITE_LATEST"); - static const int FAIL_ON_CONFLICT_HASH = HashingUtils::HashString("FAIL_ON_CONFLICT"); + static constexpr uint32_t OVERWRITE_LATEST_HASH = ConstExprHashingUtils::HashString("OVERWRITE_LATEST"); + static constexpr uint32_t FAIL_ON_CONFLICT_HASH = ConstExprHashingUtils::HashString("FAIL_ON_CONFLICT"); MergeStrategy GetMergeStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERWRITE_LATEST_HASH) { return MergeStrategy::OVERWRITE_LATEST; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationAlertType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationAlertType.cpp index 9bb5ed7e479..f827d35c9e3 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationAlertType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationAlertType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MigrationAlertTypeMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int WARN_HASH = HashingUtils::HashString("WARN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t WARN_HASH = ConstExprHashingUtils::HashString("WARN"); MigrationAlertType GetMigrationAlertTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return MigrationAlertType::ERROR_; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationSortAttribute.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationSortAttribute.cpp index 18afb78d52d..e5a0b748f26 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MigrationSortAttributeMapper { - static const int V1_BOT_NAME_HASH = HashingUtils::HashString("V1_BOT_NAME"); - static const int MIGRATION_DATE_TIME_HASH = HashingUtils::HashString("MIGRATION_DATE_TIME"); + static constexpr uint32_t V1_BOT_NAME_HASH = ConstExprHashingUtils::HashString("V1_BOT_NAME"); + static constexpr uint32_t MIGRATION_DATE_TIME_HASH = ConstExprHashingUtils::HashString("MIGRATION_DATE_TIME"); MigrationSortAttribute GetMigrationSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V1_BOT_NAME_HASH) { return MigrationSortAttribute::V1_BOT_NAME; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStatus.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStatus.cpp index 26f68fee9d7..8ea289a1d8c 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MigrationStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); MigrationStatus GetMigrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return MigrationStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStrategy.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStrategy.cpp index 0a5b16b4e0a..5c31ef608c1 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/MigrationStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MigrationStrategyMapper { - static const int CREATE_NEW_HASH = HashingUtils::HashString("CREATE_NEW"); - static const int UPDATE_EXISTING_HASH = HashingUtils::HashString("UPDATE_EXISTING"); + static constexpr uint32_t CREATE_NEW_HASH = ConstExprHashingUtils::HashString("CREATE_NEW"); + static constexpr uint32_t UPDATE_EXISTING_HASH = ConstExprHashingUtils::HashString("UPDATE_EXISTING"); MigrationStrategy GetMigrationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_NEW_HASH) { return MigrationStrategy::CREATE_NEW; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ObfuscationSetting.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ObfuscationSetting.cpp index 23ad347254d..d59d24a34da 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ObfuscationSetting.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ObfuscationSetting.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObfuscationSettingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DEFAULT_OBFUSCATION_HASH = HashingUtils::HashString("DEFAULT_OBFUSCATION"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DEFAULT_OBFUSCATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_OBFUSCATION"); ObfuscationSetting GetObfuscationSettingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ObfuscationSetting::NONE; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ProcessBehavior.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ProcessBehavior.cpp index 3069f4243fd..6bb7a44ae06 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ProcessBehavior.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ProcessBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessBehaviorMapper { - static const int SAVE_HASH = HashingUtils::HashString("SAVE"); - static const int BUILD_HASH = HashingUtils::HashString("BUILD"); + static constexpr uint32_t SAVE_HASH = ConstExprHashingUtils::HashString("SAVE"); + static constexpr uint32_t BUILD_HASH = ConstExprHashingUtils::HashString("BUILD"); ProcessBehavior GetProcessBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAVE_HASH) { return ProcessBehavior::SAVE; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ReferenceType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ReferenceType.cpp index 440ec0b42d8..fc595c177fe 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ReferenceType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ReferenceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReferenceTypeMapper { - static const int Intent_HASH = HashingUtils::HashString("Intent"); - static const int Bot_HASH = HashingUtils::HashString("Bot"); - static const int BotAlias_HASH = HashingUtils::HashString("BotAlias"); - static const int BotChannel_HASH = HashingUtils::HashString("BotChannel"); + static constexpr uint32_t Intent_HASH = ConstExprHashingUtils::HashString("Intent"); + static constexpr uint32_t Bot_HASH = ConstExprHashingUtils::HashString("Bot"); + static constexpr uint32_t BotAlias_HASH = ConstExprHashingUtils::HashString("BotAlias"); + static constexpr uint32_t BotChannel_HASH = ConstExprHashingUtils::HashString("BotChannel"); ReferenceType GetReferenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Intent_HASH) { return ReferenceType::Intent; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/ResourceType.cpp index 24e4dec8090..af85f0c7c26 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/ResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceTypeMapper { - static const int BOT_HASH = HashingUtils::HashString("BOT"); - static const int INTENT_HASH = HashingUtils::HashString("INTENT"); - static const int SLOT_TYPE_HASH = HashingUtils::HashString("SLOT_TYPE"); + static constexpr uint32_t BOT_HASH = ConstExprHashingUtils::HashString("BOT"); + static constexpr uint32_t INTENT_HASH = ConstExprHashingUtils::HashString("INTENT"); + static constexpr uint32_t SLOT_TYPE_HASH = ConstExprHashingUtils::HashString("SLOT_TYPE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BOT_HASH) { return ResourceType::BOT; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/SlotConstraint.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/SlotConstraint.cpp index 986465cedcc..f6d013d7efe 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/SlotConstraint.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/SlotConstraint.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotConstraintMapper { - static const int Required_HASH = HashingUtils::HashString("Required"); - static const int Optional_HASH = HashingUtils::HashString("Optional"); + static constexpr uint32_t Required_HASH = ConstExprHashingUtils::HashString("Required"); + static constexpr uint32_t Optional_HASH = ConstExprHashingUtils::HashString("Optional"); SlotConstraint GetSlotConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Required_HASH) { return SlotConstraint::Required; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/SlotValueSelectionStrategy.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/SlotValueSelectionStrategy.cpp index 78d1b0b9e33..4b215fc4adf 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/SlotValueSelectionStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/SlotValueSelectionStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotValueSelectionStrategyMapper { - static const int ORIGINAL_VALUE_HASH = HashingUtils::HashString("ORIGINAL_VALUE"); - static const int TOP_RESOLUTION_HASH = HashingUtils::HashString("TOP_RESOLUTION"); + static constexpr uint32_t ORIGINAL_VALUE_HASH = ConstExprHashingUtils::HashString("ORIGINAL_VALUE"); + static constexpr uint32_t TOP_RESOLUTION_HASH = ConstExprHashingUtils::HashString("TOP_RESOLUTION"); SlotValueSelectionStrategy GetSlotValueSelectionStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORIGINAL_VALUE_HASH) { return SlotValueSelectionStrategy::ORIGINAL_VALUE; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/SortOrder.cpp index ae3a96aedb9..6f6a441e100 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/Status.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/Status.cpp index 90eb7341535..528db41cefd 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/Status.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatusMapper { - static const int BUILDING_HASH = HashingUtils::HashString("BUILDING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int READY_BASIC_TESTING_HASH = HashingUtils::HashString("READY_BASIC_TESTING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int NOT_BUILT_HASH = HashingUtils::HashString("NOT_BUILT"); + static constexpr uint32_t BUILDING_HASH = ConstExprHashingUtils::HashString("BUILDING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t READY_BASIC_TESTING_HASH = ConstExprHashingUtils::HashString("READY_BASIC_TESTING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_BUILT_HASH = ConstExprHashingUtils::HashString("NOT_BUILT"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUILDING_HASH) { return Status::BUILDING; diff --git a/generated/src/aws-cpp-sdk-lex-models/source/model/StatusType.cpp b/generated/src/aws-cpp-sdk-lex-models/source/model/StatusType.cpp index e43f619fe8d..085772b4b40 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/model/StatusType.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/model/StatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusTypeMapper { - static const int Detected_HASH = HashingUtils::HashString("Detected"); - static const int Missed_HASH = HashingUtils::HashString("Missed"); + static constexpr uint32_t Detected_HASH = ConstExprHashingUtils::HashString("Detected"); + static constexpr uint32_t Missed_HASH = ConstExprHashingUtils::HashString("Missed"); StatusType GetStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Detected_HASH) { return StatusType::Detected; diff --git a/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceErrors.cpp b/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceErrors.cpp index 2ac28e5b204..eb1702338c6 100644 --- a/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceErrors.cpp @@ -26,20 +26,20 @@ template<> AWS_LEXRUNTIMESERVICE_API LimitExceededException LexRuntimeServiceErr namespace LexRuntimeServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int BAD_GATEWAY_HASH = HashingUtils::HashString("BadGatewayException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNSUPPORTED_MEDIA_TYPE_HASH = HashingUtils::HashString("UnsupportedMediaTypeException"); -static const int LOOP_DETECTED_HASH = HashingUtils::HashString("LoopDetectedException"); -static const int DEPENDENCY_FAILED_HASH = HashingUtils::HashString("DependencyFailedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int NOT_ACCEPTABLE_HASH = HashingUtils::HashString("NotAcceptableException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t BAD_GATEWAY_HASH = ConstExprHashingUtils::HashString("BadGatewayException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNSUPPORTED_MEDIA_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedMediaTypeException"); +static constexpr uint32_t LOOP_DETECTED_HASH = ConstExprHashingUtils::HashString("LoopDetectedException"); +static constexpr uint32_t DEPENDENCY_FAILED_HASH = ConstExprHashingUtils::HashString("DependencyFailedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t NOT_ACCEPTABLE_HASH = ConstExprHashingUtils::HashString("NotAcceptableException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lex/source/model/ConfirmationStatus.cpp b/generated/src/aws-cpp-sdk-lex/source/model/ConfirmationStatus.cpp index d775134472f..3adfdfc486a 100644 --- a/generated/src/aws-cpp-sdk-lex/source/model/ConfirmationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/model/ConfirmationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfirmationStatusMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Confirmed_HASH = HashingUtils::HashString("Confirmed"); - static const int Denied_HASH = HashingUtils::HashString("Denied"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Confirmed_HASH = ConstExprHashingUtils::HashString("Confirmed"); + static constexpr uint32_t Denied_HASH = ConstExprHashingUtils::HashString("Denied"); ConfirmationStatus GetConfirmationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return ConfirmationStatus::None; diff --git a/generated/src/aws-cpp-sdk-lex/source/model/ContentType.cpp b/generated/src/aws-cpp-sdk-lex/source/model/ContentType.cpp index 821af83e6b8..1d09e2144a7 100644 --- a/generated/src/aws-cpp-sdk-lex/source/model/ContentType.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/model/ContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentTypeMapper { - static const int application_vnd_amazonaws_card_generic_HASH = HashingUtils::HashString("application/vnd.amazonaws.card.generic"); + static constexpr uint32_t application_vnd_amazonaws_card_generic_HASH = ConstExprHashingUtils::HashString("application/vnd.amazonaws.card.generic"); ContentType GetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == application_vnd_amazonaws_card_generic_HASH) { return ContentType::application_vnd_amazonaws_card_generic; diff --git a/generated/src/aws-cpp-sdk-lex/source/model/DialogActionType.cpp b/generated/src/aws-cpp-sdk-lex/source/model/DialogActionType.cpp index b9a13a4108e..3a96d1742a4 100644 --- a/generated/src/aws-cpp-sdk-lex/source/model/DialogActionType.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/model/DialogActionType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DialogActionTypeMapper { - static const int ElicitIntent_HASH = HashingUtils::HashString("ElicitIntent"); - static const int ConfirmIntent_HASH = HashingUtils::HashString("ConfirmIntent"); - static const int ElicitSlot_HASH = HashingUtils::HashString("ElicitSlot"); - static const int Close_HASH = HashingUtils::HashString("Close"); - static const int Delegate_HASH = HashingUtils::HashString("Delegate"); + static constexpr uint32_t ElicitIntent_HASH = ConstExprHashingUtils::HashString("ElicitIntent"); + static constexpr uint32_t ConfirmIntent_HASH = ConstExprHashingUtils::HashString("ConfirmIntent"); + static constexpr uint32_t ElicitSlot_HASH = ConstExprHashingUtils::HashString("ElicitSlot"); + static constexpr uint32_t Close_HASH = ConstExprHashingUtils::HashString("Close"); + static constexpr uint32_t Delegate_HASH = ConstExprHashingUtils::HashString("Delegate"); DialogActionType GetDialogActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ElicitIntent_HASH) { return DialogActionType::ElicitIntent; diff --git a/generated/src/aws-cpp-sdk-lex/source/model/DialogState.cpp b/generated/src/aws-cpp-sdk-lex/source/model/DialogState.cpp index 1bc313fe15b..f4d8e2432e1 100644 --- a/generated/src/aws-cpp-sdk-lex/source/model/DialogState.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/model/DialogState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DialogStateMapper { - static const int ElicitIntent_HASH = HashingUtils::HashString("ElicitIntent"); - static const int ConfirmIntent_HASH = HashingUtils::HashString("ConfirmIntent"); - static const int ElicitSlot_HASH = HashingUtils::HashString("ElicitSlot"); - static const int Fulfilled_HASH = HashingUtils::HashString("Fulfilled"); - static const int ReadyForFulfillment_HASH = HashingUtils::HashString("ReadyForFulfillment"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t ElicitIntent_HASH = ConstExprHashingUtils::HashString("ElicitIntent"); + static constexpr uint32_t ConfirmIntent_HASH = ConstExprHashingUtils::HashString("ConfirmIntent"); + static constexpr uint32_t ElicitSlot_HASH = ConstExprHashingUtils::HashString("ElicitSlot"); + static constexpr uint32_t Fulfilled_HASH = ConstExprHashingUtils::HashString("Fulfilled"); + static constexpr uint32_t ReadyForFulfillment_HASH = ConstExprHashingUtils::HashString("ReadyForFulfillment"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DialogState GetDialogStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ElicitIntent_HASH) { return DialogState::ElicitIntent; diff --git a/generated/src/aws-cpp-sdk-lex/source/model/FulfillmentState.cpp b/generated/src/aws-cpp-sdk-lex/source/model/FulfillmentState.cpp index 844ad37986f..ad4ebf2617a 100644 --- a/generated/src/aws-cpp-sdk-lex/source/model/FulfillmentState.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/model/FulfillmentState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FulfillmentStateMapper { - static const int Fulfilled_HASH = HashingUtils::HashString("Fulfilled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int ReadyForFulfillment_HASH = HashingUtils::HashString("ReadyForFulfillment"); + static constexpr uint32_t Fulfilled_HASH = ConstExprHashingUtils::HashString("Fulfilled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t ReadyForFulfillment_HASH = ConstExprHashingUtils::HashString("ReadyForFulfillment"); FulfillmentState GetFulfillmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Fulfilled_HASH) { return FulfillmentState::Fulfilled; diff --git a/generated/src/aws-cpp-sdk-lex/source/model/MessageFormatType.cpp b/generated/src/aws-cpp-sdk-lex/source/model/MessageFormatType.cpp index 8c42a743e95..6dba797a295 100644 --- a/generated/src/aws-cpp-sdk-lex/source/model/MessageFormatType.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/model/MessageFormatType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MessageFormatTypeMapper { - static const int PlainText_HASH = HashingUtils::HashString("PlainText"); - static const int CustomPayload_HASH = HashingUtils::HashString("CustomPayload"); - static const int SSML_HASH = HashingUtils::HashString("SSML"); - static const int Composite_HASH = HashingUtils::HashString("Composite"); + static constexpr uint32_t PlainText_HASH = ConstExprHashingUtils::HashString("PlainText"); + static constexpr uint32_t CustomPayload_HASH = ConstExprHashingUtils::HashString("CustomPayload"); + static constexpr uint32_t SSML_HASH = ConstExprHashingUtils::HashString("SSML"); + static constexpr uint32_t Composite_HASH = ConstExprHashingUtils::HashString("Composite"); MessageFormatType GetMessageFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PlainText_HASH) { return MessageFormatType::PlainText; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Errors.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Errors.cpp index 0b9ff14e9d0..7446e8308a3 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Errors.cpp @@ -26,15 +26,15 @@ template<> AWS_LEXMODELSV2_API ThrottlingException LexModelsV2Error::GetModeledE namespace LexModelsV2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterName.cpp index f8ea1f3cb4d..473bcfcb57d 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AggregatedUtterancesFilterNameMapper { - static const int Utterance_HASH = HashingUtils::HashString("Utterance"); + static constexpr uint32_t Utterance_HASH = ConstExprHashingUtils::HashString("Utterance"); AggregatedUtterancesFilterName GetAggregatedUtterancesFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Utterance_HASH) { return AggregatedUtterancesFilterName::Utterance; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterOperator.cpp index f1a58b8582e..770cd0efa4d 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AggregatedUtterancesFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); AggregatedUtterancesFilterOperator GetAggregatedUtterancesFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return AggregatedUtterancesFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesSortAttribute.cpp index ff6cdcf255e..f0de254c943 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AggregatedUtterancesSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AggregatedUtterancesSortAttributeMapper { - static const int HitCount_HASH = HashingUtils::HashString("HitCount"); - static const int MissedCount_HASH = HashingUtils::HashString("MissedCount"); + static constexpr uint32_t HitCount_HASH = ConstExprHashingUtils::HashString("HitCount"); + static constexpr uint32_t MissedCount_HASH = ConstExprHashingUtils::HashString("MissedCount"); AggregatedUtterancesSortAttribute GetAggregatedUtterancesSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HitCount_HASH) { return AggregatedUtterancesSortAttribute::HitCount; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsBinByName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsBinByName.cpp index ce65b830e31..fa7ada6c6c6 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsBinByName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsBinByName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsBinByNameMapper { - static const int ConversationStartTime_HASH = HashingUtils::HashString("ConversationStartTime"); - static const int UtteranceTimestamp_HASH = HashingUtils::HashString("UtteranceTimestamp"); + static constexpr uint32_t ConversationStartTime_HASH = ConstExprHashingUtils::HashString("ConversationStartTime"); + static constexpr uint32_t UtteranceTimestamp_HASH = ConstExprHashingUtils::HashString("UtteranceTimestamp"); AnalyticsBinByName GetAnalyticsBinByNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConversationStartTime_HASH) { return AnalyticsBinByName::ConversationStartTime; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsCommonFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsCommonFilterName.cpp index bce86581da0..7b23db300b0 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsCommonFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsCommonFilterName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AnalyticsCommonFilterNameMapper { - static const int BotAliasId_HASH = HashingUtils::HashString("BotAliasId"); - static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); - static const int LocaleId_HASH = HashingUtils::HashString("LocaleId"); - static const int Modality_HASH = HashingUtils::HashString("Modality"); - static const int Channel_HASH = HashingUtils::HashString("Channel"); + static constexpr uint32_t BotAliasId_HASH = ConstExprHashingUtils::HashString("BotAliasId"); + static constexpr uint32_t BotVersion_HASH = ConstExprHashingUtils::HashString("BotVersion"); + static constexpr uint32_t LocaleId_HASH = ConstExprHashingUtils::HashString("LocaleId"); + static constexpr uint32_t Modality_HASH = ConstExprHashingUtils::HashString("Modality"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); AnalyticsCommonFilterName GetAnalyticsCommonFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotAliasId_HASH) { return AnalyticsCommonFilterName::BotAliasId; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsFilterOperator.cpp index b0b14bd9ae0..01afc1999db 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsFilterOperator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalyticsFilterOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int LT_HASH = HashingUtils::HashString("LT"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); AnalyticsFilterOperator GetAnalyticsFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return AnalyticsFilterOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentField.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentField.cpp index 5df0f5eaf2e..ab9fb73f76f 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentField.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentField.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalyticsIntentFieldMapper { - static const int IntentName_HASH = HashingUtils::HashString("IntentName"); - static const int IntentEndState_HASH = HashingUtils::HashString("IntentEndState"); - static const int IntentLevel_HASH = HashingUtils::HashString("IntentLevel"); + static constexpr uint32_t IntentName_HASH = ConstExprHashingUtils::HashString("IntentName"); + static constexpr uint32_t IntentEndState_HASH = ConstExprHashingUtils::HashString("IntentEndState"); + static constexpr uint32_t IntentLevel_HASH = ConstExprHashingUtils::HashString("IntentLevel"); AnalyticsIntentField GetAnalyticsIntentFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IntentName_HASH) { return AnalyticsIntentField::IntentName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentFilterName.cpp index 010f312f3a6..bf2014a9d96 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentFilterName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AnalyticsIntentFilterNameMapper { - static const int BotAliasId_HASH = HashingUtils::HashString("BotAliasId"); - static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); - static const int LocaleId_HASH = HashingUtils::HashString("LocaleId"); - static const int Modality_HASH = HashingUtils::HashString("Modality"); - static const int Channel_HASH = HashingUtils::HashString("Channel"); - static const int SessionId_HASH = HashingUtils::HashString("SessionId"); - static const int OriginatingRequestId_HASH = HashingUtils::HashString("OriginatingRequestId"); - static const int IntentName_HASH = HashingUtils::HashString("IntentName"); - static const int IntentEndState_HASH = HashingUtils::HashString("IntentEndState"); + static constexpr uint32_t BotAliasId_HASH = ConstExprHashingUtils::HashString("BotAliasId"); + static constexpr uint32_t BotVersion_HASH = ConstExprHashingUtils::HashString("BotVersion"); + static constexpr uint32_t LocaleId_HASH = ConstExprHashingUtils::HashString("LocaleId"); + static constexpr uint32_t Modality_HASH = ConstExprHashingUtils::HashString("Modality"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); + static constexpr uint32_t SessionId_HASH = ConstExprHashingUtils::HashString("SessionId"); + static constexpr uint32_t OriginatingRequestId_HASH = ConstExprHashingUtils::HashString("OriginatingRequestId"); + static constexpr uint32_t IntentName_HASH = ConstExprHashingUtils::HashString("IntentName"); + static constexpr uint32_t IntentEndState_HASH = ConstExprHashingUtils::HashString("IntentEndState"); AnalyticsIntentFilterName GetAnalyticsIntentFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotAliasId_HASH) { return AnalyticsIntentFilterName::BotAliasId; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentMetricName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentMetricName.cpp index b249648ed30..ed51975d064 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentMetricName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AnalyticsIntentMetricNameMapper { - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failure_HASH = HashingUtils::HashString("Failure"); - static const int Switched_HASH = HashingUtils::HashString("Switched"); - static const int Dropped_HASH = HashingUtils::HashString("Dropped"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failure_HASH = ConstExprHashingUtils::HashString("Failure"); + static constexpr uint32_t Switched_HASH = ConstExprHashingUtils::HashString("Switched"); + static constexpr uint32_t Dropped_HASH = ConstExprHashingUtils::HashString("Dropped"); AnalyticsIntentMetricName GetAnalyticsIntentMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Count_HASH) { return AnalyticsIntentMetricName::Count; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageField.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageField.cpp index 7ea6688e97a..ed3137feb84 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageField.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageField.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsIntentStageFieldMapper { - static const int IntentStageName_HASH = HashingUtils::HashString("IntentStageName"); - static const int SwitchedToIntent_HASH = HashingUtils::HashString("SwitchedToIntent"); + static constexpr uint32_t IntentStageName_HASH = ConstExprHashingUtils::HashString("IntentStageName"); + static constexpr uint32_t SwitchedToIntent_HASH = ConstExprHashingUtils::HashString("SwitchedToIntent"); AnalyticsIntentStageField GetAnalyticsIntentStageFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IntentStageName_HASH) { return AnalyticsIntentStageField::IntentStageName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageFilterName.cpp index 68dafce639e..d629b45df0d 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageFilterName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AnalyticsIntentStageFilterNameMapper { - static const int BotAliasId_HASH = HashingUtils::HashString("BotAliasId"); - static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); - static const int LocaleId_HASH = HashingUtils::HashString("LocaleId"); - static const int Modality_HASH = HashingUtils::HashString("Modality"); - static const int Channel_HASH = HashingUtils::HashString("Channel"); - static const int SessionId_HASH = HashingUtils::HashString("SessionId"); - static const int OriginatingRequestId_HASH = HashingUtils::HashString("OriginatingRequestId"); - static const int IntentName_HASH = HashingUtils::HashString("IntentName"); - static const int IntentStageName_HASH = HashingUtils::HashString("IntentStageName"); + static constexpr uint32_t BotAliasId_HASH = ConstExprHashingUtils::HashString("BotAliasId"); + static constexpr uint32_t BotVersion_HASH = ConstExprHashingUtils::HashString("BotVersion"); + static constexpr uint32_t LocaleId_HASH = ConstExprHashingUtils::HashString("LocaleId"); + static constexpr uint32_t Modality_HASH = ConstExprHashingUtils::HashString("Modality"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); + static constexpr uint32_t SessionId_HASH = ConstExprHashingUtils::HashString("SessionId"); + static constexpr uint32_t OriginatingRequestId_HASH = ConstExprHashingUtils::HashString("OriginatingRequestId"); + static constexpr uint32_t IntentName_HASH = ConstExprHashingUtils::HashString("IntentName"); + static constexpr uint32_t IntentStageName_HASH = ConstExprHashingUtils::HashString("IntentStageName"); AnalyticsIntentStageFilterName GetAnalyticsIntentStageFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotAliasId_HASH) { return AnalyticsIntentStageFilterName::BotAliasId; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageMetricName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageMetricName.cpp index 3807bf4121d..f14096071af 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsIntentStageMetricName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AnalyticsIntentStageMetricNameMapper { - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Dropped_HASH = HashingUtils::HashString("Dropped"); - static const int Retry_HASH = HashingUtils::HashString("Retry"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Dropped_HASH = ConstExprHashingUtils::HashString("Dropped"); + static constexpr uint32_t Retry_HASH = ConstExprHashingUtils::HashString("Retry"); AnalyticsIntentStageMetricName GetAnalyticsIntentStageMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Count_HASH) { return AnalyticsIntentStageMetricName::Count; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsInterval.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsInterval.cpp index a85ac7f0c70..c727b679f42 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsInterval.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsInterval.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsIntervalMapper { - static const int OneHour_HASH = HashingUtils::HashString("OneHour"); - static const int OneDay_HASH = HashingUtils::HashString("OneDay"); + static constexpr uint32_t OneHour_HASH = ConstExprHashingUtils::HashString("OneHour"); + static constexpr uint32_t OneDay_HASH = ConstExprHashingUtils::HashString("OneDay"); AnalyticsInterval GetAnalyticsIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OneHour_HASH) { return AnalyticsInterval::OneHour; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsMetricStatistic.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsMetricStatistic.cpp index c5fde5d8d1b..291fd8e583c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsMetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsMetricStatistic.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalyticsMetricStatisticMapper { - static const int Sum_HASH = HashingUtils::HashString("Sum"); - static const int Avg_HASH = HashingUtils::HashString("Avg"); - static const int Max_HASH = HashingUtils::HashString("Max"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); + static constexpr uint32_t Avg_HASH = ConstExprHashingUtils::HashString("Avg"); + static constexpr uint32_t Max_HASH = ConstExprHashingUtils::HashString("Max"); AnalyticsMetricStatistic GetAnalyticsMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sum_HASH) { return AnalyticsMetricStatistic::Sum; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsModality.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsModality.cpp index 2a47f3c2286..57f297caf2f 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsModality.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsModality.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AnalyticsModalityMapper { - static const int Speech_HASH = HashingUtils::HashString("Speech"); - static const int Text_HASH = HashingUtils::HashString("Text"); - static const int DTMF_HASH = HashingUtils::HashString("DTMF"); - static const int MultiMode_HASH = HashingUtils::HashString("MultiMode"); + static constexpr uint32_t Speech_HASH = ConstExprHashingUtils::HashString("Speech"); + static constexpr uint32_t Text_HASH = ConstExprHashingUtils::HashString("Text"); + static constexpr uint32_t DTMF_HASH = ConstExprHashingUtils::HashString("DTMF"); + static constexpr uint32_t MultiMode_HASH = ConstExprHashingUtils::HashString("MultiMode"); AnalyticsModality GetAnalyticsModalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Speech_HASH) { return AnalyticsModality::Speech; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsNodeType.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsNodeType.cpp index fe9eb7a682b..d8726ffe4c9 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsNodeType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsNodeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsNodeTypeMapper { - static const int Inner_HASH = HashingUtils::HashString("Inner"); - static const int Exit_HASH = HashingUtils::HashString("Exit"); + static constexpr uint32_t Inner_HASH = ConstExprHashingUtils::HashString("Inner"); + static constexpr uint32_t Exit_HASH = ConstExprHashingUtils::HashString("Exit"); AnalyticsNodeType GetAnalyticsNodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Inner_HASH) { return AnalyticsNodeType::Inner; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionField.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionField.cpp index e5adda18817..4f9055ef2de 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionField.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionField.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsSessionFieldMapper { - static const int ConversationEndState_HASH = HashingUtils::HashString("ConversationEndState"); - static const int LocaleId_HASH = HashingUtils::HashString("LocaleId"); + static constexpr uint32_t ConversationEndState_HASH = ConstExprHashingUtils::HashString("ConversationEndState"); + static constexpr uint32_t LocaleId_HASH = ConstExprHashingUtils::HashString("LocaleId"); AnalyticsSessionField GetAnalyticsSessionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConversationEndState_HASH) { return AnalyticsSessionField::ConversationEndState; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionFilterName.cpp index f16a769fad8..e9de4bcb82a 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionFilterName.cpp @@ -20,21 +20,21 @@ namespace Aws namespace AnalyticsSessionFilterNameMapper { - static const int BotAliasId_HASH = HashingUtils::HashString("BotAliasId"); - static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); - static const int LocaleId_HASH = HashingUtils::HashString("LocaleId"); - static const int Modality_HASH = HashingUtils::HashString("Modality"); - static const int Channel_HASH = HashingUtils::HashString("Channel"); - static const int Duration_HASH = HashingUtils::HashString("Duration"); - static const int ConversationEndState_HASH = HashingUtils::HashString("ConversationEndState"); - static const int SessionId_HASH = HashingUtils::HashString("SessionId"); - static const int OriginatingRequestId_HASH = HashingUtils::HashString("OriginatingRequestId"); - static const int IntentPath_HASH = HashingUtils::HashString("IntentPath"); + static constexpr uint32_t BotAliasId_HASH = ConstExprHashingUtils::HashString("BotAliasId"); + static constexpr uint32_t BotVersion_HASH = ConstExprHashingUtils::HashString("BotVersion"); + static constexpr uint32_t LocaleId_HASH = ConstExprHashingUtils::HashString("LocaleId"); + static constexpr uint32_t Modality_HASH = ConstExprHashingUtils::HashString("Modality"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); + static constexpr uint32_t Duration_HASH = ConstExprHashingUtils::HashString("Duration"); + static constexpr uint32_t ConversationEndState_HASH = ConstExprHashingUtils::HashString("ConversationEndState"); + static constexpr uint32_t SessionId_HASH = ConstExprHashingUtils::HashString("SessionId"); + static constexpr uint32_t OriginatingRequestId_HASH = ConstExprHashingUtils::HashString("OriginatingRequestId"); + static constexpr uint32_t IntentPath_HASH = ConstExprHashingUtils::HashString("IntentPath"); AnalyticsSessionFilterName GetAnalyticsSessionFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotAliasId_HASH) { return AnalyticsSessionFilterName::BotAliasId; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionMetricName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionMetricName.cpp index 2f46bb584fe..469dd93c5c1 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionMetricName.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AnalyticsSessionMetricNameMapper { - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failure_HASH = HashingUtils::HashString("Failure"); - static const int Dropped_HASH = HashingUtils::HashString("Dropped"); - static const int Duration_HASH = HashingUtils::HashString("Duration"); - static const int TurnsPerConversation_HASH = HashingUtils::HashString("TurnsPerConversation"); - static const int Concurrency_HASH = HashingUtils::HashString("Concurrency"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failure_HASH = ConstExprHashingUtils::HashString("Failure"); + static constexpr uint32_t Dropped_HASH = ConstExprHashingUtils::HashString("Dropped"); + static constexpr uint32_t Duration_HASH = ConstExprHashingUtils::HashString("Duration"); + static constexpr uint32_t TurnsPerConversation_HASH = ConstExprHashingUtils::HashString("TurnsPerConversation"); + static constexpr uint32_t Concurrency_HASH = ConstExprHashingUtils::HashString("Concurrency"); AnalyticsSessionMetricName GetAnalyticsSessionMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Count_HASH) { return AnalyticsSessionMetricName::Count; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionSortByName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionSortByName.cpp index ea57720e858..04733a8763a 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionSortByName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSessionSortByName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalyticsSessionSortByNameMapper { - static const int ConversationStartTime_HASH = HashingUtils::HashString("ConversationStartTime"); - static const int NumberOfTurns_HASH = HashingUtils::HashString("NumberOfTurns"); - static const int Duration_HASH = HashingUtils::HashString("Duration"); + static constexpr uint32_t ConversationStartTime_HASH = ConstExprHashingUtils::HashString("ConversationStartTime"); + static constexpr uint32_t NumberOfTurns_HASH = ConstExprHashingUtils::HashString("NumberOfTurns"); + static constexpr uint32_t Duration_HASH = ConstExprHashingUtils::HashString("Duration"); AnalyticsSessionSortByName GetAnalyticsSessionSortByNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConversationStartTime_HASH) { return AnalyticsSessionSortByName::ConversationStartTime; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSortOrder.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSortOrder.cpp index c8e5c755044..8c94c5a93c2 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); AnalyticsSortOrder GetAnalyticsSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return AnalyticsSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceAttributeName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceAttributeName.cpp index f6656b1da23..fdb12b1d4b6 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnalyticsUtteranceAttributeNameMapper { - static const int LastUsedIntent_HASH = HashingUtils::HashString("LastUsedIntent"); + static constexpr uint32_t LastUsedIntent_HASH = ConstExprHashingUtils::HashString("LastUsedIntent"); AnalyticsUtteranceAttributeName GetAnalyticsUtteranceAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LastUsedIntent_HASH) { return AnalyticsUtteranceAttributeName::LastUsedIntent; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceField.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceField.cpp index 20bc2e4d3e9..91a53fb2fcc 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceField.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceField.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnalyticsUtteranceFieldMapper { - static const int UtteranceText_HASH = HashingUtils::HashString("UtteranceText"); - static const int UtteranceState_HASH = HashingUtils::HashString("UtteranceState"); + static constexpr uint32_t UtteranceText_HASH = ConstExprHashingUtils::HashString("UtteranceText"); + static constexpr uint32_t UtteranceState_HASH = ConstExprHashingUtils::HashString("UtteranceState"); AnalyticsUtteranceField GetAnalyticsUtteranceFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UtteranceText_HASH) { return AnalyticsUtteranceField::UtteranceText; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceFilterName.cpp index 4ae2d9bb135..ea4bcd91224 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceFilterName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AnalyticsUtteranceFilterNameMapper { - static const int BotAliasId_HASH = HashingUtils::HashString("BotAliasId"); - static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); - static const int LocaleId_HASH = HashingUtils::HashString("LocaleId"); - static const int Modality_HASH = HashingUtils::HashString("Modality"); - static const int Channel_HASH = HashingUtils::HashString("Channel"); - static const int SessionId_HASH = HashingUtils::HashString("SessionId"); - static const int OriginatingRequestId_HASH = HashingUtils::HashString("OriginatingRequestId"); - static const int UtteranceState_HASH = HashingUtils::HashString("UtteranceState"); - static const int UtteranceText_HASH = HashingUtils::HashString("UtteranceText"); + static constexpr uint32_t BotAliasId_HASH = ConstExprHashingUtils::HashString("BotAliasId"); + static constexpr uint32_t BotVersion_HASH = ConstExprHashingUtils::HashString("BotVersion"); + static constexpr uint32_t LocaleId_HASH = ConstExprHashingUtils::HashString("LocaleId"); + static constexpr uint32_t Modality_HASH = ConstExprHashingUtils::HashString("Modality"); + static constexpr uint32_t Channel_HASH = ConstExprHashingUtils::HashString("Channel"); + static constexpr uint32_t SessionId_HASH = ConstExprHashingUtils::HashString("SessionId"); + static constexpr uint32_t OriginatingRequestId_HASH = ConstExprHashingUtils::HashString("OriginatingRequestId"); + static constexpr uint32_t UtteranceState_HASH = ConstExprHashingUtils::HashString("UtteranceState"); + static constexpr uint32_t UtteranceText_HASH = ConstExprHashingUtils::HashString("UtteranceText"); AnalyticsUtteranceFilterName GetAnalyticsUtteranceFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotAliasId_HASH) { return AnalyticsUtteranceFilterName::BotAliasId; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceMetricName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceMetricName.cpp index 4ce86e7338b..8d6e163c024 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceMetricName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AnalyticsUtteranceMetricNameMapper { - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Missed_HASH = HashingUtils::HashString("Missed"); - static const int Detected_HASH = HashingUtils::HashString("Detected"); - static const int UtteranceTimestamp_HASH = HashingUtils::HashString("UtteranceTimestamp"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Missed_HASH = ConstExprHashingUtils::HashString("Missed"); + static constexpr uint32_t Detected_HASH = ConstExprHashingUtils::HashString("Detected"); + static constexpr uint32_t UtteranceTimestamp_HASH = ConstExprHashingUtils::HashString("UtteranceTimestamp"); AnalyticsUtteranceMetricName GetAnalyticsUtteranceMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Count_HASH) { return AnalyticsUtteranceMetricName::Count; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceSortByName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceSortByName.cpp index 4e092538400..a9951aebf5c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceSortByName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AnalyticsUtteranceSortByName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnalyticsUtteranceSortByNameMapper { - static const int UtteranceTimestamp_HASH = HashingUtils::HashString("UtteranceTimestamp"); + static constexpr uint32_t UtteranceTimestamp_HASH = ConstExprHashingUtils::HashString("UtteranceTimestamp"); AnalyticsUtteranceSortByName GetAnalyticsUtteranceSortByNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UtteranceTimestamp_HASH) { return AnalyticsUtteranceSortByName::UtteranceTimestamp; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AssociatedTranscriptFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AssociatedTranscriptFilterName.cpp index 67f4cff00dd..0f45aab2514 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AssociatedTranscriptFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AssociatedTranscriptFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssociatedTranscriptFilterNameMapper { - static const int IntentId_HASH = HashingUtils::HashString("IntentId"); - static const int SlotTypeId_HASH = HashingUtils::HashString("SlotTypeId"); + static constexpr uint32_t IntentId_HASH = ConstExprHashingUtils::HashString("IntentId"); + static constexpr uint32_t SlotTypeId_HASH = ConstExprHashingUtils::HashString("SlotTypeId"); AssociatedTranscriptFilterName GetAssociatedTranscriptFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IntentId_HASH) { return AssociatedTranscriptFilterName::IntentId; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AudioRecognitionStrategy.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AudioRecognitionStrategy.cpp index 0b06e260997..d79f6659f61 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/AudioRecognitionStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/AudioRecognitionStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AudioRecognitionStrategyMapper { - static const int UseSlotValuesAsCustomVocabulary_HASH = HashingUtils::HashString("UseSlotValuesAsCustomVocabulary"); + static constexpr uint32_t UseSlotValuesAsCustomVocabulary_HASH = ConstExprHashingUtils::HashString("UseSlotValuesAsCustomVocabulary"); AudioRecognitionStrategy GetAudioRecognitionStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UseSlotValuesAsCustomVocabulary_HASH) { return AudioRecognitionStrategy::UseSlotValuesAsCustomVocabulary; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasStatus.cpp index 9fa04362b24..5337eeb18fd 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotAliasStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BotAliasStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); BotAliasStatus GetBotAliasStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return BotAliasStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterName.cpp index 2dad50b02ef..86afcb01e48 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BotFilterNameMapper { - static const int BotName_HASH = HashingUtils::HashString("BotName"); - static const int BotType_HASH = HashingUtils::HashString("BotType"); + static constexpr uint32_t BotName_HASH = ConstExprHashingUtils::HashString("BotName"); + static constexpr uint32_t BotType_HASH = ConstExprHashingUtils::HashString("BotType"); BotFilterName GetBotFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotName_HASH) { return BotFilterName::BotName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterOperator.cpp index 4e354c3eb04..5a99c125b77 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotFilterOperator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BotFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); BotFilterOperator GetBotFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return BotFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterName.cpp index 1722facb08b..699bab11138 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BotLocaleFilterNameMapper { - static const int BotLocaleName_HASH = HashingUtils::HashString("BotLocaleName"); + static constexpr uint32_t BotLocaleName_HASH = ConstExprHashingUtils::HashString("BotLocaleName"); BotLocaleFilterName GetBotLocaleFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotLocaleName_HASH) { return BotLocaleFilterName::BotLocaleName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterOperator.cpp index 5e6c8d30332..86d46bb094a 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BotLocaleFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); BotLocaleFilterOperator GetBotLocaleFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return BotLocaleFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleSortAttribute.cpp index cf8b28bb8ec..1e69878d672 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BotLocaleSortAttributeMapper { - static const int BotLocaleName_HASH = HashingUtils::HashString("BotLocaleName"); + static constexpr uint32_t BotLocaleName_HASH = ConstExprHashingUtils::HashString("BotLocaleName"); BotLocaleSortAttribute GetBotLocaleSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotLocaleName_HASH) { return BotLocaleSortAttribute::BotLocaleName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleStatus.cpp index 011ccff8506..0f55af6c5f2 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotLocaleStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace BotLocaleStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Building_HASH = HashingUtils::HashString("Building"); - static const int Built_HASH = HashingUtils::HashString("Built"); - static const int ReadyExpressTesting_HASH = HashingUtils::HashString("ReadyExpressTesting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int NotBuilt_HASH = HashingUtils::HashString("NotBuilt"); - static const int Importing_HASH = HashingUtils::HashString("Importing"); - static const int Processing_HASH = HashingUtils::HashString("Processing"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Building_HASH = ConstExprHashingUtils::HashString("Building"); + static constexpr uint32_t Built_HASH = ConstExprHashingUtils::HashString("Built"); + static constexpr uint32_t ReadyExpressTesting_HASH = ConstExprHashingUtils::HashString("ReadyExpressTesting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t NotBuilt_HASH = ConstExprHashingUtils::HashString("NotBuilt"); + static constexpr uint32_t Importing_HASH = ConstExprHashingUtils::HashString("Importing"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); BotLocaleStatus GetBotLocaleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return BotLocaleStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotRecommendationStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotRecommendationStatus.cpp index 3d8b24075a4..03254412165 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotRecommendationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotRecommendationStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace BotRecommendationStatusMapper { - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Downloading_HASH = HashingUtils::HashString("Downloading"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Downloading_HASH = ConstExprHashingUtils::HashString("Downloading"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); BotRecommendationStatus GetBotRecommendationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Processing_HASH) { return BotRecommendationStatus::Processing; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotSortAttribute.cpp index 915f6f13fcb..215878b01fe 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BotSortAttributeMapper { - static const int BotName_HASH = HashingUtils::HashString("BotName"); + static constexpr uint32_t BotName_HASH = ConstExprHashingUtils::HashString("BotName"); BotSortAttribute GetBotSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotName_HASH) { return BotSortAttribute::BotName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotStatus.cpp index 8f1aa64896f..467cc085237 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace BotStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Versioning_HASH = HashingUtils::HashString("Versioning"); - static const int Importing_HASH = HashingUtils::HashString("Importing"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Versioning_HASH = ConstExprHashingUtils::HashString("Versioning"); + static constexpr uint32_t Importing_HASH = ConstExprHashingUtils::HashString("Importing"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); BotStatus GetBotStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return BotStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotType.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotType.cpp index 1d8a2423f9e..0e0823b4a8f 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BotTypeMapper { - static const int Bot_HASH = HashingUtils::HashString("Bot"); - static const int BotNetwork_HASH = HashingUtils::HashString("BotNetwork"); + static constexpr uint32_t Bot_HASH = ConstExprHashingUtils::HashString("Bot"); + static constexpr uint32_t BotNetwork_HASH = ConstExprHashingUtils::HashString("BotNetwork"); BotType GetBotTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Bot_HASH) { return BotType::Bot; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionSortAttribute.cpp index de330af26b3..47c0585616e 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BotVersionSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BotVersionSortAttributeMapper { - static const int BotVersion_HASH = HashingUtils::HashString("BotVersion"); + static constexpr uint32_t BotVersion_HASH = ConstExprHashingUtils::HashString("BotVersion"); BotVersionSortAttribute GetBotVersionSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BotVersion_HASH) { return BotVersionSortAttribute::BotVersion; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInIntentSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInIntentSortAttribute.cpp index 1d6e5538fbe..0dafa63e388 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInIntentSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInIntentSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BuiltInIntentSortAttributeMapper { - static const int IntentSignature_HASH = HashingUtils::HashString("IntentSignature"); + static constexpr uint32_t IntentSignature_HASH = ConstExprHashingUtils::HashString("IntentSignature"); BuiltInIntentSortAttribute GetBuiltInIntentSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IntentSignature_HASH) { return BuiltInIntentSortAttribute::IntentSignature; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInSlotTypeSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInSlotTypeSortAttribute.cpp index d80f3f950e2..42c42ca1034 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInSlotTypeSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/BuiltInSlotTypeSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BuiltInSlotTypeSortAttributeMapper { - static const int SlotTypeSignature_HASH = HashingUtils::HashString("SlotTypeSignature"); + static constexpr uint32_t SlotTypeSignature_HASH = ConstExprHashingUtils::HashString("SlotTypeSignature"); BuiltInSlotTypeSortAttribute GetBuiltInSlotTypeSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SlotTypeSignature_HASH) { return BuiltInSlotTypeSortAttribute::SlotTypeSignature; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationEndState.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationEndState.cpp index ce6087fb441..8896d270c01 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationEndState.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationEndState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConversationEndStateMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failure_HASH = HashingUtils::HashString("Failure"); - static const int Dropped_HASH = HashingUtils::HashString("Dropped"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failure_HASH = ConstExprHashingUtils::HashString("Failure"); + static constexpr uint32_t Dropped_HASH = ConstExprHashingUtils::HashString("Dropped"); ConversationEndState GetConversationEndStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return ConversationEndState::Success; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationLogsInputModeFilter.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationLogsInputModeFilter.cpp index 9dd339b493a..0c5cdc84a2a 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationLogsInputModeFilter.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ConversationLogsInputModeFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConversationLogsInputModeFilterMapper { - static const int Speech_HASH = HashingUtils::HashString("Speech"); - static const int Text_HASH = HashingUtils::HashString("Text"); + static constexpr uint32_t Speech_HASH = ConstExprHashingUtils::HashString("Speech"); + static constexpr uint32_t Text_HASH = ConstExprHashingUtils::HashString("Text"); ConversationLogsInputModeFilter GetConversationLogsInputModeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Speech_HASH) { return ConversationLogsInputModeFilter::Speech; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/CustomVocabularyStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/CustomVocabularyStatus.cpp index b9b343bf74c..fa848c78dbe 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/CustomVocabularyStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/CustomVocabularyStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CustomVocabularyStatusMapper { - static const int Ready_HASH = HashingUtils::HashString("Ready"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Exporting_HASH = HashingUtils::HashString("Exporting"); - static const int Importing_HASH = HashingUtils::HashString("Importing"); - static const int Creating_HASH = HashingUtils::HashString("Creating"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Exporting_HASH = ConstExprHashingUtils::HashString("Exporting"); + static constexpr uint32_t Importing_HASH = ConstExprHashingUtils::HashString("Importing"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); CustomVocabularyStatus GetCustomVocabularyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ready_HASH) { return CustomVocabularyStatus::Ready; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/DialogActionType.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DialogActionType.cpp index 1eaa6b980e6..62c6f869e7e 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/DialogActionType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/DialogActionType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace DialogActionTypeMapper { - static const int ElicitIntent_HASH = HashingUtils::HashString("ElicitIntent"); - static const int StartIntent_HASH = HashingUtils::HashString("StartIntent"); - static const int ElicitSlot_HASH = HashingUtils::HashString("ElicitSlot"); - static const int EvaluateConditional_HASH = HashingUtils::HashString("EvaluateConditional"); - static const int InvokeDialogCodeHook_HASH = HashingUtils::HashString("InvokeDialogCodeHook"); - static const int ConfirmIntent_HASH = HashingUtils::HashString("ConfirmIntent"); - static const int FulfillIntent_HASH = HashingUtils::HashString("FulfillIntent"); - static const int CloseIntent_HASH = HashingUtils::HashString("CloseIntent"); - static const int EndConversation_HASH = HashingUtils::HashString("EndConversation"); + static constexpr uint32_t ElicitIntent_HASH = ConstExprHashingUtils::HashString("ElicitIntent"); + static constexpr uint32_t StartIntent_HASH = ConstExprHashingUtils::HashString("StartIntent"); + static constexpr uint32_t ElicitSlot_HASH = ConstExprHashingUtils::HashString("ElicitSlot"); + static constexpr uint32_t EvaluateConditional_HASH = ConstExprHashingUtils::HashString("EvaluateConditional"); + static constexpr uint32_t InvokeDialogCodeHook_HASH = ConstExprHashingUtils::HashString("InvokeDialogCodeHook"); + static constexpr uint32_t ConfirmIntent_HASH = ConstExprHashingUtils::HashString("ConfirmIntent"); + static constexpr uint32_t FulfillIntent_HASH = ConstExprHashingUtils::HashString("FulfillIntent"); + static constexpr uint32_t CloseIntent_HASH = ConstExprHashingUtils::HashString("CloseIntent"); + static constexpr uint32_t EndConversation_HASH = ConstExprHashingUtils::HashString("EndConversation"); DialogActionType GetDialogActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ElicitIntent_HASH) { return DialogActionType::ElicitIntent; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/Effect.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/Effect.cpp index 6dced1ac338..a556b109102 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/Effect.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/Effect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EffectMapper { - static const int Allow_HASH = HashingUtils::HashString("Allow"); - static const int Deny_HASH = HashingUtils::HashString("Deny"); + static constexpr uint32_t Allow_HASH = ConstExprHashingUtils::HashString("Allow"); + static constexpr uint32_t Deny_HASH = ConstExprHashingUtils::HashString("Deny"); Effect GetEffectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Allow_HASH) { return Effect::Allow; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ErrorCode.cpp index f2018e99058..0874ca3f294 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ErrorCodeMapper { - static const int DUPLICATE_INPUT_HASH = HashingUtils::HashString("DUPLICATE_INPUT"); - static const int RESOURCE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("RESOURCE_DOES_NOT_EXIST"); - static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("RESOURCE_ALREADY_EXISTS"); - static const int INTERNAL_SERVER_FAILURE_HASH = HashingUtils::HashString("INTERNAL_SERVER_FAILURE"); + static constexpr uint32_t DUPLICATE_INPUT_HASH = ConstExprHashingUtils::HashString("DUPLICATE_INPUT"); + static constexpr uint32_t RESOURCE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("RESOURCE_DOES_NOT_EXIST"); + static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RESOURCE_ALREADY_EXISTS"); + static constexpr uint32_t INTERNAL_SERVER_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVER_FAILURE"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_INPUT_HASH) { return ErrorCode::DUPLICATE_INPUT; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterName.cpp index 599f87c417f..0edc5a8046f 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExportFilterNameMapper { - static const int ExportResourceType_HASH = HashingUtils::HashString("ExportResourceType"); + static constexpr uint32_t ExportResourceType_HASH = ConstExprHashingUtils::HashString("ExportResourceType"); ExportFilterName GetExportFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ExportResourceType_HASH) { return ExportFilterName::ExportResourceType; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterOperator.cpp index 31bc2de02d1..3eb1e099872 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); ExportFilterOperator GetExportFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return ExportFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportSortAttribute.cpp index 48eee6cb079..3e2abbe8b07 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExportSortAttributeMapper { - static const int LastUpdatedDateTime_HASH = HashingUtils::HashString("LastUpdatedDateTime"); + static constexpr uint32_t LastUpdatedDateTime_HASH = ConstExprHashingUtils::HashString("LastUpdatedDateTime"); ExportSortAttribute GetExportSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LastUpdatedDateTime_HASH) { return ExportSortAttribute::LastUpdatedDateTime; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportStatus.cpp index 0a4664216f7..419c562cbca 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ExportStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExportStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); ExportStatus GetExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ExportStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportExportFileFormat.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportExportFileFormat.cpp index aab720b45cf..1d3def63073 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportExportFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportExportFileFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImportExportFileFormatMapper { - static const int LexJson_HASH = HashingUtils::HashString("LexJson"); - static const int TSV_HASH = HashingUtils::HashString("TSV"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t LexJson_HASH = ConstExprHashingUtils::HashString("LexJson"); + static constexpr uint32_t TSV_HASH = ConstExprHashingUtils::HashString("TSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); ImportExportFileFormat GetImportExportFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LexJson_HASH) { return ImportExportFileFormat::LexJson; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterName.cpp index 9fbdb008ae4..19947387a6c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImportFilterNameMapper { - static const int ImportResourceType_HASH = HashingUtils::HashString("ImportResourceType"); + static constexpr uint32_t ImportResourceType_HASH = ConstExprHashingUtils::HashString("ImportResourceType"); ImportFilterName GetImportFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ImportResourceType_HASH) { return ImportFilterName::ImportResourceType; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterOperator.cpp index 2b4eae5249b..7ffd4ca0b59 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImportFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); ImportFilterOperator GetImportFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return ImportFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportResourceType.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportResourceType.cpp index 2a34a37fcc3..04db492e336 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ImportResourceTypeMapper { - static const int Bot_HASH = HashingUtils::HashString("Bot"); - static const int BotLocale_HASH = HashingUtils::HashString("BotLocale"); - static const int CustomVocabulary_HASH = HashingUtils::HashString("CustomVocabulary"); - static const int TestSet_HASH = HashingUtils::HashString("TestSet"); + static constexpr uint32_t Bot_HASH = ConstExprHashingUtils::HashString("Bot"); + static constexpr uint32_t BotLocale_HASH = ConstExprHashingUtils::HashString("BotLocale"); + static constexpr uint32_t CustomVocabulary_HASH = ConstExprHashingUtils::HashString("CustomVocabulary"); + static constexpr uint32_t TestSet_HASH = ConstExprHashingUtils::HashString("TestSet"); ImportResourceType GetImportResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Bot_HASH) { return ImportResourceType::Bot; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportSortAttribute.cpp index 2c887088f39..f8d20661e17 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportSortAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImportSortAttributeMapper { - static const int LastUpdatedDateTime_HASH = HashingUtils::HashString("LastUpdatedDateTime"); + static constexpr uint32_t LastUpdatedDateTime_HASH = ConstExprHashingUtils::HashString("LastUpdatedDateTime"); ImportSortAttribute GetImportSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LastUpdatedDateTime_HASH) { return ImportSortAttribute::LastUpdatedDateTime; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportStatus.cpp index 103568ec099..839cf04e7f8 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ImportStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ImportStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); ImportStatus GetImportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ImportStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterName.cpp index 51448418acd..d666344b0a7 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IntentFilterNameMapper { - static const int IntentName_HASH = HashingUtils::HashString("IntentName"); + static constexpr uint32_t IntentName_HASH = ConstExprHashingUtils::HashString("IntentName"); IntentFilterName GetIntentFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IntentName_HASH) { return IntentFilterName::IntentName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterOperator.cpp index da4268c66e8..e7ce4ba1445 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntentFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); IntentFilterOperator GetIntentFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return IntentFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentSortAttribute.cpp index 3f8c4242704..309b507c3c4 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntentSortAttributeMapper { - static const int IntentName_HASH = HashingUtils::HashString("IntentName"); - static const int LastUpdatedDateTime_HASH = HashingUtils::HashString("LastUpdatedDateTime"); + static constexpr uint32_t IntentName_HASH = ConstExprHashingUtils::HashString("IntentName"); + static constexpr uint32_t LastUpdatedDateTime_HASH = ConstExprHashingUtils::HashString("LastUpdatedDateTime"); IntentSortAttribute GetIntentSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IntentName_HASH) { return IntentSortAttribute::IntentName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentState.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentState.cpp index ef1d8247333..e9d54e8f9ce 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentState.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/IntentState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IntentStateMapper { - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Fulfilled_HASH = HashingUtils::HashString("Fulfilled"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int ReadyForFulfillment_HASH = HashingUtils::HashString("ReadyForFulfillment"); - static const int Waiting_HASH = HashingUtils::HashString("Waiting"); - static const int FulfillmentInProgress_HASH = HashingUtils::HashString("FulfillmentInProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Fulfilled_HASH = ConstExprHashingUtils::HashString("Fulfilled"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t ReadyForFulfillment_HASH = ConstExprHashingUtils::HashString("ReadyForFulfillment"); + static constexpr uint32_t Waiting_HASH = ConstExprHashingUtils::HashString("Waiting"); + static constexpr uint32_t FulfillmentInProgress_HASH = ConstExprHashingUtils::HashString("FulfillmentInProgress"); IntentState GetIntentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Failed_HASH) { return IntentState::Failed; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/MergeStrategy.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/MergeStrategy.cpp index afa1dcf1ac9..22ffc156699 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/MergeStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/MergeStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MergeStrategyMapper { - static const int Overwrite_HASH = HashingUtils::HashString("Overwrite"); - static const int FailOnConflict_HASH = HashingUtils::HashString("FailOnConflict"); - static const int Append_HASH = HashingUtils::HashString("Append"); + static constexpr uint32_t Overwrite_HASH = ConstExprHashingUtils::HashString("Overwrite"); + static constexpr uint32_t FailOnConflict_HASH = ConstExprHashingUtils::HashString("FailOnConflict"); + static constexpr uint32_t Append_HASH = ConstExprHashingUtils::HashString("Append"); MergeStrategy GetMergeStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Overwrite_HASH) { return MergeStrategy::Overwrite; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/MessageSelectionStrategy.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/MessageSelectionStrategy.cpp index b8d582d0997..a3b92593703 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/MessageSelectionStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/MessageSelectionStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageSelectionStrategyMapper { - static const int Random_HASH = HashingUtils::HashString("Random"); - static const int Ordered_HASH = HashingUtils::HashString("Ordered"); + static constexpr uint32_t Random_HASH = ConstExprHashingUtils::HashString("Random"); + static constexpr uint32_t Ordered_HASH = ConstExprHashingUtils::HashString("Ordered"); MessageSelectionStrategy GetMessageSelectionStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Random_HASH) { return MessageSelectionStrategy::Random; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ObfuscationSettingType.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ObfuscationSettingType.cpp index a4597c87dbc..08c9ac3f38d 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/ObfuscationSettingType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/ObfuscationSettingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObfuscationSettingTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int DefaultObfuscation_HASH = HashingUtils::HashString("DefaultObfuscation"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t DefaultObfuscation_HASH = ConstExprHashingUtils::HashString("DefaultObfuscation"); ObfuscationSettingType GetObfuscationSettingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return ObfuscationSettingType::None; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/PromptAttempt.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/PromptAttempt.cpp index f327f70beb9..9045f8b8192 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/PromptAttempt.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/PromptAttempt.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PromptAttemptMapper { - static const int Initial_HASH = HashingUtils::HashString("Initial"); - static const int Retry1_HASH = HashingUtils::HashString("Retry1"); - static const int Retry2_HASH = HashingUtils::HashString("Retry2"); - static const int Retry3_HASH = HashingUtils::HashString("Retry3"); - static const int Retry4_HASH = HashingUtils::HashString("Retry4"); - static const int Retry5_HASH = HashingUtils::HashString("Retry5"); + static constexpr uint32_t Initial_HASH = ConstExprHashingUtils::HashString("Initial"); + static constexpr uint32_t Retry1_HASH = ConstExprHashingUtils::HashString("Retry1"); + static constexpr uint32_t Retry2_HASH = ConstExprHashingUtils::HashString("Retry2"); + static constexpr uint32_t Retry3_HASH = ConstExprHashingUtils::HashString("Retry3"); + static constexpr uint32_t Retry4_HASH = ConstExprHashingUtils::HashString("Retry4"); + static constexpr uint32_t Retry5_HASH = ConstExprHashingUtils::HashString("Retry5"); PromptAttempt GetPromptAttemptForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initial_HASH) { return PromptAttempt::Initial; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SearchOrder.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SearchOrder.cpp index b70492725a3..a0c6bfd0cf9 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SearchOrder.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SearchOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SearchOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); SearchOrder GetSearchOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return SearchOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotConstraint.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotConstraint.cpp index 0e79b30204c..2966b90d18c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotConstraint.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotConstraint.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotConstraintMapper { - static const int Required_HASH = HashingUtils::HashString("Required"); - static const int Optional_HASH = HashingUtils::HashString("Optional"); + static constexpr uint32_t Required_HASH = ConstExprHashingUtils::HashString("Required"); + static constexpr uint32_t Optional_HASH = ConstExprHashingUtils::HashString("Optional"); SlotConstraint GetSlotConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Required_HASH) { return SlotConstraint::Required; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterName.cpp index ec1345279be..3c8a5fa7d11 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SlotFilterNameMapper { - static const int SlotName_HASH = HashingUtils::HashString("SlotName"); + static constexpr uint32_t SlotName_HASH = ConstExprHashingUtils::HashString("SlotName"); SlotFilterName GetSlotFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SlotName_HASH) { return SlotFilterName::SlotName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterOperator.cpp index 2f240abbabf..6df70db4734 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); SlotFilterOperator GetSlotFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return SlotFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotShape.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotShape.cpp index 5d8b8cdd6c0..31e2f392f24 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotShape.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotShape.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotShapeMapper { - static const int Scalar_HASH = HashingUtils::HashString("Scalar"); - static const int List_HASH = HashingUtils::HashString("List"); + static constexpr uint32_t Scalar_HASH = ConstExprHashingUtils::HashString("Scalar"); + static constexpr uint32_t List_HASH = ConstExprHashingUtils::HashString("List"); SlotShape GetSlotShapeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scalar_HASH) { return SlotShape::Scalar; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotSortAttribute.cpp index a50395eaa91..1f949105579 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotSortAttributeMapper { - static const int SlotName_HASH = HashingUtils::HashString("SlotName"); - static const int LastUpdatedDateTime_HASH = HashingUtils::HashString("LastUpdatedDateTime"); + static constexpr uint32_t SlotName_HASH = ConstExprHashingUtils::HashString("SlotName"); + static constexpr uint32_t LastUpdatedDateTime_HASH = ConstExprHashingUtils::HashString("LastUpdatedDateTime"); SlotSortAttribute GetSlotSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SlotName_HASH) { return SlotSortAttribute::SlotName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeCategory.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeCategory.cpp index 338569cb206..ac080894eca 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeCategory.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeCategory.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SlotTypeCategoryMapper { - static const int Custom_HASH = HashingUtils::HashString("Custom"); - static const int Extended_HASH = HashingUtils::HashString("Extended"); - static const int ExternalGrammar_HASH = HashingUtils::HashString("ExternalGrammar"); - static const int Composite_HASH = HashingUtils::HashString("Composite"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); + static constexpr uint32_t Extended_HASH = ConstExprHashingUtils::HashString("Extended"); + static constexpr uint32_t ExternalGrammar_HASH = ConstExprHashingUtils::HashString("ExternalGrammar"); + static constexpr uint32_t Composite_HASH = ConstExprHashingUtils::HashString("Composite"); SlotTypeCategory GetSlotTypeCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Custom_HASH) { return SlotTypeCategory::Custom; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterName.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterName.cpp index fbdf839c14b..59198288aa5 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterName.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotTypeFilterNameMapper { - static const int SlotTypeName_HASH = HashingUtils::HashString("SlotTypeName"); - static const int ExternalSourceType_HASH = HashingUtils::HashString("ExternalSourceType"); + static constexpr uint32_t SlotTypeName_HASH = ConstExprHashingUtils::HashString("SlotTypeName"); + static constexpr uint32_t ExternalSourceType_HASH = ConstExprHashingUtils::HashString("ExternalSourceType"); SlotTypeFilterName GetSlotTypeFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SlotTypeName_HASH) { return SlotTypeFilterName::SlotTypeName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterOperator.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterOperator.cpp index 1b862df0655..3afaf584838 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeFilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotTypeFilterOperatorMapper { - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); SlotTypeFilterOperator GetSlotTypeFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CO_HASH) { return SlotTypeFilterOperator::CO; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeSortAttribute.cpp index 4fbf518350b..ebb45b5b527 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotTypeSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SlotTypeSortAttributeMapper { - static const int SlotTypeName_HASH = HashingUtils::HashString("SlotTypeName"); - static const int LastUpdatedDateTime_HASH = HashingUtils::HashString("LastUpdatedDateTime"); + static constexpr uint32_t SlotTypeName_HASH = ConstExprHashingUtils::HashString("SlotTypeName"); + static constexpr uint32_t LastUpdatedDateTime_HASH = ConstExprHashingUtils::HashString("LastUpdatedDateTime"); SlotTypeSortAttribute GetSlotTypeSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SlotTypeName_HASH) { return SlotTypeSortAttribute::SlotTypeName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotValueResolutionStrategy.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotValueResolutionStrategy.cpp index 64f40bc5711..1adcecc445f 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotValueResolutionStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SlotValueResolutionStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SlotValueResolutionStrategyMapper { - static const int OriginalValue_HASH = HashingUtils::HashString("OriginalValue"); - static const int TopResolution_HASH = HashingUtils::HashString("TopResolution"); - static const int Concatenation_HASH = HashingUtils::HashString("Concatenation"); + static constexpr uint32_t OriginalValue_HASH = ConstExprHashingUtils::HashString("OriginalValue"); + static constexpr uint32_t TopResolution_HASH = ConstExprHashingUtils::HashString("TopResolution"); + static constexpr uint32_t Concatenation_HASH = ConstExprHashingUtils::HashString("Concatenation"); SlotValueResolutionStrategy GetSlotValueResolutionStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OriginalValue_HASH) { return SlotValueResolutionStrategy::OriginalValue; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SortOrder.cpp index 900aebe45d0..8b8cb7381d8 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return SortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionApiMode.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionApiMode.cpp index 70928d5a5bb..3cf1f27b5cf 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionApiMode.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionApiMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestExecutionApiModeMapper { - static const int Streaming_HASH = HashingUtils::HashString("Streaming"); - static const int NonStreaming_HASH = HashingUtils::HashString("NonStreaming"); + static constexpr uint32_t Streaming_HASH = ConstExprHashingUtils::HashString("Streaming"); + static constexpr uint32_t NonStreaming_HASH = ConstExprHashingUtils::HashString("NonStreaming"); TestExecutionApiMode GetTestExecutionApiModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Streaming_HASH) { return TestExecutionApiMode::Streaming; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionModality.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionModality.cpp index 88c8543f150..30f535d7d4c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionModality.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionModality.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestExecutionModalityMapper { - static const int Text_HASH = HashingUtils::HashString("Text"); - static const int Audio_HASH = HashingUtils::HashString("Audio"); + static constexpr uint32_t Text_HASH = ConstExprHashingUtils::HashString("Text"); + static constexpr uint32_t Audio_HASH = ConstExprHashingUtils::HashString("Audio"); TestExecutionModality GetTestExecutionModalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Text_HASH) { return TestExecutionModality::Text; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionSortAttribute.cpp index 41bcbdd0776..80c3dc24659 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestExecutionSortAttributeMapper { - static const int TestSetName_HASH = HashingUtils::HashString("TestSetName"); - static const int CreationDateTime_HASH = HashingUtils::HashString("CreationDateTime"); + static constexpr uint32_t TestSetName_HASH = ConstExprHashingUtils::HashString("TestSetName"); + static constexpr uint32_t CreationDateTime_HASH = ConstExprHashingUtils::HashString("CreationDateTime"); TestExecutionSortAttribute GetTestExecutionSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TestSetName_HASH) { return TestExecutionSortAttribute::TestSetName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionStatus.cpp index bf33798571d..5f3da6831d5 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestExecutionStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TestExecutionStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Waiting_HASH = HashingUtils::HashString("Waiting"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Waiting_HASH = ConstExprHashingUtils::HashString("Waiting"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); TestExecutionStatus GetTestExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return TestExecutionStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultMatchStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultMatchStatus.cpp index e1584caf7ef..8c602ffb91c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultMatchStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultMatchStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TestResultMatchStatusMapper { - static const int Matched_HASH = HashingUtils::HashString("Matched"); - static const int Mismatched_HASH = HashingUtils::HashString("Mismatched"); - static const int ExecutionError_HASH = HashingUtils::HashString("ExecutionError"); + static constexpr uint32_t Matched_HASH = ConstExprHashingUtils::HashString("Matched"); + static constexpr uint32_t Mismatched_HASH = ConstExprHashingUtils::HashString("Mismatched"); + static constexpr uint32_t ExecutionError_HASH = ConstExprHashingUtils::HashString("ExecutionError"); TestResultMatchStatus GetTestResultMatchStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Matched_HASH) { return TestResultMatchStatus::Matched; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultTypeFilter.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultTypeFilter.cpp index 4638b3d327e..dd9c8d620ba 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestResultTypeFilter.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TestResultTypeFilterMapper { - static const int OverallTestResults_HASH = HashingUtils::HashString("OverallTestResults"); - static const int ConversationLevelTestResults_HASH = HashingUtils::HashString("ConversationLevelTestResults"); - static const int IntentClassificationTestResults_HASH = HashingUtils::HashString("IntentClassificationTestResults"); - static const int SlotResolutionTestResults_HASH = HashingUtils::HashString("SlotResolutionTestResults"); - static const int UtteranceLevelResults_HASH = HashingUtils::HashString("UtteranceLevelResults"); + static constexpr uint32_t OverallTestResults_HASH = ConstExprHashingUtils::HashString("OverallTestResults"); + static constexpr uint32_t ConversationLevelTestResults_HASH = ConstExprHashingUtils::HashString("ConversationLevelTestResults"); + static constexpr uint32_t IntentClassificationTestResults_HASH = ConstExprHashingUtils::HashString("IntentClassificationTestResults"); + static constexpr uint32_t SlotResolutionTestResults_HASH = ConstExprHashingUtils::HashString("SlotResolutionTestResults"); + static constexpr uint32_t UtteranceLevelResults_HASH = ConstExprHashingUtils::HashString("UtteranceLevelResults"); TestResultTypeFilter GetTestResultTypeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OverallTestResults_HASH) { return TestResultTypeFilter::OverallTestResults; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetDiscrepancyReportStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetDiscrepancyReportStatus.cpp index 3043e5dceee..46f7790c288 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetDiscrepancyReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetDiscrepancyReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TestSetDiscrepancyReportStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); TestSetDiscrepancyReportStatus GetTestSetDiscrepancyReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return TestSetDiscrepancyReportStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetGenerationStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetGenerationStatus.cpp index bc14aaeb2e3..b755820958c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetGenerationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetGenerationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TestSetGenerationStatusMapper { - static const int Generating_HASH = HashingUtils::HashString("Generating"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); + static constexpr uint32_t Generating_HASH = ConstExprHashingUtils::HashString("Generating"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); TestSetGenerationStatus GetTestSetGenerationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Generating_HASH) { return TestSetGenerationStatus::Generating; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetModality.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetModality.cpp index 3c7e224414e..45a1f10b0e7 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetModality.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetModality.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestSetModalityMapper { - static const int Text_HASH = HashingUtils::HashString("Text"); - static const int Audio_HASH = HashingUtils::HashString("Audio"); + static constexpr uint32_t Text_HASH = ConstExprHashingUtils::HashString("Text"); + static constexpr uint32_t Audio_HASH = ConstExprHashingUtils::HashString("Audio"); TestSetModality GetTestSetModalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Text_HASH) { return TestSetModality::Text; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetSortAttribute.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetSortAttribute.cpp index fb46ab28b1c..7fc03efb677 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetSortAttribute.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetSortAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TestSetSortAttributeMapper { - static const int TestSetName_HASH = HashingUtils::HashString("TestSetName"); - static const int LastUpdatedDateTime_HASH = HashingUtils::HashString("LastUpdatedDateTime"); + static constexpr uint32_t TestSetName_HASH = ConstExprHashingUtils::HashString("TestSetName"); + static constexpr uint32_t LastUpdatedDateTime_HASH = ConstExprHashingUtils::HashString("LastUpdatedDateTime"); TestSetSortAttribute GetTestSetSortAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TestSetName_HASH) { return TestSetSortAttribute::TestSetName; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetStatus.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetStatus.cpp index 5a712e9d5ed..907e302f4f2 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TestSetStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TestSetStatusMapper { - static const int Importing_HASH = HashingUtils::HashString("Importing"); - static const int PendingAnnotation_HASH = HashingUtils::HashString("PendingAnnotation"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int ValidationError_HASH = HashingUtils::HashString("ValidationError"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); + static constexpr uint32_t Importing_HASH = ConstExprHashingUtils::HashString("Importing"); + static constexpr uint32_t PendingAnnotation_HASH = ConstExprHashingUtils::HashString("PendingAnnotation"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t ValidationError_HASH = ConstExprHashingUtils::HashString("ValidationError"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); TestSetStatus GetTestSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Importing_HASH) { return TestSetStatus::Importing; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TimeDimension.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TimeDimension.cpp index 7ad365592df..1e25a4add25 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TimeDimension.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TimeDimension.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TimeDimensionMapper { - static const int Hours_HASH = HashingUtils::HashString("Hours"); - static const int Days_HASH = HashingUtils::HashString("Days"); - static const int Weeks_HASH = HashingUtils::HashString("Weeks"); + static constexpr uint32_t Hours_HASH = ConstExprHashingUtils::HashString("Hours"); + static constexpr uint32_t Days_HASH = ConstExprHashingUtils::HashString("Days"); + static constexpr uint32_t Weeks_HASH = ConstExprHashingUtils::HashString("Weeks"); TimeDimension GetTimeDimensionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Hours_HASH) { return TimeDimension::Hours; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TranscriptFormat.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TranscriptFormat.cpp index 136961cc094..547b3c28cec 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/TranscriptFormat.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/TranscriptFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscriptFormatMapper { - static const int Lex_HASH = HashingUtils::HashString("Lex"); + static constexpr uint32_t Lex_HASH = ConstExprHashingUtils::HashString("Lex"); TranscriptFormat GetTranscriptFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Lex_HASH) { return TranscriptFormat::Lex; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/UtteranceContentType.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/UtteranceContentType.cpp index 8aa6e363e85..f7ec663a3f3 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/UtteranceContentType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/UtteranceContentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UtteranceContentTypeMapper { - static const int PlainText_HASH = HashingUtils::HashString("PlainText"); - static const int CustomPayload_HASH = HashingUtils::HashString("CustomPayload"); - static const int SSML_HASH = HashingUtils::HashString("SSML"); - static const int ImageResponseCard_HASH = HashingUtils::HashString("ImageResponseCard"); + static constexpr uint32_t PlainText_HASH = ConstExprHashingUtils::HashString("PlainText"); + static constexpr uint32_t CustomPayload_HASH = ConstExprHashingUtils::HashString("CustomPayload"); + static constexpr uint32_t SSML_HASH = ConstExprHashingUtils::HashString("SSML"); + static constexpr uint32_t ImageResponseCard_HASH = ConstExprHashingUtils::HashString("ImageResponseCard"); UtteranceContentType GetUtteranceContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PlainText_HASH) { return UtteranceContentType::PlainText; diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/model/VoiceEngine.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/model/VoiceEngine.cpp index 070e33084b7..af8e5bca90c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/model/VoiceEngine.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/model/VoiceEngine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VoiceEngineMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int neural_HASH = HashingUtils::HashString("neural"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t neural_HASH = ConstExprHashingUtils::HashString("neural"); VoiceEngine GetVoiceEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return VoiceEngine::standard; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Errors.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Errors.cpp index a67133ce413..743ccf2f026 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Errors.cpp @@ -18,15 +18,15 @@ namespace LexRuntimeV2 namespace LexRuntimeV2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int BAD_GATEWAY_HASH = HashingUtils::HashString("BadGatewayException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int DEPENDENCY_FAILED_HASH = HashingUtils::HashString("DependencyFailedException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t BAD_GATEWAY_HASH = ConstExprHashingUtils::HashString("BadGatewayException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t DEPENDENCY_FAILED_HASH = ConstExprHashingUtils::HashString("DependencyFailedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConfirmationState.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConfirmationState.cpp index f8bf346875e..cc00d4a4dbe 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConfirmationState.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConfirmationState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfirmationStateMapper { - static const int Confirmed_HASH = HashingUtils::HashString("Confirmed"); - static const int Denied_HASH = HashingUtils::HashString("Denied"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Confirmed_HASH = ConstExprHashingUtils::HashString("Confirmed"); + static constexpr uint32_t Denied_HASH = ConstExprHashingUtils::HashString("Denied"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); ConfirmationState GetConfirmationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Confirmed_HASH) { return ConfirmationState::Confirmed; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConversationMode.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConversationMode.cpp index e8d8ee29ebd..ee528f01812 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConversationMode.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/ConversationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConversationModeMapper { - static const int AUDIO_HASH = HashingUtils::HashString("AUDIO"); - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); + static constexpr uint32_t AUDIO_HASH = ConstExprHashingUtils::HashString("AUDIO"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); ConversationMode GetConversationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUDIO_HASH) { return ConversationMode::AUDIO; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/DialogActionType.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/DialogActionType.cpp index 2f8e92d193b..8ab63202f0e 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/DialogActionType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/DialogActionType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DialogActionTypeMapper { - static const int Close_HASH = HashingUtils::HashString("Close"); - static const int ConfirmIntent_HASH = HashingUtils::HashString("ConfirmIntent"); - static const int Delegate_HASH = HashingUtils::HashString("Delegate"); - static const int ElicitIntent_HASH = HashingUtils::HashString("ElicitIntent"); - static const int ElicitSlot_HASH = HashingUtils::HashString("ElicitSlot"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Close_HASH = ConstExprHashingUtils::HashString("Close"); + static constexpr uint32_t ConfirmIntent_HASH = ConstExprHashingUtils::HashString("ConfirmIntent"); + static constexpr uint32_t Delegate_HASH = ConstExprHashingUtils::HashString("Delegate"); + static constexpr uint32_t ElicitIntent_HASH = ConstExprHashingUtils::HashString("ElicitIntent"); + static constexpr uint32_t ElicitSlot_HASH = ConstExprHashingUtils::HashString("ElicitSlot"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); DialogActionType GetDialogActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Close_HASH) { return DialogActionType::Close; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/InputMode.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/InputMode.cpp index d4d1eabee6b..d0c6cdd3f4b 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/InputMode.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/InputMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputModeMapper { - static const int Text_HASH = HashingUtils::HashString("Text"); - static const int Speech_HASH = HashingUtils::HashString("Speech"); - static const int DTMF_HASH = HashingUtils::HashString("DTMF"); + static constexpr uint32_t Text_HASH = ConstExprHashingUtils::HashString("Text"); + static constexpr uint32_t Speech_HASH = ConstExprHashingUtils::HashString("Speech"); + static constexpr uint32_t DTMF_HASH = ConstExprHashingUtils::HashString("DTMF"); InputMode GetInputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Text_HASH) { return InputMode::Text; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/IntentState.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/IntentState.cpp index 8f63e9aa0df..12df8ee8d58 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/IntentState.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/IntentState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IntentStateMapper { - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Fulfilled_HASH = HashingUtils::HashString("Fulfilled"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int ReadyForFulfillment_HASH = HashingUtils::HashString("ReadyForFulfillment"); - static const int Waiting_HASH = HashingUtils::HashString("Waiting"); - static const int FulfillmentInProgress_HASH = HashingUtils::HashString("FulfillmentInProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Fulfilled_HASH = ConstExprHashingUtils::HashString("Fulfilled"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t ReadyForFulfillment_HASH = ConstExprHashingUtils::HashString("ReadyForFulfillment"); + static constexpr uint32_t Waiting_HASH = ConstExprHashingUtils::HashString("Waiting"); + static constexpr uint32_t FulfillmentInProgress_HASH = ConstExprHashingUtils::HashString("FulfillmentInProgress"); IntentState GetIntentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Failed_HASH) { return IntentState::Failed; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/MessageContentType.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/MessageContentType.cpp index 09e7cfc1c8e..cd6153c00a0 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/MessageContentType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/MessageContentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MessageContentTypeMapper { - static const int CustomPayload_HASH = HashingUtils::HashString("CustomPayload"); - static const int ImageResponseCard_HASH = HashingUtils::HashString("ImageResponseCard"); - static const int PlainText_HASH = HashingUtils::HashString("PlainText"); - static const int SSML_HASH = HashingUtils::HashString("SSML"); + static constexpr uint32_t CustomPayload_HASH = ConstExprHashingUtils::HashString("CustomPayload"); + static constexpr uint32_t ImageResponseCard_HASH = ConstExprHashingUtils::HashString("ImageResponseCard"); + static constexpr uint32_t PlainText_HASH = ConstExprHashingUtils::HashString("PlainText"); + static constexpr uint32_t SSML_HASH = ConstExprHashingUtils::HashString("SSML"); MessageContentType GetMessageContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CustomPayload_HASH) { return MessageContentType::CustomPayload; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/PlaybackInterruptionReason.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/PlaybackInterruptionReason.cpp index 90f51167102..69129063a01 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/PlaybackInterruptionReason.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/PlaybackInterruptionReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlaybackInterruptionReasonMapper { - static const int DTMF_START_DETECTED_HASH = HashingUtils::HashString("DTMF_START_DETECTED"); - static const int TEXT_DETECTED_HASH = HashingUtils::HashString("TEXT_DETECTED"); - static const int VOICE_START_DETECTED_HASH = HashingUtils::HashString("VOICE_START_DETECTED"); + static constexpr uint32_t DTMF_START_DETECTED_HASH = ConstExprHashingUtils::HashString("DTMF_START_DETECTED"); + static constexpr uint32_t TEXT_DETECTED_HASH = ConstExprHashingUtils::HashString("TEXT_DETECTED"); + static constexpr uint32_t VOICE_START_DETECTED_HASH = ConstExprHashingUtils::HashString("VOICE_START_DETECTED"); PlaybackInterruptionReason GetPlaybackInterruptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DTMF_START_DETECTED_HASH) { return PlaybackInterruptionReason::DTMF_START_DETECTED; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/SentimentType.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/SentimentType.cpp index 07e3f100f78..22edae8dd22 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/SentimentType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/SentimentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SentimentTypeMapper { - static const int MIXED_HASH = HashingUtils::HashString("MIXED"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); - static const int NEUTRAL_HASH = HashingUtils::HashString("NEUTRAL"); - static const int POSITIVE_HASH = HashingUtils::HashString("POSITIVE"); + static constexpr uint32_t MIXED_HASH = ConstExprHashingUtils::HashString("MIXED"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t NEUTRAL_HASH = ConstExprHashingUtils::HashString("NEUTRAL"); + static constexpr uint32_t POSITIVE_HASH = ConstExprHashingUtils::HashString("POSITIVE"); SentimentType GetSentimentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MIXED_HASH) { return SentimentType::MIXED; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/Shape.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/Shape.cpp index 411163811a0..4e42ce9eda4 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/Shape.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/Shape.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ShapeMapper { - static const int Scalar_HASH = HashingUtils::HashString("Scalar"); - static const int List_HASH = HashingUtils::HashString("List"); - static const int Composite_HASH = HashingUtils::HashString("Composite"); + static constexpr uint32_t Scalar_HASH = ConstExprHashingUtils::HashString("Scalar"); + static constexpr uint32_t List_HASH = ConstExprHashingUtils::HashString("List"); + static constexpr uint32_t Composite_HASH = ConstExprHashingUtils::HashString("Composite"); Shape GetShapeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scalar_HASH) { return Shape::Scalar; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp index 00245c027b3..7b9ff30b7b9 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StartConversationHandler.cpp @@ -277,16 +277,16 @@ namespace Model namespace StartConversationEventMapper { - static const int PLAYBACKINTERRUPTIONEVENT_HASH = Aws::Utils::HashingUtils::HashString("PlaybackInterruptionEvent"); - static const int TRANSCRIPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("TranscriptEvent"); - static const int INTENTRESULTEVENT_HASH = Aws::Utils::HashingUtils::HashString("IntentResultEvent"); - static const int TEXTRESPONSEEVENT_HASH = Aws::Utils::HashingUtils::HashString("TextResponseEvent"); - static const int AUDIORESPONSEEVENT_HASH = Aws::Utils::HashingUtils::HashString("AudioResponseEvent"); - static const int HEARTBEATEVENT_HASH = Aws::Utils::HashingUtils::HashString("HeartbeatEvent"); + static constexpr uint32_t PLAYBACKINTERRUPTIONEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("PlaybackInterruptionEvent"); + static constexpr uint32_t TRANSCRIPTEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("TranscriptEvent"); + static constexpr uint32_t INTENTRESULTEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("IntentResultEvent"); + static constexpr uint32_t TEXTRESPONSEEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("TextResponseEvent"); + static constexpr uint32_t AUDIORESPONSEEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("AudioResponseEvent"); + static constexpr uint32_t HEARTBEATEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("HeartbeatEvent"); StartConversationEventType GetStartConversationEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == PLAYBACKINTERRUPTIONEVENT_HASH) { return StartConversationEventType::PLAYBACKINTERRUPTIONEVENT; diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StyleType.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StyleType.cpp index 23a79c3644f..d9f83f1296c 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StyleType.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/model/StyleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StyleTypeMapper { - static const int Default_HASH = HashingUtils::HashString("Default"); - static const int SpellByLetter_HASH = HashingUtils::HashString("SpellByLetter"); - static const int SpellByWord_HASH = HashingUtils::HashString("SpellByWord"); + static constexpr uint32_t Default_HASH = ConstExprHashingUtils::HashString("Default"); + static constexpr uint32_t SpellByLetter_HASH = ConstExprHashingUtils::HashString("SpellByLetter"); + static constexpr uint32_t SpellByWord_HASH = ConstExprHashingUtils::HashString("SpellByWord"); StyleType GetStyleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Default_HASH) { return StyleType::Default; diff --git a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsErrors.cpp b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsErrors.cpp index 8cae00b194d..35477512ee5 100644 --- a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsErrors.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsErrors.cpp @@ -18,12 +18,12 @@ namespace LicenseManagerLinuxSubscriptions namespace LicenseManagerLinuxSubscriptionsErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/LinuxSubscriptionsDiscovery.cpp b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/LinuxSubscriptionsDiscovery.cpp index cdcd7ab09d4..9a34f51619e 100644 --- a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/LinuxSubscriptionsDiscovery.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/LinuxSubscriptionsDiscovery.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LinuxSubscriptionsDiscoveryMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); LinuxSubscriptionsDiscovery GetLinuxSubscriptionsDiscoveryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return LinuxSubscriptionsDiscovery::Enabled; diff --git a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Operator.cpp index 0576a7a5bcb..47831e80a2d 100644 --- a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Operator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperatorMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); - static const int NotEqual_HASH = HashingUtils::HashString("NotEqual"); - static const int Contains_HASH = HashingUtils::HashString("Contains"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); + static constexpr uint32_t NotEqual_HASH = ConstExprHashingUtils::HashString("NotEqual"); + static constexpr uint32_t Contains_HASH = ConstExprHashingUtils::HashString("Contains"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return Operator::Equal; diff --git a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/OrganizationIntegration.cpp b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/OrganizationIntegration.cpp index 874e6944a25..ee9d91ba124 100644 --- a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/OrganizationIntegration.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/OrganizationIntegration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrganizationIntegrationMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); OrganizationIntegration GetOrganizationIntegrationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return OrganizationIntegration::Enabled; diff --git a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Status.cpp b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Status.cpp index dcccfc53708..a2b7ff45a0d 100644 --- a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/model/Status.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return Status::InProgress; diff --git a/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsErrors.cpp b/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsErrors.cpp index d29ff686ef7..b0bb7e5eb5c 100644 --- a/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsErrors.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsErrors.cpp @@ -18,14 +18,14 @@ namespace LicenseManagerUserSubscriptions namespace LicenseManagerUserSubscriptionsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerErrors.cpp b/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerErrors.cpp index 6d299ae6235..7ce1030d23f 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerErrors.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerErrors.cpp @@ -33,24 +33,24 @@ template<> AWS_LICENSEMANAGER_API FailedDependencyException LicenseManagerError: namespace LicenseManagerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int AUTHORIZATION_HASH = HashingUtils::HashString("AuthorizationException"); -static const int REDIRECT_HASH = HashingUtils::HashString("RedirectException"); -static const int FAILED_DEPENDENCY_HASH = HashingUtils::HashString("FailedDependencyException"); -static const int NO_ENTITLEMENTS_ALLOWED_HASH = HashingUtils::HashString("NoEntitlementsAllowedException"); -static const int UNSUPPORTED_DIGITAL_SIGNATURE_METHOD_HASH = HashingUtils::HashString("UnsupportedDigitalSignatureMethodException"); -static const int INVALID_RESOURCE_STATE_HASH = HashingUtils::HashString("InvalidResourceStateException"); -static const int SERVER_INTERNAL_HASH = HashingUtils::HashString("ServerInternalException"); -static const int ENTITLEMENT_NOT_ALLOWED_HASH = HashingUtils::HashString("EntitlementNotAllowedException"); -static const int LICENSE_USAGE_HASH = HashingUtils::HashString("LicenseUsageException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int RATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RateLimitExceededException"); -static const int FILTER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FilterLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t AUTHORIZATION_HASH = ConstExprHashingUtils::HashString("AuthorizationException"); +static constexpr uint32_t REDIRECT_HASH = ConstExprHashingUtils::HashString("RedirectException"); +static constexpr uint32_t FAILED_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("FailedDependencyException"); +static constexpr uint32_t NO_ENTITLEMENTS_ALLOWED_HASH = ConstExprHashingUtils::HashString("NoEntitlementsAllowedException"); +static constexpr uint32_t UNSUPPORTED_DIGITAL_SIGNATURE_METHOD_HASH = ConstExprHashingUtils::HashString("UnsupportedDigitalSignatureMethodException"); +static constexpr uint32_t INVALID_RESOURCE_STATE_HASH = ConstExprHashingUtils::HashString("InvalidResourceStateException"); +static constexpr uint32_t SERVER_INTERNAL_HASH = ConstExprHashingUtils::HashString("ServerInternalException"); +static constexpr uint32_t ENTITLEMENT_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("EntitlementNotAllowedException"); +static constexpr uint32_t LICENSE_USAGE_HASH = ConstExprHashingUtils::HashString("LicenseUsageException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t RATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RateLimitExceededException"); +static constexpr uint32_t FILTER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FilterLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/ActivationOverrideBehavior.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/ActivationOverrideBehavior.cpp index ea31c144e43..3b61d6956d6 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/ActivationOverrideBehavior.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/ActivationOverrideBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ActivationOverrideBehaviorMapper { - static const int DISTRIBUTED_GRANTS_ONLY_HASH = HashingUtils::HashString("DISTRIBUTED_GRANTS_ONLY"); - static const int ALL_GRANTS_PERMITTED_BY_ISSUER_HASH = HashingUtils::HashString("ALL_GRANTS_PERMITTED_BY_ISSUER"); + static constexpr uint32_t DISTRIBUTED_GRANTS_ONLY_HASH = ConstExprHashingUtils::HashString("DISTRIBUTED_GRANTS_ONLY"); + static constexpr uint32_t ALL_GRANTS_PERMITTED_BY_ISSUER_HASH = ConstExprHashingUtils::HashString("ALL_GRANTS_PERMITTED_BY_ISSUER"); ActivationOverrideBehavior GetActivationOverrideBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISTRIBUTED_GRANTS_ONLY_HASH) { return ActivationOverrideBehavior::DISTRIBUTED_GRANTS_ONLY; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/AllowedOperation.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/AllowedOperation.cpp index 57f60cc51fd..bee7c901970 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/AllowedOperation.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/AllowedOperation.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AllowedOperationMapper { - static const int CreateGrant_HASH = HashingUtils::HashString("CreateGrant"); - static const int CheckoutLicense_HASH = HashingUtils::HashString("CheckoutLicense"); - static const int CheckoutBorrowLicense_HASH = HashingUtils::HashString("CheckoutBorrowLicense"); - static const int CheckInLicense_HASH = HashingUtils::HashString("CheckInLicense"); - static const int ExtendConsumptionLicense_HASH = HashingUtils::HashString("ExtendConsumptionLicense"); - static const int ListPurchasedLicenses_HASH = HashingUtils::HashString("ListPurchasedLicenses"); - static const int CreateToken_HASH = HashingUtils::HashString("CreateToken"); + static constexpr uint32_t CreateGrant_HASH = ConstExprHashingUtils::HashString("CreateGrant"); + static constexpr uint32_t CheckoutLicense_HASH = ConstExprHashingUtils::HashString("CheckoutLicense"); + static constexpr uint32_t CheckoutBorrowLicense_HASH = ConstExprHashingUtils::HashString("CheckoutBorrowLicense"); + static constexpr uint32_t CheckInLicense_HASH = ConstExprHashingUtils::HashString("CheckInLicense"); + static constexpr uint32_t ExtendConsumptionLicense_HASH = ConstExprHashingUtils::HashString("ExtendConsumptionLicense"); + static constexpr uint32_t ListPurchasedLicenses_HASH = ConstExprHashingUtils::HashString("ListPurchasedLicenses"); + static constexpr uint32_t CreateToken_HASH = ConstExprHashingUtils::HashString("CreateToken"); AllowedOperation GetAllowedOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreateGrant_HASH) { return AllowedOperation::CreateGrant; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/CheckoutType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/CheckoutType.cpp index 7380a30a55b..34a46fe0ad2 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/CheckoutType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/CheckoutType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CheckoutTypeMapper { - static const int PROVISIONAL_HASH = HashingUtils::HashString("PROVISIONAL"); - static const int PERPETUAL_HASH = HashingUtils::HashString("PERPETUAL"); + static constexpr uint32_t PROVISIONAL_HASH = ConstExprHashingUtils::HashString("PROVISIONAL"); + static constexpr uint32_t PERPETUAL_HASH = ConstExprHashingUtils::HashString("PERPETUAL"); CheckoutType GetCheckoutTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONAL_HASH) { return CheckoutType::PROVISIONAL; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/DigitalSignatureMethod.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/DigitalSignatureMethod.cpp index 6f9e618fe62..62f9006bc63 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/DigitalSignatureMethod.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/DigitalSignatureMethod.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DigitalSignatureMethodMapper { - static const int JWT_PS384_HASH = HashingUtils::HashString("JWT_PS384"); + static constexpr uint32_t JWT_PS384_HASH = ConstExprHashingUtils::HashString("JWT_PS384"); DigitalSignatureMethod GetDigitalSignatureMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JWT_PS384_HASH) { return DigitalSignatureMethod::JWT_PS384; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementDataUnit.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementDataUnit.cpp index 9d5b35e68ae..a1f116d09c6 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementDataUnit.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementDataUnit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace EntitlementDataUnitMapper { - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int None_HASH = HashingUtils::HashString("None"); - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); EntitlementDataUnit GetEntitlementDataUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Count_HASH) { return EntitlementDataUnit::Count; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementUnit.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementUnit.cpp index 38846da1c22..7cf01816a24 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementUnit.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/EntitlementUnit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace EntitlementUnitMapper { - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int None_HASH = HashingUtils::HashString("None"); - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); EntitlementUnit GetEntitlementUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Count_HASH) { return EntitlementUnit::Count; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/GrantStatus.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/GrantStatus.cpp index db45ffa97a1..39dcec603f6 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/GrantStatus.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/GrantStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace GrantStatusMapper { - static const int PENDING_WORKFLOW_HASH = HashingUtils::HashString("PENDING_WORKFLOW"); - static const int PENDING_ACCEPT_HASH = HashingUtils::HashString("PENDING_ACCEPT"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_WORKFLOW_HASH = HashingUtils::HashString("FAILED_WORKFLOW"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int PENDING_DELETE_HASH = HashingUtils::HashString("PENDING_DELETE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int WORKFLOW_COMPLETED_HASH = HashingUtils::HashString("WORKFLOW_COMPLETED"); + static constexpr uint32_t PENDING_WORKFLOW_HASH = ConstExprHashingUtils::HashString("PENDING_WORKFLOW"); + static constexpr uint32_t PENDING_ACCEPT_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPT"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_WORKFLOW_HASH = ConstExprHashingUtils::HashString("FAILED_WORKFLOW"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_DELETE_HASH = ConstExprHashingUtils::HashString("PENDING_DELETE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t WORKFLOW_COMPLETED_HASH = ConstExprHashingUtils::HashString("WORKFLOW_COMPLETED"); GrantStatus GetGrantStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_WORKFLOW_HASH) { return GrantStatus::PENDING_WORKFLOW; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/InventoryFilterCondition.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/InventoryFilterCondition.cpp index 9e1354475b9..d272751ecb9 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/InventoryFilterCondition.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/InventoryFilterCondition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InventoryFilterConditionMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); - static const int BEGINS_WITH_HASH = HashingUtils::HashString("BEGINS_WITH"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t BEGINS_WITH_HASH = ConstExprHashingUtils::HashString("BEGINS_WITH"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); InventoryFilterCondition GetInventoryFilterConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return InventoryFilterCondition::EQUALS; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConfigurationStatus.cpp index b45a065b25c..c438c393f9e 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LicenseConfigurationStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LicenseConfigurationStatus GetLicenseConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return LicenseConfigurationStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConversionTaskStatus.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConversionTaskStatus.cpp index b7ab4541110..1f72cd8949b 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConversionTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseConversionTaskStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LicenseConversionTaskStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LicenseConversionTaskStatus GetLicenseConversionTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return LicenseConversionTaskStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseCountingType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseCountingType.cpp index 055c4f9edc6..3e762356bc4 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseCountingType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseCountingType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LicenseCountingTypeMapper { - static const int vCPU_HASH = HashingUtils::HashString("vCPU"); - static const int Instance_HASH = HashingUtils::HashString("Instance"); - static const int Core_HASH = HashingUtils::HashString("Core"); - static const int Socket_HASH = HashingUtils::HashString("Socket"); + static constexpr uint32_t vCPU_HASH = ConstExprHashingUtils::HashString("vCPU"); + static constexpr uint32_t Instance_HASH = ConstExprHashingUtils::HashString("Instance"); + static constexpr uint32_t Core_HASH = ConstExprHashingUtils::HashString("Core"); + static constexpr uint32_t Socket_HASH = ConstExprHashingUtils::HashString("Socket"); LicenseCountingType GetLicenseCountingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vCPU_HASH) { return LicenseCountingType::vCPU; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseDeletionStatus.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseDeletionStatus.cpp index 913b6f128de..7a664fd3027 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseDeletionStatus.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseDeletionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LicenseDeletionStatusMapper { - static const int PENDING_DELETE_HASH = HashingUtils::HashString("PENDING_DELETE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_DELETE_HASH = ConstExprHashingUtils::HashString("PENDING_DELETE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); LicenseDeletionStatus GetLicenseDeletionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_DELETE_HASH) { return LicenseDeletionStatus::PENDING_DELETE; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseStatus.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseStatus.cpp index c39b3a9b831..c7dbd6e5db3 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseStatus.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/LicenseStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace LicenseStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_AVAILABLE_HASH = HashingUtils::HashString("PENDING_AVAILABLE"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int PENDING_DELETE_HASH = HashingUtils::HashString("PENDING_DELETE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_AVAILABLE_HASH = ConstExprHashingUtils::HashString("PENDING_AVAILABLE"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PENDING_DELETE_HASH = ConstExprHashingUtils::HashString("PENDING_DELETE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); LicenseStatus GetLicenseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return LicenseStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/ReceivedStatus.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/ReceivedStatus.cpp index 3b6a6ed3168..d538307749a 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/ReceivedStatus.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/ReceivedStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ReceivedStatusMapper { - static const int PENDING_WORKFLOW_HASH = HashingUtils::HashString("PENDING_WORKFLOW"); - static const int PENDING_ACCEPT_HASH = HashingUtils::HashString("PENDING_ACCEPT"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_WORKFLOW_HASH = HashingUtils::HashString("FAILED_WORKFLOW"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int WORKFLOW_COMPLETED_HASH = HashingUtils::HashString("WORKFLOW_COMPLETED"); + static constexpr uint32_t PENDING_WORKFLOW_HASH = ConstExprHashingUtils::HashString("PENDING_WORKFLOW"); + static constexpr uint32_t PENDING_ACCEPT_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPT"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_WORKFLOW_HASH = ConstExprHashingUtils::HashString("FAILED_WORKFLOW"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t WORKFLOW_COMPLETED_HASH = ConstExprHashingUtils::HashString("WORKFLOW_COMPLETED"); ReceivedStatus GetReceivedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_WORKFLOW_HASH) { return ReceivedStatus::PENDING_WORKFLOW; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/RenewType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/RenewType.cpp index b0c7095d496..fe1d0fa12f8 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/RenewType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/RenewType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RenewTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Weekly_HASH = HashingUtils::HashString("Weekly"); - static const int Monthly_HASH = HashingUtils::HashString("Monthly"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Weekly_HASH = ConstExprHashingUtils::HashString("Weekly"); + static constexpr uint32_t Monthly_HASH = ConstExprHashingUtils::HashString("Monthly"); RenewType GetRenewTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return RenewType::None; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/ReportFrequencyType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/ReportFrequencyType.cpp index 0643e771216..e3d2a545f2d 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/ReportFrequencyType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/ReportFrequencyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReportFrequencyTypeMapper { - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); - static const int MONTH_HASH = HashingUtils::HashString("MONTH"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); + static constexpr uint32_t MONTH_HASH = ConstExprHashingUtils::HashString("MONTH"); ReportFrequencyType GetReportFrequencyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAY_HASH) { return ReportFrequencyType::DAY; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/ReportType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/ReportType.cpp index 6fa7f472c21..c337ada9094 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/ReportType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/ReportType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportTypeMapper { - static const int LicenseConfigurationSummaryReport_HASH = HashingUtils::HashString("LicenseConfigurationSummaryReport"); - static const int LicenseConfigurationUsageReport_HASH = HashingUtils::HashString("LicenseConfigurationUsageReport"); + static constexpr uint32_t LicenseConfigurationSummaryReport_HASH = ConstExprHashingUtils::HashString("LicenseConfigurationSummaryReport"); + static constexpr uint32_t LicenseConfigurationUsageReport_HASH = ConstExprHashingUtils::HashString("LicenseConfigurationUsageReport"); ReportType GetReportTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LicenseConfigurationSummaryReport_HASH) { return ReportType::LicenseConfigurationSummaryReport; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/ResourceType.cpp index 5640fe0c5e3..b27e825350e 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int EC2_INSTANCE_HASH = HashingUtils::HashString("EC2_INSTANCE"); - static const int EC2_HOST_HASH = HashingUtils::HashString("EC2_HOST"); - static const int EC2_AMI_HASH = HashingUtils::HashString("EC2_AMI"); - static const int RDS_HASH = HashingUtils::HashString("RDS"); - static const int SYSTEMS_MANAGER_MANAGED_INSTANCE_HASH = HashingUtils::HashString("SYSTEMS_MANAGER_MANAGED_INSTANCE"); + static constexpr uint32_t EC2_INSTANCE_HASH = ConstExprHashingUtils::HashString("EC2_INSTANCE"); + static constexpr uint32_t EC2_HOST_HASH = ConstExprHashingUtils::HashString("EC2_HOST"); + static constexpr uint32_t EC2_AMI_HASH = ConstExprHashingUtils::HashString("EC2_AMI"); + static constexpr uint32_t RDS_HASH = ConstExprHashingUtils::HashString("RDS"); + static constexpr uint32_t SYSTEMS_MANAGER_MANAGED_INSTANCE_HASH = ConstExprHashingUtils::HashString("SYSTEMS_MANAGER_MANAGED_INSTANCE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_INSTANCE_HASH) { return ResourceType::EC2_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-license-manager/source/model/TokenType.cpp b/generated/src/aws-cpp-sdk-license-manager/source/model/TokenType.cpp index 50fc6249e33..b04628d6079 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/model/TokenType.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/model/TokenType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TokenTypeMapper { - static const int REFRESH_TOKEN_HASH = HashingUtils::HashString("REFRESH_TOKEN"); + static constexpr uint32_t REFRESH_TOKEN_HASH = ConstExprHashingUtils::HashString("REFRESH_TOKEN"); TokenType GetTokenTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REFRESH_TOKEN_HASH) { return TokenType::REFRESH_TOKEN; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/LightsailErrors.cpp b/generated/src/aws-cpp-sdk-lightsail/source/LightsailErrors.cpp index 963962688af..db4fae6988b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/LightsailErrors.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/LightsailErrors.cpp @@ -68,17 +68,17 @@ template<> AWS_LIGHTSAIL_API AccountSetupInProgressException LightsailError::Get namespace LightsailErrorMapper { -static const int OPERATION_FAILURE_HASH = HashingUtils::HashString("OperationFailureException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHENTICATED_HASH = HashingUtils::HashString("UnauthenticatedException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int ACCOUNT_SETUP_IN_PROGRESS_HASH = HashingUtils::HashString("AccountSetupInProgressException"); +static constexpr uint32_t OPERATION_FAILURE_HASH = ConstExprHashingUtils::HashString("OperationFailureException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHENTICATED_HASH = ConstExprHashingUtils::HashString("UnauthenticatedException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t ACCOUNT_SETUP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("AccountSetupInProgressException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == OPERATION_FAILURE_HASH) { diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AccessDirection.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AccessDirection.cpp index 61091197125..d1e59f4632b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AccessDirection.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AccessDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessDirectionMapper { - static const int inbound_HASH = HashingUtils::HashString("inbound"); - static const int outbound_HASH = HashingUtils::HashString("outbound"); + static constexpr uint32_t inbound_HASH = ConstExprHashingUtils::HashString("inbound"); + static constexpr uint32_t outbound_HASH = ConstExprHashingUtils::HashString("outbound"); AccessDirection GetAccessDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == inbound_HASH) { return AccessDirection::inbound; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AccessType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AccessType.cpp index e28e1d3bb08..04ed2e3a008 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AccessType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessTypeMapper { - static const int public__HASH = HashingUtils::HashString("public"); - static const int private__HASH = HashingUtils::HashString("private"); + static constexpr uint32_t public__HASH = ConstExprHashingUtils::HashString("public"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); AccessType GetAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == public__HASH) { return AccessType::public_; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AccountLevelBpaSyncStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AccountLevelBpaSyncStatus.cpp index 6cc1ca18f09..a7d797e8a4d 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AccountLevelBpaSyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AccountLevelBpaSyncStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AccountLevelBpaSyncStatusMapper { - static const int InSync_HASH = HashingUtils::HashString("InSync"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int NeverSynced_HASH = HashingUtils::HashString("NeverSynced"); - static const int Defaulted_HASH = HashingUtils::HashString("Defaulted"); + static constexpr uint32_t InSync_HASH = ConstExprHashingUtils::HashString("InSync"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t NeverSynced_HASH = ConstExprHashingUtils::HashString("NeverSynced"); + static constexpr uint32_t Defaulted_HASH = ConstExprHashingUtils::HashString("Defaulted"); AccountLevelBpaSyncStatus GetAccountLevelBpaSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InSync_HASH) { return AccountLevelBpaSyncStatus::InSync; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AddOnType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AddOnType.cpp index 29c5fd8338e..2c0490cad0f 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AddOnType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AddOnType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AddOnTypeMapper { - static const int AutoSnapshot_HASH = HashingUtils::HashString("AutoSnapshot"); - static const int StopInstanceOnIdle_HASH = HashingUtils::HashString("StopInstanceOnIdle"); + static constexpr uint32_t AutoSnapshot_HASH = ConstExprHashingUtils::HashString("AutoSnapshot"); + static constexpr uint32_t StopInstanceOnIdle_HASH = ConstExprHashingUtils::HashString("StopInstanceOnIdle"); AddOnType GetAddOnTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AutoSnapshot_HASH) { return AddOnType::AutoSnapshot; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AlarmState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AlarmState.cpp index 12ff3439efc..3d9574a643f 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AlarmState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AlarmState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AlarmStateMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int ALARM_HASH = HashingUtils::HashString("ALARM"); - static const int INSUFFICIENT_DATA_HASH = HashingUtils::HashString("INSUFFICIENT_DATA"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t ALARM_HASH = ConstExprHashingUtils::HashString("ALARM"); + static constexpr uint32_t INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATA"); AlarmState GetAlarmStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return AlarmState::OK; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AppCategory.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AppCategory.cpp index 893169973a6..eebe65eb1c1 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AppCategory.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AppCategory.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AppCategoryMapper { - static const int LfR_HASH = HashingUtils::HashString("LfR"); + static constexpr uint32_t LfR_HASH = ConstExprHashingUtils::HashString("LfR"); AppCategory GetAppCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LfR_HASH) { return AppCategory::LfR; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AutoMountStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AutoMountStatus.cpp index 69f797bcb08..f0b8da894b3 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AutoMountStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AutoMountStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AutoMountStatusMapper { - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Mounted_HASH = HashingUtils::HashString("Mounted"); - static const int NotMounted_HASH = HashingUtils::HashString("NotMounted"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Mounted_HASH = ConstExprHashingUtils::HashString("Mounted"); + static constexpr uint32_t NotMounted_HASH = ConstExprHashingUtils::HashString("NotMounted"); AutoMountStatus GetAutoMountStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Failed_HASH) { return AutoMountStatus::Failed; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/AutoSnapshotStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/AutoSnapshotStatus.cpp index 313513ef64d..016116556aa 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/AutoSnapshotStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/AutoSnapshotStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AutoSnapshotStatusMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int NotFound_HASH = HashingUtils::HashString("NotFound"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t NotFound_HASH = ConstExprHashingUtils::HashString("NotFound"); AutoSnapshotStatus GetAutoSnapshotStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return AutoSnapshotStatus::Success; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/BPAStatusMessage.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/BPAStatusMessage.cpp index f3e17638d90..0bb17ccef22 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/BPAStatusMessage.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/BPAStatusMessage.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BPAStatusMessageMapper { - static const int DEFAULTED_FOR_SLR_MISSING_HASH = HashingUtils::HashString("DEFAULTED_FOR_SLR_MISSING"); - static const int SYNC_ON_HOLD_HASH = HashingUtils::HashString("SYNC_ON_HOLD"); - static const int DEFAULTED_FOR_SLR_MISSING_ON_HOLD_HASH = HashingUtils::HashString("DEFAULTED_FOR_SLR_MISSING_ON_HOLD"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t DEFAULTED_FOR_SLR_MISSING_HASH = ConstExprHashingUtils::HashString("DEFAULTED_FOR_SLR_MISSING"); + static constexpr uint32_t SYNC_ON_HOLD_HASH = ConstExprHashingUtils::HashString("SYNC_ON_HOLD"); + static constexpr uint32_t DEFAULTED_FOR_SLR_MISSING_ON_HOLD_HASH = ConstExprHashingUtils::HashString("DEFAULTED_FOR_SLR_MISSING_ON_HOLD"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); BPAStatusMessage GetBPAStatusMessageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULTED_FOR_SLR_MISSING_HASH) { return BPAStatusMessage::DEFAULTED_FOR_SLR_MISSING; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/BehaviorEnum.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/BehaviorEnum.cpp index 835317a6d78..38fc100179c 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/BehaviorEnum.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/BehaviorEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BehaviorEnumMapper { - static const int dont_cache_HASH = HashingUtils::HashString("dont-cache"); - static const int cache_HASH = HashingUtils::HashString("cache"); + static constexpr uint32_t dont_cache_HASH = ConstExprHashingUtils::HashString("dont-cache"); + static constexpr uint32_t cache_HASH = ConstExprHashingUtils::HashString("cache"); BehaviorEnum GetBehaviorEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == dont_cache_HASH) { return BehaviorEnum::dont_cache; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/BlueprintType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/BlueprintType.cpp index d84a16df1db..ee9f9ddfee5 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/BlueprintType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/BlueprintType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BlueprintTypeMapper { - static const int os_HASH = HashingUtils::HashString("os"); - static const int app_HASH = HashingUtils::HashString("app"); + static constexpr uint32_t os_HASH = ConstExprHashingUtils::HashString("os"); + static constexpr uint32_t app_HASH = ConstExprHashingUtils::HashString("app"); BlueprintType GetBlueprintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == os_HASH) { return BlueprintType::os; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/BucketMetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/BucketMetricName.cpp index f0329c2e741..f61b07e4b9b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/BucketMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/BucketMetricName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BucketMetricNameMapper { - static const int BucketSizeBytes_HASH = HashingUtils::HashString("BucketSizeBytes"); - static const int NumberOfObjects_HASH = HashingUtils::HashString("NumberOfObjects"); + static constexpr uint32_t BucketSizeBytes_HASH = ConstExprHashingUtils::HashString("BucketSizeBytes"); + static constexpr uint32_t NumberOfObjects_HASH = ConstExprHashingUtils::HashString("NumberOfObjects"); BucketMetricName GetBucketMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BucketSizeBytes_HASH) { return BucketMetricName::BucketSizeBytes; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateDomainValidationStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateDomainValidationStatus.cpp index b5fe1be6763..4a673767f7b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateDomainValidationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateDomainValidationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CertificateDomainValidationStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); CertificateDomainValidationStatus GetCertificateDomainValidationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return CertificateDomainValidationStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateStatus.cpp index 490c89a3061..d606b160d7e 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/CertificateStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CertificateStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int ISSUED_HASH = HashingUtils::HashString("ISSUED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int VALIDATION_TIMED_OUT_HASH = HashingUtils::HashString("VALIDATION_TIMED_OUT"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t ISSUED_HASH = ConstExprHashingUtils::HashString("ISSUED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t VALIDATION_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("VALIDATION_TIMED_OUT"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CertificateStatus GetCertificateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return CertificateStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/CloudFormationStackRecordSourceType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/CloudFormationStackRecordSourceType.cpp index 74b848b8153..950955462bc 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/CloudFormationStackRecordSourceType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/CloudFormationStackRecordSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CloudFormationStackRecordSourceTypeMapper { - static const int ExportSnapshotRecord_HASH = HashingUtils::HashString("ExportSnapshotRecord"); + static constexpr uint32_t ExportSnapshotRecord_HASH = ConstExprHashingUtils::HashString("ExportSnapshotRecord"); CloudFormationStackRecordSourceType GetCloudFormationStackRecordSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ExportSnapshotRecord_HASH) { return CloudFormationStackRecordSourceType::ExportSnapshotRecord; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ComparisonOperator.cpp index e235dc6b55c..f79606cffa6 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ComparisonOperator.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GreaterThanOrEqualToThreshold_HASH = HashingUtils::HashString("GreaterThanOrEqualToThreshold"); - static const int GreaterThanThreshold_HASH = HashingUtils::HashString("GreaterThanThreshold"); - static const int LessThanThreshold_HASH = HashingUtils::HashString("LessThanThreshold"); - static const int LessThanOrEqualToThreshold_HASH = HashingUtils::HashString("LessThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanThreshold"); + static constexpr uint32_t LessThanThreshold_HASH = ConstExprHashingUtils::HashString("LessThanThreshold"); + static constexpr uint32_t LessThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("LessThanOrEqualToThreshold"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreaterThanOrEqualToThreshold_HASH) { return ComparisonOperator::GreaterThanOrEqualToThreshold; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodStatus.cpp index 8967d2951eb..56d7f419eb8 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ContactMethodStatusMapper { - static const int PendingVerification_HASH = HashingUtils::HashString("PendingVerification"); - static const int Valid_HASH = HashingUtils::HashString("Valid"); - static const int Invalid_HASH = HashingUtils::HashString("Invalid"); + static constexpr uint32_t PendingVerification_HASH = ConstExprHashingUtils::HashString("PendingVerification"); + static constexpr uint32_t Valid_HASH = ConstExprHashingUtils::HashString("Valid"); + static constexpr uint32_t Invalid_HASH = ConstExprHashingUtils::HashString("Invalid"); ContactMethodStatus GetContactMethodStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PendingVerification_HASH) { return ContactMethodStatus::PendingVerification; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodVerificationProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodVerificationProtocol.cpp index d9e10692aa8..535ef186e5a 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodVerificationProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContactMethodVerificationProtocol.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContactMethodVerificationProtocolMapper { - static const int Email_HASH = HashingUtils::HashString("Email"); + static constexpr uint32_t Email_HASH = ConstExprHashingUtils::HashString("Email"); ContactMethodVerificationProtocol GetContactMethodVerificationProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Email_HASH) { return ContactMethodVerificationProtocol::Email; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContactProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContactProtocol.cpp index a0fca205fc6..1029bf9a6ca 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContactProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContactProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContactProtocolMapper { - static const int Email_HASH = HashingUtils::HashString("Email"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); + static constexpr uint32_t Email_HASH = ConstExprHashingUtils::HashString("Email"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); ContactProtocol GetContactProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Email_HASH) { return ContactProtocol::Email; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceDeploymentState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceDeploymentState.cpp index a485012feff..8b89b614dca 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceDeploymentState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceDeploymentState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ContainerServiceDeploymentStateMapper { - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ContainerServiceDeploymentState GetContainerServiceDeploymentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATING_HASH) { return ContainerServiceDeploymentState::ACTIVATING; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceMetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceMetricName.cpp index b7b7536950c..589da49151e 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceMetricName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContainerServiceMetricNameMapper { - static const int CPUUtilization_HASH = HashingUtils::HashString("CPUUtilization"); - static const int MemoryUtilization_HASH = HashingUtils::HashString("MemoryUtilization"); + static constexpr uint32_t CPUUtilization_HASH = ConstExprHashingUtils::HashString("CPUUtilization"); + static constexpr uint32_t MemoryUtilization_HASH = ConstExprHashingUtils::HashString("MemoryUtilization"); ContainerServiceMetricName GetContainerServiceMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPUUtilization_HASH) { return ContainerServiceMetricName::CPUUtilization; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServicePowerName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServicePowerName.cpp index 2aa537f72b2..7c1a72ec687 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServicePowerName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServicePowerName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ContainerServicePowerNameMapper { - static const int nano_HASH = HashingUtils::HashString("nano"); - static const int micro_HASH = HashingUtils::HashString("micro"); - static const int small_HASH = HashingUtils::HashString("small"); - static const int medium_HASH = HashingUtils::HashString("medium"); - static const int large_HASH = HashingUtils::HashString("large"); - static const int xlarge_HASH = HashingUtils::HashString("xlarge"); + static constexpr uint32_t nano_HASH = ConstExprHashingUtils::HashString("nano"); + static constexpr uint32_t micro_HASH = ConstExprHashingUtils::HashString("micro"); + static constexpr uint32_t small_HASH = ConstExprHashingUtils::HashString("small"); + static constexpr uint32_t medium_HASH = ConstExprHashingUtils::HashString("medium"); + static constexpr uint32_t large_HASH = ConstExprHashingUtils::HashString("large"); + static constexpr uint32_t xlarge_HASH = ConstExprHashingUtils::HashString("xlarge"); ContainerServicePowerName GetContainerServicePowerNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == nano_HASH) { return ContainerServicePowerName::nano; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceProtocol.cpp index 0bf0615304a..21ed458b06f 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceProtocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ContainerServiceProtocolMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); ContainerServiceProtocol GetContainerServiceProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return ContainerServiceProtocol::HTTP; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceState.cpp index 6bb1781ce52..b540df6a4c3 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ContainerServiceStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DEPLOYING_HASH = HashingUtils::HashString("DEPLOYING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DEPLOYING_HASH = ConstExprHashingUtils::HashString("DEPLOYING"); ContainerServiceState GetContainerServiceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ContainerServiceState::PENDING; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceStateDetailCode.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceStateDetailCode.cpp index 078f2a718a4..2bb9e0dfe40 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceStateDetailCode.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ContainerServiceStateDetailCode.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ContainerServiceStateDetailCodeMapper { - static const int CREATING_SYSTEM_RESOURCES_HASH = HashingUtils::HashString("CREATING_SYSTEM_RESOURCES"); - static const int CREATING_NETWORK_INFRASTRUCTURE_HASH = HashingUtils::HashString("CREATING_NETWORK_INFRASTRUCTURE"); - static const int PROVISIONING_CERTIFICATE_HASH = HashingUtils::HashString("PROVISIONING_CERTIFICATE"); - static const int PROVISIONING_SERVICE_HASH = HashingUtils::HashString("PROVISIONING_SERVICE"); - static const int CREATING_DEPLOYMENT_HASH = HashingUtils::HashString("CREATING_DEPLOYMENT"); - static const int EVALUATING_HEALTH_CHECK_HASH = HashingUtils::HashString("EVALUATING_HEALTH_CHECK"); - static const int ACTIVATING_DEPLOYMENT_HASH = HashingUtils::HashString("ACTIVATING_DEPLOYMENT"); - static const int CERTIFICATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CERTIFICATE_LIMIT_EXCEEDED"); - static const int UNKNOWN_ERROR_HASH = HashingUtils::HashString("UNKNOWN_ERROR"); + static constexpr uint32_t CREATING_SYSTEM_RESOURCES_HASH = ConstExprHashingUtils::HashString("CREATING_SYSTEM_RESOURCES"); + static constexpr uint32_t CREATING_NETWORK_INFRASTRUCTURE_HASH = ConstExprHashingUtils::HashString("CREATING_NETWORK_INFRASTRUCTURE"); + static constexpr uint32_t PROVISIONING_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("PROVISIONING_CERTIFICATE"); + static constexpr uint32_t PROVISIONING_SERVICE_HASH = ConstExprHashingUtils::HashString("PROVISIONING_SERVICE"); + static constexpr uint32_t CREATING_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("CREATING_DEPLOYMENT"); + static constexpr uint32_t EVALUATING_HEALTH_CHECK_HASH = ConstExprHashingUtils::HashString("EVALUATING_HEALTH_CHECK"); + static constexpr uint32_t ACTIVATING_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("ACTIVATING_DEPLOYMENT"); + static constexpr uint32_t CERTIFICATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_LIMIT_EXCEEDED"); + static constexpr uint32_t UNKNOWN_ERROR_HASH = ConstExprHashingUtils::HashString("UNKNOWN_ERROR"); ContainerServiceStateDetailCode GetContainerServiceStateDetailCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_SYSTEM_RESOURCES_HASH) { return ContainerServiceStateDetailCode::CREATING_SYSTEM_RESOURCES; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/Currency.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/Currency.cpp index bd30f3d72a3..32f63b61e23 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/Currency.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/Currency.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CurrencyMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); Currency GetCurrencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return Currency::USD; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/DiskSnapshotState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/DiskSnapshotState.cpp index e24927e7b07..23ac973783a 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/DiskSnapshotState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/DiskSnapshotState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DiskSnapshotStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int error_HASH = HashingUtils::HashString("error"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); DiskSnapshotState GetDiskSnapshotStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return DiskSnapshotState::pending; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/DiskState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/DiskState.cpp index febb9e9b816..122085761be 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/DiskState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/DiskState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DiskStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int error_HASH = HashingUtils::HashString("error"); - static const int available_HASH = HashingUtils::HashString("available"); - static const int in_use_HASH = HashingUtils::HashString("in-use"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t in_use_HASH = ConstExprHashingUtils::HashString("in-use"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); DiskState GetDiskStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return DiskState::pending; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/DistributionMetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/DistributionMetricName.cpp index b5d3338aaef..72f9515e0e9 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/DistributionMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/DistributionMetricName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DistributionMetricNameMapper { - static const int Requests_HASH = HashingUtils::HashString("Requests"); - static const int BytesDownloaded_HASH = HashingUtils::HashString("BytesDownloaded"); - static const int BytesUploaded_HASH = HashingUtils::HashString("BytesUploaded"); - static const int TotalErrorRate_HASH = HashingUtils::HashString("TotalErrorRate"); - static const int Http4xxErrorRate_HASH = HashingUtils::HashString("Http4xxErrorRate"); - static const int Http5xxErrorRate_HASH = HashingUtils::HashString("Http5xxErrorRate"); + static constexpr uint32_t Requests_HASH = ConstExprHashingUtils::HashString("Requests"); + static constexpr uint32_t BytesDownloaded_HASH = ConstExprHashingUtils::HashString("BytesDownloaded"); + static constexpr uint32_t BytesUploaded_HASH = ConstExprHashingUtils::HashString("BytesUploaded"); + static constexpr uint32_t TotalErrorRate_HASH = ConstExprHashingUtils::HashString("TotalErrorRate"); + static constexpr uint32_t Http4xxErrorRate_HASH = ConstExprHashingUtils::HashString("Http4xxErrorRate"); + static constexpr uint32_t Http5xxErrorRate_HASH = ConstExprHashingUtils::HashString("Http5xxErrorRate"); DistributionMetricName GetDistributionMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Requests_HASH) { return DistributionMetricName::Requests; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/DnsRecordCreationStateCode.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/DnsRecordCreationStateCode.cpp index 6b65a950833..f4a0bced0a1 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/DnsRecordCreationStateCode.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/DnsRecordCreationStateCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DnsRecordCreationStateCodeMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DnsRecordCreationStateCode GetDnsRecordCreationStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return DnsRecordCreationStateCode::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ExportSnapshotRecordSourceType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ExportSnapshotRecordSourceType.cpp index d5ed08c244a..80379d8860c 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ExportSnapshotRecordSourceType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ExportSnapshotRecordSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportSnapshotRecordSourceTypeMapper { - static const int InstanceSnapshot_HASH = HashingUtils::HashString("InstanceSnapshot"); - static const int DiskSnapshot_HASH = HashingUtils::HashString("DiskSnapshot"); + static constexpr uint32_t InstanceSnapshot_HASH = ConstExprHashingUtils::HashString("InstanceSnapshot"); + static constexpr uint32_t DiskSnapshot_HASH = ConstExprHashingUtils::HashString("DiskSnapshot"); ExportSnapshotRecordSourceType GetExportSnapshotRecordSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InstanceSnapshot_HASH) { return ExportSnapshotRecordSourceType::InstanceSnapshot; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ForwardValues.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ForwardValues.cpp index b45ab6a73c1..f40509a6203 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ForwardValues.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ForwardValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ForwardValuesMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int allow_list_HASH = HashingUtils::HashString("allow-list"); - static const int all_HASH = HashingUtils::HashString("all"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t allow_list_HASH = ConstExprHashingUtils::HashString("allow-list"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); ForwardValues GetForwardValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return ForwardValues::none; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/HeaderEnum.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/HeaderEnum.cpp index aa326e779aa..a4f68dcf12a 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/HeaderEnum.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/HeaderEnum.cpp @@ -20,26 +20,26 @@ namespace Aws namespace HeaderEnumMapper { - static const int Accept_HASH = HashingUtils::HashString("Accept"); - static const int Accept_Charset_HASH = HashingUtils::HashString("Accept-Charset"); - static const int Accept_Datetime_HASH = HashingUtils::HashString("Accept-Datetime"); - static const int Accept_Encoding_HASH = HashingUtils::HashString("Accept-Encoding"); - static const int Accept_Language_HASH = HashingUtils::HashString("Accept-Language"); - static const int Authorization_HASH = HashingUtils::HashString("Authorization"); - static const int CloudFront_Forwarded_Proto_HASH = HashingUtils::HashString("CloudFront-Forwarded-Proto"); - static const int CloudFront_Is_Desktop_Viewer_HASH = HashingUtils::HashString("CloudFront-Is-Desktop-Viewer"); - static const int CloudFront_Is_Mobile_Viewer_HASH = HashingUtils::HashString("CloudFront-Is-Mobile-Viewer"); - static const int CloudFront_Is_SmartTV_Viewer_HASH = HashingUtils::HashString("CloudFront-Is-SmartTV-Viewer"); - static const int CloudFront_Is_Tablet_Viewer_HASH = HashingUtils::HashString("CloudFront-Is-Tablet-Viewer"); - static const int CloudFront_Viewer_Country_HASH = HashingUtils::HashString("CloudFront-Viewer-Country"); - static const int Host_HASH = HashingUtils::HashString("Host"); - static const int Origin_HASH = HashingUtils::HashString("Origin"); - static const int Referer_HASH = HashingUtils::HashString("Referer"); + static constexpr uint32_t Accept_HASH = ConstExprHashingUtils::HashString("Accept"); + static constexpr uint32_t Accept_Charset_HASH = ConstExprHashingUtils::HashString("Accept-Charset"); + static constexpr uint32_t Accept_Datetime_HASH = ConstExprHashingUtils::HashString("Accept-Datetime"); + static constexpr uint32_t Accept_Encoding_HASH = ConstExprHashingUtils::HashString("Accept-Encoding"); + static constexpr uint32_t Accept_Language_HASH = ConstExprHashingUtils::HashString("Accept-Language"); + static constexpr uint32_t Authorization_HASH = ConstExprHashingUtils::HashString("Authorization"); + static constexpr uint32_t CloudFront_Forwarded_Proto_HASH = ConstExprHashingUtils::HashString("CloudFront-Forwarded-Proto"); + static constexpr uint32_t CloudFront_Is_Desktop_Viewer_HASH = ConstExprHashingUtils::HashString("CloudFront-Is-Desktop-Viewer"); + static constexpr uint32_t CloudFront_Is_Mobile_Viewer_HASH = ConstExprHashingUtils::HashString("CloudFront-Is-Mobile-Viewer"); + static constexpr uint32_t CloudFront_Is_SmartTV_Viewer_HASH = ConstExprHashingUtils::HashString("CloudFront-Is-SmartTV-Viewer"); + static constexpr uint32_t CloudFront_Is_Tablet_Viewer_HASH = ConstExprHashingUtils::HashString("CloudFront-Is-Tablet-Viewer"); + static constexpr uint32_t CloudFront_Viewer_Country_HASH = ConstExprHashingUtils::HashString("CloudFront-Viewer-Country"); + static constexpr uint32_t Host_HASH = ConstExprHashingUtils::HashString("Host"); + static constexpr uint32_t Origin_HASH = ConstExprHashingUtils::HashString("Origin"); + static constexpr uint32_t Referer_HASH = ConstExprHashingUtils::HashString("Referer"); HeaderEnum GetHeaderEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Accept_HASH) { return HeaderEnum::Accept; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/HttpEndpoint.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/HttpEndpoint.cpp index 715bd0c1f20..5ed2f150ef0 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/HttpEndpoint.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/HttpEndpoint.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpEndpointMapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); HttpEndpoint GetHttpEndpointForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return HttpEndpoint::disabled; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/HttpProtocolIpv6.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/HttpProtocolIpv6.cpp index 6dcb3733100..f7d7058d516 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/HttpProtocolIpv6.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/HttpProtocolIpv6.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpProtocolIpv6Mapper { - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabled_HASH = HashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); HttpProtocolIpv6 GetHttpProtocolIpv6ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disabled_HASH) { return HttpProtocolIpv6::disabled; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/HttpTokens.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/HttpTokens.cpp index 76e8c19e199..291ec8bfea9 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/HttpTokens.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/HttpTokens.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpTokensMapper { - static const int optional_HASH = HashingUtils::HashString("optional"); - static const int required_HASH = HashingUtils::HashString("required"); + static constexpr uint32_t optional_HASH = ConstExprHashingUtils::HashString("optional"); + static constexpr uint32_t required_HASH = ConstExprHashingUtils::HashString("required"); HttpTokens GetHttpTokensForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == optional_HASH) { return HttpTokens::optional; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceAccessProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceAccessProtocol.cpp index 15a8c2f2917..8cb3c728595 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceAccessProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceAccessProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceAccessProtocolMapper { - static const int ssh_HASH = HashingUtils::HashString("ssh"); - static const int rdp_HASH = HashingUtils::HashString("rdp"); + static constexpr uint32_t ssh_HASH = ConstExprHashingUtils::HashString("ssh"); + static constexpr uint32_t rdp_HASH = ConstExprHashingUtils::HashString("rdp"); InstanceAccessProtocol GetInstanceAccessProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ssh_HASH) { return InstanceAccessProtocol::ssh; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthReason.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthReason.cpp index 795dae4dbdc..5b6688c9e79 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthReason.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthReason.cpp @@ -20,22 +20,22 @@ namespace Aws namespace InstanceHealthReasonMapper { - static const int Lb_RegistrationInProgress_HASH = HashingUtils::HashString("Lb.RegistrationInProgress"); - static const int Lb_InitialHealthChecking_HASH = HashingUtils::HashString("Lb.InitialHealthChecking"); - static const int Lb_InternalError_HASH = HashingUtils::HashString("Lb.InternalError"); - static const int Instance_ResponseCodeMismatch_HASH = HashingUtils::HashString("Instance.ResponseCodeMismatch"); - static const int Instance_Timeout_HASH = HashingUtils::HashString("Instance.Timeout"); - static const int Instance_FailedHealthChecks_HASH = HashingUtils::HashString("Instance.FailedHealthChecks"); - static const int Instance_NotRegistered_HASH = HashingUtils::HashString("Instance.NotRegistered"); - static const int Instance_NotInUse_HASH = HashingUtils::HashString("Instance.NotInUse"); - static const int Instance_DeregistrationInProgress_HASH = HashingUtils::HashString("Instance.DeregistrationInProgress"); - static const int Instance_InvalidState_HASH = HashingUtils::HashString("Instance.InvalidState"); - static const int Instance_IpUnusable_HASH = HashingUtils::HashString("Instance.IpUnusable"); + static constexpr uint32_t Lb_RegistrationInProgress_HASH = ConstExprHashingUtils::HashString("Lb.RegistrationInProgress"); + static constexpr uint32_t Lb_InitialHealthChecking_HASH = ConstExprHashingUtils::HashString("Lb.InitialHealthChecking"); + static constexpr uint32_t Lb_InternalError_HASH = ConstExprHashingUtils::HashString("Lb.InternalError"); + static constexpr uint32_t Instance_ResponseCodeMismatch_HASH = ConstExprHashingUtils::HashString("Instance.ResponseCodeMismatch"); + static constexpr uint32_t Instance_Timeout_HASH = ConstExprHashingUtils::HashString("Instance.Timeout"); + static constexpr uint32_t Instance_FailedHealthChecks_HASH = ConstExprHashingUtils::HashString("Instance.FailedHealthChecks"); + static constexpr uint32_t Instance_NotRegistered_HASH = ConstExprHashingUtils::HashString("Instance.NotRegistered"); + static constexpr uint32_t Instance_NotInUse_HASH = ConstExprHashingUtils::HashString("Instance.NotInUse"); + static constexpr uint32_t Instance_DeregistrationInProgress_HASH = ConstExprHashingUtils::HashString("Instance.DeregistrationInProgress"); + static constexpr uint32_t Instance_InvalidState_HASH = ConstExprHashingUtils::HashString("Instance.InvalidState"); + static constexpr uint32_t Instance_IpUnusable_HASH = ConstExprHashingUtils::HashString("Instance.IpUnusable"); InstanceHealthReason GetInstanceHealthReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Lb_RegistrationInProgress_HASH) { return InstanceHealthReason::Lb_RegistrationInProgress; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthState.cpp index 5678bad0386..64bcd94dc8c 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceHealthState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InstanceHealthStateMapper { - static const int initial_HASH = HashingUtils::HashString("initial"); - static const int healthy_HASH = HashingUtils::HashString("healthy"); - static const int unhealthy_HASH = HashingUtils::HashString("unhealthy"); - static const int unused_HASH = HashingUtils::HashString("unused"); - static const int draining_HASH = HashingUtils::HashString("draining"); - static const int unavailable_HASH = HashingUtils::HashString("unavailable"); + static constexpr uint32_t initial_HASH = ConstExprHashingUtils::HashString("initial"); + static constexpr uint32_t healthy_HASH = ConstExprHashingUtils::HashString("healthy"); + static constexpr uint32_t unhealthy_HASH = ConstExprHashingUtils::HashString("unhealthy"); + static constexpr uint32_t unused_HASH = ConstExprHashingUtils::HashString("unused"); + static constexpr uint32_t draining_HASH = ConstExprHashingUtils::HashString("draining"); + static constexpr uint32_t unavailable_HASH = ConstExprHashingUtils::HashString("unavailable"); InstanceHealthState GetInstanceHealthStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == initial_HASH) { return InstanceHealthState::initial; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetadataState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetadataState.cpp index cf0231da7fd..6826c1572e2 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetadataState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetadataState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstanceMetadataStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int applied_HASH = HashingUtils::HashString("applied"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t applied_HASH = ConstExprHashingUtils::HashString("applied"); InstanceMetadataState GetInstanceMetadataStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return InstanceMetadataState::pending; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetricName.cpp index a5e91551328..0c7e85565f0 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceMetricName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace InstanceMetricNameMapper { - static const int CPUUtilization_HASH = HashingUtils::HashString("CPUUtilization"); - static const int NetworkIn_HASH = HashingUtils::HashString("NetworkIn"); - static const int NetworkOut_HASH = HashingUtils::HashString("NetworkOut"); - static const int StatusCheckFailed_HASH = HashingUtils::HashString("StatusCheckFailed"); - static const int StatusCheckFailed_Instance_HASH = HashingUtils::HashString("StatusCheckFailed_Instance"); - static const int StatusCheckFailed_System_HASH = HashingUtils::HashString("StatusCheckFailed_System"); - static const int BurstCapacityTime_HASH = HashingUtils::HashString("BurstCapacityTime"); - static const int BurstCapacityPercentage_HASH = HashingUtils::HashString("BurstCapacityPercentage"); - static const int MetadataNoToken_HASH = HashingUtils::HashString("MetadataNoToken"); + static constexpr uint32_t CPUUtilization_HASH = ConstExprHashingUtils::HashString("CPUUtilization"); + static constexpr uint32_t NetworkIn_HASH = ConstExprHashingUtils::HashString("NetworkIn"); + static constexpr uint32_t NetworkOut_HASH = ConstExprHashingUtils::HashString("NetworkOut"); + static constexpr uint32_t StatusCheckFailed_HASH = ConstExprHashingUtils::HashString("StatusCheckFailed"); + static constexpr uint32_t StatusCheckFailed_Instance_HASH = ConstExprHashingUtils::HashString("StatusCheckFailed_Instance"); + static constexpr uint32_t StatusCheckFailed_System_HASH = ConstExprHashingUtils::HashString("StatusCheckFailed_System"); + static constexpr uint32_t BurstCapacityTime_HASH = ConstExprHashingUtils::HashString("BurstCapacityTime"); + static constexpr uint32_t BurstCapacityPercentage_HASH = ConstExprHashingUtils::HashString("BurstCapacityPercentage"); + static constexpr uint32_t MetadataNoToken_HASH = ConstExprHashingUtils::HashString("MetadataNoToken"); InstanceMetricName GetInstanceMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPUUtilization_HASH) { return InstanceMetricName::CPUUtilization; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstancePlatform.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstancePlatform.cpp index 7d8d5a24193..e7258124c53 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstancePlatform.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstancePlatform.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InstancePlatformMapper { - static const int LINUX_UNIX_HASH = HashingUtils::HashString("LINUX_UNIX"); - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_UNIX_HASH = ConstExprHashingUtils::HashString("LINUX_UNIX"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); InstancePlatform GetInstancePlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINUX_UNIX_HASH) { return InstancePlatform::LINUX_UNIX; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceSnapshotState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceSnapshotState.cpp index a8928925490..aaf4996f148 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceSnapshotState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/InstanceSnapshotState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceSnapshotStateMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int error_HASH = HashingUtils::HashString("error"); - static const int available_HASH = HashingUtils::HashString("available"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t error_HASH = ConstExprHashingUtils::HashString("error"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); InstanceSnapshotState GetInstanceSnapshotStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return InstanceSnapshotState::pending; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp index dd20b51d2b5..e33dfcc218e 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpAddressTypeMapper { - static const int dualstack_HASH = HashingUtils::HashString("dualstack"); - static const int ipv4_HASH = HashingUtils::HashString("ipv4"); + static constexpr uint32_t dualstack_HASH = ConstExprHashingUtils::HashString("dualstack"); + static constexpr uint32_t ipv4_HASH = ConstExprHashingUtils::HashString("ipv4"); IpAddressType GetIpAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == dualstack_HASH) { return IpAddressType::dualstack; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerAttributeName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerAttributeName.cpp index 8992d28e6ca..ab2b0cf115a 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerAttributeName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LoadBalancerAttributeNameMapper { - static const int HealthCheckPath_HASH = HashingUtils::HashString("HealthCheckPath"); - static const int SessionStickinessEnabled_HASH = HashingUtils::HashString("SessionStickinessEnabled"); - static const int SessionStickiness_LB_CookieDurationSeconds_HASH = HashingUtils::HashString("SessionStickiness_LB_CookieDurationSeconds"); - static const int HttpsRedirectionEnabled_HASH = HashingUtils::HashString("HttpsRedirectionEnabled"); - static const int TlsPolicyName_HASH = HashingUtils::HashString("TlsPolicyName"); + static constexpr uint32_t HealthCheckPath_HASH = ConstExprHashingUtils::HashString("HealthCheckPath"); + static constexpr uint32_t SessionStickinessEnabled_HASH = ConstExprHashingUtils::HashString("SessionStickinessEnabled"); + static constexpr uint32_t SessionStickiness_LB_CookieDurationSeconds_HASH = ConstExprHashingUtils::HashString("SessionStickiness_LB_CookieDurationSeconds"); + static constexpr uint32_t HttpsRedirectionEnabled_HASH = ConstExprHashingUtils::HashString("HttpsRedirectionEnabled"); + static constexpr uint32_t TlsPolicyName_HASH = ConstExprHashingUtils::HashString("TlsPolicyName"); LoadBalancerAttributeName GetLoadBalancerAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HealthCheckPath_HASH) { return LoadBalancerAttributeName::HealthCheckPath; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerMetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerMetricName.cpp index c404fdef4c8..4a0d9901ea5 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerMetricName.cpp @@ -20,23 +20,23 @@ namespace Aws namespace LoadBalancerMetricNameMapper { - static const int ClientTLSNegotiationErrorCount_HASH = HashingUtils::HashString("ClientTLSNegotiationErrorCount"); - static const int HealthyHostCount_HASH = HashingUtils::HashString("HealthyHostCount"); - static const int UnhealthyHostCount_HASH = HashingUtils::HashString("UnhealthyHostCount"); - static const int HTTPCode_LB_4XX_Count_HASH = HashingUtils::HashString("HTTPCode_LB_4XX_Count"); - static const int HTTPCode_LB_5XX_Count_HASH = HashingUtils::HashString("HTTPCode_LB_5XX_Count"); - static const int HTTPCode_Instance_2XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_2XX_Count"); - static const int HTTPCode_Instance_3XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_3XX_Count"); - static const int HTTPCode_Instance_4XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_4XX_Count"); - static const int HTTPCode_Instance_5XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_5XX_Count"); - static const int InstanceResponseTime_HASH = HashingUtils::HashString("InstanceResponseTime"); - static const int RejectedConnectionCount_HASH = HashingUtils::HashString("RejectedConnectionCount"); - static const int RequestCount_HASH = HashingUtils::HashString("RequestCount"); + static constexpr uint32_t ClientTLSNegotiationErrorCount_HASH = ConstExprHashingUtils::HashString("ClientTLSNegotiationErrorCount"); + static constexpr uint32_t HealthyHostCount_HASH = ConstExprHashingUtils::HashString("HealthyHostCount"); + static constexpr uint32_t UnhealthyHostCount_HASH = ConstExprHashingUtils::HashString("UnhealthyHostCount"); + static constexpr uint32_t HTTPCode_LB_4XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_LB_4XX_Count"); + static constexpr uint32_t HTTPCode_LB_5XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_LB_5XX_Count"); + static constexpr uint32_t HTTPCode_Instance_2XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_2XX_Count"); + static constexpr uint32_t HTTPCode_Instance_3XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_3XX_Count"); + static constexpr uint32_t HTTPCode_Instance_4XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_4XX_Count"); + static constexpr uint32_t HTTPCode_Instance_5XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_5XX_Count"); + static constexpr uint32_t InstanceResponseTime_HASH = ConstExprHashingUtils::HashString("InstanceResponseTime"); + static constexpr uint32_t RejectedConnectionCount_HASH = ConstExprHashingUtils::HashString("RejectedConnectionCount"); + static constexpr uint32_t RequestCount_HASH = ConstExprHashingUtils::HashString("RequestCount"); LoadBalancerMetricName GetLoadBalancerMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ClientTLSNegotiationErrorCount_HASH) { return LoadBalancerMetricName::ClientTLSNegotiationErrorCount; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerProtocol.cpp index 16b5d24dca7..5eb61463bf8 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LoadBalancerProtocolMapper { - static const int HTTP_HTTPS_HASH = HashingUtils::HashString("HTTP_HTTPS"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTP_HTTPS_HASH = ConstExprHashingUtils::HashString("HTTP_HTTPS"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); LoadBalancerProtocol GetLoadBalancerProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HTTPS_HASH) { return LoadBalancerProtocol::HTTP_HTTPS; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerState.cpp index df4fc588bf6..9a6efd5a602 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LoadBalancerStateMapper { - static const int active_HASH = HashingUtils::HashString("active"); - static const int provisioning_HASH = HashingUtils::HashString("provisioning"); - static const int active_impaired_HASH = HashingUtils::HashString("active_impaired"); - static const int failed_HASH = HashingUtils::HashString("failed"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t provisioning_HASH = ConstExprHashingUtils::HashString("provisioning"); + static constexpr uint32_t active_impaired_HASH = ConstExprHashingUtils::HashString("active_impaired"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); LoadBalancerState GetLoadBalancerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == active_HASH) { return LoadBalancerState::active; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDnsRecordCreationStateCode.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDnsRecordCreationStateCode.cpp index 8c36d4089df..c3300869318 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDnsRecordCreationStateCode.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDnsRecordCreationStateCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LoadBalancerTlsCertificateDnsRecordCreationStateCodeMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LoadBalancerTlsCertificateDnsRecordCreationStateCode GetLoadBalancerTlsCertificateDnsRecordCreationStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return LoadBalancerTlsCertificateDnsRecordCreationStateCode::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDomainStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDomainStatus.cpp index f98c76a6216..d7d07738313 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateDomainStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LoadBalancerTlsCertificateDomainStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); LoadBalancerTlsCertificateDomainStatus GetLoadBalancerTlsCertificateDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return LoadBalancerTlsCertificateDomainStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateFailureReason.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateFailureReason.cpp index 77190b73aca..db306d5634b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateFailureReason.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateFailureReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LoadBalancerTlsCertificateFailureReasonMapper { - static const int NO_AVAILABLE_CONTACTS_HASH = HashingUtils::HashString("NO_AVAILABLE_CONTACTS"); - static const int ADDITIONAL_VERIFICATION_REQUIRED_HASH = HashingUtils::HashString("ADDITIONAL_VERIFICATION_REQUIRED"); - static const int DOMAIN_NOT_ALLOWED_HASH = HashingUtils::HashString("DOMAIN_NOT_ALLOWED"); - static const int INVALID_PUBLIC_DOMAIN_HASH = HashingUtils::HashString("INVALID_PUBLIC_DOMAIN"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t NO_AVAILABLE_CONTACTS_HASH = ConstExprHashingUtils::HashString("NO_AVAILABLE_CONTACTS"); + static constexpr uint32_t ADDITIONAL_VERIFICATION_REQUIRED_HASH = ConstExprHashingUtils::HashString("ADDITIONAL_VERIFICATION_REQUIRED"); + static constexpr uint32_t DOMAIN_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("DOMAIN_NOT_ALLOWED"); + static constexpr uint32_t INVALID_PUBLIC_DOMAIN_HASH = ConstExprHashingUtils::HashString("INVALID_PUBLIC_DOMAIN"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); LoadBalancerTlsCertificateFailureReason GetLoadBalancerTlsCertificateFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_AVAILABLE_CONTACTS_HASH) { return LoadBalancerTlsCertificateFailureReason::NO_AVAILABLE_CONTACTS; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRenewalStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRenewalStatus.cpp index 713038a2487..89534390dc1 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRenewalStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRenewalStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LoadBalancerTlsCertificateRenewalStatusMapper { - static const int PENDING_AUTO_RENEWAL_HASH = HashingUtils::HashString("PENDING_AUTO_RENEWAL"); - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_AUTO_RENEWAL_HASH = ConstExprHashingUtils::HashString("PENDING_AUTO_RENEWAL"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LoadBalancerTlsCertificateRenewalStatus GetLoadBalancerTlsCertificateRenewalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_AUTO_RENEWAL_HASH) { return LoadBalancerTlsCertificateRenewalStatus::PENDING_AUTO_RENEWAL; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRevocationReason.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRevocationReason.cpp index 7e39a531bc1..bea03475096 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRevocationReason.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateRevocationReason.cpp @@ -20,21 +20,21 @@ namespace Aws namespace LoadBalancerTlsCertificateRevocationReasonMapper { - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); - static const int KEY_COMPROMISE_HASH = HashingUtils::HashString("KEY_COMPROMISE"); - static const int CA_COMPROMISE_HASH = HashingUtils::HashString("CA_COMPROMISE"); - static const int AFFILIATION_CHANGED_HASH = HashingUtils::HashString("AFFILIATION_CHANGED"); - static const int SUPERCEDED_HASH = HashingUtils::HashString("SUPERCEDED"); - static const int CESSATION_OF_OPERATION_HASH = HashingUtils::HashString("CESSATION_OF_OPERATION"); - static const int CERTIFICATE_HOLD_HASH = HashingUtils::HashString("CERTIFICATE_HOLD"); - static const int REMOVE_FROM_CRL_HASH = HashingUtils::HashString("REMOVE_FROM_CRL"); - static const int PRIVILEGE_WITHDRAWN_HASH = HashingUtils::HashString("PRIVILEGE_WITHDRAWN"); - static const int A_A_COMPROMISE_HASH = HashingUtils::HashString("A_A_COMPROMISE"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t KEY_COMPROMISE_HASH = ConstExprHashingUtils::HashString("KEY_COMPROMISE"); + static constexpr uint32_t CA_COMPROMISE_HASH = ConstExprHashingUtils::HashString("CA_COMPROMISE"); + static constexpr uint32_t AFFILIATION_CHANGED_HASH = ConstExprHashingUtils::HashString("AFFILIATION_CHANGED"); + static constexpr uint32_t SUPERCEDED_HASH = ConstExprHashingUtils::HashString("SUPERCEDED"); + static constexpr uint32_t CESSATION_OF_OPERATION_HASH = ConstExprHashingUtils::HashString("CESSATION_OF_OPERATION"); + static constexpr uint32_t CERTIFICATE_HOLD_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_HOLD"); + static constexpr uint32_t REMOVE_FROM_CRL_HASH = ConstExprHashingUtils::HashString("REMOVE_FROM_CRL"); + static constexpr uint32_t PRIVILEGE_WITHDRAWN_HASH = ConstExprHashingUtils::HashString("PRIVILEGE_WITHDRAWN"); + static constexpr uint32_t A_A_COMPROMISE_HASH = ConstExprHashingUtils::HashString("A_A_COMPROMISE"); LoadBalancerTlsCertificateRevocationReason GetLoadBalancerTlsCertificateRevocationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNSPECIFIED_HASH) { return LoadBalancerTlsCertificateRevocationReason::UNSPECIFIED; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateStatus.cpp index c6b31f6d72e..64c50831f6c 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/LoadBalancerTlsCertificateStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace LoadBalancerTlsCertificateStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int ISSUED_HASH = HashingUtils::HashString("ISSUED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int VALIDATION_TIMED_OUT_HASH = HashingUtils::HashString("VALIDATION_TIMED_OUT"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t ISSUED_HASH = ConstExprHashingUtils::HashString("ISSUED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t VALIDATION_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("VALIDATION_TIMED_OUT"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); LoadBalancerTlsCertificateStatus GetLoadBalancerTlsCertificateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return LoadBalancerTlsCertificateStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/MetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/MetricName.cpp index f940c109e2c..a348e284b40 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/MetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/MetricName.cpp @@ -20,36 +20,36 @@ namespace Aws namespace MetricNameMapper { - static const int CPUUtilization_HASH = HashingUtils::HashString("CPUUtilization"); - static const int NetworkIn_HASH = HashingUtils::HashString("NetworkIn"); - static const int NetworkOut_HASH = HashingUtils::HashString("NetworkOut"); - static const int StatusCheckFailed_HASH = HashingUtils::HashString("StatusCheckFailed"); - static const int StatusCheckFailed_Instance_HASH = HashingUtils::HashString("StatusCheckFailed_Instance"); - static const int StatusCheckFailed_System_HASH = HashingUtils::HashString("StatusCheckFailed_System"); - static const int ClientTLSNegotiationErrorCount_HASH = HashingUtils::HashString("ClientTLSNegotiationErrorCount"); - static const int HealthyHostCount_HASH = HashingUtils::HashString("HealthyHostCount"); - static const int UnhealthyHostCount_HASH = HashingUtils::HashString("UnhealthyHostCount"); - static const int HTTPCode_LB_4XX_Count_HASH = HashingUtils::HashString("HTTPCode_LB_4XX_Count"); - static const int HTTPCode_LB_5XX_Count_HASH = HashingUtils::HashString("HTTPCode_LB_5XX_Count"); - static const int HTTPCode_Instance_2XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_2XX_Count"); - static const int HTTPCode_Instance_3XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_3XX_Count"); - static const int HTTPCode_Instance_4XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_4XX_Count"); - static const int HTTPCode_Instance_5XX_Count_HASH = HashingUtils::HashString("HTTPCode_Instance_5XX_Count"); - static const int InstanceResponseTime_HASH = HashingUtils::HashString("InstanceResponseTime"); - static const int RejectedConnectionCount_HASH = HashingUtils::HashString("RejectedConnectionCount"); - static const int RequestCount_HASH = HashingUtils::HashString("RequestCount"); - static const int DatabaseConnections_HASH = HashingUtils::HashString("DatabaseConnections"); - static const int DiskQueueDepth_HASH = HashingUtils::HashString("DiskQueueDepth"); - static const int FreeStorageSpace_HASH = HashingUtils::HashString("FreeStorageSpace"); - static const int NetworkReceiveThroughput_HASH = HashingUtils::HashString("NetworkReceiveThroughput"); - static const int NetworkTransmitThroughput_HASH = HashingUtils::HashString("NetworkTransmitThroughput"); - static const int BurstCapacityTime_HASH = HashingUtils::HashString("BurstCapacityTime"); - static const int BurstCapacityPercentage_HASH = HashingUtils::HashString("BurstCapacityPercentage"); + static constexpr uint32_t CPUUtilization_HASH = ConstExprHashingUtils::HashString("CPUUtilization"); + static constexpr uint32_t NetworkIn_HASH = ConstExprHashingUtils::HashString("NetworkIn"); + static constexpr uint32_t NetworkOut_HASH = ConstExprHashingUtils::HashString("NetworkOut"); + static constexpr uint32_t StatusCheckFailed_HASH = ConstExprHashingUtils::HashString("StatusCheckFailed"); + static constexpr uint32_t StatusCheckFailed_Instance_HASH = ConstExprHashingUtils::HashString("StatusCheckFailed_Instance"); + static constexpr uint32_t StatusCheckFailed_System_HASH = ConstExprHashingUtils::HashString("StatusCheckFailed_System"); + static constexpr uint32_t ClientTLSNegotiationErrorCount_HASH = ConstExprHashingUtils::HashString("ClientTLSNegotiationErrorCount"); + static constexpr uint32_t HealthyHostCount_HASH = ConstExprHashingUtils::HashString("HealthyHostCount"); + static constexpr uint32_t UnhealthyHostCount_HASH = ConstExprHashingUtils::HashString("UnhealthyHostCount"); + static constexpr uint32_t HTTPCode_LB_4XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_LB_4XX_Count"); + static constexpr uint32_t HTTPCode_LB_5XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_LB_5XX_Count"); + static constexpr uint32_t HTTPCode_Instance_2XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_2XX_Count"); + static constexpr uint32_t HTTPCode_Instance_3XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_3XX_Count"); + static constexpr uint32_t HTTPCode_Instance_4XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_4XX_Count"); + static constexpr uint32_t HTTPCode_Instance_5XX_Count_HASH = ConstExprHashingUtils::HashString("HTTPCode_Instance_5XX_Count"); + static constexpr uint32_t InstanceResponseTime_HASH = ConstExprHashingUtils::HashString("InstanceResponseTime"); + static constexpr uint32_t RejectedConnectionCount_HASH = ConstExprHashingUtils::HashString("RejectedConnectionCount"); + static constexpr uint32_t RequestCount_HASH = ConstExprHashingUtils::HashString("RequestCount"); + static constexpr uint32_t DatabaseConnections_HASH = ConstExprHashingUtils::HashString("DatabaseConnections"); + static constexpr uint32_t DiskQueueDepth_HASH = ConstExprHashingUtils::HashString("DiskQueueDepth"); + static constexpr uint32_t FreeStorageSpace_HASH = ConstExprHashingUtils::HashString("FreeStorageSpace"); + static constexpr uint32_t NetworkReceiveThroughput_HASH = ConstExprHashingUtils::HashString("NetworkReceiveThroughput"); + static constexpr uint32_t NetworkTransmitThroughput_HASH = ConstExprHashingUtils::HashString("NetworkTransmitThroughput"); + static constexpr uint32_t BurstCapacityTime_HASH = ConstExprHashingUtils::HashString("BurstCapacityTime"); + static constexpr uint32_t BurstCapacityPercentage_HASH = ConstExprHashingUtils::HashString("BurstCapacityPercentage"); MetricName GetMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPUUtilization_HASH) { return MetricName::CPUUtilization; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/MetricStatistic.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/MetricStatistic.cpp index f87801d535f..373a625083b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/MetricStatistic.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/MetricStatistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MetricStatisticMapper { - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); MetricStatistic GetMetricStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Minimum_HASH) { return MetricStatistic::Minimum; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/MetricUnit.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/MetricUnit.cpp index f0600f93cb5..8919de7a629 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/MetricUnit.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/MetricUnit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace MetricUnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); MetricUnit GetMetricUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return MetricUnit::Seconds; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/NameServersUpdateStateCode.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/NameServersUpdateStateCode.cpp index 0ba02dcec32..e8e4f21c97e 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/NameServersUpdateStateCode.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/NameServersUpdateStateCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NameServersUpdateStateCodeMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); NameServersUpdateStateCode GetNameServersUpdateStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return NameServersUpdateStateCode::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp index a20f630b8aa..e783f629067 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NetworkProtocolMapper { - static const int tcp_HASH = HashingUtils::HashString("tcp"); - static const int all_HASH = HashingUtils::HashString("all"); - static const int udp_HASH = HashingUtils::HashString("udp"); - static const int icmp_HASH = HashingUtils::HashString("icmp"); + static constexpr uint32_t tcp_HASH = ConstExprHashingUtils::HashString("tcp"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); + static constexpr uint32_t udp_HASH = ConstExprHashingUtils::HashString("udp"); + static constexpr uint32_t icmp_HASH = ConstExprHashingUtils::HashString("icmp"); NetworkProtocol GetNetworkProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == tcp_HASH) { return NetworkProtocol::tcp; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/OperationStatus.cpp index 978335a37e0..4a0caefe9a9 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/OperationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OperationStatusMapper { - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); - static const int Started_HASH = HashingUtils::HashString("Started"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); + static constexpr uint32_t Started_HASH = ConstExprHashingUtils::HashString("Started"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotStarted_HASH) { return OperationStatus::NotStarted; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/OperationType.cpp index a1e50affdcf..70a42dc79a4 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/OperationType.cpp @@ -20,93 +20,93 @@ namespace Aws namespace OperationTypeMapper { - static const int DeleteKnownHostKeys_HASH = HashingUtils::HashString("DeleteKnownHostKeys"); - static const int DeleteInstance_HASH = HashingUtils::HashString("DeleteInstance"); - static const int CreateInstance_HASH = HashingUtils::HashString("CreateInstance"); - static const int StopInstance_HASH = HashingUtils::HashString("StopInstance"); - static const int StartInstance_HASH = HashingUtils::HashString("StartInstance"); - static const int RebootInstance_HASH = HashingUtils::HashString("RebootInstance"); - static const int OpenInstancePublicPorts_HASH = HashingUtils::HashString("OpenInstancePublicPorts"); - static const int PutInstancePublicPorts_HASH = HashingUtils::HashString("PutInstancePublicPorts"); - static const int CloseInstancePublicPorts_HASH = HashingUtils::HashString("CloseInstancePublicPorts"); - static const int AllocateStaticIp_HASH = HashingUtils::HashString("AllocateStaticIp"); - static const int ReleaseStaticIp_HASH = HashingUtils::HashString("ReleaseStaticIp"); - static const int AttachStaticIp_HASH = HashingUtils::HashString("AttachStaticIp"); - static const int DetachStaticIp_HASH = HashingUtils::HashString("DetachStaticIp"); - static const int UpdateDomainEntry_HASH = HashingUtils::HashString("UpdateDomainEntry"); - static const int DeleteDomainEntry_HASH = HashingUtils::HashString("DeleteDomainEntry"); - static const int CreateDomain_HASH = HashingUtils::HashString("CreateDomain"); - static const int DeleteDomain_HASH = HashingUtils::HashString("DeleteDomain"); - static const int CreateInstanceSnapshot_HASH = HashingUtils::HashString("CreateInstanceSnapshot"); - static const int DeleteInstanceSnapshot_HASH = HashingUtils::HashString("DeleteInstanceSnapshot"); - static const int CreateInstancesFromSnapshot_HASH = HashingUtils::HashString("CreateInstancesFromSnapshot"); - static const int CreateLoadBalancer_HASH = HashingUtils::HashString("CreateLoadBalancer"); - static const int DeleteLoadBalancer_HASH = HashingUtils::HashString("DeleteLoadBalancer"); - static const int AttachInstancesToLoadBalancer_HASH = HashingUtils::HashString("AttachInstancesToLoadBalancer"); - static const int DetachInstancesFromLoadBalancer_HASH = HashingUtils::HashString("DetachInstancesFromLoadBalancer"); - static const int UpdateLoadBalancerAttribute_HASH = HashingUtils::HashString("UpdateLoadBalancerAttribute"); - static const int CreateLoadBalancerTlsCertificate_HASH = HashingUtils::HashString("CreateLoadBalancerTlsCertificate"); - static const int DeleteLoadBalancerTlsCertificate_HASH = HashingUtils::HashString("DeleteLoadBalancerTlsCertificate"); - static const int AttachLoadBalancerTlsCertificate_HASH = HashingUtils::HashString("AttachLoadBalancerTlsCertificate"); - static const int CreateDisk_HASH = HashingUtils::HashString("CreateDisk"); - static const int DeleteDisk_HASH = HashingUtils::HashString("DeleteDisk"); - static const int AttachDisk_HASH = HashingUtils::HashString("AttachDisk"); - static const int DetachDisk_HASH = HashingUtils::HashString("DetachDisk"); - static const int CreateDiskSnapshot_HASH = HashingUtils::HashString("CreateDiskSnapshot"); - static const int DeleteDiskSnapshot_HASH = HashingUtils::HashString("DeleteDiskSnapshot"); - static const int CreateDiskFromSnapshot_HASH = HashingUtils::HashString("CreateDiskFromSnapshot"); - static const int CreateRelationalDatabase_HASH = HashingUtils::HashString("CreateRelationalDatabase"); - static const int UpdateRelationalDatabase_HASH = HashingUtils::HashString("UpdateRelationalDatabase"); - static const int DeleteRelationalDatabase_HASH = HashingUtils::HashString("DeleteRelationalDatabase"); - static const int CreateRelationalDatabaseFromSnapshot_HASH = HashingUtils::HashString("CreateRelationalDatabaseFromSnapshot"); - static const int CreateRelationalDatabaseSnapshot_HASH = HashingUtils::HashString("CreateRelationalDatabaseSnapshot"); - static const int DeleteRelationalDatabaseSnapshot_HASH = HashingUtils::HashString("DeleteRelationalDatabaseSnapshot"); - static const int UpdateRelationalDatabaseParameters_HASH = HashingUtils::HashString("UpdateRelationalDatabaseParameters"); - static const int StartRelationalDatabase_HASH = HashingUtils::HashString("StartRelationalDatabase"); - static const int RebootRelationalDatabase_HASH = HashingUtils::HashString("RebootRelationalDatabase"); - static const int StopRelationalDatabase_HASH = HashingUtils::HashString("StopRelationalDatabase"); - static const int EnableAddOn_HASH = HashingUtils::HashString("EnableAddOn"); - static const int DisableAddOn_HASH = HashingUtils::HashString("DisableAddOn"); - static const int PutAlarm_HASH = HashingUtils::HashString("PutAlarm"); - static const int GetAlarms_HASH = HashingUtils::HashString("GetAlarms"); - static const int DeleteAlarm_HASH = HashingUtils::HashString("DeleteAlarm"); - static const int TestAlarm_HASH = HashingUtils::HashString("TestAlarm"); - static const int CreateContactMethod_HASH = HashingUtils::HashString("CreateContactMethod"); - static const int GetContactMethods_HASH = HashingUtils::HashString("GetContactMethods"); - static const int SendContactMethodVerification_HASH = HashingUtils::HashString("SendContactMethodVerification"); - static const int DeleteContactMethod_HASH = HashingUtils::HashString("DeleteContactMethod"); - static const int CreateDistribution_HASH = HashingUtils::HashString("CreateDistribution"); - static const int UpdateDistribution_HASH = HashingUtils::HashString("UpdateDistribution"); - static const int DeleteDistribution_HASH = HashingUtils::HashString("DeleteDistribution"); - static const int ResetDistributionCache_HASH = HashingUtils::HashString("ResetDistributionCache"); - static const int AttachCertificateToDistribution_HASH = HashingUtils::HashString("AttachCertificateToDistribution"); - static const int DetachCertificateFromDistribution_HASH = HashingUtils::HashString("DetachCertificateFromDistribution"); - static const int UpdateDistributionBundle_HASH = HashingUtils::HashString("UpdateDistributionBundle"); - static const int SetIpAddressType_HASH = HashingUtils::HashString("SetIpAddressType"); - static const int CreateCertificate_HASH = HashingUtils::HashString("CreateCertificate"); - static const int DeleteCertificate_HASH = HashingUtils::HashString("DeleteCertificate"); - static const int CreateContainerService_HASH = HashingUtils::HashString("CreateContainerService"); - static const int UpdateContainerService_HASH = HashingUtils::HashString("UpdateContainerService"); - static const int DeleteContainerService_HASH = HashingUtils::HashString("DeleteContainerService"); - static const int CreateContainerServiceDeployment_HASH = HashingUtils::HashString("CreateContainerServiceDeployment"); - static const int CreateContainerServiceRegistryLogin_HASH = HashingUtils::HashString("CreateContainerServiceRegistryLogin"); - static const int RegisterContainerImage_HASH = HashingUtils::HashString("RegisterContainerImage"); - static const int DeleteContainerImage_HASH = HashingUtils::HashString("DeleteContainerImage"); - static const int CreateBucket_HASH = HashingUtils::HashString("CreateBucket"); - static const int DeleteBucket_HASH = HashingUtils::HashString("DeleteBucket"); - static const int CreateBucketAccessKey_HASH = HashingUtils::HashString("CreateBucketAccessKey"); - static const int DeleteBucketAccessKey_HASH = HashingUtils::HashString("DeleteBucketAccessKey"); - static const int UpdateBucketBundle_HASH = HashingUtils::HashString("UpdateBucketBundle"); - static const int UpdateBucket_HASH = HashingUtils::HashString("UpdateBucket"); - static const int SetResourceAccessForBucket_HASH = HashingUtils::HashString("SetResourceAccessForBucket"); - static const int UpdateInstanceMetadataOptions_HASH = HashingUtils::HashString("UpdateInstanceMetadataOptions"); - static const int StartGUISession_HASH = HashingUtils::HashString("StartGUISession"); - static const int StopGUISession_HASH = HashingUtils::HashString("StopGUISession"); + static constexpr uint32_t DeleteKnownHostKeys_HASH = ConstExprHashingUtils::HashString("DeleteKnownHostKeys"); + static constexpr uint32_t DeleteInstance_HASH = ConstExprHashingUtils::HashString("DeleteInstance"); + static constexpr uint32_t CreateInstance_HASH = ConstExprHashingUtils::HashString("CreateInstance"); + static constexpr uint32_t StopInstance_HASH = ConstExprHashingUtils::HashString("StopInstance"); + static constexpr uint32_t StartInstance_HASH = ConstExprHashingUtils::HashString("StartInstance"); + static constexpr uint32_t RebootInstance_HASH = ConstExprHashingUtils::HashString("RebootInstance"); + static constexpr uint32_t OpenInstancePublicPorts_HASH = ConstExprHashingUtils::HashString("OpenInstancePublicPorts"); + static constexpr uint32_t PutInstancePublicPorts_HASH = ConstExprHashingUtils::HashString("PutInstancePublicPorts"); + static constexpr uint32_t CloseInstancePublicPorts_HASH = ConstExprHashingUtils::HashString("CloseInstancePublicPorts"); + static constexpr uint32_t AllocateStaticIp_HASH = ConstExprHashingUtils::HashString("AllocateStaticIp"); + static constexpr uint32_t ReleaseStaticIp_HASH = ConstExprHashingUtils::HashString("ReleaseStaticIp"); + static constexpr uint32_t AttachStaticIp_HASH = ConstExprHashingUtils::HashString("AttachStaticIp"); + static constexpr uint32_t DetachStaticIp_HASH = ConstExprHashingUtils::HashString("DetachStaticIp"); + static constexpr uint32_t UpdateDomainEntry_HASH = ConstExprHashingUtils::HashString("UpdateDomainEntry"); + static constexpr uint32_t DeleteDomainEntry_HASH = ConstExprHashingUtils::HashString("DeleteDomainEntry"); + static constexpr uint32_t CreateDomain_HASH = ConstExprHashingUtils::HashString("CreateDomain"); + static constexpr uint32_t DeleteDomain_HASH = ConstExprHashingUtils::HashString("DeleteDomain"); + static constexpr uint32_t CreateInstanceSnapshot_HASH = ConstExprHashingUtils::HashString("CreateInstanceSnapshot"); + static constexpr uint32_t DeleteInstanceSnapshot_HASH = ConstExprHashingUtils::HashString("DeleteInstanceSnapshot"); + static constexpr uint32_t CreateInstancesFromSnapshot_HASH = ConstExprHashingUtils::HashString("CreateInstancesFromSnapshot"); + static constexpr uint32_t CreateLoadBalancer_HASH = ConstExprHashingUtils::HashString("CreateLoadBalancer"); + static constexpr uint32_t DeleteLoadBalancer_HASH = ConstExprHashingUtils::HashString("DeleteLoadBalancer"); + static constexpr uint32_t AttachInstancesToLoadBalancer_HASH = ConstExprHashingUtils::HashString("AttachInstancesToLoadBalancer"); + static constexpr uint32_t DetachInstancesFromLoadBalancer_HASH = ConstExprHashingUtils::HashString("DetachInstancesFromLoadBalancer"); + static constexpr uint32_t UpdateLoadBalancerAttribute_HASH = ConstExprHashingUtils::HashString("UpdateLoadBalancerAttribute"); + static constexpr uint32_t CreateLoadBalancerTlsCertificate_HASH = ConstExprHashingUtils::HashString("CreateLoadBalancerTlsCertificate"); + static constexpr uint32_t DeleteLoadBalancerTlsCertificate_HASH = ConstExprHashingUtils::HashString("DeleteLoadBalancerTlsCertificate"); + static constexpr uint32_t AttachLoadBalancerTlsCertificate_HASH = ConstExprHashingUtils::HashString("AttachLoadBalancerTlsCertificate"); + static constexpr uint32_t CreateDisk_HASH = ConstExprHashingUtils::HashString("CreateDisk"); + static constexpr uint32_t DeleteDisk_HASH = ConstExprHashingUtils::HashString("DeleteDisk"); + static constexpr uint32_t AttachDisk_HASH = ConstExprHashingUtils::HashString("AttachDisk"); + static constexpr uint32_t DetachDisk_HASH = ConstExprHashingUtils::HashString("DetachDisk"); + static constexpr uint32_t CreateDiskSnapshot_HASH = ConstExprHashingUtils::HashString("CreateDiskSnapshot"); + static constexpr uint32_t DeleteDiskSnapshot_HASH = ConstExprHashingUtils::HashString("DeleteDiskSnapshot"); + static constexpr uint32_t CreateDiskFromSnapshot_HASH = ConstExprHashingUtils::HashString("CreateDiskFromSnapshot"); + static constexpr uint32_t CreateRelationalDatabase_HASH = ConstExprHashingUtils::HashString("CreateRelationalDatabase"); + static constexpr uint32_t UpdateRelationalDatabase_HASH = ConstExprHashingUtils::HashString("UpdateRelationalDatabase"); + static constexpr uint32_t DeleteRelationalDatabase_HASH = ConstExprHashingUtils::HashString("DeleteRelationalDatabase"); + static constexpr uint32_t CreateRelationalDatabaseFromSnapshot_HASH = ConstExprHashingUtils::HashString("CreateRelationalDatabaseFromSnapshot"); + static constexpr uint32_t CreateRelationalDatabaseSnapshot_HASH = ConstExprHashingUtils::HashString("CreateRelationalDatabaseSnapshot"); + static constexpr uint32_t DeleteRelationalDatabaseSnapshot_HASH = ConstExprHashingUtils::HashString("DeleteRelationalDatabaseSnapshot"); + static constexpr uint32_t UpdateRelationalDatabaseParameters_HASH = ConstExprHashingUtils::HashString("UpdateRelationalDatabaseParameters"); + static constexpr uint32_t StartRelationalDatabase_HASH = ConstExprHashingUtils::HashString("StartRelationalDatabase"); + static constexpr uint32_t RebootRelationalDatabase_HASH = ConstExprHashingUtils::HashString("RebootRelationalDatabase"); + static constexpr uint32_t StopRelationalDatabase_HASH = ConstExprHashingUtils::HashString("StopRelationalDatabase"); + static constexpr uint32_t EnableAddOn_HASH = ConstExprHashingUtils::HashString("EnableAddOn"); + static constexpr uint32_t DisableAddOn_HASH = ConstExprHashingUtils::HashString("DisableAddOn"); + static constexpr uint32_t PutAlarm_HASH = ConstExprHashingUtils::HashString("PutAlarm"); + static constexpr uint32_t GetAlarms_HASH = ConstExprHashingUtils::HashString("GetAlarms"); + static constexpr uint32_t DeleteAlarm_HASH = ConstExprHashingUtils::HashString("DeleteAlarm"); + static constexpr uint32_t TestAlarm_HASH = ConstExprHashingUtils::HashString("TestAlarm"); + static constexpr uint32_t CreateContactMethod_HASH = ConstExprHashingUtils::HashString("CreateContactMethod"); + static constexpr uint32_t GetContactMethods_HASH = ConstExprHashingUtils::HashString("GetContactMethods"); + static constexpr uint32_t SendContactMethodVerification_HASH = ConstExprHashingUtils::HashString("SendContactMethodVerification"); + static constexpr uint32_t DeleteContactMethod_HASH = ConstExprHashingUtils::HashString("DeleteContactMethod"); + static constexpr uint32_t CreateDistribution_HASH = ConstExprHashingUtils::HashString("CreateDistribution"); + static constexpr uint32_t UpdateDistribution_HASH = ConstExprHashingUtils::HashString("UpdateDistribution"); + static constexpr uint32_t DeleteDistribution_HASH = ConstExprHashingUtils::HashString("DeleteDistribution"); + static constexpr uint32_t ResetDistributionCache_HASH = ConstExprHashingUtils::HashString("ResetDistributionCache"); + static constexpr uint32_t AttachCertificateToDistribution_HASH = ConstExprHashingUtils::HashString("AttachCertificateToDistribution"); + static constexpr uint32_t DetachCertificateFromDistribution_HASH = ConstExprHashingUtils::HashString("DetachCertificateFromDistribution"); + static constexpr uint32_t UpdateDistributionBundle_HASH = ConstExprHashingUtils::HashString("UpdateDistributionBundle"); + static constexpr uint32_t SetIpAddressType_HASH = ConstExprHashingUtils::HashString("SetIpAddressType"); + static constexpr uint32_t CreateCertificate_HASH = ConstExprHashingUtils::HashString("CreateCertificate"); + static constexpr uint32_t DeleteCertificate_HASH = ConstExprHashingUtils::HashString("DeleteCertificate"); + static constexpr uint32_t CreateContainerService_HASH = ConstExprHashingUtils::HashString("CreateContainerService"); + static constexpr uint32_t UpdateContainerService_HASH = ConstExprHashingUtils::HashString("UpdateContainerService"); + static constexpr uint32_t DeleteContainerService_HASH = ConstExprHashingUtils::HashString("DeleteContainerService"); + static constexpr uint32_t CreateContainerServiceDeployment_HASH = ConstExprHashingUtils::HashString("CreateContainerServiceDeployment"); + static constexpr uint32_t CreateContainerServiceRegistryLogin_HASH = ConstExprHashingUtils::HashString("CreateContainerServiceRegistryLogin"); + static constexpr uint32_t RegisterContainerImage_HASH = ConstExprHashingUtils::HashString("RegisterContainerImage"); + static constexpr uint32_t DeleteContainerImage_HASH = ConstExprHashingUtils::HashString("DeleteContainerImage"); + static constexpr uint32_t CreateBucket_HASH = ConstExprHashingUtils::HashString("CreateBucket"); + static constexpr uint32_t DeleteBucket_HASH = ConstExprHashingUtils::HashString("DeleteBucket"); + static constexpr uint32_t CreateBucketAccessKey_HASH = ConstExprHashingUtils::HashString("CreateBucketAccessKey"); + static constexpr uint32_t DeleteBucketAccessKey_HASH = ConstExprHashingUtils::HashString("DeleteBucketAccessKey"); + static constexpr uint32_t UpdateBucketBundle_HASH = ConstExprHashingUtils::HashString("UpdateBucketBundle"); + static constexpr uint32_t UpdateBucket_HASH = ConstExprHashingUtils::HashString("UpdateBucket"); + static constexpr uint32_t SetResourceAccessForBucket_HASH = ConstExprHashingUtils::HashString("SetResourceAccessForBucket"); + static constexpr uint32_t UpdateInstanceMetadataOptions_HASH = ConstExprHashingUtils::HashString("UpdateInstanceMetadataOptions"); + static constexpr uint32_t StartGUISession_HASH = ConstExprHashingUtils::HashString("StartGUISession"); + static constexpr uint32_t StopGUISession_HASH = ConstExprHashingUtils::HashString("StopGUISession"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DeleteKnownHostKeys_HASH) { return OperationType::DeleteKnownHostKeys; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/OriginProtocolPolicyEnum.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/OriginProtocolPolicyEnum.cpp index bcc4340ba31..d2f62043bc4 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/OriginProtocolPolicyEnum.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/OriginProtocolPolicyEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginProtocolPolicyEnumMapper { - static const int http_only_HASH = HashingUtils::HashString("http-only"); - static const int https_only_HASH = HashingUtils::HashString("https-only"); + static constexpr uint32_t http_only_HASH = ConstExprHashingUtils::HashString("http-only"); + static constexpr uint32_t https_only_HASH = ConstExprHashingUtils::HashString("https-only"); OriginProtocolPolicyEnum GetOriginProtocolPolicyEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_only_HASH) { return OriginProtocolPolicyEnum::http_only; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/PortAccessType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/PortAccessType.cpp index d4b0ada07e8..79acfb5eb9b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/PortAccessType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/PortAccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PortAccessTypeMapper { - static const int Public_HASH = HashingUtils::HashString("Public"); - static const int Private_HASH = HashingUtils::HashString("Private"); + static constexpr uint32_t Public_HASH = ConstExprHashingUtils::HashString("Public"); + static constexpr uint32_t Private_HASH = ConstExprHashingUtils::HashString("Private"); PortAccessType GetPortAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Public_HASH) { return PortAccessType::Public; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/PortInfoSourceType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/PortInfoSourceType.cpp index 9ca16314030..3078eba8171 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/PortInfoSourceType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/PortInfoSourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PortInfoSourceTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); PortInfoSourceType GetPortInfoSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return PortInfoSourceType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/PortState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/PortState.cpp index bc86ee3f6fa..4d897647112 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/PortState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/PortState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PortStateMapper { - static const int open_HASH = HashingUtils::HashString("open"); - static const int closed_HASH = HashingUtils::HashString("closed"); + static constexpr uint32_t open_HASH = ConstExprHashingUtils::HashString("open"); + static constexpr uint32_t closed_HASH = ConstExprHashingUtils::HashString("closed"); PortState GetPortStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_HASH) { return PortState::open; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/PricingUnit.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/PricingUnit.cpp index 41652501461..b12f735d17d 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/PricingUnit.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/PricingUnit.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PricingUnitMapper { - static const int GB_HASH = HashingUtils::HashString("GB"); - static const int Hrs_HASH = HashingUtils::HashString("Hrs"); - static const int GB_Mo_HASH = HashingUtils::HashString("GB-Mo"); - static const int Bundles_HASH = HashingUtils::HashString("Bundles"); - static const int Queries_HASH = HashingUtils::HashString("Queries"); + static constexpr uint32_t GB_HASH = ConstExprHashingUtils::HashString("GB"); + static constexpr uint32_t Hrs_HASH = ConstExprHashingUtils::HashString("Hrs"); + static constexpr uint32_t GB_Mo_HASH = ConstExprHashingUtils::HashString("GB-Mo"); + static constexpr uint32_t Bundles_HASH = ConstExprHashingUtils::HashString("Bundles"); + static constexpr uint32_t Queries_HASH = ConstExprHashingUtils::HashString("Queries"); PricingUnit GetPricingUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GB_HASH) { return PricingUnit::GB; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/R53HostedZoneDeletionStateCode.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/R53HostedZoneDeletionStateCode.cpp index 95cfb99f8f8..be733d1e016 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/R53HostedZoneDeletionStateCode.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/R53HostedZoneDeletionStateCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace R53HostedZoneDeletionStateCodeMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); R53HostedZoneDeletionStateCode GetR53HostedZoneDeletionStateCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return R53HostedZoneDeletionStateCode::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/RecordState.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/RecordState.cpp index a2030f5c145..27bcdd0ab5e 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/RecordState.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/RecordState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecordStateMapper { - static const int Started_HASH = HashingUtils::HashString("Started"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Started_HASH = ConstExprHashingUtils::HashString("Started"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); RecordState GetRecordStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Started_HASH) { return RecordState::Started; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/RegionName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/RegionName.cpp index df262a52e16..d32143cefa2 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/RegionName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/RegionName.cpp @@ -20,26 +20,26 @@ namespace Aws namespace RegionNameMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); RegionName GetRegionNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return RegionName::us_east_1; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseEngine.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseEngine.cpp index 522cff5306e..54edba22eb4 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseEngine.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseEngine.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RelationalDatabaseEngineMapper { - static const int mysql_HASH = HashingUtils::HashString("mysql"); + static constexpr uint32_t mysql_HASH = ConstExprHashingUtils::HashString("mysql"); RelationalDatabaseEngine GetRelationalDatabaseEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == mysql_HASH) { return RelationalDatabaseEngine::mysql; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseMetricName.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseMetricName.cpp index d84987fd05a..16e6eaefa6d 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseMetricName.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabaseMetricName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RelationalDatabaseMetricNameMapper { - static const int CPUUtilization_HASH = HashingUtils::HashString("CPUUtilization"); - static const int DatabaseConnections_HASH = HashingUtils::HashString("DatabaseConnections"); - static const int DiskQueueDepth_HASH = HashingUtils::HashString("DiskQueueDepth"); - static const int FreeStorageSpace_HASH = HashingUtils::HashString("FreeStorageSpace"); - static const int NetworkReceiveThroughput_HASH = HashingUtils::HashString("NetworkReceiveThroughput"); - static const int NetworkTransmitThroughput_HASH = HashingUtils::HashString("NetworkTransmitThroughput"); + static constexpr uint32_t CPUUtilization_HASH = ConstExprHashingUtils::HashString("CPUUtilization"); + static constexpr uint32_t DatabaseConnections_HASH = ConstExprHashingUtils::HashString("DatabaseConnections"); + static constexpr uint32_t DiskQueueDepth_HASH = ConstExprHashingUtils::HashString("DiskQueueDepth"); + static constexpr uint32_t FreeStorageSpace_HASH = ConstExprHashingUtils::HashString("FreeStorageSpace"); + static constexpr uint32_t NetworkReceiveThroughput_HASH = ConstExprHashingUtils::HashString("NetworkReceiveThroughput"); + static constexpr uint32_t NetworkTransmitThroughput_HASH = ConstExprHashingUtils::HashString("NetworkTransmitThroughput"); RelationalDatabaseMetricName GetRelationalDatabaseMetricNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPUUtilization_HASH) { return RelationalDatabaseMetricName::CPUUtilization; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabasePasswordVersion.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabasePasswordVersion.cpp index 2f375a309bb..5a01156465d 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabasePasswordVersion.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/RelationalDatabasePasswordVersion.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RelationalDatabasePasswordVersionMapper { - static const int CURRENT_HASH = HashingUtils::HashString("CURRENT"); - static const int PREVIOUS_HASH = HashingUtils::HashString("PREVIOUS"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t CURRENT_HASH = ConstExprHashingUtils::HashString("CURRENT"); + static constexpr uint32_t PREVIOUS_HASH = ConstExprHashingUtils::HashString("PREVIOUS"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); RelationalDatabasePasswordVersion GetRelationalDatabasePasswordVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_HASH) { return RelationalDatabasePasswordVersion::CURRENT; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/RenewalStatus.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/RenewalStatus.cpp index 1a1be326395..e459724e07e 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/RenewalStatus.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/RenewalStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RenewalStatusMapper { - static const int PendingAutoRenewal_HASH = HashingUtils::HashString("PendingAutoRenewal"); - static const int PendingValidation_HASH = HashingUtils::HashString("PendingValidation"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t PendingAutoRenewal_HASH = ConstExprHashingUtils::HashString("PendingAutoRenewal"); + static constexpr uint32_t PendingValidation_HASH = ConstExprHashingUtils::HashString("PendingValidation"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); RenewalStatus GetRenewalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PendingAutoRenewal_HASH) { return RenewalStatus::PendingAutoRenewal; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceBucketAccess.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceBucketAccess.cpp index 0fe18a847c5..c6811110d19 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceBucketAccess.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceBucketAccess.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceBucketAccessMapper { - static const int allow_HASH = HashingUtils::HashString("allow"); - static const int deny_HASH = HashingUtils::HashString("deny"); + static constexpr uint32_t allow_HASH = ConstExprHashingUtils::HashString("allow"); + static constexpr uint32_t deny_HASH = ConstExprHashingUtils::HashString("deny"); ResourceBucketAccess GetResourceBucketAccessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == allow_HASH) { return ResourceBucketAccess::allow; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceType.cpp index 2e221437d62..88b44d7fdc2 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/ResourceType.cpp @@ -20,31 +20,31 @@ namespace Aws namespace ResourceTypeMapper { - static const int ContainerService_HASH = HashingUtils::HashString("ContainerService"); - static const int Instance_HASH = HashingUtils::HashString("Instance"); - static const int StaticIp_HASH = HashingUtils::HashString("StaticIp"); - static const int KeyPair_HASH = HashingUtils::HashString("KeyPair"); - static const int InstanceSnapshot_HASH = HashingUtils::HashString("InstanceSnapshot"); - static const int Domain_HASH = HashingUtils::HashString("Domain"); - static const int PeeredVpc_HASH = HashingUtils::HashString("PeeredVpc"); - static const int LoadBalancer_HASH = HashingUtils::HashString("LoadBalancer"); - static const int LoadBalancerTlsCertificate_HASH = HashingUtils::HashString("LoadBalancerTlsCertificate"); - static const int Disk_HASH = HashingUtils::HashString("Disk"); - static const int DiskSnapshot_HASH = HashingUtils::HashString("DiskSnapshot"); - static const int RelationalDatabase_HASH = HashingUtils::HashString("RelationalDatabase"); - static const int RelationalDatabaseSnapshot_HASH = HashingUtils::HashString("RelationalDatabaseSnapshot"); - static const int ExportSnapshotRecord_HASH = HashingUtils::HashString("ExportSnapshotRecord"); - static const int CloudFormationStackRecord_HASH = HashingUtils::HashString("CloudFormationStackRecord"); - static const int Alarm_HASH = HashingUtils::HashString("Alarm"); - static const int ContactMethod_HASH = HashingUtils::HashString("ContactMethod"); - static const int Distribution_HASH = HashingUtils::HashString("Distribution"); - static const int Certificate_HASH = HashingUtils::HashString("Certificate"); - static const int Bucket_HASH = HashingUtils::HashString("Bucket"); + static constexpr uint32_t ContainerService_HASH = ConstExprHashingUtils::HashString("ContainerService"); + static constexpr uint32_t Instance_HASH = ConstExprHashingUtils::HashString("Instance"); + static constexpr uint32_t StaticIp_HASH = ConstExprHashingUtils::HashString("StaticIp"); + static constexpr uint32_t KeyPair_HASH = ConstExprHashingUtils::HashString("KeyPair"); + static constexpr uint32_t InstanceSnapshot_HASH = ConstExprHashingUtils::HashString("InstanceSnapshot"); + static constexpr uint32_t Domain_HASH = ConstExprHashingUtils::HashString("Domain"); + static constexpr uint32_t PeeredVpc_HASH = ConstExprHashingUtils::HashString("PeeredVpc"); + static constexpr uint32_t LoadBalancer_HASH = ConstExprHashingUtils::HashString("LoadBalancer"); + static constexpr uint32_t LoadBalancerTlsCertificate_HASH = ConstExprHashingUtils::HashString("LoadBalancerTlsCertificate"); + static constexpr uint32_t Disk_HASH = ConstExprHashingUtils::HashString("Disk"); + static constexpr uint32_t DiskSnapshot_HASH = ConstExprHashingUtils::HashString("DiskSnapshot"); + static constexpr uint32_t RelationalDatabase_HASH = ConstExprHashingUtils::HashString("RelationalDatabase"); + static constexpr uint32_t RelationalDatabaseSnapshot_HASH = ConstExprHashingUtils::HashString("RelationalDatabaseSnapshot"); + static constexpr uint32_t ExportSnapshotRecord_HASH = ConstExprHashingUtils::HashString("ExportSnapshotRecord"); + static constexpr uint32_t CloudFormationStackRecord_HASH = ConstExprHashingUtils::HashString("CloudFormationStackRecord"); + static constexpr uint32_t Alarm_HASH = ConstExprHashingUtils::HashString("Alarm"); + static constexpr uint32_t ContactMethod_HASH = ConstExprHashingUtils::HashString("ContactMethod"); + static constexpr uint32_t Distribution_HASH = ConstExprHashingUtils::HashString("Distribution"); + static constexpr uint32_t Certificate_HASH = ConstExprHashingUtils::HashString("Certificate"); + static constexpr uint32_t Bucket_HASH = ConstExprHashingUtils::HashString("Bucket"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ContainerService_HASH) { return ResourceType::ContainerService; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/Status.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/Status.cpp index ef2f2dde2ad..9f1499262cc 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/Status.cpp @@ -20,21 +20,21 @@ namespace Aws namespace StatusMapper { - static const int startExpired_HASH = HashingUtils::HashString("startExpired"); - static const int notStarted_HASH = HashingUtils::HashString("notStarted"); - static const int started_HASH = HashingUtils::HashString("started"); - static const int starting_HASH = HashingUtils::HashString("starting"); - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); - static const int settingUpInstance_HASH = HashingUtils::HashString("settingUpInstance"); - static const int failedInstanceCreation_HASH = HashingUtils::HashString("failedInstanceCreation"); - static const int failedStartingGUISession_HASH = HashingUtils::HashString("failedStartingGUISession"); - static const int failedStoppingGUISession_HASH = HashingUtils::HashString("failedStoppingGUISession"); + static constexpr uint32_t startExpired_HASH = ConstExprHashingUtils::HashString("startExpired"); + static constexpr uint32_t notStarted_HASH = ConstExprHashingUtils::HashString("notStarted"); + static constexpr uint32_t started_HASH = ConstExprHashingUtils::HashString("started"); + static constexpr uint32_t starting_HASH = ConstExprHashingUtils::HashString("starting"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); + static constexpr uint32_t settingUpInstance_HASH = ConstExprHashingUtils::HashString("settingUpInstance"); + static constexpr uint32_t failedInstanceCreation_HASH = ConstExprHashingUtils::HashString("failedInstanceCreation"); + static constexpr uint32_t failedStartingGUISession_HASH = ConstExprHashingUtils::HashString("failedStartingGUISession"); + static constexpr uint32_t failedStoppingGUISession_HASH = ConstExprHashingUtils::HashString("failedStoppingGUISession"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == startExpired_HASH) { return Status::startExpired; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/StatusType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/StatusType.cpp index 78eb1c6d316..461bb2b082a 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/StatusType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/StatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusTypeMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); StatusType GetStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return StatusType::Active; diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/TreatMissingData.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/TreatMissingData.cpp index 14329d3a7b3..68628ba138d 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/TreatMissingData.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/TreatMissingData.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TreatMissingDataMapper { - static const int breaching_HASH = HashingUtils::HashString("breaching"); - static const int notBreaching_HASH = HashingUtils::HashString("notBreaching"); - static const int ignore_HASH = HashingUtils::HashString("ignore"); - static const int missing_HASH = HashingUtils::HashString("missing"); + static constexpr uint32_t breaching_HASH = ConstExprHashingUtils::HashString("breaching"); + static constexpr uint32_t notBreaching_HASH = ConstExprHashingUtils::HashString("notBreaching"); + static constexpr uint32_t ignore_HASH = ConstExprHashingUtils::HashString("ignore"); + static constexpr uint32_t missing_HASH = ConstExprHashingUtils::HashString("missing"); TreatMissingData GetTreatMissingDataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == breaching_HASH) { return TreatMissingData::breaching; diff --git a/generated/src/aws-cpp-sdk-location/source/LocationServiceErrors.cpp b/generated/src/aws-cpp-sdk-location/source/LocationServiceErrors.cpp index 3e0b81ae426..23875638036 100644 --- a/generated/src/aws-cpp-sdk-location/source/LocationServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-location/source/LocationServiceErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_LOCATIONSERVICE_API ValidationException LocationServiceError::Get namespace LocationServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-location/source/model/BatchItemErrorCode.cpp b/generated/src/aws-cpp-sdk-location/source/model/BatchItemErrorCode.cpp index 16f22269d68..b237a538b03 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/BatchItemErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/BatchItemErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BatchItemErrorCodeMapper { - static const int AccessDeniedError_HASH = HashingUtils::HashString("AccessDeniedError"); - static const int ConflictError_HASH = HashingUtils::HashString("ConflictError"); - static const int InternalServerError_HASH = HashingUtils::HashString("InternalServerError"); - static const int ResourceNotFoundError_HASH = HashingUtils::HashString("ResourceNotFoundError"); - static const int ThrottlingError_HASH = HashingUtils::HashString("ThrottlingError"); - static const int ValidationError_HASH = HashingUtils::HashString("ValidationError"); + static constexpr uint32_t AccessDeniedError_HASH = ConstExprHashingUtils::HashString("AccessDeniedError"); + static constexpr uint32_t ConflictError_HASH = ConstExprHashingUtils::HashString("ConflictError"); + static constexpr uint32_t InternalServerError_HASH = ConstExprHashingUtils::HashString("InternalServerError"); + static constexpr uint32_t ResourceNotFoundError_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundError"); + static constexpr uint32_t ThrottlingError_HASH = ConstExprHashingUtils::HashString("ThrottlingError"); + static constexpr uint32_t ValidationError_HASH = ConstExprHashingUtils::HashString("ValidationError"); BatchItemErrorCode GetBatchItemErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AccessDeniedError_HASH) { return BatchItemErrorCode::AccessDeniedError; diff --git a/generated/src/aws-cpp-sdk-location/source/model/DimensionUnit.cpp b/generated/src/aws-cpp-sdk-location/source/model/DimensionUnit.cpp index 15209c82fce..85dc36bf8d9 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/DimensionUnit.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/DimensionUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DimensionUnitMapper { - static const int Meters_HASH = HashingUtils::HashString("Meters"); - static const int Feet_HASH = HashingUtils::HashString("Feet"); + static constexpr uint32_t Meters_HASH = ConstExprHashingUtils::HashString("Meters"); + static constexpr uint32_t Feet_HASH = ConstExprHashingUtils::HashString("Feet"); DimensionUnit GetDimensionUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Meters_HASH) { return DimensionUnit::Meters; diff --git a/generated/src/aws-cpp-sdk-location/source/model/DistanceUnit.cpp b/generated/src/aws-cpp-sdk-location/source/model/DistanceUnit.cpp index 4818861343d..630928a1ff0 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/DistanceUnit.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/DistanceUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DistanceUnitMapper { - static const int Kilometers_HASH = HashingUtils::HashString("Kilometers"); - static const int Miles_HASH = HashingUtils::HashString("Miles"); + static constexpr uint32_t Kilometers_HASH = ConstExprHashingUtils::HashString("Kilometers"); + static constexpr uint32_t Miles_HASH = ConstExprHashingUtils::HashString("Miles"); DistanceUnit GetDistanceUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Kilometers_HASH) { return DistanceUnit::Kilometers; diff --git a/generated/src/aws-cpp-sdk-location/source/model/IntendedUse.cpp b/generated/src/aws-cpp-sdk-location/source/model/IntendedUse.cpp index 4161beabb9d..d22ac498256 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/IntendedUse.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/IntendedUse.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntendedUseMapper { - static const int SingleUse_HASH = HashingUtils::HashString("SingleUse"); - static const int Storage_HASH = HashingUtils::HashString("Storage"); + static constexpr uint32_t SingleUse_HASH = ConstExprHashingUtils::HashString("SingleUse"); + static constexpr uint32_t Storage_HASH = ConstExprHashingUtils::HashString("Storage"); IntendedUse GetIntendedUseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SingleUse_HASH) { return IntendedUse::SingleUse; diff --git a/generated/src/aws-cpp-sdk-location/source/model/PositionFiltering.cpp b/generated/src/aws-cpp-sdk-location/source/model/PositionFiltering.cpp index ef8cf80053b..50e14a3c330 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/PositionFiltering.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/PositionFiltering.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PositionFilteringMapper { - static const int TimeBased_HASH = HashingUtils::HashString("TimeBased"); - static const int DistanceBased_HASH = HashingUtils::HashString("DistanceBased"); - static const int AccuracyBased_HASH = HashingUtils::HashString("AccuracyBased"); + static constexpr uint32_t TimeBased_HASH = ConstExprHashingUtils::HashString("TimeBased"); + static constexpr uint32_t DistanceBased_HASH = ConstExprHashingUtils::HashString("DistanceBased"); + static constexpr uint32_t AccuracyBased_HASH = ConstExprHashingUtils::HashString("AccuracyBased"); PositionFiltering GetPositionFilteringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TimeBased_HASH) { return PositionFiltering::TimeBased; diff --git a/generated/src/aws-cpp-sdk-location/source/model/RouteMatrixErrorCode.cpp b/generated/src/aws-cpp-sdk-location/source/model/RouteMatrixErrorCode.cpp index 74a42799cb0..0992de6f555 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/RouteMatrixErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/RouteMatrixErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RouteMatrixErrorCodeMapper { - static const int RouteNotFound_HASH = HashingUtils::HashString("RouteNotFound"); - static const int RouteTooLong_HASH = HashingUtils::HashString("RouteTooLong"); - static const int PositionsNotFound_HASH = HashingUtils::HashString("PositionsNotFound"); - static const int DestinationPositionNotFound_HASH = HashingUtils::HashString("DestinationPositionNotFound"); - static const int DeparturePositionNotFound_HASH = HashingUtils::HashString("DeparturePositionNotFound"); - static const int OtherValidationError_HASH = HashingUtils::HashString("OtherValidationError"); + static constexpr uint32_t RouteNotFound_HASH = ConstExprHashingUtils::HashString("RouteNotFound"); + static constexpr uint32_t RouteTooLong_HASH = ConstExprHashingUtils::HashString("RouteTooLong"); + static constexpr uint32_t PositionsNotFound_HASH = ConstExprHashingUtils::HashString("PositionsNotFound"); + static constexpr uint32_t DestinationPositionNotFound_HASH = ConstExprHashingUtils::HashString("DestinationPositionNotFound"); + static constexpr uint32_t DeparturePositionNotFound_HASH = ConstExprHashingUtils::HashString("DeparturePositionNotFound"); + static constexpr uint32_t OtherValidationError_HASH = ConstExprHashingUtils::HashString("OtherValidationError"); RouteMatrixErrorCode GetRouteMatrixErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RouteNotFound_HASH) { return RouteMatrixErrorCode::RouteNotFound; diff --git a/generated/src/aws-cpp-sdk-location/source/model/Status.cpp b/generated/src/aws-cpp-sdk-location/source/model/Status.cpp index 2722d69deaf..714c98218a4 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/Status.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Expired_HASH = HashingUtils::HashString("Expired"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Expired_HASH = ConstExprHashingUtils::HashString("Expired"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return Status::Active; diff --git a/generated/src/aws-cpp-sdk-location/source/model/TravelMode.cpp b/generated/src/aws-cpp-sdk-location/source/model/TravelMode.cpp index 14fd0d83759..d8dbe884927 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/TravelMode.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/TravelMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TravelModeMapper { - static const int Car_HASH = HashingUtils::HashString("Car"); - static const int Truck_HASH = HashingUtils::HashString("Truck"); - static const int Walking_HASH = HashingUtils::HashString("Walking"); - static const int Bicycle_HASH = HashingUtils::HashString("Bicycle"); - static const int Motorcycle_HASH = HashingUtils::HashString("Motorcycle"); + static constexpr uint32_t Car_HASH = ConstExprHashingUtils::HashString("Car"); + static constexpr uint32_t Truck_HASH = ConstExprHashingUtils::HashString("Truck"); + static constexpr uint32_t Walking_HASH = ConstExprHashingUtils::HashString("Walking"); + static constexpr uint32_t Bicycle_HASH = ConstExprHashingUtils::HashString("Bicycle"); + static constexpr uint32_t Motorcycle_HASH = ConstExprHashingUtils::HashString("Motorcycle"); TravelMode GetTravelModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Car_HASH) { return TravelMode::Car; diff --git a/generated/src/aws-cpp-sdk-location/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-location/source/model/ValidationExceptionReason.cpp index 249735d63bd..ae616a3a5af 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/ValidationExceptionReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UnknownOperation_HASH = HashingUtils::HashString("UnknownOperation"); - static const int Missing_HASH = HashingUtils::HashString("Missing"); - static const int CannotParse_HASH = HashingUtils::HashString("CannotParse"); - static const int FieldValidationFailed_HASH = HashingUtils::HashString("FieldValidationFailed"); - static const int Other_HASH = HashingUtils::HashString("Other"); + static constexpr uint32_t UnknownOperation_HASH = ConstExprHashingUtils::HashString("UnknownOperation"); + static constexpr uint32_t Missing_HASH = ConstExprHashingUtils::HashString("Missing"); + static constexpr uint32_t CannotParse_HASH = ConstExprHashingUtils::HashString("CannotParse"); + static constexpr uint32_t FieldValidationFailed_HASH = ConstExprHashingUtils::HashString("FieldValidationFailed"); + static constexpr uint32_t Other_HASH = ConstExprHashingUtils::HashString("Other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UnknownOperation_HASH) { return ValidationExceptionReason::UnknownOperation; diff --git a/generated/src/aws-cpp-sdk-location/source/model/VehicleWeightUnit.cpp b/generated/src/aws-cpp-sdk-location/source/model/VehicleWeightUnit.cpp index ef8aeb8a004..2c244a4163b 100644 --- a/generated/src/aws-cpp-sdk-location/source/model/VehicleWeightUnit.cpp +++ b/generated/src/aws-cpp-sdk-location/source/model/VehicleWeightUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VehicleWeightUnitMapper { - static const int Kilograms_HASH = HashingUtils::HashString("Kilograms"); - static const int Pounds_HASH = HashingUtils::HashString("Pounds"); + static constexpr uint32_t Kilograms_HASH = ConstExprHashingUtils::HashString("Kilograms"); + static constexpr uint32_t Pounds_HASH = ConstExprHashingUtils::HashString("Pounds"); VehicleWeightUnit GetVehicleWeightUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Kilograms_HASH) { return VehicleWeightUnit::Kilograms; diff --git a/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsErrors.cpp b/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsErrors.cpp index dd156ebbe6e..99c9f477af4 100644 --- a/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsErrors.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsErrors.cpp @@ -47,20 +47,20 @@ template<> AWS_CLOUDWATCHLOGS_API TooManyTagsException CloudWatchLogsError::GetM namespace CloudWatchLogsErrorMapper { -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int OPERATION_ABORTED_HASH = HashingUtils::HashString("OperationAbortedException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int INVALID_SEQUENCE_TOKEN_HASH = HashingUtils::HashString("InvalidSequenceTokenException"); -static const int DATA_ALREADY_ACCEPTED_HASH = HashingUtils::HashString("DataAlreadyAcceptedException"); -static const int MALFORMED_QUERY_HASH = HashingUtils::HashString("MalformedQueryException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t OPERATION_ABORTED_HASH = ConstExprHashingUtils::HashString("OperationAbortedException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t INVALID_SEQUENCE_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidSequenceTokenException"); +static constexpr uint32_t DATA_ALREADY_ACCEPTED_HASH = ConstExprHashingUtils::HashString("DataAlreadyAcceptedException"); +static constexpr uint32_t MALFORMED_QUERY_HASH = ConstExprHashingUtils::HashString("MalformedQueryException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_PARAMETER_HASH) { diff --git a/generated/src/aws-cpp-sdk-logs/source/model/DataProtectionStatus.cpp b/generated/src/aws-cpp-sdk-logs/source/model/DataProtectionStatus.cpp index 18ab0bd9165..a4a46730c02 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/DataProtectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/DataProtectionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DataProtectionStatusMapper { - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DataProtectionStatus GetDataProtectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATED_HASH) { return DataProtectionStatus::ACTIVATED; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/Distribution.cpp b/generated/src/aws-cpp-sdk-logs/source/model/Distribution.cpp index 0c6c9d5c329..d12c235b7f5 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/Distribution.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/Distribution.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DistributionMapper { - static const int Random_HASH = HashingUtils::HashString("Random"); - static const int ByLogStream_HASH = HashingUtils::HashString("ByLogStream"); + static constexpr uint32_t Random_HASH = ConstExprHashingUtils::HashString("Random"); + static constexpr uint32_t ByLogStream_HASH = ConstExprHashingUtils::HashString("ByLogStream"); Distribution GetDistributionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Random_HASH) { return Distribution::Random; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/ExportTaskStatusCode.cpp b/generated/src/aws-cpp-sdk-logs/source/model/ExportTaskStatusCode.cpp index ed44099fe1e..e5ce9155217 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/ExportTaskStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/ExportTaskStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ExportTaskStatusCodeMapper { - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PENDING_CANCEL_HASH = HashingUtils::HashString("PENDING_CANCEL"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PENDING_CANCEL_HASH = ConstExprHashingUtils::HashString("PENDING_CANCEL"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); ExportTaskStatusCode GetExportTaskStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANCELLED_HASH) { return ExportTaskStatusCode::CANCELLED; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/InheritedProperty.cpp b/generated/src/aws-cpp-sdk-logs/source/model/InheritedProperty.cpp index 917d23aec18..c2da89839f3 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/InheritedProperty.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/InheritedProperty.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InheritedPropertyMapper { - static const int ACCOUNT_DATA_PROTECTION_HASH = HashingUtils::HashString("ACCOUNT_DATA_PROTECTION"); + static constexpr uint32_t ACCOUNT_DATA_PROTECTION_HASH = ConstExprHashingUtils::HashString("ACCOUNT_DATA_PROTECTION"); InheritedProperty GetInheritedPropertyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_DATA_PROTECTION_HASH) { return InheritedProperty::ACCOUNT_DATA_PROTECTION; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/OrderBy.cpp b/generated/src/aws-cpp-sdk-logs/source/model/OrderBy.cpp index 7711b80848b..e16366205c3 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/OrderBy.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/OrderBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderByMapper { - static const int LogStreamName_HASH = HashingUtils::HashString("LogStreamName"); - static const int LastEventTime_HASH = HashingUtils::HashString("LastEventTime"); + static constexpr uint32_t LogStreamName_HASH = ConstExprHashingUtils::HashString("LogStreamName"); + static constexpr uint32_t LastEventTime_HASH = ConstExprHashingUtils::HashString("LastEventTime"); OrderBy GetOrderByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LogStreamName_HASH) { return OrderBy::LogStreamName; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-logs/source/model/PolicyType.cpp index 25522491059..4889926fa61 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/PolicyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PolicyTypeMapper { - static const int DATA_PROTECTION_POLICY_HASH = HashingUtils::HashString("DATA_PROTECTION_POLICY"); + static constexpr uint32_t DATA_PROTECTION_POLICY_HASH = ConstExprHashingUtils::HashString("DATA_PROTECTION_POLICY"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATA_PROTECTION_POLICY_HASH) { return PolicyType::DATA_PROTECTION_POLICY; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/QueryStatus.cpp b/generated/src/aws-cpp-sdk-logs/source/model/QueryStatus.cpp index e66bbd21b2b..3fcc61ff993 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/QueryStatus.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/QueryStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace QueryStatusMapper { - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Timeout_HASH = HashingUtils::HashString("Timeout"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Timeout_HASH = ConstExprHashingUtils::HashString("Timeout"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); QueryStatus GetQueryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scheduled_HASH) { return QueryStatus::Scheduled; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/Scope.cpp b/generated/src/aws-cpp-sdk-logs/source/model/Scope.cpp index 1c8ead8d6bb..6373db47cd8 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/Scope.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/Scope.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ScopeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); Scope GetScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return Scope::ALL; diff --git a/generated/src/aws-cpp-sdk-logs/source/model/StandardUnit.cpp b/generated/src/aws-cpp-sdk-logs/source/model/StandardUnit.cpp index a72948860e3..4168c9d1493 100644 --- a/generated/src/aws-cpp-sdk-logs/source/model/StandardUnit.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/model/StandardUnit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace StandardUnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); StandardUnit GetStandardUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return StandardUnit::Seconds; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentErrors.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentErrors.cpp index faccb1c32d8..145294e4770 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentErrors.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentErrors.cpp @@ -18,14 +18,14 @@ namespace LookoutEquipment namespace LookoutEquipmentErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/AutoPromotionResult.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/AutoPromotionResult.cpp index cd44b61ca51..5733e8659b0 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/AutoPromotionResult.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/AutoPromotionResult.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AutoPromotionResultMapper { - static const int MODEL_PROMOTED_HASH = HashingUtils::HashString("MODEL_PROMOTED"); - static const int MODEL_NOT_PROMOTED_HASH = HashingUtils::HashString("MODEL_NOT_PROMOTED"); - static const int RETRAINING_INTERNAL_ERROR_HASH = HashingUtils::HashString("RETRAINING_INTERNAL_ERROR"); - static const int RETRAINING_CUSTOMER_ERROR_HASH = HashingUtils::HashString("RETRAINING_CUSTOMER_ERROR"); - static const int RETRAINING_CANCELLED_HASH = HashingUtils::HashString("RETRAINING_CANCELLED"); + static constexpr uint32_t MODEL_PROMOTED_HASH = ConstExprHashingUtils::HashString("MODEL_PROMOTED"); + static constexpr uint32_t MODEL_NOT_PROMOTED_HASH = ConstExprHashingUtils::HashString("MODEL_NOT_PROMOTED"); + static constexpr uint32_t RETRAINING_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("RETRAINING_INTERNAL_ERROR"); + static constexpr uint32_t RETRAINING_CUSTOMER_ERROR_HASH = ConstExprHashingUtils::HashString("RETRAINING_CUSTOMER_ERROR"); + static constexpr uint32_t RETRAINING_CANCELLED_HASH = ConstExprHashingUtils::HashString("RETRAINING_CANCELLED"); AutoPromotionResult GetAutoPromotionResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MODEL_PROMOTED_HASH) { return AutoPromotionResult::MODEL_PROMOTED; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DataUploadFrequency.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DataUploadFrequency.cpp index 673a02577c0..949a3108edf 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DataUploadFrequency.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DataUploadFrequency.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataUploadFrequencyMapper { - static const int PT5M_HASH = HashingUtils::HashString("PT5M"); - static const int PT10M_HASH = HashingUtils::HashString("PT10M"); - static const int PT15M_HASH = HashingUtils::HashString("PT15M"); - static const int PT30M_HASH = HashingUtils::HashString("PT30M"); - static const int PT1H_HASH = HashingUtils::HashString("PT1H"); + static constexpr uint32_t PT5M_HASH = ConstExprHashingUtils::HashString("PT5M"); + static constexpr uint32_t PT10M_HASH = ConstExprHashingUtils::HashString("PT10M"); + static constexpr uint32_t PT15M_HASH = ConstExprHashingUtils::HashString("PT15M"); + static constexpr uint32_t PT30M_HASH = ConstExprHashingUtils::HashString("PT30M"); + static constexpr uint32_t PT1H_HASH = ConstExprHashingUtils::HashString("PT1H"); DataUploadFrequency GetDataUploadFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PT5M_HASH) { return DataUploadFrequency::PT5M; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DatasetStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DatasetStatus.cpp index d3ea5427b2b..77963a8c3d5 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DatasetStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/DatasetStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DatasetStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int INGESTION_IN_PROGRESS_HASH = HashingUtils::HashString("INGESTION_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t INGESTION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("INGESTION_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); DatasetStatus GetDatasetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return DatasetStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceDataImportStrategy.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceDataImportStrategy.cpp index c4db790c5a4..74b8a0852b3 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceDataImportStrategy.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceDataImportStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InferenceDataImportStrategyMapper { - static const int NO_IMPORT_HASH = HashingUtils::HashString("NO_IMPORT"); - static const int ADD_WHEN_EMPTY_HASH = HashingUtils::HashString("ADD_WHEN_EMPTY"); - static const int OVERWRITE_HASH = HashingUtils::HashString("OVERWRITE"); + static constexpr uint32_t NO_IMPORT_HASH = ConstExprHashingUtils::HashString("NO_IMPORT"); + static constexpr uint32_t ADD_WHEN_EMPTY_HASH = ConstExprHashingUtils::HashString("ADD_WHEN_EMPTY"); + static constexpr uint32_t OVERWRITE_HASH = ConstExprHashingUtils::HashString("OVERWRITE"); InferenceDataImportStrategy GetInferenceDataImportStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_IMPORT_HASH) { return InferenceDataImportStrategy::NO_IMPORT; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceExecutionStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceExecutionStatus.cpp index 5846f97bde4..d1ed5c36aca 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceExecutionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InferenceExecutionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); InferenceExecutionStatus GetInferenceExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return InferenceExecutionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceSchedulerStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceSchedulerStatus.cpp index 7b6ecc5fe22..7576ee61600 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceSchedulerStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/InferenceSchedulerStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InferenceSchedulerStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); InferenceSchedulerStatus GetInferenceSchedulerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return InferenceSchedulerStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/IngestionJobStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/IngestionJobStatus.cpp index d2bd40c25b6..034e4aa078a 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/IngestionJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/IngestionJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IngestionJobStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); IngestionJobStatus GetIngestionJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return IngestionJobStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LabelRating.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LabelRating.cpp index abaed6793ae..985ae11e21d 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LabelRating.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LabelRating.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LabelRatingMapper { - static const int ANOMALY_HASH = HashingUtils::HashString("ANOMALY"); - static const int NO_ANOMALY_HASH = HashingUtils::HashString("NO_ANOMALY"); - static const int NEUTRAL_HASH = HashingUtils::HashString("NEUTRAL"); + static constexpr uint32_t ANOMALY_HASH = ConstExprHashingUtils::HashString("ANOMALY"); + static constexpr uint32_t NO_ANOMALY_HASH = ConstExprHashingUtils::HashString("NO_ANOMALY"); + static constexpr uint32_t NEUTRAL_HASH = ConstExprHashingUtils::HashString("NEUTRAL"); LabelRating GetLabelRatingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANOMALY_HASH) { return LabelRating::ANOMALY; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LatestInferenceResult.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LatestInferenceResult.cpp index bfdaf7a24c7..73c9e50029e 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LatestInferenceResult.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/LatestInferenceResult.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LatestInferenceResultMapper { - static const int ANOMALOUS_HASH = HashingUtils::HashString("ANOMALOUS"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t ANOMALOUS_HASH = ConstExprHashingUtils::HashString("ANOMALOUS"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); LatestInferenceResult GetLatestInferenceResultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANOMALOUS_HASH) { return LatestInferenceResult::ANOMALOUS; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelPromoteMode.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelPromoteMode.cpp index a44baca5c5e..42e7d134a50 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelPromoteMode.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelPromoteMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelPromoteModeMapper { - static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t MANAGED_HASH = ConstExprHashingUtils::HashString("MANAGED"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); ModelPromoteMode GetModelPromoteModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANAGED_HASH) { return ModelPromoteMode::MANAGED; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelStatus.cpp index 28068cd3ae2..59b4315a72f 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ModelStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); ModelStatus GetModelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ModelStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionSourceType.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionSourceType.cpp index d1471c3205d..fd7757e6ddc 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionSourceType.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionSourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelVersionSourceTypeMapper { - static const int TRAINING_HASH = HashingUtils::HashString("TRAINING"); - static const int RETRAINING_HASH = HashingUtils::HashString("RETRAINING"); - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); + static constexpr uint32_t TRAINING_HASH = ConstExprHashingUtils::HashString("TRAINING"); + static constexpr uint32_t RETRAINING_HASH = ConstExprHashingUtils::HashString("RETRAINING"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); ModelVersionSourceType GetModelVersionSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAINING_HASH) { return ModelVersionSourceType::TRAINING; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionStatus.cpp index b682fdc1ab2..dd60aee6bc8 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ModelVersionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ModelVersionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IMPORT_IN_PROGRESS_HASH = HashingUtils::HashString("IMPORT_IN_PROGRESS"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IMPORT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IMPORT_IN_PROGRESS"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); ModelVersionStatus GetModelVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ModelVersionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/Monotonicity.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/Monotonicity.cpp index 92fd5d7ef19..97938727874 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/Monotonicity.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/Monotonicity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MonotonicityMapper { - static const int DECREASING_HASH = HashingUtils::HashString("DECREASING"); - static const int INCREASING_HASH = HashingUtils::HashString("INCREASING"); - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static constexpr uint32_t DECREASING_HASH = ConstExprHashingUtils::HashString("DECREASING"); + static constexpr uint32_t INCREASING_HASH = ConstExprHashingUtils::HashString("INCREASING"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); Monotonicity GetMonotonicityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DECREASING_HASH) { return Monotonicity::DECREASING; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/RetrainingSchedulerStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/RetrainingSchedulerStatus.cpp index ef68f5cfd5c..fd642901988 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/RetrainingSchedulerStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/RetrainingSchedulerStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RetrainingSchedulerStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); RetrainingSchedulerStatus GetRetrainingSchedulerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return RetrainingSchedulerStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/StatisticalIssueStatus.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/StatisticalIssueStatus.cpp index 3c08d1cfe0d..3b70ae80652 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/StatisticalIssueStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/StatisticalIssueStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatisticalIssueStatusMapper { - static const int POTENTIAL_ISSUE_DETECTED_HASH = HashingUtils::HashString("POTENTIAL_ISSUE_DETECTED"); - static const int NO_ISSUE_DETECTED_HASH = HashingUtils::HashString("NO_ISSUE_DETECTED"); + static constexpr uint32_t POTENTIAL_ISSUE_DETECTED_HASH = ConstExprHashingUtils::HashString("POTENTIAL_ISSUE_DETECTED"); + static constexpr uint32_t NO_ISSUE_DETECTED_HASH = ConstExprHashingUtils::HashString("NO_ISSUE_DETECTED"); StatisticalIssueStatus GetStatisticalIssueStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POTENTIAL_ISSUE_DETECTED_HASH) { return StatisticalIssueStatus::POTENTIAL_ISSUE_DETECTED; diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/TargetSamplingRate.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/TargetSamplingRate.cpp index 8e9d5b4263f..6a2a146c5a7 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/model/TargetSamplingRate.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/model/TargetSamplingRate.cpp @@ -20,22 +20,22 @@ namespace Aws namespace TargetSamplingRateMapper { - static const int PT1S_HASH = HashingUtils::HashString("PT1S"); - static const int PT5S_HASH = HashingUtils::HashString("PT5S"); - static const int PT10S_HASH = HashingUtils::HashString("PT10S"); - static const int PT15S_HASH = HashingUtils::HashString("PT15S"); - static const int PT30S_HASH = HashingUtils::HashString("PT30S"); - static const int PT1M_HASH = HashingUtils::HashString("PT1M"); - static const int PT5M_HASH = HashingUtils::HashString("PT5M"); - static const int PT10M_HASH = HashingUtils::HashString("PT10M"); - static const int PT15M_HASH = HashingUtils::HashString("PT15M"); - static const int PT30M_HASH = HashingUtils::HashString("PT30M"); - static const int PT1H_HASH = HashingUtils::HashString("PT1H"); + static constexpr uint32_t PT1S_HASH = ConstExprHashingUtils::HashString("PT1S"); + static constexpr uint32_t PT5S_HASH = ConstExprHashingUtils::HashString("PT5S"); + static constexpr uint32_t PT10S_HASH = ConstExprHashingUtils::HashString("PT10S"); + static constexpr uint32_t PT15S_HASH = ConstExprHashingUtils::HashString("PT15S"); + static constexpr uint32_t PT30S_HASH = ConstExprHashingUtils::HashString("PT30S"); + static constexpr uint32_t PT1M_HASH = ConstExprHashingUtils::HashString("PT1M"); + static constexpr uint32_t PT5M_HASH = ConstExprHashingUtils::HashString("PT5M"); + static constexpr uint32_t PT10M_HASH = ConstExprHashingUtils::HashString("PT10M"); + static constexpr uint32_t PT15M_HASH = ConstExprHashingUtils::HashString("PT15M"); + static constexpr uint32_t PT30M_HASH = ConstExprHashingUtils::HashString("PT30M"); + static constexpr uint32_t PT1H_HASH = ConstExprHashingUtils::HashString("PT1H"); TargetSamplingRate GetTargetSamplingRateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PT1S_HASH) { return TargetSamplingRate::PT1S; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/LookoutMetricsErrors.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/LookoutMetricsErrors.cpp index d77587f252e..21702274646 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/LookoutMetricsErrors.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/LookoutMetricsErrors.cpp @@ -47,15 +47,15 @@ template<> AWS_LOOKOUTMETRICS_API ValidationException LookoutMetricsError::GetMo namespace LookoutMetricsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AggregationFunction.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AggregationFunction.cpp index 5316ab9d91c..d8f2854b639 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AggregationFunction.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AggregationFunction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AggregationFunctionMapper { - static const int AVG_HASH = HashingUtils::HashString("AVG"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); + static constexpr uint32_t AVG_HASH = ConstExprHashingUtils::HashString("AVG"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); AggregationFunction GetAggregationFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVG_HASH) { return AggregationFunction::AVG; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertStatus.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertStatus.cpp index 3a31b293e5d..1be155b7eba 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AlertStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); AlertStatus GetAlertStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AlertStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertType.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertType.cpp index 99604a9f3e4..f9af656c86e 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertType.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AlertType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AlertTypeMapper { - static const int SNS_HASH = HashingUtils::HashString("SNS"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); AlertType GetAlertTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNS_HASH) { return AlertType::SNS; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectionTaskStatus.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectionTaskStatus.cpp index bd5586a0803..91d9403c74e 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectionTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectionTaskStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AnomalyDetectionTaskStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int FAILED_TO_SCHEDULE_HASH = HashingUtils::HashString("FAILED_TO_SCHEDULE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t FAILED_TO_SCHEDULE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_SCHEDULE"); AnomalyDetectionTaskStatus GetAnomalyDetectionTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return AnomalyDetectionTaskStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorFailureType.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorFailureType.cpp index be8481fe979..7917d6d1d5c 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorFailureType.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorFailureType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AnomalyDetectorFailureTypeMapper { - static const int ACTIVATION_FAILURE_HASH = HashingUtils::HashString("ACTIVATION_FAILURE"); - static const int BACK_TEST_ACTIVATION_FAILURE_HASH = HashingUtils::HashString("BACK_TEST_ACTIVATION_FAILURE"); - static const int DELETION_FAILURE_HASH = HashingUtils::HashString("DELETION_FAILURE"); - static const int DEACTIVATION_FAILURE_HASH = HashingUtils::HashString("DEACTIVATION_FAILURE"); + static constexpr uint32_t ACTIVATION_FAILURE_HASH = ConstExprHashingUtils::HashString("ACTIVATION_FAILURE"); + static constexpr uint32_t BACK_TEST_ACTIVATION_FAILURE_HASH = ConstExprHashingUtils::HashString("BACK_TEST_ACTIVATION_FAILURE"); + static constexpr uint32_t DELETION_FAILURE_HASH = ConstExprHashingUtils::HashString("DELETION_FAILURE"); + static constexpr uint32_t DEACTIVATION_FAILURE_HASH = ConstExprHashingUtils::HashString("DEACTIVATION_FAILURE"); AnomalyDetectorFailureType GetAnomalyDetectorFailureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATION_FAILURE_HASH) { return AnomalyDetectorFailureType::ACTIVATION_FAILURE; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorStatus.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorStatus.cpp index 708c6ea4c4a..f899f167bc3 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/AnomalyDetectorStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace AnomalyDetectorStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int LEARNING_HASH = HashingUtils::HashString("LEARNING"); - static const int BACK_TEST_ACTIVATING_HASH = HashingUtils::HashString("BACK_TEST_ACTIVATING"); - static const int BACK_TEST_ACTIVE_HASH = HashingUtils::HashString("BACK_TEST_ACTIVE"); - static const int BACK_TEST_COMPLETE_HASH = HashingUtils::HashString("BACK_TEST_COMPLETE"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int DEACTIVATING_HASH = HashingUtils::HashString("DEACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t LEARNING_HASH = ConstExprHashingUtils::HashString("LEARNING"); + static constexpr uint32_t BACK_TEST_ACTIVATING_HASH = ConstExprHashingUtils::HashString("BACK_TEST_ACTIVATING"); + static constexpr uint32_t BACK_TEST_ACTIVE_HASH = ConstExprHashingUtils::HashString("BACK_TEST_ACTIVE"); + static constexpr uint32_t BACK_TEST_COMPLETE_HASH = ConstExprHashingUtils::HashString("BACK_TEST_COMPLETE"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t DEACTIVATING_HASH = ConstExprHashingUtils::HashString("DEACTIVATING"); AnomalyDetectorStatus GetAnomalyDetectorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AnomalyDetectorStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/CSVFileCompression.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/CSVFileCompression.cpp index 357809c23d9..669b36ca729 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/CSVFileCompression.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/CSVFileCompression.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CSVFileCompressionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); CSVFileCompression GetCSVFileCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return CSVFileCompression::NONE; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Confidence.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Confidence.cpp index 679e19865f6..3319a321212 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Confidence.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Confidence.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfidenceMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Confidence GetConfidenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return Confidence::HIGH; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/DataQualityMetricType.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/DataQualityMetricType.cpp index aae3a3c1c98..c36fcd26366 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/DataQualityMetricType.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/DataQualityMetricType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace DataQualityMetricTypeMapper { - static const int COLUMN_COMPLETENESS_HASH = HashingUtils::HashString("COLUMN_COMPLETENESS"); - static const int DIMENSION_UNIQUENESS_HASH = HashingUtils::HashString("DIMENSION_UNIQUENESS"); - static const int TIME_SERIES_COUNT_HASH = HashingUtils::HashString("TIME_SERIES_COUNT"); - static const int ROWS_PROCESSED_HASH = HashingUtils::HashString("ROWS_PROCESSED"); - static const int ROWS_PARTIAL_COMPLIANCE_HASH = HashingUtils::HashString("ROWS_PARTIAL_COMPLIANCE"); - static const int INVALID_ROWS_COMPLIANCE_HASH = HashingUtils::HashString("INVALID_ROWS_COMPLIANCE"); - static const int BACKTEST_TRAINING_DATA_START_TIME_STAMP_HASH = HashingUtils::HashString("BACKTEST_TRAINING_DATA_START_TIME_STAMP"); - static const int BACKTEST_TRAINING_DATA_END_TIME_STAMP_HASH = HashingUtils::HashString("BACKTEST_TRAINING_DATA_END_TIME_STAMP"); - static const int BACKTEST_INFERENCE_DATA_START_TIME_STAMP_HASH = HashingUtils::HashString("BACKTEST_INFERENCE_DATA_START_TIME_STAMP"); - static const int BACKTEST_INFERENCE_DATA_END_TIME_STAMP_HASH = HashingUtils::HashString("BACKTEST_INFERENCE_DATA_END_TIME_STAMP"); + static constexpr uint32_t COLUMN_COMPLETENESS_HASH = ConstExprHashingUtils::HashString("COLUMN_COMPLETENESS"); + static constexpr uint32_t DIMENSION_UNIQUENESS_HASH = ConstExprHashingUtils::HashString("DIMENSION_UNIQUENESS"); + static constexpr uint32_t TIME_SERIES_COUNT_HASH = ConstExprHashingUtils::HashString("TIME_SERIES_COUNT"); + static constexpr uint32_t ROWS_PROCESSED_HASH = ConstExprHashingUtils::HashString("ROWS_PROCESSED"); + static constexpr uint32_t ROWS_PARTIAL_COMPLIANCE_HASH = ConstExprHashingUtils::HashString("ROWS_PARTIAL_COMPLIANCE"); + static constexpr uint32_t INVALID_ROWS_COMPLIANCE_HASH = ConstExprHashingUtils::HashString("INVALID_ROWS_COMPLIANCE"); + static constexpr uint32_t BACKTEST_TRAINING_DATA_START_TIME_STAMP_HASH = ConstExprHashingUtils::HashString("BACKTEST_TRAINING_DATA_START_TIME_STAMP"); + static constexpr uint32_t BACKTEST_TRAINING_DATA_END_TIME_STAMP_HASH = ConstExprHashingUtils::HashString("BACKTEST_TRAINING_DATA_END_TIME_STAMP"); + static constexpr uint32_t BACKTEST_INFERENCE_DATA_START_TIME_STAMP_HASH = ConstExprHashingUtils::HashString("BACKTEST_INFERENCE_DATA_START_TIME_STAMP"); + static constexpr uint32_t BACKTEST_INFERENCE_DATA_END_TIME_STAMP_HASH = ConstExprHashingUtils::HashString("BACKTEST_INFERENCE_DATA_END_TIME_STAMP"); DataQualityMetricType GetDataQualityMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMN_COMPLETENESS_HASH) { return DataQualityMetricType::COLUMN_COMPLETENESS; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/FilterOperation.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/FilterOperation.cpp index 3f6afc010be..d9ac00d0d73 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/FilterOperation.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/FilterOperation.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FilterOperationMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); FilterOperation GetFilterOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return FilterOperation::EQUALS; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Frequency.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Frequency.cpp index 24ad63617a8..223b98ac362 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Frequency.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/Frequency.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FrequencyMapper { - static const int P1D_HASH = HashingUtils::HashString("P1D"); - static const int PT1H_HASH = HashingUtils::HashString("PT1H"); - static const int PT10M_HASH = HashingUtils::HashString("PT10M"); - static const int PT5M_HASH = HashingUtils::HashString("PT5M"); + static constexpr uint32_t P1D_HASH = ConstExprHashingUtils::HashString("P1D"); + static constexpr uint32_t PT1H_HASH = ConstExprHashingUtils::HashString("PT1H"); + static constexpr uint32_t PT10M_HASH = ConstExprHashingUtils::HashString("PT10M"); + static constexpr uint32_t PT5M_HASH = ConstExprHashingUtils::HashString("PT5M"); Frequency GetFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == P1D_HASH) { return Frequency::P1D; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/JsonFileCompression.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/JsonFileCompression.cpp index 69dc725b018..e34ebde8a65 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/JsonFileCompression.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/JsonFileCompression.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JsonFileCompressionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); JsonFileCompression GetJsonFileCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return JsonFileCompression::NONE; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/RelationshipType.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/RelationshipType.cpp index 8207321f7c2..6d3f967c120 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/RelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/RelationshipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RelationshipTypeMapper { - static const int CAUSE_OF_INPUT_ANOMALY_GROUP_HASH = HashingUtils::HashString("CAUSE_OF_INPUT_ANOMALY_GROUP"); - static const int EFFECT_OF_INPUT_ANOMALY_GROUP_HASH = HashingUtils::HashString("EFFECT_OF_INPUT_ANOMALY_GROUP"); + static constexpr uint32_t CAUSE_OF_INPUT_ANOMALY_GROUP_HASH = ConstExprHashingUtils::HashString("CAUSE_OF_INPUT_ANOMALY_GROUP"); + static constexpr uint32_t EFFECT_OF_INPUT_ANOMALY_GROUP_HASH = ConstExprHashingUtils::HashString("EFFECT_OF_INPUT_ANOMALY_GROUP"); RelationshipType GetRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAUSE_OF_INPUT_ANOMALY_GROUP_HASH) { return RelationshipType::CAUSE_OF_INPUT_ANOMALY_GROUP; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/SnsFormat.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/SnsFormat.cpp index 95c0684eca0..b556b95742f 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/SnsFormat.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/SnsFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SnsFormatMapper { - static const int LONG_TEXT_HASH = HashingUtils::HashString("LONG_TEXT"); - static const int SHORT_TEXT_HASH = HashingUtils::HashString("SHORT_TEXT"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t LONG_TEXT_HASH = ConstExprHashingUtils::HashString("LONG_TEXT"); + static constexpr uint32_t SHORT_TEXT_HASH = ConstExprHashingUtils::HashString("SHORT_TEXT"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); SnsFormat GetSnsFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LONG_TEXT_HASH) { return SnsFormat::LONG_TEXT; diff --git a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/ValidationExceptionReason.cpp index a3abb7aff19..b793b3c32e4 100644 --- a/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-lookoutmetrics/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/LookoutforVisionErrors.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/LookoutforVisionErrors.cpp index 391139e9630..a72ddcaa906 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/LookoutforVisionErrors.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/LookoutforVisionErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_LOOKOUTFORVISION_API ResourceNotFoundException LookoutforVisionEr namespace LookoutforVisionErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/DatasetStatus.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/DatasetStatus.cpp index bfd7460faf6..18550e7934f 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/DatasetStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/DatasetStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace DatasetStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int UPDATE_FAILED_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_FAILED_ROLLBACK_IN_PROGRESS"); - static const int UPDATE_FAILED_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("UPDATE_FAILED_ROLLBACK_COMPLETE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED_ROLLBACK_COMPLETE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); DatasetStatus GetDatasetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return DatasetStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelHostingStatus.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelHostingStatus.cpp index 448c3860491..e831804a54c 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelHostingStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelHostingStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ModelHostingStatusMapper { - static const int STARTING_HOSTING_HASH = HashingUtils::HashString("STARTING_HOSTING"); - static const int HOSTED_HASH = HashingUtils::HashString("HOSTED"); - static const int HOSTING_FAILED_HASH = HashingUtils::HashString("HOSTING_FAILED"); - static const int STOPPING_HOSTING_HASH = HashingUtils::HashString("STOPPING_HOSTING"); - static const int SYSTEM_UPDATING_HASH = HashingUtils::HashString("SYSTEM_UPDATING"); + static constexpr uint32_t STARTING_HOSTING_HASH = ConstExprHashingUtils::HashString("STARTING_HOSTING"); + static constexpr uint32_t HOSTED_HASH = ConstExprHashingUtils::HashString("HOSTED"); + static constexpr uint32_t HOSTING_FAILED_HASH = ConstExprHashingUtils::HashString("HOSTING_FAILED"); + static constexpr uint32_t STOPPING_HOSTING_HASH = ConstExprHashingUtils::HashString("STOPPING_HOSTING"); + static constexpr uint32_t SYSTEM_UPDATING_HASH = ConstExprHashingUtils::HashString("SYSTEM_UPDATING"); ModelHostingStatus GetModelHostingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HOSTING_HASH) { return ModelHostingStatus::STARTING_HOSTING; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelPackagingJobStatus.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelPackagingJobStatus.cpp index 2abe2f3813d..d0c2437b58e 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelPackagingJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelPackagingJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ModelPackagingJobStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ModelPackagingJobStatus GetModelPackagingJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return ModelPackagingJobStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelStatus.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelStatus.cpp index 4d6bd42f914..957e018b5b7 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelStatus.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ModelStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ModelStatusMapper { - static const int TRAINING_HASH = HashingUtils::HashString("TRAINING"); - static const int TRAINED_HASH = HashingUtils::HashString("TRAINED"); - static const int TRAINING_FAILED_HASH = HashingUtils::HashString("TRAINING_FAILED"); - static const int STARTING_HOSTING_HASH = HashingUtils::HashString("STARTING_HOSTING"); - static const int HOSTED_HASH = HashingUtils::HashString("HOSTED"); - static const int HOSTING_FAILED_HASH = HashingUtils::HashString("HOSTING_FAILED"); - static const int STOPPING_HOSTING_HASH = HashingUtils::HashString("STOPPING_HOSTING"); - static const int SYSTEM_UPDATING_HASH = HashingUtils::HashString("SYSTEM_UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t TRAINING_HASH = ConstExprHashingUtils::HashString("TRAINING"); + static constexpr uint32_t TRAINED_HASH = ConstExprHashingUtils::HashString("TRAINED"); + static constexpr uint32_t TRAINING_FAILED_HASH = ConstExprHashingUtils::HashString("TRAINING_FAILED"); + static constexpr uint32_t STARTING_HOSTING_HASH = ConstExprHashingUtils::HashString("STARTING_HOSTING"); + static constexpr uint32_t HOSTED_HASH = ConstExprHashingUtils::HashString("HOSTED"); + static constexpr uint32_t HOSTING_FAILED_HASH = ConstExprHashingUtils::HashString("HOSTING_FAILED"); + static constexpr uint32_t STOPPING_HOSTING_HASH = ConstExprHashingUtils::HashString("STOPPING_HOSTING"); + static constexpr uint32_t SYSTEM_UPDATING_HASH = ConstExprHashingUtils::HashString("SYSTEM_UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ModelStatus GetModelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAINING_HASH) { return ModelStatus::TRAINING; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ResourceType.cpp index 7c4d0c4d9c4..54fc8a62ba3 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int PROJECT_HASH = HashingUtils::HashString("PROJECT"); - static const int DATASET_HASH = HashingUtils::HashString("DATASET"); - static const int MODEL_HASH = HashingUtils::HashString("MODEL"); - static const int TRIAL_HASH = HashingUtils::HashString("TRIAL"); - static const int MODEL_PACKAGE_JOB_HASH = HashingUtils::HashString("MODEL_PACKAGE_JOB"); + static constexpr uint32_t PROJECT_HASH = ConstExprHashingUtils::HashString("PROJECT"); + static constexpr uint32_t DATASET_HASH = ConstExprHashingUtils::HashString("DATASET"); + static constexpr uint32_t MODEL_HASH = ConstExprHashingUtils::HashString("MODEL"); + static constexpr uint32_t TRIAL_HASH = ConstExprHashingUtils::HashString("TRIAL"); + static constexpr uint32_t MODEL_PACKAGE_JOB_HASH = ConstExprHashingUtils::HashString("MODEL_PACKAGE_JOB"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROJECT_HASH) { return ResourceType::PROJECT; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetDevice.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetDevice.cpp index b3a89a7ca4c..df4e2c6f584 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetDevice.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetDevice.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetDeviceMapper { - static const int jetson_xavier_HASH = HashingUtils::HashString("jetson_xavier"); + static constexpr uint32_t jetson_xavier_HASH = ConstExprHashingUtils::HashString("jetson_xavier"); TargetDevice GetTargetDeviceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == jetson_xavier_HASH) { return TargetDevice::jetson_xavier; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformAccelerator.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformAccelerator.cpp index 9c2e7cadbc0..88523aed314 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformAccelerator.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformAccelerator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetPlatformAcceleratorMapper { - static const int NVIDIA_HASH = HashingUtils::HashString("NVIDIA"); + static constexpr uint32_t NVIDIA_HASH = ConstExprHashingUtils::HashString("NVIDIA"); TargetPlatformAccelerator GetTargetPlatformAcceleratorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NVIDIA_HASH) { return TargetPlatformAccelerator::NVIDIA; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformArch.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformArch.cpp index 04d65acf31d..ac2312e8337 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformArch.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformArch.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetPlatformArchMapper { - static const int ARM64_HASH = HashingUtils::HashString("ARM64"); - static const int X86_64_HASH = HashingUtils::HashString("X86_64"); + static constexpr uint32_t ARM64_HASH = ConstExprHashingUtils::HashString("ARM64"); + static constexpr uint32_t X86_64_HASH = ConstExprHashingUtils::HashString("X86_64"); TargetPlatformArch GetTargetPlatformArchForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARM64_HASH) { return TargetPlatformArch::ARM64; diff --git a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformOs.cpp b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformOs.cpp index a0bf01241ea..a61223def9f 100644 --- a/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformOs.cpp +++ b/generated/src/aws-cpp-sdk-lookoutvision/source/model/TargetPlatformOs.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetPlatformOsMapper { - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); TargetPlatformOs GetTargetPlatformOsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINUX_HASH) { return TargetPlatformOs::LINUX; diff --git a/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationErrors.cpp b/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationErrors.cpp index 0e2e3fa3e8f..e1c4d8a6cd6 100644 --- a/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationErrors.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_MAINFRAMEMODERNIZATION_API ValidationException MainframeModerniza namespace MainframeModernizationErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-m2/source/model/ApplicationDeploymentLifecycle.cpp b/generated/src/aws-cpp-sdk-m2/source/model/ApplicationDeploymentLifecycle.cpp index 955d9123f93..bde1ebcf4d5 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/ApplicationDeploymentLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/ApplicationDeploymentLifecycle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplicationDeploymentLifecycleMapper { - static const int Deploying_HASH = HashingUtils::HashString("Deploying"); - static const int Deployed_HASH = HashingUtils::HashString("Deployed"); + static constexpr uint32_t Deploying_HASH = ConstExprHashingUtils::HashString("Deploying"); + static constexpr uint32_t Deployed_HASH = ConstExprHashingUtils::HashString("Deployed"); ApplicationDeploymentLifecycle GetApplicationDeploymentLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Deploying_HASH) { return ApplicationDeploymentLifecycle::Deploying; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/ApplicationLifecycle.cpp b/generated/src/aws-cpp-sdk-m2/source/model/ApplicationLifecycle.cpp index 82b2dd4b981..0092b23572c 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/ApplicationLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/ApplicationLifecycle.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ApplicationLifecycleMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); - static const int Starting_HASH = HashingUtils::HashString("Starting"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleting_From_Environment_HASH = HashingUtils::HashString("Deleting From Environment"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); + static constexpr uint32_t Starting_HASH = ConstExprHashingUtils::HashString("Starting"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleting_From_Environment_HASH = ConstExprHashingUtils::HashString("Deleting From Environment"); ApplicationLifecycle GetApplicationLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return ApplicationLifecycle::Creating; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/ApplicationVersionLifecycle.cpp b/generated/src/aws-cpp-sdk-m2/source/model/ApplicationVersionLifecycle.cpp index b84653bb2fe..75556a88459 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/ApplicationVersionLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/ApplicationVersionLifecycle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationVersionLifecycleMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ApplicationVersionLifecycle GetApplicationVersionLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return ApplicationVersionLifecycle::Creating; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/BatchJobExecutionStatus.cpp b/generated/src/aws-cpp-sdk-m2/source/model/BatchJobExecutionStatus.cpp index 6329a8ec395..255fd34e784 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/BatchJobExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/BatchJobExecutionStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace BatchJobExecutionStatusMapper { - static const int Submitting_HASH = HashingUtils::HashString("Submitting"); - static const int Holding_HASH = HashingUtils::HashString("Holding"); - static const int Dispatching_HASH = HashingUtils::HashString("Dispatching"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Succeeded_With_Warning_HASH = HashingUtils::HashString("Succeeded With Warning"); + static constexpr uint32_t Submitting_HASH = ConstExprHashingUtils::HashString("Submitting"); + static constexpr uint32_t Holding_HASH = ConstExprHashingUtils::HashString("Holding"); + static constexpr uint32_t Dispatching_HASH = ConstExprHashingUtils::HashString("Dispatching"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_With_Warning_HASH = ConstExprHashingUtils::HashString("Succeeded With Warning"); BatchJobExecutionStatus GetBatchJobExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Submitting_HASH) { return BatchJobExecutionStatus::Submitting; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/BatchJobType.cpp b/generated/src/aws-cpp-sdk-m2/source/model/BatchJobType.cpp index 01df6057652..dc13f278868 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/BatchJobType.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/BatchJobType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatchJobTypeMapper { - static const int VSE_HASH = HashingUtils::HashString("VSE"); - static const int JES2_HASH = HashingUtils::HashString("JES2"); - static const int JES3_HASH = HashingUtils::HashString("JES3"); + static constexpr uint32_t VSE_HASH = ConstExprHashingUtils::HashString("VSE"); + static constexpr uint32_t JES2_HASH = ConstExprHashingUtils::HashString("JES2"); + static constexpr uint32_t JES3_HASH = ConstExprHashingUtils::HashString("JES3"); BatchJobType GetBatchJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VSE_HASH) { return BatchJobType::VSE; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/DataSetTaskLifecycle.cpp b/generated/src/aws-cpp-sdk-m2/source/model/DataSetTaskLifecycle.cpp index 6bb6ea3104f..dd35dc16a84 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/DataSetTaskLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/DataSetTaskLifecycle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataSetTaskLifecycleMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); DataSetTaskLifecycle GetDataSetTaskLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return DataSetTaskLifecycle::Creating; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/DeploymentLifecycle.cpp b/generated/src/aws-cpp-sdk-m2/source/model/DeploymentLifecycle.cpp index 76b5c127750..7459df3f062 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/DeploymentLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/DeploymentLifecycle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeploymentLifecycleMapper { - static const int Deploying_HASH = HashingUtils::HashString("Deploying"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Deploying_HASH = ConstExprHashingUtils::HashString("Deploying"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DeploymentLifecycle GetDeploymentLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Deploying_HASH) { return DeploymentLifecycle::Deploying; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/EngineType.cpp b/generated/src/aws-cpp-sdk-m2/source/model/EngineType.cpp index 97f63a542a3..a2cea9f871d 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/EngineType.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/EngineType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngineTypeMapper { - static const int microfocus_HASH = HashingUtils::HashString("microfocus"); - static const int bluage_HASH = HashingUtils::HashString("bluage"); + static constexpr uint32_t microfocus_HASH = ConstExprHashingUtils::HashString("microfocus"); + static constexpr uint32_t bluage_HASH = ConstExprHashingUtils::HashString("bluage"); EngineType GetEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == microfocus_HASH) { return EngineType::microfocus; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/EnvironmentLifecycle.cpp b/generated/src/aws-cpp-sdk-m2/source/model/EnvironmentLifecycle.cpp index f3374924f68..9232d8e7e88 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/EnvironmentLifecycle.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/EnvironmentLifecycle.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EnvironmentLifecycleMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); EnvironmentLifecycle GetEnvironmentLifecycleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return EnvironmentLifecycle::Creating; diff --git a/generated/src/aws-cpp-sdk-m2/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-m2/source/model/ValidationExceptionReason.cpp index 6234c7794ff..432f8ea862b 100644 --- a/generated/src/aws-cpp-sdk-m2/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningErrors.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningErrors.cpp index 8e5a71bfcfc..f8a9f908b37 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningErrors.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningErrors.cpp @@ -54,18 +54,18 @@ template<> AWS_MACHINELEARNING_API InvalidInputException MachineLearningError::G namespace MachineLearningErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagLimitExceededException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int PREDICTOR_NOT_MOUNTED_HASH = HashingUtils::HashString("PredictorNotMountedException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTagException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagLimitExceededException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t PREDICTOR_NOT_MOUNTED_HASH = ConstExprHashingUtils::HashString("PredictorNotMountedException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTagException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/Algorithm.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/Algorithm.cpp index 954c15baf90..548b54bfce0 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/Algorithm.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/Algorithm.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AlgorithmMapper { - static const int sgd_HASH = HashingUtils::HashString("sgd"); + static constexpr uint32_t sgd_HASH = ConstExprHashingUtils::HashString("sgd"); Algorithm GetAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sgd_HASH) { return Algorithm::sgd; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/BatchPredictionFilterVariable.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/BatchPredictionFilterVariable.cpp index d6327628e99..dc6b30daae1 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/BatchPredictionFilterVariable.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/BatchPredictionFilterVariable.cpp @@ -20,19 +20,19 @@ namespace Aws namespace BatchPredictionFilterVariableMapper { - static const int CreatedAt_HASH = HashingUtils::HashString("CreatedAt"); - static const int LastUpdatedAt_HASH = HashingUtils::HashString("LastUpdatedAt"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int IAMUser_HASH = HashingUtils::HashString("IAMUser"); - static const int MLModelId_HASH = HashingUtils::HashString("MLModelId"); - static const int DataSourceId_HASH = HashingUtils::HashString("DataSourceId"); - static const int DataURI_HASH = HashingUtils::HashString("DataURI"); + static constexpr uint32_t CreatedAt_HASH = ConstExprHashingUtils::HashString("CreatedAt"); + static constexpr uint32_t LastUpdatedAt_HASH = ConstExprHashingUtils::HashString("LastUpdatedAt"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t IAMUser_HASH = ConstExprHashingUtils::HashString("IAMUser"); + static constexpr uint32_t MLModelId_HASH = ConstExprHashingUtils::HashString("MLModelId"); + static constexpr uint32_t DataSourceId_HASH = ConstExprHashingUtils::HashString("DataSourceId"); + static constexpr uint32_t DataURI_HASH = ConstExprHashingUtils::HashString("DataURI"); BatchPredictionFilterVariable GetBatchPredictionFilterVariableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreatedAt_HASH) { return BatchPredictionFilterVariable::CreatedAt; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/DataSourceFilterVariable.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/DataSourceFilterVariable.cpp index c6780456848..9f5c1679a8f 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/DataSourceFilterVariable.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/DataSourceFilterVariable.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataSourceFilterVariableMapper { - static const int CreatedAt_HASH = HashingUtils::HashString("CreatedAt"); - static const int LastUpdatedAt_HASH = HashingUtils::HashString("LastUpdatedAt"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int DataLocationS3_HASH = HashingUtils::HashString("DataLocationS3"); - static const int IAMUser_HASH = HashingUtils::HashString("IAMUser"); + static constexpr uint32_t CreatedAt_HASH = ConstExprHashingUtils::HashString("CreatedAt"); + static constexpr uint32_t LastUpdatedAt_HASH = ConstExprHashingUtils::HashString("LastUpdatedAt"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t DataLocationS3_HASH = ConstExprHashingUtils::HashString("DataLocationS3"); + static constexpr uint32_t IAMUser_HASH = ConstExprHashingUtils::HashString("IAMUser"); DataSourceFilterVariable GetDataSourceFilterVariableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreatedAt_HASH) { return DataSourceFilterVariable::CreatedAt; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/DetailsAttributes.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/DetailsAttributes.cpp index 75d6b93e42a..a159106d17f 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/DetailsAttributes.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/DetailsAttributes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DetailsAttributesMapper { - static const int PredictiveModelType_HASH = HashingUtils::HashString("PredictiveModelType"); - static const int Algorithm_HASH = HashingUtils::HashString("Algorithm"); + static constexpr uint32_t PredictiveModelType_HASH = ConstExprHashingUtils::HashString("PredictiveModelType"); + static constexpr uint32_t Algorithm_HASH = ConstExprHashingUtils::HashString("Algorithm"); DetailsAttributes GetDetailsAttributesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PredictiveModelType_HASH) { return DetailsAttributes::PredictiveModelType; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/EntityStatus.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/EntityStatus.cpp index 9b158ae689e..9cd40885b5c 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/EntityStatus.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/EntityStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EntityStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); EntityStatus GetEntityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return EntityStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/EvaluationFilterVariable.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/EvaluationFilterVariable.cpp index 02a9361ea3a..9afe0acecfe 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/EvaluationFilterVariable.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/EvaluationFilterVariable.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EvaluationFilterVariableMapper { - static const int CreatedAt_HASH = HashingUtils::HashString("CreatedAt"); - static const int LastUpdatedAt_HASH = HashingUtils::HashString("LastUpdatedAt"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int IAMUser_HASH = HashingUtils::HashString("IAMUser"); - static const int MLModelId_HASH = HashingUtils::HashString("MLModelId"); - static const int DataSourceId_HASH = HashingUtils::HashString("DataSourceId"); - static const int DataURI_HASH = HashingUtils::HashString("DataURI"); + static constexpr uint32_t CreatedAt_HASH = ConstExprHashingUtils::HashString("CreatedAt"); + static constexpr uint32_t LastUpdatedAt_HASH = ConstExprHashingUtils::HashString("LastUpdatedAt"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t IAMUser_HASH = ConstExprHashingUtils::HashString("IAMUser"); + static constexpr uint32_t MLModelId_HASH = ConstExprHashingUtils::HashString("MLModelId"); + static constexpr uint32_t DataSourceId_HASH = ConstExprHashingUtils::HashString("DataSourceId"); + static constexpr uint32_t DataURI_HASH = ConstExprHashingUtils::HashString("DataURI"); EvaluationFilterVariable GetEvaluationFilterVariableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreatedAt_HASH) { return EvaluationFilterVariable::CreatedAt; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelFilterVariable.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelFilterVariable.cpp index 05c756698e9..568072f7953 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelFilterVariable.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelFilterVariable.cpp @@ -20,21 +20,21 @@ namespace Aws namespace MLModelFilterVariableMapper { - static const int CreatedAt_HASH = HashingUtils::HashString("CreatedAt"); - static const int LastUpdatedAt_HASH = HashingUtils::HashString("LastUpdatedAt"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int IAMUser_HASH = HashingUtils::HashString("IAMUser"); - static const int TrainingDataSourceId_HASH = HashingUtils::HashString("TrainingDataSourceId"); - static const int RealtimeEndpointStatus_HASH = HashingUtils::HashString("RealtimeEndpointStatus"); - static const int MLModelType_HASH = HashingUtils::HashString("MLModelType"); - static const int Algorithm_HASH = HashingUtils::HashString("Algorithm"); - static const int TrainingDataURI_HASH = HashingUtils::HashString("TrainingDataURI"); + static constexpr uint32_t CreatedAt_HASH = ConstExprHashingUtils::HashString("CreatedAt"); + static constexpr uint32_t LastUpdatedAt_HASH = ConstExprHashingUtils::HashString("LastUpdatedAt"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t IAMUser_HASH = ConstExprHashingUtils::HashString("IAMUser"); + static constexpr uint32_t TrainingDataSourceId_HASH = ConstExprHashingUtils::HashString("TrainingDataSourceId"); + static constexpr uint32_t RealtimeEndpointStatus_HASH = ConstExprHashingUtils::HashString("RealtimeEndpointStatus"); + static constexpr uint32_t MLModelType_HASH = ConstExprHashingUtils::HashString("MLModelType"); + static constexpr uint32_t Algorithm_HASH = ConstExprHashingUtils::HashString("Algorithm"); + static constexpr uint32_t TrainingDataURI_HASH = ConstExprHashingUtils::HashString("TrainingDataURI"); MLModelFilterVariable GetMLModelFilterVariableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreatedAt_HASH) { return MLModelFilterVariable::CreatedAt; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelType.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelType.cpp index c70f471398e..ff9d45e8115 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelType.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/MLModelType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MLModelTypeMapper { - static const int REGRESSION_HASH = HashingUtils::HashString("REGRESSION"); - static const int BINARY_HASH = HashingUtils::HashString("BINARY"); - static const int MULTICLASS_HASH = HashingUtils::HashString("MULTICLASS"); + static constexpr uint32_t REGRESSION_HASH = ConstExprHashingUtils::HashString("REGRESSION"); + static constexpr uint32_t BINARY_HASH = ConstExprHashingUtils::HashString("BINARY"); + static constexpr uint32_t MULTICLASS_HASH = ConstExprHashingUtils::HashString("MULTICLASS"); MLModelType GetMLModelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGRESSION_HASH) { return MLModelType::REGRESSION; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/RealtimeEndpointStatus.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/RealtimeEndpointStatus.cpp index 9d06f8800f0..1981e89dd01 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/RealtimeEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/RealtimeEndpointStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RealtimeEndpointStatusMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RealtimeEndpointStatus GetRealtimeEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return RealtimeEndpointStatus::NONE; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/SortOrder.cpp index c11bf04f439..17ec09c373a 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int asc_HASH = HashingUtils::HashString("asc"); - static const int dsc_HASH = HashingUtils::HashString("dsc"); + static constexpr uint32_t asc_HASH = ConstExprHashingUtils::HashString("asc"); + static constexpr uint32_t dsc_HASH = ConstExprHashingUtils::HashString("dsc"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == asc_HASH) { return SortOrder::asc; diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/model/TaggableResourceType.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/model/TaggableResourceType.cpp index e8e4abc9926..66e65784326 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/model/TaggableResourceType.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/model/TaggableResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TaggableResourceTypeMapper { - static const int BatchPrediction_HASH = HashingUtils::HashString("BatchPrediction"); - static const int DataSource_HASH = HashingUtils::HashString("DataSource"); - static const int Evaluation_HASH = HashingUtils::HashString("Evaluation"); - static const int MLModel_HASH = HashingUtils::HashString("MLModel"); + static constexpr uint32_t BatchPrediction_HASH = ConstExprHashingUtils::HashString("BatchPrediction"); + static constexpr uint32_t DataSource_HASH = ConstExprHashingUtils::HashString("DataSource"); + static constexpr uint32_t Evaluation_HASH = ConstExprHashingUtils::HashString("Evaluation"); + static constexpr uint32_t MLModel_HASH = ConstExprHashingUtils::HashString("MLModel"); TaggableResourceType GetTaggableResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BatchPrediction_HASH) { return TaggableResourceType::BatchPrediction; diff --git a/generated/src/aws-cpp-sdk-macie/source/MacieErrors.cpp b/generated/src/aws-cpp-sdk-macie/source/MacieErrors.cpp index ef9fa8ded2b..01a16945ae1 100644 --- a/generated/src/aws-cpp-sdk-macie/source/MacieErrors.cpp +++ b/generated/src/aws-cpp-sdk-macie/source/MacieErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_MACIE_API InvalidInputException MacieError::GetModeledError() namespace MacieErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-macie/source/model/S3ContinuousClassificationType.cpp b/generated/src/aws-cpp-sdk-macie/source/model/S3ContinuousClassificationType.cpp index b9879453dc9..a4e23ef300f 100644 --- a/generated/src/aws-cpp-sdk-macie/source/model/S3ContinuousClassificationType.cpp +++ b/generated/src/aws-cpp-sdk-macie/source/model/S3ContinuousClassificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace S3ContinuousClassificationTypeMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); S3ContinuousClassificationType GetS3ContinuousClassificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return S3ContinuousClassificationType::FULL; diff --git a/generated/src/aws-cpp-sdk-macie/source/model/S3OneTimeClassificationType.cpp b/generated/src/aws-cpp-sdk-macie/source/model/S3OneTimeClassificationType.cpp index be92173165c..3a1e9c40076 100644 --- a/generated/src/aws-cpp-sdk-macie/source/model/S3OneTimeClassificationType.cpp +++ b/generated/src/aws-cpp-sdk-macie/source/model/S3OneTimeClassificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3OneTimeClassificationTypeMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); S3OneTimeClassificationType GetS3OneTimeClassificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return S3OneTimeClassificationType::FULL; diff --git a/generated/src/aws-cpp-sdk-macie2/source/Macie2Errors.cpp b/generated/src/aws-cpp-sdk-macie2/source/Macie2Errors.cpp index 1b1c4c84bd1..5feea33c6b6 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/Macie2Errors.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/Macie2Errors.cpp @@ -18,15 +18,15 @@ namespace Macie2 namespace Macie2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/AdminStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/AdminStatus.cpp index df683392ecd..4fb8b3c4681 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/AdminStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/AdminStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdminStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLING_IN_PROGRESS"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLING_IN_PROGRESS"); AdminStatus GetAdminStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AdminStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/AllowListStatusCode.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/AllowListStatusCode.cpp index 39e33d153a2..4d894a5df49 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/AllowListStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/AllowListStatusCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace AllowListStatusCodeMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int S3_OBJECT_NOT_FOUND_HASH = HashingUtils::HashString("S3_OBJECT_NOT_FOUND"); - static const int S3_USER_ACCESS_DENIED_HASH = HashingUtils::HashString("S3_USER_ACCESS_DENIED"); - static const int S3_OBJECT_ACCESS_DENIED_HASH = HashingUtils::HashString("S3_OBJECT_ACCESS_DENIED"); - static const int S3_THROTTLED_HASH = HashingUtils::HashString("S3_THROTTLED"); - static const int S3_OBJECT_OVERSIZE_HASH = HashingUtils::HashString("S3_OBJECT_OVERSIZE"); - static const int S3_OBJECT_EMPTY_HASH = HashingUtils::HashString("S3_OBJECT_EMPTY"); - static const int UNKNOWN_ERROR_HASH = HashingUtils::HashString("UNKNOWN_ERROR"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t S3_OBJECT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("S3_OBJECT_NOT_FOUND"); + static constexpr uint32_t S3_USER_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("S3_USER_ACCESS_DENIED"); + static constexpr uint32_t S3_OBJECT_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("S3_OBJECT_ACCESS_DENIED"); + static constexpr uint32_t S3_THROTTLED_HASH = ConstExprHashingUtils::HashString("S3_THROTTLED"); + static constexpr uint32_t S3_OBJECT_OVERSIZE_HASH = ConstExprHashingUtils::HashString("S3_OBJECT_OVERSIZE"); + static constexpr uint32_t S3_OBJECT_EMPTY_HASH = ConstExprHashingUtils::HashString("S3_OBJECT_EMPTY"); + static constexpr uint32_t UNKNOWN_ERROR_HASH = ConstExprHashingUtils::HashString("UNKNOWN_ERROR"); AllowListStatusCode GetAllowListStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return AllowListStatusCode::OK; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/AllowsUnencryptedObjectUploads.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/AllowsUnencryptedObjectUploads.cpp index de33ea9c42a..4fd0136efb5 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/AllowsUnencryptedObjectUploads.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/AllowsUnencryptedObjectUploads.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AllowsUnencryptedObjectUploadsMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); AllowsUnencryptedObjectUploads GetAllowsUnencryptedObjectUploadsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return AllowsUnencryptedObjectUploads::TRUE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/AutomatedDiscoveryStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/AutomatedDiscoveryStatus.cpp index 7c325dbd42f..5b82893b6ac 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/AutomatedDiscoveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/AutomatedDiscoveryStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutomatedDiscoveryStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AutomatedDiscoveryStatus GetAutomatedDiscoveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutomatedDiscoveryStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/AvailabilityCode.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/AvailabilityCode.cpp index e898afc110f..993032b70e8 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/AvailabilityCode.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/AvailabilityCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvailabilityCodeMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); AvailabilityCode GetAvailabilityCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return AvailabilityCode::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/BucketMetadataErrorCode.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/BucketMetadataErrorCode.cpp index baa55001ef2..845cb0c456d 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/BucketMetadataErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/BucketMetadataErrorCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BucketMetadataErrorCodeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); BucketMetadataErrorCode GetBucketMetadataErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return BucketMetadataErrorCode::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/ClassificationScopeUpdateOperation.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/ClassificationScopeUpdateOperation.cpp index f3a1a884635..d96e65f6c58 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/ClassificationScopeUpdateOperation.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/ClassificationScopeUpdateOperation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClassificationScopeUpdateOperationMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); ClassificationScopeUpdateOperation GetClassificationScopeUpdateOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return ClassificationScopeUpdateOperation::ADD; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/Currency.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/Currency.cpp index 9f736bf59f5..f6f529aefb2 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/Currency.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/Currency.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CurrencyMapper { - static const int USD_HASH = HashingUtils::HashString("USD"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); Currency GetCurrencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USD_HASH) { return Currency::USD; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierSeverity.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierSeverity.cpp index a7f78e43dc2..cae01a78672 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierSeverity.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierSeverity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataIdentifierSeverityMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); DataIdentifierSeverity GetDataIdentifierSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return DataIdentifierSeverity::LOW; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierType.cpp index d2342f2c75b..c3fa26b0368 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/DataIdentifierType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataIdentifierTypeMapper { - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t MANAGED_HASH = ConstExprHashingUtils::HashString("MANAGED"); DataIdentifierType GetDataIdentifierTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOM_HASH) { return DataIdentifierType::CUSTOM; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/DayOfWeek.cpp index ecdaae6006c..16d97be7d66 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUNDAY_HASH) { return DayOfWeek::SUNDAY; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/EffectivePermission.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/EffectivePermission.cpp index 79da87d8a78..28b1c2112c2 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/EffectivePermission.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/EffectivePermission.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EffectivePermissionMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int NOT_PUBLIC_HASH = HashingUtils::HashString("NOT_PUBLIC"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t NOT_PUBLIC_HASH = ConstExprHashingUtils::HashString("NOT_PUBLIC"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); EffectivePermission GetEffectivePermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return EffectivePermission::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/EncryptionType.cpp index 6cb6c08bcad..8398e086c9f 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/EncryptionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EncryptionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int aws_kms_HASH = HashingUtils::HashString("aws:kms"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t aws_kms_HASH = ConstExprHashingUtils::HashString("aws:kms"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return EncryptionType::NONE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/ErrorCode.cpp index f4dd97903e2..bc08b05a6bc 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/ErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorCodeMapper { - static const int ClientError_HASH = HashingUtils::HashString("ClientError"); - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); + static constexpr uint32_t ClientError_HASH = ConstExprHashingUtils::HashString("ClientError"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ClientError_HASH) { return ErrorCode::ClientError; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/FindingActionType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/FindingActionType.cpp index 48a28331220..437afcb5489 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/FindingActionType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/FindingActionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FindingActionTypeMapper { - static const int AWS_API_CALL_HASH = HashingUtils::HashString("AWS_API_CALL"); + static constexpr uint32_t AWS_API_CALL_HASH = ConstExprHashingUtils::HashString("AWS_API_CALL"); FindingActionType GetFindingActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_API_CALL_HASH) { return FindingActionType::AWS_API_CALL; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/FindingCategory.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/FindingCategory.cpp index 548db513b08..49eef4523a8 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/FindingCategory.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/FindingCategory.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FindingCategoryMapper { - static const int CLASSIFICATION_HASH = HashingUtils::HashString("CLASSIFICATION"); - static const int POLICY_HASH = HashingUtils::HashString("POLICY"); + static constexpr uint32_t CLASSIFICATION_HASH = ConstExprHashingUtils::HashString("CLASSIFICATION"); + static constexpr uint32_t POLICY_HASH = ConstExprHashingUtils::HashString("POLICY"); FindingCategory GetFindingCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASSIFICATION_HASH) { return FindingCategory::CLASSIFICATION; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/FindingPublishingFrequency.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/FindingPublishingFrequency.cpp index fffdef24236..2e459a6f2df 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/FindingPublishingFrequency.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/FindingPublishingFrequency.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FindingPublishingFrequencyMapper { - static const int FIFTEEN_MINUTES_HASH = HashingUtils::HashString("FIFTEEN_MINUTES"); - static const int ONE_HOUR_HASH = HashingUtils::HashString("ONE_HOUR"); - static const int SIX_HOURS_HASH = HashingUtils::HashString("SIX_HOURS"); + static constexpr uint32_t FIFTEEN_MINUTES_HASH = ConstExprHashingUtils::HashString("FIFTEEN_MINUTES"); + static constexpr uint32_t ONE_HOUR_HASH = ConstExprHashingUtils::HashString("ONE_HOUR"); + static constexpr uint32_t SIX_HOURS_HASH = ConstExprHashingUtils::HashString("SIX_HOURS"); FindingPublishingFrequency GetFindingPublishingFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIFTEEN_MINUTES_HASH) { return FindingPublishingFrequency::FIFTEEN_MINUTES; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/FindingStatisticsSortAttributeName.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/FindingStatisticsSortAttributeName.cpp index 279f28ee1d0..fe96dcae347 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/FindingStatisticsSortAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/FindingStatisticsSortAttributeName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FindingStatisticsSortAttributeNameMapper { - static const int groupKey_HASH = HashingUtils::HashString("groupKey"); - static const int count_HASH = HashingUtils::HashString("count"); + static constexpr uint32_t groupKey_HASH = ConstExprHashingUtils::HashString("groupKey"); + static constexpr uint32_t count_HASH = ConstExprHashingUtils::HashString("count"); FindingStatisticsSortAttributeName GetFindingStatisticsSortAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == groupKey_HASH) { return FindingStatisticsSortAttributeName::groupKey; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/FindingType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/FindingType.cpp index 7c4e510f062..e906edfce40 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/FindingType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/FindingType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace FindingTypeMapper { - static const int SensitiveData_S3Object_Multiple_HASH = HashingUtils::HashString("SensitiveData:S3Object/Multiple"); - static const int SensitiveData_S3Object_Financial_HASH = HashingUtils::HashString("SensitiveData:S3Object/Financial"); - static const int SensitiveData_S3Object_Personal_HASH = HashingUtils::HashString("SensitiveData:S3Object/Personal"); - static const int SensitiveData_S3Object_Credentials_HASH = HashingUtils::HashString("SensitiveData:S3Object/Credentials"); - static const int SensitiveData_S3Object_CustomIdentifier_HASH = HashingUtils::HashString("SensitiveData:S3Object/CustomIdentifier"); - static const int Policy_IAMUser_S3BucketPublic_HASH = HashingUtils::HashString("Policy:IAMUser/S3BucketPublic"); - static const int Policy_IAMUser_S3BucketSharedExternally_HASH = HashingUtils::HashString("Policy:IAMUser/S3BucketSharedExternally"); - static const int Policy_IAMUser_S3BucketReplicatedExternally_HASH = HashingUtils::HashString("Policy:IAMUser/S3BucketReplicatedExternally"); - static const int Policy_IAMUser_S3BucketEncryptionDisabled_HASH = HashingUtils::HashString("Policy:IAMUser/S3BucketEncryptionDisabled"); - static const int Policy_IAMUser_S3BlockPublicAccessDisabled_HASH = HashingUtils::HashString("Policy:IAMUser/S3BlockPublicAccessDisabled"); - static const int Policy_IAMUser_S3BucketSharedWithCloudFront_HASH = HashingUtils::HashString("Policy:IAMUser/S3BucketSharedWithCloudFront"); + static constexpr uint32_t SensitiveData_S3Object_Multiple_HASH = ConstExprHashingUtils::HashString("SensitiveData:S3Object/Multiple"); + static constexpr uint32_t SensitiveData_S3Object_Financial_HASH = ConstExprHashingUtils::HashString("SensitiveData:S3Object/Financial"); + static constexpr uint32_t SensitiveData_S3Object_Personal_HASH = ConstExprHashingUtils::HashString("SensitiveData:S3Object/Personal"); + static constexpr uint32_t SensitiveData_S3Object_Credentials_HASH = ConstExprHashingUtils::HashString("SensitiveData:S3Object/Credentials"); + static constexpr uint32_t SensitiveData_S3Object_CustomIdentifier_HASH = ConstExprHashingUtils::HashString("SensitiveData:S3Object/CustomIdentifier"); + static constexpr uint32_t Policy_IAMUser_S3BucketPublic_HASH = ConstExprHashingUtils::HashString("Policy:IAMUser/S3BucketPublic"); + static constexpr uint32_t Policy_IAMUser_S3BucketSharedExternally_HASH = ConstExprHashingUtils::HashString("Policy:IAMUser/S3BucketSharedExternally"); + static constexpr uint32_t Policy_IAMUser_S3BucketReplicatedExternally_HASH = ConstExprHashingUtils::HashString("Policy:IAMUser/S3BucketReplicatedExternally"); + static constexpr uint32_t Policy_IAMUser_S3BucketEncryptionDisabled_HASH = ConstExprHashingUtils::HashString("Policy:IAMUser/S3BucketEncryptionDisabled"); + static constexpr uint32_t Policy_IAMUser_S3BlockPublicAccessDisabled_HASH = ConstExprHashingUtils::HashString("Policy:IAMUser/S3BlockPublicAccessDisabled"); + static constexpr uint32_t Policy_IAMUser_S3BucketSharedWithCloudFront_HASH = ConstExprHashingUtils::HashString("Policy:IAMUser/S3BucketSharedWithCloudFront"); FindingType GetFindingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SensitiveData_S3Object_Multiple_HASH) { return FindingType::SensitiveData_S3Object_Multiple; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/FindingsFilterAction.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/FindingsFilterAction.cpp index eb68f8dc299..d0a72d1cfe4 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/FindingsFilterAction.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/FindingsFilterAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FindingsFilterActionMapper { - static const int ARCHIVE_HASH = HashingUtils::HashString("ARCHIVE"); - static const int NOOP_HASH = HashingUtils::HashString("NOOP"); + static constexpr uint32_t ARCHIVE_HASH = ConstExprHashingUtils::HashString("ARCHIVE"); + static constexpr uint32_t NOOP_HASH = ConstExprHashingUtils::HashString("NOOP"); FindingsFilterAction GetFindingsFilterActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVE_HASH) { return FindingsFilterAction::ARCHIVE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/GroupBy.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/GroupBy.cpp index 5ba9cdacbd9..33e7f73d203 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/GroupBy.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/GroupBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GroupByMapper { - static const int resourcesAffected_s3Bucket_name_HASH = HashingUtils::HashString("resourcesAffected.s3Bucket.name"); - static const int type_HASH = HashingUtils::HashString("type"); - static const int classificationDetails_jobId_HASH = HashingUtils::HashString("classificationDetails.jobId"); - static const int severity_description_HASH = HashingUtils::HashString("severity.description"); + static constexpr uint32_t resourcesAffected_s3Bucket_name_HASH = ConstExprHashingUtils::HashString("resourcesAffected.s3Bucket.name"); + static constexpr uint32_t type_HASH = ConstExprHashingUtils::HashString("type"); + static constexpr uint32_t classificationDetails_jobId_HASH = ConstExprHashingUtils::HashString("classificationDetails.jobId"); + static constexpr uint32_t severity_description_HASH = ConstExprHashingUtils::HashString("severity.description"); GroupBy GetGroupByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == resourcesAffected_s3Bucket_name_HASH) { return GroupBy::resourcesAffected_s3Bucket_name; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/IsDefinedInJob.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/IsDefinedInJob.cpp index 725452b650a..eea5ad22f3e 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/IsDefinedInJob.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/IsDefinedInJob.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IsDefinedInJobMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); IsDefinedInJob GetIsDefinedInJobForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return IsDefinedInJob::TRUE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/IsMonitoredByJob.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/IsMonitoredByJob.cpp index 85308fa99dc..587c5cd07e7 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/IsMonitoredByJob.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/IsMonitoredByJob.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IsMonitoredByJobMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); IsMonitoredByJob GetIsMonitoredByJobForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return IsMonitoredByJob::TRUE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/JobComparator.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/JobComparator.cpp index 63c51459721..444d6c9388f 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/JobComparator.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/JobComparator.cpp @@ -20,19 +20,19 @@ namespace Aws namespace JobComparatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GTE_HASH = HashingUtils::HashString("GTE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LTE_HASH = HashingUtils::HashString("LTE"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GTE_HASH = ConstExprHashingUtils::HashString("GTE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LTE_HASH = ConstExprHashingUtils::HashString("LTE"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); JobComparator GetJobComparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return JobComparator::EQ; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/JobStatus.cpp index fb16606aff0..952970db5a3 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/JobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JobStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int USER_PAUSED_HASH = HashingUtils::HashString("USER_PAUSED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t USER_PAUSED_HASH = ConstExprHashingUtils::HashString("USER_PAUSED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return JobStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/JobType.cpp index 8e4daec99bb..f65193e5201 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/JobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobTypeMapper { - static const int ONE_TIME_HASH = HashingUtils::HashString("ONE_TIME"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t ONE_TIME_HASH = ConstExprHashingUtils::HashString("ONE_TIME"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_TIME_HASH) { return JobType::ONE_TIME; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/LastRunErrorStatusCode.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/LastRunErrorStatusCode.cpp index 748fec320b0..0d9b316906f 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/LastRunErrorStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/LastRunErrorStatusCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LastRunErrorStatusCodeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); LastRunErrorStatusCode GetLastRunErrorStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return LastRunErrorStatusCode::NONE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsFilterKey.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsFilterKey.cpp index 46310c1c583..d1eca084ca5 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsFilterKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListJobsFilterKeyMapper { - static const int jobType_HASH = HashingUtils::HashString("jobType"); - static const int jobStatus_HASH = HashingUtils::HashString("jobStatus"); - static const int createdAt_HASH = HashingUtils::HashString("createdAt"); - static const int name_HASH = HashingUtils::HashString("name"); + static constexpr uint32_t jobType_HASH = ConstExprHashingUtils::HashString("jobType"); + static constexpr uint32_t jobStatus_HASH = ConstExprHashingUtils::HashString("jobStatus"); + static constexpr uint32_t createdAt_HASH = ConstExprHashingUtils::HashString("createdAt"); + static constexpr uint32_t name_HASH = ConstExprHashingUtils::HashString("name"); ListJobsFilterKey GetListJobsFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == jobType_HASH) { return ListJobsFilterKey::jobType; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsSortAttributeName.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsSortAttributeName.cpp index e4d4a38e6a0..fd6be1c7a9b 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsSortAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/ListJobsSortAttributeName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListJobsSortAttributeNameMapper { - static const int createdAt_HASH = HashingUtils::HashString("createdAt"); - static const int jobStatus_HASH = HashingUtils::HashString("jobStatus"); - static const int name_HASH = HashingUtils::HashString("name"); - static const int jobType_HASH = HashingUtils::HashString("jobType"); + static constexpr uint32_t createdAt_HASH = ConstExprHashingUtils::HashString("createdAt"); + static constexpr uint32_t jobStatus_HASH = ConstExprHashingUtils::HashString("jobStatus"); + static constexpr uint32_t name_HASH = ConstExprHashingUtils::HashString("name"); + static constexpr uint32_t jobType_HASH = ConstExprHashingUtils::HashString("jobType"); ListJobsSortAttributeName GetListJobsSortAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == createdAt_HASH) { return ListJobsSortAttributeName::createdAt; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/MacieStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/MacieStatus.cpp index e47bbadf530..26406ddf67c 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/MacieStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/MacieStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MacieStatusMapper { - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); MacieStatus GetMacieStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAUSED_HASH) { return MacieStatus::PAUSED; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/ManagedDataIdentifierSelector.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/ManagedDataIdentifierSelector.cpp index b6541cf0f61..2a0f4fd9d42 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/ManagedDataIdentifierSelector.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/ManagedDataIdentifierSelector.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ManagedDataIdentifierSelectorMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int RECOMMENDED_HASH = HashingUtils::HashString("RECOMMENDED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t RECOMMENDED_HASH = ConstExprHashingUtils::HashString("RECOMMENDED"); ManagedDataIdentifierSelector GetManagedDataIdentifierSelectorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ManagedDataIdentifierSelector::ALL; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/OrderBy.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/OrderBy.cpp index 3e4840fe705..4f2fc12b093 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/OrderBy.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/OrderBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderByMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); OrderBy GetOrderByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return OrderBy::ASC; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/OriginType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/OriginType.cpp index 1808da28a72..31e31dd82a0 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/OriginType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/OriginType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginTypeMapper { - static const int SENSITIVE_DATA_DISCOVERY_JOB_HASH = HashingUtils::HashString("SENSITIVE_DATA_DISCOVERY_JOB"); - static const int AUTOMATED_SENSITIVE_DATA_DISCOVERY_HASH = HashingUtils::HashString("AUTOMATED_SENSITIVE_DATA_DISCOVERY"); + static constexpr uint32_t SENSITIVE_DATA_DISCOVERY_JOB_HASH = ConstExprHashingUtils::HashString("SENSITIVE_DATA_DISCOVERY_JOB"); + static constexpr uint32_t AUTOMATED_SENSITIVE_DATA_DISCOVERY_HASH = ConstExprHashingUtils::HashString("AUTOMATED_SENSITIVE_DATA_DISCOVERY"); OriginType GetOriginTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SENSITIVE_DATA_DISCOVERY_JOB_HASH) { return OriginType::SENSITIVE_DATA_DISCOVERY_JOB; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/RelationshipStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/RelationshipStatus.cpp index cb7b42cbf29..71e480360db 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/RelationshipStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/RelationshipStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace RelationshipStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Paused_HASH = HashingUtils::HashString("Paused"); - static const int Invited_HASH = HashingUtils::HashString("Invited"); - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Removed_HASH = HashingUtils::HashString("Removed"); - static const int Resigned_HASH = HashingUtils::HashString("Resigned"); - static const int EmailVerificationInProgress_HASH = HashingUtils::HashString("EmailVerificationInProgress"); - static const int EmailVerificationFailed_HASH = HashingUtils::HashString("EmailVerificationFailed"); - static const int RegionDisabled_HASH = HashingUtils::HashString("RegionDisabled"); - static const int AccountSuspended_HASH = HashingUtils::HashString("AccountSuspended"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Paused_HASH = ConstExprHashingUtils::HashString("Paused"); + static constexpr uint32_t Invited_HASH = ConstExprHashingUtils::HashString("Invited"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Removed_HASH = ConstExprHashingUtils::HashString("Removed"); + static constexpr uint32_t Resigned_HASH = ConstExprHashingUtils::HashString("Resigned"); + static constexpr uint32_t EmailVerificationInProgress_HASH = ConstExprHashingUtils::HashString("EmailVerificationInProgress"); + static constexpr uint32_t EmailVerificationFailed_HASH = ConstExprHashingUtils::HashString("EmailVerificationFailed"); + static constexpr uint32_t RegionDisabled_HASH = ConstExprHashingUtils::HashString("RegionDisabled"); + static constexpr uint32_t AccountSuspended_HASH = ConstExprHashingUtils::HashString("AccountSuspended"); RelationshipStatus GetRelationshipStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return RelationshipStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/RevealRequestStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/RevealRequestStatus.cpp index 834a8c66480..175944b0b11 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/RevealRequestStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/RevealRequestStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RevealRequestStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); RevealRequestStatus GetRevealRequestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return RevealRequestStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/RevealStatus.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/RevealStatus.cpp index f72b43ac445..0860b99fcab 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/RevealStatus.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/RevealStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RevealStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); RevealStatus GetRevealStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RevealStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/ScopeFilterKey.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/ScopeFilterKey.cpp index 52455df1391..bf0cdb98ea5 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/ScopeFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/ScopeFilterKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ScopeFilterKeyMapper { - static const int OBJECT_EXTENSION_HASH = HashingUtils::HashString("OBJECT_EXTENSION"); - static const int OBJECT_LAST_MODIFIED_DATE_HASH = HashingUtils::HashString("OBJECT_LAST_MODIFIED_DATE"); - static const int OBJECT_SIZE_HASH = HashingUtils::HashString("OBJECT_SIZE"); - static const int OBJECT_KEY_HASH = HashingUtils::HashString("OBJECT_KEY"); + static constexpr uint32_t OBJECT_EXTENSION_HASH = ConstExprHashingUtils::HashString("OBJECT_EXTENSION"); + static constexpr uint32_t OBJECT_LAST_MODIFIED_DATE_HASH = ConstExprHashingUtils::HashString("OBJECT_LAST_MODIFIED_DATE"); + static constexpr uint32_t OBJECT_SIZE_HASH = ConstExprHashingUtils::HashString("OBJECT_SIZE"); + static constexpr uint32_t OBJECT_KEY_HASH = ConstExprHashingUtils::HashString("OBJECT_KEY"); ScopeFilterKey GetScopeFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OBJECT_EXTENSION_HASH) { return ScopeFilterKey::OBJECT_EXTENSION; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesComparator.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesComparator.cpp index 5e532c17df4..d989332bd16 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesComparator.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesComparator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SearchResourcesComparatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); SearchResourcesComparator GetSearchResourcesComparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return SearchResourcesComparator::EQ; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSimpleCriterionKey.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSimpleCriterionKey.cpp index 0883e3e9c43..e655435face 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSimpleCriterionKey.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSimpleCriterionKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SearchResourcesSimpleCriterionKeyMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int S3_BUCKET_NAME_HASH = HashingUtils::HashString("S3_BUCKET_NAME"); - static const int S3_BUCKET_EFFECTIVE_PERMISSION_HASH = HashingUtils::HashString("S3_BUCKET_EFFECTIVE_PERMISSION"); - static const int S3_BUCKET_SHARED_ACCESS_HASH = HashingUtils::HashString("S3_BUCKET_SHARED_ACCESS"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t S3_BUCKET_NAME_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NAME"); + static constexpr uint32_t S3_BUCKET_EFFECTIVE_PERMISSION_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_EFFECTIVE_PERMISSION"); + static constexpr uint32_t S3_BUCKET_SHARED_ACCESS_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_SHARED_ACCESS"); SearchResourcesSimpleCriterionKey GetSearchResourcesSimpleCriterionKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return SearchResourcesSimpleCriterionKey::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSortAttributeName.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSortAttributeName.cpp index dee3b9f8bbe..cbbeaa86827 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSortAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SearchResourcesSortAttributeName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SearchResourcesSortAttributeNameMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int RESOURCE_NAME_HASH = HashingUtils::HashString("RESOURCE_NAME"); - static const int S3_CLASSIFIABLE_OBJECT_COUNT_HASH = HashingUtils::HashString("S3_CLASSIFIABLE_OBJECT_COUNT"); - static const int S3_CLASSIFIABLE_SIZE_IN_BYTES_HASH = HashingUtils::HashString("S3_CLASSIFIABLE_SIZE_IN_BYTES"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t RESOURCE_NAME_HASH = ConstExprHashingUtils::HashString("RESOURCE_NAME"); + static constexpr uint32_t S3_CLASSIFIABLE_OBJECT_COUNT_HASH = ConstExprHashingUtils::HashString("S3_CLASSIFIABLE_OBJECT_COUNT"); + static constexpr uint32_t S3_CLASSIFIABLE_SIZE_IN_BYTES_HASH = ConstExprHashingUtils::HashString("S3_CLASSIFIABLE_SIZE_IN_BYTES"); SearchResourcesSortAttributeName GetSearchResourcesSortAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return SearchResourcesSortAttributeName::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp index 2de4e47ef66..db4e02e7be8 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SensitiveDataItemCategoryMapper { - static const int FINANCIAL_INFORMATION_HASH = HashingUtils::HashString("FINANCIAL_INFORMATION"); - static const int PERSONAL_INFORMATION_HASH = HashingUtils::HashString("PERSONAL_INFORMATION"); - static const int CREDENTIALS_HASH = HashingUtils::HashString("CREDENTIALS"); - static const int CUSTOM_IDENTIFIER_HASH = HashingUtils::HashString("CUSTOM_IDENTIFIER"); + static constexpr uint32_t FINANCIAL_INFORMATION_HASH = ConstExprHashingUtils::HashString("FINANCIAL_INFORMATION"); + static constexpr uint32_t PERSONAL_INFORMATION_HASH = ConstExprHashingUtils::HashString("PERSONAL_INFORMATION"); + static constexpr uint32_t CREDENTIALS_HASH = ConstExprHashingUtils::HashString("CREDENTIALS"); + static constexpr uint32_t CUSTOM_IDENTIFIER_HASH = ConstExprHashingUtils::HashString("CUSTOM_IDENTIFIER"); SensitiveDataItemCategory GetSensitiveDataItemCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINANCIAL_INFORMATION_HASH) { return SensitiveDataItemCategory::FINANCIAL_INFORMATION; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SeverityDescription.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SeverityDescription.cpp index 7ee94c7f7b8..2b8064a4606 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SeverityDescription.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SeverityDescription.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SeverityDescriptionMapper { - static const int Low_HASH = HashingUtils::HashString("Low"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); + static constexpr uint32_t Low_HASH = ConstExprHashingUtils::HashString("Low"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); SeverityDescription GetSeverityDescriptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Low_HASH) { return SeverityDescription::Low; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SharedAccess.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SharedAccess.cpp index 9d0894b4edd..fbe1afe9919 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SharedAccess.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SharedAccess.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SharedAccessMapper { - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); - static const int INTERNAL_HASH = HashingUtils::HashString("INTERNAL"); - static const int NOT_SHARED_HASH = HashingUtils::HashString("NOT_SHARED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("INTERNAL"); + static constexpr uint32_t NOT_SHARED_HASH = ConstExprHashingUtils::HashString("NOT_SHARED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); SharedAccess GetSharedAccessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTERNAL_HASH) { return SharedAccess::EXTERNAL; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/SimpleCriterionKeyForJob.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/SimpleCriterionKeyForJob.cpp index 4e3cd6fcc51..22cbc74fec7 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/SimpleCriterionKeyForJob.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/SimpleCriterionKeyForJob.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SimpleCriterionKeyForJobMapper { - static const int ACCOUNT_ID_HASH = HashingUtils::HashString("ACCOUNT_ID"); - static const int S3_BUCKET_NAME_HASH = HashingUtils::HashString("S3_BUCKET_NAME"); - static const int S3_BUCKET_EFFECTIVE_PERMISSION_HASH = HashingUtils::HashString("S3_BUCKET_EFFECTIVE_PERMISSION"); - static const int S3_BUCKET_SHARED_ACCESS_HASH = HashingUtils::HashString("S3_BUCKET_SHARED_ACCESS"); + static constexpr uint32_t ACCOUNT_ID_HASH = ConstExprHashingUtils::HashString("ACCOUNT_ID"); + static constexpr uint32_t S3_BUCKET_NAME_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NAME"); + static constexpr uint32_t S3_BUCKET_EFFECTIVE_PERMISSION_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_EFFECTIVE_PERMISSION"); + static constexpr uint32_t S3_BUCKET_SHARED_ACCESS_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_SHARED_ACCESS"); SimpleCriterionKeyForJob GetSimpleCriterionKeyForJobForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_ID_HASH) { return SimpleCriterionKeyForJob::ACCOUNT_ID; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/StorageClass.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/StorageClass.cpp index 5b3c7db3682..241040ce9b7 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/StorageClass.cpp @@ -20,20 +20,20 @@ namespace Aws namespace StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); StorageClass GetStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/TagTarget.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/TagTarget.cpp index 2ebb42e5e64..2c78461eb48 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/TagTarget.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/TagTarget.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TagTargetMapper { - static const int S3_OBJECT_HASH = HashingUtils::HashString("S3_OBJECT"); + static constexpr uint32_t S3_OBJECT_HASH = ConstExprHashingUtils::HashString("S3_OBJECT"); TagTarget GetTagTargetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_OBJECT_HASH) { return TagTarget::S3_OBJECT; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/TimeRange.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/TimeRange.cpp index 547e72f42d9..69e70aa01d2 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/TimeRange.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/TimeRange.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimeRangeMapper { - static const int MONTH_TO_DATE_HASH = HashingUtils::HashString("MONTH_TO_DATE"); - static const int PAST_30_DAYS_HASH = HashingUtils::HashString("PAST_30_DAYS"); + static constexpr uint32_t MONTH_TO_DATE_HASH = ConstExprHashingUtils::HashString("MONTH_TO_DATE"); + static constexpr uint32_t PAST_30_DAYS_HASH = ConstExprHashingUtils::HashString("PAST_30_DAYS"); TimeRange GetTimeRangeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONTH_TO_DATE_HASH) { return TimeRange::MONTH_TO_DATE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/Type.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/Type.cpp index 233fa4ec895..a3b9425bd76 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/Type.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int aws_kms_HASH = HashingUtils::HashString("aws:kms"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t aws_kms_HASH = ConstExprHashingUtils::HashString("aws:kms"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Type::NONE; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/UnavailabilityReasonCode.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/UnavailabilityReasonCode.cpp index 1c90050a2db..653d12b974b 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/UnavailabilityReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/UnavailabilityReasonCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UnavailabilityReasonCodeMapper { - static const int OBJECT_EXCEEDS_SIZE_QUOTA_HASH = HashingUtils::HashString("OBJECT_EXCEEDS_SIZE_QUOTA"); - static const int UNSUPPORTED_OBJECT_TYPE_HASH = HashingUtils::HashString("UNSUPPORTED_OBJECT_TYPE"); - static const int UNSUPPORTED_FINDING_TYPE_HASH = HashingUtils::HashString("UNSUPPORTED_FINDING_TYPE"); - static const int INVALID_CLASSIFICATION_RESULT_HASH = HashingUtils::HashString("INVALID_CLASSIFICATION_RESULT"); - static const int OBJECT_UNAVAILABLE_HASH = HashingUtils::HashString("OBJECT_UNAVAILABLE"); + static constexpr uint32_t OBJECT_EXCEEDS_SIZE_QUOTA_HASH = ConstExprHashingUtils::HashString("OBJECT_EXCEEDS_SIZE_QUOTA"); + static constexpr uint32_t UNSUPPORTED_OBJECT_TYPE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_OBJECT_TYPE"); + static constexpr uint32_t UNSUPPORTED_FINDING_TYPE_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_FINDING_TYPE"); + static constexpr uint32_t INVALID_CLASSIFICATION_RESULT_HASH = ConstExprHashingUtils::HashString("INVALID_CLASSIFICATION_RESULT"); + static constexpr uint32_t OBJECT_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("OBJECT_UNAVAILABLE"); UnavailabilityReasonCode GetUnavailabilityReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OBJECT_EXCEEDS_SIZE_QUOTA_HASH) { return UnavailabilityReasonCode::OBJECT_EXCEEDS_SIZE_QUOTA; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/Unit.cpp index 41f29e05fa2..07c5212941b 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/Unit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UnitMapper { - static const int TERABYTES_HASH = HashingUtils::HashString("TERABYTES"); + static constexpr uint32_t TERABYTES_HASH = ConstExprHashingUtils::HashString("TERABYTES"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERABYTES_HASH) { return Unit::TERABYTES; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterComparator.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterComparator.cpp index 5a9a22223cc..6f7a9112133 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterComparator.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterComparator.cpp @@ -20,18 +20,18 @@ namespace Aws namespace UsageStatisticsFilterComparatorMapper { - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GTE_HASH = HashingUtils::HashString("GTE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LTE_HASH = HashingUtils::HashString("LTE"); - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GTE_HASH = ConstExprHashingUtils::HashString("GTE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LTE_HASH = ConstExprHashingUtils::HashString("LTE"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); UsageStatisticsFilterComparator GetUsageStatisticsFilterComparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GT_HASH) { return UsageStatisticsFilterComparator::GT; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterKey.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterKey.cpp index b567e37d4eb..6bdb9eb32b9 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsFilterKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UsageStatisticsFilterKeyMapper { - static const int accountId_HASH = HashingUtils::HashString("accountId"); - static const int serviceLimit_HASH = HashingUtils::HashString("serviceLimit"); - static const int freeTrialStartDate_HASH = HashingUtils::HashString("freeTrialStartDate"); - static const int total_HASH = HashingUtils::HashString("total"); + static constexpr uint32_t accountId_HASH = ConstExprHashingUtils::HashString("accountId"); + static constexpr uint32_t serviceLimit_HASH = ConstExprHashingUtils::HashString("serviceLimit"); + static constexpr uint32_t freeTrialStartDate_HASH = ConstExprHashingUtils::HashString("freeTrialStartDate"); + static constexpr uint32_t total_HASH = ConstExprHashingUtils::HashString("total"); UsageStatisticsFilterKey GetUsageStatisticsFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == accountId_HASH) { return UsageStatisticsFilterKey::accountId; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsSortKey.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsSortKey.cpp index 21316c958ee..8ee0c103e9a 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsSortKey.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/UsageStatisticsSortKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UsageStatisticsSortKeyMapper { - static const int accountId_HASH = HashingUtils::HashString("accountId"); - static const int total_HASH = HashingUtils::HashString("total"); - static const int serviceLimitValue_HASH = HashingUtils::HashString("serviceLimitValue"); - static const int freeTrialStartDate_HASH = HashingUtils::HashString("freeTrialStartDate"); + static constexpr uint32_t accountId_HASH = ConstExprHashingUtils::HashString("accountId"); + static constexpr uint32_t total_HASH = ConstExprHashingUtils::HashString("total"); + static constexpr uint32_t serviceLimitValue_HASH = ConstExprHashingUtils::HashString("serviceLimitValue"); + static constexpr uint32_t freeTrialStartDate_HASH = ConstExprHashingUtils::HashString("freeTrialStartDate"); UsageStatisticsSortKey GetUsageStatisticsSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == accountId_HASH) { return UsageStatisticsSortKey::accountId; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/UsageType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/UsageType.cpp index 590cf4be84a..2b140fe3003 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/UsageType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/UsageType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UsageTypeMapper { - static const int DATA_INVENTORY_EVALUATION_HASH = HashingUtils::HashString("DATA_INVENTORY_EVALUATION"); - static const int SENSITIVE_DATA_DISCOVERY_HASH = HashingUtils::HashString("SENSITIVE_DATA_DISCOVERY"); - static const int AUTOMATED_SENSITIVE_DATA_DISCOVERY_HASH = HashingUtils::HashString("AUTOMATED_SENSITIVE_DATA_DISCOVERY"); - static const int AUTOMATED_OBJECT_MONITORING_HASH = HashingUtils::HashString("AUTOMATED_OBJECT_MONITORING"); + static constexpr uint32_t DATA_INVENTORY_EVALUATION_HASH = ConstExprHashingUtils::HashString("DATA_INVENTORY_EVALUATION"); + static constexpr uint32_t SENSITIVE_DATA_DISCOVERY_HASH = ConstExprHashingUtils::HashString("SENSITIVE_DATA_DISCOVERY"); + static constexpr uint32_t AUTOMATED_SENSITIVE_DATA_DISCOVERY_HASH = ConstExprHashingUtils::HashString("AUTOMATED_SENSITIVE_DATA_DISCOVERY"); + static constexpr uint32_t AUTOMATED_OBJECT_MONITORING_HASH = ConstExprHashingUtils::HashString("AUTOMATED_OBJECT_MONITORING"); UsageType GetUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATA_INVENTORY_EVALUATION_HASH) { return UsageType::DATA_INVENTORY_EVALUATION; diff --git a/generated/src/aws-cpp-sdk-macie2/source/model/UserIdentityType.cpp b/generated/src/aws-cpp-sdk-macie2/source/model/UserIdentityType.cpp index e72677e0079..97b42e749cd 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/model/UserIdentityType.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/model/UserIdentityType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace UserIdentityTypeMapper { - static const int AssumedRole_HASH = HashingUtils::HashString("AssumedRole"); - static const int IAMUser_HASH = HashingUtils::HashString("IAMUser"); - static const int FederatedUser_HASH = HashingUtils::HashString("FederatedUser"); - static const int Root_HASH = HashingUtils::HashString("Root"); - static const int AWSAccount_HASH = HashingUtils::HashString("AWSAccount"); - static const int AWSService_HASH = HashingUtils::HashString("AWSService"); + static constexpr uint32_t AssumedRole_HASH = ConstExprHashingUtils::HashString("AssumedRole"); + static constexpr uint32_t IAMUser_HASH = ConstExprHashingUtils::HashString("IAMUser"); + static constexpr uint32_t FederatedUser_HASH = ConstExprHashingUtils::HashString("FederatedUser"); + static constexpr uint32_t Root_HASH = ConstExprHashingUtils::HashString("Root"); + static constexpr uint32_t AWSAccount_HASH = ConstExprHashingUtils::HashString("AWSAccount"); + static constexpr uint32_t AWSService_HASH = ConstExprHashingUtils::HashString("AWSService"); UserIdentityType GetUserIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AssumedRole_HASH) { return UserIdentityType::AssumedRole; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryErrors.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryErrors.cpp index ea97e415ba6..8b8742a50df 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryErrors.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryErrors.cpp @@ -54,13 +54,13 @@ template<> AWS_MANAGEDBLOCKCHAINQUERY_API ValidationException ManagedBlockchainQ namespace ManagedBlockchainQueryErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ErrorType.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ErrorType.cpp index d00f5d91cc3..eb230dac6d2 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ErrorType.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorTypeMapper { - static const int VALIDATION_EXCEPTION_HASH = HashingUtils::HashString("VALIDATION_EXCEPTION"); - static const int RESOURCE_NOT_FOUND_EXCEPTION_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION"); + static constexpr uint32_t VALIDATION_EXCEPTION_HASH = ConstExprHashingUtils::HashString("VALIDATION_EXCEPTION"); + static constexpr uint32_t RESOURCE_NOT_FOUND_EXCEPTION_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION"); ErrorType GetErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_EXCEPTION_HASH) { return ErrorType::VALIDATION_EXCEPTION; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ListTransactionsSortBy.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ListTransactionsSortBy.cpp index b13fc511d2a..b7778347c8b 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ListTransactionsSortBy.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ListTransactionsSortBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ListTransactionsSortByMapper { - static const int TRANSACTION_TIMESTAMP_HASH = HashingUtils::HashString("TRANSACTION_TIMESTAMP"); + static constexpr uint32_t TRANSACTION_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TRANSACTION_TIMESTAMP"); ListTransactionsSortBy GetListTransactionsSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSACTION_TIMESTAMP_HASH) { return ListTransactionsSortBy::TRANSACTION_TIMESTAMP; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp index 87684896160..b04b546b811 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueryNetworkMapper { - static const int ETHEREUM_MAINNET_HASH = HashingUtils::HashString("ETHEREUM_MAINNET"); - static const int BITCOIN_MAINNET_HASH = HashingUtils::HashString("BITCOIN_MAINNET"); + static constexpr uint32_t ETHEREUM_MAINNET_HASH = ConstExprHashingUtils::HashString("ETHEREUM_MAINNET"); + static constexpr uint32_t BITCOIN_MAINNET_HASH = ConstExprHashingUtils::HashString("BITCOIN_MAINNET"); QueryNetwork GetQueryNetworkForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ETHEREUM_MAINNET_HASH) { return QueryNetwork::ETHEREUM_MAINNET; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionEventType.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionEventType.cpp index fb0dc67dcfc..0b3667288d4 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionEventType.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionEventType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace QueryTransactionEventTypeMapper { - static const int ERC20_TRANSFER_HASH = HashingUtils::HashString("ERC20_TRANSFER"); - static const int ERC20_MINT_HASH = HashingUtils::HashString("ERC20_MINT"); - static const int ERC20_BURN_HASH = HashingUtils::HashString("ERC20_BURN"); - static const int ERC20_DEPOSIT_HASH = HashingUtils::HashString("ERC20_DEPOSIT"); - static const int ERC20_WITHDRAWAL_HASH = HashingUtils::HashString("ERC20_WITHDRAWAL"); - static const int ERC721_TRANSFER_HASH = HashingUtils::HashString("ERC721_TRANSFER"); - static const int ERC1155_TRANSFER_HASH = HashingUtils::HashString("ERC1155_TRANSFER"); - static const int BITCOIN_VIN_HASH = HashingUtils::HashString("BITCOIN_VIN"); - static const int BITCOIN_VOUT_HASH = HashingUtils::HashString("BITCOIN_VOUT"); - static const int INTERNAL_ETH_TRANSFER_HASH = HashingUtils::HashString("INTERNAL_ETH_TRANSFER"); - static const int ETH_TRANSFER_HASH = HashingUtils::HashString("ETH_TRANSFER"); + static constexpr uint32_t ERC20_TRANSFER_HASH = ConstExprHashingUtils::HashString("ERC20_TRANSFER"); + static constexpr uint32_t ERC20_MINT_HASH = ConstExprHashingUtils::HashString("ERC20_MINT"); + static constexpr uint32_t ERC20_BURN_HASH = ConstExprHashingUtils::HashString("ERC20_BURN"); + static constexpr uint32_t ERC20_DEPOSIT_HASH = ConstExprHashingUtils::HashString("ERC20_DEPOSIT"); + static constexpr uint32_t ERC20_WITHDRAWAL_HASH = ConstExprHashingUtils::HashString("ERC20_WITHDRAWAL"); + static constexpr uint32_t ERC721_TRANSFER_HASH = ConstExprHashingUtils::HashString("ERC721_TRANSFER"); + static constexpr uint32_t ERC1155_TRANSFER_HASH = ConstExprHashingUtils::HashString("ERC1155_TRANSFER"); + static constexpr uint32_t BITCOIN_VIN_HASH = ConstExprHashingUtils::HashString("BITCOIN_VIN"); + static constexpr uint32_t BITCOIN_VOUT_HASH = ConstExprHashingUtils::HashString("BITCOIN_VOUT"); + static constexpr uint32_t INTERNAL_ETH_TRANSFER_HASH = ConstExprHashingUtils::HashString("INTERNAL_ETH_TRANSFER"); + static constexpr uint32_t ETH_TRANSFER_HASH = ConstExprHashingUtils::HashString("ETH_TRANSFER"); QueryTransactionEventType GetQueryTransactionEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERC20_TRANSFER_HASH) { return QueryTransactionEventType::ERC20_TRANSFER; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp index 170d877bb77..011f88fb4e2 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueryTransactionStatusMapper { - static const int FINAL_HASH = HashingUtils::HashString("FINAL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t FINAL_HASH = ConstExprHashingUtils::HashString("FINAL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); QueryTransactionStatus GetQueryTransactionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINAL_HASH) { return QueryTransactionStatus::FINAL; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ResourceType.cpp index fec93fc2835..608684a5a78 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceTypeMapper { - static const int collection_HASH = HashingUtils::HashString("collection"); + static constexpr uint32_t collection_HASH = ConstExprHashingUtils::HashString("collection"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == collection_HASH) { return ResourceType::collection; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/SortOrder.cpp index 624989bd812..05d392c6cd1 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ValidationExceptionReason.cpp index 0de61019c42..a6fd5710b60 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainErrors.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainErrors.cpp index 2aafd48fe62..a0b2ee81b16 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainErrors.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainErrors.cpp @@ -33,18 +33,18 @@ template<> AWS_MANAGEDBLOCKCHAIN_API TooManyTagsException ManagedBlockchainError namespace ManagedBlockchainErrorMapper { -static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); -static const int ILLEGAL_ACTION_HASH = HashingUtils::HashString("IllegalActionException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_NOT_READY_HASH = ConstExprHashingUtils::HashString("ResourceNotReadyException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t ILLEGAL_ACTION_HASH = ConstExprHashingUtils::HashString("IllegalActionException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_NOT_READY_HASH) { diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorStatus.cpp index 2d4f3740866..3fec8aa8b40 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccessorStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); AccessorStatus GetAccessorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return AccessorStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorType.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorType.cpp index 6698852594a..cb53203f044 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorType.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/AccessorType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AccessorTypeMapper { - static const int BILLING_TOKEN_HASH = HashingUtils::HashString("BILLING_TOKEN"); + static constexpr uint32_t BILLING_TOKEN_HASH = ConstExprHashingUtils::HashString("BILLING_TOKEN"); AccessorType GetAccessorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BILLING_TOKEN_HASH) { return AccessorType::BILLING_TOKEN; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/Edition.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/Edition.cpp index 452d9a8edbc..0b0377e29d7 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/Edition.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/Edition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EditionMapper { - static const int STARTER_HASH = HashingUtils::HashString("STARTER"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t STARTER_HASH = ConstExprHashingUtils::HashString("STARTER"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); Edition GetEditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTER_HASH) { return Edition::STARTER; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/Framework.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/Framework.cpp index 32944ba8153..c3b11d0caf4 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/Framework.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/Framework.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FrameworkMapper { - static const int HYPERLEDGER_FABRIC_HASH = HashingUtils::HashString("HYPERLEDGER_FABRIC"); - static const int ETHEREUM_HASH = HashingUtils::HashString("ETHEREUM"); + static constexpr uint32_t HYPERLEDGER_FABRIC_HASH = ConstExprHashingUtils::HashString("HYPERLEDGER_FABRIC"); + static constexpr uint32_t ETHEREUM_HASH = ConstExprHashingUtils::HashString("ETHEREUM"); Framework GetFrameworkForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HYPERLEDGER_FABRIC_HASH) { return Framework::HYPERLEDGER_FABRIC; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/InvitationStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/InvitationStatus.cpp index 4ef8c0e9e6d..82f882d1f8b 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/InvitationStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/InvitationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InvitationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); - static const int ACCEPTING_HASH = HashingUtils::HashString("ACCEPTING"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACCEPTED_HASH = ConstExprHashingUtils::HashString("ACCEPTED"); + static constexpr uint32_t ACCEPTING_HASH = ConstExprHashingUtils::HashString("ACCEPTING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); InvitationStatus GetInvitationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return InvitationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/MemberStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/MemberStatus.cpp index 63b60c32722..c9d7245ea9d 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/MemberStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/MemberStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MemberStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int INACCESSIBLE_ENCRYPTION_KEY_HASH = HashingUtils::HashString("INACCESSIBLE_ENCRYPTION_KEY"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t INACCESSIBLE_ENCRYPTION_KEY_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE_ENCRYPTION_KEY"); MemberStatus GetMemberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return MemberStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/NetworkStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/NetworkStatus.cpp index 8a0fc1de46e..9f7edc103a4 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/NetworkStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/NetworkStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NetworkStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); NetworkStatus GetNetworkStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return NetworkStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/NodeStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/NodeStatus.cpp index a3cfeccb24a..9ecc76c3a9e 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/NodeStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/NodeStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace NodeStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INACCESSIBLE_ENCRYPTION_KEY_HASH = HashingUtils::HashString("INACCESSIBLE_ENCRYPTION_KEY"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INACCESSIBLE_ENCRYPTION_KEY_HASH = ConstExprHashingUtils::HashString("INACCESSIBLE_ENCRYPTION_KEY"); NodeStatus GetNodeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return NodeStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/ProposalStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/ProposalStatus.cpp index 61a36b25f23..a288c67de8f 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/ProposalStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/ProposalStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProposalStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int ACTION_FAILED_HASH = HashingUtils::HashString("ACTION_FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t ACTION_FAILED_HASH = ConstExprHashingUtils::HashString("ACTION_FAILED"); ProposalStatus GetProposalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ProposalStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/StateDBType.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/StateDBType.cpp index 15589735041..85c0292a99a 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/StateDBType.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/StateDBType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StateDBTypeMapper { - static const int LevelDB_HASH = HashingUtils::HashString("LevelDB"); - static const int CouchDB_HASH = HashingUtils::HashString("CouchDB"); + static constexpr uint32_t LevelDB_HASH = ConstExprHashingUtils::HashString("LevelDB"); + static constexpr uint32_t CouchDB_HASH = ConstExprHashingUtils::HashString("CouchDB"); StateDBType GetStateDBTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LevelDB_HASH) { return StateDBType::LevelDB; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/ThresholdComparator.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/ThresholdComparator.cpp index 6efa7cac7a6..2789c1bd9e7 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/ThresholdComparator.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/ThresholdComparator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThresholdComparatorMapper { - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); - static const int GREATER_THAN_OR_EQUAL_TO_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t GREATER_THAN_OR_EQUAL_TO_HASH = ConstExprHashingUtils::HashString("GREATER_THAN_OR_EQUAL_TO"); ThresholdComparator GetThresholdComparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_THAN_HASH) { return ThresholdComparator::GREATER_THAN; diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/model/VoteValue.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/model/VoteValue.cpp index 8a043f7625a..64507f4d71f 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/model/VoteValue.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/model/VoteValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VoteValueMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); VoteValue GetVoteValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return VoteValue::YES; diff --git a/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogErrors.cpp b/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogErrors.cpp index caeef4711ef..65c3dba47d2 100644 --- a/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogErrors.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogErrors.cpp @@ -18,15 +18,15 @@ namespace MarketplaceCatalog namespace MarketplaceCatalogErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int RESOURCE_NOT_SUPPORTED_HASH = HashingUtils::HashString("ResourceNotSupportedException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t RESOURCE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ResourceNotSupportedException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/ChangeStatus.cpp b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/ChangeStatus.cpp index f8695f8e2a2..147f259ab27 100644 --- a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/ChangeStatus.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/ChangeStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ChangeStatusMapper { - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int APPLYING_HASH = HashingUtils::HashString("APPLYING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t APPLYING_HASH = ConstExprHashingUtils::HashString("APPLYING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ChangeStatus GetChangeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREPARING_HASH) { return ChangeStatus::PREPARING; diff --git a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/FailureCode.cpp b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/FailureCode.cpp index 88f7dc64686..7da1334abc7 100644 --- a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/FailureCode.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/FailureCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailureCodeMapper { - static const int CLIENT_ERROR_HASH = HashingUtils::HashString("CLIENT_ERROR"); - static const int SERVER_FAULT_HASH = HashingUtils::HashString("SERVER_FAULT"); + static constexpr uint32_t CLIENT_ERROR_HASH = ConstExprHashingUtils::HashString("CLIENT_ERROR"); + static constexpr uint32_t SERVER_FAULT_HASH = ConstExprHashingUtils::HashString("SERVER_FAULT"); FailureCode GetFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIENT_ERROR_HASH) { return FailureCode::CLIENT_ERROR; diff --git a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/OwnershipType.cpp b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/OwnershipType.cpp index 7f6f5013a70..93e356db71d 100644 --- a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/OwnershipType.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/OwnershipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OwnershipTypeMapper { - static const int SELF_HASH = HashingUtils::HashString("SELF"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t SELF_HASH = ConstExprHashingUtils::HashString("SELF"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); OwnershipType GetOwnershipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_HASH) { return OwnershipType::SELF; diff --git a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/SortOrder.cpp index e10e7e9690a..5feba5b50ff 100644 --- a/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-catalog/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceErrors.cpp b/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceErrors.cpp index dc0c75c3fea..8a4907159c7 100644 --- a/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceErrors.cpp @@ -18,13 +18,13 @@ namespace MarketplaceEntitlementService namespace MarketplaceEntitlementServiceErrorMapper { -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_PARAMETER_HASH) { diff --git a/generated/src/aws-cpp-sdk-marketplace-entitlement/source/model/GetEntitlementFilterName.cpp b/generated/src/aws-cpp-sdk-marketplace-entitlement/source/model/GetEntitlementFilterName.cpp index 809b825d711..a947ec9dbcb 100644 --- a/generated/src/aws-cpp-sdk-marketplace-entitlement/source/model/GetEntitlementFilterName.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-entitlement/source/model/GetEntitlementFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GetEntitlementFilterNameMapper { - static const int CUSTOMER_IDENTIFIER_HASH = HashingUtils::HashString("CUSTOMER_IDENTIFIER"); - static const int DIMENSION_HASH = HashingUtils::HashString("DIMENSION"); + static constexpr uint32_t CUSTOMER_IDENTIFIER_HASH = ConstExprHashingUtils::HashString("CUSTOMER_IDENTIFIER"); + static constexpr uint32_t DIMENSION_HASH = ConstExprHashingUtils::HashString("DIMENSION"); GetEntitlementFilterName GetGetEntitlementFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_IDENTIFIER_HASH) { return GetEntitlementFilterName::CUSTOMER_IDENTIFIER; diff --git a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsErrors.cpp b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsErrors.cpp index dad44c4e387..515ba4bb5ef 100644 --- a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsErrors.cpp +++ b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsErrors.cpp @@ -18,12 +18,12 @@ namespace MarketplaceCommerceAnalytics namespace MarketplaceCommerceAnalyticsErrorMapper { -static const int MARKETPLACE_COMMERCE_ANALYTICS_HASH = HashingUtils::HashString("MarketplaceCommerceAnalyticsException"); +static constexpr uint32_t MARKETPLACE_COMMERCE_ANALYTICS_HASH = ConstExprHashingUtils::HashString("MarketplaceCommerceAnalyticsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == MARKETPLACE_COMMERCE_ANALYTICS_HASH) { diff --git a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/DataSetType.cpp b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/DataSetType.cpp index 2eae55e5818..b899b4e22cc 100644 --- a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/DataSetType.cpp +++ b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/DataSetType.cpp @@ -20,36 +20,36 @@ namespace Aws namespace DataSetTypeMapper { - static const int customer_subscriber_hourly_monthly_subscriptions_HASH = HashingUtils::HashString("customer_subscriber_hourly_monthly_subscriptions"); - static const int customer_subscriber_annual_subscriptions_HASH = HashingUtils::HashString("customer_subscriber_annual_subscriptions"); - static const int daily_business_usage_by_instance_type_HASH = HashingUtils::HashString("daily_business_usage_by_instance_type"); - static const int daily_business_fees_HASH = HashingUtils::HashString("daily_business_fees"); - static const int daily_business_free_trial_conversions_HASH = HashingUtils::HashString("daily_business_free_trial_conversions"); - static const int daily_business_new_instances_HASH = HashingUtils::HashString("daily_business_new_instances"); - static const int daily_business_new_product_subscribers_HASH = HashingUtils::HashString("daily_business_new_product_subscribers"); - static const int daily_business_canceled_product_subscribers_HASH = HashingUtils::HashString("daily_business_canceled_product_subscribers"); - static const int monthly_revenue_billing_and_revenue_data_HASH = HashingUtils::HashString("monthly_revenue_billing_and_revenue_data"); - static const int monthly_revenue_annual_subscriptions_HASH = HashingUtils::HashString("monthly_revenue_annual_subscriptions"); - static const int monthly_revenue_field_demonstration_usage_HASH = HashingUtils::HashString("monthly_revenue_field_demonstration_usage"); - static const int monthly_revenue_flexible_payment_schedule_HASH = HashingUtils::HashString("monthly_revenue_flexible_payment_schedule"); - static const int disbursed_amount_by_product_HASH = HashingUtils::HashString("disbursed_amount_by_product"); - static const int disbursed_amount_by_product_with_uncollected_funds_HASH = HashingUtils::HashString("disbursed_amount_by_product_with_uncollected_funds"); - static const int disbursed_amount_by_instance_hours_HASH = HashingUtils::HashString("disbursed_amount_by_instance_hours"); - static const int disbursed_amount_by_customer_geo_HASH = HashingUtils::HashString("disbursed_amount_by_customer_geo"); - static const int disbursed_amount_by_age_of_uncollected_funds_HASH = HashingUtils::HashString("disbursed_amount_by_age_of_uncollected_funds"); - static const int disbursed_amount_by_age_of_disbursed_funds_HASH = HashingUtils::HashString("disbursed_amount_by_age_of_disbursed_funds"); - static const int disbursed_amount_by_age_of_past_due_funds_HASH = HashingUtils::HashString("disbursed_amount_by_age_of_past_due_funds"); - static const int disbursed_amount_by_uncollected_funds_breakdown_HASH = HashingUtils::HashString("disbursed_amount_by_uncollected_funds_breakdown"); - static const int customer_profile_by_industry_HASH = HashingUtils::HashString("customer_profile_by_industry"); - static const int customer_profile_by_revenue_HASH = HashingUtils::HashString("customer_profile_by_revenue"); - static const int customer_profile_by_geography_HASH = HashingUtils::HashString("customer_profile_by_geography"); - static const int sales_compensation_billed_revenue_HASH = HashingUtils::HashString("sales_compensation_billed_revenue"); - static const int us_sales_and_use_tax_records_HASH = HashingUtils::HashString("us_sales_and_use_tax_records"); + static constexpr uint32_t customer_subscriber_hourly_monthly_subscriptions_HASH = ConstExprHashingUtils::HashString("customer_subscriber_hourly_monthly_subscriptions"); + static constexpr uint32_t customer_subscriber_annual_subscriptions_HASH = ConstExprHashingUtils::HashString("customer_subscriber_annual_subscriptions"); + static constexpr uint32_t daily_business_usage_by_instance_type_HASH = ConstExprHashingUtils::HashString("daily_business_usage_by_instance_type"); + static constexpr uint32_t daily_business_fees_HASH = ConstExprHashingUtils::HashString("daily_business_fees"); + static constexpr uint32_t daily_business_free_trial_conversions_HASH = ConstExprHashingUtils::HashString("daily_business_free_trial_conversions"); + static constexpr uint32_t daily_business_new_instances_HASH = ConstExprHashingUtils::HashString("daily_business_new_instances"); + static constexpr uint32_t daily_business_new_product_subscribers_HASH = ConstExprHashingUtils::HashString("daily_business_new_product_subscribers"); + static constexpr uint32_t daily_business_canceled_product_subscribers_HASH = ConstExprHashingUtils::HashString("daily_business_canceled_product_subscribers"); + static constexpr uint32_t monthly_revenue_billing_and_revenue_data_HASH = ConstExprHashingUtils::HashString("monthly_revenue_billing_and_revenue_data"); + static constexpr uint32_t monthly_revenue_annual_subscriptions_HASH = ConstExprHashingUtils::HashString("monthly_revenue_annual_subscriptions"); + static constexpr uint32_t monthly_revenue_field_demonstration_usage_HASH = ConstExprHashingUtils::HashString("monthly_revenue_field_demonstration_usage"); + static constexpr uint32_t monthly_revenue_flexible_payment_schedule_HASH = ConstExprHashingUtils::HashString("monthly_revenue_flexible_payment_schedule"); + static constexpr uint32_t disbursed_amount_by_product_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_product"); + static constexpr uint32_t disbursed_amount_by_product_with_uncollected_funds_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_product_with_uncollected_funds"); + static constexpr uint32_t disbursed_amount_by_instance_hours_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_instance_hours"); + static constexpr uint32_t disbursed_amount_by_customer_geo_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_customer_geo"); + static constexpr uint32_t disbursed_amount_by_age_of_uncollected_funds_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_age_of_uncollected_funds"); + static constexpr uint32_t disbursed_amount_by_age_of_disbursed_funds_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_age_of_disbursed_funds"); + static constexpr uint32_t disbursed_amount_by_age_of_past_due_funds_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_age_of_past_due_funds"); + static constexpr uint32_t disbursed_amount_by_uncollected_funds_breakdown_HASH = ConstExprHashingUtils::HashString("disbursed_amount_by_uncollected_funds_breakdown"); + static constexpr uint32_t customer_profile_by_industry_HASH = ConstExprHashingUtils::HashString("customer_profile_by_industry"); + static constexpr uint32_t customer_profile_by_revenue_HASH = ConstExprHashingUtils::HashString("customer_profile_by_revenue"); + static constexpr uint32_t customer_profile_by_geography_HASH = ConstExprHashingUtils::HashString("customer_profile_by_geography"); + static constexpr uint32_t sales_compensation_billed_revenue_HASH = ConstExprHashingUtils::HashString("sales_compensation_billed_revenue"); + static constexpr uint32_t us_sales_and_use_tax_records_HASH = ConstExprHashingUtils::HashString("us_sales_and_use_tax_records"); DataSetType GetDataSetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == customer_subscriber_hourly_monthly_subscriptions_HASH) { return DataSetType::customer_subscriber_hourly_monthly_subscriptions; diff --git a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/SupportDataSetType.cpp b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/SupportDataSetType.cpp index e815231a9b4..2dc2fd3b1e3 100644 --- a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/SupportDataSetType.cpp +++ b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/model/SupportDataSetType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SupportDataSetTypeMapper { - static const int customer_support_contacts_data_HASH = HashingUtils::HashString("customer_support_contacts_data"); - static const int test_customer_support_contacts_data_HASH = HashingUtils::HashString("test_customer_support_contacts_data"); + static constexpr uint32_t customer_support_contacts_data_HASH = ConstExprHashingUtils::HashString("customer_support_contacts_data"); + static constexpr uint32_t test_customer_support_contacts_data_HASH = ConstExprHashingUtils::HashString("test_customer_support_contacts_data"); SupportDataSetType GetSupportDataSetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == customer_support_contacts_data_HASH) { return SupportDataSetType::customer_support_contacts_data; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectErrors.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectErrors.cpp index e259708bcf4..2a5b43ca128 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectErrors.cpp @@ -18,22 +18,22 @@ namespace MediaConnect namespace MediaConnectErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int CREATE_FLOW420_HASH = HashingUtils::HashString("CreateFlow420Exception"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int CREATE_GATEWAY420_HASH = HashingUtils::HashString("CreateGateway420Exception"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); -static const int GRANT_FLOW_ENTITLEMENTS420_HASH = HashingUtils::HashString("GrantFlowEntitlements420Exception"); -static const int CREATE_BRIDGE420_HASH = HashingUtils::HashString("CreateBridge420Exception"); -static const int ADD_FLOW_OUTPUTS420_HASH = HashingUtils::HashString("AddFlowOutputs420Exception"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t CREATE_FLOW420_HASH = ConstExprHashingUtils::HashString("CreateFlow420Exception"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t CREATE_GATEWAY420_HASH = ConstExprHashingUtils::HashString("CreateGateway420Exception"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t GRANT_FLOW_ENTITLEMENTS420_HASH = ConstExprHashingUtils::HashString("GrantFlowEntitlements420Exception"); +static constexpr uint32_t CREATE_BRIDGE420_HASH = ConstExprHashingUtils::HashString("CreateBridge420Exception"); +static constexpr uint32_t ADD_FLOW_OUTPUTS420_HASH = ConstExprHashingUtils::HashString("AddFlowOutputs420Exception"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Algorithm.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Algorithm.cpp index 36e3a257f6c..d3f10ee8eaa 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Algorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Algorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AlgorithmMapper { - static const int aes128_HASH = HashingUtils::HashString("aes128"); - static const int aes192_HASH = HashingUtils::HashString("aes192"); - static const int aes256_HASH = HashingUtils::HashString("aes256"); + static constexpr uint32_t aes128_HASH = ConstExprHashingUtils::HashString("aes128"); + static constexpr uint32_t aes192_HASH = ConstExprHashingUtils::HashString("aes192"); + static constexpr uint32_t aes256_HASH = ConstExprHashingUtils::HashString("aes256"); Algorithm GetAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aes128_HASH) { return Algorithm::aes128; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgePlacement.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgePlacement.cpp index ed849e96645..dcc6ec0dfa1 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgePlacement.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgePlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BridgePlacementMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int LOCKED_HASH = HashingUtils::HashString("LOCKED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t LOCKED_HASH = ConstExprHashingUtils::HashString("LOCKED"); BridgePlacement GetBridgePlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return BridgePlacement::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgeState.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgeState.cpp index 2676e6521ee..ef88b86c7c7 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgeState.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/BridgeState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace BridgeStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int DEPLOYING_HASH = HashingUtils::HashString("DEPLOYING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int START_FAILED_HASH = HashingUtils::HashString("START_FAILED"); - static const int START_PENDING_HASH = HashingUtils::HashString("START_PENDING"); - static const int STOP_FAILED_HASH = HashingUtils::HashString("STOP_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t DEPLOYING_HASH = ConstExprHashingUtils::HashString("DEPLOYING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t START_FAILED_HASH = ConstExprHashingUtils::HashString("START_FAILED"); + static constexpr uint32_t START_PENDING_HASH = ConstExprHashingUtils::HashString("START_PENDING"); + static constexpr uint32_t STOP_FAILED_HASH = ConstExprHashingUtils::HashString("STOP_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); BridgeState GetBridgeStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return BridgeState::CREATING; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Colorimetry.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Colorimetry.cpp index 7df337b9253..f2c37bd329a 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Colorimetry.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Colorimetry.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ColorimetryMapper { - static const int BT601_HASH = HashingUtils::HashString("BT601"); - static const int BT709_HASH = HashingUtils::HashString("BT709"); - static const int BT2020_HASH = HashingUtils::HashString("BT2020"); - static const int BT2100_HASH = HashingUtils::HashString("BT2100"); - static const int ST2065_1_HASH = HashingUtils::HashString("ST2065-1"); - static const int ST2065_3_HASH = HashingUtils::HashString("ST2065-3"); - static const int XYZ_HASH = HashingUtils::HashString("XYZ"); + static constexpr uint32_t BT601_HASH = ConstExprHashingUtils::HashString("BT601"); + static constexpr uint32_t BT709_HASH = ConstExprHashingUtils::HashString("BT709"); + static constexpr uint32_t BT2020_HASH = ConstExprHashingUtils::HashString("BT2020"); + static constexpr uint32_t BT2100_HASH = ConstExprHashingUtils::HashString("BT2100"); + static constexpr uint32_t ST2065_1_HASH = ConstExprHashingUtils::HashString("ST2065-1"); + static constexpr uint32_t ST2065_3_HASH = ConstExprHashingUtils::HashString("ST2065-3"); + static constexpr uint32_t XYZ_HASH = ConstExprHashingUtils::HashString("XYZ"); Colorimetry GetColorimetryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BT601_HASH) { return Colorimetry::BT601; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ConnectionStatus.cpp index 2d6d37ec8f1..2ae3bf5174f 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ConnectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionStatusMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return ConnectionStatus::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/DesiredState.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/DesiredState.cpp index a4b989c50f3..306e62e30ca 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/DesiredState.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/DesiredState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DesiredStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); DesiredState GetDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DesiredState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/DurationUnits.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/DurationUnits.cpp index 4cbb902f717..7255424caa4 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/DurationUnits.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/DurationUnits.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DurationUnitsMapper { - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); DurationUnits GetDurationUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONTHS_HASH) { return DurationUnits::MONTHS; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncoderProfile.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncoderProfile.cpp index 67e395aebba..8273295522a 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncoderProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncoderProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncoderProfileMapper { - static const int main_HASH = HashingUtils::HashString("main"); - static const int high_HASH = HashingUtils::HashString("high"); + static constexpr uint32_t main_HASH = ConstExprHashingUtils::HashString("main"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); EncoderProfile GetEncoderProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == main_HASH) { return EncoderProfile::main; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncodingName.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncodingName.cpp index 623a7060c18..c98d8ef8708 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncodingName.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/EncodingName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EncodingNameMapper { - static const int jxsv_HASH = HashingUtils::HashString("jxsv"); - static const int raw_HASH = HashingUtils::HashString("raw"); - static const int smpte291_HASH = HashingUtils::HashString("smpte291"); - static const int pcm_HASH = HashingUtils::HashString("pcm"); + static constexpr uint32_t jxsv_HASH = ConstExprHashingUtils::HashString("jxsv"); + static constexpr uint32_t raw_HASH = ConstExprHashingUtils::HashString("raw"); + static constexpr uint32_t smpte291_HASH = ConstExprHashingUtils::HashString("smpte291"); + static constexpr uint32_t pcm_HASH = ConstExprHashingUtils::HashString("pcm"); EncodingName GetEncodingNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == jxsv_HASH) { return EncodingName::jxsv; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/EntitlementStatus.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/EntitlementStatus.cpp index cd258b8244e..f8acb089da8 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/EntitlementStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/EntitlementStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EntitlementStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EntitlementStatus GetEntitlementStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EntitlementStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/FailoverMode.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/FailoverMode.cpp index 29b9106c6f8..3252e2b8576 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/FailoverMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/FailoverMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailoverModeMapper { - static const int MERGE_HASH = HashingUtils::HashString("MERGE"); - static const int FAILOVER_HASH = HashingUtils::HashString("FAILOVER"); + static constexpr uint32_t MERGE_HASH = ConstExprHashingUtils::HashString("MERGE"); + static constexpr uint32_t FAILOVER_HASH = ConstExprHashingUtils::HashString("FAILOVER"); FailoverMode GetFailoverModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MERGE_HASH) { return FailoverMode::MERGE; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/GatewayState.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/GatewayState.cpp index 0b0843d0414..d9c8cf09a9d 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/GatewayState.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/GatewayState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace GatewayStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); GatewayState GetGatewayStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return GatewayState::CREATING; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/InstanceState.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/InstanceState.cpp index 37a32c55967..65b0df44014 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/InstanceState.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/InstanceState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InstanceStateMapper { - static const int REGISTERING_HASH = HashingUtils::HashString("REGISTERING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DEREGISTERING_HASH = HashingUtils::HashString("DEREGISTERING"); - static const int DEREGISTERED_HASH = HashingUtils::HashString("DEREGISTERED"); - static const int REGISTRATION_ERROR_HASH = HashingUtils::HashString("REGISTRATION_ERROR"); - static const int DEREGISTRATION_ERROR_HASH = HashingUtils::HashString("DEREGISTRATION_ERROR"); + static constexpr uint32_t REGISTERING_HASH = ConstExprHashingUtils::HashString("REGISTERING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DEREGISTERING_HASH = ConstExprHashingUtils::HashString("DEREGISTERING"); + static constexpr uint32_t DEREGISTERED_HASH = ConstExprHashingUtils::HashString("DEREGISTERED"); + static constexpr uint32_t REGISTRATION_ERROR_HASH = ConstExprHashingUtils::HashString("REGISTRATION_ERROR"); + static constexpr uint32_t DEREGISTRATION_ERROR_HASH = ConstExprHashingUtils::HashString("DEREGISTRATION_ERROR"); InstanceState GetInstanceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTERING_HASH) { return InstanceState::REGISTERING; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/KeyType.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/KeyType.cpp index 987cce6534c..86d2500d65d 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/KeyType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/KeyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace KeyTypeMapper { - static const int speke_HASH = HashingUtils::HashString("speke"); - static const int static_key_HASH = HashingUtils::HashString("static-key"); - static const int srt_password_HASH = HashingUtils::HashString("srt-password"); + static constexpr uint32_t speke_HASH = ConstExprHashingUtils::HashString("speke"); + static constexpr uint32_t static_key_HASH = ConstExprHashingUtils::HashString("static-key"); + static constexpr uint32_t srt_password_HASH = ConstExprHashingUtils::HashString("srt-password"); KeyType GetKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == speke_HASH) { return KeyType::speke; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/MaintenanceDay.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/MaintenanceDay.cpp index a5d43b1dfe4..9220d187fd3 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/MaintenanceDay.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/MaintenanceDay.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MaintenanceDayMapper { - static const int Monday_HASH = HashingUtils::HashString("Monday"); - static const int Tuesday_HASH = HashingUtils::HashString("Tuesday"); - static const int Wednesday_HASH = HashingUtils::HashString("Wednesday"); - static const int Thursday_HASH = HashingUtils::HashString("Thursday"); - static const int Friday_HASH = HashingUtils::HashString("Friday"); - static const int Saturday_HASH = HashingUtils::HashString("Saturday"); - static const int Sunday_HASH = HashingUtils::HashString("Sunday"); + static constexpr uint32_t Monday_HASH = ConstExprHashingUtils::HashString("Monday"); + static constexpr uint32_t Tuesday_HASH = ConstExprHashingUtils::HashString("Tuesday"); + static constexpr uint32_t Wednesday_HASH = ConstExprHashingUtils::HashString("Wednesday"); + static constexpr uint32_t Thursday_HASH = ConstExprHashingUtils::HashString("Thursday"); + static constexpr uint32_t Friday_HASH = ConstExprHashingUtils::HashString("Friday"); + static constexpr uint32_t Saturday_HASH = ConstExprHashingUtils::HashString("Saturday"); + static constexpr uint32_t Sunday_HASH = ConstExprHashingUtils::HashString("Sunday"); MaintenanceDay GetMaintenanceDayForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Monday_HASH) { return MaintenanceDay::Monday; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/MediaStreamType.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/MediaStreamType.cpp index 9d569b2e1f2..8d85f5eda3d 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/MediaStreamType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/MediaStreamType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MediaStreamTypeMapper { - static const int video_HASH = HashingUtils::HashString("video"); - static const int audio_HASH = HashingUtils::HashString("audio"); - static const int ancillary_data_HASH = HashingUtils::HashString("ancillary-data"); + static constexpr uint32_t video_HASH = ConstExprHashingUtils::HashString("video"); + static constexpr uint32_t audio_HASH = ConstExprHashingUtils::HashString("audio"); + static constexpr uint32_t ancillary_data_HASH = ConstExprHashingUtils::HashString("ancillary-data"); MediaStreamType GetMediaStreamTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == video_HASH) { return MediaStreamType::video; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/NetworkInterfaceType.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/NetworkInterfaceType.cpp index 607a4bd8c10..b4e5d54ea37 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/NetworkInterfaceType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/NetworkInterfaceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkInterfaceTypeMapper { - static const int ena_HASH = HashingUtils::HashString("ena"); - static const int efa_HASH = HashingUtils::HashString("efa"); + static constexpr uint32_t ena_HASH = ConstExprHashingUtils::HashString("ena"); + static constexpr uint32_t efa_HASH = ConstExprHashingUtils::HashString("efa"); NetworkInterfaceType GetNetworkInterfaceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ena_HASH) { return NetworkInterfaceType::ena; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/PriceUnits.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/PriceUnits.cpp index e3ef6c62f54..d8cc7b1a230 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/PriceUnits.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/PriceUnits.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PriceUnitsMapper { - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); PriceUnits GetPriceUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURLY_HASH) { return PriceUnits::HOURLY; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Protocol.cpp index 8814366b969..507ecc6921b 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Protocol.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ProtocolMapper { - static const int zixi_push_HASH = HashingUtils::HashString("zixi-push"); - static const int rtp_fec_HASH = HashingUtils::HashString("rtp-fec"); - static const int rtp_HASH = HashingUtils::HashString("rtp"); - static const int zixi_pull_HASH = HashingUtils::HashString("zixi-pull"); - static const int rist_HASH = HashingUtils::HashString("rist"); - static const int st2110_jpegxs_HASH = HashingUtils::HashString("st2110-jpegxs"); - static const int cdi_HASH = HashingUtils::HashString("cdi"); - static const int srt_listener_HASH = HashingUtils::HashString("srt-listener"); - static const int srt_caller_HASH = HashingUtils::HashString("srt-caller"); - static const int fujitsu_qos_HASH = HashingUtils::HashString("fujitsu-qos"); - static const int udp_HASH = HashingUtils::HashString("udp"); + static constexpr uint32_t zixi_push_HASH = ConstExprHashingUtils::HashString("zixi-push"); + static constexpr uint32_t rtp_fec_HASH = ConstExprHashingUtils::HashString("rtp-fec"); + static constexpr uint32_t rtp_HASH = ConstExprHashingUtils::HashString("rtp"); + static constexpr uint32_t zixi_pull_HASH = ConstExprHashingUtils::HashString("zixi-pull"); + static constexpr uint32_t rist_HASH = ConstExprHashingUtils::HashString("rist"); + static constexpr uint32_t st2110_jpegxs_HASH = ConstExprHashingUtils::HashString("st2110-jpegxs"); + static constexpr uint32_t cdi_HASH = ConstExprHashingUtils::HashString("cdi"); + static constexpr uint32_t srt_listener_HASH = ConstExprHashingUtils::HashString("srt-listener"); + static constexpr uint32_t srt_caller_HASH = ConstExprHashingUtils::HashString("srt-caller"); + static constexpr uint32_t fujitsu_qos_HASH = ConstExprHashingUtils::HashString("fujitsu-qos"); + static constexpr uint32_t udp_HASH = ConstExprHashingUtils::HashString("udp"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == zixi_push_HASH) { return Protocol::zixi_push; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Range.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Range.cpp index e57952f1173..70cd987aaa8 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Range.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Range.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RangeMapper { - static const int NARROW_HASH = HashingUtils::HashString("NARROW"); - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int FULLPROTECT_HASH = HashingUtils::HashString("FULLPROTECT"); + static constexpr uint32_t NARROW_HASH = ConstExprHashingUtils::HashString("NARROW"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t FULLPROTECT_HASH = ConstExprHashingUtils::HashString("FULLPROTECT"); Range GetRangeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NARROW_HASH) { return Range::NARROW; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ReservationState.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ReservationState.cpp index eef309fd02b..f8dbc79944e 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ReservationState.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ReservationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReservationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); ReservationState GetReservationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ReservationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ResourceType.cpp index 4e6aa6a626a..2cf653f6bf4 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceTypeMapper { - static const int Mbps_Outbound_Bandwidth_HASH = HashingUtils::HashString("Mbps_Outbound_Bandwidth"); + static constexpr uint32_t Mbps_Outbound_Bandwidth_HASH = ConstExprHashingUtils::HashString("Mbps_Outbound_Bandwidth"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Mbps_Outbound_Bandwidth_HASH) { return ResourceType::Mbps_Outbound_Bandwidth; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ScanMode.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ScanMode.cpp index aad06ce37ae..2af4dd162ee 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/ScanMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/ScanMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScanModeMapper { - static const int progressive_HASH = HashingUtils::HashString("progressive"); - static const int interlace_HASH = HashingUtils::HashString("interlace"); - static const int progressive_segmented_frame_HASH = HashingUtils::HashString("progressive-segmented-frame"); + static constexpr uint32_t progressive_HASH = ConstExprHashingUtils::HashString("progressive"); + static constexpr uint32_t interlace_HASH = ConstExprHashingUtils::HashString("interlace"); + static constexpr uint32_t progressive_segmented_frame_HASH = ConstExprHashingUtils::HashString("progressive-segmented-frame"); ScanMode GetScanModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == progressive_HASH) { return ScanMode::progressive; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/SourceType.cpp index ee5f7c447cd..f9df3ccd858 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/SourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SourceTypeMapper { - static const int OWNED_HASH = HashingUtils::HashString("OWNED"); - static const int ENTITLED_HASH = HashingUtils::HashString("ENTITLED"); + static constexpr uint32_t OWNED_HASH = ConstExprHashingUtils::HashString("OWNED"); + static constexpr uint32_t ENTITLED_HASH = ConstExprHashingUtils::HashString("ENTITLED"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OWNED_HASH) { return SourceType::OWNED; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/State.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/State.cpp index 251be08df02..39e8e4c8186 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/State.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return State::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Status.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Status.cpp index 336239c590a..35bfe5bca3e 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Status.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StatusMapper { - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDBY_HASH) { return Status::STANDBY; diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Tcs.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Tcs.cpp index 29f07bdf41a..cc7358aca21 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/model/Tcs.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/model/Tcs.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TcsMapper { - static const int SDR_HASH = HashingUtils::HashString("SDR"); - static const int PQ_HASH = HashingUtils::HashString("PQ"); - static const int HLG_HASH = HashingUtils::HashString("HLG"); - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); - static const int BT2100LINPQ_HASH = HashingUtils::HashString("BT2100LINPQ"); - static const int BT2100LINHLG_HASH = HashingUtils::HashString("BT2100LINHLG"); - static const int ST2065_1_HASH = HashingUtils::HashString("ST2065-1"); - static const int ST428_1_HASH = HashingUtils::HashString("ST428-1"); - static const int DENSITY_HASH = HashingUtils::HashString("DENSITY"); + static constexpr uint32_t SDR_HASH = ConstExprHashingUtils::HashString("SDR"); + static constexpr uint32_t PQ_HASH = ConstExprHashingUtils::HashString("PQ"); + static constexpr uint32_t HLG_HASH = ConstExprHashingUtils::HashString("HLG"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); + static constexpr uint32_t BT2100LINPQ_HASH = ConstExprHashingUtils::HashString("BT2100LINPQ"); + static constexpr uint32_t BT2100LINHLG_HASH = ConstExprHashingUtils::HashString("BT2100LINHLG"); + static constexpr uint32_t ST2065_1_HASH = ConstExprHashingUtils::HashString("ST2065-1"); + static constexpr uint32_t ST428_1_HASH = ConstExprHashingUtils::HashString("ST428-1"); + static constexpr uint32_t DENSITY_HASH = ConstExprHashingUtils::HashString("DENSITY"); Tcs GetTcsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SDR_HASH) { return Tcs::SDR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertErrors.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertErrors.cpp index 8b09cffc2ca..cebdcaa9b0d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertErrors.cpp @@ -18,17 +18,17 @@ namespace MediaConvert namespace MediaConvertErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacAudioDescriptionBroadcasterMix.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacAudioDescriptionBroadcasterMix.cpp index 7828d4b7b2c..b5d20da1947 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacAudioDescriptionBroadcasterMix.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacAudioDescriptionBroadcasterMix.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacAudioDescriptionBroadcasterMixMapper { - static const int BROADCASTER_MIXED_AD_HASH = HashingUtils::HashString("BROADCASTER_MIXED_AD"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t BROADCASTER_MIXED_AD_HASH = ConstExprHashingUtils::HashString("BROADCASTER_MIXED_AD"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); AacAudioDescriptionBroadcasterMix GetAacAudioDescriptionBroadcasterMixForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BROADCASTER_MIXED_AD_HASH) { return AacAudioDescriptionBroadcasterMix::BROADCASTER_MIXED_AD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodecProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodecProfile.cpp index d922029a1b1..4a63f12ce0a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodecProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodecProfile.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AacCodecProfileMapper { - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int HEV1_HASH = HashingUtils::HashString("HEV1"); - static const int HEV2_HASH = HashingUtils::HashString("HEV2"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t HEV1_HASH = ConstExprHashingUtils::HashString("HEV1"); + static constexpr uint32_t HEV2_HASH = ConstExprHashingUtils::HashString("HEV2"); AacCodecProfile GetAacCodecProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LC_HASH) { return AacCodecProfile::LC; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodingMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodingMode.cpp index 9a6aaa2f576..bdf2eff4a9f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodingMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacCodingMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AacCodingModeMapper { - static const int AD_RECEIVER_MIX_HASH = HashingUtils::HashString("AD_RECEIVER_MIX"); - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_1_1_HASH = HashingUtils::HashString("CODING_MODE_1_1"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_5_1_HASH = HashingUtils::HashString("CODING_MODE_5_1"); + static constexpr uint32_t AD_RECEIVER_MIX_HASH = ConstExprHashingUtils::HashString("AD_RECEIVER_MIX"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_1_1_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_1"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_5_1_HASH = ConstExprHashingUtils::HashString("CODING_MODE_5_1"); AacCodingMode GetAacCodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AD_RECEIVER_MIX_HASH) { return AacCodingMode::AD_RECEIVER_MIX; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRateControlMode.cpp index 44c815c5e7c..e5ecdf75d9e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRateControlMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacRateControlModeMapper { - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); AacRateControlMode GetAacRateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CBR_HASH) { return AacRateControlMode::CBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRawFormat.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRawFormat.cpp index 6b9ca5aa03a..82c7dc025f8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRawFormat.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacRawFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacRawFormatMapper { - static const int LATM_LOAS_HASH = HashingUtils::HashString("LATM_LOAS"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t LATM_LOAS_HASH = ConstExprHashingUtils::HashString("LATM_LOAS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AacRawFormat GetAacRawFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LATM_LOAS_HASH) { return AacRawFormat::LATM_LOAS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacSpecification.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacSpecification.cpp index 7b78b99b4e0..e24ad2c3ae1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacSpecification.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacSpecification.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacSpecificationMapper { - static const int MPEG2_HASH = HashingUtils::HashString("MPEG2"); - static const int MPEG4_HASH = HashingUtils::HashString("MPEG4"); + static constexpr uint32_t MPEG2_HASH = ConstExprHashingUtils::HashString("MPEG2"); + static constexpr uint32_t MPEG4_HASH = ConstExprHashingUtils::HashString("MPEG4"); AacSpecification GetAacSpecificationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MPEG2_HASH) { return AacSpecification::MPEG2; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacVbrQuality.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacVbrQuality.cpp index b6a4abc3c0d..e9ba3cdf4b9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacVbrQuality.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AacVbrQuality.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AacVbrQualityMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_LOW_HASH = HashingUtils::HashString("MEDIUM_LOW"); - static const int MEDIUM_HIGH_HASH = HashingUtils::HashString("MEDIUM_HIGH"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_LOW_HASH = ConstExprHashingUtils::HashString("MEDIUM_LOW"); + static constexpr uint32_t MEDIUM_HIGH_HASH = ConstExprHashingUtils::HashString("MEDIUM_HIGH"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); AacVbrQuality GetAacVbrQualityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return AacVbrQuality::LOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3BitstreamMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3BitstreamMode.cpp index 124c8adf580..50cdc0f0bea 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3BitstreamMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3BitstreamMode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace Ac3BitstreamModeMapper { - static const int COMPLETE_MAIN_HASH = HashingUtils::HashString("COMPLETE_MAIN"); - static const int COMMENTARY_HASH = HashingUtils::HashString("COMMENTARY"); - static const int DIALOGUE_HASH = HashingUtils::HashString("DIALOGUE"); - static const int EMERGENCY_HASH = HashingUtils::HashString("EMERGENCY"); - static const int HEARING_IMPAIRED_HASH = HashingUtils::HashString("HEARING_IMPAIRED"); - static const int MUSIC_AND_EFFECTS_HASH = HashingUtils::HashString("MUSIC_AND_EFFECTS"); - static const int VISUALLY_IMPAIRED_HASH = HashingUtils::HashString("VISUALLY_IMPAIRED"); - static const int VOICE_OVER_HASH = HashingUtils::HashString("VOICE_OVER"); + static constexpr uint32_t COMPLETE_MAIN_HASH = ConstExprHashingUtils::HashString("COMPLETE_MAIN"); + static constexpr uint32_t COMMENTARY_HASH = ConstExprHashingUtils::HashString("COMMENTARY"); + static constexpr uint32_t DIALOGUE_HASH = ConstExprHashingUtils::HashString("DIALOGUE"); + static constexpr uint32_t EMERGENCY_HASH = ConstExprHashingUtils::HashString("EMERGENCY"); + static constexpr uint32_t HEARING_IMPAIRED_HASH = ConstExprHashingUtils::HashString("HEARING_IMPAIRED"); + static constexpr uint32_t MUSIC_AND_EFFECTS_HASH = ConstExprHashingUtils::HashString("MUSIC_AND_EFFECTS"); + static constexpr uint32_t VISUALLY_IMPAIRED_HASH = ConstExprHashingUtils::HashString("VISUALLY_IMPAIRED"); + static constexpr uint32_t VOICE_OVER_HASH = ConstExprHashingUtils::HashString("VOICE_OVER"); Ac3BitstreamMode GetAc3BitstreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_MAIN_HASH) { return Ac3BitstreamMode::COMPLETE_MAIN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3CodingMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3CodingMode.cpp index 83e12898471..6abd27ad805 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3CodingMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3CodingMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Ac3CodingModeMapper { - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_1_1_HASH = HashingUtils::HashString("CODING_MODE_1_1"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_3_2_LFE_HASH = HashingUtils::HashString("CODING_MODE_3_2_LFE"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_1_1_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_1"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_3_2_LFE_HASH = ConstExprHashingUtils::HashString("CODING_MODE_3_2_LFE"); Ac3CodingMode GetAc3CodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_1_0_HASH) { return Ac3CodingMode::CODING_MODE_1_0; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionLine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionLine.cpp index 183ebfdd8e2..0e4b06a158a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionLine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionLine.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Ac3DynamicRangeCompressionLineMapper { - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Ac3DynamicRangeCompressionLine GetAc3DynamicRangeCompressionLineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_STANDARD_HASH) { return Ac3DynamicRangeCompressionLine::FILM_STANDARD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionProfile.cpp index 137d2f1b2d9..9960ce4fb58 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3DynamicRangeCompressionProfileMapper { - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Ac3DynamicRangeCompressionProfile GetAc3DynamicRangeCompressionProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_STANDARD_HASH) { return Ac3DynamicRangeCompressionProfile::FILM_STANDARD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionRf.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionRf.cpp index 73d5519cf50..1d1feb651d0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionRf.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3DynamicRangeCompressionRf.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Ac3DynamicRangeCompressionRfMapper { - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Ac3DynamicRangeCompressionRf GetAc3DynamicRangeCompressionRfForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_STANDARD_HASH) { return Ac3DynamicRangeCompressionRf::FILM_STANDARD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3LfeFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3LfeFilter.cpp index e934636b42b..1e62336c1ab 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3LfeFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3LfeFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3LfeFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Ac3LfeFilter GetAc3LfeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Ac3LfeFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3MetadataControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3MetadataControl.cpp index 355e7588c3b..79e7a055030 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3MetadataControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Ac3MetadataControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3MetadataControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); Ac3MetadataControl GetAc3MetadataControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return Ac3MetadataControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationMode.cpp index d7e553e0ab9..3087c34ac77 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccelerationModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int PREFERRED_HASH = HashingUtils::HashString("PREFERRED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t PREFERRED_HASH = ConstExprHashingUtils::HashString("PREFERRED"); AccelerationMode GetAccelerationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return AccelerationMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationStatus.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationStatus.cpp index c531fb9537a..e8fef99eace 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AccelerationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AccelerationStatusMapper { - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int ACCELERATED_HASH = HashingUtils::HashString("ACCELERATED"); - static const int NOT_ACCELERATED_HASH = HashingUtils::HashString("NOT_ACCELERATED"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t ACCELERATED_HASH = ConstExprHashingUtils::HashString("ACCELERATED"); + static constexpr uint32_t NOT_ACCELERATED_HASH = ConstExprHashingUtils::HashString("NOT_ACCELERATED"); AccelerationStatus GetAccelerationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_APPLICABLE_HASH) { return AccelerationStatus::NOT_APPLICABLE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilter.cpp index 074616c61ef..1de79f0cee2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdvancedInputFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AdvancedInputFilter GetAdvancedInputFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AdvancedInputFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterAddTexture.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterAddTexture.cpp index 9c7367affb2..771b632bf3e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterAddTexture.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterAddTexture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdvancedInputFilterAddTextureMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AdvancedInputFilterAddTexture GetAdvancedInputFilterAddTextureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AdvancedInputFilterAddTexture::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterSharpen.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterSharpen.cpp index f548e2828ac..4bfc9b4c16e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterSharpen.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AdvancedInputFilterSharpen.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AdvancedInputFilterSharpenMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); AdvancedInputFilterSharpen GetAdvancedInputFilterSharpenForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return AdvancedInputFilterSharpen::OFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AfdSignaling.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AfdSignaling.cpp index 3d1b59fbb18..aa92e27445a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AfdSignaling.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AfdSignaling.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AfdSignalingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); AfdSignaling GetAfdSignalingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AfdSignaling::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AlphaBehavior.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AlphaBehavior.cpp index d472dba02f8..23433cf72f7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AlphaBehavior.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AlphaBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AlphaBehaviorMapper { - static const int DISCARD_HASH = HashingUtils::HashString("DISCARD"); - static const int REMAP_TO_LUMA_HASH = HashingUtils::HashString("REMAP_TO_LUMA"); + static constexpr uint32_t DISCARD_HASH = ConstExprHashingUtils::HashString("DISCARD"); + static constexpr uint32_t REMAP_TO_LUMA_HASH = ConstExprHashingUtils::HashString("REMAP_TO_LUMA"); AlphaBehavior GetAlphaBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISCARD_HASH) { return AlphaBehavior::DISCARD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryConvert608To708.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryConvert608To708.cpp index dbe9307f3f4..bccf5a9f772 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryConvert608To708.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryConvert608To708.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AncillaryConvert608To708Mapper { - static const int UPCONVERT_HASH = HashingUtils::HashString("UPCONVERT"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPCONVERT_HASH = ConstExprHashingUtils::HashString("UPCONVERT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AncillaryConvert608To708 GetAncillaryConvert608To708ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPCONVERT_HASH) { return AncillaryConvert608To708::UPCONVERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryTerminateCaptions.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryTerminateCaptions.cpp index ade20d495f6..4fa86da86ee 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryTerminateCaptions.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AncillaryTerminateCaptions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AncillaryTerminateCaptionsMapper { - static const int END_OF_INPUT_HASH = HashingUtils::HashString("END_OF_INPUT"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t END_OF_INPUT_HASH = ConstExprHashingUtils::HashString("END_OF_INPUT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AncillaryTerminateCaptions GetAncillaryTerminateCaptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == END_OF_INPUT_HASH) { return AncillaryTerminateCaptions::END_OF_INPUT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AntiAlias.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AntiAlias.cpp index 7b62571509d..62052e8098f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AntiAlias.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AntiAlias.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AntiAliasMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); AntiAlias GetAntiAliasForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return AntiAlias::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioChannelTag.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioChannelTag.cpp index 7a04ccc4806..c8884821b29 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioChannelTag.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioChannelTag.cpp @@ -20,39 +20,39 @@ namespace Aws namespace AudioChannelTagMapper { - static const int L_HASH = HashingUtils::HashString("L"); - static const int R_HASH = HashingUtils::HashString("R"); - static const int C_HASH = HashingUtils::HashString("C"); - static const int LFE_HASH = HashingUtils::HashString("LFE"); - static const int LS_HASH = HashingUtils::HashString("LS"); - static const int RS_HASH = HashingUtils::HashString("RS"); - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int RC_HASH = HashingUtils::HashString("RC"); - static const int CS_HASH = HashingUtils::HashString("CS"); - static const int LSD_HASH = HashingUtils::HashString("LSD"); - static const int RSD_HASH = HashingUtils::HashString("RSD"); - static const int TCS_HASH = HashingUtils::HashString("TCS"); - static const int VHL_HASH = HashingUtils::HashString("VHL"); - static const int VHC_HASH = HashingUtils::HashString("VHC"); - static const int VHR_HASH = HashingUtils::HashString("VHR"); - static const int TBL_HASH = HashingUtils::HashString("TBL"); - static const int TBC_HASH = HashingUtils::HashString("TBC"); - static const int TBR_HASH = HashingUtils::HashString("TBR"); - static const int RSL_HASH = HashingUtils::HashString("RSL"); - static const int RSR_HASH = HashingUtils::HashString("RSR"); - static const int LW_HASH = HashingUtils::HashString("LW"); - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int LFE2_HASH = HashingUtils::HashString("LFE2"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int RT_HASH = HashingUtils::HashString("RT"); - static const int HI_HASH = HashingUtils::HashString("HI"); - static const int NAR_HASH = HashingUtils::HashString("NAR"); - static const int M_HASH = HashingUtils::HashString("M"); + static constexpr uint32_t L_HASH = ConstExprHashingUtils::HashString("L"); + static constexpr uint32_t R_HASH = ConstExprHashingUtils::HashString("R"); + static constexpr uint32_t C_HASH = ConstExprHashingUtils::HashString("C"); + static constexpr uint32_t LFE_HASH = ConstExprHashingUtils::HashString("LFE"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); + static constexpr uint32_t RS_HASH = ConstExprHashingUtils::HashString("RS"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t RC_HASH = ConstExprHashingUtils::HashString("RC"); + static constexpr uint32_t CS_HASH = ConstExprHashingUtils::HashString("CS"); + static constexpr uint32_t LSD_HASH = ConstExprHashingUtils::HashString("LSD"); + static constexpr uint32_t RSD_HASH = ConstExprHashingUtils::HashString("RSD"); + static constexpr uint32_t TCS_HASH = ConstExprHashingUtils::HashString("TCS"); + static constexpr uint32_t VHL_HASH = ConstExprHashingUtils::HashString("VHL"); + static constexpr uint32_t VHC_HASH = ConstExprHashingUtils::HashString("VHC"); + static constexpr uint32_t VHR_HASH = ConstExprHashingUtils::HashString("VHR"); + static constexpr uint32_t TBL_HASH = ConstExprHashingUtils::HashString("TBL"); + static constexpr uint32_t TBC_HASH = ConstExprHashingUtils::HashString("TBC"); + static constexpr uint32_t TBR_HASH = ConstExprHashingUtils::HashString("TBR"); + static constexpr uint32_t RSL_HASH = ConstExprHashingUtils::HashString("RSL"); + static constexpr uint32_t RSR_HASH = ConstExprHashingUtils::HashString("RSR"); + static constexpr uint32_t LW_HASH = ConstExprHashingUtils::HashString("LW"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t LFE2_HASH = ConstExprHashingUtils::HashString("LFE2"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t RT_HASH = ConstExprHashingUtils::HashString("RT"); + static constexpr uint32_t HI_HASH = ConstExprHashingUtils::HashString("HI"); + static constexpr uint32_t NAR_HASH = ConstExprHashingUtils::HashString("NAR"); + static constexpr uint32_t M_HASH = ConstExprHashingUtils::HashString("M"); AudioChannelTag GetAudioChannelTagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == L_HASH) { return AudioChannelTag::L; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioCodec.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioCodec.cpp index 2cec13e8fa1..6df55fe6f55 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioCodec.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioCodec.cpp @@ -20,23 +20,23 @@ namespace Aws namespace AudioCodecMapper { - static const int AAC_HASH = HashingUtils::HashString("AAC"); - static const int MP2_HASH = HashingUtils::HashString("MP2"); - static const int MP3_HASH = HashingUtils::HashString("MP3"); - static const int WAV_HASH = HashingUtils::HashString("WAV"); - static const int AIFF_HASH = HashingUtils::HashString("AIFF"); - static const int AC3_HASH = HashingUtils::HashString("AC3"); - static const int EAC3_HASH = HashingUtils::HashString("EAC3"); - static const int EAC3_ATMOS_HASH = HashingUtils::HashString("EAC3_ATMOS"); - static const int VORBIS_HASH = HashingUtils::HashString("VORBIS"); - static const int OPUS_HASH = HashingUtils::HashString("OPUS"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int FLAC_HASH = HashingUtils::HashString("FLAC"); + static constexpr uint32_t AAC_HASH = ConstExprHashingUtils::HashString("AAC"); + static constexpr uint32_t MP2_HASH = ConstExprHashingUtils::HashString("MP2"); + static constexpr uint32_t MP3_HASH = ConstExprHashingUtils::HashString("MP3"); + static constexpr uint32_t WAV_HASH = ConstExprHashingUtils::HashString("WAV"); + static constexpr uint32_t AIFF_HASH = ConstExprHashingUtils::HashString("AIFF"); + static constexpr uint32_t AC3_HASH = ConstExprHashingUtils::HashString("AC3"); + static constexpr uint32_t EAC3_HASH = ConstExprHashingUtils::HashString("EAC3"); + static constexpr uint32_t EAC3_ATMOS_HASH = ConstExprHashingUtils::HashString("EAC3_ATMOS"); + static constexpr uint32_t VORBIS_HASH = ConstExprHashingUtils::HashString("VORBIS"); + static constexpr uint32_t OPUS_HASH = ConstExprHashingUtils::HashString("OPUS"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t FLAC_HASH = ConstExprHashingUtils::HashString("FLAC"); AudioCodec GetAudioCodecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AAC_HASH) { return AudioCodec::AAC; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDefaultSelection.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDefaultSelection.cpp index 38a142f1d75..354fa38ab5d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDefaultSelection.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDefaultSelection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioDefaultSelectionMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int NOT_DEFAULT_HASH = HashingUtils::HashString("NOT_DEFAULT"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t NOT_DEFAULT_HASH = ConstExprHashingUtils::HashString("NOT_DEFAULT"); AudioDefaultSelection GetAudioDefaultSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return AudioDefaultSelection::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDurationCorrection.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDurationCorrection.cpp index 36e17002bc9..824967a934b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDurationCorrection.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioDurationCorrection.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AudioDurationCorrectionMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int TRACK_HASH = HashingUtils::HashString("TRACK"); - static const int FRAME_HASH = HashingUtils::HashString("FRAME"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t TRACK_HASH = ConstExprHashingUtils::HashString("TRACK"); + static constexpr uint32_t FRAME_HASH = ConstExprHashingUtils::HashString("FRAME"); AudioDurationCorrection GetAudioDurationCorrectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return AudioDurationCorrection::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioLanguageCodeControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioLanguageCodeControl.cpp index ea84063c8ec..079e75ee30d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioLanguageCodeControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioLanguageCodeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioLanguageCodeControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); AudioLanguageCodeControl GetAudioLanguageCodeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return AudioLanguageCodeControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithm.cpp index 1c86e4f2480..ffa17bddac7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AudioNormalizationAlgorithmMapper { - static const int ITU_BS_1770_1_HASH = HashingUtils::HashString("ITU_BS_1770_1"); - static const int ITU_BS_1770_2_HASH = HashingUtils::HashString("ITU_BS_1770_2"); - static const int ITU_BS_1770_3_HASH = HashingUtils::HashString("ITU_BS_1770_3"); - static const int ITU_BS_1770_4_HASH = HashingUtils::HashString("ITU_BS_1770_4"); + static constexpr uint32_t ITU_BS_1770_1_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_1"); + static constexpr uint32_t ITU_BS_1770_2_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_2"); + static constexpr uint32_t ITU_BS_1770_3_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_3"); + static constexpr uint32_t ITU_BS_1770_4_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_4"); AudioNormalizationAlgorithm GetAudioNormalizationAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ITU_BS_1770_1_HASH) { return AudioNormalizationAlgorithm::ITU_BS_1770_1; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithmControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithmControl.cpp index f806c433eca..00700648c72 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithmControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationAlgorithmControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioNormalizationAlgorithmControlMapper { - static const int CORRECT_AUDIO_HASH = HashingUtils::HashString("CORRECT_AUDIO"); - static const int MEASURE_ONLY_HASH = HashingUtils::HashString("MEASURE_ONLY"); + static constexpr uint32_t CORRECT_AUDIO_HASH = ConstExprHashingUtils::HashString("CORRECT_AUDIO"); + static constexpr uint32_t MEASURE_ONLY_HASH = ConstExprHashingUtils::HashString("MEASURE_ONLY"); AudioNormalizationAlgorithmControl GetAudioNormalizationAlgorithmControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CORRECT_AUDIO_HASH) { return AudioNormalizationAlgorithmControl::CORRECT_AUDIO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationLoudnessLogging.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationLoudnessLogging.cpp index b4be25bd53c..83d24ae26e3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationLoudnessLogging.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationLoudnessLogging.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioNormalizationLoudnessLoggingMapper { - static const int LOG_HASH = HashingUtils::HashString("LOG"); - static const int DONT_LOG_HASH = HashingUtils::HashString("DONT_LOG"); + static constexpr uint32_t LOG_HASH = ConstExprHashingUtils::HashString("LOG"); + static constexpr uint32_t DONT_LOG_HASH = ConstExprHashingUtils::HashString("DONT_LOG"); AudioNormalizationLoudnessLogging GetAudioNormalizationLoudnessLoggingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOG_HASH) { return AudioNormalizationLoudnessLogging::LOG; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationPeakCalculation.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationPeakCalculation.cpp index ac0759a78a1..54403b145e8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationPeakCalculation.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioNormalizationPeakCalculation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioNormalizationPeakCalculationMapper { - static const int TRUE_PEAK_HASH = HashingUtils::HashString("TRUE_PEAK"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t TRUE_PEAK_HASH = ConstExprHashingUtils::HashString("TRUE_PEAK"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AudioNormalizationPeakCalculation GetAudioNormalizationPeakCalculationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_PEAK_HASH) { return AudioNormalizationPeakCalculation::TRUE_PEAK; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioSelectorType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioSelectorType.cpp index 7d56f8e551e..36edd8d7d52 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioSelectorType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioSelectorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AudioSelectorTypeMapper { - static const int PID_HASH = HashingUtils::HashString("PID"); - static const int TRACK_HASH = HashingUtils::HashString("TRACK"); - static const int LANGUAGE_CODE_HASH = HashingUtils::HashString("LANGUAGE_CODE"); - static const int HLS_RENDITION_GROUP_HASH = HashingUtils::HashString("HLS_RENDITION_GROUP"); + static constexpr uint32_t PID_HASH = ConstExprHashingUtils::HashString("PID"); + static constexpr uint32_t TRACK_HASH = ConstExprHashingUtils::HashString("TRACK"); + static constexpr uint32_t LANGUAGE_CODE_HASH = ConstExprHashingUtils::HashString("LANGUAGE_CODE"); + static constexpr uint32_t HLS_RENDITION_GROUP_HASH = ConstExprHashingUtils::HashString("HLS_RENDITION_GROUP"); AudioSelectorType GetAudioSelectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PID_HASH) { return AudioSelectorType::PID; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioTypeControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioTypeControl.cpp index 0a18c8c1390..8cb77ece7a2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioTypeControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AudioTypeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioTypeControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); AudioTypeControl GetAudioTypeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return AudioTypeControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1AdaptiveQuantization.cpp index 587e36398d1..823786ba353 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1AdaptiveQuantization.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Av1AdaptiveQuantizationMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGHER_HASH = HashingUtils::HashString("HIGHER"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGHER_HASH = ConstExprHashingUtils::HashString("HIGHER"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); Av1AdaptiveQuantization GetAv1AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return Av1AdaptiveQuantization::OFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1BitDepth.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1BitDepth.cpp index c1a75af1d4c..6caad63e360 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1BitDepth.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1BitDepth.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Av1BitDepthMapper { - static const int BIT_8_HASH = HashingUtils::HashString("BIT_8"); - static const int BIT_10_HASH = HashingUtils::HashString("BIT_10"); + static constexpr uint32_t BIT_8_HASH = ConstExprHashingUtils::HashString("BIT_8"); + static constexpr uint32_t BIT_10_HASH = ConstExprHashingUtils::HashString("BIT_10"); Av1BitDepth GetAv1BitDepthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BIT_8_HASH) { return Av1BitDepth::BIT_8; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FilmGrainSynthesis.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FilmGrainSynthesis.cpp index 959eeb07ee7..3d662f5bfce 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FilmGrainSynthesis.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FilmGrainSynthesis.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Av1FilmGrainSynthesisMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Av1FilmGrainSynthesis GetAv1FilmGrainSynthesisForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Av1FilmGrainSynthesis::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateControl.cpp index a1c6e7fe10f..351e6b47f8b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Av1FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Av1FramerateControl GetAv1FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Av1FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateConversionAlgorithm.cpp index 08b70391879..d15dba56b21 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Av1FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); Av1FramerateConversionAlgorithm GetAv1FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return Av1FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1RateControlMode.cpp index 5a42e6c4853..a9901c42bb0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1RateControlMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace Av1RateControlModeMapper { - static const int QVBR_HASH = HashingUtils::HashString("QVBR"); + static constexpr uint32_t QVBR_HASH = ConstExprHashingUtils::HashString("QVBR"); Av1RateControlMode GetAv1RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QVBR_HASH) { return Av1RateControlMode::QVBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1SpatialAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1SpatialAdaptiveQuantization.cpp index ab25dad44e0..eb86c33bf31 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1SpatialAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Av1SpatialAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Av1SpatialAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Av1SpatialAdaptiveQuantization GetAv1SpatialAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Av1SpatialAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraClass.cpp index 4c0a9313720..f72b039aa62 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraClass.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AvcIntraClassMapper { - static const int CLASS_50_HASH = HashingUtils::HashString("CLASS_50"); - static const int CLASS_100_HASH = HashingUtils::HashString("CLASS_100"); - static const int CLASS_200_HASH = HashingUtils::HashString("CLASS_200"); - static const int CLASS_4K_2K_HASH = HashingUtils::HashString("CLASS_4K_2K"); + static constexpr uint32_t CLASS_50_HASH = ConstExprHashingUtils::HashString("CLASS_50"); + static constexpr uint32_t CLASS_100_HASH = ConstExprHashingUtils::HashString("CLASS_100"); + static constexpr uint32_t CLASS_200_HASH = ConstExprHashingUtils::HashString("CLASS_200"); + static constexpr uint32_t CLASS_4K_2K_HASH = ConstExprHashingUtils::HashString("CLASS_4K_2K"); AvcIntraClass GetAvcIntraClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASS_50_HASH) { return AvcIntraClass::CLASS_50; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateControl.cpp index 0b8aa20b55a..b208b07aebe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvcIntraFramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); AvcIntraFramerateControl GetAvcIntraFramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return AvcIntraFramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateConversionAlgorithm.cpp index 0c241c639ff..ec8308db45e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraFramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AvcIntraFramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); AvcIntraFramerateConversionAlgorithm GetAvcIntraFramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return AvcIntraFramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraInterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraInterlaceMode.cpp index 3d689899a96..ffce5add6ee 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraInterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraInterlaceMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AvcIntraInterlaceModeMapper { - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); - static const int TOP_FIELD_HASH = HashingUtils::HashString("TOP_FIELD"); - static const int BOTTOM_FIELD_HASH = HashingUtils::HashString("BOTTOM_FIELD"); - static const int FOLLOW_TOP_FIELD_HASH = HashingUtils::HashString("FOLLOW_TOP_FIELD"); - static const int FOLLOW_BOTTOM_FIELD_HASH = HashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t TOP_FIELD_HASH = ConstExprHashingUtils::HashString("TOP_FIELD"); + static constexpr uint32_t BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("BOTTOM_FIELD"); + static constexpr uint32_t FOLLOW_TOP_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_TOP_FIELD"); + static constexpr uint32_t FOLLOW_BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); AvcIntraInterlaceMode GetAvcIntraInterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_HASH) { return AvcIntraInterlaceMode::PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraScanTypeConversionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraScanTypeConversionMode.cpp index 1058663218b..08a5c09a3fb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraScanTypeConversionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraScanTypeConversionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvcIntraScanTypeConversionModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int INTERLACED_OPTIMIZE_HASH = HashingUtils::HashString("INTERLACED_OPTIMIZE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t INTERLACED_OPTIMIZE_HASH = ConstExprHashingUtils::HashString("INTERLACED_OPTIMIZE"); AvcIntraScanTypeConversionMode GetAvcIntraScanTypeConversionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return AvcIntraScanTypeConversionMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraSlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraSlowPal.cpp index a6ceabf483b..d246ab7a616 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraSlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraSlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvcIntraSlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); AvcIntraSlowPal GetAvcIntraSlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return AvcIntraSlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraTelecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraTelecine.cpp index 3ea2dd2b39e..94e19a375fd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraTelecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraTelecine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvcIntraTelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); AvcIntraTelecine GetAvcIntraTelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AvcIntraTelecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraUhdQualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraUhdQualityTuningLevel.cpp index 3731cc7bf0d..f2f8939f115 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraUhdQualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/AvcIntraUhdQualityTuningLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvcIntraUhdQualityTuningLevelMapper { - static const int SINGLE_PASS_HASH = HashingUtils::HashString("SINGLE_PASS"); - static const int MULTI_PASS_HASH = HashingUtils::HashString("MULTI_PASS"); + static constexpr uint32_t SINGLE_PASS_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS"); + static constexpr uint32_t MULTI_PASS_HASH = ConstExprHashingUtils::HashString("MULTI_PASS"); AvcIntraUhdQualityTuningLevel GetAvcIntraUhdQualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PASS_HASH) { return AvcIntraUhdQualityTuningLevel::SINGLE_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterSharpening.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterSharpening.cpp index 594e7a4d442..deb7088518f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterSharpening.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterSharpening.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BandwidthReductionFilterSharpeningMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); BandwidthReductionFilterSharpening GetBandwidthReductionFilterSharpeningForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return BandwidthReductionFilterSharpening::LOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterStrength.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterStrength.cpp index e8713dbba31..e17a998329e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterStrength.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BandwidthReductionFilterStrength.cpp @@ -20,16 +20,16 @@ namespace Aws namespace BandwidthReductionFilterStrengthMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); BandwidthReductionFilterStrength GetBandwidthReductionFilterStrengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return BandwidthReductionFilterStrength::LOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BillingTagsSource.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BillingTagsSource.cpp index 1240244fd3b..a7929d7fe7b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BillingTagsSource.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BillingTagsSource.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BillingTagsSourceMapper { - static const int QUEUE_HASH = HashingUtils::HashString("QUEUE"); - static const int PRESET_HASH = HashingUtils::HashString("PRESET"); - static const int JOB_TEMPLATE_HASH = HashingUtils::HashString("JOB_TEMPLATE"); - static const int JOB_HASH = HashingUtils::HashString("JOB"); + static constexpr uint32_t QUEUE_HASH = ConstExprHashingUtils::HashString("QUEUE"); + static constexpr uint32_t PRESET_HASH = ConstExprHashingUtils::HashString("PRESET"); + static constexpr uint32_t JOB_TEMPLATE_HASH = ConstExprHashingUtils::HashString("JOB_TEMPLATE"); + static constexpr uint32_t JOB_HASH = ConstExprHashingUtils::HashString("JOB"); BillingTagsSource GetBillingTagsSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUE_HASH) { return BillingTagsSource::QUEUE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurnInSubtitleStylePassthrough.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurnInSubtitleStylePassthrough.cpp index 4834f0d92dc..987dd5b1fbc 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurnInSubtitleStylePassthrough.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurnInSubtitleStylePassthrough.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BurnInSubtitleStylePassthroughMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); BurnInSubtitleStylePassthrough GetBurnInSubtitleStylePassthroughForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return BurnInSubtitleStylePassthrough::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleAlignment.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleAlignment.cpp index 38c388f0be2..707eaf3c4c1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleAlignment.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleAlignment.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurninSubtitleAlignmentMapper { - static const int CENTERED_HASH = HashingUtils::HashString("CENTERED"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t CENTERED_HASH = ConstExprHashingUtils::HashString("CENTERED"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); BurninSubtitleAlignment GetBurninSubtitleAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENTERED_HASH) { return BurninSubtitleAlignment::CENTERED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleApplyFontColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleApplyFontColor.cpp index e0d2bbbfbe2..8b42fcea4ca 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleApplyFontColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleApplyFontColor.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BurninSubtitleApplyFontColorMapper { - static const int WHITE_TEXT_ONLY_HASH = HashingUtils::HashString("WHITE_TEXT_ONLY"); - static const int ALL_TEXT_HASH = HashingUtils::HashString("ALL_TEXT"); + static constexpr uint32_t WHITE_TEXT_ONLY_HASH = ConstExprHashingUtils::HashString("WHITE_TEXT_ONLY"); + static constexpr uint32_t ALL_TEXT_HASH = ConstExprHashingUtils::HashString("ALL_TEXT"); BurninSubtitleApplyFontColor GetBurninSubtitleApplyFontColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WHITE_TEXT_ONLY_HASH) { return BurninSubtitleApplyFontColor::WHITE_TEXT_ONLY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleBackgroundColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleBackgroundColor.cpp index ccfc9b68c88..c921b56dff7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleBackgroundColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleBackgroundColor.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BurninSubtitleBackgroundColorMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); BurninSubtitleBackgroundColor GetBurninSubtitleBackgroundColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return BurninSubtitleBackgroundColor::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFallbackFont.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFallbackFont.cpp index 1300756c542..2072de8c907 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFallbackFont.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFallbackFont.cpp @@ -20,16 +20,16 @@ namespace Aws namespace BurninSubtitleFallbackFontMapper { - static const int BEST_MATCH_HASH = HashingUtils::HashString("BEST_MATCH"); - static const int MONOSPACED_SANSSERIF_HASH = HashingUtils::HashString("MONOSPACED_SANSSERIF"); - static const int MONOSPACED_SERIF_HASH = HashingUtils::HashString("MONOSPACED_SERIF"); - static const int PROPORTIONAL_SANSSERIF_HASH = HashingUtils::HashString("PROPORTIONAL_SANSSERIF"); - static const int PROPORTIONAL_SERIF_HASH = HashingUtils::HashString("PROPORTIONAL_SERIF"); + static constexpr uint32_t BEST_MATCH_HASH = ConstExprHashingUtils::HashString("BEST_MATCH"); + static constexpr uint32_t MONOSPACED_SANSSERIF_HASH = ConstExprHashingUtils::HashString("MONOSPACED_SANSSERIF"); + static constexpr uint32_t MONOSPACED_SERIF_HASH = ConstExprHashingUtils::HashString("MONOSPACED_SERIF"); + static constexpr uint32_t PROPORTIONAL_SANSSERIF_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL_SANSSERIF"); + static constexpr uint32_t PROPORTIONAL_SERIF_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL_SERIF"); BurninSubtitleFallbackFont GetBurninSubtitleFallbackFontForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEST_MATCH_HASH) { return BurninSubtitleFallbackFont::BEST_MATCH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFontColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFontColor.cpp index d9c3456d6e3..10dacb8c084 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFontColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleFontColor.cpp @@ -20,19 +20,19 @@ namespace Aws namespace BurninSubtitleFontColorMapper { - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int HEX_HASH = HashingUtils::HashString("HEX"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t HEX_HASH = ConstExprHashingUtils::HashString("HEX"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); BurninSubtitleFontColor GetBurninSubtitleFontColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WHITE_HASH) { return BurninSubtitleFontColor::WHITE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleOutlineColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleOutlineColor.cpp index a6306793733..1012c09d1ce 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleOutlineColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleOutlineColor.cpp @@ -20,18 +20,18 @@ namespace Aws namespace BurninSubtitleOutlineColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); BurninSubtitleOutlineColor GetBurninSubtitleOutlineColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return BurninSubtitleOutlineColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleShadowColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleShadowColor.cpp index fd774b7af82..2d3679da466 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleShadowColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleShadowColor.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BurninSubtitleShadowColorMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); BurninSubtitleShadowColor GetBurninSubtitleShadowColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return BurninSubtitleShadowColor::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleTeletextSpacing.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleTeletextSpacing.cpp index 193f2769429..38117bdb35d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleTeletextSpacing.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/BurninSubtitleTeletextSpacing.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurninSubtitleTeletextSpacingMapper { - static const int FIXED_GRID_HASH = HashingUtils::HashString("FIXED_GRID"); - static const int PROPORTIONAL_HASH = HashingUtils::HashString("PROPORTIONAL"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t FIXED_GRID_HASH = ConstExprHashingUtils::HashString("FIXED_GRID"); + static constexpr uint32_t PROPORTIONAL_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); BurninSubtitleTeletextSpacing GetBurninSubtitleTeletextSpacingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_GRID_HASH) { return BurninSubtitleTeletextSpacing::FIXED_GRID; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionDestinationType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionDestinationType.cpp index 347ac60ffe8..b392623c9b7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionDestinationType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace CaptionDestinationTypeMapper { - static const int BURN_IN_HASH = HashingUtils::HashString("BURN_IN"); - static const int DVB_SUB_HASH = HashingUtils::HashString("DVB_SUB"); - static const int EMBEDDED_HASH = HashingUtils::HashString("EMBEDDED"); - static const int EMBEDDED_PLUS_SCTE20_HASH = HashingUtils::HashString("EMBEDDED_PLUS_SCTE20"); - static const int IMSC_HASH = HashingUtils::HashString("IMSC"); - static const int SCTE20_PLUS_EMBEDDED_HASH = HashingUtils::HashString("SCTE20_PLUS_EMBEDDED"); - static const int SCC_HASH = HashingUtils::HashString("SCC"); - static const int SRT_HASH = HashingUtils::HashString("SRT"); - static const int SMI_HASH = HashingUtils::HashString("SMI"); - static const int TELETEXT_HASH = HashingUtils::HashString("TELETEXT"); - static const int TTML_HASH = HashingUtils::HashString("TTML"); - static const int WEBVTT_HASH = HashingUtils::HashString("WEBVTT"); + static constexpr uint32_t BURN_IN_HASH = ConstExprHashingUtils::HashString("BURN_IN"); + static constexpr uint32_t DVB_SUB_HASH = ConstExprHashingUtils::HashString("DVB_SUB"); + static constexpr uint32_t EMBEDDED_HASH = ConstExprHashingUtils::HashString("EMBEDDED"); + static constexpr uint32_t EMBEDDED_PLUS_SCTE20_HASH = ConstExprHashingUtils::HashString("EMBEDDED_PLUS_SCTE20"); + static constexpr uint32_t IMSC_HASH = ConstExprHashingUtils::HashString("IMSC"); + static constexpr uint32_t SCTE20_PLUS_EMBEDDED_HASH = ConstExprHashingUtils::HashString("SCTE20_PLUS_EMBEDDED"); + static constexpr uint32_t SCC_HASH = ConstExprHashingUtils::HashString("SCC"); + static constexpr uint32_t SRT_HASH = ConstExprHashingUtils::HashString("SRT"); + static constexpr uint32_t SMI_HASH = ConstExprHashingUtils::HashString("SMI"); + static constexpr uint32_t TELETEXT_HASH = ConstExprHashingUtils::HashString("TELETEXT"); + static constexpr uint32_t TTML_HASH = ConstExprHashingUtils::HashString("TTML"); + static constexpr uint32_t WEBVTT_HASH = ConstExprHashingUtils::HashString("WEBVTT"); CaptionDestinationType GetCaptionDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BURN_IN_HASH) { return CaptionDestinationType::BURN_IN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceConvertPaintOnToPopOn.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceConvertPaintOnToPopOn.cpp index 4e27c72a849..6918bf95a88 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceConvertPaintOnToPopOn.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceConvertPaintOnToPopOn.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CaptionSourceConvertPaintOnToPopOnMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CaptionSourceConvertPaintOnToPopOn GetCaptionSourceConvertPaintOnToPopOnForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CaptionSourceConvertPaintOnToPopOn::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceType.cpp index dcb6c8ff26d..628fccac591 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CaptionSourceType.cpp @@ -20,25 +20,25 @@ namespace Aws namespace CaptionSourceTypeMapper { - static const int ANCILLARY_HASH = HashingUtils::HashString("ANCILLARY"); - static const int DVB_SUB_HASH = HashingUtils::HashString("DVB_SUB"); - static const int EMBEDDED_HASH = HashingUtils::HashString("EMBEDDED"); - static const int SCTE20_HASH = HashingUtils::HashString("SCTE20"); - static const int SCC_HASH = HashingUtils::HashString("SCC"); - static const int TTML_HASH = HashingUtils::HashString("TTML"); - static const int STL_HASH = HashingUtils::HashString("STL"); - static const int SRT_HASH = HashingUtils::HashString("SRT"); - static const int SMI_HASH = HashingUtils::HashString("SMI"); - static const int SMPTE_TT_HASH = HashingUtils::HashString("SMPTE_TT"); - static const int TELETEXT_HASH = HashingUtils::HashString("TELETEXT"); - static const int NULL_SOURCE_HASH = HashingUtils::HashString("NULL_SOURCE"); - static const int IMSC_HASH = HashingUtils::HashString("IMSC"); - static const int WEBVTT_HASH = HashingUtils::HashString("WEBVTT"); + static constexpr uint32_t ANCILLARY_HASH = ConstExprHashingUtils::HashString("ANCILLARY"); + static constexpr uint32_t DVB_SUB_HASH = ConstExprHashingUtils::HashString("DVB_SUB"); + static constexpr uint32_t EMBEDDED_HASH = ConstExprHashingUtils::HashString("EMBEDDED"); + static constexpr uint32_t SCTE20_HASH = ConstExprHashingUtils::HashString("SCTE20"); + static constexpr uint32_t SCC_HASH = ConstExprHashingUtils::HashString("SCC"); + static constexpr uint32_t TTML_HASH = ConstExprHashingUtils::HashString("TTML"); + static constexpr uint32_t STL_HASH = ConstExprHashingUtils::HashString("STL"); + static constexpr uint32_t SRT_HASH = ConstExprHashingUtils::HashString("SRT"); + static constexpr uint32_t SMI_HASH = ConstExprHashingUtils::HashString("SMI"); + static constexpr uint32_t SMPTE_TT_HASH = ConstExprHashingUtils::HashString("SMPTE_TT"); + static constexpr uint32_t TELETEXT_HASH = ConstExprHashingUtils::HashString("TELETEXT"); + static constexpr uint32_t NULL_SOURCE_HASH = ConstExprHashingUtils::HashString("NULL_SOURCE"); + static constexpr uint32_t IMSC_HASH = ConstExprHashingUtils::HashString("IMSC"); + static constexpr uint32_t WEBVTT_HASH = ConstExprHashingUtils::HashString("WEBVTT"); CaptionSourceType GetCaptionSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANCILLARY_HASH) { return CaptionSourceType::ANCILLARY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafClientCache.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafClientCache.cpp index 7a577686a90..abf694391c7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafClientCache.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafClientCache.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafClientCacheMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); CmafClientCache GetCmafClientCacheForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CmafClientCache::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafCodecSpecification.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafCodecSpecification.cpp index 9fb7afd519f..97220ec4f23 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafCodecSpecification.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafCodecSpecification.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafCodecSpecificationMapper { - static const int RFC_6381_HASH = HashingUtils::HashString("RFC_6381"); - static const int RFC_4281_HASH = HashingUtils::HashString("RFC_4281"); + static constexpr uint32_t RFC_6381_HASH = ConstExprHashingUtils::HashString("RFC_6381"); + static constexpr uint32_t RFC_4281_HASH = ConstExprHashingUtils::HashString("RFC_4281"); CmafCodecSpecification GetCmafCodecSpecificationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RFC_6381_HASH) { return CmafCodecSpecification::RFC_6381; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafEncryptionType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafEncryptionType.cpp index da6ec88db85..cdea172cea1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafEncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafEncryptionTypeMapper { - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); - static const int AES_CTR_HASH = HashingUtils::HashString("AES_CTR"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES_CTR_HASH = ConstExprHashingUtils::HashString("AES_CTR"); CmafEncryptionType GetCmafEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAMPLE_AES_HASH) { return CmafEncryptionType::SAMPLE_AES; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafImageBasedTrickPlay.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafImageBasedTrickPlay.cpp index 1f2e185717b..050f536edab 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafImageBasedTrickPlay.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafImageBasedTrickPlay.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CmafImageBasedTrickPlayMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int THUMBNAIL_HASH = HashingUtils::HashString("THUMBNAIL"); - static const int THUMBNAIL_AND_FULLFRAME_HASH = HashingUtils::HashString("THUMBNAIL_AND_FULLFRAME"); - static const int ADVANCED_HASH = HashingUtils::HashString("ADVANCED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t THUMBNAIL_HASH = ConstExprHashingUtils::HashString("THUMBNAIL"); + static constexpr uint32_t THUMBNAIL_AND_FULLFRAME_HASH = ConstExprHashingUtils::HashString("THUMBNAIL_AND_FULLFRAME"); + static constexpr uint32_t ADVANCED_HASH = ConstExprHashingUtils::HashString("ADVANCED"); CmafImageBasedTrickPlay GetCmafImageBasedTrickPlayForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return CmafImageBasedTrickPlay::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafInitializationVectorInManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafInitializationVectorInManifest.cpp index cdb072cec06..e6dcab8a97e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafInitializationVectorInManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafInitializationVectorInManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafInitializationVectorInManifestMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); CmafInitializationVectorInManifest GetCmafInitializationVectorInManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return CmafInitializationVectorInManifest::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafIntervalCadence.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafIntervalCadence.cpp index 03f6ea5ddfd..417e353ad98 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafIntervalCadence.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafIntervalCadence.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafIntervalCadenceMapper { - static const int FOLLOW_IFRAME_HASH = HashingUtils::HashString("FOLLOW_IFRAME"); - static const int FOLLOW_CUSTOM_HASH = HashingUtils::HashString("FOLLOW_CUSTOM"); + static constexpr uint32_t FOLLOW_IFRAME_HASH = ConstExprHashingUtils::HashString("FOLLOW_IFRAME"); + static constexpr uint32_t FOLLOW_CUSTOM_HASH = ConstExprHashingUtils::HashString("FOLLOW_CUSTOM"); CmafIntervalCadence GetCmafIntervalCadenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_IFRAME_HASH) { return CmafIntervalCadence::FOLLOW_IFRAME; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafKeyProviderType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafKeyProviderType.cpp index c85c2f2f266..5c278984b81 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafKeyProviderType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafKeyProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafKeyProviderTypeMapper { - static const int SPEKE_HASH = HashingUtils::HashString("SPEKE"); - static const int STATIC_KEY_HASH = HashingUtils::HashString("STATIC_KEY"); + static constexpr uint32_t SPEKE_HASH = ConstExprHashingUtils::HashString("SPEKE"); + static constexpr uint32_t STATIC_KEY_HASH = ConstExprHashingUtils::HashString("STATIC_KEY"); CmafKeyProviderType GetCmafKeyProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPEKE_HASH) { return CmafKeyProviderType::SPEKE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestCompression.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestCompression.cpp index a02e5a8c767..b61a33da50e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestCompression.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestCompression.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafManifestCompressionMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); CmafManifestCompression GetCmafManifestCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return CmafManifestCompression::GZIP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestDurationFormat.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestDurationFormat.cpp index a6c8d709ecf..2ad57620727 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestDurationFormat.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafManifestDurationFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafManifestDurationFormatMapper { - static const int FLOATING_POINT_HASH = HashingUtils::HashString("FLOATING_POINT"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); + static constexpr uint32_t FLOATING_POINT_HASH = ConstExprHashingUtils::HashString("FLOATING_POINT"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); CmafManifestDurationFormat GetCmafManifestDurationFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOATING_POINT_HASH) { return CmafManifestDurationFormat::FLOATING_POINT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdManifestBandwidthType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdManifestBandwidthType.cpp index d4ac4a7d70f..770eb25e0dd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdManifestBandwidthType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdManifestBandwidthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafMpdManifestBandwidthTypeMapper { - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); CmafMpdManifestBandwidthType GetCmafMpdManifestBandwidthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVERAGE_HASH) { return CmafMpdManifestBandwidthType::AVERAGE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdProfile.cpp index 0b0b48d60b0..641a45d02ed 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafMpdProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafMpdProfileMapper { - static const int MAIN_PROFILE_HASH = HashingUtils::HashString("MAIN_PROFILE"); - static const int ON_DEMAND_PROFILE_HASH = HashingUtils::HashString("ON_DEMAND_PROFILE"); + static constexpr uint32_t MAIN_PROFILE_HASH = ConstExprHashingUtils::HashString("MAIN_PROFILE"); + static constexpr uint32_t ON_DEMAND_PROFILE_HASH = ConstExprHashingUtils::HashString("ON_DEMAND_PROFILE"); CmafMpdProfile GetCmafMpdProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAIN_PROFILE_HASH) { return CmafMpdProfile::MAIN_PROFILE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafPtsOffsetHandlingForBFrames.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafPtsOffsetHandlingForBFrames.cpp index 174198e91b3..99b58955188 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafPtsOffsetHandlingForBFrames.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafPtsOffsetHandlingForBFrames.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafPtsOffsetHandlingForBFramesMapper { - static const int ZERO_BASED_HASH = HashingUtils::HashString("ZERO_BASED"); - static const int MATCH_INITIAL_PTS_HASH = HashingUtils::HashString("MATCH_INITIAL_PTS"); + static constexpr uint32_t ZERO_BASED_HASH = ConstExprHashingUtils::HashString("ZERO_BASED"); + static constexpr uint32_t MATCH_INITIAL_PTS_HASH = ConstExprHashingUtils::HashString("MATCH_INITIAL_PTS"); CmafPtsOffsetHandlingForBFrames GetCmafPtsOffsetHandlingForBFramesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZERO_BASED_HASH) { return CmafPtsOffsetHandlingForBFrames::ZERO_BASED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentControl.cpp index 8504f889173..542def0a28e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafSegmentControlMapper { - static const int SINGLE_FILE_HASH = HashingUtils::HashString("SINGLE_FILE"); - static const int SEGMENTED_FILES_HASH = HashingUtils::HashString("SEGMENTED_FILES"); + static constexpr uint32_t SINGLE_FILE_HASH = ConstExprHashingUtils::HashString("SINGLE_FILE"); + static constexpr uint32_t SEGMENTED_FILES_HASH = ConstExprHashingUtils::HashString("SEGMENTED_FILES"); CmafSegmentControl GetCmafSegmentControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_FILE_HASH) { return CmafSegmentControl::SINGLE_FILE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentLengthControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentLengthControl.cpp index f216a0fb167..841ec225c7f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentLengthControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafSegmentLengthControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafSegmentLengthControlMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); - static const int GOP_MULTIPLE_HASH = HashingUtils::HashString("GOP_MULTIPLE"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); + static constexpr uint32_t GOP_MULTIPLE_HASH = ConstExprHashingUtils::HashString("GOP_MULTIPLE"); CmafSegmentLengthControl GetCmafSegmentLengthControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return CmafSegmentLengthControl::EXACT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafStreamInfResolution.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafStreamInfResolution.cpp index 54a7be1cee3..6520aa9c44b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafStreamInfResolution.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafStreamInfResolution.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafStreamInfResolutionMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); CmafStreamInfResolution GetCmafStreamInfResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return CmafStreamInfResolution::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafTargetDurationCompatibilityMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafTargetDurationCompatibilityMode.cpp index b4127f4479b..c5ff158717b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafTargetDurationCompatibilityMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafTargetDurationCompatibilityMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafTargetDurationCompatibilityModeMapper { - static const int LEGACY_HASH = HashingUtils::HashString("LEGACY"); - static const int SPEC_COMPLIANT_HASH = HashingUtils::HashString("SPEC_COMPLIANT"); + static constexpr uint32_t LEGACY_HASH = ConstExprHashingUtils::HashString("LEGACY"); + static constexpr uint32_t SPEC_COMPLIANT_HASH = ConstExprHashingUtils::HashString("SPEC_COMPLIANT"); CmafTargetDurationCompatibilityMode GetCmafTargetDurationCompatibilityModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEGACY_HASH) { return CmafTargetDurationCompatibilityMode::LEGACY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafVideoCompositionOffsets.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafVideoCompositionOffsets.cpp index ac16eb85399..0d3e4bd3e6f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafVideoCompositionOffsets.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafVideoCompositionOffsets.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafVideoCompositionOffsetsMapper { - static const int SIGNED_HASH = HashingUtils::HashString("SIGNED"); - static const int UNSIGNED_HASH = HashingUtils::HashString("UNSIGNED"); + static constexpr uint32_t SIGNED_HASH = ConstExprHashingUtils::HashString("SIGNED"); + static constexpr uint32_t UNSIGNED_HASH = ConstExprHashingUtils::HashString("UNSIGNED"); CmafVideoCompositionOffsets GetCmafVideoCompositionOffsetsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIGNED_HASH) { return CmafVideoCompositionOffsets::SIGNED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteDASHManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteDASHManifest.cpp index 5a81e1cd1c6..cb00655e611 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteDASHManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteDASHManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafWriteDASHManifestMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); CmafWriteDASHManifest GetCmafWriteDASHManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CmafWriteDASHManifest::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteHLSManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteHLSManifest.cpp index cbf5774bb52..0aaa2bfb544 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteHLSManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteHLSManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafWriteHLSManifestMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); CmafWriteHLSManifest GetCmafWriteHLSManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CmafWriteHLSManifest::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteSegmentTimelineInRepresentation.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteSegmentTimelineInRepresentation.cpp index 2dad168e889..80fc6067c91 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteSegmentTimelineInRepresentation.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmafWriteSegmentTimelineInRepresentation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafWriteSegmentTimelineInRepresentationMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CmafWriteSegmentTimelineInRepresentation GetCmafWriteSegmentTimelineInRepresentationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CmafWriteSegmentTimelineInRepresentation::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioDuration.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioDuration.cpp index e404c6a590a..c1ed42feb40 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioDuration.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioDuration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcAudioDurationMapper { - static const int DEFAULT_CODEC_DURATION_HASH = HashingUtils::HashString("DEFAULT_CODEC_DURATION"); - static const int MATCH_VIDEO_DURATION_HASH = HashingUtils::HashString("MATCH_VIDEO_DURATION"); + static constexpr uint32_t DEFAULT_CODEC_DURATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_CODEC_DURATION"); + static constexpr uint32_t MATCH_VIDEO_DURATION_HASH = ConstExprHashingUtils::HashString("MATCH_VIDEO_DURATION"); CmfcAudioDuration GetCmfcAudioDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_CODEC_DURATION_HASH) { return CmfcAudioDuration::DEFAULT_CODEC_DURATION; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioTrackType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioTrackType.cpp index 4d3445399f7..cf8e739b166 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioTrackType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcAudioTrackType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CmfcAudioTrackTypeMapper { - static const int ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"); - static const int ALTERNATE_AUDIO_AUTO_SELECT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT"); - static const int ALTERNATE_AUDIO_NOT_AUTO_SELECT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_NOT_AUTO_SELECT"); - static const int AUDIO_ONLY_VARIANT_STREAM_HASH = HashingUtils::HashString("AUDIO_ONLY_VARIANT_STREAM"); + static constexpr uint32_t ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"); + static constexpr uint32_t ALTERNATE_AUDIO_AUTO_SELECT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT"); + static constexpr uint32_t ALTERNATE_AUDIO_NOT_AUTO_SELECT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_NOT_AUTO_SELECT"); + static constexpr uint32_t AUDIO_ONLY_VARIANT_STREAM_HASH = ConstExprHashingUtils::HashString("AUDIO_ONLY_VARIANT_STREAM"); CmfcAudioTrackType GetCmfcAudioTrackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH) { return CmfcAudioTrackType::ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcDescriptiveVideoServiceFlag.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcDescriptiveVideoServiceFlag.cpp index fbb2c6394fb..606f1f7aad4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcDescriptiveVideoServiceFlag.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcDescriptiveVideoServiceFlag.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcDescriptiveVideoServiceFlagMapper { - static const int DONT_FLAG_HASH = HashingUtils::HashString("DONT_FLAG"); - static const int FLAG_HASH = HashingUtils::HashString("FLAG"); + static constexpr uint32_t DONT_FLAG_HASH = ConstExprHashingUtils::HashString("DONT_FLAG"); + static constexpr uint32_t FLAG_HASH = ConstExprHashingUtils::HashString("FLAG"); CmfcDescriptiveVideoServiceFlag GetCmfcDescriptiveVideoServiceFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DONT_FLAG_HASH) { return CmfcDescriptiveVideoServiceFlag::DONT_FLAG; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcIFrameOnlyManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcIFrameOnlyManifest.cpp index 20b933da1f9..d8f043698b9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcIFrameOnlyManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcIFrameOnlyManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcIFrameOnlyManifestMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); CmfcIFrameOnlyManifest GetCmfcIFrameOnlyManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return CmfcIFrameOnlyManifest::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcKlvMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcKlvMetadata.cpp index 3dbb5f73eb9..4abe6c17973 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcKlvMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcKlvMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcKlvMetadataMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); CmfcKlvMetadata GetCmfcKlvMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return CmfcKlvMetadata::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcManifestMetadataSignaling.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcManifestMetadataSignaling.cpp index da7aca46730..a2822dfa838 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcManifestMetadataSignaling.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcManifestMetadataSignaling.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcManifestMetadataSignalingMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CmfcManifestMetadataSignaling GetCmfcManifestMetadataSignalingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CmfcManifestMetadataSignaling::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Esam.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Esam.cpp index 8d88d821495..cc26d64afd7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Esam.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Esam.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcScte35EsamMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); CmfcScte35Esam GetCmfcScte35EsamForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return CmfcScte35Esam::INSERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Source.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Source.cpp index 1bf4e90485d..c536b1dc4da 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Source.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcScte35Source.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcScte35SourceMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); CmfcScte35Source GetCmfcScte35SourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return CmfcScte35Source::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadata.cpp index d20fc26168b..b7f4a36309a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcTimedMetadataMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); CmfcTimedMetadata GetCmfcTimedMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return CmfcTimedMetadata::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadataBoxVersion.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadataBoxVersion.cpp index 23d5851597b..67faaa7aa67 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadataBoxVersion.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CmfcTimedMetadataBoxVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmfcTimedMetadataBoxVersionMapper { - static const int VERSION_0_HASH = HashingUtils::HashString("VERSION_0"); - static const int VERSION_1_HASH = HashingUtils::HashString("VERSION_1"); + static constexpr uint32_t VERSION_0_HASH = ConstExprHashingUtils::HashString("VERSION_0"); + static constexpr uint32_t VERSION_1_HASH = ConstExprHashingUtils::HashString("VERSION_1"); CmfcTimedMetadataBoxVersion GetCmfcTimedMetadataBoxVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERSION_0_HASH) { return CmfcTimedMetadataBoxVersion::VERSION_0; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorMetadata.cpp index 43c0bdc1dea..59db3aeba16 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ColorMetadataMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); ColorMetadata GetColorMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return ColorMetadata::IGNORE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpace.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpace.cpp index 029be54e618..c4998c24caa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpace.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpace.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ColorSpaceMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int REC_601_HASH = HashingUtils::HashString("REC_601"); - static const int REC_709_HASH = HashingUtils::HashString("REC_709"); - static const int HDR10_HASH = HashingUtils::HashString("HDR10"); - static const int HLG_2020_HASH = HashingUtils::HashString("HLG_2020"); - static const int P3DCI_HASH = HashingUtils::HashString("P3DCI"); - static const int P3D65_SDR_HASH = HashingUtils::HashString("P3D65_SDR"); - static const int P3D65_HDR_HASH = HashingUtils::HashString("P3D65_HDR"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t REC_601_HASH = ConstExprHashingUtils::HashString("REC_601"); + static constexpr uint32_t REC_709_HASH = ConstExprHashingUtils::HashString("REC_709"); + static constexpr uint32_t HDR10_HASH = ConstExprHashingUtils::HashString("HDR10"); + static constexpr uint32_t HLG_2020_HASH = ConstExprHashingUtils::HashString("HLG_2020"); + static constexpr uint32_t P3DCI_HASH = ConstExprHashingUtils::HashString("P3DCI"); + static constexpr uint32_t P3D65_SDR_HASH = ConstExprHashingUtils::HashString("P3D65_SDR"); + static constexpr uint32_t P3D65_HDR_HASH = ConstExprHashingUtils::HashString("P3D65_HDR"); ColorSpace GetColorSpaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return ColorSpace::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceConversion.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceConversion.cpp index 04e042dbb8c..b5490e57a7b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceConversion.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceConversion.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ColorSpaceConversionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int FORCE_601_HASH = HashingUtils::HashString("FORCE_601"); - static const int FORCE_709_HASH = HashingUtils::HashString("FORCE_709"); - static const int FORCE_HDR10_HASH = HashingUtils::HashString("FORCE_HDR10"); - static const int FORCE_HLG_2020_HASH = HashingUtils::HashString("FORCE_HLG_2020"); - static const int FORCE_P3DCI_HASH = HashingUtils::HashString("FORCE_P3DCI"); - static const int FORCE_P3D65_SDR_HASH = HashingUtils::HashString("FORCE_P3D65_SDR"); - static const int FORCE_P3D65_HDR_HASH = HashingUtils::HashString("FORCE_P3D65_HDR"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t FORCE_601_HASH = ConstExprHashingUtils::HashString("FORCE_601"); + static constexpr uint32_t FORCE_709_HASH = ConstExprHashingUtils::HashString("FORCE_709"); + static constexpr uint32_t FORCE_HDR10_HASH = ConstExprHashingUtils::HashString("FORCE_HDR10"); + static constexpr uint32_t FORCE_HLG_2020_HASH = ConstExprHashingUtils::HashString("FORCE_HLG_2020"); + static constexpr uint32_t FORCE_P3DCI_HASH = ConstExprHashingUtils::HashString("FORCE_P3DCI"); + static constexpr uint32_t FORCE_P3D65_SDR_HASH = ConstExprHashingUtils::HashString("FORCE_P3D65_SDR"); + static constexpr uint32_t FORCE_P3D65_HDR_HASH = ConstExprHashingUtils::HashString("FORCE_P3D65_HDR"); ColorSpaceConversion GetColorSpaceConversionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ColorSpaceConversion::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceUsage.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceUsage.cpp index fea4c843e53..76c1781e4ab 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceUsage.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ColorSpaceUsage.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ColorSpaceUsageMapper { - static const int FORCE_HASH = HashingUtils::HashString("FORCE"); - static const int FALLBACK_HASH = HashingUtils::HashString("FALLBACK"); + static constexpr uint32_t FORCE_HASH = ConstExprHashingUtils::HashString("FORCE"); + static constexpr uint32_t FALLBACK_HASH = ConstExprHashingUtils::HashString("FALLBACK"); ColorSpaceUsage GetColorSpaceUsageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORCE_HASH) { return ColorSpaceUsage::FORCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Commitment.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Commitment.cpp index 91476c58dfa..fc49a49a072 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Commitment.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Commitment.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CommitmentMapper { - static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); + static constexpr uint32_t ONE_YEAR_HASH = ConstExprHashingUtils::HashString("ONE_YEAR"); Commitment GetCommitmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONE_YEAR_HASH) { return Commitment::ONE_YEAR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ContainerType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ContainerType.cpp index 96e9f0cafda..06f5f691015 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ContainerType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ContainerType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ContainerTypeMapper { - static const int F4V_HASH = HashingUtils::HashString("F4V"); - static const int ISMV_HASH = HashingUtils::HashString("ISMV"); - static const int M2TS_HASH = HashingUtils::HashString("M2TS"); - static const int M3U8_HASH = HashingUtils::HashString("M3U8"); - static const int CMFC_HASH = HashingUtils::HashString("CMFC"); - static const int MOV_HASH = HashingUtils::HashString("MOV"); - static const int MP4_HASH = HashingUtils::HashString("MP4"); - static const int MPD_HASH = HashingUtils::HashString("MPD"); - static const int MXF_HASH = HashingUtils::HashString("MXF"); - static const int WEBM_HASH = HashingUtils::HashString("WEBM"); - static const int RAW_HASH = HashingUtils::HashString("RAW"); + static constexpr uint32_t F4V_HASH = ConstExprHashingUtils::HashString("F4V"); + static constexpr uint32_t ISMV_HASH = ConstExprHashingUtils::HashString("ISMV"); + static constexpr uint32_t M2TS_HASH = ConstExprHashingUtils::HashString("M2TS"); + static constexpr uint32_t M3U8_HASH = ConstExprHashingUtils::HashString("M3U8"); + static constexpr uint32_t CMFC_HASH = ConstExprHashingUtils::HashString("CMFC"); + static constexpr uint32_t MOV_HASH = ConstExprHashingUtils::HashString("MOV"); + static constexpr uint32_t MP4_HASH = ConstExprHashingUtils::HashString("MP4"); + static constexpr uint32_t MPD_HASH = ConstExprHashingUtils::HashString("MPD"); + static constexpr uint32_t MXF_HASH = ConstExprHashingUtils::HashString("MXF"); + static constexpr uint32_t WEBM_HASH = ConstExprHashingUtils::HashString("WEBM"); + static constexpr uint32_t RAW_HASH = ConstExprHashingUtils::HashString("RAW"); ContainerType GetContainerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == F4V_HASH) { return ContainerType::F4V; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CopyProtectionAction.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CopyProtectionAction.cpp index 2a0a2a6381f..aaf704b6034 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/CopyProtectionAction.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/CopyProtectionAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CopyProtectionActionMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int STRIP_HASH = HashingUtils::HashString("STRIP"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t STRIP_HASH = ConstExprHashingUtils::HashString("STRIP"); CopyProtectionAction GetCopyProtectionActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return CopyProtectionAction::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoGroupAudioChannelConfigSchemeIdUri.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoGroupAudioChannelConfigSchemeIdUri.cpp index 7e86001484c..8a0b21d3137 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoGroupAudioChannelConfigSchemeIdUri.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoGroupAudioChannelConfigSchemeIdUri.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoGroupAudioChannelConfigSchemeIdUriMapper { - static const int MPEG_CHANNEL_CONFIGURATION_HASH = HashingUtils::HashString("MPEG_CHANNEL_CONFIGURATION"); - static const int DOLBY_CHANNEL_CONFIGURATION_HASH = HashingUtils::HashString("DOLBY_CHANNEL_CONFIGURATION"); + static constexpr uint32_t MPEG_CHANNEL_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("MPEG_CHANNEL_CONFIGURATION"); + static constexpr uint32_t DOLBY_CHANNEL_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("DOLBY_CHANNEL_CONFIGURATION"); DashIsoGroupAudioChannelConfigSchemeIdUri GetDashIsoGroupAudioChannelConfigSchemeIdUriForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MPEG_CHANNEL_CONFIGURATION_HASH) { return DashIsoGroupAudioChannelConfigSchemeIdUri::MPEG_CHANNEL_CONFIGURATION; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoHbbtvCompliance.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoHbbtvCompliance.cpp index 73822ecc76e..5c7807cb50a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoHbbtvCompliance.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoHbbtvCompliance.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoHbbtvComplianceMapper { - static const int HBBTV_1_5_HASH = HashingUtils::HashString("HBBTV_1_5"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t HBBTV_1_5_HASH = ConstExprHashingUtils::HashString("HBBTV_1_5"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); DashIsoHbbtvCompliance GetDashIsoHbbtvComplianceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HBBTV_1_5_HASH) { return DashIsoHbbtvCompliance::HBBTV_1_5; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoImageBasedTrickPlay.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoImageBasedTrickPlay.cpp index b92483e2c4a..7180432ade2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoImageBasedTrickPlay.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoImageBasedTrickPlay.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DashIsoImageBasedTrickPlayMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int THUMBNAIL_HASH = HashingUtils::HashString("THUMBNAIL"); - static const int THUMBNAIL_AND_FULLFRAME_HASH = HashingUtils::HashString("THUMBNAIL_AND_FULLFRAME"); - static const int ADVANCED_HASH = HashingUtils::HashString("ADVANCED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t THUMBNAIL_HASH = ConstExprHashingUtils::HashString("THUMBNAIL"); + static constexpr uint32_t THUMBNAIL_AND_FULLFRAME_HASH = ConstExprHashingUtils::HashString("THUMBNAIL_AND_FULLFRAME"); + static constexpr uint32_t ADVANCED_HASH = ConstExprHashingUtils::HashString("ADVANCED"); DashIsoImageBasedTrickPlay GetDashIsoImageBasedTrickPlayForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DashIsoImageBasedTrickPlay::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoIntervalCadence.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoIntervalCadence.cpp index 290acdf39ac..7ada797e9b1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoIntervalCadence.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoIntervalCadence.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoIntervalCadenceMapper { - static const int FOLLOW_IFRAME_HASH = HashingUtils::HashString("FOLLOW_IFRAME"); - static const int FOLLOW_CUSTOM_HASH = HashingUtils::HashString("FOLLOW_CUSTOM"); + static constexpr uint32_t FOLLOW_IFRAME_HASH = ConstExprHashingUtils::HashString("FOLLOW_IFRAME"); + static constexpr uint32_t FOLLOW_CUSTOM_HASH = ConstExprHashingUtils::HashString("FOLLOW_CUSTOM"); DashIsoIntervalCadence GetDashIsoIntervalCadenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_IFRAME_HASH) { return DashIsoIntervalCadence::FOLLOW_IFRAME; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdManifestBandwidthType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdManifestBandwidthType.cpp index e18483247a4..5ce75fb57b3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdManifestBandwidthType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdManifestBandwidthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoMpdManifestBandwidthTypeMapper { - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); DashIsoMpdManifestBandwidthType GetDashIsoMpdManifestBandwidthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVERAGE_HASH) { return DashIsoMpdManifestBandwidthType::AVERAGE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdProfile.cpp index 9e5b2f767d3..d3a2bd5474b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoMpdProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoMpdProfileMapper { - static const int MAIN_PROFILE_HASH = HashingUtils::HashString("MAIN_PROFILE"); - static const int ON_DEMAND_PROFILE_HASH = HashingUtils::HashString("ON_DEMAND_PROFILE"); + static constexpr uint32_t MAIN_PROFILE_HASH = ConstExprHashingUtils::HashString("MAIN_PROFILE"); + static constexpr uint32_t ON_DEMAND_PROFILE_HASH = ConstExprHashingUtils::HashString("ON_DEMAND_PROFILE"); DashIsoMpdProfile GetDashIsoMpdProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAIN_PROFILE_HASH) { return DashIsoMpdProfile::MAIN_PROFILE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPlaybackDeviceCompatibility.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPlaybackDeviceCompatibility.cpp index eb30c29d1ec..83e02f03667 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPlaybackDeviceCompatibility.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPlaybackDeviceCompatibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoPlaybackDeviceCompatibilityMapper { - static const int CENC_V1_HASH = HashingUtils::HashString("CENC_V1"); - static const int UNENCRYPTED_SEI_HASH = HashingUtils::HashString("UNENCRYPTED_SEI"); + static constexpr uint32_t CENC_V1_HASH = ConstExprHashingUtils::HashString("CENC_V1"); + static constexpr uint32_t UNENCRYPTED_SEI_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED_SEI"); DashIsoPlaybackDeviceCompatibility GetDashIsoPlaybackDeviceCompatibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENC_V1_HASH) { return DashIsoPlaybackDeviceCompatibility::CENC_V1; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPtsOffsetHandlingForBFrames.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPtsOffsetHandlingForBFrames.cpp index ad0343954ce..d9ba78613ee 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPtsOffsetHandlingForBFrames.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoPtsOffsetHandlingForBFrames.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoPtsOffsetHandlingForBFramesMapper { - static const int ZERO_BASED_HASH = HashingUtils::HashString("ZERO_BASED"); - static const int MATCH_INITIAL_PTS_HASH = HashingUtils::HashString("MATCH_INITIAL_PTS"); + static constexpr uint32_t ZERO_BASED_HASH = ConstExprHashingUtils::HashString("ZERO_BASED"); + static constexpr uint32_t MATCH_INITIAL_PTS_HASH = ConstExprHashingUtils::HashString("MATCH_INITIAL_PTS"); DashIsoPtsOffsetHandlingForBFrames GetDashIsoPtsOffsetHandlingForBFramesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZERO_BASED_HASH) { return DashIsoPtsOffsetHandlingForBFrames::ZERO_BASED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentControl.cpp index 8e6280304c4..462162aed16 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoSegmentControlMapper { - static const int SINGLE_FILE_HASH = HashingUtils::HashString("SINGLE_FILE"); - static const int SEGMENTED_FILES_HASH = HashingUtils::HashString("SEGMENTED_FILES"); + static constexpr uint32_t SINGLE_FILE_HASH = ConstExprHashingUtils::HashString("SINGLE_FILE"); + static constexpr uint32_t SEGMENTED_FILES_HASH = ConstExprHashingUtils::HashString("SEGMENTED_FILES"); DashIsoSegmentControl GetDashIsoSegmentControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_FILE_HASH) { return DashIsoSegmentControl::SINGLE_FILE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentLengthControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentLengthControl.cpp index 094b1b603ab..52ef45e3b36 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentLengthControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoSegmentLengthControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoSegmentLengthControlMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); - static const int GOP_MULTIPLE_HASH = HashingUtils::HashString("GOP_MULTIPLE"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); + static constexpr uint32_t GOP_MULTIPLE_HASH = ConstExprHashingUtils::HashString("GOP_MULTIPLE"); DashIsoSegmentLengthControl GetDashIsoSegmentLengthControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return DashIsoSegmentLengthControl::EXACT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoVideoCompositionOffsets.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoVideoCompositionOffsets.cpp index bb9971a2223..3028a969ba9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoVideoCompositionOffsets.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoVideoCompositionOffsets.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoVideoCompositionOffsetsMapper { - static const int SIGNED_HASH = HashingUtils::HashString("SIGNED"); - static const int UNSIGNED_HASH = HashingUtils::HashString("UNSIGNED"); + static constexpr uint32_t SIGNED_HASH = ConstExprHashingUtils::HashString("SIGNED"); + static constexpr uint32_t UNSIGNED_HASH = ConstExprHashingUtils::HashString("UNSIGNED"); DashIsoVideoCompositionOffsets GetDashIsoVideoCompositionOffsetsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIGNED_HASH) { return DashIsoVideoCompositionOffsets::SIGNED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoWriteSegmentTimelineInRepresentation.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoWriteSegmentTimelineInRepresentation.cpp index c66b920937d..4cd9defdcb6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoWriteSegmentTimelineInRepresentation.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashIsoWriteSegmentTimelineInRepresentation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashIsoWriteSegmentTimelineInRepresentationMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DashIsoWriteSegmentTimelineInRepresentation GetDashIsoWriteSegmentTimelineInRepresentationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DashIsoWriteSegmentTimelineInRepresentation::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashManifestStyle.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashManifestStyle.cpp index e8ef124bd62..b7fa6a19072 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashManifestStyle.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DashManifestStyle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DashManifestStyleMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int COMPACT_HASH = HashingUtils::HashString("COMPACT"); - static const int DISTINCT_HASH = HashingUtils::HashString("DISTINCT"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t COMPACT_HASH = ConstExprHashingUtils::HashString("COMPACT"); + static constexpr uint32_t DISTINCT_HASH = ConstExprHashingUtils::HashString("DISTINCT"); DashManifestStyle GetDashManifestStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return DashManifestStyle::BASIC; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DecryptionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DecryptionMode.cpp index 162490fdc6b..1728a00fdb2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DecryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DecryptionMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DecryptionModeMapper { - static const int AES_CTR_HASH = HashingUtils::HashString("AES_CTR"); - static const int AES_CBC_HASH = HashingUtils::HashString("AES_CBC"); - static const int AES_GCM_HASH = HashingUtils::HashString("AES_GCM"); + static constexpr uint32_t AES_CTR_HASH = ConstExprHashingUtils::HashString("AES_CTR"); + static constexpr uint32_t AES_CBC_HASH = ConstExprHashingUtils::HashString("AES_CBC"); + static constexpr uint32_t AES_GCM_HASH = ConstExprHashingUtils::HashString("AES_GCM"); DecryptionMode GetDecryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES_CTR_HASH) { return DecryptionMode::AES_CTR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlaceAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlaceAlgorithm.cpp index e27662cc48a..718015847ef 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlaceAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlaceAlgorithm.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeinterlaceAlgorithmMapper { - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int INTERPOLATE_TICKER_HASH = HashingUtils::HashString("INTERPOLATE_TICKER"); - static const int BLEND_HASH = HashingUtils::HashString("BLEND"); - static const int BLEND_TICKER_HASH = HashingUtils::HashString("BLEND_TICKER"); - static const int LINEAR_INTERPOLATION_HASH = HashingUtils::HashString("LINEAR_INTERPOLATION"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t INTERPOLATE_TICKER_HASH = ConstExprHashingUtils::HashString("INTERPOLATE_TICKER"); + static constexpr uint32_t BLEND_HASH = ConstExprHashingUtils::HashString("BLEND"); + static constexpr uint32_t BLEND_TICKER_HASH = ConstExprHashingUtils::HashString("BLEND_TICKER"); + static constexpr uint32_t LINEAR_INTERPOLATION_HASH = ConstExprHashingUtils::HashString("LINEAR_INTERPOLATION"); DeinterlaceAlgorithm GetDeinterlaceAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERPOLATE_HASH) { return DeinterlaceAlgorithm::INTERPOLATE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerControl.cpp index 9e553296ff3..333d56953b8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeinterlacerControlMapper { - static const int FORCE_ALL_FRAMES_HASH = HashingUtils::HashString("FORCE_ALL_FRAMES"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t FORCE_ALL_FRAMES_HASH = ConstExprHashingUtils::HashString("FORCE_ALL_FRAMES"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); DeinterlacerControl GetDeinterlacerControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORCE_ALL_FRAMES_HASH) { return DeinterlacerControl::FORCE_ALL_FRAMES; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerMode.cpp index f934116a1fd..dfe35e2c04e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DeinterlacerMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeinterlacerModeMapper { - static const int DEINTERLACE_HASH = HashingUtils::HashString("DEINTERLACE"); - static const int INVERSE_TELECINE_HASH = HashingUtils::HashString("INVERSE_TELECINE"); - static const int ADAPTIVE_HASH = HashingUtils::HashString("ADAPTIVE"); + static constexpr uint32_t DEINTERLACE_HASH = ConstExprHashingUtils::HashString("DEINTERLACE"); + static constexpr uint32_t INVERSE_TELECINE_HASH = ConstExprHashingUtils::HashString("INVERSE_TELECINE"); + static constexpr uint32_t ADAPTIVE_HASH = ConstExprHashingUtils::HashString("ADAPTIVE"); DeinterlacerMode GetDeinterlacerModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEINTERLACE_HASH) { return DeinterlacerMode::DEINTERLACE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DescribeEndpointsMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DescribeEndpointsMode.cpp index f420edd52e7..99b0045d71c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DescribeEndpointsMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DescribeEndpointsMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DescribeEndpointsModeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int GET_ONLY_HASH = HashingUtils::HashString("GET_ONLY"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t GET_ONLY_HASH = ConstExprHashingUtils::HashString("GET_ONLY"); DescribeEndpointsMode GetDescribeEndpointsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return DescribeEndpointsMode::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionLevel6Mode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionLevel6Mode.cpp index 98afa87ebef..44e9624f1af 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionLevel6Mode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionLevel6Mode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DolbyVisionLevel6ModeMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int RECALCULATE_HASH = HashingUtils::HashString("RECALCULATE"); - static const int SPECIFY_HASH = HashingUtils::HashString("SPECIFY"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t RECALCULATE_HASH = ConstExprHashingUtils::HashString("RECALCULATE"); + static constexpr uint32_t SPECIFY_HASH = ConstExprHashingUtils::HashString("SPECIFY"); DolbyVisionLevel6Mode GetDolbyVisionLevel6ModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return DolbyVisionLevel6Mode::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionMapping.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionMapping.cpp index d9c0252c4fb..0d1bb101be5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionMapping.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionMapping.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DolbyVisionMappingMapper { - static const int HDR10_NOMAP_HASH = HashingUtils::HashString("HDR10_NOMAP"); - static const int HDR10_1000_HASH = HashingUtils::HashString("HDR10_1000"); + static constexpr uint32_t HDR10_NOMAP_HASH = ConstExprHashingUtils::HashString("HDR10_NOMAP"); + static constexpr uint32_t HDR10_1000_HASH = ConstExprHashingUtils::HashString("HDR10_1000"); DolbyVisionMapping GetDolbyVisionMappingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HDR10_NOMAP_HASH) { return DolbyVisionMapping::HDR10_NOMAP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionProfile.cpp index b99fb75ed5e..46d037f780d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DolbyVisionProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DolbyVisionProfileMapper { - static const int PROFILE_5_HASH = HashingUtils::HashString("PROFILE_5"); - static const int PROFILE_8_1_HASH = HashingUtils::HashString("PROFILE_8_1"); + static constexpr uint32_t PROFILE_5_HASH = ConstExprHashingUtils::HashString("PROFILE_5"); + static constexpr uint32_t PROFILE_8_1_HASH = ConstExprHashingUtils::HashString("PROFILE_8_1"); DolbyVisionProfile GetDolbyVisionProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROFILE_5_HASH) { return DolbyVisionProfile::PROFILE_5; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DropFrameTimecode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DropFrameTimecode.cpp index 93f62d349de..d9d125a80c4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DropFrameTimecode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DropFrameTimecode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DropFrameTimecodeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); DropFrameTimecode GetDropFrameTimecodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return DropFrameTimecode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubSubtitleFallbackFont.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubSubtitleFallbackFont.cpp index da6a78a6d2f..a6a72aa3aee 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubSubtitleFallbackFont.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubSubtitleFallbackFont.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DvbSubSubtitleFallbackFontMapper { - static const int BEST_MATCH_HASH = HashingUtils::HashString("BEST_MATCH"); - static const int MONOSPACED_SANSSERIF_HASH = HashingUtils::HashString("MONOSPACED_SANSSERIF"); - static const int MONOSPACED_SERIF_HASH = HashingUtils::HashString("MONOSPACED_SERIF"); - static const int PROPORTIONAL_SANSSERIF_HASH = HashingUtils::HashString("PROPORTIONAL_SANSSERIF"); - static const int PROPORTIONAL_SERIF_HASH = HashingUtils::HashString("PROPORTIONAL_SERIF"); + static constexpr uint32_t BEST_MATCH_HASH = ConstExprHashingUtils::HashString("BEST_MATCH"); + static constexpr uint32_t MONOSPACED_SANSSERIF_HASH = ConstExprHashingUtils::HashString("MONOSPACED_SANSSERIF"); + static constexpr uint32_t MONOSPACED_SERIF_HASH = ConstExprHashingUtils::HashString("MONOSPACED_SERIF"); + static constexpr uint32_t PROPORTIONAL_SANSSERIF_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL_SANSSERIF"); + static constexpr uint32_t PROPORTIONAL_SERIF_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL_SERIF"); DvbSubSubtitleFallbackFont GetDvbSubSubtitleFallbackFontForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEST_MATCH_HASH) { return DvbSubSubtitleFallbackFont::BEST_MATCH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleAlignment.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleAlignment.cpp index fd0b6b9c802..e642ebd4a8a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleAlignment.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleAlignment.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DvbSubtitleAlignmentMapper { - static const int CENTERED_HASH = HashingUtils::HashString("CENTERED"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t CENTERED_HASH = ConstExprHashingUtils::HashString("CENTERED"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); DvbSubtitleAlignment GetDvbSubtitleAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENTERED_HASH) { return DvbSubtitleAlignment::CENTERED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleApplyFontColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleApplyFontColor.cpp index 9da2d798f73..614254a7251 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleApplyFontColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleApplyFontColor.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DvbSubtitleApplyFontColorMapper { - static const int WHITE_TEXT_ONLY_HASH = HashingUtils::HashString("WHITE_TEXT_ONLY"); - static const int ALL_TEXT_HASH = HashingUtils::HashString("ALL_TEXT"); + static constexpr uint32_t WHITE_TEXT_ONLY_HASH = ConstExprHashingUtils::HashString("WHITE_TEXT_ONLY"); + static constexpr uint32_t ALL_TEXT_HASH = ConstExprHashingUtils::HashString("ALL_TEXT"); DvbSubtitleApplyFontColor GetDvbSubtitleApplyFontColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WHITE_TEXT_ONLY_HASH) { return DvbSubtitleApplyFontColor::WHITE_TEXT_ONLY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleBackgroundColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleBackgroundColor.cpp index 1aae38d2ff6..8e33d2ddba9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleBackgroundColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleBackgroundColor.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DvbSubtitleBackgroundColorMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); DvbSubtitleBackgroundColor GetDvbSubtitleBackgroundColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DvbSubtitleBackgroundColor::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleFontColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleFontColor.cpp index a86c65ba8b6..559a1f23034 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleFontColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleFontColor.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DvbSubtitleFontColorMapper { - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int HEX_HASH = HashingUtils::HashString("HEX"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t HEX_HASH = ConstExprHashingUtils::HashString("HEX"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); DvbSubtitleFontColor GetDvbSubtitleFontColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WHITE_HASH) { return DvbSubtitleFontColor::WHITE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleOutlineColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleOutlineColor.cpp index 2d6d56a2344..22364b76d05 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleOutlineColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleOutlineColor.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DvbSubtitleOutlineColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); DvbSubtitleOutlineColor GetDvbSubtitleOutlineColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return DvbSubtitleOutlineColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleShadowColor.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleShadowColor.cpp index 578e9f3ed50..519a78e6f03 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleShadowColor.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleShadowColor.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DvbSubtitleShadowColorMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); DvbSubtitleShadowColor GetDvbSubtitleShadowColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DvbSubtitleShadowColor::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleStylePassthrough.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleStylePassthrough.cpp index c7b80677cef..053b69b73c5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleStylePassthrough.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleStylePassthrough.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DvbSubtitleStylePassthroughMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DvbSubtitleStylePassthrough GetDvbSubtitleStylePassthroughForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DvbSubtitleStylePassthrough::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleTeletextSpacing.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleTeletextSpacing.cpp index ee8336531b2..a53b92b7018 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleTeletextSpacing.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitleTeletextSpacing.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DvbSubtitleTeletextSpacingMapper { - static const int FIXED_GRID_HASH = HashingUtils::HashString("FIXED_GRID"); - static const int PROPORTIONAL_HASH = HashingUtils::HashString("PROPORTIONAL"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t FIXED_GRID_HASH = ConstExprHashingUtils::HashString("FIXED_GRID"); + static constexpr uint32_t PROPORTIONAL_HASH = ConstExprHashingUtils::HashString("PROPORTIONAL"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); DvbSubtitleTeletextSpacing GetDvbSubtitleTeletextSpacingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_GRID_HASH) { return DvbSubtitleTeletextSpacing::FIXED_GRID; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitlingType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitlingType.cpp index 7d801cecea3..3e07683aba1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitlingType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbSubtitlingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DvbSubtitlingTypeMapper { - static const int HEARING_IMPAIRED_HASH = HashingUtils::HashString("HEARING_IMPAIRED"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t HEARING_IMPAIRED_HASH = ConstExprHashingUtils::HashString("HEARING_IMPAIRED"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); DvbSubtitlingType GetDvbSubtitlingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEARING_IMPAIRED_HASH) { return DvbSubtitlingType::HEARING_IMPAIRED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbddsHandling.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbddsHandling.cpp index 357c0e45f1c..d7fb9bd58c6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbddsHandling.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/DvbddsHandling.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DvbddsHandlingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); - static const int NO_DISPLAY_WINDOW_HASH = HashingUtils::HashString("NO_DISPLAY_WINDOW"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t NO_DISPLAY_WINDOW_HASH = ConstExprHashingUtils::HashString("NO_DISPLAY_WINDOW"); DvbddsHandling GetDvbddsHandlingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DvbddsHandling::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosBitstreamMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosBitstreamMode.cpp index bf3ddc57aea..3f618f791aa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosBitstreamMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosBitstreamMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace Eac3AtmosBitstreamModeMapper { - static const int COMPLETE_MAIN_HASH = HashingUtils::HashString("COMPLETE_MAIN"); + static constexpr uint32_t COMPLETE_MAIN_HASH = ConstExprHashingUtils::HashString("COMPLETE_MAIN"); Eac3AtmosBitstreamMode GetEac3AtmosBitstreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_MAIN_HASH) { return Eac3AtmosBitstreamMode::COMPLETE_MAIN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosCodingMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosCodingMode.cpp index bac5751c8c2..0ec356d9744 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosCodingMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosCodingMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Eac3AtmosCodingModeMapper { - static const int CODING_MODE_AUTO_HASH = HashingUtils::HashString("CODING_MODE_AUTO"); - static const int CODING_MODE_5_1_4_HASH = HashingUtils::HashString("CODING_MODE_5_1_4"); - static const int CODING_MODE_7_1_4_HASH = HashingUtils::HashString("CODING_MODE_7_1_4"); - static const int CODING_MODE_9_1_6_HASH = HashingUtils::HashString("CODING_MODE_9_1_6"); + static constexpr uint32_t CODING_MODE_AUTO_HASH = ConstExprHashingUtils::HashString("CODING_MODE_AUTO"); + static constexpr uint32_t CODING_MODE_5_1_4_HASH = ConstExprHashingUtils::HashString("CODING_MODE_5_1_4"); + static constexpr uint32_t CODING_MODE_7_1_4_HASH = ConstExprHashingUtils::HashString("CODING_MODE_7_1_4"); + static constexpr uint32_t CODING_MODE_9_1_6_HASH = ConstExprHashingUtils::HashString("CODING_MODE_9_1_6"); Eac3AtmosCodingMode GetEac3AtmosCodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_AUTO_HASH) { return Eac3AtmosCodingMode::CODING_MODE_AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDialogueIntelligence.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDialogueIntelligence.cpp index a460bdb964c..2eb56b901f3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDialogueIntelligence.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDialogueIntelligence.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3AtmosDialogueIntelligenceMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Eac3AtmosDialogueIntelligence GetEac3AtmosDialogueIntelligenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Eac3AtmosDialogueIntelligence::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDownmixControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDownmixControl.cpp index 20c5a404b58..cd56bf9711b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDownmixControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDownmixControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3AtmosDownmixControlMapper { - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); Eac3AtmosDownmixControl GetEac3AtmosDownmixControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPECIFIED_HASH) { return Eac3AtmosDownmixControl::SPECIFIED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionLine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionLine.cpp index 41a0017d408..3982b94eae5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionLine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionLine.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3AtmosDynamicRangeCompressionLineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3AtmosDynamicRangeCompressionLine GetEac3AtmosDynamicRangeCompressionLineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Eac3AtmosDynamicRangeCompressionLine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionRf.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionRf.cpp index fec2feaebc2..97e29e46010 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionRf.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeCompressionRf.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3AtmosDynamicRangeCompressionRfMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3AtmosDynamicRangeCompressionRf GetEac3AtmosDynamicRangeCompressionRfForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Eac3AtmosDynamicRangeCompressionRf::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeControl.cpp index 2839d5ec852..210b451bc3b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosDynamicRangeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3AtmosDynamicRangeControlMapper { - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); Eac3AtmosDynamicRangeControl GetEac3AtmosDynamicRangeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPECIFIED_HASH) { return Eac3AtmosDynamicRangeControl::SPECIFIED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosMeteringMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosMeteringMode.cpp index 793e6bde396..9145e9800f6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosMeteringMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosMeteringMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Eac3AtmosMeteringModeMapper { - static const int LEQ_A_HASH = HashingUtils::HashString("LEQ_A"); - static const int ITU_BS_1770_1_HASH = HashingUtils::HashString("ITU_BS_1770_1"); - static const int ITU_BS_1770_2_HASH = HashingUtils::HashString("ITU_BS_1770_2"); - static const int ITU_BS_1770_3_HASH = HashingUtils::HashString("ITU_BS_1770_3"); - static const int ITU_BS_1770_4_HASH = HashingUtils::HashString("ITU_BS_1770_4"); + static constexpr uint32_t LEQ_A_HASH = ConstExprHashingUtils::HashString("LEQ_A"); + static constexpr uint32_t ITU_BS_1770_1_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_1"); + static constexpr uint32_t ITU_BS_1770_2_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_2"); + static constexpr uint32_t ITU_BS_1770_3_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_3"); + static constexpr uint32_t ITU_BS_1770_4_HASH = ConstExprHashingUtils::HashString("ITU_BS_1770_4"); Eac3AtmosMeteringMode GetEac3AtmosMeteringModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEQ_A_HASH) { return Eac3AtmosMeteringMode::LEQ_A; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosStereoDownmix.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosStereoDownmix.cpp index ee9bed28e6d..4fae3755af4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosStereoDownmix.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosStereoDownmix.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Eac3AtmosStereoDownmixMapper { - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); - static const int STEREO_HASH = HashingUtils::HashString("STEREO"); - static const int SURROUND_HASH = HashingUtils::HashString("SURROUND"); - static const int DPL2_HASH = HashingUtils::HashString("DPL2"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t STEREO_HASH = ConstExprHashingUtils::HashString("STEREO"); + static constexpr uint32_t SURROUND_HASH = ConstExprHashingUtils::HashString("SURROUND"); + static constexpr uint32_t DPL2_HASH = ConstExprHashingUtils::HashString("DPL2"); Eac3AtmosStereoDownmix GetEac3AtmosStereoDownmixForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_INDICATED_HASH) { return Eac3AtmosStereoDownmix::NOT_INDICATED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosSurroundExMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosSurroundExMode.cpp index 63de89c0f8e..8533aa19cc8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosSurroundExMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AtmosSurroundExMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3AtmosSurroundExModeMapper { - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Eac3AtmosSurroundExMode GetEac3AtmosSurroundExModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_INDICATED_HASH) { return Eac3AtmosSurroundExMode::NOT_INDICATED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AttenuationControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AttenuationControl.cpp index 45bf015fe42..425cb80b197 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AttenuationControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3AttenuationControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3AttenuationControlMapper { - static const int ATTENUATE_3_DB_HASH = HashingUtils::HashString("ATTENUATE_3_DB"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ATTENUATE_3_DB_HASH = ConstExprHashingUtils::HashString("ATTENUATE_3_DB"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Eac3AttenuationControl GetEac3AttenuationControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTENUATE_3_DB_HASH) { return Eac3AttenuationControl::ATTENUATE_3_DB; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3BitstreamMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3BitstreamMode.cpp index c8d6674d323..c93d55a4f3d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3BitstreamMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3BitstreamMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Eac3BitstreamModeMapper { - static const int COMPLETE_MAIN_HASH = HashingUtils::HashString("COMPLETE_MAIN"); - static const int COMMENTARY_HASH = HashingUtils::HashString("COMMENTARY"); - static const int EMERGENCY_HASH = HashingUtils::HashString("EMERGENCY"); - static const int HEARING_IMPAIRED_HASH = HashingUtils::HashString("HEARING_IMPAIRED"); - static const int VISUALLY_IMPAIRED_HASH = HashingUtils::HashString("VISUALLY_IMPAIRED"); + static constexpr uint32_t COMPLETE_MAIN_HASH = ConstExprHashingUtils::HashString("COMPLETE_MAIN"); + static constexpr uint32_t COMMENTARY_HASH = ConstExprHashingUtils::HashString("COMMENTARY"); + static constexpr uint32_t EMERGENCY_HASH = ConstExprHashingUtils::HashString("EMERGENCY"); + static constexpr uint32_t HEARING_IMPAIRED_HASH = ConstExprHashingUtils::HashString("HEARING_IMPAIRED"); + static constexpr uint32_t VISUALLY_IMPAIRED_HASH = ConstExprHashingUtils::HashString("VISUALLY_IMPAIRED"); Eac3BitstreamMode GetEac3BitstreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_MAIN_HASH) { return Eac3BitstreamMode::COMPLETE_MAIN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3CodingMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3CodingMode.cpp index 08b608ebea8..f44322565a1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3CodingMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3CodingMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3CodingModeMapper { - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_3_2_HASH = HashingUtils::HashString("CODING_MODE_3_2"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_3_2_HASH = ConstExprHashingUtils::HashString("CODING_MODE_3_2"); Eac3CodingMode GetEac3CodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_1_0_HASH) { return Eac3CodingMode::CODING_MODE_1_0; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DcFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DcFilter.cpp index 06fd27d6ad1..2fefd9d6bdc 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DcFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DcFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3DcFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Eac3DcFilter GetEac3DcFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Eac3DcFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionLine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionLine.cpp index 37335467f36..336f03c10ec 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionLine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionLine.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3DynamicRangeCompressionLineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3DynamicRangeCompressionLine GetEac3DynamicRangeCompressionLineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Eac3DynamicRangeCompressionLine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionRf.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionRf.cpp index b7afdff4e5b..2a83db26305 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionRf.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3DynamicRangeCompressionRf.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3DynamicRangeCompressionRfMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3DynamicRangeCompressionRf GetEac3DynamicRangeCompressionRfForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Eac3DynamicRangeCompressionRf::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeControl.cpp index 581368cb0e2..5590a67006a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3LfeControlMapper { - static const int LFE_HASH = HashingUtils::HashString("LFE"); - static const int NO_LFE_HASH = HashingUtils::HashString("NO_LFE"); + static constexpr uint32_t LFE_HASH = ConstExprHashingUtils::HashString("LFE"); + static constexpr uint32_t NO_LFE_HASH = ConstExprHashingUtils::HashString("NO_LFE"); Eac3LfeControl GetEac3LfeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LFE_HASH) { return Eac3LfeControl::LFE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeFilter.cpp index ed13e7aef78..ab35a5f2a72 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3LfeFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3LfeFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Eac3LfeFilter GetEac3LfeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Eac3LfeFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3MetadataControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3MetadataControl.cpp index d35a528c483..e1c0c7459d6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3MetadataControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3MetadataControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3MetadataControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); Eac3MetadataControl GetEac3MetadataControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return Eac3MetadataControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PassthroughControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PassthroughControl.cpp index 922e833b652..c6a0d8e19fe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PassthroughControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PassthroughControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3PassthroughControlMapper { - static const int WHEN_POSSIBLE_HASH = HashingUtils::HashString("WHEN_POSSIBLE"); - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t WHEN_POSSIBLE_HASH = ConstExprHashingUtils::HashString("WHEN_POSSIBLE"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); Eac3PassthroughControl GetEac3PassthroughControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WHEN_POSSIBLE_HASH) { return Eac3PassthroughControl::WHEN_POSSIBLE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PhaseControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PhaseControl.cpp index 3d0ae9fb70e..e1b61700ea2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PhaseControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3PhaseControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3PhaseControlMapper { - static const int SHIFT_90_DEGREES_HASH = HashingUtils::HashString("SHIFT_90_DEGREES"); - static const int NO_SHIFT_HASH = HashingUtils::HashString("NO_SHIFT"); + static constexpr uint32_t SHIFT_90_DEGREES_HASH = ConstExprHashingUtils::HashString("SHIFT_90_DEGREES"); + static constexpr uint32_t NO_SHIFT_HASH = ConstExprHashingUtils::HashString("NO_SHIFT"); Eac3PhaseControl GetEac3PhaseControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHIFT_90_DEGREES_HASH) { return Eac3PhaseControl::SHIFT_90_DEGREES; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3StereoDownmix.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3StereoDownmix.cpp index 9632b6ce8bd..e65987d2f43 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3StereoDownmix.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3StereoDownmix.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Eac3StereoDownmixMapper { - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); - static const int LO_RO_HASH = HashingUtils::HashString("LO_RO"); - static const int LT_RT_HASH = HashingUtils::HashString("LT_RT"); - static const int DPL2_HASH = HashingUtils::HashString("DPL2"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t LO_RO_HASH = ConstExprHashingUtils::HashString("LO_RO"); + static constexpr uint32_t LT_RT_HASH = ConstExprHashingUtils::HashString("LT_RT"); + static constexpr uint32_t DPL2_HASH = ConstExprHashingUtils::HashString("DPL2"); Eac3StereoDownmix GetEac3StereoDownmixForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_INDICATED_HASH) { return Eac3StereoDownmix::NOT_INDICATED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundExMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundExMode.cpp index 582693c6ab8..a213f09a066 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundExMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundExMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3SurroundExModeMapper { - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Eac3SurroundExMode GetEac3SurroundExModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_INDICATED_HASH) { return Eac3SurroundExMode::NOT_INDICATED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundMode.cpp index b435195f49d..b6c73966c63 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Eac3SurroundMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3SurroundModeMapper { - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Eac3SurroundMode GetEac3SurroundModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_INDICATED_HASH) { return Eac3SurroundMode::NOT_INDICATED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedConvert608To708.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedConvert608To708.cpp index 2d4b86ceb35..6c1a9f65172 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedConvert608To708.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedConvert608To708.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EmbeddedConvert608To708Mapper { - static const int UPCONVERT_HASH = HashingUtils::HashString("UPCONVERT"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPCONVERT_HASH = ConstExprHashingUtils::HashString("UPCONVERT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EmbeddedConvert608To708 GetEmbeddedConvert608To708ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPCONVERT_HASH) { return EmbeddedConvert608To708::UPCONVERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTerminateCaptions.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTerminateCaptions.cpp index 9f801bc6d51..05fd3783225 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTerminateCaptions.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTerminateCaptions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EmbeddedTerminateCaptionsMapper { - static const int END_OF_INPUT_HASH = HashingUtils::HashString("END_OF_INPUT"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t END_OF_INPUT_HASH = ConstExprHashingUtils::HashString("END_OF_INPUT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); EmbeddedTerminateCaptions GetEmbeddedTerminateCaptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == END_OF_INPUT_HASH) { return EmbeddedTerminateCaptions::END_OF_INPUT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTimecodeOverride.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTimecodeOverride.cpp index 80cd763abc5..bf26ed421b4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTimecodeOverride.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/EmbeddedTimecodeOverride.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EmbeddedTimecodeOverrideMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int USE_MDPM_HASH = HashingUtils::HashString("USE_MDPM"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t USE_MDPM_HASH = ConstExprHashingUtils::HashString("USE_MDPM"); EmbeddedTimecodeOverride GetEmbeddedTimecodeOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return EmbeddedTimecodeOverride::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/F4vMoovPlacement.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/F4vMoovPlacement.cpp index 96305cc52bf..923b0f038a1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/F4vMoovPlacement.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/F4vMoovPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace F4vMoovPlacementMapper { - static const int PROGRESSIVE_DOWNLOAD_HASH = HashingUtils::HashString("PROGRESSIVE_DOWNLOAD"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t PROGRESSIVE_DOWNLOAD_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE_DOWNLOAD"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); F4vMoovPlacement GetF4vMoovPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_DOWNLOAD_HASH) { return F4vMoovPlacement::PROGRESSIVE_DOWNLOAD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceConvert608To708.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceConvert608To708.cpp index 9841af0ec66..14f6d471502 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceConvert608To708.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceConvert608To708.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileSourceConvert608To708Mapper { - static const int UPCONVERT_HASH = HashingUtils::HashString("UPCONVERT"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPCONVERT_HASH = ConstExprHashingUtils::HashString("UPCONVERT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); FileSourceConvert608To708 GetFileSourceConvert608To708ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPCONVERT_HASH) { return FileSourceConvert608To708::UPCONVERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceTimeDeltaUnits.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceTimeDeltaUnits.cpp index 9875127beba..b03095733d6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceTimeDeltaUnits.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/FileSourceTimeDeltaUnits.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileSourceTimeDeltaUnitsMapper { - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int MILLISECONDS_HASH = HashingUtils::HashString("MILLISECONDS"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t MILLISECONDS_HASH = ConstExprHashingUtils::HashString("MILLISECONDS"); FileSourceTimeDeltaUnits GetFileSourceTimeDeltaUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECONDS_HASH) { return FileSourceTimeDeltaUnits::SECONDS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/FontScript.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/FontScript.cpp index e20d7e3a8d3..9ae3943b65f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/FontScript.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/FontScript.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FontScriptMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int HANS_HASH = HashingUtils::HashString("HANS"); - static const int HANT_HASH = HashingUtils::HashString("HANT"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t HANS_HASH = ConstExprHashingUtils::HashString("HANS"); + static constexpr uint32_t HANT_HASH = ConstExprHashingUtils::HashString("HANT"); FontScript GetFontScriptForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return FontScript::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264AdaptiveQuantization.cpp index 3a87ade8e9e..52fd4c90dc6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264AdaptiveQuantization.cpp @@ -20,18 +20,18 @@ namespace Aws namespace H264AdaptiveQuantizationMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGHER_HASH = HashingUtils::HashString("HIGHER"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGHER_HASH = ConstExprHashingUtils::HashString("HIGHER"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); H264AdaptiveQuantization GetH264AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return H264AdaptiveQuantization::OFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecLevel.cpp index 131051867f4..536530a9361 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecLevel.cpp @@ -20,28 +20,28 @@ namespace Aws namespace H264CodecLevelMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int LEVEL_1_HASH = HashingUtils::HashString("LEVEL_1"); - static const int LEVEL_1_1_HASH = HashingUtils::HashString("LEVEL_1_1"); - static const int LEVEL_1_2_HASH = HashingUtils::HashString("LEVEL_1_2"); - static const int LEVEL_1_3_HASH = HashingUtils::HashString("LEVEL_1_3"); - static const int LEVEL_2_HASH = HashingUtils::HashString("LEVEL_2"); - static const int LEVEL_2_1_HASH = HashingUtils::HashString("LEVEL_2_1"); - static const int LEVEL_2_2_HASH = HashingUtils::HashString("LEVEL_2_2"); - static const int LEVEL_3_HASH = HashingUtils::HashString("LEVEL_3"); - static const int LEVEL_3_1_HASH = HashingUtils::HashString("LEVEL_3_1"); - static const int LEVEL_3_2_HASH = HashingUtils::HashString("LEVEL_3_2"); - static const int LEVEL_4_HASH = HashingUtils::HashString("LEVEL_4"); - static const int LEVEL_4_1_HASH = HashingUtils::HashString("LEVEL_4_1"); - static const int LEVEL_4_2_HASH = HashingUtils::HashString("LEVEL_4_2"); - static const int LEVEL_5_HASH = HashingUtils::HashString("LEVEL_5"); - static const int LEVEL_5_1_HASH = HashingUtils::HashString("LEVEL_5_1"); - static const int LEVEL_5_2_HASH = HashingUtils::HashString("LEVEL_5_2"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t LEVEL_1_HASH = ConstExprHashingUtils::HashString("LEVEL_1"); + static constexpr uint32_t LEVEL_1_1_HASH = ConstExprHashingUtils::HashString("LEVEL_1_1"); + static constexpr uint32_t LEVEL_1_2_HASH = ConstExprHashingUtils::HashString("LEVEL_1_2"); + static constexpr uint32_t LEVEL_1_3_HASH = ConstExprHashingUtils::HashString("LEVEL_1_3"); + static constexpr uint32_t LEVEL_2_HASH = ConstExprHashingUtils::HashString("LEVEL_2"); + static constexpr uint32_t LEVEL_2_1_HASH = ConstExprHashingUtils::HashString("LEVEL_2_1"); + static constexpr uint32_t LEVEL_2_2_HASH = ConstExprHashingUtils::HashString("LEVEL_2_2"); + static constexpr uint32_t LEVEL_3_HASH = ConstExprHashingUtils::HashString("LEVEL_3"); + static constexpr uint32_t LEVEL_3_1_HASH = ConstExprHashingUtils::HashString("LEVEL_3_1"); + static constexpr uint32_t LEVEL_3_2_HASH = ConstExprHashingUtils::HashString("LEVEL_3_2"); + static constexpr uint32_t LEVEL_4_HASH = ConstExprHashingUtils::HashString("LEVEL_4"); + static constexpr uint32_t LEVEL_4_1_HASH = ConstExprHashingUtils::HashString("LEVEL_4_1"); + static constexpr uint32_t LEVEL_4_2_HASH = ConstExprHashingUtils::HashString("LEVEL_4_2"); + static constexpr uint32_t LEVEL_5_HASH = ConstExprHashingUtils::HashString("LEVEL_5"); + static constexpr uint32_t LEVEL_5_1_HASH = ConstExprHashingUtils::HashString("LEVEL_5_1"); + static constexpr uint32_t LEVEL_5_2_HASH = ConstExprHashingUtils::HashString("LEVEL_5_2"); H264CodecLevel GetH264CodecLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return H264CodecLevel::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecProfile.cpp index 45b7b1fa13c..2bd2d0b25ba 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264CodecProfile.cpp @@ -20,17 +20,17 @@ namespace Aws namespace H264CodecProfileMapper { - static const int BASELINE_HASH = HashingUtils::HashString("BASELINE"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGH_10BIT_HASH = HashingUtils::HashString("HIGH_10BIT"); - static const int HIGH_422_HASH = HashingUtils::HashString("HIGH_422"); - static const int HIGH_422_10BIT_HASH = HashingUtils::HashString("HIGH_422_10BIT"); - static const int MAIN_HASH = HashingUtils::HashString("MAIN"); + static constexpr uint32_t BASELINE_HASH = ConstExprHashingUtils::HashString("BASELINE"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGH_10BIT_HASH = ConstExprHashingUtils::HashString("HIGH_10BIT"); + static constexpr uint32_t HIGH_422_HASH = ConstExprHashingUtils::HashString("HIGH_422"); + static constexpr uint32_t HIGH_422_10BIT_HASH = ConstExprHashingUtils::HashString("HIGH_422_10BIT"); + static constexpr uint32_t MAIN_HASH = ConstExprHashingUtils::HashString("MAIN"); H264CodecProfile GetH264CodecProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASELINE_HASH) { return H264CodecProfile::BASELINE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264DynamicSubGop.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264DynamicSubGop.cpp index ca548ca86ea..06bc30eb565 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264DynamicSubGop.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264DynamicSubGop.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264DynamicSubGopMapper { - static const int ADAPTIVE_HASH = HashingUtils::HashString("ADAPTIVE"); - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static constexpr uint32_t ADAPTIVE_HASH = ConstExprHashingUtils::HashString("ADAPTIVE"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); H264DynamicSubGop GetH264DynamicSubGopForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADAPTIVE_HASH) { return H264DynamicSubGop::ADAPTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EndOfStreamMarkers.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EndOfStreamMarkers.cpp index 2f704e582dc..0b355ba2598 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EndOfStreamMarkers.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EndOfStreamMarkers.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264EndOfStreamMarkersMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int SUPPRESS_HASH = HashingUtils::HashString("SUPPRESS"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t SUPPRESS_HASH = ConstExprHashingUtils::HashString("SUPPRESS"); H264EndOfStreamMarkers GetH264EndOfStreamMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return H264EndOfStreamMarkers::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EntropyEncoding.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EntropyEncoding.cpp index 7de25ea8540..8f8a1c53c72 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EntropyEncoding.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264EntropyEncoding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264EntropyEncodingMapper { - static const int CABAC_HASH = HashingUtils::HashString("CABAC"); - static const int CAVLC_HASH = HashingUtils::HashString("CAVLC"); + static constexpr uint32_t CABAC_HASH = ConstExprHashingUtils::HashString("CABAC"); + static constexpr uint32_t CAVLC_HASH = ConstExprHashingUtils::HashString("CAVLC"); H264EntropyEncoding GetH264EntropyEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CABAC_HASH) { return H264EntropyEncoding::CABAC; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FieldEncoding.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FieldEncoding.cpp index 6f4d702428b..fa3ee2b5ff0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FieldEncoding.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FieldEncoding.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264FieldEncodingMapper { - static const int PAFF_HASH = HashingUtils::HashString("PAFF"); - static const int FORCE_FIELD_HASH = HashingUtils::HashString("FORCE_FIELD"); - static const int MBAFF_HASH = HashingUtils::HashString("MBAFF"); + static constexpr uint32_t PAFF_HASH = ConstExprHashingUtils::HashString("PAFF"); + static constexpr uint32_t FORCE_FIELD_HASH = ConstExprHashingUtils::HashString("FORCE_FIELD"); + static constexpr uint32_t MBAFF_HASH = ConstExprHashingUtils::HashString("MBAFF"); H264FieldEncoding GetH264FieldEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAFF_HASH) { return H264FieldEncoding::PAFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FlickerAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FlickerAdaptiveQuantization.cpp index 843497222c6..8666fcf5b65 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FlickerAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FlickerAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264FlickerAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264FlickerAdaptiveQuantization GetH264FlickerAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264FlickerAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateControl.cpp index d455724fa28..d9396057790 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); H264FramerateControl GetH264FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return H264FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateConversionAlgorithm.cpp index 3f0e6d004d5..928bc1d4287 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); H264FramerateConversionAlgorithm GetH264FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return H264FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopBReference.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopBReference.cpp index 3bf19a636cc..a9ef67c99c7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopBReference.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopBReference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264GopBReferenceMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264GopBReference GetH264GopBReferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264GopBReference::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopSizeUnits.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopSizeUnits.cpp index febd6b5dc94..c1219a30c33 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopSizeUnits.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264GopSizeUnits.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264GopSizeUnitsMapper { - static const int FRAMES_HASH = HashingUtils::HashString("FRAMES"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t FRAMES_HASH = ConstExprHashingUtils::HashString("FRAMES"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); H264GopSizeUnits GetH264GopSizeUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMES_HASH) { return H264GopSizeUnits::FRAMES; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264InterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264InterlaceMode.cpp index 31c58c78ad9..7737d7e7e1d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264InterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264InterlaceMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace H264InterlaceModeMapper { - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); - static const int TOP_FIELD_HASH = HashingUtils::HashString("TOP_FIELD"); - static const int BOTTOM_FIELD_HASH = HashingUtils::HashString("BOTTOM_FIELD"); - static const int FOLLOW_TOP_FIELD_HASH = HashingUtils::HashString("FOLLOW_TOP_FIELD"); - static const int FOLLOW_BOTTOM_FIELD_HASH = HashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t TOP_FIELD_HASH = ConstExprHashingUtils::HashString("TOP_FIELD"); + static constexpr uint32_t BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("BOTTOM_FIELD"); + static constexpr uint32_t FOLLOW_TOP_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_TOP_FIELD"); + static constexpr uint32_t FOLLOW_BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); H264InterlaceMode GetH264InterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_HASH) { return H264InterlaceMode::PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ParControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ParControl.cpp index 1e2af2ecb31..7467f476832 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ParControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264ParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); H264ParControl GetH264ParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return H264ParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264QualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264QualityTuningLevel.cpp index 2d3dc818a56..ef82616befd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264QualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264QualityTuningLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264QualityTuningLevelMapper { - static const int SINGLE_PASS_HASH = HashingUtils::HashString("SINGLE_PASS"); - static const int SINGLE_PASS_HQ_HASH = HashingUtils::HashString("SINGLE_PASS_HQ"); - static const int MULTI_PASS_HQ_HASH = HashingUtils::HashString("MULTI_PASS_HQ"); + static constexpr uint32_t SINGLE_PASS_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS"); + static constexpr uint32_t SINGLE_PASS_HQ_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS_HQ"); + static constexpr uint32_t MULTI_PASS_HQ_HASH = ConstExprHashingUtils::HashString("MULTI_PASS_HQ"); H264QualityTuningLevel GetH264QualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PASS_HASH) { return H264QualityTuningLevel::SINGLE_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RateControlMode.cpp index a0a25a4aac0..237452d0bd1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RateControlMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264RateControlModeMapper { - static const int VBR_HASH = HashingUtils::HashString("VBR"); - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int QVBR_HASH = HashingUtils::HashString("QVBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t QVBR_HASH = ConstExprHashingUtils::HashString("QVBR"); H264RateControlMode GetH264RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VBR_HASH) { return H264RateControlMode::VBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RepeatPps.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RepeatPps.cpp index b23c0d3fa89..51441baee8e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RepeatPps.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264RepeatPps.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264RepeatPpsMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264RepeatPps GetH264RepeatPpsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264RepeatPps::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ScanTypeConversionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ScanTypeConversionMode.cpp index 386bd5f4dc2..6ab9e94b562 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ScanTypeConversionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264ScanTypeConversionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264ScanTypeConversionModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int INTERLACED_OPTIMIZE_HASH = HashingUtils::HashString("INTERLACED_OPTIMIZE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t INTERLACED_OPTIMIZE_HASH = ConstExprHashingUtils::HashString("INTERLACED_OPTIMIZE"); H264ScanTypeConversionMode GetH264ScanTypeConversionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return H264ScanTypeConversionMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SceneChangeDetect.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SceneChangeDetect.cpp index 88a75fcf7cf..88e0f7ebc20 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SceneChangeDetect.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SceneChangeDetect.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264SceneChangeDetectMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int TRANSITION_DETECTION_HASH = HashingUtils::HashString("TRANSITION_DETECTION"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t TRANSITION_DETECTION_HASH = ConstExprHashingUtils::HashString("TRANSITION_DETECTION"); H264SceneChangeDetect GetH264SceneChangeDetectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264SceneChangeDetect::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SlowPal.cpp index a5b0379cc07..562d8c9b66e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264SlowPal GetH264SlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264SlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SpatialAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SpatialAdaptiveQuantization.cpp index aca001ae837..b10b1810a89 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SpatialAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264SpatialAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SpatialAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264SpatialAdaptiveQuantization GetH264SpatialAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264SpatialAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Syntax.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Syntax.cpp index 63474055e92..e88cbd7c5fb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Syntax.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Syntax.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SyntaxMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int RP2027_HASH = HashingUtils::HashString("RP2027"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t RP2027_HASH = ConstExprHashingUtils::HashString("RP2027"); H264Syntax GetH264SyntaxForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return H264Syntax::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Telecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Telecine.cpp index 4bd5aea23fb..2fecad1eba2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Telecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264Telecine.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264TelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SOFT_HASH = HashingUtils::HashString("SOFT"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SOFT_HASH = ConstExprHashingUtils::HashString("SOFT"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); H264Telecine GetH264TelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return H264Telecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264TemporalAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264TemporalAdaptiveQuantization.cpp index db8092d82ac..2b241360137 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264TemporalAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264TemporalAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264TemporalAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264TemporalAdaptiveQuantization GetH264TemporalAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264TemporalAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264UnregisteredSeiTimecode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264UnregisteredSeiTimecode.cpp index b538337f5be..33c49ccf833 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264UnregisteredSeiTimecode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H264UnregisteredSeiTimecode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264UnregisteredSeiTimecodeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264UnregisteredSeiTimecode GetH264UnregisteredSeiTimecodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264UnregisteredSeiTimecode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AdaptiveQuantization.cpp index c188c033985..11ce5db4da8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AdaptiveQuantization.cpp @@ -20,18 +20,18 @@ namespace Aws namespace H265AdaptiveQuantizationMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGHER_HASH = HashingUtils::HashString("HIGHER"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGHER_HASH = ConstExprHashingUtils::HashString("HIGHER"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); H265AdaptiveQuantization GetH265AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return H265AdaptiveQuantization::OFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AlternateTransferFunctionSei.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AlternateTransferFunctionSei.cpp index 325f85505e4..9a6877fb559 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AlternateTransferFunctionSei.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265AlternateTransferFunctionSei.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265AlternateTransferFunctionSeiMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265AlternateTransferFunctionSei GetH265AlternateTransferFunctionSeiForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265AlternateTransferFunctionSei::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecLevel.cpp index 69d10a08684..120e78ec090 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecLevel.cpp @@ -20,25 +20,25 @@ namespace Aws namespace H265CodecLevelMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int LEVEL_1_HASH = HashingUtils::HashString("LEVEL_1"); - static const int LEVEL_2_HASH = HashingUtils::HashString("LEVEL_2"); - static const int LEVEL_2_1_HASH = HashingUtils::HashString("LEVEL_2_1"); - static const int LEVEL_3_HASH = HashingUtils::HashString("LEVEL_3"); - static const int LEVEL_3_1_HASH = HashingUtils::HashString("LEVEL_3_1"); - static const int LEVEL_4_HASH = HashingUtils::HashString("LEVEL_4"); - static const int LEVEL_4_1_HASH = HashingUtils::HashString("LEVEL_4_1"); - static const int LEVEL_5_HASH = HashingUtils::HashString("LEVEL_5"); - static const int LEVEL_5_1_HASH = HashingUtils::HashString("LEVEL_5_1"); - static const int LEVEL_5_2_HASH = HashingUtils::HashString("LEVEL_5_2"); - static const int LEVEL_6_HASH = HashingUtils::HashString("LEVEL_6"); - static const int LEVEL_6_1_HASH = HashingUtils::HashString("LEVEL_6_1"); - static const int LEVEL_6_2_HASH = HashingUtils::HashString("LEVEL_6_2"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t LEVEL_1_HASH = ConstExprHashingUtils::HashString("LEVEL_1"); + static constexpr uint32_t LEVEL_2_HASH = ConstExprHashingUtils::HashString("LEVEL_2"); + static constexpr uint32_t LEVEL_2_1_HASH = ConstExprHashingUtils::HashString("LEVEL_2_1"); + static constexpr uint32_t LEVEL_3_HASH = ConstExprHashingUtils::HashString("LEVEL_3"); + static constexpr uint32_t LEVEL_3_1_HASH = ConstExprHashingUtils::HashString("LEVEL_3_1"); + static constexpr uint32_t LEVEL_4_HASH = ConstExprHashingUtils::HashString("LEVEL_4"); + static constexpr uint32_t LEVEL_4_1_HASH = ConstExprHashingUtils::HashString("LEVEL_4_1"); + static constexpr uint32_t LEVEL_5_HASH = ConstExprHashingUtils::HashString("LEVEL_5"); + static constexpr uint32_t LEVEL_5_1_HASH = ConstExprHashingUtils::HashString("LEVEL_5_1"); + static constexpr uint32_t LEVEL_5_2_HASH = ConstExprHashingUtils::HashString("LEVEL_5_2"); + static constexpr uint32_t LEVEL_6_HASH = ConstExprHashingUtils::HashString("LEVEL_6"); + static constexpr uint32_t LEVEL_6_1_HASH = ConstExprHashingUtils::HashString("LEVEL_6_1"); + static constexpr uint32_t LEVEL_6_2_HASH = ConstExprHashingUtils::HashString("LEVEL_6_2"); H265CodecLevel GetH265CodecLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return H265CodecLevel::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecProfile.cpp index 088f92bd6b9..92f5d65158b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265CodecProfile.cpp @@ -20,19 +20,19 @@ namespace Aws namespace H265CodecProfileMapper { - static const int MAIN_MAIN_HASH = HashingUtils::HashString("MAIN_MAIN"); - static const int MAIN_HIGH_HASH = HashingUtils::HashString("MAIN_HIGH"); - static const int MAIN10_MAIN_HASH = HashingUtils::HashString("MAIN10_MAIN"); - static const int MAIN10_HIGH_HASH = HashingUtils::HashString("MAIN10_HIGH"); - static const int MAIN_422_8BIT_MAIN_HASH = HashingUtils::HashString("MAIN_422_8BIT_MAIN"); - static const int MAIN_422_8BIT_HIGH_HASH = HashingUtils::HashString("MAIN_422_8BIT_HIGH"); - static const int MAIN_422_10BIT_MAIN_HASH = HashingUtils::HashString("MAIN_422_10BIT_MAIN"); - static const int MAIN_422_10BIT_HIGH_HASH = HashingUtils::HashString("MAIN_422_10BIT_HIGH"); + static constexpr uint32_t MAIN_MAIN_HASH = ConstExprHashingUtils::HashString("MAIN_MAIN"); + static constexpr uint32_t MAIN_HIGH_HASH = ConstExprHashingUtils::HashString("MAIN_HIGH"); + static constexpr uint32_t MAIN10_MAIN_HASH = ConstExprHashingUtils::HashString("MAIN10_MAIN"); + static constexpr uint32_t MAIN10_HIGH_HASH = ConstExprHashingUtils::HashString("MAIN10_HIGH"); + static constexpr uint32_t MAIN_422_8BIT_MAIN_HASH = ConstExprHashingUtils::HashString("MAIN_422_8BIT_MAIN"); + static constexpr uint32_t MAIN_422_8BIT_HIGH_HASH = ConstExprHashingUtils::HashString("MAIN_422_8BIT_HIGH"); + static constexpr uint32_t MAIN_422_10BIT_MAIN_HASH = ConstExprHashingUtils::HashString("MAIN_422_10BIT_MAIN"); + static constexpr uint32_t MAIN_422_10BIT_HIGH_HASH = ConstExprHashingUtils::HashString("MAIN_422_10BIT_HIGH"); H265CodecProfile GetH265CodecProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAIN_MAIN_HASH) { return H265CodecProfile::MAIN_MAIN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265DynamicSubGop.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265DynamicSubGop.cpp index 6cf385ca84f..1fdff8a95e3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265DynamicSubGop.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265DynamicSubGop.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265DynamicSubGopMapper { - static const int ADAPTIVE_HASH = HashingUtils::HashString("ADAPTIVE"); - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static constexpr uint32_t ADAPTIVE_HASH = ConstExprHashingUtils::HashString("ADAPTIVE"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); H265DynamicSubGop GetH265DynamicSubGopForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADAPTIVE_HASH) { return H265DynamicSubGop::ADAPTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265EndOfStreamMarkers.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265EndOfStreamMarkers.cpp index b228b6a7049..cb9a7d805b5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265EndOfStreamMarkers.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265EndOfStreamMarkers.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265EndOfStreamMarkersMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int SUPPRESS_HASH = HashingUtils::HashString("SUPPRESS"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t SUPPRESS_HASH = ConstExprHashingUtils::HashString("SUPPRESS"); H265EndOfStreamMarkers GetH265EndOfStreamMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return H265EndOfStreamMarkers::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FlickerAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FlickerAdaptiveQuantization.cpp index 61da91846b9..41c5871a73f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FlickerAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FlickerAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265FlickerAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265FlickerAdaptiveQuantization GetH265FlickerAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265FlickerAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateControl.cpp index 333a117065f..456e8f1df3c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); H265FramerateControl GetH265FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return H265FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateConversionAlgorithm.cpp index e2c38eb54c6..725b6d7ddc9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); H265FramerateConversionAlgorithm GetH265FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return H265FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopBReference.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopBReference.cpp index 1640e5b85e8..f6d36533061 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopBReference.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopBReference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265GopBReferenceMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265GopBReference GetH265GopBReferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265GopBReference::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopSizeUnits.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopSizeUnits.cpp index bd0a05c3b8f..99c1bfbd1e4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopSizeUnits.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265GopSizeUnits.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265GopSizeUnitsMapper { - static const int FRAMES_HASH = HashingUtils::HashString("FRAMES"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t FRAMES_HASH = ConstExprHashingUtils::HashString("FRAMES"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); H265GopSizeUnits GetH265GopSizeUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMES_HASH) { return H265GopSizeUnits::FRAMES; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265InterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265InterlaceMode.cpp index d582fd71af6..fcbaa314df8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265InterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265InterlaceMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace H265InterlaceModeMapper { - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); - static const int TOP_FIELD_HASH = HashingUtils::HashString("TOP_FIELD"); - static const int BOTTOM_FIELD_HASH = HashingUtils::HashString("BOTTOM_FIELD"); - static const int FOLLOW_TOP_FIELD_HASH = HashingUtils::HashString("FOLLOW_TOP_FIELD"); - static const int FOLLOW_BOTTOM_FIELD_HASH = HashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t TOP_FIELD_HASH = ConstExprHashingUtils::HashString("TOP_FIELD"); + static constexpr uint32_t BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("BOTTOM_FIELD"); + static constexpr uint32_t FOLLOW_TOP_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_TOP_FIELD"); + static constexpr uint32_t FOLLOW_BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); H265InterlaceMode GetH265InterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_HASH) { return H265InterlaceMode::PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ParControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ParControl.cpp index ad39d501c53..b1ef2c5a516 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ParControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265ParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); H265ParControl GetH265ParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return H265ParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265QualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265QualityTuningLevel.cpp index 51b1aa742c2..a7a09d78b86 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265QualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265QualityTuningLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265QualityTuningLevelMapper { - static const int SINGLE_PASS_HASH = HashingUtils::HashString("SINGLE_PASS"); - static const int SINGLE_PASS_HQ_HASH = HashingUtils::HashString("SINGLE_PASS_HQ"); - static const int MULTI_PASS_HQ_HASH = HashingUtils::HashString("MULTI_PASS_HQ"); + static constexpr uint32_t SINGLE_PASS_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS"); + static constexpr uint32_t SINGLE_PASS_HQ_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS_HQ"); + static constexpr uint32_t MULTI_PASS_HQ_HASH = ConstExprHashingUtils::HashString("MULTI_PASS_HQ"); H265QualityTuningLevel GetH265QualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PASS_HASH) { return H265QualityTuningLevel::SINGLE_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265RateControlMode.cpp index c2a20e511b9..11441a8de7e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265RateControlMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265RateControlModeMapper { - static const int VBR_HASH = HashingUtils::HashString("VBR"); - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int QVBR_HASH = HashingUtils::HashString("QVBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t QVBR_HASH = ConstExprHashingUtils::HashString("QVBR"); H265RateControlMode GetH265RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VBR_HASH) { return H265RateControlMode::VBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SampleAdaptiveOffsetFilterMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SampleAdaptiveOffsetFilterMode.cpp index 0d2ebaefbda..6ae0ae6dd1b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SampleAdaptiveOffsetFilterMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SampleAdaptiveOffsetFilterMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265SampleAdaptiveOffsetFilterModeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int ADAPTIVE_HASH = HashingUtils::HashString("ADAPTIVE"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t ADAPTIVE_HASH = ConstExprHashingUtils::HashString("ADAPTIVE"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); H265SampleAdaptiveOffsetFilterMode GetH265SampleAdaptiveOffsetFilterModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return H265SampleAdaptiveOffsetFilterMode::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ScanTypeConversionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ScanTypeConversionMode.cpp index 669cc66965a..7e07d9c6e74 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ScanTypeConversionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265ScanTypeConversionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265ScanTypeConversionModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int INTERLACED_OPTIMIZE_HASH = HashingUtils::HashString("INTERLACED_OPTIMIZE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t INTERLACED_OPTIMIZE_HASH = ConstExprHashingUtils::HashString("INTERLACED_OPTIMIZE"); H265ScanTypeConversionMode GetH265ScanTypeConversionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return H265ScanTypeConversionMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SceneChangeDetect.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SceneChangeDetect.cpp index dcd1a2d4ee8..5002ab6c308 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SceneChangeDetect.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SceneChangeDetect.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265SceneChangeDetectMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int TRANSITION_DETECTION_HASH = HashingUtils::HashString("TRANSITION_DETECTION"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t TRANSITION_DETECTION_HASH = ConstExprHashingUtils::HashString("TRANSITION_DETECTION"); H265SceneChangeDetect GetH265SceneChangeDetectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265SceneChangeDetect::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SlowPal.cpp index c93dd48c38e..6d1b073c8ba 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265SlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265SlowPal GetH265SlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265SlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SpatialAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SpatialAdaptiveQuantization.cpp index 691130eec96..058b026fab0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SpatialAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265SpatialAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265SpatialAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265SpatialAdaptiveQuantization GetH265SpatialAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265SpatialAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Telecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Telecine.cpp index 1d281145e1f..b276fbed15f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Telecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Telecine.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265TelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SOFT_HASH = HashingUtils::HashString("SOFT"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SOFT_HASH = ConstExprHashingUtils::HashString("SOFT"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); H265Telecine GetH265TelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return H265Telecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalAdaptiveQuantization.cpp index f75bd5e8512..e91ebbf74ad 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265TemporalAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265TemporalAdaptiveQuantization GetH265TemporalAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265TemporalAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalIds.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalIds.cpp index 560c08e13ee..30808f82385 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalIds.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265TemporalIds.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265TemporalIdsMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265TemporalIds GetH265TemporalIdsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265TemporalIds::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Tiles.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Tiles.cpp index 296deaeec5c..594bd720548 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Tiles.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265Tiles.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265TilesMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265Tiles GetH265TilesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265Tiles::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265UnregisteredSeiTimecode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265UnregisteredSeiTimecode.cpp index 246259ce649..1df91e47531 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265UnregisteredSeiTimecode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265UnregisteredSeiTimecode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265UnregisteredSeiTimecodeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265UnregisteredSeiTimecode GetH265UnregisteredSeiTimecodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265UnregisteredSeiTimecode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265WriteMp4PackagingType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265WriteMp4PackagingType.cpp index d72f52b6f28..e90778eaad8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265WriteMp4PackagingType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/H265WriteMp4PackagingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265WriteMp4PackagingTypeMapper { - static const int HVC1_HASH = HashingUtils::HashString("HVC1"); - static const int HEV1_HASH = HashingUtils::HashString("HEV1"); + static constexpr uint32_t HVC1_HASH = ConstExprHashingUtils::HashString("HVC1"); + static constexpr uint32_t HEV1_HASH = ConstExprHashingUtils::HashString("HEV1"); H265WriteMp4PackagingType GetH265WriteMp4PackagingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HVC1_HASH) { return H265WriteMp4PackagingType::HVC1; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HDRToSDRToneMapper.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HDRToSDRToneMapper.cpp index fd9538f1d63..66914290b0e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HDRToSDRToneMapper.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HDRToSDRToneMapper.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HDRToSDRToneMapperMapper { - static const int PRESERVE_DETAILS_HASH = HashingUtils::HashString("PRESERVE_DETAILS"); - static const int VIBRANT_HASH = HashingUtils::HashString("VIBRANT"); + static constexpr uint32_t PRESERVE_DETAILS_HASH = ConstExprHashingUtils::HashString("PRESERVE_DETAILS"); + static constexpr uint32_t VIBRANT_HASH = ConstExprHashingUtils::HashString("VIBRANT"); HDRToSDRToneMapper GetHDRToSDRToneMapperForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESERVE_DETAILS_HASH) { return HDRToSDRToneMapper::PRESERVE_DETAILS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAdMarkers.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAdMarkers.cpp index 4839bd64051..b63ffbebffa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAdMarkers.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAdMarkers.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsAdMarkersMapper { - static const int ELEMENTAL_HASH = HashingUtils::HashString("ELEMENTAL"); - static const int ELEMENTAL_SCTE35_HASH = HashingUtils::HashString("ELEMENTAL_SCTE35"); + static constexpr uint32_t ELEMENTAL_HASH = ConstExprHashingUtils::HashString("ELEMENTAL"); + static constexpr uint32_t ELEMENTAL_SCTE35_HASH = ConstExprHashingUtils::HashString("ELEMENTAL_SCTE35"); HlsAdMarkers GetHlsAdMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ELEMENTAL_HASH) { return HlsAdMarkers::ELEMENTAL; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyContainer.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyContainer.cpp index 32c1c2a2661..2f4c5fac1e0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyContainer.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyContainer.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsAudioOnlyContainerMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int M2TS_HASH = HashingUtils::HashString("M2TS"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t M2TS_HASH = ConstExprHashingUtils::HashString("M2TS"); HlsAudioOnlyContainer GetHlsAudioOnlyContainerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return HlsAudioOnlyContainer::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyHeader.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyHeader.cpp index 0b94a4b67cf..aa9eb9b6446 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyHeader.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioOnlyHeader.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsAudioOnlyHeaderMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); HlsAudioOnlyHeader GetHlsAudioOnlyHeaderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return HlsAudioOnlyHeader::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioTrackType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioTrackType.cpp index fc351c4f180..faf8b93c1d6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioTrackType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsAudioTrackType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HlsAudioTrackTypeMapper { - static const int ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"); - static const int ALTERNATE_AUDIO_AUTO_SELECT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT"); - static const int ALTERNATE_AUDIO_NOT_AUTO_SELECT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_NOT_AUTO_SELECT"); - static const int AUDIO_ONLY_VARIANT_STREAM_HASH = HashingUtils::HashString("AUDIO_ONLY_VARIANT_STREAM"); + static constexpr uint32_t ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"); + static constexpr uint32_t ALTERNATE_AUDIO_AUTO_SELECT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT"); + static constexpr uint32_t ALTERNATE_AUDIO_NOT_AUTO_SELECT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_NOT_AUTO_SELECT"); + static constexpr uint32_t AUDIO_ONLY_VARIANT_STREAM_HASH = ConstExprHashingUtils::HashString("AUDIO_ONLY_VARIANT_STREAM"); HlsAudioTrackType GetHlsAudioTrackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH) { return HlsAudioTrackType::ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionLanguageSetting.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionLanguageSetting.cpp index fce536e6cba..1a6db8c1703 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionLanguageSetting.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionLanguageSetting.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HlsCaptionLanguageSettingMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int OMIT_HASH = HashingUtils::HashString("OMIT"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t OMIT_HASH = ConstExprHashingUtils::HashString("OMIT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); HlsCaptionLanguageSetting GetHlsCaptionLanguageSettingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return HlsCaptionLanguageSetting::INSERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionSegmentLengthControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionSegmentLengthControl.cpp index b1f442cb654..daf9b79c88e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionSegmentLengthControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCaptionSegmentLengthControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsCaptionSegmentLengthControlMapper { - static const int LARGE_SEGMENTS_HASH = HashingUtils::HashString("LARGE_SEGMENTS"); - static const int MATCH_VIDEO_HASH = HashingUtils::HashString("MATCH_VIDEO"); + static constexpr uint32_t LARGE_SEGMENTS_HASH = ConstExprHashingUtils::HashString("LARGE_SEGMENTS"); + static constexpr uint32_t MATCH_VIDEO_HASH = ConstExprHashingUtils::HashString("MATCH_VIDEO"); HlsCaptionSegmentLengthControl GetHlsCaptionSegmentLengthControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LARGE_SEGMENTS_HASH) { return HlsCaptionSegmentLengthControl::LARGE_SEGMENTS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsClientCache.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsClientCache.cpp index a4a07544f9c..4b3a5b446ad 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsClientCache.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsClientCache.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsClientCacheMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); HlsClientCache GetHlsClientCacheForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return HlsClientCache::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCodecSpecification.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCodecSpecification.cpp index 58d35e45fa9..4c280add886 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCodecSpecification.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsCodecSpecification.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsCodecSpecificationMapper { - static const int RFC_6381_HASH = HashingUtils::HashString("RFC_6381"); - static const int RFC_4281_HASH = HashingUtils::HashString("RFC_4281"); + static constexpr uint32_t RFC_6381_HASH = ConstExprHashingUtils::HashString("RFC_6381"); + static constexpr uint32_t RFC_4281_HASH = ConstExprHashingUtils::HashString("RFC_4281"); HlsCodecSpecification GetHlsCodecSpecificationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RFC_6381_HASH) { return HlsCodecSpecification::RFC_6381; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDescriptiveVideoServiceFlag.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDescriptiveVideoServiceFlag.cpp index 727415eac82..0ec3e7bc683 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDescriptiveVideoServiceFlag.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDescriptiveVideoServiceFlag.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsDescriptiveVideoServiceFlagMapper { - static const int DONT_FLAG_HASH = HashingUtils::HashString("DONT_FLAG"); - static const int FLAG_HASH = HashingUtils::HashString("FLAG"); + static constexpr uint32_t DONT_FLAG_HASH = ConstExprHashingUtils::HashString("DONT_FLAG"); + static constexpr uint32_t FLAG_HASH = ConstExprHashingUtils::HashString("FLAG"); HlsDescriptiveVideoServiceFlag GetHlsDescriptiveVideoServiceFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DONT_FLAG_HASH) { return HlsDescriptiveVideoServiceFlag::DONT_FLAG; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDirectoryStructure.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDirectoryStructure.cpp index 14014b266d2..039b3c57ef6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDirectoryStructure.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsDirectoryStructure.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsDirectoryStructureMapper { - static const int SINGLE_DIRECTORY_HASH = HashingUtils::HashString("SINGLE_DIRECTORY"); - static const int SUBDIRECTORY_PER_STREAM_HASH = HashingUtils::HashString("SUBDIRECTORY_PER_STREAM"); + static constexpr uint32_t SINGLE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("SINGLE_DIRECTORY"); + static constexpr uint32_t SUBDIRECTORY_PER_STREAM_HASH = ConstExprHashingUtils::HashString("SUBDIRECTORY_PER_STREAM"); HlsDirectoryStructure GetHlsDirectoryStructureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_DIRECTORY_HASH) { return HlsDirectoryStructure::SINGLE_DIRECTORY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsEncryptionType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsEncryptionType.cpp index 626ce819fbf..e16405f3b19 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsEncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsEncryptionTypeMapper { - static const int AES128_HASH = HashingUtils::HashString("AES128"); - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES128_HASH = ConstExprHashingUtils::HashString("AES128"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); HlsEncryptionType GetHlsEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES128_HASH) { return HlsEncryptionType::AES128; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIFrameOnlyManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIFrameOnlyManifest.cpp index 3e26a6b96a1..ad2a34c642b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIFrameOnlyManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIFrameOnlyManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsIFrameOnlyManifestMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); HlsIFrameOnlyManifest GetHlsIFrameOnlyManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return HlsIFrameOnlyManifest::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsImageBasedTrickPlay.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsImageBasedTrickPlay.cpp index 81393293a30..259c63c833c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsImageBasedTrickPlay.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsImageBasedTrickPlay.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HlsImageBasedTrickPlayMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int THUMBNAIL_HASH = HashingUtils::HashString("THUMBNAIL"); - static const int THUMBNAIL_AND_FULLFRAME_HASH = HashingUtils::HashString("THUMBNAIL_AND_FULLFRAME"); - static const int ADVANCED_HASH = HashingUtils::HashString("ADVANCED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t THUMBNAIL_HASH = ConstExprHashingUtils::HashString("THUMBNAIL"); + static constexpr uint32_t THUMBNAIL_AND_FULLFRAME_HASH = ConstExprHashingUtils::HashString("THUMBNAIL_AND_FULLFRAME"); + static constexpr uint32_t ADVANCED_HASH = ConstExprHashingUtils::HashString("ADVANCED"); HlsImageBasedTrickPlay GetHlsImageBasedTrickPlayForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return HlsImageBasedTrickPlay::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsInitializationVectorInManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsInitializationVectorInManifest.cpp index 3387459b10a..59ad3b38380 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsInitializationVectorInManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsInitializationVectorInManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsInitializationVectorInManifestMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); HlsInitializationVectorInManifest GetHlsInitializationVectorInManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return HlsInitializationVectorInManifest::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIntervalCadence.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIntervalCadence.cpp index 6eb3da4d767..5e43ea8fa80 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIntervalCadence.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsIntervalCadence.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsIntervalCadenceMapper { - static const int FOLLOW_IFRAME_HASH = HashingUtils::HashString("FOLLOW_IFRAME"); - static const int FOLLOW_CUSTOM_HASH = HashingUtils::HashString("FOLLOW_CUSTOM"); + static constexpr uint32_t FOLLOW_IFRAME_HASH = ConstExprHashingUtils::HashString("FOLLOW_IFRAME"); + static constexpr uint32_t FOLLOW_CUSTOM_HASH = ConstExprHashingUtils::HashString("FOLLOW_CUSTOM"); HlsIntervalCadence GetHlsIntervalCadenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_IFRAME_HASH) { return HlsIntervalCadence::FOLLOW_IFRAME; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsKeyProviderType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsKeyProviderType.cpp index 1ec6f3d7121..18b7b52159e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsKeyProviderType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsKeyProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsKeyProviderTypeMapper { - static const int SPEKE_HASH = HashingUtils::HashString("SPEKE"); - static const int STATIC_KEY_HASH = HashingUtils::HashString("STATIC_KEY"); + static constexpr uint32_t SPEKE_HASH = ConstExprHashingUtils::HashString("SPEKE"); + static constexpr uint32_t STATIC_KEY_HASH = ConstExprHashingUtils::HashString("STATIC_KEY"); HlsKeyProviderType GetHlsKeyProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPEKE_HASH) { return HlsKeyProviderType::SPEKE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestCompression.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestCompression.cpp index d9f03ddb65a..a0201e43f96 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestCompression.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestCompression.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsManifestCompressionMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); HlsManifestCompression GetHlsManifestCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return HlsManifestCompression::GZIP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestDurationFormat.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestDurationFormat.cpp index 4a4688c4fb8..4e8560d85f6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestDurationFormat.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsManifestDurationFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsManifestDurationFormatMapper { - static const int FLOATING_POINT_HASH = HashingUtils::HashString("FLOATING_POINT"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); + static constexpr uint32_t FLOATING_POINT_HASH = ConstExprHashingUtils::HashString("FLOATING_POINT"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); HlsManifestDurationFormat GetHlsManifestDurationFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOATING_POINT_HASH) { return HlsManifestDurationFormat::FLOATING_POINT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOfflineEncrypted.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOfflineEncrypted.cpp index 8ce44c819e9..bd723af891f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOfflineEncrypted.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOfflineEncrypted.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsOfflineEncryptedMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); HlsOfflineEncrypted GetHlsOfflineEncryptedForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return HlsOfflineEncrypted::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOutputSelection.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOutputSelection.cpp index 63b65b0da5b..fdc3f96ef3a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOutputSelection.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsOutputSelection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsOutputSelectionMapper { - static const int MANIFESTS_AND_SEGMENTS_HASH = HashingUtils::HashString("MANIFESTS_AND_SEGMENTS"); - static const int SEGMENTS_ONLY_HASH = HashingUtils::HashString("SEGMENTS_ONLY"); + static constexpr uint32_t MANIFESTS_AND_SEGMENTS_HASH = ConstExprHashingUtils::HashString("MANIFESTS_AND_SEGMENTS"); + static constexpr uint32_t SEGMENTS_ONLY_HASH = ConstExprHashingUtils::HashString("SEGMENTS_ONLY"); HlsOutputSelection GetHlsOutputSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANIFESTS_AND_SEGMENTS_HASH) { return HlsOutputSelection::MANIFESTS_AND_SEGMENTS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgramDateTime.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgramDateTime.cpp index 4f89f5c4ab8..19f7ad4f4e1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgramDateTime.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgramDateTime.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsProgramDateTimeMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); HlsProgramDateTime GetHlsProgramDateTimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return HlsProgramDateTime::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgressiveWriteHlsManifest.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgressiveWriteHlsManifest.cpp index 2ff8ca0873b..70a84748465 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgressiveWriteHlsManifest.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsProgressiveWriteHlsManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsProgressiveWriteHlsManifestMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); HlsProgressiveWriteHlsManifest GetHlsProgressiveWriteHlsManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return HlsProgressiveWriteHlsManifest::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentControl.cpp index 07446183685..fd2e6d4c6e9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsSegmentControlMapper { - static const int SINGLE_FILE_HASH = HashingUtils::HashString("SINGLE_FILE"); - static const int SEGMENTED_FILES_HASH = HashingUtils::HashString("SEGMENTED_FILES"); + static constexpr uint32_t SINGLE_FILE_HASH = ConstExprHashingUtils::HashString("SINGLE_FILE"); + static constexpr uint32_t SEGMENTED_FILES_HASH = ConstExprHashingUtils::HashString("SEGMENTED_FILES"); HlsSegmentControl GetHlsSegmentControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_FILE_HASH) { return HlsSegmentControl::SINGLE_FILE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentLengthControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentLengthControl.cpp index 3404eb992f8..79abb7098be 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentLengthControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsSegmentLengthControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsSegmentLengthControlMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); - static const int GOP_MULTIPLE_HASH = HashingUtils::HashString("GOP_MULTIPLE"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); + static constexpr uint32_t GOP_MULTIPLE_HASH = ConstExprHashingUtils::HashString("GOP_MULTIPLE"); HlsSegmentLengthControl GetHlsSegmentLengthControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return HlsSegmentLengthControl::EXACT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsStreamInfResolution.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsStreamInfResolution.cpp index 0fcafc56cc5..cc9abb1cab2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsStreamInfResolution.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsStreamInfResolution.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsStreamInfResolutionMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); HlsStreamInfResolution GetHlsStreamInfResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return HlsStreamInfResolution::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTargetDurationCompatibilityMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTargetDurationCompatibilityMode.cpp index 83de0074559..58f8b2021ce 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTargetDurationCompatibilityMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTargetDurationCompatibilityMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsTargetDurationCompatibilityModeMapper { - static const int LEGACY_HASH = HashingUtils::HashString("LEGACY"); - static const int SPEC_COMPLIANT_HASH = HashingUtils::HashString("SPEC_COMPLIANT"); + static constexpr uint32_t LEGACY_HASH = ConstExprHashingUtils::HashString("LEGACY"); + static constexpr uint32_t SPEC_COMPLIANT_HASH = ConstExprHashingUtils::HashString("SPEC_COMPLIANT"); HlsTargetDurationCompatibilityMode GetHlsTargetDurationCompatibilityModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEGACY_HASH) { return HlsTargetDurationCompatibilityMode::LEGACY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTimedMetadataId3Frame.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTimedMetadataId3Frame.cpp index edbf8c7473e..19712ec7b4b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTimedMetadataId3Frame.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/HlsTimedMetadataId3Frame.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HlsTimedMetadataId3FrameMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRIV_HASH = HashingUtils::HashString("PRIV"); - static const int TDRL_HASH = HashingUtils::HashString("TDRL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRIV_HASH = ConstExprHashingUtils::HashString("PRIV"); + static constexpr uint32_t TDRL_HASH = ConstExprHashingUtils::HashString("TDRL"); HlsTimedMetadataId3Frame GetHlsTimedMetadataId3FrameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return HlsTimedMetadataId3Frame::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscAccessibilitySubs.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscAccessibilitySubs.cpp index f1b991b6d9a..64d911d4e90 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscAccessibilitySubs.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscAccessibilitySubs.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImscAccessibilitySubsMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); ImscAccessibilitySubs GetImscAccessibilitySubsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return ImscAccessibilitySubs::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscStylePassthrough.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscStylePassthrough.cpp index dab413f8f7c..bce3435cdc8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscStylePassthrough.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ImscStylePassthrough.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImscStylePassthroughMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ImscStylePassthrough GetImscStylePassthroughForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ImscStylePassthrough::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDeblockFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDeblockFilter.cpp index 2231dc22fd4..a8b3106af2a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDeblockFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDeblockFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeblockFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); InputDeblockFilter GetInputDeblockFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return InputDeblockFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDenoiseFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDenoiseFilter.cpp index e0bdf56c538..6a92bd88727 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDenoiseFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputDenoiseFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDenoiseFilterMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); InputDenoiseFilter GetInputDenoiseFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return InputDenoiseFilter::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputFilterEnable.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputFilterEnable.cpp index a0cdf8a7360..3eb908409d8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputFilterEnable.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputFilterEnable.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputFilterEnableMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); - static const int FORCE_HASH = HashingUtils::HashString("FORCE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); + static constexpr uint32_t FORCE_HASH = ConstExprHashingUtils::HashString("FORCE"); InputFilterEnable GetInputFilterEnableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return InputFilterEnable::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPolicy.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPolicy.cpp index 06a3de39aa7..8ae23186012 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPolicy.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputPolicyMapper { - static const int ALLOWED_HASH = HashingUtils::HashString("ALLOWED"); - static const int DISALLOWED_HASH = HashingUtils::HashString("DISALLOWED"); + static constexpr uint32_t ALLOWED_HASH = ConstExprHashingUtils::HashString("ALLOWED"); + static constexpr uint32_t DISALLOWED_HASH = ConstExprHashingUtils::HashString("DISALLOWED"); InputPolicy GetInputPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOWED_HASH) { return InputPolicy::ALLOWED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPsiControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPsiControl.cpp index 4789a76da3b..2298b5a18e3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPsiControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputPsiControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputPsiControlMapper { - static const int IGNORE_PSI_HASH = HashingUtils::HashString("IGNORE_PSI"); - static const int USE_PSI_HASH = HashingUtils::HashString("USE_PSI"); + static constexpr uint32_t IGNORE_PSI_HASH = ConstExprHashingUtils::HashString("IGNORE_PSI"); + static constexpr uint32_t USE_PSI_HASH = ConstExprHashingUtils::HashString("USE_PSI"); InputPsiControl GetInputPsiControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_PSI_HASH) { return InputPsiControl::IGNORE_PSI; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputRotate.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputRotate.cpp index 9fd781b244b..3605bd79a52 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputRotate.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputRotate.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InputRotateMapper { - static const int DEGREE_0_HASH = HashingUtils::HashString("DEGREE_0"); - static const int DEGREES_90_HASH = HashingUtils::HashString("DEGREES_90"); - static const int DEGREES_180_HASH = HashingUtils::HashString("DEGREES_180"); - static const int DEGREES_270_HASH = HashingUtils::HashString("DEGREES_270"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t DEGREE_0_HASH = ConstExprHashingUtils::HashString("DEGREE_0"); + static constexpr uint32_t DEGREES_90_HASH = ConstExprHashingUtils::HashString("DEGREES_90"); + static constexpr uint32_t DEGREES_180_HASH = ConstExprHashingUtils::HashString("DEGREES_180"); + static constexpr uint32_t DEGREES_270_HASH = ConstExprHashingUtils::HashString("DEGREES_270"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); InputRotate GetInputRotateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEGREE_0_HASH) { return InputRotate::DEGREE_0; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputSampleRange.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputSampleRange.cpp index b1d895ce176..0d4458b6db9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputSampleRange.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputSampleRange.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputSampleRangeMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int FULL_RANGE_HASH = HashingUtils::HashString("FULL_RANGE"); - static const int LIMITED_RANGE_HASH = HashingUtils::HashString("LIMITED_RANGE"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t FULL_RANGE_HASH = ConstExprHashingUtils::HashString("FULL_RANGE"); + static constexpr uint32_t LIMITED_RANGE_HASH = ConstExprHashingUtils::HashString("LIMITED_RANGE"); InputSampleRange GetInputSampleRangeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return InputSampleRange::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputScanType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputScanType.cpp index d857755f593..51605ccf5b4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputScanType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputScanTypeMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int PSF_HASH = HashingUtils::HashString("PSF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t PSF_HASH = ConstExprHashingUtils::HashString("PSF"); InputScanType GetInputScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return InputScanType::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputTimecodeSource.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputTimecodeSource.cpp index 65708b8756f..89020545ebb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputTimecodeSource.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/InputTimecodeSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputTimecodeSourceMapper { - static const int EMBEDDED_HASH = HashingUtils::HashString("EMBEDDED"); - static const int ZEROBASED_HASH = HashingUtils::HashString("ZEROBASED"); - static const int SPECIFIEDSTART_HASH = HashingUtils::HashString("SPECIFIEDSTART"); + static constexpr uint32_t EMBEDDED_HASH = ConstExprHashingUtils::HashString("EMBEDDED"); + static constexpr uint32_t ZEROBASED_HASH = ConstExprHashingUtils::HashString("ZEROBASED"); + static constexpr uint32_t SPECIFIEDSTART_HASH = ConstExprHashingUtils::HashString("SPECIFIEDSTART"); InputTimecodeSource GetInputTimecodeSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMBEDDED_HASH) { return InputTimecodeSource::EMBEDDED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobPhase.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobPhase.cpp index 36a97323371..4db6cf18bd0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobPhase.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobPhase.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobPhaseMapper { - static const int PROBING_HASH = HashingUtils::HashString("PROBING"); - static const int TRANSCODING_HASH = HashingUtils::HashString("TRANSCODING"); - static const int UPLOADING_HASH = HashingUtils::HashString("UPLOADING"); + static constexpr uint32_t PROBING_HASH = ConstExprHashingUtils::HashString("PROBING"); + static constexpr uint32_t TRANSCODING_HASH = ConstExprHashingUtils::HashString("TRANSCODING"); + static constexpr uint32_t UPLOADING_HASH = ConstExprHashingUtils::HashString("UPLOADING"); JobPhase GetJobPhaseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROBING_HASH) { return JobPhase::PROBING; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobStatus.cpp index 4dd254a4c52..65bfadd0483 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int PROGRESSING_HASH = HashingUtils::HashString("PROGRESSING"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t PROGRESSING_HASH = ConstExprHashingUtils::HashString("PROGRESSING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobTemplateListBy.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobTemplateListBy.cpp index 459a587198d..9ffc9e51e09 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobTemplateListBy.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/JobTemplateListBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobTemplateListByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CREATION_DATE_HASH = HashingUtils::HashString("CREATION_DATE"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CREATION_DATE_HASH = ConstExprHashingUtils::HashString("CREATION_DATE"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); JobTemplateListBy GetJobTemplateListByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return JobTemplateListBy::NAME; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/LanguageCode.cpp index 19f7219c193..d3cc4d30850 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/LanguageCode.cpp @@ -20,205 +20,205 @@ namespace Aws namespace LanguageCodeMapper { - static const int ENG_HASH = HashingUtils::HashString("ENG"); - static const int SPA_HASH = HashingUtils::HashString("SPA"); - static const int FRA_HASH = HashingUtils::HashString("FRA"); - static const int DEU_HASH = HashingUtils::HashString("DEU"); - static const int GER_HASH = HashingUtils::HashString("GER"); - static const int ZHO_HASH = HashingUtils::HashString("ZHO"); - static const int ARA_HASH = HashingUtils::HashString("ARA"); - static const int HIN_HASH = HashingUtils::HashString("HIN"); - static const int JPN_HASH = HashingUtils::HashString("JPN"); - static const int RUS_HASH = HashingUtils::HashString("RUS"); - static const int POR_HASH = HashingUtils::HashString("POR"); - static const int ITA_HASH = HashingUtils::HashString("ITA"); - static const int URD_HASH = HashingUtils::HashString("URD"); - static const int VIE_HASH = HashingUtils::HashString("VIE"); - static const int KOR_HASH = HashingUtils::HashString("KOR"); - static const int PAN_HASH = HashingUtils::HashString("PAN"); - static const int ABK_HASH = HashingUtils::HashString("ABK"); - static const int AAR_HASH = HashingUtils::HashString("AAR"); - static const int AFR_HASH = HashingUtils::HashString("AFR"); - static const int AKA_HASH = HashingUtils::HashString("AKA"); - static const int SQI_HASH = HashingUtils::HashString("SQI"); - static const int AMH_HASH = HashingUtils::HashString("AMH"); - static const int ARG_HASH = HashingUtils::HashString("ARG"); - static const int HYE_HASH = HashingUtils::HashString("HYE"); - static const int ASM_HASH = HashingUtils::HashString("ASM"); - static const int AVA_HASH = HashingUtils::HashString("AVA"); - static const int AVE_HASH = HashingUtils::HashString("AVE"); - static const int AYM_HASH = HashingUtils::HashString("AYM"); - static const int AZE_HASH = HashingUtils::HashString("AZE"); - static const int BAM_HASH = HashingUtils::HashString("BAM"); - static const int BAK_HASH = HashingUtils::HashString("BAK"); - static const int EUS_HASH = HashingUtils::HashString("EUS"); - static const int BEL_HASH = HashingUtils::HashString("BEL"); - static const int BEN_HASH = HashingUtils::HashString("BEN"); - static const int BIH_HASH = HashingUtils::HashString("BIH"); - static const int BIS_HASH = HashingUtils::HashString("BIS"); - static const int BOS_HASH = HashingUtils::HashString("BOS"); - static const int BRE_HASH = HashingUtils::HashString("BRE"); - static const int BUL_HASH = HashingUtils::HashString("BUL"); - static const int MYA_HASH = HashingUtils::HashString("MYA"); - static const int CAT_HASH = HashingUtils::HashString("CAT"); - static const int KHM_HASH = HashingUtils::HashString("KHM"); - static const int CHA_HASH = HashingUtils::HashString("CHA"); - static const int CHE_HASH = HashingUtils::HashString("CHE"); - static const int NYA_HASH = HashingUtils::HashString("NYA"); - static const int CHU_HASH = HashingUtils::HashString("CHU"); - static const int CHV_HASH = HashingUtils::HashString("CHV"); - static const int COR_HASH = HashingUtils::HashString("COR"); - static const int COS_HASH = HashingUtils::HashString("COS"); - static const int CRE_HASH = HashingUtils::HashString("CRE"); - static const int HRV_HASH = HashingUtils::HashString("HRV"); - static const int CES_HASH = HashingUtils::HashString("CES"); - static const int DAN_HASH = HashingUtils::HashString("DAN"); - static const int DIV_HASH = HashingUtils::HashString("DIV"); - static const int NLD_HASH = HashingUtils::HashString("NLD"); - static const int DZO_HASH = HashingUtils::HashString("DZO"); - static const int ENM_HASH = HashingUtils::HashString("ENM"); - static const int EPO_HASH = HashingUtils::HashString("EPO"); - static const int EST_HASH = HashingUtils::HashString("EST"); - static const int EWE_HASH = HashingUtils::HashString("EWE"); - static const int FAO_HASH = HashingUtils::HashString("FAO"); - static const int FIJ_HASH = HashingUtils::HashString("FIJ"); - static const int FIN_HASH = HashingUtils::HashString("FIN"); - static const int FRM_HASH = HashingUtils::HashString("FRM"); - static const int FUL_HASH = HashingUtils::HashString("FUL"); - static const int GLA_HASH = HashingUtils::HashString("GLA"); - static const int GLG_HASH = HashingUtils::HashString("GLG"); - static const int LUG_HASH = HashingUtils::HashString("LUG"); - static const int KAT_HASH = HashingUtils::HashString("KAT"); - static const int ELL_HASH = HashingUtils::HashString("ELL"); - static const int GRN_HASH = HashingUtils::HashString("GRN"); - static const int GUJ_HASH = HashingUtils::HashString("GUJ"); - static const int HAT_HASH = HashingUtils::HashString("HAT"); - static const int HAU_HASH = HashingUtils::HashString("HAU"); - static const int HEB_HASH = HashingUtils::HashString("HEB"); - static const int HER_HASH = HashingUtils::HashString("HER"); - static const int HMO_HASH = HashingUtils::HashString("HMO"); - static const int HUN_HASH = HashingUtils::HashString("HUN"); - static const int ISL_HASH = HashingUtils::HashString("ISL"); - static const int IDO_HASH = HashingUtils::HashString("IDO"); - static const int IBO_HASH = HashingUtils::HashString("IBO"); - static const int IND_HASH = HashingUtils::HashString("IND"); - static const int INA_HASH = HashingUtils::HashString("INA"); - static const int ILE_HASH = HashingUtils::HashString("ILE"); - static const int IKU_HASH = HashingUtils::HashString("IKU"); - static const int IPK_HASH = HashingUtils::HashString("IPK"); - static const int GLE_HASH = HashingUtils::HashString("GLE"); - static const int JAV_HASH = HashingUtils::HashString("JAV"); - static const int KAL_HASH = HashingUtils::HashString("KAL"); - static const int KAN_HASH = HashingUtils::HashString("KAN"); - static const int KAU_HASH = HashingUtils::HashString("KAU"); - static const int KAS_HASH = HashingUtils::HashString("KAS"); - static const int KAZ_HASH = HashingUtils::HashString("KAZ"); - static const int KIK_HASH = HashingUtils::HashString("KIK"); - static const int KIN_HASH = HashingUtils::HashString("KIN"); - static const int KIR_HASH = HashingUtils::HashString("KIR"); - static const int KOM_HASH = HashingUtils::HashString("KOM"); - static const int KON_HASH = HashingUtils::HashString("KON"); - static const int KUA_HASH = HashingUtils::HashString("KUA"); - static const int KUR_HASH = HashingUtils::HashString("KUR"); - static const int LAO_HASH = HashingUtils::HashString("LAO"); - static const int LAT_HASH = HashingUtils::HashString("LAT"); - static const int LAV_HASH = HashingUtils::HashString("LAV"); - static const int LIM_HASH = HashingUtils::HashString("LIM"); - static const int LIN_HASH = HashingUtils::HashString("LIN"); - static const int LIT_HASH = HashingUtils::HashString("LIT"); - static const int LUB_HASH = HashingUtils::HashString("LUB"); - static const int LTZ_HASH = HashingUtils::HashString("LTZ"); - static const int MKD_HASH = HashingUtils::HashString("MKD"); - static const int MLG_HASH = HashingUtils::HashString("MLG"); - static const int MSA_HASH = HashingUtils::HashString("MSA"); - static const int MAL_HASH = HashingUtils::HashString("MAL"); - static const int MLT_HASH = HashingUtils::HashString("MLT"); - static const int GLV_HASH = HashingUtils::HashString("GLV"); - static const int MRI_HASH = HashingUtils::HashString("MRI"); - static const int MAR_HASH = HashingUtils::HashString("MAR"); - static const int MAH_HASH = HashingUtils::HashString("MAH"); - static const int MON_HASH = HashingUtils::HashString("MON"); - static const int NAU_HASH = HashingUtils::HashString("NAU"); - static const int NAV_HASH = HashingUtils::HashString("NAV"); - static const int NDE_HASH = HashingUtils::HashString("NDE"); - static const int NBL_HASH = HashingUtils::HashString("NBL"); - static const int NDO_HASH = HashingUtils::HashString("NDO"); - static const int NEP_HASH = HashingUtils::HashString("NEP"); - static const int SME_HASH = HashingUtils::HashString("SME"); - static const int NOR_HASH = HashingUtils::HashString("NOR"); - static const int NOB_HASH = HashingUtils::HashString("NOB"); - static const int NNO_HASH = HashingUtils::HashString("NNO"); - static const int OCI_HASH = HashingUtils::HashString("OCI"); - static const int OJI_HASH = HashingUtils::HashString("OJI"); - static const int ORI_HASH = HashingUtils::HashString("ORI"); - static const int ORM_HASH = HashingUtils::HashString("ORM"); - static const int OSS_HASH = HashingUtils::HashString("OSS"); - static const int PLI_HASH = HashingUtils::HashString("PLI"); - static const int FAS_HASH = HashingUtils::HashString("FAS"); - static const int POL_HASH = HashingUtils::HashString("POL"); - static const int PUS_HASH = HashingUtils::HashString("PUS"); - static const int QUE_HASH = HashingUtils::HashString("QUE"); - static const int QAA_HASH = HashingUtils::HashString("QAA"); - static const int RON_HASH = HashingUtils::HashString("RON"); - static const int ROH_HASH = HashingUtils::HashString("ROH"); - static const int RUN_HASH = HashingUtils::HashString("RUN"); - static const int SMO_HASH = HashingUtils::HashString("SMO"); - static const int SAG_HASH = HashingUtils::HashString("SAG"); - static const int SAN_HASH = HashingUtils::HashString("SAN"); - static const int SRD_HASH = HashingUtils::HashString("SRD"); - static const int SRB_HASH = HashingUtils::HashString("SRB"); - static const int SNA_HASH = HashingUtils::HashString("SNA"); - static const int III_HASH = HashingUtils::HashString("III"); - static const int SND_HASH = HashingUtils::HashString("SND"); - static const int SIN_HASH = HashingUtils::HashString("SIN"); - static const int SLK_HASH = HashingUtils::HashString("SLK"); - static const int SLV_HASH = HashingUtils::HashString("SLV"); - static const int SOM_HASH = HashingUtils::HashString("SOM"); - static const int SOT_HASH = HashingUtils::HashString("SOT"); - static const int SUN_HASH = HashingUtils::HashString("SUN"); - static const int SWA_HASH = HashingUtils::HashString("SWA"); - static const int SSW_HASH = HashingUtils::HashString("SSW"); - static const int SWE_HASH = HashingUtils::HashString("SWE"); - static const int TGL_HASH = HashingUtils::HashString("TGL"); - static const int TAH_HASH = HashingUtils::HashString("TAH"); - static const int TGK_HASH = HashingUtils::HashString("TGK"); - static const int TAM_HASH = HashingUtils::HashString("TAM"); - static const int TAT_HASH = HashingUtils::HashString("TAT"); - static const int TEL_HASH = HashingUtils::HashString("TEL"); - static const int THA_HASH = HashingUtils::HashString("THA"); - static const int BOD_HASH = HashingUtils::HashString("BOD"); - static const int TIR_HASH = HashingUtils::HashString("TIR"); - static const int TON_HASH = HashingUtils::HashString("TON"); - static const int TSO_HASH = HashingUtils::HashString("TSO"); - static const int TSN_HASH = HashingUtils::HashString("TSN"); - static const int TUR_HASH = HashingUtils::HashString("TUR"); - static const int TUK_HASH = HashingUtils::HashString("TUK"); - static const int TWI_HASH = HashingUtils::HashString("TWI"); - static const int UIG_HASH = HashingUtils::HashString("UIG"); - static const int UKR_HASH = HashingUtils::HashString("UKR"); - static const int UZB_HASH = HashingUtils::HashString("UZB"); - static const int VEN_HASH = HashingUtils::HashString("VEN"); - static const int VOL_HASH = HashingUtils::HashString("VOL"); - static const int WLN_HASH = HashingUtils::HashString("WLN"); - static const int CYM_HASH = HashingUtils::HashString("CYM"); - static const int FRY_HASH = HashingUtils::HashString("FRY"); - static const int WOL_HASH = HashingUtils::HashString("WOL"); - static const int XHO_HASH = HashingUtils::HashString("XHO"); - static const int YID_HASH = HashingUtils::HashString("YID"); - static const int YOR_HASH = HashingUtils::HashString("YOR"); - static const int ZHA_HASH = HashingUtils::HashString("ZHA"); - static const int ZUL_HASH = HashingUtils::HashString("ZUL"); - static const int ORJ_HASH = HashingUtils::HashString("ORJ"); - static const int QPC_HASH = HashingUtils::HashString("QPC"); - static const int TNG_HASH = HashingUtils::HashString("TNG"); - static const int SRP_HASH = HashingUtils::HashString("SRP"); + static constexpr uint32_t ENG_HASH = ConstExprHashingUtils::HashString("ENG"); + static constexpr uint32_t SPA_HASH = ConstExprHashingUtils::HashString("SPA"); + static constexpr uint32_t FRA_HASH = ConstExprHashingUtils::HashString("FRA"); + static constexpr uint32_t DEU_HASH = ConstExprHashingUtils::HashString("DEU"); + static constexpr uint32_t GER_HASH = ConstExprHashingUtils::HashString("GER"); + static constexpr uint32_t ZHO_HASH = ConstExprHashingUtils::HashString("ZHO"); + static constexpr uint32_t ARA_HASH = ConstExprHashingUtils::HashString("ARA"); + static constexpr uint32_t HIN_HASH = ConstExprHashingUtils::HashString("HIN"); + static constexpr uint32_t JPN_HASH = ConstExprHashingUtils::HashString("JPN"); + static constexpr uint32_t RUS_HASH = ConstExprHashingUtils::HashString("RUS"); + static constexpr uint32_t POR_HASH = ConstExprHashingUtils::HashString("POR"); + static constexpr uint32_t ITA_HASH = ConstExprHashingUtils::HashString("ITA"); + static constexpr uint32_t URD_HASH = ConstExprHashingUtils::HashString("URD"); + static constexpr uint32_t VIE_HASH = ConstExprHashingUtils::HashString("VIE"); + static constexpr uint32_t KOR_HASH = ConstExprHashingUtils::HashString("KOR"); + static constexpr uint32_t PAN_HASH = ConstExprHashingUtils::HashString("PAN"); + static constexpr uint32_t ABK_HASH = ConstExprHashingUtils::HashString("ABK"); + static constexpr uint32_t AAR_HASH = ConstExprHashingUtils::HashString("AAR"); + static constexpr uint32_t AFR_HASH = ConstExprHashingUtils::HashString("AFR"); + static constexpr uint32_t AKA_HASH = ConstExprHashingUtils::HashString("AKA"); + static constexpr uint32_t SQI_HASH = ConstExprHashingUtils::HashString("SQI"); + static constexpr uint32_t AMH_HASH = ConstExprHashingUtils::HashString("AMH"); + static constexpr uint32_t ARG_HASH = ConstExprHashingUtils::HashString("ARG"); + static constexpr uint32_t HYE_HASH = ConstExprHashingUtils::HashString("HYE"); + static constexpr uint32_t ASM_HASH = ConstExprHashingUtils::HashString("ASM"); + static constexpr uint32_t AVA_HASH = ConstExprHashingUtils::HashString("AVA"); + static constexpr uint32_t AVE_HASH = ConstExprHashingUtils::HashString("AVE"); + static constexpr uint32_t AYM_HASH = ConstExprHashingUtils::HashString("AYM"); + static constexpr uint32_t AZE_HASH = ConstExprHashingUtils::HashString("AZE"); + static constexpr uint32_t BAM_HASH = ConstExprHashingUtils::HashString("BAM"); + static constexpr uint32_t BAK_HASH = ConstExprHashingUtils::HashString("BAK"); + static constexpr uint32_t EUS_HASH = ConstExprHashingUtils::HashString("EUS"); + static constexpr uint32_t BEL_HASH = ConstExprHashingUtils::HashString("BEL"); + static constexpr uint32_t BEN_HASH = ConstExprHashingUtils::HashString("BEN"); + static constexpr uint32_t BIH_HASH = ConstExprHashingUtils::HashString("BIH"); + static constexpr uint32_t BIS_HASH = ConstExprHashingUtils::HashString("BIS"); + static constexpr uint32_t BOS_HASH = ConstExprHashingUtils::HashString("BOS"); + static constexpr uint32_t BRE_HASH = ConstExprHashingUtils::HashString("BRE"); + static constexpr uint32_t BUL_HASH = ConstExprHashingUtils::HashString("BUL"); + static constexpr uint32_t MYA_HASH = ConstExprHashingUtils::HashString("MYA"); + static constexpr uint32_t CAT_HASH = ConstExprHashingUtils::HashString("CAT"); + static constexpr uint32_t KHM_HASH = ConstExprHashingUtils::HashString("KHM"); + static constexpr uint32_t CHA_HASH = ConstExprHashingUtils::HashString("CHA"); + static constexpr uint32_t CHE_HASH = ConstExprHashingUtils::HashString("CHE"); + static constexpr uint32_t NYA_HASH = ConstExprHashingUtils::HashString("NYA"); + static constexpr uint32_t CHU_HASH = ConstExprHashingUtils::HashString("CHU"); + static constexpr uint32_t CHV_HASH = ConstExprHashingUtils::HashString("CHV"); + static constexpr uint32_t COR_HASH = ConstExprHashingUtils::HashString("COR"); + static constexpr uint32_t COS_HASH = ConstExprHashingUtils::HashString("COS"); + static constexpr uint32_t CRE_HASH = ConstExprHashingUtils::HashString("CRE"); + static constexpr uint32_t HRV_HASH = ConstExprHashingUtils::HashString("HRV"); + static constexpr uint32_t CES_HASH = ConstExprHashingUtils::HashString("CES"); + static constexpr uint32_t DAN_HASH = ConstExprHashingUtils::HashString("DAN"); + static constexpr uint32_t DIV_HASH = ConstExprHashingUtils::HashString("DIV"); + static constexpr uint32_t NLD_HASH = ConstExprHashingUtils::HashString("NLD"); + static constexpr uint32_t DZO_HASH = ConstExprHashingUtils::HashString("DZO"); + static constexpr uint32_t ENM_HASH = ConstExprHashingUtils::HashString("ENM"); + static constexpr uint32_t EPO_HASH = ConstExprHashingUtils::HashString("EPO"); + static constexpr uint32_t EST_HASH = ConstExprHashingUtils::HashString("EST"); + static constexpr uint32_t EWE_HASH = ConstExprHashingUtils::HashString("EWE"); + static constexpr uint32_t FAO_HASH = ConstExprHashingUtils::HashString("FAO"); + static constexpr uint32_t FIJ_HASH = ConstExprHashingUtils::HashString("FIJ"); + static constexpr uint32_t FIN_HASH = ConstExprHashingUtils::HashString("FIN"); + static constexpr uint32_t FRM_HASH = ConstExprHashingUtils::HashString("FRM"); + static constexpr uint32_t FUL_HASH = ConstExprHashingUtils::HashString("FUL"); + static constexpr uint32_t GLA_HASH = ConstExprHashingUtils::HashString("GLA"); + static constexpr uint32_t GLG_HASH = ConstExprHashingUtils::HashString("GLG"); + static constexpr uint32_t LUG_HASH = ConstExprHashingUtils::HashString("LUG"); + static constexpr uint32_t KAT_HASH = ConstExprHashingUtils::HashString("KAT"); + static constexpr uint32_t ELL_HASH = ConstExprHashingUtils::HashString("ELL"); + static constexpr uint32_t GRN_HASH = ConstExprHashingUtils::HashString("GRN"); + static constexpr uint32_t GUJ_HASH = ConstExprHashingUtils::HashString("GUJ"); + static constexpr uint32_t HAT_HASH = ConstExprHashingUtils::HashString("HAT"); + static constexpr uint32_t HAU_HASH = ConstExprHashingUtils::HashString("HAU"); + static constexpr uint32_t HEB_HASH = ConstExprHashingUtils::HashString("HEB"); + static constexpr uint32_t HER_HASH = ConstExprHashingUtils::HashString("HER"); + static constexpr uint32_t HMO_HASH = ConstExprHashingUtils::HashString("HMO"); + static constexpr uint32_t HUN_HASH = ConstExprHashingUtils::HashString("HUN"); + static constexpr uint32_t ISL_HASH = ConstExprHashingUtils::HashString("ISL"); + static constexpr uint32_t IDO_HASH = ConstExprHashingUtils::HashString("IDO"); + static constexpr uint32_t IBO_HASH = ConstExprHashingUtils::HashString("IBO"); + static constexpr uint32_t IND_HASH = ConstExprHashingUtils::HashString("IND"); + static constexpr uint32_t INA_HASH = ConstExprHashingUtils::HashString("INA"); + static constexpr uint32_t ILE_HASH = ConstExprHashingUtils::HashString("ILE"); + static constexpr uint32_t IKU_HASH = ConstExprHashingUtils::HashString("IKU"); + static constexpr uint32_t IPK_HASH = ConstExprHashingUtils::HashString("IPK"); + static constexpr uint32_t GLE_HASH = ConstExprHashingUtils::HashString("GLE"); + static constexpr uint32_t JAV_HASH = ConstExprHashingUtils::HashString("JAV"); + static constexpr uint32_t KAL_HASH = ConstExprHashingUtils::HashString("KAL"); + static constexpr uint32_t KAN_HASH = ConstExprHashingUtils::HashString("KAN"); + static constexpr uint32_t KAU_HASH = ConstExprHashingUtils::HashString("KAU"); + static constexpr uint32_t KAS_HASH = ConstExprHashingUtils::HashString("KAS"); + static constexpr uint32_t KAZ_HASH = ConstExprHashingUtils::HashString("KAZ"); + static constexpr uint32_t KIK_HASH = ConstExprHashingUtils::HashString("KIK"); + static constexpr uint32_t KIN_HASH = ConstExprHashingUtils::HashString("KIN"); + static constexpr uint32_t KIR_HASH = ConstExprHashingUtils::HashString("KIR"); + static constexpr uint32_t KOM_HASH = ConstExprHashingUtils::HashString("KOM"); + static constexpr uint32_t KON_HASH = ConstExprHashingUtils::HashString("KON"); + static constexpr uint32_t KUA_HASH = ConstExprHashingUtils::HashString("KUA"); + static constexpr uint32_t KUR_HASH = ConstExprHashingUtils::HashString("KUR"); + static constexpr uint32_t LAO_HASH = ConstExprHashingUtils::HashString("LAO"); + static constexpr uint32_t LAT_HASH = ConstExprHashingUtils::HashString("LAT"); + static constexpr uint32_t LAV_HASH = ConstExprHashingUtils::HashString("LAV"); + static constexpr uint32_t LIM_HASH = ConstExprHashingUtils::HashString("LIM"); + static constexpr uint32_t LIN_HASH = ConstExprHashingUtils::HashString("LIN"); + static constexpr uint32_t LIT_HASH = ConstExprHashingUtils::HashString("LIT"); + static constexpr uint32_t LUB_HASH = ConstExprHashingUtils::HashString("LUB"); + static constexpr uint32_t LTZ_HASH = ConstExprHashingUtils::HashString("LTZ"); + static constexpr uint32_t MKD_HASH = ConstExprHashingUtils::HashString("MKD"); + static constexpr uint32_t MLG_HASH = ConstExprHashingUtils::HashString("MLG"); + static constexpr uint32_t MSA_HASH = ConstExprHashingUtils::HashString("MSA"); + static constexpr uint32_t MAL_HASH = ConstExprHashingUtils::HashString("MAL"); + static constexpr uint32_t MLT_HASH = ConstExprHashingUtils::HashString("MLT"); + static constexpr uint32_t GLV_HASH = ConstExprHashingUtils::HashString("GLV"); + static constexpr uint32_t MRI_HASH = ConstExprHashingUtils::HashString("MRI"); + static constexpr uint32_t MAR_HASH = ConstExprHashingUtils::HashString("MAR"); + static constexpr uint32_t MAH_HASH = ConstExprHashingUtils::HashString("MAH"); + static constexpr uint32_t MON_HASH = ConstExprHashingUtils::HashString("MON"); + static constexpr uint32_t NAU_HASH = ConstExprHashingUtils::HashString("NAU"); + static constexpr uint32_t NAV_HASH = ConstExprHashingUtils::HashString("NAV"); + static constexpr uint32_t NDE_HASH = ConstExprHashingUtils::HashString("NDE"); + static constexpr uint32_t NBL_HASH = ConstExprHashingUtils::HashString("NBL"); + static constexpr uint32_t NDO_HASH = ConstExprHashingUtils::HashString("NDO"); + static constexpr uint32_t NEP_HASH = ConstExprHashingUtils::HashString("NEP"); + static constexpr uint32_t SME_HASH = ConstExprHashingUtils::HashString("SME"); + static constexpr uint32_t NOR_HASH = ConstExprHashingUtils::HashString("NOR"); + static constexpr uint32_t NOB_HASH = ConstExprHashingUtils::HashString("NOB"); + static constexpr uint32_t NNO_HASH = ConstExprHashingUtils::HashString("NNO"); + static constexpr uint32_t OCI_HASH = ConstExprHashingUtils::HashString("OCI"); + static constexpr uint32_t OJI_HASH = ConstExprHashingUtils::HashString("OJI"); + static constexpr uint32_t ORI_HASH = ConstExprHashingUtils::HashString("ORI"); + static constexpr uint32_t ORM_HASH = ConstExprHashingUtils::HashString("ORM"); + static constexpr uint32_t OSS_HASH = ConstExprHashingUtils::HashString("OSS"); + static constexpr uint32_t PLI_HASH = ConstExprHashingUtils::HashString("PLI"); + static constexpr uint32_t FAS_HASH = ConstExprHashingUtils::HashString("FAS"); + static constexpr uint32_t POL_HASH = ConstExprHashingUtils::HashString("POL"); + static constexpr uint32_t PUS_HASH = ConstExprHashingUtils::HashString("PUS"); + static constexpr uint32_t QUE_HASH = ConstExprHashingUtils::HashString("QUE"); + static constexpr uint32_t QAA_HASH = ConstExprHashingUtils::HashString("QAA"); + static constexpr uint32_t RON_HASH = ConstExprHashingUtils::HashString("RON"); + static constexpr uint32_t ROH_HASH = ConstExprHashingUtils::HashString("ROH"); + static constexpr uint32_t RUN_HASH = ConstExprHashingUtils::HashString("RUN"); + static constexpr uint32_t SMO_HASH = ConstExprHashingUtils::HashString("SMO"); + static constexpr uint32_t SAG_HASH = ConstExprHashingUtils::HashString("SAG"); + static constexpr uint32_t SAN_HASH = ConstExprHashingUtils::HashString("SAN"); + static constexpr uint32_t SRD_HASH = ConstExprHashingUtils::HashString("SRD"); + static constexpr uint32_t SRB_HASH = ConstExprHashingUtils::HashString("SRB"); + static constexpr uint32_t SNA_HASH = ConstExprHashingUtils::HashString("SNA"); + static constexpr uint32_t III_HASH = ConstExprHashingUtils::HashString("III"); + static constexpr uint32_t SND_HASH = ConstExprHashingUtils::HashString("SND"); + static constexpr uint32_t SIN_HASH = ConstExprHashingUtils::HashString("SIN"); + static constexpr uint32_t SLK_HASH = ConstExprHashingUtils::HashString("SLK"); + static constexpr uint32_t SLV_HASH = ConstExprHashingUtils::HashString("SLV"); + static constexpr uint32_t SOM_HASH = ConstExprHashingUtils::HashString("SOM"); + static constexpr uint32_t SOT_HASH = ConstExprHashingUtils::HashString("SOT"); + static constexpr uint32_t SUN_HASH = ConstExprHashingUtils::HashString("SUN"); + static constexpr uint32_t SWA_HASH = ConstExprHashingUtils::HashString("SWA"); + static constexpr uint32_t SSW_HASH = ConstExprHashingUtils::HashString("SSW"); + static constexpr uint32_t SWE_HASH = ConstExprHashingUtils::HashString("SWE"); + static constexpr uint32_t TGL_HASH = ConstExprHashingUtils::HashString("TGL"); + static constexpr uint32_t TAH_HASH = ConstExprHashingUtils::HashString("TAH"); + static constexpr uint32_t TGK_HASH = ConstExprHashingUtils::HashString("TGK"); + static constexpr uint32_t TAM_HASH = ConstExprHashingUtils::HashString("TAM"); + static constexpr uint32_t TAT_HASH = ConstExprHashingUtils::HashString("TAT"); + static constexpr uint32_t TEL_HASH = ConstExprHashingUtils::HashString("TEL"); + static constexpr uint32_t THA_HASH = ConstExprHashingUtils::HashString("THA"); + static constexpr uint32_t BOD_HASH = ConstExprHashingUtils::HashString("BOD"); + static constexpr uint32_t TIR_HASH = ConstExprHashingUtils::HashString("TIR"); + static constexpr uint32_t TON_HASH = ConstExprHashingUtils::HashString("TON"); + static constexpr uint32_t TSO_HASH = ConstExprHashingUtils::HashString("TSO"); + static constexpr uint32_t TSN_HASH = ConstExprHashingUtils::HashString("TSN"); + static constexpr uint32_t TUR_HASH = ConstExprHashingUtils::HashString("TUR"); + static constexpr uint32_t TUK_HASH = ConstExprHashingUtils::HashString("TUK"); + static constexpr uint32_t TWI_HASH = ConstExprHashingUtils::HashString("TWI"); + static constexpr uint32_t UIG_HASH = ConstExprHashingUtils::HashString("UIG"); + static constexpr uint32_t UKR_HASH = ConstExprHashingUtils::HashString("UKR"); + static constexpr uint32_t UZB_HASH = ConstExprHashingUtils::HashString("UZB"); + static constexpr uint32_t VEN_HASH = ConstExprHashingUtils::HashString("VEN"); + static constexpr uint32_t VOL_HASH = ConstExprHashingUtils::HashString("VOL"); + static constexpr uint32_t WLN_HASH = ConstExprHashingUtils::HashString("WLN"); + static constexpr uint32_t CYM_HASH = ConstExprHashingUtils::HashString("CYM"); + static constexpr uint32_t FRY_HASH = ConstExprHashingUtils::HashString("FRY"); + static constexpr uint32_t WOL_HASH = ConstExprHashingUtils::HashString("WOL"); + static constexpr uint32_t XHO_HASH = ConstExprHashingUtils::HashString("XHO"); + static constexpr uint32_t YID_HASH = ConstExprHashingUtils::HashString("YID"); + static constexpr uint32_t YOR_HASH = ConstExprHashingUtils::HashString("YOR"); + static constexpr uint32_t ZHA_HASH = ConstExprHashingUtils::HashString("ZHA"); + static constexpr uint32_t ZUL_HASH = ConstExprHashingUtils::HashString("ZUL"); + static constexpr uint32_t ORJ_HASH = ConstExprHashingUtils::HashString("ORJ"); + static constexpr uint32_t QPC_HASH = ConstExprHashingUtils::HashString("QPC"); + static constexpr uint32_t TNG_HASH = ConstExprHashingUtils::HashString("TNG"); + static constexpr uint32_t SRP_HASH = ConstExprHashingUtils::HashString("SRP"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, LanguageCode& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, LanguageCode& enumValue) { if (hashCode == ENG_HASH) { @@ -832,7 +832,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, LanguageCode& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, LanguageCode& enumValue) { if (hashCode == NDO_HASH) { @@ -1782,7 +1782,7 @@ namespace Aws LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); LanguageCode enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioBufferModel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioBufferModel.cpp index 905383188a2..a3b3162188c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioBufferModel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioBufferModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAudioBufferModelMapper { - static const int DVB_HASH = HashingUtils::HashString("DVB"); - static const int ATSC_HASH = HashingUtils::HashString("ATSC"); + static constexpr uint32_t DVB_HASH = ConstExprHashingUtils::HashString("DVB"); + static constexpr uint32_t ATSC_HASH = ConstExprHashingUtils::HashString("ATSC"); M2tsAudioBufferModel GetM2tsAudioBufferModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DVB_HASH) { return M2tsAudioBufferModel::DVB; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioDuration.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioDuration.cpp index 859649c25e1..bef8445160d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioDuration.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsAudioDuration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAudioDurationMapper { - static const int DEFAULT_CODEC_DURATION_HASH = HashingUtils::HashString("DEFAULT_CODEC_DURATION"); - static const int MATCH_VIDEO_DURATION_HASH = HashingUtils::HashString("MATCH_VIDEO_DURATION"); + static constexpr uint32_t DEFAULT_CODEC_DURATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_CODEC_DURATION"); + static constexpr uint32_t MATCH_VIDEO_DURATION_HASH = ConstExprHashingUtils::HashString("MATCH_VIDEO_DURATION"); M2tsAudioDuration GetM2tsAudioDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_CODEC_DURATION_HASH) { return M2tsAudioDuration::DEFAULT_CODEC_DURATION; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsBufferModel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsBufferModel.cpp index 2a2f1e6c794..3d29f312fee 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsBufferModel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsBufferModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsBufferModelMapper { - static const int MULTIPLEX_HASH = HashingUtils::HashString("MULTIPLEX"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t MULTIPLEX_HASH = ConstExprHashingUtils::HashString("MULTIPLEX"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M2tsBufferModel GetM2tsBufferModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTIPLEX_HASH) { return M2tsBufferModel::MULTIPLEX; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsDataPtsControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsDataPtsControl.cpp index 8c7f119195c..33dee70e931 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsDataPtsControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsDataPtsControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsDataPtsControlMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int ALIGN_TO_VIDEO_HASH = HashingUtils::HashString("ALIGN_TO_VIDEO"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t ALIGN_TO_VIDEO_HASH = ConstExprHashingUtils::HashString("ALIGN_TO_VIDEO"); M2tsDataPtsControl GetM2tsDataPtsControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return M2tsDataPtsControl::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpAudioInterval.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpAudioInterval.cpp index df4f265eaad..497d1ccc6aa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpAudioInterval.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpAudioInterval.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsEbpAudioIntervalMapper { - static const int VIDEO_AND_FIXED_INTERVALS_HASH = HashingUtils::HashString("VIDEO_AND_FIXED_INTERVALS"); - static const int VIDEO_INTERVAL_HASH = HashingUtils::HashString("VIDEO_INTERVAL"); + static constexpr uint32_t VIDEO_AND_FIXED_INTERVALS_HASH = ConstExprHashingUtils::HashString("VIDEO_AND_FIXED_INTERVALS"); + static constexpr uint32_t VIDEO_INTERVAL_HASH = ConstExprHashingUtils::HashString("VIDEO_INTERVAL"); M2tsEbpAudioInterval GetM2tsEbpAudioIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIDEO_AND_FIXED_INTERVALS_HASH) { return M2tsEbpAudioInterval::VIDEO_AND_FIXED_INTERVALS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpPlacement.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpPlacement.cpp index 2e3815314fe..0143bc8476c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpPlacement.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEbpPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsEbpPlacementMapper { - static const int VIDEO_AND_AUDIO_PIDS_HASH = HashingUtils::HashString("VIDEO_AND_AUDIO_PIDS"); - static const int VIDEO_PID_HASH = HashingUtils::HashString("VIDEO_PID"); + static constexpr uint32_t VIDEO_AND_AUDIO_PIDS_HASH = ConstExprHashingUtils::HashString("VIDEO_AND_AUDIO_PIDS"); + static constexpr uint32_t VIDEO_PID_HASH = ConstExprHashingUtils::HashString("VIDEO_PID"); M2tsEbpPlacement GetM2tsEbpPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIDEO_AND_AUDIO_PIDS_HASH) { return M2tsEbpPlacement::VIDEO_AND_AUDIO_PIDS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEsRateInPes.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEsRateInPes.cpp index 8bd98cfade3..d2fd0a709d3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEsRateInPes.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsEsRateInPes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsEsRateInPesMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); M2tsEsRateInPes GetM2tsEsRateInPesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return M2tsEsRateInPes::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsForceTsVideoEbpOrder.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsForceTsVideoEbpOrder.cpp index 59d4c1441ed..391ae540edd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsForceTsVideoEbpOrder.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsForceTsVideoEbpOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsForceTsVideoEbpOrderMapper { - static const int FORCE_HASH = HashingUtils::HashString("FORCE"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t FORCE_HASH = ConstExprHashingUtils::HashString("FORCE"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); M2tsForceTsVideoEbpOrder GetM2tsForceTsVideoEbpOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORCE_HASH) { return M2tsForceTsVideoEbpOrder::FORCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsKlvMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsKlvMetadata.cpp index 0ffda70841f..357560fef0f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsKlvMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsKlvMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsKlvMetadataMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M2tsKlvMetadata GetM2tsKlvMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return M2tsKlvMetadata::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsNielsenId3.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsNielsenId3.cpp index 52eafaf182c..3e0c15d6c09 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsNielsenId3.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsNielsenId3.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsNielsenId3Mapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M2tsNielsenId3 GetM2tsNielsenId3ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return M2tsNielsenId3::INSERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsPcrControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsPcrControl.cpp index 99c62e66cf8..53c363e61a3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsPcrControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsPcrControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsPcrControlMapper { - static const int PCR_EVERY_PES_PACKET_HASH = HashingUtils::HashString("PCR_EVERY_PES_PACKET"); - static const int CONFIGURED_PCR_PERIOD_HASH = HashingUtils::HashString("CONFIGURED_PCR_PERIOD"); + static constexpr uint32_t PCR_EVERY_PES_PACKET_HASH = ConstExprHashingUtils::HashString("PCR_EVERY_PES_PACKET"); + static constexpr uint32_t CONFIGURED_PCR_PERIOD_HASH = ConstExprHashingUtils::HashString("CONFIGURED_PCR_PERIOD"); M2tsPcrControl GetM2tsPcrControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PCR_EVERY_PES_PACKET_HASH) { return M2tsPcrControl::PCR_EVERY_PES_PACKET; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsRateMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsRateMode.cpp index b7c26ddc181..3f997a89b6c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsRateMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsRateMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsRateModeMapper { - static const int VBR_HASH = HashingUtils::HashString("VBR"); - static const int CBR_HASH = HashingUtils::HashString("CBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); M2tsRateMode GetM2tsRateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VBR_HASH) { return M2tsRateMode::VBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsScte35Source.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsScte35Source.cpp index b14d27ebb4e..392f45e8bec 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsScte35Source.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsScte35Source.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsScte35SourceMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M2tsScte35Source GetM2tsScte35SourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return M2tsScte35Source::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationMarkers.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationMarkers.cpp index 6515c7816af..6d534cfc2db 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationMarkers.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationMarkers.cpp @@ -20,17 +20,17 @@ namespace Aws namespace M2tsSegmentationMarkersMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int RAI_SEGSTART_HASH = HashingUtils::HashString("RAI_SEGSTART"); - static const int RAI_ADAPT_HASH = HashingUtils::HashString("RAI_ADAPT"); - static const int PSI_SEGSTART_HASH = HashingUtils::HashString("PSI_SEGSTART"); - static const int EBP_HASH = HashingUtils::HashString("EBP"); - static const int EBP_LEGACY_HASH = HashingUtils::HashString("EBP_LEGACY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t RAI_SEGSTART_HASH = ConstExprHashingUtils::HashString("RAI_SEGSTART"); + static constexpr uint32_t RAI_ADAPT_HASH = ConstExprHashingUtils::HashString("RAI_ADAPT"); + static constexpr uint32_t PSI_SEGSTART_HASH = ConstExprHashingUtils::HashString("PSI_SEGSTART"); + static constexpr uint32_t EBP_HASH = ConstExprHashingUtils::HashString("EBP"); + static constexpr uint32_t EBP_LEGACY_HASH = ConstExprHashingUtils::HashString("EBP_LEGACY"); M2tsSegmentationMarkers GetM2tsSegmentationMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return M2tsSegmentationMarkers::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationStyle.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationStyle.cpp index d56d7b2aa0f..c80afd788aa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationStyle.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M2tsSegmentationStyle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsSegmentationStyleMapper { - static const int MAINTAIN_CADENCE_HASH = HashingUtils::HashString("MAINTAIN_CADENCE"); - static const int RESET_CADENCE_HASH = HashingUtils::HashString("RESET_CADENCE"); + static constexpr uint32_t MAINTAIN_CADENCE_HASH = ConstExprHashingUtils::HashString("MAINTAIN_CADENCE"); + static constexpr uint32_t RESET_CADENCE_HASH = ConstExprHashingUtils::HashString("RESET_CADENCE"); M2tsSegmentationStyle GetM2tsSegmentationStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAINTAIN_CADENCE_HASH) { return M2tsSegmentationStyle::MAINTAIN_CADENCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8AudioDuration.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8AudioDuration.cpp index d6e3b8de2f1..d330f1bd14c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8AudioDuration.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8AudioDuration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8AudioDurationMapper { - static const int DEFAULT_CODEC_DURATION_HASH = HashingUtils::HashString("DEFAULT_CODEC_DURATION"); - static const int MATCH_VIDEO_DURATION_HASH = HashingUtils::HashString("MATCH_VIDEO_DURATION"); + static constexpr uint32_t DEFAULT_CODEC_DURATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_CODEC_DURATION"); + static constexpr uint32_t MATCH_VIDEO_DURATION_HASH = ConstExprHashingUtils::HashString("MATCH_VIDEO_DURATION"); M3u8AudioDuration GetM3u8AudioDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_CODEC_DURATION_HASH) { return M3u8AudioDuration::DEFAULT_CODEC_DURATION; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8DataPtsControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8DataPtsControl.cpp index 91f8329a6f6..a515511ec98 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8DataPtsControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8DataPtsControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8DataPtsControlMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int ALIGN_TO_VIDEO_HASH = HashingUtils::HashString("ALIGN_TO_VIDEO"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t ALIGN_TO_VIDEO_HASH = ConstExprHashingUtils::HashString("ALIGN_TO_VIDEO"); M3u8DataPtsControl GetM3u8DataPtsControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return M3u8DataPtsControl::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8NielsenId3.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8NielsenId3.cpp index 082c50f79d6..2cb4423b0ad 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8NielsenId3.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8NielsenId3.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8NielsenId3Mapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M3u8NielsenId3 GetM3u8NielsenId3ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return M3u8NielsenId3::INSERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8PcrControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8PcrControl.cpp index f0e4ac6dcf2..59d5cdca95f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8PcrControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8PcrControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8PcrControlMapper { - static const int PCR_EVERY_PES_PACKET_HASH = HashingUtils::HashString("PCR_EVERY_PES_PACKET"); - static const int CONFIGURED_PCR_PERIOD_HASH = HashingUtils::HashString("CONFIGURED_PCR_PERIOD"); + static constexpr uint32_t PCR_EVERY_PES_PACKET_HASH = ConstExprHashingUtils::HashString("PCR_EVERY_PES_PACKET"); + static constexpr uint32_t CONFIGURED_PCR_PERIOD_HASH = ConstExprHashingUtils::HashString("CONFIGURED_PCR_PERIOD"); M3u8PcrControl GetM3u8PcrControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PCR_EVERY_PES_PACKET_HASH) { return M3u8PcrControl::PCR_EVERY_PES_PACKET; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8Scte35Source.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8Scte35Source.cpp index b752bbdd919..b38d2227571 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8Scte35Source.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/M3u8Scte35Source.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8Scte35SourceMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M3u8Scte35Source GetM3u8Scte35SourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return M3u8Scte35Source::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImageInsertionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImageInsertionMode.cpp index e328fba2e06..5d840deb3e8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImageInsertionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImageInsertionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MotionImageInsertionModeMapper { - static const int MOV_HASH = HashingUtils::HashString("MOV"); - static const int PNG_HASH = HashingUtils::HashString("PNG"); + static constexpr uint32_t MOV_HASH = ConstExprHashingUtils::HashString("MOV"); + static constexpr uint32_t PNG_HASH = ConstExprHashingUtils::HashString("PNG"); MotionImageInsertionMode GetMotionImageInsertionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MOV_HASH) { return MotionImageInsertionMode::MOV; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImagePlayback.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImagePlayback.cpp index a933795c331..0e560881c1e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImagePlayback.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MotionImagePlayback.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MotionImagePlaybackMapper { - static const int ONCE_HASH = HashingUtils::HashString("ONCE"); - static const int REPEAT_HASH = HashingUtils::HashString("REPEAT"); + static constexpr uint32_t ONCE_HASH = ConstExprHashingUtils::HashString("ONCE"); + static constexpr uint32_t REPEAT_HASH = ConstExprHashingUtils::HashString("REPEAT"); MotionImagePlayback GetMotionImagePlaybackForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONCE_HASH) { return MotionImagePlayback::ONCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovClapAtom.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovClapAtom.cpp index a843c1d83af..18bac1b8678 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovClapAtom.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovClapAtom.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MovClapAtomMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); MovClapAtom GetMovClapAtomForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return MovClapAtom::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovCslgAtom.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovCslgAtom.cpp index 51cc070a399..0ede560ff51 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovCslgAtom.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovCslgAtom.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MovCslgAtomMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); MovCslgAtom GetMovCslgAtomForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return MovCslgAtom::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovMpeg2FourCCControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovMpeg2FourCCControl.cpp index 6c4bd5849ba..135e4d03730 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovMpeg2FourCCControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovMpeg2FourCCControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MovMpeg2FourCCControlMapper { - static const int XDCAM_HASH = HashingUtils::HashString("XDCAM"); - static const int MPEG_HASH = HashingUtils::HashString("MPEG"); + static constexpr uint32_t XDCAM_HASH = ConstExprHashingUtils::HashString("XDCAM"); + static constexpr uint32_t MPEG_HASH = ConstExprHashingUtils::HashString("MPEG"); MovMpeg2FourCCControl GetMovMpeg2FourCCControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == XDCAM_HASH) { return MovMpeg2FourCCControl::XDCAM; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovPaddingControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovPaddingControl.cpp index 36573769f2d..f6cf9f1bb17 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovPaddingControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovPaddingControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MovPaddingControlMapper { - static const int OMNEON_HASH = HashingUtils::HashString("OMNEON"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t OMNEON_HASH = ConstExprHashingUtils::HashString("OMNEON"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); MovPaddingControl GetMovPaddingControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OMNEON_HASH) { return MovPaddingControl::OMNEON; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovReference.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovReference.cpp index 4759f0fe9ea..3830b2dcdaa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovReference.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MovReference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MovReferenceMapper { - static const int SELF_CONTAINED_HASH = HashingUtils::HashString("SELF_CONTAINED"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t SELF_CONTAINED_HASH = ConstExprHashingUtils::HashString("SELF_CONTAINED"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); MovReference GetMovReferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_CONTAINED_HASH) { return MovReference::SELF_CONTAINED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp3RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp3RateControlMode.cpp index a0dfaa577f4..27672703371 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp3RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp3RateControlMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mp3RateControlModeMapper { - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); Mp3RateControlMode GetMp3RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CBR_HASH) { return Mp3RateControlMode::CBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4CslgAtom.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4CslgAtom.cpp index 6b539071217..aa27349135c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4CslgAtom.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4CslgAtom.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mp4CslgAtomMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); Mp4CslgAtom GetMp4CslgAtomForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return Mp4CslgAtom::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4FreeSpaceBox.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4FreeSpaceBox.cpp index 52b26df81e7..fde2698e230 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4FreeSpaceBox.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4FreeSpaceBox.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mp4FreeSpaceBoxMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); Mp4FreeSpaceBox GetMp4FreeSpaceBoxForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return Mp4FreeSpaceBox::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4MoovPlacement.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4MoovPlacement.cpp index 07d63e5987b..44a11d7f7b5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4MoovPlacement.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mp4MoovPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mp4MoovPlacementMapper { - static const int PROGRESSIVE_DOWNLOAD_HASH = HashingUtils::HashString("PROGRESSIVE_DOWNLOAD"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t PROGRESSIVE_DOWNLOAD_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE_DOWNLOAD"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); Mp4MoovPlacement GetMp4MoovPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_DOWNLOAD_HASH) { return Mp4MoovPlacement::PROGRESSIVE_DOWNLOAD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAccessibilityCaptionHints.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAccessibilityCaptionHints.cpp index d4b8bfa16d8..c0e75d60dd9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAccessibilityCaptionHints.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAccessibilityCaptionHints.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdAccessibilityCaptionHintsMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); MpdAccessibilityCaptionHints GetMpdAccessibilityCaptionHintsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return MpdAccessibilityCaptionHints::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAudioDuration.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAudioDuration.cpp index e664ffc2280..6397bd6ced6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAudioDuration.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdAudioDuration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdAudioDurationMapper { - static const int DEFAULT_CODEC_DURATION_HASH = HashingUtils::HashString("DEFAULT_CODEC_DURATION"); - static const int MATCH_VIDEO_DURATION_HASH = HashingUtils::HashString("MATCH_VIDEO_DURATION"); + static constexpr uint32_t DEFAULT_CODEC_DURATION_HASH = ConstExprHashingUtils::HashString("DEFAULT_CODEC_DURATION"); + static constexpr uint32_t MATCH_VIDEO_DURATION_HASH = ConstExprHashingUtils::HashString("MATCH_VIDEO_DURATION"); MpdAudioDuration GetMpdAudioDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_CODEC_DURATION_HASH) { return MpdAudioDuration::DEFAULT_CODEC_DURATION; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdCaptionContainerType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdCaptionContainerType.cpp index f9a9ec6a057..e228adf41f1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdCaptionContainerType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdCaptionContainerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdCaptionContainerTypeMapper { - static const int RAW_HASH = HashingUtils::HashString("RAW"); - static const int FRAGMENTED_MP4_HASH = HashingUtils::HashString("FRAGMENTED_MP4"); + static constexpr uint32_t RAW_HASH = ConstExprHashingUtils::HashString("RAW"); + static constexpr uint32_t FRAGMENTED_MP4_HASH = ConstExprHashingUtils::HashString("FRAGMENTED_MP4"); MpdCaptionContainerType GetMpdCaptionContainerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RAW_HASH) { return MpdCaptionContainerType::RAW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdKlvMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdKlvMetadata.cpp index 2b3678a3d73..56fd19d19d8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdKlvMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdKlvMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdKlvMetadataMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); MpdKlvMetadata GetMpdKlvMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return MpdKlvMetadata::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdManifestMetadataSignaling.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdManifestMetadataSignaling.cpp index 7a264d07344..f76360d1e0e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdManifestMetadataSignaling.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdManifestMetadataSignaling.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdManifestMetadataSignalingMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); MpdManifestMetadataSignaling GetMpdManifestMetadataSignalingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return MpdManifestMetadataSignaling::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Esam.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Esam.cpp index c2d63c54248..3d6952c767e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Esam.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Esam.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdScte35EsamMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); MpdScte35Esam GetMpdScte35EsamForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return MpdScte35Esam::INSERT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Source.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Source.cpp index 7c3e83581e0..87ee43bbec4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Source.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdScte35Source.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdScte35SourceMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); MpdScte35Source GetMpdScte35SourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return MpdScte35Source::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadata.cpp index 0e3a903ea24..cd538d58eb7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdTimedMetadataMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); MpdTimedMetadata GetMpdTimedMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return MpdTimedMetadata::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadataBoxVersion.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadataBoxVersion.cpp index 2af921c22b2..afca7f45606 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadataBoxVersion.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MpdTimedMetadataBoxVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MpdTimedMetadataBoxVersionMapper { - static const int VERSION_0_HASH = HashingUtils::HashString("VERSION_0"); - static const int VERSION_1_HASH = HashingUtils::HashString("VERSION_1"); + static constexpr uint32_t VERSION_0_HASH = ConstExprHashingUtils::HashString("VERSION_0"); + static constexpr uint32_t VERSION_1_HASH = ConstExprHashingUtils::HashString("VERSION_1"); MpdTimedMetadataBoxVersion GetMpdTimedMetadataBoxVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERSION_0_HASH) { return MpdTimedMetadataBoxVersion::VERSION_0; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2AdaptiveQuantization.cpp index 13af60296f4..42372aa9c5b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2AdaptiveQuantization.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Mpeg2AdaptiveQuantizationMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); Mpeg2AdaptiveQuantization GetMpeg2AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return Mpeg2AdaptiveQuantization::OFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecLevel.cpp index 93827723fab..e91f1850048 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecLevel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Mpeg2CodecLevelMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MAIN_HASH = HashingUtils::HashString("MAIN"); - static const int HIGH1440_HASH = HashingUtils::HashString("HIGH1440"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MAIN_HASH = ConstExprHashingUtils::HashString("MAIN"); + static constexpr uint32_t HIGH1440_HASH = ConstExprHashingUtils::HashString("HIGH1440"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); Mpeg2CodecLevel GetMpeg2CodecLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return Mpeg2CodecLevel::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecProfile.cpp index 1fc989d26ba..3867992cf07 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2CodecProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2CodecProfileMapper { - static const int MAIN_HASH = HashingUtils::HashString("MAIN"); - static const int PROFILE_422_HASH = HashingUtils::HashString("PROFILE_422"); + static constexpr uint32_t MAIN_HASH = ConstExprHashingUtils::HashString("MAIN"); + static constexpr uint32_t PROFILE_422_HASH = ConstExprHashingUtils::HashString("PROFILE_422"); Mpeg2CodecProfile GetMpeg2CodecProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAIN_HASH) { return Mpeg2CodecProfile::MAIN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2DynamicSubGop.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2DynamicSubGop.cpp index 8aa34a741ee..539d9dd5785 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2DynamicSubGop.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2DynamicSubGop.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2DynamicSubGopMapper { - static const int ADAPTIVE_HASH = HashingUtils::HashString("ADAPTIVE"); - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static constexpr uint32_t ADAPTIVE_HASH = ConstExprHashingUtils::HashString("ADAPTIVE"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); Mpeg2DynamicSubGop GetMpeg2DynamicSubGopForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADAPTIVE_HASH) { return Mpeg2DynamicSubGop::ADAPTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateControl.cpp index c3758212f16..b213cd9a0cb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Mpeg2FramerateControl GetMpeg2FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Mpeg2FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateConversionAlgorithm.cpp index e3e85ddc04b..9ee988443d8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Mpeg2FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); Mpeg2FramerateConversionAlgorithm GetMpeg2FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return Mpeg2FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2GopSizeUnits.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2GopSizeUnits.cpp index fa7f6a2b2db..c564b1db815 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2GopSizeUnits.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2GopSizeUnits.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2GopSizeUnitsMapper { - static const int FRAMES_HASH = HashingUtils::HashString("FRAMES"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); + static constexpr uint32_t FRAMES_HASH = ConstExprHashingUtils::HashString("FRAMES"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); Mpeg2GopSizeUnits GetMpeg2GopSizeUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMES_HASH) { return Mpeg2GopSizeUnits::FRAMES; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2InterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2InterlaceMode.cpp index 2168b1af764..f7ed0be9d8c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2InterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2InterlaceMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Mpeg2InterlaceModeMapper { - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); - static const int TOP_FIELD_HASH = HashingUtils::HashString("TOP_FIELD"); - static const int BOTTOM_FIELD_HASH = HashingUtils::HashString("BOTTOM_FIELD"); - static const int FOLLOW_TOP_FIELD_HASH = HashingUtils::HashString("FOLLOW_TOP_FIELD"); - static const int FOLLOW_BOTTOM_FIELD_HASH = HashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t TOP_FIELD_HASH = ConstExprHashingUtils::HashString("TOP_FIELD"); + static constexpr uint32_t BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("BOTTOM_FIELD"); + static constexpr uint32_t FOLLOW_TOP_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_TOP_FIELD"); + static constexpr uint32_t FOLLOW_BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); Mpeg2InterlaceMode GetMpeg2InterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_HASH) { return Mpeg2InterlaceMode::PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2IntraDcPrecision.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2IntraDcPrecision.cpp index e41ec902ba1..81d361c08fd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2IntraDcPrecision.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2IntraDcPrecision.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Mpeg2IntraDcPrecisionMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int INTRA_DC_PRECISION_8_HASH = HashingUtils::HashString("INTRA_DC_PRECISION_8"); - static const int INTRA_DC_PRECISION_9_HASH = HashingUtils::HashString("INTRA_DC_PRECISION_9"); - static const int INTRA_DC_PRECISION_10_HASH = HashingUtils::HashString("INTRA_DC_PRECISION_10"); - static const int INTRA_DC_PRECISION_11_HASH = HashingUtils::HashString("INTRA_DC_PRECISION_11"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t INTRA_DC_PRECISION_8_HASH = ConstExprHashingUtils::HashString("INTRA_DC_PRECISION_8"); + static constexpr uint32_t INTRA_DC_PRECISION_9_HASH = ConstExprHashingUtils::HashString("INTRA_DC_PRECISION_9"); + static constexpr uint32_t INTRA_DC_PRECISION_10_HASH = ConstExprHashingUtils::HashString("INTRA_DC_PRECISION_10"); + static constexpr uint32_t INTRA_DC_PRECISION_11_HASH = ConstExprHashingUtils::HashString("INTRA_DC_PRECISION_11"); Mpeg2IntraDcPrecision GetMpeg2IntraDcPrecisionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return Mpeg2IntraDcPrecision::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ParControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ParControl.cpp index fb9d347bdcc..e9c9d2a54e6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ParControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2ParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Mpeg2ParControl GetMpeg2ParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Mpeg2ParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2QualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2QualityTuningLevel.cpp index 0a4f26fc974..1590ddb4070 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2QualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2QualityTuningLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2QualityTuningLevelMapper { - static const int SINGLE_PASS_HASH = HashingUtils::HashString("SINGLE_PASS"); - static const int MULTI_PASS_HASH = HashingUtils::HashString("MULTI_PASS"); + static constexpr uint32_t SINGLE_PASS_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS"); + static constexpr uint32_t MULTI_PASS_HASH = ConstExprHashingUtils::HashString("MULTI_PASS"); Mpeg2QualityTuningLevel GetMpeg2QualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PASS_HASH) { return Mpeg2QualityTuningLevel::SINGLE_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2RateControlMode.cpp index 0cefa3655f2..ebe3622432e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2RateControlMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2RateControlModeMapper { - static const int VBR_HASH = HashingUtils::HashString("VBR"); - static const int CBR_HASH = HashingUtils::HashString("CBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); Mpeg2RateControlMode GetMpeg2RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VBR_HASH) { return Mpeg2RateControlMode::VBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ScanTypeConversionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ScanTypeConversionMode.cpp index 625e7624583..32da68b7924 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ScanTypeConversionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2ScanTypeConversionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2ScanTypeConversionModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int INTERLACED_OPTIMIZE_HASH = HashingUtils::HashString("INTERLACED_OPTIMIZE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t INTERLACED_OPTIMIZE_HASH = ConstExprHashingUtils::HashString("INTERLACED_OPTIMIZE"); Mpeg2ScanTypeConversionMode GetMpeg2ScanTypeConversionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return Mpeg2ScanTypeConversionMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SceneChangeDetect.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SceneChangeDetect.cpp index 2685e2e82d4..6d26ac537af 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SceneChangeDetect.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SceneChangeDetect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2SceneChangeDetectMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Mpeg2SceneChangeDetect GetMpeg2SceneChangeDetectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Mpeg2SceneChangeDetect::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SlowPal.cpp index c12eff86705..ed020bede4e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2SlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Mpeg2SlowPal GetMpeg2SlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Mpeg2SlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SpatialAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SpatialAdaptiveQuantization.cpp index 16c23529648..af5848af6c8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SpatialAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2SpatialAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2SpatialAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Mpeg2SpatialAdaptiveQuantization GetMpeg2SpatialAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Mpeg2SpatialAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Syntax.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Syntax.cpp index ac43e633451..84655ff4ff6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Syntax.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Syntax.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2SyntaxMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int D_10_HASH = HashingUtils::HashString("D_10"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t D_10_HASH = ConstExprHashingUtils::HashString("D_10"); Mpeg2Syntax GetMpeg2SyntaxForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return Mpeg2Syntax::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Telecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Telecine.cpp index c4c7495c021..60b8be83913 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Telecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2Telecine.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Mpeg2TelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SOFT_HASH = HashingUtils::HashString("SOFT"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SOFT_HASH = ConstExprHashingUtils::HashString("SOFT"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); Mpeg2Telecine GetMpeg2TelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Mpeg2Telecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2TemporalAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2TemporalAdaptiveQuantization.cpp index 5d41d49cac4..f38465efc0a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2TemporalAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Mpeg2TemporalAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2TemporalAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Mpeg2TemporalAdaptiveQuantization GetMpeg2TemporalAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Mpeg2TemporalAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothAudioDeduplication.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothAudioDeduplication.cpp index dda872c2ad7..943b36c77cc 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothAudioDeduplication.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothAudioDeduplication.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MsSmoothAudioDeduplicationMapper { - static const int COMBINE_DUPLICATE_STREAMS_HASH = HashingUtils::HashString("COMBINE_DUPLICATE_STREAMS"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t COMBINE_DUPLICATE_STREAMS_HASH = ConstExprHashingUtils::HashString("COMBINE_DUPLICATE_STREAMS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); MsSmoothAudioDeduplication GetMsSmoothAudioDeduplicationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMBINE_DUPLICATE_STREAMS_HASH) { return MsSmoothAudioDeduplication::COMBINE_DUPLICATE_STREAMS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothFragmentLengthControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothFragmentLengthControl.cpp index 8e545c254e9..b62ee1f4ad3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothFragmentLengthControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothFragmentLengthControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MsSmoothFragmentLengthControlMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); - static const int GOP_MULTIPLE_HASH = HashingUtils::HashString("GOP_MULTIPLE"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); + static constexpr uint32_t GOP_MULTIPLE_HASH = ConstExprHashingUtils::HashString("GOP_MULTIPLE"); MsSmoothFragmentLengthControl GetMsSmoothFragmentLengthControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return MsSmoothFragmentLengthControl::EXACT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothManifestEncoding.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothManifestEncoding.cpp index 0020c8671c7..056354c5bc1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothManifestEncoding.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MsSmoothManifestEncoding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MsSmoothManifestEncodingMapper { - static const int UTF8_HASH = HashingUtils::HashString("UTF8"); - static const int UTF16_HASH = HashingUtils::HashString("UTF16"); + static constexpr uint32_t UTF8_HASH = ConstExprHashingUtils::HashString("UTF8"); + static constexpr uint32_t UTF16_HASH = ConstExprHashingUtils::HashString("UTF16"); MsSmoothManifestEncoding GetMsSmoothManifestEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UTF8_HASH) { return MsSmoothManifestEncoding::UTF8; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfAfdSignaling.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfAfdSignaling.cpp index ea1587759b2..39df9d16387 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfAfdSignaling.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfAfdSignaling.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MxfAfdSignalingMapper { - static const int NO_COPY_HASH = HashingUtils::HashString("NO_COPY"); - static const int COPY_FROM_VIDEO_HASH = HashingUtils::HashString("COPY_FROM_VIDEO"); + static constexpr uint32_t NO_COPY_HASH = ConstExprHashingUtils::HashString("NO_COPY"); + static constexpr uint32_t COPY_FROM_VIDEO_HASH = ConstExprHashingUtils::HashString("COPY_FROM_VIDEO"); MxfAfdSignaling GetMxfAfdSignalingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_COPY_HASH) { return MxfAfdSignaling::NO_COPY; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfProfile.cpp index bea76879c36..2aa275e2bfa 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfProfile.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MxfProfileMapper { - static const int D_10_HASH = HashingUtils::HashString("D_10"); - static const int XDCAM_HASH = HashingUtils::HashString("XDCAM"); - static const int OP1A_HASH = HashingUtils::HashString("OP1A"); - static const int XAVC_HASH = HashingUtils::HashString("XAVC"); - static const int XDCAM_RDD9_HASH = HashingUtils::HashString("XDCAM_RDD9"); + static constexpr uint32_t D_10_HASH = ConstExprHashingUtils::HashString("D_10"); + static constexpr uint32_t XDCAM_HASH = ConstExprHashingUtils::HashString("XDCAM"); + static constexpr uint32_t OP1A_HASH = ConstExprHashingUtils::HashString("OP1A"); + static constexpr uint32_t XAVC_HASH = ConstExprHashingUtils::HashString("XAVC"); + static constexpr uint32_t XDCAM_RDD9_HASH = ConstExprHashingUtils::HashString("XDCAM_RDD9"); MxfProfile GetMxfProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == D_10_HASH) { return MxfProfile::D_10; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfXavcDurationMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfXavcDurationMode.cpp index 9ac1cba5d3d..0d19b0bf156 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfXavcDurationMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/MxfXavcDurationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MxfXavcDurationModeMapper { - static const int ALLOW_ANY_DURATION_HASH = HashingUtils::HashString("ALLOW_ANY_DURATION"); - static const int DROP_FRAMES_FOR_COMPLIANCE_HASH = HashingUtils::HashString("DROP_FRAMES_FOR_COMPLIANCE"); + static constexpr uint32_t ALLOW_ANY_DURATION_HASH = ConstExprHashingUtils::HashString("ALLOW_ANY_DURATION"); + static constexpr uint32_t DROP_FRAMES_FOR_COMPLIANCE_HASH = ConstExprHashingUtils::HashString("DROP_FRAMES_FOR_COMPLIANCE"); MxfXavcDurationMode GetMxfXavcDurationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_ANY_DURATION_HASH) { return MxfXavcDurationMode::ALLOW_ANY_DURATION; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenActiveWatermarkProcessType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenActiveWatermarkProcessType.cpp index f9452b5747a..4bb9ad31fe1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenActiveWatermarkProcessType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenActiveWatermarkProcessType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NielsenActiveWatermarkProcessTypeMapper { - static const int NAES2_AND_NW_HASH = HashingUtils::HashString("NAES2_AND_NW"); - static const int CBET_HASH = HashingUtils::HashString("CBET"); - static const int NAES2_AND_NW_AND_CBET_HASH = HashingUtils::HashString("NAES2_AND_NW_AND_CBET"); + static constexpr uint32_t NAES2_AND_NW_HASH = ConstExprHashingUtils::HashString("NAES2_AND_NW"); + static constexpr uint32_t CBET_HASH = ConstExprHashingUtils::HashString("CBET"); + static constexpr uint32_t NAES2_AND_NW_AND_CBET_HASH = ConstExprHashingUtils::HashString("NAES2_AND_NW_AND_CBET"); NielsenActiveWatermarkProcessType GetNielsenActiveWatermarkProcessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAES2_AND_NW_HASH) { return NielsenActiveWatermarkProcessType::NAES2_AND_NW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenSourceWatermarkStatusType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenSourceWatermarkStatusType.cpp index 6d3ef5483cd..1acf7da9c26 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenSourceWatermarkStatusType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenSourceWatermarkStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NielsenSourceWatermarkStatusTypeMapper { - static const int CLEAN_HASH = HashingUtils::HashString("CLEAN"); - static const int WATERMARKED_HASH = HashingUtils::HashString("WATERMARKED"); + static constexpr uint32_t CLEAN_HASH = ConstExprHashingUtils::HashString("CLEAN"); + static constexpr uint32_t WATERMARKED_HASH = ConstExprHashingUtils::HashString("WATERMARKED"); NielsenSourceWatermarkStatusType GetNielsenSourceWatermarkStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLEAN_HASH) { return NielsenSourceWatermarkStatusType::CLEAN; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenUniqueTicPerAudioTrackType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenUniqueTicPerAudioTrackType.cpp index bb3b167800b..2901d3ad142 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenUniqueTicPerAudioTrackType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NielsenUniqueTicPerAudioTrackType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NielsenUniqueTicPerAudioTrackTypeMapper { - static const int RESERVE_UNIQUE_TICS_PER_TRACK_HASH = HashingUtils::HashString("RESERVE_UNIQUE_TICS_PER_TRACK"); - static const int SAME_TICS_PER_TRACK_HASH = HashingUtils::HashString("SAME_TICS_PER_TRACK"); + static constexpr uint32_t RESERVE_UNIQUE_TICS_PER_TRACK_HASH = ConstExprHashingUtils::HashString("RESERVE_UNIQUE_TICS_PER_TRACK"); + static constexpr uint32_t SAME_TICS_PER_TRACK_HASH = ConstExprHashingUtils::HashString("SAME_TICS_PER_TRACK"); NielsenUniqueTicPerAudioTrackType GetNielsenUniqueTicPerAudioTrackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESERVE_UNIQUE_TICS_PER_TRACK_HASH) { return NielsenUniqueTicPerAudioTrackType::RESERVE_UNIQUE_TICS_PER_TRACK; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpening.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpening.cpp index 733e854a9b5..03cc0e66b77 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpening.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpening.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NoiseFilterPostTemporalSharpeningMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); NoiseFilterPostTemporalSharpening GetNoiseFilterPostTemporalSharpeningForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return NoiseFilterPostTemporalSharpening::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpeningStrength.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpeningStrength.cpp index 32727b4c42f..8b81ffec33b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpeningStrength.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseFilterPostTemporalSharpeningStrength.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NoiseFilterPostTemporalSharpeningStrengthMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); NoiseFilterPostTemporalSharpeningStrength GetNoiseFilterPostTemporalSharpeningStrengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return NoiseFilterPostTemporalSharpeningStrength::LOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseReducerFilter.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseReducerFilter.cpp index 67ec8dfd799..84c8e6166eb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseReducerFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/NoiseReducerFilter.cpp @@ -20,19 +20,19 @@ namespace Aws namespace NoiseReducerFilterMapper { - static const int BILATERAL_HASH = HashingUtils::HashString("BILATERAL"); - static const int MEAN_HASH = HashingUtils::HashString("MEAN"); - static const int GAUSSIAN_HASH = HashingUtils::HashString("GAUSSIAN"); - static const int LANCZOS_HASH = HashingUtils::HashString("LANCZOS"); - static const int SHARPEN_HASH = HashingUtils::HashString("SHARPEN"); - static const int CONSERVE_HASH = HashingUtils::HashString("CONSERVE"); - static const int SPATIAL_HASH = HashingUtils::HashString("SPATIAL"); - static const int TEMPORAL_HASH = HashingUtils::HashString("TEMPORAL"); + static constexpr uint32_t BILATERAL_HASH = ConstExprHashingUtils::HashString("BILATERAL"); + static constexpr uint32_t MEAN_HASH = ConstExprHashingUtils::HashString("MEAN"); + static constexpr uint32_t GAUSSIAN_HASH = ConstExprHashingUtils::HashString("GAUSSIAN"); + static constexpr uint32_t LANCZOS_HASH = ConstExprHashingUtils::HashString("LANCZOS"); + static constexpr uint32_t SHARPEN_HASH = ConstExprHashingUtils::HashString("SHARPEN"); + static constexpr uint32_t CONSERVE_HASH = ConstExprHashingUtils::HashString("CONSERVE"); + static constexpr uint32_t SPATIAL_HASH = ConstExprHashingUtils::HashString("SPATIAL"); + static constexpr uint32_t TEMPORAL_HASH = ConstExprHashingUtils::HashString("TEMPORAL"); NoiseReducerFilter GetNoiseReducerFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BILATERAL_HASH) { return NoiseReducerFilter::BILATERAL; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Order.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Order.cpp index d9cb97c00fa..7dc0cd6bef0 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Order.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Order.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); Order GetOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return Order::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputGroupType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputGroupType.cpp index 2ef386df44a..a414f14a537 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputGroupType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputGroupType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OutputGroupTypeMapper { - static const int HLS_GROUP_SETTINGS_HASH = HashingUtils::HashString("HLS_GROUP_SETTINGS"); - static const int DASH_ISO_GROUP_SETTINGS_HASH = HashingUtils::HashString("DASH_ISO_GROUP_SETTINGS"); - static const int FILE_GROUP_SETTINGS_HASH = HashingUtils::HashString("FILE_GROUP_SETTINGS"); - static const int MS_SMOOTH_GROUP_SETTINGS_HASH = HashingUtils::HashString("MS_SMOOTH_GROUP_SETTINGS"); - static const int CMAF_GROUP_SETTINGS_HASH = HashingUtils::HashString("CMAF_GROUP_SETTINGS"); + static constexpr uint32_t HLS_GROUP_SETTINGS_HASH = ConstExprHashingUtils::HashString("HLS_GROUP_SETTINGS"); + static constexpr uint32_t DASH_ISO_GROUP_SETTINGS_HASH = ConstExprHashingUtils::HashString("DASH_ISO_GROUP_SETTINGS"); + static constexpr uint32_t FILE_GROUP_SETTINGS_HASH = ConstExprHashingUtils::HashString("FILE_GROUP_SETTINGS"); + static constexpr uint32_t MS_SMOOTH_GROUP_SETTINGS_HASH = ConstExprHashingUtils::HashString("MS_SMOOTH_GROUP_SETTINGS"); + static constexpr uint32_t CMAF_GROUP_SETTINGS_HASH = ConstExprHashingUtils::HashString("CMAF_GROUP_SETTINGS"); OutputGroupType GetOutputGroupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HLS_GROUP_SETTINGS_HASH) { return OutputGroupType::HLS_GROUP_SETTINGS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputSdt.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputSdt.cpp index 579b722a746..4d4c7aa60da 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputSdt.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/OutputSdt.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OutputSdtMapper { - static const int SDT_FOLLOW_HASH = HashingUtils::HashString("SDT_FOLLOW"); - static const int SDT_FOLLOW_IF_PRESENT_HASH = HashingUtils::HashString("SDT_FOLLOW_IF_PRESENT"); - static const int SDT_MANUAL_HASH = HashingUtils::HashString("SDT_MANUAL"); - static const int SDT_NONE_HASH = HashingUtils::HashString("SDT_NONE"); + static constexpr uint32_t SDT_FOLLOW_HASH = ConstExprHashingUtils::HashString("SDT_FOLLOW"); + static constexpr uint32_t SDT_FOLLOW_IF_PRESENT_HASH = ConstExprHashingUtils::HashString("SDT_FOLLOW_IF_PRESENT"); + static constexpr uint32_t SDT_MANUAL_HASH = ConstExprHashingUtils::HashString("SDT_MANUAL"); + static constexpr uint32_t SDT_NONE_HASH = ConstExprHashingUtils::HashString("SDT_NONE"); OutputSdt GetOutputSdtForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SDT_FOLLOW_HASH) { return OutputSdt::SDT_FOLLOW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PadVideo.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PadVideo.cpp index 7d2cf2c8e7c..49acb37b9b5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PadVideo.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PadVideo.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PadVideoMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); PadVideo GetPadVideoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return PadVideo::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetListBy.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetListBy.cpp index 7dc712b26d3..3f1bfaf3525 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetListBy.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PresetListBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PresetListByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CREATION_DATE_HASH = HashingUtils::HashString("CREATION_DATE"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CREATION_DATE_HASH = ConstExprHashingUtils::HashString("CREATION_DATE"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); PresetListBy GetPresetListByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return PresetListBy::NAME; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PricingPlan.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PricingPlan.cpp index 99a4b434d0d..70783eaa65e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/PricingPlan.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/PricingPlan.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PricingPlanMapper { - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int RESERVED_HASH = HashingUtils::HashString("RESERVED"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t RESERVED_HASH = ConstExprHashingUtils::HashString("RESERVED"); PricingPlan GetPricingPlanForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_HASH) { return PricingPlan::ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresChromaSampling.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresChromaSampling.cpp index 2df8cab2038..532c7557504 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresChromaSampling.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresChromaSampling.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProresChromaSamplingMapper { - static const int PRESERVE_444_SAMPLING_HASH = HashingUtils::HashString("PRESERVE_444_SAMPLING"); - static const int SUBSAMPLE_TO_422_HASH = HashingUtils::HashString("SUBSAMPLE_TO_422"); + static constexpr uint32_t PRESERVE_444_SAMPLING_HASH = ConstExprHashingUtils::HashString("PRESERVE_444_SAMPLING"); + static constexpr uint32_t SUBSAMPLE_TO_422_HASH = ConstExprHashingUtils::HashString("SUBSAMPLE_TO_422"); ProresChromaSampling GetProresChromaSamplingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESERVE_444_SAMPLING_HASH) { return ProresChromaSampling::PRESERVE_444_SAMPLING; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresCodecProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresCodecProfile.cpp index b040f4b35dc..50890eb187d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresCodecProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresCodecProfile.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ProresCodecProfileMapper { - static const int APPLE_PRORES_422_HASH = HashingUtils::HashString("APPLE_PRORES_422"); - static const int APPLE_PRORES_422_HQ_HASH = HashingUtils::HashString("APPLE_PRORES_422_HQ"); - static const int APPLE_PRORES_422_LT_HASH = HashingUtils::HashString("APPLE_PRORES_422_LT"); - static const int APPLE_PRORES_422_PROXY_HASH = HashingUtils::HashString("APPLE_PRORES_422_PROXY"); - static const int APPLE_PRORES_4444_HASH = HashingUtils::HashString("APPLE_PRORES_4444"); - static const int APPLE_PRORES_4444_XQ_HASH = HashingUtils::HashString("APPLE_PRORES_4444_XQ"); + static constexpr uint32_t APPLE_PRORES_422_HASH = ConstExprHashingUtils::HashString("APPLE_PRORES_422"); + static constexpr uint32_t APPLE_PRORES_422_HQ_HASH = ConstExprHashingUtils::HashString("APPLE_PRORES_422_HQ"); + static constexpr uint32_t APPLE_PRORES_422_LT_HASH = ConstExprHashingUtils::HashString("APPLE_PRORES_422_LT"); + static constexpr uint32_t APPLE_PRORES_422_PROXY_HASH = ConstExprHashingUtils::HashString("APPLE_PRORES_422_PROXY"); + static constexpr uint32_t APPLE_PRORES_4444_HASH = ConstExprHashingUtils::HashString("APPLE_PRORES_4444"); + static constexpr uint32_t APPLE_PRORES_4444_XQ_HASH = ConstExprHashingUtils::HashString("APPLE_PRORES_4444_XQ"); ProresCodecProfile GetProresCodecProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLE_PRORES_422_HASH) { return ProresCodecProfile::APPLE_PRORES_422; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateControl.cpp index e9f2fbed487..b63a5d3df2c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProresFramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); ProresFramerateControl GetProresFramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return ProresFramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateConversionAlgorithm.cpp index 2d1626771f3..baa88e544bd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresFramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProresFramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); ProresFramerateConversionAlgorithm GetProresFramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return ProresFramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresInterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresInterlaceMode.cpp index c9705cd4103..3f0d80a70db 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresInterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresInterlaceMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProresInterlaceModeMapper { - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); - static const int TOP_FIELD_HASH = HashingUtils::HashString("TOP_FIELD"); - static const int BOTTOM_FIELD_HASH = HashingUtils::HashString("BOTTOM_FIELD"); - static const int FOLLOW_TOP_FIELD_HASH = HashingUtils::HashString("FOLLOW_TOP_FIELD"); - static const int FOLLOW_BOTTOM_FIELD_HASH = HashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t TOP_FIELD_HASH = ConstExprHashingUtils::HashString("TOP_FIELD"); + static constexpr uint32_t BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("BOTTOM_FIELD"); + static constexpr uint32_t FOLLOW_TOP_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_TOP_FIELD"); + static constexpr uint32_t FOLLOW_BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); ProresInterlaceMode GetProresInterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_HASH) { return ProresInterlaceMode::PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresParControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresParControl.cpp index 6a0ec019009..d1cbbab3981 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresParControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProresParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); ProresParControl GetProresParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return ProresParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresScanTypeConversionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresScanTypeConversionMode.cpp index 69ca14ae2ea..ceffd174af1 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresScanTypeConversionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresScanTypeConversionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProresScanTypeConversionModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int INTERLACED_OPTIMIZE_HASH = HashingUtils::HashString("INTERLACED_OPTIMIZE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t INTERLACED_OPTIMIZE_HASH = ConstExprHashingUtils::HashString("INTERLACED_OPTIMIZE"); ProresScanTypeConversionMode GetProresScanTypeConversionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return ProresScanTypeConversionMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresSlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresSlowPal.cpp index 75cbe6ebfb7..74f51581b3c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresSlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresSlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProresSlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); ProresSlowPal GetProresSlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return ProresSlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresTelecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresTelecine.cpp index 7b05a23ea5a..d97e8d6f014 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresTelecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ProresTelecine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProresTelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); ProresTelecine GetProresTelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ProresTelecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueListBy.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueListBy.cpp index 1ceb376cbcb..dd32e7b152c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueListBy.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueListBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueueListByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CREATION_DATE_HASH = HashingUtils::HashString("CREATION_DATE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CREATION_DATE_HASH = ConstExprHashingUtils::HashString("CREATION_DATE"); QueueListBy GetQueueListByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return QueueListBy::NAME; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueStatus.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueStatus.cpp index d4e6b2397cd..ed17f6bcb26 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/QueueStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueueStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); QueueStatus GetQueueStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return QueueStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RenewalType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RenewalType.cpp index 55ad0345d3b..16942f1b6e5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RenewalType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RenewalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RenewalTypeMapper { - static const int AUTO_RENEW_HASH = HashingUtils::HashString("AUTO_RENEW"); - static const int EXPIRE_HASH = HashingUtils::HashString("EXPIRE"); + static constexpr uint32_t AUTO_RENEW_HASH = ConstExprHashingUtils::HashString("AUTO_RENEW"); + static constexpr uint32_t EXPIRE_HASH = ConstExprHashingUtils::HashString("EXPIRE"); RenewalType GetRenewalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_RENEW_HASH) { return RenewalType::AUTO_RENEW; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RequiredFlag.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RequiredFlag.cpp index acc36726ee0..a07789930b7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RequiredFlag.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RequiredFlag.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RequiredFlagMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); RequiredFlag GetRequiredFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RequiredFlag::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ReservationPlanStatus.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ReservationPlanStatus.cpp index 79b25b96625..d5a3aed18d7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ReservationPlanStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ReservationPlanStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReservationPlanStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ReservationPlanStatus GetReservationPlanStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ReservationPlanStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RespondToAfd.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RespondToAfd.cpp index 8b4869e877f..51cdf900fcc 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RespondToAfd.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RespondToAfd.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RespondToAfdMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int RESPOND_HASH = HashingUtils::HashString("RESPOND"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t RESPOND_HASH = ConstExprHashingUtils::HashString("RESPOND"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); RespondToAfd GetRespondToAfdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return RespondToAfd::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RuleType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RuleType.cpp index 10e2b5a69f3..84acb18d394 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/RuleType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/RuleType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RuleTypeMapper { - static const int MIN_TOP_RENDITION_SIZE_HASH = HashingUtils::HashString("MIN_TOP_RENDITION_SIZE"); - static const int MIN_BOTTOM_RENDITION_SIZE_HASH = HashingUtils::HashString("MIN_BOTTOM_RENDITION_SIZE"); - static const int FORCE_INCLUDE_RENDITIONS_HASH = HashingUtils::HashString("FORCE_INCLUDE_RENDITIONS"); - static const int ALLOWED_RENDITIONS_HASH = HashingUtils::HashString("ALLOWED_RENDITIONS"); + static constexpr uint32_t MIN_TOP_RENDITION_SIZE_HASH = ConstExprHashingUtils::HashString("MIN_TOP_RENDITION_SIZE"); + static constexpr uint32_t MIN_BOTTOM_RENDITION_SIZE_HASH = ConstExprHashingUtils::HashString("MIN_BOTTOM_RENDITION_SIZE"); + static constexpr uint32_t FORCE_INCLUDE_RENDITIONS_HASH = ConstExprHashingUtils::HashString("FORCE_INCLUDE_RENDITIONS"); + static constexpr uint32_t ALLOWED_RENDITIONS_HASH = ConstExprHashingUtils::HashString("ALLOWED_RENDITIONS"); RuleType GetRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MIN_TOP_RENDITION_SIZE_HASH) { return RuleType::MIN_TOP_RENDITION_SIZE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ObjectCannedAcl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ObjectCannedAcl.cpp index 52e4a1b954f..34fe0132b5c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ObjectCannedAcl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ObjectCannedAcl.cpp @@ -20,15 +20,15 @@ namespace Aws namespace S3ObjectCannedAclMapper { - static const int PUBLIC_READ_HASH = HashingUtils::HashString("PUBLIC_READ"); - static const int AUTHENTICATED_READ_HASH = HashingUtils::HashString("AUTHENTICATED_READ"); - static const int BUCKET_OWNER_READ_HASH = HashingUtils::HashString("BUCKET_OWNER_READ"); - static const int BUCKET_OWNER_FULL_CONTROL_HASH = HashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); + static constexpr uint32_t PUBLIC_READ_HASH = ConstExprHashingUtils::HashString("PUBLIC_READ"); + static constexpr uint32_t AUTHENTICATED_READ_HASH = ConstExprHashingUtils::HashString("AUTHENTICATED_READ"); + static constexpr uint32_t BUCKET_OWNER_READ_HASH = ConstExprHashingUtils::HashString("BUCKET_OWNER_READ"); + static constexpr uint32_t BUCKET_OWNER_FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); S3ObjectCannedAcl GetS3ObjectCannedAclForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC_READ_HASH) { return S3ObjectCannedAcl::PUBLIC_READ; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ServerSideEncryptionType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ServerSideEncryptionType.cpp index 186043615f6..049d5dbe0d5 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ServerSideEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3ServerSideEncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3ServerSideEncryptionTypeMapper { - static const int SERVER_SIDE_ENCRYPTION_S3_HASH = HashingUtils::HashString("SERVER_SIDE_ENCRYPTION_S3"); - static const int SERVER_SIDE_ENCRYPTION_KMS_HASH = HashingUtils::HashString("SERVER_SIDE_ENCRYPTION_KMS"); + static constexpr uint32_t SERVER_SIDE_ENCRYPTION_S3_HASH = ConstExprHashingUtils::HashString("SERVER_SIDE_ENCRYPTION_S3"); + static constexpr uint32_t SERVER_SIDE_ENCRYPTION_KMS_HASH = ConstExprHashingUtils::HashString("SERVER_SIDE_ENCRYPTION_KMS"); S3ServerSideEncryptionType GetS3ServerSideEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVER_SIDE_ENCRYPTION_S3_HASH) { return S3ServerSideEncryptionType::SERVER_SIDE_ENCRYPTION_S3; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3StorageClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3StorageClass.cpp index b0804e42e20..3a5e20f2fbe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/S3StorageClass.cpp @@ -20,18 +20,18 @@ namespace Aws namespace S3StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); S3StorageClass GetS3StorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return S3StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SampleRangeConversion.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SampleRangeConversion.cpp index 47fb3efc451..c68d9a06bb8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SampleRangeConversion.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SampleRangeConversion.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SampleRangeConversionMapper { - static const int LIMITED_RANGE_SQUEEZE_HASH = HashingUtils::HashString("LIMITED_RANGE_SQUEEZE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int LIMITED_RANGE_CLIP_HASH = HashingUtils::HashString("LIMITED_RANGE_CLIP"); + static constexpr uint32_t LIMITED_RANGE_SQUEEZE_HASH = ConstExprHashingUtils::HashString("LIMITED_RANGE_SQUEEZE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t LIMITED_RANGE_CLIP_HASH = ConstExprHashingUtils::HashString("LIMITED_RANGE_CLIP"); SampleRangeConversion GetSampleRangeConversionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIMITED_RANGE_SQUEEZE_HASH) { return SampleRangeConversion::LIMITED_RANGE_SQUEEZE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ScalingBehavior.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ScalingBehavior.cpp index 6804339bc6b..9da4d001efb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/ScalingBehavior.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/ScalingBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScalingBehaviorMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int STRETCH_TO_OUTPUT_HASH = HashingUtils::HashString("STRETCH_TO_OUTPUT"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t STRETCH_TO_OUTPUT_HASH = ConstExprHashingUtils::HashString("STRETCH_TO_OUTPUT"); ScalingBehavior GetScalingBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ScalingBehavior::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SccDestinationFramerate.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SccDestinationFramerate.cpp index 9b03963dc46..046b7ec5ba7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SccDestinationFramerate.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SccDestinationFramerate.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SccDestinationFramerateMapper { - static const int FRAMERATE_23_97_HASH = HashingUtils::HashString("FRAMERATE_23_97"); - static const int FRAMERATE_24_HASH = HashingUtils::HashString("FRAMERATE_24"); - static const int FRAMERATE_25_HASH = HashingUtils::HashString("FRAMERATE_25"); - static const int FRAMERATE_29_97_DROPFRAME_HASH = HashingUtils::HashString("FRAMERATE_29_97_DROPFRAME"); - static const int FRAMERATE_29_97_NON_DROPFRAME_HASH = HashingUtils::HashString("FRAMERATE_29_97_NON_DROPFRAME"); + static constexpr uint32_t FRAMERATE_23_97_HASH = ConstExprHashingUtils::HashString("FRAMERATE_23_97"); + static constexpr uint32_t FRAMERATE_24_HASH = ConstExprHashingUtils::HashString("FRAMERATE_24"); + static constexpr uint32_t FRAMERATE_25_HASH = ConstExprHashingUtils::HashString("FRAMERATE_25"); + static constexpr uint32_t FRAMERATE_29_97_DROPFRAME_HASH = ConstExprHashingUtils::HashString("FRAMERATE_29_97_DROPFRAME"); + static constexpr uint32_t FRAMERATE_29_97_NON_DROPFRAME_HASH = ConstExprHashingUtils::HashString("FRAMERATE_29_97_NON_DROPFRAME"); SccDestinationFramerate GetSccDestinationFramerateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMERATE_23_97_HASH) { return SccDestinationFramerate::FRAMERATE_23_97; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SimulateReservedQueue.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SimulateReservedQueue.cpp index c34eef1f22d..26e9999846d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SimulateReservedQueue.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SimulateReservedQueue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SimulateReservedQueueMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); SimulateReservedQueue GetSimulateReservedQueueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return SimulateReservedQueue::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SrtStylePassthrough.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SrtStylePassthrough.cpp index ced46078302..b0daeca75fe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/SrtStylePassthrough.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/SrtStylePassthrough.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SrtStylePassthroughMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); SrtStylePassthrough GetSrtStylePassthroughForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return SrtStylePassthrough::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/StatusUpdateInterval.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/StatusUpdateInterval.cpp index 5360f6bb8ec..3f55eb9912a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/StatusUpdateInterval.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/StatusUpdateInterval.cpp @@ -20,26 +20,26 @@ namespace Aws namespace StatusUpdateIntervalMapper { - static const int SECONDS_10_HASH = HashingUtils::HashString("SECONDS_10"); - static const int SECONDS_12_HASH = HashingUtils::HashString("SECONDS_12"); - static const int SECONDS_15_HASH = HashingUtils::HashString("SECONDS_15"); - static const int SECONDS_20_HASH = HashingUtils::HashString("SECONDS_20"); - static const int SECONDS_30_HASH = HashingUtils::HashString("SECONDS_30"); - static const int SECONDS_60_HASH = HashingUtils::HashString("SECONDS_60"); - static const int SECONDS_120_HASH = HashingUtils::HashString("SECONDS_120"); - static const int SECONDS_180_HASH = HashingUtils::HashString("SECONDS_180"); - static const int SECONDS_240_HASH = HashingUtils::HashString("SECONDS_240"); - static const int SECONDS_300_HASH = HashingUtils::HashString("SECONDS_300"); - static const int SECONDS_360_HASH = HashingUtils::HashString("SECONDS_360"); - static const int SECONDS_420_HASH = HashingUtils::HashString("SECONDS_420"); - static const int SECONDS_480_HASH = HashingUtils::HashString("SECONDS_480"); - static const int SECONDS_540_HASH = HashingUtils::HashString("SECONDS_540"); - static const int SECONDS_600_HASH = HashingUtils::HashString("SECONDS_600"); + static constexpr uint32_t SECONDS_10_HASH = ConstExprHashingUtils::HashString("SECONDS_10"); + static constexpr uint32_t SECONDS_12_HASH = ConstExprHashingUtils::HashString("SECONDS_12"); + static constexpr uint32_t SECONDS_15_HASH = ConstExprHashingUtils::HashString("SECONDS_15"); + static constexpr uint32_t SECONDS_20_HASH = ConstExprHashingUtils::HashString("SECONDS_20"); + static constexpr uint32_t SECONDS_30_HASH = ConstExprHashingUtils::HashString("SECONDS_30"); + static constexpr uint32_t SECONDS_60_HASH = ConstExprHashingUtils::HashString("SECONDS_60"); + static constexpr uint32_t SECONDS_120_HASH = ConstExprHashingUtils::HashString("SECONDS_120"); + static constexpr uint32_t SECONDS_180_HASH = ConstExprHashingUtils::HashString("SECONDS_180"); + static constexpr uint32_t SECONDS_240_HASH = ConstExprHashingUtils::HashString("SECONDS_240"); + static constexpr uint32_t SECONDS_300_HASH = ConstExprHashingUtils::HashString("SECONDS_300"); + static constexpr uint32_t SECONDS_360_HASH = ConstExprHashingUtils::HashString("SECONDS_360"); + static constexpr uint32_t SECONDS_420_HASH = ConstExprHashingUtils::HashString("SECONDS_420"); + static constexpr uint32_t SECONDS_480_HASH = ConstExprHashingUtils::HashString("SECONDS_480"); + static constexpr uint32_t SECONDS_540_HASH = ConstExprHashingUtils::HashString("SECONDS_540"); + static constexpr uint32_t SECONDS_600_HASH = ConstExprHashingUtils::HashString("SECONDS_600"); StatusUpdateInterval GetStatusUpdateIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECONDS_10_HASH) { return StatusUpdateInterval::SECONDS_10; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TeletextPageType.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TeletextPageType.cpp index 38807a4c346..94c1136dfb7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TeletextPageType.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TeletextPageType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TeletextPageTypeMapper { - static const int PAGE_TYPE_INITIAL_HASH = HashingUtils::HashString("PAGE_TYPE_INITIAL"); - static const int PAGE_TYPE_SUBTITLE_HASH = HashingUtils::HashString("PAGE_TYPE_SUBTITLE"); - static const int PAGE_TYPE_ADDL_INFO_HASH = HashingUtils::HashString("PAGE_TYPE_ADDL_INFO"); - static const int PAGE_TYPE_PROGRAM_SCHEDULE_HASH = HashingUtils::HashString("PAGE_TYPE_PROGRAM_SCHEDULE"); - static const int PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE_HASH = HashingUtils::HashString("PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE"); + static constexpr uint32_t PAGE_TYPE_INITIAL_HASH = ConstExprHashingUtils::HashString("PAGE_TYPE_INITIAL"); + static constexpr uint32_t PAGE_TYPE_SUBTITLE_HASH = ConstExprHashingUtils::HashString("PAGE_TYPE_SUBTITLE"); + static constexpr uint32_t PAGE_TYPE_ADDL_INFO_HASH = ConstExprHashingUtils::HashString("PAGE_TYPE_ADDL_INFO"); + static constexpr uint32_t PAGE_TYPE_PROGRAM_SCHEDULE_HASH = ConstExprHashingUtils::HashString("PAGE_TYPE_PROGRAM_SCHEDULE"); + static constexpr uint32_t PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE_HASH = ConstExprHashingUtils::HashString("PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE"); TeletextPageType GetTeletextPageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAGE_TYPE_INITIAL_HASH) { return TeletextPageType::PAGE_TYPE_INITIAL; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeBurninPosition.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeBurninPosition.cpp index 2be2824f7fe..ff2528a4cbb 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeBurninPosition.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeBurninPosition.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TimecodeBurninPositionMapper { - static const int TOP_CENTER_HASH = HashingUtils::HashString("TOP_CENTER"); - static const int TOP_LEFT_HASH = HashingUtils::HashString("TOP_LEFT"); - static const int TOP_RIGHT_HASH = HashingUtils::HashString("TOP_RIGHT"); - static const int MIDDLE_LEFT_HASH = HashingUtils::HashString("MIDDLE_LEFT"); - static const int MIDDLE_CENTER_HASH = HashingUtils::HashString("MIDDLE_CENTER"); - static const int MIDDLE_RIGHT_HASH = HashingUtils::HashString("MIDDLE_RIGHT"); - static const int BOTTOM_LEFT_HASH = HashingUtils::HashString("BOTTOM_LEFT"); - static const int BOTTOM_CENTER_HASH = HashingUtils::HashString("BOTTOM_CENTER"); - static const int BOTTOM_RIGHT_HASH = HashingUtils::HashString("BOTTOM_RIGHT"); + static constexpr uint32_t TOP_CENTER_HASH = ConstExprHashingUtils::HashString("TOP_CENTER"); + static constexpr uint32_t TOP_LEFT_HASH = ConstExprHashingUtils::HashString("TOP_LEFT"); + static constexpr uint32_t TOP_RIGHT_HASH = ConstExprHashingUtils::HashString("TOP_RIGHT"); + static constexpr uint32_t MIDDLE_LEFT_HASH = ConstExprHashingUtils::HashString("MIDDLE_LEFT"); + static constexpr uint32_t MIDDLE_CENTER_HASH = ConstExprHashingUtils::HashString("MIDDLE_CENTER"); + static constexpr uint32_t MIDDLE_RIGHT_HASH = ConstExprHashingUtils::HashString("MIDDLE_RIGHT"); + static constexpr uint32_t BOTTOM_LEFT_HASH = ConstExprHashingUtils::HashString("BOTTOM_LEFT"); + static constexpr uint32_t BOTTOM_CENTER_HASH = ConstExprHashingUtils::HashString("BOTTOM_CENTER"); + static constexpr uint32_t BOTTOM_RIGHT_HASH = ConstExprHashingUtils::HashString("BOTTOM_RIGHT"); TimecodeBurninPosition GetTimecodeBurninPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOP_CENTER_HASH) { return TimecodeBurninPosition::TOP_CENTER; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeSource.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeSource.cpp index 3d23eacfad5..720a02cca36 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeSource.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimecodeSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TimecodeSourceMapper { - static const int EMBEDDED_HASH = HashingUtils::HashString("EMBEDDED"); - static const int ZEROBASED_HASH = HashingUtils::HashString("ZEROBASED"); - static const int SPECIFIEDSTART_HASH = HashingUtils::HashString("SPECIFIEDSTART"); + static constexpr uint32_t EMBEDDED_HASH = ConstExprHashingUtils::HashString("EMBEDDED"); + static constexpr uint32_t ZEROBASED_HASH = ConstExprHashingUtils::HashString("ZEROBASED"); + static constexpr uint32_t SPECIFIEDSTART_HASH = ConstExprHashingUtils::HashString("SPECIFIEDSTART"); TimecodeSource GetTimecodeSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMBEDDED_HASH) { return TimecodeSource::EMBEDDED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimedMetadata.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimedMetadata.cpp index c188fec3a67..ab8551357ed 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimedMetadata.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TimedMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimedMetadataMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); TimedMetadata GetTimedMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return TimedMetadata::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TsPtsOffset.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TsPtsOffset.cpp index 72aaa0bc8a6..665f21b38ed 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TsPtsOffset.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TsPtsOffset.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TsPtsOffsetMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); TsPtsOffset GetTsPtsOffsetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return TsPtsOffset::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TtmlStylePassthrough.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TtmlStylePassthrough.cpp index ec7a9e333a8..d8879cc44e7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/TtmlStylePassthrough.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/TtmlStylePassthrough.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TtmlStylePassthroughMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); TtmlStylePassthrough GetTtmlStylePassthroughForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return TtmlStylePassthrough::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Type.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Type.cpp index f8619f187e8..dc272e18c8a 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYSTEM_HASH) { return Type::SYSTEM; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Class.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Class.cpp index f7eb7609133..f6a0ab628b9 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Class.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Class.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Vc3ClassMapper { - static const int CLASS_145_8BIT_HASH = HashingUtils::HashString("CLASS_145_8BIT"); - static const int CLASS_220_8BIT_HASH = HashingUtils::HashString("CLASS_220_8BIT"); - static const int CLASS_220_10BIT_HASH = HashingUtils::HashString("CLASS_220_10BIT"); + static constexpr uint32_t CLASS_145_8BIT_HASH = ConstExprHashingUtils::HashString("CLASS_145_8BIT"); + static constexpr uint32_t CLASS_220_8BIT_HASH = ConstExprHashingUtils::HashString("CLASS_220_8BIT"); + static constexpr uint32_t CLASS_220_10BIT_HASH = ConstExprHashingUtils::HashString("CLASS_220_10BIT"); Vc3Class GetVc3ClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASS_145_8BIT_HASH) { return Vc3Class::CLASS_145_8BIT; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateControl.cpp index 6367c595ce4..fbc7b195a5e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vc3FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Vc3FramerateControl GetVc3FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Vc3FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateConversionAlgorithm.cpp index 960cea9973e..54efc9bf339 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Vc3FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); Vc3FramerateConversionAlgorithm GetVc3FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return Vc3FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3InterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3InterlaceMode.cpp index 99764027da7..c948ada5349 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3InterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3InterlaceMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vc3InterlaceModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); Vc3InterlaceMode GetVc3InterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return Vc3InterlaceMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3ScanTypeConversionMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3ScanTypeConversionMode.cpp index c11b7039e6d..3d9b92e183c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3ScanTypeConversionMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3ScanTypeConversionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vc3ScanTypeConversionModeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int INTERLACED_OPTIMIZE_HASH = HashingUtils::HashString("INTERLACED_OPTIMIZE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t INTERLACED_OPTIMIZE_HASH = ConstExprHashingUtils::HashString("INTERLACED_OPTIMIZE"); Vc3ScanTypeConversionMode GetVc3ScanTypeConversionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return Vc3ScanTypeConversionMode::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3SlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3SlowPal.cpp index 518eb6ff25b..f78d5433e99 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3SlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3SlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vc3SlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Vc3SlowPal GetVc3SlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Vc3SlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Telecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Telecine.cpp index 77738630722..efc362a71c3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Telecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vc3Telecine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vc3TelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); Vc3Telecine GetVc3TelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Vc3Telecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/VchipAction.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/VchipAction.cpp index 87dbc89fdda..8b3d2345a10 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/VchipAction.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/VchipAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VchipActionMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int STRIP_HASH = HashingUtils::HashString("STRIP"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t STRIP_HASH = ConstExprHashingUtils::HashString("STRIP"); VchipAction GetVchipActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return VchipAction::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoCodec.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoCodec.cpp index a6634229c84..a87c980e0e8 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoCodec.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoCodec.cpp @@ -20,23 +20,23 @@ namespace Aws namespace VideoCodecMapper { - static const int AV1_HASH = HashingUtils::HashString("AV1"); - static const int AVC_INTRA_HASH = HashingUtils::HashString("AVC_INTRA"); - static const int FRAME_CAPTURE_HASH = HashingUtils::HashString("FRAME_CAPTURE"); - static const int H_264_HASH = HashingUtils::HashString("H_264"); - static const int H_265_HASH = HashingUtils::HashString("H_265"); - static const int MPEG2_HASH = HashingUtils::HashString("MPEG2"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int PRORES_HASH = HashingUtils::HashString("PRORES"); - static const int VC3_HASH = HashingUtils::HashString("VC3"); - static const int VP8_HASH = HashingUtils::HashString("VP8"); - static const int VP9_HASH = HashingUtils::HashString("VP9"); - static const int XAVC_HASH = HashingUtils::HashString("XAVC"); + static constexpr uint32_t AV1_HASH = ConstExprHashingUtils::HashString("AV1"); + static constexpr uint32_t AVC_INTRA_HASH = ConstExprHashingUtils::HashString("AVC_INTRA"); + static constexpr uint32_t FRAME_CAPTURE_HASH = ConstExprHashingUtils::HashString("FRAME_CAPTURE"); + static constexpr uint32_t H_264_HASH = ConstExprHashingUtils::HashString("H_264"); + static constexpr uint32_t H_265_HASH = ConstExprHashingUtils::HashString("H_265"); + static constexpr uint32_t MPEG2_HASH = ConstExprHashingUtils::HashString("MPEG2"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t PRORES_HASH = ConstExprHashingUtils::HashString("PRORES"); + static constexpr uint32_t VC3_HASH = ConstExprHashingUtils::HashString("VC3"); + static constexpr uint32_t VP8_HASH = ConstExprHashingUtils::HashString("VP8"); + static constexpr uint32_t VP9_HASH = ConstExprHashingUtils::HashString("VP9"); + static constexpr uint32_t XAVC_HASH = ConstExprHashingUtils::HashString("XAVC"); VideoCodec GetVideoCodecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AV1_HASH) { return VideoCodec::AV1; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoTimecodeInsertion.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoTimecodeInsertion.cpp index 7d999c3f986..83807df5cbe 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoTimecodeInsertion.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/VideoTimecodeInsertion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VideoTimecodeInsertionMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int PIC_TIMING_SEI_HASH = HashingUtils::HashString("PIC_TIMING_SEI"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t PIC_TIMING_SEI_HASH = ConstExprHashingUtils::HashString("PIC_TIMING_SEI"); VideoTimecodeInsertion GetVideoTimecodeInsertionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return VideoTimecodeInsertion::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateControl.cpp index de9be1a0748..df44be0c311 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vp8FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Vp8FramerateControl GetVp8FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Vp8FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateConversionAlgorithm.cpp index 087efe54bc2..12d6408624c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Vp8FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); Vp8FramerateConversionAlgorithm GetVp8FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return Vp8FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8ParControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8ParControl.cpp index b37b778fec4..fe95ada40ae 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8ParControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8ParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vp8ParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Vp8ParControl GetVp8ParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Vp8ParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8QualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8QualityTuningLevel.cpp index ac40e571982..29bc4f7c7f6 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8QualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8QualityTuningLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vp8QualityTuningLevelMapper { - static const int MULTI_PASS_HASH = HashingUtils::HashString("MULTI_PASS"); - static const int MULTI_PASS_HQ_HASH = HashingUtils::HashString("MULTI_PASS_HQ"); + static constexpr uint32_t MULTI_PASS_HASH = ConstExprHashingUtils::HashString("MULTI_PASS"); + static constexpr uint32_t MULTI_PASS_HQ_HASH = ConstExprHashingUtils::HashString("MULTI_PASS_HQ"); Vp8QualityTuningLevel GetVp8QualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_PASS_HASH) { return Vp8QualityTuningLevel::MULTI_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8RateControlMode.cpp index 9df1e660085..7cb7dec350e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp8RateControlMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace Vp8RateControlModeMapper { - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); Vp8RateControlMode GetVp8RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VBR_HASH) { return Vp8RateControlMode::VBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateControl.cpp index 33a9b8dd76c..684a0aafd4e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vp9FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Vp9FramerateControl GetVp9FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Vp9FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateConversionAlgorithm.cpp index 622c571887c..b5b67f1ec6e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9FramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Vp9FramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); Vp9FramerateConversionAlgorithm GetVp9FramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return Vp9FramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9ParControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9ParControl.cpp index c446bab901d..ff90932240e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9ParControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9ParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vp9ParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); Vp9ParControl GetVp9ParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return Vp9ParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9QualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9QualityTuningLevel.cpp index 299d2641cf2..75eddfb0e42 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9QualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9QualityTuningLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Vp9QualityTuningLevelMapper { - static const int MULTI_PASS_HASH = HashingUtils::HashString("MULTI_PASS"); - static const int MULTI_PASS_HQ_HASH = HashingUtils::HashString("MULTI_PASS_HQ"); + static constexpr uint32_t MULTI_PASS_HASH = ConstExprHashingUtils::HashString("MULTI_PASS"); + static constexpr uint32_t MULTI_PASS_HQ_HASH = ConstExprHashingUtils::HashString("MULTI_PASS_HQ"); Vp9QualityTuningLevel GetVp9QualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_PASS_HASH) { return Vp9QualityTuningLevel::MULTI_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9RateControlMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9RateControlMode.cpp index 7552ba69df3..653a5e30a53 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Vp9RateControlMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace Vp9RateControlModeMapper { - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); Vp9RateControlMode GetVp9RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VBR_HASH) { return Vp9RateControlMode::VBR; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WatermarkingStrength.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WatermarkingStrength.cpp index c5acb9e4f18..aa0ab5dfd3d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WatermarkingStrength.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WatermarkingStrength.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WatermarkingStrengthMapper { - static const int LIGHTEST_HASH = HashingUtils::HashString("LIGHTEST"); - static const int LIGHTER_HASH = HashingUtils::HashString("LIGHTER"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int STRONGER_HASH = HashingUtils::HashString("STRONGER"); - static const int STRONGEST_HASH = HashingUtils::HashString("STRONGEST"); + static constexpr uint32_t LIGHTEST_HASH = ConstExprHashingUtils::HashString("LIGHTEST"); + static constexpr uint32_t LIGHTER_HASH = ConstExprHashingUtils::HashString("LIGHTER"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t STRONGER_HASH = ConstExprHashingUtils::HashString("STRONGER"); + static constexpr uint32_t STRONGEST_HASH = ConstExprHashingUtils::HashString("STRONGEST"); WatermarkingStrength GetWatermarkingStrengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIGHTEST_HASH) { return WatermarkingStrength::LIGHTEST; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WavFormat.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WavFormat.cpp index fe6927efba5..7367979d4b7 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WavFormat.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WavFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WavFormatMapper { - static const int RIFF_HASH = HashingUtils::HashString("RIFF"); - static const int RF64_HASH = HashingUtils::HashString("RF64"); + static constexpr uint32_t RIFF_HASH = ConstExprHashingUtils::HashString("RIFF"); + static constexpr uint32_t RF64_HASH = ConstExprHashingUtils::HashString("RF64"); WavFormat GetWavFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RIFF_HASH) { return WavFormat::RIFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttAccessibilitySubs.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttAccessibilitySubs.cpp index e7db30f59d5..0e6c58e3595 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttAccessibilitySubs.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttAccessibilitySubs.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WebvttAccessibilitySubsMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); WebvttAccessibilitySubs GetWebvttAccessibilitySubsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return WebvttAccessibilitySubs::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttStylePassthrough.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttStylePassthrough.cpp index 65687ae0ddb..9b3e328c28d 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttStylePassthrough.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/WebvttStylePassthrough.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WebvttStylePassthroughMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int STRICT_HASH = HashingUtils::HashString("STRICT"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t STRICT_HASH = ConstExprHashingUtils::HashString("STRICT"); WebvttStylePassthrough GetWebvttStylePassthroughForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return WebvttStylePassthrough::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraCbgProfileClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraCbgProfileClass.cpp index 6de8db2ed11..40a83b178c2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraCbgProfileClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraCbgProfileClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Xavc4kIntraCbgProfileClassMapper { - static const int CLASS_100_HASH = HashingUtils::HashString("CLASS_100"); - static const int CLASS_300_HASH = HashingUtils::HashString("CLASS_300"); - static const int CLASS_480_HASH = HashingUtils::HashString("CLASS_480"); + static constexpr uint32_t CLASS_100_HASH = ConstExprHashingUtils::HashString("CLASS_100"); + static constexpr uint32_t CLASS_300_HASH = ConstExprHashingUtils::HashString("CLASS_300"); + static constexpr uint32_t CLASS_480_HASH = ConstExprHashingUtils::HashString("CLASS_480"); Xavc4kIntraCbgProfileClass GetXavc4kIntraCbgProfileClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASS_100_HASH) { return Xavc4kIntraCbgProfileClass::CLASS_100; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraVbrProfileClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraVbrProfileClass.cpp index a4fb5f3468a..a3ef47d2648 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraVbrProfileClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kIntraVbrProfileClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Xavc4kIntraVbrProfileClassMapper { - static const int CLASS_100_HASH = HashingUtils::HashString("CLASS_100"); - static const int CLASS_300_HASH = HashingUtils::HashString("CLASS_300"); - static const int CLASS_480_HASH = HashingUtils::HashString("CLASS_480"); + static constexpr uint32_t CLASS_100_HASH = ConstExprHashingUtils::HashString("CLASS_100"); + static constexpr uint32_t CLASS_300_HASH = ConstExprHashingUtils::HashString("CLASS_300"); + static constexpr uint32_t CLASS_480_HASH = ConstExprHashingUtils::HashString("CLASS_480"); Xavc4kIntraVbrProfileClass GetXavc4kIntraVbrProfileClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASS_100_HASH) { return Xavc4kIntraVbrProfileClass::CLASS_100; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileBitrateClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileBitrateClass.cpp index 97e7826577a..85c013ff31b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileBitrateClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileBitrateClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Xavc4kProfileBitrateClassMapper { - static const int BITRATE_CLASS_100_HASH = HashingUtils::HashString("BITRATE_CLASS_100"); - static const int BITRATE_CLASS_140_HASH = HashingUtils::HashString("BITRATE_CLASS_140"); - static const int BITRATE_CLASS_200_HASH = HashingUtils::HashString("BITRATE_CLASS_200"); + static constexpr uint32_t BITRATE_CLASS_100_HASH = ConstExprHashingUtils::HashString("BITRATE_CLASS_100"); + static constexpr uint32_t BITRATE_CLASS_140_HASH = ConstExprHashingUtils::HashString("BITRATE_CLASS_140"); + static constexpr uint32_t BITRATE_CLASS_200_HASH = ConstExprHashingUtils::HashString("BITRATE_CLASS_200"); Xavc4kProfileBitrateClass GetXavc4kProfileBitrateClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BITRATE_CLASS_100_HASH) { return Xavc4kProfileBitrateClass::BITRATE_CLASS_100; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileCodecProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileCodecProfile.cpp index 53725afccd9..299b48c57d2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileCodecProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileCodecProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Xavc4kProfileCodecProfileMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGH_422_HASH = HashingUtils::HashString("HIGH_422"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGH_422_HASH = ConstExprHashingUtils::HashString("HIGH_422"); Xavc4kProfileCodecProfile GetXavc4kProfileCodecProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return Xavc4kProfileCodecProfile::HIGH; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileQualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileQualityTuningLevel.cpp index 85fe1a35308..b54fc63f6c4 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileQualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/Xavc4kProfileQualityTuningLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Xavc4kProfileQualityTuningLevelMapper { - static const int SINGLE_PASS_HASH = HashingUtils::HashString("SINGLE_PASS"); - static const int SINGLE_PASS_HQ_HASH = HashingUtils::HashString("SINGLE_PASS_HQ"); - static const int MULTI_PASS_HQ_HASH = HashingUtils::HashString("MULTI_PASS_HQ"); + static constexpr uint32_t SINGLE_PASS_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS"); + static constexpr uint32_t SINGLE_PASS_HQ_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS_HQ"); + static constexpr uint32_t MULTI_PASS_HQ_HASH = ConstExprHashingUtils::HashString("MULTI_PASS_HQ"); Xavc4kProfileQualityTuningLevel GetXavc4kProfileQualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PASS_HASH) { return Xavc4kProfileQualityTuningLevel::SINGLE_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcAdaptiveQuantization.cpp index c7c2f558791..116a0830499 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcAdaptiveQuantization.cpp @@ -20,18 +20,18 @@ namespace Aws namespace XavcAdaptiveQuantizationMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGHER_HASH = HashingUtils::HashString("HIGHER"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGHER_HASH = ConstExprHashingUtils::HashString("HIGHER"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); XavcAdaptiveQuantization GetXavcAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return XavcAdaptiveQuantization::OFF; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcEntropyEncoding.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcEntropyEncoding.cpp index 106c3a26cc8..fa5ca5c1cf2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcEntropyEncoding.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcEntropyEncoding.cpp @@ -20,14 +20,14 @@ namespace Aws namespace XavcEntropyEncodingMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int CABAC_HASH = HashingUtils::HashString("CABAC"); - static const int CAVLC_HASH = HashingUtils::HashString("CAVLC"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t CABAC_HASH = ConstExprHashingUtils::HashString("CABAC"); + static constexpr uint32_t CAVLC_HASH = ConstExprHashingUtils::HashString("CAVLC"); XavcEntropyEncoding GetXavcEntropyEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return XavcEntropyEncoding::AUTO; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFlickerAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFlickerAdaptiveQuantization.cpp index a2bc324cdeb..ca192fade0e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFlickerAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFlickerAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcFlickerAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); XavcFlickerAdaptiveQuantization GetXavcFlickerAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return XavcFlickerAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateControl.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateControl.cpp index 2c84a0ef933..9c7a2f3a22f 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcFramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); XavcFramerateControl GetXavcFramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return XavcFramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateConversionAlgorithm.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateConversionAlgorithm.cpp index a0a421c2679..45ec1bdedbc 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateConversionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcFramerateConversionAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace XavcFramerateConversionAlgorithmMapper { - static const int DUPLICATE_DROP_HASH = HashingUtils::HashString("DUPLICATE_DROP"); - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int FRAMEFORMER_HASH = HashingUtils::HashString("FRAMEFORMER"); + static constexpr uint32_t DUPLICATE_DROP_HASH = ConstExprHashingUtils::HashString("DUPLICATE_DROP"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t FRAMEFORMER_HASH = ConstExprHashingUtils::HashString("FRAMEFORMER"); XavcFramerateConversionAlgorithm GetXavcFramerateConversionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_DROP_HASH) { return XavcFramerateConversionAlgorithm::DUPLICATE_DROP; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcGopBReference.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcGopBReference.cpp index 09740411a62..383be098538 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcGopBReference.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcGopBReference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcGopBReferenceMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); XavcGopBReference GetXavcGopBReferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return XavcGopBReference::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdIntraCbgProfileClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdIntraCbgProfileClass.cpp index d08032275fd..daf38d782b3 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdIntraCbgProfileClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdIntraCbgProfileClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace XavcHdIntraCbgProfileClassMapper { - static const int CLASS_50_HASH = HashingUtils::HashString("CLASS_50"); - static const int CLASS_100_HASH = HashingUtils::HashString("CLASS_100"); - static const int CLASS_200_HASH = HashingUtils::HashString("CLASS_200"); + static constexpr uint32_t CLASS_50_HASH = ConstExprHashingUtils::HashString("CLASS_50"); + static constexpr uint32_t CLASS_100_HASH = ConstExprHashingUtils::HashString("CLASS_100"); + static constexpr uint32_t CLASS_200_HASH = ConstExprHashingUtils::HashString("CLASS_200"); XavcHdIntraCbgProfileClass GetXavcHdIntraCbgProfileClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASS_50_HASH) { return XavcHdIntraCbgProfileClass::CLASS_50; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileBitrateClass.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileBitrateClass.cpp index 9f14ade531a..4320d74a2e2 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileBitrateClass.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileBitrateClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace XavcHdProfileBitrateClassMapper { - static const int BITRATE_CLASS_25_HASH = HashingUtils::HashString("BITRATE_CLASS_25"); - static const int BITRATE_CLASS_35_HASH = HashingUtils::HashString("BITRATE_CLASS_35"); - static const int BITRATE_CLASS_50_HASH = HashingUtils::HashString("BITRATE_CLASS_50"); + static constexpr uint32_t BITRATE_CLASS_25_HASH = ConstExprHashingUtils::HashString("BITRATE_CLASS_25"); + static constexpr uint32_t BITRATE_CLASS_35_HASH = ConstExprHashingUtils::HashString("BITRATE_CLASS_35"); + static constexpr uint32_t BITRATE_CLASS_50_HASH = ConstExprHashingUtils::HashString("BITRATE_CLASS_50"); XavcHdProfileBitrateClass GetXavcHdProfileBitrateClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BITRATE_CLASS_25_HASH) { return XavcHdProfileBitrateClass::BITRATE_CLASS_25; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileQualityTuningLevel.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileQualityTuningLevel.cpp index 4fd301b6ee3..46d4cba6014 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileQualityTuningLevel.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileQualityTuningLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace XavcHdProfileQualityTuningLevelMapper { - static const int SINGLE_PASS_HASH = HashingUtils::HashString("SINGLE_PASS"); - static const int SINGLE_PASS_HQ_HASH = HashingUtils::HashString("SINGLE_PASS_HQ"); - static const int MULTI_PASS_HQ_HASH = HashingUtils::HashString("MULTI_PASS_HQ"); + static constexpr uint32_t SINGLE_PASS_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS"); + static constexpr uint32_t SINGLE_PASS_HQ_HASH = ConstExprHashingUtils::HashString("SINGLE_PASS_HQ"); + static constexpr uint32_t MULTI_PASS_HQ_HASH = ConstExprHashingUtils::HashString("MULTI_PASS_HQ"); XavcHdProfileQualityTuningLevel GetXavcHdProfileQualityTuningLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PASS_HASH) { return XavcHdProfileQualityTuningLevel::SINGLE_PASS; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileTelecine.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileTelecine.cpp index f54e977b7ce..46f65959a9e 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileTelecine.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcHdProfileTelecine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcHdProfileTelecineMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HARD_HASH = HashingUtils::HashString("HARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HARD_HASH = ConstExprHashingUtils::HashString("HARD"); XavcHdProfileTelecine GetXavcHdProfileTelecineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return XavcHdProfileTelecine::NONE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcInterlaceMode.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcInterlaceMode.cpp index 2dd35505431..d5cbbdb764b 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcInterlaceMode.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcInterlaceMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace XavcInterlaceModeMapper { - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); - static const int TOP_FIELD_HASH = HashingUtils::HashString("TOP_FIELD"); - static const int BOTTOM_FIELD_HASH = HashingUtils::HashString("BOTTOM_FIELD"); - static const int FOLLOW_TOP_FIELD_HASH = HashingUtils::HashString("FOLLOW_TOP_FIELD"); - static const int FOLLOW_BOTTOM_FIELD_HASH = HashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t TOP_FIELD_HASH = ConstExprHashingUtils::HashString("TOP_FIELD"); + static constexpr uint32_t BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("BOTTOM_FIELD"); + static constexpr uint32_t FOLLOW_TOP_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_TOP_FIELD"); + static constexpr uint32_t FOLLOW_BOTTOM_FIELD_HASH = ConstExprHashingUtils::HashString("FOLLOW_BOTTOM_FIELD"); XavcInterlaceMode GetXavcInterlaceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRESSIVE_HASH) { return XavcInterlaceMode::PROGRESSIVE; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcProfile.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcProfile.cpp index b9c07e0dd5c..08243284a32 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcProfile.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcProfile.cpp @@ -20,16 +20,16 @@ namespace Aws namespace XavcProfileMapper { - static const int XAVC_HD_INTRA_CBG_HASH = HashingUtils::HashString("XAVC_HD_INTRA_CBG"); - static const int XAVC_4K_INTRA_CBG_HASH = HashingUtils::HashString("XAVC_4K_INTRA_CBG"); - static const int XAVC_4K_INTRA_VBR_HASH = HashingUtils::HashString("XAVC_4K_INTRA_VBR"); - static const int XAVC_HD_HASH = HashingUtils::HashString("XAVC_HD"); - static const int XAVC_4K_HASH = HashingUtils::HashString("XAVC_4K"); + static constexpr uint32_t XAVC_HD_INTRA_CBG_HASH = ConstExprHashingUtils::HashString("XAVC_HD_INTRA_CBG"); + static constexpr uint32_t XAVC_4K_INTRA_CBG_HASH = ConstExprHashingUtils::HashString("XAVC_4K_INTRA_CBG"); + static constexpr uint32_t XAVC_4K_INTRA_VBR_HASH = ConstExprHashingUtils::HashString("XAVC_4K_INTRA_VBR"); + static constexpr uint32_t XAVC_HD_HASH = ConstExprHashingUtils::HashString("XAVC_HD"); + static constexpr uint32_t XAVC_4K_HASH = ConstExprHashingUtils::HashString("XAVC_4K"); XavcProfile GetXavcProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == XAVC_HD_INTRA_CBG_HASH) { return XavcProfile::XAVC_HD_INTRA_CBG; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSlowPal.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSlowPal.cpp index 2140410e468..e217d043c85 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSlowPal.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSlowPal.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcSlowPalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); XavcSlowPal GetXavcSlowPalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return XavcSlowPal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSpatialAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSpatialAdaptiveQuantization.cpp index 9ec9d1410a4..1d123b87478 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSpatialAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcSpatialAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcSpatialAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); XavcSpatialAdaptiveQuantization GetXavcSpatialAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return XavcSpatialAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcTemporalAdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcTemporalAdaptiveQuantization.cpp index 6dc9e2a18b4..c2eec45e9cd 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcTemporalAdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/model/XavcTemporalAdaptiveQuantization.cpp @@ -20,13 +20,13 @@ namespace Aws namespace XavcTemporalAdaptiveQuantizationMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); XavcTemporalAdaptiveQuantization GetXavcTemporalAdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return XavcTemporalAdaptiveQuantization::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/MediaLiveErrors.cpp b/generated/src/aws-cpp-sdk-medialive/source/MediaLiveErrors.cpp index 86c96e935a2..148a4b71715 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/MediaLiveErrors.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/MediaLiveErrors.cpp @@ -26,20 +26,20 @@ template<> AWS_MEDIALIVE_API UnprocessableEntityException MediaLiveError::GetMod namespace MediaLiveErrorMapper { -static const int BAD_GATEWAY_HASH = HashingUtils::HashString("BadGatewayException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int GATEWAY_TIMEOUT_HASH = HashingUtils::HashString("GatewayTimeoutException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t BAD_GATEWAY_HASH = ConstExprHashingUtils::HashString("BadGatewayException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t GATEWAY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("GatewayTimeoutException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == BAD_GATEWAY_HASH) { diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacCodingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacCodingMode.cpp index 5c54f87c964..0bf350489f3 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacCodingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacCodingMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AacCodingModeMapper { - static const int AD_RECEIVER_MIX_HASH = HashingUtils::HashString("AD_RECEIVER_MIX"); - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_1_1_HASH = HashingUtils::HashString("CODING_MODE_1_1"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_5_1_HASH = HashingUtils::HashString("CODING_MODE_5_1"); + static constexpr uint32_t AD_RECEIVER_MIX_HASH = ConstExprHashingUtils::HashString("AD_RECEIVER_MIX"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_1_1_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_1"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_5_1_HASH = ConstExprHashingUtils::HashString("CODING_MODE_5_1"); AacCodingMode GetAacCodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AD_RECEIVER_MIX_HASH) { return AacCodingMode::AD_RECEIVER_MIX; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacInputType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacInputType.cpp index 697e6967bb7..9bae17b6e69 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacInputType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacInputType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacInputTypeMapper { - static const int BROADCASTER_MIXED_AD_HASH = HashingUtils::HashString("BROADCASTER_MIXED_AD"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t BROADCASTER_MIXED_AD_HASH = ConstExprHashingUtils::HashString("BROADCASTER_MIXED_AD"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); AacInputType GetAacInputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BROADCASTER_MIXED_AD_HASH) { return AacInputType::BROADCASTER_MIXED_AD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacProfile.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacProfile.cpp index 15e05f6a9ae..09a0b73eeec 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacProfile.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacProfile.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AacProfileMapper { - static const int HEV1_HASH = HashingUtils::HashString("HEV1"); - static const int HEV2_HASH = HashingUtils::HashString("HEV2"); - static const int LC_HASH = HashingUtils::HashString("LC"); + static constexpr uint32_t HEV1_HASH = ConstExprHashingUtils::HashString("HEV1"); + static constexpr uint32_t HEV2_HASH = ConstExprHashingUtils::HashString("HEV2"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); AacProfile GetAacProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEV1_HASH) { return AacProfile::HEV1; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacRateControlMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacRateControlMode.cpp index 368bca4a7ac..5adc873c430 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacRateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacRateControlMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacRateControlModeMapper { - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); AacRateControlMode GetAacRateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CBR_HASH) { return AacRateControlMode::CBR; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacRawFormat.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacRawFormat.cpp index e8c3822814b..88e00331cf4 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacRawFormat.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacRawFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacRawFormatMapper { - static const int LATM_LOAS_HASH = HashingUtils::HashString("LATM_LOAS"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t LATM_LOAS_HASH = ConstExprHashingUtils::HashString("LATM_LOAS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AacRawFormat GetAacRawFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LATM_LOAS_HASH) { return AacRawFormat::LATM_LOAS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacSpec.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacSpec.cpp index 6dd7e642047..e99bdcf47bc 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacSpec.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacSpec.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AacSpecMapper { - static const int MPEG2_HASH = HashingUtils::HashString("MPEG2"); - static const int MPEG4_HASH = HashingUtils::HashString("MPEG4"); + static constexpr uint32_t MPEG2_HASH = ConstExprHashingUtils::HashString("MPEG2"); + static constexpr uint32_t MPEG4_HASH = ConstExprHashingUtils::HashString("MPEG4"); AacSpec GetAacSpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MPEG2_HASH) { return AacSpec::MPEG2; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AacVbrQuality.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AacVbrQuality.cpp index da8804d1f03..df19e1e3291 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AacVbrQuality.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AacVbrQuality.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AacVbrQualityMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HIGH_HASH = HashingUtils::HashString("MEDIUM_HIGH"); - static const int MEDIUM_LOW_HASH = HashingUtils::HashString("MEDIUM_LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HIGH_HASH = ConstExprHashingUtils::HashString("MEDIUM_HIGH"); + static constexpr uint32_t MEDIUM_LOW_HASH = ConstExprHashingUtils::HashString("MEDIUM_LOW"); AacVbrQuality GetAacVbrQualityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return AacVbrQuality::HIGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3AttenuationControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3AttenuationControl.cpp index 70255515f84..0fb83711e8d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3AttenuationControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3AttenuationControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3AttenuationControlMapper { - static const int ATTENUATE_3_DB_HASH = HashingUtils::HashString("ATTENUATE_3_DB"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ATTENUATE_3_DB_HASH = ConstExprHashingUtils::HashString("ATTENUATE_3_DB"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Ac3AttenuationControl GetAc3AttenuationControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTENUATE_3_DB_HASH) { return Ac3AttenuationControl::ATTENUATE_3_DB; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3BitstreamMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3BitstreamMode.cpp index 59bcbf087b8..7da4ec1d1ee 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3BitstreamMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3BitstreamMode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace Ac3BitstreamModeMapper { - static const int COMMENTARY_HASH = HashingUtils::HashString("COMMENTARY"); - static const int COMPLETE_MAIN_HASH = HashingUtils::HashString("COMPLETE_MAIN"); - static const int DIALOGUE_HASH = HashingUtils::HashString("DIALOGUE"); - static const int EMERGENCY_HASH = HashingUtils::HashString("EMERGENCY"); - static const int HEARING_IMPAIRED_HASH = HashingUtils::HashString("HEARING_IMPAIRED"); - static const int MUSIC_AND_EFFECTS_HASH = HashingUtils::HashString("MUSIC_AND_EFFECTS"); - static const int VISUALLY_IMPAIRED_HASH = HashingUtils::HashString("VISUALLY_IMPAIRED"); - static const int VOICE_OVER_HASH = HashingUtils::HashString("VOICE_OVER"); + static constexpr uint32_t COMMENTARY_HASH = ConstExprHashingUtils::HashString("COMMENTARY"); + static constexpr uint32_t COMPLETE_MAIN_HASH = ConstExprHashingUtils::HashString("COMPLETE_MAIN"); + static constexpr uint32_t DIALOGUE_HASH = ConstExprHashingUtils::HashString("DIALOGUE"); + static constexpr uint32_t EMERGENCY_HASH = ConstExprHashingUtils::HashString("EMERGENCY"); + static constexpr uint32_t HEARING_IMPAIRED_HASH = ConstExprHashingUtils::HashString("HEARING_IMPAIRED"); + static constexpr uint32_t MUSIC_AND_EFFECTS_HASH = ConstExprHashingUtils::HashString("MUSIC_AND_EFFECTS"); + static constexpr uint32_t VISUALLY_IMPAIRED_HASH = ConstExprHashingUtils::HashString("VISUALLY_IMPAIRED"); + static constexpr uint32_t VOICE_OVER_HASH = ConstExprHashingUtils::HashString("VOICE_OVER"); Ac3BitstreamMode GetAc3BitstreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMENTARY_HASH) { return Ac3BitstreamMode::COMMENTARY; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3CodingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3CodingMode.cpp index 9ef10aca1e7..0a2ff6604e4 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3CodingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3CodingMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Ac3CodingModeMapper { - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_1_1_HASH = HashingUtils::HashString("CODING_MODE_1_1"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_3_2_LFE_HASH = HashingUtils::HashString("CODING_MODE_3_2_LFE"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_1_1_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_1"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_3_2_LFE_HASH = ConstExprHashingUtils::HashString("CODING_MODE_3_2_LFE"); Ac3CodingMode GetAc3CodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_1_0_HASH) { return Ac3CodingMode::CODING_MODE_1_0; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3DrcProfile.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3DrcProfile.cpp index 8119f48e8c0..3b24cad6a4f 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3DrcProfile.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3DrcProfile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3DrcProfileMapper { - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Ac3DrcProfile GetAc3DrcProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_STANDARD_HASH) { return Ac3DrcProfile::FILM_STANDARD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3LfeFilter.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3LfeFilter.cpp index 70e70c8d5a9..0a5e7824473 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3LfeFilter.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3LfeFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3LfeFilterMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Ac3LfeFilter GetAc3LfeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Ac3LfeFilter::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3MetadataControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3MetadataControl.cpp index e969d814665..1c2082fb8b8 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Ac3MetadataControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Ac3MetadataControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Ac3MetadataControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); Ac3MetadataControl GetAc3MetadataControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return Ac3MetadataControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AcceptHeader.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AcceptHeader.cpp index 1c9e08f5b01..75d6302e995 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AcceptHeader.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AcceptHeader.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AcceptHeaderMapper { - static const int image_jpeg_HASH = HashingUtils::HashString("image/jpeg"); + static constexpr uint32_t image_jpeg_HASH = ConstExprHashingUtils::HashString("image/jpeg"); AcceptHeader GetAcceptHeaderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == image_jpeg_HASH) { return AcceptHeader::image_jpeg; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AccessibilityType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AccessibilityType.cpp index 083c4daf283..c0c535d4449 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AccessibilityType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AccessibilityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessibilityTypeMapper { - static const int DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES_HASH = HashingUtils::HashString("DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES"); - static const int IMPLEMENTS_ACCESSIBILITY_FEATURES_HASH = HashingUtils::HashString("IMPLEMENTS_ACCESSIBILITY_FEATURES"); + static constexpr uint32_t DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES_HASH = ConstExprHashingUtils::HashString("DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES"); + static constexpr uint32_t IMPLEMENTS_ACCESSIBILITY_FEATURES_HASH = ConstExprHashingUtils::HashString("IMPLEMENTS_ACCESSIBILITY_FEATURES"); AccessibilityType GetAccessibilityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES_HASH) { return AccessibilityType::DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AfdSignaling.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AfdSignaling.cpp index a49f4f2f070..4a03ec96cf3 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AfdSignaling.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AfdSignaling.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AfdSignalingMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AfdSignaling GetAfdSignalingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return AfdSignaling::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionAudioTypeControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionAudioTypeControl.cpp index f78bf50981d..eb0e4aa30c5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionAudioTypeControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionAudioTypeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioDescriptionAudioTypeControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); AudioDescriptionAudioTypeControl GetAudioDescriptionAudioTypeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return AudioDescriptionAudioTypeControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionLanguageCodeControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionLanguageCodeControl.cpp index 06b85eac841..4fb682bcd34 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionLanguageCodeControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioDescriptionLanguageCodeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioDescriptionLanguageCodeControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); AudioDescriptionLanguageCodeControl GetAudioDescriptionLanguageCodeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return AudioDescriptionLanguageCodeControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioLanguageSelectionPolicy.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioLanguageSelectionPolicy.cpp index 2c69a5676ca..85d159d2cc4 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioLanguageSelectionPolicy.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioLanguageSelectionPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioLanguageSelectionPolicyMapper { - static const int LOOSE_HASH = HashingUtils::HashString("LOOSE"); - static const int STRICT_HASH = HashingUtils::HashString("STRICT"); + static constexpr uint32_t LOOSE_HASH = ConstExprHashingUtils::HashString("LOOSE"); + static constexpr uint32_t STRICT_HASH = ConstExprHashingUtils::HashString("STRICT"); AudioLanguageSelectionPolicy GetAudioLanguageSelectionPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOOSE_HASH) { return AudioLanguageSelectionPolicy::LOOSE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithm.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithm.cpp index 697189d9cda..4e698a6c3aa 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioNormalizationAlgorithmMapper { - static const int ITU_1770_1_HASH = HashingUtils::HashString("ITU_1770_1"); - static const int ITU_1770_2_HASH = HashingUtils::HashString("ITU_1770_2"); + static constexpr uint32_t ITU_1770_1_HASH = ConstExprHashingUtils::HashString("ITU_1770_1"); + static constexpr uint32_t ITU_1770_2_HASH = ConstExprHashingUtils::HashString("ITU_1770_2"); AudioNormalizationAlgorithm GetAudioNormalizationAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ITU_1770_1_HASH) { return AudioNormalizationAlgorithm::ITU_1770_1; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithmControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithmControl.cpp index ee89c75d2b8..bdf6e327d26 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithmControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioNormalizationAlgorithmControl.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AudioNormalizationAlgorithmControlMapper { - static const int CORRECT_AUDIO_HASH = HashingUtils::HashString("CORRECT_AUDIO"); + static constexpr uint32_t CORRECT_AUDIO_HASH = ConstExprHashingUtils::HashString("CORRECT_AUDIO"); AudioNormalizationAlgorithmControl GetAudioNormalizationAlgorithmControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CORRECT_AUDIO_HASH) { return AudioNormalizationAlgorithmControl::CORRECT_AUDIO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsSegmentType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsSegmentType.cpp index 8b584195834..260098c781d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsSegmentType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsSegmentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AudioOnlyHlsSegmentTypeMapper { - static const int AAC_HASH = HashingUtils::HashString("AAC"); - static const int FMP4_HASH = HashingUtils::HashString("FMP4"); + static constexpr uint32_t AAC_HASH = ConstExprHashingUtils::HashString("AAC"); + static constexpr uint32_t FMP4_HASH = ConstExprHashingUtils::HashString("FMP4"); AudioOnlyHlsSegmentType GetAudioOnlyHlsSegmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AAC_HASH) { return AudioOnlyHlsSegmentType::AAC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsTrackType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsTrackType.cpp index 0ef67d057a7..99019a7b3ad 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsTrackType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioOnlyHlsTrackType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AudioOnlyHlsTrackTypeMapper { - static const int ALTERNATE_AUDIO_AUTO_SELECT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT"); - static const int ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"); - static const int ALTERNATE_AUDIO_NOT_AUTO_SELECT_HASH = HashingUtils::HashString("ALTERNATE_AUDIO_NOT_AUTO_SELECT"); - static const int AUDIO_ONLY_VARIANT_STREAM_HASH = HashingUtils::HashString("AUDIO_ONLY_VARIANT_STREAM"); + static constexpr uint32_t ALTERNATE_AUDIO_AUTO_SELECT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT"); + static constexpr uint32_t ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT"); + static constexpr uint32_t ALTERNATE_AUDIO_NOT_AUTO_SELECT_HASH = ConstExprHashingUtils::HashString("ALTERNATE_AUDIO_NOT_AUTO_SELECT"); + static constexpr uint32_t AUDIO_ONLY_VARIANT_STREAM_HASH = ConstExprHashingUtils::HashString("AUDIO_ONLY_VARIANT_STREAM"); AudioOnlyHlsTrackType GetAudioOnlyHlsTrackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALTERNATE_AUDIO_AUTO_SELECT_HASH) { return AudioOnlyHlsTrackType::ALTERNATE_AUDIO_AUTO_SELECT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AudioType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AudioType.cpp index c670a83e4ac..cdbd3f24777 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AudioType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AudioType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AudioTypeMapper { - static const int CLEAN_EFFECTS_HASH = HashingUtils::HashString("CLEAN_EFFECTS"); - static const int HEARING_IMPAIRED_HASH = HashingUtils::HashString("HEARING_IMPAIRED"); - static const int UNDEFINED_HASH = HashingUtils::HashString("UNDEFINED"); - static const int VISUAL_IMPAIRED_COMMENTARY_HASH = HashingUtils::HashString("VISUAL_IMPAIRED_COMMENTARY"); + static constexpr uint32_t CLEAN_EFFECTS_HASH = ConstExprHashingUtils::HashString("CLEAN_EFFECTS"); + static constexpr uint32_t HEARING_IMPAIRED_HASH = ConstExprHashingUtils::HashString("HEARING_IMPAIRED"); + static constexpr uint32_t UNDEFINED_HASH = ConstExprHashingUtils::HashString("UNDEFINED"); + static constexpr uint32_t VISUAL_IMPAIRED_COMMENTARY_HASH = ConstExprHashingUtils::HashString("VISUAL_IMPAIRED_COMMENTARY"); AudioType GetAudioTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLEAN_EFFECTS_HASH) { return AudioType::CLEAN_EFFECTS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AuthenticationScheme.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AuthenticationScheme.cpp index b25b35f6172..97cdc5a23a5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AuthenticationScheme.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AuthenticationScheme.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthenticationSchemeMapper { - static const int AKAMAI_HASH = HashingUtils::HashString("AKAMAI"); - static const int COMMON_HASH = HashingUtils::HashString("COMMON"); + static constexpr uint32_t AKAMAI_HASH = ConstExprHashingUtils::HashString("AKAMAI"); + static constexpr uint32_t COMMON_HASH = ConstExprHashingUtils::HashString("COMMON"); AuthenticationScheme GetAuthenticationSchemeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AKAMAI_HASH) { return AuthenticationScheme::AKAMAI; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/AvailBlankingState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/AvailBlankingState.cpp index 999d34d6a4d..6e9e79df73a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/AvailBlankingState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/AvailBlankingState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvailBlankingStateMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); AvailBlankingState GetAvailBlankingStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return AvailBlankingState::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateNetworkEndBlackout.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateNetworkEndBlackout.cpp index a14f3591dcb..facf98fc11a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateNetworkEndBlackout.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateNetworkEndBlackout.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BlackoutSlateNetworkEndBlackoutMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); BlackoutSlateNetworkEndBlackout GetBlackoutSlateNetworkEndBlackoutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return BlackoutSlateNetworkEndBlackout::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateState.cpp index 876f34e227d..7fdffcbc73c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BlackoutSlateState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BlackoutSlateStateMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); BlackoutSlateState GetBlackoutSlateStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return BlackoutSlateState::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInAlignment.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInAlignment.cpp index a44170541fd..bec896ae626 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInAlignment.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInAlignment.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurnInAlignmentMapper { - static const int CENTERED_HASH = HashingUtils::HashString("CENTERED"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int SMART_HASH = HashingUtils::HashString("SMART"); + static constexpr uint32_t CENTERED_HASH = ConstExprHashingUtils::HashString("CENTERED"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t SMART_HASH = ConstExprHashingUtils::HashString("SMART"); BurnInAlignment GetBurnInAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENTERED_HASH) { return BurnInAlignment::CENTERED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInBackgroundColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInBackgroundColor.cpp index 42be6678445..099d839fbbb 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInBackgroundColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInBackgroundColor.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurnInBackgroundColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); BurnInBackgroundColor GetBurnInBackgroundColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return BurnInBackgroundColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInFontColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInFontColor.cpp index c9b698072d6..39d675e2226 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInFontColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInFontColor.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BurnInFontColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); BurnInFontColor GetBurnInFontColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return BurnInFontColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInOutlineColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInOutlineColor.cpp index aa925cd0291..2d0748767ef 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInOutlineColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInOutlineColor.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BurnInOutlineColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); BurnInOutlineColor GetBurnInOutlineColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return BurnInOutlineColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInShadowColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInShadowColor.cpp index 4684df637a1..9db48ffe855 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInShadowColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInShadowColor.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BurnInShadowColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); BurnInShadowColor GetBurnInShadowColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return BurnInShadowColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInTeletextGridControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInTeletextGridControl.cpp index 84b203950e6..40974b352a7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/BurnInTeletextGridControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/BurnInTeletextGridControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BurnInTeletextGridControlMapper { - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); - static const int SCALED_HASH = HashingUtils::HashString("SCALED"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); + static constexpr uint32_t SCALED_HASH = ConstExprHashingUtils::HashString("SCALED"); BurnInTeletextGridControl GetBurnInTeletextGridControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_HASH) { return BurnInTeletextGridControl::FIXED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/CdiInputResolution.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/CdiInputResolution.cpp index 42dea5551e4..d550f195b59 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/CdiInputResolution.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/CdiInputResolution.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CdiInputResolutionMapper { - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int FHD_HASH = HashingUtils::HashString("FHD"); - static const int UHD_HASH = HashingUtils::HashString("UHD"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t FHD_HASH = ConstExprHashingUtils::HashString("FHD"); + static constexpr uint32_t UHD_HASH = ConstExprHashingUtils::HashString("UHD"); CdiInputResolution GetCdiInputResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SD_HASH) { return CdiInputResolution::SD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ChannelClass.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ChannelClass.cpp index 816ba301d51..1e8082c1db1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ChannelClass.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ChannelClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int SINGLE_PIPELINE_HASH = HashingUtils::HashString("SINGLE_PIPELINE"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t SINGLE_PIPELINE_HASH = ConstExprHashingUtils::HashString("SINGLE_PIPELINE"); ChannelClass GetChannelClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ChannelClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ChannelState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ChannelState.cpp index 2ae5499b8f6..c705c250ef5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ChannelState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ChannelState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ChannelStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int RECOVERING_HASH = HashingUtils::HashString("RECOVERING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t RECOVERING_HASH = ConstExprHashingUtils::HashString("RECOVERING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ChannelState GetChannelStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ChannelState::CREATING; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ContentType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ContentType.cpp index d31ad0709d6..a43a2df28e0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ContentType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentTypeMapper { - static const int image_jpeg_HASH = HashingUtils::HashString("image/jpeg"); + static constexpr uint32_t image_jpeg_HASH = ConstExprHashingUtils::HashString("image/jpeg"); ContentType GetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == image_jpeg_HASH) { return ContentType::image_jpeg; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DeviceSettingsSyncState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DeviceSettingsSyncState.cpp index dfdb86c1553..ea1af91b841 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DeviceSettingsSyncState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DeviceSettingsSyncState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceSettingsSyncStateMapper { - static const int SYNCED_HASH = HashingUtils::HashString("SYNCED"); - static const int SYNCING_HASH = HashingUtils::HashString("SYNCING"); + static constexpr uint32_t SYNCED_HASH = ConstExprHashingUtils::HashString("SYNCED"); + static constexpr uint32_t SYNCING_HASH = ConstExprHashingUtils::HashString("SYNCING"); DeviceSettingsSyncState GetDeviceSettingsSyncStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYNCED_HASH) { return DeviceSettingsSyncState::SYNCED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DeviceUpdateStatus.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DeviceUpdateStatus.cpp index a811beb4f14..25ef8470ebe 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DeviceUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DeviceUpdateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeviceUpdateStatusMapper { - static const int UP_TO_DATE_HASH = HashingUtils::HashString("UP_TO_DATE"); - static const int NOT_UP_TO_DATE_HASH = HashingUtils::HashString("NOT_UP_TO_DATE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t UP_TO_DATE_HASH = ConstExprHashingUtils::HashString("UP_TO_DATE"); + static constexpr uint32_t NOT_UP_TO_DATE_HASH = ConstExprHashingUtils::HashString("NOT_UP_TO_DATE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); DeviceUpdateStatus GetDeviceUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UP_TO_DATE_HASH) { return DeviceUpdateStatus::UP_TO_DATE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DolbyEProgramSelection.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DolbyEProgramSelection.cpp index f1483318357..d6ff1e6d013 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DolbyEProgramSelection.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DolbyEProgramSelection.cpp @@ -20,20 +20,20 @@ namespace Aws namespace DolbyEProgramSelectionMapper { - static const int ALL_CHANNELS_HASH = HashingUtils::HashString("ALL_CHANNELS"); - static const int PROGRAM_1_HASH = HashingUtils::HashString("PROGRAM_1"); - static const int PROGRAM_2_HASH = HashingUtils::HashString("PROGRAM_2"); - static const int PROGRAM_3_HASH = HashingUtils::HashString("PROGRAM_3"); - static const int PROGRAM_4_HASH = HashingUtils::HashString("PROGRAM_4"); - static const int PROGRAM_5_HASH = HashingUtils::HashString("PROGRAM_5"); - static const int PROGRAM_6_HASH = HashingUtils::HashString("PROGRAM_6"); - static const int PROGRAM_7_HASH = HashingUtils::HashString("PROGRAM_7"); - static const int PROGRAM_8_HASH = HashingUtils::HashString("PROGRAM_8"); + static constexpr uint32_t ALL_CHANNELS_HASH = ConstExprHashingUtils::HashString("ALL_CHANNELS"); + static constexpr uint32_t PROGRAM_1_HASH = ConstExprHashingUtils::HashString("PROGRAM_1"); + static constexpr uint32_t PROGRAM_2_HASH = ConstExprHashingUtils::HashString("PROGRAM_2"); + static constexpr uint32_t PROGRAM_3_HASH = ConstExprHashingUtils::HashString("PROGRAM_3"); + static constexpr uint32_t PROGRAM_4_HASH = ConstExprHashingUtils::HashString("PROGRAM_4"); + static constexpr uint32_t PROGRAM_5_HASH = ConstExprHashingUtils::HashString("PROGRAM_5"); + static constexpr uint32_t PROGRAM_6_HASH = ConstExprHashingUtils::HashString("PROGRAM_6"); + static constexpr uint32_t PROGRAM_7_HASH = ConstExprHashingUtils::HashString("PROGRAM_7"); + static constexpr uint32_t PROGRAM_8_HASH = ConstExprHashingUtils::HashString("PROGRAM_8"); DolbyEProgramSelection GetDolbyEProgramSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_CHANNELS_HASH) { return DolbyEProgramSelection::ALL_CHANNELS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSdtOutputSdt.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSdtOutputSdt.cpp index 9a7f644044a..3cac7ae1aa1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSdtOutputSdt.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSdtOutputSdt.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DvbSdtOutputSdtMapper { - static const int SDT_FOLLOW_HASH = HashingUtils::HashString("SDT_FOLLOW"); - static const int SDT_FOLLOW_IF_PRESENT_HASH = HashingUtils::HashString("SDT_FOLLOW_IF_PRESENT"); - static const int SDT_MANUAL_HASH = HashingUtils::HashString("SDT_MANUAL"); - static const int SDT_NONE_HASH = HashingUtils::HashString("SDT_NONE"); + static constexpr uint32_t SDT_FOLLOW_HASH = ConstExprHashingUtils::HashString("SDT_FOLLOW"); + static constexpr uint32_t SDT_FOLLOW_IF_PRESENT_HASH = ConstExprHashingUtils::HashString("SDT_FOLLOW_IF_PRESENT"); + static constexpr uint32_t SDT_MANUAL_HASH = ConstExprHashingUtils::HashString("SDT_MANUAL"); + static constexpr uint32_t SDT_NONE_HASH = ConstExprHashingUtils::HashString("SDT_NONE"); DvbSdtOutputSdt GetDvbSdtOutputSdtForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SDT_FOLLOW_HASH) { return DvbSdtOutputSdt::SDT_FOLLOW; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationAlignment.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationAlignment.cpp index 021b842731a..1c012c586a1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationAlignment.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationAlignment.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DvbSubDestinationAlignmentMapper { - static const int CENTERED_HASH = HashingUtils::HashString("CENTERED"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int SMART_HASH = HashingUtils::HashString("SMART"); + static constexpr uint32_t CENTERED_HASH = ConstExprHashingUtils::HashString("CENTERED"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t SMART_HASH = ConstExprHashingUtils::HashString("SMART"); DvbSubDestinationAlignment GetDvbSubDestinationAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENTERED_HASH) { return DvbSubDestinationAlignment::CENTERED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationBackgroundColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationBackgroundColor.cpp index d3213988eae..83cccab5812 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationBackgroundColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationBackgroundColor.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DvbSubDestinationBackgroundColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); DvbSubDestinationBackgroundColor GetDvbSubDestinationBackgroundColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return DvbSubDestinationBackgroundColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationFontColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationFontColor.cpp index 443b82cbeed..1b25e59fbf0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationFontColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationFontColor.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DvbSubDestinationFontColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); DvbSubDestinationFontColor GetDvbSubDestinationFontColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return DvbSubDestinationFontColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationOutlineColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationOutlineColor.cpp index 83678453e4d..a63d3eafa0b 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationOutlineColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationOutlineColor.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DvbSubDestinationOutlineColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int BLUE_HASH = HashingUtils::HashString("BLUE"); - static const int GREEN_HASH = HashingUtils::HashString("GREEN"); - static const int RED_HASH = HashingUtils::HashString("RED"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); - static const int YELLOW_HASH = HashingUtils::HashString("YELLOW"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t BLUE_HASH = ConstExprHashingUtils::HashString("BLUE"); + static constexpr uint32_t GREEN_HASH = ConstExprHashingUtils::HashString("GREEN"); + static constexpr uint32_t RED_HASH = ConstExprHashingUtils::HashString("RED"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); + static constexpr uint32_t YELLOW_HASH = ConstExprHashingUtils::HashString("YELLOW"); DvbSubDestinationOutlineColor GetDvbSubDestinationOutlineColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return DvbSubDestinationOutlineColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationShadowColor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationShadowColor.cpp index aeb3af3a011..93aeab11634 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationShadowColor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationShadowColor.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DvbSubDestinationShadowColorMapper { - static const int BLACK_HASH = HashingUtils::HashString("BLACK"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int WHITE_HASH = HashingUtils::HashString("WHITE"); + static constexpr uint32_t BLACK_HASH = ConstExprHashingUtils::HashString("BLACK"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t WHITE_HASH = ConstExprHashingUtils::HashString("WHITE"); DvbSubDestinationShadowColor GetDvbSubDestinationShadowColorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLACK_HASH) { return DvbSubDestinationShadowColor::BLACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationTeletextGridControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationTeletextGridControl.cpp index e585f307331..c82d8066c25 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationTeletextGridControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubDestinationTeletextGridControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DvbSubDestinationTeletextGridControlMapper { - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); - static const int SCALED_HASH = HashingUtils::HashString("SCALED"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); + static constexpr uint32_t SCALED_HASH = ConstExprHashingUtils::HashString("SCALED"); DvbSubDestinationTeletextGridControl GetDvbSubDestinationTeletextGridControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_HASH) { return DvbSubDestinationTeletextGridControl::FIXED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubOcrLanguage.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubOcrLanguage.cpp index a567fc7f314..0a2c754feae 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubOcrLanguage.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/DvbSubOcrLanguage.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DvbSubOcrLanguageMapper { - static const int DEU_HASH = HashingUtils::HashString("DEU"); - static const int ENG_HASH = HashingUtils::HashString("ENG"); - static const int FRA_HASH = HashingUtils::HashString("FRA"); - static const int NLD_HASH = HashingUtils::HashString("NLD"); - static const int POR_HASH = HashingUtils::HashString("POR"); - static const int SPA_HASH = HashingUtils::HashString("SPA"); + static constexpr uint32_t DEU_HASH = ConstExprHashingUtils::HashString("DEU"); + static constexpr uint32_t ENG_HASH = ConstExprHashingUtils::HashString("ENG"); + static constexpr uint32_t FRA_HASH = ConstExprHashingUtils::HashString("FRA"); + static constexpr uint32_t NLD_HASH = ConstExprHashingUtils::HashString("NLD"); + static constexpr uint32_t POR_HASH = ConstExprHashingUtils::HashString("POR"); + static constexpr uint32_t SPA_HASH = ConstExprHashingUtils::HashString("SPA"); DvbSubOcrLanguage GetDvbSubOcrLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEU_HASH) { return DvbSubOcrLanguage::DEU; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosCodingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosCodingMode.cpp index b83e394e945..487117e84ff 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosCodingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosCodingMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3AtmosCodingModeMapper { - static const int CODING_MODE_5_1_4_HASH = HashingUtils::HashString("CODING_MODE_5_1_4"); - static const int CODING_MODE_7_1_4_HASH = HashingUtils::HashString("CODING_MODE_7_1_4"); - static const int CODING_MODE_9_1_6_HASH = HashingUtils::HashString("CODING_MODE_9_1_6"); + static constexpr uint32_t CODING_MODE_5_1_4_HASH = ConstExprHashingUtils::HashString("CODING_MODE_5_1_4"); + static constexpr uint32_t CODING_MODE_7_1_4_HASH = ConstExprHashingUtils::HashString("CODING_MODE_7_1_4"); + static constexpr uint32_t CODING_MODE_9_1_6_HASH = ConstExprHashingUtils::HashString("CODING_MODE_9_1_6"); Eac3AtmosCodingMode GetEac3AtmosCodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_5_1_4_HASH) { return Eac3AtmosCodingMode::CODING_MODE_5_1_4; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcLine.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcLine.cpp index 74b367ba65e..8d4f723d0a7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcLine.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcLine.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3AtmosDrcLineMapper { - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3AtmosDrcLine GetEac3AtmosDrcLineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_LIGHT_HASH) { return Eac3AtmosDrcLine::FILM_LIGHT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcRf.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcRf.cpp index f786c158441..7328119ddff 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcRf.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AtmosDrcRf.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3AtmosDrcRfMapper { - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3AtmosDrcRf GetEac3AtmosDrcRfForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_LIGHT_HASH) { return Eac3AtmosDrcRf::FILM_LIGHT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AttenuationControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AttenuationControl.cpp index 81aed607a0b..1374dbddca9 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AttenuationControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3AttenuationControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3AttenuationControlMapper { - static const int ATTENUATE_3_DB_HASH = HashingUtils::HashString("ATTENUATE_3_DB"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ATTENUATE_3_DB_HASH = ConstExprHashingUtils::HashString("ATTENUATE_3_DB"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Eac3AttenuationControl GetEac3AttenuationControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTENUATE_3_DB_HASH) { return Eac3AttenuationControl::ATTENUATE_3_DB; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3BitstreamMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3BitstreamMode.cpp index 52c3e24f83d..24447386f7e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3BitstreamMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3BitstreamMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Eac3BitstreamModeMapper { - static const int COMMENTARY_HASH = HashingUtils::HashString("COMMENTARY"); - static const int COMPLETE_MAIN_HASH = HashingUtils::HashString("COMPLETE_MAIN"); - static const int EMERGENCY_HASH = HashingUtils::HashString("EMERGENCY"); - static const int HEARING_IMPAIRED_HASH = HashingUtils::HashString("HEARING_IMPAIRED"); - static const int VISUALLY_IMPAIRED_HASH = HashingUtils::HashString("VISUALLY_IMPAIRED"); + static constexpr uint32_t COMMENTARY_HASH = ConstExprHashingUtils::HashString("COMMENTARY"); + static constexpr uint32_t COMPLETE_MAIN_HASH = ConstExprHashingUtils::HashString("COMPLETE_MAIN"); + static constexpr uint32_t EMERGENCY_HASH = ConstExprHashingUtils::HashString("EMERGENCY"); + static constexpr uint32_t HEARING_IMPAIRED_HASH = ConstExprHashingUtils::HashString("HEARING_IMPAIRED"); + static constexpr uint32_t VISUALLY_IMPAIRED_HASH = ConstExprHashingUtils::HashString("VISUALLY_IMPAIRED"); Eac3BitstreamMode GetEac3BitstreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMENTARY_HASH) { return Eac3BitstreamMode::COMMENTARY; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3CodingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3CodingMode.cpp index d62738af4ac..c3954972bc5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3CodingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3CodingMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3CodingModeMapper { - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_3_2_HASH = HashingUtils::HashString("CODING_MODE_3_2"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_3_2_HASH = ConstExprHashingUtils::HashString("CODING_MODE_3_2"); Eac3CodingMode GetEac3CodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_1_0_HASH) { return Eac3CodingMode::CODING_MODE_1_0; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DcFilter.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DcFilter.cpp index 005e3b63476..e87f98a8c6c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DcFilter.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DcFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3DcFilterMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Eac3DcFilter GetEac3DcFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Eac3DcFilter::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcLine.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcLine.cpp index f33c1587257..8119b3fb82b 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcLine.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcLine.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3DrcLineMapper { - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3DrcLine GetEac3DrcLineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_LIGHT_HASH) { return Eac3DrcLine::FILM_LIGHT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcRf.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcRf.cpp index 6dcb3ec3ffc..0fa9fdb9a7f 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcRf.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3DrcRf.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Eac3DrcRfMapper { - static const int FILM_LIGHT_HASH = HashingUtils::HashString("FILM_LIGHT"); - static const int FILM_STANDARD_HASH = HashingUtils::HashString("FILM_STANDARD"); - static const int MUSIC_LIGHT_HASH = HashingUtils::HashString("MUSIC_LIGHT"); - static const int MUSIC_STANDARD_HASH = HashingUtils::HashString("MUSIC_STANDARD"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SPEECH_HASH = HashingUtils::HashString("SPEECH"); + static constexpr uint32_t FILM_LIGHT_HASH = ConstExprHashingUtils::HashString("FILM_LIGHT"); + static constexpr uint32_t FILM_STANDARD_HASH = ConstExprHashingUtils::HashString("FILM_STANDARD"); + static constexpr uint32_t MUSIC_LIGHT_HASH = ConstExprHashingUtils::HashString("MUSIC_LIGHT"); + static constexpr uint32_t MUSIC_STANDARD_HASH = ConstExprHashingUtils::HashString("MUSIC_STANDARD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SPEECH_HASH = ConstExprHashingUtils::HashString("SPEECH"); Eac3DrcRf GetEac3DrcRfForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILM_LIGHT_HASH) { return Eac3DrcRf::FILM_LIGHT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeControl.cpp index dd90b120ee7..8e6d20e7b2d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3LfeControlMapper { - static const int LFE_HASH = HashingUtils::HashString("LFE"); - static const int NO_LFE_HASH = HashingUtils::HashString("NO_LFE"); + static constexpr uint32_t LFE_HASH = ConstExprHashingUtils::HashString("LFE"); + static constexpr uint32_t NO_LFE_HASH = ConstExprHashingUtils::HashString("NO_LFE"); Eac3LfeControl GetEac3LfeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LFE_HASH) { return Eac3LfeControl::LFE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeFilter.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeFilter.cpp index 83e3ab70a4c..2b4b76bc438 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeFilter.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3LfeFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3LfeFilterMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); Eac3LfeFilter GetEac3LfeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Eac3LfeFilter::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3MetadataControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3MetadataControl.cpp index 452eb6b7b46..83b40ce8713 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3MetadataControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3MetadataControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3MetadataControlMapper { - static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t FOLLOW_INPUT_HASH = ConstExprHashingUtils::HashString("FOLLOW_INPUT"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); Eac3MetadataControl GetEac3MetadataControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return Eac3MetadataControl::FOLLOW_INPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PassthroughControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PassthroughControl.cpp index 02ae39cc7a0..9709f28e5ff 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PassthroughControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PassthroughControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3PassthroughControlMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int WHEN_POSSIBLE_HASH = HashingUtils::HashString("WHEN_POSSIBLE"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t WHEN_POSSIBLE_HASH = ConstExprHashingUtils::HashString("WHEN_POSSIBLE"); Eac3PassthroughControl GetEac3PassthroughControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return Eac3PassthroughControl::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PhaseControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PhaseControl.cpp index 239f7be6554..cf7e8011e9c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PhaseControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3PhaseControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Eac3PhaseControlMapper { - static const int NO_SHIFT_HASH = HashingUtils::HashString("NO_SHIFT"); - static const int SHIFT_90_DEGREES_HASH = HashingUtils::HashString("SHIFT_90_DEGREES"); + static constexpr uint32_t NO_SHIFT_HASH = ConstExprHashingUtils::HashString("NO_SHIFT"); + static constexpr uint32_t SHIFT_90_DEGREES_HASH = ConstExprHashingUtils::HashString("SHIFT_90_DEGREES"); Eac3PhaseControl GetEac3PhaseControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_SHIFT_HASH) { return Eac3PhaseControl::NO_SHIFT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3StereoDownmix.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3StereoDownmix.cpp index 7ac23666832..1e0fc3944fd 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3StereoDownmix.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3StereoDownmix.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Eac3StereoDownmixMapper { - static const int DPL2_HASH = HashingUtils::HashString("DPL2"); - static const int LO_RO_HASH = HashingUtils::HashString("LO_RO"); - static const int LT_RT_HASH = HashingUtils::HashString("LT_RT"); - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t DPL2_HASH = ConstExprHashingUtils::HashString("DPL2"); + static constexpr uint32_t LO_RO_HASH = ConstExprHashingUtils::HashString("LO_RO"); + static constexpr uint32_t LT_RT_HASH = ConstExprHashingUtils::HashString("LT_RT"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); Eac3StereoDownmix GetEac3StereoDownmixForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DPL2_HASH) { return Eac3StereoDownmix::DPL2; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundExMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundExMode.cpp index 856ed58130c..2ae0d606d17 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundExMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundExMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3SurroundExModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); Eac3SurroundExMode GetEac3SurroundExModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Eac3SurroundExMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundMode.cpp index f03cc8b7350..b679daec971 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Eac3SurroundMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace Eac3SurroundModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int NOT_INDICATED_HASH = HashingUtils::HashString("NOT_INDICATED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t NOT_INDICATED_HASH = ConstExprHashingUtils::HashString("NOT_INDICATED"); Eac3SurroundMode GetEac3SurroundModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Eac3SurroundMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDDestinationStyleControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDDestinationStyleControl.cpp index ebc75e139f9..eb5d58c0b3e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDDestinationStyleControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDDestinationStyleControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EbuTtDDestinationStyleControlMapper { - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); EbuTtDDestinationStyleControl GetEbuTtDDestinationStyleControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCLUDE_HASH) { return EbuTtDDestinationStyleControl::EXCLUDE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDFillLineGapControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDFillLineGapControl.cpp index 820d3b56cf0..cdf392a6596 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDFillLineGapControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/EbuTtDFillLineGapControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EbuTtDFillLineGapControlMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); EbuTtDFillLineGapControl GetEbuTtDFillLineGapControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return EbuTtDFillLineGapControl::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedConvert608To708.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedConvert608To708.cpp index 70c50a71a0e..efdf7adf9fb 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedConvert608To708.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedConvert608To708.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EmbeddedConvert608To708Mapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int UPCONVERT_HASH = HashingUtils::HashString("UPCONVERT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPCONVERT_HASH = ConstExprHashingUtils::HashString("UPCONVERT"); EmbeddedConvert608To708 GetEmbeddedConvert608To708ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return EmbeddedConvert608To708::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedScte20Detection.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedScte20Detection.cpp index a57087ca69c..2e6afe05295 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedScte20Detection.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/EmbeddedScte20Detection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EmbeddedScte20DetectionMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); EmbeddedScte20Detection GetEmbeddedScte20DetectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return EmbeddedScte20Detection::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/FeatureActivationsInputPrepareScheduleActions.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/FeatureActivationsInputPrepareScheduleActions.cpp index 86189cbcc59..290a10dea2f 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/FeatureActivationsInputPrepareScheduleActions.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/FeatureActivationsInputPrepareScheduleActions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureActivationsInputPrepareScheduleActionsMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); FeatureActivationsInputPrepareScheduleActions GetFeatureActivationsInputPrepareScheduleActionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return FeatureActivationsInputPrepareScheduleActions::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/FecOutputIncludeFec.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/FecOutputIncludeFec.cpp index af1bedca633..2e1689b3298 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/FecOutputIncludeFec.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/FecOutputIncludeFec.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FecOutputIncludeFecMapper { - static const int COLUMN_HASH = HashingUtils::HashString("COLUMN"); - static const int COLUMN_AND_ROW_HASH = HashingUtils::HashString("COLUMN_AND_ROW"); + static constexpr uint32_t COLUMN_HASH = ConstExprHashingUtils::HashString("COLUMN"); + static constexpr uint32_t COLUMN_AND_ROW_HASH = ConstExprHashingUtils::HashString("COLUMN_AND_ROW"); FecOutputIncludeFec GetFecOutputIncludeFecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMN_HASH) { return FecOutputIncludeFec::COLUMN; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/FixedAfd.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/FixedAfd.cpp index a41b9af023c..74b999e5977 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/FixedAfd.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/FixedAfd.cpp @@ -20,22 +20,22 @@ namespace Aws namespace FixedAfdMapper { - static const int AFD_0000_HASH = HashingUtils::HashString("AFD_0000"); - static const int AFD_0010_HASH = HashingUtils::HashString("AFD_0010"); - static const int AFD_0011_HASH = HashingUtils::HashString("AFD_0011"); - static const int AFD_0100_HASH = HashingUtils::HashString("AFD_0100"); - static const int AFD_1000_HASH = HashingUtils::HashString("AFD_1000"); - static const int AFD_1001_HASH = HashingUtils::HashString("AFD_1001"); - static const int AFD_1010_HASH = HashingUtils::HashString("AFD_1010"); - static const int AFD_1011_HASH = HashingUtils::HashString("AFD_1011"); - static const int AFD_1101_HASH = HashingUtils::HashString("AFD_1101"); - static const int AFD_1110_HASH = HashingUtils::HashString("AFD_1110"); - static const int AFD_1111_HASH = HashingUtils::HashString("AFD_1111"); + static constexpr uint32_t AFD_0000_HASH = ConstExprHashingUtils::HashString("AFD_0000"); + static constexpr uint32_t AFD_0010_HASH = ConstExprHashingUtils::HashString("AFD_0010"); + static constexpr uint32_t AFD_0011_HASH = ConstExprHashingUtils::HashString("AFD_0011"); + static constexpr uint32_t AFD_0100_HASH = ConstExprHashingUtils::HashString("AFD_0100"); + static constexpr uint32_t AFD_1000_HASH = ConstExprHashingUtils::HashString("AFD_1000"); + static constexpr uint32_t AFD_1001_HASH = ConstExprHashingUtils::HashString("AFD_1001"); + static constexpr uint32_t AFD_1010_HASH = ConstExprHashingUtils::HashString("AFD_1010"); + static constexpr uint32_t AFD_1011_HASH = ConstExprHashingUtils::HashString("AFD_1011"); + static constexpr uint32_t AFD_1101_HASH = ConstExprHashingUtils::HashString("AFD_1101"); + static constexpr uint32_t AFD_1110_HASH = ConstExprHashingUtils::HashString("AFD_1110"); + static constexpr uint32_t AFD_1111_HASH = ConstExprHashingUtils::HashString("AFD_1111"); FixedAfd GetFixedAfdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AFD_0000_HASH) { return FixedAfd::AFD_0000; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4NielsenId3Behavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4NielsenId3Behavior.cpp index 9e698a47f7b..611d05cce68 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4NielsenId3Behavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4NielsenId3Behavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Fmp4NielsenId3BehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); Fmp4NielsenId3Behavior GetFmp4NielsenId3BehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return Fmp4NielsenId3Behavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4TimedMetadataBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4TimedMetadataBehavior.cpp index 680506b84d1..8dd26c4e52f 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4TimedMetadataBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Fmp4TimedMetadataBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Fmp4TimedMetadataBehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); Fmp4TimedMetadataBehavior GetFmp4TimedMetadataBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return Fmp4TimedMetadataBehavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/FollowPoint.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/FollowPoint.cpp index 1cb70828b46..542d5f08b56 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/FollowPoint.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/FollowPoint.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FollowPointMapper { - static const int END_HASH = HashingUtils::HashString("END"); - static const int START_HASH = HashingUtils::HashString("START"); + static constexpr uint32_t END_HASH = ConstExprHashingUtils::HashString("END"); + static constexpr uint32_t START_HASH = ConstExprHashingUtils::HashString("START"); FollowPoint GetFollowPointForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == END_HASH) { return FollowPoint::END; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/FrameCaptureIntervalUnit.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/FrameCaptureIntervalUnit.cpp index 972c99c2423..93ac9483a3e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/FrameCaptureIntervalUnit.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/FrameCaptureIntervalUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FrameCaptureIntervalUnitMapper { - static const int MILLISECONDS_HASH = HashingUtils::HashString("MILLISECONDS"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); + static constexpr uint32_t MILLISECONDS_HASH = ConstExprHashingUtils::HashString("MILLISECONDS"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); FrameCaptureIntervalUnit GetFrameCaptureIntervalUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MILLISECONDS_HASH) { return FrameCaptureIntervalUnit::MILLISECONDS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationInputEndAction.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationInputEndAction.cpp index 7bed0740c61..52dc1163177 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationInputEndAction.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationInputEndAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlobalConfigurationInputEndActionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SWITCH_AND_LOOP_INPUTS_HASH = HashingUtils::HashString("SWITCH_AND_LOOP_INPUTS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SWITCH_AND_LOOP_INPUTS_HASH = ConstExprHashingUtils::HashString("SWITCH_AND_LOOP_INPUTS"); GlobalConfigurationInputEndAction GetGlobalConfigurationInputEndActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return GlobalConfigurationInputEndAction::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationLowFramerateInputs.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationLowFramerateInputs.cpp index fb2eac663e0..4b4fce820dd 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationLowFramerateInputs.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationLowFramerateInputs.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlobalConfigurationLowFramerateInputsMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); GlobalConfigurationLowFramerateInputs GetGlobalConfigurationLowFramerateInputsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return GlobalConfigurationLowFramerateInputs::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputLockingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputLockingMode.cpp index 4dc9f3f0477..83d5efa55b1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputLockingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputLockingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlobalConfigurationOutputLockingModeMapper { - static const int EPOCH_LOCKING_HASH = HashingUtils::HashString("EPOCH_LOCKING"); - static const int PIPELINE_LOCKING_HASH = HashingUtils::HashString("PIPELINE_LOCKING"); + static constexpr uint32_t EPOCH_LOCKING_HASH = ConstExprHashingUtils::HashString("EPOCH_LOCKING"); + static constexpr uint32_t PIPELINE_LOCKING_HASH = ConstExprHashingUtils::HashString("PIPELINE_LOCKING"); GlobalConfigurationOutputLockingMode GetGlobalConfigurationOutputLockingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EPOCH_LOCKING_HASH) { return GlobalConfigurationOutputLockingMode::EPOCH_LOCKING; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputTimingSource.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputTimingSource.cpp index 6e18d3ecd88..28f435bb7fc 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputTimingSource.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/GlobalConfigurationOutputTimingSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlobalConfigurationOutputTimingSourceMapper { - static const int INPUT_CLOCK_HASH = HashingUtils::HashString("INPUT_CLOCK"); - static const int SYSTEM_CLOCK_HASH = HashingUtils::HashString("SYSTEM_CLOCK"); + static constexpr uint32_t INPUT_CLOCK_HASH = ConstExprHashingUtils::HashString("INPUT_CLOCK"); + static constexpr uint32_t SYSTEM_CLOCK_HASH = ConstExprHashingUtils::HashString("SYSTEM_CLOCK"); GlobalConfigurationOutputTimingSource GetGlobalConfigurationOutputTimingSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INPUT_CLOCK_HASH) { return GlobalConfigurationOutputTimingSource::INPUT_CLOCK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264AdaptiveQuantization.cpp index 431afc3408e..6dcb5c0a531 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264AdaptiveQuantization.cpp @@ -20,18 +20,18 @@ namespace Aws namespace H264AdaptiveQuantizationMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGHER_HASH = HashingUtils::HashString("HIGHER"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGHER_HASH = ConstExprHashingUtils::HashString("HIGHER"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); H264AdaptiveQuantization GetH264AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return H264AdaptiveQuantization::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264ColorMetadata.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264ColorMetadata.cpp index 738e803cc19..14151a1a530 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264ColorMetadata.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264ColorMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264ColorMetadataMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); H264ColorMetadata GetH264ColorMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return H264ColorMetadata::IGNORE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264EntropyEncoding.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264EntropyEncoding.cpp index 976095d21f5..17f179a7844 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264EntropyEncoding.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264EntropyEncoding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264EntropyEncodingMapper { - static const int CABAC_HASH = HashingUtils::HashString("CABAC"); - static const int CAVLC_HASH = HashingUtils::HashString("CAVLC"); + static constexpr uint32_t CABAC_HASH = ConstExprHashingUtils::HashString("CABAC"); + static constexpr uint32_t CAVLC_HASH = ConstExprHashingUtils::HashString("CAVLC"); H264EntropyEncoding GetH264EntropyEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CABAC_HASH) { return H264EntropyEncoding::CABAC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264FlickerAq.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264FlickerAq.cpp index 8c29c1a451e..5731d35cf94 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264FlickerAq.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264FlickerAq.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264FlickerAqMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264FlickerAq GetH264FlickerAqForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264FlickerAq::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264ForceFieldPictures.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264ForceFieldPictures.cpp index cbc608659c2..bcf152e6a20 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264ForceFieldPictures.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264ForceFieldPictures.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264ForceFieldPicturesMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264ForceFieldPictures GetH264ForceFieldPicturesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264ForceFieldPictures::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264FramerateControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264FramerateControl.cpp index f681c1936be..6cc50c95d5c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264FramerateControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264FramerateControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264FramerateControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); H264FramerateControl GetH264FramerateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return H264FramerateControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264GopBReference.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264GopBReference.cpp index 3d888b6899b..d20bcd5d1ed 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264GopBReference.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264GopBReference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264GopBReferenceMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264GopBReference GetH264GopBReferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264GopBReference::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264GopSizeUnits.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264GopSizeUnits.cpp index ad032ab881b..5649e2dc659 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264GopSizeUnits.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264GopSizeUnits.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264GopSizeUnitsMapper { - static const int FRAMES_HASH = HashingUtils::HashString("FRAMES"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); + static constexpr uint32_t FRAMES_HASH = ConstExprHashingUtils::HashString("FRAMES"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); H264GopSizeUnits GetH264GopSizeUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMES_HASH) { return H264GopSizeUnits::FRAMES; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264Level.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264Level.cpp index 94cdbe8c23b..c24a58107b8 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264Level.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264Level.cpp @@ -20,28 +20,28 @@ namespace Aws namespace H264LevelMapper { - static const int H264_LEVEL_1_HASH = HashingUtils::HashString("H264_LEVEL_1"); - static const int H264_LEVEL_1_1_HASH = HashingUtils::HashString("H264_LEVEL_1_1"); - static const int H264_LEVEL_1_2_HASH = HashingUtils::HashString("H264_LEVEL_1_2"); - static const int H264_LEVEL_1_3_HASH = HashingUtils::HashString("H264_LEVEL_1_3"); - static const int H264_LEVEL_2_HASH = HashingUtils::HashString("H264_LEVEL_2"); - static const int H264_LEVEL_2_1_HASH = HashingUtils::HashString("H264_LEVEL_2_1"); - static const int H264_LEVEL_2_2_HASH = HashingUtils::HashString("H264_LEVEL_2_2"); - static const int H264_LEVEL_3_HASH = HashingUtils::HashString("H264_LEVEL_3"); - static const int H264_LEVEL_3_1_HASH = HashingUtils::HashString("H264_LEVEL_3_1"); - static const int H264_LEVEL_3_2_HASH = HashingUtils::HashString("H264_LEVEL_3_2"); - static const int H264_LEVEL_4_HASH = HashingUtils::HashString("H264_LEVEL_4"); - static const int H264_LEVEL_4_1_HASH = HashingUtils::HashString("H264_LEVEL_4_1"); - static const int H264_LEVEL_4_2_HASH = HashingUtils::HashString("H264_LEVEL_4_2"); - static const int H264_LEVEL_5_HASH = HashingUtils::HashString("H264_LEVEL_5"); - static const int H264_LEVEL_5_1_HASH = HashingUtils::HashString("H264_LEVEL_5_1"); - static const int H264_LEVEL_5_2_HASH = HashingUtils::HashString("H264_LEVEL_5_2"); - static const int H264_LEVEL_AUTO_HASH = HashingUtils::HashString("H264_LEVEL_AUTO"); + static constexpr uint32_t H264_LEVEL_1_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_1"); + static constexpr uint32_t H264_LEVEL_1_1_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_1_1"); + static constexpr uint32_t H264_LEVEL_1_2_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_1_2"); + static constexpr uint32_t H264_LEVEL_1_3_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_1_3"); + static constexpr uint32_t H264_LEVEL_2_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_2"); + static constexpr uint32_t H264_LEVEL_2_1_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_2_1"); + static constexpr uint32_t H264_LEVEL_2_2_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_2_2"); + static constexpr uint32_t H264_LEVEL_3_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_3"); + static constexpr uint32_t H264_LEVEL_3_1_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_3_1"); + static constexpr uint32_t H264_LEVEL_3_2_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_3_2"); + static constexpr uint32_t H264_LEVEL_4_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_4"); + static constexpr uint32_t H264_LEVEL_4_1_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_4_1"); + static constexpr uint32_t H264_LEVEL_4_2_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_4_2"); + static constexpr uint32_t H264_LEVEL_5_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_5"); + static constexpr uint32_t H264_LEVEL_5_1_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_5_1"); + static constexpr uint32_t H264_LEVEL_5_2_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_5_2"); + static constexpr uint32_t H264_LEVEL_AUTO_HASH = ConstExprHashingUtils::HashString("H264_LEVEL_AUTO"); H264Level GetH264LevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == H264_LEVEL_1_HASH) { return H264Level::H264_LEVEL_1; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264LookAheadRateControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264LookAheadRateControl.cpp index 2fe21a2428d..eda9688483e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264LookAheadRateControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264LookAheadRateControl.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H264LookAheadRateControlMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); H264LookAheadRateControl GetH264LookAheadRateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return H264LookAheadRateControl::HIGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264ParControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264ParControl.cpp index 9e8a0ab12ac..fc3281ca835 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264ParControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264ParControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264ParControlMapper { - static const int INITIALIZE_FROM_SOURCE_HASH = HashingUtils::HashString("INITIALIZE_FROM_SOURCE"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t INITIALIZE_FROM_SOURCE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_SOURCE"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); H264ParControl GetH264ParControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_SOURCE_HASH) { return H264ParControl::INITIALIZE_FROM_SOURCE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264Profile.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264Profile.cpp index 606eabae085..6808dd50579 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264Profile.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264Profile.cpp @@ -20,17 +20,17 @@ namespace Aws namespace H264ProfileMapper { - static const int BASELINE_HASH = HashingUtils::HashString("BASELINE"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGH_10BIT_HASH = HashingUtils::HashString("HIGH_10BIT"); - static const int HIGH_422_HASH = HashingUtils::HashString("HIGH_422"); - static const int HIGH_422_10BIT_HASH = HashingUtils::HashString("HIGH_422_10BIT"); - static const int MAIN_HASH = HashingUtils::HashString("MAIN"); + static constexpr uint32_t BASELINE_HASH = ConstExprHashingUtils::HashString("BASELINE"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGH_10BIT_HASH = ConstExprHashingUtils::HashString("HIGH_10BIT"); + static constexpr uint32_t HIGH_422_HASH = ConstExprHashingUtils::HashString("HIGH_422"); + static constexpr uint32_t HIGH_422_10BIT_HASH = ConstExprHashingUtils::HashString("HIGH_422_10BIT"); + static constexpr uint32_t MAIN_HASH = ConstExprHashingUtils::HashString("MAIN"); H264Profile GetH264ProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASELINE_HASH) { return H264Profile::BASELINE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264QualityLevel.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264QualityLevel.cpp index 8cbe820348e..0e6d4b8e871 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264QualityLevel.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264QualityLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264QualityLevelMapper { - static const int ENHANCED_QUALITY_HASH = HashingUtils::HashString("ENHANCED_QUALITY"); - static const int STANDARD_QUALITY_HASH = HashingUtils::HashString("STANDARD_QUALITY"); + static constexpr uint32_t ENHANCED_QUALITY_HASH = ConstExprHashingUtils::HashString("ENHANCED_QUALITY"); + static constexpr uint32_t STANDARD_QUALITY_HASH = ConstExprHashingUtils::HashString("STANDARD_QUALITY"); H264QualityLevel GetH264QualityLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENHANCED_QUALITY_HASH) { return H264QualityLevel::ENHANCED_QUALITY; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264RateControlMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264RateControlMode.cpp index 85162e41d4c..af27a9dac56 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264RateControlMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace H264RateControlModeMapper { - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int MULTIPLEX_HASH = HashingUtils::HashString("MULTIPLEX"); - static const int QVBR_HASH = HashingUtils::HashString("QVBR"); - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t MULTIPLEX_HASH = ConstExprHashingUtils::HashString("MULTIPLEX"); + static constexpr uint32_t QVBR_HASH = ConstExprHashingUtils::HashString("QVBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); H264RateControlMode GetH264RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CBR_HASH) { return H264RateControlMode::CBR; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264ScanType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264ScanType.cpp index 306d9b50f04..01d7643c910 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264ScanType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264ScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264ScanTypeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); H264ScanType GetH264ScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return H264ScanType::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264SceneChangeDetect.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264SceneChangeDetect.cpp index 24c6db4e5d7..e25b2f89b4a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264SceneChangeDetect.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264SceneChangeDetect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SceneChangeDetectMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264SceneChangeDetect GetH264SceneChangeDetectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264SceneChangeDetect::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264SpatialAq.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264SpatialAq.cpp index b8112e19138..7489773bebf 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264SpatialAq.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264SpatialAq.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SpatialAqMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264SpatialAq GetH264SpatialAqForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264SpatialAq::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264SubGopLength.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264SubGopLength.cpp index 6e5fa88dd12..1fef257806a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264SubGopLength.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264SubGopLength.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SubGopLengthMapper { - static const int DYNAMIC_HASH = HashingUtils::HashString("DYNAMIC"); - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); + static constexpr uint32_t DYNAMIC_HASH = ConstExprHashingUtils::HashString("DYNAMIC"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); H264SubGopLength GetH264SubGopLengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DYNAMIC_HASH) { return H264SubGopLength::DYNAMIC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264Syntax.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264Syntax.cpp index 40506105a7e..a26d8968eb1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264Syntax.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264Syntax.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264SyntaxMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int RP2027_HASH = HashingUtils::HashString("RP2027"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t RP2027_HASH = ConstExprHashingUtils::HashString("RP2027"); H264Syntax GetH264SyntaxForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return H264Syntax::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264TemporalAq.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264TemporalAq.cpp index 0b945df1346..3bf42d78081 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264TemporalAq.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264TemporalAq.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264TemporalAqMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H264TemporalAq GetH264TemporalAqForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264TemporalAq::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H264TimecodeInsertionBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H264TimecodeInsertionBehavior.cpp index 616b609741f..562d1bd156a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H264TimecodeInsertionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H264TimecodeInsertionBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H264TimecodeInsertionBehaviorMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int PIC_TIMING_SEI_HASH = HashingUtils::HashString("PIC_TIMING_SEI"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t PIC_TIMING_SEI_HASH = ConstExprHashingUtils::HashString("PIC_TIMING_SEI"); H264TimecodeInsertionBehavior GetH264TimecodeInsertionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H264TimecodeInsertionBehavior::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265AdaptiveQuantization.cpp index 1dfce2bc935..93702bf240c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265AdaptiveQuantization.cpp @@ -20,18 +20,18 @@ namespace Aws namespace H265AdaptiveQuantizationMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int HIGHER_HASH = HashingUtils::HashString("HIGHER"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t HIGHER_HASH = ConstExprHashingUtils::HashString("HIGHER"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); H265AdaptiveQuantization GetH265AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return H265AdaptiveQuantization::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265AlternativeTransferFunction.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265AlternativeTransferFunction.cpp index 8e78dc20a80..b57586179b7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265AlternativeTransferFunction.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265AlternativeTransferFunction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265AlternativeTransferFunctionMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int OMIT_HASH = HashingUtils::HashString("OMIT"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t OMIT_HASH = ConstExprHashingUtils::HashString("OMIT"); H265AlternativeTransferFunction GetH265AlternativeTransferFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return H265AlternativeTransferFunction::INSERT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265ColorMetadata.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265ColorMetadata.cpp index 1b2cb76b31a..80b1e51e1c5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265ColorMetadata.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265ColorMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265ColorMetadataMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); H265ColorMetadata GetH265ColorMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return H265ColorMetadata::IGNORE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265FlickerAq.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265FlickerAq.cpp index 785af62a781..8268a07ad65 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265FlickerAq.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265FlickerAq.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265FlickerAqMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265FlickerAq GetH265FlickerAqForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265FlickerAq::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265GopSizeUnits.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265GopSizeUnits.cpp index de5326a6e09..667e20e7abe 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265GopSizeUnits.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265GopSizeUnits.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265GopSizeUnitsMapper { - static const int FRAMES_HASH = HashingUtils::HashString("FRAMES"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); + static constexpr uint32_t FRAMES_HASH = ConstExprHashingUtils::HashString("FRAMES"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); H265GopSizeUnits GetH265GopSizeUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMES_HASH) { return H265GopSizeUnits::FRAMES; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265Level.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265Level.cpp index 64c2f955063..ae76559927a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265Level.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265Level.cpp @@ -20,25 +20,25 @@ namespace Aws namespace H265LevelMapper { - static const int H265_LEVEL_1_HASH = HashingUtils::HashString("H265_LEVEL_1"); - static const int H265_LEVEL_2_HASH = HashingUtils::HashString("H265_LEVEL_2"); - static const int H265_LEVEL_2_1_HASH = HashingUtils::HashString("H265_LEVEL_2_1"); - static const int H265_LEVEL_3_HASH = HashingUtils::HashString("H265_LEVEL_3"); - static const int H265_LEVEL_3_1_HASH = HashingUtils::HashString("H265_LEVEL_3_1"); - static const int H265_LEVEL_4_HASH = HashingUtils::HashString("H265_LEVEL_4"); - static const int H265_LEVEL_4_1_HASH = HashingUtils::HashString("H265_LEVEL_4_1"); - static const int H265_LEVEL_5_HASH = HashingUtils::HashString("H265_LEVEL_5"); - static const int H265_LEVEL_5_1_HASH = HashingUtils::HashString("H265_LEVEL_5_1"); - static const int H265_LEVEL_5_2_HASH = HashingUtils::HashString("H265_LEVEL_5_2"); - static const int H265_LEVEL_6_HASH = HashingUtils::HashString("H265_LEVEL_6"); - static const int H265_LEVEL_6_1_HASH = HashingUtils::HashString("H265_LEVEL_6_1"); - static const int H265_LEVEL_6_2_HASH = HashingUtils::HashString("H265_LEVEL_6_2"); - static const int H265_LEVEL_AUTO_HASH = HashingUtils::HashString("H265_LEVEL_AUTO"); + static constexpr uint32_t H265_LEVEL_1_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_1"); + static constexpr uint32_t H265_LEVEL_2_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_2"); + static constexpr uint32_t H265_LEVEL_2_1_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_2_1"); + static constexpr uint32_t H265_LEVEL_3_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_3"); + static constexpr uint32_t H265_LEVEL_3_1_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_3_1"); + static constexpr uint32_t H265_LEVEL_4_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_4"); + static constexpr uint32_t H265_LEVEL_4_1_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_4_1"); + static constexpr uint32_t H265_LEVEL_5_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_5"); + static constexpr uint32_t H265_LEVEL_5_1_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_5_1"); + static constexpr uint32_t H265_LEVEL_5_2_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_5_2"); + static constexpr uint32_t H265_LEVEL_6_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_6"); + static constexpr uint32_t H265_LEVEL_6_1_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_6_1"); + static constexpr uint32_t H265_LEVEL_6_2_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_6_2"); + static constexpr uint32_t H265_LEVEL_AUTO_HASH = ConstExprHashingUtils::HashString("H265_LEVEL_AUTO"); H265Level GetH265LevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == H265_LEVEL_1_HASH) { return H265Level::H265_LEVEL_1; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265LookAheadRateControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265LookAheadRateControl.cpp index 371ea9451ee..bb3fc4af399 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265LookAheadRateControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265LookAheadRateControl.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265LookAheadRateControlMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); H265LookAheadRateControl GetH265LookAheadRateControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return H265LookAheadRateControl::HIGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265Profile.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265Profile.cpp index a99793bb80e..da22f872282 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265Profile.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265Profile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265ProfileMapper { - static const int MAIN_HASH = HashingUtils::HashString("MAIN"); - static const int MAIN_10BIT_HASH = HashingUtils::HashString("MAIN_10BIT"); + static constexpr uint32_t MAIN_HASH = ConstExprHashingUtils::HashString("MAIN"); + static constexpr uint32_t MAIN_10BIT_HASH = ConstExprHashingUtils::HashString("MAIN_10BIT"); H265Profile GetH265ProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAIN_HASH) { return H265Profile::MAIN; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265RateControlMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265RateControlMode.cpp index ad19c2b925e..34f13ea965d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265RateControlMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265RateControlMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace H265RateControlModeMapper { - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int MULTIPLEX_HASH = HashingUtils::HashString("MULTIPLEX"); - static const int QVBR_HASH = HashingUtils::HashString("QVBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t MULTIPLEX_HASH = ConstExprHashingUtils::HashString("MULTIPLEX"); + static constexpr uint32_t QVBR_HASH = ConstExprHashingUtils::HashString("QVBR"); H265RateControlMode GetH265RateControlModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CBR_HASH) { return H265RateControlMode::CBR; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265ScanType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265ScanType.cpp index b1d9bca2d9a..a1166a2c148 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265ScanType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265ScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265ScanTypeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); H265ScanType GetH265ScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return H265ScanType::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265SceneChangeDetect.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265SceneChangeDetect.cpp index 43af40691ce..664ec9c6385 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265SceneChangeDetect.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265SceneChangeDetect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265SceneChangeDetectMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); H265SceneChangeDetect GetH265SceneChangeDetectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265SceneChangeDetect::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265Tier.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265Tier.cpp index 9785f763cf9..cbd5e9b519e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265Tier.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265Tier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265TierMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MAIN_HASH = HashingUtils::HashString("MAIN"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MAIN_HASH = ConstExprHashingUtils::HashString("MAIN"); H265Tier GetH265TierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return H265Tier::HIGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/H265TimecodeInsertionBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/H265TimecodeInsertionBehavior.cpp index 0f83e947c26..9699c6ce373 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/H265TimecodeInsertionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/H265TimecodeInsertionBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace H265TimecodeInsertionBehaviorMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int PIC_TIMING_SEI_HASH = HashingUtils::HashString("PIC_TIMING_SEI"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t PIC_TIMING_SEI_HASH = ConstExprHashingUtils::HashString("PIC_TIMING_SEI"); H265TimecodeInsertionBehavior GetH265TimecodeInsertionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return H265TimecodeInsertionBehavior::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsAdMarkers.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsAdMarkers.cpp index 1d4d3fa46c3..9ebbad5312a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsAdMarkers.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsAdMarkers.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HlsAdMarkersMapper { - static const int ADOBE_HASH = HashingUtils::HashString("ADOBE"); - static const int ELEMENTAL_HASH = HashingUtils::HashString("ELEMENTAL"); - static const int ELEMENTAL_SCTE35_HASH = HashingUtils::HashString("ELEMENTAL_SCTE35"); + static constexpr uint32_t ADOBE_HASH = ConstExprHashingUtils::HashString("ADOBE"); + static constexpr uint32_t ELEMENTAL_HASH = ConstExprHashingUtils::HashString("ELEMENTAL"); + static constexpr uint32_t ELEMENTAL_SCTE35_HASH = ConstExprHashingUtils::HashString("ELEMENTAL_SCTE35"); HlsAdMarkers GetHlsAdMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADOBE_HASH) { return HlsAdMarkers::ADOBE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsAkamaiHttpTransferMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsAkamaiHttpTransferMode.cpp index d1c9e561e58..32bd56152a4 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsAkamaiHttpTransferMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsAkamaiHttpTransferMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsAkamaiHttpTransferModeMapper { - static const int CHUNKED_HASH = HashingUtils::HashString("CHUNKED"); - static const int NON_CHUNKED_HASH = HashingUtils::HashString("NON_CHUNKED"); + static constexpr uint32_t CHUNKED_HASH = ConstExprHashingUtils::HashString("CHUNKED"); + static constexpr uint32_t NON_CHUNKED_HASH = ConstExprHashingUtils::HashString("NON_CHUNKED"); HlsAkamaiHttpTransferMode GetHlsAkamaiHttpTransferModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHUNKED_HASH) { return HlsAkamaiHttpTransferMode::CHUNKED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsCaptionLanguageSetting.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsCaptionLanguageSetting.cpp index 20bbd5bca5d..8dc0da366b1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsCaptionLanguageSetting.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsCaptionLanguageSetting.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HlsCaptionLanguageSettingMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int OMIT_HASH = HashingUtils::HashString("OMIT"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t OMIT_HASH = ConstExprHashingUtils::HashString("OMIT"); HlsCaptionLanguageSetting GetHlsCaptionLanguageSettingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return HlsCaptionLanguageSetting::INSERT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsClientCache.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsClientCache.cpp index 89bd89367a1..c0153eca0ba 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsClientCache.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsClientCache.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsClientCacheMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); HlsClientCache GetHlsClientCacheForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return HlsClientCache::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsCodecSpecification.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsCodecSpecification.cpp index e622247386f..50873c7c970 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsCodecSpecification.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsCodecSpecification.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsCodecSpecificationMapper { - static const int RFC_4281_HASH = HashingUtils::HashString("RFC_4281"); - static const int RFC_6381_HASH = HashingUtils::HashString("RFC_6381"); + static constexpr uint32_t RFC_4281_HASH = ConstExprHashingUtils::HashString("RFC_4281"); + static constexpr uint32_t RFC_6381_HASH = ConstExprHashingUtils::HashString("RFC_6381"); HlsCodecSpecification GetHlsCodecSpecificationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RFC_4281_HASH) { return HlsCodecSpecification::RFC_4281; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsDirectoryStructure.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsDirectoryStructure.cpp index e550fcb109b..3b2059b3835 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsDirectoryStructure.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsDirectoryStructure.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsDirectoryStructureMapper { - static const int SINGLE_DIRECTORY_HASH = HashingUtils::HashString("SINGLE_DIRECTORY"); - static const int SUBDIRECTORY_PER_STREAM_HASH = HashingUtils::HashString("SUBDIRECTORY_PER_STREAM"); + static constexpr uint32_t SINGLE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("SINGLE_DIRECTORY"); + static constexpr uint32_t SUBDIRECTORY_PER_STREAM_HASH = ConstExprHashingUtils::HashString("SUBDIRECTORY_PER_STREAM"); HlsDirectoryStructure GetHlsDirectoryStructureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_DIRECTORY_HASH) { return HlsDirectoryStructure::SINGLE_DIRECTORY; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsDiscontinuityTags.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsDiscontinuityTags.cpp index 4fe155fe922..74aaa9cde22 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsDiscontinuityTags.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsDiscontinuityTags.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsDiscontinuityTagsMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int NEVER_INSERT_HASH = HashingUtils::HashString("NEVER_INSERT"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t NEVER_INSERT_HASH = ConstExprHashingUtils::HashString("NEVER_INSERT"); HlsDiscontinuityTags GetHlsDiscontinuityTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return HlsDiscontinuityTags::INSERT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsEncryptionType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsEncryptionType.cpp index de71ff8a7c4..71508354e31 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsEncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsEncryptionTypeMapper { - static const int AES128_HASH = HashingUtils::HashString("AES128"); - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES128_HASH = ConstExprHashingUtils::HashString("AES128"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); HlsEncryptionType GetHlsEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES128_HASH) { return HlsEncryptionType::AES128; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsH265PackagingType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsH265PackagingType.cpp index 7f748e148dd..65f24369c2a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsH265PackagingType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsH265PackagingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsH265PackagingTypeMapper { - static const int HEV1_HASH = HashingUtils::HashString("HEV1"); - static const int HVC1_HASH = HashingUtils::HashString("HVC1"); + static constexpr uint32_t HEV1_HASH = ConstExprHashingUtils::HashString("HEV1"); + static constexpr uint32_t HVC1_HASH = ConstExprHashingUtils::HashString("HVC1"); HlsH265PackagingType GetHlsH265PackagingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEV1_HASH) { return HlsH265PackagingType::HEV1; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsId3SegmentTaggingState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsId3SegmentTaggingState.cpp index e6d95cbacf1..d983d978bec 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsId3SegmentTaggingState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsId3SegmentTaggingState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsId3SegmentTaggingStateMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); HlsId3SegmentTaggingState GetHlsId3SegmentTaggingStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return HlsId3SegmentTaggingState::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsIncompleteSegmentBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsIncompleteSegmentBehavior.cpp index 4c7b7d2b8a2..62a4133320b 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsIncompleteSegmentBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsIncompleteSegmentBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsIncompleteSegmentBehaviorMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int SUPPRESS_HASH = HashingUtils::HashString("SUPPRESS"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t SUPPRESS_HASH = ConstExprHashingUtils::HashString("SUPPRESS"); HlsIncompleteSegmentBehavior GetHlsIncompleteSegmentBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return HlsIncompleteSegmentBehavior::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvInManifest.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvInManifest.cpp index 9c361b3f42e..ea46478fd13 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvInManifest.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvInManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsIvInManifestMapper { - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); HlsIvInManifest GetHlsIvInManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCLUDE_HASH) { return HlsIvInManifest::EXCLUDE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvSource.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvSource.cpp index e2ad132edb1..37ad5ab95b2 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvSource.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsIvSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsIvSourceMapper { - static const int EXPLICIT_HASH = HashingUtils::HashString("EXPLICIT"); - static const int FOLLOWS_SEGMENT_NUMBER_HASH = HashingUtils::HashString("FOLLOWS_SEGMENT_NUMBER"); + static constexpr uint32_t EXPLICIT_HASH = ConstExprHashingUtils::HashString("EXPLICIT"); + static constexpr uint32_t FOLLOWS_SEGMENT_NUMBER_HASH = ConstExprHashingUtils::HashString("FOLLOWS_SEGMENT_NUMBER"); HlsIvSource GetHlsIvSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXPLICIT_HASH) { return HlsIvSource::EXPLICIT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestCompression.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestCompression.cpp index 4ca92e6ee6f..b2c2a8966b5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestCompression.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestCompression.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsManifestCompressionMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); HlsManifestCompression GetHlsManifestCompressionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return HlsManifestCompression::GZIP; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestDurationFormat.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestDurationFormat.cpp index c17fd82ce81..57548511766 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestDurationFormat.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsManifestDurationFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsManifestDurationFormatMapper { - static const int FLOATING_POINT_HASH = HashingUtils::HashString("FLOATING_POINT"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); + static constexpr uint32_t FLOATING_POINT_HASH = ConstExprHashingUtils::HashString("FLOATING_POINT"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); HlsManifestDurationFormat GetHlsManifestDurationFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLOATING_POINT_HASH) { return HlsManifestDurationFormat::FLOATING_POINT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsMediaStoreStorageClass.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsMediaStoreStorageClass.cpp index bfe1d9578d1..f870e06f811 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsMediaStoreStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsMediaStoreStorageClass.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HlsMediaStoreStorageClassMapper { - static const int TEMPORAL_HASH = HashingUtils::HashString("TEMPORAL"); + static constexpr uint32_t TEMPORAL_HASH = ConstExprHashingUtils::HashString("TEMPORAL"); HlsMediaStoreStorageClass GetHlsMediaStoreStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEMPORAL_HASH) { return HlsMediaStoreStorageClass::TEMPORAL; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsMode.cpp index 580f4eaa401..27dbed5c4a7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsModeMapper { - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); - static const int VOD_HASH = HashingUtils::HashString("VOD"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); + static constexpr uint32_t VOD_HASH = ConstExprHashingUtils::HashString("VOD"); HlsMode GetHlsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIVE_HASH) { return HlsMode::LIVE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsOutputSelection.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsOutputSelection.cpp index d821a2d5415..bb0ee9a0285 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsOutputSelection.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsOutputSelection.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HlsOutputSelectionMapper { - static const int MANIFESTS_AND_SEGMENTS_HASH = HashingUtils::HashString("MANIFESTS_AND_SEGMENTS"); - static const int SEGMENTS_ONLY_HASH = HashingUtils::HashString("SEGMENTS_ONLY"); - static const int VARIANT_MANIFESTS_AND_SEGMENTS_HASH = HashingUtils::HashString("VARIANT_MANIFESTS_AND_SEGMENTS"); + static constexpr uint32_t MANIFESTS_AND_SEGMENTS_HASH = ConstExprHashingUtils::HashString("MANIFESTS_AND_SEGMENTS"); + static constexpr uint32_t SEGMENTS_ONLY_HASH = ConstExprHashingUtils::HashString("SEGMENTS_ONLY"); + static constexpr uint32_t VARIANT_MANIFESTS_AND_SEGMENTS_HASH = ConstExprHashingUtils::HashString("VARIANT_MANIFESTS_AND_SEGMENTS"); HlsOutputSelection GetHlsOutputSelectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANIFESTS_AND_SEGMENTS_HASH) { return HlsOutputSelection::MANIFESTS_AND_SEGMENTS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTime.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTime.cpp index eba0de6fcc6..a2d33b9c9a8 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTime.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTime.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsProgramDateTimeMapper { - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); HlsProgramDateTime GetHlsProgramDateTimeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCLUDE_HASH) { return HlsProgramDateTime::EXCLUDE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTimeClock.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTimeClock.cpp index 915ab51d617..d9e56a83898 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTimeClock.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsProgramDateTimeClock.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsProgramDateTimeClockMapper { - static const int INITIALIZE_FROM_OUTPUT_TIMECODE_HASH = HashingUtils::HashString("INITIALIZE_FROM_OUTPUT_TIMECODE"); - static const int SYSTEM_CLOCK_HASH = HashingUtils::HashString("SYSTEM_CLOCK"); + static constexpr uint32_t INITIALIZE_FROM_OUTPUT_TIMECODE_HASH = ConstExprHashingUtils::HashString("INITIALIZE_FROM_OUTPUT_TIMECODE"); + static constexpr uint32_t SYSTEM_CLOCK_HASH = ConstExprHashingUtils::HashString("SYSTEM_CLOCK"); HlsProgramDateTimeClock GetHlsProgramDateTimeClockForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZE_FROM_OUTPUT_TIMECODE_HASH) { return HlsProgramDateTimeClock::INITIALIZE_FROM_OUTPUT_TIMECODE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsRedundantManifest.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsRedundantManifest.cpp index 9bf993737cf..a6264194b54 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsRedundantManifest.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsRedundantManifest.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsRedundantManifestMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); HlsRedundantManifest GetHlsRedundantManifestForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return HlsRedundantManifest::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsScte35SourceType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsScte35SourceType.cpp index 34be3a80341..31d2bc60c11 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsScte35SourceType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsScte35SourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsScte35SourceTypeMapper { - static const int MANIFEST_HASH = HashingUtils::HashString("MANIFEST"); - static const int SEGMENTS_HASH = HashingUtils::HashString("SEGMENTS"); + static constexpr uint32_t MANIFEST_HASH = ConstExprHashingUtils::HashString("MANIFEST"); + static constexpr uint32_t SEGMENTS_HASH = ConstExprHashingUtils::HashString("SEGMENTS"); HlsScte35SourceType GetHlsScte35SourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANIFEST_HASH) { return HlsScte35SourceType::MANIFEST; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsSegmentationMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsSegmentationMode.cpp index c1780fe01c7..9e1034fa3d5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsSegmentationMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsSegmentationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsSegmentationModeMapper { - static const int USE_INPUT_SEGMENTATION_HASH = HashingUtils::HashString("USE_INPUT_SEGMENTATION"); - static const int USE_SEGMENT_DURATION_HASH = HashingUtils::HashString("USE_SEGMENT_DURATION"); + static constexpr uint32_t USE_INPUT_SEGMENTATION_HASH = ConstExprHashingUtils::HashString("USE_INPUT_SEGMENTATION"); + static constexpr uint32_t USE_SEGMENT_DURATION_HASH = ConstExprHashingUtils::HashString("USE_SEGMENT_DURATION"); HlsSegmentationMode GetHlsSegmentationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_INPUT_SEGMENTATION_HASH) { return HlsSegmentationMode::USE_INPUT_SEGMENTATION; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsStreamInfResolution.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsStreamInfResolution.cpp index c462001c506..f0f96854a3c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsStreamInfResolution.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsStreamInfResolution.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsStreamInfResolutionMapper { - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); HlsStreamInfResolution GetHlsStreamInfResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCLUDE_HASH) { return HlsStreamInfResolution::EXCLUDE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsTimedMetadataId3Frame.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsTimedMetadataId3Frame.cpp index 886b9189477..e0e728f6c2c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsTimedMetadataId3Frame.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsTimedMetadataId3Frame.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HlsTimedMetadataId3FrameMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRIV_HASH = HashingUtils::HashString("PRIV"); - static const int TDRL_HASH = HashingUtils::HashString("TDRL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRIV_HASH = ConstExprHashingUtils::HashString("PRIV"); + static constexpr uint32_t TDRL_HASH = ConstExprHashingUtils::HashString("TDRL"); HlsTimedMetadataId3Frame GetHlsTimedMetadataId3FrameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return HlsTimedMetadataId3Frame::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsTsFileMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsTsFileMode.cpp index c06c5f31f3d..e7594ff0e2a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsTsFileMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsTsFileMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsTsFileModeMapper { - static const int SEGMENTED_FILES_HASH = HashingUtils::HashString("SEGMENTED_FILES"); - static const int SINGLE_FILE_HASH = HashingUtils::HashString("SINGLE_FILE"); + static constexpr uint32_t SEGMENTED_FILES_HASH = ConstExprHashingUtils::HashString("SEGMENTED_FILES"); + static constexpr uint32_t SINGLE_FILE_HASH = ConstExprHashingUtils::HashString("SINGLE_FILE"); HlsTsFileMode GetHlsTsFileModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEGMENTED_FILES_HASH) { return HlsTsFileMode::SEGMENTED_FILES; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/HlsWebdavHttpTransferMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/HlsWebdavHttpTransferMode.cpp index a6633937c0e..61f87d24973 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/HlsWebdavHttpTransferMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/HlsWebdavHttpTransferMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HlsWebdavHttpTransferModeMapper { - static const int CHUNKED_HASH = HashingUtils::HashString("CHUNKED"); - static const int NON_CHUNKED_HASH = HashingUtils::HashString("NON_CHUNKED"); + static constexpr uint32_t CHUNKED_HASH = ConstExprHashingUtils::HashString("CHUNKED"); + static constexpr uint32_t NON_CHUNKED_HASH = ConstExprHashingUtils::HashString("NON_CHUNKED"); HlsWebdavHttpTransferMode GetHlsWebdavHttpTransferModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHUNKED_HASH) { return HlsWebdavHttpTransferMode::CHUNKED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/IFrameOnlyPlaylistType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/IFrameOnlyPlaylistType.cpp index 01b396ae60d..75c77ce5558 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/IFrameOnlyPlaylistType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/IFrameOnlyPlaylistType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IFrameOnlyPlaylistTypeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); IFrameOnlyPlaylistType GetIFrameOnlyPlaylistTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return IFrameOnlyPlaylistType::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/IncludeFillerNalUnits.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/IncludeFillerNalUnits.cpp index 6d55f763343..8738115070a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/IncludeFillerNalUnits.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/IncludeFillerNalUnits.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IncludeFillerNalUnitsMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int DROP_HASH = HashingUtils::HashString("DROP"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); IncludeFillerNalUnits GetIncludeFillerNalUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return IncludeFillerNalUnits::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputClass.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputClass.cpp index 0d2b070dcad..c2c4d992a0e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputClass.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int SINGLE_PIPELINE_HASH = HashingUtils::HashString("SINGLE_PIPELINE"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t SINGLE_PIPELINE_HASH = ConstExprHashingUtils::HashString("SINGLE_PIPELINE"); InputClass GetInputClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return InputClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputCodec.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputCodec.cpp index e5838b408cd..96b9746774d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputCodec.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputCodec.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputCodecMapper { - static const int MPEG2_HASH = HashingUtils::HashString("MPEG2"); - static const int AVC_HASH = HashingUtils::HashString("AVC"); - static const int HEVC_HASH = HashingUtils::HashString("HEVC"); + static constexpr uint32_t MPEG2_HASH = ConstExprHashingUtils::HashString("MPEG2"); + static constexpr uint32_t AVC_HASH = ConstExprHashingUtils::HashString("AVC"); + static constexpr uint32_t HEVC_HASH = ConstExprHashingUtils::HashString("HEVC"); InputCodec GetInputCodecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MPEG2_HASH) { return InputCodec::MPEG2; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeblockFilter.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeblockFilter.cpp index 57ca4f12375..9edffcad744 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeblockFilter.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeblockFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeblockFilterMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); InputDeblockFilter GetInputDeblockFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return InputDeblockFilter::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDenoiseFilter.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDenoiseFilter.cpp index 292efd5907f..1877838e6a9 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDenoiseFilter.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDenoiseFilter.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDenoiseFilterMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); InputDenoiseFilter GetInputDenoiseFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return InputDenoiseFilter::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceActiveInput.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceActiveInput.cpp index 659331b867e..ae1fb7ad751 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceActiveInput.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceActiveInput.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceActiveInputMapper { - static const int HDMI_HASH = HashingUtils::HashString("HDMI"); - static const int SDI_HASH = HashingUtils::HashString("SDI"); + static constexpr uint32_t HDMI_HASH = ConstExprHashingUtils::HashString("HDMI"); + static constexpr uint32_t SDI_HASH = ConstExprHashingUtils::HashString("SDI"); InputDeviceActiveInput GetInputDeviceActiveInputForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HDMI_HASH) { return InputDeviceActiveInput::HDMI; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceCodec.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceCodec.cpp index 5c8bb120192..745b92e74ce 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceCodec.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceCodec.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceCodecMapper { - static const int HEVC_HASH = HashingUtils::HashString("HEVC"); - static const int AVC_HASH = HashingUtils::HashString("AVC"); + static constexpr uint32_t HEVC_HASH = ConstExprHashingUtils::HashString("HEVC"); + static constexpr uint32_t AVC_HASH = ConstExprHashingUtils::HashString("AVC"); InputDeviceCodec GetInputDeviceCodecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEVC_HASH) { return InputDeviceCodec::HEVC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConfiguredInput.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConfiguredInput.cpp index 14c49278338..732c070e553 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConfiguredInput.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConfiguredInput.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputDeviceConfiguredInputMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int HDMI_HASH = HashingUtils::HashString("HDMI"); - static const int SDI_HASH = HashingUtils::HashString("SDI"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t HDMI_HASH = ConstExprHashingUtils::HashString("HDMI"); + static constexpr uint32_t SDI_HASH = ConstExprHashingUtils::HashString("SDI"); InputDeviceConfiguredInput GetInputDeviceConfiguredInputForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return InputDeviceConfiguredInput::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConnectionState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConnectionState.cpp index 5fa469b3fb6..18284caf047 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceConnectionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceConnectionStateMapper { - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); InputDeviceConnectionState GetInputDeviceConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISCONNECTED_HASH) { return InputDeviceConnectionState::DISCONNECTED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceIpScheme.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceIpScheme.cpp index 77e515701ac..456b2025dba 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceIpScheme.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceIpScheme.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceIpSchemeMapper { - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); - static const int DHCP_HASH = HashingUtils::HashString("DHCP"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); + static constexpr uint32_t DHCP_HASH = ConstExprHashingUtils::HashString("DHCP"); InputDeviceIpScheme GetInputDeviceIpSchemeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC__HASH) { return InputDeviceIpScheme::STATIC_; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceOutputType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceOutputType.cpp index 9dee296614a..be8aa81e4b0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceOutputType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceOutputType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputDeviceOutputTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int MEDIALIVE_INPUT_HASH = HashingUtils::HashString("MEDIALIVE_INPUT"); - static const int MEDIACONNECT_FLOW_HASH = HashingUtils::HashString("MEDIACONNECT_FLOW"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t MEDIALIVE_INPUT_HASH = ConstExprHashingUtils::HashString("MEDIALIVE_INPUT"); + static constexpr uint32_t MEDIACONNECT_FLOW_HASH = ConstExprHashingUtils::HashString("MEDIACONNECT_FLOW"); InputDeviceOutputType GetInputDeviceOutputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return InputDeviceOutputType::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceScanType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceScanType.cpp index 01b78490cc6..87b7646ccb2 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceScanType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceScanTypeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); InputDeviceScanType GetInputDeviceScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return InputDeviceScanType::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceState.cpp index a1f82270596..9190b633a15 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceStateMapper { - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int STREAMING_HASH = HashingUtils::HashString("STREAMING"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t STREAMING_HASH = ConstExprHashingUtils::HashString("STREAMING"); InputDeviceState GetInputDeviceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IDLE_HASH) { return InputDeviceState::IDLE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceTransferType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceTransferType.cpp index 37a071460b9..442bef57967 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceTransferType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceTransferType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceTransferTypeMapper { - static const int OUTGOING_HASH = HashingUtils::HashString("OUTGOING"); - static const int INCOMING_HASH = HashingUtils::HashString("INCOMING"); + static constexpr uint32_t OUTGOING_HASH = ConstExprHashingUtils::HashString("OUTGOING"); + static constexpr uint32_t INCOMING_HASH = ConstExprHashingUtils::HashString("INCOMING"); InputDeviceTransferType GetInputDeviceTransferTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OUTGOING_HASH) { return InputDeviceTransferType::OUTGOING; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceType.cpp index 8d80f809675..f5ec879de54 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputDeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputDeviceTypeMapper { - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int UHD_HASH = HashingUtils::HashString("UHD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t UHD_HASH = ConstExprHashingUtils::HashString("UHD"); InputDeviceType GetInputDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HD_HASH) { return InputDeviceType::HD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputFilter.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputFilter.cpp index 5a8e1dfe140..1b8c925b166 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputFilter.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputFilter.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputFilterMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int FORCED_HASH = HashingUtils::HashString("FORCED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t FORCED_HASH = ConstExprHashingUtils::HashString("FORCED"); InputFilter GetInputFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return InputFilter::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForHlsOut.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForHlsOut.cpp index 8b448b0d77f..d1218a8f0b7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForHlsOut.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForHlsOut.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputLossActionForHlsOutMapper { - static const int EMIT_OUTPUT_HASH = HashingUtils::HashString("EMIT_OUTPUT"); - static const int PAUSE_OUTPUT_HASH = HashingUtils::HashString("PAUSE_OUTPUT"); + static constexpr uint32_t EMIT_OUTPUT_HASH = ConstExprHashingUtils::HashString("EMIT_OUTPUT"); + static constexpr uint32_t PAUSE_OUTPUT_HASH = ConstExprHashingUtils::HashString("PAUSE_OUTPUT"); InputLossActionForHlsOut GetInputLossActionForHlsOutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMIT_OUTPUT_HASH) { return InputLossActionForHlsOut::EMIT_OUTPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForMsSmoothOut.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForMsSmoothOut.cpp index c2ffc3cde8a..7c1ac6d1f0c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForMsSmoothOut.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForMsSmoothOut.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputLossActionForMsSmoothOutMapper { - static const int EMIT_OUTPUT_HASH = HashingUtils::HashString("EMIT_OUTPUT"); - static const int PAUSE_OUTPUT_HASH = HashingUtils::HashString("PAUSE_OUTPUT"); + static constexpr uint32_t EMIT_OUTPUT_HASH = ConstExprHashingUtils::HashString("EMIT_OUTPUT"); + static constexpr uint32_t PAUSE_OUTPUT_HASH = ConstExprHashingUtils::HashString("PAUSE_OUTPUT"); InputLossActionForMsSmoothOut GetInputLossActionForMsSmoothOutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMIT_OUTPUT_HASH) { return InputLossActionForMsSmoothOut::EMIT_OUTPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForRtmpOut.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForRtmpOut.cpp index 1143be16579..14e5592ec20 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForRtmpOut.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForRtmpOut.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputLossActionForRtmpOutMapper { - static const int EMIT_OUTPUT_HASH = HashingUtils::HashString("EMIT_OUTPUT"); - static const int PAUSE_OUTPUT_HASH = HashingUtils::HashString("PAUSE_OUTPUT"); + static constexpr uint32_t EMIT_OUTPUT_HASH = ConstExprHashingUtils::HashString("EMIT_OUTPUT"); + static constexpr uint32_t PAUSE_OUTPUT_HASH = ConstExprHashingUtils::HashString("PAUSE_OUTPUT"); InputLossActionForRtmpOut GetInputLossActionForRtmpOutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMIT_OUTPUT_HASH) { return InputLossActionForRtmpOut::EMIT_OUTPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForUdpOut.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForUdpOut.cpp index c00aae83a42..5ff18bfae2e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForUdpOut.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossActionForUdpOut.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputLossActionForUdpOutMapper { - static const int DROP_PROGRAM_HASH = HashingUtils::HashString("DROP_PROGRAM"); - static const int DROP_TS_HASH = HashingUtils::HashString("DROP_TS"); - static const int EMIT_PROGRAM_HASH = HashingUtils::HashString("EMIT_PROGRAM"); + static constexpr uint32_t DROP_PROGRAM_HASH = ConstExprHashingUtils::HashString("DROP_PROGRAM"); + static constexpr uint32_t DROP_TS_HASH = ConstExprHashingUtils::HashString("DROP_TS"); + static constexpr uint32_t EMIT_PROGRAM_HASH = ConstExprHashingUtils::HashString("EMIT_PROGRAM"); InputLossActionForUdpOut GetInputLossActionForUdpOutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROP_PROGRAM_HASH) { return InputLossActionForUdpOut::DROP_PROGRAM; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp index 7c34dd7a108..f25d06bef33 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputLossImageTypeMapper { - static const int COLOR_HASH = HashingUtils::HashString("COLOR"); - static const int SLATE_HASH = HashingUtils::HashString("SLATE"); + static constexpr uint32_t COLOR_HASH = ConstExprHashingUtils::HashString("COLOR"); + static constexpr uint32_t SLATE_HASH = ConstExprHashingUtils::HashString("SLATE"); InputLossImageType GetInputLossImageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLOR_HASH) { return InputLossImageType::COLOR; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputMaximumBitrate.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputMaximumBitrate.cpp index 98d8a39c7b9..fc69026b48e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputMaximumBitrate.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputMaximumBitrate.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputMaximumBitrateMapper { - static const int MAX_10_MBPS_HASH = HashingUtils::HashString("MAX_10_MBPS"); - static const int MAX_20_MBPS_HASH = HashingUtils::HashString("MAX_20_MBPS"); - static const int MAX_50_MBPS_HASH = HashingUtils::HashString("MAX_50_MBPS"); + static constexpr uint32_t MAX_10_MBPS_HASH = ConstExprHashingUtils::HashString("MAX_10_MBPS"); + static constexpr uint32_t MAX_20_MBPS_HASH = ConstExprHashingUtils::HashString("MAX_20_MBPS"); + static constexpr uint32_t MAX_50_MBPS_HASH = ConstExprHashingUtils::HashString("MAX_50_MBPS"); InputMaximumBitrate GetInputMaximumBitrateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAX_10_MBPS_HASH) { return InputMaximumBitrate::MAX_10_MBPS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputPreference.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputPreference.cpp index ad855bb56bf..e8f7aa0e8a0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputPreference.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputPreference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputPreferenceMapper { - static const int EQUAL_INPUT_PREFERENCE_HASH = HashingUtils::HashString("EQUAL_INPUT_PREFERENCE"); - static const int PRIMARY_INPUT_PREFERRED_HASH = HashingUtils::HashString("PRIMARY_INPUT_PREFERRED"); + static constexpr uint32_t EQUAL_INPUT_PREFERENCE_HASH = ConstExprHashingUtils::HashString("EQUAL_INPUT_PREFERENCE"); + static constexpr uint32_t PRIMARY_INPUT_PREFERRED_HASH = ConstExprHashingUtils::HashString("PRIMARY_INPUT_PREFERRED"); InputPreference GetInputPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUAL_INPUT_PREFERENCE_HASH) { return InputPreference::EQUAL_INPUT_PREFERENCE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputResolution.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputResolution.cpp index ba351554067..aef60dcf828 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputResolution.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputResolution.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InputResolutionMapper { - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int UHD_HASH = HashingUtils::HashString("UHD"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t UHD_HASH = ConstExprHashingUtils::HashString("UHD"); InputResolution GetInputResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SD_HASH) { return InputResolution::SD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputSecurityGroupState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputSecurityGroupState.cpp index 69279fca018..7cf49fc78ba 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputSecurityGroupState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputSecurityGroupState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InputSecurityGroupStateMapper { - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int IN_USE_HASH = HashingUtils::HashString("IN_USE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t IN_USE_HASH = ConstExprHashingUtils::HashString("IN_USE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); InputSecurityGroupState GetInputSecurityGroupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IDLE_HASH) { return InputSecurityGroupState::IDLE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceEndBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceEndBehavior.cpp index dd626eff199..901d5022a70 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceEndBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceEndBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputSourceEndBehaviorMapper { - static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); - static const int LOOP_HASH = HashingUtils::HashString("LOOP"); + static constexpr uint32_t CONTINUE_HASH = ConstExprHashingUtils::HashString("CONTINUE"); + static constexpr uint32_t LOOP_HASH = ConstExprHashingUtils::HashString("LOOP"); InputSourceEndBehavior GetInputSourceEndBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTINUE_HASH) { return InputSourceEndBehavior::CONTINUE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceType.cpp index 6ece6f95649..1aaf584b9c8 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputSourceTypeMapper { - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); - static const int DYNAMIC_HASH = HashingUtils::HashString("DYNAMIC"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); + static constexpr uint32_t DYNAMIC_HASH = ConstExprHashingUtils::HashString("DYNAMIC"); InputSourceType GetInputSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC__HASH) { return InputSourceType::STATIC_; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputState.cpp index cffd9362e52..33d305a6dcb 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace InputStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DETACHED_HASH = HashingUtils::HashString("DETACHED"); - static const int ATTACHED_HASH = HashingUtils::HashString("ATTACHED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DETACHED_HASH = ConstExprHashingUtils::HashString("DETACHED"); + static constexpr uint32_t ATTACHED_HASH = ConstExprHashingUtils::HashString("ATTACHED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); InputState GetInputStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return InputState::CREATING; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputTimecodeSource.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputTimecodeSource.cpp index abcb9822733..4e3667be28a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputTimecodeSource.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputTimecodeSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputTimecodeSourceMapper { - static const int ZEROBASED_HASH = HashingUtils::HashString("ZEROBASED"); - static const int EMBEDDED_HASH = HashingUtils::HashString("EMBEDDED"); + static constexpr uint32_t ZEROBASED_HASH = ConstExprHashingUtils::HashString("ZEROBASED"); + static constexpr uint32_t EMBEDDED_HASH = ConstExprHashingUtils::HashString("EMBEDDED"); InputTimecodeSource GetInputTimecodeSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ZEROBASED_HASH) { return InputTimecodeSource::ZEROBASED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/InputType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/InputType.cpp index 1c9251250f4..2218233aaf8 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/InputType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/InputType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace InputTypeMapper { - static const int UDP_PUSH_HASH = HashingUtils::HashString("UDP_PUSH"); - static const int RTP_PUSH_HASH = HashingUtils::HashString("RTP_PUSH"); - static const int RTMP_PUSH_HASH = HashingUtils::HashString("RTMP_PUSH"); - static const int RTMP_PULL_HASH = HashingUtils::HashString("RTMP_PULL"); - static const int URL_PULL_HASH = HashingUtils::HashString("URL_PULL"); - static const int MP4_FILE_HASH = HashingUtils::HashString("MP4_FILE"); - static const int MEDIACONNECT_HASH = HashingUtils::HashString("MEDIACONNECT"); - static const int INPUT_DEVICE_HASH = HashingUtils::HashString("INPUT_DEVICE"); - static const int AWS_CDI_HASH = HashingUtils::HashString("AWS_CDI"); - static const int TS_FILE_HASH = HashingUtils::HashString("TS_FILE"); + static constexpr uint32_t UDP_PUSH_HASH = ConstExprHashingUtils::HashString("UDP_PUSH"); + static constexpr uint32_t RTP_PUSH_HASH = ConstExprHashingUtils::HashString("RTP_PUSH"); + static constexpr uint32_t RTMP_PUSH_HASH = ConstExprHashingUtils::HashString("RTMP_PUSH"); + static constexpr uint32_t RTMP_PULL_HASH = ConstExprHashingUtils::HashString("RTMP_PULL"); + static constexpr uint32_t URL_PULL_HASH = ConstExprHashingUtils::HashString("URL_PULL"); + static constexpr uint32_t MP4_FILE_HASH = ConstExprHashingUtils::HashString("MP4_FILE"); + static constexpr uint32_t MEDIACONNECT_HASH = ConstExprHashingUtils::HashString("MEDIACONNECT"); + static constexpr uint32_t INPUT_DEVICE_HASH = ConstExprHashingUtils::HashString("INPUT_DEVICE"); + static constexpr uint32_t AWS_CDI_HASH = ConstExprHashingUtils::HashString("AWS_CDI"); + static constexpr uint32_t TS_FILE_HASH = ConstExprHashingUtils::HashString("TS_FILE"); InputType GetInputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UDP_PUSH_HASH) { return InputType::UDP_PUSH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/LastFrameClippingBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/LastFrameClippingBehavior.cpp index 11ac92d1008..93295b9c1d0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/LastFrameClippingBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/LastFrameClippingBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LastFrameClippingBehaviorMapper { - static const int EXCLUDE_LAST_FRAME_HASH = HashingUtils::HashString("EXCLUDE_LAST_FRAME"); - static const int INCLUDE_LAST_FRAME_HASH = HashingUtils::HashString("INCLUDE_LAST_FRAME"); + static constexpr uint32_t EXCLUDE_LAST_FRAME_HASH = ConstExprHashingUtils::HashString("EXCLUDE_LAST_FRAME"); + static constexpr uint32_t INCLUDE_LAST_FRAME_HASH = ConstExprHashingUtils::HashString("INCLUDE_LAST_FRAME"); LastFrameClippingBehavior GetLastFrameClippingBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCLUDE_LAST_FRAME_HASH) { return LastFrameClippingBehavior::EXCLUDE_LAST_FRAME; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/LogLevel.cpp index b6184968292..169915a7c18 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/LogLevel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LogLevelMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return LogLevel::ERROR_; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAbsentInputAudioBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAbsentInputAudioBehavior.cpp index 17da0c49596..a7d18bcac28 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAbsentInputAudioBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAbsentInputAudioBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAbsentInputAudioBehaviorMapper { - static const int DROP_HASH = HashingUtils::HashString("DROP"); - static const int ENCODE_SILENCE_HASH = HashingUtils::HashString("ENCODE_SILENCE"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); + static constexpr uint32_t ENCODE_SILENCE_HASH = ConstExprHashingUtils::HashString("ENCODE_SILENCE"); M2tsAbsentInputAudioBehavior GetM2tsAbsentInputAudioBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROP_HASH) { return M2tsAbsentInputAudioBehavior::DROP; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsArib.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsArib.cpp index c6f1cdbb045..b9b59069169 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsArib.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsArib.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAribMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); M2tsArib GetM2tsAribForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return M2tsArib::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAribCaptionsPidControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAribCaptionsPidControl.cpp index ab50d7d4d48..a617ed45ee6 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAribCaptionsPidControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAribCaptionsPidControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAribCaptionsPidControlMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); M2tsAribCaptionsPidControl GetM2tsAribCaptionsPidControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return M2tsAribCaptionsPidControl::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioBufferModel.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioBufferModel.cpp index 2c250a5ef73..da2efbc29e6 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioBufferModel.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioBufferModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAudioBufferModelMapper { - static const int ATSC_HASH = HashingUtils::HashString("ATSC"); - static const int DVB_HASH = HashingUtils::HashString("DVB"); + static constexpr uint32_t ATSC_HASH = ConstExprHashingUtils::HashString("ATSC"); + static constexpr uint32_t DVB_HASH = ConstExprHashingUtils::HashString("DVB"); M2tsAudioBufferModel GetM2tsAudioBufferModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATSC_HASH) { return M2tsAudioBufferModel::ATSC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioInterval.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioInterval.cpp index 4ae79ea1e5e..9bfba1d36ca 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioInterval.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioInterval.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAudioIntervalMapper { - static const int VIDEO_AND_FIXED_INTERVALS_HASH = HashingUtils::HashString("VIDEO_AND_FIXED_INTERVALS"); - static const int VIDEO_INTERVAL_HASH = HashingUtils::HashString("VIDEO_INTERVAL"); + static constexpr uint32_t VIDEO_AND_FIXED_INTERVALS_HASH = ConstExprHashingUtils::HashString("VIDEO_AND_FIXED_INTERVALS"); + static constexpr uint32_t VIDEO_INTERVAL_HASH = ConstExprHashingUtils::HashString("VIDEO_INTERVAL"); M2tsAudioInterval GetM2tsAudioIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIDEO_AND_FIXED_INTERVALS_HASH) { return M2tsAudioInterval::VIDEO_AND_FIXED_INTERVALS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioStreamType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioStreamType.cpp index 22fcc26dedb..79777d58915 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioStreamType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsAudioStreamType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsAudioStreamTypeMapper { - static const int ATSC_HASH = HashingUtils::HashString("ATSC"); - static const int DVB_HASH = HashingUtils::HashString("DVB"); + static constexpr uint32_t ATSC_HASH = ConstExprHashingUtils::HashString("ATSC"); + static constexpr uint32_t DVB_HASH = ConstExprHashingUtils::HashString("DVB"); M2tsAudioStreamType GetM2tsAudioStreamTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATSC_HASH) { return M2tsAudioStreamType::ATSC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsBufferModel.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsBufferModel.cpp index 4d15914c37a..986ce04b1d0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsBufferModel.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsBufferModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsBufferModelMapper { - static const int MULTIPLEX_HASH = HashingUtils::HashString("MULTIPLEX"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t MULTIPLEX_HASH = ConstExprHashingUtils::HashString("MULTIPLEX"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); M2tsBufferModel GetM2tsBufferModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTIPLEX_HASH) { return M2tsBufferModel::MULTIPLEX; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsCcDescriptor.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsCcDescriptor.cpp index 1c888539ea7..b22087ecd37 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsCcDescriptor.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsCcDescriptor.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsCcDescriptorMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); M2tsCcDescriptor GetM2tsCcDescriptorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return M2tsCcDescriptor::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbifControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbifControl.cpp index 5b96e5352e5..c829051594d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbifControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbifControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsEbifControlMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M2tsEbifControl GetM2tsEbifControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return M2tsEbifControl::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbpPlacement.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbpPlacement.cpp index cf2d0c728ee..7a6311ef3ab 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbpPlacement.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEbpPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsEbpPlacementMapper { - static const int VIDEO_AND_AUDIO_PIDS_HASH = HashingUtils::HashString("VIDEO_AND_AUDIO_PIDS"); - static const int VIDEO_PID_HASH = HashingUtils::HashString("VIDEO_PID"); + static constexpr uint32_t VIDEO_AND_AUDIO_PIDS_HASH = ConstExprHashingUtils::HashString("VIDEO_AND_AUDIO_PIDS"); + static constexpr uint32_t VIDEO_PID_HASH = ConstExprHashingUtils::HashString("VIDEO_PID"); M2tsEbpPlacement GetM2tsEbpPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIDEO_AND_AUDIO_PIDS_HASH) { return M2tsEbpPlacement::VIDEO_AND_AUDIO_PIDS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEsRateInPes.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEsRateInPes.cpp index 463180c1b2b..4b7b66d30af 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEsRateInPes.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsEsRateInPes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsEsRateInPesMapper { - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); M2tsEsRateInPes GetM2tsEsRateInPesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCLUDE_HASH) { return M2tsEsRateInPes::EXCLUDE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsKlv.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsKlv.cpp index 47f10bfdcb0..15b98c1c893 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsKlv.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsKlv.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsKlvMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M2tsKlv GetM2tsKlvForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return M2tsKlv::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsNielsenId3Behavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsNielsenId3Behavior.cpp index 83407f474f7..8d94b0ed101 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsNielsenId3Behavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsNielsenId3Behavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsNielsenId3BehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M2tsNielsenId3Behavior GetM2tsNielsenId3BehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return M2tsNielsenId3Behavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsPcrControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsPcrControl.cpp index 406d05a0d9c..419f10f39f2 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsPcrControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsPcrControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsPcrControlMapper { - static const int CONFIGURED_PCR_PERIOD_HASH = HashingUtils::HashString("CONFIGURED_PCR_PERIOD"); - static const int PCR_EVERY_PES_PACKET_HASH = HashingUtils::HashString("PCR_EVERY_PES_PACKET"); + static constexpr uint32_t CONFIGURED_PCR_PERIOD_HASH = ConstExprHashingUtils::HashString("CONFIGURED_PCR_PERIOD"); + static constexpr uint32_t PCR_EVERY_PES_PACKET_HASH = ConstExprHashingUtils::HashString("PCR_EVERY_PES_PACKET"); M2tsPcrControl GetM2tsPcrControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIGURED_PCR_PERIOD_HASH) { return M2tsPcrControl::CONFIGURED_PCR_PERIOD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsRateMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsRateMode.cpp index ec4acbb357d..014d8714f94 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsRateMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsRateMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsRateModeMapper { - static const int CBR_HASH = HashingUtils::HashString("CBR"); - static const int VBR_HASH = HashingUtils::HashString("VBR"); + static constexpr uint32_t CBR_HASH = ConstExprHashingUtils::HashString("CBR"); + static constexpr uint32_t VBR_HASH = ConstExprHashingUtils::HashString("VBR"); M2tsRateMode GetM2tsRateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CBR_HASH) { return M2tsRateMode::CBR; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsScte35Control.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsScte35Control.cpp index 1e629b1c478..804392b7049 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsScte35Control.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsScte35Control.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsScte35ControlMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M2tsScte35Control GetM2tsScte35ControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return M2tsScte35Control::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationMarkers.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationMarkers.cpp index 914b6c19b63..dbda438188f 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationMarkers.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationMarkers.cpp @@ -20,17 +20,17 @@ namespace Aws namespace M2tsSegmentationMarkersMapper { - static const int EBP_HASH = HashingUtils::HashString("EBP"); - static const int EBP_LEGACY_HASH = HashingUtils::HashString("EBP_LEGACY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PSI_SEGSTART_HASH = HashingUtils::HashString("PSI_SEGSTART"); - static const int RAI_ADAPT_HASH = HashingUtils::HashString("RAI_ADAPT"); - static const int RAI_SEGSTART_HASH = HashingUtils::HashString("RAI_SEGSTART"); + static constexpr uint32_t EBP_HASH = ConstExprHashingUtils::HashString("EBP"); + static constexpr uint32_t EBP_LEGACY_HASH = ConstExprHashingUtils::HashString("EBP_LEGACY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PSI_SEGSTART_HASH = ConstExprHashingUtils::HashString("PSI_SEGSTART"); + static constexpr uint32_t RAI_ADAPT_HASH = ConstExprHashingUtils::HashString("RAI_ADAPT"); + static constexpr uint32_t RAI_SEGSTART_HASH = ConstExprHashingUtils::HashString("RAI_SEGSTART"); M2tsSegmentationMarkers GetM2tsSegmentationMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EBP_HASH) { return M2tsSegmentationMarkers::EBP; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationStyle.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationStyle.cpp index 45d27654196..6aa38b5aa4c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationStyle.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsSegmentationStyle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsSegmentationStyleMapper { - static const int MAINTAIN_CADENCE_HASH = HashingUtils::HashString("MAINTAIN_CADENCE"); - static const int RESET_CADENCE_HASH = HashingUtils::HashString("RESET_CADENCE"); + static constexpr uint32_t MAINTAIN_CADENCE_HASH = ConstExprHashingUtils::HashString("MAINTAIN_CADENCE"); + static constexpr uint32_t RESET_CADENCE_HASH = ConstExprHashingUtils::HashString("RESET_CADENCE"); M2tsSegmentationStyle GetM2tsSegmentationStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAINTAIN_CADENCE_HASH) { return M2tsSegmentationStyle::MAINTAIN_CADENCE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsTimedMetadataBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsTimedMetadataBehavior.cpp index 615b0b66478..2657c7be716 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M2tsTimedMetadataBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M2tsTimedMetadataBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M2tsTimedMetadataBehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M2tsTimedMetadataBehavior GetM2tsTimedMetadataBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return M2tsTimedMetadataBehavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8KlvBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8KlvBehavior.cpp index 1f7053a3975..0f7a52ab195 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8KlvBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8KlvBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8KlvBehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M3u8KlvBehavior GetM3u8KlvBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return M3u8KlvBehavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8NielsenId3Behavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8NielsenId3Behavior.cpp index 985edf2e3bd..7392dfccc99 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8NielsenId3Behavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8NielsenId3Behavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8NielsenId3BehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M3u8NielsenId3Behavior GetM3u8NielsenId3BehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return M3u8NielsenId3Behavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8PcrControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8PcrControl.cpp index 017c18ff768..18efa1d6128 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8PcrControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8PcrControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8PcrControlMapper { - static const int CONFIGURED_PCR_PERIOD_HASH = HashingUtils::HashString("CONFIGURED_PCR_PERIOD"); - static const int PCR_EVERY_PES_PACKET_HASH = HashingUtils::HashString("PCR_EVERY_PES_PACKET"); + static constexpr uint32_t CONFIGURED_PCR_PERIOD_HASH = ConstExprHashingUtils::HashString("CONFIGURED_PCR_PERIOD"); + static constexpr uint32_t PCR_EVERY_PES_PACKET_HASH = ConstExprHashingUtils::HashString("PCR_EVERY_PES_PACKET"); M3u8PcrControl GetM3u8PcrControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIGURED_PCR_PERIOD_HASH) { return M3u8PcrControl::CONFIGURED_PCR_PERIOD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8Scte35Behavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8Scte35Behavior.cpp index e9310293a30..732d1fb8896 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8Scte35Behavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8Scte35Behavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8Scte35BehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M3u8Scte35Behavior GetM3u8Scte35BehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return M3u8Scte35Behavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8TimedMetadataBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8TimedMetadataBehavior.cpp index f7dfb7bd0ec..a902e1d1478 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/M3u8TimedMetadataBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/M3u8TimedMetadataBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace M3u8TimedMetadataBehaviorMapper { - static const int NO_PASSTHROUGH_HASH = HashingUtils::HashString("NO_PASSTHROUGH"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("NO_PASSTHROUGH"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); M3u8TimedMetadataBehavior GetM3u8TimedMetadataBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_PASSTHROUGH_HASH) { return M3u8TimedMetadataBehavior::NO_PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MaintenanceDay.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MaintenanceDay.cpp index e668719697f..963b684833d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/MaintenanceDay.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MaintenanceDay.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MaintenanceDayMapper { - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); MaintenanceDay GetMaintenanceDayForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONDAY_HASH) { return MaintenanceDay::MONDAY; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MotionGraphicsInsertion.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MotionGraphicsInsertion.cpp index ddef1642b59..2fe4898aa6e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/MotionGraphicsInsertion.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MotionGraphicsInsertion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MotionGraphicsInsertionMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); MotionGraphicsInsertion GetMotionGraphicsInsertionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return MotionGraphicsInsertion::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mp2CodingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mp2CodingMode.cpp index 2f1a67e666e..1a25e89b7e9 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mp2CodingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mp2CodingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mp2CodingModeMapper { - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); Mp2CodingMode GetMp2CodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_1_0_HASH) { return Mp2CodingMode::CODING_MODE_1_0; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2AdaptiveQuantization.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2AdaptiveQuantization.cpp index 090fb2fb2bc..ebb60f3cdc6 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2AdaptiveQuantization.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2AdaptiveQuantization.cpp @@ -20,16 +20,16 @@ namespace Aws namespace Mpeg2AdaptiveQuantizationMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); Mpeg2AdaptiveQuantization GetMpeg2AdaptiveQuantizationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return Mpeg2AdaptiveQuantization::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorMetadata.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorMetadata.cpp index 3ffe57fd5c1..806dfff8a44 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorMetadata.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorMetadata.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2ColorMetadataMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); Mpeg2ColorMetadata GetMpeg2ColorMetadataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return Mpeg2ColorMetadata::IGNORE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorSpace.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorSpace.cpp index ec10dd9fc58..943048aaa82 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorSpace.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ColorSpace.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2ColorSpaceMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); Mpeg2ColorSpace GetMpeg2ColorSpaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return Mpeg2ColorSpace::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2DisplayRatio.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2DisplayRatio.cpp index 1215c622e18..ecba9514a6f 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2DisplayRatio.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2DisplayRatio.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2DisplayRatioMapper { - static const int DISPLAYRATIO16X9_HASH = HashingUtils::HashString("DISPLAYRATIO16X9"); - static const int DISPLAYRATIO4X3_HASH = HashingUtils::HashString("DISPLAYRATIO4X3"); + static constexpr uint32_t DISPLAYRATIO16X9_HASH = ConstExprHashingUtils::HashString("DISPLAYRATIO16X9"); + static constexpr uint32_t DISPLAYRATIO4X3_HASH = ConstExprHashingUtils::HashString("DISPLAYRATIO4X3"); Mpeg2DisplayRatio GetMpeg2DisplayRatioForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISPLAYRATIO16X9_HASH) { return Mpeg2DisplayRatio::DISPLAYRATIO16X9; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2GopSizeUnits.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2GopSizeUnits.cpp index fd7e6e79700..5c0ce00b385 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2GopSizeUnits.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2GopSizeUnits.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2GopSizeUnitsMapper { - static const int FRAMES_HASH = HashingUtils::HashString("FRAMES"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); + static constexpr uint32_t FRAMES_HASH = ConstExprHashingUtils::HashString("FRAMES"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); Mpeg2GopSizeUnits GetMpeg2GopSizeUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FRAMES_HASH) { return Mpeg2GopSizeUnits::FRAMES; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ScanType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ScanType.cpp index b54a39f242f..caa06723600 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ScanType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2ScanType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2ScanTypeMapper { - static const int INTERLACED_HASH = HashingUtils::HashString("INTERLACED"); - static const int PROGRESSIVE_HASH = HashingUtils::HashString("PROGRESSIVE"); + static constexpr uint32_t INTERLACED_HASH = ConstExprHashingUtils::HashString("INTERLACED"); + static constexpr uint32_t PROGRESSIVE_HASH = ConstExprHashingUtils::HashString("PROGRESSIVE"); Mpeg2ScanType GetMpeg2ScanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERLACED_HASH) { return Mpeg2ScanType::INTERLACED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2SubGopLength.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2SubGopLength.cpp index ba05f533fa4..14db0b157da 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2SubGopLength.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2SubGopLength.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2SubGopLengthMapper { - static const int DYNAMIC_HASH = HashingUtils::HashString("DYNAMIC"); - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); + static constexpr uint32_t DYNAMIC_HASH = ConstExprHashingUtils::HashString("DYNAMIC"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); Mpeg2SubGopLength GetMpeg2SubGopLengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DYNAMIC_HASH) { return Mpeg2SubGopLength::DYNAMIC; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2TimecodeInsertionBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2TimecodeInsertionBehavior.cpp index d904073fc06..0e370cd1afb 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2TimecodeInsertionBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Mpeg2TimecodeInsertionBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Mpeg2TimecodeInsertionBehaviorMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int GOP_TIMECODE_HASH = HashingUtils::HashString("GOP_TIMECODE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t GOP_TIMECODE_HASH = ConstExprHashingUtils::HashString("GOP_TIMECODE"); Mpeg2TimecodeInsertionBehavior GetMpeg2TimecodeInsertionBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Mpeg2TimecodeInsertionBehavior::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MsSmoothH265PackagingType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MsSmoothH265PackagingType.cpp index 594f3042fd0..e2ec5a97207 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/MsSmoothH265PackagingType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MsSmoothH265PackagingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MsSmoothH265PackagingTypeMapper { - static const int HEV1_HASH = HashingUtils::HashString("HEV1"); - static const int HVC1_HASH = HashingUtils::HashString("HVC1"); + static constexpr uint32_t HEV1_HASH = ConstExprHashingUtils::HashString("HEV1"); + static constexpr uint32_t HVC1_HASH = ConstExprHashingUtils::HashString("HVC1"); MsSmoothH265PackagingType GetMsSmoothH265PackagingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEV1_HASH) { return MsSmoothH265PackagingType::HEV1; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexState.cpp index fb6334b022a..93a218cb926 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/MultiplexState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace MultiplexStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int IDLE_HASH = HashingUtils::HashString("IDLE"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int RECOVERING_HASH = HashingUtils::HashString("RECOVERING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t IDLE_HASH = ConstExprHashingUtils::HashString("IDLE"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t RECOVERING_HASH = ConstExprHashingUtils::HashString("RECOVERING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); MultiplexState GetMultiplexStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return MultiplexState::CREATING; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/NetworkInputServerValidation.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/NetworkInputServerValidation.cpp index 4ec63f583b7..a71ce121048 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/NetworkInputServerValidation.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/NetworkInputServerValidation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkInputServerValidationMapper { - static const int CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME_HASH = HashingUtils::HashString("CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME"); - static const int CHECK_CRYPTOGRAPHY_ONLY_HASH = HashingUtils::HashString("CHECK_CRYPTOGRAPHY_ONLY"); + static constexpr uint32_t CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME_HASH = ConstExprHashingUtils::HashString("CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME"); + static constexpr uint32_t CHECK_CRYPTOGRAPHY_ONLY_HASH = ConstExprHashingUtils::HashString("CHECK_CRYPTOGRAPHY_ONLY"); NetworkInputServerValidation GetNetworkInputServerValidationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME_HASH) { return NetworkInputServerValidation::CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenPcmToId3TaggingState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenPcmToId3TaggingState.cpp index 92d882938dd..0d10ec6e439 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenPcmToId3TaggingState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenPcmToId3TaggingState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NielsenPcmToId3TaggingStateMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); NielsenPcmToId3TaggingState GetNielsenPcmToId3TaggingStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return NielsenPcmToId3TaggingState::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarkTimezones.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarkTimezones.cpp index 02e4d1f2548..466b375d6d7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarkTimezones.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarkTimezones.cpp @@ -20,21 +20,21 @@ namespace Aws namespace NielsenWatermarkTimezonesMapper { - static const int AMERICA_PUERTO_RICO_HASH = HashingUtils::HashString("AMERICA_PUERTO_RICO"); - static const int US_ALASKA_HASH = HashingUtils::HashString("US_ALASKA"); - static const int US_ARIZONA_HASH = HashingUtils::HashString("US_ARIZONA"); - static const int US_CENTRAL_HASH = HashingUtils::HashString("US_CENTRAL"); - static const int US_EASTERN_HASH = HashingUtils::HashString("US_EASTERN"); - static const int US_HAWAII_HASH = HashingUtils::HashString("US_HAWAII"); - static const int US_MOUNTAIN_HASH = HashingUtils::HashString("US_MOUNTAIN"); - static const int US_PACIFIC_HASH = HashingUtils::HashString("US_PACIFIC"); - static const int US_SAMOA_HASH = HashingUtils::HashString("US_SAMOA"); - static const int UTC_HASH = HashingUtils::HashString("UTC"); + static constexpr uint32_t AMERICA_PUERTO_RICO_HASH = ConstExprHashingUtils::HashString("AMERICA_PUERTO_RICO"); + static constexpr uint32_t US_ALASKA_HASH = ConstExprHashingUtils::HashString("US_ALASKA"); + static constexpr uint32_t US_ARIZONA_HASH = ConstExprHashingUtils::HashString("US_ARIZONA"); + static constexpr uint32_t US_CENTRAL_HASH = ConstExprHashingUtils::HashString("US_CENTRAL"); + static constexpr uint32_t US_EASTERN_HASH = ConstExprHashingUtils::HashString("US_EASTERN"); + static constexpr uint32_t US_HAWAII_HASH = ConstExprHashingUtils::HashString("US_HAWAII"); + static constexpr uint32_t US_MOUNTAIN_HASH = ConstExprHashingUtils::HashString("US_MOUNTAIN"); + static constexpr uint32_t US_PACIFIC_HASH = ConstExprHashingUtils::HashString("US_PACIFIC"); + static constexpr uint32_t US_SAMOA_HASH = ConstExprHashingUtils::HashString("US_SAMOA"); + static constexpr uint32_t UTC_HASH = ConstExprHashingUtils::HashString("UTC"); NielsenWatermarkTimezones GetNielsenWatermarkTimezonesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AMERICA_PUERTO_RICO_HASH) { return NielsenWatermarkTimezones::AMERICA_PUERTO_RICO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksCbetStepaside.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksCbetStepaside.cpp index 336557eedd6..f67d0e73953 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksCbetStepaside.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksCbetStepaside.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NielsenWatermarksCbetStepasideMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); NielsenWatermarksCbetStepaside GetNielsenWatermarksCbetStepasideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return NielsenWatermarksCbetStepaside::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksDistributionTypes.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksDistributionTypes.cpp index 1a075af310a..dc9951536dc 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksDistributionTypes.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/NielsenWatermarksDistributionTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NielsenWatermarksDistributionTypesMapper { - static const int FINAL_DISTRIBUTOR_HASH = HashingUtils::HashString("FINAL_DISTRIBUTOR"); - static const int PROGRAM_CONTENT_HASH = HashingUtils::HashString("PROGRAM_CONTENT"); + static constexpr uint32_t FINAL_DISTRIBUTOR_HASH = ConstExprHashingUtils::HashString("FINAL_DISTRIBUTOR"); + static constexpr uint32_t PROGRAM_CONTENT_HASH = ConstExprHashingUtils::HashString("PROGRAM_CONTENT"); NielsenWatermarksDistributionTypes GetNielsenWatermarksDistributionTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINAL_DISTRIBUTOR_HASH) { return NielsenWatermarksDistributionTypes::FINAL_DISTRIBUTOR; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/OfferingDurationUnits.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/OfferingDurationUnits.cpp index 1ebc03fb570..e2aeaf9b5d4 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/OfferingDurationUnits.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/OfferingDurationUnits.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OfferingDurationUnitsMapper { - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); OfferingDurationUnits GetOfferingDurationUnitsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONTHS_HASH) { return OfferingDurationUnits::MONTHS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/OfferingType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/OfferingType.cpp index 24afe3574cf..cc17622007a 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/OfferingType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/OfferingType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OfferingTypeMapper { - static const int NO_UPFRONT_HASH = HashingUtils::HashString("NO_UPFRONT"); + static constexpr uint32_t NO_UPFRONT_HASH = ConstExprHashingUtils::HashString("NO_UPFRONT"); OfferingType GetOfferingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_UPFRONT_HASH) { return OfferingType::NO_UPFRONT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/PipelineId.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/PipelineId.cpp index aff98efc588..ca88576de1e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/PipelineId.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/PipelineId.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PipelineIdMapper { - static const int PIPELINE_0_HASH = HashingUtils::HashString("PIPELINE_0"); - static const int PIPELINE_1_HASH = HashingUtils::HashString("PIPELINE_1"); + static constexpr uint32_t PIPELINE_0_HASH = ConstExprHashingUtils::HashString("PIPELINE_0"); + static constexpr uint32_t PIPELINE_1_HASH = ConstExprHashingUtils::HashString("PIPELINE_1"); PipelineId GetPipelineIdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PIPELINE_0_HASH) { return PipelineId::PIPELINE_0; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/PreferredChannelPipeline.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/PreferredChannelPipeline.cpp index 0cc15efcc71..7765d51d2b9 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/PreferredChannelPipeline.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/PreferredChannelPipeline.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PreferredChannelPipelineMapper { - static const int CURRENTLY_ACTIVE_HASH = HashingUtils::HashString("CURRENTLY_ACTIVE"); - static const int PIPELINE_0_HASH = HashingUtils::HashString("PIPELINE_0"); - static const int PIPELINE_1_HASH = HashingUtils::HashString("PIPELINE_1"); + static constexpr uint32_t CURRENTLY_ACTIVE_HASH = ConstExprHashingUtils::HashString("CURRENTLY_ACTIVE"); + static constexpr uint32_t PIPELINE_0_HASH = ConstExprHashingUtils::HashString("PIPELINE_0"); + static constexpr uint32_t PIPELINE_1_HASH = ConstExprHashingUtils::HashString("PIPELINE_1"); PreferredChannelPipeline GetPreferredChannelPipelineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENTLY_ACTIVE_HASH) { return PreferredChannelPipeline::CURRENTLY_ACTIVE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/RebootInputDeviceForce.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/RebootInputDeviceForce.cpp index ea558d33b0c..1ed49249161 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/RebootInputDeviceForce.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/RebootInputDeviceForce.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RebootInputDeviceForceMapper { - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int YES_HASH = HashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); RebootInputDeviceForce GetRebootInputDeviceForceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_HASH) { return RebootInputDeviceForce::NO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationAutomaticRenewal.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationAutomaticRenewal.cpp index 6b3e17b3249..e332b1705a0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationAutomaticRenewal.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationAutomaticRenewal.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReservationAutomaticRenewalMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); ReservationAutomaticRenewal GetReservationAutomaticRenewalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return ReservationAutomaticRenewal::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationCodec.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationCodec.cpp index a0dc178480f..eb04067a4b5 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationCodec.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationCodec.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ReservationCodecMapper { - static const int MPEG2_HASH = HashingUtils::HashString("MPEG2"); - static const int AVC_HASH = HashingUtils::HashString("AVC"); - static const int HEVC_HASH = HashingUtils::HashString("HEVC"); - static const int AUDIO_HASH = HashingUtils::HashString("AUDIO"); - static const int LINK_HASH = HashingUtils::HashString("LINK"); + static constexpr uint32_t MPEG2_HASH = ConstExprHashingUtils::HashString("MPEG2"); + static constexpr uint32_t AVC_HASH = ConstExprHashingUtils::HashString("AVC"); + static constexpr uint32_t HEVC_HASH = ConstExprHashingUtils::HashString("HEVC"); + static constexpr uint32_t AUDIO_HASH = ConstExprHashingUtils::HashString("AUDIO"); + static constexpr uint32_t LINK_HASH = ConstExprHashingUtils::HashString("LINK"); ReservationCodec GetReservationCodecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MPEG2_HASH) { return ReservationCodec::MPEG2; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumBitrate.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumBitrate.cpp index 8f0a34a950d..25f1a21b995 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumBitrate.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumBitrate.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReservationMaximumBitrateMapper { - static const int MAX_10_MBPS_HASH = HashingUtils::HashString("MAX_10_MBPS"); - static const int MAX_20_MBPS_HASH = HashingUtils::HashString("MAX_20_MBPS"); - static const int MAX_50_MBPS_HASH = HashingUtils::HashString("MAX_50_MBPS"); + static constexpr uint32_t MAX_10_MBPS_HASH = ConstExprHashingUtils::HashString("MAX_10_MBPS"); + static constexpr uint32_t MAX_20_MBPS_HASH = ConstExprHashingUtils::HashString("MAX_20_MBPS"); + static constexpr uint32_t MAX_50_MBPS_HASH = ConstExprHashingUtils::HashString("MAX_50_MBPS"); ReservationMaximumBitrate GetReservationMaximumBitrateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAX_10_MBPS_HASH) { return ReservationMaximumBitrate::MAX_10_MBPS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumFramerate.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumFramerate.cpp index a20ca3e2c57..9c583404679 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumFramerate.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationMaximumFramerate.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReservationMaximumFramerateMapper { - static const int MAX_30_FPS_HASH = HashingUtils::HashString("MAX_30_FPS"); - static const int MAX_60_FPS_HASH = HashingUtils::HashString("MAX_60_FPS"); + static constexpr uint32_t MAX_30_FPS_HASH = ConstExprHashingUtils::HashString("MAX_30_FPS"); + static constexpr uint32_t MAX_60_FPS_HASH = ConstExprHashingUtils::HashString("MAX_60_FPS"); ReservationMaximumFramerate GetReservationMaximumFramerateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAX_30_FPS_HASH) { return ReservationMaximumFramerate::MAX_30_FPS; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResolution.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResolution.cpp index e1d5c4e346c..59fb50d0a32 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResolution.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResolution.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReservationResolutionMapper { - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int HD_HASH = HashingUtils::HashString("HD"); - static const int FHD_HASH = HashingUtils::HashString("FHD"); - static const int UHD_HASH = HashingUtils::HashString("UHD"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t HD_HASH = ConstExprHashingUtils::HashString("HD"); + static constexpr uint32_t FHD_HASH = ConstExprHashingUtils::HashString("FHD"); + static constexpr uint32_t UHD_HASH = ConstExprHashingUtils::HashString("UHD"); ReservationResolution GetReservationResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SD_HASH) { return ReservationResolution::SD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResourceType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResourceType.cpp index 802530b2389..8c088a7387d 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResourceType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReservationResourceTypeMapper { - static const int INPUT_HASH = HashingUtils::HashString("INPUT"); - static const int OUTPUT_HASH = HashingUtils::HashString("OUTPUT"); - static const int MULTIPLEX_HASH = HashingUtils::HashString("MULTIPLEX"); - static const int CHANNEL_HASH = HashingUtils::HashString("CHANNEL"); + static constexpr uint32_t INPUT_HASH = ConstExprHashingUtils::HashString("INPUT"); + static constexpr uint32_t OUTPUT_HASH = ConstExprHashingUtils::HashString("OUTPUT"); + static constexpr uint32_t MULTIPLEX_HASH = ConstExprHashingUtils::HashString("MULTIPLEX"); + static constexpr uint32_t CHANNEL_HASH = ConstExprHashingUtils::HashString("CHANNEL"); ReservationResourceType GetReservationResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INPUT_HASH) { return ReservationResourceType::INPUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationSpecialFeature.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationSpecialFeature.cpp index 254f31ecbe3..ee6f2302293 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationSpecialFeature.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationSpecialFeature.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReservationSpecialFeatureMapper { - static const int ADVANCED_AUDIO_HASH = HashingUtils::HashString("ADVANCED_AUDIO"); - static const int AUDIO_NORMALIZATION_HASH = HashingUtils::HashString("AUDIO_NORMALIZATION"); - static const int MGHD_HASH = HashingUtils::HashString("MGHD"); - static const int MGUHD_HASH = HashingUtils::HashString("MGUHD"); + static constexpr uint32_t ADVANCED_AUDIO_HASH = ConstExprHashingUtils::HashString("ADVANCED_AUDIO"); + static constexpr uint32_t AUDIO_NORMALIZATION_HASH = ConstExprHashingUtils::HashString("AUDIO_NORMALIZATION"); + static constexpr uint32_t MGHD_HASH = ConstExprHashingUtils::HashString("MGHD"); + static constexpr uint32_t MGUHD_HASH = ConstExprHashingUtils::HashString("MGUHD"); ReservationSpecialFeature GetReservationSpecialFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADVANCED_AUDIO_HASH) { return ReservationSpecialFeature::ADVANCED_AUDIO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationState.cpp index b3f0125b44a..d5e465362ed 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReservationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ReservationState GetReservationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ReservationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationVideoQuality.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationVideoQuality.cpp index 9156016278f..a3a35ec8452 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ReservationVideoQuality.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ReservationVideoQuality.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReservationVideoQualityMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int ENHANCED_HASH = HashingUtils::HashString("ENHANCED"); - static const int PREMIUM_HASH = HashingUtils::HashString("PREMIUM"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t ENHANCED_HASH = ConstExprHashingUtils::HashString("ENHANCED"); + static constexpr uint32_t PREMIUM_HASH = ConstExprHashingUtils::HashString("PREMIUM"); ReservationVideoQuality GetReservationVideoQualityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ReservationVideoQuality::STANDARD; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpAdMarkers.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpAdMarkers.cpp index ea99633a320..260e5838aba 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpAdMarkers.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpAdMarkers.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RtmpAdMarkersMapper { - static const int ON_CUE_POINT_SCTE35_HASH = HashingUtils::HashString("ON_CUE_POINT_SCTE35"); + static constexpr uint32_t ON_CUE_POINT_SCTE35_HASH = ConstExprHashingUtils::HashString("ON_CUE_POINT_SCTE35"); RtmpAdMarkers GetRtmpAdMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_CUE_POINT_SCTE35_HASH) { return RtmpAdMarkers::ON_CUE_POINT_SCTE35; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCacheFullBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCacheFullBehavior.cpp index f86da5f3ada..576b2c1b089 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCacheFullBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCacheFullBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RtmpCacheFullBehaviorMapper { - static const int DISCONNECT_IMMEDIATELY_HASH = HashingUtils::HashString("DISCONNECT_IMMEDIATELY"); - static const int WAIT_FOR_SERVER_HASH = HashingUtils::HashString("WAIT_FOR_SERVER"); + static constexpr uint32_t DISCONNECT_IMMEDIATELY_HASH = ConstExprHashingUtils::HashString("DISCONNECT_IMMEDIATELY"); + static constexpr uint32_t WAIT_FOR_SERVER_HASH = ConstExprHashingUtils::HashString("WAIT_FOR_SERVER"); RtmpCacheFullBehavior GetRtmpCacheFullBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISCONNECT_IMMEDIATELY_HASH) { return RtmpCacheFullBehavior::DISCONNECT_IMMEDIATELY; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCaptionData.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCaptionData.cpp index dd9f8ea8144..8e21d0a0efc 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCaptionData.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpCaptionData.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RtmpCaptionDataMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int FIELD1_608_HASH = HashingUtils::HashString("FIELD1_608"); - static const int FIELD1_AND_FIELD2_608_HASH = HashingUtils::HashString("FIELD1_AND_FIELD2_608"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t FIELD1_608_HASH = ConstExprHashingUtils::HashString("FIELD1_608"); + static constexpr uint32_t FIELD1_AND_FIELD2_608_HASH = ConstExprHashingUtils::HashString("FIELD1_AND_FIELD2_608"); RtmpCaptionData GetRtmpCaptionDataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return RtmpCaptionData::ALL; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpOutputCertificateMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpOutputCertificateMode.cpp index 342d7c67ff6..109d4b08773 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/RtmpOutputCertificateMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/RtmpOutputCertificateMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RtmpOutputCertificateModeMapper { - static const int SELF_SIGNED_HASH = HashingUtils::HashString("SELF_SIGNED"); - static const int VERIFY_AUTHENTICITY_HASH = HashingUtils::HashString("VERIFY_AUTHENTICITY"); + static constexpr uint32_t SELF_SIGNED_HASH = ConstExprHashingUtils::HashString("SELF_SIGNED"); + static constexpr uint32_t VERIFY_AUTHENTICITY_HASH = ConstExprHashingUtils::HashString("VERIFY_AUTHENTICITY"); RtmpOutputCertificateMode GetRtmpOutputCertificateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_SIGNED_HASH) { return RtmpOutputCertificateMode::SELF_SIGNED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/S3CannedAcl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/S3CannedAcl.cpp index a6581f3bb5e..f3c7b2a8775 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/S3CannedAcl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/S3CannedAcl.cpp @@ -20,15 +20,15 @@ namespace Aws namespace S3CannedAclMapper { - static const int AUTHENTICATED_READ_HASH = HashingUtils::HashString("AUTHENTICATED_READ"); - static const int BUCKET_OWNER_FULL_CONTROL_HASH = HashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); - static const int BUCKET_OWNER_READ_HASH = HashingUtils::HashString("BUCKET_OWNER_READ"); - static const int PUBLIC_READ_HASH = HashingUtils::HashString("PUBLIC_READ"); + static constexpr uint32_t AUTHENTICATED_READ_HASH = ConstExprHashingUtils::HashString("AUTHENTICATED_READ"); + static constexpr uint32_t BUCKET_OWNER_FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("BUCKET_OWNER_FULL_CONTROL"); + static constexpr uint32_t BUCKET_OWNER_READ_HASH = ConstExprHashingUtils::HashString("BUCKET_OWNER_READ"); + static constexpr uint32_t PUBLIC_READ_HASH = ConstExprHashingUtils::HashString("PUBLIC_READ"); S3CannedAcl GetS3CannedAclForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTHENTICATED_READ_HASH) { return S3CannedAcl::AUTHENTICATED_READ; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte20Convert608To708.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte20Convert608To708.cpp index 9bed18e00e5..bb1d368816e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte20Convert608To708.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte20Convert608To708.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte20Convert608To708Mapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int UPCONVERT_HASH = HashingUtils::HashString("UPCONVERT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPCONVERT_HASH = ConstExprHashingUtils::HashString("UPCONVERT"); Scte20Convert608To708 GetScte20Convert608To708ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return Scte20Convert608To708::DISABLED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte27OcrLanguage.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte27OcrLanguage.cpp index 2d72dc985d1..dd4cf6e1c64 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte27OcrLanguage.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte27OcrLanguage.cpp @@ -20,17 +20,17 @@ namespace Aws namespace Scte27OcrLanguageMapper { - static const int DEU_HASH = HashingUtils::HashString("DEU"); - static const int ENG_HASH = HashingUtils::HashString("ENG"); - static const int FRA_HASH = HashingUtils::HashString("FRA"); - static const int NLD_HASH = HashingUtils::HashString("NLD"); - static const int POR_HASH = HashingUtils::HashString("POR"); - static const int SPA_HASH = HashingUtils::HashString("SPA"); + static constexpr uint32_t DEU_HASH = ConstExprHashingUtils::HashString("DEU"); + static constexpr uint32_t ENG_HASH = ConstExprHashingUtils::HashString("ENG"); + static constexpr uint32_t FRA_HASH = ConstExprHashingUtils::HashString("FRA"); + static constexpr uint32_t NLD_HASH = ConstExprHashingUtils::HashString("NLD"); + static constexpr uint32_t POR_HASH = ConstExprHashingUtils::HashString("POR"); + static constexpr uint32_t SPA_HASH = ConstExprHashingUtils::HashString("SPA"); Scte27OcrLanguage GetScte27OcrLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEU_HASH) { return Scte27OcrLanguage::DEU; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposNoRegionalBlackoutBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposNoRegionalBlackoutBehavior.cpp index 6c71792a4d3..4edfacf06b2 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposNoRegionalBlackoutBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposNoRegionalBlackoutBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35AposNoRegionalBlackoutBehaviorMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); Scte35AposNoRegionalBlackoutBehavior GetScte35AposNoRegionalBlackoutBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return Scte35AposNoRegionalBlackoutBehavior::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposWebDeliveryAllowedBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposWebDeliveryAllowedBehavior.cpp index fcd4f2d5f4c..d5b31a74058 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposWebDeliveryAllowedBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35AposWebDeliveryAllowedBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35AposWebDeliveryAllowedBehaviorMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); Scte35AposWebDeliveryAllowedBehavior GetScte35AposWebDeliveryAllowedBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return Scte35AposWebDeliveryAllowedBehavior::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35ArchiveAllowedFlag.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35ArchiveAllowedFlag.cpp index 96eddae0701..457cba3c6c9 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35ArchiveAllowedFlag.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35ArchiveAllowedFlag.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35ArchiveAllowedFlagMapper { - static const int ARCHIVE_NOT_ALLOWED_HASH = HashingUtils::HashString("ARCHIVE_NOT_ALLOWED"); - static const int ARCHIVE_ALLOWED_HASH = HashingUtils::HashString("ARCHIVE_ALLOWED"); + static constexpr uint32_t ARCHIVE_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("ARCHIVE_NOT_ALLOWED"); + static constexpr uint32_t ARCHIVE_ALLOWED_HASH = ConstExprHashingUtils::HashString("ARCHIVE_ALLOWED"); Scte35ArchiveAllowedFlag GetScte35ArchiveAllowedFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVE_NOT_ALLOWED_HASH) { return Scte35ArchiveAllowedFlag::ARCHIVE_NOT_ALLOWED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35DeviceRestrictions.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35DeviceRestrictions.cpp index 9c6503b4c72..d2aef2f9f1c 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35DeviceRestrictions.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35DeviceRestrictions.cpp @@ -20,15 +20,15 @@ namespace Aws namespace Scte35DeviceRestrictionsMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int RESTRICT_GROUP0_HASH = HashingUtils::HashString("RESTRICT_GROUP0"); - static const int RESTRICT_GROUP1_HASH = HashingUtils::HashString("RESTRICT_GROUP1"); - static const int RESTRICT_GROUP2_HASH = HashingUtils::HashString("RESTRICT_GROUP2"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t RESTRICT_GROUP0_HASH = ConstExprHashingUtils::HashString("RESTRICT_GROUP0"); + static constexpr uint32_t RESTRICT_GROUP1_HASH = ConstExprHashingUtils::HashString("RESTRICT_GROUP1"); + static constexpr uint32_t RESTRICT_GROUP2_HASH = ConstExprHashingUtils::HashString("RESTRICT_GROUP2"); Scte35DeviceRestrictions GetScte35DeviceRestrictionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Scte35DeviceRestrictions::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35InputMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35InputMode.cpp index 495f6c515da..61e153e31da 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35InputMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35InputMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35InputModeMapper { - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); - static const int FOLLOW_ACTIVE_HASH = HashingUtils::HashString("FOLLOW_ACTIVE"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); + static constexpr uint32_t FOLLOW_ACTIVE_HASH = ConstExprHashingUtils::HashString("FOLLOW_ACTIVE"); Scte35InputMode GetScte35InputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_HASH) { return Scte35InputMode::FIXED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35NoRegionalBlackoutFlag.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35NoRegionalBlackoutFlag.cpp index 14e7d8b46e0..dc301b76faf 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35NoRegionalBlackoutFlag.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35NoRegionalBlackoutFlag.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35NoRegionalBlackoutFlagMapper { - static const int REGIONAL_BLACKOUT_HASH = HashingUtils::HashString("REGIONAL_BLACKOUT"); - static const int NO_REGIONAL_BLACKOUT_HASH = HashingUtils::HashString("NO_REGIONAL_BLACKOUT"); + static constexpr uint32_t REGIONAL_BLACKOUT_HASH = ConstExprHashingUtils::HashString("REGIONAL_BLACKOUT"); + static constexpr uint32_t NO_REGIONAL_BLACKOUT_HASH = ConstExprHashingUtils::HashString("NO_REGIONAL_BLACKOUT"); Scte35NoRegionalBlackoutFlag GetScte35NoRegionalBlackoutFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGIONAL_BLACKOUT_HASH) { return Scte35NoRegionalBlackoutFlag::REGIONAL_BLACKOUT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SegmentationCancelIndicator.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SegmentationCancelIndicator.cpp index 7e123a2888d..60ce4833265 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SegmentationCancelIndicator.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SegmentationCancelIndicator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35SegmentationCancelIndicatorMapper { - static const int SEGMENTATION_EVENT_NOT_CANCELED_HASH = HashingUtils::HashString("SEGMENTATION_EVENT_NOT_CANCELED"); - static const int SEGMENTATION_EVENT_CANCELED_HASH = HashingUtils::HashString("SEGMENTATION_EVENT_CANCELED"); + static constexpr uint32_t SEGMENTATION_EVENT_NOT_CANCELED_HASH = ConstExprHashingUtils::HashString("SEGMENTATION_EVENT_NOT_CANCELED"); + static constexpr uint32_t SEGMENTATION_EVENT_CANCELED_HASH = ConstExprHashingUtils::HashString("SEGMENTATION_EVENT_CANCELED"); Scte35SegmentationCancelIndicator GetScte35SegmentationCancelIndicatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEGMENTATION_EVENT_NOT_CANCELED_HASH) { return Scte35SegmentationCancelIndicator::SEGMENTATION_EVENT_NOT_CANCELED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertNoRegionalBlackoutBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertNoRegionalBlackoutBehavior.cpp index 710fddb54dc..ea6ddb7dc69 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertNoRegionalBlackoutBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertNoRegionalBlackoutBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35SpliceInsertNoRegionalBlackoutBehaviorMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); Scte35SpliceInsertNoRegionalBlackoutBehavior GetScte35SpliceInsertNoRegionalBlackoutBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return Scte35SpliceInsertNoRegionalBlackoutBehavior::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertWebDeliveryAllowedBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertWebDeliveryAllowedBehavior.cpp index a1259e9f11d..349c6778beb 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertWebDeliveryAllowedBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35SpliceInsertWebDeliveryAllowedBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35SpliceInsertWebDeliveryAllowedBehaviorMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); Scte35SpliceInsertWebDeliveryAllowedBehavior GetScte35SpliceInsertWebDeliveryAllowedBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return Scte35SpliceInsertWebDeliveryAllowedBehavior::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35WebDeliveryAllowedFlag.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35WebDeliveryAllowedFlag.cpp index fbcc85b6079..42656764a03 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Scte35WebDeliveryAllowedFlag.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Scte35WebDeliveryAllowedFlag.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Scte35WebDeliveryAllowedFlagMapper { - static const int WEB_DELIVERY_NOT_ALLOWED_HASH = HashingUtils::HashString("WEB_DELIVERY_NOT_ALLOWED"); - static const int WEB_DELIVERY_ALLOWED_HASH = HashingUtils::HashString("WEB_DELIVERY_ALLOWED"); + static constexpr uint32_t WEB_DELIVERY_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("WEB_DELIVERY_NOT_ALLOWED"); + static constexpr uint32_t WEB_DELIVERY_ALLOWED_HASH = ConstExprHashingUtils::HashString("WEB_DELIVERY_ALLOWED"); Scte35WebDeliveryAllowedFlag GetScte35WebDeliveryAllowedFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEB_DELIVERY_NOT_ALLOWED_HASH) { return Scte35WebDeliveryAllowedFlag::WEB_DELIVERY_NOT_ALLOWED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupAudioOnlyTimecodeControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupAudioOnlyTimecodeControl.cpp index 827a79a2b56..330054f5659 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupAudioOnlyTimecodeControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupAudioOnlyTimecodeControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmoothGroupAudioOnlyTimecodeControlMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int USE_CONFIGURED_CLOCK_HASH = HashingUtils::HashString("USE_CONFIGURED_CLOCK"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t USE_CONFIGURED_CLOCK_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED_CLOCK"); SmoothGroupAudioOnlyTimecodeControl GetSmoothGroupAudioOnlyTimecodeControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return SmoothGroupAudioOnlyTimecodeControl::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupCertificateMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupCertificateMode.cpp index dcfa5afb45a..f1c5553682e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupCertificateMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupCertificateMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmoothGroupCertificateModeMapper { - static const int SELF_SIGNED_HASH = HashingUtils::HashString("SELF_SIGNED"); - static const int VERIFY_AUTHENTICITY_HASH = HashingUtils::HashString("VERIFY_AUTHENTICITY"); + static constexpr uint32_t SELF_SIGNED_HASH = ConstExprHashingUtils::HashString("SELF_SIGNED"); + static constexpr uint32_t VERIFY_AUTHENTICITY_HASH = ConstExprHashingUtils::HashString("VERIFY_AUTHENTICITY"); SmoothGroupCertificateMode GetSmoothGroupCertificateModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_SIGNED_HASH) { return SmoothGroupCertificateMode::SELF_SIGNED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventIdMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventIdMode.cpp index b1db9b1e6a6..38974f4a979 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventIdMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventIdMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SmoothGroupEventIdModeMapper { - static const int NO_EVENT_ID_HASH = HashingUtils::HashString("NO_EVENT_ID"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); - static const int USE_TIMESTAMP_HASH = HashingUtils::HashString("USE_TIMESTAMP"); + static constexpr uint32_t NO_EVENT_ID_HASH = ConstExprHashingUtils::HashString("NO_EVENT_ID"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t USE_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("USE_TIMESTAMP"); SmoothGroupEventIdMode GetSmoothGroupEventIdModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_EVENT_ID_HASH) { return SmoothGroupEventIdMode::NO_EVENT_ID; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventStopBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventStopBehavior.cpp index 72e2bd60f4e..c04db976aa1 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventStopBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupEventStopBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmoothGroupEventStopBehaviorMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SEND_EOS_HASH = HashingUtils::HashString("SEND_EOS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SEND_EOS_HASH = ConstExprHashingUtils::HashString("SEND_EOS"); SmoothGroupEventStopBehavior GetSmoothGroupEventStopBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return SmoothGroupEventStopBehavior::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSegmentationMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSegmentationMode.cpp index 94ff1d7277a..179c6c06c12 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSegmentationMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSegmentationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmoothGroupSegmentationModeMapper { - static const int USE_INPUT_SEGMENTATION_HASH = HashingUtils::HashString("USE_INPUT_SEGMENTATION"); - static const int USE_SEGMENT_DURATION_HASH = HashingUtils::HashString("USE_SEGMENT_DURATION"); + static constexpr uint32_t USE_INPUT_SEGMENTATION_HASH = ConstExprHashingUtils::HashString("USE_INPUT_SEGMENTATION"); + static constexpr uint32_t USE_SEGMENT_DURATION_HASH = ConstExprHashingUtils::HashString("USE_SEGMENT_DURATION"); SmoothGroupSegmentationMode GetSmoothGroupSegmentationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_INPUT_SEGMENTATION_HASH) { return SmoothGroupSegmentationMode::USE_INPUT_SEGMENTATION; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSparseTrackType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSparseTrackType.cpp index cb4ac77fcec..e4dca3f0ce0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSparseTrackType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupSparseTrackType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SmoothGroupSparseTrackTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SCTE_35_HASH = HashingUtils::HashString("SCTE_35"); - static const int SCTE_35_WITHOUT_SEGMENTATION_HASH = HashingUtils::HashString("SCTE_35_WITHOUT_SEGMENTATION"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SCTE_35_HASH = ConstExprHashingUtils::HashString("SCTE_35"); + static constexpr uint32_t SCTE_35_WITHOUT_SEGMENTATION_HASH = ConstExprHashingUtils::HashString("SCTE_35_WITHOUT_SEGMENTATION"); SmoothGroupSparseTrackType GetSmoothGroupSparseTrackTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return SmoothGroupSparseTrackType::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupStreamManifestBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupStreamManifestBehavior.cpp index 7c092a92049..3b4707a0d62 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupStreamManifestBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupStreamManifestBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmoothGroupStreamManifestBehaviorMapper { - static const int DO_NOT_SEND_HASH = HashingUtils::HashString("DO_NOT_SEND"); - static const int SEND_HASH = HashingUtils::HashString("SEND"); + static constexpr uint32_t DO_NOT_SEND_HASH = ConstExprHashingUtils::HashString("DO_NOT_SEND"); + static constexpr uint32_t SEND_HASH = ConstExprHashingUtils::HashString("SEND"); SmoothGroupStreamManifestBehavior GetSmoothGroupStreamManifestBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DO_NOT_SEND_HASH) { return SmoothGroupStreamManifestBehavior::DO_NOT_SEND; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupTimestampOffsetMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupTimestampOffsetMode.cpp index 2807cb87a4d..fc61cc211fd 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupTimestampOffsetMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/SmoothGroupTimestampOffsetMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmoothGroupTimestampOffsetModeMapper { - static const int USE_CONFIGURED_OFFSET_HASH = HashingUtils::HashString("USE_CONFIGURED_OFFSET"); - static const int USE_EVENT_START_DATE_HASH = HashingUtils::HashString("USE_EVENT_START_DATE"); + static constexpr uint32_t USE_CONFIGURED_OFFSET_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED_OFFSET"); + static constexpr uint32_t USE_EVENT_START_DATE_HASH = ConstExprHashingUtils::HashString("USE_EVENT_START_DATE"); SmoothGroupTimestampOffsetMode GetSmoothGroupTimestampOffsetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_CONFIGURED_OFFSET_HASH) { return SmoothGroupTimestampOffsetMode::USE_CONFIGURED_OFFSET; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/Smpte2038DataPreference.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/Smpte2038DataPreference.cpp index f39d0b79af5..cbda5ac9785 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/Smpte2038DataPreference.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/Smpte2038DataPreference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace Smpte2038DataPreferenceMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int PREFER_HASH = HashingUtils::HashString("PREFER"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t PREFER_HASH = ConstExprHashingUtils::HashString("PREFER"); Smpte2038DataPreference GetSmpte2038DataPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return Smpte2038DataPreference::IGNORE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterPostFilterSharpening.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterPostFilterSharpening.cpp index c7f9872f84e..e3e0849cdc6 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterPostFilterSharpening.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterPostFilterSharpening.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TemporalFilterPostFilterSharpeningMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); TemporalFilterPostFilterSharpening GetTemporalFilterPostFilterSharpeningForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return TemporalFilterPostFilterSharpening::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterStrength.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterStrength.cpp index 656c8c9b0d1..508c2b65f7e 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterStrength.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/TemporalFilterStrength.cpp @@ -20,28 +20,28 @@ namespace Aws namespace TemporalFilterStrengthMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int STRENGTH_1_HASH = HashingUtils::HashString("STRENGTH_1"); - static const int STRENGTH_2_HASH = HashingUtils::HashString("STRENGTH_2"); - static const int STRENGTH_3_HASH = HashingUtils::HashString("STRENGTH_3"); - static const int STRENGTH_4_HASH = HashingUtils::HashString("STRENGTH_4"); - static const int STRENGTH_5_HASH = HashingUtils::HashString("STRENGTH_5"); - static const int STRENGTH_6_HASH = HashingUtils::HashString("STRENGTH_6"); - static const int STRENGTH_7_HASH = HashingUtils::HashString("STRENGTH_7"); - static const int STRENGTH_8_HASH = HashingUtils::HashString("STRENGTH_8"); - static const int STRENGTH_9_HASH = HashingUtils::HashString("STRENGTH_9"); - static const int STRENGTH_10_HASH = HashingUtils::HashString("STRENGTH_10"); - static const int STRENGTH_11_HASH = HashingUtils::HashString("STRENGTH_11"); - static const int STRENGTH_12_HASH = HashingUtils::HashString("STRENGTH_12"); - static const int STRENGTH_13_HASH = HashingUtils::HashString("STRENGTH_13"); - static const int STRENGTH_14_HASH = HashingUtils::HashString("STRENGTH_14"); - static const int STRENGTH_15_HASH = HashingUtils::HashString("STRENGTH_15"); - static const int STRENGTH_16_HASH = HashingUtils::HashString("STRENGTH_16"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t STRENGTH_1_HASH = ConstExprHashingUtils::HashString("STRENGTH_1"); + static constexpr uint32_t STRENGTH_2_HASH = ConstExprHashingUtils::HashString("STRENGTH_2"); + static constexpr uint32_t STRENGTH_3_HASH = ConstExprHashingUtils::HashString("STRENGTH_3"); + static constexpr uint32_t STRENGTH_4_HASH = ConstExprHashingUtils::HashString("STRENGTH_4"); + static constexpr uint32_t STRENGTH_5_HASH = ConstExprHashingUtils::HashString("STRENGTH_5"); + static constexpr uint32_t STRENGTH_6_HASH = ConstExprHashingUtils::HashString("STRENGTH_6"); + static constexpr uint32_t STRENGTH_7_HASH = ConstExprHashingUtils::HashString("STRENGTH_7"); + static constexpr uint32_t STRENGTH_8_HASH = ConstExprHashingUtils::HashString("STRENGTH_8"); + static constexpr uint32_t STRENGTH_9_HASH = ConstExprHashingUtils::HashString("STRENGTH_9"); + static constexpr uint32_t STRENGTH_10_HASH = ConstExprHashingUtils::HashString("STRENGTH_10"); + static constexpr uint32_t STRENGTH_11_HASH = ConstExprHashingUtils::HashString("STRENGTH_11"); + static constexpr uint32_t STRENGTH_12_HASH = ConstExprHashingUtils::HashString("STRENGTH_12"); + static constexpr uint32_t STRENGTH_13_HASH = ConstExprHashingUtils::HashString("STRENGTH_13"); + static constexpr uint32_t STRENGTH_14_HASH = ConstExprHashingUtils::HashString("STRENGTH_14"); + static constexpr uint32_t STRENGTH_15_HASH = ConstExprHashingUtils::HashString("STRENGTH_15"); + static constexpr uint32_t STRENGTH_16_HASH = ConstExprHashingUtils::HashString("STRENGTH_16"); TemporalFilterStrength GetTemporalFilterStrengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return TemporalFilterStrength::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailState.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailState.cpp index 9f9205fc888..439319683c0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailState.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThumbnailStateMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ThumbnailState GetThumbnailStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return ThumbnailState::AUTO; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailType.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailType.cpp index 60436110128..10c6cc7c5d9 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailType.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/ThumbnailType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ThumbnailTypeMapper { - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); - static const int CURRENT_ACTIVE_HASH = HashingUtils::HashString("CURRENT_ACTIVE"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t CURRENT_ACTIVE_HASH = ConstExprHashingUtils::HashString("CURRENT_ACTIVE"); ThumbnailType GetThumbnailTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNSPECIFIED_HASH) { return ThumbnailType::UNSPECIFIED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninFontSize.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninFontSize.cpp index 14f18514051..35c702ea9b7 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninFontSize.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninFontSize.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TimecodeBurninFontSizeMapper { - static const int EXTRA_SMALL_10_HASH = HashingUtils::HashString("EXTRA_SMALL_10"); - static const int LARGE_48_HASH = HashingUtils::HashString("LARGE_48"); - static const int MEDIUM_32_HASH = HashingUtils::HashString("MEDIUM_32"); - static const int SMALL_16_HASH = HashingUtils::HashString("SMALL_16"); + static constexpr uint32_t EXTRA_SMALL_10_HASH = ConstExprHashingUtils::HashString("EXTRA_SMALL_10"); + static constexpr uint32_t LARGE_48_HASH = ConstExprHashingUtils::HashString("LARGE_48"); + static constexpr uint32_t MEDIUM_32_HASH = ConstExprHashingUtils::HashString("MEDIUM_32"); + static constexpr uint32_t SMALL_16_HASH = ConstExprHashingUtils::HashString("SMALL_16"); TimecodeBurninFontSize GetTimecodeBurninFontSizeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTRA_SMALL_10_HASH) { return TimecodeBurninFontSize::EXTRA_SMALL_10; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninPosition.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninPosition.cpp index 0df621ddc86..f6795d864fd 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninPosition.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeBurninPosition.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TimecodeBurninPositionMapper { - static const int BOTTOM_CENTER_HASH = HashingUtils::HashString("BOTTOM_CENTER"); - static const int BOTTOM_LEFT_HASH = HashingUtils::HashString("BOTTOM_LEFT"); - static const int BOTTOM_RIGHT_HASH = HashingUtils::HashString("BOTTOM_RIGHT"); - static const int MIDDLE_CENTER_HASH = HashingUtils::HashString("MIDDLE_CENTER"); - static const int MIDDLE_LEFT_HASH = HashingUtils::HashString("MIDDLE_LEFT"); - static const int MIDDLE_RIGHT_HASH = HashingUtils::HashString("MIDDLE_RIGHT"); - static const int TOP_CENTER_HASH = HashingUtils::HashString("TOP_CENTER"); - static const int TOP_LEFT_HASH = HashingUtils::HashString("TOP_LEFT"); - static const int TOP_RIGHT_HASH = HashingUtils::HashString("TOP_RIGHT"); + static constexpr uint32_t BOTTOM_CENTER_HASH = ConstExprHashingUtils::HashString("BOTTOM_CENTER"); + static constexpr uint32_t BOTTOM_LEFT_HASH = ConstExprHashingUtils::HashString("BOTTOM_LEFT"); + static constexpr uint32_t BOTTOM_RIGHT_HASH = ConstExprHashingUtils::HashString("BOTTOM_RIGHT"); + static constexpr uint32_t MIDDLE_CENTER_HASH = ConstExprHashingUtils::HashString("MIDDLE_CENTER"); + static constexpr uint32_t MIDDLE_LEFT_HASH = ConstExprHashingUtils::HashString("MIDDLE_LEFT"); + static constexpr uint32_t MIDDLE_RIGHT_HASH = ConstExprHashingUtils::HashString("MIDDLE_RIGHT"); + static constexpr uint32_t TOP_CENTER_HASH = ConstExprHashingUtils::HashString("TOP_CENTER"); + static constexpr uint32_t TOP_LEFT_HASH = ConstExprHashingUtils::HashString("TOP_LEFT"); + static constexpr uint32_t TOP_RIGHT_HASH = ConstExprHashingUtils::HashString("TOP_RIGHT"); TimecodeBurninPosition GetTimecodeBurninPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BOTTOM_CENTER_HASH) { return TimecodeBurninPosition::BOTTOM_CENTER; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeConfigSource.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeConfigSource.cpp index 347e5605acb..9ca4627a5cd 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeConfigSource.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/TimecodeConfigSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TimecodeConfigSourceMapper { - static const int EMBEDDED_HASH = HashingUtils::HashString("EMBEDDED"); - static const int SYSTEMCLOCK_HASH = HashingUtils::HashString("SYSTEMCLOCK"); - static const int ZEROBASED_HASH = HashingUtils::HashString("ZEROBASED"); + static constexpr uint32_t EMBEDDED_HASH = ConstExprHashingUtils::HashString("EMBEDDED"); + static constexpr uint32_t SYSTEMCLOCK_HASH = ConstExprHashingUtils::HashString("SYSTEMCLOCK"); + static constexpr uint32_t ZEROBASED_HASH = ConstExprHashingUtils::HashString("ZEROBASED"); TimecodeConfigSource GetTimecodeConfigSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMBEDDED_HASH) { return TimecodeConfigSource::EMBEDDED; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/TtmlDestinationStyleControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/TtmlDestinationStyleControl.cpp index b97e9f8c5f5..8c8d755e920 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/TtmlDestinationStyleControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/TtmlDestinationStyleControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TtmlDestinationStyleControlMapper { - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t USE_CONFIGURED_HASH = ConstExprHashingUtils::HashString("USE_CONFIGURED"); TtmlDestinationStyleControl GetTtmlDestinationStyleControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return TtmlDestinationStyleControl::PASSTHROUGH; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/UdpTimedMetadataId3Frame.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/UdpTimedMetadataId3Frame.cpp index c00cd7b7f36..b17d3d238ee 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/UdpTimedMetadataId3Frame.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/UdpTimedMetadataId3Frame.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UdpTimedMetadataId3FrameMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRIV_HASH = HashingUtils::HashString("PRIV"); - static const int TDRL_HASH = HashingUtils::HashString("TDRL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRIV_HASH = ConstExprHashingUtils::HashString("PRIV"); + static constexpr uint32_t TDRL_HASH = ConstExprHashingUtils::HashString("TDRL"); UdpTimedMetadataId3Frame GetUdpTimedMetadataId3FrameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return UdpTimedMetadataId3Frame::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionRespondToAfd.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionRespondToAfd.cpp index 6fb9fa0a8ec..af47da1acb2 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionRespondToAfd.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionRespondToAfd.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VideoDescriptionRespondToAfdMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int RESPOND_HASH = HashingUtils::HashString("RESPOND"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t RESPOND_HASH = ConstExprHashingUtils::HashString("RESPOND"); VideoDescriptionRespondToAfd GetVideoDescriptionRespondToAfdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return VideoDescriptionRespondToAfd::NONE; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionScalingBehavior.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionScalingBehavior.cpp index 614c39b88f5..867b0dc9336 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionScalingBehavior.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/VideoDescriptionScalingBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VideoDescriptionScalingBehaviorMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int STRETCH_TO_OUTPUT_HASH = HashingUtils::HashString("STRETCH_TO_OUTPUT"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t STRETCH_TO_OUTPUT_HASH = ConstExprHashingUtils::HashString("STRETCH_TO_OUTPUT"); VideoDescriptionScalingBehavior GetVideoDescriptionScalingBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return VideoDescriptionScalingBehavior::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpace.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpace.cpp index 732657e7b78..6719af01118 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpace.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpace.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VideoSelectorColorSpaceMapper { - static const int FOLLOW_HASH = HashingUtils::HashString("FOLLOW"); - static const int HDR10_HASH = HashingUtils::HashString("HDR10"); - static const int HLG_2020_HASH = HashingUtils::HashString("HLG_2020"); - static const int REC_601_HASH = HashingUtils::HashString("REC_601"); - static const int REC_709_HASH = HashingUtils::HashString("REC_709"); + static constexpr uint32_t FOLLOW_HASH = ConstExprHashingUtils::HashString("FOLLOW"); + static constexpr uint32_t HDR10_HASH = ConstExprHashingUtils::HashString("HDR10"); + static constexpr uint32_t HLG_2020_HASH = ConstExprHashingUtils::HashString("HLG_2020"); + static constexpr uint32_t REC_601_HASH = ConstExprHashingUtils::HashString("REC_601"); + static constexpr uint32_t REC_709_HASH = ConstExprHashingUtils::HashString("REC_709"); VideoSelectorColorSpace GetVideoSelectorColorSpaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_HASH) { return VideoSelectorColorSpace::FOLLOW; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpaceUsage.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpaceUsage.cpp index c41e8ef75b5..282a50e99a8 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpaceUsage.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/VideoSelectorColorSpaceUsage.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VideoSelectorColorSpaceUsageMapper { - static const int FALLBACK_HASH = HashingUtils::HashString("FALLBACK"); - static const int FORCE_HASH = HashingUtils::HashString("FORCE"); + static constexpr uint32_t FALLBACK_HASH = ConstExprHashingUtils::HashString("FALLBACK"); + static constexpr uint32_t FORCE_HASH = ConstExprHashingUtils::HashString("FORCE"); VideoSelectorColorSpaceUsage GetVideoSelectorColorSpaceUsageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FALLBACK_HASH) { return VideoSelectorColorSpaceUsage::FALLBACK; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/WavCodingMode.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/WavCodingMode.cpp index b8b276b542c..c806d0fba12 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/WavCodingMode.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/WavCodingMode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WavCodingModeMapper { - static const int CODING_MODE_1_0_HASH = HashingUtils::HashString("CODING_MODE_1_0"); - static const int CODING_MODE_2_0_HASH = HashingUtils::HashString("CODING_MODE_2_0"); - static const int CODING_MODE_4_0_HASH = HashingUtils::HashString("CODING_MODE_4_0"); - static const int CODING_MODE_8_0_HASH = HashingUtils::HashString("CODING_MODE_8_0"); + static constexpr uint32_t CODING_MODE_1_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_1_0"); + static constexpr uint32_t CODING_MODE_2_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_2_0"); + static constexpr uint32_t CODING_MODE_4_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_4_0"); + static constexpr uint32_t CODING_MODE_8_0_HASH = ConstExprHashingUtils::HashString("CODING_MODE_8_0"); WavCodingMode GetWavCodingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODING_MODE_1_0_HASH) { return WavCodingMode::CODING_MODE_1_0; diff --git a/generated/src/aws-cpp-sdk-medialive/source/model/WebvttDestinationStyleControl.cpp b/generated/src/aws-cpp-sdk-medialive/source/model/WebvttDestinationStyleControl.cpp index 95611cd26a1..ad732a290e0 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/model/WebvttDestinationStyleControl.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/model/WebvttDestinationStyleControl.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WebvttDestinationStyleControlMapper { - static const int NO_STYLE_DATA_HASH = HashingUtils::HashString("NO_STYLE_DATA"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NO_STYLE_DATA_HASH = ConstExprHashingUtils::HashString("NO_STYLE_DATA"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); WebvttDestinationStyleControl GetWebvttDestinationStyleControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_STYLE_DATA_HASH) { return WebvttDestinationStyleControl::NO_STYLE_DATA; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodErrors.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodErrors.cpp index 1ba7684a60f..002f0c5986c 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodErrors.cpp @@ -18,16 +18,16 @@ namespace MediaPackageVod namespace MediaPackageVodErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/AdMarkers.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/AdMarkers.cpp index 56d001b5f36..30c136d436a 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/AdMarkers.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/AdMarkers.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AdMarkersMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SCTE35_ENHANCED_HASH = HashingUtils::HashString("SCTE35_ENHANCED"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SCTE35_ENHANCED_HASH = ConstExprHashingUtils::HashString("SCTE35_ENHANCED"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); AdMarkers GetAdMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AdMarkers::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/EncryptionMethod.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/EncryptionMethod.cpp index 10b18feee56..4adbd71445f 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/EncryptionMethod.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/EncryptionMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionMethodMapper { - static const int AES_128_HASH = HashingUtils::HashString("AES_128"); - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES_128_HASH = ConstExprHashingUtils::HashString("AES_128"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); EncryptionMethod GetEncryptionMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES_128_HASH) { return EncryptionMethod::AES_128; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ManifestLayout.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ManifestLayout.cpp index 6f706f601a1..923aab95ebb 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ManifestLayout.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ManifestLayout.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManifestLayoutMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int COMPACT_HASH = HashingUtils::HashString("COMPACT"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t COMPACT_HASH = ConstExprHashingUtils::HashString("COMPACT"); ManifestLayout GetManifestLayoutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return ManifestLayout::FULL; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Audio.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Audio.cpp index 1b5c08fb643..01a6ab65309 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Audio.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Audio.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PresetSpeke20AudioMapper { - static const int PRESET_AUDIO_1_HASH = HashingUtils::HashString("PRESET-AUDIO-1"); - static const int PRESET_AUDIO_2_HASH = HashingUtils::HashString("PRESET-AUDIO-2"); - static const int PRESET_AUDIO_3_HASH = HashingUtils::HashString("PRESET-AUDIO-3"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + static constexpr uint32_t PRESET_AUDIO_1_HASH = ConstExprHashingUtils::HashString("PRESET-AUDIO-1"); + static constexpr uint32_t PRESET_AUDIO_2_HASH = ConstExprHashingUtils::HashString("PRESET-AUDIO-2"); + static constexpr uint32_t PRESET_AUDIO_3_HASH = ConstExprHashingUtils::HashString("PRESET-AUDIO-3"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED"); PresetSpeke20Audio GetPresetSpeke20AudioForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESET_AUDIO_1_HASH) { return PresetSpeke20Audio::PRESET_AUDIO_1; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Video.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Video.cpp index 84a1b394aef..b9a4ff3a6ac 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Video.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/PresetSpeke20Video.cpp @@ -20,21 +20,21 @@ namespace Aws namespace PresetSpeke20VideoMapper { - static const int PRESET_VIDEO_1_HASH = HashingUtils::HashString("PRESET-VIDEO-1"); - static const int PRESET_VIDEO_2_HASH = HashingUtils::HashString("PRESET-VIDEO-2"); - static const int PRESET_VIDEO_3_HASH = HashingUtils::HashString("PRESET-VIDEO-3"); - static const int PRESET_VIDEO_4_HASH = HashingUtils::HashString("PRESET-VIDEO-4"); - static const int PRESET_VIDEO_5_HASH = HashingUtils::HashString("PRESET-VIDEO-5"); - static const int PRESET_VIDEO_6_HASH = HashingUtils::HashString("PRESET-VIDEO-6"); - static const int PRESET_VIDEO_7_HASH = HashingUtils::HashString("PRESET-VIDEO-7"); - static const int PRESET_VIDEO_8_HASH = HashingUtils::HashString("PRESET-VIDEO-8"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + static constexpr uint32_t PRESET_VIDEO_1_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-1"); + static constexpr uint32_t PRESET_VIDEO_2_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-2"); + static constexpr uint32_t PRESET_VIDEO_3_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-3"); + static constexpr uint32_t PRESET_VIDEO_4_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-4"); + static constexpr uint32_t PRESET_VIDEO_5_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-5"); + static constexpr uint32_t PRESET_VIDEO_6_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-6"); + static constexpr uint32_t PRESET_VIDEO_7_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-7"); + static constexpr uint32_t PRESET_VIDEO_8_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-8"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED"); PresetSpeke20Video GetPresetSpeke20VideoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESET_VIDEO_1_HASH) { return PresetSpeke20Video::PRESET_VIDEO_1; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/Profile.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/Profile.cpp index d561f4da17b..247ebdb7cb5 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/Profile.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/Profile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProfileMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HBBTV_1_5_HASH = HashingUtils::HashString("HBBTV_1_5"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HBBTV_1_5_HASH = ConstExprHashingUtils::HashString("HBBTV_1_5"); Profile GetProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Profile::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ScteMarkersSource.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ScteMarkersSource.cpp index 089fb10a70f..2b53d0dcae6 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ScteMarkersSource.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/ScteMarkersSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScteMarkersSourceMapper { - static const int SEGMENTS_HASH = HashingUtils::HashString("SEGMENTS"); - static const int MANIFEST_HASH = HashingUtils::HashString("MANIFEST"); + static constexpr uint32_t SEGMENTS_HASH = ConstExprHashingUtils::HashString("SEGMENTS"); + static constexpr uint32_t MANIFEST_HASH = ConstExprHashingUtils::HashString("MANIFEST"); ScteMarkersSource GetScteMarkersSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEGMENTS_HASH) { return ScteMarkersSource::SEGMENTS; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/SegmentTemplateFormat.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/SegmentTemplateFormat.cpp index 6864c89efe4..271c8ad4bfe 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/SegmentTemplateFormat.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/SegmentTemplateFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SegmentTemplateFormatMapper { - static const int NUMBER_WITH_TIMELINE_HASH = HashingUtils::HashString("NUMBER_WITH_TIMELINE"); - static const int TIME_WITH_TIMELINE_HASH = HashingUtils::HashString("TIME_WITH_TIMELINE"); - static const int NUMBER_WITH_DURATION_HASH = HashingUtils::HashString("NUMBER_WITH_DURATION"); + static constexpr uint32_t NUMBER_WITH_TIMELINE_HASH = ConstExprHashingUtils::HashString("NUMBER_WITH_TIMELINE"); + static constexpr uint32_t TIME_WITH_TIMELINE_HASH = ConstExprHashingUtils::HashString("TIME_WITH_TIMELINE"); + static constexpr uint32_t NUMBER_WITH_DURATION_HASH = ConstExprHashingUtils::HashString("NUMBER_WITH_DURATION"); SegmentTemplateFormat GetSegmentTemplateFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NUMBER_WITH_TIMELINE_HASH) { return SegmentTemplateFormat::NUMBER_WITH_TIMELINE; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/StreamOrder.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/StreamOrder.cpp index bde947ac890..e6733423d79 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/StreamOrder.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/StreamOrder.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StreamOrderMapper { - static const int ORIGINAL_HASH = HashingUtils::HashString("ORIGINAL"); - static const int VIDEO_BITRATE_ASCENDING_HASH = HashingUtils::HashString("VIDEO_BITRATE_ASCENDING"); - static const int VIDEO_BITRATE_DESCENDING_HASH = HashingUtils::HashString("VIDEO_BITRATE_DESCENDING"); + static constexpr uint32_t ORIGINAL_HASH = ConstExprHashingUtils::HashString("ORIGINAL"); + static constexpr uint32_t VIDEO_BITRATE_ASCENDING_HASH = ConstExprHashingUtils::HashString("VIDEO_BITRATE_ASCENDING"); + static constexpr uint32_t VIDEO_BITRATE_DESCENDING_HASH = ConstExprHashingUtils::HashString("VIDEO_BITRATE_DESCENDING"); StreamOrder GetStreamOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORIGINAL_HASH) { return StreamOrder::ORIGINAL; diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/__PeriodTriggersElement.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/__PeriodTriggersElement.cpp index 0e71e2d9f66..41c48a57424 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/__PeriodTriggersElement.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/model/__PeriodTriggersElement.cpp @@ -20,12 +20,12 @@ namespace Aws namespace __PeriodTriggersElementMapper { - static const int ADS_HASH = HashingUtils::HashString("ADS"); + static constexpr uint32_t ADS_HASH = ConstExprHashingUtils::HashString("ADS"); __PeriodTriggersElement Get__PeriodTriggersElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADS_HASH) { return __PeriodTriggersElement::ADS; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageErrors.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageErrors.cpp index 2f04202592f..d3a0f22674d 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageErrors.cpp @@ -18,16 +18,16 @@ namespace MediaPackage namespace MediaPackageErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int UNPROCESSABLE_ENTITY_HASH = HashingUtils::HashString("UnprocessableEntityException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t UNPROCESSABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("UnprocessableEntityException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/AdMarkers.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/AdMarkers.cpp index 0a77ac927ae..d0fa8857065 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/AdMarkers.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/AdMarkers.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AdMarkersMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SCTE35_ENHANCED_HASH = HashingUtils::HashString("SCTE35_ENHANCED"); - static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); - static const int DATERANGE_HASH = HashingUtils::HashString("DATERANGE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SCTE35_ENHANCED_HASH = ConstExprHashingUtils::HashString("SCTE35_ENHANCED"); + static constexpr uint32_t PASSTHROUGH_HASH = ConstExprHashingUtils::HashString("PASSTHROUGH"); + static constexpr uint32_t DATERANGE_HASH = ConstExprHashingUtils::HashString("DATERANGE"); AdMarkers GetAdMarkersForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AdMarkers::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/AdsOnDeliveryRestrictions.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/AdsOnDeliveryRestrictions.cpp index 819a4e38277..c6da48e41a4 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/AdsOnDeliveryRestrictions.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/AdsOnDeliveryRestrictions.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AdsOnDeliveryRestrictionsMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int RESTRICTED_HASH = HashingUtils::HashString("RESTRICTED"); - static const int UNRESTRICTED_HASH = HashingUtils::HashString("UNRESTRICTED"); - static const int BOTH_HASH = HashingUtils::HashString("BOTH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t RESTRICTED_HASH = ConstExprHashingUtils::HashString("RESTRICTED"); + static constexpr uint32_t UNRESTRICTED_HASH = ConstExprHashingUtils::HashString("UNRESTRICTED"); + static constexpr uint32_t BOTH_HASH = ConstExprHashingUtils::HashString("BOTH"); AdsOnDeliveryRestrictions GetAdsOnDeliveryRestrictionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AdsOnDeliveryRestrictions::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/CmafEncryptionMethod.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/CmafEncryptionMethod.cpp index 2697dfaa771..75813f389b4 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/CmafEncryptionMethod.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/CmafEncryptionMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafEncryptionMethodMapper { - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); - static const int AES_CTR_HASH = HashingUtils::HashString("AES_CTR"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES_CTR_HASH = ConstExprHashingUtils::HashString("AES_CTR"); CmafEncryptionMethod GetCmafEncryptionMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAMPLE_AES_HASH) { return CmafEncryptionMethod::SAMPLE_AES; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/EncryptionMethod.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/EncryptionMethod.cpp index cc54b073684..6908da6e36f 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/EncryptionMethod.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/EncryptionMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionMethodMapper { - static const int AES_128_HASH = HashingUtils::HashString("AES_128"); - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES_128_HASH = ConstExprHashingUtils::HashString("AES_128"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); EncryptionMethod GetEncryptionMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES_128_HASH) { return EncryptionMethod::AES_128; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/ManifestLayout.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/ManifestLayout.cpp index 7af6cb2437f..6df5dc37f5c 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/ManifestLayout.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/ManifestLayout.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ManifestLayoutMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int COMPACT_HASH = HashingUtils::HashString("COMPACT"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t COMPACT_HASH = ConstExprHashingUtils::HashString("COMPACT"); ManifestLayout GetManifestLayoutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return ManifestLayout::FULL; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/Origination.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/Origination.cpp index 68af0c16da7..0c9d4f22e9d 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/Origination.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/Origination.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginationMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); Origination GetOriginationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return Origination::ALLOW; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/PlaylistType.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/PlaylistType.cpp index a26a487be1a..bb885d02ebd 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/PlaylistType.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/PlaylistType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlaylistTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int VOD_HASH = HashingUtils::HashString("VOD"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t VOD_HASH = ConstExprHashingUtils::HashString("VOD"); PlaylistType GetPlaylistTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return PlaylistType::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Audio.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Audio.cpp index 2506c4e372f..82b3e2a5603 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Audio.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Audio.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PresetSpeke20AudioMapper { - static const int PRESET_AUDIO_1_HASH = HashingUtils::HashString("PRESET-AUDIO-1"); - static const int PRESET_AUDIO_2_HASH = HashingUtils::HashString("PRESET-AUDIO-2"); - static const int PRESET_AUDIO_3_HASH = HashingUtils::HashString("PRESET-AUDIO-3"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + static constexpr uint32_t PRESET_AUDIO_1_HASH = ConstExprHashingUtils::HashString("PRESET-AUDIO-1"); + static constexpr uint32_t PRESET_AUDIO_2_HASH = ConstExprHashingUtils::HashString("PRESET-AUDIO-2"); + static constexpr uint32_t PRESET_AUDIO_3_HASH = ConstExprHashingUtils::HashString("PRESET-AUDIO-3"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED"); PresetSpeke20Audio GetPresetSpeke20AudioForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESET_AUDIO_1_HASH) { return PresetSpeke20Audio::PRESET_AUDIO_1; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Video.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Video.cpp index 9ae0d73c173..1d0714a11c6 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Video.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/PresetSpeke20Video.cpp @@ -20,21 +20,21 @@ namespace Aws namespace PresetSpeke20VideoMapper { - static const int PRESET_VIDEO_1_HASH = HashingUtils::HashString("PRESET-VIDEO-1"); - static const int PRESET_VIDEO_2_HASH = HashingUtils::HashString("PRESET-VIDEO-2"); - static const int PRESET_VIDEO_3_HASH = HashingUtils::HashString("PRESET-VIDEO-3"); - static const int PRESET_VIDEO_4_HASH = HashingUtils::HashString("PRESET-VIDEO-4"); - static const int PRESET_VIDEO_5_HASH = HashingUtils::HashString("PRESET-VIDEO-5"); - static const int PRESET_VIDEO_6_HASH = HashingUtils::HashString("PRESET-VIDEO-6"); - static const int PRESET_VIDEO_7_HASH = HashingUtils::HashString("PRESET-VIDEO-7"); - static const int PRESET_VIDEO_8_HASH = HashingUtils::HashString("PRESET-VIDEO-8"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + static constexpr uint32_t PRESET_VIDEO_1_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-1"); + static constexpr uint32_t PRESET_VIDEO_2_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-2"); + static constexpr uint32_t PRESET_VIDEO_3_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-3"); + static constexpr uint32_t PRESET_VIDEO_4_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-4"); + static constexpr uint32_t PRESET_VIDEO_5_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-5"); + static constexpr uint32_t PRESET_VIDEO_6_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-6"); + static constexpr uint32_t PRESET_VIDEO_7_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-7"); + static constexpr uint32_t PRESET_VIDEO_8_HASH = ConstExprHashingUtils::HashString("PRESET-VIDEO-8"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED"); PresetSpeke20Video GetPresetSpeke20VideoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESET_VIDEO_1_HASH) { return PresetSpeke20Video::PRESET_VIDEO_1; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/Profile.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/Profile.cpp index e3b27cc1692..a756145c2de 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/Profile.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/Profile.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProfileMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HBBTV_1_5_HASH = HashingUtils::HashString("HBBTV_1_5"); - static const int HYBRIDCAST_HASH = HashingUtils::HashString("HYBRIDCAST"); - static const int DVB_DASH_2014_HASH = HashingUtils::HashString("DVB_DASH_2014"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HBBTV_1_5_HASH = ConstExprHashingUtils::HashString("HBBTV_1_5"); + static constexpr uint32_t HYBRIDCAST_HASH = ConstExprHashingUtils::HashString("HYBRIDCAST"); + static constexpr uint32_t DVB_DASH_2014_HASH = ConstExprHashingUtils::HashString("DVB_DASH_2014"); Profile GetProfileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return Profile::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/SegmentTemplateFormat.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/SegmentTemplateFormat.cpp index 4f51173f923..0bcbc5f0eed 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/SegmentTemplateFormat.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/SegmentTemplateFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SegmentTemplateFormatMapper { - static const int NUMBER_WITH_TIMELINE_HASH = HashingUtils::HashString("NUMBER_WITH_TIMELINE"); - static const int TIME_WITH_TIMELINE_HASH = HashingUtils::HashString("TIME_WITH_TIMELINE"); - static const int NUMBER_WITH_DURATION_HASH = HashingUtils::HashString("NUMBER_WITH_DURATION"); + static constexpr uint32_t NUMBER_WITH_TIMELINE_HASH = ConstExprHashingUtils::HashString("NUMBER_WITH_TIMELINE"); + static constexpr uint32_t TIME_WITH_TIMELINE_HASH = ConstExprHashingUtils::HashString("TIME_WITH_TIMELINE"); + static constexpr uint32_t NUMBER_WITH_DURATION_HASH = ConstExprHashingUtils::HashString("NUMBER_WITH_DURATION"); SegmentTemplateFormat GetSegmentTemplateFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NUMBER_WITH_TIMELINE_HASH) { return SegmentTemplateFormat::NUMBER_WITH_TIMELINE; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/Status.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/Status.cpp index 6da7aa4608c..618301e6c6a 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return Status::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/StreamOrder.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/StreamOrder.cpp index 855b2a63297..d3ac0f1c77c 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/StreamOrder.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/StreamOrder.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StreamOrderMapper { - static const int ORIGINAL_HASH = HashingUtils::HashString("ORIGINAL"); - static const int VIDEO_BITRATE_ASCENDING_HASH = HashingUtils::HashString("VIDEO_BITRATE_ASCENDING"); - static const int VIDEO_BITRATE_DESCENDING_HASH = HashingUtils::HashString("VIDEO_BITRATE_DESCENDING"); + static constexpr uint32_t ORIGINAL_HASH = ConstExprHashingUtils::HashString("ORIGINAL"); + static constexpr uint32_t VIDEO_BITRATE_ASCENDING_HASH = ConstExprHashingUtils::HashString("VIDEO_BITRATE_ASCENDING"); + static constexpr uint32_t VIDEO_BITRATE_DESCENDING_HASH = ConstExprHashingUtils::HashString("VIDEO_BITRATE_DESCENDING"); StreamOrder GetStreamOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORIGINAL_HASH) { return StreamOrder::ORIGINAL; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/UtcTiming.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/UtcTiming.cpp index dc25bfd52f9..84314ebe9b3 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/UtcTiming.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/UtcTiming.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UtcTimingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int HTTP_HEAD_HASH = HashingUtils::HashString("HTTP-HEAD"); - static const int HTTP_ISO_HASH = HashingUtils::HashString("HTTP-ISO"); - static const int HTTP_XSDATE_HASH = HashingUtils::HashString("HTTP-XSDATE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t HTTP_HEAD_HASH = ConstExprHashingUtils::HashString("HTTP-HEAD"); + static constexpr uint32_t HTTP_ISO_HASH = ConstExprHashingUtils::HashString("HTTP-ISO"); + static constexpr uint32_t HTTP_XSDATE_HASH = ConstExprHashingUtils::HashString("HTTP-XSDATE"); UtcTiming GetUtcTimingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return UtcTiming::NONE; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/__AdTriggersElement.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/__AdTriggersElement.cpp index 93ebd4c0a47..1943f7a395f 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/__AdTriggersElement.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/__AdTriggersElement.cpp @@ -20,19 +20,19 @@ namespace Aws namespace __AdTriggersElementMapper { - static const int SPLICE_INSERT_HASH = HashingUtils::HashString("SPLICE_INSERT"); - static const int BREAK_HASH = HashingUtils::HashString("BREAK"); - static const int PROVIDER_ADVERTISEMENT_HASH = HashingUtils::HashString("PROVIDER_ADVERTISEMENT"); - static const int DISTRIBUTOR_ADVERTISEMENT_HASH = HashingUtils::HashString("DISTRIBUTOR_ADVERTISEMENT"); - static const int PROVIDER_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("PROVIDER_PLACEMENT_OPPORTUNITY"); - static const int DISTRIBUTOR_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("DISTRIBUTOR_PLACEMENT_OPPORTUNITY"); - static const int PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"); - static const int DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t SPLICE_INSERT_HASH = ConstExprHashingUtils::HashString("SPLICE_INSERT"); + static constexpr uint32_t BREAK_HASH = ConstExprHashingUtils::HashString("BREAK"); + static constexpr uint32_t PROVIDER_ADVERTISEMENT_HASH = ConstExprHashingUtils::HashString("PROVIDER_ADVERTISEMENT"); + static constexpr uint32_t DISTRIBUTOR_ADVERTISEMENT_HASH = ConstExprHashingUtils::HashString("DISTRIBUTOR_ADVERTISEMENT"); + static constexpr uint32_t PROVIDER_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("PROVIDER_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t DISTRIBUTOR_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("DISTRIBUTOR_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"); __AdTriggersElement Get__AdTriggersElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPLICE_INSERT_HASH) { return __AdTriggersElement::SPLICE_INSERT; diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/model/__PeriodTriggersElement.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/model/__PeriodTriggersElement.cpp index 0c99a7b70c9..e27e3128c65 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/model/__PeriodTriggersElement.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/model/__PeriodTriggersElement.cpp @@ -20,12 +20,12 @@ namespace Aws namespace __PeriodTriggersElementMapper { - static const int ADS_HASH = HashingUtils::HashString("ADS"); + static constexpr uint32_t ADS_HASH = ConstExprHashingUtils::HashString("ADS"); __PeriodTriggersElement Get__PeriodTriggersElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADS_HASH) { return __PeriodTriggersElement::ADS; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Errors.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Errors.cpp index d059e0beb44..12d8ea955cb 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Errors.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Errors.cpp @@ -40,14 +40,14 @@ template<> AWS_MEDIAPACKAGEV2_API ValidationException Mediapackagev2Error::GetMo namespace Mediapackagev2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/AdMarkerHls.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/AdMarkerHls.cpp index b2dbd4ac2b6..c80afb99b36 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/AdMarkerHls.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/AdMarkerHls.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AdMarkerHlsMapper { - static const int DATERANGE_HASH = HashingUtils::HashString("DATERANGE"); + static constexpr uint32_t DATERANGE_HASH = ConstExprHashingUtils::HashString("DATERANGE"); AdMarkerHls GetAdMarkerHlsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATERANGE_HASH) { return AdMarkerHls::DATERANGE; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CmafEncryptionMethod.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CmafEncryptionMethod.cpp index 9078306354a..4cd9659873f 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CmafEncryptionMethod.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/CmafEncryptionMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CmafEncryptionMethodMapper { - static const int CENC_HASH = HashingUtils::HashString("CENC"); - static const int CBCS_HASH = HashingUtils::HashString("CBCS"); + static constexpr uint32_t CENC_HASH = ConstExprHashingUtils::HashString("CENC"); + static constexpr uint32_t CBCS_HASH = ConstExprHashingUtils::HashString("CBCS"); CmafEncryptionMethod GetCmafEncryptionMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CENC_HASH) { return CmafEncryptionMethod::CENC; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ConflictExceptionType.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ConflictExceptionType.cpp index dfdcae6bc4b..b5b2d429b35 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ConflictExceptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ConflictExceptionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConflictExceptionTypeMapper { - static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("RESOURCE_IN_USE"); - static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("RESOURCE_ALREADY_EXISTS"); - static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IDEMPOTENT_PARAMETER_MISMATCH"); - static const int CONFLICTING_OPERATION_HASH = HashingUtils::HashString("CONFLICTING_OPERATION"); + static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("RESOURCE_IN_USE"); + static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RESOURCE_ALREADY_EXISTS"); + static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IDEMPOTENT_PARAMETER_MISMATCH"); + static constexpr uint32_t CONFLICTING_OPERATION_HASH = ConstExprHashingUtils::HashString("CONFLICTING_OPERATION"); ConflictExceptionType GetConflictExceptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_IN_USE_HASH) { return ConflictExceptionType::RESOURCE_IN_USE; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ContainerType.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ContainerType.cpp index 459b2e73b20..cb898c8e0c0 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ContainerType.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ContainerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContainerTypeMapper { - static const int TS_HASH = HashingUtils::HashString("TS"); - static const int CMAF_HASH = HashingUtils::HashString("CMAF"); + static constexpr uint32_t TS_HASH = ConstExprHashingUtils::HashString("TS"); + static constexpr uint32_t CMAF_HASH = ConstExprHashingUtils::HashString("CMAF"); ContainerType GetContainerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TS_HASH) { return ContainerType::TS; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/DrmSystem.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/DrmSystem.cpp index bfd7de5dd2e..c826dce899c 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/DrmSystem.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/DrmSystem.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DrmSystemMapper { - static const int CLEAR_KEY_AES_128_HASH = HashingUtils::HashString("CLEAR_KEY_AES_128"); - static const int FAIRPLAY_HASH = HashingUtils::HashString("FAIRPLAY"); - static const int PLAYREADY_HASH = HashingUtils::HashString("PLAYREADY"); - static const int WIDEVINE_HASH = HashingUtils::HashString("WIDEVINE"); + static constexpr uint32_t CLEAR_KEY_AES_128_HASH = ConstExprHashingUtils::HashString("CLEAR_KEY_AES_128"); + static constexpr uint32_t FAIRPLAY_HASH = ConstExprHashingUtils::HashString("FAIRPLAY"); + static constexpr uint32_t PLAYREADY_HASH = ConstExprHashingUtils::HashString("PLAYREADY"); + static constexpr uint32_t WIDEVINE_HASH = ConstExprHashingUtils::HashString("WIDEVINE"); DrmSystem GetDrmSystemForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLEAR_KEY_AES_128_HASH) { return DrmSystem::CLEAR_KEY_AES_128; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Audio.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Audio.cpp index a3313e6cc87..51e332ae5dc 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Audio.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Audio.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PresetSpeke20AudioMapper { - static const int PRESET_AUDIO_1_HASH = HashingUtils::HashString("PRESET_AUDIO_1"); - static const int PRESET_AUDIO_2_HASH = HashingUtils::HashString("PRESET_AUDIO_2"); - static const int PRESET_AUDIO_3_HASH = HashingUtils::HashString("PRESET_AUDIO_3"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + static constexpr uint32_t PRESET_AUDIO_1_HASH = ConstExprHashingUtils::HashString("PRESET_AUDIO_1"); + static constexpr uint32_t PRESET_AUDIO_2_HASH = ConstExprHashingUtils::HashString("PRESET_AUDIO_2"); + static constexpr uint32_t PRESET_AUDIO_3_HASH = ConstExprHashingUtils::HashString("PRESET_AUDIO_3"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED"); PresetSpeke20Audio GetPresetSpeke20AudioForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESET_AUDIO_1_HASH) { return PresetSpeke20Audio::PRESET_AUDIO_1; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Video.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Video.cpp index 9f6bf342b8e..9f152adcd83 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Video.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/PresetSpeke20Video.cpp @@ -20,21 +20,21 @@ namespace Aws namespace PresetSpeke20VideoMapper { - static const int PRESET_VIDEO_1_HASH = HashingUtils::HashString("PRESET_VIDEO_1"); - static const int PRESET_VIDEO_2_HASH = HashingUtils::HashString("PRESET_VIDEO_2"); - static const int PRESET_VIDEO_3_HASH = HashingUtils::HashString("PRESET_VIDEO_3"); - static const int PRESET_VIDEO_4_HASH = HashingUtils::HashString("PRESET_VIDEO_4"); - static const int PRESET_VIDEO_5_HASH = HashingUtils::HashString("PRESET_VIDEO_5"); - static const int PRESET_VIDEO_6_HASH = HashingUtils::HashString("PRESET_VIDEO_6"); - static const int PRESET_VIDEO_7_HASH = HashingUtils::HashString("PRESET_VIDEO_7"); - static const int PRESET_VIDEO_8_HASH = HashingUtils::HashString("PRESET_VIDEO_8"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int UNENCRYPTED_HASH = HashingUtils::HashString("UNENCRYPTED"); + static constexpr uint32_t PRESET_VIDEO_1_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_1"); + static constexpr uint32_t PRESET_VIDEO_2_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_2"); + static constexpr uint32_t PRESET_VIDEO_3_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_3"); + static constexpr uint32_t PRESET_VIDEO_4_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_4"); + static constexpr uint32_t PRESET_VIDEO_5_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_5"); + static constexpr uint32_t PRESET_VIDEO_6_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_6"); + static constexpr uint32_t PRESET_VIDEO_7_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_7"); + static constexpr uint32_t PRESET_VIDEO_8_HASH = ConstExprHashingUtils::HashString("PRESET_VIDEO_8"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("UNENCRYPTED"); PresetSpeke20Video GetPresetSpeke20VideoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRESET_VIDEO_1_HASH) { return PresetSpeke20Video::PRESET_VIDEO_1; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ResourceTypeNotFound.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ResourceTypeNotFound.cpp index b1b64a9931a..2ecb47072f4 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ResourceTypeNotFound.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ResourceTypeNotFound.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceTypeNotFoundMapper { - static const int CHANNEL_GROUP_HASH = HashingUtils::HashString("CHANNEL_GROUP"); - static const int CHANNEL_HASH = HashingUtils::HashString("CHANNEL"); - static const int ORIGIN_ENDPOINT_HASH = HashingUtils::HashString("ORIGIN_ENDPOINT"); + static constexpr uint32_t CHANNEL_GROUP_HASH = ConstExprHashingUtils::HashString("CHANNEL_GROUP"); + static constexpr uint32_t CHANNEL_HASH = ConstExprHashingUtils::HashString("CHANNEL"); + static constexpr uint32_t ORIGIN_ENDPOINT_HASH = ConstExprHashingUtils::HashString("ORIGIN_ENDPOINT"); ResourceTypeNotFound GetResourceTypeNotFoundForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHANNEL_GROUP_HASH) { return ResourceTypeNotFound::CHANNEL_GROUP; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ScteFilter.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ScteFilter.cpp index 8233151d2c0..2cffc447b18 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ScteFilter.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ScteFilter.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ScteFilterMapper { - static const int SPLICE_INSERT_HASH = HashingUtils::HashString("SPLICE_INSERT"); - static const int BREAK_HASH = HashingUtils::HashString("BREAK"); - static const int PROVIDER_ADVERTISEMENT_HASH = HashingUtils::HashString("PROVIDER_ADVERTISEMENT"); - static const int DISTRIBUTOR_ADVERTISEMENT_HASH = HashingUtils::HashString("DISTRIBUTOR_ADVERTISEMENT"); - static const int PROVIDER_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("PROVIDER_PLACEMENT_OPPORTUNITY"); - static const int DISTRIBUTOR_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("DISTRIBUTOR_PLACEMENT_OPPORTUNITY"); - static const int PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"); - static const int DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = HashingUtils::HashString("DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"); - static const int PROGRAM_HASH = HashingUtils::HashString("PROGRAM"); + static constexpr uint32_t SPLICE_INSERT_HASH = ConstExprHashingUtils::HashString("SPLICE_INSERT"); + static constexpr uint32_t BREAK_HASH = ConstExprHashingUtils::HashString("BREAK"); + static constexpr uint32_t PROVIDER_ADVERTISEMENT_HASH = ConstExprHashingUtils::HashString("PROVIDER_ADVERTISEMENT"); + static constexpr uint32_t DISTRIBUTOR_ADVERTISEMENT_HASH = ConstExprHashingUtils::HashString("DISTRIBUTOR_ADVERTISEMENT"); + static constexpr uint32_t PROVIDER_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("PROVIDER_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t DISTRIBUTOR_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("DISTRIBUTOR_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY_HASH = ConstExprHashingUtils::HashString("DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"); + static constexpr uint32_t PROGRAM_HASH = ConstExprHashingUtils::HashString("PROGRAM"); ScteFilter GetScteFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPLICE_INSERT_HASH) { return ScteFilter::SPLICE_INSERT; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/TsEncryptionMethod.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/TsEncryptionMethod.cpp index 71a1b51be96..2fe33b3e3e7 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/TsEncryptionMethod.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/TsEncryptionMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TsEncryptionMethodMapper { - static const int AES_128_HASH = HashingUtils::HashString("AES_128"); - static const int SAMPLE_AES_HASH = HashingUtils::HashString("SAMPLE_AES"); + static constexpr uint32_t AES_128_HASH = ConstExprHashingUtils::HashString("AES_128"); + static constexpr uint32_t SAMPLE_AES_HASH = ConstExprHashingUtils::HashString("SAMPLE_AES"); TsEncryptionMethod GetTsEncryptionMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES_128_HASH) { return TsEncryptionMethod::AES_128; diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp index 1e4a4df070f..ff812335429 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/model/ValidationExceptionType.cpp @@ -20,45 +20,45 @@ namespace Aws namespace ValidationExceptionTypeMapper { - static const int CONTAINER_TYPE_IMMUTABLE_HASH = HashingUtils::HashString("CONTAINER_TYPE_IMMUTABLE"); - static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("INVALID_PAGINATION_TOKEN"); - static const int INVALID_PAGINATION_MAX_RESULTS_HASH = HashingUtils::HashString("INVALID_PAGINATION_MAX_RESULTS"); - static const int INVALID_POLICY_HASH = HashingUtils::HashString("INVALID_POLICY"); - static const int INVALID_ROLE_ARN_HASH = HashingUtils::HashString("INVALID_ROLE_ARN"); - static const int MANIFEST_NAME_COLLISION_HASH = HashingUtils::HashString("MANIFEST_NAME_COLLISION"); - static const int ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH_HASH = HashingUtils::HashString("ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH"); - static const int CENC_IV_INCOMPATIBLE_HASH = HashingUtils::HashString("CENC_IV_INCOMPATIBLE"); - static const int ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE_HASH = HashingUtils::HashString("ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE"); - static const int ENCRYPTION_CONTRACT_UNENCRYPTED_HASH = HashingUtils::HashString("ENCRYPTION_CONTRACT_UNENCRYPTED"); - static const int ENCRYPTION_CONTRACT_SHARED_HASH = HashingUtils::HashString("ENCRYPTION_CONTRACT_SHARED"); - static const int NUM_MANIFESTS_LOW_HASH = HashingUtils::HashString("NUM_MANIFESTS_LOW"); - static const int NUM_MANIFESTS_HIGH_HASH = HashingUtils::HashString("NUM_MANIFESTS_HIGH"); - static const int DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE_HASH = HashingUtils::HashString("DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE"); - static const int ROLE_ARN_NOT_ASSUMABLE_HASH = HashingUtils::HashString("ROLE_ARN_NOT_ASSUMABLE"); - static const int ROLE_ARN_LENGTH_OUT_OF_RANGE_HASH = HashingUtils::HashString("ROLE_ARN_LENGTH_OUT_OF_RANGE"); - static const int ROLE_ARN_INVALID_FORMAT_HASH = HashingUtils::HashString("ROLE_ARN_INVALID_FORMAT"); - static const int URL_INVALID_HASH = HashingUtils::HashString("URL_INVALID"); - static const int URL_SCHEME_HASH = HashingUtils::HashString("URL_SCHEME"); - static const int URL_USER_INFO_HASH = HashingUtils::HashString("URL_USER_INFO"); - static const int URL_PORT_HASH = HashingUtils::HashString("URL_PORT"); - static const int URL_UNKNOWN_HOST_HASH = HashingUtils::HashString("URL_UNKNOWN_HOST"); - static const int URL_LOCAL_ADDRESS_HASH = HashingUtils::HashString("URL_LOCAL_ADDRESS"); - static const int URL_LOOPBACK_ADDRESS_HASH = HashingUtils::HashString("URL_LOOPBACK_ADDRESS"); - static const int URL_LINK_LOCAL_ADDRESS_HASH = HashingUtils::HashString("URL_LINK_LOCAL_ADDRESS"); - static const int URL_MULTICAST_ADDRESS_HASH = HashingUtils::HashString("URL_MULTICAST_ADDRESS"); - static const int MEMBER_INVALID_HASH = HashingUtils::HashString("MEMBER_INVALID"); - static const int MEMBER_MISSING_HASH = HashingUtils::HashString("MEMBER_MISSING"); - static const int MEMBER_MIN_VALUE_HASH = HashingUtils::HashString("MEMBER_MIN_VALUE"); - static const int MEMBER_MAX_VALUE_HASH = HashingUtils::HashString("MEMBER_MAX_VALUE"); - static const int MEMBER_MIN_LENGTH_HASH = HashingUtils::HashString("MEMBER_MIN_LENGTH"); - static const int MEMBER_MAX_LENGTH_HASH = HashingUtils::HashString("MEMBER_MAX_LENGTH"); - static const int MEMBER_INVALID_ENUM_VALUE_HASH = HashingUtils::HashString("MEMBER_INVALID_ENUM_VALUE"); - static const int MEMBER_DOES_NOT_MATCH_PATTERN_HASH = HashingUtils::HashString("MEMBER_DOES_NOT_MATCH_PATTERN"); + static constexpr uint32_t CONTAINER_TYPE_IMMUTABLE_HASH = ConstExprHashingUtils::HashString("CONTAINER_TYPE_IMMUTABLE"); + static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_PAGINATION_TOKEN"); + static constexpr uint32_t INVALID_PAGINATION_MAX_RESULTS_HASH = ConstExprHashingUtils::HashString("INVALID_PAGINATION_MAX_RESULTS"); + static constexpr uint32_t INVALID_POLICY_HASH = ConstExprHashingUtils::HashString("INVALID_POLICY"); + static constexpr uint32_t INVALID_ROLE_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ROLE_ARN"); + static constexpr uint32_t MANIFEST_NAME_COLLISION_HASH = ConstExprHashingUtils::HashString("MANIFEST_NAME_COLLISION"); + static constexpr uint32_t ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH"); + static constexpr uint32_t CENC_IV_INCOMPATIBLE_HASH = ConstExprHashingUtils::HashString("CENC_IV_INCOMPATIBLE"); + static constexpr uint32_t ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE"); + static constexpr uint32_t ENCRYPTION_CONTRACT_UNENCRYPTED_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_CONTRACT_UNENCRYPTED"); + static constexpr uint32_t ENCRYPTION_CONTRACT_SHARED_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_CONTRACT_SHARED"); + static constexpr uint32_t NUM_MANIFESTS_LOW_HASH = ConstExprHashingUtils::HashString("NUM_MANIFESTS_LOW"); + static constexpr uint32_t NUM_MANIFESTS_HIGH_HASH = ConstExprHashingUtils::HashString("NUM_MANIFESTS_HIGH"); + static constexpr uint32_t DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE_HASH = ConstExprHashingUtils::HashString("DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE"); + static constexpr uint32_t ROLE_ARN_NOT_ASSUMABLE_HASH = ConstExprHashingUtils::HashString("ROLE_ARN_NOT_ASSUMABLE"); + static constexpr uint32_t ROLE_ARN_LENGTH_OUT_OF_RANGE_HASH = ConstExprHashingUtils::HashString("ROLE_ARN_LENGTH_OUT_OF_RANGE"); + static constexpr uint32_t ROLE_ARN_INVALID_FORMAT_HASH = ConstExprHashingUtils::HashString("ROLE_ARN_INVALID_FORMAT"); + static constexpr uint32_t URL_INVALID_HASH = ConstExprHashingUtils::HashString("URL_INVALID"); + static constexpr uint32_t URL_SCHEME_HASH = ConstExprHashingUtils::HashString("URL_SCHEME"); + static constexpr uint32_t URL_USER_INFO_HASH = ConstExprHashingUtils::HashString("URL_USER_INFO"); + static constexpr uint32_t URL_PORT_HASH = ConstExprHashingUtils::HashString("URL_PORT"); + static constexpr uint32_t URL_UNKNOWN_HOST_HASH = ConstExprHashingUtils::HashString("URL_UNKNOWN_HOST"); + static constexpr uint32_t URL_LOCAL_ADDRESS_HASH = ConstExprHashingUtils::HashString("URL_LOCAL_ADDRESS"); + static constexpr uint32_t URL_LOOPBACK_ADDRESS_HASH = ConstExprHashingUtils::HashString("URL_LOOPBACK_ADDRESS"); + static constexpr uint32_t URL_LINK_LOCAL_ADDRESS_HASH = ConstExprHashingUtils::HashString("URL_LINK_LOCAL_ADDRESS"); + static constexpr uint32_t URL_MULTICAST_ADDRESS_HASH = ConstExprHashingUtils::HashString("URL_MULTICAST_ADDRESS"); + static constexpr uint32_t MEMBER_INVALID_HASH = ConstExprHashingUtils::HashString("MEMBER_INVALID"); + static constexpr uint32_t MEMBER_MISSING_HASH = ConstExprHashingUtils::HashString("MEMBER_MISSING"); + static constexpr uint32_t MEMBER_MIN_VALUE_HASH = ConstExprHashingUtils::HashString("MEMBER_MIN_VALUE"); + static constexpr uint32_t MEMBER_MAX_VALUE_HASH = ConstExprHashingUtils::HashString("MEMBER_MAX_VALUE"); + static constexpr uint32_t MEMBER_MIN_LENGTH_HASH = ConstExprHashingUtils::HashString("MEMBER_MIN_LENGTH"); + static constexpr uint32_t MEMBER_MAX_LENGTH_HASH = ConstExprHashingUtils::HashString("MEMBER_MAX_LENGTH"); + static constexpr uint32_t MEMBER_INVALID_ENUM_VALUE_HASH = ConstExprHashingUtils::HashString("MEMBER_INVALID_ENUM_VALUE"); + static constexpr uint32_t MEMBER_DOES_NOT_MATCH_PATTERN_HASH = ConstExprHashingUtils::HashString("MEMBER_DOES_NOT_MATCH_PATTERN"); ValidationExceptionType GetValidationExceptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTAINER_TYPE_IMMUTABLE_HASH) { return ValidationExceptionType::CONTAINER_TYPE_IMMUTABLE; diff --git a/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataErrors.cpp b/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataErrors.cpp index 7570484dc70..3829ac04bcf 100644 --- a/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataErrors.cpp @@ -18,14 +18,14 @@ namespace MediaStoreData namespace MediaStoreDataErrorMapper { -static const int REQUESTED_RANGE_NOT_SATISFIABLE_HASH = HashingUtils::HashString("RequestedRangeNotSatisfiableException"); -static const int CONTAINER_NOT_FOUND_HASH = HashingUtils::HashString("ContainerNotFoundException"); -static const int OBJECT_NOT_FOUND_HASH = HashingUtils::HashString("ObjectNotFoundException"); +static constexpr uint32_t REQUESTED_RANGE_NOT_SATISFIABLE_HASH = ConstExprHashingUtils::HashString("RequestedRangeNotSatisfiableException"); +static constexpr uint32_t CONTAINER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ContainerNotFoundException"); +static constexpr uint32_t OBJECT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ObjectNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == REQUESTED_RANGE_NOT_SATISFIABLE_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediastore-data/source/model/ItemType.cpp b/generated/src/aws-cpp-sdk-mediastore-data/source/model/ItemType.cpp index a51a0e05829..de6597d630e 100644 --- a/generated/src/aws-cpp-sdk-mediastore-data/source/model/ItemType.cpp +++ b/generated/src/aws-cpp-sdk-mediastore-data/source/model/ItemType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ItemTypeMapper { - static const int OBJECT_HASH = HashingUtils::HashString("OBJECT"); - static const int FOLDER_HASH = HashingUtils::HashString("FOLDER"); + static constexpr uint32_t OBJECT_HASH = ConstExprHashingUtils::HashString("OBJECT"); + static constexpr uint32_t FOLDER_HASH = ConstExprHashingUtils::HashString("FOLDER"); ItemType GetItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OBJECT_HASH) { return ItemType::OBJECT; diff --git a/generated/src/aws-cpp-sdk-mediastore-data/source/model/StorageClass.cpp b/generated/src/aws-cpp-sdk-mediastore-data/source/model/StorageClass.cpp index 3fab129fea0..518484190b4 100644 --- a/generated/src/aws-cpp-sdk-mediastore-data/source/model/StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-mediastore-data/source/model/StorageClass.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StorageClassMapper { - static const int TEMPORAL_HASH = HashingUtils::HashString("TEMPORAL"); + static constexpr uint32_t TEMPORAL_HASH = ConstExprHashingUtils::HashString("TEMPORAL"); StorageClass GetStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEMPORAL_HASH) { return StorageClass::TEMPORAL; diff --git a/generated/src/aws-cpp-sdk-mediastore-data/source/model/UploadAvailability.cpp b/generated/src/aws-cpp-sdk-mediastore-data/source/model/UploadAvailability.cpp index 2eb0bc50443..316fcff3bfa 100644 --- a/generated/src/aws-cpp-sdk-mediastore-data/source/model/UploadAvailability.cpp +++ b/generated/src/aws-cpp-sdk-mediastore-data/source/model/UploadAvailability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UploadAvailabilityMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int STREAMING_HASH = HashingUtils::HashString("STREAMING"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t STREAMING_HASH = ConstExprHashingUtils::HashString("STREAMING"); UploadAvailability GetUploadAvailabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return UploadAvailability::STANDARD; diff --git a/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreErrors.cpp b/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreErrors.cpp index cf2d9348aef..ffa68ff2258 100644 --- a/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreErrors.cpp @@ -18,16 +18,16 @@ namespace MediaStore namespace MediaStoreErrorMapper { -static const int CONTAINER_IN_USE_HASH = HashingUtils::HashString("ContainerInUseException"); -static const int CORS_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("CorsPolicyNotFoundException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONTAINER_NOT_FOUND_HASH = HashingUtils::HashString("ContainerNotFoundException"); -static const int POLICY_NOT_FOUND_HASH = HashingUtils::HashString("PolicyNotFoundException"); +static constexpr uint32_t CONTAINER_IN_USE_HASH = ConstExprHashingUtils::HashString("ContainerInUseException"); +static constexpr uint32_t CORS_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CorsPolicyNotFoundException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONTAINER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ContainerNotFoundException"); +static constexpr uint32_t POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PolicyNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONTAINER_IN_USE_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerLevelMetrics.cpp b/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerLevelMetrics.cpp index bc694e898cf..7adaf941465 100644 --- a/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerLevelMetrics.cpp +++ b/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerLevelMetrics.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContainerLevelMetricsMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ContainerLevelMetrics GetContainerLevelMetricsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ContainerLevelMetrics::ENABLED; diff --git a/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerStatus.cpp b/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerStatus.cpp index cab927e3a65..9e595216ac5 100644 --- a/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerStatus.cpp +++ b/generated/src/aws-cpp-sdk-mediastore/source/model/ContainerStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ContainerStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ContainerStatus GetContainerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ContainerStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-mediastore/source/model/MethodName.cpp b/generated/src/aws-cpp-sdk-mediastore/source/model/MethodName.cpp index f57616cc67e..9c6d890e6c9 100644 --- a/generated/src/aws-cpp-sdk-mediastore/source/model/MethodName.cpp +++ b/generated/src/aws-cpp-sdk-mediastore/source/model/MethodName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MethodNameMapper { - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); MethodName GetMethodNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUT_HASH) { return MethodName::PUT; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorErrors.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorErrors.cpp index 8a295ec4835..bac5e9360c5 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorErrors.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorErrors.cpp @@ -18,12 +18,12 @@ namespace MediaTailor namespace MediaTailorErrorMapper { -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == BAD_REQUEST_HASH) { diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/AccessType.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/AccessType.cpp index cf8c69b9868..a3d7ec03c26 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/AccessType.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/AccessType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccessTypeMapper { - static const int S3_SIGV4_HASH = HashingUtils::HashString("S3_SIGV4"); - static const int SECRETS_MANAGER_ACCESS_TOKEN_HASH = HashingUtils::HashString("SECRETS_MANAGER_ACCESS_TOKEN"); - static const int AUTODETECT_SIGV4_HASH = HashingUtils::HashString("AUTODETECT_SIGV4"); + static constexpr uint32_t S3_SIGV4_HASH = ConstExprHashingUtils::HashString("S3_SIGV4"); + static constexpr uint32_t SECRETS_MANAGER_ACCESS_TOKEN_HASH = ConstExprHashingUtils::HashString("SECRETS_MANAGER_ACCESS_TOKEN"); + static constexpr uint32_t AUTODETECT_SIGV4_HASH = ConstExprHashingUtils::HashString("AUTODETECT_SIGV4"); AccessType GetAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_SIGV4_HASH) { return AccessType::S3_SIGV4; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/AdMarkupType.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/AdMarkupType.cpp index 94467fa1a28..8009c40a40a 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/AdMarkupType.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/AdMarkupType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdMarkupTypeMapper { - static const int DATERANGE_HASH = HashingUtils::HashString("DATERANGE"); - static const int SCTE35_ENHANCED_HASH = HashingUtils::HashString("SCTE35_ENHANCED"); + static constexpr uint32_t DATERANGE_HASH = ConstExprHashingUtils::HashString("DATERANGE"); + static constexpr uint32_t SCTE35_ENHANCED_HASH = ConstExprHashingUtils::HashString("SCTE35_ENHANCED"); AdMarkupType GetAdMarkupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATERANGE_HASH) { return AdMarkupType::DATERANGE; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/AlertCategory.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/AlertCategory.cpp index 8810283d8b1..cb81cae1372 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/AlertCategory.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/AlertCategory.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AlertCategoryMapper { - static const int SCHEDULING_ERROR_HASH = HashingUtils::HashString("SCHEDULING_ERROR"); - static const int PLAYBACK_WARNING_HASH = HashingUtils::HashString("PLAYBACK_WARNING"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); + static constexpr uint32_t SCHEDULING_ERROR_HASH = ConstExprHashingUtils::HashString("SCHEDULING_ERROR"); + static constexpr uint32_t PLAYBACK_WARNING_HASH = ConstExprHashingUtils::HashString("PLAYBACK_WARNING"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); AlertCategory GetAlertCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULING_ERROR_HASH) { return AlertCategory::SCHEDULING_ERROR; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/ChannelState.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/ChannelState.cpp index 11655bc7410..e1a9d4afb22 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/ChannelState.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/ChannelState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChannelStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); ChannelState GetChannelStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return ChannelState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/FillPolicy.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/FillPolicy.cpp index cfb29108b2a..b688e8f5608 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/FillPolicy.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/FillPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FillPolicyMapper { - static const int FULL_AVAIL_ONLY_HASH = HashingUtils::HashString("FULL_AVAIL_ONLY"); - static const int PARTIAL_AVAIL_HASH = HashingUtils::HashString("PARTIAL_AVAIL"); + static constexpr uint32_t FULL_AVAIL_ONLY_HASH = ConstExprHashingUtils::HashString("FULL_AVAIL_ONLY"); + static constexpr uint32_t PARTIAL_AVAIL_HASH = ConstExprHashingUtils::HashString("PARTIAL_AVAIL"); FillPolicy GetFillPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_AVAIL_ONLY_HASH) { return FillPolicy::FULL_AVAIL_ONLY; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/LogType.cpp index b6cfc547fb4..320b7d56086 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/LogType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LogTypeMapper { - static const int AS_RUN_HASH = HashingUtils::HashString("AS_RUN"); + static constexpr uint32_t AS_RUN_HASH = ConstExprHashingUtils::HashString("AS_RUN"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AS_RUN_HASH) { return LogType::AS_RUN; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/MessageType.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/MessageType.cpp index 4642c990f6c..7cd87a3b9a2 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/MessageType.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/MessageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageTypeMapper { - static const int SPLICE_INSERT_HASH = HashingUtils::HashString("SPLICE_INSERT"); - static const int TIME_SIGNAL_HASH = HashingUtils::HashString("TIME_SIGNAL"); + static constexpr uint32_t SPLICE_INSERT_HASH = ConstExprHashingUtils::HashString("SPLICE_INSERT"); + static constexpr uint32_t TIME_SIGNAL_HASH = ConstExprHashingUtils::HashString("TIME_SIGNAL"); MessageType GetMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPLICE_INSERT_HASH) { return MessageType::SPLICE_INSERT; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/Mode.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/Mode.cpp index 1fedf0f69bc..785ab7163ba 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/Mode.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/Mode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int BEHIND_LIVE_EDGE_HASH = HashingUtils::HashString("BEHIND_LIVE_EDGE"); - static const int AFTER_LIVE_EDGE_HASH = HashingUtils::HashString("AFTER_LIVE_EDGE"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t BEHIND_LIVE_EDGE_HASH = ConstExprHashingUtils::HashString("BEHIND_LIVE_EDGE"); + static constexpr uint32_t AFTER_LIVE_EDGE_HASH = ConstExprHashingUtils::HashString("AFTER_LIVE_EDGE"); Mode GetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return Mode::OFF; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/Operator.cpp index 918851137cf..8a093487054 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/Operator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return Operator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/OriginManifestType.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/OriginManifestType.cpp index b59cc49c38d..ea4f42399fb 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/OriginManifestType.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/OriginManifestType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OriginManifestTypeMapper { - static const int SINGLE_PERIOD_HASH = HashingUtils::HashString("SINGLE_PERIOD"); - static const int MULTI_PERIOD_HASH = HashingUtils::HashString("MULTI_PERIOD"); + static constexpr uint32_t SINGLE_PERIOD_HASH = ConstExprHashingUtils::HashString("SINGLE_PERIOD"); + static constexpr uint32_t MULTI_PERIOD_HASH = ConstExprHashingUtils::HashString("MULTI_PERIOD"); OriginManifestType GetOriginManifestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PERIOD_HASH) { return OriginManifestType::SINGLE_PERIOD; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/PlaybackMode.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/PlaybackMode.cpp index 6fc97ae95bb..cef3b2c9a34 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/PlaybackMode.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/PlaybackMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlaybackModeMapper { - static const int LOOP_HASH = HashingUtils::HashString("LOOP"); - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); + static constexpr uint32_t LOOP_HASH = ConstExprHashingUtils::HashString("LOOP"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); PlaybackMode GetPlaybackModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOOP_HASH) { return PlaybackMode::LOOP; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/RelativePosition.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/RelativePosition.cpp index 7d363f8794b..5927f8bc33d 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/RelativePosition.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/RelativePosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RelativePositionMapper { - static const int BEFORE_PROGRAM_HASH = HashingUtils::HashString("BEFORE_PROGRAM"); - static const int AFTER_PROGRAM_HASH = HashingUtils::HashString("AFTER_PROGRAM"); + static constexpr uint32_t BEFORE_PROGRAM_HASH = ConstExprHashingUtils::HashString("BEFORE_PROGRAM"); + static constexpr uint32_t AFTER_PROGRAM_HASH = ConstExprHashingUtils::HashString("AFTER_PROGRAM"); RelativePosition GetRelativePositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEFORE_PROGRAM_HASH) { return RelativePosition::BEFORE_PROGRAM; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/ScheduleEntryType.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/ScheduleEntryType.cpp index 469689aa1ed..5e397f55d98 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/ScheduleEntryType.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/ScheduleEntryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduleEntryTypeMapper { - static const int PROGRAM_HASH = HashingUtils::HashString("PROGRAM"); - static const int FILLER_SLATE_HASH = HashingUtils::HashString("FILLER_SLATE"); + static constexpr uint32_t PROGRAM_HASH = ConstExprHashingUtils::HashString("PROGRAM"); + static constexpr uint32_t FILLER_SLATE_HASH = ConstExprHashingUtils::HashString("FILLER_SLATE"); ScheduleEntryType GetScheduleEntryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROGRAM_HASH) { return ScheduleEntryType::PROGRAM; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/Tier.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/Tier.cpp index 971594d78d2..bae4554bd55 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/Tier.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/Tier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TierMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); Tier GetTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return Tier::BASIC; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/Type.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/Type.cpp index ccdebaf2064..cac386d3389 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int DASH_HASH = HashingUtils::HashString("DASH"); - static const int HLS_HASH = HashingUtils::HashString("HLS"); + static constexpr uint32_t DASH_HASH = ConstExprHashingUtils::HashString("DASH"); + static constexpr uint32_t HLS_HASH = ConstExprHashingUtils::HashString("HLS"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DASH_HASH) { return Type::DASH; diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingErrors.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingErrors.cpp index 44d32ccd946..1e7dc52ce92 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingErrors.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingErrors.cpp @@ -18,14 +18,14 @@ namespace MedicalImaging namespace MedicalImagingErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/model/DatastoreStatus.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/model/DatastoreStatus.cpp index ba2068a8147..a0b78f89c52 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/model/DatastoreStatus.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/model/DatastoreStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DatastoreStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); DatastoreStatus GetDatastoreStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DatastoreStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetState.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetState.cpp index 638b66c5fbf..9d1f1fe5f51 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetState.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageSetStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int LOCKED_HASH = HashingUtils::HashString("LOCKED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t LOCKED_HASH = ConstExprHashingUtils::HashString("LOCKED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ImageSetState GetImageSetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ImageSetState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetWorkflowStatus.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetWorkflowStatus.cpp index 764013ffa25..a5ad55b3997 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetWorkflowStatus.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/model/ImageSetWorkflowStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ImageSetWorkflowStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int COPIED_HASH = HashingUtils::HashString("COPIED"); - static const int COPYING_HASH = HashingUtils::HashString("COPYING"); - static const int COPYING_WITH_READ_ONLY_ACCESS_HASH = HashingUtils::HashString("COPYING_WITH_READ_ONLY_ACCESS"); - static const int COPY_FAILED_HASH = HashingUtils::HashString("COPY_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATED_HASH = HashingUtils::HashString("UPDATED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t COPIED_HASH = ConstExprHashingUtils::HashString("COPIED"); + static constexpr uint32_t COPYING_HASH = ConstExprHashingUtils::HashString("COPYING"); + static constexpr uint32_t COPYING_WITH_READ_ONLY_ACCESS_HASH = ConstExprHashingUtils::HashString("COPYING_WITH_READ_ONLY_ACCESS"); + static constexpr uint32_t COPY_FAILED_HASH = ConstExprHashingUtils::HashString("COPY_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATED_HASH = ConstExprHashingUtils::HashString("UPDATED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ImageSetWorkflowStatus GetImageSetWorkflowStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return ImageSetWorkflowStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/model/JobStatus.cpp index 88b3ea882a8..9af2dc11f35 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/model/JobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/model/Operator.cpp index b2eb125542e..78a0b810f06 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/model/Operator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperatorMapper { - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUAL_HASH) { return Operator::EQUAL; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBErrors.cpp b/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBErrors.cpp index 80794e3c678..8e74e6b76b6 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBErrors.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBErrors.cpp @@ -18,62 +18,62 @@ namespace MemoryDB namespace MemoryDBErrorMapper { -static const int SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("SubnetGroupAlreadyExistsFault"); -static const int INVALID_A_R_N_FAULT_HASH = HashingUtils::HashString("InvalidARNFault"); -static const int A_C_L_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ACLQuotaExceededFault"); -static const int CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterNotFoundFault"); -static const int PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ParameterGroupQuotaExceededFault"); -static const int RESERVED_NODE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ReservedNodeQuotaExceededFault"); -static const int SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("SnapshotAlreadyExistsFault"); -static const int SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SubnetQuotaExceededFault"); -static const int DEFAULT_USER_REQUIRED_HASH = HashingUtils::HashString("DefaultUserRequired"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int USER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("UserAlreadyExistsFault"); -static const int USER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("UserNotFoundFault"); -static const int INVALID_K_M_S_KEY_FAULT_HASH = HashingUtils::HashString("InvalidKMSKeyFault"); -static const int SHARDS_PER_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ShardsPerClusterQuotaExceededFault"); -static const int INVALID_NODE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidNodeStateFault"); -static const int SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SnapshotNotFoundFault"); -static const int SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotQuotaExceededFault"); -static const int SERVICE_UPDATE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ServiceUpdateNotFoundFault"); -static const int INSUFFICIENT_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientClusterCapacityFault"); -static const int SUBNET_NOT_ALLOWED_FAULT_HASH = HashingUtils::HashString("SubnetNotAllowedFault"); -static const int USER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("UserQuotaExceededFault"); -static const int INVALID_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidSnapshotStateFault"); -static const int CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterAlreadyExistsFault"); -static const int TAG_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("TagNotFoundFault"); -static const int A_C_L_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ACLNotFoundFault"); -static const int INVALID_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterStateFault"); -static const int NODE_QUOTA_FOR_CLUSTER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeQuotaForClusterExceededFault"); -static const int SUBNET_IN_USE_HASH = HashingUtils::HashString("SubnetInUse"); -static const int CLUSTER_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterQuotaForCustomerExceededFault"); -static const int SUBNET_GROUP_IN_USE_FAULT_HASH = HashingUtils::HashString("SubnetGroupInUseFault"); -static const int SHARD_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ShardNotFoundFault"); -static const int INVALID_USER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidUserStateFault"); -static const int A_C_L_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ACLAlreadyExistsFault"); -static const int SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SubnetGroupQuotaExceededFault"); -static const int A_P_I_CALL_RATE_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("APICallRateForCustomerExceededFault"); -static const int PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ParameterGroupNotFoundFault"); -static const int PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ParameterGroupAlreadyExistsFault"); -static const int SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubnetGroupNotFoundFault"); -static const int INVALID_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidParameterGroupStateFault"); -static const int SERVICE_LINKED_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ServiceLinkedRoleNotFoundFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int TAG_QUOTA_PER_RESOURCE_EXCEEDED_HASH = HashingUtils::HashString("TagQuotaPerResourceExceeded"); -static const int TEST_FAILOVER_NOT_AVAILABLE_FAULT_HASH = HashingUtils::HashString("TestFailoverNotAvailableFault"); -static const int NODE_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NodeQuotaForCustomerExceededFault"); -static const int RESERVED_NODES_OFFERING_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedNodesOfferingNotFoundFault"); -static const int RESERVED_NODE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ReservedNodeAlreadyExistsFault"); -static const int INVALID_CREDENTIALS_HASH = HashingUtils::HashString("InvalidCredentialsException"); -static const int DUPLICATE_USER_NAME_FAULT_HASH = HashingUtils::HashString("DuplicateUserNameFault"); -static const int INVALID_A_C_L_STATE_FAULT_HASH = HashingUtils::HashString("InvalidACLStateFault"); -static const int NO_OPERATION_FAULT_HASH = HashingUtils::HashString("NoOperationFault"); -static const int RESERVED_NODE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedNodeNotFoundFault"); +static constexpr uint32_t SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupAlreadyExistsFault"); +static constexpr uint32_t INVALID_A_R_N_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidARNFault"); +static constexpr uint32_t A_C_L_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ACLQuotaExceededFault"); +static constexpr uint32_t CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterNotFoundFault"); +static constexpr uint32_t PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ParameterGroupQuotaExceededFault"); +static constexpr uint32_t RESERVED_NODE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeQuotaExceededFault"); +static constexpr uint32_t SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotAlreadyExistsFault"); +static constexpr uint32_t SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetQuotaExceededFault"); +static constexpr uint32_t DEFAULT_USER_REQUIRED_HASH = ConstExprHashingUtils::HashString("DefaultUserRequired"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t USER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("UserAlreadyExistsFault"); +static constexpr uint32_t USER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("UserNotFoundFault"); +static constexpr uint32_t INVALID_K_M_S_KEY_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidKMSKeyFault"); +static constexpr uint32_t SHARDS_PER_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ShardsPerClusterQuotaExceededFault"); +static constexpr uint32_t INVALID_NODE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidNodeStateFault"); +static constexpr uint32_t SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotNotFoundFault"); +static constexpr uint32_t SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotQuotaExceededFault"); +static constexpr uint32_t SERVICE_UPDATE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ServiceUpdateNotFoundFault"); +static constexpr uint32_t INSUFFICIENT_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientClusterCapacityFault"); +static constexpr uint32_t SUBNET_NOT_ALLOWED_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetNotAllowedFault"); +static constexpr uint32_t USER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("UserQuotaExceededFault"); +static constexpr uint32_t INVALID_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidSnapshotStateFault"); +static constexpr uint32_t CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterAlreadyExistsFault"); +static constexpr uint32_t TAG_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("TagNotFoundFault"); +static constexpr uint32_t A_C_L_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ACLNotFoundFault"); +static constexpr uint32_t INVALID_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterStateFault"); +static constexpr uint32_t NODE_QUOTA_FOR_CLUSTER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeQuotaForClusterExceededFault"); +static constexpr uint32_t SUBNET_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetInUse"); +static constexpr uint32_t CLUSTER_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterQuotaForCustomerExceededFault"); +static constexpr uint32_t SUBNET_GROUP_IN_USE_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupInUseFault"); +static constexpr uint32_t SHARD_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ShardNotFoundFault"); +static constexpr uint32_t INVALID_USER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidUserStateFault"); +static constexpr uint32_t A_C_L_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ACLAlreadyExistsFault"); +static constexpr uint32_t SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupQuotaExceededFault"); +static constexpr uint32_t A_P_I_CALL_RATE_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("APICallRateForCustomerExceededFault"); +static constexpr uint32_t PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ParameterGroupNotFoundFault"); +static constexpr uint32_t PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ParameterGroupAlreadyExistsFault"); +static constexpr uint32_t SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubnetGroupNotFoundFault"); +static constexpr uint32_t INVALID_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidParameterGroupStateFault"); +static constexpr uint32_t SERVICE_LINKED_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ServiceLinkedRoleNotFoundFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t TAG_QUOTA_PER_RESOURCE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagQuotaPerResourceExceeded"); +static constexpr uint32_t TEST_FAILOVER_NOT_AVAILABLE_FAULT_HASH = ConstExprHashingUtils::HashString("TestFailoverNotAvailableFault"); +static constexpr uint32_t NODE_QUOTA_FOR_CUSTOMER_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NodeQuotaForCustomerExceededFault"); +static constexpr uint32_t RESERVED_NODES_OFFERING_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodesOfferingNotFoundFault"); +static constexpr uint32_t RESERVED_NODE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeAlreadyExistsFault"); +static constexpr uint32_t INVALID_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("InvalidCredentialsException"); +static constexpr uint32_t DUPLICATE_USER_NAME_FAULT_HASH = ConstExprHashingUtils::HashString("DuplicateUserNameFault"); +static constexpr uint32_t INVALID_A_C_L_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidACLStateFault"); +static constexpr uint32_t NO_OPERATION_FAULT_HASH = ConstExprHashingUtils::HashString("NoOperationFault"); +static constexpr uint32_t RESERVED_NODE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeNotFoundFault"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/AZStatus.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/AZStatus.cpp index fe13c496c42..7c02e5c1324 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/AZStatus.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/AZStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AZStatusMapper { - static const int singleaz_HASH = HashingUtils::HashString("singleaz"); - static const int multiaz_HASH = HashingUtils::HashString("multiaz"); + static constexpr uint32_t singleaz_HASH = ConstExprHashingUtils::HashString("singleaz"); + static constexpr uint32_t multiaz_HASH = ConstExprHashingUtils::HashString("multiaz"); AZStatus GetAZStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == singleaz_HASH) { return AZStatus::singleaz; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/AuthenticationType.cpp index e5019fe33aa..309acb8ffe9 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/AuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/AuthenticationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthenticationTypeMapper { - static const int password_HASH = HashingUtils::HashString("password"); - static const int no_password_HASH = HashingUtils::HashString("no-password"); - static const int iam_HASH = HashingUtils::HashString("iam"); + static constexpr uint32_t password_HASH = ConstExprHashingUtils::HashString("password"); + static constexpr uint32_t no_password_HASH = ConstExprHashingUtils::HashString("no-password"); + static constexpr uint32_t iam_HASH = ConstExprHashingUtils::HashString("iam"); AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == password_HASH) { return AuthenticationType::password; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/DataTieringStatus.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/DataTieringStatus.cpp index 7b2609ff24a..ee4cce62a52 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/DataTieringStatus.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/DataTieringStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataTieringStatusMapper { - static const int true__HASH = HashingUtils::HashString("true"); - static const int false__HASH = HashingUtils::HashString("false"); + static constexpr uint32_t true__HASH = ConstExprHashingUtils::HashString("true"); + static constexpr uint32_t false__HASH = ConstExprHashingUtils::HashString("false"); DataTieringStatus GetDataTieringStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == true__HASH) { return DataTieringStatus::true_; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/InputAuthenticationType.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/InputAuthenticationType.cpp index 92b252c2dd6..cceaef2356d 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/InputAuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/InputAuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputAuthenticationTypeMapper { - static const int password_HASH = HashingUtils::HashString("password"); - static const int iam_HASH = HashingUtils::HashString("iam"); + static constexpr uint32_t password_HASH = ConstExprHashingUtils::HashString("password"); + static constexpr uint32_t iam_HASH = ConstExprHashingUtils::HashString("iam"); InputAuthenticationType GetInputAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == password_HASH) { return InputAuthenticationType::password; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateStatus.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateStatus.cpp index e9d7e24487c..febc41cdf0d 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ServiceUpdateStatusMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int in_progress_HASH = HashingUtils::HashString("in-progress"); - static const int complete_HASH = HashingUtils::HashString("complete"); - static const int scheduled_HASH = HashingUtils::HashString("scheduled"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t in_progress_HASH = ConstExprHashingUtils::HashString("in-progress"); + static constexpr uint32_t complete_HASH = ConstExprHashingUtils::HashString("complete"); + static constexpr uint32_t scheduled_HASH = ConstExprHashingUtils::HashString("scheduled"); ServiceUpdateStatus GetServiceUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return ServiceUpdateStatus::available; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateType.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateType.cpp index 34ad7ea1e89..18cdc9e071e 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/ServiceUpdateType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceUpdateTypeMapper { - static const int security_update_HASH = HashingUtils::HashString("security-update"); + static constexpr uint32_t security_update_HASH = ConstExprHashingUtils::HashString("security-update"); ServiceUpdateType GetServiceUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == security_update_HASH) { return ServiceUpdateType::security_update; diff --git a/generated/src/aws-cpp-sdk-memorydb/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-memorydb/source/model/SourceType.cpp index c8f3f138162..9078fedcccd 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/model/SourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SourceTypeMapper { - static const int node_HASH = HashingUtils::HashString("node"); - static const int parameter_group_HASH = HashingUtils::HashString("parameter-group"); - static const int subnet_group_HASH = HashingUtils::HashString("subnet-group"); - static const int cluster_HASH = HashingUtils::HashString("cluster"); - static const int user_HASH = HashingUtils::HashString("user"); - static const int acl_HASH = HashingUtils::HashString("acl"); + static constexpr uint32_t node_HASH = ConstExprHashingUtils::HashString("node"); + static constexpr uint32_t parameter_group_HASH = ConstExprHashingUtils::HashString("parameter-group"); + static constexpr uint32_t subnet_group_HASH = ConstExprHashingUtils::HashString("subnet-group"); + static constexpr uint32_t cluster_HASH = ConstExprHashingUtils::HashString("cluster"); + static constexpr uint32_t user_HASH = ConstExprHashingUtils::HashString("user"); + static constexpr uint32_t acl_HASH = ConstExprHashingUtils::HashString("acl"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == node_HASH) { return SourceType::node; diff --git a/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringErrors.cpp b/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringErrors.cpp index e6a246ab0d9..b762b959baf 100644 --- a/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringErrors.cpp +++ b/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringErrors.cpp @@ -18,27 +18,27 @@ namespace MarketplaceMetering namespace MarketplaceMeteringErrorMapper { -static const int INVALID_CUSTOMER_IDENTIFIER_HASH = HashingUtils::HashString("InvalidCustomerIdentifierException"); -static const int INVALID_TOKEN_HASH = HashingUtils::HashString("InvalidTokenException"); -static const int INVALID_USAGE_DIMENSION_HASH = HashingUtils::HashString("InvalidUsageDimensionException"); -static const int INVALID_USAGE_ALLOCATIONS_HASH = HashingUtils::HashString("InvalidUsageAllocationsException"); -static const int EXPIRED_TOKEN_HASH = HashingUtils::HashString("ExpiredTokenException"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTagException"); -static const int DISABLED_API_HASH = HashingUtils::HashString("DisabledApiException"); -static const int INVALID_ENDPOINT_REGION_HASH = HashingUtils::HashString("InvalidEndpointRegionException"); -static const int PLATFORM_NOT_SUPPORTED_HASH = HashingUtils::HashString("PlatformNotSupportedException"); -static const int INVALID_PRODUCT_CODE_HASH = HashingUtils::HashString("InvalidProductCodeException"); -static const int DUPLICATE_REQUEST_HASH = HashingUtils::HashString("DuplicateRequestException"); -static const int CUSTOMER_NOT_ENTITLED_HASH = HashingUtils::HashString("CustomerNotEntitledException"); -static const int INVALID_REGION_HASH = HashingUtils::HashString("InvalidRegionException"); -static const int TIMESTAMP_OUT_OF_BOUNDS_HASH = HashingUtils::HashString("TimestampOutOfBoundsException"); -static const int INVALID_PUBLIC_KEY_VERSION_HASH = HashingUtils::HashString("InvalidPublicKeyVersionException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t INVALID_CUSTOMER_IDENTIFIER_HASH = ConstExprHashingUtils::HashString("InvalidCustomerIdentifierException"); +static constexpr uint32_t INVALID_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidTokenException"); +static constexpr uint32_t INVALID_USAGE_DIMENSION_HASH = ConstExprHashingUtils::HashString("InvalidUsageDimensionException"); +static constexpr uint32_t INVALID_USAGE_ALLOCATIONS_HASH = ConstExprHashingUtils::HashString("InvalidUsageAllocationsException"); +static constexpr uint32_t EXPIRED_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredTokenException"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTagException"); +static constexpr uint32_t DISABLED_API_HASH = ConstExprHashingUtils::HashString("DisabledApiException"); +static constexpr uint32_t INVALID_ENDPOINT_REGION_HASH = ConstExprHashingUtils::HashString("InvalidEndpointRegionException"); +static constexpr uint32_t PLATFORM_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("PlatformNotSupportedException"); +static constexpr uint32_t INVALID_PRODUCT_CODE_HASH = ConstExprHashingUtils::HashString("InvalidProductCodeException"); +static constexpr uint32_t DUPLICATE_REQUEST_HASH = ConstExprHashingUtils::HashString("DuplicateRequestException"); +static constexpr uint32_t CUSTOMER_NOT_ENTITLED_HASH = ConstExprHashingUtils::HashString("CustomerNotEntitledException"); +static constexpr uint32_t INVALID_REGION_HASH = ConstExprHashingUtils::HashString("InvalidRegionException"); +static constexpr uint32_t TIMESTAMP_OUT_OF_BOUNDS_HASH = ConstExprHashingUtils::HashString("TimestampOutOfBoundsException"); +static constexpr uint32_t INVALID_PUBLIC_KEY_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidPublicKeyVersionException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_CUSTOMER_IDENTIFIER_HASH) { diff --git a/generated/src/aws-cpp-sdk-meteringmarketplace/source/model/UsageRecordResultStatus.cpp b/generated/src/aws-cpp-sdk-meteringmarketplace/source/model/UsageRecordResultStatus.cpp index 7326260073a..ff57ce9215c 100644 --- a/generated/src/aws-cpp-sdk-meteringmarketplace/source/model/UsageRecordResultStatus.cpp +++ b/generated/src/aws-cpp-sdk-meteringmarketplace/source/model/UsageRecordResultStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageRecordResultStatusMapper { - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int CustomerNotSubscribed_HASH = HashingUtils::HashString("CustomerNotSubscribed"); - static const int DuplicateRecord_HASH = HashingUtils::HashString("DuplicateRecord"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t CustomerNotSubscribed_HASH = ConstExprHashingUtils::HashString("CustomerNotSubscribed"); + static constexpr uint32_t DuplicateRecord_HASH = ConstExprHashingUtils::HashString("DuplicateRecord"); UsageRecordResultStatus GetUsageRecordResultStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Success_HASH) { return UsageRecordResultStatus::Success; diff --git a/generated/src/aws-cpp-sdk-mgn/source/MgnErrors.cpp b/generated/src/aws-cpp-sdk-mgn/source/MgnErrors.cpp index 54446f7eea9..97687424e7c 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/MgnErrors.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/MgnErrors.cpp @@ -75,15 +75,15 @@ template<> AWS_MGN_API AccessDeniedException MgnError::GetModeledError() namespace MgnErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int UNINITIALIZED_ACCOUNT_HASH = HashingUtils::HashString("UninitializedAccountException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t UNINITIALIZED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("UninitializedAccountException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ActionCategory.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ActionCategory.cpp index 2415525ae73..3f3e97d6fb0 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ActionCategory.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ActionCategory.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ActionCategoryMapper { - static const int DISASTER_RECOVERY_HASH = HashingUtils::HashString("DISASTER_RECOVERY"); - static const int OPERATING_SYSTEM_HASH = HashingUtils::HashString("OPERATING_SYSTEM"); - static const int LICENSE_AND_SUBSCRIPTION_HASH = HashingUtils::HashString("LICENSE_AND_SUBSCRIPTION"); - static const int VALIDATION_HASH = HashingUtils::HashString("VALIDATION"); - static const int OBSERVABILITY_HASH = HashingUtils::HashString("OBSERVABILITY"); - static const int SECURITY_HASH = HashingUtils::HashString("SECURITY"); - static const int NETWORKING_HASH = HashingUtils::HashString("NETWORKING"); - static const int CONFIGURATION_HASH = HashingUtils::HashString("CONFIGURATION"); - static const int BACKUP_HASH = HashingUtils::HashString("BACKUP"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t DISASTER_RECOVERY_HASH = ConstExprHashingUtils::HashString("DISASTER_RECOVERY"); + static constexpr uint32_t OPERATING_SYSTEM_HASH = ConstExprHashingUtils::HashString("OPERATING_SYSTEM"); + static constexpr uint32_t LICENSE_AND_SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("LICENSE_AND_SUBSCRIPTION"); + static constexpr uint32_t VALIDATION_HASH = ConstExprHashingUtils::HashString("VALIDATION"); + static constexpr uint32_t OBSERVABILITY_HASH = ConstExprHashingUtils::HashString("OBSERVABILITY"); + static constexpr uint32_t SECURITY_HASH = ConstExprHashingUtils::HashString("SECURITY"); + static constexpr uint32_t NETWORKING_HASH = ConstExprHashingUtils::HashString("NETWORKING"); + static constexpr uint32_t CONFIGURATION_HASH = ConstExprHashingUtils::HashString("CONFIGURATION"); + static constexpr uint32_t BACKUP_HASH = ConstExprHashingUtils::HashString("BACKUP"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ActionCategory GetActionCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISASTER_RECOVERY_HASH) { return ActionCategory::DISASTER_RECOVERY; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationHealthStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationHealthStatus.cpp index 93a5a162d14..2b3a08d97aa 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationHealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationHealthStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int LAGGING_HASH = HashingUtils::HashString("LAGGING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t LAGGING_HASH = ConstExprHashingUtils::HashString("LAGGING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ApplicationHealthStatus GetApplicationHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return ApplicationHealthStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationProgressStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationProgressStatus.cpp index 2bcd860dc07..303d9ddef61 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationProgressStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ApplicationProgressStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationProgressStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ApplicationProgressStatus GetApplicationProgressStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ApplicationProgressStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/BootMode.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/BootMode.cpp index 1fc8e161686..9477dc2b064 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/BootMode.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/BootMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BootModeMapper { - static const int LEGACY_BIOS_HASH = HashingUtils::HashString("LEGACY_BIOS"); - static const int UEFI_HASH = HashingUtils::HashString("UEFI"); + static constexpr uint32_t LEGACY_BIOS_HASH = ConstExprHashingUtils::HashString("LEGACY_BIOS"); + static constexpr uint32_t UEFI_HASH = ConstExprHashingUtils::HashString("UEFI"); BootMode GetBootModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEGACY_BIOS_HASH) { return BootMode::LEGACY_BIOS; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ChangeServerLifeCycleStateSourceServerLifecycleState.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ChangeServerLifeCycleStateSourceServerLifecycleState.cpp index 1a2242e280d..9f7ab9bd070 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ChangeServerLifeCycleStateSourceServerLifecycleState.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ChangeServerLifeCycleStateSourceServerLifecycleState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeServerLifeCycleStateSourceServerLifecycleStateMapper { - static const int READY_FOR_TEST_HASH = HashingUtils::HashString("READY_FOR_TEST"); - static const int READY_FOR_CUTOVER_HASH = HashingUtils::HashString("READY_FOR_CUTOVER"); - static const int CUTOVER_HASH = HashingUtils::HashString("CUTOVER"); + static constexpr uint32_t READY_FOR_TEST_HASH = ConstExprHashingUtils::HashString("READY_FOR_TEST"); + static constexpr uint32_t READY_FOR_CUTOVER_HASH = ConstExprHashingUtils::HashString("READY_FOR_CUTOVER"); + static constexpr uint32_t CUTOVER_HASH = ConstExprHashingUtils::HashString("CUTOVER"); ChangeServerLifeCycleStateSourceServerLifecycleState GetChangeServerLifeCycleStateSourceServerLifecycleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_FOR_TEST_HASH) { return ChangeServerLifeCycleStateSourceServerLifecycleState::READY_FOR_TEST; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationErrorString.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationErrorString.cpp index 678ee741e59..6240fab28d1 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationErrorString.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationErrorString.cpp @@ -20,27 +20,27 @@ namespace Aws namespace DataReplicationErrorStringMapper { - static const int AGENT_NOT_SEEN_HASH = HashingUtils::HashString("AGENT_NOT_SEEN"); - static const int SNAPSHOTS_FAILURE_HASH = HashingUtils::HashString("SNAPSHOTS_FAILURE"); - static const int NOT_CONVERGING_HASH = HashingUtils::HashString("NOT_CONVERGING"); - static const int UNSTABLE_NETWORK_HASH = HashingUtils::HashString("UNSTABLE_NETWORK"); - static const int FAILED_TO_CREATE_SECURITY_GROUP_HASH = HashingUtils::HashString("FAILED_TO_CREATE_SECURITY_GROUP"); - static const int FAILED_TO_LAUNCH_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_LAUNCH_REPLICATION_SERVER"); - static const int FAILED_TO_BOOT_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_BOOT_REPLICATION_SERVER"); - static const int FAILED_TO_AUTHENTICATE_WITH_SERVICE_HASH = HashingUtils::HashString("FAILED_TO_AUTHENTICATE_WITH_SERVICE"); - static const int FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"); - static const int FAILED_TO_CREATE_STAGING_DISKS_HASH = HashingUtils::HashString("FAILED_TO_CREATE_STAGING_DISKS"); - static const int FAILED_TO_ATTACH_STAGING_DISKS_HASH = HashingUtils::HashString("FAILED_TO_ATTACH_STAGING_DISKS"); - static const int FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = HashingUtils::HashString("FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"); - static const int FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = HashingUtils::HashString("FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"); - static const int FAILED_TO_START_DATA_TRANSFER_HASH = HashingUtils::HashString("FAILED_TO_START_DATA_TRANSFER"); - static const int UNSUPPORTED_VM_CONFIGURATION_HASH = HashingUtils::HashString("UNSUPPORTED_VM_CONFIGURATION"); - static const int LAST_SNAPSHOT_JOB_FAILED_HASH = HashingUtils::HashString("LAST_SNAPSHOT_JOB_FAILED"); + static constexpr uint32_t AGENT_NOT_SEEN_HASH = ConstExprHashingUtils::HashString("AGENT_NOT_SEEN"); + static constexpr uint32_t SNAPSHOTS_FAILURE_HASH = ConstExprHashingUtils::HashString("SNAPSHOTS_FAILURE"); + static constexpr uint32_t NOT_CONVERGING_HASH = ConstExprHashingUtils::HashString("NOT_CONVERGING"); + static constexpr uint32_t UNSTABLE_NETWORK_HASH = ConstExprHashingUtils::HashString("UNSTABLE_NETWORK"); + static constexpr uint32_t FAILED_TO_CREATE_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE_SECURITY_GROUP"); + static constexpr uint32_t FAILED_TO_LAUNCH_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_LAUNCH_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_BOOT_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_BOOT_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_AUTHENTICATE_WITH_SERVICE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_AUTHENTICATE_WITH_SERVICE"); + static constexpr uint32_t FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE"); + static constexpr uint32_t FAILED_TO_CREATE_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE_STAGING_DISKS"); + static constexpr uint32_t FAILED_TO_ATTACH_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("FAILED_TO_ATTACH_STAGING_DISKS"); + static constexpr uint32_t FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = ConstExprHashingUtils::HashString("FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT"); + static constexpr uint32_t FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER"); + static constexpr uint32_t FAILED_TO_START_DATA_TRANSFER_HASH = ConstExprHashingUtils::HashString("FAILED_TO_START_DATA_TRANSFER"); + static constexpr uint32_t UNSUPPORTED_VM_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_VM_CONFIGURATION"); + static constexpr uint32_t LAST_SNAPSHOT_JOB_FAILED_HASH = ConstExprHashingUtils::HashString("LAST_SNAPSHOT_JOB_FAILED"); DataReplicationErrorString GetDataReplicationErrorStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_NOT_SEEN_HASH) { return DataReplicationErrorString::AGENT_NOT_SEEN; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepName.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepName.cpp index 4b083df327d..1d81c565cc1 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepName.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepName.cpp @@ -20,22 +20,22 @@ namespace Aws namespace DataReplicationInitiationStepNameMapper { - static const int WAIT_HASH = HashingUtils::HashString("WAIT"); - static const int CREATE_SECURITY_GROUP_HASH = HashingUtils::HashString("CREATE_SECURITY_GROUP"); - static const int LAUNCH_REPLICATION_SERVER_HASH = HashingUtils::HashString("LAUNCH_REPLICATION_SERVER"); - static const int BOOT_REPLICATION_SERVER_HASH = HashingUtils::HashString("BOOT_REPLICATION_SERVER"); - static const int AUTHENTICATE_WITH_SERVICE_HASH = HashingUtils::HashString("AUTHENTICATE_WITH_SERVICE"); - static const int DOWNLOAD_REPLICATION_SOFTWARE_HASH = HashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE"); - static const int CREATE_STAGING_DISKS_HASH = HashingUtils::HashString("CREATE_STAGING_DISKS"); - static const int ATTACH_STAGING_DISKS_HASH = HashingUtils::HashString("ATTACH_STAGING_DISKS"); - static const int PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = HashingUtils::HashString("PAIR_REPLICATION_SERVER_WITH_AGENT"); - static const int CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = HashingUtils::HashString("CONNECT_AGENT_TO_REPLICATION_SERVER"); - static const int START_DATA_TRANSFER_HASH = HashingUtils::HashString("START_DATA_TRANSFER"); + static constexpr uint32_t WAIT_HASH = ConstExprHashingUtils::HashString("WAIT"); + static constexpr uint32_t CREATE_SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("CREATE_SECURITY_GROUP"); + static constexpr uint32_t LAUNCH_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("LAUNCH_REPLICATION_SERVER"); + static constexpr uint32_t BOOT_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("BOOT_REPLICATION_SERVER"); + static constexpr uint32_t AUTHENTICATE_WITH_SERVICE_HASH = ConstExprHashingUtils::HashString("AUTHENTICATE_WITH_SERVICE"); + static constexpr uint32_t DOWNLOAD_REPLICATION_SOFTWARE_HASH = ConstExprHashingUtils::HashString("DOWNLOAD_REPLICATION_SOFTWARE"); + static constexpr uint32_t CREATE_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("CREATE_STAGING_DISKS"); + static constexpr uint32_t ATTACH_STAGING_DISKS_HASH = ConstExprHashingUtils::HashString("ATTACH_STAGING_DISKS"); + static constexpr uint32_t PAIR_REPLICATION_SERVER_WITH_AGENT_HASH = ConstExprHashingUtils::HashString("PAIR_REPLICATION_SERVER_WITH_AGENT"); + static constexpr uint32_t CONNECT_AGENT_TO_REPLICATION_SERVER_HASH = ConstExprHashingUtils::HashString("CONNECT_AGENT_TO_REPLICATION_SERVER"); + static constexpr uint32_t START_DATA_TRANSFER_HASH = ConstExprHashingUtils::HashString("START_DATA_TRANSFER"); DataReplicationInitiationStepName GetDataReplicationInitiationStepNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAIT_HASH) { return DataReplicationInitiationStepName::WAIT; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepStatus.cpp index 53e6179b984..a5e0c82fe8b 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationInitiationStepStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataReplicationInitiationStepStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); DataReplicationInitiationStepStatus GetDataReplicationInitiationStepStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return DataReplicationInitiationStepStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationState.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationState.cpp index 27666b9a60e..813c87126b3 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationState.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/DataReplicationState.cpp @@ -20,23 +20,23 @@ namespace Aws namespace DataReplicationStateMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int INITIATING_HASH = HashingUtils::HashString("INITIATING"); - static const int INITIAL_SYNC_HASH = HashingUtils::HashString("INITIAL_SYNC"); - static const int BACKLOG_HASH = HashingUtils::HashString("BACKLOG"); - static const int CREATING_SNAPSHOT_HASH = HashingUtils::HashString("CREATING_SNAPSHOT"); - static const int CONTINUOUS_HASH = HashingUtils::HashString("CONTINUOUS"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int RESCAN_HASH = HashingUtils::HashString("RESCAN"); - static const int STALLED_HASH = HashingUtils::HashString("STALLED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); - static const int PENDING_SNAPSHOT_SHIPPING_HASH = HashingUtils::HashString("PENDING_SNAPSHOT_SHIPPING"); - static const int SHIPPING_SNAPSHOT_HASH = HashingUtils::HashString("SHIPPING_SNAPSHOT"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t INITIATING_HASH = ConstExprHashingUtils::HashString("INITIATING"); + static constexpr uint32_t INITIAL_SYNC_HASH = ConstExprHashingUtils::HashString("INITIAL_SYNC"); + static constexpr uint32_t BACKLOG_HASH = ConstExprHashingUtils::HashString("BACKLOG"); + static constexpr uint32_t CREATING_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("CREATING_SNAPSHOT"); + static constexpr uint32_t CONTINUOUS_HASH = ConstExprHashingUtils::HashString("CONTINUOUS"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t RESCAN_HASH = ConstExprHashingUtils::HashString("RESCAN"); + static constexpr uint32_t STALLED_HASH = ConstExprHashingUtils::HashString("STALLED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t PENDING_SNAPSHOT_SHIPPING_HASH = ConstExprHashingUtils::HashString("PENDING_SNAPSHOT_SHIPPING"); + static constexpr uint32_t SHIPPING_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("SHIPPING_SNAPSHOT"); DataReplicationState GetDataReplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return DataReplicationState::STOPPED; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ExportStatus.cpp index 6a10461aa38..a29d1667149 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ExportStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ExportStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); ExportStatus GetExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ExportStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/FirstBoot.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/FirstBoot.cpp index 953bf21e355..430e878182c 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/FirstBoot.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/FirstBoot.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FirstBootMapper { - static const int WAITING_HASH = HashingUtils::HashString("WAITING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t WAITING_HASH = ConstExprHashingUtils::HashString("WAITING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); FirstBoot GetFirstBootForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WAITING_HASH) { return FirstBoot::WAITING; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ImportErrorType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ImportErrorType.cpp index aa3f300b36d..f309ea4aeb0 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ImportErrorType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ImportErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImportErrorTypeMapper { - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int PROCESSING_ERROR_HASH = HashingUtils::HashString("PROCESSING_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t PROCESSING_ERROR_HASH = ConstExprHashingUtils::HashString("PROCESSING_ERROR"); ImportErrorType GetImportErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_ERROR_HASH) { return ImportErrorType::VALIDATION_ERROR; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ImportStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ImportStatus.cpp index da55fd8cb1c..20967d46694 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ImportStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ImportStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ImportStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); ImportStatus GetImportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ImportStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/InitiatedBy.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/InitiatedBy.cpp index 2fd666975a2..0b75c980d92 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/InitiatedBy.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/InitiatedBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InitiatedByMapper { - static const int START_TEST_HASH = HashingUtils::HashString("START_TEST"); - static const int START_CUTOVER_HASH = HashingUtils::HashString("START_CUTOVER"); - static const int DIAGNOSTIC_HASH = HashingUtils::HashString("DIAGNOSTIC"); - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); + static constexpr uint32_t START_TEST_HASH = ConstExprHashingUtils::HashString("START_TEST"); + static constexpr uint32_t START_CUTOVER_HASH = ConstExprHashingUtils::HashString("START_CUTOVER"); + static constexpr uint32_t DIAGNOSTIC_HASH = ConstExprHashingUtils::HashString("DIAGNOSTIC"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); InitiatedBy GetInitiatedByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_TEST_HASH) { return InitiatedBy::START_TEST; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/JobLogEvent.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/JobLogEvent.cpp index 0e02a8ac9be..0580139dfd8 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/JobLogEvent.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/JobLogEvent.cpp @@ -20,27 +20,27 @@ namespace Aws namespace JobLogEventMapper { - static const int JOB_START_HASH = HashingUtils::HashString("JOB_START"); - static const int SERVER_SKIPPED_HASH = HashingUtils::HashString("SERVER_SKIPPED"); - static const int CLEANUP_START_HASH = HashingUtils::HashString("CLEANUP_START"); - static const int CLEANUP_END_HASH = HashingUtils::HashString("CLEANUP_END"); - static const int CLEANUP_FAIL_HASH = HashingUtils::HashString("CLEANUP_FAIL"); - static const int SNAPSHOT_START_HASH = HashingUtils::HashString("SNAPSHOT_START"); - static const int SNAPSHOT_END_HASH = HashingUtils::HashString("SNAPSHOT_END"); - static const int SNAPSHOT_FAIL_HASH = HashingUtils::HashString("SNAPSHOT_FAIL"); - static const int USING_PREVIOUS_SNAPSHOT_HASH = HashingUtils::HashString("USING_PREVIOUS_SNAPSHOT"); - static const int CONVERSION_START_HASH = HashingUtils::HashString("CONVERSION_START"); - static const int CONVERSION_END_HASH = HashingUtils::HashString("CONVERSION_END"); - static const int CONVERSION_FAIL_HASH = HashingUtils::HashString("CONVERSION_FAIL"); - static const int LAUNCH_START_HASH = HashingUtils::HashString("LAUNCH_START"); - static const int LAUNCH_FAILED_HASH = HashingUtils::HashString("LAUNCH_FAILED"); - static const int JOB_CANCEL_HASH = HashingUtils::HashString("JOB_CANCEL"); - static const int JOB_END_HASH = HashingUtils::HashString("JOB_END"); + static constexpr uint32_t JOB_START_HASH = ConstExprHashingUtils::HashString("JOB_START"); + static constexpr uint32_t SERVER_SKIPPED_HASH = ConstExprHashingUtils::HashString("SERVER_SKIPPED"); + static constexpr uint32_t CLEANUP_START_HASH = ConstExprHashingUtils::HashString("CLEANUP_START"); + static constexpr uint32_t CLEANUP_END_HASH = ConstExprHashingUtils::HashString("CLEANUP_END"); + static constexpr uint32_t CLEANUP_FAIL_HASH = ConstExprHashingUtils::HashString("CLEANUP_FAIL"); + static constexpr uint32_t SNAPSHOT_START_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_START"); + static constexpr uint32_t SNAPSHOT_END_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_END"); + static constexpr uint32_t SNAPSHOT_FAIL_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_FAIL"); + static constexpr uint32_t USING_PREVIOUS_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("USING_PREVIOUS_SNAPSHOT"); + static constexpr uint32_t CONVERSION_START_HASH = ConstExprHashingUtils::HashString("CONVERSION_START"); + static constexpr uint32_t CONVERSION_END_HASH = ConstExprHashingUtils::HashString("CONVERSION_END"); + static constexpr uint32_t CONVERSION_FAIL_HASH = ConstExprHashingUtils::HashString("CONVERSION_FAIL"); + static constexpr uint32_t LAUNCH_START_HASH = ConstExprHashingUtils::HashString("LAUNCH_START"); + static constexpr uint32_t LAUNCH_FAILED_HASH = ConstExprHashingUtils::HashString("LAUNCH_FAILED"); + static constexpr uint32_t JOB_CANCEL_HASH = ConstExprHashingUtils::HashString("JOB_CANCEL"); + static constexpr uint32_t JOB_END_HASH = ConstExprHashingUtils::HashString("JOB_END"); JobLogEvent GetJobLogEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JOB_START_HASH) { return JobLogEvent::JOB_START; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/JobStatus.cpp index 2ab4515323e..92bb72ccf46 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/JobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return JobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/JobType.cpp index 899cd78b247..9beb4139d6d 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/JobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobTypeMapper { - static const int LAUNCH_HASH = HashingUtils::HashString("LAUNCH"); - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); + static constexpr uint32_t LAUNCH_HASH = ConstExprHashingUtils::HashString("LAUNCH"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAUNCH_HASH) { return JobType::LAUNCH; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/LaunchDisposition.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/LaunchDisposition.cpp index 6e37a5a6d29..43bea888026 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/LaunchDisposition.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/LaunchDisposition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchDispositionMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); LaunchDisposition GetLaunchDispositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return LaunchDisposition::STOPPED; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/LaunchStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/LaunchStatus.cpp index 91234ce76b1..6d309889085 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/LaunchStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/LaunchStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LaunchStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int LAUNCHED_HASH = HashingUtils::HashString("LAUNCHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t LAUNCHED_HASH = ConstExprHashingUtils::HashString("LAUNCHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); LaunchStatus GetLaunchStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return LaunchStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/LifeCycleState.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/LifeCycleState.cpp index 335f0e70e75..e9a65341479 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/LifeCycleState.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/LifeCycleState.cpp @@ -20,21 +20,21 @@ namespace Aws namespace LifeCycleStateMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int NOT_READY_HASH = HashingUtils::HashString("NOT_READY"); - static const int READY_FOR_TEST_HASH = HashingUtils::HashString("READY_FOR_TEST"); - static const int TESTING_HASH = HashingUtils::HashString("TESTING"); - static const int READY_FOR_CUTOVER_HASH = HashingUtils::HashString("READY_FOR_CUTOVER"); - static const int CUTTING_OVER_HASH = HashingUtils::HashString("CUTTING_OVER"); - static const int CUTOVER_HASH = HashingUtils::HashString("CUTOVER"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); - static const int DISCOVERED_HASH = HashingUtils::HashString("DISCOVERED"); - static const int PENDING_INSTALLATION_HASH = HashingUtils::HashString("PENDING_INSTALLATION"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t NOT_READY_HASH = ConstExprHashingUtils::HashString("NOT_READY"); + static constexpr uint32_t READY_FOR_TEST_HASH = ConstExprHashingUtils::HashString("READY_FOR_TEST"); + static constexpr uint32_t TESTING_HASH = ConstExprHashingUtils::HashString("TESTING"); + static constexpr uint32_t READY_FOR_CUTOVER_HASH = ConstExprHashingUtils::HashString("READY_FOR_CUTOVER"); + static constexpr uint32_t CUTTING_OVER_HASH = ConstExprHashingUtils::HashString("CUTTING_OVER"); + static constexpr uint32_t CUTOVER_HASH = ConstExprHashingUtils::HashString("CUTOVER"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t DISCOVERED_HASH = ConstExprHashingUtils::HashString("DISCOVERED"); + static constexpr uint32_t PENDING_INSTALLATION_HASH = ConstExprHashingUtils::HashString("PENDING_INSTALLATION"); LifeCycleState GetLifeCycleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return LifeCycleState::STOPPED; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionExecutionStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionExecutionStatus.cpp index f7e9d65b257..9e3835c85ed 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionExecutionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PostLaunchActionExecutionStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); PostLaunchActionExecutionStatus GetPostLaunchActionExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return PostLaunchActionExecutionStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionsDeploymentType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionsDeploymentType.cpp index e07857a12d9..5fa1c0aa909 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionsDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/PostLaunchActionsDeploymentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PostLaunchActionsDeploymentTypeMapper { - static const int TEST_AND_CUTOVER_HASH = HashingUtils::HashString("TEST_AND_CUTOVER"); - static const int CUTOVER_ONLY_HASH = HashingUtils::HashString("CUTOVER_ONLY"); - static const int TEST_ONLY_HASH = HashingUtils::HashString("TEST_ONLY"); + static constexpr uint32_t TEST_AND_CUTOVER_HASH = ConstExprHashingUtils::HashString("TEST_AND_CUTOVER"); + static constexpr uint32_t CUTOVER_ONLY_HASH = ConstExprHashingUtils::HashString("CUTOVER_ONLY"); + static constexpr uint32_t TEST_ONLY_HASH = ConstExprHashingUtils::HashString("TEST_ONLY"); PostLaunchActionsDeploymentType GetPostLaunchActionsDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEST_AND_CUTOVER_HASH) { return PostLaunchActionsDeploymentType::TEST_AND_CUTOVER; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDataPlaneRouting.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDataPlaneRouting.cpp index 32113090991..4ebe4c30d51 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDataPlaneRouting.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDataPlaneRouting.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationConfigurationDataPlaneRoutingMapper { - static const int PRIVATE_IP_HASH = HashingUtils::HashString("PRIVATE_IP"); - static const int PUBLIC_IP_HASH = HashingUtils::HashString("PUBLIC_IP"); + static constexpr uint32_t PRIVATE_IP_HASH = ConstExprHashingUtils::HashString("PRIVATE_IP"); + static constexpr uint32_t PUBLIC_IP_HASH = ConstExprHashingUtils::HashString("PUBLIC_IP"); ReplicationConfigurationDataPlaneRouting GetReplicationConfigurationDataPlaneRoutingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIVATE_IP_HASH) { return ReplicationConfigurationDataPlaneRouting::PRIVATE_IP; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp index 9c9e6017e15..3a8d46f5211 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationDefaultLargeStagingDiskType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReplicationConfigurationDefaultLargeStagingDiskTypeMapper { - static const int GP2_HASH = HashingUtils::HashString("GP2"); - static const int ST1_HASH = HashingUtils::HashString("ST1"); - static const int GP3_HASH = HashingUtils::HashString("GP3"); + static constexpr uint32_t GP2_HASH = ConstExprHashingUtils::HashString("GP2"); + static constexpr uint32_t ST1_HASH = ConstExprHashingUtils::HashString("ST1"); + static constexpr uint32_t GP3_HASH = ConstExprHashingUtils::HashString("GP3"); ReplicationConfigurationDefaultLargeStagingDiskType GetReplicationConfigurationDefaultLargeStagingDiskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GP2_HASH) { return ReplicationConfigurationDefaultLargeStagingDiskType::GP2; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationEbsEncryption.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationEbsEncryption.cpp index 8de40f1f191..794419dab8d 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationEbsEncryption.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationEbsEncryption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationConfigurationEbsEncryptionMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ReplicationConfigurationEbsEncryption GetReplicationConfigurationEbsEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ReplicationConfigurationEbsEncryption::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp index 2be04af47e7..86c7c10b8a6 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationConfigurationReplicatedDiskStagingDiskType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ReplicationConfigurationReplicatedDiskStagingDiskTypeMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int GP2_HASH = HashingUtils::HashString("GP2"); - static const int IO1_HASH = HashingUtils::HashString("IO1"); - static const int SC1_HASH = HashingUtils::HashString("SC1"); - static const int ST1_HASH = HashingUtils::HashString("ST1"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int GP3_HASH = HashingUtils::HashString("GP3"); - static const int IO2_HASH = HashingUtils::HashString("IO2"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t GP2_HASH = ConstExprHashingUtils::HashString("GP2"); + static constexpr uint32_t IO1_HASH = ConstExprHashingUtils::HashString("IO1"); + static constexpr uint32_t SC1_HASH = ConstExprHashingUtils::HashString("SC1"); + static constexpr uint32_t ST1_HASH = ConstExprHashingUtils::HashString("ST1"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t GP3_HASH = ConstExprHashingUtils::HashString("GP3"); + static constexpr uint32_t IO2_HASH = ConstExprHashingUtils::HashString("IO2"); ReplicationConfigurationReplicatedDiskStagingDiskType GetReplicationConfigurationReplicatedDiskStagingDiskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return ReplicationConfigurationReplicatedDiskStagingDiskType::AUTO; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationType.cpp index 2fb0213704b..9a7086abc99 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ReplicationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationTypeMapper { - static const int AGENT_BASED_HASH = HashingUtils::HashString("AGENT_BASED"); - static const int SNAPSHOT_SHIPPING_HASH = HashingUtils::HashString("SNAPSHOT_SHIPPING"); + static constexpr uint32_t AGENT_BASED_HASH = ConstExprHashingUtils::HashString("AGENT_BASED"); + static constexpr uint32_t SNAPSHOT_SHIPPING_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_SHIPPING"); ReplicationType GetReplicationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_BASED_HASH) { return ReplicationType::AGENT_BASED; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/SsmDocumentType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/SsmDocumentType.cpp index a18adb083a0..76b9acf9502 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/SsmDocumentType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/SsmDocumentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SsmDocumentTypeMapper { - static const int AUTOMATION_HASH = HashingUtils::HashString("AUTOMATION"); - static const int COMMAND_HASH = HashingUtils::HashString("COMMAND"); + static constexpr uint32_t AUTOMATION_HASH = ConstExprHashingUtils::HashString("AUTOMATION"); + static constexpr uint32_t COMMAND_HASH = ConstExprHashingUtils::HashString("COMMAND"); SsmDocumentType GetSsmDocumentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATION_HASH) { return SsmDocumentType::AUTOMATION; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/SsmParameterStoreParameterType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/SsmParameterStoreParameterType.cpp index 23a58ef955e..316eee789a8 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/SsmParameterStoreParameterType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/SsmParameterStoreParameterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SsmParameterStoreParameterTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); SsmParameterStoreParameterType GetSsmParameterStoreParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return SsmParameterStoreParameterType::STRING; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/TargetInstanceTypeRightSizingMethod.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/TargetInstanceTypeRightSizingMethod.cpp index b546659d141..687be7afcf6 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/TargetInstanceTypeRightSizingMethod.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/TargetInstanceTypeRightSizingMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetInstanceTypeRightSizingMethodMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); TargetInstanceTypeRightSizingMethod GetTargetInstanceTypeRightSizingMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TargetInstanceTypeRightSizingMethod::NONE; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/ValidationExceptionReason.cpp index aae39851964..d0dd615aa6e 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/VolumeType.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/VolumeType.cpp index 1d1fa15750b..2e859f34bd2 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/VolumeType.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/VolumeType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace VolumeTypeMapper { - static const int io1_HASH = HashingUtils::HashString("io1"); - static const int io2_HASH = HashingUtils::HashString("io2"); - static const int gp3_HASH = HashingUtils::HashString("gp3"); - static const int gp2_HASH = HashingUtils::HashString("gp2"); - static const int st1_HASH = HashingUtils::HashString("st1"); - static const int sc1_HASH = HashingUtils::HashString("sc1"); - static const int standard_HASH = HashingUtils::HashString("standard"); + static constexpr uint32_t io1_HASH = ConstExprHashingUtils::HashString("io1"); + static constexpr uint32_t io2_HASH = ConstExprHashingUtils::HashString("io2"); + static constexpr uint32_t gp3_HASH = ConstExprHashingUtils::HashString("gp3"); + static constexpr uint32_t gp2_HASH = ConstExprHashingUtils::HashString("gp2"); + static constexpr uint32_t st1_HASH = ConstExprHashingUtils::HashString("st1"); + static constexpr uint32_t sc1_HASH = ConstExprHashingUtils::HashString("sc1"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); VolumeType GetVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == io1_HASH) { return VolumeType::io1; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/WaveHealthStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/WaveHealthStatus.cpp index d85925c9a8d..e85cadcc33f 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/WaveHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/WaveHealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WaveHealthStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int LAGGING_HASH = HashingUtils::HashString("LAGGING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t LAGGING_HASH = ConstExprHashingUtils::HashString("LAGGING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); WaveHealthStatus GetWaveHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return WaveHealthStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-mgn/source/model/WaveProgressStatus.cpp b/generated/src/aws-cpp-sdk-mgn/source/model/WaveProgressStatus.cpp index 4ea30fa1268..6f1f07e2a7e 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/model/WaveProgressStatus.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/model/WaveProgressStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WaveProgressStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); WaveProgressStatus GetWaveProgressStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return WaveProgressStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesErrors.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesErrors.cpp index 825ad83a25f..18d4d4eb758 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesErrors.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesErrors.cpp @@ -47,15 +47,15 @@ template<> AWS_MIGRATIONHUBREFACTORSPACES_API ResourceNotFoundException Migratio namespace MigrationHubRefactorSpacesErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INVALID_RESOURCE_POLICY_HASH = HashingUtils::HashString("InvalidResourcePolicyException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INVALID_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidResourcePolicyException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApiGatewayEndpointType.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApiGatewayEndpointType.cpp index f66973b052d..b97ab182f95 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApiGatewayEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApiGatewayEndpointType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApiGatewayEndpointTypeMapper { - static const int REGIONAL_HASH = HashingUtils::HashString("REGIONAL"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t REGIONAL_HASH = ConstExprHashingUtils::HashString("REGIONAL"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); ApiGatewayEndpointType GetApiGatewayEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGIONAL_HASH) { return ApiGatewayEndpointType::REGIONAL; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApplicationState.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApplicationState.cpp index 21773a05541..db819ba81b8 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApplicationState.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ApplicationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ApplicationStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); ApplicationState GetApplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ApplicationState::CREATING; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/EnvironmentState.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/EnvironmentState.cpp index 45d06ace4d1..341ebbe1cb2 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/EnvironmentState.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/EnvironmentState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EnvironmentStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); EnvironmentState GetEnvironmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return EnvironmentState::CREATING; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorCode.cpp index d7cf1369cb2..57f79cabfd2 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorCode.cpp @@ -20,23 +20,23 @@ namespace Aws namespace ErrorCodeMapper { - static const int INVALID_RESOURCE_STATE_HASH = HashingUtils::HashString("INVALID_RESOURCE_STATE"); - static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RESOURCE_LIMIT_EXCEEDED"); - static const int RESOURCE_CREATION_FAILURE_HASH = HashingUtils::HashString("RESOURCE_CREATION_FAILURE"); - static const int RESOURCE_UPDATE_FAILURE_HASH = HashingUtils::HashString("RESOURCE_UPDATE_FAILURE"); - static const int SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE_HASH = HashingUtils::HashString("SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE"); - static const int RESOURCE_DELETION_FAILURE_HASH = HashingUtils::HashString("RESOURCE_DELETION_FAILURE"); - static const int RESOURCE_RETRIEVAL_FAILURE_HASH = HashingUtils::HashString("RESOURCE_RETRIEVAL_FAILURE"); - static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("RESOURCE_IN_USE"); - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int STATE_TRANSITION_FAILURE_HASH = HashingUtils::HashString("STATE_TRANSITION_FAILURE"); - static const int REQUEST_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("REQUEST_LIMIT_EXCEEDED"); - static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NOT_AUTHORIZED"); + static constexpr uint32_t INVALID_RESOURCE_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_RESOURCE_STATE"); + static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RESOURCE_LIMIT_EXCEEDED"); + static constexpr uint32_t RESOURCE_CREATION_FAILURE_HASH = ConstExprHashingUtils::HashString("RESOURCE_CREATION_FAILURE"); + static constexpr uint32_t RESOURCE_UPDATE_FAILURE_HASH = ConstExprHashingUtils::HashString("RESOURCE_UPDATE_FAILURE"); + static constexpr uint32_t SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE_HASH = ConstExprHashingUtils::HashString("SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE"); + static constexpr uint32_t RESOURCE_DELETION_FAILURE_HASH = ConstExprHashingUtils::HashString("RESOURCE_DELETION_FAILURE"); + static constexpr uint32_t RESOURCE_RETRIEVAL_FAILURE_HASH = ConstExprHashingUtils::HashString("RESOURCE_RETRIEVAL_FAILURE"); + static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("RESOURCE_IN_USE"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t STATE_TRANSITION_FAILURE_HASH = ConstExprHashingUtils::HashString("STATE_TRANSITION_FAILURE"); + static constexpr uint32_t REQUEST_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("REQUEST_LIMIT_EXCEEDED"); + static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NOT_AUTHORIZED"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_RESOURCE_STATE_HASH) { return ErrorCode::INVALID_RESOURCE_STATE; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorResourceType.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorResourceType.cpp index da309c27840..1db703d3416 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorResourceType.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ErrorResourceType.cpp @@ -20,30 +20,30 @@ namespace Aws namespace ErrorResourceTypeMapper { - static const int ENVIRONMENT_HASH = HashingUtils::HashString("ENVIRONMENT"); - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); - static const int ROUTE_HASH = HashingUtils::HashString("ROUTE"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); - static const int TRANSIT_GATEWAY_HASH = HashingUtils::HashString("TRANSIT_GATEWAY"); - static const int TRANSIT_GATEWAY_ATTACHMENT_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT"); - static const int API_GATEWAY_HASH = HashingUtils::HashString("API_GATEWAY"); - static const int NLB_HASH = HashingUtils::HashString("NLB"); - static const int TARGET_GROUP_HASH = HashingUtils::HashString("TARGET_GROUP"); - static const int LOAD_BALANCER_LISTENER_HASH = HashingUtils::HashString("LOAD_BALANCER_LISTENER"); - static const int VPC_LINK_HASH = HashingUtils::HashString("VPC_LINK"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int VPC_HASH = HashingUtils::HashString("VPC"); - static const int SUBNET_HASH = HashingUtils::HashString("SUBNET"); - static const int ROUTE_TABLE_HASH = HashingUtils::HashString("ROUTE_TABLE"); - static const int SECURITY_GROUP_HASH = HashingUtils::HashString("SECURITY_GROUP"); - static const int VPC_ENDPOINT_SERVICE_CONFIGURATION_HASH = HashingUtils::HashString("VPC_ENDPOINT_SERVICE_CONFIGURATION"); - static const int RESOURCE_SHARE_HASH = HashingUtils::HashString("RESOURCE_SHARE"); - static const int IAM_ROLE_HASH = HashingUtils::HashString("IAM_ROLE"); + static constexpr uint32_t ENVIRONMENT_HASH = ConstExprHashingUtils::HashString("ENVIRONMENT"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); + static constexpr uint32_t ROUTE_HASH = ConstExprHashingUtils::HashString("ROUTE"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); + static constexpr uint32_t TRANSIT_GATEWAY_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY"); + static constexpr uint32_t TRANSIT_GATEWAY_ATTACHMENT_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT"); + static constexpr uint32_t API_GATEWAY_HASH = ConstExprHashingUtils::HashString("API_GATEWAY"); + static constexpr uint32_t NLB_HASH = ConstExprHashingUtils::HashString("NLB"); + static constexpr uint32_t TARGET_GROUP_HASH = ConstExprHashingUtils::HashString("TARGET_GROUP"); + static constexpr uint32_t LOAD_BALANCER_LISTENER_HASH = ConstExprHashingUtils::HashString("LOAD_BALANCER_LISTENER"); + static constexpr uint32_t VPC_LINK_HASH = ConstExprHashingUtils::HashString("VPC_LINK"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t VPC_HASH = ConstExprHashingUtils::HashString("VPC"); + static constexpr uint32_t SUBNET_HASH = ConstExprHashingUtils::HashString("SUBNET"); + static constexpr uint32_t ROUTE_TABLE_HASH = ConstExprHashingUtils::HashString("ROUTE_TABLE"); + static constexpr uint32_t SECURITY_GROUP_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUP"); + static constexpr uint32_t VPC_ENDPOINT_SERVICE_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT_SERVICE_CONFIGURATION"); + static constexpr uint32_t RESOURCE_SHARE_HASH = ConstExprHashingUtils::HashString("RESOURCE_SHARE"); + static constexpr uint32_t IAM_ROLE_HASH = ConstExprHashingUtils::HashString("IAM_ROLE"); ErrorResourceType GetErrorResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENVIRONMENT_HASH) { return ErrorResourceType::ENVIRONMENT; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/HttpMethod.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/HttpMethod.cpp index 39513f2609a..357327e84f8 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/HttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/HttpMethod.cpp @@ -20,18 +20,18 @@ namespace Aws namespace HttpMethodMapper { - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int GET__HASH = HashingUtils::HashString("GET"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int OPTIONS_HASH = HashingUtils::HashString("OPTIONS"); - static const int PATCH_HASH = HashingUtils::HashString("PATCH"); - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t GET__HASH = ConstExprHashingUtils::HashString("GET"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t OPTIONS_HASH = ConstExprHashingUtils::HashString("OPTIONS"); + static constexpr uint32_t PATCH_HASH = ConstExprHashingUtils::HashString("PATCH"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); HttpMethod GetHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE__HASH) { return HttpMethod::DELETE_; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/NetworkFabricType.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/NetworkFabricType.cpp index a8c74596c1e..ac90d696f68 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/NetworkFabricType.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/NetworkFabricType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkFabricTypeMapper { - static const int TRANSIT_GATEWAY_HASH = HashingUtils::HashString("TRANSIT_GATEWAY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t TRANSIT_GATEWAY_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); NetworkFabricType GetNetworkFabricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSIT_GATEWAY_HASH) { return NetworkFabricType::TRANSIT_GATEWAY; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ProxyType.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ProxyType.cpp index 6464ee59ed8..6c862c5d9c4 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ProxyType.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ProxyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProxyTypeMapper { - static const int API_GATEWAY_HASH = HashingUtils::HashString("API_GATEWAY"); + static constexpr uint32_t API_GATEWAY_HASH = ConstExprHashingUtils::HashString("API_GATEWAY"); ProxyType GetProxyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_GATEWAY_HASH) { return ProxyType::API_GATEWAY; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteActivationState.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteActivationState.cpp index d1e05ad2385..bcc4e83e678 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteActivationState.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteActivationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteActivationStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); RouteActivationState GetRouteActivationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RouteActivationState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteState.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteState.cpp index 87e9f42219b..3c885ee6897 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteState.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RouteStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); RouteState GetRouteStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return RouteState::CREATING; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteType.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteType.cpp index 96fb49a95ae..2d9df7be4d2 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteType.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/RouteType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteTypeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int URI_PATH_HASH = HashingUtils::HashString("URI_PATH"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t URI_PATH_HASH = ConstExprHashingUtils::HashString("URI_PATH"); RouteType GetRouteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return RouteType::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceEndpointType.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceEndpointType.cpp index be08840dc1b..a0a3afa2ca6 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceEndpointType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceEndpointTypeMapper { - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int URL_HASH = HashingUtils::HashString("URL"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); ServiceEndpointType GetServiceEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAMBDA_HASH) { return ServiceEndpointType::LAMBDA; diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceState.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceState.cpp index 9ac4d372e31..7201f66d1e1 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceState.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/model/ServiceState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ServiceStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ServiceState GetServiceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ServiceState::CREATING; diff --git a/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigErrors.cpp b/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigErrors.cpp index e9e350d9b6c..e3e4653f129 100644 --- a/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigErrors.cpp +++ b/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigErrors.cpp @@ -26,13 +26,13 @@ template<> AWS_MIGRATIONHUBCONFIG_API ThrottlingException MigrationHubConfigErro namespace MigrationHubConfigErrorMapper { -static const int DRY_RUN_OPERATION_HASH = HashingUtils::HashString("DryRunOperation"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t DRY_RUN_OPERATION_HASH = ConstExprHashingUtils::HashString("DryRunOperation"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == DRY_RUN_OPERATION_HASH) { diff --git a/generated/src/aws-cpp-sdk-migrationhub-config/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-migrationhub-config/source/model/TargetType.cpp index 201e6d2416d..7315f353758 100644 --- a/generated/src/aws-cpp-sdk-migrationhub-config/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhub-config/source/model/TargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return TargetType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorErrors.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorErrors.cpp index 07ae3195a50..d0258d952fe 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorErrors.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorErrors.cpp @@ -18,12 +18,12 @@ namespace MigrationHubOrchestrator namespace MigrationHubOrchestratorErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/DataType.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/DataType.cpp index 25335a34127..810d8379555 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/DataType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/DataType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DataTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int STRINGLIST_HASH = HashingUtils::HashString("STRINGLIST"); - static const int STRINGMAP_HASH = HashingUtils::HashString("STRINGMAP"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t STRINGLIST_HASH = ConstExprHashingUtils::HashString("STRINGLIST"); + static constexpr uint32_t STRINGMAP_HASH = ConstExprHashingUtils::HashString("STRINGMAP"); DataType GetDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return DataType::STRING; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/MigrationWorkflowStatusEnum.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/MigrationWorkflowStatusEnum.cpp index ca748149e95..2f59b94e67d 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/MigrationWorkflowStatusEnum.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/MigrationWorkflowStatusEnum.cpp @@ -20,25 +20,25 @@ namespace Aws namespace MigrationWorkflowStatusEnumMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int WORKFLOW_FAILED_HASH = HashingUtils::HashString("WORKFLOW_FAILED"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int PAUSING_HASH = HashingUtils::HashString("PAUSING"); - static const int PAUSING_FAILED_HASH = HashingUtils::HashString("PAUSING_FAILED"); - static const int USER_ATTENTION_REQUIRED_HASH = HashingUtils::HashString("USER_ATTENTION_REQUIRED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t WORKFLOW_FAILED_HASH = ConstExprHashingUtils::HashString("WORKFLOW_FAILED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t PAUSING_HASH = ConstExprHashingUtils::HashString("PAUSING"); + static constexpr uint32_t PAUSING_FAILED_HASH = ConstExprHashingUtils::HashString("PAUSING_FAILED"); + static constexpr uint32_t USER_ATTENTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("USER_ATTENTION_REQUIRED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); MigrationWorkflowStatusEnum GetMigrationWorkflowStatusEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return MigrationWorkflowStatusEnum::CREATING; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/Owner.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/Owner.cpp index 339067f737a..86abc4680ea 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/Owner.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/Owner.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OwnerMapper { - static const int AWS_MANAGED_HASH = HashingUtils::HashString("AWS_MANAGED"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AWS_MANAGED_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); Owner GetOwnerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_MANAGED_HASH) { return Owner::AWS_MANAGED; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/PluginHealth.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/PluginHealth.cpp index 53dc7b30580..4b793621594 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/PluginHealth.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/PluginHealth.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PluginHealthMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); PluginHealth GetPluginHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return PluginHealth::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/RunEnvironment.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/RunEnvironment.cpp index 82cc709ef47..0c63a4f5340 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/RunEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/RunEnvironment.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RunEnvironmentMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int ONPREMISE_HASH = HashingUtils::HashString("ONPREMISE"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t ONPREMISE_HASH = ConstExprHashingUtils::HashString("ONPREMISE"); RunEnvironment GetRunEnvironmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return RunEnvironment::AWS; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepActionType.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepActionType.cpp index 7396c7edee2..5711183f1af 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepActionType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StepActionTypeMapper { - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); - static const int AUTOMATED_HASH = HashingUtils::HashString("AUTOMATED"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATED_HASH = ConstExprHashingUtils::HashString("AUTOMATED"); StepActionType GetStepActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANUAL_HASH) { return StepActionType::MANUAL; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepGroupStatus.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepGroupStatus.cpp index 93ebddcfc33..09cc6af0254 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepGroupStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StepGroupStatusMapper { - static const int AWAITING_DEPENDENCIES_HASH = HashingUtils::HashString("AWAITING_DEPENDENCIES"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int PAUSING_HASH = HashingUtils::HashString("PAUSING"); - static const int USER_ATTENTION_REQUIRED_HASH = HashingUtils::HashString("USER_ATTENTION_REQUIRED"); + static constexpr uint32_t AWAITING_DEPENDENCIES_HASH = ConstExprHashingUtils::HashString("AWAITING_DEPENDENCIES"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t PAUSING_HASH = ConstExprHashingUtils::HashString("PAUSING"); + static constexpr uint32_t USER_ATTENTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("USER_ATTENTION_REQUIRED"); StepGroupStatus GetStepGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWAITING_DEPENDENCIES_HASH) { return StepGroupStatus::AWAITING_DEPENDENCIES; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepStatus.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepStatus.cpp index 06f5609e885..15441bd368f 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/StepStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StepStatusMapper { - static const int AWAITING_DEPENDENCIES_HASH = HashingUtils::HashString("AWAITING_DEPENDENCIES"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int USER_ATTENTION_REQUIRED_HASH = HashingUtils::HashString("USER_ATTENTION_REQUIRED"); + static constexpr uint32_t AWAITING_DEPENDENCIES_HASH = ConstExprHashingUtils::HashString("AWAITING_DEPENDENCIES"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t USER_ATTENTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("USER_ATTENTION_REQUIRED"); StepStatus GetStepStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWAITING_DEPENDENCIES_HASH) { return StepStatus::AWAITING_DEPENDENCIES; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TargetType.cpp index ecb2f227170..d409adfdc81 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TargetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetTypeMapper { - static const int SINGLE_HASH = HashingUtils::HashString("SINGLE"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t SINGLE_HASH = ConstExprHashingUtils::HashString("SINGLE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_HASH) { return TargetType::SINGLE; diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TemplateStatus.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TemplateStatus.cpp index 03c3f45ea30..0b611246560 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TemplateStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/model/TemplateStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TemplateStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); TemplateStatus GetTemplateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return TemplateStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsErrors.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsErrors.cpp index af65cdd9735..2e6d33796ff 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsErrors.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsErrors.cpp @@ -18,16 +18,16 @@ namespace MigrationHubStrategyRecommendations namespace MigrationHubStrategyRecommendationsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int DEPENDENCY_HASH = HashingUtils::HashString("DependencyException"); -static const int SERVICE_LINKED_ROLE_LOCK_CLIENT_HASH = HashingUtils::HashString("ServiceLinkedRoleLockClientException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t DEPENDENCY_HASH = ConstExprHashingUtils::HashString("DependencyException"); +static constexpr uint32_t SERVICE_LINKED_ROLE_LOCK_CLIENT_HASH = ConstExprHashingUtils::HashString("ServiceLinkedRoleLockClientException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AnalysisType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AnalysisType.cpp index 2338ea25a00..1987bc1f77d 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AnalysisType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AnalysisType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AnalysisTypeMapper { - static const int SOURCE_CODE_ANALYSIS_HASH = HashingUtils::HashString("SOURCE_CODE_ANALYSIS"); - static const int DATABASE_ANALYSIS_HASH = HashingUtils::HashString("DATABASE_ANALYSIS"); - static const int RUNTIME_ANALYSIS_HASH = HashingUtils::HashString("RUNTIME_ANALYSIS"); - static const int BINARY_ANALYSIS_HASH = HashingUtils::HashString("BINARY_ANALYSIS"); + static constexpr uint32_t SOURCE_CODE_ANALYSIS_HASH = ConstExprHashingUtils::HashString("SOURCE_CODE_ANALYSIS"); + static constexpr uint32_t DATABASE_ANALYSIS_HASH = ConstExprHashingUtils::HashString("DATABASE_ANALYSIS"); + static constexpr uint32_t RUNTIME_ANALYSIS_HASH = ConstExprHashingUtils::HashString("RUNTIME_ANALYSIS"); + static constexpr uint32_t BINARY_ANALYSIS_HASH = ConstExprHashingUtils::HashString("BINARY_ANALYSIS"); AnalysisType GetAnalysisTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE_CODE_ANALYSIS_HASH) { return AnalysisType::SOURCE_CODE_ANALYSIS; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AntipatternReportStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AntipatternReportStatus.cpp index 64f919a311a..4e48a10427a 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AntipatternReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AntipatternReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AntipatternReportStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); AntipatternReportStatus GetAntipatternReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return AntipatternReportStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppType.cpp index 0dd0bd0ddf0..b6f78b56edf 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppType.cpp @@ -20,33 +20,33 @@ namespace Aws namespace AppTypeMapper { - static const int DotNetFramework_HASH = HashingUtils::HashString("DotNetFramework"); - static const int Java_HASH = HashingUtils::HashString("Java"); - static const int SQLServer_HASH = HashingUtils::HashString("SQLServer"); - static const int IIS_HASH = HashingUtils::HashString("IIS"); - static const int Oracle_HASH = HashingUtils::HashString("Oracle"); - static const int Other_HASH = HashingUtils::HashString("Other"); - static const int Tomcat_HASH = HashingUtils::HashString("Tomcat"); - static const int JBoss_HASH = HashingUtils::HashString("JBoss"); - static const int Spring_HASH = HashingUtils::HashString("Spring"); - static const int Mongo_DB_HASH = HashingUtils::HashString("Mongo DB"); - static const int DB2_HASH = HashingUtils::HashString("DB2"); - static const int Maria_DB_HASH = HashingUtils::HashString("Maria DB"); - static const int MySQL_HASH = HashingUtils::HashString("MySQL"); - static const int Sybase_HASH = HashingUtils::HashString("Sybase"); - static const int PostgreSQLServer_HASH = HashingUtils::HashString("PostgreSQLServer"); - static const int Cassandra_HASH = HashingUtils::HashString("Cassandra"); - static const int IBM_WebSphere_HASH = HashingUtils::HashString("IBM WebSphere"); - static const int Oracle_WebLogic_HASH = HashingUtils::HashString("Oracle WebLogic"); - static const int Visual_Basic_HASH = HashingUtils::HashString("Visual Basic"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int DotnetCore_HASH = HashingUtils::HashString("DotnetCore"); - static const int Dotnet_HASH = HashingUtils::HashString("Dotnet"); + static constexpr uint32_t DotNetFramework_HASH = ConstExprHashingUtils::HashString("DotNetFramework"); + static constexpr uint32_t Java_HASH = ConstExprHashingUtils::HashString("Java"); + static constexpr uint32_t SQLServer_HASH = ConstExprHashingUtils::HashString("SQLServer"); + static constexpr uint32_t IIS_HASH = ConstExprHashingUtils::HashString("IIS"); + static constexpr uint32_t Oracle_HASH = ConstExprHashingUtils::HashString("Oracle"); + static constexpr uint32_t Other_HASH = ConstExprHashingUtils::HashString("Other"); + static constexpr uint32_t Tomcat_HASH = ConstExprHashingUtils::HashString("Tomcat"); + static constexpr uint32_t JBoss_HASH = ConstExprHashingUtils::HashString("JBoss"); + static constexpr uint32_t Spring_HASH = ConstExprHashingUtils::HashString("Spring"); + static constexpr uint32_t Mongo_DB_HASH = ConstExprHashingUtils::HashString("Mongo DB"); + static constexpr uint32_t DB2_HASH = ConstExprHashingUtils::HashString("DB2"); + static constexpr uint32_t Maria_DB_HASH = ConstExprHashingUtils::HashString("Maria DB"); + static constexpr uint32_t MySQL_HASH = ConstExprHashingUtils::HashString("MySQL"); + static constexpr uint32_t Sybase_HASH = ConstExprHashingUtils::HashString("Sybase"); + static constexpr uint32_t PostgreSQLServer_HASH = ConstExprHashingUtils::HashString("PostgreSQLServer"); + static constexpr uint32_t Cassandra_HASH = ConstExprHashingUtils::HashString("Cassandra"); + static constexpr uint32_t IBM_WebSphere_HASH = ConstExprHashingUtils::HashString("IBM WebSphere"); + static constexpr uint32_t Oracle_WebLogic_HASH = ConstExprHashingUtils::HashString("Oracle WebLogic"); + static constexpr uint32_t Visual_Basic_HASH = ConstExprHashingUtils::HashString("Visual Basic"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t DotnetCore_HASH = ConstExprHashingUtils::HashString("DotnetCore"); + static constexpr uint32_t Dotnet_HASH = ConstExprHashingUtils::HashString("Dotnet"); AppType GetAppTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DotNetFramework_HASH) { return AppType::DotNetFramework; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppUnitErrorCategory.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppUnitErrorCategory.cpp index 2ccdc09a5f6..4ee66b34758 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppUnitErrorCategory.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AppUnitErrorCategory.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AppUnitErrorCategoryMapper { - static const int CREDENTIAL_ERROR_HASH = HashingUtils::HashString("CREDENTIAL_ERROR"); - static const int CONNECTIVITY_ERROR_HASH = HashingUtils::HashString("CONNECTIVITY_ERROR"); - static const int PERMISSION_ERROR_HASH = HashingUtils::HashString("PERMISSION_ERROR"); - static const int UNSUPPORTED_ERROR_HASH = HashingUtils::HashString("UNSUPPORTED_ERROR"); - static const int OTHER_ERROR_HASH = HashingUtils::HashString("OTHER_ERROR"); + static constexpr uint32_t CREDENTIAL_ERROR_HASH = ConstExprHashingUtils::HashString("CREDENTIAL_ERROR"); + static constexpr uint32_t CONNECTIVITY_ERROR_HASH = ConstExprHashingUtils::HashString("CONNECTIVITY_ERROR"); + static constexpr uint32_t PERMISSION_ERROR_HASH = ConstExprHashingUtils::HashString("PERMISSION_ERROR"); + static constexpr uint32_t UNSUPPORTED_ERROR_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_ERROR"); + static constexpr uint32_t OTHER_ERROR_HASH = ConstExprHashingUtils::HashString("OTHER_ERROR"); AppUnitErrorCategory GetAppUnitErrorCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREDENTIAL_ERROR_HASH) { return AppUnitErrorCategory::CREDENTIAL_ERROR; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationComponentCriteria.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationComponentCriteria.cpp index bafeef549a8..3ad3518a385 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationComponentCriteria.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationComponentCriteria.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ApplicationComponentCriteriaMapper { - static const int NOT_DEFINED_HASH = HashingUtils::HashString("NOT_DEFINED"); - static const int APP_NAME_HASH = HashingUtils::HashString("APP_NAME"); - static const int SERVER_ID_HASH = HashingUtils::HashString("SERVER_ID"); - static const int APP_TYPE_HASH = HashingUtils::HashString("APP_TYPE"); - static const int STRATEGY_HASH = HashingUtils::HashString("STRATEGY"); - static const int DESTINATION_HASH = HashingUtils::HashString("DESTINATION"); - static const int ANALYSIS_STATUS_HASH = HashingUtils::HashString("ANALYSIS_STATUS"); - static const int ERROR_CATEGORY_HASH = HashingUtils::HashString("ERROR_CATEGORY"); + static constexpr uint32_t NOT_DEFINED_HASH = ConstExprHashingUtils::HashString("NOT_DEFINED"); + static constexpr uint32_t APP_NAME_HASH = ConstExprHashingUtils::HashString("APP_NAME"); + static constexpr uint32_t SERVER_ID_HASH = ConstExprHashingUtils::HashString("SERVER_ID"); + static constexpr uint32_t APP_TYPE_HASH = ConstExprHashingUtils::HashString("APP_TYPE"); + static constexpr uint32_t STRATEGY_HASH = ConstExprHashingUtils::HashString("STRATEGY"); + static constexpr uint32_t DESTINATION_HASH = ConstExprHashingUtils::HashString("DESTINATION"); + static constexpr uint32_t ANALYSIS_STATUS_HASH = ConstExprHashingUtils::HashString("ANALYSIS_STATUS"); + static constexpr uint32_t ERROR_CATEGORY_HASH = ConstExprHashingUtils::HashString("ERROR_CATEGORY"); ApplicationComponentCriteria GetApplicationComponentCriteriaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_DEFINED_HASH) { return ApplicationComponentCriteria::NOT_DEFINED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationMode.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationMode.cpp index 6e3376ee4af..b7220880ef7 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationMode.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ApplicationMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationModeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int KNOWN_HASH = HashingUtils::HashString("KNOWN"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t KNOWN_HASH = ConstExprHashingUtils::HashString("KNOWN"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); ApplicationMode GetApplicationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ApplicationMode::ALL; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AssessmentStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AssessmentStatus.cpp index 122c74b9270..54133f16c04 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AssessmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AssessmentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AssessmentStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); AssessmentStatus GetAssessmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return AssessmentStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AuthType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AuthType.cpp index 5130ac8e441..3ecc7eee46a 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AuthType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AuthType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AuthTypeMapper { - static const int NTLM_HASH = HashingUtils::HashString("NTLM"); - static const int SSH_HASH = HashingUtils::HashString("SSH"); - static const int CERT_HASH = HashingUtils::HashString("CERT"); + static constexpr uint32_t NTLM_HASH = ConstExprHashingUtils::HashString("NTLM"); + static constexpr uint32_t SSH_HASH = ConstExprHashingUtils::HashString("SSH"); + static constexpr uint32_t CERT_HASH = ConstExprHashingUtils::HashString("CERT"); AuthType GetAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NTLM_HASH) { return AuthType::NTLM; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AwsManagedTargetDestination.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AwsManagedTargetDestination.cpp index 497f3bec4e6..5f3e4f1529b 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AwsManagedTargetDestination.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/AwsManagedTargetDestination.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AwsManagedTargetDestinationMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); - static const int AWS_Elastic_BeanStalk_HASH = HashingUtils::HashString("AWS Elastic BeanStalk"); - static const int AWS_Fargate_HASH = HashingUtils::HashString("AWS Fargate"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); + static constexpr uint32_t AWS_Elastic_BeanStalk_HASH = ConstExprHashingUtils::HashString("AWS Elastic BeanStalk"); + static constexpr uint32_t AWS_Fargate_HASH = ConstExprHashingUtils::HashString("AWS Fargate"); AwsManagedTargetDestination GetAwsManagedTargetDestinationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return AwsManagedTargetDestination::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/BinaryAnalyzerName.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/BinaryAnalyzerName.cpp index 8b53ca43b93..76e3c7164b7 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/BinaryAnalyzerName.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/BinaryAnalyzerName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BinaryAnalyzerNameMapper { - static const int DLL_ANALYZER_HASH = HashingUtils::HashString("DLL_ANALYZER"); - static const int BYTECODE_ANALYZER_HASH = HashingUtils::HashString("BYTECODE_ANALYZER"); + static constexpr uint32_t DLL_ANALYZER_HASH = ConstExprHashingUtils::HashString("DLL_ANALYZER"); + static constexpr uint32_t BYTECODE_ANALYZER_HASH = ConstExprHashingUtils::HashString("BYTECODE_ANALYZER"); BinaryAnalyzerName GetBinaryAnalyzerNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DLL_ANALYZER_HASH) { return BinaryAnalyzerName::DLL_ANALYZER; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/CollectorHealth.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/CollectorHealth.cpp index 061c8df3f9e..4bc24afb7d3 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/CollectorHealth.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/CollectorHealth.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CollectorHealthMapper { - static const int COLLECTOR_HEALTHY_HASH = HashingUtils::HashString("COLLECTOR_HEALTHY"); - static const int COLLECTOR_UNHEALTHY_HASH = HashingUtils::HashString("COLLECTOR_UNHEALTHY"); + static constexpr uint32_t COLLECTOR_HEALTHY_HASH = ConstExprHashingUtils::HashString("COLLECTOR_HEALTHY"); + static constexpr uint32_t COLLECTOR_UNHEALTHY_HASH = ConstExprHashingUtils::HashString("COLLECTOR_UNHEALTHY"); CollectorHealth GetCollectorHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLLECTOR_HEALTHY_HASH) { return CollectorHealth::COLLECTOR_HEALTHY; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Condition.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Condition.cpp index a4fcc68eff4..fda02aa1254 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Condition.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Condition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConditionMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int NOT_CONTAINS_HASH = HashingUtils::HashString("NOT_CONTAINS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t NOT_CONTAINS_HASH = ConstExprHashingUtils::HashString("NOT_CONTAINS"); Condition GetConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return Condition::EQUALS; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DataSourceType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DataSourceType.cpp index 5ad31352c2b..fe19487fb14 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DataSourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataSourceTypeMapper { - static const int ApplicationDiscoveryService_HASH = HashingUtils::HashString("ApplicationDiscoveryService"); - static const int MPA_HASH = HashingUtils::HashString("MPA"); - static const int Import_HASH = HashingUtils::HashString("Import"); + static constexpr uint32_t ApplicationDiscoveryService_HASH = ConstExprHashingUtils::HashString("ApplicationDiscoveryService"); + static constexpr uint32_t MPA_HASH = ConstExprHashingUtils::HashString("MPA"); + static constexpr uint32_t Import_HASH = ConstExprHashingUtils::HashString("Import"); DataSourceType GetDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ApplicationDiscoveryService_HASH) { return DataSourceType::ApplicationDiscoveryService; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DatabaseManagementPreference.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DatabaseManagementPreference.cpp index 1c4cf51a1f2..98d9f1bf87d 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DatabaseManagementPreference.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/DatabaseManagementPreference.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatabaseManagementPreferenceMapper { - static const int AWS_managed_HASH = HashingUtils::HashString("AWS-managed"); - static const int Self_manage_HASH = HashingUtils::HashString("Self-manage"); - static const int No_preference_HASH = HashingUtils::HashString("No preference"); + static constexpr uint32_t AWS_managed_HASH = ConstExprHashingUtils::HashString("AWS-managed"); + static constexpr uint32_t Self_manage_HASH = ConstExprHashingUtils::HashString("Self-manage"); + static constexpr uint32_t No_preference_HASH = ConstExprHashingUtils::HashString("No preference"); DatabaseManagementPreference GetDatabaseManagementPreferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_managed_HASH) { return DatabaseManagementPreference::AWS_managed; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/GroupName.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/GroupName.cpp index fa1050fc32c..cf331d07006 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/GroupName.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/GroupName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GroupNameMapper { - static const int ExternalId_HASH = HashingUtils::HashString("ExternalId"); - static const int ExternalSourceType_HASH = HashingUtils::HashString("ExternalSourceType"); + static constexpr uint32_t ExternalId_HASH = ConstExprHashingUtils::HashString("ExternalId"); + static constexpr uint32_t ExternalSourceType_HASH = ConstExprHashingUtils::HashString("ExternalSourceType"); GroupName GetGroupNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ExternalId_HASH) { return GroupName::ExternalId; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HeterogeneousTargetDatabaseEngine.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HeterogeneousTargetDatabaseEngine.cpp index b7d4a087d12..546f69a5a7c 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HeterogeneousTargetDatabaseEngine.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HeterogeneousTargetDatabaseEngine.cpp @@ -20,21 +20,21 @@ namespace Aws namespace HeterogeneousTargetDatabaseEngineMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); - static const int Amazon_Aurora_HASH = HashingUtils::HashString("Amazon Aurora"); - static const int AWS_PostgreSQL_HASH = HashingUtils::HashString("AWS PostgreSQL"); - static const int MySQL_HASH = HashingUtils::HashString("MySQL"); - static const int Microsoft_SQL_Server_HASH = HashingUtils::HashString("Microsoft SQL Server"); - static const int Oracle_Database_HASH = HashingUtils::HashString("Oracle Database"); - static const int MariaDB_HASH = HashingUtils::HashString("MariaDB"); - static const int SAP_HASH = HashingUtils::HashString("SAP"); - static const int Db2_LUW_HASH = HashingUtils::HashString("Db2 LUW"); - static const int MongoDB_HASH = HashingUtils::HashString("MongoDB"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); + static constexpr uint32_t Amazon_Aurora_HASH = ConstExprHashingUtils::HashString("Amazon Aurora"); + static constexpr uint32_t AWS_PostgreSQL_HASH = ConstExprHashingUtils::HashString("AWS PostgreSQL"); + static constexpr uint32_t MySQL_HASH = ConstExprHashingUtils::HashString("MySQL"); + static constexpr uint32_t Microsoft_SQL_Server_HASH = ConstExprHashingUtils::HashString("Microsoft SQL Server"); + static constexpr uint32_t Oracle_Database_HASH = ConstExprHashingUtils::HashString("Oracle Database"); + static constexpr uint32_t MariaDB_HASH = ConstExprHashingUtils::HashString("MariaDB"); + static constexpr uint32_t SAP_HASH = ConstExprHashingUtils::HashString("SAP"); + static constexpr uint32_t Db2_LUW_HASH = ConstExprHashingUtils::HashString("Db2 LUW"); + static constexpr uint32_t MongoDB_HASH = ConstExprHashingUtils::HashString("MongoDB"); HeterogeneousTargetDatabaseEngine GetHeterogeneousTargetDatabaseEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return HeterogeneousTargetDatabaseEngine::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HomogeneousTargetDatabaseEngine.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HomogeneousTargetDatabaseEngine.cpp index d8ffe29bd95..2a3c0e25cb3 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HomogeneousTargetDatabaseEngine.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/HomogeneousTargetDatabaseEngine.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HomogeneousTargetDatabaseEngineMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); HomogeneousTargetDatabaseEngine GetHomogeneousTargetDatabaseEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return HomogeneousTargetDatabaseEngine::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ImportFileTaskStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ImportFileTaskStatus.cpp index c037b2313ef..c2bd53ca15c 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ImportFileTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ImportFileTaskStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ImportFileTaskStatusMapper { - static const int ImportInProgress_HASH = HashingUtils::HashString("ImportInProgress"); - static const int ImportFailed_HASH = HashingUtils::HashString("ImportFailed"); - static const int ImportPartialSuccess_HASH = HashingUtils::HashString("ImportPartialSuccess"); - static const int ImportSuccess_HASH = HashingUtils::HashString("ImportSuccess"); - static const int DeleteInProgress_HASH = HashingUtils::HashString("DeleteInProgress"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); - static const int DeletePartialSuccess_HASH = HashingUtils::HashString("DeletePartialSuccess"); - static const int DeleteSuccess_HASH = HashingUtils::HashString("DeleteSuccess"); + static constexpr uint32_t ImportInProgress_HASH = ConstExprHashingUtils::HashString("ImportInProgress"); + static constexpr uint32_t ImportFailed_HASH = ConstExprHashingUtils::HashString("ImportFailed"); + static constexpr uint32_t ImportPartialSuccess_HASH = ConstExprHashingUtils::HashString("ImportPartialSuccess"); + static constexpr uint32_t ImportSuccess_HASH = ConstExprHashingUtils::HashString("ImportSuccess"); + static constexpr uint32_t DeleteInProgress_HASH = ConstExprHashingUtils::HashString("DeleteInProgress"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t DeletePartialSuccess_HASH = ConstExprHashingUtils::HashString("DeletePartialSuccess"); + static constexpr uint32_t DeleteSuccess_HASH = ConstExprHashingUtils::HashString("DeleteSuccess"); ImportFileTaskStatus GetImportFileTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ImportInProgress_HASH) { return ImportFileTaskStatus::ImportInProgress; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/InclusionStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/InclusionStatus.cpp index b3c8dcfa596..44073783608 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/InclusionStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/InclusionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InclusionStatusMapper { - static const int excludeFromAssessment_HASH = HashingUtils::HashString("excludeFromAssessment"); - static const int includeInAssessment_HASH = HashingUtils::HashString("includeInAssessment"); + static constexpr uint32_t excludeFromAssessment_HASH = ConstExprHashingUtils::HashString("excludeFromAssessment"); + static constexpr uint32_t includeInAssessment_HASH = ConstExprHashingUtils::HashString("includeInAssessment"); InclusionStatus GetInclusionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == excludeFromAssessment_HASH) { return InclusionStatus::excludeFromAssessment; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/NoPreferenceTargetDestination.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/NoPreferenceTargetDestination.cpp index aa0553fd58f..6397bd4b18d 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/NoPreferenceTargetDestination.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/NoPreferenceTargetDestination.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NoPreferenceTargetDestinationMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); - static const int AWS_Elastic_BeanStalk_HASH = HashingUtils::HashString("AWS Elastic BeanStalk"); - static const int AWS_Fargate_HASH = HashingUtils::HashString("AWS Fargate"); - static const int Amazon_Elastic_Cloud_Compute_EC2_HASH = HashingUtils::HashString("Amazon Elastic Cloud Compute (EC2)"); - static const int Amazon_Elastic_Container_Service_ECS_HASH = HashingUtils::HashString("Amazon Elastic Container Service (ECS)"); - static const int Amazon_Elastic_Kubernetes_Service_EKS_HASH = HashingUtils::HashString("Amazon Elastic Kubernetes Service (EKS)"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); + static constexpr uint32_t AWS_Elastic_BeanStalk_HASH = ConstExprHashingUtils::HashString("AWS Elastic BeanStalk"); + static constexpr uint32_t AWS_Fargate_HASH = ConstExprHashingUtils::HashString("AWS Fargate"); + static constexpr uint32_t Amazon_Elastic_Cloud_Compute_EC2_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Cloud Compute (EC2)"); + static constexpr uint32_t Amazon_Elastic_Container_Service_ECS_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Container Service (ECS)"); + static constexpr uint32_t Amazon_Elastic_Kubernetes_Service_EKS_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Kubernetes Service (EKS)"); NoPreferenceTargetDestination GetNoPreferenceTargetDestinationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return NoPreferenceTargetDestination::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OSType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OSType.cpp index ba704aa1696..8454872cea0 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OSType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OSType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OSTypeMapper { - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); OSType GetOSTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINUX_HASH) { return OSType::LINUX; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OutputFormat.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OutputFormat.cpp index cd7434972d5..92cd742b7e6 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/OutputFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutputFormatMapper { - static const int Excel_HASH = HashingUtils::HashString("Excel"); - static const int Json_HASH = HashingUtils::HashString("Json"); + static constexpr uint32_t Excel_HASH = ConstExprHashingUtils::HashString("Excel"); + static constexpr uint32_t Json_HASH = ConstExprHashingUtils::HashString("Json"); OutputFormat GetOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Excel_HASH) { return OutputFormat::Excel; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/PipelineType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/PipelineType.cpp index d4bd0e651ed..6b41e85b0e6 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/PipelineType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/PipelineType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PipelineTypeMapper { - static const int AZURE_DEVOPS_HASH = HashingUtils::HashString("AZURE_DEVOPS"); + static constexpr uint32_t AZURE_DEVOPS_HASH = ConstExprHashingUtils::HashString("AZURE_DEVOPS"); PipelineType GetPipelineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AZURE_DEVOPS_HASH) { return PipelineType::AZURE_DEVOPS; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RecommendationReportStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RecommendationReportStatus.cpp index 57c3b08db0c..4d15599ad3f 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RecommendationReportStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RecommendationReportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecommendationReportStatusMapper { - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); RecommendationReportStatus GetRecommendationReportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILED_HASH) { return RecommendationReportStatus::FAILED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ResourceSubType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ResourceSubType.cpp index 13d72cd21fc..2b554867917 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ResourceSubType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ResourceSubType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceSubTypeMapper { - static const int Database_HASH = HashingUtils::HashString("Database"); - static const int Process_HASH = HashingUtils::HashString("Process"); - static const int DatabaseProcess_HASH = HashingUtils::HashString("DatabaseProcess"); + static constexpr uint32_t Database_HASH = ConstExprHashingUtils::HashString("Database"); + static constexpr uint32_t Process_HASH = ConstExprHashingUtils::HashString("Process"); + static constexpr uint32_t DatabaseProcess_HASH = ConstExprHashingUtils::HashString("DatabaseProcess"); ResourceSubType GetResourceSubTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Database_HASH) { return ResourceSubType::Database; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAnalyzerName.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAnalyzerName.cpp index 625c5f215f5..6c4695d9d89 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAnalyzerName.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAnalyzerName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RunTimeAnalyzerNameMapper { - static const int A2C_ANALYZER_HASH = HashingUtils::HashString("A2C_ANALYZER"); - static const int REHOST_ANALYZER_HASH = HashingUtils::HashString("REHOST_ANALYZER"); - static const int EMP_PA_ANALYZER_HASH = HashingUtils::HashString("EMP_PA_ANALYZER"); - static const int DATABASE_ANALYZER_HASH = HashingUtils::HashString("DATABASE_ANALYZER"); - static const int SCT_ANALYZER_HASH = HashingUtils::HashString("SCT_ANALYZER"); + static constexpr uint32_t A2C_ANALYZER_HASH = ConstExprHashingUtils::HashString("A2C_ANALYZER"); + static constexpr uint32_t REHOST_ANALYZER_HASH = ConstExprHashingUtils::HashString("REHOST_ANALYZER"); + static constexpr uint32_t EMP_PA_ANALYZER_HASH = ConstExprHashingUtils::HashString("EMP_PA_ANALYZER"); + static constexpr uint32_t DATABASE_ANALYZER_HASH = ConstExprHashingUtils::HashString("DATABASE_ANALYZER"); + static constexpr uint32_t SCT_ANALYZER_HASH = ConstExprHashingUtils::HashString("SCT_ANALYZER"); RunTimeAnalyzerName GetRunTimeAnalyzerNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == A2C_ANALYZER_HASH) { return RunTimeAnalyzerName::A2C_ANALYZER; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAssessmentStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAssessmentStatus.cpp index 7dde0cc3a30..dc5576a2d56 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAssessmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RunTimeAssessmentStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace RunTimeAssessmentStatusMapper { - static const int dataCollectionTaskToBeScheduled_HASH = HashingUtils::HashString("dataCollectionTaskToBeScheduled"); - static const int dataCollectionTaskScheduled_HASH = HashingUtils::HashString("dataCollectionTaskScheduled"); - static const int dataCollectionTaskStarted_HASH = HashingUtils::HashString("dataCollectionTaskStarted"); - static const int dataCollectionTaskStopped_HASH = HashingUtils::HashString("dataCollectionTaskStopped"); - static const int dataCollectionTaskSuccess_HASH = HashingUtils::HashString("dataCollectionTaskSuccess"); - static const int dataCollectionTaskFailed_HASH = HashingUtils::HashString("dataCollectionTaskFailed"); - static const int dataCollectionTaskPartialSuccess_HASH = HashingUtils::HashString("dataCollectionTaskPartialSuccess"); + static constexpr uint32_t dataCollectionTaskToBeScheduled_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskToBeScheduled"); + static constexpr uint32_t dataCollectionTaskScheduled_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskScheduled"); + static constexpr uint32_t dataCollectionTaskStarted_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskStarted"); + static constexpr uint32_t dataCollectionTaskStopped_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskStopped"); + static constexpr uint32_t dataCollectionTaskSuccess_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskSuccess"); + static constexpr uint32_t dataCollectionTaskFailed_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskFailed"); + static constexpr uint32_t dataCollectionTaskPartialSuccess_HASH = ConstExprHashingUtils::HashString("dataCollectionTaskPartialSuccess"); RunTimeAssessmentStatus GetRunTimeAssessmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == dataCollectionTaskToBeScheduled_HASH) { return RunTimeAssessmentStatus::dataCollectionTaskToBeScheduled; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RuntimeAnalysisStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RuntimeAnalysisStatus.cpp index ee59534b1a9..0f6476eed43 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RuntimeAnalysisStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/RuntimeAnalysisStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RuntimeAnalysisStatusMapper { - static const int ANALYSIS_TO_BE_SCHEDULED_HASH = HashingUtils::HashString("ANALYSIS_TO_BE_SCHEDULED"); - static const int ANALYSIS_STARTED_HASH = HashingUtils::HashString("ANALYSIS_STARTED"); - static const int ANALYSIS_SUCCESS_HASH = HashingUtils::HashString("ANALYSIS_SUCCESS"); - static const int ANALYSIS_FAILED_HASH = HashingUtils::HashString("ANALYSIS_FAILED"); + static constexpr uint32_t ANALYSIS_TO_BE_SCHEDULED_HASH = ConstExprHashingUtils::HashString("ANALYSIS_TO_BE_SCHEDULED"); + static constexpr uint32_t ANALYSIS_STARTED_HASH = ConstExprHashingUtils::HashString("ANALYSIS_STARTED"); + static constexpr uint32_t ANALYSIS_SUCCESS_HASH = ConstExprHashingUtils::HashString("ANALYSIS_SUCCESS"); + static constexpr uint32_t ANALYSIS_FAILED_HASH = ConstExprHashingUtils::HashString("ANALYSIS_FAILED"); RuntimeAnalysisStatus GetRuntimeAnalysisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANALYSIS_TO_BE_SCHEDULED_HASH) { return RuntimeAnalysisStatus::ANALYSIS_TO_BE_SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SelfManageTargetDestination.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SelfManageTargetDestination.cpp index 97fac8df0c1..30b986b5250 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SelfManageTargetDestination.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SelfManageTargetDestination.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SelfManageTargetDestinationMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); - static const int Amazon_Elastic_Cloud_Compute_EC2_HASH = HashingUtils::HashString("Amazon Elastic Cloud Compute (EC2)"); - static const int Amazon_Elastic_Container_Service_ECS_HASH = HashingUtils::HashString("Amazon Elastic Container Service (ECS)"); - static const int Amazon_Elastic_Kubernetes_Service_EKS_HASH = HashingUtils::HashString("Amazon Elastic Kubernetes Service (EKS)"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); + static constexpr uint32_t Amazon_Elastic_Cloud_Compute_EC2_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Cloud Compute (EC2)"); + static constexpr uint32_t Amazon_Elastic_Container_Service_ECS_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Container Service (ECS)"); + static constexpr uint32_t Amazon_Elastic_Kubernetes_Service_EKS_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Kubernetes Service (EKS)"); SelfManageTargetDestination GetSelfManageTargetDestinationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return SelfManageTargetDestination::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerCriteria.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerCriteria.cpp index 2caa38bf322..bec0fe6cc19 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerCriteria.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerCriteria.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ServerCriteriaMapper { - static const int NOT_DEFINED_HASH = HashingUtils::HashString("NOT_DEFINED"); - static const int OS_NAME_HASH = HashingUtils::HashString("OS_NAME"); - static const int STRATEGY_HASH = HashingUtils::HashString("STRATEGY"); - static const int DESTINATION_HASH = HashingUtils::HashString("DESTINATION"); - static const int SERVER_ID_HASH = HashingUtils::HashString("SERVER_ID"); - static const int ANALYSIS_STATUS_HASH = HashingUtils::HashString("ANALYSIS_STATUS"); - static const int ERROR_CATEGORY_HASH = HashingUtils::HashString("ERROR_CATEGORY"); + static constexpr uint32_t NOT_DEFINED_HASH = ConstExprHashingUtils::HashString("NOT_DEFINED"); + static constexpr uint32_t OS_NAME_HASH = ConstExprHashingUtils::HashString("OS_NAME"); + static constexpr uint32_t STRATEGY_HASH = ConstExprHashingUtils::HashString("STRATEGY"); + static constexpr uint32_t DESTINATION_HASH = ConstExprHashingUtils::HashString("DESTINATION"); + static constexpr uint32_t SERVER_ID_HASH = ConstExprHashingUtils::HashString("SERVER_ID"); + static constexpr uint32_t ANALYSIS_STATUS_HASH = ConstExprHashingUtils::HashString("ANALYSIS_STATUS"); + static constexpr uint32_t ERROR_CATEGORY_HASH = ConstExprHashingUtils::HashString("ERROR_CATEGORY"); ServerCriteria GetServerCriteriaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_DEFINED_HASH) { return ServerCriteria::NOT_DEFINED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerErrorCategory.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerErrorCategory.cpp index 396a71efa3a..51bec7c9bd3 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerErrorCategory.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerErrorCategory.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServerErrorCategoryMapper { - static const int CONNECTIVITY_ERROR_HASH = HashingUtils::HashString("CONNECTIVITY_ERROR"); - static const int CREDENTIAL_ERROR_HASH = HashingUtils::HashString("CREDENTIAL_ERROR"); - static const int PERMISSION_ERROR_HASH = HashingUtils::HashString("PERMISSION_ERROR"); - static const int ARCHITECTURE_ERROR_HASH = HashingUtils::HashString("ARCHITECTURE_ERROR"); - static const int OTHER_ERROR_HASH = HashingUtils::HashString("OTHER_ERROR"); + static constexpr uint32_t CONNECTIVITY_ERROR_HASH = ConstExprHashingUtils::HashString("CONNECTIVITY_ERROR"); + static constexpr uint32_t CREDENTIAL_ERROR_HASH = ConstExprHashingUtils::HashString("CREDENTIAL_ERROR"); + static constexpr uint32_t PERMISSION_ERROR_HASH = ConstExprHashingUtils::HashString("PERMISSION_ERROR"); + static constexpr uint32_t ARCHITECTURE_ERROR_HASH = ConstExprHashingUtils::HashString("ARCHITECTURE_ERROR"); + static constexpr uint32_t OTHER_ERROR_HASH = ConstExprHashingUtils::HashString("OTHER_ERROR"); ServerErrorCategory GetServerErrorCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTIVITY_ERROR_HASH) { return ServerErrorCategory::CONNECTIVITY_ERROR; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerOsType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerOsType.cpp index 5fb771fcca5..626c73203a4 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerOsType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/ServerOsType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServerOsTypeMapper { - static const int WindowsServer_HASH = HashingUtils::HashString("WindowsServer"); - static const int AmazonLinux_HASH = HashingUtils::HashString("AmazonLinux"); - static const int EndOfSupportWindowsServer_HASH = HashingUtils::HashString("EndOfSupportWindowsServer"); - static const int Redhat_HASH = HashingUtils::HashString("Redhat"); - static const int Other_HASH = HashingUtils::HashString("Other"); + static constexpr uint32_t WindowsServer_HASH = ConstExprHashingUtils::HashString("WindowsServer"); + static constexpr uint32_t AmazonLinux_HASH = ConstExprHashingUtils::HashString("AmazonLinux"); + static constexpr uint32_t EndOfSupportWindowsServer_HASH = ConstExprHashingUtils::HashString("EndOfSupportWindowsServer"); + static constexpr uint32_t Redhat_HASH = ConstExprHashingUtils::HashString("Redhat"); + static constexpr uint32_t Other_HASH = ConstExprHashingUtils::HashString("Other"); ServerOsType GetServerOsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WindowsServer_HASH) { return ServerOsType::WindowsServer; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Severity.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Severity.cpp index f3e72d54d87..2a8f7854c2e 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Severity.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Severity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SeverityMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); Severity GetSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return Severity::HIGH; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SortOrder.cpp index c428a4b9b86..ac5240c93ca 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeAnalyzerName.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeAnalyzerName.cpp index 7561b660b77..e5c259dae54 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeAnalyzerName.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeAnalyzerName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SourceCodeAnalyzerNameMapper { - static const int CSHARP_ANALYZER_HASH = HashingUtils::HashString("CSHARP_ANALYZER"); - static const int JAVA_ANALYZER_HASH = HashingUtils::HashString("JAVA_ANALYZER"); - static const int BYTECODE_ANALYZER_HASH = HashingUtils::HashString("BYTECODE_ANALYZER"); - static const int PORTING_ASSISTANT_HASH = HashingUtils::HashString("PORTING_ASSISTANT"); + static constexpr uint32_t CSHARP_ANALYZER_HASH = ConstExprHashingUtils::HashString("CSHARP_ANALYZER"); + static constexpr uint32_t JAVA_ANALYZER_HASH = ConstExprHashingUtils::HashString("JAVA_ANALYZER"); + static constexpr uint32_t BYTECODE_ANALYZER_HASH = ConstExprHashingUtils::HashString("BYTECODE_ANALYZER"); + static constexpr uint32_t PORTING_ASSISTANT_HASH = ConstExprHashingUtils::HashString("PORTING_ASSISTANT"); SourceCodeAnalyzerName GetSourceCodeAnalyzerNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSHARP_ANALYZER_HASH) { return SourceCodeAnalyzerName::CSHARP_ANALYZER; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SrcCodeOrDbAnalysisStatus.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SrcCodeOrDbAnalysisStatus.cpp index 4260819bd72..ff893cca9fa 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SrcCodeOrDbAnalysisStatus.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/SrcCodeOrDbAnalysisStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SrcCodeOrDbAnalysisStatusMapper { - static const int ANALYSIS_TO_BE_SCHEDULED_HASH = HashingUtils::HashString("ANALYSIS_TO_BE_SCHEDULED"); - static const int ANALYSIS_STARTED_HASH = HashingUtils::HashString("ANALYSIS_STARTED"); - static const int ANALYSIS_SUCCESS_HASH = HashingUtils::HashString("ANALYSIS_SUCCESS"); - static const int ANALYSIS_FAILED_HASH = HashingUtils::HashString("ANALYSIS_FAILED"); - static const int ANALYSIS_PARTIAL_SUCCESS_HASH = HashingUtils::HashString("ANALYSIS_PARTIAL_SUCCESS"); - static const int UNCONFIGURED_HASH = HashingUtils::HashString("UNCONFIGURED"); - static const int CONFIGURED_HASH = HashingUtils::HashString("CONFIGURED"); + static constexpr uint32_t ANALYSIS_TO_BE_SCHEDULED_HASH = ConstExprHashingUtils::HashString("ANALYSIS_TO_BE_SCHEDULED"); + static constexpr uint32_t ANALYSIS_STARTED_HASH = ConstExprHashingUtils::HashString("ANALYSIS_STARTED"); + static constexpr uint32_t ANALYSIS_SUCCESS_HASH = ConstExprHashingUtils::HashString("ANALYSIS_SUCCESS"); + static constexpr uint32_t ANALYSIS_FAILED_HASH = ConstExprHashingUtils::HashString("ANALYSIS_FAILED"); + static constexpr uint32_t ANALYSIS_PARTIAL_SUCCESS_HASH = ConstExprHashingUtils::HashString("ANALYSIS_PARTIAL_SUCCESS"); + static constexpr uint32_t UNCONFIGURED_HASH = ConstExprHashingUtils::HashString("UNCONFIGURED"); + static constexpr uint32_t CONFIGURED_HASH = ConstExprHashingUtils::HashString("CONFIGURED"); SrcCodeOrDbAnalysisStatus GetSrcCodeOrDbAnalysisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANALYSIS_TO_BE_SCHEDULED_HASH) { return SrcCodeOrDbAnalysisStatus::ANALYSIS_TO_BE_SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Strategy.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Strategy.cpp index eb441526b25..ff018db0475 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Strategy.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/Strategy.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StrategyMapper { - static const int Rehost_HASH = HashingUtils::HashString("Rehost"); - static const int Retirement_HASH = HashingUtils::HashString("Retirement"); - static const int Refactor_HASH = HashingUtils::HashString("Refactor"); - static const int Replatform_HASH = HashingUtils::HashString("Replatform"); - static const int Retain_HASH = HashingUtils::HashString("Retain"); - static const int Relocate_HASH = HashingUtils::HashString("Relocate"); - static const int Repurchase_HASH = HashingUtils::HashString("Repurchase"); + static constexpr uint32_t Rehost_HASH = ConstExprHashingUtils::HashString("Rehost"); + static constexpr uint32_t Retirement_HASH = ConstExprHashingUtils::HashString("Retirement"); + static constexpr uint32_t Refactor_HASH = ConstExprHashingUtils::HashString("Refactor"); + static constexpr uint32_t Replatform_HASH = ConstExprHashingUtils::HashString("Replatform"); + static constexpr uint32_t Retain_HASH = ConstExprHashingUtils::HashString("Retain"); + static constexpr uint32_t Relocate_HASH = ConstExprHashingUtils::HashString("Relocate"); + static constexpr uint32_t Repurchase_HASH = ConstExprHashingUtils::HashString("Repurchase"); Strategy GetStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Rehost_HASH) { return Strategy::Rehost; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/StrategyRecommendation.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/StrategyRecommendation.cpp index 6c9b787cedc..3f99b6c1de3 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/StrategyRecommendation.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/StrategyRecommendation.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StrategyRecommendationMapper { - static const int recommended_HASH = HashingUtils::HashString("recommended"); - static const int viableOption_HASH = HashingUtils::HashString("viableOption"); - static const int notRecommended_HASH = HashingUtils::HashString("notRecommended"); - static const int potential_HASH = HashingUtils::HashString("potential"); + static constexpr uint32_t recommended_HASH = ConstExprHashingUtils::HashString("recommended"); + static constexpr uint32_t viableOption_HASH = ConstExprHashingUtils::HashString("viableOption"); + static constexpr uint32_t notRecommended_HASH = ConstExprHashingUtils::HashString("notRecommended"); + static constexpr uint32_t potential_HASH = ConstExprHashingUtils::HashString("potential"); StrategyRecommendation GetStrategyRecommendationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == recommended_HASH) { return StrategyRecommendation::recommended; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDatabaseEngine.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDatabaseEngine.cpp index 503dd25789f..8fb2da7d15c 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDatabaseEngine.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDatabaseEngine.cpp @@ -20,21 +20,21 @@ namespace Aws namespace TargetDatabaseEngineMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); - static const int Amazon_Aurora_HASH = HashingUtils::HashString("Amazon Aurora"); - static const int AWS_PostgreSQL_HASH = HashingUtils::HashString("AWS PostgreSQL"); - static const int MySQL_HASH = HashingUtils::HashString("MySQL"); - static const int Microsoft_SQL_Server_HASH = HashingUtils::HashString("Microsoft SQL Server"); - static const int Oracle_Database_HASH = HashingUtils::HashString("Oracle Database"); - static const int MariaDB_HASH = HashingUtils::HashString("MariaDB"); - static const int SAP_HASH = HashingUtils::HashString("SAP"); - static const int Db2_LUW_HASH = HashingUtils::HashString("Db2 LUW"); - static const int MongoDB_HASH = HashingUtils::HashString("MongoDB"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); + static constexpr uint32_t Amazon_Aurora_HASH = ConstExprHashingUtils::HashString("Amazon Aurora"); + static constexpr uint32_t AWS_PostgreSQL_HASH = ConstExprHashingUtils::HashString("AWS PostgreSQL"); + static constexpr uint32_t MySQL_HASH = ConstExprHashingUtils::HashString("MySQL"); + static constexpr uint32_t Microsoft_SQL_Server_HASH = ConstExprHashingUtils::HashString("Microsoft SQL Server"); + static constexpr uint32_t Oracle_Database_HASH = ConstExprHashingUtils::HashString("Oracle Database"); + static constexpr uint32_t MariaDB_HASH = ConstExprHashingUtils::HashString("MariaDB"); + static constexpr uint32_t SAP_HASH = ConstExprHashingUtils::HashString("SAP"); + static constexpr uint32_t Db2_LUW_HASH = ConstExprHashingUtils::HashString("Db2 LUW"); + static constexpr uint32_t MongoDB_HASH = ConstExprHashingUtils::HashString("MongoDB"); TargetDatabaseEngine GetTargetDatabaseEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return TargetDatabaseEngine::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDestination.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDestination.cpp index dfd15d780c6..fa84607da91 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDestination.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TargetDestination.cpp @@ -20,25 +20,25 @@ namespace Aws namespace TargetDestinationMapper { - static const int None_specified_HASH = HashingUtils::HashString("None specified"); - static const int AWS_Elastic_BeanStalk_HASH = HashingUtils::HashString("AWS Elastic BeanStalk"); - static const int AWS_Fargate_HASH = HashingUtils::HashString("AWS Fargate"); - static const int Amazon_Elastic_Cloud_Compute_EC2_HASH = HashingUtils::HashString("Amazon Elastic Cloud Compute (EC2)"); - static const int Amazon_Elastic_Container_Service_ECS_HASH = HashingUtils::HashString("Amazon Elastic Container Service (ECS)"); - static const int Amazon_Elastic_Kubernetes_Service_EKS_HASH = HashingUtils::HashString("Amazon Elastic Kubernetes Service (EKS)"); - static const int Aurora_MySQL_HASH = HashingUtils::HashString("Aurora MySQL"); - static const int Aurora_PostgreSQL_HASH = HashingUtils::HashString("Aurora PostgreSQL"); - static const int Amazon_Relational_Database_Service_on_MySQL_HASH = HashingUtils::HashString("Amazon Relational Database Service on MySQL"); - static const int Amazon_Relational_Database_Service_on_PostgreSQL_HASH = HashingUtils::HashString("Amazon Relational Database Service on PostgreSQL"); - static const int Amazon_DocumentDB_HASH = HashingUtils::HashString("Amazon DocumentDB"); - static const int Amazon_DynamoDB_HASH = HashingUtils::HashString("Amazon DynamoDB"); - static const int Amazon_Relational_Database_Service_HASH = HashingUtils::HashString("Amazon Relational Database Service"); - static const int Babelfish_for_Aurora_PostgreSQL_HASH = HashingUtils::HashString("Babelfish for Aurora PostgreSQL"); + static constexpr uint32_t None_specified_HASH = ConstExprHashingUtils::HashString("None specified"); + static constexpr uint32_t AWS_Elastic_BeanStalk_HASH = ConstExprHashingUtils::HashString("AWS Elastic BeanStalk"); + static constexpr uint32_t AWS_Fargate_HASH = ConstExprHashingUtils::HashString("AWS Fargate"); + static constexpr uint32_t Amazon_Elastic_Cloud_Compute_EC2_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Cloud Compute (EC2)"); + static constexpr uint32_t Amazon_Elastic_Container_Service_ECS_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Container Service (ECS)"); + static constexpr uint32_t Amazon_Elastic_Kubernetes_Service_EKS_HASH = ConstExprHashingUtils::HashString("Amazon Elastic Kubernetes Service (EKS)"); + static constexpr uint32_t Aurora_MySQL_HASH = ConstExprHashingUtils::HashString("Aurora MySQL"); + static constexpr uint32_t Aurora_PostgreSQL_HASH = ConstExprHashingUtils::HashString("Aurora PostgreSQL"); + static constexpr uint32_t Amazon_Relational_Database_Service_on_MySQL_HASH = ConstExprHashingUtils::HashString("Amazon Relational Database Service on MySQL"); + static constexpr uint32_t Amazon_Relational_Database_Service_on_PostgreSQL_HASH = ConstExprHashingUtils::HashString("Amazon Relational Database Service on PostgreSQL"); + static constexpr uint32_t Amazon_DocumentDB_HASH = ConstExprHashingUtils::HashString("Amazon DocumentDB"); + static constexpr uint32_t Amazon_DynamoDB_HASH = ConstExprHashingUtils::HashString("Amazon DynamoDB"); + static constexpr uint32_t Amazon_Relational_Database_Service_HASH = ConstExprHashingUtils::HashString("Amazon Relational Database Service"); + static constexpr uint32_t Babelfish_for_Aurora_PostgreSQL_HASH = ConstExprHashingUtils::HashString("Babelfish for Aurora PostgreSQL"); TargetDestination GetTargetDestinationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_specified_HASH) { return TargetDestination::None_specified; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TransformationToolName.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TransformationToolName.cpp index 61f942e4e16..f4302a2635d 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TransformationToolName.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/TransformationToolName.cpp @@ -20,21 +20,21 @@ namespace Aws namespace TransformationToolNameMapper { - static const int App2Container_HASH = HashingUtils::HashString("App2Container"); - static const int Porting_Assistant_For_NET_HASH = HashingUtils::HashString("Porting Assistant For .NET"); - static const int End_of_Support_Migration_HASH = HashingUtils::HashString("End of Support Migration"); - static const int Windows_Web_Application_Migration_Assistant_HASH = HashingUtils::HashString("Windows Web Application Migration Assistant"); - static const int Application_Migration_Service_HASH = HashingUtils::HashString("Application Migration Service"); - static const int Strategy_Recommendation_Support_HASH = HashingUtils::HashString("Strategy Recommendation Support"); - static const int In_Place_Operating_System_Upgrade_HASH = HashingUtils::HashString("In Place Operating System Upgrade"); - static const int Schema_Conversion_Tool_HASH = HashingUtils::HashString("Schema Conversion Tool"); - static const int Database_Migration_Service_HASH = HashingUtils::HashString("Database Migration Service"); - static const int Native_SQL_Server_Backup_Restore_HASH = HashingUtils::HashString("Native SQL Server Backup/Restore"); + static constexpr uint32_t App2Container_HASH = ConstExprHashingUtils::HashString("App2Container"); + static constexpr uint32_t Porting_Assistant_For_NET_HASH = ConstExprHashingUtils::HashString("Porting Assistant For .NET"); + static constexpr uint32_t End_of_Support_Migration_HASH = ConstExprHashingUtils::HashString("End of Support Migration"); + static constexpr uint32_t Windows_Web_Application_Migration_Assistant_HASH = ConstExprHashingUtils::HashString("Windows Web Application Migration Assistant"); + static constexpr uint32_t Application_Migration_Service_HASH = ConstExprHashingUtils::HashString("Application Migration Service"); + static constexpr uint32_t Strategy_Recommendation_Support_HASH = ConstExprHashingUtils::HashString("Strategy Recommendation Support"); + static constexpr uint32_t In_Place_Operating_System_Upgrade_HASH = ConstExprHashingUtils::HashString("In Place Operating System Upgrade"); + static constexpr uint32_t Schema_Conversion_Tool_HASH = ConstExprHashingUtils::HashString("Schema Conversion Tool"); + static constexpr uint32_t Database_Migration_Service_HASH = ConstExprHashingUtils::HashString("Database Migration Service"); + static constexpr uint32_t Native_SQL_Server_Backup_Restore_HASH = ConstExprHashingUtils::HashString("Native SQL Server Backup/Restore"); TransformationToolName GetTransformationToolNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == App2Container_HASH) { return TransformationToolName::App2Container; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControl.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControl.cpp index bd8c93dd633..7d46bb6abdb 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControl.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControl.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VersionControlMapper { - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int GITHUB_ENTERPRISE_HASH = HashingUtils::HashString("GITHUB_ENTERPRISE"); - static const int AZURE_DEVOPS_GIT_HASH = HashingUtils::HashString("AZURE_DEVOPS_GIT"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t GITHUB_ENTERPRISE_HASH = ConstExprHashingUtils::HashString("GITHUB_ENTERPRISE"); + static constexpr uint32_t AZURE_DEVOPS_GIT_HASH = ConstExprHashingUtils::HashString("AZURE_DEVOPS_GIT"); VersionControl GetVersionControlForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HASH) { return VersionControl::GITHUB; diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControlType.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControlType.cpp index 4c3119e8654..e48204062fe 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControlType.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/model/VersionControlType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VersionControlTypeMapper { - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int GITHUB_ENTERPRISE_HASH = HashingUtils::HashString("GITHUB_ENTERPRISE"); - static const int AZURE_DEVOPS_GIT_HASH = HashingUtils::HashString("AZURE_DEVOPS_GIT"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t GITHUB_ENTERPRISE_HASH = ConstExprHashingUtils::HashString("GITHUB_ENTERPRISE"); + static constexpr uint32_t AZURE_DEVOPS_GIT_HASH = ConstExprHashingUtils::HashString("AZURE_DEVOPS_GIT"); VersionControlType GetVersionControlTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HASH) { return VersionControlType::GITHUB; diff --git a/generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp index e24a0ba0ee7..4293260f0f2 100644 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp +++ b/generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp @@ -40,17 +40,17 @@ template<> AWS_MOBILE_API TooManyRequestsException MobileError::GetModeledError( namespace MobileErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int ACCOUNT_ACTION_REQUIRED_HASH = HashingUtils::HashString("AccountActionRequiredException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t ACCOUNT_ACTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("AccountActionRequiredException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp index 7c5e17db463..f0d005ca89d 100644 --- a/generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp +++ b/generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PlatformMapper { - static const int OSX_HASH = HashingUtils::HashString("OSX"); - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); - static const int OBJC_HASH = HashingUtils::HashString("OBJC"); - static const int SWIFT_HASH = HashingUtils::HashString("SWIFT"); - static const int ANDROID__HASH = HashingUtils::HashString("ANDROID"); - static const int JAVASCRIPT_HASH = HashingUtils::HashString("JAVASCRIPT"); + static constexpr uint32_t OSX_HASH = ConstExprHashingUtils::HashString("OSX"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); + static constexpr uint32_t OBJC_HASH = ConstExprHashingUtils::HashString("OBJC"); + static constexpr uint32_t SWIFT_HASH = ConstExprHashingUtils::HashString("SWIFT"); + static constexpr uint32_t ANDROID__HASH = ConstExprHashingUtils::HashString("ANDROID"); + static constexpr uint32_t JAVASCRIPT_HASH = ConstExprHashingUtils::HashString("JAVASCRIPT"); Platform GetPlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OSX_HASH) { return Platform::OSX; diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp index fea872ff132..35c79c9bf20 100644 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp +++ b/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProjectStateMapper { - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int SYNCING_HASH = HashingUtils::HashString("SYNCING"); - static const int IMPORTING_HASH = HashingUtils::HashString("IMPORTING"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); + static constexpr uint32_t SYNCING_HASH = ConstExprHashingUtils::HashString("SYNCING"); + static constexpr uint32_t IMPORTING_HASH = ConstExprHashingUtils::HashString("IMPORTING"); ProjectState GetProjectStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NORMAL_HASH) { return ProjectState::NORMAL; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchErrors.cpp b/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchErrors.cpp index 98869684fd6..9019a6e3908 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchErrors.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchErrors.cpp @@ -33,20 +33,20 @@ template<> AWS_CLOUDWATCH_API DashboardInvalidInputError CloudWatchError::GetMod namespace CloudWatchErrorMapper { -static const int LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("LimitExceeded"); -static const int MISSING_REQUIRED_PARAMETER_HASH = HashingUtils::HashString("MissingParameter"); -static const int DASHBOARD_INVALID_INPUT_HASH = HashingUtils::HashString("InvalidParameterInput"); -static const int DASHBOARD_NOT_FOUND_HASH = HashingUtils::HashString("ResourceNotFound"); -static const int INVALID_FORMAT_FAULT_HASH = HashingUtils::HashString("InvalidFormat"); -static const int INTERNAL_SERVICE_FAULT_HASH = HashingUtils::HashString("InternalServiceError"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextToken"); +static constexpr uint32_t LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); +static constexpr uint32_t MISSING_REQUIRED_PARAMETER_HASH = ConstExprHashingUtils::HashString("MissingParameter"); +static constexpr uint32_t DASHBOARD_INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidParameterInput"); +static constexpr uint32_t DASHBOARD_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); +static constexpr uint32_t INVALID_FORMAT_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidFormat"); +static constexpr uint32_t INTERNAL_SERVICE_FAULT_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextToken"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/ActionsSuppressedBy.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/ActionsSuppressedBy.cpp index 46f7080aa7f..edd7adc88ce 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/ActionsSuppressedBy.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/ActionsSuppressedBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionsSuppressedByMapper { - static const int WaitPeriod_HASH = HashingUtils::HashString("WaitPeriod"); - static const int ExtensionPeriod_HASH = HashingUtils::HashString("ExtensionPeriod"); - static const int Alarm_HASH = HashingUtils::HashString("Alarm"); + static constexpr uint32_t WaitPeriod_HASH = ConstExprHashingUtils::HashString("WaitPeriod"); + static constexpr uint32_t ExtensionPeriod_HASH = ConstExprHashingUtils::HashString("ExtensionPeriod"); + static constexpr uint32_t Alarm_HASH = ConstExprHashingUtils::HashString("Alarm"); ActionsSuppressedBy GetActionsSuppressedByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WaitPeriod_HASH) { return ActionsSuppressedBy::WaitPeriod; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/AlarmType.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/AlarmType.cpp index 0acf35398af..1e1994dfdb3 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/AlarmType.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/AlarmType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AlarmTypeMapper { - static const int CompositeAlarm_HASH = HashingUtils::HashString("CompositeAlarm"); - static const int MetricAlarm_HASH = HashingUtils::HashString("MetricAlarm"); + static constexpr uint32_t CompositeAlarm_HASH = ConstExprHashingUtils::HashString("CompositeAlarm"); + static constexpr uint32_t MetricAlarm_HASH = ConstExprHashingUtils::HashString("MetricAlarm"); AlarmType GetAlarmTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CompositeAlarm_HASH) { return AlarmType::CompositeAlarm; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorStateValue.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorStateValue.cpp index a560f77598f..1f50d84c91b 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorStateValue.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorStateValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnomalyDetectorStateValueMapper { - static const int PENDING_TRAINING_HASH = HashingUtils::HashString("PENDING_TRAINING"); - static const int TRAINED_INSUFFICIENT_DATA_HASH = HashingUtils::HashString("TRAINED_INSUFFICIENT_DATA"); - static const int TRAINED_HASH = HashingUtils::HashString("TRAINED"); + static constexpr uint32_t PENDING_TRAINING_HASH = ConstExprHashingUtils::HashString("PENDING_TRAINING"); + static constexpr uint32_t TRAINED_INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("TRAINED_INSUFFICIENT_DATA"); + static constexpr uint32_t TRAINED_HASH = ConstExprHashingUtils::HashString("TRAINED"); AnomalyDetectorStateValue GetAnomalyDetectorStateValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_TRAINING_HASH) { return AnomalyDetectorStateValue::PENDING_TRAINING; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorType.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorType.cpp index 590a5220ab8..fd598ce9333 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorType.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/AnomalyDetectorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AnomalyDetectorTypeMapper { - static const int SINGLE_METRIC_HASH = HashingUtils::HashString("SINGLE_METRIC"); - static const int METRIC_MATH_HASH = HashingUtils::HashString("METRIC_MATH"); + static constexpr uint32_t SINGLE_METRIC_HASH = ConstExprHashingUtils::HashString("SINGLE_METRIC"); + static constexpr uint32_t METRIC_MATH_HASH = ConstExprHashingUtils::HashString("METRIC_MATH"); AnomalyDetectorType GetAnomalyDetectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_METRIC_HASH) { return AnomalyDetectorType::SINGLE_METRIC; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/ComparisonOperator.cpp index 3357d8053c6..14c0806906d 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/ComparisonOperator.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GreaterThanOrEqualToThreshold_HASH = HashingUtils::HashString("GreaterThanOrEqualToThreshold"); - static const int GreaterThanThreshold_HASH = HashingUtils::HashString("GreaterThanThreshold"); - static const int LessThanThreshold_HASH = HashingUtils::HashString("LessThanThreshold"); - static const int LessThanOrEqualToThreshold_HASH = HashingUtils::HashString("LessThanOrEqualToThreshold"); - static const int LessThanLowerOrGreaterThanUpperThreshold_HASH = HashingUtils::HashString("LessThanLowerOrGreaterThanUpperThreshold"); - static const int LessThanLowerThreshold_HASH = HashingUtils::HashString("LessThanLowerThreshold"); - static const int GreaterThanUpperThreshold_HASH = HashingUtils::HashString("GreaterThanUpperThreshold"); + static constexpr uint32_t GreaterThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanThreshold"); + static constexpr uint32_t LessThanThreshold_HASH = ConstExprHashingUtils::HashString("LessThanThreshold"); + static constexpr uint32_t LessThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("LessThanOrEqualToThreshold"); + static constexpr uint32_t LessThanLowerOrGreaterThanUpperThreshold_HASH = ConstExprHashingUtils::HashString("LessThanLowerOrGreaterThanUpperThreshold"); + static constexpr uint32_t LessThanLowerThreshold_HASH = ConstExprHashingUtils::HashString("LessThanLowerThreshold"); + static constexpr uint32_t GreaterThanUpperThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanUpperThreshold"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreaterThanOrEqualToThreshold_HASH) { return ComparisonOperator::GreaterThanOrEqualToThreshold; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/EvaluationState.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/EvaluationState.cpp index 493cdc2840d..3c092a1ede0 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/EvaluationState.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/EvaluationState.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EvaluationStateMapper { - static const int PARTIAL_DATA_HASH = HashingUtils::HashString("PARTIAL_DATA"); + static constexpr uint32_t PARTIAL_DATA_HASH = ConstExprHashingUtils::HashString("PARTIAL_DATA"); EvaluationState GetEvaluationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARTIAL_DATA_HASH) { return EvaluationState::PARTIAL_DATA; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/HistoryItemType.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/HistoryItemType.cpp index 6b12a8b77ed..b56af4130da 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/HistoryItemType.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/HistoryItemType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HistoryItemTypeMapper { - static const int ConfigurationUpdate_HASH = HashingUtils::HashString("ConfigurationUpdate"); - static const int StateUpdate_HASH = HashingUtils::HashString("StateUpdate"); - static const int Action_HASH = HashingUtils::HashString("Action"); + static constexpr uint32_t ConfigurationUpdate_HASH = ConstExprHashingUtils::HashString("ConfigurationUpdate"); + static constexpr uint32_t StateUpdate_HASH = ConstExprHashingUtils::HashString("StateUpdate"); + static constexpr uint32_t Action_HASH = ConstExprHashingUtils::HashString("Action"); HistoryItemType GetHistoryItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConfigurationUpdate_HASH) { return HistoryItemType::ConfigurationUpdate; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/MetricStreamOutputFormat.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/MetricStreamOutputFormat.cpp index 4bca986a17d..52997dead84 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/MetricStreamOutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/MetricStreamOutputFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricStreamOutputFormatMapper { - static const int json_HASH = HashingUtils::HashString("json"); - static const int opentelemetry0_7_HASH = HashingUtils::HashString("opentelemetry0.7"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); + static constexpr uint32_t opentelemetry0_7_HASH = ConstExprHashingUtils::HashString("opentelemetry0.7"); MetricStreamOutputFormat GetMetricStreamOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_HASH) { return MetricStreamOutputFormat::json; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/RecentlyActive.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/RecentlyActive.cpp index 22d6fcd2914..74c2f159a1e 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/RecentlyActive.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/RecentlyActive.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecentlyActiveMapper { - static const int PT3H_HASH = HashingUtils::HashString("PT3H"); + static constexpr uint32_t PT3H_HASH = ConstExprHashingUtils::HashString("PT3H"); RecentlyActive GetRecentlyActiveForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PT3H_HASH) { return RecentlyActive::PT3H; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/ScanBy.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/ScanBy.cpp index 50b741c451a..4dfae49ab89 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/ScanBy.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/ScanBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScanByMapper { - static const int TimestampDescending_HASH = HashingUtils::HashString("TimestampDescending"); - static const int TimestampAscending_HASH = HashingUtils::HashString("TimestampAscending"); + static constexpr uint32_t TimestampDescending_HASH = ConstExprHashingUtils::HashString("TimestampDescending"); + static constexpr uint32_t TimestampAscending_HASH = ConstExprHashingUtils::HashString("TimestampAscending"); ScanBy GetScanByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TimestampDescending_HASH) { return ScanBy::TimestampDescending; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/StandardUnit.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/StandardUnit.cpp index 242f830dc80..a5f736db8d0 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/StandardUnit.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/StandardUnit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace StandardUnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); StandardUnit GetStandardUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return StandardUnit::Seconds; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/StateValue.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/StateValue.cpp index a4577dd5198..7b9e38861e6 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/StateValue.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/StateValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StateValueMapper { - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int ALARM_HASH = HashingUtils::HashString("ALARM"); - static const int INSUFFICIENT_DATA_HASH = HashingUtils::HashString("INSUFFICIENT_DATA"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t ALARM_HASH = ConstExprHashingUtils::HashString("ALARM"); + static constexpr uint32_t INSUFFICIENT_DATA_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_DATA"); StateValue GetStateValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OK_HASH) { return StateValue::OK; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/Statistic.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/Statistic.cpp index a5524cb9995..e76e5de499c 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/Statistic.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/Statistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatisticMapper { - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); Statistic GetStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SampleCount_HASH) { return Statistic::SampleCount; diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/StatusCode.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/StatusCode.cpp index 9156c3554bd..8164aea83cf 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/StatusCode.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/StatusCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatusCodeMapper { - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); - static const int PartialData_HASH = HashingUtils::HashString("PartialData"); - static const int Forbidden_HASH = HashingUtils::HashString("Forbidden"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); + static constexpr uint32_t PartialData_HASH = ConstExprHashingUtils::HashString("PartialData"); + static constexpr uint32_t Forbidden_HASH = ConstExprHashingUtils::HashString("Forbidden"); StatusCode GetStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Complete_HASH) { return StatusCode::Complete; diff --git a/generated/src/aws-cpp-sdk-mq/source/MQErrors.cpp b/generated/src/aws-cpp-sdk-mq/source/MQErrors.cpp index 889ee76b802..5be4dfa7e70 100644 --- a/generated/src/aws-cpp-sdk-mq/source/MQErrors.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/MQErrors.cpp @@ -61,17 +61,17 @@ template<> AWS_MQ_API InternalServerErrorException MQError::GetModeledError() namespace MQErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-mq/source/model/AuthenticationStrategy.cpp b/generated/src/aws-cpp-sdk-mq/source/model/AuthenticationStrategy.cpp index 75399c11207..37e231e8f91 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/AuthenticationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/AuthenticationStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthenticationStrategyMapper { - static const int SIMPLE_HASH = HashingUtils::HashString("SIMPLE"); - static const int LDAP_HASH = HashingUtils::HashString("LDAP"); + static constexpr uint32_t SIMPLE_HASH = ConstExprHashingUtils::HashString("SIMPLE"); + static constexpr uint32_t LDAP_HASH = ConstExprHashingUtils::HashString("LDAP"); AuthenticationStrategy GetAuthenticationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIMPLE_HASH) { return AuthenticationStrategy::SIMPLE; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/BrokerState.cpp b/generated/src/aws-cpp-sdk-mq/source/model/BrokerState.cpp index d174f0c74d9..65e78d9e234 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/BrokerState.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/BrokerState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace BrokerStateMapper { - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int DELETION_IN_PROGRESS_HASH = HashingUtils::HashString("DELETION_IN_PROGRESS"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int REBOOT_IN_PROGRESS_HASH = HashingUtils::HashString("REBOOT_IN_PROGRESS"); - static const int CRITICAL_ACTION_REQUIRED_HASH = HashingUtils::HashString("CRITICAL_ACTION_REQUIRED"); - static const int REPLICA_HASH = HashingUtils::HashString("REPLICA"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t DELETION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETION_IN_PROGRESS"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t REBOOT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REBOOT_IN_PROGRESS"); + static constexpr uint32_t CRITICAL_ACTION_REQUIRED_HASH = ConstExprHashingUtils::HashString("CRITICAL_ACTION_REQUIRED"); + static constexpr uint32_t REPLICA_HASH = ConstExprHashingUtils::HashString("REPLICA"); BrokerState GetBrokerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_IN_PROGRESS_HASH) { return BrokerState::CREATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/BrokerStorageType.cpp b/generated/src/aws-cpp-sdk-mq/source/model/BrokerStorageType.cpp index aa74e2b0a3a..3b67c8a6604 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/BrokerStorageType.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/BrokerStorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BrokerStorageTypeMapper { - static const int EBS_HASH = HashingUtils::HashString("EBS"); - static const int EFS_HASH = HashingUtils::HashString("EFS"); + static constexpr uint32_t EBS_HASH = ConstExprHashingUtils::HashString("EBS"); + static constexpr uint32_t EFS_HASH = ConstExprHashingUtils::HashString("EFS"); BrokerStorageType GetBrokerStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EBS_HASH) { return BrokerStorageType::EBS; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-mq/source/model/ChangeType.cpp index b17b88b0bab..82f9222577e 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/ChangeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeTypeMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return ChangeType::CREATE; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/DataReplicationMode.cpp b/generated/src/aws-cpp-sdk-mq/source/model/DataReplicationMode.cpp index 1abb299a58c..37b3d11125e 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/DataReplicationMode.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/DataReplicationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataReplicationModeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int CRDR_HASH = HashingUtils::HashString("CRDR"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t CRDR_HASH = ConstExprHashingUtils::HashString("CRDR"); DataReplicationMode GetDataReplicationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DataReplicationMode::NONE; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-mq/source/model/DayOfWeek.cpp index 44ae5e5502a..93b35b002ae 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONDAY_HASH) { return DayOfWeek::MONDAY; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/DeploymentMode.cpp b/generated/src/aws-cpp-sdk-mq/source/model/DeploymentMode.cpp index 34501bb1ad5..07ad54c0c90 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/DeploymentMode.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/DeploymentMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeploymentModeMapper { - static const int SINGLE_INSTANCE_HASH = HashingUtils::HashString("SINGLE_INSTANCE"); - static const int ACTIVE_STANDBY_MULTI_AZ_HASH = HashingUtils::HashString("ACTIVE_STANDBY_MULTI_AZ"); - static const int CLUSTER_MULTI_AZ_HASH = HashingUtils::HashString("CLUSTER_MULTI_AZ"); + static constexpr uint32_t SINGLE_INSTANCE_HASH = ConstExprHashingUtils::HashString("SINGLE_INSTANCE"); + static constexpr uint32_t ACTIVE_STANDBY_MULTI_AZ_HASH = ConstExprHashingUtils::HashString("ACTIVE_STANDBY_MULTI_AZ"); + static constexpr uint32_t CLUSTER_MULTI_AZ_HASH = ConstExprHashingUtils::HashString("CLUSTER_MULTI_AZ"); DeploymentMode GetDeploymentModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_INSTANCE_HASH) { return DeploymentMode::SINGLE_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/EngineType.cpp b/generated/src/aws-cpp-sdk-mq/source/model/EngineType.cpp index 01e215ddb11..9b1c8b1f1c6 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/EngineType.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/EngineType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngineTypeMapper { - static const int ACTIVEMQ_HASH = HashingUtils::HashString("ACTIVEMQ"); - static const int RABBITMQ_HASH = HashingUtils::HashString("RABBITMQ"); + static constexpr uint32_t ACTIVEMQ_HASH = ConstExprHashingUtils::HashString("ACTIVEMQ"); + static constexpr uint32_t RABBITMQ_HASH = ConstExprHashingUtils::HashString("RABBITMQ"); EngineType GetEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVEMQ_HASH) { return EngineType::ACTIVEMQ; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/PromoteMode.cpp b/generated/src/aws-cpp-sdk-mq/source/model/PromoteMode.cpp index c410e266beb..15c6507d51d 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/PromoteMode.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/PromoteMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PromoteModeMapper { - static const int SWITCHOVER_HASH = HashingUtils::HashString("SWITCHOVER"); - static const int FAILOVER_HASH = HashingUtils::HashString("FAILOVER"); + static constexpr uint32_t SWITCHOVER_HASH = ConstExprHashingUtils::HashString("SWITCHOVER"); + static constexpr uint32_t FAILOVER_HASH = ConstExprHashingUtils::HashString("FAILOVER"); PromoteMode GetPromoteModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SWITCHOVER_HASH) { return PromoteMode::SWITCHOVER; diff --git a/generated/src/aws-cpp-sdk-mq/source/model/SanitizationWarningReason.cpp b/generated/src/aws-cpp-sdk-mq/source/model/SanitizationWarningReason.cpp index 5b37b14f6b6..3b4be2af957 100644 --- a/generated/src/aws-cpp-sdk-mq/source/model/SanitizationWarningReason.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/model/SanitizationWarningReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SanitizationWarningReasonMapper { - static const int DISALLOWED_ELEMENT_REMOVED_HASH = HashingUtils::HashString("DISALLOWED_ELEMENT_REMOVED"); - static const int DISALLOWED_ATTRIBUTE_REMOVED_HASH = HashingUtils::HashString("DISALLOWED_ATTRIBUTE_REMOVED"); - static const int INVALID_ATTRIBUTE_VALUE_REMOVED_HASH = HashingUtils::HashString("INVALID_ATTRIBUTE_VALUE_REMOVED"); + static constexpr uint32_t DISALLOWED_ELEMENT_REMOVED_HASH = ConstExprHashingUtils::HashString("DISALLOWED_ELEMENT_REMOVED"); + static constexpr uint32_t DISALLOWED_ATTRIBUTE_REMOVED_HASH = ConstExprHashingUtils::HashString("DISALLOWED_ATTRIBUTE_REMOVED"); + static constexpr uint32_t INVALID_ATTRIBUTE_VALUE_REMOVED_HASH = ConstExprHashingUtils::HashString("INVALID_ATTRIBUTE_VALUE_REMOVED"); SanitizationWarningReason GetSanitizationWarningReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISALLOWED_ELEMENT_REMOVED_HASH) { return SanitizationWarningReason::DISALLOWED_ELEMENT_REMOVED; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkErrors.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkErrors.cpp index b1f2f460b0b..f3433d7b68a 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkErrors.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkErrors.cpp @@ -33,13 +33,13 @@ template<> AWS_MTURK_API RequestError MTurkError::GetModeledError() namespace MTurkErrorMapper { -static const int SERVICE_FAULT_HASH = HashingUtils::HashString("ServiceFault"); -static const int REQUEST_HASH = HashingUtils::HashString("RequestError"); +static constexpr uint32_t SERVICE_FAULT_HASH = ConstExprHashingUtils::HashString("ServiceFault"); +static constexpr uint32_t REQUEST_HASH = ConstExprHashingUtils::HashString("RequestError"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/AssignmentStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/AssignmentStatus.cpp index 62b8d7fd2ba..29402bcd1d2 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/AssignmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/AssignmentStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssignmentStatusMapper { - static const int Submitted_HASH = HashingUtils::HashString("Submitted"); - static const int Approved_HASH = HashingUtils::HashString("Approved"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); + static constexpr uint32_t Submitted_HASH = ConstExprHashingUtils::HashString("Submitted"); + static constexpr uint32_t Approved_HASH = ConstExprHashingUtils::HashString("Approved"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); AssignmentStatus GetAssignmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Submitted_HASH) { return AssignmentStatus::Submitted; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/Comparator.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/Comparator.cpp index 2bc6bb26c26..3bec4c0c520 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/Comparator.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/Comparator.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ComparatorMapper { - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int LessThanOrEqualTo_HASH = HashingUtils::HashString("LessThanOrEqualTo"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int GreaterThanOrEqualTo_HASH = HashingUtils::HashString("GreaterThanOrEqualTo"); - static const int EqualTo_HASH = HashingUtils::HashString("EqualTo"); - static const int NotEqualTo_HASH = HashingUtils::HashString("NotEqualTo"); - static const int Exists_HASH = HashingUtils::HashString("Exists"); - static const int DoesNotExist_HASH = HashingUtils::HashString("DoesNotExist"); - static const int In_HASH = HashingUtils::HashString("In"); - static const int NotIn_HASH = HashingUtils::HashString("NotIn"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t LessThanOrEqualTo_HASH = ConstExprHashingUtils::HashString("LessThanOrEqualTo"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t GreaterThanOrEqualTo_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqualTo"); + static constexpr uint32_t EqualTo_HASH = ConstExprHashingUtils::HashString("EqualTo"); + static constexpr uint32_t NotEqualTo_HASH = ConstExprHashingUtils::HashString("NotEqualTo"); + static constexpr uint32_t Exists_HASH = ConstExprHashingUtils::HashString("Exists"); + static constexpr uint32_t DoesNotExist_HASH = ConstExprHashingUtils::HashString("DoesNotExist"); + static constexpr uint32_t In_HASH = ConstExprHashingUtils::HashString("In"); + static constexpr uint32_t NotIn_HASH = ConstExprHashingUtils::HashString("NotIn"); Comparator GetComparatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LessThan_HASH) { return Comparator::LessThan; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/EventType.cpp index 840e0e963dc..88d76b0d744 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/EventType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace EventTypeMapper { - static const int AssignmentAccepted_HASH = HashingUtils::HashString("AssignmentAccepted"); - static const int AssignmentAbandoned_HASH = HashingUtils::HashString("AssignmentAbandoned"); - static const int AssignmentReturned_HASH = HashingUtils::HashString("AssignmentReturned"); - static const int AssignmentSubmitted_HASH = HashingUtils::HashString("AssignmentSubmitted"); - static const int AssignmentRejected_HASH = HashingUtils::HashString("AssignmentRejected"); - static const int AssignmentApproved_HASH = HashingUtils::HashString("AssignmentApproved"); - static const int HITCreated_HASH = HashingUtils::HashString("HITCreated"); - static const int HITExpired_HASH = HashingUtils::HashString("HITExpired"); - static const int HITReviewable_HASH = HashingUtils::HashString("HITReviewable"); - static const int HITExtended_HASH = HashingUtils::HashString("HITExtended"); - static const int HITDisposed_HASH = HashingUtils::HashString("HITDisposed"); - static const int Ping_HASH = HashingUtils::HashString("Ping"); + static constexpr uint32_t AssignmentAccepted_HASH = ConstExprHashingUtils::HashString("AssignmentAccepted"); + static constexpr uint32_t AssignmentAbandoned_HASH = ConstExprHashingUtils::HashString("AssignmentAbandoned"); + static constexpr uint32_t AssignmentReturned_HASH = ConstExprHashingUtils::HashString("AssignmentReturned"); + static constexpr uint32_t AssignmentSubmitted_HASH = ConstExprHashingUtils::HashString("AssignmentSubmitted"); + static constexpr uint32_t AssignmentRejected_HASH = ConstExprHashingUtils::HashString("AssignmentRejected"); + static constexpr uint32_t AssignmentApproved_HASH = ConstExprHashingUtils::HashString("AssignmentApproved"); + static constexpr uint32_t HITCreated_HASH = ConstExprHashingUtils::HashString("HITCreated"); + static constexpr uint32_t HITExpired_HASH = ConstExprHashingUtils::HashString("HITExpired"); + static constexpr uint32_t HITReviewable_HASH = ConstExprHashingUtils::HashString("HITReviewable"); + static constexpr uint32_t HITExtended_HASH = ConstExprHashingUtils::HashString("HITExtended"); + static constexpr uint32_t HITDisposed_HASH = ConstExprHashingUtils::HashString("HITDisposed"); + static constexpr uint32_t Ping_HASH = ConstExprHashingUtils::HashString("Ping"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AssignmentAccepted_HASH) { return EventType::AssignmentAccepted; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITAccessActions.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITAccessActions.cpp index 652bbe9b104..e891fd7f6a9 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITAccessActions.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITAccessActions.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HITAccessActionsMapper { - static const int Accept_HASH = HashingUtils::HashString("Accept"); - static const int PreviewAndAccept_HASH = HashingUtils::HashString("PreviewAndAccept"); - static const int DiscoverPreviewAndAccept_HASH = HashingUtils::HashString("DiscoverPreviewAndAccept"); + static constexpr uint32_t Accept_HASH = ConstExprHashingUtils::HashString("Accept"); + static constexpr uint32_t PreviewAndAccept_HASH = ConstExprHashingUtils::HashString("PreviewAndAccept"); + static constexpr uint32_t DiscoverPreviewAndAccept_HASH = ConstExprHashingUtils::HashString("DiscoverPreviewAndAccept"); HITAccessActions GetHITAccessActionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Accept_HASH) { return HITAccessActions::Accept; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITReviewStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITReviewStatus.cpp index 1eb309647ae..483a58bb24e 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITReviewStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITReviewStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HITReviewStatusMapper { - static const int NotReviewed_HASH = HashingUtils::HashString("NotReviewed"); - static const int MarkedForReview_HASH = HashingUtils::HashString("MarkedForReview"); - static const int ReviewedAppropriate_HASH = HashingUtils::HashString("ReviewedAppropriate"); - static const int ReviewedInappropriate_HASH = HashingUtils::HashString("ReviewedInappropriate"); + static constexpr uint32_t NotReviewed_HASH = ConstExprHashingUtils::HashString("NotReviewed"); + static constexpr uint32_t MarkedForReview_HASH = ConstExprHashingUtils::HashString("MarkedForReview"); + static constexpr uint32_t ReviewedAppropriate_HASH = ConstExprHashingUtils::HashString("ReviewedAppropriate"); + static constexpr uint32_t ReviewedInappropriate_HASH = ConstExprHashingUtils::HashString("ReviewedInappropriate"); HITReviewStatus GetHITReviewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotReviewed_HASH) { return HITReviewStatus::NotReviewed; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITStatus.cpp index 0dd1936bfe8..2df506987ea 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/HITStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace HITStatusMapper { - static const int Assignable_HASH = HashingUtils::HashString("Assignable"); - static const int Unassignable_HASH = HashingUtils::HashString("Unassignable"); - static const int Reviewable_HASH = HashingUtils::HashString("Reviewable"); - static const int Reviewing_HASH = HashingUtils::HashString("Reviewing"); - static const int Disposed_HASH = HashingUtils::HashString("Disposed"); + static constexpr uint32_t Assignable_HASH = ConstExprHashingUtils::HashString("Assignable"); + static constexpr uint32_t Unassignable_HASH = ConstExprHashingUtils::HashString("Unassignable"); + static constexpr uint32_t Reviewable_HASH = ConstExprHashingUtils::HashString("Reviewable"); + static constexpr uint32_t Reviewing_HASH = ConstExprHashingUtils::HashString("Reviewing"); + static constexpr uint32_t Disposed_HASH = ConstExprHashingUtils::HashString("Disposed"); HITStatus GetHITStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Assignable_HASH) { return HITStatus::Assignable; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotificationTransport.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotificationTransport.cpp index 974d14b4025..18031497948 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotificationTransport.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotificationTransport.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotificationTransportMapper { - static const int Email_HASH = HashingUtils::HashString("Email"); - static const int SQS_HASH = HashingUtils::HashString("SQS"); - static const int SNS_HASH = HashingUtils::HashString("SNS"); + static constexpr uint32_t Email_HASH = ConstExprHashingUtils::HashString("Email"); + static constexpr uint32_t SQS_HASH = ConstExprHashingUtils::HashString("SQS"); + static constexpr uint32_t SNS_HASH = ConstExprHashingUtils::HashString("SNS"); NotificationTransport GetNotificationTransportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Email_HASH) { return NotificationTransport::Email; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotifyWorkersFailureCode.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotifyWorkersFailureCode.cpp index 3253d0f261c..05cfdd42242 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotifyWorkersFailureCode.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/NotifyWorkersFailureCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotifyWorkersFailureCodeMapper { - static const int SoftFailure_HASH = HashingUtils::HashString("SoftFailure"); - static const int HardFailure_HASH = HashingUtils::HashString("HardFailure"); + static constexpr uint32_t SoftFailure_HASH = ConstExprHashingUtils::HashString("SoftFailure"); + static constexpr uint32_t HardFailure_HASH = ConstExprHashingUtils::HashString("HardFailure"); NotifyWorkersFailureCode GetNotifyWorkersFailureCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SoftFailure_HASH) { return NotifyWorkersFailureCode::SoftFailure; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationStatus.cpp index 4a8d8f52fac..1696dd0f4e1 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QualificationStatusMapper { - static const int Granted_HASH = HashingUtils::HashString("Granted"); - static const int Revoked_HASH = HashingUtils::HashString("Revoked"); + static constexpr uint32_t Granted_HASH = ConstExprHashingUtils::HashString("Granted"); + static constexpr uint32_t Revoked_HASH = ConstExprHashingUtils::HashString("Revoked"); QualificationStatus GetQualificationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Granted_HASH) { return QualificationStatus::Granted; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationTypeStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationTypeStatus.cpp index 5ca22bc4310..6cfed2e7277 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationTypeStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/QualificationTypeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QualificationTypeStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); QualificationTypeStatus GetQualificationTypeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return QualificationTypeStatus::Active; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewActionStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewActionStatus.cpp index ec5e597e70d..30cf11bd02f 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewActionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReviewActionStatusMapper { - static const int Intended_HASH = HashingUtils::HashString("Intended"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); + static constexpr uint32_t Intended_HASH = ConstExprHashingUtils::HashString("Intended"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); ReviewActionStatus GetReviewActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Intended_HASH) { return ReviewActionStatus::Intended; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewPolicyLevel.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewPolicyLevel.cpp index 64a6c034756..14c0b58c6c4 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewPolicyLevel.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewPolicyLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReviewPolicyLevelMapper { - static const int Assignment_HASH = HashingUtils::HashString("Assignment"); - static const int HIT_HASH = HashingUtils::HashString("HIT"); + static constexpr uint32_t Assignment_HASH = ConstExprHashingUtils::HashString("Assignment"); + static constexpr uint32_t HIT_HASH = ConstExprHashingUtils::HashString("HIT"); ReviewPolicyLevel GetReviewPolicyLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Assignment_HASH) { return ReviewPolicyLevel::Assignment; diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewableHITStatus.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewableHITStatus.cpp index 2dbac483b06..138faa3dd36 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewableHITStatus.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/model/ReviewableHITStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReviewableHITStatusMapper { - static const int Reviewable_HASH = HashingUtils::HashString("Reviewable"); - static const int Reviewing_HASH = HashingUtils::HashString("Reviewing"); + static constexpr uint32_t Reviewable_HASH = ConstExprHashingUtils::HashString("Reviewable"); + static constexpr uint32_t Reviewing_HASH = ConstExprHashingUtils::HashString("Reviewing"); ReviewableHITStatus GetReviewableHITStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Reviewable_HASH) { return ReviewableHITStatus::Reviewable; diff --git a/generated/src/aws-cpp-sdk-mwaa/source/MWAAErrors.cpp b/generated/src/aws-cpp-sdk-mwaa/source/MWAAErrors.cpp index 338fca788ef..c7a32ff0e11 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/MWAAErrors.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/MWAAErrors.cpp @@ -18,12 +18,12 @@ namespace MWAA namespace MWAAErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-mwaa/source/model/EnvironmentStatus.cpp b/generated/src/aws-cpp-sdk-mwaa/source/model/EnvironmentStatus.cpp index 38ad6c598b9..b0456d7eeca 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/model/EnvironmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/model/EnvironmentStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace EnvironmentStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int ROLLING_BACK_HASH = HashingUtils::HashString("ROLLING_BACK"); - static const int CREATING_SNAPSHOT_HASH = HashingUtils::HashString("CREATING_SNAPSHOT"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t ROLLING_BACK_HASH = ConstExprHashingUtils::HashString("ROLLING_BACK"); + static constexpr uint32_t CREATING_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("CREATING_SNAPSHOT"); EnvironmentStatus GetEnvironmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return EnvironmentStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-mwaa/source/model/LoggingLevel.cpp b/generated/src/aws-cpp-sdk-mwaa/source/model/LoggingLevel.cpp index a20941647ed..23b76df91c7 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/model/LoggingLevel.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/model/LoggingLevel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LoggingLevelMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int INFO_HASH = HashingUtils::HashString("INFO"); - static const int DEBUG__HASH = HashingUtils::HashString("DEBUG"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t INFO_HASH = ConstExprHashingUtils::HashString("INFO"); + static constexpr uint32_t DEBUG__HASH = ConstExprHashingUtils::HashString("DEBUG"); LoggingLevel GetLoggingLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return LoggingLevel::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-mwaa/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-mwaa/source/model/Unit.cpp index 80404e42905..4e79ae52c72 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/model/Unit.cpp @@ -20,38 +20,38 @@ namespace Aws namespace UnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); - static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); - static const int Bytes_HASH = HashingUtils::HashString("Bytes"); - static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); - static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); - static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); - static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); - static const int Bits_HASH = HashingUtils::HashString("Bits"); - static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); - static const int Megabits_HASH = HashingUtils::HashString("Megabits"); - static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); - static const int Terabits_HASH = HashingUtils::HashString("Terabits"); - static const int Percent_HASH = HashingUtils::HashString("Percent"); - static const int Count_HASH = HashingUtils::HashString("Count"); - static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); - static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); - static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); - static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); - static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); - static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); - static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); - static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); - static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); - static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); - static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Microseconds_HASH = ConstExprHashingUtils::HashString("Microseconds"); + static constexpr uint32_t Milliseconds_HASH = ConstExprHashingUtils::HashString("Milliseconds"); + static constexpr uint32_t Bytes_HASH = ConstExprHashingUtils::HashString("Bytes"); + static constexpr uint32_t Kilobytes_HASH = ConstExprHashingUtils::HashString("Kilobytes"); + static constexpr uint32_t Megabytes_HASH = ConstExprHashingUtils::HashString("Megabytes"); + static constexpr uint32_t Gigabytes_HASH = ConstExprHashingUtils::HashString("Gigabytes"); + static constexpr uint32_t Terabytes_HASH = ConstExprHashingUtils::HashString("Terabytes"); + static constexpr uint32_t Bits_HASH = ConstExprHashingUtils::HashString("Bits"); + static constexpr uint32_t Kilobits_HASH = ConstExprHashingUtils::HashString("Kilobits"); + static constexpr uint32_t Megabits_HASH = ConstExprHashingUtils::HashString("Megabits"); + static constexpr uint32_t Gigabits_HASH = ConstExprHashingUtils::HashString("Gigabits"); + static constexpr uint32_t Terabits_HASH = ConstExprHashingUtils::HashString("Terabits"); + static constexpr uint32_t Percent_HASH = ConstExprHashingUtils::HashString("Percent"); + static constexpr uint32_t Count_HASH = ConstExprHashingUtils::HashString("Count"); + static constexpr uint32_t Bytes_Second_HASH = ConstExprHashingUtils::HashString("Bytes/Second"); + static constexpr uint32_t Kilobytes_Second_HASH = ConstExprHashingUtils::HashString("Kilobytes/Second"); + static constexpr uint32_t Megabytes_Second_HASH = ConstExprHashingUtils::HashString("Megabytes/Second"); + static constexpr uint32_t Gigabytes_Second_HASH = ConstExprHashingUtils::HashString("Gigabytes/Second"); + static constexpr uint32_t Terabytes_Second_HASH = ConstExprHashingUtils::HashString("Terabytes/Second"); + static constexpr uint32_t Bits_Second_HASH = ConstExprHashingUtils::HashString("Bits/Second"); + static constexpr uint32_t Kilobits_Second_HASH = ConstExprHashingUtils::HashString("Kilobits/Second"); + static constexpr uint32_t Megabits_Second_HASH = ConstExprHashingUtils::HashString("Megabits/Second"); + static constexpr uint32_t Gigabits_Second_HASH = ConstExprHashingUtils::HashString("Gigabits/Second"); + static constexpr uint32_t Terabits_Second_HASH = ConstExprHashingUtils::HashString("Terabits/Second"); + static constexpr uint32_t Count_Second_HASH = ConstExprHashingUtils::HashString("Count/Second"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return Unit::Seconds; diff --git a/generated/src/aws-cpp-sdk-mwaa/source/model/UpdateStatus.cpp b/generated/src/aws-cpp-sdk-mwaa/source/model/UpdateStatus.cpp index d250a8e5ae9..950abef3e6c 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/model/UpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/model/UpdateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UpdateStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); UpdateStatus GetUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return UpdateStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-mwaa/source/model/WebserverAccessMode.cpp b/generated/src/aws-cpp-sdk-mwaa/source/model/WebserverAccessMode.cpp index 6cc6cdeb24c..2d0e7e24c3f 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/model/WebserverAccessMode.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/model/WebserverAccessMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WebserverAccessModeMapper { - static const int PRIVATE_ONLY_HASH = HashingUtils::HashString("PRIVATE_ONLY"); - static const int PUBLIC_ONLY_HASH = HashingUtils::HashString("PUBLIC_ONLY"); + static constexpr uint32_t PRIVATE_ONLY_HASH = ConstExprHashingUtils::HashString("PRIVATE_ONLY"); + static constexpr uint32_t PUBLIC_ONLY_HASH = ConstExprHashingUtils::HashString("PUBLIC_ONLY"); WebserverAccessMode GetWebserverAccessModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIVATE_ONLY_HASH) { return WebserverAccessMode::PRIVATE_ONLY; diff --git a/generated/src/aws-cpp-sdk-neptune/source/NeptuneErrors.cpp b/generated/src/aws-cpp-sdk-neptune/source/NeptuneErrors.cpp index 8db4fdf6b97..a39da798222 100644 --- a/generated/src/aws-cpp-sdk-neptune/source/NeptuneErrors.cpp +++ b/generated/src/aws-cpp-sdk-neptune/source/NeptuneErrors.cpp @@ -18,78 +18,78 @@ namespace Neptune namespace NeptuneErrorMapper { -static const int D_B_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterNotFoundFault"); -static const int SUBSCRIPTION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionNotFound"); -static const int D_B_CLUSTER_ENDPOINT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterEndpointQuotaExceededFault"); -static const int OPTION_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("OptionGroupNotFoundFault"); -static const int SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionCategoryNotFound"); -static const int INVALID_D_B_SUBNET_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetGroupStateFault"); -static const int D_B_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupQuotaExceeded"); -static const int D_B_INSTANCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBInstanceNotFound"); -static const int D_B_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = HashingUtils::HashString("DBSubnetGroupDoesNotCoverEnoughAZs"); -static const int D_B_UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = HashingUtils::HashString("DBUpgradeDependencyFailure"); -static const int INVALID_D_B_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSnapshotState"); -static const int SHARED_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SharedSnapshotQuotaExceeded"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int D_B_CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterParameterGroupNotFound"); -static const int DOMAIN_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DomainNotFoundFault"); -static const int D_B_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBParameterGroupQuotaExceeded"); -static const int INVALID_EVENT_SUBSCRIPTION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidEventSubscriptionState"); -static const int D_B_CLUSTER_ROLE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterRoleAlreadyExists"); -static const int INSUFFICIENT_STORAGE_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientStorageClusterCapacity"); -static const int D_B_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupNotFoundFault"); -static const int D_B_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSnapshotAlreadyExists"); -static const int SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotQuotaExceeded"); -static const int SUBNET_ALREADY_IN_USE_HASH = HashingUtils::HashString("SubnetAlreadyInUse"); -static const int D_B_CLUSTER_ENDPOINT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterEndpointAlreadyExistsFault"); -static const int D_B_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupAlreadyExists"); -static const int D_B_CLUSTER_ENDPOINT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterEndpointNotFoundFault"); -static const int EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EventSubscriptionQuotaExceeded"); -static const int D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBInstanceAlreadyExists"); -static const int INVALID_D_B_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBParameterGroupState"); -static const int D_B_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSecurityGroupNotFound"); -static const int INVALID_D_B_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterSnapshotStateFault"); -static const int GLOBAL_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("GlobalClusterNotFoundFault"); -static const int D_B_CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterSnapshotAlreadyExistsFault"); -static const int INVALID_D_B_SECURITY_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSecurityGroupState"); -static const int PROVISIONED_IOPS_NOT_AVAILABLE_IN_A_Z_FAULT_HASH = HashingUtils::HashString("ProvisionedIopsNotAvailableInAZFault"); -static const int STORAGE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("StorageQuotaExceeded"); -static const int INVALID_D_B_INSTANCE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBInstanceState"); -static const int D_B_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBSubnetQuotaExceededFault"); -static const int D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterSnapshotNotFoundFault"); -static const int D_B_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterAlreadyExistsFault"); -static const int GLOBAL_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("GlobalClusterQuotaExceededFault"); -static const int RESOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ResourceNotFoundFault"); -static const int INSUFFICIENT_D_B_INSTANCE_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientDBInstanceCapacity"); -static const int D_B_CLUSTER_ROLE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterRoleQuotaExceeded"); -static const int D_B_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBParameterGroupNotFound"); -static const int INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("InstanceQuotaExceeded"); -static const int GLOBAL_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("GlobalClusterAlreadyExistsFault"); -static const int INVALID_D_B_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterStateFault"); -static const int SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = HashingUtils::HashString("SubscriptionAlreadyExist"); -static const int D_B_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSnapshotNotFound"); -static const int K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = HashingUtils::HashString("KMSKeyNotAccessibleFault"); -static const int CERTIFICATE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CertificateNotFound"); -static const int D_B_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBParameterGroupAlreadyExists"); -static const int S_N_S_NO_AUTHORIZATION_FAULT_HASH = HashingUtils::HashString("SNSNoAuthorization"); -static const int INVALID_D_B_CLUSTER_ENDPOINT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterEndpointStateFault"); -static const int INVALID_RESTORE_FAULT_HASH = HashingUtils::HashString("InvalidRestoreFault"); -static const int STORAGE_TYPE_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("StorageTypeNotSupported"); -static const int S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SNSTopicArnNotFound"); -static const int S_N_S_INVALID_TOPIC_FAULT_HASH = HashingUtils::HashString("SNSInvalidTopic"); -static const int INVALID_D_B_SUBNET_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetStateFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int AUTHORIZATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("AuthorizationNotFound"); -static const int D_B_CLUSTER_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterRoleNotFound"); -static const int D_B_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterQuotaExceededFault"); -static const int INSUFFICIENT_D_B_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientDBClusterCapacityFault"); -static const int SOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SourceNotFound"); -static const int INVALID_GLOBAL_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidGlobalClusterStateFault"); +static constexpr uint32_t D_B_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterNotFoundFault"); +static constexpr uint32_t SUBSCRIPTION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionNotFound"); +static constexpr uint32_t D_B_CLUSTER_ENDPOINT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterEndpointQuotaExceededFault"); +static constexpr uint32_t OPTION_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("OptionGroupNotFoundFault"); +static constexpr uint32_t SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionCategoryNotFound"); +static constexpr uint32_t INVALID_D_B_SUBNET_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetGroupStateFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupQuotaExceeded"); +static constexpr uint32_t D_B_INSTANCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceNotFound"); +static constexpr uint32_t D_B_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupDoesNotCoverEnoughAZs"); +static constexpr uint32_t D_B_UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = ConstExprHashingUtils::HashString("DBUpgradeDependencyFailure"); +static constexpr uint32_t INVALID_D_B_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSnapshotState"); +static constexpr uint32_t SHARED_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SharedSnapshotQuotaExceeded"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t D_B_CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterParameterGroupNotFound"); +static constexpr uint32_t DOMAIN_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DomainNotFoundFault"); +static constexpr uint32_t D_B_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupQuotaExceeded"); +static constexpr uint32_t INVALID_EVENT_SUBSCRIPTION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidEventSubscriptionState"); +static constexpr uint32_t D_B_CLUSTER_ROLE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterRoleAlreadyExists"); +static constexpr uint32_t INSUFFICIENT_STORAGE_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientStorageClusterCapacity"); +static constexpr uint32_t D_B_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupNotFoundFault"); +static constexpr uint32_t D_B_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSnapshotAlreadyExists"); +static constexpr uint32_t SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotQuotaExceeded"); +static constexpr uint32_t SUBNET_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetAlreadyInUse"); +static constexpr uint32_t D_B_CLUSTER_ENDPOINT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterEndpointAlreadyExistsFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupAlreadyExists"); +static constexpr uint32_t D_B_CLUSTER_ENDPOINT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterEndpointNotFoundFault"); +static constexpr uint32_t EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EventSubscriptionQuotaExceeded"); +static constexpr uint32_t D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceAlreadyExists"); +static constexpr uint32_t INVALID_D_B_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBParameterGroupState"); +static constexpr uint32_t D_B_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSecurityGroupNotFound"); +static constexpr uint32_t INVALID_D_B_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterSnapshotStateFault"); +static constexpr uint32_t GLOBAL_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterSnapshotAlreadyExistsFault"); +static constexpr uint32_t INVALID_D_B_SECURITY_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSecurityGroupState"); +static constexpr uint32_t PROVISIONED_IOPS_NOT_AVAILABLE_IN_A_Z_FAULT_HASH = ConstExprHashingUtils::HashString("ProvisionedIopsNotAvailableInAZFault"); +static constexpr uint32_t STORAGE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageQuotaExceeded"); +static constexpr uint32_t INVALID_D_B_INSTANCE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBInstanceState"); +static constexpr uint32_t D_B_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetQuotaExceededFault"); +static constexpr uint32_t D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterSnapshotNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterAlreadyExistsFault"); +static constexpr uint32_t GLOBAL_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterQuotaExceededFault"); +static constexpr uint32_t RESOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundFault"); +static constexpr uint32_t INSUFFICIENT_D_B_INSTANCE_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientDBInstanceCapacity"); +static constexpr uint32_t D_B_CLUSTER_ROLE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterRoleQuotaExceeded"); +static constexpr uint32_t D_B_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupNotFound"); +static constexpr uint32_t INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("InstanceQuotaExceeded"); +static constexpr uint32_t GLOBAL_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterAlreadyExistsFault"); +static constexpr uint32_t INVALID_D_B_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterStateFault"); +static constexpr uint32_t SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionAlreadyExist"); +static constexpr uint32_t D_B_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSnapshotNotFound"); +static constexpr uint32_t K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = ConstExprHashingUtils::HashString("KMSKeyNotAccessibleFault"); +static constexpr uint32_t CERTIFICATE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CertificateNotFound"); +static constexpr uint32_t D_B_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupAlreadyExists"); +static constexpr uint32_t S_N_S_NO_AUTHORIZATION_FAULT_HASH = ConstExprHashingUtils::HashString("SNSNoAuthorization"); +static constexpr uint32_t INVALID_D_B_CLUSTER_ENDPOINT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterEndpointStateFault"); +static constexpr uint32_t INVALID_RESTORE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidRestoreFault"); +static constexpr uint32_t STORAGE_TYPE_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageTypeNotSupported"); +static constexpr uint32_t S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SNSTopicArnNotFound"); +static constexpr uint32_t S_N_S_INVALID_TOPIC_FAULT_HASH = ConstExprHashingUtils::HashString("SNSInvalidTopic"); +static constexpr uint32_t INVALID_D_B_SUBNET_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetStateFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t AUTHORIZATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationNotFound"); +static constexpr uint32_t D_B_CLUSTER_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterRoleNotFound"); +static constexpr uint32_t D_B_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterQuotaExceededFault"); +static constexpr uint32_t INSUFFICIENT_D_B_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientDBClusterCapacityFault"); +static constexpr uint32_t SOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SourceNotFound"); +static constexpr uint32_t INVALID_GLOBAL_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidGlobalClusterStateFault"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == D_B_CLUSTER_NOT_FOUND_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-neptune/source/model/ApplyMethod.cpp b/generated/src/aws-cpp-sdk-neptune/source/model/ApplyMethod.cpp index 4326dfe0ac4..71e81a68d2a 100644 --- a/generated/src/aws-cpp-sdk-neptune/source/model/ApplyMethod.cpp +++ b/generated/src/aws-cpp-sdk-neptune/source/model/ApplyMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplyMethodMapper { - static const int immediate_HASH = HashingUtils::HashString("immediate"); - static const int pending_reboot_HASH = HashingUtils::HashString("pending-reboot"); + static constexpr uint32_t immediate_HASH = ConstExprHashingUtils::HashString("immediate"); + static constexpr uint32_t pending_reboot_HASH = ConstExprHashingUtils::HashString("pending-reboot"); ApplyMethod GetApplyMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == immediate_HASH) { return ApplyMethod::immediate; diff --git a/generated/src/aws-cpp-sdk-neptune/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-neptune/source/model/SourceType.cpp index 8eeed606e6c..39f0ca868f5 100644 --- a/generated/src/aws-cpp-sdk-neptune/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-neptune/source/model/SourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SourceTypeMapper { - static const int db_instance_HASH = HashingUtils::HashString("db-instance"); - static const int db_parameter_group_HASH = HashingUtils::HashString("db-parameter-group"); - static const int db_security_group_HASH = HashingUtils::HashString("db-security-group"); - static const int db_snapshot_HASH = HashingUtils::HashString("db-snapshot"); - static const int db_cluster_HASH = HashingUtils::HashString("db-cluster"); - static const int db_cluster_snapshot_HASH = HashingUtils::HashString("db-cluster-snapshot"); + static constexpr uint32_t db_instance_HASH = ConstExprHashingUtils::HashString("db-instance"); + static constexpr uint32_t db_parameter_group_HASH = ConstExprHashingUtils::HashString("db-parameter-group"); + static constexpr uint32_t db_security_group_HASH = ConstExprHashingUtils::HashString("db-security-group"); + static constexpr uint32_t db_snapshot_HASH = ConstExprHashingUtils::HashString("db-snapshot"); + static constexpr uint32_t db_cluster_HASH = ConstExprHashingUtils::HashString("db-cluster"); + static constexpr uint32_t db_cluster_snapshot_HASH = ConstExprHashingUtils::HashString("db-cluster-snapshot"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == db_instance_HASH) { return SourceType::db_instance; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataErrors.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataErrors.cpp index 762cdb4b6f8..212e16e60b0 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataErrors.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataErrors.cpp @@ -257,41 +257,41 @@ template<> AWS_NEPTUNEDATA_API FailureByQueryException NeptunedataError::GetMode namespace NeptunedataErrorMapper { -static const int QUERY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("QueryLimitExceededException"); -static const int EXPIRED_STREAM_HASH = HashingUtils::HashString("ExpiredStreamException"); -static const int QUERY_LIMIT_HASH = HashingUtils::HashString("QueryLimitException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int CANCELLED_BY_USER_HASH = HashingUtils::HashString("CancelledByUserException"); -static const int STREAM_RECORDS_NOT_FOUND_HASH = HashingUtils::HashString("StreamRecordsNotFoundException"); -static const int PARSING_HASH = HashingUtils::HashString("ParsingException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("IllegalArgumentException"); -static const int BULK_LOAD_ID_NOT_FOUND_HASH = HashingUtils::HashString("BulkLoadIdNotFoundException"); -static const int INVALID_NUMERIC_DATA_HASH = HashingUtils::HashString("InvalidNumericDataException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int CONSTRAINT_VIOLATION_HASH = HashingUtils::HashString("ConstraintViolationException"); -static const int SERVER_SHUTDOWN_HASH = HashingUtils::HashString("ServerShutdownException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); -static const int LOAD_URL_ACCESS_DENIED_HASH = HashingUtils::HashString("LoadUrlAccessDeniedException"); -static const int S3_HASH = HashingUtils::HashString("S3Exception"); -static const int MALFORMED_QUERY_HASH = HashingUtils::HashString("MalformedQueryException"); -static const int QUERY_TOO_LARGE_HASH = HashingUtils::HashString("QueryTooLargeException"); -static const int READ_ONLY_VIOLATION_HASH = HashingUtils::HashString("ReadOnlyViolationException"); -static const int CLIENT_TIMEOUT_HASH = HashingUtils::HashString("ClientTimeoutException"); -static const int STATISTICS_NOT_AVAILABLE_HASH = HashingUtils::HashString("StatisticsNotAvailableException"); -static const int METHOD_NOT_ALLOWED_HASH = HashingUtils::HashString("MethodNotAllowedException"); -static const int MEMORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("MemoryLimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int M_L_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("MLResourceNotFoundException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int PRECONDITIONS_FAILED_HASH = HashingUtils::HashString("PreconditionsFailedException"); -static const int TIME_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TimeLimitExceededException"); -static const int FAILURE_BY_QUERY_HASH = HashingUtils::HashString("FailureByQueryException"); +static constexpr uint32_t QUERY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("QueryLimitExceededException"); +static constexpr uint32_t EXPIRED_STREAM_HASH = ConstExprHashingUtils::HashString("ExpiredStreamException"); +static constexpr uint32_t QUERY_LIMIT_HASH = ConstExprHashingUtils::HashString("QueryLimitException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t CANCELLED_BY_USER_HASH = ConstExprHashingUtils::HashString("CancelledByUserException"); +static constexpr uint32_t STREAM_RECORDS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("StreamRecordsNotFoundException"); +static constexpr uint32_t PARSING_HASH = ConstExprHashingUtils::HashString("ParsingException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t ILLEGAL_ARGUMENT_HASH = ConstExprHashingUtils::HashString("IllegalArgumentException"); +static constexpr uint32_t BULK_LOAD_ID_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("BulkLoadIdNotFoundException"); +static constexpr uint32_t INVALID_NUMERIC_DATA_HASH = ConstExprHashingUtils::HashString("InvalidNumericDataException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t CONSTRAINT_VIOLATION_HASH = ConstExprHashingUtils::HashString("ConstraintViolationException"); +static constexpr uint32_t SERVER_SHUTDOWN_HASH = ConstExprHashingUtils::HashString("ServerShutdownException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t LOAD_URL_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("LoadUrlAccessDeniedException"); +static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3Exception"); +static constexpr uint32_t MALFORMED_QUERY_HASH = ConstExprHashingUtils::HashString("MalformedQueryException"); +static constexpr uint32_t QUERY_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("QueryTooLargeException"); +static constexpr uint32_t READ_ONLY_VIOLATION_HASH = ConstExprHashingUtils::HashString("ReadOnlyViolationException"); +static constexpr uint32_t CLIENT_TIMEOUT_HASH = ConstExprHashingUtils::HashString("ClientTimeoutException"); +static constexpr uint32_t STATISTICS_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("StatisticsNotAvailableException"); +static constexpr uint32_t METHOD_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("MethodNotAllowedException"); +static constexpr uint32_t MEMORY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MemoryLimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t M_L_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("MLResourceNotFoundException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t PRECONDITIONS_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionsFailedException"); +static constexpr uint32_t TIME_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TimeLimitExceededException"); +static constexpr uint32_t FAILURE_BY_QUERY_HASH = ConstExprHashingUtils::HashString("FailureByQueryException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == QUERY_LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/Action.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/Action.cpp index ce8112f891c..f6e09636d1e 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/Action.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/Action.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ActionMapper { - static const int initiateDatabaseReset_HASH = HashingUtils::HashString("initiateDatabaseReset"); - static const int performDatabaseReset_HASH = HashingUtils::HashString("performDatabaseReset"); + static constexpr uint32_t initiateDatabaseReset_HASH = ConstExprHashingUtils::HashString("initiateDatabaseReset"); + static constexpr uint32_t performDatabaseReset_HASH = ConstExprHashingUtils::HashString("performDatabaseReset"); Action GetActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == initiateDatabaseReset_HASH) { return Action::initiateDatabaseReset; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/Encoding.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/Encoding.cpp index ae951e6f740..01cba2a818a 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/Encoding.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/Encoding.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncodingMapper { - static const int gzip_HASH = HashingUtils::HashString("gzip"); + static constexpr uint32_t gzip_HASH = ConstExprHashingUtils::HashString("gzip"); Encoding GetEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gzip_HASH) { return Encoding::gzip; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/Format.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/Format.cpp index 0a5ff39b42e..6ec82d5229b 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/Format.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FormatMapper { - static const int csv_HASH = HashingUtils::HashString("csv"); - static const int opencypher_HASH = HashingUtils::HashString("opencypher"); - static const int ntriples_HASH = HashingUtils::HashString("ntriples"); - static const int nquads_HASH = HashingUtils::HashString("nquads"); - static const int rdfxml_HASH = HashingUtils::HashString("rdfxml"); - static const int turtle_HASH = HashingUtils::HashString("turtle"); + static constexpr uint32_t csv_HASH = ConstExprHashingUtils::HashString("csv"); + static constexpr uint32_t opencypher_HASH = ConstExprHashingUtils::HashString("opencypher"); + static constexpr uint32_t ntriples_HASH = ConstExprHashingUtils::HashString("ntriples"); + static constexpr uint32_t nquads_HASH = ConstExprHashingUtils::HashString("nquads"); + static constexpr uint32_t rdfxml_HASH = ConstExprHashingUtils::HashString("rdfxml"); + static constexpr uint32_t turtle_HASH = ConstExprHashingUtils::HashString("turtle"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == csv_HASH) { return Format::csv; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/GraphSummaryType.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/GraphSummaryType.cpp index 9be97f75654..dcd989df348 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/GraphSummaryType.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/GraphSummaryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GraphSummaryTypeMapper { - static const int basic_HASH = HashingUtils::HashString("basic"); - static const int detailed_HASH = HashingUtils::HashString("detailed"); + static constexpr uint32_t basic_HASH = ConstExprHashingUtils::HashString("basic"); + static constexpr uint32_t detailed_HASH = ConstExprHashingUtils::HashString("detailed"); GraphSummaryType GetGraphSummaryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == basic_HASH) { return GraphSummaryType::basic; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/IteratorType.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/IteratorType.cpp index f14d272cdca..3a84bd0e628 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/IteratorType.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/IteratorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IteratorTypeMapper { - static const int AT_SEQUENCE_NUMBER_HASH = HashingUtils::HashString("AT_SEQUENCE_NUMBER"); - static const int AFTER_SEQUENCE_NUMBER_HASH = HashingUtils::HashString("AFTER_SEQUENCE_NUMBER"); - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); + static constexpr uint32_t AT_SEQUENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("AT_SEQUENCE_NUMBER"); + static constexpr uint32_t AFTER_SEQUENCE_NUMBER_HASH = ConstExprHashingUtils::HashString("AFTER_SEQUENCE_NUMBER"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); IteratorType GetIteratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AT_SEQUENCE_NUMBER_HASH) { return IteratorType::AT_SEQUENCE_NUMBER; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/Mode.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/Mode.cpp index f3d4b6cb355..305df95b001 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/Mode.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/Mode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModeMapper { - static const int RESUME_HASH = HashingUtils::HashString("RESUME"); - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t RESUME_HASH = ConstExprHashingUtils::HashString("RESUME"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); Mode GetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESUME_HASH) { return Mode::RESUME; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/OpenCypherExplainMode.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/OpenCypherExplainMode.cpp index f70fc07de39..c5c10ebe686 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/OpenCypherExplainMode.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/OpenCypherExplainMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OpenCypherExplainModeMapper { - static const int static__HASH = HashingUtils::HashString("static"); - static const int dynamic_HASH = HashingUtils::HashString("dynamic"); - static const int details_HASH = HashingUtils::HashString("details"); + static constexpr uint32_t static__HASH = ConstExprHashingUtils::HashString("static"); + static constexpr uint32_t dynamic_HASH = ConstExprHashingUtils::HashString("dynamic"); + static constexpr uint32_t details_HASH = ConstExprHashingUtils::HashString("details"); OpenCypherExplainMode GetOpenCypherExplainModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == static__HASH) { return OpenCypherExplainMode::static_; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/Parallelism.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/Parallelism.cpp index ae5e75fc872..a5ca9c23991 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/Parallelism.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/Parallelism.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ParallelismMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int OVERSUBSCRIBE_HASH = HashingUtils::HashString("OVERSUBSCRIBE"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t OVERSUBSCRIBE_HASH = ConstExprHashingUtils::HashString("OVERSUBSCRIBE"); Parallelism GetParallelismForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return Parallelism::LOW; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/S3BucketRegion.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/S3BucketRegion.cpp index 93ed9ba4508..7037beb2cdc 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/S3BucketRegion.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/S3BucketRegion.cpp @@ -20,34 +20,34 @@ namespace Aws namespace S3BucketRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int cn_northwest_1_HASH = HashingUtils::HashString("cn-northwest-1"); - static const int us_gov_west_1_HASH = HashingUtils::HashString("us-gov-west-1"); - static const int us_gov_east_1_HASH = HashingUtils::HashString("us-gov-east-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t cn_northwest_1_HASH = ConstExprHashingUtils::HashString("cn-northwest-1"); + static constexpr uint32_t us_gov_west_1_HASH = ConstExprHashingUtils::HashString("us-gov-west-1"); + static constexpr uint32_t us_gov_east_1_HASH = ConstExprHashingUtils::HashString("us-gov-east-1"); S3BucketRegion GetS3BucketRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return S3BucketRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/model/StatisticsAutoGenerationMode.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/model/StatisticsAutoGenerationMode.cpp index 73192100b1c..c9007f73051 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/model/StatisticsAutoGenerationMode.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/model/StatisticsAutoGenerationMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatisticsAutoGenerationModeMapper { - static const int disableAutoCompute_HASH = HashingUtils::HashString("disableAutoCompute"); - static const int enableAutoCompute_HASH = HashingUtils::HashString("enableAutoCompute"); - static const int refresh_HASH = HashingUtils::HashString("refresh"); + static constexpr uint32_t disableAutoCompute_HASH = ConstExprHashingUtils::HashString("disableAutoCompute"); + static constexpr uint32_t enableAutoCompute_HASH = ConstExprHashingUtils::HashString("enableAutoCompute"); + static constexpr uint32_t refresh_HASH = ConstExprHashingUtils::HashString("refresh"); StatisticsAutoGenerationMode GetStatisticsAutoGenerationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == disableAutoCompute_HASH) { return StatisticsAutoGenerationMode::disableAutoCompute; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallErrors.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallErrors.cpp index b47a4530d64..e0933329c50 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallErrors.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallErrors.cpp @@ -18,20 +18,20 @@ namespace NetworkFirewall namespace NetworkFirewallErrorMapper { -static const int INSUFFICIENT_CAPACITY_HASH = HashingUtils::HashString("InsufficientCapacityException"); -static const int INVALID_TOKEN_HASH = HashingUtils::HashString("InvalidTokenException"); -static const int RESOURCE_OWNER_CHECK_HASH = HashingUtils::HashString("ResourceOwnerCheckException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_RESOURCE_POLICY_HASH = HashingUtils::HashString("InvalidResourcePolicyException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int LOG_DESTINATION_PERMISSION_HASH = HashingUtils::HashString("LogDestinationPermissionException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INSUFFICIENT_CAPACITY_HASH = ConstExprHashingUtils::HashString("InsufficientCapacityException"); +static constexpr uint32_t INVALID_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidTokenException"); +static constexpr uint32_t RESOURCE_OWNER_CHECK_HASH = ConstExprHashingUtils::HashString("ResourceOwnerCheckException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidResourcePolicyException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t LOG_DESTINATION_PERMISSION_HASH = ConstExprHashingUtils::HashString("LogDestinationPermissionException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INSUFFICIENT_CAPACITY_HASH) { diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/AttachmentStatus.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/AttachmentStatus.cpp index f3284350014..d071d6c9173 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/AttachmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/AttachmentStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AttachmentStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int SCALING_HASH = HashingUtils::HashString("SCALING"); - static const int READY_HASH = HashingUtils::HashString("READY"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t SCALING_HASH = ConstExprHashingUtils::HashString("SCALING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); AttachmentStatus GetAttachmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AttachmentStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/ConfigurationSyncState.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/ConfigurationSyncState.cpp index 4aba7d239c4..3fde98d1968 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/ConfigurationSyncState.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/ConfigurationSyncState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConfigurationSyncStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int CAPACITY_CONSTRAINED_HASH = HashingUtils::HashString("CAPACITY_CONSTRAINED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t CAPACITY_CONSTRAINED_HASH = ConstExprHashingUtils::HashString("CAPACITY_CONSTRAINED"); ConfigurationSyncState GetConfigurationSyncStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ConfigurationSyncState::PENDING; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/EncryptionType.cpp index b329e70e771..c4e34a43a51 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int CUSTOMER_KMS_HASH = HashingUtils::HashString("CUSTOMER_KMS"); - static const int AWS_OWNED_KMS_KEY_HASH = HashingUtils::HashString("AWS_OWNED_KMS_KEY"); + static constexpr uint32_t CUSTOMER_KMS_HASH = ConstExprHashingUtils::HashString("CUSTOMER_KMS"); + static constexpr uint32_t AWS_OWNED_KMS_KEY_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_KMS_KEY"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_KMS_HASH) { return EncryptionType::CUSTOMER_KMS; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/FirewallStatusValue.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/FirewallStatusValue.cpp index 983cb08e4f8..063d20d72c3 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/FirewallStatusValue.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/FirewallStatusValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FirewallStatusValueMapper { - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int READY_HASH = HashingUtils::HashString("READY"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); FirewallStatusValue GetFirewallStatusValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONING_HASH) { return FirewallStatusValue::PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/GeneratedRulesType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/GeneratedRulesType.cpp index 8471014ebf5..d81f390aef1 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/GeneratedRulesType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/GeneratedRulesType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GeneratedRulesTypeMapper { - static const int ALLOWLIST_HASH = HashingUtils::HashString("ALLOWLIST"); - static const int DENYLIST_HASH = HashingUtils::HashString("DENYLIST"); + static constexpr uint32_t ALLOWLIST_HASH = ConstExprHashingUtils::HashString("ALLOWLIST"); + static constexpr uint32_t DENYLIST_HASH = ConstExprHashingUtils::HashString("DENYLIST"); GeneratedRulesType GetGeneratedRulesTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOWLIST_HASH) { return GeneratedRulesType::ALLOWLIST; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/IPAddressType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/IPAddressType.cpp index 403e6bf8edd..9de7128505d 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/IPAddressType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/IPAddressType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IPAddressTypeMapper { - static const int DUALSTACK_HASH = HashingUtils::HashString("DUALSTACK"); - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); + static constexpr uint32_t DUALSTACK_HASH = ConstExprHashingUtils::HashString("DUALSTACK"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); IPAddressType GetIPAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUALSTACK_HASH) { return IPAddressType::DUALSTACK; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/LogDestinationType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/LogDestinationType.cpp index c6e1452b8cc..28b88c3e07f 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/LogDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/LogDestinationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LogDestinationTypeMapper { - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int CloudWatchLogs_HASH = HashingUtils::HashString("CloudWatchLogs"); - static const int KinesisDataFirehose_HASH = HashingUtils::HashString("KinesisDataFirehose"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t CloudWatchLogs_HASH = ConstExprHashingUtils::HashString("CloudWatchLogs"); + static constexpr uint32_t KinesisDataFirehose_HASH = ConstExprHashingUtils::HashString("KinesisDataFirehose"); LogDestinationType GetLogDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3_HASH) { return LogDestinationType::S3; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/LogType.cpp index 999fda2e3ba..7f4840a0bb8 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/LogType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogTypeMapper { - static const int ALERT_HASH = HashingUtils::HashString("ALERT"); - static const int FLOW_HASH = HashingUtils::HashString("FLOW"); + static constexpr uint32_t ALERT_HASH = ConstExprHashingUtils::HashString("ALERT"); + static constexpr uint32_t FLOW_HASH = ConstExprHashingUtils::HashString("FLOW"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALERT_HASH) { return LogType::ALERT; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/OverrideAction.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/OverrideAction.cpp index 18a4ca4fc89..39341f10315 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/OverrideAction.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/OverrideAction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OverrideActionMapper { - static const int DROP_TO_ALERT_HASH = HashingUtils::HashString("DROP_TO_ALERT"); + static constexpr uint32_t DROP_TO_ALERT_HASH = ConstExprHashingUtils::HashString("DROP_TO_ALERT"); OverrideAction GetOverrideActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROP_TO_ALERT_HASH) { return OverrideAction::DROP_TO_ALERT; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/PerObjectSyncStatus.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/PerObjectSyncStatus.cpp index bfc2aeb84a6..f85582148b1 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/PerObjectSyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/PerObjectSyncStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PerObjectSyncStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_SYNC_HASH = HashingUtils::HashString("IN_SYNC"); - static const int CAPACITY_CONSTRAINED_HASH = HashingUtils::HashString("CAPACITY_CONSTRAINED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_SYNC_HASH = ConstExprHashingUtils::HashString("IN_SYNC"); + static constexpr uint32_t CAPACITY_CONSTRAINED_HASH = ConstExprHashingUtils::HashString("CAPACITY_CONSTRAINED"); PerObjectSyncStatus GetPerObjectSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return PerObjectSyncStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedStatus.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedStatus.cpp index 5cc4b926c04..5fecdf7087b 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedStatus.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceManagedStatusMapper { - static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t MANAGED_HASH = ConstExprHashingUtils::HashString("MANAGED"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); ResourceManagedStatus GetResourceManagedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANAGED_HASH) { return ResourceManagedStatus::MANAGED; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedType.cpp index 8144f518803..08c8ccab0b5 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceManagedType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceManagedTypeMapper { - static const int AWS_MANAGED_THREAT_SIGNATURES_HASH = HashingUtils::HashString("AWS_MANAGED_THREAT_SIGNATURES"); - static const int AWS_MANAGED_DOMAIN_LISTS_HASH = HashingUtils::HashString("AWS_MANAGED_DOMAIN_LISTS"); + static constexpr uint32_t AWS_MANAGED_THREAT_SIGNATURES_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED_THREAT_SIGNATURES"); + static constexpr uint32_t AWS_MANAGED_DOMAIN_LISTS_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED_DOMAIN_LISTS"); ResourceManagedType GetResourceManagedTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_MANAGED_THREAT_SIGNATURES_HASH) { return ResourceManagedType::AWS_MANAGED_THREAT_SIGNATURES; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceStatus.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceStatus.cpp index c80c32ed759..27d8a139f60 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/ResourceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ResourceStatus GetResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ResourceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleGroupType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleGroupType.cpp index 57e1ab6c1d1..58d8c34c612 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleGroupType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleGroupType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleGroupTypeMapper { - static const int STATELESS_HASH = HashingUtils::HashString("STATELESS"); - static const int STATEFUL_HASH = HashingUtils::HashString("STATEFUL"); + static constexpr uint32_t STATELESS_HASH = ConstExprHashingUtils::HashString("STATELESS"); + static constexpr uint32_t STATEFUL_HASH = ConstExprHashingUtils::HashString("STATEFUL"); RuleGroupType GetRuleGroupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATELESS_HASH) { return RuleGroupType::STATELESS; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleOrder.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleOrder.cpp index e79a9a33ef1..61803db43e0 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleOrder.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/RuleOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleOrderMapper { - static const int DEFAULT_ACTION_ORDER_HASH = HashingUtils::HashString("DEFAULT_ACTION_ORDER"); - static const int STRICT_ORDER_HASH = HashingUtils::HashString("STRICT_ORDER"); + static constexpr uint32_t DEFAULT_ACTION_ORDER_HASH = ConstExprHashingUtils::HashString("DEFAULT_ACTION_ORDER"); + static constexpr uint32_t STRICT_ORDER_HASH = ConstExprHashingUtils::HashString("STRICT_ORDER"); RuleOrder GetRuleOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_ACTION_ORDER_HASH) { return RuleOrder::DEFAULT_ACTION_ORDER; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulAction.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulAction.cpp index 6a57d2b1d3e..32f827f7223 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulAction.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulAction.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StatefulActionMapper { - static const int PASS_HASH = HashingUtils::HashString("PASS"); - static const int DROP_HASH = HashingUtils::HashString("DROP"); - static const int ALERT_HASH = HashingUtils::HashString("ALERT"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); + static constexpr uint32_t PASS_HASH = ConstExprHashingUtils::HashString("PASS"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); + static constexpr uint32_t ALERT_HASH = ConstExprHashingUtils::HashString("ALERT"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); StatefulAction GetStatefulActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASS_HASH) { return StatefulAction::PASS; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleDirection.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleDirection.cpp index 7a2752f3888..ee263139085 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleDirection.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatefulRuleDirectionMapper { - static const int FORWARD_HASH = HashingUtils::HashString("FORWARD"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); + static constexpr uint32_t FORWARD_HASH = ConstExprHashingUtils::HashString("FORWARD"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); StatefulRuleDirection GetStatefulRuleDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORWARD_HASH) { return StatefulRuleDirection::FORWARD; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleProtocol.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleProtocol.cpp index 6b33c5f4e96..b1e8c899266 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleProtocol.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/StatefulRuleProtocol.cpp @@ -20,30 +20,30 @@ namespace Aws namespace StatefulRuleProtocolMapper { - static const int IP_HASH = HashingUtils::HashString("IP"); - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int UDP_HASH = HashingUtils::HashString("UDP"); - static const int ICMP_HASH = HashingUtils::HashString("ICMP"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int FTP_HASH = HashingUtils::HashString("FTP"); - static const int TLS_HASH = HashingUtils::HashString("TLS"); - static const int SMB_HASH = HashingUtils::HashString("SMB"); - static const int DNS_HASH = HashingUtils::HashString("DNS"); - static const int DCERPC_HASH = HashingUtils::HashString("DCERPC"); - static const int SSH_HASH = HashingUtils::HashString("SSH"); - static const int SMTP_HASH = HashingUtils::HashString("SMTP"); - static const int IMAP_HASH = HashingUtils::HashString("IMAP"); - static const int MSN_HASH = HashingUtils::HashString("MSN"); - static const int KRB5_HASH = HashingUtils::HashString("KRB5"); - static const int IKEV2_HASH = HashingUtils::HashString("IKEV2"); - static const int TFTP_HASH = HashingUtils::HashString("TFTP"); - static const int NTP_HASH = HashingUtils::HashString("NTP"); - static const int DHCP_HASH = HashingUtils::HashString("DHCP"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t UDP_HASH = ConstExprHashingUtils::HashString("UDP"); + static constexpr uint32_t ICMP_HASH = ConstExprHashingUtils::HashString("ICMP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t FTP_HASH = ConstExprHashingUtils::HashString("FTP"); + static constexpr uint32_t TLS_HASH = ConstExprHashingUtils::HashString("TLS"); + static constexpr uint32_t SMB_HASH = ConstExprHashingUtils::HashString("SMB"); + static constexpr uint32_t DNS_HASH = ConstExprHashingUtils::HashString("DNS"); + static constexpr uint32_t DCERPC_HASH = ConstExprHashingUtils::HashString("DCERPC"); + static constexpr uint32_t SSH_HASH = ConstExprHashingUtils::HashString("SSH"); + static constexpr uint32_t SMTP_HASH = ConstExprHashingUtils::HashString("SMTP"); + static constexpr uint32_t IMAP_HASH = ConstExprHashingUtils::HashString("IMAP"); + static constexpr uint32_t MSN_HASH = ConstExprHashingUtils::HashString("MSN"); + static constexpr uint32_t KRB5_HASH = ConstExprHashingUtils::HashString("KRB5"); + static constexpr uint32_t IKEV2_HASH = ConstExprHashingUtils::HashString("IKEV2"); + static constexpr uint32_t TFTP_HASH = ConstExprHashingUtils::HashString("TFTP"); + static constexpr uint32_t NTP_HASH = ConstExprHashingUtils::HashString("NTP"); + static constexpr uint32_t DHCP_HASH = ConstExprHashingUtils::HashString("DHCP"); StatefulRuleProtocol GetStatefulRuleProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_HASH) { return StatefulRuleProtocol::IP; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/StreamExceptionPolicy.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/StreamExceptionPolicy.cpp index bbbf19d368d..2ab1ec63556 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/StreamExceptionPolicy.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/StreamExceptionPolicy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StreamExceptionPolicyMapper { - static const int DROP_HASH = HashingUtils::HashString("DROP"); - static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); + static constexpr uint32_t CONTINUE_HASH = ConstExprHashingUtils::HashString("CONTINUE"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); StreamExceptionPolicy GetStreamExceptionPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROP_HASH) { return StreamExceptionPolicy::DROP; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/TCPFlag.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/TCPFlag.cpp index 0e9f53002aa..21b7fb2236e 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/TCPFlag.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/TCPFlag.cpp @@ -20,19 +20,19 @@ namespace Aws namespace TCPFlagMapper { - static const int FIN_HASH = HashingUtils::HashString("FIN"); - static const int SYN_HASH = HashingUtils::HashString("SYN"); - static const int RST_HASH = HashingUtils::HashString("RST"); - static const int PSH_HASH = HashingUtils::HashString("PSH"); - static const int ACK_HASH = HashingUtils::HashString("ACK"); - static const int URG_HASH = HashingUtils::HashString("URG"); - static const int ECE_HASH = HashingUtils::HashString("ECE"); - static const int CWR_HASH = HashingUtils::HashString("CWR"); + static constexpr uint32_t FIN_HASH = ConstExprHashingUtils::HashString("FIN"); + static constexpr uint32_t SYN_HASH = ConstExprHashingUtils::HashString("SYN"); + static constexpr uint32_t RST_HASH = ConstExprHashingUtils::HashString("RST"); + static constexpr uint32_t PSH_HASH = ConstExprHashingUtils::HashString("PSH"); + static constexpr uint32_t ACK_HASH = ConstExprHashingUtils::HashString("ACK"); + static constexpr uint32_t URG_HASH = ConstExprHashingUtils::HashString("URG"); + static constexpr uint32_t ECE_HASH = ConstExprHashingUtils::HashString("ECE"); + static constexpr uint32_t CWR_HASH = ConstExprHashingUtils::HashString("CWR"); TCPFlag GetTCPFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIN_HASH) { return TCPFlag::FIN; diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/model/TargetType.cpp index 082aa697ed7..026cf3f7b9e 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/model/TargetType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetTypeMapper { - static const int TLS_SNI_HASH = HashingUtils::HashString("TLS_SNI"); - static const int HTTP_HOST_HASH = HashingUtils::HashString("HTTP_HOST"); + static constexpr uint32_t TLS_SNI_HASH = ConstExprHashingUtils::HashString("TLS_SNI"); + static constexpr uint32_t HTTP_HOST_HASH = ConstExprHashingUtils::HashString("HTTP_HOST"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TLS_SNI_HASH) { return TargetType::TLS_SNI; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerErrors.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerErrors.cpp index aa4ceb509f2..77e1fefac4d 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerErrors.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerErrors.cpp @@ -68,15 +68,15 @@ template<> AWS_NETWORKMANAGER_API ValidationException NetworkManagerError::GetMo namespace NetworkManagerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int CORE_NETWORK_POLICY_HASH = HashingUtils::HashString("CoreNetworkPolicyException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t CORE_NETWORK_POLICY_HASH = ConstExprHashingUtils::HashString("CoreNetworkPolicyException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentState.cpp index 32d7879ee6b..c1949d51537 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AttachmentStateMapper { - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int PENDING_ATTACHMENT_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_ATTACHMENT_ACCEPTANCE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int PENDING_NETWORK_UPDATE_HASH = HashingUtils::HashString("PENDING_NETWORK_UPDATE"); - static const int PENDING_TAG_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_TAG_ACCEPTANCE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t PENDING_ATTACHMENT_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_ATTACHMENT_ACCEPTANCE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_NETWORK_UPDATE_HASH = ConstExprHashingUtils::HashString("PENDING_NETWORK_UPDATE"); + static constexpr uint32_t PENDING_TAG_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_TAG_ACCEPTANCE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); AttachmentState GetAttachmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REJECTED_HASH) { return AttachmentState::REJECTED; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentType.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentType.cpp index f1deaaeec78..2968b2083b9 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentType.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/AttachmentType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AttachmentTypeMapper { - static const int CONNECT_HASH = HashingUtils::HashString("CONNECT"); - static const int SITE_TO_SITE_VPN_HASH = HashingUtils::HashString("SITE_TO_SITE_VPN"); - static const int VPC_HASH = HashingUtils::HashString("VPC"); - static const int TRANSIT_GATEWAY_ROUTE_TABLE_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ROUTE_TABLE"); + static constexpr uint32_t CONNECT_HASH = ConstExprHashingUtils::HashString("CONNECT"); + static constexpr uint32_t SITE_TO_SITE_VPN_HASH = ConstExprHashingUtils::HashString("SITE_TO_SITE_VPN"); + static constexpr uint32_t VPC_HASH = ConstExprHashingUtils::HashString("VPC"); + static constexpr uint32_t TRANSIT_GATEWAY_ROUTE_TABLE_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ROUTE_TABLE"); AttachmentType GetAttachmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECT_HASH) { return AttachmentType::CONNECT; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeAction.cpp index 88550f37801..442a24a8e5f 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeActionMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int MODIFY_HASH = HashingUtils::HashString("MODIFY"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t MODIFY_HASH = ConstExprHashingUtils::HashString("MODIFY"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return ChangeAction::ADD; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeSetState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeSetState.cpp index 399bb7986b0..9aa188d10fd 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeSetState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeSetState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ChangeSetStateMapper { - static const int PENDING_GENERATION_HASH = HashingUtils::HashString("PENDING_GENERATION"); - static const int FAILED_GENERATION_HASH = HashingUtils::HashString("FAILED_GENERATION"); - static const int READY_TO_EXECUTE_HASH = HashingUtils::HashString("READY_TO_EXECUTE"); - static const int EXECUTING_HASH = HashingUtils::HashString("EXECUTING"); - static const int EXECUTION_SUCCEEDED_HASH = HashingUtils::HashString("EXECUTION_SUCCEEDED"); - static const int OUT_OF_DATE_HASH = HashingUtils::HashString("OUT_OF_DATE"); + static constexpr uint32_t PENDING_GENERATION_HASH = ConstExprHashingUtils::HashString("PENDING_GENERATION"); + static constexpr uint32_t FAILED_GENERATION_HASH = ConstExprHashingUtils::HashString("FAILED_GENERATION"); + static constexpr uint32_t READY_TO_EXECUTE_HASH = ConstExprHashingUtils::HashString("READY_TO_EXECUTE"); + static constexpr uint32_t EXECUTING_HASH = ConstExprHashingUtils::HashString("EXECUTING"); + static constexpr uint32_t EXECUTION_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("EXECUTION_SUCCEEDED"); + static constexpr uint32_t OUT_OF_DATE_HASH = ConstExprHashingUtils::HashString("OUT_OF_DATE"); ChangeSetState GetChangeSetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_GENERATION_HASH) { return ChangeSetState::PENDING_GENERATION; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeStatus.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeStatus.cpp index 8ec1ffc415a..229d9c78660 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeStatus.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChangeStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ChangeStatus GetChangeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ChangeStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeType.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeType.cpp index 293ee18aa9f..72390a34c71 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeType.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ChangeType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ChangeTypeMapper { - static const int CORE_NETWORK_SEGMENT_HASH = HashingUtils::HashString("CORE_NETWORK_SEGMENT"); - static const int CORE_NETWORK_EDGE_HASH = HashingUtils::HashString("CORE_NETWORK_EDGE"); - static const int ATTACHMENT_MAPPING_HASH = HashingUtils::HashString("ATTACHMENT_MAPPING"); - static const int ATTACHMENT_ROUTE_PROPAGATION_HASH = HashingUtils::HashString("ATTACHMENT_ROUTE_PROPAGATION"); - static const int ATTACHMENT_ROUTE_STATIC_HASH = HashingUtils::HashString("ATTACHMENT_ROUTE_STATIC"); - static const int CORE_NETWORK_CONFIGURATION_HASH = HashingUtils::HashString("CORE_NETWORK_CONFIGURATION"); - static const int SEGMENTS_CONFIGURATION_HASH = HashingUtils::HashString("SEGMENTS_CONFIGURATION"); - static const int SEGMENT_ACTIONS_CONFIGURATION_HASH = HashingUtils::HashString("SEGMENT_ACTIONS_CONFIGURATION"); - static const int ATTACHMENT_POLICIES_CONFIGURATION_HASH = HashingUtils::HashString("ATTACHMENT_POLICIES_CONFIGURATION"); + static constexpr uint32_t CORE_NETWORK_SEGMENT_HASH = ConstExprHashingUtils::HashString("CORE_NETWORK_SEGMENT"); + static constexpr uint32_t CORE_NETWORK_EDGE_HASH = ConstExprHashingUtils::HashString("CORE_NETWORK_EDGE"); + static constexpr uint32_t ATTACHMENT_MAPPING_HASH = ConstExprHashingUtils::HashString("ATTACHMENT_MAPPING"); + static constexpr uint32_t ATTACHMENT_ROUTE_PROPAGATION_HASH = ConstExprHashingUtils::HashString("ATTACHMENT_ROUTE_PROPAGATION"); + static constexpr uint32_t ATTACHMENT_ROUTE_STATIC_HASH = ConstExprHashingUtils::HashString("ATTACHMENT_ROUTE_STATIC"); + static constexpr uint32_t CORE_NETWORK_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("CORE_NETWORK_CONFIGURATION"); + static constexpr uint32_t SEGMENTS_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("SEGMENTS_CONFIGURATION"); + static constexpr uint32_t SEGMENT_ACTIONS_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("SEGMENT_ACTIONS_CONFIGURATION"); + static constexpr uint32_t ATTACHMENT_POLICIES_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("ATTACHMENT_POLICIES_CONFIGURATION"); ChangeType GetChangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CORE_NETWORK_SEGMENT_HASH) { return ChangeType::CORE_NETWORK_SEGMENT; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerAssociationState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerAssociationState.cpp index a4710c4c8b8..5001c78e688 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConnectPeerAssociationStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ConnectPeerAssociationState GetConnectPeerAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ConnectPeerAssociationState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerState.cpp index ea0c66966aa..9a0557cc382 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectPeerState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConnectPeerStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ConnectPeerState GetConnectPeerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConnectPeerState::CREATING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionState.cpp index 1fffa10d98c..4486755f1c5 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConnectionStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); ConnectionState GetConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ConnectionState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionStatus.cpp index b082a5d1937..18485f75a18 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionStatusMapper { - static const int UP_HASH = HashingUtils::HashString("UP"); - static const int DOWN_HASH = HashingUtils::HashString("DOWN"); + static constexpr uint32_t UP_HASH = ConstExprHashingUtils::HashString("UP"); + static constexpr uint32_t DOWN_HASH = ConstExprHashingUtils::HashString("DOWN"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UP_HASH) { return ConnectionStatus::UP; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionType.cpp index 3d20e6de7b8..776d94422a4 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ConnectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionTypeMapper { - static const int BGP_HASH = HashingUtils::HashString("BGP"); - static const int IPSEC_HASH = HashingUtils::HashString("IPSEC"); + static constexpr uint32_t BGP_HASH = ConstExprHashingUtils::HashString("BGP"); + static constexpr uint32_t IPSEC_HASH = ConstExprHashingUtils::HashString("IPSEC"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BGP_HASH) { return ConnectionType::BGP; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkPolicyAlias.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkPolicyAlias.cpp index dd7738db184..307381afc10 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkPolicyAlias.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkPolicyAlias.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CoreNetworkPolicyAliasMapper { - static const int LIVE_HASH = HashingUtils::HashString("LIVE"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); + static constexpr uint32_t LIVE_HASH = ConstExprHashingUtils::HashString("LIVE"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); CoreNetworkPolicyAlias GetCoreNetworkPolicyAliasForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIVE_HASH) { return CoreNetworkPolicyAlias::LIVE; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkState.cpp index 526d9f170d8..9055cfefdea 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/CoreNetworkState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CoreNetworkStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); CoreNetworkState GetCoreNetworkStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CoreNetworkState::CREATING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/CustomerGatewayAssociationState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/CustomerGatewayAssociationState.cpp index 450b7d3ac47..23a71ed4305 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/CustomerGatewayAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/CustomerGatewayAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CustomerGatewayAssociationStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); CustomerGatewayAssociationState GetCustomerGatewayAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return CustomerGatewayAssociationState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/DeviceState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/DeviceState.cpp index 7776ce1acf3..cfb75aa209f 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/DeviceState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/DeviceState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeviceStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); DeviceState GetDeviceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DeviceState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/GlobalNetworkState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/GlobalNetworkState.cpp index cca413d7037..60c23b27ce8 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/GlobalNetworkState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/GlobalNetworkState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GlobalNetworkStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); GlobalNetworkState GetGlobalNetworkStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return GlobalNetworkState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkAssociationState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkAssociationState.cpp index a5ac2cffbe7..3fad2027edd 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LinkAssociationStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); LinkAssociationState GetLinkAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return LinkAssociationState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkState.cpp index fd094a8affd..c0e51bb75a0 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/LinkState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LinkStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); LinkState GetLinkStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return LinkState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringState.cpp index 86c26909890..9737baee45b 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PeeringStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); PeeringState GetPeeringStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return PeeringState::CREATING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringType.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringType.cpp index afd635c5fb5..64df0c3add8 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringType.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/PeeringType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PeeringTypeMapper { - static const int TRANSIT_GATEWAY_HASH = HashingUtils::HashString("TRANSIT_GATEWAY"); + static constexpr uint32_t TRANSIT_GATEWAY_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY"); PeeringType GetPeeringTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSIT_GATEWAY_HASH) { return PeeringType::TRANSIT_GATEWAY; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionReasonCode.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionReasonCode.cpp index 2272173ae86..cc0ec18d2ff 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionReasonCode.cpp @@ -20,22 +20,22 @@ namespace Aws namespace RouteAnalysisCompletionReasonCodeMapper { - static const int TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND"); - static const int TRANSIT_GATEWAY_ATTACHMENT_NOT_IN_TRANSIT_GATEWAY_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_NOT_IN_TRANSIT_GATEWAY"); - static const int CYCLIC_PATH_DETECTED_HASH = HashingUtils::HashString("CYCLIC_PATH_DETECTED"); - static const int TRANSIT_GATEWAY_ATTACHMENT_STABLE_ROUTE_TABLE_NOT_FOUND_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_STABLE_ROUTE_TABLE_NOT_FOUND"); - static const int ROUTE_NOT_FOUND_HASH = HashingUtils::HashString("ROUTE_NOT_FOUND"); - static const int BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND_HASH = HashingUtils::HashString("BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND"); - static const int INACTIVE_ROUTE_FOR_DESTINATION_FOUND_HASH = HashingUtils::HashString("INACTIVE_ROUTE_FOR_DESTINATION_FOUND"); - static const int TRANSIT_GATEWAY_ATTACHMENT_ATTACH_ARN_NO_MATCH_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_ATTACH_ARN_NO_MATCH"); - static const int MAX_HOPS_EXCEEDED_HASH = HashingUtils::HashString("MAX_HOPS_EXCEEDED"); - static const int POSSIBLE_MIDDLEBOX_HASH = HashingUtils::HashString("POSSIBLE_MIDDLEBOX"); - static const int NO_DESTINATION_ARN_PROVIDED_HASH = HashingUtils::HashString("NO_DESTINATION_ARN_PROVIDED"); + static constexpr uint32_t TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND"); + static constexpr uint32_t TRANSIT_GATEWAY_ATTACHMENT_NOT_IN_TRANSIT_GATEWAY_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_NOT_IN_TRANSIT_GATEWAY"); + static constexpr uint32_t CYCLIC_PATH_DETECTED_HASH = ConstExprHashingUtils::HashString("CYCLIC_PATH_DETECTED"); + static constexpr uint32_t TRANSIT_GATEWAY_ATTACHMENT_STABLE_ROUTE_TABLE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_STABLE_ROUTE_TABLE_NOT_FOUND"); + static constexpr uint32_t ROUTE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ROUTE_NOT_FOUND"); + static constexpr uint32_t BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND_HASH = ConstExprHashingUtils::HashString("BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND"); + static constexpr uint32_t INACTIVE_ROUTE_FOR_DESTINATION_FOUND_HASH = ConstExprHashingUtils::HashString("INACTIVE_ROUTE_FOR_DESTINATION_FOUND"); + static constexpr uint32_t TRANSIT_GATEWAY_ATTACHMENT_ATTACH_ARN_NO_MATCH_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ATTACHMENT_ATTACH_ARN_NO_MATCH"); + static constexpr uint32_t MAX_HOPS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_HOPS_EXCEEDED"); + static constexpr uint32_t POSSIBLE_MIDDLEBOX_HASH = ConstExprHashingUtils::HashString("POSSIBLE_MIDDLEBOX"); + static constexpr uint32_t NO_DESTINATION_ARN_PROVIDED_HASH = ConstExprHashingUtils::HashString("NO_DESTINATION_ARN_PROVIDED"); RouteAnalysisCompletionReasonCode GetRouteAnalysisCompletionReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND_HASH) { return RouteAnalysisCompletionReasonCode::TRANSIT_GATEWAY_ATTACHMENT_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionResultCode.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionResultCode.cpp index f6891816614..5c637f733cf 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionResultCode.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisCompletionResultCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteAnalysisCompletionResultCodeMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int NOT_CONNECTED_HASH = HashingUtils::HashString("NOT_CONNECTED"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t NOT_CONNECTED_HASH = ConstExprHashingUtils::HashString("NOT_CONNECTED"); RouteAnalysisCompletionResultCode GetRouteAnalysisCompletionResultCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return RouteAnalysisCompletionResultCode::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisStatus.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisStatus.cpp index a83c3255ba7..b5b8470cc5a 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisStatus.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteAnalysisStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RouteAnalysisStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RouteAnalysisStatus GetRouteAnalysisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return RouteAnalysisStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteState.cpp index a4bff1ffbfe..228b131a21f 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int BLACKHOLE_HASH = HashingUtils::HashString("BLACKHOLE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t BLACKHOLE_HASH = ConstExprHashingUtils::HashString("BLACKHOLE"); RouteState GetRouteStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RouteState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteTableType.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteTableType.cpp index 09937ea9e17..fc7f74820b8 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteTableType.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteTableType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteTableTypeMapper { - static const int TRANSIT_GATEWAY_ROUTE_TABLE_HASH = HashingUtils::HashString("TRANSIT_GATEWAY_ROUTE_TABLE"); - static const int CORE_NETWORK_SEGMENT_HASH = HashingUtils::HashString("CORE_NETWORK_SEGMENT"); + static constexpr uint32_t TRANSIT_GATEWAY_ROUTE_TABLE_HASH = ConstExprHashingUtils::HashString("TRANSIT_GATEWAY_ROUTE_TABLE"); + static constexpr uint32_t CORE_NETWORK_SEGMENT_HASH = ConstExprHashingUtils::HashString("CORE_NETWORK_SEGMENT"); RouteTableType GetRouteTableTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSIT_GATEWAY_ROUTE_TABLE_HASH) { return RouteTableType::TRANSIT_GATEWAY_ROUTE_TABLE; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteType.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteType.cpp index e1539c8dc4c..c40970ea9d4 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteType.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/RouteType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RouteTypeMapper { - static const int PROPAGATED_HASH = HashingUtils::HashString("PROPAGATED"); - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static constexpr uint32_t PROPAGATED_HASH = ConstExprHashingUtils::HashString("PROPAGATED"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); RouteType GetRouteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROPAGATED_HASH) { return RouteType::PROPAGATED; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/SiteState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/SiteState.cpp index 4461fc499e1..24af7050ee5 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/SiteState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/SiteState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SiteStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); SiteState GetSiteStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return SiteState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayConnectPeerAssociationState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayConnectPeerAssociationState.cpp index 244a9c9e974..6c2dc76d4ef 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayConnectPeerAssociationState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayConnectPeerAssociationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TransitGatewayConnectPeerAssociationStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); TransitGatewayConnectPeerAssociationState GetTransitGatewayConnectPeerAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return TransitGatewayConnectPeerAssociationState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayRegistrationState.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayRegistrationState.cpp index 6b41c9717b7..ddf3f7bdf2a 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayRegistrationState.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/TransitGatewayRegistrationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransitGatewayRegistrationStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); TransitGatewayRegistrationState GetTransitGatewayRegistrationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return TransitGatewayRegistrationState::PENDING; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/TunnelProtocol.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/TunnelProtocol.cpp index 68511a55ea9..bdab3000bdc 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/TunnelProtocol.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/TunnelProtocol.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TunnelProtocolMapper { - static const int GRE_HASH = HashingUtils::HashString("GRE"); + static constexpr uint32_t GRE_HASH = ConstExprHashingUtils::HashString("GRE"); TunnelProtocol GetTunnelProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GRE_HASH) { return TunnelProtocol::GRE; diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/model/ValidationExceptionReason.cpp index 05ed245345d..d9b4f46cfb0 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UnknownOperation_HASH = HashingUtils::HashString("UnknownOperation"); - static const int CannotParse_HASH = HashingUtils::HashString("CannotParse"); - static const int FieldValidationFailed_HASH = HashingUtils::HashString("FieldValidationFailed"); - static const int Other_HASH = HashingUtils::HashString("Other"); + static constexpr uint32_t UnknownOperation_HASH = ConstExprHashingUtils::HashString("UnknownOperation"); + static constexpr uint32_t CannotParse_HASH = ConstExprHashingUtils::HashString("CannotParse"); + static constexpr uint32_t FieldValidationFailed_HASH = ConstExprHashingUtils::HashString("FieldValidationFailed"); + static constexpr uint32_t Other_HASH = ConstExprHashingUtils::HashString("Other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UnknownOperation_HASH) { return ValidationExceptionReason::UnknownOperation; diff --git a/generated/src/aws-cpp-sdk-nimble/source/NimbleStudioErrors.cpp b/generated/src/aws-cpp-sdk-nimble/source/NimbleStudioErrors.cpp index 961710c7388..f15eb2e75aa 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/NimbleStudioErrors.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/NimbleStudioErrors.cpp @@ -68,14 +68,14 @@ template<> AWS_NIMBLESTUDIO_API InternalServerErrorException NimbleStudioError:: namespace NimbleStudioErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/AutomaticTerminationMode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/AutomaticTerminationMode.cpp index d059d9b7a49..132f1bc3ed8 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/AutomaticTerminationMode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/AutomaticTerminationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutomaticTerminationModeMapper { - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); AutomaticTerminationMode GetAutomaticTerminationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEACTIVATED_HASH) { return AutomaticTerminationMode::DEACTIVATED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePersona.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePersona.cpp index 6f8f702a209..6cb2fe595b3 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePersona.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePersona.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LaunchProfilePersonaMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); LaunchProfilePersona GetLaunchProfilePersonaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return LaunchProfilePersona::USER; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePlatform.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePlatform.cpp index fb651fdbe48..bc6bfbce27c 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePlatform.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfilePlatform.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LaunchProfilePlatformMapper { - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); LaunchProfilePlatform GetLaunchProfilePlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINUX_HASH) { return LaunchProfilePlatform::LINUX; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileState.cpp index bd99e7fdb43..c53f569ae17 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace LaunchProfileStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); LaunchProfileState GetLaunchProfileStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return LaunchProfileState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileStatusCode.cpp index 94b561c0917..5f6d53ce8e1 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileStatusCode.cpp @@ -20,26 +20,26 @@ namespace Aws namespace LaunchProfileStatusCodeMapper { - static const int LAUNCH_PROFILE_CREATED_HASH = HashingUtils::HashString("LAUNCH_PROFILE_CREATED"); - static const int LAUNCH_PROFILE_UPDATED_HASH = HashingUtils::HashString("LAUNCH_PROFILE_UPDATED"); - static const int LAUNCH_PROFILE_DELETED_HASH = HashingUtils::HashString("LAUNCH_PROFILE_DELETED"); - static const int LAUNCH_PROFILE_CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("LAUNCH_PROFILE_CREATE_IN_PROGRESS"); - static const int LAUNCH_PROFILE_UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("LAUNCH_PROFILE_UPDATE_IN_PROGRESS"); - static const int LAUNCH_PROFILE_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("LAUNCH_PROFILE_DELETE_IN_PROGRESS"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int STREAMING_IMAGE_NOT_FOUND_HASH = HashingUtils::HashString("STREAMING_IMAGE_NOT_FOUND"); - static const int STREAMING_IMAGE_NOT_READY_HASH = HashingUtils::HashString("STREAMING_IMAGE_NOT_READY"); - static const int LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED_HASH = HashingUtils::HashString("LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED"); - static const int ENCRYPTION_KEY_ACCESS_DENIED_HASH = HashingUtils::HashString("ENCRYPTION_KEY_ACCESS_DENIED"); - static const int ENCRYPTION_KEY_NOT_FOUND_HASH = HashingUtils::HashString("ENCRYPTION_KEY_NOT_FOUND"); - static const int INVALID_SUBNETS_PROVIDED_HASH = HashingUtils::HashString("INVALID_SUBNETS_PROVIDED"); - static const int INVALID_INSTANCE_TYPES_PROVIDED_HASH = HashingUtils::HashString("INVALID_INSTANCE_TYPES_PROVIDED"); - static const int INVALID_SUBNETS_COMBINATION_HASH = HashingUtils::HashString("INVALID_SUBNETS_COMBINATION"); + static constexpr uint32_t LAUNCH_PROFILE_CREATED_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_CREATED"); + static constexpr uint32_t LAUNCH_PROFILE_UPDATED_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_UPDATED"); + static constexpr uint32_t LAUNCH_PROFILE_DELETED_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_DELETED"); + static constexpr uint32_t LAUNCH_PROFILE_CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_CREATE_IN_PROGRESS"); + static constexpr uint32_t LAUNCH_PROFILE_UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_UPDATE_IN_PROGRESS"); + static constexpr uint32_t LAUNCH_PROFILE_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_DELETE_IN_PROGRESS"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t STREAMING_IMAGE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_NOT_FOUND"); + static constexpr uint32_t STREAMING_IMAGE_NOT_READY_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_NOT_READY"); + static constexpr uint32_t LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED_HASH = ConstExprHashingUtils::HashString("LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED"); + static constexpr uint32_t ENCRYPTION_KEY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_ACCESS_DENIED"); + static constexpr uint32_t ENCRYPTION_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_NOT_FOUND"); + static constexpr uint32_t INVALID_SUBNETS_PROVIDED_HASH = ConstExprHashingUtils::HashString("INVALID_SUBNETS_PROVIDED"); + static constexpr uint32_t INVALID_INSTANCE_TYPES_PROVIDED_HASH = ConstExprHashingUtils::HashString("INVALID_INSTANCE_TYPES_PROVIDED"); + static constexpr uint32_t INVALID_SUBNETS_COMBINATION_HASH = ConstExprHashingUtils::HashString("INVALID_SUBNETS_COMBINATION"); LaunchProfileStatusCode GetLaunchProfileStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAUNCH_PROFILE_CREATED_HASH) { return LaunchProfileStatusCode::LAUNCH_PROFILE_CREATED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationState.cpp index b46876c9ea0..47664cacec0 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LaunchProfileValidationStateMapper { - static const int VALIDATION_NOT_STARTED_HASH = HashingUtils::HashString("VALIDATION_NOT_STARTED"); - static const int VALIDATION_IN_PROGRESS_HASH = HashingUtils::HashString("VALIDATION_IN_PROGRESS"); - static const int VALIDATION_SUCCESS_HASH = HashingUtils::HashString("VALIDATION_SUCCESS"); - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); - static const int VALIDATION_FAILED_INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("VALIDATION_FAILED_INTERNAL_SERVER_ERROR"); + static constexpr uint32_t VALIDATION_NOT_STARTED_HASH = ConstExprHashingUtils::HashString("VALIDATION_NOT_STARTED"); + static constexpr uint32_t VALIDATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("VALIDATION_IN_PROGRESS"); + static constexpr uint32_t VALIDATION_SUCCESS_HASH = ConstExprHashingUtils::HashString("VALIDATION_SUCCESS"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t VALIDATION_FAILED_INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_INTERNAL_SERVER_ERROR"); LaunchProfileValidationState GetLaunchProfileValidationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_NOT_STARTED_HASH) { return LaunchProfileValidationState::VALIDATION_NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationStatusCode.cpp index 8523f2020f6..b57b513545f 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationStatusCode.cpp @@ -20,20 +20,20 @@ namespace Aws namespace LaunchProfileValidationStatusCodeMapper { - static const int VALIDATION_NOT_STARTED_HASH = HashingUtils::HashString("VALIDATION_NOT_STARTED"); - static const int VALIDATION_IN_PROGRESS_HASH = HashingUtils::HashString("VALIDATION_IN_PROGRESS"); - static const int VALIDATION_SUCCESS_HASH = HashingUtils::HashString("VALIDATION_SUCCESS"); - static const int VALIDATION_FAILED_INVALID_SUBNET_ROUTE_TABLE_ASSOCIATION_HASH = HashingUtils::HashString("VALIDATION_FAILED_INVALID_SUBNET_ROUTE_TABLE_ASSOCIATION"); - static const int VALIDATION_FAILED_SUBNET_NOT_FOUND_HASH = HashingUtils::HashString("VALIDATION_FAILED_SUBNET_NOT_FOUND"); - static const int VALIDATION_FAILED_INVALID_SECURITY_GROUP_ASSOCIATION_HASH = HashingUtils::HashString("VALIDATION_FAILED_INVALID_SECURITY_GROUP_ASSOCIATION"); - static const int VALIDATION_FAILED_INVALID_ACTIVE_DIRECTORY_HASH = HashingUtils::HashString("VALIDATION_FAILED_INVALID_ACTIVE_DIRECTORY"); - static const int VALIDATION_FAILED_UNAUTHORIZED_HASH = HashingUtils::HashString("VALIDATION_FAILED_UNAUTHORIZED"); - static const int VALIDATION_FAILED_INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("VALIDATION_FAILED_INTERNAL_SERVER_ERROR"); + static constexpr uint32_t VALIDATION_NOT_STARTED_HASH = ConstExprHashingUtils::HashString("VALIDATION_NOT_STARTED"); + static constexpr uint32_t VALIDATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("VALIDATION_IN_PROGRESS"); + static constexpr uint32_t VALIDATION_SUCCESS_HASH = ConstExprHashingUtils::HashString("VALIDATION_SUCCESS"); + static constexpr uint32_t VALIDATION_FAILED_INVALID_SUBNET_ROUTE_TABLE_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_INVALID_SUBNET_ROUTE_TABLE_ASSOCIATION"); + static constexpr uint32_t VALIDATION_FAILED_SUBNET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_SUBNET_NOT_FOUND"); + static constexpr uint32_t VALIDATION_FAILED_INVALID_SECURITY_GROUP_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_INVALID_SECURITY_GROUP_ASSOCIATION"); + static constexpr uint32_t VALIDATION_FAILED_INVALID_ACTIVE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_INVALID_ACTIVE_DIRECTORY"); + static constexpr uint32_t VALIDATION_FAILED_UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_UNAUTHORIZED"); + static constexpr uint32_t VALIDATION_FAILED_INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED_INTERNAL_SERVER_ERROR"); LaunchProfileValidationStatusCode GetLaunchProfileValidationStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATION_NOT_STARTED_HASH) { return LaunchProfileValidationStatusCode::VALIDATION_NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationType.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationType.cpp index 427042d9720..02e53807590 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationType.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/LaunchProfileValidationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LaunchProfileValidationTypeMapper { - static const int VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT_HASH = HashingUtils::HashString("VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT"); - static const int VALIDATE_SUBNET_ASSOCIATION_HASH = HashingUtils::HashString("VALIDATE_SUBNET_ASSOCIATION"); - static const int VALIDATE_NETWORK_ACL_ASSOCIATION_HASH = HashingUtils::HashString("VALIDATE_NETWORK_ACL_ASSOCIATION"); - static const int VALIDATE_SECURITY_GROUP_ASSOCIATION_HASH = HashingUtils::HashString("VALIDATE_SECURITY_GROUP_ASSOCIATION"); + static constexpr uint32_t VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT_HASH = ConstExprHashingUtils::HashString("VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT"); + static constexpr uint32_t VALIDATE_SUBNET_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("VALIDATE_SUBNET_ASSOCIATION"); + static constexpr uint32_t VALIDATE_NETWORK_ACL_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("VALIDATE_NETWORK_ACL_ASSOCIATION"); + static constexpr uint32_t VALIDATE_SECURITY_GROUP_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("VALIDATE_SECURITY_GROUP_ASSOCIATION"); LaunchProfileValidationType GetLaunchProfileValidationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT_HASH) { return LaunchProfileValidationType::VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/SessionBackupMode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/SessionBackupMode.cpp index 6c391ed3913..31c05af335f 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/SessionBackupMode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/SessionBackupMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SessionBackupModeMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); SessionBackupMode GetSessionBackupModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return SessionBackupMode::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/SessionPersistenceMode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/SessionPersistenceMode.cpp index a3695ece722..44c3f83969e 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/SessionPersistenceMode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/SessionPersistenceMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SessionPersistenceModeMapper { - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); SessionPersistenceMode GetSessionPersistenceModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEACTIVATED_HASH) { return SessionPersistenceMode::DEACTIVATED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingClipboardMode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingClipboardMode.cpp index 809e4369685..94deec58c58 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingClipboardMode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingClipboardMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StreamingClipboardModeMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); StreamingClipboardMode GetStreamingClipboardModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return StreamingClipboardMode::ENABLED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageEncryptionConfigurationKeyType.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageEncryptionConfigurationKeyType.cpp index 41bf75f267d..c824a0f97de 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageEncryptionConfigurationKeyType.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageEncryptionConfigurationKeyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StreamingImageEncryptionConfigurationKeyTypeMapper { - static const int CUSTOMER_MANAGED_KEY_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_KEY"); + static constexpr uint32_t CUSTOMER_MANAGED_KEY_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_KEY"); StreamingImageEncryptionConfigurationKeyType GetStreamingImageEncryptionConfigurationKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_KEY_HASH) { return StreamingImageEncryptionConfigurationKeyType::CUSTOMER_MANAGED_KEY; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageState.cpp index a8efb9d22ca..4639ac4c7ac 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StreamingImageStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); StreamingImageState GetStreamingImageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return StreamingImageState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageStatusCode.cpp index 926622d8535..6a75c2777ab 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingImageStatusCode.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StreamingImageStatusCodeMapper { - static const int STREAMING_IMAGE_CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_IMAGE_CREATE_IN_PROGRESS"); - static const int STREAMING_IMAGE_READY_HASH = HashingUtils::HashString("STREAMING_IMAGE_READY"); - static const int STREAMING_IMAGE_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_IMAGE_DELETE_IN_PROGRESS"); - static const int STREAMING_IMAGE_DELETED_HASH = HashingUtils::HashString("STREAMING_IMAGE_DELETED"); - static const int STREAMING_IMAGE_UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_IMAGE_UPDATE_IN_PROGRESS"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t STREAMING_IMAGE_CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_CREATE_IN_PROGRESS"); + static constexpr uint32_t STREAMING_IMAGE_READY_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_READY"); + static constexpr uint32_t STREAMING_IMAGE_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_DELETE_IN_PROGRESS"); + static constexpr uint32_t STREAMING_IMAGE_DELETED_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_DELETED"); + static constexpr uint32_t STREAMING_IMAGE_UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_IMAGE_UPDATE_IN_PROGRESS"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); StreamingImageStatusCode GetStreamingImageStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STREAMING_IMAGE_CREATE_IN_PROGRESS_HASH) { return StreamingImageStatusCode::STREAMING_IMAGE_CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingInstanceType.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingInstanceType.cpp index 72e313af85c..ac2ab770baf 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingInstanceType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace StreamingInstanceTypeMapper { - static const int g4dn_xlarge_HASH = HashingUtils::HashString("g4dn.xlarge"); - static const int g4dn_2xlarge_HASH = HashingUtils::HashString("g4dn.2xlarge"); - static const int g4dn_4xlarge_HASH = HashingUtils::HashString("g4dn.4xlarge"); - static const int g4dn_8xlarge_HASH = HashingUtils::HashString("g4dn.8xlarge"); - static const int g4dn_12xlarge_HASH = HashingUtils::HashString("g4dn.12xlarge"); - static const int g4dn_16xlarge_HASH = HashingUtils::HashString("g4dn.16xlarge"); - static const int g3_4xlarge_HASH = HashingUtils::HashString("g3.4xlarge"); - static const int g3s_xlarge_HASH = HashingUtils::HashString("g3s.xlarge"); - static const int g5_xlarge_HASH = HashingUtils::HashString("g5.xlarge"); - static const int g5_2xlarge_HASH = HashingUtils::HashString("g5.2xlarge"); - static const int g5_4xlarge_HASH = HashingUtils::HashString("g5.4xlarge"); - static const int g5_8xlarge_HASH = HashingUtils::HashString("g5.8xlarge"); - static const int g5_16xlarge_HASH = HashingUtils::HashString("g5.16xlarge"); + static constexpr uint32_t g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.xlarge"); + static constexpr uint32_t g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.2xlarge"); + static constexpr uint32_t g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.4xlarge"); + static constexpr uint32_t g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.8xlarge"); + static constexpr uint32_t g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.12xlarge"); + static constexpr uint32_t g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("g4dn.16xlarge"); + static constexpr uint32_t g3_4xlarge_HASH = ConstExprHashingUtils::HashString("g3.4xlarge"); + static constexpr uint32_t g3s_xlarge_HASH = ConstExprHashingUtils::HashString("g3s.xlarge"); + static constexpr uint32_t g5_xlarge_HASH = ConstExprHashingUtils::HashString("g5.xlarge"); + static constexpr uint32_t g5_2xlarge_HASH = ConstExprHashingUtils::HashString("g5.2xlarge"); + static constexpr uint32_t g5_4xlarge_HASH = ConstExprHashingUtils::HashString("g5.4xlarge"); + static constexpr uint32_t g5_8xlarge_HASH = ConstExprHashingUtils::HashString("g5.8xlarge"); + static constexpr uint32_t g5_16xlarge_HASH = ConstExprHashingUtils::HashString("g5.16xlarge"); StreamingInstanceType GetStreamingInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == g4dn_xlarge_HASH) { return StreamingInstanceType::g4dn_xlarge; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionState.cpp index 0fb9b830855..eb06e150e97 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace StreamingSessionStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int STOP_IN_PROGRESS_HASH = HashingUtils::HashString("STOP_IN_PROGRESS"); - static const int START_IN_PROGRESS_HASH = HashingUtils::HashString("START_IN_PROGRESS"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STOP_FAILED_HASH = HashingUtils::HashString("STOP_FAILED"); - static const int START_FAILED_HASH = HashingUtils::HashString("START_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t STOP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STOP_IN_PROGRESS"); + static constexpr uint32_t START_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("START_IN_PROGRESS"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STOP_FAILED_HASH = ConstExprHashingUtils::HashString("STOP_FAILED"); + static constexpr uint32_t START_FAILED_HASH = ConstExprHashingUtils::HashString("START_FAILED"); StreamingSessionState GetStreamingSessionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return StreamingSessionState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStatusCode.cpp index 3ac23a74229..be49e0e8957 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStatusCode.cpp @@ -20,27 +20,27 @@ namespace Aws namespace StreamingSessionStatusCodeMapper { - static const int STREAMING_SESSION_READY_HASH = HashingUtils::HashString("STREAMING_SESSION_READY"); - static const int STREAMING_SESSION_DELETED_HASH = HashingUtils::HashString("STREAMING_SESSION_DELETED"); - static const int STREAMING_SESSION_CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_SESSION_CREATE_IN_PROGRESS"); - static const int STREAMING_SESSION_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_SESSION_DELETE_IN_PROGRESS"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int INSUFFICIENT_CAPACITY_HASH = HashingUtils::HashString("INSUFFICIENT_CAPACITY"); - static const int ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR_HASH = HashingUtils::HashString("ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR"); - static const int NETWORK_CONNECTION_ERROR_HASH = HashingUtils::HashString("NETWORK_CONNECTION_ERROR"); - static const int INITIALIZATION_SCRIPT_ERROR_HASH = HashingUtils::HashString("INITIALIZATION_SCRIPT_ERROR"); - static const int DECRYPT_STREAMING_IMAGE_ERROR_HASH = HashingUtils::HashString("DECRYPT_STREAMING_IMAGE_ERROR"); - static const int NETWORK_INTERFACE_ERROR_HASH = HashingUtils::HashString("NETWORK_INTERFACE_ERROR"); - static const int STREAMING_SESSION_STOPPED_HASH = HashingUtils::HashString("STREAMING_SESSION_STOPPED"); - static const int STREAMING_SESSION_STARTED_HASH = HashingUtils::HashString("STREAMING_SESSION_STARTED"); - static const int STREAMING_SESSION_STOP_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_SESSION_STOP_IN_PROGRESS"); - static const int STREAMING_SESSION_START_IN_PROGRESS_HASH = HashingUtils::HashString("STREAMING_SESSION_START_IN_PROGRESS"); - static const int AMI_VALIDATION_ERROR_HASH = HashingUtils::HashString("AMI_VALIDATION_ERROR"); + static constexpr uint32_t STREAMING_SESSION_READY_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_READY"); + static constexpr uint32_t STREAMING_SESSION_DELETED_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_DELETED"); + static constexpr uint32_t STREAMING_SESSION_CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_CREATE_IN_PROGRESS"); + static constexpr uint32_t STREAMING_SESSION_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_DELETE_IN_PROGRESS"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t INSUFFICIENT_CAPACITY_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_CAPACITY"); + static constexpr uint32_t ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR_HASH = ConstExprHashingUtils::HashString("ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR"); + static constexpr uint32_t NETWORK_CONNECTION_ERROR_HASH = ConstExprHashingUtils::HashString("NETWORK_CONNECTION_ERROR"); + static constexpr uint32_t INITIALIZATION_SCRIPT_ERROR_HASH = ConstExprHashingUtils::HashString("INITIALIZATION_SCRIPT_ERROR"); + static constexpr uint32_t DECRYPT_STREAMING_IMAGE_ERROR_HASH = ConstExprHashingUtils::HashString("DECRYPT_STREAMING_IMAGE_ERROR"); + static constexpr uint32_t NETWORK_INTERFACE_ERROR_HASH = ConstExprHashingUtils::HashString("NETWORK_INTERFACE_ERROR"); + static constexpr uint32_t STREAMING_SESSION_STOPPED_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_STOPPED"); + static constexpr uint32_t STREAMING_SESSION_STARTED_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_STARTED"); + static constexpr uint32_t STREAMING_SESSION_STOP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_STOP_IN_PROGRESS"); + static constexpr uint32_t STREAMING_SESSION_START_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAMING_SESSION_START_IN_PROGRESS"); + static constexpr uint32_t AMI_VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("AMI_VALIDATION_ERROR"); StreamingSessionStatusCode GetStreamingSessionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STREAMING_SESSION_READY_HASH) { return StreamingSessionStatusCode::STREAMING_SESSION_READY; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStorageMode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStorageMode.cpp index 7aadc9bd452..68f1b088c46 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStorageMode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStorageMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StreamingSessionStorageModeMapper { - static const int UPLOAD_HASH = HashingUtils::HashString("UPLOAD"); + static constexpr uint32_t UPLOAD_HASH = ConstExprHashingUtils::HashString("UPLOAD"); StreamingSessionStorageMode GetStreamingSessionStorageModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPLOAD_HASH) { return StreamingSessionStorageMode::UPLOAD; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamState.cpp index 742f2c8057b..074b228cd8a 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StreamingSessionStreamStateMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); StreamingSessionStreamState GetStreamingSessionStreamStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return StreamingSessionStreamState::READY; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamStatusCode.cpp index f4205e738af..386a101a3ad 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StreamingSessionStreamStatusCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StreamingSessionStreamStatusCodeMapper { - static const int STREAM_CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAM_CREATE_IN_PROGRESS"); - static const int STREAM_READY_HASH = HashingUtils::HashString("STREAM_READY"); - static const int STREAM_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("STREAM_DELETE_IN_PROGRESS"); - static const int STREAM_DELETED_HASH = HashingUtils::HashString("STREAM_DELETED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int NETWORK_CONNECTION_ERROR_HASH = HashingUtils::HashString("NETWORK_CONNECTION_ERROR"); + static constexpr uint32_t STREAM_CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAM_CREATE_IN_PROGRESS"); + static constexpr uint32_t STREAM_READY_HASH = ConstExprHashingUtils::HashString("STREAM_READY"); + static constexpr uint32_t STREAM_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STREAM_DELETE_IN_PROGRESS"); + static constexpr uint32_t STREAM_DELETED_HASH = ConstExprHashingUtils::HashString("STREAM_DELETED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t NETWORK_CONNECTION_ERROR_HASH = ConstExprHashingUtils::HashString("NETWORK_CONNECTION_ERROR"); StreamingSessionStreamStatusCode GetStreamingSessionStreamStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STREAM_CREATE_IN_PROGRESS_HASH) { return StreamingSessionStreamStatusCode::STREAM_CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentInitializationScriptRunContext.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentInitializationScriptRunContext.cpp index cd0e4d6f872..1d1a553fecf 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentInitializationScriptRunContext.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentInitializationScriptRunContext.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StudioComponentInitializationScriptRunContextMapper { - static const int SYSTEM_INITIALIZATION_HASH = HashingUtils::HashString("SYSTEM_INITIALIZATION"); - static const int USER_INITIALIZATION_HASH = HashingUtils::HashString("USER_INITIALIZATION"); + static constexpr uint32_t SYSTEM_INITIALIZATION_HASH = ConstExprHashingUtils::HashString("SYSTEM_INITIALIZATION"); + static constexpr uint32_t USER_INITIALIZATION_HASH = ConstExprHashingUtils::HashString("USER_INITIALIZATION"); StudioComponentInitializationScriptRunContext GetStudioComponentInitializationScriptRunContextForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYSTEM_INITIALIZATION_HASH) { return StudioComponentInitializationScriptRunContext::SYSTEM_INITIALIZATION; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentState.cpp index a3d5659b73c..2ff579dd646 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StudioComponentStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); StudioComponentState GetStudioComponentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return StudioComponentState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentStatusCode.cpp index 917b67aa77b..99bcc429381 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentStatusCode.cpp @@ -20,21 +20,21 @@ namespace Aws namespace StudioComponentStatusCodeMapper { - static const int ACTIVE_DIRECTORY_ALREADY_EXISTS_HASH = HashingUtils::HashString("ACTIVE_DIRECTORY_ALREADY_EXISTS"); - static const int STUDIO_COMPONENT_CREATED_HASH = HashingUtils::HashString("STUDIO_COMPONENT_CREATED"); - static const int STUDIO_COMPONENT_UPDATED_HASH = HashingUtils::HashString("STUDIO_COMPONENT_UPDATED"); - static const int STUDIO_COMPONENT_DELETED_HASH = HashingUtils::HashString("STUDIO_COMPONENT_DELETED"); - static const int ENCRYPTION_KEY_ACCESS_DENIED_HASH = HashingUtils::HashString("ENCRYPTION_KEY_ACCESS_DENIED"); - static const int ENCRYPTION_KEY_NOT_FOUND_HASH = HashingUtils::HashString("ENCRYPTION_KEY_NOT_FOUND"); - static const int STUDIO_COMPONENT_CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("STUDIO_COMPONENT_CREATE_IN_PROGRESS"); - static const int STUDIO_COMPONENT_UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("STUDIO_COMPONENT_UPDATE_IN_PROGRESS"); - static const int STUDIO_COMPONENT_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("STUDIO_COMPONENT_DELETE_IN_PROGRESS"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t ACTIVE_DIRECTORY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ACTIVE_DIRECTORY_ALREADY_EXISTS"); + static constexpr uint32_t STUDIO_COMPONENT_CREATED_HASH = ConstExprHashingUtils::HashString("STUDIO_COMPONENT_CREATED"); + static constexpr uint32_t STUDIO_COMPONENT_UPDATED_HASH = ConstExprHashingUtils::HashString("STUDIO_COMPONENT_UPDATED"); + static constexpr uint32_t STUDIO_COMPONENT_DELETED_HASH = ConstExprHashingUtils::HashString("STUDIO_COMPONENT_DELETED"); + static constexpr uint32_t ENCRYPTION_KEY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_ACCESS_DENIED"); + static constexpr uint32_t ENCRYPTION_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_NOT_FOUND"); + static constexpr uint32_t STUDIO_COMPONENT_CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STUDIO_COMPONENT_CREATE_IN_PROGRESS"); + static constexpr uint32_t STUDIO_COMPONENT_UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STUDIO_COMPONENT_UPDATE_IN_PROGRESS"); + static constexpr uint32_t STUDIO_COMPONENT_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STUDIO_COMPONENT_DELETE_IN_PROGRESS"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); StudioComponentStatusCode GetStudioComponentStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_DIRECTORY_ALREADY_EXISTS_HASH) { return StudioComponentStatusCode::ACTIVE_DIRECTORY_ALREADY_EXISTS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentSubtype.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentSubtype.cpp index 0ca15565a0c..b1995378780 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentSubtype.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentSubtype.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StudioComponentSubtypeMapper { - static const int AWS_MANAGED_MICROSOFT_AD_HASH = HashingUtils::HashString("AWS_MANAGED_MICROSOFT_AD"); - static const int AMAZON_FSX_FOR_WINDOWS_HASH = HashingUtils::HashString("AMAZON_FSX_FOR_WINDOWS"); - static const int AMAZON_FSX_FOR_LUSTRE_HASH = HashingUtils::HashString("AMAZON_FSX_FOR_LUSTRE"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AWS_MANAGED_MICROSOFT_AD_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED_MICROSOFT_AD"); + static constexpr uint32_t AMAZON_FSX_FOR_WINDOWS_HASH = ConstExprHashingUtils::HashString("AMAZON_FSX_FOR_WINDOWS"); + static constexpr uint32_t AMAZON_FSX_FOR_LUSTRE_HASH = ConstExprHashingUtils::HashString("AMAZON_FSX_FOR_LUSTRE"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); StudioComponentSubtype GetStudioComponentSubtypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_MANAGED_MICROSOFT_AD_HASH) { return StudioComponentSubtype::AWS_MANAGED_MICROSOFT_AD; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentType.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentType.cpp index 9341909f310..59ce638e52b 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentType.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioComponentType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StudioComponentTypeMapper { - static const int ACTIVE_DIRECTORY_HASH = HashingUtils::HashString("ACTIVE_DIRECTORY"); - static const int SHARED_FILE_SYSTEM_HASH = HashingUtils::HashString("SHARED_FILE_SYSTEM"); - static const int COMPUTE_FARM_HASH = HashingUtils::HashString("COMPUTE_FARM"); - static const int LICENSE_SERVICE_HASH = HashingUtils::HashString("LICENSE_SERVICE"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t ACTIVE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("ACTIVE_DIRECTORY"); + static constexpr uint32_t SHARED_FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("SHARED_FILE_SYSTEM"); + static constexpr uint32_t COMPUTE_FARM_HASH = ConstExprHashingUtils::HashString("COMPUTE_FARM"); + static constexpr uint32_t LICENSE_SERVICE_HASH = ConstExprHashingUtils::HashString("LICENSE_SERVICE"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); StudioComponentType GetStudioComponentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_DIRECTORY_HASH) { return StudioComponentType::ACTIVE_DIRECTORY; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioEncryptionConfigurationKeyType.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioEncryptionConfigurationKeyType.cpp index d112f953eef..763bc6cd181 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioEncryptionConfigurationKeyType.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioEncryptionConfigurationKeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StudioEncryptionConfigurationKeyTypeMapper { - static const int AWS_OWNED_KEY_HASH = HashingUtils::HashString("AWS_OWNED_KEY"); - static const int CUSTOMER_MANAGED_KEY_HASH = HashingUtils::HashString("CUSTOMER_MANAGED_KEY"); + static constexpr uint32_t AWS_OWNED_KEY_HASH = ConstExprHashingUtils::HashString("AWS_OWNED_KEY"); + static constexpr uint32_t CUSTOMER_MANAGED_KEY_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED_KEY"); StudioEncryptionConfigurationKeyType GetStudioEncryptionConfigurationKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_OWNED_KEY_HASH) { return StudioEncryptionConfigurationKeyType::AWS_OWNED_KEY; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioPersona.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioPersona.cpp index 62c3ae15c93..c9bb5c60c99 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioPersona.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioPersona.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StudioPersonaMapper { - static const int ADMINISTRATOR_HASH = HashingUtils::HashString("ADMINISTRATOR"); + static constexpr uint32_t ADMINISTRATOR_HASH = ConstExprHashingUtils::HashString("ADMINISTRATOR"); StudioPersona GetStudioPersonaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADMINISTRATOR_HASH) { return StudioPersona::ADMINISTRATOR; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioState.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioState.cpp index daa319bef3f..53a12c4acb2 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioState.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StudioStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); StudioState GetStudioStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return StudioState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/StudioStatusCode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/StudioStatusCode.cpp index 33e4f240468..f44f58a1ef6 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/StudioStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/StudioStatusCode.cpp @@ -20,30 +20,30 @@ namespace Aws namespace StudioStatusCodeMapper { - static const int STUDIO_CREATED_HASH = HashingUtils::HashString("STUDIO_CREATED"); - static const int STUDIO_DELETED_HASH = HashingUtils::HashString("STUDIO_DELETED"); - static const int STUDIO_UPDATED_HASH = HashingUtils::HashString("STUDIO_UPDATED"); - static const int STUDIO_CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("STUDIO_CREATE_IN_PROGRESS"); - static const int STUDIO_UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("STUDIO_UPDATE_IN_PROGRESS"); - static const int STUDIO_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("STUDIO_DELETE_IN_PROGRESS"); - static const int STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED_HASH = HashingUtils::HashString("STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED"); - static const int STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED_HASH = HashingUtils::HashString("STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED"); - static const int STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED_HASH = HashingUtils::HashString("STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED"); - static const int AWS_SSO_NOT_ENABLED_HASH = HashingUtils::HashString("AWS_SSO_NOT_ENABLED"); - static const int AWS_SSO_ACCESS_DENIED_HASH = HashingUtils::HashString("AWS_SSO_ACCESS_DENIED"); - static const int ROLE_NOT_OWNED_BY_STUDIO_OWNER_HASH = HashingUtils::HashString("ROLE_NOT_OWNED_BY_STUDIO_OWNER"); - static const int ROLE_COULD_NOT_BE_ASSUMED_HASH = HashingUtils::HashString("ROLE_COULD_NOT_BE_ASSUMED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int ENCRYPTION_KEY_NOT_FOUND_HASH = HashingUtils::HashString("ENCRYPTION_KEY_NOT_FOUND"); - static const int ENCRYPTION_KEY_ACCESS_DENIED_HASH = HashingUtils::HashString("ENCRYPTION_KEY_ACCESS_DENIED"); - static const int AWS_SSO_CONFIGURATION_REPAIRED_HASH = HashingUtils::HashString("AWS_SSO_CONFIGURATION_REPAIRED"); - static const int AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS_HASH = HashingUtils::HashString("AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS"); - static const int AWS_STS_REGION_DISABLED_HASH = HashingUtils::HashString("AWS_STS_REGION_DISABLED"); + static constexpr uint32_t STUDIO_CREATED_HASH = ConstExprHashingUtils::HashString("STUDIO_CREATED"); + static constexpr uint32_t STUDIO_DELETED_HASH = ConstExprHashingUtils::HashString("STUDIO_DELETED"); + static constexpr uint32_t STUDIO_UPDATED_HASH = ConstExprHashingUtils::HashString("STUDIO_UPDATED"); + static constexpr uint32_t STUDIO_CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STUDIO_CREATE_IN_PROGRESS"); + static constexpr uint32_t STUDIO_UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STUDIO_UPDATE_IN_PROGRESS"); + static constexpr uint32_t STUDIO_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("STUDIO_DELETE_IN_PROGRESS"); + static constexpr uint32_t STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED_HASH = ConstExprHashingUtils::HashString("STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED"); + static constexpr uint32_t STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED_HASH = ConstExprHashingUtils::HashString("STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED"); + static constexpr uint32_t STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED_HASH = ConstExprHashingUtils::HashString("STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED"); + static constexpr uint32_t AWS_SSO_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("AWS_SSO_NOT_ENABLED"); + static constexpr uint32_t AWS_SSO_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("AWS_SSO_ACCESS_DENIED"); + static constexpr uint32_t ROLE_NOT_OWNED_BY_STUDIO_OWNER_HASH = ConstExprHashingUtils::HashString("ROLE_NOT_OWNED_BY_STUDIO_OWNER"); + static constexpr uint32_t ROLE_COULD_NOT_BE_ASSUMED_HASH = ConstExprHashingUtils::HashString("ROLE_COULD_NOT_BE_ASSUMED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t ENCRYPTION_KEY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_NOT_FOUND"); + static constexpr uint32_t ENCRYPTION_KEY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ENCRYPTION_KEY_ACCESS_DENIED"); + static constexpr uint32_t AWS_SSO_CONFIGURATION_REPAIRED_HASH = ConstExprHashingUtils::HashString("AWS_SSO_CONFIGURATION_REPAIRED"); + static constexpr uint32_t AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS"); + static constexpr uint32_t AWS_STS_REGION_DISABLED_HASH = ConstExprHashingUtils::HashString("AWS_STS_REGION_DISABLED"); StudioStatusCode GetStudioStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STUDIO_CREATED_HASH) { return StudioStatusCode::STUDIO_CREATED; diff --git a/generated/src/aws-cpp-sdk-nimble/source/model/VolumeRetentionMode.cpp b/generated/src/aws-cpp-sdk-nimble/source/model/VolumeRetentionMode.cpp index 562e128da32..5bd5b45596c 100644 --- a/generated/src/aws-cpp-sdk-nimble/source/model/VolumeRetentionMode.cpp +++ b/generated/src/aws-cpp-sdk-nimble/source/model/VolumeRetentionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VolumeRetentionModeMapper { - static const int RETAIN_HASH = HashingUtils::HashString("RETAIN"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t RETAIN_HASH = ConstExprHashingUtils::HashString("RETAIN"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); VolumeRetentionMode GetVolumeRetentionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RETAIN_HASH) { return VolumeRetentionMode::RETAIN; diff --git a/generated/src/aws-cpp-sdk-oam/source/OAMErrors.cpp b/generated/src/aws-cpp-sdk-oam/source/OAMErrors.cpp index 16748f5a074..d8eb64ede74 100644 --- a/generated/src/aws-cpp-sdk-oam/source/OAMErrors.cpp +++ b/generated/src/aws-cpp-sdk-oam/source/OAMErrors.cpp @@ -61,17 +61,17 @@ template<> AWS_OAM_API InternalServiceFault OAMError::GetModeledError() namespace OAMErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int MISSING_REQUIRED_PARAMETER_HASH = HashingUtils::HashString("MissingRequiredParameterException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int INTERNAL_SERVICE_FAULT_HASH = HashingUtils::HashString("InternalServiceFault"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t MISSING_REQUIRED_PARAMETER_HASH = ConstExprHashingUtils::HashString("MissingRequiredParameterException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t INTERNAL_SERVICE_FAULT_HASH = ConstExprHashingUtils::HashString("InternalServiceFault"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-oam/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-oam/source/model/ResourceType.cpp index f2f090d0df6..baaa4bb0ee0 100644 --- a/generated/src/aws-cpp-sdk-oam/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-oam/source/model/ResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceTypeMapper { - static const int AWS_CloudWatch_Metric_HASH = HashingUtils::HashString("AWS::CloudWatch::Metric"); - static const int AWS_Logs_LogGroup_HASH = HashingUtils::HashString("AWS::Logs::LogGroup"); - static const int AWS_XRay_Trace_HASH = HashingUtils::HashString("AWS::XRay::Trace"); - static const int AWS_ApplicationInsights_Application_HASH = HashingUtils::HashString("AWS::ApplicationInsights::Application"); + static constexpr uint32_t AWS_CloudWatch_Metric_HASH = ConstExprHashingUtils::HashString("AWS::CloudWatch::Metric"); + static constexpr uint32_t AWS_Logs_LogGroup_HASH = ConstExprHashingUtils::HashString("AWS::Logs::LogGroup"); + static constexpr uint32_t AWS_XRay_Trace_HASH = ConstExprHashingUtils::HashString("AWS::XRay::Trace"); + static constexpr uint32_t AWS_ApplicationInsights_Application_HASH = ConstExprHashingUtils::HashString("AWS::ApplicationInsights::Application"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_CloudWatch_Metric_HASH) { return ResourceType::AWS_CloudWatch_Metric; diff --git a/generated/src/aws-cpp-sdk-omics/source/OmicsErrors.cpp b/generated/src/aws-cpp-sdk-omics/source/OmicsErrors.cpp index 4425e7ec254..74d19e656a4 100644 --- a/generated/src/aws-cpp-sdk-omics/source/OmicsErrors.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/OmicsErrors.cpp @@ -18,16 +18,16 @@ namespace Omics namespace OmicsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_SUPPORTED_OPERATION_HASH = HashingUtils::HashString("NotSupportedOperationException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int RANGE_NOT_SATISFIABLE_HASH = HashingUtils::HashString("RangeNotSatisfiableException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_SUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("NotSupportedOperationException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t RANGE_NOT_SATISFIABLE_HASH = ConstExprHashingUtils::HashString("RangeNotSatisfiableException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-omics/source/model/Accelerators.cpp b/generated/src/aws-cpp-sdk-omics/source/model/Accelerators.cpp index e814dc35908..77e9d2ac303 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/Accelerators.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/Accelerators.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AcceleratorsMapper { - static const int GPU_HASH = HashingUtils::HashString("GPU"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); Accelerators GetAcceleratorsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GPU_HASH) { return Accelerators::GPU; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/AnnotationType.cpp b/generated/src/aws-cpp-sdk-omics/source/model/AnnotationType.cpp index bfe5c4f0ff8..901a7fe4a93 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/AnnotationType.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/AnnotationType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AnnotationTypeMapper { - static const int GENERIC_HASH = HashingUtils::HashString("GENERIC"); - static const int CHR_POS_HASH = HashingUtils::HashString("CHR_POS"); - static const int CHR_POS_REF_ALT_HASH = HashingUtils::HashString("CHR_POS_REF_ALT"); - static const int CHR_START_END_ONE_BASE_HASH = HashingUtils::HashString("CHR_START_END_ONE_BASE"); - static const int CHR_START_END_REF_ALT_ONE_BASE_HASH = HashingUtils::HashString("CHR_START_END_REF_ALT_ONE_BASE"); - static const int CHR_START_END_ZERO_BASE_HASH = HashingUtils::HashString("CHR_START_END_ZERO_BASE"); - static const int CHR_START_END_REF_ALT_ZERO_BASE_HASH = HashingUtils::HashString("CHR_START_END_REF_ALT_ZERO_BASE"); + static constexpr uint32_t GENERIC_HASH = ConstExprHashingUtils::HashString("GENERIC"); + static constexpr uint32_t CHR_POS_HASH = ConstExprHashingUtils::HashString("CHR_POS"); + static constexpr uint32_t CHR_POS_REF_ALT_HASH = ConstExprHashingUtils::HashString("CHR_POS_REF_ALT"); + static constexpr uint32_t CHR_START_END_ONE_BASE_HASH = ConstExprHashingUtils::HashString("CHR_START_END_ONE_BASE"); + static constexpr uint32_t CHR_START_END_REF_ALT_ONE_BASE_HASH = ConstExprHashingUtils::HashString("CHR_START_END_REF_ALT_ONE_BASE"); + static constexpr uint32_t CHR_START_END_ZERO_BASE_HASH = ConstExprHashingUtils::HashString("CHR_START_END_ZERO_BASE"); + static constexpr uint32_t CHR_START_END_REF_ALT_ZERO_BASE_HASH = ConstExprHashingUtils::HashString("CHR_START_END_REF_ALT_ZERO_BASE"); AnnotationType GetAnnotationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERIC_HASH) { return AnnotationType::GENERIC; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/CreationType.cpp b/generated/src/aws-cpp-sdk-omics/source/model/CreationType.cpp index a7b3937c05d..c81df7d79ca 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/CreationType.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/CreationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CreationTypeMapper { - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); - static const int UPLOAD_HASH = HashingUtils::HashString("UPLOAD"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); + static constexpr uint32_t UPLOAD_HASH = ConstExprHashingUtils::HashString("UPLOAD"); CreationType GetCreationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORT_HASH) { return CreationType::IMPORT; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ETagAlgorithm.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ETagAlgorithm.cpp index d3648ff4286..fc21880e26a 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ETagAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ETagAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ETagAlgorithmMapper { - static const int FASTQ_MD5up_HASH = HashingUtils::HashString("FASTQ_MD5up"); - static const int BAM_MD5up_HASH = HashingUtils::HashString("BAM_MD5up"); - static const int CRAM_MD5up_HASH = HashingUtils::HashString("CRAM_MD5up"); + static constexpr uint32_t FASTQ_MD5up_HASH = ConstExprHashingUtils::HashString("FASTQ_MD5up"); + static constexpr uint32_t BAM_MD5up_HASH = ConstExprHashingUtils::HashString("BAM_MD5up"); + static constexpr uint32_t CRAM_MD5up_HASH = ConstExprHashingUtils::HashString("CRAM_MD5up"); ETagAlgorithm GetETagAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FASTQ_MD5up_HASH) { return ETagAlgorithm::FASTQ_MD5up; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-omics/source/model/EncryptionType.cpp index 28183cc903c..c56d446630d 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/EncryptionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncryptionTypeMapper { - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KMS_HASH) { return EncryptionType::KMS; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/FileType.cpp b/generated/src/aws-cpp-sdk-omics/source/model/FileType.cpp index 711bd520a56..aef801f4b4f 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/FileType.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/FileType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileTypeMapper { - static const int FASTQ_HASH = HashingUtils::HashString("FASTQ"); - static const int BAM_HASH = HashingUtils::HashString("BAM"); - static const int CRAM_HASH = HashingUtils::HashString("CRAM"); + static constexpr uint32_t FASTQ_HASH = ConstExprHashingUtils::HashString("FASTQ"); + static constexpr uint32_t BAM_HASH = ConstExprHashingUtils::HashString("BAM"); + static constexpr uint32_t CRAM_HASH = ConstExprHashingUtils::HashString("CRAM"); FileType GetFileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FASTQ_HASH) { return FileType::FASTQ; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/FormatToHeaderKey.cpp b/generated/src/aws-cpp-sdk-omics/source/model/FormatToHeaderKey.cpp index 32b45dbf88d..d2c108609f0 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/FormatToHeaderKey.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/FormatToHeaderKey.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FormatToHeaderKeyMapper { - static const int CHR_HASH = HashingUtils::HashString("CHR"); - static const int START_HASH = HashingUtils::HashString("START"); - static const int END_HASH = HashingUtils::HashString("END"); - static const int REF_HASH = HashingUtils::HashString("REF"); - static const int ALT_HASH = HashingUtils::HashString("ALT"); - static const int POS_HASH = HashingUtils::HashString("POS"); + static constexpr uint32_t CHR_HASH = ConstExprHashingUtils::HashString("CHR"); + static constexpr uint32_t START_HASH = ConstExprHashingUtils::HashString("START"); + static constexpr uint32_t END_HASH = ConstExprHashingUtils::HashString("END"); + static constexpr uint32_t REF_HASH = ConstExprHashingUtils::HashString("REF"); + static constexpr uint32_t ALT_HASH = ConstExprHashingUtils::HashString("ALT"); + static constexpr uint32_t POS_HASH = ConstExprHashingUtils::HashString("POS"); FormatToHeaderKey GetFormatToHeaderKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHR_HASH) { return FormatToHeaderKey::CHR; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/JobStatus.cpp index 8e2bba75eea..cd0fc72ea41 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/JobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobItemStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobItemStatus.cpp index 9db397c2713..a87b3b47fdb 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobItemStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReadSetActivationJobItemStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReadSetActivationJobItemStatus GetReadSetActivationJobItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ReadSetActivationJobItemStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobStatus.cpp index dbace6ba141..2eda2294823 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetActivationJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReadSetActivationJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); ReadSetActivationJobStatus GetReadSetActivationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return ReadSetActivationJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobItemStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobItemStatus.cpp index cf54ef34cd8..b274c73a4db 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobItemStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReadSetExportJobItemStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReadSetExportJobItemStatus GetReadSetExportJobItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ReadSetExportJobItemStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobStatus.cpp index 635431807dc..9e0a2829da9 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetExportJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReadSetExportJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); ReadSetExportJobStatus GetReadSetExportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return ReadSetExportJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetFile.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetFile.cpp index 8e4cc336c4a..0c2ae7e349c 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetFile.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetFile.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReadSetFileMapper { - static const int SOURCE1_HASH = HashingUtils::HashString("SOURCE1"); - static const int SOURCE2_HASH = HashingUtils::HashString("SOURCE2"); - static const int INDEX_HASH = HashingUtils::HashString("INDEX"); + static constexpr uint32_t SOURCE1_HASH = ConstExprHashingUtils::HashString("SOURCE1"); + static constexpr uint32_t SOURCE2_HASH = ConstExprHashingUtils::HashString("SOURCE2"); + static constexpr uint32_t INDEX_HASH = ConstExprHashingUtils::HashString("INDEX"); ReadSetFile GetReadSetFileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE1_HASH) { return ReadSetFile::SOURCE1; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobItemStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobItemStatus.cpp index fa99d5c70db..0ea7295976e 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobItemStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReadSetImportJobItemStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReadSetImportJobItemStatus GetReadSetImportJobItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ReadSetImportJobItemStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobStatus.cpp index 0d833429e24..82d3eb3c982 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetImportJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReadSetImportJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); ReadSetImportJobStatus GetReadSetImportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return ReadSetImportJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetPartSource.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetPartSource.cpp index 82e127d52e0..f60f36a7f48 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetPartSource.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetPartSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReadSetPartSourceMapper { - static const int SOURCE1_HASH = HashingUtils::HashString("SOURCE1"); - static const int SOURCE2_HASH = HashingUtils::HashString("SOURCE2"); + static constexpr uint32_t SOURCE1_HASH = ConstExprHashingUtils::HashString("SOURCE1"); + static constexpr uint32_t SOURCE2_HASH = ConstExprHashingUtils::HashString("SOURCE2"); ReadSetPartSource GetReadSetPartSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE1_HASH) { return ReadSetPartSource::SOURCE1; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetStatus.cpp index 7d7aea7cac7..c8914782f71 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReadSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReadSetStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReadSetStatusMapper { - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int PROCESSING_UPLOAD_HASH = HashingUtils::HashString("PROCESSING_UPLOAD"); - static const int UPLOAD_FAILED_HASH = HashingUtils::HashString("UPLOAD_FAILED"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t PROCESSING_UPLOAD_HASH = ConstExprHashingUtils::HashString("PROCESSING_UPLOAD"); + static constexpr uint32_t UPLOAD_FAILED_HASH = ConstExprHashingUtils::HashString("UPLOAD_FAILED"); ReadSetStatus GetReadSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVED_HASH) { return ReadSetStatus::ARCHIVED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceFile.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceFile.cpp index 3bf6d56a8b5..2a5a58512e3 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceFile.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceFile.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReferenceFileMapper { - static const int SOURCE_HASH = HashingUtils::HashString("SOURCE"); - static const int INDEX_HASH = HashingUtils::HashString("INDEX"); + static constexpr uint32_t SOURCE_HASH = ConstExprHashingUtils::HashString("SOURCE"); + static constexpr uint32_t INDEX_HASH = ConstExprHashingUtils::HashString("INDEX"); ReferenceFile GetReferenceFileForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE_HASH) { return ReferenceFile::SOURCE; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobItemStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobItemStatus.cpp index 753a44f84d9..2c162167c32 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobItemStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReferenceImportJobItemStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReferenceImportJobItemStatus GetReferenceImportJobItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ReferenceImportJobItemStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobStatus.cpp index b420384f346..94c88537b25 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceImportJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReferenceImportJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_FAILURES_HASH = HashingUtils::HashString("COMPLETED_WITH_FAILURES"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_FAILURES_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_FAILURES"); ReferenceImportJobStatus GetReferenceImportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return ReferenceImportJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceStatus.cpp index f4e232bd579..a1236934af9 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ReferenceStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ReferenceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReferenceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ReferenceStatus GetReferenceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ReferenceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ResourceOwner.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ResourceOwner.cpp index b998a075c0b..36ff577386b 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ResourceOwner.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ResourceOwner.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceOwnerMapper { - static const int SELF_HASH = HashingUtils::HashString("SELF"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t SELF_HASH = ConstExprHashingUtils::HashString("SELF"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ResourceOwner GetResourceOwnerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_HASH) { return ResourceOwner::SELF; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/RunExport.cpp b/generated/src/aws-cpp-sdk-omics/source/model/RunExport.cpp index 1b789d6f291..b954befa0dd 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/RunExport.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/RunExport.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RunExportMapper { - static const int DEFINITION_HASH = HashingUtils::HashString("DEFINITION"); + static constexpr uint32_t DEFINITION_HASH = ConstExprHashingUtils::HashString("DEFINITION"); RunExport GetRunExportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFINITION_HASH) { return RunExport::DEFINITION; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/RunLogLevel.cpp b/generated/src/aws-cpp-sdk-omics/source/model/RunLogLevel.cpp index 040787053e6..3a834e9e752 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/RunLogLevel.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/RunLogLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RunLogLevelMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int FATAL_HASH = HashingUtils::HashString("FATAL"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t FATAL_HASH = ConstExprHashingUtils::HashString("FATAL"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); RunLogLevel GetRunLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return RunLogLevel::OFF; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/RunRetentionMode.cpp b/generated/src/aws-cpp-sdk-omics/source/model/RunRetentionMode.cpp index 5b2245c9c54..975a11221e2 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/RunRetentionMode.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/RunRetentionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RunRetentionModeMapper { - static const int RETAIN_HASH = HashingUtils::HashString("RETAIN"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t RETAIN_HASH = ConstExprHashingUtils::HashString("RETAIN"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); RunRetentionMode GetRunRetentionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RETAIN_HASH) { return RunRetentionMode::RETAIN; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/RunStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/RunStatus.cpp index 9aa6e684acb..746db73e128 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/RunStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/RunStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace RunStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RunStatus GetRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return RunStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/SchemaValueType.cpp b/generated/src/aws-cpp-sdk-omics/source/model/SchemaValueType.cpp index cd1ef238467..9cd65dedc89 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/SchemaValueType.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/SchemaValueType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SchemaValueTypeMapper { - static const int LONG_HASH = HashingUtils::HashString("LONG"); - static const int INT_HASH = HashingUtils::HashString("INT"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int FLOAT_HASH = HashingUtils::HashString("FLOAT"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t LONG_HASH = ConstExprHashingUtils::HashString("LONG"); + static constexpr uint32_t INT_HASH = ConstExprHashingUtils::HashString("INT"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t FLOAT_HASH = ConstExprHashingUtils::HashString("FLOAT"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); SchemaValueType GetSchemaValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LONG_HASH) { return SchemaValueType::LONG; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/ShareStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/ShareStatus.cpp index 37701dd2a03..2050b9a8020 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/ShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/ShareStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ShareStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVATING_HASH = HashingUtils::HashString("ACTIVATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVATING_HASH = ConstExprHashingUtils::HashString("ACTIVATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ShareStatus GetShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ShareStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/StoreFormat.cpp b/generated/src/aws-cpp-sdk-omics/source/model/StoreFormat.cpp index a8d04148a76..49e2e38c8fa 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/StoreFormat.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/StoreFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StoreFormatMapper { - static const int GFF_HASH = HashingUtils::HashString("GFF"); - static const int TSV_HASH = HashingUtils::HashString("TSV"); - static const int VCF_HASH = HashingUtils::HashString("VCF"); + static constexpr uint32_t GFF_HASH = ConstExprHashingUtils::HashString("GFF"); + static constexpr uint32_t TSV_HASH = ConstExprHashingUtils::HashString("TSV"); + static constexpr uint32_t VCF_HASH = ConstExprHashingUtils::HashString("VCF"); StoreFormat GetStoreFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GFF_HASH) { return StoreFormat::GFF; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/StoreStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/StoreStatus.cpp index 5d287cc902a..a6903191004 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/StoreStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/StoreStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StoreStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); StoreStatus GetStoreStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return StoreStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/TaskStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/TaskStatus.cpp index 5a36226d350..50631bc17b3 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/TaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/TaskStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TaskStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); TaskStatus GetTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return TaskStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/VersionStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/VersionStatus.cpp index 72b3b833f0d..468518dd786 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/VersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/VersionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VersionStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VersionStatus GetVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return VersionStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowEngine.cpp b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowEngine.cpp index c693df76f7b..c957c9676ac 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowEngine.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowEngine.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WorkflowEngineMapper { - static const int WDL_HASH = HashingUtils::HashString("WDL"); - static const int NEXTFLOW_HASH = HashingUtils::HashString("NEXTFLOW"); - static const int CWL_HASH = HashingUtils::HashString("CWL"); + static constexpr uint32_t WDL_HASH = ConstExprHashingUtils::HashString("WDL"); + static constexpr uint32_t NEXTFLOW_HASH = ConstExprHashingUtils::HashString("NEXTFLOW"); + static constexpr uint32_t CWL_HASH = ConstExprHashingUtils::HashString("CWL"); WorkflowEngine GetWorkflowEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WDL_HASH) { return WorkflowEngine::WDL; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowExport.cpp b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowExport.cpp index e6e00c08be8..f4d11cee272 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowExport.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowExport.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WorkflowExportMapper { - static const int DEFINITION_HASH = HashingUtils::HashString("DEFINITION"); + static constexpr uint32_t DEFINITION_HASH = ConstExprHashingUtils::HashString("DEFINITION"); WorkflowExport GetWorkflowExportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFINITION_HASH) { return WorkflowExport::DEFINITION; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowStatus.cpp b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowStatus.cpp index 3e5c1fa4d2d..1df53e0615d 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowStatus.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace WorkflowStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); WorkflowStatus GetWorkflowStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return WorkflowStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowType.cpp b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowType.cpp index 3a00cdc1b47..70462b70609 100644 --- a/generated/src/aws-cpp-sdk-omics/source/model/WorkflowType.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/model/WorkflowType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WorkflowTypeMapper { - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); - static const int READY2RUN_HASH = HashingUtils::HashString("READY2RUN"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); + static constexpr uint32_t READY2RUN_HASH = ConstExprHashingUtils::HashString("READY2RUN"); WorkflowType GetWorkflowTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIVATE__HASH) { return WorkflowType::PRIVATE_; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceErrors.cpp b/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceErrors.cpp index aaf479c448f..11187dc8806 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceErrors.cpp @@ -26,21 +26,21 @@ template<> AWS_OPENSEARCHSERVICE_API SlotNotAvailableException OpenSearchService namespace OpenSearchServiceErrorMapper { -static const int DISABLED_OPERATION_HASH = HashingUtils::HashString("DisabledOperationException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int DEPENDENCY_FAILURE_HASH = HashingUtils::HashString("DependencyFailureException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int BASE_HASH = HashingUtils::HashString("BaseException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_TYPE_HASH = HashingUtils::HashString("InvalidTypeException"); -static const int SLOT_NOT_AVAILABLE_HASH = HashingUtils::HashString("SlotNotAvailableException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t DISABLED_OPERATION_HASH = ConstExprHashingUtils::HashString("DisabledOperationException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t DEPENDENCY_FAILURE_HASH = ConstExprHashingUtils::HashString("DependencyFailureException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t BASE_HASH = ConstExprHashingUtils::HashString("BaseException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidTypeException"); +static constexpr uint32_t SLOT_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("SlotNotAvailableException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == DISABLED_OPERATION_HASH) { diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ActionSeverity.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ActionSeverity.cpp index 89cdce2e91a..c0bebf9619e 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ActionSeverity.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ActionSeverity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionSeverityMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); ActionSeverity GetActionSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return ActionSeverity::HIGH; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ActionStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ActionStatus.cpp index 103ec996cd4..0cdcec110d2 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ActionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ActionStatusMapper { - static const int PENDING_UPDATE_HASH = HashingUtils::HashString("PENDING_UPDATE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int NOT_ELIGIBLE_HASH = HashingUtils::HashString("NOT_ELIGIBLE"); - static const int ELIGIBLE_HASH = HashingUtils::HashString("ELIGIBLE"); + static constexpr uint32_t PENDING_UPDATE_HASH = ConstExprHashingUtils::HashString("PENDING_UPDATE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_ELIGIBLE_HASH = ConstExprHashingUtils::HashString("NOT_ELIGIBLE"); + static constexpr uint32_t ELIGIBLE_HASH = ConstExprHashingUtils::HashString("ELIGIBLE"); ActionStatus GetActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_UPDATE_HASH) { return ActionStatus::PENDING_UPDATE; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ActionType.cpp index 09f540ccebb..28e64a8fd0f 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionTypeMapper { - static const int SERVICE_SOFTWARE_UPDATE_HASH = HashingUtils::HashString("SERVICE_SOFTWARE_UPDATE"); - static const int JVM_HEAP_SIZE_TUNING_HASH = HashingUtils::HashString("JVM_HEAP_SIZE_TUNING"); - static const int JVM_YOUNG_GEN_TUNING_HASH = HashingUtils::HashString("JVM_YOUNG_GEN_TUNING"); + static constexpr uint32_t SERVICE_SOFTWARE_UPDATE_HASH = ConstExprHashingUtils::HashString("SERVICE_SOFTWARE_UPDATE"); + static constexpr uint32_t JVM_HEAP_SIZE_TUNING_HASH = ConstExprHashingUtils::HashString("JVM_HEAP_SIZE_TUNING"); + static constexpr uint32_t JVM_YOUNG_GEN_TUNING_HASH = ConstExprHashingUtils::HashString("JVM_YOUNG_GEN_TUNING"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_SOFTWARE_UPDATE_HASH) { return ActionType::SERVICE_SOFTWARE_UPDATE; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneDesiredState.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneDesiredState.cpp index 35d248fc331..f8d3eb8e470 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneDesiredState.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneDesiredState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoTuneDesiredStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AutoTuneDesiredState GetAutoTuneDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutoTuneDesiredState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneState.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneState.cpp index 63346cd5f0b..d0b61fd873c 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneState.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AutoTuneStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLE_IN_PROGRESS_HASH = HashingUtils::HashString("ENABLE_IN_PROGRESS"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); - static const int DISABLED_AND_ROLLBACK_SCHEDULED_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_SCHEDULED"); - static const int DISABLED_AND_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_IN_PROGRESS"); - static const int DISABLED_AND_ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_COMPLETE"); - static const int DISABLED_AND_ROLLBACK_ERROR_HASH = HashingUtils::HashString("DISABLED_AND_ROLLBACK_ERROR"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("ENABLE_IN_PROGRESS"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_SCHEDULED_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_SCHEDULED"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_COMPLETE"); + static constexpr uint32_t DISABLED_AND_ROLLBACK_ERROR_HASH = ConstExprHashingUtils::HashString("DISABLED_AND_ROLLBACK_ERROR"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); AutoTuneState GetAutoTuneStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutoTuneState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneType.cpp index 51c88fe8726..ab4f5989b18 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AutoTuneType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AutoTuneTypeMapper { - static const int SCHEDULED_ACTION_HASH = HashingUtils::HashString("SCHEDULED_ACTION"); + static constexpr uint32_t SCHEDULED_ACTION_HASH = ConstExprHashingUtils::HashString("SCHEDULED_ACTION"); AutoTuneType GetAutoTuneTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_ACTION_HASH) { return AutoTuneType::SCHEDULED_ACTION; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ConnectionMode.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ConnectionMode.cpp index eaffd987701..0d6da641797 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ConnectionMode.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ConnectionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionModeMapper { - static const int DIRECT_HASH = HashingUtils::HashString("DIRECT"); - static const int VPC_ENDPOINT_HASH = HashingUtils::HashString("VPC_ENDPOINT"); + static constexpr uint32_t DIRECT_HASH = ConstExprHashingUtils::HashString("DIRECT"); + static constexpr uint32_t VPC_ENDPOINT_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT"); ConnectionMode GetConnectionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECT_HASH) { return ConnectionMode::DIRECT; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DeploymentStatus.cpp index b41d2aa42fa..7667a8eb0dc 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DeploymentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeploymentStatusMapper { - static const int PENDING_UPDATE_HASH = HashingUtils::HashString("PENDING_UPDATE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int NOT_ELIGIBLE_HASH = HashingUtils::HashString("NOT_ELIGIBLE"); - static const int ELIGIBLE_HASH = HashingUtils::HashString("ELIGIBLE"); + static constexpr uint32_t PENDING_UPDATE_HASH = ConstExprHashingUtils::HashString("PENDING_UPDATE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t NOT_ELIGIBLE_HASH = ConstExprHashingUtils::HashString("NOT_ELIGIBLE"); + static constexpr uint32_t ELIGIBLE_HASH = ConstExprHashingUtils::HashString("ELIGIBLE"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_UPDATE_HASH) { return DeploymentStatus::PENDING_UPDATE; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp index 7d19a153eda..998274f3fbf 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DescribePackagesFilterNameMapper { - static const int PackageID_HASH = HashingUtils::HashString("PackageID"); - static const int PackageName_HASH = HashingUtils::HashString("PackageName"); - static const int PackageStatus_HASH = HashingUtils::HashString("PackageStatus"); + static constexpr uint32_t PackageID_HASH = ConstExprHashingUtils::HashString("PackageID"); + static constexpr uint32_t PackageName_HASH = ConstExprHashingUtils::HashString("PackageName"); + static constexpr uint32_t PackageStatus_HASH = ConstExprHashingUtils::HashString("PackageStatus"); DescribePackagesFilterName GetDescribePackagesFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PackageID_HASH) { return DescribePackagesFilterName::PackageID; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainHealth.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainHealth.cpp index 7b194067dcf..6d1fb1a4361 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainHealth.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainHealth.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DomainHealthMapper { - static const int Red_HASH = HashingUtils::HashString("Red"); - static const int Yellow_HASH = HashingUtils::HashString("Yellow"); - static const int Green_HASH = HashingUtils::HashString("Green"); - static const int NotAvailable_HASH = HashingUtils::HashString("NotAvailable"); + static constexpr uint32_t Red_HASH = ConstExprHashingUtils::HashString("Red"); + static constexpr uint32_t Yellow_HASH = ConstExprHashingUtils::HashString("Yellow"); + static constexpr uint32_t Green_HASH = ConstExprHashingUtils::HashString("Green"); + static constexpr uint32_t NotAvailable_HASH = ConstExprHashingUtils::HashString("NotAvailable"); DomainHealth GetDomainHealthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Red_HASH) { return DomainHealth::Red; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageStatus.cpp index bcc99118f65..4f2f0ce41ad 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DomainPackageStatusMapper { - static const int ASSOCIATING_HASH = HashingUtils::HashString("ASSOCIATING"); - static const int ASSOCIATION_FAILED_HASH = HashingUtils::HashString("ASSOCIATION_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DISSOCIATING_HASH = HashingUtils::HashString("DISSOCIATING"); - static const int DISSOCIATION_FAILED_HASH = HashingUtils::HashString("DISSOCIATION_FAILED"); + static constexpr uint32_t ASSOCIATING_HASH = ConstExprHashingUtils::HashString("ASSOCIATING"); + static constexpr uint32_t ASSOCIATION_FAILED_HASH = ConstExprHashingUtils::HashString("ASSOCIATION_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DISSOCIATING_HASH = ConstExprHashingUtils::HashString("DISSOCIATING"); + static constexpr uint32_t DISSOCIATION_FAILED_HASH = ConstExprHashingUtils::HashString("DISSOCIATION_FAILED"); DomainPackageStatus GetDomainPackageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATING_HASH) { return DomainPackageStatus::ASSOCIATING; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainState.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainState.cpp index 5e4fc9e5a0f..0a65f78141e 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainState.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DomainStateMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Processing_HASH = HashingUtils::HashString("Processing"); - static const int NotAvailable_HASH = HashingUtils::HashString("NotAvailable"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t NotAvailable_HASH = ConstExprHashingUtils::HashString("NotAvailable"); DomainState GetDomainStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return DomainState::Active; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DryRunMode.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DryRunMode.cpp index 64c97c91e79..f36281fa213 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DryRunMode.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DryRunMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DryRunModeMapper { - static const int Basic_HASH = HashingUtils::HashString("Basic"); - static const int Verbose_HASH = HashingUtils::HashString("Verbose"); + static constexpr uint32_t Basic_HASH = ConstExprHashingUtils::HashString("Basic"); + static constexpr uint32_t Verbose_HASH = ConstExprHashingUtils::HashString("Verbose"); DryRunMode GetDryRunModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Basic_HASH) { return DryRunMode::Basic; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/EngineType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/EngineType.cpp index 7e655aa0d9e..9c73e911f9d 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/EngineType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/EngineType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngineTypeMapper { - static const int OpenSearch_HASH = HashingUtils::HashString("OpenSearch"); - static const int Elasticsearch_HASH = HashingUtils::HashString("Elasticsearch"); + static constexpr uint32_t OpenSearch_HASH = ConstExprHashingUtils::HashString("OpenSearch"); + static constexpr uint32_t Elasticsearch_HASH = ConstExprHashingUtils::HashString("Elasticsearch"); EngineType GetEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OpenSearch_HASH) { return EngineType::OpenSearch; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/InboundConnectionStatusCode.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/InboundConnectionStatusCode.cpp index b5b4bbe5354..ebb1a0e6471 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/InboundConnectionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/InboundConnectionStatusCode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace InboundConnectionStatusCodeMapper { - static const int PENDING_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_ACCEPTANCE"); - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int REJECTING_HASH = HashingUtils::HashString("REJECTING"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPTANCE"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t REJECTING_HASH = ConstExprHashingUtils::HashString("REJECTING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); InboundConnectionStatusCode GetInboundConnectionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_ACCEPTANCE_HASH) { return InboundConnectionStatusCode::PENDING_ACCEPTANCE; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/LogType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/LogType.cpp index 83f0c4bfb6b..12c3a3fa279 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/LogType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/LogType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LogTypeMapper { - static const int INDEX_SLOW_LOGS_HASH = HashingUtils::HashString("INDEX_SLOW_LOGS"); - static const int SEARCH_SLOW_LOGS_HASH = HashingUtils::HashString("SEARCH_SLOW_LOGS"); - static const int ES_APPLICATION_LOGS_HASH = HashingUtils::HashString("ES_APPLICATION_LOGS"); - static const int AUDIT_LOGS_HASH = HashingUtils::HashString("AUDIT_LOGS"); + static constexpr uint32_t INDEX_SLOW_LOGS_HASH = ConstExprHashingUtils::HashString("INDEX_SLOW_LOGS"); + static constexpr uint32_t SEARCH_SLOW_LOGS_HASH = ConstExprHashingUtils::HashString("SEARCH_SLOW_LOGS"); + static constexpr uint32_t ES_APPLICATION_LOGS_HASH = ConstExprHashingUtils::HashString("ES_APPLICATION_LOGS"); + static constexpr uint32_t AUDIT_LOGS_HASH = ConstExprHashingUtils::HashString("AUDIT_LOGS"); LogType GetLogTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INDEX_SLOW_LOGS_HASH) { return LogType::INDEX_SLOW_LOGS; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/MasterNodeStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/MasterNodeStatus.cpp index 5dd09762724..0f35c8d49db 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/MasterNodeStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/MasterNodeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MasterNodeStatusMapper { - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int UnAvailable_HASH = HashingUtils::HashString("UnAvailable"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t UnAvailable_HASH = ConstExprHashingUtils::HashString("UnAvailable"); MasterNodeStatus GetMasterNodeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Available_HASH) { return MasterNodeStatus::Available; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/NodeStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/NodeStatus.cpp index a3dc305276f..05e450fd513 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/NodeStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/NodeStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NodeStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int StandBy_HASH = HashingUtils::HashString("StandBy"); - static const int NotAvailable_HASH = HashingUtils::HashString("NotAvailable"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t StandBy_HASH = ConstExprHashingUtils::HashString("StandBy"); + static constexpr uint32_t NotAvailable_HASH = ConstExprHashingUtils::HashString("NotAvailable"); NodeStatus GetNodeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return NodeStatus::Active; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/NodeType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/NodeType.cpp index 15ff943c0d3..a4f630822d6 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/NodeType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/NodeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NodeTypeMapper { - static const int Data_HASH = HashingUtils::HashString("Data"); - static const int Ultrawarm_HASH = HashingUtils::HashString("Ultrawarm"); - static const int Master_HASH = HashingUtils::HashString("Master"); + static constexpr uint32_t Data_HASH = ConstExprHashingUtils::HashString("Data"); + static constexpr uint32_t Ultrawarm_HASH = ConstExprHashingUtils::HashString("Ultrawarm"); + static constexpr uint32_t Master_HASH = ConstExprHashingUtils::HashString("Master"); NodeType GetNodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Data_HASH) { return NodeType::Data; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchPartitionInstanceType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchPartitionInstanceType.cpp index a9f6b33809e..dc0ac5af98c 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchPartitionInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchPartitionInstanceType.cpp @@ -20,106 +20,106 @@ namespace Aws namespace OpenSearchPartitionInstanceTypeMapper { - static const int m3_medium_search_HASH = HashingUtils::HashString("m3.medium.search"); - static const int m3_large_search_HASH = HashingUtils::HashString("m3.large.search"); - static const int m3_xlarge_search_HASH = HashingUtils::HashString("m3.xlarge.search"); - static const int m3_2xlarge_search_HASH = HashingUtils::HashString("m3.2xlarge.search"); - static const int m4_large_search_HASH = HashingUtils::HashString("m4.large.search"); - static const int m4_xlarge_search_HASH = HashingUtils::HashString("m4.xlarge.search"); - static const int m4_2xlarge_search_HASH = HashingUtils::HashString("m4.2xlarge.search"); - static const int m4_4xlarge_search_HASH = HashingUtils::HashString("m4.4xlarge.search"); - static const int m4_10xlarge_search_HASH = HashingUtils::HashString("m4.10xlarge.search"); - static const int m5_large_search_HASH = HashingUtils::HashString("m5.large.search"); - static const int m5_xlarge_search_HASH = HashingUtils::HashString("m5.xlarge.search"); - static const int m5_2xlarge_search_HASH = HashingUtils::HashString("m5.2xlarge.search"); - static const int m5_4xlarge_search_HASH = HashingUtils::HashString("m5.4xlarge.search"); - static const int m5_12xlarge_search_HASH = HashingUtils::HashString("m5.12xlarge.search"); - static const int m5_24xlarge_search_HASH = HashingUtils::HashString("m5.24xlarge.search"); - static const int r5_large_search_HASH = HashingUtils::HashString("r5.large.search"); - static const int r5_xlarge_search_HASH = HashingUtils::HashString("r5.xlarge.search"); - static const int r5_2xlarge_search_HASH = HashingUtils::HashString("r5.2xlarge.search"); - static const int r5_4xlarge_search_HASH = HashingUtils::HashString("r5.4xlarge.search"); - static const int r5_12xlarge_search_HASH = HashingUtils::HashString("r5.12xlarge.search"); - static const int r5_24xlarge_search_HASH = HashingUtils::HashString("r5.24xlarge.search"); - static const int c5_large_search_HASH = HashingUtils::HashString("c5.large.search"); - static const int c5_xlarge_search_HASH = HashingUtils::HashString("c5.xlarge.search"); - static const int c5_2xlarge_search_HASH = HashingUtils::HashString("c5.2xlarge.search"); - static const int c5_4xlarge_search_HASH = HashingUtils::HashString("c5.4xlarge.search"); - static const int c5_9xlarge_search_HASH = HashingUtils::HashString("c5.9xlarge.search"); - static const int c5_18xlarge_search_HASH = HashingUtils::HashString("c5.18xlarge.search"); - static const int t3_nano_search_HASH = HashingUtils::HashString("t3.nano.search"); - static const int t3_micro_search_HASH = HashingUtils::HashString("t3.micro.search"); - static const int t3_small_search_HASH = HashingUtils::HashString("t3.small.search"); - static const int t3_medium_search_HASH = HashingUtils::HashString("t3.medium.search"); - static const int t3_large_search_HASH = HashingUtils::HashString("t3.large.search"); - static const int t3_xlarge_search_HASH = HashingUtils::HashString("t3.xlarge.search"); - static const int t3_2xlarge_search_HASH = HashingUtils::HashString("t3.2xlarge.search"); - static const int ultrawarm1_medium_search_HASH = HashingUtils::HashString("ultrawarm1.medium.search"); - static const int ultrawarm1_large_search_HASH = HashingUtils::HashString("ultrawarm1.large.search"); - static const int ultrawarm1_xlarge_search_HASH = HashingUtils::HashString("ultrawarm1.xlarge.search"); - static const int t2_micro_search_HASH = HashingUtils::HashString("t2.micro.search"); - static const int t2_small_search_HASH = HashingUtils::HashString("t2.small.search"); - static const int t2_medium_search_HASH = HashingUtils::HashString("t2.medium.search"); - static const int r3_large_search_HASH = HashingUtils::HashString("r3.large.search"); - static const int r3_xlarge_search_HASH = HashingUtils::HashString("r3.xlarge.search"); - static const int r3_2xlarge_search_HASH = HashingUtils::HashString("r3.2xlarge.search"); - static const int r3_4xlarge_search_HASH = HashingUtils::HashString("r3.4xlarge.search"); - static const int r3_8xlarge_search_HASH = HashingUtils::HashString("r3.8xlarge.search"); - static const int i2_xlarge_search_HASH = HashingUtils::HashString("i2.xlarge.search"); - static const int i2_2xlarge_search_HASH = HashingUtils::HashString("i2.2xlarge.search"); - static const int d2_xlarge_search_HASH = HashingUtils::HashString("d2.xlarge.search"); - static const int d2_2xlarge_search_HASH = HashingUtils::HashString("d2.2xlarge.search"); - static const int d2_4xlarge_search_HASH = HashingUtils::HashString("d2.4xlarge.search"); - static const int d2_8xlarge_search_HASH = HashingUtils::HashString("d2.8xlarge.search"); - static const int c4_large_search_HASH = HashingUtils::HashString("c4.large.search"); - static const int c4_xlarge_search_HASH = HashingUtils::HashString("c4.xlarge.search"); - static const int c4_2xlarge_search_HASH = HashingUtils::HashString("c4.2xlarge.search"); - static const int c4_4xlarge_search_HASH = HashingUtils::HashString("c4.4xlarge.search"); - static const int c4_8xlarge_search_HASH = HashingUtils::HashString("c4.8xlarge.search"); - static const int r4_large_search_HASH = HashingUtils::HashString("r4.large.search"); - static const int r4_xlarge_search_HASH = HashingUtils::HashString("r4.xlarge.search"); - static const int r4_2xlarge_search_HASH = HashingUtils::HashString("r4.2xlarge.search"); - static const int r4_4xlarge_search_HASH = HashingUtils::HashString("r4.4xlarge.search"); - static const int r4_8xlarge_search_HASH = HashingUtils::HashString("r4.8xlarge.search"); - static const int r4_16xlarge_search_HASH = HashingUtils::HashString("r4.16xlarge.search"); - static const int i3_large_search_HASH = HashingUtils::HashString("i3.large.search"); - static const int i3_xlarge_search_HASH = HashingUtils::HashString("i3.xlarge.search"); - static const int i3_2xlarge_search_HASH = HashingUtils::HashString("i3.2xlarge.search"); - static const int i3_4xlarge_search_HASH = HashingUtils::HashString("i3.4xlarge.search"); - static const int i3_8xlarge_search_HASH = HashingUtils::HashString("i3.8xlarge.search"); - static const int i3_16xlarge_search_HASH = HashingUtils::HashString("i3.16xlarge.search"); - static const int r6g_large_search_HASH = HashingUtils::HashString("r6g.large.search"); - static const int r6g_xlarge_search_HASH = HashingUtils::HashString("r6g.xlarge.search"); - static const int r6g_2xlarge_search_HASH = HashingUtils::HashString("r6g.2xlarge.search"); - static const int r6g_4xlarge_search_HASH = HashingUtils::HashString("r6g.4xlarge.search"); - static const int r6g_8xlarge_search_HASH = HashingUtils::HashString("r6g.8xlarge.search"); - static const int r6g_12xlarge_search_HASH = HashingUtils::HashString("r6g.12xlarge.search"); - static const int m6g_large_search_HASH = HashingUtils::HashString("m6g.large.search"); - static const int m6g_xlarge_search_HASH = HashingUtils::HashString("m6g.xlarge.search"); - static const int m6g_2xlarge_search_HASH = HashingUtils::HashString("m6g.2xlarge.search"); - static const int m6g_4xlarge_search_HASH = HashingUtils::HashString("m6g.4xlarge.search"); - static const int m6g_8xlarge_search_HASH = HashingUtils::HashString("m6g.8xlarge.search"); - static const int m6g_12xlarge_search_HASH = HashingUtils::HashString("m6g.12xlarge.search"); - static const int c6g_large_search_HASH = HashingUtils::HashString("c6g.large.search"); - static const int c6g_xlarge_search_HASH = HashingUtils::HashString("c6g.xlarge.search"); - static const int c6g_2xlarge_search_HASH = HashingUtils::HashString("c6g.2xlarge.search"); - static const int c6g_4xlarge_search_HASH = HashingUtils::HashString("c6g.4xlarge.search"); - static const int c6g_8xlarge_search_HASH = HashingUtils::HashString("c6g.8xlarge.search"); - static const int c6g_12xlarge_search_HASH = HashingUtils::HashString("c6g.12xlarge.search"); - static const int r6gd_large_search_HASH = HashingUtils::HashString("r6gd.large.search"); - static const int r6gd_xlarge_search_HASH = HashingUtils::HashString("r6gd.xlarge.search"); - static const int r6gd_2xlarge_search_HASH = HashingUtils::HashString("r6gd.2xlarge.search"); - static const int r6gd_4xlarge_search_HASH = HashingUtils::HashString("r6gd.4xlarge.search"); - static const int r6gd_8xlarge_search_HASH = HashingUtils::HashString("r6gd.8xlarge.search"); - static const int r6gd_12xlarge_search_HASH = HashingUtils::HashString("r6gd.12xlarge.search"); - static const int r6gd_16xlarge_search_HASH = HashingUtils::HashString("r6gd.16xlarge.search"); - static const int t4g_small_search_HASH = HashingUtils::HashString("t4g.small.search"); - static const int t4g_medium_search_HASH = HashingUtils::HashString("t4g.medium.search"); + static constexpr uint32_t m3_medium_search_HASH = ConstExprHashingUtils::HashString("m3.medium.search"); + static constexpr uint32_t m3_large_search_HASH = ConstExprHashingUtils::HashString("m3.large.search"); + static constexpr uint32_t m3_xlarge_search_HASH = ConstExprHashingUtils::HashString("m3.xlarge.search"); + static constexpr uint32_t m3_2xlarge_search_HASH = ConstExprHashingUtils::HashString("m3.2xlarge.search"); + static constexpr uint32_t m4_large_search_HASH = ConstExprHashingUtils::HashString("m4.large.search"); + static constexpr uint32_t m4_xlarge_search_HASH = ConstExprHashingUtils::HashString("m4.xlarge.search"); + static constexpr uint32_t m4_2xlarge_search_HASH = ConstExprHashingUtils::HashString("m4.2xlarge.search"); + static constexpr uint32_t m4_4xlarge_search_HASH = ConstExprHashingUtils::HashString("m4.4xlarge.search"); + static constexpr uint32_t m4_10xlarge_search_HASH = ConstExprHashingUtils::HashString("m4.10xlarge.search"); + static constexpr uint32_t m5_large_search_HASH = ConstExprHashingUtils::HashString("m5.large.search"); + static constexpr uint32_t m5_xlarge_search_HASH = ConstExprHashingUtils::HashString("m5.xlarge.search"); + static constexpr uint32_t m5_2xlarge_search_HASH = ConstExprHashingUtils::HashString("m5.2xlarge.search"); + static constexpr uint32_t m5_4xlarge_search_HASH = ConstExprHashingUtils::HashString("m5.4xlarge.search"); + static constexpr uint32_t m5_12xlarge_search_HASH = ConstExprHashingUtils::HashString("m5.12xlarge.search"); + static constexpr uint32_t m5_24xlarge_search_HASH = ConstExprHashingUtils::HashString("m5.24xlarge.search"); + static constexpr uint32_t r5_large_search_HASH = ConstExprHashingUtils::HashString("r5.large.search"); + static constexpr uint32_t r5_xlarge_search_HASH = ConstExprHashingUtils::HashString("r5.xlarge.search"); + static constexpr uint32_t r5_2xlarge_search_HASH = ConstExprHashingUtils::HashString("r5.2xlarge.search"); + static constexpr uint32_t r5_4xlarge_search_HASH = ConstExprHashingUtils::HashString("r5.4xlarge.search"); + static constexpr uint32_t r5_12xlarge_search_HASH = ConstExprHashingUtils::HashString("r5.12xlarge.search"); + static constexpr uint32_t r5_24xlarge_search_HASH = ConstExprHashingUtils::HashString("r5.24xlarge.search"); + static constexpr uint32_t c5_large_search_HASH = ConstExprHashingUtils::HashString("c5.large.search"); + static constexpr uint32_t c5_xlarge_search_HASH = ConstExprHashingUtils::HashString("c5.xlarge.search"); + static constexpr uint32_t c5_2xlarge_search_HASH = ConstExprHashingUtils::HashString("c5.2xlarge.search"); + static constexpr uint32_t c5_4xlarge_search_HASH = ConstExprHashingUtils::HashString("c5.4xlarge.search"); + static constexpr uint32_t c5_9xlarge_search_HASH = ConstExprHashingUtils::HashString("c5.9xlarge.search"); + static constexpr uint32_t c5_18xlarge_search_HASH = ConstExprHashingUtils::HashString("c5.18xlarge.search"); + static constexpr uint32_t t3_nano_search_HASH = ConstExprHashingUtils::HashString("t3.nano.search"); + static constexpr uint32_t t3_micro_search_HASH = ConstExprHashingUtils::HashString("t3.micro.search"); + static constexpr uint32_t t3_small_search_HASH = ConstExprHashingUtils::HashString("t3.small.search"); + static constexpr uint32_t t3_medium_search_HASH = ConstExprHashingUtils::HashString("t3.medium.search"); + static constexpr uint32_t t3_large_search_HASH = ConstExprHashingUtils::HashString("t3.large.search"); + static constexpr uint32_t t3_xlarge_search_HASH = ConstExprHashingUtils::HashString("t3.xlarge.search"); + static constexpr uint32_t t3_2xlarge_search_HASH = ConstExprHashingUtils::HashString("t3.2xlarge.search"); + static constexpr uint32_t ultrawarm1_medium_search_HASH = ConstExprHashingUtils::HashString("ultrawarm1.medium.search"); + static constexpr uint32_t ultrawarm1_large_search_HASH = ConstExprHashingUtils::HashString("ultrawarm1.large.search"); + static constexpr uint32_t ultrawarm1_xlarge_search_HASH = ConstExprHashingUtils::HashString("ultrawarm1.xlarge.search"); + static constexpr uint32_t t2_micro_search_HASH = ConstExprHashingUtils::HashString("t2.micro.search"); + static constexpr uint32_t t2_small_search_HASH = ConstExprHashingUtils::HashString("t2.small.search"); + static constexpr uint32_t t2_medium_search_HASH = ConstExprHashingUtils::HashString("t2.medium.search"); + static constexpr uint32_t r3_large_search_HASH = ConstExprHashingUtils::HashString("r3.large.search"); + static constexpr uint32_t r3_xlarge_search_HASH = ConstExprHashingUtils::HashString("r3.xlarge.search"); + static constexpr uint32_t r3_2xlarge_search_HASH = ConstExprHashingUtils::HashString("r3.2xlarge.search"); + static constexpr uint32_t r3_4xlarge_search_HASH = ConstExprHashingUtils::HashString("r3.4xlarge.search"); + static constexpr uint32_t r3_8xlarge_search_HASH = ConstExprHashingUtils::HashString("r3.8xlarge.search"); + static constexpr uint32_t i2_xlarge_search_HASH = ConstExprHashingUtils::HashString("i2.xlarge.search"); + static constexpr uint32_t i2_2xlarge_search_HASH = ConstExprHashingUtils::HashString("i2.2xlarge.search"); + static constexpr uint32_t d2_xlarge_search_HASH = ConstExprHashingUtils::HashString("d2.xlarge.search"); + static constexpr uint32_t d2_2xlarge_search_HASH = ConstExprHashingUtils::HashString("d2.2xlarge.search"); + static constexpr uint32_t d2_4xlarge_search_HASH = ConstExprHashingUtils::HashString("d2.4xlarge.search"); + static constexpr uint32_t d2_8xlarge_search_HASH = ConstExprHashingUtils::HashString("d2.8xlarge.search"); + static constexpr uint32_t c4_large_search_HASH = ConstExprHashingUtils::HashString("c4.large.search"); + static constexpr uint32_t c4_xlarge_search_HASH = ConstExprHashingUtils::HashString("c4.xlarge.search"); + static constexpr uint32_t c4_2xlarge_search_HASH = ConstExprHashingUtils::HashString("c4.2xlarge.search"); + static constexpr uint32_t c4_4xlarge_search_HASH = ConstExprHashingUtils::HashString("c4.4xlarge.search"); + static constexpr uint32_t c4_8xlarge_search_HASH = ConstExprHashingUtils::HashString("c4.8xlarge.search"); + static constexpr uint32_t r4_large_search_HASH = ConstExprHashingUtils::HashString("r4.large.search"); + static constexpr uint32_t r4_xlarge_search_HASH = ConstExprHashingUtils::HashString("r4.xlarge.search"); + static constexpr uint32_t r4_2xlarge_search_HASH = ConstExprHashingUtils::HashString("r4.2xlarge.search"); + static constexpr uint32_t r4_4xlarge_search_HASH = ConstExprHashingUtils::HashString("r4.4xlarge.search"); + static constexpr uint32_t r4_8xlarge_search_HASH = ConstExprHashingUtils::HashString("r4.8xlarge.search"); + static constexpr uint32_t r4_16xlarge_search_HASH = ConstExprHashingUtils::HashString("r4.16xlarge.search"); + static constexpr uint32_t i3_large_search_HASH = ConstExprHashingUtils::HashString("i3.large.search"); + static constexpr uint32_t i3_xlarge_search_HASH = ConstExprHashingUtils::HashString("i3.xlarge.search"); + static constexpr uint32_t i3_2xlarge_search_HASH = ConstExprHashingUtils::HashString("i3.2xlarge.search"); + static constexpr uint32_t i3_4xlarge_search_HASH = ConstExprHashingUtils::HashString("i3.4xlarge.search"); + static constexpr uint32_t i3_8xlarge_search_HASH = ConstExprHashingUtils::HashString("i3.8xlarge.search"); + static constexpr uint32_t i3_16xlarge_search_HASH = ConstExprHashingUtils::HashString("i3.16xlarge.search"); + static constexpr uint32_t r6g_large_search_HASH = ConstExprHashingUtils::HashString("r6g.large.search"); + static constexpr uint32_t r6g_xlarge_search_HASH = ConstExprHashingUtils::HashString("r6g.xlarge.search"); + static constexpr uint32_t r6g_2xlarge_search_HASH = ConstExprHashingUtils::HashString("r6g.2xlarge.search"); + static constexpr uint32_t r6g_4xlarge_search_HASH = ConstExprHashingUtils::HashString("r6g.4xlarge.search"); + static constexpr uint32_t r6g_8xlarge_search_HASH = ConstExprHashingUtils::HashString("r6g.8xlarge.search"); + static constexpr uint32_t r6g_12xlarge_search_HASH = ConstExprHashingUtils::HashString("r6g.12xlarge.search"); + static constexpr uint32_t m6g_large_search_HASH = ConstExprHashingUtils::HashString("m6g.large.search"); + static constexpr uint32_t m6g_xlarge_search_HASH = ConstExprHashingUtils::HashString("m6g.xlarge.search"); + static constexpr uint32_t m6g_2xlarge_search_HASH = ConstExprHashingUtils::HashString("m6g.2xlarge.search"); + static constexpr uint32_t m6g_4xlarge_search_HASH = ConstExprHashingUtils::HashString("m6g.4xlarge.search"); + static constexpr uint32_t m6g_8xlarge_search_HASH = ConstExprHashingUtils::HashString("m6g.8xlarge.search"); + static constexpr uint32_t m6g_12xlarge_search_HASH = ConstExprHashingUtils::HashString("m6g.12xlarge.search"); + static constexpr uint32_t c6g_large_search_HASH = ConstExprHashingUtils::HashString("c6g.large.search"); + static constexpr uint32_t c6g_xlarge_search_HASH = ConstExprHashingUtils::HashString("c6g.xlarge.search"); + static constexpr uint32_t c6g_2xlarge_search_HASH = ConstExprHashingUtils::HashString("c6g.2xlarge.search"); + static constexpr uint32_t c6g_4xlarge_search_HASH = ConstExprHashingUtils::HashString("c6g.4xlarge.search"); + static constexpr uint32_t c6g_8xlarge_search_HASH = ConstExprHashingUtils::HashString("c6g.8xlarge.search"); + static constexpr uint32_t c6g_12xlarge_search_HASH = ConstExprHashingUtils::HashString("c6g.12xlarge.search"); + static constexpr uint32_t r6gd_large_search_HASH = ConstExprHashingUtils::HashString("r6gd.large.search"); + static constexpr uint32_t r6gd_xlarge_search_HASH = ConstExprHashingUtils::HashString("r6gd.xlarge.search"); + static constexpr uint32_t r6gd_2xlarge_search_HASH = ConstExprHashingUtils::HashString("r6gd.2xlarge.search"); + static constexpr uint32_t r6gd_4xlarge_search_HASH = ConstExprHashingUtils::HashString("r6gd.4xlarge.search"); + static constexpr uint32_t r6gd_8xlarge_search_HASH = ConstExprHashingUtils::HashString("r6gd.8xlarge.search"); + static constexpr uint32_t r6gd_12xlarge_search_HASH = ConstExprHashingUtils::HashString("r6gd.12xlarge.search"); + static constexpr uint32_t r6gd_16xlarge_search_HASH = ConstExprHashingUtils::HashString("r6gd.16xlarge.search"); + static constexpr uint32_t t4g_small_search_HASH = ConstExprHashingUtils::HashString("t4g.small.search"); + static constexpr uint32_t t4g_medium_search_HASH = ConstExprHashingUtils::HashString("t4g.medium.search"); OpenSearchPartitionInstanceType GetOpenSearchPartitionInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == m3_medium_search_HASH) { return OpenSearchPartitionInstanceType::m3_medium_search; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchWarmPartitionInstanceType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchWarmPartitionInstanceType.cpp index 4d5b4b5d51a..52070d23088 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchWarmPartitionInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/OpenSearchWarmPartitionInstanceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OpenSearchWarmPartitionInstanceTypeMapper { - static const int ultrawarm1_medium_search_HASH = HashingUtils::HashString("ultrawarm1.medium.search"); - static const int ultrawarm1_large_search_HASH = HashingUtils::HashString("ultrawarm1.large.search"); - static const int ultrawarm1_xlarge_search_HASH = HashingUtils::HashString("ultrawarm1.xlarge.search"); + static constexpr uint32_t ultrawarm1_medium_search_HASH = ConstExprHashingUtils::HashString("ultrawarm1.medium.search"); + static constexpr uint32_t ultrawarm1_large_search_HASH = ConstExprHashingUtils::HashString("ultrawarm1.large.search"); + static constexpr uint32_t ultrawarm1_xlarge_search_HASH = ConstExprHashingUtils::HashString("ultrawarm1.xlarge.search"); OpenSearchWarmPartitionInstanceType GetOpenSearchWarmPartitionInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ultrawarm1_medium_search_HASH) { return OpenSearchWarmPartitionInstanceType::ultrawarm1_medium_search; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/OptionState.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/OptionState.cpp index cfb29f07a8a..9f6bd4df5da 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/OptionState.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/OptionState.cpp @@ -20,14 +20,14 @@ namespace Aws 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 constexpr uint32_t RequiresIndexDocuments_HASH = ConstExprHashingUtils::HashString("RequiresIndexDocuments"); + static constexpr uint32_t Processing_HASH = ConstExprHashingUtils::HashString("Processing"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); OptionState GetOptionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RequiresIndexDocuments_HASH) { return OptionState::RequiresIndexDocuments; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/OutboundConnectionStatusCode.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/OutboundConnectionStatusCode.cpp index 4ac5d893ce3..5e3f2f13133 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/OutboundConnectionStatusCode.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/OutboundConnectionStatusCode.cpp @@ -20,21 +20,21 @@ namespace Aws namespace OutboundConnectionStatusCodeMapper { - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); - static const int PENDING_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_ACCEPTANCE"); - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int REJECTING_HASH = HashingUtils::HashString("REJECTING"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t PENDING_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPTANCE"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t REJECTING_HASH = ConstExprHashingUtils::HashString("REJECTING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); OutboundConnectionStatusCode GetOutboundConnectionStatusCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALIDATING_HASH) { return OutboundConnectionStatusCode::VALIDATING; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/OverallChangeStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/OverallChangeStatus.cpp index 7ba6e9794b2..a3387919709 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/OverallChangeStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/OverallChangeStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OverallChangeStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); OverallChangeStatus GetOverallChangeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return OverallChangeStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageStatus.cpp index 157aee1d53d..f46a3bd3d06 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace PackageStatusMapper { - static const int COPYING_HASH = HashingUtils::HashString("COPYING"); - static const int COPY_FAILED_HASH = HashingUtils::HashString("COPY_FAILED"); - static const int VALIDATING_HASH = HashingUtils::HashString("VALIDATING"); - static const int VALIDATION_FAILED_HASH = HashingUtils::HashString("VALIDATION_FAILED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t COPYING_HASH = ConstExprHashingUtils::HashString("COPYING"); + static constexpr uint32_t COPY_FAILED_HASH = ConstExprHashingUtils::HashString("COPY_FAILED"); + static constexpr uint32_t VALIDATING_HASH = ConstExprHashingUtils::HashString("VALIDATING"); + static constexpr uint32_t VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("VALIDATION_FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); PackageStatus GetPackageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPYING_HASH) { return PackageStatus::COPYING; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp index 2a383ee8778..ce346ed9465 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PackageTypeMapper { - static const int TXT_DICTIONARY_HASH = HashingUtils::HashString("TXT-DICTIONARY"); + static constexpr uint32_t TXT_DICTIONARY_HASH = ConstExprHashingUtils::HashString("TXT-DICTIONARY"); PackageType GetPackageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TXT_DICTIONARY_HASH) { return PackageType::TXT_DICTIONARY; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PrincipalType.cpp index a90b7bb06cc..420e3e56e69 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PrincipalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PrincipalTypeMapper { - static const int AWS_ACCOUNT_HASH = HashingUtils::HashString("AWS_ACCOUNT"); - static const int AWS_SERVICE_HASH = HashingUtils::HashString("AWS_SERVICE"); + static constexpr uint32_t AWS_ACCOUNT_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT"); + static constexpr uint32_t AWS_SERVICE_HASH = ConstExprHashingUtils::HashString("AWS_SERVICE"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ACCOUNT_HASH) { return PrincipalType::AWS_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ReservedInstancePaymentOption.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ReservedInstancePaymentOption.cpp index 57567c0acf0..b5bf817c181 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ReservedInstancePaymentOption.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ReservedInstancePaymentOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReservedInstancePaymentOptionMapper { - static const int ALL_UPFRONT_HASH = HashingUtils::HashString("ALL_UPFRONT"); - static const int PARTIAL_UPFRONT_HASH = HashingUtils::HashString("PARTIAL_UPFRONT"); - static const int NO_UPFRONT_HASH = HashingUtils::HashString("NO_UPFRONT"); + static constexpr uint32_t ALL_UPFRONT_HASH = ConstExprHashingUtils::HashString("ALL_UPFRONT"); + static constexpr uint32_t PARTIAL_UPFRONT_HASH = ConstExprHashingUtils::HashString("PARTIAL_UPFRONT"); + static constexpr uint32_t NO_UPFRONT_HASH = ConstExprHashingUtils::HashString("NO_UPFRONT"); ReservedInstancePaymentOption GetReservedInstancePaymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_UPFRONT_HASH) { return ReservedInstancePaymentOption::ALL_UPFRONT; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/RollbackOnDisable.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/RollbackOnDisable.cpp index 06578f4666d..f7e1fd3f72a 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/RollbackOnDisable.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/RollbackOnDisable.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RollbackOnDisableMapper { - static const int NO_ROLLBACK_HASH = HashingUtils::HashString("NO_ROLLBACK"); - static const int DEFAULT_ROLLBACK_HASH = HashingUtils::HashString("DEFAULT_ROLLBACK"); + static constexpr uint32_t NO_ROLLBACK_HASH = ConstExprHashingUtils::HashString("NO_ROLLBACK"); + static constexpr uint32_t DEFAULT_ROLLBACK_HASH = ConstExprHashingUtils::HashString("DEFAULT_ROLLBACK"); RollbackOnDisable GetRollbackOnDisableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_ROLLBACK_HASH) { return RollbackOnDisable::NO_ROLLBACK; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduleAt.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduleAt.cpp index 4cce57d1595..e09fc5a801f 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduleAt.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduleAt.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScheduleAtMapper { - static const int NOW_HASH = HashingUtils::HashString("NOW"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int OFF_PEAK_WINDOW_HASH = HashingUtils::HashString("OFF_PEAK_WINDOW"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t OFF_PEAK_WINDOW_HASH = ConstExprHashingUtils::HashString("OFF_PEAK_WINDOW"); ScheduleAt GetScheduleAtForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOW_HASH) { return ScheduleAt::NOW; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneActionType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneActionType.cpp index fbc2964a421..6d319727408 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneActionType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduledAutoTuneActionTypeMapper { - static const int JVM_HEAP_SIZE_TUNING_HASH = HashingUtils::HashString("JVM_HEAP_SIZE_TUNING"); - static const int JVM_YOUNG_GEN_TUNING_HASH = HashingUtils::HashString("JVM_YOUNG_GEN_TUNING"); + static constexpr uint32_t JVM_HEAP_SIZE_TUNING_HASH = ConstExprHashingUtils::HashString("JVM_HEAP_SIZE_TUNING"); + static constexpr uint32_t JVM_YOUNG_GEN_TUNING_HASH = ConstExprHashingUtils::HashString("JVM_YOUNG_GEN_TUNING"); ScheduledAutoTuneActionType GetScheduledAutoTuneActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JVM_HEAP_SIZE_TUNING_HASH) { return ScheduledAutoTuneActionType::JVM_HEAP_SIZE_TUNING; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneSeverityType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneSeverityType.cpp index 83dcf81b042..8729a841407 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneSeverityType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledAutoTuneSeverityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScheduledAutoTuneSeverityTypeMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); ScheduledAutoTuneSeverityType GetScheduledAutoTuneSeverityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return ScheduledAutoTuneSeverityType::LOW; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledBy.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledBy.cpp index fe72c486f73..2b6977da434 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledBy.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ScheduledBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduledByMapper { - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); ScheduledBy GetScheduledByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_HASH) { return ScheduledBy::CUSTOMER; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/SkipUnavailableStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/SkipUnavailableStatus.cpp index 94a17c23e32..ba1203a0f09 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/SkipUnavailableStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/SkipUnavailableStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SkipUnavailableStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); SkipUnavailableStatus GetSkipUnavailableStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return SkipUnavailableStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/TLSSecurityPolicy.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/TLSSecurityPolicy.cpp index 7558791ad00..67aeabed787 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/TLSSecurityPolicy.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/TLSSecurityPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws 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"); + static constexpr uint32_t Policy_Min_TLS_1_0_2019_07_HASH = ConstExprHashingUtils::HashString("Policy-Min-TLS-1-0-2019-07"); + static constexpr uint32_t Policy_Min_TLS_1_2_2019_07_HASH = ConstExprHashingUtils::HashString("Policy-Min-TLS-1-2-2019-07"); TLSSecurityPolicy GetTLSSecurityPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t 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; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/TimeUnit.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/TimeUnit.cpp index b3e97bf4bb3..65c91327c18 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/TimeUnit.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/TimeUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TimeUnitMapper { - static const int HOURS_HASH = HashingUtils::HashString("HOURS"); + static constexpr uint32_t HOURS_HASH = ConstExprHashingUtils::HashString("HOURS"); TimeUnit GetTimeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURS_HASH) { return TimeUnit::HOURS; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStatus.cpp index 5a3143e5284..1ffe9df151d 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UpgradeStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int SUCCEEDED_WITH_ISSUES_HASH = HashingUtils::HashString("SUCCEEDED_WITH_ISSUES"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t SUCCEEDED_WITH_ISSUES_HASH = ConstExprHashingUtils::HashString("SUCCEEDED_WITH_ISSUES"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); UpgradeStatus GetUpgradeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return UpgradeStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStep.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStep.cpp index 080fc291312..d0944757aec 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStep.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/UpgradeStep.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UpgradeStepMapper { - static const int PRE_UPGRADE_CHECK_HASH = HashingUtils::HashString("PRE_UPGRADE_CHECK"); - static const int SNAPSHOT_HASH = HashingUtils::HashString("SNAPSHOT"); - static const int UPGRADE_HASH = HashingUtils::HashString("UPGRADE"); + static constexpr uint32_t PRE_UPGRADE_CHECK_HASH = ConstExprHashingUtils::HashString("PRE_UPGRADE_CHECK"); + static constexpr uint32_t SNAPSHOT_HASH = ConstExprHashingUtils::HashString("SNAPSHOT"); + static constexpr uint32_t UPGRADE_HASH = ConstExprHashingUtils::HashString("UPGRADE"); UpgradeStep GetUpgradeStepForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRE_UPGRADE_CHECK_HASH) { return UpgradeStep::PRE_UPGRADE_CHECK; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/VolumeType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/VolumeType.cpp index d3047dc4f7e..f5b1404bf16 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/VolumeType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/VolumeType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VolumeTypeMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int gp2_HASH = HashingUtils::HashString("gp2"); - static const int io1_HASH = HashingUtils::HashString("io1"); - static const int gp3_HASH = HashingUtils::HashString("gp3"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t gp2_HASH = ConstExprHashingUtils::HashString("gp2"); + static constexpr uint32_t io1_HASH = ConstExprHashingUtils::HashString("io1"); + static constexpr uint32_t gp3_HASH = ConstExprHashingUtils::HashString("gp3"); VolumeType GetVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return VolumeType::standard; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointErrorCode.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointErrorCode.cpp index 389f6bc2774..feb137ecc0d 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VpcEndpointErrorCodeMapper { - static const int ENDPOINT_NOT_FOUND_HASH = HashingUtils::HashString("ENDPOINT_NOT_FOUND"); - static const int SERVER_ERROR_HASH = HashingUtils::HashString("SERVER_ERROR"); + static constexpr uint32_t ENDPOINT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENDPOINT_NOT_FOUND"); + static constexpr uint32_t SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("SERVER_ERROR"); VpcEndpointErrorCode GetVpcEndpointErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENDPOINT_NOT_FOUND_HASH) { return VpcEndpointErrorCode::ENDPOINT_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointStatus.cpp index 932707520b6..43a05a3cc70 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/VpcEndpointStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace VpcEndpointStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); VpcEndpointStatus GetVpcEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return VpcEndpointStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/ZoneStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/ZoneStatus.cpp index 9710b4722a3..6cd72dafa5f 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/ZoneStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/ZoneStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ZoneStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int StandBy_HASH = HashingUtils::HashString("StandBy"); - static const int NotAvailable_HASH = HashingUtils::HashString("NotAvailable"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t StandBy_HASH = ConstExprHashingUtils::HashString("StandBy"); + static constexpr uint32_t NotAvailable_HASH = ConstExprHashingUtils::HashString("NotAvailable"); ZoneStatus GetZoneStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return ZoneStatus::Active; diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessErrors.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessErrors.cpp index 55700ff6459..5971dcdc994 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessErrors.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessErrors.cpp @@ -26,15 +26,15 @@ template<> AWS_OPENSEARCHSERVERLESS_API ServiceQuotaExceededException OpenSearch namespace OpenSearchServerlessErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int OCU_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OcuLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t OCU_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OcuLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/AccessPolicyType.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/AccessPolicyType.cpp index f6dd8bfe3e2..3df9700d3a5 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/AccessPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/AccessPolicyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AccessPolicyTypeMapper { - static const int data_HASH = HashingUtils::HashString("data"); + static constexpr uint32_t data_HASH = ConstExprHashingUtils::HashString("data"); AccessPolicyType GetAccessPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == data_HASH) { return AccessPolicyType::data; diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionStatus.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionStatus.cpp index 9908bf58d3c..d1785174434 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CollectionStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CollectionStatus GetCollectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CollectionStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionType.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionType.cpp index e46e45b913e..bcb6c9ed81f 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionType.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/CollectionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CollectionTypeMapper { - static const int SEARCH_HASH = HashingUtils::HashString("SEARCH"); - static const int TIMESERIES_HASH = HashingUtils::HashString("TIMESERIES"); - static const int VECTORSEARCH_HASH = HashingUtils::HashString("VECTORSEARCH"); + static constexpr uint32_t SEARCH_HASH = ConstExprHashingUtils::HashString("SEARCH"); + static constexpr uint32_t TIMESERIES_HASH = ConstExprHashingUtils::HashString("TIMESERIES"); + static constexpr uint32_t VECTORSEARCH_HASH = ConstExprHashingUtils::HashString("VECTORSEARCH"); CollectionType GetCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEARCH_HASH) { return CollectionType::SEARCH; diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityConfigType.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityConfigType.cpp index 9ba5bb79b5c..f133dd37a07 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityConfigType.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityConfigType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SecurityConfigTypeMapper { - static const int saml_HASH = HashingUtils::HashString("saml"); + static constexpr uint32_t saml_HASH = ConstExprHashingUtils::HashString("saml"); SecurityConfigType GetSecurityConfigTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == saml_HASH) { return SecurityConfigType::saml; diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityPolicyType.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityPolicyType.cpp index c682456167e..66a73105194 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/SecurityPolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SecurityPolicyTypeMapper { - static const int encryption_HASH = HashingUtils::HashString("encryption"); - static const int network_HASH = HashingUtils::HashString("network"); + static constexpr uint32_t encryption_HASH = ConstExprHashingUtils::HashString("encryption"); + static constexpr uint32_t network_HASH = ConstExprHashingUtils::HashString("network"); SecurityPolicyType GetSecurityPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == encryption_HASH) { return SecurityPolicyType::encryption; diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/VpcEndpointStatus.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/VpcEndpointStatus.cpp index f88b673b231..8552a285889 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/model/VpcEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/model/VpcEndpointStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VpcEndpointStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VpcEndpointStatus GetVpcEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return VpcEndpointStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/AppAttributesKeys.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/AppAttributesKeys.cpp index 974588f007a..0963e01f592 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/AppAttributesKeys.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/AppAttributesKeys.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AppAttributesKeysMapper { - static const int DocumentRoot_HASH = HashingUtils::HashString("DocumentRoot"); - static const int RailsEnv_HASH = HashingUtils::HashString("RailsEnv"); - static const int AutoBundleOnDeploy_HASH = HashingUtils::HashString("AutoBundleOnDeploy"); - static const int AwsFlowRubySettings_HASH = HashingUtils::HashString("AwsFlowRubySettings"); + static constexpr uint32_t DocumentRoot_HASH = ConstExprHashingUtils::HashString("DocumentRoot"); + static constexpr uint32_t RailsEnv_HASH = ConstExprHashingUtils::HashString("RailsEnv"); + static constexpr uint32_t AutoBundleOnDeploy_HASH = ConstExprHashingUtils::HashString("AutoBundleOnDeploy"); + static constexpr uint32_t AwsFlowRubySettings_HASH = ConstExprHashingUtils::HashString("AwsFlowRubySettings"); AppAttributesKeys GetAppAttributesKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DocumentRoot_HASH) { return AppAttributesKeys::DocumentRoot; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/AppType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/AppType.cpp index e09c9771a3d..31c02b9533e 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/AppType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/AppType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AppTypeMapper { - static const int aws_flow_ruby_HASH = HashingUtils::HashString("aws-flow-ruby"); - static const int java_HASH = HashingUtils::HashString("java"); - static const int rails_HASH = HashingUtils::HashString("rails"); - static const int php_HASH = HashingUtils::HashString("php"); - static const int nodejs_HASH = HashingUtils::HashString("nodejs"); - static const int static__HASH = HashingUtils::HashString("static"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t aws_flow_ruby_HASH = ConstExprHashingUtils::HashString("aws-flow-ruby"); + static constexpr uint32_t java_HASH = ConstExprHashingUtils::HashString("java"); + static constexpr uint32_t rails_HASH = ConstExprHashingUtils::HashString("rails"); + static constexpr uint32_t php_HASH = ConstExprHashingUtils::HashString("php"); + static constexpr uint32_t nodejs_HASH = ConstExprHashingUtils::HashString("nodejs"); + static constexpr uint32_t static__HASH = ConstExprHashingUtils::HashString("static"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); AppType GetAppTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_flow_ruby_HASH) { return AppType::aws_flow_ruby; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/Architecture.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/Architecture.cpp index 4c704c9882b..6b9af9d60d5 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/Architecture.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/Architecture.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArchitectureMapper { - static const int x86_64_HASH = HashingUtils::HashString("x86_64"); - static const int i386_HASH = HashingUtils::HashString("i386"); + static constexpr uint32_t x86_64_HASH = ConstExprHashingUtils::HashString("x86_64"); + static constexpr uint32_t i386_HASH = ConstExprHashingUtils::HashString("i386"); Architecture GetArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == x86_64_HASH) { return Architecture::x86_64; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/AutoScalingType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/AutoScalingType.cpp index 79a094319f1..9c199420e08 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/AutoScalingType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/AutoScalingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoScalingTypeMapper { - static const int load_HASH = HashingUtils::HashString("load"); - static const int timer_HASH = HashingUtils::HashString("timer"); + static constexpr uint32_t load_HASH = ConstExprHashingUtils::HashString("load"); + static constexpr uint32_t timer_HASH = ConstExprHashingUtils::HashString("timer"); AutoScalingType GetAutoScalingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == load_HASH) { return AutoScalingType::load; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsEncoding.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsEncoding.cpp index 507c9c7819f..68d6f194d30 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsEncoding.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsEncoding.cpp @@ -20,103 +20,103 @@ namespace Aws namespace CloudWatchLogsEncodingMapper { - static const int ascii_HASH = HashingUtils::HashString("ascii"); - static const int big5_HASH = HashingUtils::HashString("big5"); - static const int big5hkscs_HASH = HashingUtils::HashString("big5hkscs"); - static const int cp037_HASH = HashingUtils::HashString("cp037"); - static const int cp424_HASH = HashingUtils::HashString("cp424"); - static const int cp437_HASH = HashingUtils::HashString("cp437"); - static const int cp500_HASH = HashingUtils::HashString("cp500"); - static const int cp720_HASH = HashingUtils::HashString("cp720"); - static const int cp737_HASH = HashingUtils::HashString("cp737"); - static const int cp775_HASH = HashingUtils::HashString("cp775"); - static const int cp850_HASH = HashingUtils::HashString("cp850"); - static const int cp852_HASH = HashingUtils::HashString("cp852"); - static const int cp855_HASH = HashingUtils::HashString("cp855"); - static const int cp856_HASH = HashingUtils::HashString("cp856"); - static const int cp857_HASH = HashingUtils::HashString("cp857"); - static const int cp858_HASH = HashingUtils::HashString("cp858"); - static const int cp860_HASH = HashingUtils::HashString("cp860"); - static const int cp861_HASH = HashingUtils::HashString("cp861"); - static const int cp862_HASH = HashingUtils::HashString("cp862"); - static const int cp863_HASH = HashingUtils::HashString("cp863"); - static const int cp864_HASH = HashingUtils::HashString("cp864"); - static const int cp865_HASH = HashingUtils::HashString("cp865"); - static const int cp866_HASH = HashingUtils::HashString("cp866"); - static const int cp869_HASH = HashingUtils::HashString("cp869"); - static const int cp874_HASH = HashingUtils::HashString("cp874"); - static const int cp875_HASH = HashingUtils::HashString("cp875"); - static const int cp932_HASH = HashingUtils::HashString("cp932"); - static const int cp949_HASH = HashingUtils::HashString("cp949"); - static const int cp950_HASH = HashingUtils::HashString("cp950"); - static const int cp1006_HASH = HashingUtils::HashString("cp1006"); - static const int cp1026_HASH = HashingUtils::HashString("cp1026"); - static const int cp1140_HASH = HashingUtils::HashString("cp1140"); - static const int cp1250_HASH = HashingUtils::HashString("cp1250"); - static const int cp1251_HASH = HashingUtils::HashString("cp1251"); - static const int cp1252_HASH = HashingUtils::HashString("cp1252"); - static const int cp1253_HASH = HashingUtils::HashString("cp1253"); - static const int cp1254_HASH = HashingUtils::HashString("cp1254"); - static const int cp1255_HASH = HashingUtils::HashString("cp1255"); - static const int cp1256_HASH = HashingUtils::HashString("cp1256"); - static const int cp1257_HASH = HashingUtils::HashString("cp1257"); - static const int cp1258_HASH = HashingUtils::HashString("cp1258"); - static const int euc_jp_HASH = HashingUtils::HashString("euc_jp"); - static const int euc_jis_2004_HASH = HashingUtils::HashString("euc_jis_2004"); - static const int euc_jisx0213_HASH = HashingUtils::HashString("euc_jisx0213"); - static const int euc_kr_HASH = HashingUtils::HashString("euc_kr"); - static const int gb2312_HASH = HashingUtils::HashString("gb2312"); - static const int gbk_HASH = HashingUtils::HashString("gbk"); - static const int gb18030_HASH = HashingUtils::HashString("gb18030"); - static const int hz_HASH = HashingUtils::HashString("hz"); - static const int iso2022_jp_HASH = HashingUtils::HashString("iso2022_jp"); - static const int iso2022_jp_1_HASH = HashingUtils::HashString("iso2022_jp_1"); - static const int iso2022_jp_2_HASH = HashingUtils::HashString("iso2022_jp_2"); - static const int iso2022_jp_2004_HASH = HashingUtils::HashString("iso2022_jp_2004"); - static const int iso2022_jp_3_HASH = HashingUtils::HashString("iso2022_jp_3"); - static const int iso2022_jp_ext_HASH = HashingUtils::HashString("iso2022_jp_ext"); - static const int iso2022_kr_HASH = HashingUtils::HashString("iso2022_kr"); - static const int latin_1_HASH = HashingUtils::HashString("latin_1"); - static const int iso8859_2_HASH = HashingUtils::HashString("iso8859_2"); - static const int iso8859_3_HASH = HashingUtils::HashString("iso8859_3"); - static const int iso8859_4_HASH = HashingUtils::HashString("iso8859_4"); - static const int iso8859_5_HASH = HashingUtils::HashString("iso8859_5"); - static const int iso8859_6_HASH = HashingUtils::HashString("iso8859_6"); - static const int iso8859_7_HASH = HashingUtils::HashString("iso8859_7"); - static const int iso8859_8_HASH = HashingUtils::HashString("iso8859_8"); - static const int iso8859_9_HASH = HashingUtils::HashString("iso8859_9"); - static const int iso8859_10_HASH = HashingUtils::HashString("iso8859_10"); - static const int iso8859_13_HASH = HashingUtils::HashString("iso8859_13"); - static const int iso8859_14_HASH = HashingUtils::HashString("iso8859_14"); - static const int iso8859_15_HASH = HashingUtils::HashString("iso8859_15"); - static const int iso8859_16_HASH = HashingUtils::HashString("iso8859_16"); - static const int johab_HASH = HashingUtils::HashString("johab"); - static const int koi8_r_HASH = HashingUtils::HashString("koi8_r"); - static const int koi8_u_HASH = HashingUtils::HashString("koi8_u"); - static const int mac_cyrillic_HASH = HashingUtils::HashString("mac_cyrillic"); - static const int mac_greek_HASH = HashingUtils::HashString("mac_greek"); - static const int mac_iceland_HASH = HashingUtils::HashString("mac_iceland"); - static const int mac_latin2_HASH = HashingUtils::HashString("mac_latin2"); - static const int mac_roman_HASH = HashingUtils::HashString("mac_roman"); - static const int mac_turkish_HASH = HashingUtils::HashString("mac_turkish"); - static const int ptcp154_HASH = HashingUtils::HashString("ptcp154"); - static const int shift_jis_HASH = HashingUtils::HashString("shift_jis"); - static const int shift_jis_2004_HASH = HashingUtils::HashString("shift_jis_2004"); - static const int shift_jisx0213_HASH = HashingUtils::HashString("shift_jisx0213"); - static const int utf_32_HASH = HashingUtils::HashString("utf_32"); - static const int utf_32_be_HASH = HashingUtils::HashString("utf_32_be"); - static const int utf_32_le_HASH = HashingUtils::HashString("utf_32_le"); - static const int utf_16_HASH = HashingUtils::HashString("utf_16"); - static const int utf_16_be_HASH = HashingUtils::HashString("utf_16_be"); - static const int utf_16_le_HASH = HashingUtils::HashString("utf_16_le"); - static const int utf_7_HASH = HashingUtils::HashString("utf_7"); - static const int utf_8_HASH = HashingUtils::HashString("utf_8"); - static const int utf_8_sig_HASH = HashingUtils::HashString("utf_8_sig"); + static constexpr uint32_t ascii_HASH = ConstExprHashingUtils::HashString("ascii"); + static constexpr uint32_t big5_HASH = ConstExprHashingUtils::HashString("big5"); + static constexpr uint32_t big5hkscs_HASH = ConstExprHashingUtils::HashString("big5hkscs"); + static constexpr uint32_t cp037_HASH = ConstExprHashingUtils::HashString("cp037"); + static constexpr uint32_t cp424_HASH = ConstExprHashingUtils::HashString("cp424"); + static constexpr uint32_t cp437_HASH = ConstExprHashingUtils::HashString("cp437"); + static constexpr uint32_t cp500_HASH = ConstExprHashingUtils::HashString("cp500"); + static constexpr uint32_t cp720_HASH = ConstExprHashingUtils::HashString("cp720"); + static constexpr uint32_t cp737_HASH = ConstExprHashingUtils::HashString("cp737"); + static constexpr uint32_t cp775_HASH = ConstExprHashingUtils::HashString("cp775"); + static constexpr uint32_t cp850_HASH = ConstExprHashingUtils::HashString("cp850"); + static constexpr uint32_t cp852_HASH = ConstExprHashingUtils::HashString("cp852"); + static constexpr uint32_t cp855_HASH = ConstExprHashingUtils::HashString("cp855"); + static constexpr uint32_t cp856_HASH = ConstExprHashingUtils::HashString("cp856"); + static constexpr uint32_t cp857_HASH = ConstExprHashingUtils::HashString("cp857"); + static constexpr uint32_t cp858_HASH = ConstExprHashingUtils::HashString("cp858"); + static constexpr uint32_t cp860_HASH = ConstExprHashingUtils::HashString("cp860"); + static constexpr uint32_t cp861_HASH = ConstExprHashingUtils::HashString("cp861"); + static constexpr uint32_t cp862_HASH = ConstExprHashingUtils::HashString("cp862"); + static constexpr uint32_t cp863_HASH = ConstExprHashingUtils::HashString("cp863"); + static constexpr uint32_t cp864_HASH = ConstExprHashingUtils::HashString("cp864"); + static constexpr uint32_t cp865_HASH = ConstExprHashingUtils::HashString("cp865"); + static constexpr uint32_t cp866_HASH = ConstExprHashingUtils::HashString("cp866"); + static constexpr uint32_t cp869_HASH = ConstExprHashingUtils::HashString("cp869"); + static constexpr uint32_t cp874_HASH = ConstExprHashingUtils::HashString("cp874"); + static constexpr uint32_t cp875_HASH = ConstExprHashingUtils::HashString("cp875"); + static constexpr uint32_t cp932_HASH = ConstExprHashingUtils::HashString("cp932"); + static constexpr uint32_t cp949_HASH = ConstExprHashingUtils::HashString("cp949"); + static constexpr uint32_t cp950_HASH = ConstExprHashingUtils::HashString("cp950"); + static constexpr uint32_t cp1006_HASH = ConstExprHashingUtils::HashString("cp1006"); + static constexpr uint32_t cp1026_HASH = ConstExprHashingUtils::HashString("cp1026"); + static constexpr uint32_t cp1140_HASH = ConstExprHashingUtils::HashString("cp1140"); + static constexpr uint32_t cp1250_HASH = ConstExprHashingUtils::HashString("cp1250"); + static constexpr uint32_t cp1251_HASH = ConstExprHashingUtils::HashString("cp1251"); + static constexpr uint32_t cp1252_HASH = ConstExprHashingUtils::HashString("cp1252"); + static constexpr uint32_t cp1253_HASH = ConstExprHashingUtils::HashString("cp1253"); + static constexpr uint32_t cp1254_HASH = ConstExprHashingUtils::HashString("cp1254"); + static constexpr uint32_t cp1255_HASH = ConstExprHashingUtils::HashString("cp1255"); + static constexpr uint32_t cp1256_HASH = ConstExprHashingUtils::HashString("cp1256"); + static constexpr uint32_t cp1257_HASH = ConstExprHashingUtils::HashString("cp1257"); + static constexpr uint32_t cp1258_HASH = ConstExprHashingUtils::HashString("cp1258"); + static constexpr uint32_t euc_jp_HASH = ConstExprHashingUtils::HashString("euc_jp"); + static constexpr uint32_t euc_jis_2004_HASH = ConstExprHashingUtils::HashString("euc_jis_2004"); + static constexpr uint32_t euc_jisx0213_HASH = ConstExprHashingUtils::HashString("euc_jisx0213"); + static constexpr uint32_t euc_kr_HASH = ConstExprHashingUtils::HashString("euc_kr"); + static constexpr uint32_t gb2312_HASH = ConstExprHashingUtils::HashString("gb2312"); + static constexpr uint32_t gbk_HASH = ConstExprHashingUtils::HashString("gbk"); + static constexpr uint32_t gb18030_HASH = ConstExprHashingUtils::HashString("gb18030"); + static constexpr uint32_t hz_HASH = ConstExprHashingUtils::HashString("hz"); + static constexpr uint32_t iso2022_jp_HASH = ConstExprHashingUtils::HashString("iso2022_jp"); + static constexpr uint32_t iso2022_jp_1_HASH = ConstExprHashingUtils::HashString("iso2022_jp_1"); + static constexpr uint32_t iso2022_jp_2_HASH = ConstExprHashingUtils::HashString("iso2022_jp_2"); + static constexpr uint32_t iso2022_jp_2004_HASH = ConstExprHashingUtils::HashString("iso2022_jp_2004"); + static constexpr uint32_t iso2022_jp_3_HASH = ConstExprHashingUtils::HashString("iso2022_jp_3"); + static constexpr uint32_t iso2022_jp_ext_HASH = ConstExprHashingUtils::HashString("iso2022_jp_ext"); + static constexpr uint32_t iso2022_kr_HASH = ConstExprHashingUtils::HashString("iso2022_kr"); + static constexpr uint32_t latin_1_HASH = ConstExprHashingUtils::HashString("latin_1"); + static constexpr uint32_t iso8859_2_HASH = ConstExprHashingUtils::HashString("iso8859_2"); + static constexpr uint32_t iso8859_3_HASH = ConstExprHashingUtils::HashString("iso8859_3"); + static constexpr uint32_t iso8859_4_HASH = ConstExprHashingUtils::HashString("iso8859_4"); + static constexpr uint32_t iso8859_5_HASH = ConstExprHashingUtils::HashString("iso8859_5"); + static constexpr uint32_t iso8859_6_HASH = ConstExprHashingUtils::HashString("iso8859_6"); + static constexpr uint32_t iso8859_7_HASH = ConstExprHashingUtils::HashString("iso8859_7"); + static constexpr uint32_t iso8859_8_HASH = ConstExprHashingUtils::HashString("iso8859_8"); + static constexpr uint32_t iso8859_9_HASH = ConstExprHashingUtils::HashString("iso8859_9"); + static constexpr uint32_t iso8859_10_HASH = ConstExprHashingUtils::HashString("iso8859_10"); + static constexpr uint32_t iso8859_13_HASH = ConstExprHashingUtils::HashString("iso8859_13"); + static constexpr uint32_t iso8859_14_HASH = ConstExprHashingUtils::HashString("iso8859_14"); + static constexpr uint32_t iso8859_15_HASH = ConstExprHashingUtils::HashString("iso8859_15"); + static constexpr uint32_t iso8859_16_HASH = ConstExprHashingUtils::HashString("iso8859_16"); + static constexpr uint32_t johab_HASH = ConstExprHashingUtils::HashString("johab"); + static constexpr uint32_t koi8_r_HASH = ConstExprHashingUtils::HashString("koi8_r"); + static constexpr uint32_t koi8_u_HASH = ConstExprHashingUtils::HashString("koi8_u"); + static constexpr uint32_t mac_cyrillic_HASH = ConstExprHashingUtils::HashString("mac_cyrillic"); + static constexpr uint32_t mac_greek_HASH = ConstExprHashingUtils::HashString("mac_greek"); + static constexpr uint32_t mac_iceland_HASH = ConstExprHashingUtils::HashString("mac_iceland"); + static constexpr uint32_t mac_latin2_HASH = ConstExprHashingUtils::HashString("mac_latin2"); + static constexpr uint32_t mac_roman_HASH = ConstExprHashingUtils::HashString("mac_roman"); + static constexpr uint32_t mac_turkish_HASH = ConstExprHashingUtils::HashString("mac_turkish"); + static constexpr uint32_t ptcp154_HASH = ConstExprHashingUtils::HashString("ptcp154"); + static constexpr uint32_t shift_jis_HASH = ConstExprHashingUtils::HashString("shift_jis"); + static constexpr uint32_t shift_jis_2004_HASH = ConstExprHashingUtils::HashString("shift_jis_2004"); + static constexpr uint32_t shift_jisx0213_HASH = ConstExprHashingUtils::HashString("shift_jisx0213"); + static constexpr uint32_t utf_32_HASH = ConstExprHashingUtils::HashString("utf_32"); + static constexpr uint32_t utf_32_be_HASH = ConstExprHashingUtils::HashString("utf_32_be"); + static constexpr uint32_t utf_32_le_HASH = ConstExprHashingUtils::HashString("utf_32_le"); + static constexpr uint32_t utf_16_HASH = ConstExprHashingUtils::HashString("utf_16"); + static constexpr uint32_t utf_16_be_HASH = ConstExprHashingUtils::HashString("utf_16_be"); + static constexpr uint32_t utf_16_le_HASH = ConstExprHashingUtils::HashString("utf_16_le"); + static constexpr uint32_t utf_7_HASH = ConstExprHashingUtils::HashString("utf_7"); + static constexpr uint32_t utf_8_HASH = ConstExprHashingUtils::HashString("utf_8"); + static constexpr uint32_t utf_8_sig_HASH = ConstExprHashingUtils::HashString("utf_8_sig"); CloudWatchLogsEncoding GetCloudWatchLogsEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ascii_HASH) { return CloudWatchLogsEncoding::ascii; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsInitialPosition.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsInitialPosition.cpp index ddfd6d4e46c..e7e0f2a5e7c 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsInitialPosition.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsInitialPosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CloudWatchLogsInitialPositionMapper { - static const int start_of_file_HASH = HashingUtils::HashString("start_of_file"); - static const int end_of_file_HASH = HashingUtils::HashString("end_of_file"); + static constexpr uint32_t start_of_file_HASH = ConstExprHashingUtils::HashString("start_of_file"); + static constexpr uint32_t end_of_file_HASH = ConstExprHashingUtils::HashString("end_of_file"); CloudWatchLogsInitialPosition GetCloudWatchLogsInitialPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == start_of_file_HASH) { return CloudWatchLogsInitialPosition::start_of_file; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsTimeZone.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsTimeZone.cpp index c2da9589780..cc05268ca87 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsTimeZone.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/CloudWatchLogsTimeZone.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CloudWatchLogsTimeZoneMapper { - static const int LOCAL_HASH = HashingUtils::HashString("LOCAL"); - static const int UTC_HASH = HashingUtils::HashString("UTC"); + static constexpr uint32_t LOCAL_HASH = ConstExprHashingUtils::HashString("LOCAL"); + static constexpr uint32_t UTC_HASH = ConstExprHashingUtils::HashString("UTC"); CloudWatchLogsTimeZone GetCloudWatchLogsTimeZoneForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOCAL_HASH) { return CloudWatchLogsTimeZone::LOCAL; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/DeploymentCommandName.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/DeploymentCommandName.cpp index 60dbe55eede..3e9adfb14f1 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/DeploymentCommandName.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/DeploymentCommandName.cpp @@ -20,23 +20,23 @@ namespace Aws namespace DeploymentCommandNameMapper { - static const int install_dependencies_HASH = HashingUtils::HashString("install_dependencies"); - static const int update_dependencies_HASH = HashingUtils::HashString("update_dependencies"); - static const int update_custom_cookbooks_HASH = HashingUtils::HashString("update_custom_cookbooks"); - static const int execute_recipes_HASH = HashingUtils::HashString("execute_recipes"); - static const int configure_HASH = HashingUtils::HashString("configure"); - static const int setup_HASH = HashingUtils::HashString("setup"); - static const int deploy_HASH = HashingUtils::HashString("deploy"); - static const int rollback_HASH = HashingUtils::HashString("rollback"); - static const int start_HASH = HashingUtils::HashString("start"); - static const int stop_HASH = HashingUtils::HashString("stop"); - static const int restart_HASH = HashingUtils::HashString("restart"); - static const int undeploy_HASH = HashingUtils::HashString("undeploy"); + static constexpr uint32_t install_dependencies_HASH = ConstExprHashingUtils::HashString("install_dependencies"); + static constexpr uint32_t update_dependencies_HASH = ConstExprHashingUtils::HashString("update_dependencies"); + static constexpr uint32_t update_custom_cookbooks_HASH = ConstExprHashingUtils::HashString("update_custom_cookbooks"); + static constexpr uint32_t execute_recipes_HASH = ConstExprHashingUtils::HashString("execute_recipes"); + static constexpr uint32_t configure_HASH = ConstExprHashingUtils::HashString("configure"); + static constexpr uint32_t setup_HASH = ConstExprHashingUtils::HashString("setup"); + static constexpr uint32_t deploy_HASH = ConstExprHashingUtils::HashString("deploy"); + static constexpr uint32_t rollback_HASH = ConstExprHashingUtils::HashString("rollback"); + static constexpr uint32_t start_HASH = ConstExprHashingUtils::HashString("start"); + static constexpr uint32_t stop_HASH = ConstExprHashingUtils::HashString("stop"); + static constexpr uint32_t restart_HASH = ConstExprHashingUtils::HashString("restart"); + static constexpr uint32_t undeploy_HASH = ConstExprHashingUtils::HashString("undeploy"); DeploymentCommandName GetDeploymentCommandNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == install_dependencies_HASH) { return DeploymentCommandName::install_dependencies; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/LayerAttributesKeys.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/LayerAttributesKeys.cpp index bf8e6fa8263..b941c23c522 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/LayerAttributesKeys.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/LayerAttributesKeys.cpp @@ -20,36 +20,36 @@ namespace Aws namespace LayerAttributesKeysMapper { - static const int EcsClusterArn_HASH = HashingUtils::HashString("EcsClusterArn"); - static const int EnableHaproxyStats_HASH = HashingUtils::HashString("EnableHaproxyStats"); - static const int HaproxyStatsUrl_HASH = HashingUtils::HashString("HaproxyStatsUrl"); - static const int HaproxyStatsUser_HASH = HashingUtils::HashString("HaproxyStatsUser"); - static const int HaproxyStatsPassword_HASH = HashingUtils::HashString("HaproxyStatsPassword"); - static const int HaproxyHealthCheckUrl_HASH = HashingUtils::HashString("HaproxyHealthCheckUrl"); - static const int HaproxyHealthCheckMethod_HASH = HashingUtils::HashString("HaproxyHealthCheckMethod"); - static const int MysqlRootPassword_HASH = HashingUtils::HashString("MysqlRootPassword"); - static const int MysqlRootPasswordUbiquitous_HASH = HashingUtils::HashString("MysqlRootPasswordUbiquitous"); - static const int GangliaUrl_HASH = HashingUtils::HashString("GangliaUrl"); - static const int GangliaUser_HASH = HashingUtils::HashString("GangliaUser"); - static const int GangliaPassword_HASH = HashingUtils::HashString("GangliaPassword"); - static const int MemcachedMemory_HASH = HashingUtils::HashString("MemcachedMemory"); - static const int NodejsVersion_HASH = HashingUtils::HashString("NodejsVersion"); - static const int RubyVersion_HASH = HashingUtils::HashString("RubyVersion"); - static const int RubygemsVersion_HASH = HashingUtils::HashString("RubygemsVersion"); - static const int ManageBundler_HASH = HashingUtils::HashString("ManageBundler"); - static const int BundlerVersion_HASH = HashingUtils::HashString("BundlerVersion"); - static const int RailsStack_HASH = HashingUtils::HashString("RailsStack"); - static const int PassengerVersion_HASH = HashingUtils::HashString("PassengerVersion"); - static const int Jvm_HASH = HashingUtils::HashString("Jvm"); - static const int JvmVersion_HASH = HashingUtils::HashString("JvmVersion"); - static const int JvmOptions_HASH = HashingUtils::HashString("JvmOptions"); - static const int JavaAppServer_HASH = HashingUtils::HashString("JavaAppServer"); - static const int JavaAppServerVersion_HASH = HashingUtils::HashString("JavaAppServerVersion"); + static constexpr uint32_t EcsClusterArn_HASH = ConstExprHashingUtils::HashString("EcsClusterArn"); + static constexpr uint32_t EnableHaproxyStats_HASH = ConstExprHashingUtils::HashString("EnableHaproxyStats"); + static constexpr uint32_t HaproxyStatsUrl_HASH = ConstExprHashingUtils::HashString("HaproxyStatsUrl"); + static constexpr uint32_t HaproxyStatsUser_HASH = ConstExprHashingUtils::HashString("HaproxyStatsUser"); + static constexpr uint32_t HaproxyStatsPassword_HASH = ConstExprHashingUtils::HashString("HaproxyStatsPassword"); + static constexpr uint32_t HaproxyHealthCheckUrl_HASH = ConstExprHashingUtils::HashString("HaproxyHealthCheckUrl"); + static constexpr uint32_t HaproxyHealthCheckMethod_HASH = ConstExprHashingUtils::HashString("HaproxyHealthCheckMethod"); + static constexpr uint32_t MysqlRootPassword_HASH = ConstExprHashingUtils::HashString("MysqlRootPassword"); + static constexpr uint32_t MysqlRootPasswordUbiquitous_HASH = ConstExprHashingUtils::HashString("MysqlRootPasswordUbiquitous"); + static constexpr uint32_t GangliaUrl_HASH = ConstExprHashingUtils::HashString("GangliaUrl"); + static constexpr uint32_t GangliaUser_HASH = ConstExprHashingUtils::HashString("GangliaUser"); + static constexpr uint32_t GangliaPassword_HASH = ConstExprHashingUtils::HashString("GangliaPassword"); + static constexpr uint32_t MemcachedMemory_HASH = ConstExprHashingUtils::HashString("MemcachedMemory"); + static constexpr uint32_t NodejsVersion_HASH = ConstExprHashingUtils::HashString("NodejsVersion"); + static constexpr uint32_t RubyVersion_HASH = ConstExprHashingUtils::HashString("RubyVersion"); + static constexpr uint32_t RubygemsVersion_HASH = ConstExprHashingUtils::HashString("RubygemsVersion"); + static constexpr uint32_t ManageBundler_HASH = ConstExprHashingUtils::HashString("ManageBundler"); + static constexpr uint32_t BundlerVersion_HASH = ConstExprHashingUtils::HashString("BundlerVersion"); + static constexpr uint32_t RailsStack_HASH = ConstExprHashingUtils::HashString("RailsStack"); + static constexpr uint32_t PassengerVersion_HASH = ConstExprHashingUtils::HashString("PassengerVersion"); + static constexpr uint32_t Jvm_HASH = ConstExprHashingUtils::HashString("Jvm"); + static constexpr uint32_t JvmVersion_HASH = ConstExprHashingUtils::HashString("JvmVersion"); + static constexpr uint32_t JvmOptions_HASH = ConstExprHashingUtils::HashString("JvmOptions"); + static constexpr uint32_t JavaAppServer_HASH = ConstExprHashingUtils::HashString("JavaAppServer"); + static constexpr uint32_t JavaAppServerVersion_HASH = ConstExprHashingUtils::HashString("JavaAppServerVersion"); LayerAttributesKeys GetLayerAttributesKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EcsClusterArn_HASH) { return LayerAttributesKeys::EcsClusterArn; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/LayerType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/LayerType.cpp index d901f4f0635..87b493da07f 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/LayerType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/LayerType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace LayerTypeMapper { - static const int aws_flow_ruby_HASH = HashingUtils::HashString("aws-flow-ruby"); - static const int ecs_cluster_HASH = HashingUtils::HashString("ecs-cluster"); - static const int java_app_HASH = HashingUtils::HashString("java-app"); - static const int lb_HASH = HashingUtils::HashString("lb"); - static const int web_HASH = HashingUtils::HashString("web"); - static const int php_app_HASH = HashingUtils::HashString("php-app"); - static const int rails_app_HASH = HashingUtils::HashString("rails-app"); - static const int nodejs_app_HASH = HashingUtils::HashString("nodejs-app"); - static const int memcached_HASH = HashingUtils::HashString("memcached"); - static const int db_master_HASH = HashingUtils::HashString("db-master"); - static const int monitoring_master_HASH = HashingUtils::HashString("monitoring-master"); - static const int custom_HASH = HashingUtils::HashString("custom"); + static constexpr uint32_t aws_flow_ruby_HASH = ConstExprHashingUtils::HashString("aws-flow-ruby"); + static constexpr uint32_t ecs_cluster_HASH = ConstExprHashingUtils::HashString("ecs-cluster"); + static constexpr uint32_t java_app_HASH = ConstExprHashingUtils::HashString("java-app"); + static constexpr uint32_t lb_HASH = ConstExprHashingUtils::HashString("lb"); + static constexpr uint32_t web_HASH = ConstExprHashingUtils::HashString("web"); + static constexpr uint32_t php_app_HASH = ConstExprHashingUtils::HashString("php-app"); + static constexpr uint32_t rails_app_HASH = ConstExprHashingUtils::HashString("rails-app"); + static constexpr uint32_t nodejs_app_HASH = ConstExprHashingUtils::HashString("nodejs-app"); + static constexpr uint32_t memcached_HASH = ConstExprHashingUtils::HashString("memcached"); + static constexpr uint32_t db_master_HASH = ConstExprHashingUtils::HashString("db-master"); + static constexpr uint32_t monitoring_master_HASH = ConstExprHashingUtils::HashString("monitoring-master"); + static constexpr uint32_t custom_HASH = ConstExprHashingUtils::HashString("custom"); LayerType GetLayerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_flow_ruby_HASH) { return LayerType::aws_flow_ruby; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/RootDeviceType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/RootDeviceType.cpp index 1e4722c29d3..99c79bdd09a 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/RootDeviceType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/RootDeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RootDeviceTypeMapper { - static const int ebs_HASH = HashingUtils::HashString("ebs"); - static const int instance_store_HASH = HashingUtils::HashString("instance-store"); + static constexpr uint32_t ebs_HASH = ConstExprHashingUtils::HashString("ebs"); + static constexpr uint32_t instance_store_HASH = ConstExprHashingUtils::HashString("instance-store"); RootDeviceType GetRootDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ebs_HASH) { return RootDeviceType::ebs; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/SourceType.cpp index e61f8c77cd8..12a99b280ac 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/SourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SourceTypeMapper { - static const int git_HASH = HashingUtils::HashString("git"); - static const int svn_HASH = HashingUtils::HashString("svn"); - static const int archive_HASH = HashingUtils::HashString("archive"); - static const int s3_HASH = HashingUtils::HashString("s3"); + static constexpr uint32_t git_HASH = ConstExprHashingUtils::HashString("git"); + static constexpr uint32_t svn_HASH = ConstExprHashingUtils::HashString("svn"); + static constexpr uint32_t archive_HASH = ConstExprHashingUtils::HashString("archive"); + static constexpr uint32_t s3_HASH = ConstExprHashingUtils::HashString("s3"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == git_HASH) { return SourceType::git; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/StackAttributesKeys.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/StackAttributesKeys.cpp index b6c10548616..855c33efe73 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/StackAttributesKeys.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/StackAttributesKeys.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StackAttributesKeysMapper { - static const int Color_HASH = HashingUtils::HashString("Color"); + static constexpr uint32_t Color_HASH = ConstExprHashingUtils::HashString("Color"); StackAttributesKeys GetStackAttributesKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Color_HASH) { return StackAttributesKeys::Color; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/VirtualizationType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/VirtualizationType.cpp index ae75b9d3971..76fc8bfda2e 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/VirtualizationType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/VirtualizationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VirtualizationTypeMapper { - static const int paravirtual_HASH = HashingUtils::HashString("paravirtual"); - static const int hvm_HASH = HashingUtils::HashString("hvm"); + static constexpr uint32_t paravirtual_HASH = ConstExprHashingUtils::HashString("paravirtual"); + static constexpr uint32_t hvm_HASH = ConstExprHashingUtils::HashString("hvm"); VirtualizationType GetVirtualizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == paravirtual_HASH) { return VirtualizationType::paravirtual; diff --git a/generated/src/aws-cpp-sdk-opsworks/source/model/VolumeType.cpp b/generated/src/aws-cpp-sdk-opsworks/source/model/VolumeType.cpp index 2154d6bff15..2769c672bb1 100644 --- a/generated/src/aws-cpp-sdk-opsworks/source/model/VolumeType.cpp +++ b/generated/src/aws-cpp-sdk-opsworks/source/model/VolumeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VolumeTypeMapper { - static const int gp2_HASH = HashingUtils::HashString("gp2"); - static const int io1_HASH = HashingUtils::HashString("io1"); - static const int standard_HASH = HashingUtils::HashString("standard"); + static constexpr uint32_t gp2_HASH = ConstExprHashingUtils::HashString("gp2"); + static constexpr uint32_t io1_HASH = ConstExprHashingUtils::HashString("io1"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); VolumeType GetVolumeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == gp2_HASH) { return VolumeType::gp2; diff --git a/generated/src/aws-cpp-sdk-opsworkscm/source/OpsWorksCMErrors.cpp b/generated/src/aws-cpp-sdk-opsworkscm/source/OpsWorksCMErrors.cpp index 16a4395751f..ccb47e6dad2 100644 --- a/generated/src/aws-cpp-sdk-opsworkscm/source/OpsWorksCMErrors.cpp +++ b/generated/src/aws-cpp-sdk-opsworkscm/source/OpsWorksCMErrors.cpp @@ -18,15 +18,15 @@ namespace OpsWorksCM namespace OpsWorksCMErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupStatus.cpp b/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupStatus.cpp index 7eee1b2a2c0..4de8e572f45 100644 --- a/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupStatus.cpp +++ b/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BackupStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int OK_HASH = HashingUtils::HashString("OK"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); BackupStatus GetBackupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return BackupStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupType.cpp b/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupType.cpp index 21eefc5a39a..c513936fcac 100644 --- a/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupType.cpp +++ b/generated/src/aws-cpp-sdk-opsworkscm/source/model/BackupType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BackupTypeMapper { - static const int AUTOMATED_HASH = HashingUtils::HashString("AUTOMATED"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTOMATED_HASH = ConstExprHashingUtils::HashString("AUTOMATED"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); BackupType GetBackupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATED_HASH) { return BackupType::AUTOMATED; diff --git a/generated/src/aws-cpp-sdk-opsworkscm/source/model/MaintenanceStatus.cpp b/generated/src/aws-cpp-sdk-opsworkscm/source/model/MaintenanceStatus.cpp index af0e2d9df79..3852f0a3d91 100644 --- a/generated/src/aws-cpp-sdk-opsworkscm/source/model/MaintenanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-opsworkscm/source/model/MaintenanceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MaintenanceStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); MaintenanceStatus GetMaintenanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return MaintenanceStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-opsworkscm/source/model/NodeAssociationStatus.cpp b/generated/src/aws-cpp-sdk-opsworkscm/source/model/NodeAssociationStatus.cpp index ab1cdf05089..d3f5a83eac1 100644 --- a/generated/src/aws-cpp-sdk-opsworkscm/source/model/NodeAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-opsworkscm/source/model/NodeAssociationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NodeAssociationStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); NodeAssociationStatus GetNodeAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return NodeAssociationStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-opsworkscm/source/model/ServerStatus.cpp b/generated/src/aws-cpp-sdk-opsworkscm/source/model/ServerStatus.cpp index 9210dbdafe4..ac47911a68a 100644 --- a/generated/src/aws-cpp-sdk-opsworkscm/source/model/ServerStatus.cpp +++ b/generated/src/aws-cpp-sdk-opsworkscm/source/model/ServerStatus.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ServerStatusMapper { - static const int BACKING_UP_HASH = HashingUtils::HashString("BACKING_UP"); - static const int CONNECTION_LOST_HASH = HashingUtils::HashString("CONNECTION_LOST"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int MODIFYING_HASH = HashingUtils::HashString("MODIFYING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int RESTORING_HASH = HashingUtils::HashString("RESTORING"); - static const int SETUP_HASH = HashingUtils::HashString("SETUP"); - static const int UNDER_MAINTENANCE_HASH = HashingUtils::HashString("UNDER_MAINTENANCE"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t BACKING_UP_HASH = ConstExprHashingUtils::HashString("BACKING_UP"); + static constexpr uint32_t CONNECTION_LOST_HASH = ConstExprHashingUtils::HashString("CONNECTION_LOST"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t MODIFYING_HASH = ConstExprHashingUtils::HashString("MODIFYING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t RESTORING_HASH = ConstExprHashingUtils::HashString("RESTORING"); + static constexpr uint32_t SETUP_HASH = ConstExprHashingUtils::HashString("SETUP"); + static constexpr uint32_t UNDER_MAINTENANCE_HASH = ConstExprHashingUtils::HashString("UNDER_MAINTENANCE"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); ServerStatus GetServerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BACKING_UP_HASH) { return ServerStatus::BACKING_UP; diff --git a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsErrors.cpp b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsErrors.cpp index 7fd14f41bc2..7def12699fa 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsErrors.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsErrors.cpp @@ -54,57 +54,57 @@ template<> AWS_ORGANIZATIONS_API TooManyRequestsException OrganizationsError::Ge namespace OrganizationsErrorMapper { -static const int UNSUPPORTED_A_P_I_ENDPOINT_HASH = HashingUtils::HashString("UnsupportedAPIEndpointException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int POLICY_TYPE_NOT_AVAILABLE_FOR_ORGANIZATION_HASH = HashingUtils::HashString("PolicyTypeNotAvailableForOrganizationException"); -static const int A_W_S_ORGANIZATIONS_NOT_IN_USE_HASH = HashingUtils::HashString("AWSOrganizationsNotInUseException"); -static const int DUPLICATE_POLICY_ATTACHMENT_HASH = HashingUtils::HashString("DuplicatePolicyAttachmentException"); -static const int FINALIZING_ORGANIZATION_HASH = HashingUtils::HashString("FinalizingOrganizationException"); -static const int DESTINATION_PARENT_NOT_FOUND_HASH = HashingUtils::HashString("DestinationParentNotFoundException"); -static const int POLICY_CHANGES_IN_PROGRESS_HASH = HashingUtils::HashString("PolicyChangesInProgressException"); -static const int MASTER_CANNOT_LEAVE_ORGANIZATION_HASH = HashingUtils::HashString("MasterCannotLeaveOrganizationException"); -static const int DUPLICATE_ACCOUNT_HASH = HashingUtils::HashString("DuplicateAccountException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int HANDSHAKE_NOT_FOUND_HASH = HashingUtils::HashString("HandshakeNotFoundException"); -static const int PARENT_NOT_FOUND_HASH = HashingUtils::HashString("ParentNotFoundException"); -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocumentException"); -static const int CHILD_NOT_FOUND_HASH = HashingUtils::HashString("ChildNotFoundException"); -static const int HANDSHAKE_ALREADY_IN_STATE_HASH = HashingUtils::HashString("HandshakeAlreadyInStateException"); -static const int POLICY_TYPE_NOT_ENABLED_HASH = HashingUtils::HashString("PolicyTypeNotEnabledException"); -static const int ROOT_NOT_FOUND_HASH = HashingUtils::HashString("RootNotFoundException"); -static const int CONSTRAINT_VIOLATION_HASH = HashingUtils::HashString("ConstraintViolationException"); -static const int ORGANIZATIONAL_UNIT_NOT_FOUND_HASH = HashingUtils::HashString("OrganizationalUnitNotFoundException"); -static const int HANDSHAKE_CONSTRAINT_VIOLATION_HASH = HashingUtils::HashString("HandshakeConstraintViolationException"); -static const int ACCOUNT_NOT_FOUND_HASH = HashingUtils::HashString("AccountNotFoundException"); -static const int DUPLICATE_ORGANIZATIONAL_UNIT_HASH = HashingUtils::HashString("DuplicateOrganizationalUnitException"); -static const int RESOURCE_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("ResourcePolicyNotFoundException"); -static const int POLICY_TYPE_ALREADY_ENABLED_HASH = HashingUtils::HashString("PolicyTypeAlreadyEnabledException"); -static const int DUPLICATE_HANDSHAKE_HASH = HashingUtils::HashString("DuplicateHandshakeException"); -static const int TARGET_NOT_FOUND_HASH = HashingUtils::HashString("TargetNotFoundException"); -static const int ORGANIZATIONAL_UNIT_NOT_EMPTY_HASH = HashingUtils::HashString("OrganizationalUnitNotEmptyException"); -static const int INVALID_HANDSHAKE_TRANSITION_HASH = HashingUtils::HashString("InvalidHandshakeTransitionException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int ORGANIZATION_NOT_EMPTY_HASH = HashingUtils::HashString("OrganizationNotEmptyException"); -static const int ACCOUNT_NOT_REGISTERED_HASH = HashingUtils::HashString("AccountNotRegisteredException"); -static const int ACCOUNT_ALREADY_REGISTERED_HASH = HashingUtils::HashString("AccountAlreadyRegisteredException"); -static const int POLICY_NOT_FOUND_HASH = HashingUtils::HashString("PolicyNotFoundException"); -static const int CREATE_ACCOUNT_STATUS_NOT_FOUND_HASH = HashingUtils::HashString("CreateAccountStatusNotFoundException"); -static const int EFFECTIVE_POLICY_NOT_FOUND_HASH = HashingUtils::HashString("EffectivePolicyNotFoundException"); -static const int SOURCE_PARENT_NOT_FOUND_HASH = HashingUtils::HashString("SourceParentNotFoundException"); -static const int ACCESS_DENIED_FOR_DEPENDENCY_HASH = HashingUtils::HashString("AccessDeniedForDependencyException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int DUPLICATE_POLICY_HASH = HashingUtils::HashString("DuplicatePolicyException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int POLICY_IN_USE_HASH = HashingUtils::HashString("PolicyInUseException"); -static const int POLICY_NOT_ATTACHED_HASH = HashingUtils::HashString("PolicyNotAttachedException"); -static const int ACCOUNT_ALREADY_CLOSED_HASH = HashingUtils::HashString("AccountAlreadyClosedException"); -static const int ALREADY_IN_ORGANIZATION_HASH = HashingUtils::HashString("AlreadyInOrganizationException"); -static const int ACCOUNT_OWNER_NOT_VERIFIED_HASH = HashingUtils::HashString("AccountOwnerNotVerifiedException"); +static constexpr uint32_t UNSUPPORTED_A_P_I_ENDPOINT_HASH = ConstExprHashingUtils::HashString("UnsupportedAPIEndpointException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t POLICY_TYPE_NOT_AVAILABLE_FOR_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("PolicyTypeNotAvailableForOrganizationException"); +static constexpr uint32_t A_W_S_ORGANIZATIONS_NOT_IN_USE_HASH = ConstExprHashingUtils::HashString("AWSOrganizationsNotInUseException"); +static constexpr uint32_t DUPLICATE_POLICY_ATTACHMENT_HASH = ConstExprHashingUtils::HashString("DuplicatePolicyAttachmentException"); +static constexpr uint32_t FINALIZING_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("FinalizingOrganizationException"); +static constexpr uint32_t DESTINATION_PARENT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DestinationParentNotFoundException"); +static constexpr uint32_t POLICY_CHANGES_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("PolicyChangesInProgressException"); +static constexpr uint32_t MASTER_CANNOT_LEAVE_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("MasterCannotLeaveOrganizationException"); +static constexpr uint32_t DUPLICATE_ACCOUNT_HASH = ConstExprHashingUtils::HashString("DuplicateAccountException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t HANDSHAKE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("HandshakeNotFoundException"); +static constexpr uint32_t PARENT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ParentNotFoundException"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocumentException"); +static constexpr uint32_t CHILD_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ChildNotFoundException"); +static constexpr uint32_t HANDSHAKE_ALREADY_IN_STATE_HASH = ConstExprHashingUtils::HashString("HandshakeAlreadyInStateException"); +static constexpr uint32_t POLICY_TYPE_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("PolicyTypeNotEnabledException"); +static constexpr uint32_t ROOT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RootNotFoundException"); +static constexpr uint32_t CONSTRAINT_VIOLATION_HASH = ConstExprHashingUtils::HashString("ConstraintViolationException"); +static constexpr uint32_t ORGANIZATIONAL_UNIT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OrganizationalUnitNotFoundException"); +static constexpr uint32_t HANDSHAKE_CONSTRAINT_VIOLATION_HASH = ConstExprHashingUtils::HashString("HandshakeConstraintViolationException"); +static constexpr uint32_t ACCOUNT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AccountNotFoundException"); +static constexpr uint32_t DUPLICATE_ORGANIZATIONAL_UNIT_HASH = ConstExprHashingUtils::HashString("DuplicateOrganizationalUnitException"); +static constexpr uint32_t RESOURCE_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ResourcePolicyNotFoundException"); +static constexpr uint32_t POLICY_TYPE_ALREADY_ENABLED_HASH = ConstExprHashingUtils::HashString("PolicyTypeAlreadyEnabledException"); +static constexpr uint32_t DUPLICATE_HANDSHAKE_HASH = ConstExprHashingUtils::HashString("DuplicateHandshakeException"); +static constexpr uint32_t TARGET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TargetNotFoundException"); +static constexpr uint32_t ORGANIZATIONAL_UNIT_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("OrganizationalUnitNotEmptyException"); +static constexpr uint32_t INVALID_HANDSHAKE_TRANSITION_HASH = ConstExprHashingUtils::HashString("InvalidHandshakeTransitionException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t ORGANIZATION_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("OrganizationNotEmptyException"); +static constexpr uint32_t ACCOUNT_NOT_REGISTERED_HASH = ConstExprHashingUtils::HashString("AccountNotRegisteredException"); +static constexpr uint32_t ACCOUNT_ALREADY_REGISTERED_HASH = ConstExprHashingUtils::HashString("AccountAlreadyRegisteredException"); +static constexpr uint32_t POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PolicyNotFoundException"); +static constexpr uint32_t CREATE_ACCOUNT_STATUS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CreateAccountStatusNotFoundException"); +static constexpr uint32_t EFFECTIVE_POLICY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EffectivePolicyNotFoundException"); +static constexpr uint32_t SOURCE_PARENT_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SourceParentNotFoundException"); +static constexpr uint32_t ACCESS_DENIED_FOR_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("AccessDeniedForDependencyException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t DUPLICATE_POLICY_HASH = ConstExprHashingUtils::HashString("DuplicatePolicyException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t POLICY_IN_USE_HASH = ConstExprHashingUtils::HashString("PolicyInUseException"); +static constexpr uint32_t POLICY_NOT_ATTACHED_HASH = ConstExprHashingUtils::HashString("PolicyNotAttachedException"); +static constexpr uint32_t ACCOUNT_ALREADY_CLOSED_HASH = ConstExprHashingUtils::HashString("AccountAlreadyClosedException"); +static constexpr uint32_t ALREADY_IN_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("AlreadyInOrganizationException"); +static constexpr uint32_t ACCOUNT_OWNER_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("AccountOwnerNotVerifiedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == UNSUPPORTED_A_P_I_ENDPOINT_HASH) { diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/AccessDeniedForDependencyExceptionReason.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/AccessDeniedForDependencyExceptionReason.cpp index 05f856a01a6..38f10608ca7 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/AccessDeniedForDependencyExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/AccessDeniedForDependencyExceptionReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AccessDeniedForDependencyExceptionReasonMapper { - static const int ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE_HASH = HashingUtils::HashString("ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE"); + static constexpr uint32_t ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE"); AccessDeniedForDependencyExceptionReason GetAccessDeniedForDependencyExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE_HASH) { return AccessDeniedForDependencyExceptionReason::ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/AccountJoinedMethod.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/AccountJoinedMethod.cpp index 1ae08060bd7..8310721ce57 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/AccountJoinedMethod.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/AccountJoinedMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccountJoinedMethodMapper { - static const int INVITED_HASH = HashingUtils::HashString("INVITED"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); + static constexpr uint32_t INVITED_HASH = ConstExprHashingUtils::HashString("INVITED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); AccountJoinedMethod GetAccountJoinedMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVITED_HASH) { return AccountJoinedMethod::INVITED; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/AccountStatus.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/AccountStatus.cpp index 9f05580b1d8..c2259831a7d 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/AccountStatus.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/AccountStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccountStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int PENDING_CLOSURE_HASH = HashingUtils::HashString("PENDING_CLOSURE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t PENDING_CLOSURE_HASH = ConstExprHashingUtils::HashString("PENDING_CLOSURE"); AccountStatus GetAccountStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AccountStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/ActionType.cpp index a9ec359facb..bf1f15e36e9 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/ActionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActionTypeMapper { - static const int INVITE_HASH = HashingUtils::HashString("INVITE"); - static const int ENABLE_ALL_FEATURES_HASH = HashingUtils::HashString("ENABLE_ALL_FEATURES"); - static const int APPROVE_ALL_FEATURES_HASH = HashingUtils::HashString("APPROVE_ALL_FEATURES"); - static const int ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE_HASH = HashingUtils::HashString("ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"); + static constexpr uint32_t INVITE_HASH = ConstExprHashingUtils::HashString("INVITE"); + static constexpr uint32_t ENABLE_ALL_FEATURES_HASH = ConstExprHashingUtils::HashString("ENABLE_ALL_FEATURES"); + static constexpr uint32_t APPROVE_ALL_FEATURES_HASH = ConstExprHashingUtils::HashString("APPROVE_ALL_FEATURES"); + static constexpr uint32_t ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE_HASH = ConstExprHashingUtils::HashString("ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVITE_HASH) { return ActionType::INVITE; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/ChildType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/ChildType.cpp index b9694586345..a818de404b9 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/ChildType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/ChildType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChildTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATIONAL_UNIT_HASH = HashingUtils::HashString("ORGANIZATIONAL_UNIT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATIONAL_UNIT_HASH = ConstExprHashingUtils::HashString("ORGANIZATIONAL_UNIT"); ChildType GetChildTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return ChildType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/ConstraintViolationExceptionReason.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/ConstraintViolationExceptionReason.cpp index 40f53501a35..cfa25553a89 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/ConstraintViolationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/ConstraintViolationExceptionReason.cpp @@ -20,45 +20,45 @@ namespace Aws namespace ConstraintViolationExceptionReasonMapper { - static const int ACCOUNT_NUMBER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ACCOUNT_NUMBER_LIMIT_EXCEEDED"); - static const int HANDSHAKE_RATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("HANDSHAKE_RATE_LIMIT_EXCEEDED"); - static const int OU_NUMBER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OU_NUMBER_LIMIT_EXCEEDED"); - static const int OU_DEPTH_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OU_DEPTH_LIMIT_EXCEEDED"); - static const int POLICY_NUMBER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("POLICY_NUMBER_LIMIT_EXCEEDED"); - static const int POLICY_CONTENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("POLICY_CONTENT_LIMIT_EXCEEDED"); - static const int MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED"); - static const int MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED"); - static const int ACCOUNT_CANNOT_LEAVE_ORGANIZATION_HASH = HashingUtils::HashString("ACCOUNT_CANNOT_LEAVE_ORGANIZATION"); - static const int ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA_HASH = HashingUtils::HashString("ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA"); - static const int ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION_HASH = HashingUtils::HashString("ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION"); - static const int MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED_HASH = HashingUtils::HashString("MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED"); - static const int MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED_HASH = HashingUtils::HashString("MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED"); - static const int ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED"); - static const int MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE_HASH = HashingUtils::HashString("MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE"); - static const int MASTER_ACCOUNT_MISSING_CONTACT_INFO_HASH = HashingUtils::HashString("MASTER_ACCOUNT_MISSING_CONTACT_INFO"); - static const int MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED_HASH = HashingUtils::HashString("MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED"); - static const int ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = HashingUtils::HashString("ORGANIZATION_NOT_IN_ALL_FEATURES_MODE"); - static const int CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION_HASH = HashingUtils::HashString("CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION"); - static const int EMAIL_VERIFICATION_CODE_EXPIRED_HASH = HashingUtils::HashString("EMAIL_VERIFICATION_CODE_EXPIRED"); - static const int WAIT_PERIOD_ACTIVE_HASH = HashingUtils::HashString("WAIT_PERIOD_ACTIVE"); - static const int MAX_TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("MAX_TAG_LIMIT_EXCEEDED"); - static const int TAG_POLICY_VIOLATION_HASH = HashingUtils::HashString("TAG_POLICY_VIOLATION"); - static const int MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED"); - static const int CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR_HASH = HashingUtils::HashString("CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR"); - static const int CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG_HASH = HashingUtils::HashString("CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG"); - static const int DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE_HASH = HashingUtils::HashString("DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"); - static const int MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE_HASH = HashingUtils::HashString("MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE"); - static const int CANNOT_CLOSE_MANAGEMENT_ACCOUNT_HASH = HashingUtils::HashString("CANNOT_CLOSE_MANAGEMENT_ACCOUNT"); - static const int CLOSE_ACCOUNT_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("CLOSE_ACCOUNT_QUOTA_EXCEEDED"); - static const int CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED"); - static const int SERVICE_ACCESS_NOT_ENABLED_HASH = HashingUtils::HashString("SERVICE_ACCESS_NOT_ENABLED"); - static const int INVALID_PAYMENT_INSTRUMENT_HASH = HashingUtils::HashString("INVALID_PAYMENT_INSTRUMENT"); - static const int ACCOUNT_CREATION_NOT_COMPLETE_HASH = HashingUtils::HashString("ACCOUNT_CREATION_NOT_COMPLETE"); + static constexpr uint32_t ACCOUNT_NUMBER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_NUMBER_LIMIT_EXCEEDED"); + static constexpr uint32_t HANDSHAKE_RATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("HANDSHAKE_RATE_LIMIT_EXCEEDED"); + static constexpr uint32_t OU_NUMBER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OU_NUMBER_LIMIT_EXCEEDED"); + static constexpr uint32_t OU_DEPTH_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OU_DEPTH_LIMIT_EXCEEDED"); + static constexpr uint32_t POLICY_NUMBER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("POLICY_NUMBER_LIMIT_EXCEEDED"); + static constexpr uint32_t POLICY_CONTENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("POLICY_CONTENT_LIMIT_EXCEEDED"); + static constexpr uint32_t MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED"); + static constexpr uint32_t MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED"); + static constexpr uint32_t ACCOUNT_CANNOT_LEAVE_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ACCOUNT_CANNOT_LEAVE_ORGANIZATION"); + static constexpr uint32_t ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA_HASH = ConstExprHashingUtils::HashString("ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA"); + static constexpr uint32_t ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION_HASH = ConstExprHashingUtils::HashString("ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION"); + static constexpr uint32_t MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED"); + static constexpr uint32_t MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED"); + static constexpr uint32_t ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED"); + static constexpr uint32_t MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE_HASH = ConstExprHashingUtils::HashString("MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE"); + static constexpr uint32_t MASTER_ACCOUNT_MISSING_CONTACT_INFO_HASH = ConstExprHashingUtils::HashString("MASTER_ACCOUNT_MISSING_CONTACT_INFO"); + static constexpr uint32_t MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED_HASH = ConstExprHashingUtils::HashString("MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED"); + static constexpr uint32_t ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_NOT_IN_ALL_FEATURES_MODE"); + static constexpr uint32_t CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION_HASH = ConstExprHashingUtils::HashString("CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION"); + static constexpr uint32_t EMAIL_VERIFICATION_CODE_EXPIRED_HASH = ConstExprHashingUtils::HashString("EMAIL_VERIFICATION_CODE_EXPIRED"); + static constexpr uint32_t WAIT_PERIOD_ACTIVE_HASH = ConstExprHashingUtils::HashString("WAIT_PERIOD_ACTIVE"); + static constexpr uint32_t MAX_TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_TAG_LIMIT_EXCEEDED"); + static constexpr uint32_t TAG_POLICY_VIOLATION_HASH = ConstExprHashingUtils::HashString("TAG_POLICY_VIOLATION"); + static constexpr uint32_t MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED"); + static constexpr uint32_t CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR_HASH = ConstExprHashingUtils::HashString("CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR"); + static constexpr uint32_t CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG_HASH = ConstExprHashingUtils::HashString("CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG"); + static constexpr uint32_t DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE_HASH = ConstExprHashingUtils::HashString("DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"); + static constexpr uint32_t MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE_HASH = ConstExprHashingUtils::HashString("MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE"); + static constexpr uint32_t CANNOT_CLOSE_MANAGEMENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("CANNOT_CLOSE_MANAGEMENT_ACCOUNT"); + static constexpr uint32_t CLOSE_ACCOUNT_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CLOSE_ACCOUNT_QUOTA_EXCEEDED"); + static constexpr uint32_t CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED"); + static constexpr uint32_t SERVICE_ACCESS_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("SERVICE_ACCESS_NOT_ENABLED"); + static constexpr uint32_t INVALID_PAYMENT_INSTRUMENT_HASH = ConstExprHashingUtils::HashString("INVALID_PAYMENT_INSTRUMENT"); + static constexpr uint32_t ACCOUNT_CREATION_NOT_COMPLETE_HASH = ConstExprHashingUtils::HashString("ACCOUNT_CREATION_NOT_COMPLETE"); ConstraintViolationExceptionReason GetConstraintViolationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_NUMBER_LIMIT_EXCEEDED_HASH) { return ConstraintViolationExceptionReason::ACCOUNT_NUMBER_LIMIT_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountFailureReason.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountFailureReason.cpp index a58425754b3..e2c13aaca09 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountFailureReason.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountFailureReason.cpp @@ -20,26 +20,26 @@ namespace Aws namespace CreateAccountFailureReasonMapper { - static const int ACCOUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ACCOUNT_LIMIT_EXCEEDED"); - static const int EMAIL_ALREADY_EXISTS_HASH = HashingUtils::HashString("EMAIL_ALREADY_EXISTS"); - static const int INVALID_ADDRESS_HASH = HashingUtils::HashString("INVALID_ADDRESS"); - static const int INVALID_EMAIL_HASH = HashingUtils::HashString("INVALID_EMAIL"); - static const int CONCURRENT_ACCOUNT_MODIFICATION_HASH = HashingUtils::HashString("CONCURRENT_ACCOUNT_MODIFICATION"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int GOVCLOUD_ACCOUNT_ALREADY_EXISTS_HASH = HashingUtils::HashString("GOVCLOUD_ACCOUNT_ALREADY_EXISTS"); - static const int MISSING_BUSINESS_VALIDATION_HASH = HashingUtils::HashString("MISSING_BUSINESS_VALIDATION"); - static const int FAILED_BUSINESS_VALIDATION_HASH = HashingUtils::HashString("FAILED_BUSINESS_VALIDATION"); - static const int PENDING_BUSINESS_VALIDATION_HASH = HashingUtils::HashString("PENDING_BUSINESS_VALIDATION"); - static const int INVALID_IDENTITY_FOR_BUSINESS_VALIDATION_HASH = HashingUtils::HashString("INVALID_IDENTITY_FOR_BUSINESS_VALIDATION"); - static const int UNKNOWN_BUSINESS_VALIDATION_HASH = HashingUtils::HashString("UNKNOWN_BUSINESS_VALIDATION"); - static const int MISSING_PAYMENT_INSTRUMENT_HASH = HashingUtils::HashString("MISSING_PAYMENT_INSTRUMENT"); - static const int INVALID_PAYMENT_INSTRUMENT_HASH = HashingUtils::HashString("INVALID_PAYMENT_INSTRUMENT"); - static const int UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED_HASH = HashingUtils::HashString("UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"); + static constexpr uint32_t ACCOUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_LIMIT_EXCEEDED"); + static constexpr uint32_t EMAIL_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EMAIL_ALREADY_EXISTS"); + static constexpr uint32_t INVALID_ADDRESS_HASH = ConstExprHashingUtils::HashString("INVALID_ADDRESS"); + static constexpr uint32_t INVALID_EMAIL_HASH = ConstExprHashingUtils::HashString("INVALID_EMAIL"); + static constexpr uint32_t CONCURRENT_ACCOUNT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("CONCURRENT_ACCOUNT_MODIFICATION"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t GOVCLOUD_ACCOUNT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("GOVCLOUD_ACCOUNT_ALREADY_EXISTS"); + static constexpr uint32_t MISSING_BUSINESS_VALIDATION_HASH = ConstExprHashingUtils::HashString("MISSING_BUSINESS_VALIDATION"); + static constexpr uint32_t FAILED_BUSINESS_VALIDATION_HASH = ConstExprHashingUtils::HashString("FAILED_BUSINESS_VALIDATION"); + static constexpr uint32_t PENDING_BUSINESS_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_BUSINESS_VALIDATION"); + static constexpr uint32_t INVALID_IDENTITY_FOR_BUSINESS_VALIDATION_HASH = ConstExprHashingUtils::HashString("INVALID_IDENTITY_FOR_BUSINESS_VALIDATION"); + static constexpr uint32_t UNKNOWN_BUSINESS_VALIDATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_BUSINESS_VALIDATION"); + static constexpr uint32_t MISSING_PAYMENT_INSTRUMENT_HASH = ConstExprHashingUtils::HashString("MISSING_PAYMENT_INSTRUMENT"); + static constexpr uint32_t INVALID_PAYMENT_INSTRUMENT_HASH = ConstExprHashingUtils::HashString("INVALID_PAYMENT_INSTRUMENT"); + static constexpr uint32_t UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"); CreateAccountFailureReason GetCreateAccountFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_LIMIT_EXCEEDED_HASH) { return CreateAccountFailureReason::ACCOUNT_LIMIT_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountState.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountState.cpp index 5d82e7402ad..34fd2ee4ffe 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountState.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/CreateAccountState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CreateAccountStateMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CreateAccountState GetCreateAccountStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return CreateAccountState::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp index fbdcc7a81e9..bdc3504f3d6 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EffectivePolicyTypeMapper { - static const int TAG_POLICY_HASH = HashingUtils::HashString("TAG_POLICY"); - static const int BACKUP_POLICY_HASH = HashingUtils::HashString("BACKUP_POLICY"); - static const int AISERVICES_OPT_OUT_POLICY_HASH = HashingUtils::HashString("AISERVICES_OPT_OUT_POLICY"); + static constexpr uint32_t TAG_POLICY_HASH = ConstExprHashingUtils::HashString("TAG_POLICY"); + static constexpr uint32_t BACKUP_POLICY_HASH = ConstExprHashingUtils::HashString("BACKUP_POLICY"); + static constexpr uint32_t AISERVICES_OPT_OUT_POLICY_HASH = ConstExprHashingUtils::HashString("AISERVICES_OPT_OUT_POLICY"); EffectivePolicyType GetEffectivePolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAG_POLICY_HASH) { return EffectivePolicyType::TAG_POLICY; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeConstraintViolationExceptionReason.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeConstraintViolationExceptionReason.cpp index 072158ac03e..d57e875b59c 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeConstraintViolationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeConstraintViolationExceptionReason.cpp @@ -20,21 +20,21 @@ namespace Aws namespace HandshakeConstraintViolationExceptionReasonMapper { - static const int ACCOUNT_NUMBER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ACCOUNT_NUMBER_LIMIT_EXCEEDED"); - static const int HANDSHAKE_RATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("HANDSHAKE_RATE_LIMIT_EXCEEDED"); - static const int ALREADY_IN_AN_ORGANIZATION_HASH = HashingUtils::HashString("ALREADY_IN_AN_ORGANIZATION"); - static const int ORGANIZATION_ALREADY_HAS_ALL_FEATURES_HASH = HashingUtils::HashString("ORGANIZATION_ALREADY_HAS_ALL_FEATURES"); - static const int ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION_HASH = HashingUtils::HashString("ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION"); - static const int INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES_HASH = HashingUtils::HashString("INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES"); - static const int PAYMENT_INSTRUMENT_REQUIRED_HASH = HashingUtils::HashString("PAYMENT_INSTRUMENT_REQUIRED"); - static const int ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD_HASH = HashingUtils::HashString("ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD"); - static const int ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED"); - static const int MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED_HASH = HashingUtils::HashString("MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED"); + static constexpr uint32_t ACCOUNT_NUMBER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_NUMBER_LIMIT_EXCEEDED"); + static constexpr uint32_t HANDSHAKE_RATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("HANDSHAKE_RATE_LIMIT_EXCEEDED"); + static constexpr uint32_t ALREADY_IN_AN_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ALREADY_IN_AN_ORGANIZATION"); + static constexpr uint32_t ORGANIZATION_ALREADY_HAS_ALL_FEATURES_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_ALREADY_HAS_ALL_FEATURES"); + static constexpr uint32_t ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION"); + static constexpr uint32_t INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES_HASH = ConstExprHashingUtils::HashString("INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES"); + static constexpr uint32_t PAYMENT_INSTRUMENT_REQUIRED_HASH = ConstExprHashingUtils::HashString("PAYMENT_INSTRUMENT_REQUIRED"); + static constexpr uint32_t ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD"); + static constexpr uint32_t ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED"); + static constexpr uint32_t MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED"); HandshakeConstraintViolationExceptionReason GetHandshakeConstraintViolationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_NUMBER_LIMIT_EXCEEDED_HASH) { return HandshakeConstraintViolationExceptionReason::ACCOUNT_NUMBER_LIMIT_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakePartyType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakePartyType.cpp index ea3c788bf2b..fe33bacb6bb 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakePartyType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakePartyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HandshakePartyTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); HandshakePartyType GetHandshakePartyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return HandshakePartyType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeResourceType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeResourceType.cpp index e38ce398e68..47ed322e85e 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeResourceType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeResourceType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace HandshakeResourceTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); - static const int ORGANIZATION_FEATURE_SET_HASH = HashingUtils::HashString("ORGANIZATION_FEATURE_SET"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int MASTER_EMAIL_HASH = HashingUtils::HashString("MASTER_EMAIL"); - static const int MASTER_NAME_HASH = HashingUtils::HashString("MASTER_NAME"); - static const int NOTES_HASH = HashingUtils::HashString("NOTES"); - static const int PARENT_HANDSHAKE_HASH = HashingUtils::HashString("PARENT_HANDSHAKE"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t ORGANIZATION_FEATURE_SET_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_FEATURE_SET"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t MASTER_EMAIL_HASH = ConstExprHashingUtils::HashString("MASTER_EMAIL"); + static constexpr uint32_t MASTER_NAME_HASH = ConstExprHashingUtils::HashString("MASTER_NAME"); + static constexpr uint32_t NOTES_HASH = ConstExprHashingUtils::HashString("NOTES"); + static constexpr uint32_t PARENT_HANDSHAKE_HASH = ConstExprHashingUtils::HashString("PARENT_HANDSHAKE"); HandshakeResourceType GetHandshakeResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return HandshakeResourceType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeState.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeState.cpp index 0f2555617f9..5a24f2ee001 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeState.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/HandshakeState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace HandshakeStateMapper { - static const int REQUESTED_HASH = HashingUtils::HashString("REQUESTED"); - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); - static const int DECLINED_HASH = HashingUtils::HashString("DECLINED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t REQUESTED_HASH = ConstExprHashingUtils::HashString("REQUESTED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t ACCEPTED_HASH = ConstExprHashingUtils::HashString("ACCEPTED"); + static constexpr uint32_t DECLINED_HASH = ConstExprHashingUtils::HashString("DECLINED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); HandshakeState GetHandshakeStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUESTED_HASH) { return HandshakeState::REQUESTED; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/IAMUserAccessToBilling.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/IAMUserAccessToBilling.cpp index 6bcf45fbf10..ff117d6f19c 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/IAMUserAccessToBilling.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/IAMUserAccessToBilling.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IAMUserAccessToBillingMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); IAMUserAccessToBilling GetIAMUserAccessToBillingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return IAMUserAccessToBilling::ALLOW; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/InvalidInputExceptionReason.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/InvalidInputExceptionReason.cpp index cf4e4fe5331..bfae1d5332e 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/InvalidInputExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/InvalidInputExceptionReason.cpp @@ -20,39 +20,39 @@ namespace Aws namespace InvalidInputExceptionReasonMapper { - static const int INVALID_PARTY_TYPE_TARGET_HASH = HashingUtils::HashString("INVALID_PARTY_TYPE_TARGET"); - static const int INVALID_SYNTAX_ORGANIZATION_ARN_HASH = HashingUtils::HashString("INVALID_SYNTAX_ORGANIZATION_ARN"); - static const int INVALID_SYNTAX_POLICY_ID_HASH = HashingUtils::HashString("INVALID_SYNTAX_POLICY_ID"); - static const int INVALID_ENUM_HASH = HashingUtils::HashString("INVALID_ENUM"); - static const int INVALID_ENUM_POLICY_TYPE_HASH = HashingUtils::HashString("INVALID_ENUM_POLICY_TYPE"); - static const int INVALID_LIST_MEMBER_HASH = HashingUtils::HashString("INVALID_LIST_MEMBER"); - static const int MAX_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("MAX_LENGTH_EXCEEDED"); - static const int MAX_VALUE_EXCEEDED_HASH = HashingUtils::HashString("MAX_VALUE_EXCEEDED"); - static const int MIN_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("MIN_LENGTH_EXCEEDED"); - static const int MIN_VALUE_EXCEEDED_HASH = HashingUtils::HashString("MIN_VALUE_EXCEEDED"); - static const int IMMUTABLE_POLICY_HASH = HashingUtils::HashString("IMMUTABLE_POLICY"); - static const int INVALID_PATTERN_HASH = HashingUtils::HashString("INVALID_PATTERN"); - static const int INVALID_PATTERN_TARGET_ID_HASH = HashingUtils::HashString("INVALID_PATTERN_TARGET_ID"); - static const int INPUT_REQUIRED_HASH = HashingUtils::HashString("INPUT_REQUIRED"); - static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("INVALID_NEXT_TOKEN"); - static const int MAX_LIMIT_EXCEEDED_FILTER_HASH = HashingUtils::HashString("MAX_LIMIT_EXCEEDED_FILTER"); - static const int MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS_HASH = HashingUtils::HashString("MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS"); - static const int INVALID_FULL_NAME_TARGET_HASH = HashingUtils::HashString("INVALID_FULL_NAME_TARGET"); - static const int UNRECOGNIZED_SERVICE_PRINCIPAL_HASH = HashingUtils::HashString("UNRECOGNIZED_SERVICE_PRINCIPAL"); - static const int INVALID_ROLE_NAME_HASH = HashingUtils::HashString("INVALID_ROLE_NAME"); - static const int INVALID_SYSTEM_TAGS_PARAMETER_HASH = HashingUtils::HashString("INVALID_SYSTEM_TAGS_PARAMETER"); - static const int DUPLICATE_TAG_KEY_HASH = HashingUtils::HashString("DUPLICATE_TAG_KEY"); - static const int TARGET_NOT_SUPPORTED_HASH = HashingUtils::HashString("TARGET_NOT_SUPPORTED"); - static const int INVALID_EMAIL_ADDRESS_TARGET_HASH = HashingUtils::HashString("INVALID_EMAIL_ADDRESS_TARGET"); - static const int INVALID_RESOURCE_POLICY_JSON_HASH = HashingUtils::HashString("INVALID_RESOURCE_POLICY_JSON"); - static const int UNSUPPORTED_ACTION_IN_RESOURCE_POLICY_HASH = HashingUtils::HashString("UNSUPPORTED_ACTION_IN_RESOURCE_POLICY"); - static const int UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY_HASH = HashingUtils::HashString("UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY"); - static const int UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY_HASH = HashingUtils::HashString("UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY"); + static constexpr uint32_t INVALID_PARTY_TYPE_TARGET_HASH = ConstExprHashingUtils::HashString("INVALID_PARTY_TYPE_TARGET"); + static constexpr uint32_t INVALID_SYNTAX_ORGANIZATION_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_SYNTAX_ORGANIZATION_ARN"); + static constexpr uint32_t INVALID_SYNTAX_POLICY_ID_HASH = ConstExprHashingUtils::HashString("INVALID_SYNTAX_POLICY_ID"); + static constexpr uint32_t INVALID_ENUM_HASH = ConstExprHashingUtils::HashString("INVALID_ENUM"); + static constexpr uint32_t INVALID_ENUM_POLICY_TYPE_HASH = ConstExprHashingUtils::HashString("INVALID_ENUM_POLICY_TYPE"); + static constexpr uint32_t INVALID_LIST_MEMBER_HASH = ConstExprHashingUtils::HashString("INVALID_LIST_MEMBER"); + static constexpr uint32_t MAX_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_LENGTH_EXCEEDED"); + static constexpr uint32_t MAX_VALUE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MAX_VALUE_EXCEEDED"); + static constexpr uint32_t MIN_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MIN_LENGTH_EXCEEDED"); + static constexpr uint32_t MIN_VALUE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MIN_VALUE_EXCEEDED"); + static constexpr uint32_t IMMUTABLE_POLICY_HASH = ConstExprHashingUtils::HashString("IMMUTABLE_POLICY"); + static constexpr uint32_t INVALID_PATTERN_HASH = ConstExprHashingUtils::HashString("INVALID_PATTERN"); + static constexpr uint32_t INVALID_PATTERN_TARGET_ID_HASH = ConstExprHashingUtils::HashString("INVALID_PATTERN_TARGET_ID"); + static constexpr uint32_t INPUT_REQUIRED_HASH = ConstExprHashingUtils::HashString("INPUT_REQUIRED"); + static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_NEXT_TOKEN"); + static constexpr uint32_t MAX_LIMIT_EXCEEDED_FILTER_HASH = ConstExprHashingUtils::HashString("MAX_LIMIT_EXCEEDED_FILTER"); + static constexpr uint32_t MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS_HASH = ConstExprHashingUtils::HashString("MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS"); + static constexpr uint32_t INVALID_FULL_NAME_TARGET_HASH = ConstExprHashingUtils::HashString("INVALID_FULL_NAME_TARGET"); + static constexpr uint32_t UNRECOGNIZED_SERVICE_PRINCIPAL_HASH = ConstExprHashingUtils::HashString("UNRECOGNIZED_SERVICE_PRINCIPAL"); + static constexpr uint32_t INVALID_ROLE_NAME_HASH = ConstExprHashingUtils::HashString("INVALID_ROLE_NAME"); + static constexpr uint32_t INVALID_SYSTEM_TAGS_PARAMETER_HASH = ConstExprHashingUtils::HashString("INVALID_SYSTEM_TAGS_PARAMETER"); + static constexpr uint32_t DUPLICATE_TAG_KEY_HASH = ConstExprHashingUtils::HashString("DUPLICATE_TAG_KEY"); + static constexpr uint32_t TARGET_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("TARGET_NOT_SUPPORTED"); + static constexpr uint32_t INVALID_EMAIL_ADDRESS_TARGET_HASH = ConstExprHashingUtils::HashString("INVALID_EMAIL_ADDRESS_TARGET"); + static constexpr uint32_t INVALID_RESOURCE_POLICY_JSON_HASH = ConstExprHashingUtils::HashString("INVALID_RESOURCE_POLICY_JSON"); + static constexpr uint32_t UNSUPPORTED_ACTION_IN_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_ACTION_IN_RESOURCE_POLICY"); + static constexpr uint32_t UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY"); + static constexpr uint32_t UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY"); InvalidInputExceptionReason GetInvalidInputExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_PARTY_TYPE_TARGET_HASH) { return InvalidInputExceptionReason::INVALID_PARTY_TYPE_TARGET; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/OrganizationFeatureSet.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/OrganizationFeatureSet.cpp index 4f18518c412..02e79dcf9d5 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/OrganizationFeatureSet.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/OrganizationFeatureSet.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrganizationFeatureSetMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int CONSOLIDATED_BILLING_HASH = HashingUtils::HashString("CONSOLIDATED_BILLING"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t CONSOLIDATED_BILLING_HASH = ConstExprHashingUtils::HashString("CONSOLIDATED_BILLING"); OrganizationFeatureSet GetOrganizationFeatureSetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return OrganizationFeatureSet::ALL; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/ParentType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/ParentType.cpp index d0c17c181ce..375fee6dc7b 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/ParentType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/ParentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParentTypeMapper { - static const int ROOT_HASH = HashingUtils::HashString("ROOT"); - static const int ORGANIZATIONAL_UNIT_HASH = HashingUtils::HashString("ORGANIZATIONAL_UNIT"); + static constexpr uint32_t ROOT_HASH = ConstExprHashingUtils::HashString("ROOT"); + static constexpr uint32_t ORGANIZATIONAL_UNIT_HASH = ConstExprHashingUtils::HashString("ORGANIZATIONAL_UNIT"); ParentType GetParentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROOT_HASH) { return ParentType::ROOT; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp index b03efedc5c8..67b6a4c6ff9 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PolicyTypeMapper { - static const int SERVICE_CONTROL_POLICY_HASH = HashingUtils::HashString("SERVICE_CONTROL_POLICY"); - static const int TAG_POLICY_HASH = HashingUtils::HashString("TAG_POLICY"); - static const int BACKUP_POLICY_HASH = HashingUtils::HashString("BACKUP_POLICY"); - static const int AISERVICES_OPT_OUT_POLICY_HASH = HashingUtils::HashString("AISERVICES_OPT_OUT_POLICY"); + static constexpr uint32_t SERVICE_CONTROL_POLICY_HASH = ConstExprHashingUtils::HashString("SERVICE_CONTROL_POLICY"); + static constexpr uint32_t TAG_POLICY_HASH = ConstExprHashingUtils::HashString("TAG_POLICY"); + static constexpr uint32_t BACKUP_POLICY_HASH = ConstExprHashingUtils::HashString("BACKUP_POLICY"); + static constexpr uint32_t AISERVICES_OPT_OUT_POLICY_HASH = ConstExprHashingUtils::HashString("AISERVICES_OPT_OUT_POLICY"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_CONTROL_POLICY_HASH) { return PolicyType::SERVICE_CONTROL_POLICY; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/PolicyTypeStatus.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/PolicyTypeStatus.cpp index 45002ac2c3a..56c12cc9a80 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/PolicyTypeStatus.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/PolicyTypeStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PolicyTypeStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int PENDING_ENABLE_HASH = HashingUtils::HashString("PENDING_ENABLE"); - static const int PENDING_DISABLE_HASH = HashingUtils::HashString("PENDING_DISABLE"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t PENDING_ENABLE_HASH = ConstExprHashingUtils::HashString("PENDING_ENABLE"); + static constexpr uint32_t PENDING_DISABLE_HASH = ConstExprHashingUtils::HashString("PENDING_DISABLE"); PolicyTypeStatus GetPolicyTypeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return PolicyTypeStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/TargetType.cpp index 2bb465c0fc7..bfe085db4ea 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/TargetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATIONAL_UNIT_HASH = HashingUtils::HashString("ORGANIZATIONAL_UNIT"); - static const int ROOT_HASH = HashingUtils::HashString("ROOT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATIONAL_UNIT_HASH = ConstExprHashingUtils::HashString("ORGANIZATIONAL_UNIT"); + static constexpr uint32_t ROOT_HASH = ConstExprHashingUtils::HashString("ROOT"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return TargetType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp b/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp index 23a9247967c..0112d8fe9b9 100644 --- a/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp @@ -18,16 +18,16 @@ namespace OSIS namespace OSISErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStageStatuses.cpp b/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStageStatuses.cpp index 87129057fe5..83d2c0dc7ed 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStageStatuses.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStageStatuses.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChangeProgressStageStatusesMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ChangeProgressStageStatuses GetChangeProgressStageStatusesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ChangeProgressStageStatuses::PENDING; diff --git a/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStatuses.cpp b/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStatuses.cpp index 8b3182fb2de..c42e8e7f2f9 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStatuses.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/ChangeProgressStatuses.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChangeProgressStatusesMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ChangeProgressStatuses GetChangeProgressStatusesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ChangeProgressStatuses::PENDING; diff --git a/generated/src/aws-cpp-sdk-osis/source/model/PipelineStatus.cpp b/generated/src/aws-cpp-sdk-osis/source/model/PipelineStatus.cpp index 118f73408c8..347c9926110 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/PipelineStatus.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/PipelineStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace PipelineStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int START_FAILED_HASH = HashingUtils::HashString("START_FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t START_FAILED_HASH = ConstExprHashingUtils::HashString("START_FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); PipelineStatus GetPipelineStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return PipelineStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-outposts/source/OutpostsErrors.cpp b/generated/src/aws-cpp-sdk-outposts/source/OutpostsErrors.cpp index da57fbbbe63..0b2a37c164f 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/OutpostsErrors.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/OutpostsErrors.cpp @@ -26,15 +26,15 @@ template<> AWS_OUTPOSTS_API ConflictException OutpostsError::GetModeledError() namespace OutpostsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/AddressType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/AddressType.cpp index bb4abed3b5e..fd2024ba38d 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/AddressType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/AddressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AddressTypeMapper { - static const int SHIPPING_ADDRESS_HASH = HashingUtils::HashString("SHIPPING_ADDRESS"); - static const int OPERATING_ADDRESS_HASH = HashingUtils::HashString("OPERATING_ADDRESS"); + static constexpr uint32_t SHIPPING_ADDRESS_HASH = ConstExprHashingUtils::HashString("SHIPPING_ADDRESS"); + static constexpr uint32_t OPERATING_ADDRESS_HASH = ConstExprHashingUtils::HashString("OPERATING_ADDRESS"); AddressType GetAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHIPPING_ADDRESS_HASH) { return AddressType::SHIPPING_ADDRESS; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/AssetState.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/AssetState.cpp index c53c4554ae7..ee1f9dd1a8d 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/AssetState.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/AssetState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssetStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int RETIRING_HASH = HashingUtils::HashString("RETIRING"); - static const int ISOLATED_HASH = HashingUtils::HashString("ISOLATED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t RETIRING_HASH = ConstExprHashingUtils::HashString("RETIRING"); + static constexpr uint32_t ISOLATED_HASH = ConstExprHashingUtils::HashString("ISOLATED"); AssetState GetAssetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AssetState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/AssetType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/AssetType.cpp index 79b9ca7bca1..ee470c48551 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/AssetType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/AssetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetTypeMapper { - static const int COMPUTE_HASH = HashingUtils::HashString("COMPUTE"); + static constexpr uint32_t COMPUTE_HASH = ConstExprHashingUtils::HashString("COMPUTE"); AssetType GetAssetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPUTE_HASH) { return AssetType::COMPUTE; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemClass.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemClass.cpp index 0ac61e17735..b15335179ea 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemClass.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CatalogItemClassMapper { - static const int RACK_HASH = HashingUtils::HashString("RACK"); - static const int SERVER_HASH = HashingUtils::HashString("SERVER"); + static constexpr uint32_t RACK_HASH = ConstExprHashingUtils::HashString("RACK"); + static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("SERVER"); CatalogItemClass GetCatalogItemClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RACK_HASH) { return CatalogItemClass::RACK; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemStatus.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemStatus.cpp index 22636337205..683cba8e84b 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/CatalogItemStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CatalogItemStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DISCONTINUED_HASH = HashingUtils::HashString("DISCONTINUED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DISCONTINUED_HASH = ConstExprHashingUtils::HashString("DISCONTINUED"); CatalogItemStatus GetCatalogItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return CatalogItemStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAssetState.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAssetState.cpp index 7c41b370e1e..49416753cbc 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAssetState.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAssetState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComputeAssetStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ISOLATED_HASH = HashingUtils::HashString("ISOLATED"); - static const int RETIRING_HASH = HashingUtils::HashString("RETIRING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ISOLATED_HASH = ConstExprHashingUtils::HashString("ISOLATED"); + static constexpr uint32_t RETIRING_HASH = ConstExprHashingUtils::HashString("RETIRING"); ComputeAssetState GetComputeAssetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ComputeAssetState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/FiberOpticCableType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/FiberOpticCableType.cpp index 86c32cf1e57..7fe7c905c94 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/FiberOpticCableType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/FiberOpticCableType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FiberOpticCableTypeMapper { - static const int SINGLE_MODE_HASH = HashingUtils::HashString("SINGLE_MODE"); - static const int MULTI_MODE_HASH = HashingUtils::HashString("MULTI_MODE"); + static constexpr uint32_t SINGLE_MODE_HASH = ConstExprHashingUtils::HashString("SINGLE_MODE"); + static constexpr uint32_t MULTI_MODE_HASH = ConstExprHashingUtils::HashString("MULTI_MODE"); FiberOpticCableType GetFiberOpticCableTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_MODE_HASH) { return FiberOpticCableType::SINGLE_MODE; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/LineItemStatus.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/LineItemStatus.cpp index 7f0923bdeca..8a7f57ef95b 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/LineItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/LineItemStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace LineItemStatusMapper { - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int BUILDING_HASH = HashingUtils::HashString("BUILDING"); - static const int SHIPPED_HASH = HashingUtils::HashString("SHIPPED"); - static const int DELIVERED_HASH = HashingUtils::HashString("DELIVERED"); - static const int INSTALLING_HASH = HashingUtils::HashString("INSTALLING"); - static const int INSTALLED_HASH = HashingUtils::HashString("INSTALLED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int REPLACED_HASH = HashingUtils::HashString("REPLACED"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t BUILDING_HASH = ConstExprHashingUtils::HashString("BUILDING"); + static constexpr uint32_t SHIPPED_HASH = ConstExprHashingUtils::HashString("SHIPPED"); + static constexpr uint32_t DELIVERED_HASH = ConstExprHashingUtils::HashString("DELIVERED"); + static constexpr uint32_t INSTALLING_HASH = ConstExprHashingUtils::HashString("INSTALLING"); + static constexpr uint32_t INSTALLED_HASH = ConstExprHashingUtils::HashString("INSTALLED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t REPLACED_HASH = ConstExprHashingUtils::HashString("REPLACED"); LineItemStatus GetLineItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREPARING_HASH) { return LineItemStatus::PREPARING; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/MaximumSupportedWeightLbs.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/MaximumSupportedWeightLbs.cpp index 58781f02e4d..46f2712129a 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/MaximumSupportedWeightLbs.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/MaximumSupportedWeightLbs.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MaximumSupportedWeightLbsMapper { - static const int NO_LIMIT_HASH = HashingUtils::HashString("NO_LIMIT"); - static const int MAX_1400_LBS_HASH = HashingUtils::HashString("MAX_1400_LBS"); - static const int MAX_1600_LBS_HASH = HashingUtils::HashString("MAX_1600_LBS"); - static const int MAX_1800_LBS_HASH = HashingUtils::HashString("MAX_1800_LBS"); - static const int MAX_2000_LBS_HASH = HashingUtils::HashString("MAX_2000_LBS"); + static constexpr uint32_t NO_LIMIT_HASH = ConstExprHashingUtils::HashString("NO_LIMIT"); + static constexpr uint32_t MAX_1400_LBS_HASH = ConstExprHashingUtils::HashString("MAX_1400_LBS"); + static constexpr uint32_t MAX_1600_LBS_HASH = ConstExprHashingUtils::HashString("MAX_1600_LBS"); + static constexpr uint32_t MAX_1800_LBS_HASH = ConstExprHashingUtils::HashString("MAX_1800_LBS"); + static constexpr uint32_t MAX_2000_LBS_HASH = ConstExprHashingUtils::HashString("MAX_2000_LBS"); MaximumSupportedWeightLbs GetMaximumSupportedWeightLbsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_LIMIT_HASH) { return MaximumSupportedWeightLbs::NO_LIMIT; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/OpticalStandard.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/OpticalStandard.cpp index b27ebdcef43..fc1ef565ebf 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/OpticalStandard.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/OpticalStandard.cpp @@ -20,24 +20,24 @@ namespace Aws namespace OpticalStandardMapper { - static const int OPTIC_10GBASE_SR_HASH = HashingUtils::HashString("OPTIC_10GBASE_SR"); - static const int OPTIC_10GBASE_IR_HASH = HashingUtils::HashString("OPTIC_10GBASE_IR"); - static const int OPTIC_10GBASE_LR_HASH = HashingUtils::HashString("OPTIC_10GBASE_LR"); - static const int OPTIC_40GBASE_SR_HASH = HashingUtils::HashString("OPTIC_40GBASE_SR"); - static const int OPTIC_40GBASE_ESR_HASH = HashingUtils::HashString("OPTIC_40GBASE_ESR"); - static const int OPTIC_40GBASE_IR4_LR4L_HASH = HashingUtils::HashString("OPTIC_40GBASE_IR4_LR4L"); - static const int OPTIC_40GBASE_LR4_HASH = HashingUtils::HashString("OPTIC_40GBASE_LR4"); - static const int OPTIC_100GBASE_SR4_HASH = HashingUtils::HashString("OPTIC_100GBASE_SR4"); - static const int OPTIC_100GBASE_CWDM4_HASH = HashingUtils::HashString("OPTIC_100GBASE_CWDM4"); - static const int OPTIC_100GBASE_LR4_HASH = HashingUtils::HashString("OPTIC_100GBASE_LR4"); - static const int OPTIC_100G_PSM4_MSA_HASH = HashingUtils::HashString("OPTIC_100G_PSM4_MSA"); - static const int OPTIC_1000BASE_LX_HASH = HashingUtils::HashString("OPTIC_1000BASE_LX"); - static const int OPTIC_1000BASE_SX_HASH = HashingUtils::HashString("OPTIC_1000BASE_SX"); + static constexpr uint32_t OPTIC_10GBASE_SR_HASH = ConstExprHashingUtils::HashString("OPTIC_10GBASE_SR"); + static constexpr uint32_t OPTIC_10GBASE_IR_HASH = ConstExprHashingUtils::HashString("OPTIC_10GBASE_IR"); + static constexpr uint32_t OPTIC_10GBASE_LR_HASH = ConstExprHashingUtils::HashString("OPTIC_10GBASE_LR"); + static constexpr uint32_t OPTIC_40GBASE_SR_HASH = ConstExprHashingUtils::HashString("OPTIC_40GBASE_SR"); + static constexpr uint32_t OPTIC_40GBASE_ESR_HASH = ConstExprHashingUtils::HashString("OPTIC_40GBASE_ESR"); + static constexpr uint32_t OPTIC_40GBASE_IR4_LR4L_HASH = ConstExprHashingUtils::HashString("OPTIC_40GBASE_IR4_LR4L"); + static constexpr uint32_t OPTIC_40GBASE_LR4_HASH = ConstExprHashingUtils::HashString("OPTIC_40GBASE_LR4"); + static constexpr uint32_t OPTIC_100GBASE_SR4_HASH = ConstExprHashingUtils::HashString("OPTIC_100GBASE_SR4"); + static constexpr uint32_t OPTIC_100GBASE_CWDM4_HASH = ConstExprHashingUtils::HashString("OPTIC_100GBASE_CWDM4"); + static constexpr uint32_t OPTIC_100GBASE_LR4_HASH = ConstExprHashingUtils::HashString("OPTIC_100GBASE_LR4"); + static constexpr uint32_t OPTIC_100G_PSM4_MSA_HASH = ConstExprHashingUtils::HashString("OPTIC_100G_PSM4_MSA"); + static constexpr uint32_t OPTIC_1000BASE_LX_HASH = ConstExprHashingUtils::HashString("OPTIC_1000BASE_LX"); + static constexpr uint32_t OPTIC_1000BASE_SX_HASH = ConstExprHashingUtils::HashString("OPTIC_1000BASE_SX"); OpticalStandard GetOpticalStandardForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPTIC_10GBASE_SR_HASH) { return OpticalStandard::OPTIC_10GBASE_SR; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/OrderStatus.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/OrderStatus.cpp index 489b2124dab..5b00d729aab 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/OrderStatus.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/OrderStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace OrderStatusMapper { - static const int RECEIVED_HASH = HashingUtils::HashString("RECEIVED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int INSTALLING_HASH = HashingUtils::HashString("INSTALLING"); - static const int FULFILLED_HASH = HashingUtils::HashString("FULFILLED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t RECEIVED_HASH = ConstExprHashingUtils::HashString("RECEIVED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t INSTALLING_HASH = ConstExprHashingUtils::HashString("INSTALLING"); + static constexpr uint32_t FULFILLED_HASH = ConstExprHashingUtils::HashString("FULFILLED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); OrderStatus GetOrderStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECEIVED_HASH) { return OrderStatus::RECEIVED; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/OrderType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/OrderType.cpp index 54387db6c6d..21da357a5c4 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/OrderType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/OrderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderTypeMapper { - static const int OUTPOST_HASH = HashingUtils::HashString("OUTPOST"); - static const int REPLACEMENT_HASH = HashingUtils::HashString("REPLACEMENT"); + static constexpr uint32_t OUTPOST_HASH = ConstExprHashingUtils::HashString("OUTPOST"); + static constexpr uint32_t REPLACEMENT_HASH = ConstExprHashingUtils::HashString("REPLACEMENT"); OrderType GetOrderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OUTPOST_HASH) { return OrderType::OUTPOST; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PaymentOption.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PaymentOption.cpp index 36b5eeb4e8c..4447507f955 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PaymentOption.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PaymentOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PaymentOptionMapper { - static const int ALL_UPFRONT_HASH = HashingUtils::HashString("ALL_UPFRONT"); - static const int NO_UPFRONT_HASH = HashingUtils::HashString("NO_UPFRONT"); - static const int PARTIAL_UPFRONT_HASH = HashingUtils::HashString("PARTIAL_UPFRONT"); + static constexpr uint32_t ALL_UPFRONT_HASH = ConstExprHashingUtils::HashString("ALL_UPFRONT"); + static constexpr uint32_t NO_UPFRONT_HASH = ConstExprHashingUtils::HashString("NO_UPFRONT"); + static constexpr uint32_t PARTIAL_UPFRONT_HASH = ConstExprHashingUtils::HashString("PARTIAL_UPFRONT"); PaymentOption GetPaymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_UPFRONT_HASH) { return PaymentOption::ALL_UPFRONT; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp index 5c7f17bde4e..4cd0de42aaf 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PaymentTermMapper { - static const int THREE_YEARS_HASH = HashingUtils::HashString("THREE_YEARS"); - static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); + static constexpr uint32_t THREE_YEARS_HASH = ConstExprHashingUtils::HashString("THREE_YEARS"); + static constexpr uint32_t ONE_YEAR_HASH = ConstExprHashingUtils::HashString("ONE_YEAR"); PaymentTerm GetPaymentTermForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == THREE_YEARS_HASH) { return PaymentTerm::THREE_YEARS; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PowerConnector.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PowerConnector.cpp index 9806f5acfb2..d0b8232e606 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PowerConnector.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PowerConnector.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PowerConnectorMapper { - static const int L6_30P_HASH = HashingUtils::HashString("L6_30P"); - static const int IEC309_HASH = HashingUtils::HashString("IEC309"); - static const int AH530P7W_HASH = HashingUtils::HashString("AH530P7W"); - static const int AH532P6W_HASH = HashingUtils::HashString("AH532P6W"); + static constexpr uint32_t L6_30P_HASH = ConstExprHashingUtils::HashString("L6_30P"); + static constexpr uint32_t IEC309_HASH = ConstExprHashingUtils::HashString("IEC309"); + static constexpr uint32_t AH530P7W_HASH = ConstExprHashingUtils::HashString("AH530P7W"); + static constexpr uint32_t AH532P6W_HASH = ConstExprHashingUtils::HashString("AH532P6W"); PowerConnector GetPowerConnectorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == L6_30P_HASH) { return PowerConnector::L6_30P; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PowerDrawKva.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PowerDrawKva.cpp index 171e4e4da95..4edc53d98b2 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PowerDrawKva.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PowerDrawKva.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PowerDrawKvaMapper { - static const int POWER_5_KVA_HASH = HashingUtils::HashString("POWER_5_KVA"); - static const int POWER_10_KVA_HASH = HashingUtils::HashString("POWER_10_KVA"); - static const int POWER_15_KVA_HASH = HashingUtils::HashString("POWER_15_KVA"); - static const int POWER_30_KVA_HASH = HashingUtils::HashString("POWER_30_KVA"); + static constexpr uint32_t POWER_5_KVA_HASH = ConstExprHashingUtils::HashString("POWER_5_KVA"); + static constexpr uint32_t POWER_10_KVA_HASH = ConstExprHashingUtils::HashString("POWER_10_KVA"); + static constexpr uint32_t POWER_15_KVA_HASH = ConstExprHashingUtils::HashString("POWER_15_KVA"); + static constexpr uint32_t POWER_30_KVA_HASH = ConstExprHashingUtils::HashString("POWER_30_KVA"); PowerDrawKva GetPowerDrawKvaForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POWER_5_KVA_HASH) { return PowerDrawKva::POWER_5_KVA; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PowerFeedDrop.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PowerFeedDrop.cpp index 185f3872ec7..1520bb8a0e1 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PowerFeedDrop.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PowerFeedDrop.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PowerFeedDropMapper { - static const int ABOVE_RACK_HASH = HashingUtils::HashString("ABOVE_RACK"); - static const int BELOW_RACK_HASH = HashingUtils::HashString("BELOW_RACK"); + static constexpr uint32_t ABOVE_RACK_HASH = ConstExprHashingUtils::HashString("ABOVE_RACK"); + static constexpr uint32_t BELOW_RACK_HASH = ConstExprHashingUtils::HashString("BELOW_RACK"); PowerFeedDrop GetPowerFeedDropForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ABOVE_RACK_HASH) { return PowerFeedDrop::ABOVE_RACK; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PowerPhase.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PowerPhase.cpp index b3610ead8a4..cfb59403610 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PowerPhase.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PowerPhase.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PowerPhaseMapper { - static const int SINGLE_PHASE_HASH = HashingUtils::HashString("SINGLE_PHASE"); - static const int THREE_PHASE_HASH = HashingUtils::HashString("THREE_PHASE"); + static constexpr uint32_t SINGLE_PHASE_HASH = ConstExprHashingUtils::HashString("SINGLE_PHASE"); + static constexpr uint32_t THREE_PHASE_HASH = ConstExprHashingUtils::HashString("THREE_PHASE"); PowerPhase GetPowerPhaseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_PHASE_HASH) { return PowerPhase::SINGLE_PHASE; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ResourceType.cpp index 66a4456d075..38aa472aa79 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int OUTPOST_HASH = HashingUtils::HashString("OUTPOST"); - static const int ORDER_HASH = HashingUtils::HashString("ORDER"); + static constexpr uint32_t OUTPOST_HASH = ConstExprHashingUtils::HashString("OUTPOST"); + static constexpr uint32_t ORDER_HASH = ConstExprHashingUtils::HashString("ORDER"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OUTPOST_HASH) { return ResourceType::OUTPOST; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/ShipmentCarrier.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ShipmentCarrier.cpp index c10840e866f..146116c9a5d 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/ShipmentCarrier.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ShipmentCarrier.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ShipmentCarrierMapper { - static const int DHL_HASH = HashingUtils::HashString("DHL"); - static const int DBS_HASH = HashingUtils::HashString("DBS"); - static const int FEDEX_HASH = HashingUtils::HashString("FEDEX"); - static const int UPS_HASH = HashingUtils::HashString("UPS"); + static constexpr uint32_t DHL_HASH = ConstExprHashingUtils::HashString("DHL"); + static constexpr uint32_t DBS_HASH = ConstExprHashingUtils::HashString("DBS"); + static constexpr uint32_t FEDEX_HASH = ConstExprHashingUtils::HashString("FEDEX"); + static constexpr uint32_t UPS_HASH = ConstExprHashingUtils::HashString("UPS"); ShipmentCarrier GetShipmentCarrierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DHL_HASH) { return ShipmentCarrier::DHL; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/SupportedHardwareType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/SupportedHardwareType.cpp index daf0152d16a..5a230d4f494 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/SupportedHardwareType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/SupportedHardwareType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SupportedHardwareTypeMapper { - static const int RACK_HASH = HashingUtils::HashString("RACK"); - static const int SERVER_HASH = HashingUtils::HashString("SERVER"); + static constexpr uint32_t RACK_HASH = ConstExprHashingUtils::HashString("RACK"); + static constexpr uint32_t SERVER_HASH = ConstExprHashingUtils::HashString("SERVER"); SupportedHardwareType GetSupportedHardwareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RACK_HASH) { return SupportedHardwareType::RACK; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/SupportedStorageEnum.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/SupportedStorageEnum.cpp index b73997a8a72..e8f3207fd8a 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/SupportedStorageEnum.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/SupportedStorageEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SupportedStorageEnumMapper { - static const int EBS_HASH = HashingUtils::HashString("EBS"); - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t EBS_HASH = ConstExprHashingUtils::HashString("EBS"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); SupportedStorageEnum GetSupportedStorageEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EBS_HASH) { return SupportedStorageEnum::EBS; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/UplinkCount.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/UplinkCount.cpp index 56bb9d77d3f..6856b931472 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/UplinkCount.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/UplinkCount.cpp @@ -20,21 +20,21 @@ namespace Aws namespace UplinkCountMapper { - static const int UPLINK_COUNT_1_HASH = HashingUtils::HashString("UPLINK_COUNT_1"); - static const int UPLINK_COUNT_2_HASH = HashingUtils::HashString("UPLINK_COUNT_2"); - static const int UPLINK_COUNT_3_HASH = HashingUtils::HashString("UPLINK_COUNT_3"); - static const int UPLINK_COUNT_4_HASH = HashingUtils::HashString("UPLINK_COUNT_4"); - static const int UPLINK_COUNT_5_HASH = HashingUtils::HashString("UPLINK_COUNT_5"); - static const int UPLINK_COUNT_6_HASH = HashingUtils::HashString("UPLINK_COUNT_6"); - static const int UPLINK_COUNT_7_HASH = HashingUtils::HashString("UPLINK_COUNT_7"); - static const int UPLINK_COUNT_8_HASH = HashingUtils::HashString("UPLINK_COUNT_8"); - static const int UPLINK_COUNT_12_HASH = HashingUtils::HashString("UPLINK_COUNT_12"); - static const int UPLINK_COUNT_16_HASH = HashingUtils::HashString("UPLINK_COUNT_16"); + static constexpr uint32_t UPLINK_COUNT_1_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_1"); + static constexpr uint32_t UPLINK_COUNT_2_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_2"); + static constexpr uint32_t UPLINK_COUNT_3_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_3"); + static constexpr uint32_t UPLINK_COUNT_4_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_4"); + static constexpr uint32_t UPLINK_COUNT_5_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_5"); + static constexpr uint32_t UPLINK_COUNT_6_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_6"); + static constexpr uint32_t UPLINK_COUNT_7_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_7"); + static constexpr uint32_t UPLINK_COUNT_8_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_8"); + static constexpr uint32_t UPLINK_COUNT_12_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_12"); + static constexpr uint32_t UPLINK_COUNT_16_HASH = ConstExprHashingUtils::HashString("UPLINK_COUNT_16"); UplinkCount GetUplinkCountForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPLINK_COUNT_1_HASH) { return UplinkCount::UPLINK_COUNT_1; diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/UplinkGbps.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/UplinkGbps.cpp index d3a6ba9f222..d1c8377a5a8 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/UplinkGbps.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/UplinkGbps.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UplinkGbpsMapper { - static const int UPLINK_1G_HASH = HashingUtils::HashString("UPLINK_1G"); - static const int UPLINK_10G_HASH = HashingUtils::HashString("UPLINK_10G"); - static const int UPLINK_40G_HASH = HashingUtils::HashString("UPLINK_40G"); - static const int UPLINK_100G_HASH = HashingUtils::HashString("UPLINK_100G"); + static constexpr uint32_t UPLINK_1G_HASH = ConstExprHashingUtils::HashString("UPLINK_1G"); + static constexpr uint32_t UPLINK_10G_HASH = ConstExprHashingUtils::HashString("UPLINK_10G"); + static constexpr uint32_t UPLINK_40G_HASH = ConstExprHashingUtils::HashString("UPLINK_40G"); + static constexpr uint32_t UPLINK_100G_HASH = ConstExprHashingUtils::HashString("UPLINK_100G"); UplinkGbps GetUplinkGbpsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPLINK_1G_HASH) { return UplinkGbps::UPLINK_1G; diff --git a/generated/src/aws-cpp-sdk-panorama/source/PanoramaErrors.cpp b/generated/src/aws-cpp-sdk-panorama/source/PanoramaErrors.cpp index 055aa00f2cd..6be1d0a5b78 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/PanoramaErrors.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/PanoramaErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_PANORAMA_API ValidationException PanoramaError::GetModeledError() namespace PanoramaErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceHealthStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceHealthStatus.cpp index e3819ea0ac6..4c02a5744f0 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceHealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationInstanceHealthStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); ApplicationInstanceHealthStatus GetApplicationInstanceHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return ApplicationInstanceHealthStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceStatus.cpp index ecc05df1eef..04e20862db2 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/ApplicationInstanceStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ApplicationInstanceStatusMapper { - static const int DEPLOYMENT_PENDING_HASH = HashingUtils::HashString("DEPLOYMENT_PENDING"); - static const int DEPLOYMENT_REQUESTED_HASH = HashingUtils::HashString("DEPLOYMENT_REQUESTED"); - static const int DEPLOYMENT_IN_PROGRESS_HASH = HashingUtils::HashString("DEPLOYMENT_IN_PROGRESS"); - static const int DEPLOYMENT_ERROR_HASH = HashingUtils::HashString("DEPLOYMENT_ERROR"); - static const int DEPLOYMENT_SUCCEEDED_HASH = HashingUtils::HashString("DEPLOYMENT_SUCCEEDED"); - static const int REMOVAL_PENDING_HASH = HashingUtils::HashString("REMOVAL_PENDING"); - static const int REMOVAL_REQUESTED_HASH = HashingUtils::HashString("REMOVAL_REQUESTED"); - static const int REMOVAL_IN_PROGRESS_HASH = HashingUtils::HashString("REMOVAL_IN_PROGRESS"); - static const int REMOVAL_FAILED_HASH = HashingUtils::HashString("REMOVAL_FAILED"); - static const int REMOVAL_SUCCEEDED_HASH = HashingUtils::HashString("REMOVAL_SUCCEEDED"); - static const int DEPLOYMENT_FAILED_HASH = HashingUtils::HashString("DEPLOYMENT_FAILED"); + static constexpr uint32_t DEPLOYMENT_PENDING_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_PENDING"); + static constexpr uint32_t DEPLOYMENT_REQUESTED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_REQUESTED"); + static constexpr uint32_t DEPLOYMENT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_IN_PROGRESS"); + static constexpr uint32_t DEPLOYMENT_ERROR_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_ERROR"); + static constexpr uint32_t DEPLOYMENT_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_SUCCEEDED"); + static constexpr uint32_t REMOVAL_PENDING_HASH = ConstExprHashingUtils::HashString("REMOVAL_PENDING"); + static constexpr uint32_t REMOVAL_REQUESTED_HASH = ConstExprHashingUtils::HashString("REMOVAL_REQUESTED"); + static constexpr uint32_t REMOVAL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REMOVAL_IN_PROGRESS"); + static constexpr uint32_t REMOVAL_FAILED_HASH = ConstExprHashingUtils::HashString("REMOVAL_FAILED"); + static constexpr uint32_t REMOVAL_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("REMOVAL_SUCCEEDED"); + static constexpr uint32_t DEPLOYMENT_FAILED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_FAILED"); ApplicationInstanceStatus GetApplicationInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOYMENT_PENDING_HASH) { return ApplicationInstanceStatus::DEPLOYMENT_PENDING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/ConnectionType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/ConnectionType.cpp index b10ff8eebbc..d81a74318e7 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/ConnectionType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/ConnectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionTypeMapper { - static const int STATIC_IP_HASH = HashingUtils::HashString("STATIC_IP"); - static const int DHCP_HASH = HashingUtils::HashString("DHCP"); + static constexpr uint32_t STATIC_IP_HASH = ConstExprHashingUtils::HashString("STATIC_IP"); + static constexpr uint32_t DHCP_HASH = ConstExprHashingUtils::HashString("DHCP"); ConnectionType GetConnectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC_IP_HASH) { return ConnectionType::STATIC_IP; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DesiredState.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DesiredState.cpp index 90b57a2d199..14132ab8a55 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DesiredState.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DesiredState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DesiredStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); DesiredState GetDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return DesiredState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceAggregatedStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceAggregatedStatus.cpp index f7b57928ca7..7ad8b8665c6 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceAggregatedStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceAggregatedStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace DeviceAggregatedStatusMapper { - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int AWAITING_PROVISIONING_HASH = HashingUtils::HashString("AWAITING_PROVISIONING"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); - static const int LEASE_EXPIRED_HASH = HashingUtils::HashString("LEASE_EXPIRED"); - static const int UPDATE_NEEDED_HASH = HashingUtils::HashString("UPDATE_NEEDED"); - static const int REBOOTING_HASH = HashingUtils::HashString("REBOOTING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t AWAITING_PROVISIONING_HASH = ConstExprHashingUtils::HashString("AWAITING_PROVISIONING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); + static constexpr uint32_t LEASE_EXPIRED_HASH = ConstExprHashingUtils::HashString("LEASE_EXPIRED"); + static constexpr uint32_t UPDATE_NEEDED_HASH = ConstExprHashingUtils::HashString("UPDATE_NEEDED"); + static constexpr uint32_t REBOOTING_HASH = ConstExprHashingUtils::HashString("REBOOTING"); DeviceAggregatedStatus GetDeviceAggregatedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ERROR__HASH) { return DeviceAggregatedStatus::ERROR_; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceBrand.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceBrand.cpp index 1d2caaf8aec..b0df92f9dc3 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceBrand.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceBrand.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceBrandMapper { - static const int AWS_PANORAMA_HASH = HashingUtils::HashString("AWS_PANORAMA"); - static const int LENOVO_HASH = HashingUtils::HashString("LENOVO"); + static constexpr uint32_t AWS_PANORAMA_HASH = ConstExprHashingUtils::HashString("AWS_PANORAMA"); + static constexpr uint32_t LENOVO_HASH = ConstExprHashingUtils::HashString("LENOVO"); DeviceBrand GetDeviceBrandForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_PANORAMA_HASH) { return DeviceBrand::AWS_PANORAMA; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceConnectionStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceConnectionStatus.cpp index 82d79fc5350..06d57132c11 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceConnectionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DeviceConnectionStatusMapper { - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); - static const int AWAITING_CREDENTIALS_HASH = HashingUtils::HashString("AWAITING_CREDENTIALS"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); + static constexpr uint32_t AWAITING_CREDENTIALS_HASH = ConstExprHashingUtils::HashString("AWAITING_CREDENTIALS"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); DeviceConnectionStatus GetDeviceConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLINE_HASH) { return DeviceConnectionStatus::ONLINE; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceReportedStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceReportedStatus.cpp index 4c56186afa5..22ed02d60f0 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceReportedStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceReportedStatus.cpp @@ -20,22 +20,22 @@ namespace Aws namespace DeviceReportedStatusMapper { - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STOP_ERROR_HASH = HashingUtils::HashString("STOP_ERROR"); - static const int REMOVAL_FAILED_HASH = HashingUtils::HashString("REMOVAL_FAILED"); - static const int REMOVAL_IN_PROGRESS_HASH = HashingUtils::HashString("REMOVAL_IN_PROGRESS"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int INSTALL_ERROR_HASH = HashingUtils::HashString("INSTALL_ERROR"); - static const int LAUNCHED_HASH = HashingUtils::HashString("LAUNCHED"); - static const int LAUNCH_ERROR_HASH = HashingUtils::HashString("LAUNCH_ERROR"); - static const int INSTALL_IN_PROGRESS_HASH = HashingUtils::HashString("INSTALL_IN_PROGRESS"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STOP_ERROR_HASH = ConstExprHashingUtils::HashString("STOP_ERROR"); + static constexpr uint32_t REMOVAL_FAILED_HASH = ConstExprHashingUtils::HashString("REMOVAL_FAILED"); + static constexpr uint32_t REMOVAL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REMOVAL_IN_PROGRESS"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t INSTALL_ERROR_HASH = ConstExprHashingUtils::HashString("INSTALL_ERROR"); + static constexpr uint32_t LAUNCHED_HASH = ConstExprHashingUtils::HashString("LAUNCHED"); + static constexpr uint32_t LAUNCH_ERROR_HASH = ConstExprHashingUtils::HashString("LAUNCH_ERROR"); + static constexpr uint32_t INSTALL_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("INSTALL_IN_PROGRESS"); DeviceReportedStatus GetDeviceReportedStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPING_HASH) { return DeviceReportedStatus::STOPPING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceStatus.cpp index 07480a7c23d..beec3ea35ae 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeviceStatusMapper { - static const int AWAITING_PROVISIONING_HASH = HashingUtils::HashString("AWAITING_PROVISIONING"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t AWAITING_PROVISIONING_HASH = ConstExprHashingUtils::HashString("AWAITING_PROVISIONING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); DeviceStatus GetDeviceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWAITING_PROVISIONING_HASH) { return DeviceStatus::AWAITING_PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceType.cpp index 8c2392a93b2..1c0c6734d91 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/DeviceType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/DeviceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceTypeMapper { - static const int PANORAMA_APPLIANCE_DEVELOPER_KIT_HASH = HashingUtils::HashString("PANORAMA_APPLIANCE_DEVELOPER_KIT"); - static const int PANORAMA_APPLIANCE_HASH = HashingUtils::HashString("PANORAMA_APPLIANCE"); + static constexpr uint32_t PANORAMA_APPLIANCE_DEVELOPER_KIT_HASH = ConstExprHashingUtils::HashString("PANORAMA_APPLIANCE_DEVELOPER_KIT"); + static constexpr uint32_t PANORAMA_APPLIANCE_HASH = ConstExprHashingUtils::HashString("PANORAMA_APPLIANCE"); DeviceType GetDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PANORAMA_APPLIANCE_DEVELOPER_KIT_HASH) { return DeviceType::PANORAMA_APPLIANCE_DEVELOPER_KIT; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/JobResourceType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/JobResourceType.cpp index 84908c0e914..469f91b38a8 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/JobResourceType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/JobResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace JobResourceTypeMapper { - static const int PACKAGE_HASH = HashingUtils::HashString("PACKAGE"); + static constexpr uint32_t PACKAGE_HASH = ConstExprHashingUtils::HashString("PACKAGE"); JobResourceType GetJobResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PACKAGE_HASH) { return JobResourceType::PACKAGE; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/JobType.cpp index 75fa41c42e7..56000568e97 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/JobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobTypeMapper { - static const int OTA_HASH = HashingUtils::HashString("OTA"); - static const int REBOOT_HASH = HashingUtils::HashString("REBOOT"); + static constexpr uint32_t OTA_HASH = ConstExprHashingUtils::HashString("OTA"); + static constexpr uint32_t REBOOT_HASH = ConstExprHashingUtils::HashString("REBOOT"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OTA_HASH) { return JobType::OTA; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/ListDevicesSortBy.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/ListDevicesSortBy.cpp index f0dcde918a9..35aad629630 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/ListDevicesSortBy.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/ListDevicesSortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListDevicesSortByMapper { - static const int DEVICE_ID_HASH = HashingUtils::HashString("DEVICE_ID"); - static const int CREATED_TIME_HASH = HashingUtils::HashString("CREATED_TIME"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int DEVICE_AGGREGATED_STATUS_HASH = HashingUtils::HashString("DEVICE_AGGREGATED_STATUS"); + static constexpr uint32_t DEVICE_ID_HASH = ConstExprHashingUtils::HashString("DEVICE_ID"); + static constexpr uint32_t CREATED_TIME_HASH = ConstExprHashingUtils::HashString("CREATED_TIME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t DEVICE_AGGREGATED_STATUS_HASH = ConstExprHashingUtils::HashString("DEVICE_AGGREGATED_STATUS"); ListDevicesSortBy GetListDevicesSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEVICE_ID_HASH) { return ListDevicesSortBy::DEVICE_ID; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/NetworkConnectionStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/NetworkConnectionStatus.cpp index 6658ffd388e..366bf768f97 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/NetworkConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/NetworkConnectionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NetworkConnectionStatusMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int NOT_CONNECTED_HASH = HashingUtils::HashString("NOT_CONNECTED"); - static const int CONNECTING_HASH = HashingUtils::HashString("CONNECTING"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t NOT_CONNECTED_HASH = ConstExprHashingUtils::HashString("NOT_CONNECTED"); + static constexpr uint32_t CONNECTING_HASH = ConstExprHashingUtils::HashString("CONNECTING"); NetworkConnectionStatus GetNetworkConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return NetworkConnectionStatus::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/NodeCategory.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/NodeCategory.cpp index 0169098c24b..4ac1a357738 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/NodeCategory.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/NodeCategory.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NodeCategoryMapper { - static const int BUSINESS_LOGIC_HASH = HashingUtils::HashString("BUSINESS_LOGIC"); - static const int ML_MODEL_HASH = HashingUtils::HashString("ML_MODEL"); - static const int MEDIA_SOURCE_HASH = HashingUtils::HashString("MEDIA_SOURCE"); - static const int MEDIA_SINK_HASH = HashingUtils::HashString("MEDIA_SINK"); + static constexpr uint32_t BUSINESS_LOGIC_HASH = ConstExprHashingUtils::HashString("BUSINESS_LOGIC"); + static constexpr uint32_t ML_MODEL_HASH = ConstExprHashingUtils::HashString("ML_MODEL"); + static constexpr uint32_t MEDIA_SOURCE_HASH = ConstExprHashingUtils::HashString("MEDIA_SOURCE"); + static constexpr uint32_t MEDIA_SINK_HASH = ConstExprHashingUtils::HashString("MEDIA_SINK"); NodeCategory GetNodeCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BUSINESS_LOGIC_HASH) { return NodeCategory::BUSINESS_LOGIC; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/NodeFromTemplateJobStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/NodeFromTemplateJobStatus.cpp index 5cb8442a883..9b470b1b815 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/NodeFromTemplateJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/NodeFromTemplateJobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NodeFromTemplateJobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); NodeFromTemplateJobStatus GetNodeFromTemplateJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return NodeFromTemplateJobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/NodeInstanceStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/NodeInstanceStatus.cpp index 8f3b6b08721..8adbd0d61fe 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/NodeInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/NodeInstanceStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NodeInstanceStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); NodeInstanceStatus GetNodeInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return NodeInstanceStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/NodeSignalValue.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/NodeSignalValue.cpp index fb46da95509..4d2f0debfca 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/NodeSignalValue.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/NodeSignalValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NodeSignalValueMapper { - static const int PAUSE_HASH = HashingUtils::HashString("PAUSE"); - static const int RESUME_HASH = HashingUtils::HashString("RESUME"); + static constexpr uint32_t PAUSE_HASH = ConstExprHashingUtils::HashString("PAUSE"); + static constexpr uint32_t RESUME_HASH = ConstExprHashingUtils::HashString("RESUME"); NodeSignalValue GetNodeSignalValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAUSE_HASH) { return NodeSignalValue::PAUSE; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobStatus.cpp index 2e85517e2fe..2cbc0771254 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PackageImportJobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); PackageImportJobStatus GetPackageImportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return PackageImportJobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobType.cpp index b82f53de34a..85224f53256 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/PackageImportJobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PackageImportJobTypeMapper { - static const int NODE_PACKAGE_VERSION_HASH = HashingUtils::HashString("NODE_PACKAGE_VERSION"); - static const int MARKETPLACE_NODE_PACKAGE_VERSION_HASH = HashingUtils::HashString("MARKETPLACE_NODE_PACKAGE_VERSION"); + static constexpr uint32_t NODE_PACKAGE_VERSION_HASH = ConstExprHashingUtils::HashString("NODE_PACKAGE_VERSION"); + static constexpr uint32_t MARKETPLACE_NODE_PACKAGE_VERSION_HASH = ConstExprHashingUtils::HashString("MARKETPLACE_NODE_PACKAGE_VERSION"); PackageImportJobType GetPackageImportJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NODE_PACKAGE_VERSION_HASH) { return PackageImportJobType::NODE_PACKAGE_VERSION; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/PackageVersionStatus.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/PackageVersionStatus.cpp index ead1759f9a0..7a820a53895 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/PackageVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/PackageVersionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PackageVersionStatusMapper { - static const int REGISTER_PENDING_HASH = HashingUtils::HashString("REGISTER_PENDING"); - static const int REGISTER_COMPLETED_HASH = HashingUtils::HashString("REGISTER_COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t REGISTER_PENDING_HASH = ConstExprHashingUtils::HashString("REGISTER_PENDING"); + static constexpr uint32_t REGISTER_COMPLETED_HASH = ConstExprHashingUtils::HashString("REGISTER_COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); PackageVersionStatus GetPackageVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTER_PENDING_HASH) { return PackageVersionStatus::REGISTER_PENDING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/PortType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/PortType.cpp index 7db99c052c8..7c14f402113 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/PortType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/PortType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PortTypeMapper { - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int INT32_HASH = HashingUtils::HashString("INT32"); - static const int FLOAT32_HASH = HashingUtils::HashString("FLOAT32"); - static const int MEDIA_HASH = HashingUtils::HashString("MEDIA"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t INT32_HASH = ConstExprHashingUtils::HashString("INT32"); + static constexpr uint32_t FLOAT32_HASH = ConstExprHashingUtils::HashString("FLOAT32"); + static constexpr uint32_t MEDIA_HASH = ConstExprHashingUtils::HashString("MEDIA"); PortType GetPortTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BOOLEAN_HASH) { return PortType::BOOLEAN; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/SortOrder.cpp index 1ba425d59aa..07bd3167f02 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/StatusFilter.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/StatusFilter.cpp index ebc72d174e4..14b874b5ecf 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/StatusFilter.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/StatusFilter.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StatusFilterMapper { - static const int DEPLOYMENT_SUCCEEDED_HASH = HashingUtils::HashString("DEPLOYMENT_SUCCEEDED"); - static const int DEPLOYMENT_ERROR_HASH = HashingUtils::HashString("DEPLOYMENT_ERROR"); - static const int REMOVAL_SUCCEEDED_HASH = HashingUtils::HashString("REMOVAL_SUCCEEDED"); - static const int REMOVAL_FAILED_HASH = HashingUtils::HashString("REMOVAL_FAILED"); - static const int PROCESSING_DEPLOYMENT_HASH = HashingUtils::HashString("PROCESSING_DEPLOYMENT"); - static const int PROCESSING_REMOVAL_HASH = HashingUtils::HashString("PROCESSING_REMOVAL"); - static const int DEPLOYMENT_FAILED_HASH = HashingUtils::HashString("DEPLOYMENT_FAILED"); + static constexpr uint32_t DEPLOYMENT_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_SUCCEEDED"); + static constexpr uint32_t DEPLOYMENT_ERROR_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_ERROR"); + static constexpr uint32_t REMOVAL_SUCCEEDED_HASH = ConstExprHashingUtils::HashString("REMOVAL_SUCCEEDED"); + static constexpr uint32_t REMOVAL_FAILED_HASH = ConstExprHashingUtils::HashString("REMOVAL_FAILED"); + static constexpr uint32_t PROCESSING_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("PROCESSING_DEPLOYMENT"); + static constexpr uint32_t PROCESSING_REMOVAL_HASH = ConstExprHashingUtils::HashString("PROCESSING_REMOVAL"); + static constexpr uint32_t DEPLOYMENT_FAILED_HASH = ConstExprHashingUtils::HashString("DEPLOYMENT_FAILED"); StatusFilter GetStatusFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOYMENT_SUCCEEDED_HASH) { return StatusFilter::DEPLOYMENT_SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/TemplateType.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/TemplateType.cpp index 5b685cf4bd8..d4760f40aa5 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/TemplateType.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/TemplateType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TemplateTypeMapper { - static const int RTSP_CAMERA_STREAM_HASH = HashingUtils::HashString("RTSP_CAMERA_STREAM"); + static constexpr uint32_t RTSP_CAMERA_STREAM_HASH = ConstExprHashingUtils::HashString("RTSP_CAMERA_STREAM"); TemplateType GetTemplateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RTSP_CAMERA_STREAM_HASH) { return TemplateType::RTSP_CAMERA_STREAM; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/UpdateProgress.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/UpdateProgress.cpp index e167006d4e5..cfe2e88404a 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/UpdateProgress.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/UpdateProgress.cpp @@ -20,18 +20,18 @@ namespace Aws namespace UpdateProgressMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int VERIFYING_HASH = HashingUtils::HashString("VERIFYING"); - static const int REBOOTING_HASH = HashingUtils::HashString("REBOOTING"); - static const int DOWNLOADING_HASH = HashingUtils::HashString("DOWNLOADING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t VERIFYING_HASH = ConstExprHashingUtils::HashString("VERIFYING"); + static constexpr uint32_t REBOOTING_HASH = ConstExprHashingUtils::HashString("REBOOTING"); + static constexpr uint32_t DOWNLOADING_HASH = ConstExprHashingUtils::HashString("DOWNLOADING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); UpdateProgress GetUpdateProgressForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return UpdateProgress::PENDING; diff --git a/generated/src/aws-cpp-sdk-panorama/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-panorama/source/model/ValidationExceptionReason.cpp index e21f26f1e25..e796e461847 100644 --- a/generated/src/aws-cpp-sdk-panorama/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-panorama/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataErrors.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataErrors.cpp index f4392a81423..2cc2104e670 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataErrors.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataErrors.cpp @@ -40,13 +40,13 @@ template<> AWS_PAYMENTCRYPTOGRAPHYDATA_API VerificationFailedException PaymentCr namespace PaymentCryptographyDataErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int VERIFICATION_FAILED_HASH = HashingUtils::HashString("VerificationFailedException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t VERIFICATION_FAILED_HASH = ConstExprHashingUtils::HashString("VerificationFailedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptDerivationType.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptDerivationType.cpp index f0470045a21..dab318da14f 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptDerivationType.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptDerivationType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DukptDerivationTypeMapper { - static const int TDES_2KEY_HASH = HashingUtils::HashString("TDES_2KEY"); - static const int TDES_3KEY_HASH = HashingUtils::HashString("TDES_3KEY"); - static const int AES_128_HASH = HashingUtils::HashString("AES_128"); - static const int AES_192_HASH = HashingUtils::HashString("AES_192"); - static const int AES_256_HASH = HashingUtils::HashString("AES_256"); + static constexpr uint32_t TDES_2KEY_HASH = ConstExprHashingUtils::HashString("TDES_2KEY"); + static constexpr uint32_t TDES_3KEY_HASH = ConstExprHashingUtils::HashString("TDES_3KEY"); + static constexpr uint32_t AES_128_HASH = ConstExprHashingUtils::HashString("AES_128"); + static constexpr uint32_t AES_192_HASH = ConstExprHashingUtils::HashString("AES_192"); + static constexpr uint32_t AES_256_HASH = ConstExprHashingUtils::HashString("AES_256"); DukptDerivationType GetDukptDerivationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TDES_2KEY_HASH) { return DukptDerivationType::TDES_2KEY; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptEncryptionMode.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptEncryptionMode.cpp index 931a0a79676..d8ffd047efb 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptEncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptEncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DukptEncryptionModeMapper { - static const int ECB_HASH = HashingUtils::HashString("ECB"); - static const int CBC_HASH = HashingUtils::HashString("CBC"); + static constexpr uint32_t ECB_HASH = ConstExprHashingUtils::HashString("ECB"); + static constexpr uint32_t CBC_HASH = ConstExprHashingUtils::HashString("CBC"); DukptEncryptionMode GetDukptEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECB_HASH) { return DukptEncryptionMode::ECB; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptKeyVariant.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptKeyVariant.cpp index 2a17e198ba3..b3585f3194a 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptKeyVariant.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/DukptKeyVariant.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DukptKeyVariantMapper { - static const int BIDIRECTIONAL_HASH = HashingUtils::HashString("BIDIRECTIONAL"); - static const int REQUEST_HASH = HashingUtils::HashString("REQUEST"); - static const int RESPONSE_HASH = HashingUtils::HashString("RESPONSE"); + static constexpr uint32_t BIDIRECTIONAL_HASH = ConstExprHashingUtils::HashString("BIDIRECTIONAL"); + static constexpr uint32_t REQUEST_HASH = ConstExprHashingUtils::HashString("REQUEST"); + static constexpr uint32_t RESPONSE_HASH = ConstExprHashingUtils::HashString("RESPONSE"); DukptKeyVariant GetDukptKeyVariantForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BIDIRECTIONAL_HASH) { return DukptKeyVariant::BIDIRECTIONAL; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/EncryptionMode.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/EncryptionMode.cpp index 4d4d98d46f7..bf293aac85f 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/EncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/EncryptionMode.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EncryptionModeMapper { - static const int ECB_HASH = HashingUtils::HashString("ECB"); - static const int CBC_HASH = HashingUtils::HashString("CBC"); - static const int CFB_HASH = HashingUtils::HashString("CFB"); - static const int CFB1_HASH = HashingUtils::HashString("CFB1"); - static const int CFB8_HASH = HashingUtils::HashString("CFB8"); - static const int CFB64_HASH = HashingUtils::HashString("CFB64"); - static const int CFB128_HASH = HashingUtils::HashString("CFB128"); - static const int OFB_HASH = HashingUtils::HashString("OFB"); + static constexpr uint32_t ECB_HASH = ConstExprHashingUtils::HashString("ECB"); + static constexpr uint32_t CBC_HASH = ConstExprHashingUtils::HashString("CBC"); + static constexpr uint32_t CFB_HASH = ConstExprHashingUtils::HashString("CFB"); + static constexpr uint32_t CFB1_HASH = ConstExprHashingUtils::HashString("CFB1"); + static constexpr uint32_t CFB8_HASH = ConstExprHashingUtils::HashString("CFB8"); + static constexpr uint32_t CFB64_HASH = ConstExprHashingUtils::HashString("CFB64"); + static constexpr uint32_t CFB128_HASH = ConstExprHashingUtils::HashString("CFB128"); + static constexpr uint32_t OFB_HASH = ConstExprHashingUtils::HashString("OFB"); EncryptionMode GetEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECB_HASH) { return EncryptionMode::ECB; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MacAlgorithm.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MacAlgorithm.cpp index 6f8bc59e10c..290a88ca563 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MacAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MacAlgorithm.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MacAlgorithmMapper { - static const int ISO9797_ALGORITHM1_HASH = HashingUtils::HashString("ISO9797_ALGORITHM1"); - static const int ISO9797_ALGORITHM3_HASH = HashingUtils::HashString("ISO9797_ALGORITHM3"); - static const int CMAC_HASH = HashingUtils::HashString("CMAC"); - static const int HMAC_SHA224_HASH = HashingUtils::HashString("HMAC_SHA224"); - static const int HMAC_SHA256_HASH = HashingUtils::HashString("HMAC_SHA256"); - static const int HMAC_SHA384_HASH = HashingUtils::HashString("HMAC_SHA384"); - static const int HMAC_SHA512_HASH = HashingUtils::HashString("HMAC_SHA512"); + static constexpr uint32_t ISO9797_ALGORITHM1_HASH = ConstExprHashingUtils::HashString("ISO9797_ALGORITHM1"); + static constexpr uint32_t ISO9797_ALGORITHM3_HASH = ConstExprHashingUtils::HashString("ISO9797_ALGORITHM3"); + static constexpr uint32_t CMAC_HASH = ConstExprHashingUtils::HashString("CMAC"); + static constexpr uint32_t HMAC_SHA224_HASH = ConstExprHashingUtils::HashString("HMAC_SHA224"); + static constexpr uint32_t HMAC_SHA256_HASH = ConstExprHashingUtils::HashString("HMAC_SHA256"); + static constexpr uint32_t HMAC_SHA384_HASH = ConstExprHashingUtils::HashString("HMAC_SHA384"); + static constexpr uint32_t HMAC_SHA512_HASH = ConstExprHashingUtils::HashString("HMAC_SHA512"); MacAlgorithm GetMacAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ISO9797_ALGORITHM1_HASH) { return MacAlgorithm::ISO9797_ALGORITHM1; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MajorKeyDerivationMode.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MajorKeyDerivationMode.cpp index 0eb551c4853..a81bbf5afbe 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MajorKeyDerivationMode.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/MajorKeyDerivationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MajorKeyDerivationModeMapper { - static const int EMV_OPTION_A_HASH = HashingUtils::HashString("EMV_OPTION_A"); - static const int EMV_OPTION_B_HASH = HashingUtils::HashString("EMV_OPTION_B"); + static constexpr uint32_t EMV_OPTION_A_HASH = ConstExprHashingUtils::HashString("EMV_OPTION_A"); + static constexpr uint32_t EMV_OPTION_B_HASH = ConstExprHashingUtils::HashString("EMV_OPTION_B"); MajorKeyDerivationMode GetMajorKeyDerivationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMV_OPTION_A_HASH) { return MajorKeyDerivationMode::EMV_OPTION_A; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PaddingType.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PaddingType.cpp index c498e5184b9..9590673f7b5 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PaddingType.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PaddingType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PaddingTypeMapper { - static const int PKCS1_HASH = HashingUtils::HashString("PKCS1"); - static const int OAEP_SHA1_HASH = HashingUtils::HashString("OAEP_SHA1"); - static const int OAEP_SHA256_HASH = HashingUtils::HashString("OAEP_SHA256"); - static const int OAEP_SHA512_HASH = HashingUtils::HashString("OAEP_SHA512"); + static constexpr uint32_t PKCS1_HASH = ConstExprHashingUtils::HashString("PKCS1"); + static constexpr uint32_t OAEP_SHA1_HASH = ConstExprHashingUtils::HashString("OAEP_SHA1"); + static constexpr uint32_t OAEP_SHA256_HASH = ConstExprHashingUtils::HashString("OAEP_SHA256"); + static constexpr uint32_t OAEP_SHA512_HASH = ConstExprHashingUtils::HashString("OAEP_SHA512"); PaddingType GetPaddingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PKCS1_HASH) { return PaddingType::PKCS1; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PinBlockFormatForPinData.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PinBlockFormatForPinData.cpp index ccc2c7a81fd..c9643db622b 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PinBlockFormatForPinData.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/PinBlockFormatForPinData.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PinBlockFormatForPinDataMapper { - static const int ISO_FORMAT_0_HASH = HashingUtils::HashString("ISO_FORMAT_0"); - static const int ISO_FORMAT_3_HASH = HashingUtils::HashString("ISO_FORMAT_3"); + static constexpr uint32_t ISO_FORMAT_0_HASH = ConstExprHashingUtils::HashString("ISO_FORMAT_0"); + static constexpr uint32_t ISO_FORMAT_3_HASH = ConstExprHashingUtils::HashString("ISO_FORMAT_3"); PinBlockFormatForPinData GetPinBlockFormatForPinDataForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ISO_FORMAT_0_HASH) { return PinBlockFormatForPinData::ISO_FORMAT_0; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/SessionKeyDerivationMode.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/SessionKeyDerivationMode.cpp index a2343686953..6642c69b97e 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/SessionKeyDerivationMode.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/SessionKeyDerivationMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SessionKeyDerivationModeMapper { - static const int EMV_COMMON_SESSION_KEY_HASH = HashingUtils::HashString("EMV_COMMON_SESSION_KEY"); - static const int EMV2000_HASH = HashingUtils::HashString("EMV2000"); - static const int AMEX_HASH = HashingUtils::HashString("AMEX"); - static const int MASTERCARD_SESSION_KEY_HASH = HashingUtils::HashString("MASTERCARD_SESSION_KEY"); - static const int VISA_HASH = HashingUtils::HashString("VISA"); + static constexpr uint32_t EMV_COMMON_SESSION_KEY_HASH = ConstExprHashingUtils::HashString("EMV_COMMON_SESSION_KEY"); + static constexpr uint32_t EMV2000_HASH = ConstExprHashingUtils::HashString("EMV2000"); + static constexpr uint32_t AMEX_HASH = ConstExprHashingUtils::HashString("AMEX"); + static constexpr uint32_t MASTERCARD_SESSION_KEY_HASH = ConstExprHashingUtils::HashString("MASTERCARD_SESSION_KEY"); + static constexpr uint32_t VISA_HASH = ConstExprHashingUtils::HashString("VISA"); SessionKeyDerivationMode GetSessionKeyDerivationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMV_COMMON_SESSION_KEY_HASH) { return SessionKeyDerivationMode::EMV_COMMON_SESSION_KEY; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/VerificationFailedReason.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/VerificationFailedReason.cpp index 14e842d7e26..dcf117be230 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/VerificationFailedReason.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/model/VerificationFailedReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VerificationFailedReasonMapper { - static const int INVALID_MAC_HASH = HashingUtils::HashString("INVALID_MAC"); - static const int INVALID_PIN_HASH = HashingUtils::HashString("INVALID_PIN"); - static const int INVALID_VALIDATION_DATA_HASH = HashingUtils::HashString("INVALID_VALIDATION_DATA"); - static const int INVALID_AUTH_REQUEST_CRYPTOGRAM_HASH = HashingUtils::HashString("INVALID_AUTH_REQUEST_CRYPTOGRAM"); + static constexpr uint32_t INVALID_MAC_HASH = ConstExprHashingUtils::HashString("INVALID_MAC"); + static constexpr uint32_t INVALID_PIN_HASH = ConstExprHashingUtils::HashString("INVALID_PIN"); + static constexpr uint32_t INVALID_VALIDATION_DATA_HASH = ConstExprHashingUtils::HashString("INVALID_VALIDATION_DATA"); + static constexpr uint32_t INVALID_AUTH_REQUEST_CRYPTOGRAM_HASH = ConstExprHashingUtils::HashString("INVALID_AUTH_REQUEST_CRYPTOGRAM"); VerificationFailedReason GetVerificationFailedReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_MAC_HASH) { return VerificationFailedReason::INVALID_MAC; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyErrors.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyErrors.cpp index 0876b06f024..9e2c0809bf6 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyErrors.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_PAYMENTCRYPTOGRAPHY_API ResourceNotFoundException PaymentCryptogr namespace PaymentCryptographyErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAlgorithm.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAlgorithm.cpp index 6b598161726..62a06129d37 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAlgorithm.cpp @@ -20,19 +20,19 @@ namespace Aws namespace KeyAlgorithmMapper { - static const int TDES_2KEY_HASH = HashingUtils::HashString("TDES_2KEY"); - static const int TDES_3KEY_HASH = HashingUtils::HashString("TDES_3KEY"); - static const int AES_128_HASH = HashingUtils::HashString("AES_128"); - static const int AES_192_HASH = HashingUtils::HashString("AES_192"); - static const int AES_256_HASH = HashingUtils::HashString("AES_256"); - static const int RSA_2048_HASH = HashingUtils::HashString("RSA_2048"); - static const int RSA_3072_HASH = HashingUtils::HashString("RSA_3072"); - static const int RSA_4096_HASH = HashingUtils::HashString("RSA_4096"); + static constexpr uint32_t TDES_2KEY_HASH = ConstExprHashingUtils::HashString("TDES_2KEY"); + static constexpr uint32_t TDES_3KEY_HASH = ConstExprHashingUtils::HashString("TDES_3KEY"); + static constexpr uint32_t AES_128_HASH = ConstExprHashingUtils::HashString("AES_128"); + static constexpr uint32_t AES_192_HASH = ConstExprHashingUtils::HashString("AES_192"); + static constexpr uint32_t AES_256_HASH = ConstExprHashingUtils::HashString("AES_256"); + static constexpr uint32_t RSA_2048_HASH = ConstExprHashingUtils::HashString("RSA_2048"); + static constexpr uint32_t RSA_3072_HASH = ConstExprHashingUtils::HashString("RSA_3072"); + static constexpr uint32_t RSA_4096_HASH = ConstExprHashingUtils::HashString("RSA_4096"); KeyAlgorithm GetKeyAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TDES_2KEY_HASH) { return KeyAlgorithm::TDES_2KEY; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyCheckValueAlgorithm.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyCheckValueAlgorithm.cpp index ae8814fcdf1..44cd847d192 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyCheckValueAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyCheckValueAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyCheckValueAlgorithmMapper { - static const int CMAC_HASH = HashingUtils::HashString("CMAC"); - static const int ANSI_X9_24_HASH = HashingUtils::HashString("ANSI_X9_24"); + static constexpr uint32_t CMAC_HASH = ConstExprHashingUtils::HashString("CMAC"); + static constexpr uint32_t ANSI_X9_24_HASH = ConstExprHashingUtils::HashString("ANSI_X9_24"); KeyCheckValueAlgorithm GetKeyCheckValueAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CMAC_HASH) { return KeyCheckValueAlgorithm::CMAC; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyClass.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyClass.cpp index 3fe331250d9..5b78acedee6 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyClass.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyClass.cpp @@ -20,15 +20,15 @@ namespace Aws namespace KeyClassMapper { - static const int SYMMETRIC_KEY_HASH = HashingUtils::HashString("SYMMETRIC_KEY"); - static const int ASYMMETRIC_KEY_PAIR_HASH = HashingUtils::HashString("ASYMMETRIC_KEY_PAIR"); - static const int PRIVATE_KEY_HASH = HashingUtils::HashString("PRIVATE_KEY"); - static const int PUBLIC_KEY_HASH = HashingUtils::HashString("PUBLIC_KEY"); + static constexpr uint32_t SYMMETRIC_KEY_HASH = ConstExprHashingUtils::HashString("SYMMETRIC_KEY"); + static constexpr uint32_t ASYMMETRIC_KEY_PAIR_HASH = ConstExprHashingUtils::HashString("ASYMMETRIC_KEY_PAIR"); + static constexpr uint32_t PRIVATE_KEY_HASH = ConstExprHashingUtils::HashString("PRIVATE_KEY"); + static constexpr uint32_t PUBLIC_KEY_HASH = ConstExprHashingUtils::HashString("PUBLIC_KEY"); KeyClass GetKeyClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYMMETRIC_KEY_HASH) { return KeyClass::SYMMETRIC_KEY; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyMaterialType.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyMaterialType.cpp index 27b56f25457..f082a56703c 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyMaterialType.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyMaterialType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace KeyMaterialTypeMapper { - static const int TR34_KEY_BLOCK_HASH = HashingUtils::HashString("TR34_KEY_BLOCK"); - static const int TR31_KEY_BLOCK_HASH = HashingUtils::HashString("TR31_KEY_BLOCK"); - static const int ROOT_PUBLIC_KEY_CERTIFICATE_HASH = HashingUtils::HashString("ROOT_PUBLIC_KEY_CERTIFICATE"); - static const int TRUSTED_PUBLIC_KEY_CERTIFICATE_HASH = HashingUtils::HashString("TRUSTED_PUBLIC_KEY_CERTIFICATE"); + static constexpr uint32_t TR34_KEY_BLOCK_HASH = ConstExprHashingUtils::HashString("TR34_KEY_BLOCK"); + static constexpr uint32_t TR31_KEY_BLOCK_HASH = ConstExprHashingUtils::HashString("TR31_KEY_BLOCK"); + static constexpr uint32_t ROOT_PUBLIC_KEY_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("ROOT_PUBLIC_KEY_CERTIFICATE"); + static constexpr uint32_t TRUSTED_PUBLIC_KEY_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("TRUSTED_PUBLIC_KEY_CERTIFICATE"); KeyMaterialType GetKeyMaterialTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TR34_KEY_BLOCK_HASH) { return KeyMaterialType::TR34_KEY_BLOCK; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyOrigin.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyOrigin.cpp index 143ea41724b..f246751bc40 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyOrigin.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyOrigin.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeyOriginMapper { - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); - static const int AWS_PAYMENT_CRYPTOGRAPHY_HASH = HashingUtils::HashString("AWS_PAYMENT_CRYPTOGRAPHY"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t AWS_PAYMENT_CRYPTOGRAPHY_HASH = ConstExprHashingUtils::HashString("AWS_PAYMENT_CRYPTOGRAPHY"); KeyOrigin GetKeyOriginForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTERNAL_HASH) { return KeyOrigin::EXTERNAL; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyState.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyState.cpp index 8e0490e16a2..2f7aa9bf315 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyState.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace KeyStateMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int DELETE_PENDING_HASH = HashingUtils::HashString("DELETE_PENDING"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t DELETE_PENDING_HASH = ConstExprHashingUtils::HashString("DELETE_PENDING"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); KeyState GetKeyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return KeyState::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyUsage.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyUsage.cpp index 5083564cd15..d1b14759364 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyUsage.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyUsage.cpp @@ -20,33 +20,33 @@ namespace Aws namespace KeyUsageMapper { - static const int TR31_B0_BASE_DERIVATION_KEY_HASH = HashingUtils::HashString("TR31_B0_BASE_DERIVATION_KEY"); - static const int TR31_C0_CARD_VERIFICATION_KEY_HASH = HashingUtils::HashString("TR31_C0_CARD_VERIFICATION_KEY"); - static const int TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY_HASH = HashingUtils::HashString("TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY"); - static const int TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION_HASH = HashingUtils::HashString("TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION"); - static const int TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS_HASH = HashingUtils::HashString("TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS"); - static const int TR31_E1_EMV_MKEY_CONFIDENTIALITY_HASH = HashingUtils::HashString("TR31_E1_EMV_MKEY_CONFIDENTIALITY"); - static const int TR31_E2_EMV_MKEY_INTEGRITY_HASH = HashingUtils::HashString("TR31_E2_EMV_MKEY_INTEGRITY"); - static const int TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS_HASH = HashingUtils::HashString("TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS"); - static const int TR31_E5_EMV_MKEY_CARD_PERSONALIZATION_HASH = HashingUtils::HashString("TR31_E5_EMV_MKEY_CARD_PERSONALIZATION"); - static const int TR31_E6_EMV_MKEY_OTHER_HASH = HashingUtils::HashString("TR31_E6_EMV_MKEY_OTHER"); - static const int TR31_K0_KEY_ENCRYPTION_KEY_HASH = HashingUtils::HashString("TR31_K0_KEY_ENCRYPTION_KEY"); - static const int TR31_K1_KEY_BLOCK_PROTECTION_KEY_HASH = HashingUtils::HashString("TR31_K1_KEY_BLOCK_PROTECTION_KEY"); - static const int TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT_HASH = HashingUtils::HashString("TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT"); - static const int TR31_M3_ISO_9797_3_MAC_KEY_HASH = HashingUtils::HashString("TR31_M3_ISO_9797_3_MAC_KEY"); - static const int TR31_M6_ISO_9797_5_CMAC_KEY_HASH = HashingUtils::HashString("TR31_M6_ISO_9797_5_CMAC_KEY"); - static const int TR31_M7_HMAC_KEY_HASH = HashingUtils::HashString("TR31_M7_HMAC_KEY"); - static const int TR31_P0_PIN_ENCRYPTION_KEY_HASH = HashingUtils::HashString("TR31_P0_PIN_ENCRYPTION_KEY"); - static const int TR31_P1_PIN_GENERATION_KEY_HASH = HashingUtils::HashString("TR31_P1_PIN_GENERATION_KEY"); - static const int TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE_HASH = HashingUtils::HashString("TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE"); - static const int TR31_V1_IBM3624_PIN_VERIFICATION_KEY_HASH = HashingUtils::HashString("TR31_V1_IBM3624_PIN_VERIFICATION_KEY"); - static const int TR31_V2_VISA_PIN_VERIFICATION_KEY_HASH = HashingUtils::HashString("TR31_V2_VISA_PIN_VERIFICATION_KEY"); - static const int TR31_K2_TR34_ASYMMETRIC_KEY_HASH = HashingUtils::HashString("TR31_K2_TR34_ASYMMETRIC_KEY"); + static constexpr uint32_t TR31_B0_BASE_DERIVATION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_B0_BASE_DERIVATION_KEY"); + static constexpr uint32_t TR31_C0_CARD_VERIFICATION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_C0_CARD_VERIFICATION_KEY"); + static constexpr uint32_t TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY"); + static constexpr uint32_t TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION"); + static constexpr uint32_t TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS_HASH = ConstExprHashingUtils::HashString("TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS"); + static constexpr uint32_t TR31_E1_EMV_MKEY_CONFIDENTIALITY_HASH = ConstExprHashingUtils::HashString("TR31_E1_EMV_MKEY_CONFIDENTIALITY"); + static constexpr uint32_t TR31_E2_EMV_MKEY_INTEGRITY_HASH = ConstExprHashingUtils::HashString("TR31_E2_EMV_MKEY_INTEGRITY"); + static constexpr uint32_t TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS_HASH = ConstExprHashingUtils::HashString("TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS"); + static constexpr uint32_t TR31_E5_EMV_MKEY_CARD_PERSONALIZATION_HASH = ConstExprHashingUtils::HashString("TR31_E5_EMV_MKEY_CARD_PERSONALIZATION"); + static constexpr uint32_t TR31_E6_EMV_MKEY_OTHER_HASH = ConstExprHashingUtils::HashString("TR31_E6_EMV_MKEY_OTHER"); + static constexpr uint32_t TR31_K0_KEY_ENCRYPTION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_K0_KEY_ENCRYPTION_KEY"); + static constexpr uint32_t TR31_K1_KEY_BLOCK_PROTECTION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_K1_KEY_BLOCK_PROTECTION_KEY"); + static constexpr uint32_t TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT_HASH = ConstExprHashingUtils::HashString("TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT"); + static constexpr uint32_t TR31_M3_ISO_9797_3_MAC_KEY_HASH = ConstExprHashingUtils::HashString("TR31_M3_ISO_9797_3_MAC_KEY"); + static constexpr uint32_t TR31_M6_ISO_9797_5_CMAC_KEY_HASH = ConstExprHashingUtils::HashString("TR31_M6_ISO_9797_5_CMAC_KEY"); + static constexpr uint32_t TR31_M7_HMAC_KEY_HASH = ConstExprHashingUtils::HashString("TR31_M7_HMAC_KEY"); + static constexpr uint32_t TR31_P0_PIN_ENCRYPTION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_P0_PIN_ENCRYPTION_KEY"); + static constexpr uint32_t TR31_P1_PIN_GENERATION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_P1_PIN_GENERATION_KEY"); + static constexpr uint32_t TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE_HASH = ConstExprHashingUtils::HashString("TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE"); + static constexpr uint32_t TR31_V1_IBM3624_PIN_VERIFICATION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_V1_IBM3624_PIN_VERIFICATION_KEY"); + static constexpr uint32_t TR31_V2_VISA_PIN_VERIFICATION_KEY_HASH = ConstExprHashingUtils::HashString("TR31_V2_VISA_PIN_VERIFICATION_KEY"); + static constexpr uint32_t TR31_K2_TR34_ASYMMETRIC_KEY_HASH = ConstExprHashingUtils::HashString("TR31_K2_TR34_ASYMMETRIC_KEY"); KeyUsage GetKeyUsageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TR31_B0_BASE_DERIVATION_KEY_HASH) { return KeyUsage::TR31_B0_BASE_DERIVATION_KEY; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Tr34KeyBlockFormat.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Tr34KeyBlockFormat.cpp index d0dac699351..0b59a2535f7 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Tr34KeyBlockFormat.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Tr34KeyBlockFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace Tr34KeyBlockFormatMapper { - static const int X9_TR34_2012_HASH = HashingUtils::HashString("X9_TR34_2012"); + static constexpr uint32_t X9_TR34_2012_HASH = ConstExprHashingUtils::HashString("X9_TR34_2012"); Tr34KeyBlockFormat GetTr34KeyBlockFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == X9_TR34_2012_HASH) { return Tr34KeyBlockFormat::X9_TR34_2012; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKeyMaterialFormat.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKeyMaterialFormat.cpp index 17b440266a4..31c41946714 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKeyMaterialFormat.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKeyMaterialFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WrappedKeyMaterialFormatMapper { - static const int KEY_CRYPTOGRAM_HASH = HashingUtils::HashString("KEY_CRYPTOGRAM"); - static const int TR31_KEY_BLOCK_HASH = HashingUtils::HashString("TR31_KEY_BLOCK"); - static const int TR34_KEY_BLOCK_HASH = HashingUtils::HashString("TR34_KEY_BLOCK"); + static constexpr uint32_t KEY_CRYPTOGRAM_HASH = ConstExprHashingUtils::HashString("KEY_CRYPTOGRAM"); + static constexpr uint32_t TR31_KEY_BLOCK_HASH = ConstExprHashingUtils::HashString("TR31_KEY_BLOCK"); + static constexpr uint32_t TR34_KEY_BLOCK_HASH = ConstExprHashingUtils::HashString("TR34_KEY_BLOCK"); WrappedKeyMaterialFormat GetWrappedKeyMaterialFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_CRYPTOGRAM_HASH) { return WrappedKeyMaterialFormat::KEY_CRYPTOGRAM; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdErrors.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdErrors.cpp index 5d38fa1c019..5fe5049f7b5 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdErrors.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_PCACONNECTORAD_API ValidationException PcaConnectorAdError::GetMo namespace PcaConnectorAdErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/AccessRight.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/AccessRight.cpp index 67ce9e0836e..360206f1288 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/AccessRight.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/AccessRight.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessRightMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); AccessRight GetAccessRightForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return AccessRight::ALLOW; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ApplicationPolicyType.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ApplicationPolicyType.cpp index 3414296585c..8abbbcf1d0f 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ApplicationPolicyType.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ApplicationPolicyType.cpp @@ -20,78 +20,78 @@ namespace Aws namespace ApplicationPolicyTypeMapper { - static const int ALL_APPLICATION_POLICIES_HASH = HashingUtils::HashString("ALL_APPLICATION_POLICIES"); - static const int ANY_PURPOSE_HASH = HashingUtils::HashString("ANY_PURPOSE"); - static const int ATTESTATION_IDENTITY_KEY_CERTIFICATE_HASH = HashingUtils::HashString("ATTESTATION_IDENTITY_KEY_CERTIFICATE"); - static const int CERTIFICATE_REQUEST_AGENT_HASH = HashingUtils::HashString("CERTIFICATE_REQUEST_AGENT"); - static const int CLIENT_AUTHENTICATION_HASH = HashingUtils::HashString("CLIENT_AUTHENTICATION"); - static const int CODE_SIGNING_HASH = HashingUtils::HashString("CODE_SIGNING"); - static const int CTL_USAGE_HASH = HashingUtils::HashString("CTL_USAGE"); - static const int DIGITAL_RIGHTS_HASH = HashingUtils::HashString("DIGITAL_RIGHTS"); - static const int DIRECTORY_SERVICE_EMAIL_REPLICATION_HASH = HashingUtils::HashString("DIRECTORY_SERVICE_EMAIL_REPLICATION"); - static const int DISALLOWED_LIST_HASH = HashingUtils::HashString("DISALLOWED_LIST"); - static const int DNS_SERVER_TRUST_HASH = HashingUtils::HashString("DNS_SERVER_TRUST"); - static const int DOCUMENT_ENCRYPTION_HASH = HashingUtils::HashString("DOCUMENT_ENCRYPTION"); - static const int DOCUMENT_SIGNING_HASH = HashingUtils::HashString("DOCUMENT_SIGNING"); - static const int DYNAMIC_CODE_GENERATOR_HASH = HashingUtils::HashString("DYNAMIC_CODE_GENERATOR"); - static const int EARLY_LAUNCH_ANTIMALWARE_DRIVER_HASH = HashingUtils::HashString("EARLY_LAUNCH_ANTIMALWARE_DRIVER"); - static const int EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION_HASH = HashingUtils::HashString("EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION"); - static const int ENCLAVE_HASH = HashingUtils::HashString("ENCLAVE"); - static const int ENCRYPTING_FILE_SYSTEM_HASH = HashingUtils::HashString("ENCRYPTING_FILE_SYSTEM"); - static const int ENDORSEMENT_KEY_CERTIFICATE_HASH = HashingUtils::HashString("ENDORSEMENT_KEY_CERTIFICATE"); - static const int FILE_RECOVERY_HASH = HashingUtils::HashString("FILE_RECOVERY"); - static const int HAL_EXTENSION_HASH = HashingUtils::HashString("HAL_EXTENSION"); - static const int IP_SECURITY_END_SYSTEM_HASH = HashingUtils::HashString("IP_SECURITY_END_SYSTEM"); - static const int IP_SECURITY_IKE_INTERMEDIATE_HASH = HashingUtils::HashString("IP_SECURITY_IKE_INTERMEDIATE"); - static const int IP_SECURITY_TUNNEL_TERMINATION_HASH = HashingUtils::HashString("IP_SECURITY_TUNNEL_TERMINATION"); - static const int IP_SECURITY_USER_HASH = HashingUtils::HashString("IP_SECURITY_USER"); - static const int ISOLATED_USER_MODE_HASH = HashingUtils::HashString("ISOLATED_USER_MODE"); - static const int KDC_AUTHENTICATION_HASH = HashingUtils::HashString("KDC_AUTHENTICATION"); - static const int KERNEL_MODE_CODE_SIGNING_HASH = HashingUtils::HashString("KERNEL_MODE_CODE_SIGNING"); - static const int KEY_PACK_LICENSES_HASH = HashingUtils::HashString("KEY_PACK_LICENSES"); - static const int KEY_RECOVERY_HASH = HashingUtils::HashString("KEY_RECOVERY"); - static const int KEY_RECOVERY_AGENT_HASH = HashingUtils::HashString("KEY_RECOVERY_AGENT"); - static const int LICENSE_SERVER_VERIFICATION_HASH = HashingUtils::HashString("LICENSE_SERVER_VERIFICATION"); - static const int LIFETIME_SIGNING_HASH = HashingUtils::HashString("LIFETIME_SIGNING"); - static const int MICROSOFT_PUBLISHER_HASH = HashingUtils::HashString("MICROSOFT_PUBLISHER"); - static const int MICROSOFT_TIME_STAMPING_HASH = HashingUtils::HashString("MICROSOFT_TIME_STAMPING"); - static const int MICROSOFT_TRUST_LIST_SIGNING_HASH = HashingUtils::HashString("MICROSOFT_TRUST_LIST_SIGNING"); - static const int OCSP_SIGNING_HASH = HashingUtils::HashString("OCSP_SIGNING"); - static const int OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION_HASH = HashingUtils::HashString("OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION"); - static const int PLATFORM_CERTIFICATE_HASH = HashingUtils::HashString("PLATFORM_CERTIFICATE"); - static const int PREVIEW_BUILD_SIGNING_HASH = HashingUtils::HashString("PREVIEW_BUILD_SIGNING"); - static const int PRIVATE_KEY_ARCHIVAL_HASH = HashingUtils::HashString("PRIVATE_KEY_ARCHIVAL"); - static const int PROTECTED_PROCESS_LIGHT_VERIFICATION_HASH = HashingUtils::HashString("PROTECTED_PROCESS_LIGHT_VERIFICATION"); - static const int PROTECTED_PROCESS_VERIFICATION_HASH = HashingUtils::HashString("PROTECTED_PROCESS_VERIFICATION"); - static const int QUALIFIED_SUBORDINATION_HASH = HashingUtils::HashString("QUALIFIED_SUBORDINATION"); - static const int REVOKED_LIST_SIGNER_HASH = HashingUtils::HashString("REVOKED_LIST_SIGNER"); - static const int ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION_HASH = HashingUtils::HashString("ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION"); - static const int ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION_HASH = HashingUtils::HashString("ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION"); - static const int ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL_HASH = HashingUtils::HashString("ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL"); - static const int ROOT_LIST_SIGNER_HASH = HashingUtils::HashString("ROOT_LIST_SIGNER"); - static const int SECURE_EMAIL_HASH = HashingUtils::HashString("SECURE_EMAIL"); - static const int SERVER_AUTHENTICATION_HASH = HashingUtils::HashString("SERVER_AUTHENTICATION"); - static const int SMART_CARD_LOGIN_HASH = HashingUtils::HashString("SMART_CARD_LOGIN"); - static const int SPC_ENCRYPTED_DIGEST_RETRY_COUNT_HASH = HashingUtils::HashString("SPC_ENCRYPTED_DIGEST_RETRY_COUNT"); - static const int SPC_RELAXED_PE_MARKER_CHECK_HASH = HashingUtils::HashString("SPC_RELAXED_PE_MARKER_CHECK"); - static const int TIME_STAMPING_HASH = HashingUtils::HashString("TIME_STAMPING"); - static const int WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION_HASH = HashingUtils::HashString("WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION"); - static const int WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION_HASH = HashingUtils::HashString("WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION"); - static const int WINDOWS_HARDWARE_DRIVER_VERIFICATION_HASH = HashingUtils::HashString("WINDOWS_HARDWARE_DRIVER_VERIFICATION"); - static const int WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION_HASH = HashingUtils::HashString("WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION"); - static const int WINDOWS_KITS_COMPONENT_HASH = HashingUtils::HashString("WINDOWS_KITS_COMPONENT"); - static const int WINDOWS_RT_VERIFICATION_HASH = HashingUtils::HashString("WINDOWS_RT_VERIFICATION"); - static const int WINDOWS_SOFTWARE_EXTENSION_VERIFICATION_HASH = HashingUtils::HashString("WINDOWS_SOFTWARE_EXTENSION_VERIFICATION"); - static const int WINDOWS_STORE_HASH = HashingUtils::HashString("WINDOWS_STORE"); - static const int WINDOWS_SYSTEM_COMPONENT_VERIFICATION_HASH = HashingUtils::HashString("WINDOWS_SYSTEM_COMPONENT_VERIFICATION"); - static const int WINDOWS_TCB_COMPONENT_HASH = HashingUtils::HashString("WINDOWS_TCB_COMPONENT"); - static const int WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT_HASH = HashingUtils::HashString("WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT"); - static const int WINDOWS_UPDATE_HASH = HashingUtils::HashString("WINDOWS_UPDATE"); + static constexpr uint32_t ALL_APPLICATION_POLICIES_HASH = ConstExprHashingUtils::HashString("ALL_APPLICATION_POLICIES"); + static constexpr uint32_t ANY_PURPOSE_HASH = ConstExprHashingUtils::HashString("ANY_PURPOSE"); + static constexpr uint32_t ATTESTATION_IDENTITY_KEY_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("ATTESTATION_IDENTITY_KEY_CERTIFICATE"); + static constexpr uint32_t CERTIFICATE_REQUEST_AGENT_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_REQUEST_AGENT"); + static constexpr uint32_t CLIENT_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("CLIENT_AUTHENTICATION"); + static constexpr uint32_t CODE_SIGNING_HASH = ConstExprHashingUtils::HashString("CODE_SIGNING"); + static constexpr uint32_t CTL_USAGE_HASH = ConstExprHashingUtils::HashString("CTL_USAGE"); + static constexpr uint32_t DIGITAL_RIGHTS_HASH = ConstExprHashingUtils::HashString("DIGITAL_RIGHTS"); + static constexpr uint32_t DIRECTORY_SERVICE_EMAIL_REPLICATION_HASH = ConstExprHashingUtils::HashString("DIRECTORY_SERVICE_EMAIL_REPLICATION"); + static constexpr uint32_t DISALLOWED_LIST_HASH = ConstExprHashingUtils::HashString("DISALLOWED_LIST"); + static constexpr uint32_t DNS_SERVER_TRUST_HASH = ConstExprHashingUtils::HashString("DNS_SERVER_TRUST"); + static constexpr uint32_t DOCUMENT_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("DOCUMENT_ENCRYPTION"); + static constexpr uint32_t DOCUMENT_SIGNING_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SIGNING"); + static constexpr uint32_t DYNAMIC_CODE_GENERATOR_HASH = ConstExprHashingUtils::HashString("DYNAMIC_CODE_GENERATOR"); + static constexpr uint32_t EARLY_LAUNCH_ANTIMALWARE_DRIVER_HASH = ConstExprHashingUtils::HashString("EARLY_LAUNCH_ANTIMALWARE_DRIVER"); + static constexpr uint32_t EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION_HASH = ConstExprHashingUtils::HashString("EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION"); + static constexpr uint32_t ENCLAVE_HASH = ConstExprHashingUtils::HashString("ENCLAVE"); + static constexpr uint32_t ENCRYPTING_FILE_SYSTEM_HASH = ConstExprHashingUtils::HashString("ENCRYPTING_FILE_SYSTEM"); + static constexpr uint32_t ENDORSEMENT_KEY_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("ENDORSEMENT_KEY_CERTIFICATE"); + static constexpr uint32_t FILE_RECOVERY_HASH = ConstExprHashingUtils::HashString("FILE_RECOVERY"); + static constexpr uint32_t HAL_EXTENSION_HASH = ConstExprHashingUtils::HashString("HAL_EXTENSION"); + static constexpr uint32_t IP_SECURITY_END_SYSTEM_HASH = ConstExprHashingUtils::HashString("IP_SECURITY_END_SYSTEM"); + static constexpr uint32_t IP_SECURITY_IKE_INTERMEDIATE_HASH = ConstExprHashingUtils::HashString("IP_SECURITY_IKE_INTERMEDIATE"); + static constexpr uint32_t IP_SECURITY_TUNNEL_TERMINATION_HASH = ConstExprHashingUtils::HashString("IP_SECURITY_TUNNEL_TERMINATION"); + static constexpr uint32_t IP_SECURITY_USER_HASH = ConstExprHashingUtils::HashString("IP_SECURITY_USER"); + static constexpr uint32_t ISOLATED_USER_MODE_HASH = ConstExprHashingUtils::HashString("ISOLATED_USER_MODE"); + static constexpr uint32_t KDC_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("KDC_AUTHENTICATION"); + static constexpr uint32_t KERNEL_MODE_CODE_SIGNING_HASH = ConstExprHashingUtils::HashString("KERNEL_MODE_CODE_SIGNING"); + static constexpr uint32_t KEY_PACK_LICENSES_HASH = ConstExprHashingUtils::HashString("KEY_PACK_LICENSES"); + static constexpr uint32_t KEY_RECOVERY_HASH = ConstExprHashingUtils::HashString("KEY_RECOVERY"); + static constexpr uint32_t KEY_RECOVERY_AGENT_HASH = ConstExprHashingUtils::HashString("KEY_RECOVERY_AGENT"); + static constexpr uint32_t LICENSE_SERVER_VERIFICATION_HASH = ConstExprHashingUtils::HashString("LICENSE_SERVER_VERIFICATION"); + static constexpr uint32_t LIFETIME_SIGNING_HASH = ConstExprHashingUtils::HashString("LIFETIME_SIGNING"); + static constexpr uint32_t MICROSOFT_PUBLISHER_HASH = ConstExprHashingUtils::HashString("MICROSOFT_PUBLISHER"); + static constexpr uint32_t MICROSOFT_TIME_STAMPING_HASH = ConstExprHashingUtils::HashString("MICROSOFT_TIME_STAMPING"); + static constexpr uint32_t MICROSOFT_TRUST_LIST_SIGNING_HASH = ConstExprHashingUtils::HashString("MICROSOFT_TRUST_LIST_SIGNING"); + static constexpr uint32_t OCSP_SIGNING_HASH = ConstExprHashingUtils::HashString("OCSP_SIGNING"); + static constexpr uint32_t OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION_HASH = ConstExprHashingUtils::HashString("OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION"); + static constexpr uint32_t PLATFORM_CERTIFICATE_HASH = ConstExprHashingUtils::HashString("PLATFORM_CERTIFICATE"); + static constexpr uint32_t PREVIEW_BUILD_SIGNING_HASH = ConstExprHashingUtils::HashString("PREVIEW_BUILD_SIGNING"); + static constexpr uint32_t PRIVATE_KEY_ARCHIVAL_HASH = ConstExprHashingUtils::HashString("PRIVATE_KEY_ARCHIVAL"); + static constexpr uint32_t PROTECTED_PROCESS_LIGHT_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PROTECTED_PROCESS_LIGHT_VERIFICATION"); + static constexpr uint32_t PROTECTED_PROCESS_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PROTECTED_PROCESS_VERIFICATION"); + static constexpr uint32_t QUALIFIED_SUBORDINATION_HASH = ConstExprHashingUtils::HashString("QUALIFIED_SUBORDINATION"); + static constexpr uint32_t REVOKED_LIST_SIGNER_HASH = ConstExprHashingUtils::HashString("REVOKED_LIST_SIGNER"); + static constexpr uint32_t ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION_HASH = ConstExprHashingUtils::HashString("ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION"); + static constexpr uint32_t ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION_HASH = ConstExprHashingUtils::HashString("ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION"); + static constexpr uint32_t ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL_HASH = ConstExprHashingUtils::HashString("ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL"); + static constexpr uint32_t ROOT_LIST_SIGNER_HASH = ConstExprHashingUtils::HashString("ROOT_LIST_SIGNER"); + static constexpr uint32_t SECURE_EMAIL_HASH = ConstExprHashingUtils::HashString("SECURE_EMAIL"); + static constexpr uint32_t SERVER_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("SERVER_AUTHENTICATION"); + static constexpr uint32_t SMART_CARD_LOGIN_HASH = ConstExprHashingUtils::HashString("SMART_CARD_LOGIN"); + static constexpr uint32_t SPC_ENCRYPTED_DIGEST_RETRY_COUNT_HASH = ConstExprHashingUtils::HashString("SPC_ENCRYPTED_DIGEST_RETRY_COUNT"); + static constexpr uint32_t SPC_RELAXED_PE_MARKER_CHECK_HASH = ConstExprHashingUtils::HashString("SPC_RELAXED_PE_MARKER_CHECK"); + static constexpr uint32_t TIME_STAMPING_HASH = ConstExprHashingUtils::HashString("TIME_STAMPING"); + static constexpr uint32_t WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION_HASH = ConstExprHashingUtils::HashString("WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION"); + static constexpr uint32_t WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION_HASH = ConstExprHashingUtils::HashString("WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION"); + static constexpr uint32_t WINDOWS_HARDWARE_DRIVER_VERIFICATION_HASH = ConstExprHashingUtils::HashString("WINDOWS_HARDWARE_DRIVER_VERIFICATION"); + static constexpr uint32_t WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION"); + static constexpr uint32_t WINDOWS_KITS_COMPONENT_HASH = ConstExprHashingUtils::HashString("WINDOWS_KITS_COMPONENT"); + static constexpr uint32_t WINDOWS_RT_VERIFICATION_HASH = ConstExprHashingUtils::HashString("WINDOWS_RT_VERIFICATION"); + static constexpr uint32_t WINDOWS_SOFTWARE_EXTENSION_VERIFICATION_HASH = ConstExprHashingUtils::HashString("WINDOWS_SOFTWARE_EXTENSION_VERIFICATION"); + static constexpr uint32_t WINDOWS_STORE_HASH = ConstExprHashingUtils::HashString("WINDOWS_STORE"); + static constexpr uint32_t WINDOWS_SYSTEM_COMPONENT_VERIFICATION_HASH = ConstExprHashingUtils::HashString("WINDOWS_SYSTEM_COMPONENT_VERIFICATION"); + static constexpr uint32_t WINDOWS_TCB_COMPONENT_HASH = ConstExprHashingUtils::HashString("WINDOWS_TCB_COMPONENT"); + static constexpr uint32_t WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT_HASH = ConstExprHashingUtils::HashString("WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT"); + static constexpr uint32_t WINDOWS_UPDATE_HASH = ConstExprHashingUtils::HashString("WINDOWS_UPDATE"); ApplicationPolicyType GetApplicationPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_APPLICATION_POLICIES_HASH) { return ApplicationPolicyType::ALL_APPLICATION_POLICIES; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV2.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV2.cpp index 73e653e8f2c..be29db18dbd 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV2.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV2.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ClientCompatibilityV2Mapper { - static const int WINDOWS_SERVER_2003_HASH = HashingUtils::HashString("WINDOWS_SERVER_2003"); - static const int WINDOWS_SERVER_2008_HASH = HashingUtils::HashString("WINDOWS_SERVER_2008"); - static const int WINDOWS_SERVER_2008_R2_HASH = HashingUtils::HashString("WINDOWS_SERVER_2008_R2"); - static const int WINDOWS_SERVER_2012_HASH = HashingUtils::HashString("WINDOWS_SERVER_2012"); - static const int WINDOWS_SERVER_2012_R2_HASH = HashingUtils::HashString("WINDOWS_SERVER_2012_R2"); - static const int WINDOWS_SERVER_2016_HASH = HashingUtils::HashString("WINDOWS_SERVER_2016"); + static constexpr uint32_t WINDOWS_SERVER_2003_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2003"); + static constexpr uint32_t WINDOWS_SERVER_2008_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2008"); + static constexpr uint32_t WINDOWS_SERVER_2008_R2_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2008_R2"); + static constexpr uint32_t WINDOWS_SERVER_2012_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2012"); + static constexpr uint32_t WINDOWS_SERVER_2012_R2_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2012_R2"); + static constexpr uint32_t WINDOWS_SERVER_2016_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2016"); ClientCompatibilityV2 GetClientCompatibilityV2ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_SERVER_2003_HASH) { return ClientCompatibilityV2::WINDOWS_SERVER_2003; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV3.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV3.cpp index a2a19984376..8dd98deb373 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV3.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV3.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ClientCompatibilityV3Mapper { - static const int WINDOWS_SERVER_2008_HASH = HashingUtils::HashString("WINDOWS_SERVER_2008"); - static const int WINDOWS_SERVER_2008_R2_HASH = HashingUtils::HashString("WINDOWS_SERVER_2008_R2"); - static const int WINDOWS_SERVER_2012_HASH = HashingUtils::HashString("WINDOWS_SERVER_2012"); - static const int WINDOWS_SERVER_2012_R2_HASH = HashingUtils::HashString("WINDOWS_SERVER_2012_R2"); - static const int WINDOWS_SERVER_2016_HASH = HashingUtils::HashString("WINDOWS_SERVER_2016"); + static constexpr uint32_t WINDOWS_SERVER_2008_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2008"); + static constexpr uint32_t WINDOWS_SERVER_2008_R2_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2008_R2"); + static constexpr uint32_t WINDOWS_SERVER_2012_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2012"); + static constexpr uint32_t WINDOWS_SERVER_2012_R2_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2012_R2"); + static constexpr uint32_t WINDOWS_SERVER_2016_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2016"); ClientCompatibilityV3 GetClientCompatibilityV3ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_SERVER_2008_HASH) { return ClientCompatibilityV3::WINDOWS_SERVER_2008; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV4.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV4.cpp index c965366e892..8c55cc45c35 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV4.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ClientCompatibilityV4.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClientCompatibilityV4Mapper { - static const int WINDOWS_SERVER_2012_HASH = HashingUtils::HashString("WINDOWS_SERVER_2012"); - static const int WINDOWS_SERVER_2012_R2_HASH = HashingUtils::HashString("WINDOWS_SERVER_2012_R2"); - static const int WINDOWS_SERVER_2016_HASH = HashingUtils::HashString("WINDOWS_SERVER_2016"); + static constexpr uint32_t WINDOWS_SERVER_2012_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2012"); + static constexpr uint32_t WINDOWS_SERVER_2012_R2_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2012_R2"); + static constexpr uint32_t WINDOWS_SERVER_2016_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2016"); ClientCompatibilityV4 GetClientCompatibilityV4ForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_SERVER_2012_HASH) { return ClientCompatibilityV4::WINDOWS_SERVER_2012; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatus.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatus.cpp index e309b6ea0ce..bd9a705e5bf 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatus.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConnectorStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ConnectorStatus GetConnectorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConnectorStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatusReason.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatusReason.cpp index de892479e58..0f9f6b764cd 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ConnectorStatusReason.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ConnectorStatusReasonMapper { - static const int DIRECTORY_ACCESS_DENIED_HASH = HashingUtils::HashString("DIRECTORY_ACCESS_DENIED"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int PRIVATECA_ACCESS_DENIED_HASH = HashingUtils::HashString("PRIVATECA_ACCESS_DENIED"); - static const int PRIVATECA_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("PRIVATECA_RESOURCE_NOT_FOUND"); - static const int SECURITY_GROUP_NOT_IN_VPC_HASH = HashingUtils::HashString("SECURITY_GROUP_NOT_IN_VPC"); - static const int VPC_ACCESS_DENIED_HASH = HashingUtils::HashString("VPC_ACCESS_DENIED"); - static const int VPC_ENDPOINT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("VPC_ENDPOINT_LIMIT_EXCEEDED"); - static const int VPC_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("VPC_RESOURCE_NOT_FOUND"); + static constexpr uint32_t DIRECTORY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("DIRECTORY_ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t PRIVATECA_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("PRIVATECA_ACCESS_DENIED"); + static constexpr uint32_t PRIVATECA_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PRIVATECA_RESOURCE_NOT_FOUND"); + static constexpr uint32_t SECURITY_GROUP_NOT_IN_VPC_HASH = ConstExprHashingUtils::HashString("SECURITY_GROUP_NOT_IN_VPC"); + static constexpr uint32_t VPC_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("VPC_ACCESS_DENIED"); + static constexpr uint32_t VPC_ENDPOINT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("VPC_ENDPOINT_LIMIT_EXCEEDED"); + static constexpr uint32_t VPC_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("VPC_RESOURCE_NOT_FOUND"); ConnectorStatusReason GetConnectorStatusReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECTORY_ACCESS_DENIED_HASH) { return ConnectorStatusReason::DIRECTORY_ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatus.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatus.cpp index 47356628593..bb407381428 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DirectoryRegistrationStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DirectoryRegistrationStatus GetDirectoryRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return DirectoryRegistrationStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatusReason.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatusReason.cpp index 044c59cbd2a..d39c987d734 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/DirectoryRegistrationStatusReason.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DirectoryRegistrationStatusReasonMapper { - static const int DIRECTORY_ACCESS_DENIED_HASH = HashingUtils::HashString("DIRECTORY_ACCESS_DENIED"); - static const int DIRECTORY_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("DIRECTORY_RESOURCE_NOT_FOUND"); - static const int DIRECTORY_NOT_ACTIVE_HASH = HashingUtils::HashString("DIRECTORY_NOT_ACTIVE"); - static const int DIRECTORY_NOT_REACHABLE_HASH = HashingUtils::HashString("DIRECTORY_NOT_REACHABLE"); - static const int DIRECTORY_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("DIRECTORY_TYPE_NOT_SUPPORTED"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t DIRECTORY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("DIRECTORY_ACCESS_DENIED"); + static constexpr uint32_t DIRECTORY_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DIRECTORY_RESOURCE_NOT_FOUND"); + static constexpr uint32_t DIRECTORY_NOT_ACTIVE_HASH = ConstExprHashingUtils::HashString("DIRECTORY_NOT_ACTIVE"); + static constexpr uint32_t DIRECTORY_NOT_REACHABLE_HASH = ConstExprHashingUtils::HashString("DIRECTORY_NOT_REACHABLE"); + static constexpr uint32_t DIRECTORY_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("DIRECTORY_TYPE_NOT_SUPPORTED"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); DirectoryRegistrationStatusReason GetDirectoryRegistrationStatusReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECTORY_ACCESS_DENIED_HASH) { return DirectoryRegistrationStatusReason::DIRECTORY_ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/HashAlgorithm.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/HashAlgorithm.cpp index 8624d49ce2f..4e43c04fc8c 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/HashAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/HashAlgorithm.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HashAlgorithmMapper { - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); - static const int SHA384_HASH = HashingUtils::HashString("SHA384"); - static const int SHA512_HASH = HashingUtils::HashString("SHA512"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); + static constexpr uint32_t SHA384_HASH = ConstExprHashingUtils::HashString("SHA384"); + static constexpr uint32_t SHA512_HASH = ConstExprHashingUtils::HashString("SHA512"); HashAlgorithm GetHashAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA256_HASH) { return HashAlgorithm::SHA256; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeySpec.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeySpec.cpp index 0259f26ef4e..cddb2a28c3b 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeySpec.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeySpec.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KeySpecMapper { - static const int KEY_EXCHANGE_HASH = HashingUtils::HashString("KEY_EXCHANGE"); - static const int SIGNATURE_HASH = HashingUtils::HashString("SIGNATURE"); + static constexpr uint32_t KEY_EXCHANGE_HASH = ConstExprHashingUtils::HashString("KEY_EXCHANGE"); + static constexpr uint32_t SIGNATURE_HASH = ConstExprHashingUtils::HashString("SIGNATURE"); KeySpec GetKeySpecForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_EXCHANGE_HASH) { return KeySpec::KEY_EXCHANGE; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeyUsagePropertyType.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeyUsagePropertyType.cpp index 8ef60df7623..a1fee036ce9 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeyUsagePropertyType.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/KeyUsagePropertyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace KeyUsagePropertyTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); KeyUsagePropertyType GetKeyUsagePropertyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return KeyUsagePropertyType::ALL; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/PrivateKeyAlgorithm.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/PrivateKeyAlgorithm.cpp index c9be0bfc8ea..b665794b3b1 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/PrivateKeyAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/PrivateKeyAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PrivateKeyAlgorithmMapper { - static const int RSA_HASH = HashingUtils::HashString("RSA"); - static const int ECDH_P256_HASH = HashingUtils::HashString("ECDH_P256"); - static const int ECDH_P384_HASH = HashingUtils::HashString("ECDH_P384"); - static const int ECDH_P521_HASH = HashingUtils::HashString("ECDH_P521"); + static constexpr uint32_t RSA_HASH = ConstExprHashingUtils::HashString("RSA"); + static constexpr uint32_t ECDH_P256_HASH = ConstExprHashingUtils::HashString("ECDH_P256"); + static constexpr uint32_t ECDH_P384_HASH = ConstExprHashingUtils::HashString("ECDH_P384"); + static constexpr uint32_t ECDH_P521_HASH = ConstExprHashingUtils::HashString("ECDH_P521"); PrivateKeyAlgorithm GetPrivateKeyAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_HASH) { return PrivateKeyAlgorithm::RSA; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatus.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatus.cpp index 10f697d16e5..81250f9d450 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatus.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ServicePrincipalNameStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ServicePrincipalNameStatus GetServicePrincipalNameStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ServicePrincipalNameStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatusReason.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatusReason.cpp index 4cfd9c3c7b0..a40fc04f7ef 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ServicePrincipalNameStatusReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServicePrincipalNameStatusReasonMapper { - static const int DIRECTORY_ACCESS_DENIED_HASH = HashingUtils::HashString("DIRECTORY_ACCESS_DENIED"); - static const int DIRECTORY_NOT_REACHABLE_HASH = HashingUtils::HashString("DIRECTORY_NOT_REACHABLE"); - static const int DIRECTORY_RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("DIRECTORY_RESOURCE_NOT_FOUND"); - static const int SPN_EXISTS_ON_DIFFERENT_AD_OBJECT_HASH = HashingUtils::HashString("SPN_EXISTS_ON_DIFFERENT_AD_OBJECT"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t DIRECTORY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("DIRECTORY_ACCESS_DENIED"); + static constexpr uint32_t DIRECTORY_NOT_REACHABLE_HASH = ConstExprHashingUtils::HashString("DIRECTORY_NOT_REACHABLE"); + static constexpr uint32_t DIRECTORY_RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DIRECTORY_RESOURCE_NOT_FOUND"); + static constexpr uint32_t SPN_EXISTS_ON_DIFFERENT_AD_OBJECT_HASH = ConstExprHashingUtils::HashString("SPN_EXISTS_ON_DIFFERENT_AD_OBJECT"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); ServicePrincipalNameStatusReason GetServicePrincipalNameStatusReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECTORY_ACCESS_DENIED_HASH) { return ServicePrincipalNameStatusReason::DIRECTORY_ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/TemplateStatus.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/TemplateStatus.cpp index 409288f293c..95bedb51196 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/TemplateStatus.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/TemplateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); TemplateStatus GetTemplateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TemplateStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidationExceptionReason.cpp index 241f8490b61..cec3dbfe662 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidationExceptionReason.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int INVALID_PERMISSION_HASH = HashingUtils::HashString("INVALID_PERMISSION"); - static const int INVALID_STATE_HASH = HashingUtils::HashString("INVALID_STATE"); - static const int MISMATCHED_CONNECTOR_HASH = HashingUtils::HashString("MISMATCHED_CONNECTOR"); - static const int MISMATCHED_VPC_HASH = HashingUtils::HashString("MISMATCHED_VPC"); - static const int NO_CLIENT_TOKEN_HASH = HashingUtils::HashString("NO_CLIENT_TOKEN"); - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t INVALID_PERMISSION_HASH = ConstExprHashingUtils::HashString("INVALID_PERMISSION"); + static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_STATE"); + static constexpr uint32_t MISMATCHED_CONNECTOR_HASH = ConstExprHashingUtils::HashString("MISMATCHED_CONNECTOR"); + static constexpr uint32_t MISMATCHED_VPC_HASH = ConstExprHashingUtils::HashString("MISMATCHED_VPC"); + static constexpr uint32_t NO_CLIENT_TOKEN_HASH = ConstExprHashingUtils::HashString("NO_CLIENT_TOKEN"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIELD_VALIDATION_FAILED_HASH) { return ValidationExceptionReason::FIELD_VALIDATION_FAILED; diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidityPeriodType.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidityPeriodType.cpp index 370e849aa0b..491fd2674ef 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidityPeriodType.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/model/ValidityPeriodType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidityPeriodTypeMapper { - static const int HOURS_HASH = HashingUtils::HashString("HOURS"); - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); - static const int WEEKS_HASH = HashingUtils::HashString("WEEKS"); - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); - static const int YEARS_HASH = HashingUtils::HashString("YEARS"); + static constexpr uint32_t HOURS_HASH = ConstExprHashingUtils::HashString("HOURS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); + static constexpr uint32_t WEEKS_HASH = ConstExprHashingUtils::HashString("WEEKS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); + static constexpr uint32_t YEARS_HASH = ConstExprHashingUtils::HashString("YEARS"); ValidityPeriodType GetValidityPeriodTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURS_HASH) { return ValidityPeriodType::HOURS; diff --git a/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsErrors.cpp b/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsErrors.cpp index 23b6d71d002..46c0b532ed2 100644 --- a/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsErrors.cpp +++ b/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsErrors.cpp @@ -18,13 +18,13 @@ namespace PersonalizeEvents namespace PersonalizeEventsErrorMapper { -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_INPUT_HASH) { diff --git a/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeErrors.cpp b/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeErrors.cpp index d895575b2d5..662eaaac21b 100644 --- a/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeErrors.cpp @@ -18,12 +18,12 @@ namespace PersonalizeRuntime namespace PersonalizeRuntimeErrorMapper { -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_INPUT_HASH) { diff --git a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeErrors.cpp b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeErrors.cpp index a8c99188028..a13a71a3bc3 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeErrors.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeErrors.cpp @@ -18,18 +18,18 @@ namespace Personalize namespace PersonalizeErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int TOO_MANY_TAG_KEYS_HASH = HashingUtils::HashString("TooManyTagKeysException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TOO_MANY_TAG_KEYS_HASH = ConstExprHashingUtils::HashString("TooManyTagKeysException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/Domain.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/Domain.cpp index b45d7f66e23..b38fbcacaa8 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/Domain.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/Domain.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DomainMapper { - static const int ECOMMERCE_HASH = HashingUtils::HashString("ECOMMERCE"); - static const int VIDEO_ON_DEMAND_HASH = HashingUtils::HashString("VIDEO_ON_DEMAND"); + static constexpr uint32_t ECOMMERCE_HASH = ConstExprHashingUtils::HashString("ECOMMERCE"); + static constexpr uint32_t VIDEO_ON_DEMAND_HASH = ConstExprHashingUtils::HashString("VIDEO_ON_DEMAND"); Domain GetDomainForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ECOMMERCE_HASH) { return Domain::ECOMMERCE; diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/ImportMode.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/ImportMode.cpp index f2276610a83..0347001386b 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/ImportMode.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/ImportMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImportModeMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int INCREMENTAL_HASH = HashingUtils::HashString("INCREMENTAL"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t INCREMENTAL_HASH = ConstExprHashingUtils::HashString("INCREMENTAL"); ImportMode GetImportModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return ImportMode::FULL; diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/IngestionMode.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/IngestionMode.cpp index aa38004b8ec..22fe132ecc0 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/IngestionMode.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/IngestionMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IngestionModeMapper { - static const int BULK_HASH = HashingUtils::HashString("BULK"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t BULK_HASH = ConstExprHashingUtils::HashString("BULK"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); IngestionMode GetIngestionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BULK_HASH) { return IngestionMode::BULK; diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/ObjectiveSensitivity.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/ObjectiveSensitivity.cpp index 26799fcd91b..8f01302921a 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/ObjectiveSensitivity.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/ObjectiveSensitivity.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ObjectiveSensitivityMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); ObjectiveSensitivity GetObjectiveSensitivityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return ObjectiveSensitivity::LOW; diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/RecipeProvider.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/RecipeProvider.cpp index 649575f1b4c..aea22de51fa 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/RecipeProvider.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/RecipeProvider.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecipeProviderMapper { - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); RecipeProvider GetRecipeProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_HASH) { return RecipeProvider::SERVICE; diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/TrainingMode.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/TrainingMode.cpp index 1c1c2909cd8..ada60112c70 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/TrainingMode.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/TrainingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrainingModeMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); TrainingMode GetTrainingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return TrainingMode::FULL; diff --git a/generated/src/aws-cpp-sdk-pi/source/PIErrors.cpp b/generated/src/aws-cpp-sdk-pi/source/PIErrors.cpp index 0fb20306be8..bc522ac5d2f 100644 --- a/generated/src/aws-cpp-sdk-pi/source/PIErrors.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/PIErrors.cpp @@ -18,14 +18,14 @@ namespace PI namespace PIErrorMapper { -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceError"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-pi/source/model/AcceptLanguage.cpp b/generated/src/aws-cpp-sdk-pi/source/model/AcceptLanguage.cpp index 6e00c101dfb..cd748f746b1 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/AcceptLanguage.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/AcceptLanguage.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AcceptLanguageMapper { - static const int EN_US_HASH = HashingUtils::HashString("EN_US"); + static constexpr uint32_t EN_US_HASH = ConstExprHashingUtils::HashString("EN_US"); AcceptLanguage GetAcceptLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EN_US_HASH) { return AcceptLanguage::EN_US; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/AnalysisStatus.cpp b/generated/src/aws-cpp-sdk-pi/source/model/AnalysisStatus.cpp index 28b377aff3b..5d94c0746ed 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/AnalysisStatus.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/AnalysisStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AnalysisStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AnalysisStatus GetAnalysisStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return AnalysisStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/ContextType.cpp b/generated/src/aws-cpp-sdk-pi/source/model/ContextType.cpp index 4de288f4490..82eb9a05335 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/ContextType.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/ContextType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContextTypeMapper { - static const int CAUSAL_HASH = HashingUtils::HashString("CAUSAL"); - static const int CONTEXTUAL_HASH = HashingUtils::HashString("CONTEXTUAL"); + static constexpr uint32_t CAUSAL_HASH = ConstExprHashingUtils::HashString("CAUSAL"); + static constexpr uint32_t CONTEXTUAL_HASH = ConstExprHashingUtils::HashString("CONTEXTUAL"); ContextType GetContextTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAUSAL_HASH) { return ContextType::CAUSAL; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/DetailStatus.cpp b/generated/src/aws-cpp-sdk-pi/source/model/DetailStatus.cpp index f3b54578848..03a56df9f63 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/DetailStatus.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/DetailStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DetailStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); DetailStatus GetDetailStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return DetailStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/FeatureStatus.cpp b/generated/src/aws-cpp-sdk-pi/source/model/FeatureStatus.cpp index 04f07fd67ef..4e6ad1cc5d1 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/FeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/FeatureStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FeatureStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int UNSUPPORTED_HASH = HashingUtils::HashString("UNSUPPORTED"); - static const int ENABLED_PENDING_REBOOT_HASH = HashingUtils::HashString("ENABLED_PENDING_REBOOT"); - static const int DISABLED_PENDING_REBOOT_HASH = HashingUtils::HashString("DISABLED_PENDING_REBOOT"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t UNSUPPORTED_HASH = ConstExprHashingUtils::HashString("UNSUPPORTED"); + static constexpr uint32_t ENABLED_PENDING_REBOOT_HASH = ConstExprHashingUtils::HashString("ENABLED_PENDING_REBOOT"); + static constexpr uint32_t DISABLED_PENDING_REBOOT_HASH = ConstExprHashingUtils::HashString("DISABLED_PENDING_REBOOT"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); FeatureStatus GetFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return FeatureStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/PeriodAlignment.cpp b/generated/src/aws-cpp-sdk-pi/source/model/PeriodAlignment.cpp index a34e548da3a..680d80ff263 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/PeriodAlignment.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/PeriodAlignment.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PeriodAlignmentMapper { - static const int END_TIME_HASH = HashingUtils::HashString("END_TIME"); - static const int START_TIME_HASH = HashingUtils::HashString("START_TIME"); + static constexpr uint32_t END_TIME_HASH = ConstExprHashingUtils::HashString("END_TIME"); + static constexpr uint32_t START_TIME_HASH = ConstExprHashingUtils::HashString("START_TIME"); PeriodAlignment GetPeriodAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == END_TIME_HASH) { return PeriodAlignment::END_TIME; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/ServiceType.cpp b/generated/src/aws-cpp-sdk-pi/source/model/ServiceType.cpp index 0b77b188d40..3054448b570 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/ServiceType.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/ServiceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceTypeMapper { - static const int RDS_HASH = HashingUtils::HashString("RDS"); - static const int DOCDB_HASH = HashingUtils::HashString("DOCDB"); + static constexpr uint32_t RDS_HASH = ConstExprHashingUtils::HashString("RDS"); + static constexpr uint32_t DOCDB_HASH = ConstExprHashingUtils::HashString("DOCDB"); ServiceType GetServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RDS_HASH) { return ServiceType::RDS; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/Severity.cpp b/generated/src/aws-cpp-sdk-pi/source/model/Severity.cpp index d6a8aac16d2..a48d0f93898 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/Severity.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/Severity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SeverityMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); Severity GetSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return Severity::LOW; diff --git a/generated/src/aws-cpp-sdk-pi/source/model/TextFormat.cpp b/generated/src/aws-cpp-sdk-pi/source/model/TextFormat.cpp index 4ec466d24e7..ca30fbb2e83 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/TextFormat.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/TextFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TextFormatMapper { - static const int PLAIN_TEXT_HASH = HashingUtils::HashString("PLAIN_TEXT"); - static const int MARKDOWN_HASH = HashingUtils::HashString("MARKDOWN"); + static constexpr uint32_t PLAIN_TEXT_HASH = ConstExprHashingUtils::HashString("PLAIN_TEXT"); + static constexpr uint32_t MARKDOWN_HASH = ConstExprHashingUtils::HashString("MARKDOWN"); TextFormat GetTextFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLAIN_TEXT_HASH) { return TextFormat::PLAIN_TEXT; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailErrors.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailErrors.cpp index a234a46b874..2d8d6e20757 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailErrors.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailErrors.cpp @@ -18,21 +18,21 @@ namespace PinpointEmail namespace PinpointEmailErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int MESSAGE_REJECTED_HASH = HashingUtils::HashString("MessageRejected"); -static const int SENDING_PAUSED_HASH = HashingUtils::HashString("SendingPausedException"); -static const int MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = HashingUtils::HashString("MailFromDomainNotVerifiedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int ACCOUNT_SUSPENDED_HASH = HashingUtils::HashString("AccountSuspendedException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t MESSAGE_REJECTED_HASH = ConstExprHashingUtils::HashString("MessageRejected"); +static constexpr uint32_t SENDING_PAUSED_HASH = ConstExprHashingUtils::HashString("SendingPausedException"); +static constexpr uint32_t MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("MailFromDomainNotVerifiedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t ACCOUNT_SUSPENDED_HASH = ConstExprHashingUtils::HashString("AccountSuspendedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/BehaviorOnMxFailure.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/BehaviorOnMxFailure.cpp index d9dd298edcd..c0510ef89c3 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/BehaviorOnMxFailure.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/BehaviorOnMxFailure.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BehaviorOnMxFailureMapper { - static const int USE_DEFAULT_VALUE_HASH = HashingUtils::HashString("USE_DEFAULT_VALUE"); - static const int REJECT_MESSAGE_HASH = HashingUtils::HashString("REJECT_MESSAGE"); + static constexpr uint32_t USE_DEFAULT_VALUE_HASH = ConstExprHashingUtils::HashString("USE_DEFAULT_VALUE"); + static constexpr uint32_t REJECT_MESSAGE_HASH = ConstExprHashingUtils::HashString("REJECT_MESSAGE"); BehaviorOnMxFailure GetBehaviorOnMxFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_DEFAULT_VALUE_HASH) { return BehaviorOnMxFailure::USE_DEFAULT_VALUE; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityDashboardAccountStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityDashboardAccountStatus.cpp index 073b361cce7..464a432e662 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityDashboardAccountStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityDashboardAccountStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeliverabilityDashboardAccountStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_EXPIRATION_HASH = HashingUtils::HashString("PENDING_EXPIRATION"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_EXPIRATION_HASH = ConstExprHashingUtils::HashString("PENDING_EXPIRATION"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DeliverabilityDashboardAccountStatus GetDeliverabilityDashboardAccountStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DeliverabilityDashboardAccountStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityTestStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityTestStatus.cpp index 4f848dae083..e6c5632b118 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityTestStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DeliverabilityTestStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeliverabilityTestStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); DeliverabilityTestStatus GetDeliverabilityTestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DeliverabilityTestStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DimensionValueSource.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DimensionValueSource.cpp index a74ad42d354..81468f7b14e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DimensionValueSource.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DimensionValueSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DimensionValueSourceMapper { - static const int MESSAGE_TAG_HASH = HashingUtils::HashString("MESSAGE_TAG"); - static const int EMAIL_HEADER_HASH = HashingUtils::HashString("EMAIL_HEADER"); - static const int LINK_TAG_HASH = HashingUtils::HashString("LINK_TAG"); + static constexpr uint32_t MESSAGE_TAG_HASH = ConstExprHashingUtils::HashString("MESSAGE_TAG"); + static constexpr uint32_t EMAIL_HEADER_HASH = ConstExprHashingUtils::HashString("EMAIL_HEADER"); + static constexpr uint32_t LINK_TAG_HASH = ConstExprHashingUtils::HashString("LINK_TAG"); DimensionValueSource GetDimensionValueSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MESSAGE_TAG_HASH) { return DimensionValueSource::MESSAGE_TAG; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DkimStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DkimStatus.cpp index d7ab60fa746..e31b540a444 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DkimStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/DkimStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DkimStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TEMPORARY_FAILURE_HASH = HashingUtils::HashString("TEMPORARY_FAILURE"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TEMPORARY_FAILURE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_FAILURE"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); DkimStatus GetDkimStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DkimStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/EventType.cpp index 22f5248d10d..2ce60ddd53c 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/EventType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EventTypeMapper { - static const int SEND_HASH = HashingUtils::HashString("SEND"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); - static const int BOUNCE_HASH = HashingUtils::HashString("BOUNCE"); - static const int COMPLAINT_HASH = HashingUtils::HashString("COMPLAINT"); - static const int DELIVERY_HASH = HashingUtils::HashString("DELIVERY"); - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLICK_HASH = HashingUtils::HashString("CLICK"); - static const int RENDERING_FAILURE_HASH = HashingUtils::HashString("RENDERING_FAILURE"); + static constexpr uint32_t SEND_HASH = ConstExprHashingUtils::HashString("SEND"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); + static constexpr uint32_t BOUNCE_HASH = ConstExprHashingUtils::HashString("BOUNCE"); + static constexpr uint32_t COMPLAINT_HASH = ConstExprHashingUtils::HashString("COMPLAINT"); + static constexpr uint32_t DELIVERY_HASH = ConstExprHashingUtils::HashString("DELIVERY"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLICK_HASH = ConstExprHashingUtils::HashString("CLICK"); + static constexpr uint32_t RENDERING_FAILURE_HASH = ConstExprHashingUtils::HashString("RENDERING_FAILURE"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_HASH) { return EventType::SEND; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/IdentityType.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/IdentityType.cpp index ba7d345e637..04597b1b03a 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/IdentityType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/IdentityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IdentityTypeMapper { - static const int EMAIL_ADDRESS_HASH = HashingUtils::HashString("EMAIL_ADDRESS"); - static const int DOMAIN__HASH = HashingUtils::HashString("DOMAIN"); - static const int MANAGED_DOMAIN_HASH = HashingUtils::HashString("MANAGED_DOMAIN"); + static constexpr uint32_t EMAIL_ADDRESS_HASH = ConstExprHashingUtils::HashString("EMAIL_ADDRESS"); + static constexpr uint32_t DOMAIN__HASH = ConstExprHashingUtils::HashString("DOMAIN"); + static constexpr uint32_t MANAGED_DOMAIN_HASH = ConstExprHashingUtils::HashString("MANAGED_DOMAIN"); IdentityType GetIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_ADDRESS_HASH) { return IdentityType::EMAIL_ADDRESS; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/MailFromDomainStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/MailFromDomainStatus.cpp index 105e00f6034..5f106ce1e3f 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/MailFromDomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/MailFromDomainStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MailFromDomainStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TEMPORARY_FAILURE_HASH = HashingUtils::HashString("TEMPORARY_FAILURE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TEMPORARY_FAILURE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_FAILURE"); MailFromDomainStatus GetMailFromDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return MailFromDomainStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/TlsPolicy.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/TlsPolicy.cpp index ef7284e493d..ee7d8fe1200 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/TlsPolicy.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/TlsPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TlsPolicyMapper { - static const int REQUIRE_HASH = HashingUtils::HashString("REQUIRE"); - static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static constexpr uint32_t REQUIRE_HASH = ConstExprHashingUtils::HashString("REQUIRE"); + static constexpr uint32_t OPTIONAL_HASH = ConstExprHashingUtils::HashString("OPTIONAL"); TlsPolicy GetTlsPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUIRE_HASH) { return TlsPolicy::REQUIRE; diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/WarmupStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/WarmupStatus.cpp index 50d9e157e6f..283fecc84e9 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/model/WarmupStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/model/WarmupStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WarmupStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int DONE_HASH = HashingUtils::HashString("DONE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t DONE_HASH = ConstExprHashingUtils::HashString("DONE"); WarmupStatus GetWarmupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return WarmupStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Errors.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Errors.cpp index a4c46a289eb..afb03979855 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Errors.cpp @@ -61,14 +61,14 @@ template<> AWS_PINPOINTSMSVOICEV2_API AccessDeniedException PinpointSMSVoiceV2Er namespace PinpointSMSVoiceV2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccessDeniedExceptionReason.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccessDeniedExceptionReason.cpp index 6a2b5b147d0..800022f97c3 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccessDeniedExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccessDeniedExceptionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessDeniedExceptionReasonMapper { - static const int INSUFFICIENT_ACCOUNT_REPUTATION_HASH = HashingUtils::HashString("INSUFFICIENT_ACCOUNT_REPUTATION"); - static const int ACCOUNT_DISABLED_HASH = HashingUtils::HashString("ACCOUNT_DISABLED"); + static constexpr uint32_t INSUFFICIENT_ACCOUNT_REPUTATION_HASH = ConstExprHashingUtils::HashString("INSUFFICIENT_ACCOUNT_REPUTATION"); + static constexpr uint32_t ACCOUNT_DISABLED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_DISABLED"); AccessDeniedExceptionReason GetAccessDeniedExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSUFFICIENT_ACCOUNT_REPUTATION_HASH) { return AccessDeniedExceptionReason::INSUFFICIENT_ACCOUNT_REPUTATION; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountAttributeName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountAttributeName.cpp index 00c06adc01b..8e5bb873c52 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AccountAttributeNameMapper { - static const int ACCOUNT_TIER_HASH = HashingUtils::HashString("ACCOUNT_TIER"); + static constexpr uint32_t ACCOUNT_TIER_HASH = ConstExprHashingUtils::HashString("ACCOUNT_TIER"); AccountAttributeName GetAccountAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_TIER_HASH) { return AccountAttributeName::ACCOUNT_TIER; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountLimitName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountLimitName.cpp index 2adf261b3e6..ac3b802397b 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountLimitName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/AccountLimitName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AccountLimitNameMapper { - static const int PHONE_NUMBERS_HASH = HashingUtils::HashString("PHONE_NUMBERS"); - static const int POOLS_HASH = HashingUtils::HashString("POOLS"); - static const int CONFIGURATION_SETS_HASH = HashingUtils::HashString("CONFIGURATION_SETS"); - static const int OPT_OUT_LISTS_HASH = HashingUtils::HashString("OPT_OUT_LISTS"); + static constexpr uint32_t PHONE_NUMBERS_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBERS"); + static constexpr uint32_t POOLS_HASH = ConstExprHashingUtils::HashString("POOLS"); + static constexpr uint32_t CONFIGURATION_SETS_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_SETS"); + static constexpr uint32_t OPT_OUT_LISTS_HASH = ConstExprHashingUtils::HashString("OPT_OUT_LISTS"); AccountLimitName GetAccountLimitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHONE_NUMBERS_HASH) { return AccountLimitName::PHONE_NUMBERS; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp index 88966a779e8..9ee4d68addb 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ConfigurationSetFilterNameMapper { - static const int event_destination_name_HASH = HashingUtils::HashString("event-destination-name"); - static const int matching_event_types_HASH = HashingUtils::HashString("matching-event-types"); - static const int default_message_type_HASH = HashingUtils::HashString("default-message-type"); - static const int default_sender_id_HASH = HashingUtils::HashString("default-sender-id"); + static constexpr uint32_t event_destination_name_HASH = ConstExprHashingUtils::HashString("event-destination-name"); + static constexpr uint32_t matching_event_types_HASH = ConstExprHashingUtils::HashString("matching-event-types"); + static constexpr uint32_t default_message_type_HASH = ConstExprHashingUtils::HashString("default-message-type"); + static constexpr uint32_t default_sender_id_HASH = ConstExprHashingUtils::HashString("default-sender-id"); ConfigurationSetFilterName GetConfigurationSetFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == event_destination_name_HASH) { return ConfigurationSetFilterName::event_destination_name; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp index 6b573dd937e..f3df2f7dbc2 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp @@ -20,30 +20,30 @@ namespace Aws namespace ConflictExceptionReasonMapper { - static const int DELETION_PROTECTION_ENABLED_HASH = HashingUtils::HashString("DELETION_PROTECTION_ENABLED"); - static const int DESTINATION_PHONE_NUMBER_NOT_VERIFIED_HASH = HashingUtils::HashString("DESTINATION_PHONE_NUMBER_NOT_VERIFIED"); - static const int DESTINATION_PHONE_NUMBER_OPTED_OUT_HASH = HashingUtils::HashString("DESTINATION_PHONE_NUMBER_OPTED_OUT"); - static const int EVENT_DESTINATION_MISMATCH_HASH = HashingUtils::HashString("EVENT_DESTINATION_MISMATCH"); - static const int KEYWORD_MISMATCH_HASH = HashingUtils::HashString("KEYWORD_MISMATCH"); - static const int LAST_PHONE_NUMBER_HASH = HashingUtils::HashString("LAST_PHONE_NUMBER"); - static const int SELF_MANAGED_OPT_OUTS_MISMATCH_HASH = HashingUtils::HashString("SELF_MANAGED_OPT_OUTS_MISMATCH"); - static const int MESSAGE_TYPE_MISMATCH_HASH = HashingUtils::HashString("MESSAGE_TYPE_MISMATCH"); - static const int NO_ORIGINATION_IDENTITIES_FOUND_HASH = HashingUtils::HashString("NO_ORIGINATION_IDENTITIES_FOUND"); - static const int OPT_OUT_LIST_MISMATCH_HASH = HashingUtils::HashString("OPT_OUT_LIST_MISMATCH"); - static const int PHONE_NUMBER_ASSOCIATED_TO_POOL_HASH = HashingUtils::HashString("PHONE_NUMBER_ASSOCIATED_TO_POOL"); - static const int PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL_HASH = HashingUtils::HashString("PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL"); - static const int PHONE_NUMBER_NOT_IN_REGISTRATION_REGION_HASH = HashingUtils::HashString("PHONE_NUMBER_NOT_IN_REGISTRATION_REGION"); - static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("RESOURCE_ALREADY_EXISTS"); - static const int RESOURCE_DELETION_NOT_ALLOWED_HASH = HashingUtils::HashString("RESOURCE_DELETION_NOT_ALLOWED"); - static const int RESOURCE_MODIFICATION_NOT_ALLOWED_HASH = HashingUtils::HashString("RESOURCE_MODIFICATION_NOT_ALLOWED"); - static const int RESOURCE_NOT_ACTIVE_HASH = HashingUtils::HashString("RESOURCE_NOT_ACTIVE"); - static const int RESOURCE_NOT_EMPTY_HASH = HashingUtils::HashString("RESOURCE_NOT_EMPTY"); - static const int TWO_WAY_CONFIG_MISMATCH_HASH = HashingUtils::HashString("TWO_WAY_CONFIG_MISMATCH"); + static constexpr uint32_t DELETION_PROTECTION_ENABLED_HASH = ConstExprHashingUtils::HashString("DELETION_PROTECTION_ENABLED"); + static constexpr uint32_t DESTINATION_PHONE_NUMBER_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("DESTINATION_PHONE_NUMBER_NOT_VERIFIED"); + static constexpr uint32_t DESTINATION_PHONE_NUMBER_OPTED_OUT_HASH = ConstExprHashingUtils::HashString("DESTINATION_PHONE_NUMBER_OPTED_OUT"); + static constexpr uint32_t EVENT_DESTINATION_MISMATCH_HASH = ConstExprHashingUtils::HashString("EVENT_DESTINATION_MISMATCH"); + static constexpr uint32_t KEYWORD_MISMATCH_HASH = ConstExprHashingUtils::HashString("KEYWORD_MISMATCH"); + static constexpr uint32_t LAST_PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("LAST_PHONE_NUMBER"); + static constexpr uint32_t SELF_MANAGED_OPT_OUTS_MISMATCH_HASH = ConstExprHashingUtils::HashString("SELF_MANAGED_OPT_OUTS_MISMATCH"); + static constexpr uint32_t MESSAGE_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("MESSAGE_TYPE_MISMATCH"); + static constexpr uint32_t NO_ORIGINATION_IDENTITIES_FOUND_HASH = ConstExprHashingUtils::HashString("NO_ORIGINATION_IDENTITIES_FOUND"); + static constexpr uint32_t OPT_OUT_LIST_MISMATCH_HASH = ConstExprHashingUtils::HashString("OPT_OUT_LIST_MISMATCH"); + static constexpr uint32_t PHONE_NUMBER_ASSOCIATED_TO_POOL_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER_ASSOCIATED_TO_POOL"); + static constexpr uint32_t PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL"); + static constexpr uint32_t PHONE_NUMBER_NOT_IN_REGISTRATION_REGION_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER_NOT_IN_REGISTRATION_REGION"); + static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("RESOURCE_ALREADY_EXISTS"); + static constexpr uint32_t RESOURCE_DELETION_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("RESOURCE_DELETION_NOT_ALLOWED"); + static constexpr uint32_t RESOURCE_MODIFICATION_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("RESOURCE_MODIFICATION_NOT_ALLOWED"); + static constexpr uint32_t RESOURCE_NOT_ACTIVE_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_ACTIVE"); + static constexpr uint32_t RESOURCE_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_EMPTY"); + static constexpr uint32_t TWO_WAY_CONFIG_MISMATCH_HASH = ConstExprHashingUtils::HashString("TWO_WAY_CONFIG_MISMATCH"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETION_PROTECTION_ENABLED_HASH) { return ConflictExceptionReason::DELETION_PROTECTION_ENABLED; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DestinationCountryParameterKey.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DestinationCountryParameterKey.cpp index c6f501064ca..2a6f474790f 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DestinationCountryParameterKey.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DestinationCountryParameterKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DestinationCountryParameterKeyMapper { - static const int IN_TEMPLATE_ID_HASH = HashingUtils::HashString("IN_TEMPLATE_ID"); - static const int IN_ENTITY_ID_HASH = HashingUtils::HashString("IN_ENTITY_ID"); + static constexpr uint32_t IN_TEMPLATE_ID_HASH = ConstExprHashingUtils::HashString("IN_TEMPLATE_ID"); + static constexpr uint32_t IN_ENTITY_ID_HASH = ConstExprHashingUtils::HashString("IN_ENTITY_ID"); DestinationCountryParameterKey GetDestinationCountryParameterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_TEMPLATE_ID_HASH) { return DestinationCountryParameterKey::IN_TEMPLATE_ID; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp index fb90865550e..f3e42b47d60 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp @@ -20,36 +20,36 @@ namespace Aws namespace EventTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int TEXT_ALL_HASH = HashingUtils::HashString("TEXT_ALL"); - static const int TEXT_SENT_HASH = HashingUtils::HashString("TEXT_SENT"); - static const int TEXT_PENDING_HASH = HashingUtils::HashString("TEXT_PENDING"); - static const int TEXT_QUEUED_HASH = HashingUtils::HashString("TEXT_QUEUED"); - static const int TEXT_SUCCESSFUL_HASH = HashingUtils::HashString("TEXT_SUCCESSFUL"); - static const int TEXT_DELIVERED_HASH = HashingUtils::HashString("TEXT_DELIVERED"); - static const int TEXT_INVALID_HASH = HashingUtils::HashString("TEXT_INVALID"); - static const int TEXT_INVALID_MESSAGE_HASH = HashingUtils::HashString("TEXT_INVALID_MESSAGE"); - static const int TEXT_UNREACHABLE_HASH = HashingUtils::HashString("TEXT_UNREACHABLE"); - static const int TEXT_CARRIER_UNREACHABLE_HASH = HashingUtils::HashString("TEXT_CARRIER_UNREACHABLE"); - static const int TEXT_BLOCKED_HASH = HashingUtils::HashString("TEXT_BLOCKED"); - static const int TEXT_CARRIER_BLOCKED_HASH = HashingUtils::HashString("TEXT_CARRIER_BLOCKED"); - static const int TEXT_SPAM_HASH = HashingUtils::HashString("TEXT_SPAM"); - static const int TEXT_UNKNOWN_HASH = HashingUtils::HashString("TEXT_UNKNOWN"); - static const int TEXT_TTL_EXPIRED_HASH = HashingUtils::HashString("TEXT_TTL_EXPIRED"); - static const int VOICE_ALL_HASH = HashingUtils::HashString("VOICE_ALL"); - static const int VOICE_INITIATED_HASH = HashingUtils::HashString("VOICE_INITIATED"); - static const int VOICE_RINGING_HASH = HashingUtils::HashString("VOICE_RINGING"); - static const int VOICE_ANSWERED_HASH = HashingUtils::HashString("VOICE_ANSWERED"); - static const int VOICE_COMPLETED_HASH = HashingUtils::HashString("VOICE_COMPLETED"); - static const int VOICE_BUSY_HASH = HashingUtils::HashString("VOICE_BUSY"); - static const int VOICE_NO_ANSWER_HASH = HashingUtils::HashString("VOICE_NO_ANSWER"); - static const int VOICE_FAILED_HASH = HashingUtils::HashString("VOICE_FAILED"); - static const int VOICE_TTL_EXPIRED_HASH = HashingUtils::HashString("VOICE_TTL_EXPIRED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t TEXT_ALL_HASH = ConstExprHashingUtils::HashString("TEXT_ALL"); + static constexpr uint32_t TEXT_SENT_HASH = ConstExprHashingUtils::HashString("TEXT_SENT"); + static constexpr uint32_t TEXT_PENDING_HASH = ConstExprHashingUtils::HashString("TEXT_PENDING"); + static constexpr uint32_t TEXT_QUEUED_HASH = ConstExprHashingUtils::HashString("TEXT_QUEUED"); + static constexpr uint32_t TEXT_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("TEXT_SUCCESSFUL"); + static constexpr uint32_t TEXT_DELIVERED_HASH = ConstExprHashingUtils::HashString("TEXT_DELIVERED"); + static constexpr uint32_t TEXT_INVALID_HASH = ConstExprHashingUtils::HashString("TEXT_INVALID"); + static constexpr uint32_t TEXT_INVALID_MESSAGE_HASH = ConstExprHashingUtils::HashString("TEXT_INVALID_MESSAGE"); + static constexpr uint32_t TEXT_UNREACHABLE_HASH = ConstExprHashingUtils::HashString("TEXT_UNREACHABLE"); + static constexpr uint32_t TEXT_CARRIER_UNREACHABLE_HASH = ConstExprHashingUtils::HashString("TEXT_CARRIER_UNREACHABLE"); + static constexpr uint32_t TEXT_BLOCKED_HASH = ConstExprHashingUtils::HashString("TEXT_BLOCKED"); + static constexpr uint32_t TEXT_CARRIER_BLOCKED_HASH = ConstExprHashingUtils::HashString("TEXT_CARRIER_BLOCKED"); + static constexpr uint32_t TEXT_SPAM_HASH = ConstExprHashingUtils::HashString("TEXT_SPAM"); + static constexpr uint32_t TEXT_UNKNOWN_HASH = ConstExprHashingUtils::HashString("TEXT_UNKNOWN"); + static constexpr uint32_t TEXT_TTL_EXPIRED_HASH = ConstExprHashingUtils::HashString("TEXT_TTL_EXPIRED"); + static constexpr uint32_t VOICE_ALL_HASH = ConstExprHashingUtils::HashString("VOICE_ALL"); + static constexpr uint32_t VOICE_INITIATED_HASH = ConstExprHashingUtils::HashString("VOICE_INITIATED"); + static constexpr uint32_t VOICE_RINGING_HASH = ConstExprHashingUtils::HashString("VOICE_RINGING"); + static constexpr uint32_t VOICE_ANSWERED_HASH = ConstExprHashingUtils::HashString("VOICE_ANSWERED"); + static constexpr uint32_t VOICE_COMPLETED_HASH = ConstExprHashingUtils::HashString("VOICE_COMPLETED"); + static constexpr uint32_t VOICE_BUSY_HASH = ConstExprHashingUtils::HashString("VOICE_BUSY"); + static constexpr uint32_t VOICE_NO_ANSWER_HASH = ConstExprHashingUtils::HashString("VOICE_NO_ANSWER"); + static constexpr uint32_t VOICE_FAILED_HASH = ConstExprHashingUtils::HashString("VOICE_FAILED"); + static constexpr uint32_t VOICE_TTL_EXPIRED_HASH = ConstExprHashingUtils::HashString("VOICE_TTL_EXPIRED"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return EventType::ALL; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordAction.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordAction.cpp index a1fe962ec79..61b6a0d6ba9 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordAction.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace KeywordActionMapper { - static const int AUTOMATIC_RESPONSE_HASH = HashingUtils::HashString("AUTOMATIC_RESPONSE"); - static const int OPT_OUT_HASH = HashingUtils::HashString("OPT_OUT"); - static const int OPT_IN_HASH = HashingUtils::HashString("OPT_IN"); + static constexpr uint32_t AUTOMATIC_RESPONSE_HASH = ConstExprHashingUtils::HashString("AUTOMATIC_RESPONSE"); + static constexpr uint32_t OPT_OUT_HASH = ConstExprHashingUtils::HashString("OPT_OUT"); + static constexpr uint32_t OPT_IN_HASH = ConstExprHashingUtils::HashString("OPT_IN"); KeywordAction GetKeywordActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_RESPONSE_HASH) { return KeywordAction::AUTOMATIC_RESPONSE; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordFilterName.cpp index 5f2c71f6066..118cc9173a9 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/KeywordFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace KeywordFilterNameMapper { - static const int keyword_action_HASH = HashingUtils::HashString("keyword-action"); + static constexpr uint32_t keyword_action_HASH = ConstExprHashingUtils::HashString("keyword-action"); KeywordFilterName GetKeywordFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == keyword_action_HASH) { return KeywordFilterName::keyword_action; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageType.cpp index 57a87d90f11..6a38d6c125e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageTypeMapper { - static const int TRANSACTIONAL_HASH = HashingUtils::HashString("TRANSACTIONAL"); - static const int PROMOTIONAL_HASH = HashingUtils::HashString("PROMOTIONAL"); + static constexpr uint32_t TRANSACTIONAL_HASH = ConstExprHashingUtils::HashString("TRANSACTIONAL"); + static constexpr uint32_t PROMOTIONAL_HASH = ConstExprHashingUtils::HashString("PROMOTIONAL"); MessageType GetMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSACTIONAL_HASH) { return MessageType::TRANSACTIONAL; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberCapability.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberCapability.cpp index 6cabf241658..325270d251b 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberCapability.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberCapability.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NumberCapabilityMapper { - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); NumberCapability GetNumberCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMS_HASH) { return NumberCapability::SMS; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberStatus.cpp index b2c42ded7e4..7cbbdbdddc1 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NumberStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ASSOCIATING_HASH = HashingUtils::HashString("ASSOCIATING"); - static const int DISASSOCIATING_HASH = HashingUtils::HashString("DISASSOCIATING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ASSOCIATING_HASH = ConstExprHashingUtils::HashString("ASSOCIATING"); + static constexpr uint32_t DISASSOCIATING_HASH = ConstExprHashingUtils::HashString("DISASSOCIATING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); NumberStatus GetNumberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return NumberStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberType.cpp index a8d4012da3f..e898d5f6e78 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/NumberType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NumberTypeMapper { - static const int SHORT_CODE_HASH = HashingUtils::HashString("SHORT_CODE"); - static const int LONG_CODE_HASH = HashingUtils::HashString("LONG_CODE"); - static const int TOLL_FREE_HASH = HashingUtils::HashString("TOLL_FREE"); - static const int TEN_DLC_HASH = HashingUtils::HashString("TEN_DLC"); + static constexpr uint32_t SHORT_CODE_HASH = ConstExprHashingUtils::HashString("SHORT_CODE"); + static constexpr uint32_t LONG_CODE_HASH = ConstExprHashingUtils::HashString("LONG_CODE"); + static constexpr uint32_t TOLL_FREE_HASH = ConstExprHashingUtils::HashString("TOLL_FREE"); + static constexpr uint32_t TEN_DLC_HASH = ConstExprHashingUtils::HashString("TEN_DLC"); NumberType GetNumberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHORT_CODE_HASH) { return NumberType::SHORT_CODE; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/OptedOutFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/OptedOutFilterName.cpp index 7b7e6202980..f5b746950a0 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/OptedOutFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/OptedOutFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OptedOutFilterNameMapper { - static const int end_user_opted_out_HASH = HashingUtils::HashString("end-user-opted-out"); + static constexpr uint32_t end_user_opted_out_HASH = ConstExprHashingUtils::HashString("end-user-opted-out"); OptedOutFilterName GetOptedOutFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == end_user_opted_out_HASH) { return OptedOutFilterName::end_user_opted_out; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PhoneNumberFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PhoneNumberFilterName.cpp index a9081c489e9..e7211bf8ad5 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PhoneNumberFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PhoneNumberFilterName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace PhoneNumberFilterNameMapper { - static const int status_HASH = HashingUtils::HashString("status"); - static const int iso_country_code_HASH = HashingUtils::HashString("iso-country-code"); - static const int message_type_HASH = HashingUtils::HashString("message-type"); - static const int number_capability_HASH = HashingUtils::HashString("number-capability"); - static const int number_type_HASH = HashingUtils::HashString("number-type"); - static const int two_way_enabled_HASH = HashingUtils::HashString("two-way-enabled"); - static const int self_managed_opt_outs_enabled_HASH = HashingUtils::HashString("self-managed-opt-outs-enabled"); - static const int opt_out_list_name_HASH = HashingUtils::HashString("opt-out-list-name"); - static const int deletion_protection_enabled_HASH = HashingUtils::HashString("deletion-protection-enabled"); + static constexpr uint32_t status_HASH = ConstExprHashingUtils::HashString("status"); + static constexpr uint32_t iso_country_code_HASH = ConstExprHashingUtils::HashString("iso-country-code"); + static constexpr uint32_t message_type_HASH = ConstExprHashingUtils::HashString("message-type"); + static constexpr uint32_t number_capability_HASH = ConstExprHashingUtils::HashString("number-capability"); + static constexpr uint32_t number_type_HASH = ConstExprHashingUtils::HashString("number-type"); + static constexpr uint32_t two_way_enabled_HASH = ConstExprHashingUtils::HashString("two-way-enabled"); + static constexpr uint32_t self_managed_opt_outs_enabled_HASH = ConstExprHashingUtils::HashString("self-managed-opt-outs-enabled"); + static constexpr uint32_t opt_out_list_name_HASH = ConstExprHashingUtils::HashString("opt-out-list-name"); + static constexpr uint32_t deletion_protection_enabled_HASH = ConstExprHashingUtils::HashString("deletion-protection-enabled"); PhoneNumberFilterName GetPhoneNumberFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == status_HASH) { return PhoneNumberFilterName::status; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolFilterName.cpp index 400d452942a..9ab3c8c6784 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolFilterName.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PoolFilterNameMapper { - static const int status_HASH = HashingUtils::HashString("status"); - static const int message_type_HASH = HashingUtils::HashString("message-type"); - static const int two_way_enabled_HASH = HashingUtils::HashString("two-way-enabled"); - static const int self_managed_opt_outs_enabled_HASH = HashingUtils::HashString("self-managed-opt-outs-enabled"); - static const int opt_out_list_name_HASH = HashingUtils::HashString("opt-out-list-name"); - static const int shared_routes_enabled_HASH = HashingUtils::HashString("shared-routes-enabled"); - static const int deletion_protection_enabled_HASH = HashingUtils::HashString("deletion-protection-enabled"); + static constexpr uint32_t status_HASH = ConstExprHashingUtils::HashString("status"); + static constexpr uint32_t message_type_HASH = ConstExprHashingUtils::HashString("message-type"); + static constexpr uint32_t two_way_enabled_HASH = ConstExprHashingUtils::HashString("two-way-enabled"); + static constexpr uint32_t self_managed_opt_outs_enabled_HASH = ConstExprHashingUtils::HashString("self-managed-opt-outs-enabled"); + static constexpr uint32_t opt_out_list_name_HASH = ConstExprHashingUtils::HashString("opt-out-list-name"); + static constexpr uint32_t shared_routes_enabled_HASH = ConstExprHashingUtils::HashString("shared-routes-enabled"); + static constexpr uint32_t deletion_protection_enabled_HASH = ConstExprHashingUtils::HashString("deletion-protection-enabled"); PoolFilterName GetPoolFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == status_HASH) { return PoolFilterName::status; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolOriginationIdentitiesFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolOriginationIdentitiesFilterName.cpp index cb545a64b3e..2980fcd70d0 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolOriginationIdentitiesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolOriginationIdentitiesFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PoolOriginationIdentitiesFilterNameMapper { - static const int iso_country_code_HASH = HashingUtils::HashString("iso-country-code"); - static const int number_capability_HASH = HashingUtils::HashString("number-capability"); + static constexpr uint32_t iso_country_code_HASH = ConstExprHashingUtils::HashString("iso-country-code"); + static constexpr uint32_t number_capability_HASH = ConstExprHashingUtils::HashString("number-capability"); PoolOriginationIdentitiesFilterName GetPoolOriginationIdentitiesFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == iso_country_code_HASH) { return PoolOriginationIdentitiesFilterName::iso_country_code; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolStatus.cpp index 7eeb6c40b06..4843837e4bd 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PoolStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PoolStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); PoolStatus GetPoolStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return PoolStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RequestableNumberType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RequestableNumberType.cpp index 6bd437291b5..a9994a23ab2 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RequestableNumberType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RequestableNumberType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequestableNumberTypeMapper { - static const int LONG_CODE_HASH = HashingUtils::HashString("LONG_CODE"); - static const int TOLL_FREE_HASH = HashingUtils::HashString("TOLL_FREE"); - static const int TEN_DLC_HASH = HashingUtils::HashString("TEN_DLC"); + static constexpr uint32_t LONG_CODE_HASH = ConstExprHashingUtils::HashString("LONG_CODE"); + static constexpr uint32_t TOLL_FREE_HASH = ConstExprHashingUtils::HashString("TOLL_FREE"); + static constexpr uint32_t TEN_DLC_HASH = ConstExprHashingUtils::HashString("TEN_DLC"); RequestableNumberType GetRequestableNumberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LONG_CODE_HASH) { return RequestableNumberType::LONG_CODE; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp index 685dce6f22e..d8827c582cb 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ResourceTypeMapper { - static const int account_HASH = HashingUtils::HashString("account"); - static const int phone_number_HASH = HashingUtils::HashString("phone-number"); - static const int sender_id_HASH = HashingUtils::HashString("sender-id"); - static const int pool_HASH = HashingUtils::HashString("pool"); - static const int configuration_set_HASH = HashingUtils::HashString("configuration-set"); - static const int opt_out_list_HASH = HashingUtils::HashString("opt-out-list"); - static const int event_destination_HASH = HashingUtils::HashString("event-destination"); - static const int keyword_HASH = HashingUtils::HashString("keyword"); - static const int opted_out_number_HASH = HashingUtils::HashString("opted-out-number"); - static const int registration_HASH = HashingUtils::HashString("registration"); + static constexpr uint32_t account_HASH = ConstExprHashingUtils::HashString("account"); + static constexpr uint32_t phone_number_HASH = ConstExprHashingUtils::HashString("phone-number"); + static constexpr uint32_t sender_id_HASH = ConstExprHashingUtils::HashString("sender-id"); + static constexpr uint32_t pool_HASH = ConstExprHashingUtils::HashString("pool"); + static constexpr uint32_t configuration_set_HASH = ConstExprHashingUtils::HashString("configuration-set"); + static constexpr uint32_t opt_out_list_HASH = ConstExprHashingUtils::HashString("opt-out-list"); + static constexpr uint32_t event_destination_HASH = ConstExprHashingUtils::HashString("event-destination"); + static constexpr uint32_t keyword_HASH = ConstExprHashingUtils::HashString("keyword"); + static constexpr uint32_t opted_out_number_HASH = ConstExprHashingUtils::HashString("opted-out-number"); + static constexpr uint32_t registration_HASH = ConstExprHashingUtils::HashString("registration"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == account_HASH) { return ResourceType::account; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SenderIdFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SenderIdFilterName.cpp index 54d60b81851..02fb8f179da 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SenderIdFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SenderIdFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SenderIdFilterNameMapper { - static const int sender_id_HASH = HashingUtils::HashString("sender-id"); - static const int iso_country_code_HASH = HashingUtils::HashString("iso-country-code"); - static const int message_type_HASH = HashingUtils::HashString("message-type"); + static constexpr uint32_t sender_id_HASH = ConstExprHashingUtils::HashString("sender-id"); + static constexpr uint32_t iso_country_code_HASH = ConstExprHashingUtils::HashString("iso-country-code"); + static constexpr uint32_t message_type_HASH = ConstExprHashingUtils::HashString("message-type"); SenderIdFilterName GetSenderIdFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sender_id_HASH) { return SenderIdFilterName::sender_id; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ServiceQuotaExceededExceptionReason.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ServiceQuotaExceededExceptionReason.cpp index f0c37e71519..c38bb22ce03 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ServiceQuotaExceededExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ServiceQuotaExceededExceptionReason.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ServiceQuotaExceededExceptionReasonMapper { - static const int CONFIGURATION_SETS_PER_ACCOUNT_HASH = HashingUtils::HashString("CONFIGURATION_SETS_PER_ACCOUNT"); - static const int DAILY_DESTINATION_CALL_LIMIT_HASH = HashingUtils::HashString("DAILY_DESTINATION_CALL_LIMIT"); - static const int EVENT_DESTINATIONS_PER_CONFIGURATION_SET_HASH = HashingUtils::HashString("EVENT_DESTINATIONS_PER_CONFIGURATION_SET"); - static const int KEYWORDS_PER_PHONE_NUMBER_HASH = HashingUtils::HashString("KEYWORDS_PER_PHONE_NUMBER"); - static const int KEYWORDS_PER_POOL_HASH = HashingUtils::HashString("KEYWORDS_PER_POOL"); - static const int MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT_HASH = HashingUtils::HashString("MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT"); - static const int MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE_HASH = HashingUtils::HashString("MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE"); - static const int OPT_OUT_LISTS_PER_ACCOUNT_HASH = HashingUtils::HashString("OPT_OUT_LISTS_PER_ACCOUNT"); - static const int ORIGINATION_IDENTITIES_PER_POOL_HASH = HashingUtils::HashString("ORIGINATION_IDENTITIES_PER_POOL"); - static const int PHONE_NUMBERS_PER_ACCOUNT_HASH = HashingUtils::HashString("PHONE_NUMBERS_PER_ACCOUNT"); - static const int PHONE_NUMBERS_PER_REGISTRATION_HASH = HashingUtils::HashString("PHONE_NUMBERS_PER_REGISTRATION"); - static const int POOLS_PER_ACCOUNT_HASH = HashingUtils::HashString("POOLS_PER_ACCOUNT"); - static const int TAGS_PER_RESOURCE_HASH = HashingUtils::HashString("TAGS_PER_RESOURCE"); + static constexpr uint32_t CONFIGURATION_SETS_PER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_SETS_PER_ACCOUNT"); + static constexpr uint32_t DAILY_DESTINATION_CALL_LIMIT_HASH = ConstExprHashingUtils::HashString("DAILY_DESTINATION_CALL_LIMIT"); + static constexpr uint32_t EVENT_DESTINATIONS_PER_CONFIGURATION_SET_HASH = ConstExprHashingUtils::HashString("EVENT_DESTINATIONS_PER_CONFIGURATION_SET"); + static constexpr uint32_t KEYWORDS_PER_PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("KEYWORDS_PER_PHONE_NUMBER"); + static constexpr uint32_t KEYWORDS_PER_POOL_HASH = ConstExprHashingUtils::HashString("KEYWORDS_PER_POOL"); + static constexpr uint32_t MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT_HASH = ConstExprHashingUtils::HashString("MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT"); + static constexpr uint32_t MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE_HASH = ConstExprHashingUtils::HashString("MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE"); + static constexpr uint32_t OPT_OUT_LISTS_PER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("OPT_OUT_LISTS_PER_ACCOUNT"); + static constexpr uint32_t ORIGINATION_IDENTITIES_PER_POOL_HASH = ConstExprHashingUtils::HashString("ORIGINATION_IDENTITIES_PER_POOL"); + static constexpr uint32_t PHONE_NUMBERS_PER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBERS_PER_ACCOUNT"); + static constexpr uint32_t PHONE_NUMBERS_PER_REGISTRATION_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBERS_PER_REGISTRATION"); + static constexpr uint32_t POOLS_PER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("POOLS_PER_ACCOUNT"); + static constexpr uint32_t TAGS_PER_RESOURCE_HASH = ConstExprHashingUtils::HashString("TAGS_PER_RESOURCE"); ServiceQuotaExceededExceptionReason GetServiceQuotaExceededExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONFIGURATION_SETS_PER_ACCOUNT_HASH) { return ServiceQuotaExceededExceptionReason::CONFIGURATION_SETS_PER_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SpendLimitName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SpendLimitName.cpp index 87d8ce57895..25a13ef6bf0 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SpendLimitName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SpendLimitName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SpendLimitNameMapper { - static const int TEXT_MESSAGE_MONTHLY_SPEND_LIMIT_HASH = HashingUtils::HashString("TEXT_MESSAGE_MONTHLY_SPEND_LIMIT"); - static const int VOICE_MESSAGE_MONTHLY_SPEND_LIMIT_HASH = HashingUtils::HashString("VOICE_MESSAGE_MONTHLY_SPEND_LIMIT"); + static constexpr uint32_t TEXT_MESSAGE_MONTHLY_SPEND_LIMIT_HASH = ConstExprHashingUtils::HashString("TEXT_MESSAGE_MONTHLY_SPEND_LIMIT"); + static constexpr uint32_t VOICE_MESSAGE_MONTHLY_SPEND_LIMIT_HASH = ConstExprHashingUtils::HashString("VOICE_MESSAGE_MONTHLY_SPEND_LIMIT"); SpendLimitName GetSpendLimitNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_MESSAGE_MONTHLY_SPEND_LIMIT_HASH) { return SpendLimitName::TEXT_MESSAGE_MONTHLY_SPEND_LIMIT; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp index 2d28109d252..59a953db4c4 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp @@ -20,35 +20,35 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("INVALID_PARAMETER"); - static const int INVALID_ARN_HASH = HashingUtils::HashString("INVALID_ARN"); - static const int INVALID_IDENTITY_FOR_DESTINATION_COUNTRY_HASH = HashingUtils::HashString("INVALID_IDENTITY_FOR_DESTINATION_COUNTRY"); - static const int DESTINATION_COUNTRY_BLOCKED_HASH = HashingUtils::HashString("DESTINATION_COUNTRY_BLOCKED"); - static const int CANNOT_ADD_OPTED_OUT_NUMBER_HASH = HashingUtils::HashString("CANNOT_ADD_OPTED_OUT_NUMBER"); - static const int COUNTRY_CODE_MISMATCH_HASH = HashingUtils::HashString("COUNTRY_CODE_MISMATCH"); - static const int INVALID_FILTER_VALUES_HASH = HashingUtils::HashString("INVALID_FILTER_VALUES"); - static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("INVALID_NEXT_TOKEN"); - static const int MISSING_PARAMETER_HASH = HashingUtils::HashString("MISSING_PARAMETER"); - static const int PARAMETERS_CANNOT_BE_USED_TOGETHER_HASH = HashingUtils::HashString("PARAMETERS_CANNOT_BE_USED_TOGETHER"); - static const int PHONE_NUMBER_CANNOT_BE_OPTED_IN_HASH = HashingUtils::HashString("PHONE_NUMBER_CANNOT_BE_OPTED_IN"); - static const int PHONE_NUMBER_CANNOT_BE_RELEASED_HASH = HashingUtils::HashString("PHONE_NUMBER_CANNOT_BE_RELEASED"); - static const int PRICE_OVER_THRESHOLD_HASH = HashingUtils::HashString("PRICE_OVER_THRESHOLD"); - static const int REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT_HASH = HashingUtils::HashString("REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT"); - static const int SENDER_ID_NOT_REGISTERED_HASH = HashingUtils::HashString("SENDER_ID_NOT_REGISTERED"); - static const int SENDER_ID_NOT_SUPPORTED_HASH = HashingUtils::HashString("SENDER_ID_NOT_SUPPORTED"); - static const int TWO_WAY_NOT_ENABLED_HASH = HashingUtils::HashString("TWO_WAY_NOT_ENABLED"); - static const int TWO_WAY_NOT_SUPPORTED_IN_COUNTRY_HASH = HashingUtils::HashString("TWO_WAY_NOT_SUPPORTED_IN_COUNTRY"); - static const int TWO_WAY_NOT_SUPPORTED_IN_REGION_HASH = HashingUtils::HashString("TWO_WAY_NOT_SUPPORTED_IN_REGION"); - static const int TWO_WAY_TOPIC_NOT_PRESENT_HASH = HashingUtils::HashString("TWO_WAY_TOPIC_NOT_PRESENT"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("INVALID_PARAMETER"); + static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("INVALID_ARN"); + static constexpr uint32_t INVALID_IDENTITY_FOR_DESTINATION_COUNTRY_HASH = ConstExprHashingUtils::HashString("INVALID_IDENTITY_FOR_DESTINATION_COUNTRY"); + static constexpr uint32_t DESTINATION_COUNTRY_BLOCKED_HASH = ConstExprHashingUtils::HashString("DESTINATION_COUNTRY_BLOCKED"); + static constexpr uint32_t CANNOT_ADD_OPTED_OUT_NUMBER_HASH = ConstExprHashingUtils::HashString("CANNOT_ADD_OPTED_OUT_NUMBER"); + static constexpr uint32_t COUNTRY_CODE_MISMATCH_HASH = ConstExprHashingUtils::HashString("COUNTRY_CODE_MISMATCH"); + static constexpr uint32_t INVALID_FILTER_VALUES_HASH = ConstExprHashingUtils::HashString("INVALID_FILTER_VALUES"); + static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_NEXT_TOKEN"); + static constexpr uint32_t MISSING_PARAMETER_HASH = ConstExprHashingUtils::HashString("MISSING_PARAMETER"); + static constexpr uint32_t PARAMETERS_CANNOT_BE_USED_TOGETHER_HASH = ConstExprHashingUtils::HashString("PARAMETERS_CANNOT_BE_USED_TOGETHER"); + static constexpr uint32_t PHONE_NUMBER_CANNOT_BE_OPTED_IN_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER_CANNOT_BE_OPTED_IN"); + static constexpr uint32_t PHONE_NUMBER_CANNOT_BE_RELEASED_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER_CANNOT_BE_RELEASED"); + static constexpr uint32_t PRICE_OVER_THRESHOLD_HASH = ConstExprHashingUtils::HashString("PRICE_OVER_THRESHOLD"); + static constexpr uint32_t REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT_HASH = ConstExprHashingUtils::HashString("REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT"); + static constexpr uint32_t SENDER_ID_NOT_REGISTERED_HASH = ConstExprHashingUtils::HashString("SENDER_ID_NOT_REGISTERED"); + static constexpr uint32_t SENDER_ID_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("SENDER_ID_NOT_SUPPORTED"); + static constexpr uint32_t TWO_WAY_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("TWO_WAY_NOT_ENABLED"); + static constexpr uint32_t TWO_WAY_NOT_SUPPORTED_IN_COUNTRY_HASH = ConstExprHashingUtils::HashString("TWO_WAY_NOT_SUPPORTED_IN_COUNTRY"); + static constexpr uint32_t TWO_WAY_NOT_SUPPORTED_IN_REGION_HASH = ConstExprHashingUtils::HashString("TWO_WAY_NOT_SUPPORTED_IN_REGION"); + static constexpr uint32_t TWO_WAY_TOPIC_NOT_PRESENT_HASH = ConstExprHashingUtils::HashString("TWO_WAY_TOPIC_NOT_PRESENT"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceId.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceId.cpp index 9b5e843b0d6..1fdbbf9a6ae 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceId.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceId.cpp @@ -20,70 +20,70 @@ namespace Aws namespace VoiceIdMapper { - static const int AMY_HASH = HashingUtils::HashString("AMY"); - static const int ASTRID_HASH = HashingUtils::HashString("ASTRID"); - static const int BIANCA_HASH = HashingUtils::HashString("BIANCA"); - static const int BRIAN_HASH = HashingUtils::HashString("BRIAN"); - static const int CAMILA_HASH = HashingUtils::HashString("CAMILA"); - static const int CARLA_HASH = HashingUtils::HashString("CARLA"); - static const int CARMEN_HASH = HashingUtils::HashString("CARMEN"); - static const int CELINE_HASH = HashingUtils::HashString("CELINE"); - static const int CHANTAL_HASH = HashingUtils::HashString("CHANTAL"); - static const int CONCHITA_HASH = HashingUtils::HashString("CONCHITA"); - static const int CRISTIANO_HASH = HashingUtils::HashString("CRISTIANO"); - static const int DORA_HASH = HashingUtils::HashString("DORA"); - static const int EMMA_HASH = HashingUtils::HashString("EMMA"); - static const int ENRIQUE_HASH = HashingUtils::HashString("ENRIQUE"); - static const int EWA_HASH = HashingUtils::HashString("EWA"); - static const int FILIZ_HASH = HashingUtils::HashString("FILIZ"); - static const int GERAINT_HASH = HashingUtils::HashString("GERAINT"); - static const int GIORGIO_HASH = HashingUtils::HashString("GIORGIO"); - static const int GWYNETH_HASH = HashingUtils::HashString("GWYNETH"); - static const int HANS_HASH = HashingUtils::HashString("HANS"); - static const int INES_HASH = HashingUtils::HashString("INES"); - static const int IVY_HASH = HashingUtils::HashString("IVY"); - static const int JACEK_HASH = HashingUtils::HashString("JACEK"); - static const int JAN_HASH = HashingUtils::HashString("JAN"); - static const int JOANNA_HASH = HashingUtils::HashString("JOANNA"); - static const int JOEY_HASH = HashingUtils::HashString("JOEY"); - static const int JUSTIN_HASH = HashingUtils::HashString("JUSTIN"); - static const int KARL_HASH = HashingUtils::HashString("KARL"); - static const int KENDRA_HASH = HashingUtils::HashString("KENDRA"); - static const int KIMBERLY_HASH = HashingUtils::HashString("KIMBERLY"); - static const int LEA_HASH = HashingUtils::HashString("LEA"); - static const int LIV_HASH = HashingUtils::HashString("LIV"); - static const int LOTTE_HASH = HashingUtils::HashString("LOTTE"); - static const int LUCIA_HASH = HashingUtils::HashString("LUCIA"); - static const int LUPE_HASH = HashingUtils::HashString("LUPE"); - static const int MADS_HASH = HashingUtils::HashString("MADS"); - static const int MAJA_HASH = HashingUtils::HashString("MAJA"); - static const int MARLENE_HASH = HashingUtils::HashString("MARLENE"); - static const int MATHIEU_HASH = HashingUtils::HashString("MATHIEU"); - static const int MATTHEW_HASH = HashingUtils::HashString("MATTHEW"); - static const int MAXIM_HASH = HashingUtils::HashString("MAXIM"); - static const int MIA_HASH = HashingUtils::HashString("MIA"); - static const int MIGUEL_HASH = HashingUtils::HashString("MIGUEL"); - static const int MIZUKI_HASH = HashingUtils::HashString("MIZUKI"); - static const int NAJA_HASH = HashingUtils::HashString("NAJA"); - static const int NICOLE_HASH = HashingUtils::HashString("NICOLE"); - static const int PENELOPE_HASH = HashingUtils::HashString("PENELOPE"); - static const int RAVEENA_HASH = HashingUtils::HashString("RAVEENA"); - static const int RICARDO_HASH = HashingUtils::HashString("RICARDO"); - static const int RUBEN_HASH = HashingUtils::HashString("RUBEN"); - static const int RUSSELL_HASH = HashingUtils::HashString("RUSSELL"); - static const int SALLI_HASH = HashingUtils::HashString("SALLI"); - static const int SEOYEON_HASH = HashingUtils::HashString("SEOYEON"); - static const int TAKUMI_HASH = HashingUtils::HashString("TAKUMI"); - static const int TATYANA_HASH = HashingUtils::HashString("TATYANA"); - static const int VICKI_HASH = HashingUtils::HashString("VICKI"); - static const int VITORIA_HASH = HashingUtils::HashString("VITORIA"); - static const int ZEINA_HASH = HashingUtils::HashString("ZEINA"); - static const int ZHIYU_HASH = HashingUtils::HashString("ZHIYU"); + static constexpr uint32_t AMY_HASH = ConstExprHashingUtils::HashString("AMY"); + static constexpr uint32_t ASTRID_HASH = ConstExprHashingUtils::HashString("ASTRID"); + static constexpr uint32_t BIANCA_HASH = ConstExprHashingUtils::HashString("BIANCA"); + static constexpr uint32_t BRIAN_HASH = ConstExprHashingUtils::HashString("BRIAN"); + static constexpr uint32_t CAMILA_HASH = ConstExprHashingUtils::HashString("CAMILA"); + static constexpr uint32_t CARLA_HASH = ConstExprHashingUtils::HashString("CARLA"); + static constexpr uint32_t CARMEN_HASH = ConstExprHashingUtils::HashString("CARMEN"); + static constexpr uint32_t CELINE_HASH = ConstExprHashingUtils::HashString("CELINE"); + static constexpr uint32_t CHANTAL_HASH = ConstExprHashingUtils::HashString("CHANTAL"); + static constexpr uint32_t CONCHITA_HASH = ConstExprHashingUtils::HashString("CONCHITA"); + static constexpr uint32_t CRISTIANO_HASH = ConstExprHashingUtils::HashString("CRISTIANO"); + static constexpr uint32_t DORA_HASH = ConstExprHashingUtils::HashString("DORA"); + static constexpr uint32_t EMMA_HASH = ConstExprHashingUtils::HashString("EMMA"); + static constexpr uint32_t ENRIQUE_HASH = ConstExprHashingUtils::HashString("ENRIQUE"); + static constexpr uint32_t EWA_HASH = ConstExprHashingUtils::HashString("EWA"); + static constexpr uint32_t FILIZ_HASH = ConstExprHashingUtils::HashString("FILIZ"); + static constexpr uint32_t GERAINT_HASH = ConstExprHashingUtils::HashString("GERAINT"); + static constexpr uint32_t GIORGIO_HASH = ConstExprHashingUtils::HashString("GIORGIO"); + static constexpr uint32_t GWYNETH_HASH = ConstExprHashingUtils::HashString("GWYNETH"); + static constexpr uint32_t HANS_HASH = ConstExprHashingUtils::HashString("HANS"); + static constexpr uint32_t INES_HASH = ConstExprHashingUtils::HashString("INES"); + static constexpr uint32_t IVY_HASH = ConstExprHashingUtils::HashString("IVY"); + static constexpr uint32_t JACEK_HASH = ConstExprHashingUtils::HashString("JACEK"); + static constexpr uint32_t JAN_HASH = ConstExprHashingUtils::HashString("JAN"); + static constexpr uint32_t JOANNA_HASH = ConstExprHashingUtils::HashString("JOANNA"); + static constexpr uint32_t JOEY_HASH = ConstExprHashingUtils::HashString("JOEY"); + static constexpr uint32_t JUSTIN_HASH = ConstExprHashingUtils::HashString("JUSTIN"); + static constexpr uint32_t KARL_HASH = ConstExprHashingUtils::HashString("KARL"); + static constexpr uint32_t KENDRA_HASH = ConstExprHashingUtils::HashString("KENDRA"); + static constexpr uint32_t KIMBERLY_HASH = ConstExprHashingUtils::HashString("KIMBERLY"); + static constexpr uint32_t LEA_HASH = ConstExprHashingUtils::HashString("LEA"); + static constexpr uint32_t LIV_HASH = ConstExprHashingUtils::HashString("LIV"); + static constexpr uint32_t LOTTE_HASH = ConstExprHashingUtils::HashString("LOTTE"); + static constexpr uint32_t LUCIA_HASH = ConstExprHashingUtils::HashString("LUCIA"); + static constexpr uint32_t LUPE_HASH = ConstExprHashingUtils::HashString("LUPE"); + static constexpr uint32_t MADS_HASH = ConstExprHashingUtils::HashString("MADS"); + static constexpr uint32_t MAJA_HASH = ConstExprHashingUtils::HashString("MAJA"); + static constexpr uint32_t MARLENE_HASH = ConstExprHashingUtils::HashString("MARLENE"); + static constexpr uint32_t MATHIEU_HASH = ConstExprHashingUtils::HashString("MATHIEU"); + static constexpr uint32_t MATTHEW_HASH = ConstExprHashingUtils::HashString("MATTHEW"); + static constexpr uint32_t MAXIM_HASH = ConstExprHashingUtils::HashString("MAXIM"); + static constexpr uint32_t MIA_HASH = ConstExprHashingUtils::HashString("MIA"); + static constexpr uint32_t MIGUEL_HASH = ConstExprHashingUtils::HashString("MIGUEL"); + static constexpr uint32_t MIZUKI_HASH = ConstExprHashingUtils::HashString("MIZUKI"); + static constexpr uint32_t NAJA_HASH = ConstExprHashingUtils::HashString("NAJA"); + static constexpr uint32_t NICOLE_HASH = ConstExprHashingUtils::HashString("NICOLE"); + static constexpr uint32_t PENELOPE_HASH = ConstExprHashingUtils::HashString("PENELOPE"); + static constexpr uint32_t RAVEENA_HASH = ConstExprHashingUtils::HashString("RAVEENA"); + static constexpr uint32_t RICARDO_HASH = ConstExprHashingUtils::HashString("RICARDO"); + static constexpr uint32_t RUBEN_HASH = ConstExprHashingUtils::HashString("RUBEN"); + static constexpr uint32_t RUSSELL_HASH = ConstExprHashingUtils::HashString("RUSSELL"); + static constexpr uint32_t SALLI_HASH = ConstExprHashingUtils::HashString("SALLI"); + static constexpr uint32_t SEOYEON_HASH = ConstExprHashingUtils::HashString("SEOYEON"); + static constexpr uint32_t TAKUMI_HASH = ConstExprHashingUtils::HashString("TAKUMI"); + static constexpr uint32_t TATYANA_HASH = ConstExprHashingUtils::HashString("TATYANA"); + static constexpr uint32_t VICKI_HASH = ConstExprHashingUtils::HashString("VICKI"); + static constexpr uint32_t VITORIA_HASH = ConstExprHashingUtils::HashString("VITORIA"); + static constexpr uint32_t ZEINA_HASH = ConstExprHashingUtils::HashString("ZEINA"); + static constexpr uint32_t ZHIYU_HASH = ConstExprHashingUtils::HashString("ZHIYU"); VoiceId GetVoiceIdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AMY_HASH) { return VoiceId::AMY; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceMessageBodyTextType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceMessageBodyTextType.cpp index 66d12a6dfe2..2f4f6394dba 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceMessageBodyTextType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/VoiceMessageBodyTextType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VoiceMessageBodyTextTypeMapper { - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); - static const int SSML_HASH = HashingUtils::HashString("SSML"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); + static constexpr uint32_t SSML_HASH = ConstExprHashingUtils::HashString("SSML"); VoiceMessageBodyTextType GetVoiceMessageBodyTextTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_HASH) { return VoiceMessageBodyTextType::TEXT; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/PinpointErrors.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/PinpointErrors.cpp index d7bff91b993..287361ca8b4 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/PinpointErrors.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/PinpointErrors.cpp @@ -75,19 +75,19 @@ template<> AWS_PINPOINT_API MethodNotAllowedException PinpointError::GetModeledE namespace PinpointErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int PAYLOAD_TOO_LARGE_HASH = HashingUtils::HashString("PayloadTooLargeException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); -static const int METHOD_NOT_ALLOWED_HASH = HashingUtils::HashString("MethodNotAllowedException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t PAYLOAD_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("PayloadTooLargeException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t METHOD_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("MethodNotAllowedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Action.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Action.cpp index 90765efd905..79c40e3219b 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Action.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Action.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionMapper { - static const int OPEN_APP_HASH = HashingUtils::HashString("OPEN_APP"); - static const int DEEP_LINK_HASH = HashingUtils::HashString("DEEP_LINK"); - static const int URL_HASH = HashingUtils::HashString("URL"); + static constexpr uint32_t OPEN_APP_HASH = ConstExprHashingUtils::HashString("OPEN_APP"); + static constexpr uint32_t DEEP_LINK_HASH = ConstExprHashingUtils::HashString("DEEP_LINK"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); Action GetActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_APP_HASH) { return Action::OPEN_APP; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Alignment.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Alignment.cpp index 2a24fbc6d7f..fbc1e13fa1e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Alignment.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Alignment.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AlignmentMapper { - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int CENTER_HASH = HashingUtils::HashString("CENTER"); - static const int RIGHT_HASH = HashingUtils::HashString("RIGHT"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t CENTER_HASH = ConstExprHashingUtils::HashString("CENTER"); + static constexpr uint32_t RIGHT_HASH = ConstExprHashingUtils::HashString("RIGHT"); Alignment GetAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEFT_HASH) { return Alignment::LEFT; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/AttributeType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/AttributeType.cpp index 27e00f465a6..f80ba9ee0cb 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/AttributeType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/AttributeType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AttributeTypeMapper { - static const int INCLUSIVE_HASH = HashingUtils::HashString("INCLUSIVE"); - static const int EXCLUSIVE_HASH = HashingUtils::HashString("EXCLUSIVE"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int BEFORE_HASH = HashingUtils::HashString("BEFORE"); - static const int AFTER_HASH = HashingUtils::HashString("AFTER"); - static const int ON_HASH = HashingUtils::HashString("ON"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); + static constexpr uint32_t INCLUSIVE_HASH = ConstExprHashingUtils::HashString("INCLUSIVE"); + static constexpr uint32_t EXCLUSIVE_HASH = ConstExprHashingUtils::HashString("EXCLUSIVE"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t BEFORE_HASH = ConstExprHashingUtils::HashString("BEFORE"); + static constexpr uint32_t AFTER_HASH = ConstExprHashingUtils::HashString("AFTER"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); AttributeType GetAttributeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUSIVE_HASH) { return AttributeType::INCLUSIVE; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/ButtonAction.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/ButtonAction.cpp index 65d0e47bd0a..71e02f89773 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/ButtonAction.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/ButtonAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ButtonActionMapper { - static const int LINK_HASH = HashingUtils::HashString("LINK"); - static const int DEEP_LINK_HASH = HashingUtils::HashString("DEEP_LINK"); - static const int CLOSE_HASH = HashingUtils::HashString("CLOSE"); + static constexpr uint32_t LINK_HASH = ConstExprHashingUtils::HashString("LINK"); + static constexpr uint32_t DEEP_LINK_HASH = ConstExprHashingUtils::HashString("DEEP_LINK"); + static constexpr uint32_t CLOSE_HASH = ConstExprHashingUtils::HashString("CLOSE"); ButtonAction GetButtonActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINK_HASH) { return ButtonAction::LINK; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/CampaignStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/CampaignStatus.cpp index b10eff0dc52..04bb46ab7a7 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/CampaignStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/CampaignStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CampaignStatusMapper { - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int EXECUTING_HASH = HashingUtils::HashString("EXECUTING"); - static const int PENDING_NEXT_RUN_HASH = HashingUtils::HashString("PENDING_NEXT_RUN"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int INVALID_HASH = HashingUtils::HashString("INVALID"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t EXECUTING_HASH = ConstExprHashingUtils::HashString("EXECUTING"); + static constexpr uint32_t PENDING_NEXT_RUN_HASH = ConstExprHashingUtils::HashString("PENDING_NEXT_RUN"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t INVALID_HASH = ConstExprHashingUtils::HashString("INVALID"); CampaignStatus GetCampaignStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_HASH) { return CampaignStatus::SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/ChannelType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/ChannelType.cpp index c38869d6303..529697bae74 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/ChannelType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/ChannelType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace ChannelTypeMapper { - static const int PUSH_HASH = HashingUtils::HashString("PUSH"); - static const int GCM_HASH = HashingUtils::HashString("GCM"); - static const int APNS_HASH = HashingUtils::HashString("APNS"); - static const int APNS_SANDBOX_HASH = HashingUtils::HashString("APNS_SANDBOX"); - static const int APNS_VOIP_HASH = HashingUtils::HashString("APNS_VOIP"); - static const int APNS_VOIP_SANDBOX_HASH = HashingUtils::HashString("APNS_VOIP_SANDBOX"); - static const int ADM_HASH = HashingUtils::HashString("ADM"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int BAIDU_HASH = HashingUtils::HashString("BAIDU"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int IN_APP_HASH = HashingUtils::HashString("IN_APP"); + static constexpr uint32_t PUSH_HASH = ConstExprHashingUtils::HashString("PUSH"); + static constexpr uint32_t GCM_HASH = ConstExprHashingUtils::HashString("GCM"); + static constexpr uint32_t APNS_HASH = ConstExprHashingUtils::HashString("APNS"); + static constexpr uint32_t APNS_SANDBOX_HASH = ConstExprHashingUtils::HashString("APNS_SANDBOX"); + static constexpr uint32_t APNS_VOIP_HASH = ConstExprHashingUtils::HashString("APNS_VOIP"); + static constexpr uint32_t APNS_VOIP_SANDBOX_HASH = ConstExprHashingUtils::HashString("APNS_VOIP_SANDBOX"); + static constexpr uint32_t ADM_HASH = ConstExprHashingUtils::HashString("ADM"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t BAIDU_HASH = ConstExprHashingUtils::HashString("BAIDU"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t IN_APP_HASH = ConstExprHashingUtils::HashString("IN_APP"); ChannelType GetChannelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUSH_HASH) { return ChannelType::PUSH; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/DayOfWeek.cpp index 75af24d5d59..ecabb366ca4 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MONDAY_HASH) { return DayOfWeek::MONDAY; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/DeliveryStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/DeliveryStatus.cpp index 0a32a8b338d..3be8fe3c228 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/DeliveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/DeliveryStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DeliveryStatusMapper { - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int THROTTLED_HASH = HashingUtils::HashString("THROTTLED"); - static const int TEMPORARY_FAILURE_HASH = HashingUtils::HashString("TEMPORARY_FAILURE"); - static const int PERMANENT_FAILURE_HASH = HashingUtils::HashString("PERMANENT_FAILURE"); - static const int UNKNOWN_FAILURE_HASH = HashingUtils::HashString("UNKNOWN_FAILURE"); - static const int OPT_OUT_HASH = HashingUtils::HashString("OPT_OUT"); - static const int DUPLICATE_HASH = HashingUtils::HashString("DUPLICATE"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t THROTTLED_HASH = ConstExprHashingUtils::HashString("THROTTLED"); + static constexpr uint32_t TEMPORARY_FAILURE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_FAILURE"); + static constexpr uint32_t PERMANENT_FAILURE_HASH = ConstExprHashingUtils::HashString("PERMANENT_FAILURE"); + static constexpr uint32_t UNKNOWN_FAILURE_HASH = ConstExprHashingUtils::HashString("UNKNOWN_FAILURE"); + static constexpr uint32_t OPT_OUT_HASH = ConstExprHashingUtils::HashString("OPT_OUT"); + static constexpr uint32_t DUPLICATE_HASH = ConstExprHashingUtils::HashString("DUPLICATE"); DeliveryStatus GetDeliveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESSFUL_HASH) { return DeliveryStatus::SUCCESSFUL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/DimensionType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/DimensionType.cpp index d88cbfa8263..5889d96f234 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/DimensionType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/DimensionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DimensionTypeMapper { - static const int INCLUSIVE_HASH = HashingUtils::HashString("INCLUSIVE"); - static const int EXCLUSIVE_HASH = HashingUtils::HashString("EXCLUSIVE"); + static constexpr uint32_t INCLUSIVE_HASH = ConstExprHashingUtils::HashString("INCLUSIVE"); + static constexpr uint32_t EXCLUSIVE_HASH = ConstExprHashingUtils::HashString("EXCLUSIVE"); DimensionType GetDimensionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUSIVE_HASH) { return DimensionType::INCLUSIVE; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Duration.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Duration.cpp index 87b83c0d79e..25b7e9b5f96 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Duration.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Duration.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DurationMapper { - static const int HR_24_HASH = HashingUtils::HashString("HR_24"); - static const int DAY_7_HASH = HashingUtils::HashString("DAY_7"); - static const int DAY_14_HASH = HashingUtils::HashString("DAY_14"); - static const int DAY_30_HASH = HashingUtils::HashString("DAY_30"); + static constexpr uint32_t HR_24_HASH = ConstExprHashingUtils::HashString("HR_24"); + static constexpr uint32_t DAY_7_HASH = ConstExprHashingUtils::HashString("DAY_7"); + static constexpr uint32_t DAY_14_HASH = ConstExprHashingUtils::HashString("DAY_14"); + static constexpr uint32_t DAY_30_HASH = ConstExprHashingUtils::HashString("DAY_30"); Duration GetDurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HR_24_HASH) { return Duration::HR_24; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/FilterType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/FilterType.cpp index 65c3900d2c2..69516f5c032 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/FilterType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/FilterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterTypeMapper { - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int ENDPOINT_HASH = HashingUtils::HashString("ENDPOINT"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t ENDPOINT_HASH = ConstExprHashingUtils::HashString("ENDPOINT"); FilterType GetFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYSTEM_HASH) { return FilterType::SYSTEM; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Format.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Format.cpp index 1181ffdd8d5..4546285d579 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Format.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return Format::CSV; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Frequency.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Frequency.cpp index 49a3eaff6bb..5c6ba610c9b 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Frequency.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Frequency.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FrequencyMapper { - static const int ONCE_HASH = HashingUtils::HashString("ONCE"); - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); - static const int EVENT_HASH = HashingUtils::HashString("EVENT"); - static const int IN_APP_EVENT_HASH = HashingUtils::HashString("IN_APP_EVENT"); + static constexpr uint32_t ONCE_HASH = ConstExprHashingUtils::HashString("ONCE"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); + static constexpr uint32_t EVENT_HASH = ConstExprHashingUtils::HashString("EVENT"); + static constexpr uint32_t IN_APP_EVENT_HASH = ConstExprHashingUtils::HashString("IN_APP_EVENT"); Frequency GetFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONCE_HASH) { return Frequency::ONCE; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Include.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Include.cpp index c4c49422ee7..231f0c2b5a5 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Include.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Include.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IncludeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Include GetIncludeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return Include::ALL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/JobStatus.cpp index 7f14d632c46..7be07a57eb1 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/JobStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace JobStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int PREPARING_FOR_INITIALIZATION_HASH = HashingUtils::HashString("PREPARING_FOR_INITIALIZATION"); - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int PENDING_JOB_HASH = HashingUtils::HashString("PENDING_JOB"); - static const int COMPLETING_HASH = HashingUtils::HashString("COMPLETING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILING_HASH = HashingUtils::HashString("FAILING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t PREPARING_FOR_INITIALIZATION_HASH = ConstExprHashingUtils::HashString("PREPARING_FOR_INITIALIZATION"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t PENDING_JOB_HASH = ConstExprHashingUtils::HashString("PENDING_JOB"); + static constexpr uint32_t COMPLETING_HASH = ConstExprHashingUtils::HashString("COMPLETING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILING_HASH = ConstExprHashingUtils::HashString("FAILING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return JobStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/JourneyRunStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/JourneyRunStatus.cpp index 3955f5171dc..122ff0d2fb0 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/JourneyRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/JourneyRunStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JourneyRunStatusMapper { - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); JourneyRunStatus GetJourneyRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_HASH) { return JourneyRunStatus::SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Layout.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Layout.cpp index 95df67a8d78..026d5229617 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Layout.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Layout.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LayoutMapper { - static const int BOTTOM_BANNER_HASH = HashingUtils::HashString("BOTTOM_BANNER"); - static const int TOP_BANNER_HASH = HashingUtils::HashString("TOP_BANNER"); - static const int OVERLAYS_HASH = HashingUtils::HashString("OVERLAYS"); - static const int MOBILE_FEED_HASH = HashingUtils::HashString("MOBILE_FEED"); - static const int MIDDLE_BANNER_HASH = HashingUtils::HashString("MIDDLE_BANNER"); - static const int CAROUSEL_HASH = HashingUtils::HashString("CAROUSEL"); + static constexpr uint32_t BOTTOM_BANNER_HASH = ConstExprHashingUtils::HashString("BOTTOM_BANNER"); + static constexpr uint32_t TOP_BANNER_HASH = ConstExprHashingUtils::HashString("TOP_BANNER"); + static constexpr uint32_t OVERLAYS_HASH = ConstExprHashingUtils::HashString("OVERLAYS"); + static constexpr uint32_t MOBILE_FEED_HASH = ConstExprHashingUtils::HashString("MOBILE_FEED"); + static constexpr uint32_t MIDDLE_BANNER_HASH = ConstExprHashingUtils::HashString("MIDDLE_BANNER"); + static constexpr uint32_t CAROUSEL_HASH = ConstExprHashingUtils::HashString("CAROUSEL"); Layout GetLayoutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BOTTOM_BANNER_HASH) { return Layout::BOTTOM_BANNER; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/MessageType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/MessageType.cpp index 59ab587eaa8..64e91ba9d1e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/MessageType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/MessageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MessageTypeMapper { - static const int TRANSACTIONAL_HASH = HashingUtils::HashString("TRANSACTIONAL"); - static const int PROMOTIONAL_HASH = HashingUtils::HashString("PROMOTIONAL"); + static constexpr uint32_t TRANSACTIONAL_HASH = ConstExprHashingUtils::HashString("TRANSACTIONAL"); + static constexpr uint32_t PROMOTIONAL_HASH = ConstExprHashingUtils::HashString("PROMOTIONAL"); MessageType GetMessageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSACTIONAL_HASH) { return MessageType::TRANSACTIONAL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Mode.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Mode.cpp index fc7150a6d55..60a07398372 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Mode.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Mode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModeMapper { - static const int DELIVERY_HASH = HashingUtils::HashString("DELIVERY"); - static const int FILTER_HASH = HashingUtils::HashString("FILTER"); + static constexpr uint32_t DELIVERY_HASH = ConstExprHashingUtils::HashString("DELIVERY"); + static constexpr uint32_t FILTER_HASH = ConstExprHashingUtils::HashString("FILTER"); Mode GetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELIVERY_HASH) { return Mode::DELIVERY; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Operator.cpp index eb638284871..0cf311f793e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Operator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperatorMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return Operator::ALL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/RecencyType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/RecencyType.cpp index 584a8390b40..5aa17f4d026 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/RecencyType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/RecencyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecencyTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); RecencyType GetRecencyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RecencyType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/SegmentType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/SegmentType.cpp index dca5c78844e..81f1496e1b9 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/SegmentType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/SegmentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SegmentTypeMapper { - static const int DIMENSIONAL_HASH = HashingUtils::HashString("DIMENSIONAL"); - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); + static constexpr uint32_t DIMENSIONAL_HASH = ConstExprHashingUtils::HashString("DIMENSIONAL"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); SegmentType GetSegmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIMENSIONAL_HASH) { return SegmentType::DIMENSIONAL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/SourceType.cpp index c78c7d98bb0..97d72b3b9b6 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/SourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SourceTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return SourceType::ALL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/State.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/State.cpp index cf5745aeb21..16e027c8d0f 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/State.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/State.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StateMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); - static const int PAUSED_HASH = HashingUtils::HashString("PAUSED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); + static constexpr uint32_t PAUSED_HASH = ConstExprHashingUtils::HashString("PAUSED"); State GetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return State::DRAFT; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/TemplateType.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/TemplateType.cpp index 04ff8b9d685..6502e2658cf 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/TemplateType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/TemplateType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TemplateTypeMapper { - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); - static const int PUSH_HASH = HashingUtils::HashString("PUSH"); - static const int INAPP_HASH = HashingUtils::HashString("INAPP"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); + static constexpr uint32_t PUSH_HASH = ConstExprHashingUtils::HashString("PUSH"); + static constexpr uint32_t INAPP_HASH = ConstExprHashingUtils::HashString("INAPP"); TemplateType GetTemplateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_HASH) { return TemplateType::EMAIL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/Type.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/Type.cpp index d6c25982042..925e8208228 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/Type.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return Type::ALL; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/__EndpointTypesElement.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/__EndpointTypesElement.cpp index d186650f1b6..a65eff0072d 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/__EndpointTypesElement.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/__EndpointTypesElement.cpp @@ -20,24 +20,24 @@ namespace Aws namespace __EndpointTypesElementMapper { - static const int PUSH_HASH = HashingUtils::HashString("PUSH"); - static const int GCM_HASH = HashingUtils::HashString("GCM"); - static const int APNS_HASH = HashingUtils::HashString("APNS"); - static const int APNS_SANDBOX_HASH = HashingUtils::HashString("APNS_SANDBOX"); - static const int APNS_VOIP_HASH = HashingUtils::HashString("APNS_VOIP"); - static const int APNS_VOIP_SANDBOX_HASH = HashingUtils::HashString("APNS_VOIP_SANDBOX"); - static const int ADM_HASH = HashingUtils::HashString("ADM"); - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int BAIDU_HASH = HashingUtils::HashString("BAIDU"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int IN_APP_HASH = HashingUtils::HashString("IN_APP"); + static constexpr uint32_t PUSH_HASH = ConstExprHashingUtils::HashString("PUSH"); + static constexpr uint32_t GCM_HASH = ConstExprHashingUtils::HashString("GCM"); + static constexpr uint32_t APNS_HASH = ConstExprHashingUtils::HashString("APNS"); + static constexpr uint32_t APNS_SANDBOX_HASH = ConstExprHashingUtils::HashString("APNS_SANDBOX"); + static constexpr uint32_t APNS_VOIP_HASH = ConstExprHashingUtils::HashString("APNS_VOIP"); + static constexpr uint32_t APNS_VOIP_SANDBOX_HASH = ConstExprHashingUtils::HashString("APNS_VOIP_SANDBOX"); + static constexpr uint32_t ADM_HASH = ConstExprHashingUtils::HashString("ADM"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t BAIDU_HASH = ConstExprHashingUtils::HashString("BAIDU"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t IN_APP_HASH = ConstExprHashingUtils::HashString("IN_APP"); __EndpointTypesElement Get__EndpointTypesElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUSH_HASH) { return __EndpointTypesElement::PUSH; diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/model/__TimezoneEstimationMethodsElement.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/model/__TimezoneEstimationMethodsElement.cpp index f6014374582..b5f180dab51 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/model/__TimezoneEstimationMethodsElement.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/model/__TimezoneEstimationMethodsElement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace __TimezoneEstimationMethodsElementMapper { - static const int PHONE_NUMBER_HASH = HashingUtils::HashString("PHONE_NUMBER"); - static const int POSTAL_CODE_HASH = HashingUtils::HashString("POSTAL_CODE"); + static constexpr uint32_t PHONE_NUMBER_HASH = ConstExprHashingUtils::HashString("PHONE_NUMBER"); + static constexpr uint32_t POSTAL_CODE_HASH = ConstExprHashingUtils::HashString("POSTAL_CODE"); __TimezoneEstimationMethodsElement Get__TimezoneEstimationMethodsElementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHONE_NUMBER_HASH) { return __TimezoneEstimationMethodsElement::PHONE_NUMBER; diff --git a/generated/src/aws-cpp-sdk-pipes/source/PipesErrors.cpp b/generated/src/aws-cpp-sdk-pipes/source/PipesErrors.cpp index c26ac1b7256..b37a5d9a5c3 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/PipesErrors.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/PipesErrors.cpp @@ -54,15 +54,15 @@ template<> AWS_PIPES_API ValidationException PipesError::GetModeledError() namespace PipesErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/AssignPublicIp.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/AssignPublicIp.cpp index 7e54fd3373e..7af3bb6feeb 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/AssignPublicIp.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/AssignPublicIp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssignPublicIpMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignPublicIp GetAssignPublicIpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignPublicIp::ENABLED; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/BatchJobDependencyType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/BatchJobDependencyType.cpp index c57326512db..e113f9c1c08 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/BatchJobDependencyType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/BatchJobDependencyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BatchJobDependencyTypeMapper { - static const int N_TO_N_HASH = HashingUtils::HashString("N_TO_N"); - static const int SEQUENTIAL_HASH = HashingUtils::HashString("SEQUENTIAL"); + static constexpr uint32_t N_TO_N_HASH = ConstExprHashingUtils::HashString("N_TO_N"); + static constexpr uint32_t SEQUENTIAL_HASH = ConstExprHashingUtils::HashString("SEQUENTIAL"); BatchJobDependencyType GetBatchJobDependencyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == N_TO_N_HASH) { return BatchJobDependencyType::N_TO_N; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/BatchResourceRequirementType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/BatchResourceRequirementType.cpp index 114cac53818..e9f5dbbef72 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/BatchResourceRequirementType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/BatchResourceRequirementType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BatchResourceRequirementTypeMapper { - static const int GPU_HASH = HashingUtils::HashString("GPU"); - static const int MEMORY_HASH = HashingUtils::HashString("MEMORY"); - static const int VCPU_HASH = HashingUtils::HashString("VCPU"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); + static constexpr uint32_t MEMORY_HASH = ConstExprHashingUtils::HashString("MEMORY"); + static constexpr uint32_t VCPU_HASH = ConstExprHashingUtils::HashString("VCPU"); BatchResourceRequirementType GetBatchResourceRequirementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GPU_HASH) { return BatchResourceRequirementType::GPU; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/DynamoDBStreamStartPosition.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/DynamoDBStreamStartPosition.cpp index 5cdc85a36da..8dcb15c91c0 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/DynamoDBStreamStartPosition.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/DynamoDBStreamStartPosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DynamoDBStreamStartPositionMapper { - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); DynamoDBStreamStartPosition GetDynamoDBStreamStartPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRIM_HORIZON_HASH) { return DynamoDBStreamStartPosition::TRIM_HORIZON; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/EcsEnvironmentFileType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/EcsEnvironmentFileType.cpp index efc814a1e2f..0297a57a147 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/EcsEnvironmentFileType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/EcsEnvironmentFileType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EcsEnvironmentFileTypeMapper { - static const int s3_HASH = HashingUtils::HashString("s3"); + static constexpr uint32_t s3_HASH = ConstExprHashingUtils::HashString("s3"); EcsEnvironmentFileType GetEcsEnvironmentFileTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s3_HASH) { return EcsEnvironmentFileType::s3; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/EcsResourceRequirementType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/EcsResourceRequirementType.cpp index fd046c0c30d..7b0eb2d76ac 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/EcsResourceRequirementType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/EcsResourceRequirementType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EcsResourceRequirementTypeMapper { - static const int GPU_HASH = HashingUtils::HashString("GPU"); - static const int InferenceAccelerator_HASH = HashingUtils::HashString("InferenceAccelerator"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); + static constexpr uint32_t InferenceAccelerator_HASH = ConstExprHashingUtils::HashString("InferenceAccelerator"); EcsResourceRequirementType GetEcsResourceRequirementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GPU_HASH) { return EcsResourceRequirementType::GPU; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/KinesisStreamStartPosition.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/KinesisStreamStartPosition.cpp index 76136ee2754..4d05f1ce9d7 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/KinesisStreamStartPosition.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/KinesisStreamStartPosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace KinesisStreamStartPositionMapper { - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); - static const int AT_TIMESTAMP_HASH = HashingUtils::HashString("AT_TIMESTAMP"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); + static constexpr uint32_t AT_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("AT_TIMESTAMP"); KinesisStreamStartPosition GetKinesisStreamStartPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRIM_HORIZON_HASH) { return KinesisStreamStartPosition::TRIM_HORIZON; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/LaunchType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/LaunchType.cpp index f896bcca5f9..d52611e55ae 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/LaunchType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/LaunchType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LaunchTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); LaunchType GetLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return LaunchType::EC2; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/MSKStartPosition.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/MSKStartPosition.cpp index 9915c4ad0f0..47b79b983d2 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/MSKStartPosition.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/MSKStartPosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MSKStartPositionMapper { - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); MSKStartPosition GetMSKStartPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRIM_HORIZON_HASH) { return MSKStartPosition::TRIM_HORIZON; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/OnPartialBatchItemFailureStreams.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/OnPartialBatchItemFailureStreams.cpp index 8e51d8dc533..4f6a0c4a5a8 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/OnPartialBatchItemFailureStreams.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/OnPartialBatchItemFailureStreams.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OnPartialBatchItemFailureStreamsMapper { - static const int AUTOMATIC_BISECT_HASH = HashingUtils::HashString("AUTOMATIC_BISECT"); + static constexpr uint32_t AUTOMATIC_BISECT_HASH = ConstExprHashingUtils::HashString("AUTOMATIC_BISECT"); OnPartialBatchItemFailureStreams GetOnPartialBatchItemFailureStreamsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_BISECT_HASH) { return OnPartialBatchItemFailureStreams::AUTOMATIC_BISECT; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/PipeState.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/PipeState.cpp index 11164977369..7b7fd11a8f8 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/PipeState.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/PipeState.cpp @@ -20,22 +20,22 @@ namespace Aws namespace PipeStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int START_FAILED_HASH = HashingUtils::HashString("START_FAILED"); - static const int STOP_FAILED_HASH = HashingUtils::HashString("STOP_FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t START_FAILED_HASH = ConstExprHashingUtils::HashString("START_FAILED"); + static constexpr uint32_t STOP_FAILED_HASH = ConstExprHashingUtils::HashString("STOP_FAILED"); PipeState GetPipeStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return PipeState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/PipeTargetInvocationType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/PipeTargetInvocationType.cpp index 8768191bd6c..61a7101a725 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/PipeTargetInvocationType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/PipeTargetInvocationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PipeTargetInvocationTypeMapper { - static const int REQUEST_RESPONSE_HASH = HashingUtils::HashString("REQUEST_RESPONSE"); - static const int FIRE_AND_FORGET_HASH = HashingUtils::HashString("FIRE_AND_FORGET"); + static constexpr uint32_t REQUEST_RESPONSE_HASH = ConstExprHashingUtils::HashString("REQUEST_RESPONSE"); + static constexpr uint32_t FIRE_AND_FORGET_HASH = ConstExprHashingUtils::HashString("FIRE_AND_FORGET"); PipeTargetInvocationType GetPipeTargetInvocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUEST_RESPONSE_HASH) { return PipeTargetInvocationType::REQUEST_RESPONSE; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/PlacementConstraintType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/PlacementConstraintType.cpp index f843ac90e05..5e7d3f9e0f8 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/PlacementConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/PlacementConstraintType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlacementConstraintTypeMapper { - static const int distinctInstance_HASH = HashingUtils::HashString("distinctInstance"); - static const int memberOf_HASH = HashingUtils::HashString("memberOf"); + static constexpr uint32_t distinctInstance_HASH = ConstExprHashingUtils::HashString("distinctInstance"); + static constexpr uint32_t memberOf_HASH = ConstExprHashingUtils::HashString("memberOf"); PlacementConstraintType GetPlacementConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == distinctInstance_HASH) { return PlacementConstraintType::distinctInstance; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/PlacementStrategyType.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/PlacementStrategyType.cpp index e37faf821e9..7ecf6bc3a25 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/PlacementStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/PlacementStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementStrategyTypeMapper { - static const int random_HASH = HashingUtils::HashString("random"); - static const int spread_HASH = HashingUtils::HashString("spread"); - static const int binpack_HASH = HashingUtils::HashString("binpack"); + static constexpr uint32_t random_HASH = ConstExprHashingUtils::HashString("random"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); + static constexpr uint32_t binpack_HASH = ConstExprHashingUtils::HashString("binpack"); PlacementStrategyType GetPlacementStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == random_HASH) { return PlacementStrategyType::random; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/PropagateTags.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/PropagateTags.cpp index 643f248d946..d531f801dbf 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/PropagateTags.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/PropagateTags.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PropagateTagsMapper { - static const int TASK_DEFINITION_HASH = HashingUtils::HashString("TASK_DEFINITION"); + static constexpr uint32_t TASK_DEFINITION_HASH = ConstExprHashingUtils::HashString("TASK_DEFINITION"); PropagateTags GetPropagateTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_DEFINITION_HASH) { return PropagateTags::TASK_DEFINITION; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeState.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeState.cpp index e45eb9437c3..4b101bb2386 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeState.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RequestedPipeStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); RequestedPipeState GetRequestedPipeStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return RequestedPipeState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeStateDescribeResponse.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeStateDescribeResponse.cpp index 49d46592104..6d06629e8ec 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeStateDescribeResponse.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/RequestedPipeStateDescribeResponse.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequestedPipeStateDescribeResponseMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); RequestedPipeStateDescribeResponse GetRequestedPipeStateDescribeResponseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return RequestedPipeStateDescribeResponse::RUNNING; diff --git a/generated/src/aws-cpp-sdk-pipes/source/model/SelfManagedKafkaStartPosition.cpp b/generated/src/aws-cpp-sdk-pipes/source/model/SelfManagedKafkaStartPosition.cpp index d3cbfeb1fa8..e5615b90c9a 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/model/SelfManagedKafkaStartPosition.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/model/SelfManagedKafkaStartPosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SelfManagedKafkaStartPositionMapper { - static const int TRIM_HORIZON_HASH = HashingUtils::HashString("TRIM_HORIZON"); - static const int LATEST_HASH = HashingUtils::HashString("LATEST"); + static constexpr uint32_t TRIM_HORIZON_HASH = ConstExprHashingUtils::HashString("TRIM_HORIZON"); + static constexpr uint32_t LATEST_HASH = ConstExprHashingUtils::HashString("LATEST"); SelfManagedKafkaStartPosition GetSelfManagedKafkaStartPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRIM_HORIZON_HASH) { return SelfManagedKafkaStartPosition::TRIM_HORIZON; diff --git a/generated/src/aws-cpp-sdk-polly/source/PollyErrors.cpp b/generated/src/aws-cpp-sdk-polly/source/PollyErrors.cpp index 8df221a0be1..941815b953f 100644 --- a/generated/src/aws-cpp-sdk-polly/source/PollyErrors.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/PollyErrors.cpp @@ -18,32 +18,32 @@ namespace Polly namespace PollyErrorMapper { -static const int SSML_MARKS_NOT_SUPPORTED_FOR_TEXT_TYPE_HASH = HashingUtils::HashString("SsmlMarksNotSupportedForTextTypeException"); -static const int LEXICON_NOT_FOUND_HASH = HashingUtils::HashString("LexiconNotFoundException"); -static const int INVALID_SNS_TOPIC_ARN_HASH = HashingUtils::HashString("InvalidSnsTopicArnException"); -static const int MARKS_NOT_SUPPORTED_FOR_FORMAT_HASH = HashingUtils::HashString("MarksNotSupportedForFormatException"); -static const int TEXT_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("TextLengthExceededException"); -static const int ENGINE_NOT_SUPPORTED_HASH = HashingUtils::HashString("EngineNotSupportedException"); -static const int UNSUPPORTED_PLS_LANGUAGE_HASH = HashingUtils::HashString("UnsupportedPlsLanguageException"); -static const int UNSUPPORTED_PLS_ALPHABET_HASH = HashingUtils::HashString("UnsupportedPlsAlphabetException"); -static const int LANGUAGE_NOT_SUPPORTED_HASH = HashingUtils::HashString("LanguageNotSupportedException"); -static const int MAX_LEXICONS_NUMBER_EXCEEDED_HASH = HashingUtils::HashString("MaxLexiconsNumberExceededException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_S3_KEY_HASH = HashingUtils::HashString("InvalidS3KeyException"); -static const int INVALID_TASK_ID_HASH = HashingUtils::HashString("InvalidTaskIdException"); -static const int SERVICE_FAILURE_HASH = HashingUtils::HashString("ServiceFailureException"); -static const int SYNTHESIS_TASK_NOT_FOUND_HASH = HashingUtils::HashString("SynthesisTaskNotFoundException"); -static const int INVALID_SAMPLE_RATE_HASH = HashingUtils::HashString("InvalidSampleRateException"); -static const int INVALID_LEXICON_HASH = HashingUtils::HashString("InvalidLexiconException"); -static const int INVALID_S3_BUCKET_HASH = HashingUtils::HashString("InvalidS3BucketException"); -static const int LEXICON_SIZE_EXCEEDED_HASH = HashingUtils::HashString("LexiconSizeExceededException"); -static const int MAX_LEXEME_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("MaxLexemeLengthExceededException"); -static const int INVALID_SSML_HASH = HashingUtils::HashString("InvalidSsmlException"); +static constexpr uint32_t SSML_MARKS_NOT_SUPPORTED_FOR_TEXT_TYPE_HASH = ConstExprHashingUtils::HashString("SsmlMarksNotSupportedForTextTypeException"); +static constexpr uint32_t LEXICON_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("LexiconNotFoundException"); +static constexpr uint32_t INVALID_SNS_TOPIC_ARN_HASH = ConstExprHashingUtils::HashString("InvalidSnsTopicArnException"); +static constexpr uint32_t MARKS_NOT_SUPPORTED_FOR_FORMAT_HASH = ConstExprHashingUtils::HashString("MarksNotSupportedForFormatException"); +static constexpr uint32_t TEXT_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TextLengthExceededException"); +static constexpr uint32_t ENGINE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("EngineNotSupportedException"); +static constexpr uint32_t UNSUPPORTED_PLS_LANGUAGE_HASH = ConstExprHashingUtils::HashString("UnsupportedPlsLanguageException"); +static constexpr uint32_t UNSUPPORTED_PLS_ALPHABET_HASH = ConstExprHashingUtils::HashString("UnsupportedPlsAlphabetException"); +static constexpr uint32_t LANGUAGE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("LanguageNotSupportedException"); +static constexpr uint32_t MAX_LEXICONS_NUMBER_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxLexiconsNumberExceededException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_S3_KEY_HASH = ConstExprHashingUtils::HashString("InvalidS3KeyException"); +static constexpr uint32_t INVALID_TASK_ID_HASH = ConstExprHashingUtils::HashString("InvalidTaskIdException"); +static constexpr uint32_t SERVICE_FAILURE_HASH = ConstExprHashingUtils::HashString("ServiceFailureException"); +static constexpr uint32_t SYNTHESIS_TASK_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SynthesisTaskNotFoundException"); +static constexpr uint32_t INVALID_SAMPLE_RATE_HASH = ConstExprHashingUtils::HashString("InvalidSampleRateException"); +static constexpr uint32_t INVALID_LEXICON_HASH = ConstExprHashingUtils::HashString("InvalidLexiconException"); +static constexpr uint32_t INVALID_S3_BUCKET_HASH = ConstExprHashingUtils::HashString("InvalidS3BucketException"); +static constexpr uint32_t LEXICON_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LexiconSizeExceededException"); +static constexpr uint32_t MAX_LEXEME_LENGTH_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxLexemeLengthExceededException"); +static constexpr uint32_t INVALID_SSML_HASH = ConstExprHashingUtils::HashString("InvalidSsmlException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SSML_MARKS_NOT_SUPPORTED_FOR_TEXT_TYPE_HASH) { diff --git a/generated/src/aws-cpp-sdk-polly/source/model/Engine.cpp b/generated/src/aws-cpp-sdk-polly/source/model/Engine.cpp index d706e73baa3..76d6d54a783 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/Engine.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/Engine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngineMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int neural_HASH = HashingUtils::HashString("neural"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t neural_HASH = ConstExprHashingUtils::HashString("neural"); Engine GetEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return Engine::standard; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/Gender.cpp b/generated/src/aws-cpp-sdk-polly/source/model/Gender.cpp index c4b39eaadcf..ec83054aefc 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/Gender.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/Gender.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GenderMapper { - static const int Female_HASH = HashingUtils::HashString("Female"); - static const int Male_HASH = HashingUtils::HashString("Male"); + static constexpr uint32_t Female_HASH = ConstExprHashingUtils::HashString("Female"); + static constexpr uint32_t Male_HASH = ConstExprHashingUtils::HashString("Male"); Gender GetGenderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Female_HASH) { return Gender::Female; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-polly/source/model/LanguageCode.cpp index 3f3e629e36b..2406bde7658 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/LanguageCode.cpp @@ -20,50 +20,50 @@ namespace Aws namespace LanguageCodeMapper { - static const int arb_HASH = HashingUtils::HashString("arb"); - static const int cmn_CN_HASH = HashingUtils::HashString("cmn-CN"); - static const int cy_GB_HASH = HashingUtils::HashString("cy-GB"); - static const int da_DK_HASH = HashingUtils::HashString("da-DK"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int en_GB_WLS_HASH = HashingUtils::HashString("en-GB-WLS"); - static const int en_IN_HASH = HashingUtils::HashString("en-IN"); - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int es_ES_HASH = HashingUtils::HashString("es-ES"); - static const int es_MX_HASH = HashingUtils::HashString("es-MX"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int is_IS_HASH = HashingUtils::HashString("is-IS"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); - static const int nb_NO_HASH = HashingUtils::HashString("nb-NO"); - static const int nl_NL_HASH = HashingUtils::HashString("nl-NL"); - static const int pl_PL_HASH = HashingUtils::HashString("pl-PL"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int pt_PT_HASH = HashingUtils::HashString("pt-PT"); - static const int ro_RO_HASH = HashingUtils::HashString("ro-RO"); - static const int ru_RU_HASH = HashingUtils::HashString("ru-RU"); - static const int sv_SE_HASH = HashingUtils::HashString("sv-SE"); - static const int tr_TR_HASH = HashingUtils::HashString("tr-TR"); - static const int en_NZ_HASH = HashingUtils::HashString("en-NZ"); - static const int en_ZA_HASH = HashingUtils::HashString("en-ZA"); - static const int ca_ES_HASH = HashingUtils::HashString("ca-ES"); - static const int de_AT_HASH = HashingUtils::HashString("de-AT"); - static const int yue_CN_HASH = HashingUtils::HashString("yue-CN"); - static const int ar_AE_HASH = HashingUtils::HashString("ar-AE"); - static const int fi_FI_HASH = HashingUtils::HashString("fi-FI"); - static const int en_IE_HASH = HashingUtils::HashString("en-IE"); - static const int nl_BE_HASH = HashingUtils::HashString("nl-BE"); - static const int fr_BE_HASH = HashingUtils::HashString("fr-BE"); + static constexpr uint32_t arb_HASH = ConstExprHashingUtils::HashString("arb"); + static constexpr uint32_t cmn_CN_HASH = ConstExprHashingUtils::HashString("cmn-CN"); + static constexpr uint32_t cy_GB_HASH = ConstExprHashingUtils::HashString("cy-GB"); + static constexpr uint32_t da_DK_HASH = ConstExprHashingUtils::HashString("da-DK"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t en_GB_WLS_HASH = ConstExprHashingUtils::HashString("en-GB-WLS"); + static constexpr uint32_t en_IN_HASH = ConstExprHashingUtils::HashString("en-IN"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t es_ES_HASH = ConstExprHashingUtils::HashString("es-ES"); + static constexpr uint32_t es_MX_HASH = ConstExprHashingUtils::HashString("es-MX"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t is_IS_HASH = ConstExprHashingUtils::HashString("is-IS"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); + static constexpr uint32_t nb_NO_HASH = ConstExprHashingUtils::HashString("nb-NO"); + static constexpr uint32_t nl_NL_HASH = ConstExprHashingUtils::HashString("nl-NL"); + static constexpr uint32_t pl_PL_HASH = ConstExprHashingUtils::HashString("pl-PL"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t pt_PT_HASH = ConstExprHashingUtils::HashString("pt-PT"); + static constexpr uint32_t ro_RO_HASH = ConstExprHashingUtils::HashString("ro-RO"); + static constexpr uint32_t ru_RU_HASH = ConstExprHashingUtils::HashString("ru-RU"); + static constexpr uint32_t sv_SE_HASH = ConstExprHashingUtils::HashString("sv-SE"); + static constexpr uint32_t tr_TR_HASH = ConstExprHashingUtils::HashString("tr-TR"); + static constexpr uint32_t en_NZ_HASH = ConstExprHashingUtils::HashString("en-NZ"); + static constexpr uint32_t en_ZA_HASH = ConstExprHashingUtils::HashString("en-ZA"); + static constexpr uint32_t ca_ES_HASH = ConstExprHashingUtils::HashString("ca-ES"); + static constexpr uint32_t de_AT_HASH = ConstExprHashingUtils::HashString("de-AT"); + static constexpr uint32_t yue_CN_HASH = ConstExprHashingUtils::HashString("yue-CN"); + static constexpr uint32_t ar_AE_HASH = ConstExprHashingUtils::HashString("ar-AE"); + static constexpr uint32_t fi_FI_HASH = ConstExprHashingUtils::HashString("fi-FI"); + static constexpr uint32_t en_IE_HASH = ConstExprHashingUtils::HashString("en-IE"); + static constexpr uint32_t nl_BE_HASH = ConstExprHashingUtils::HashString("nl-BE"); + static constexpr uint32_t fr_BE_HASH = ConstExprHashingUtils::HashString("fr-BE"); LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == arb_HASH) { return LanguageCode::arb; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/OutputFormat.cpp b/generated/src/aws-cpp-sdk-polly/source/model/OutputFormat.cpp index 279a9b7ee3e..229e7a23b16 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/OutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/OutputFormat.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OutputFormatMapper { - static const int json_HASH = HashingUtils::HashString("json"); - static const int mp3_HASH = HashingUtils::HashString("mp3"); - static const int ogg_vorbis_HASH = HashingUtils::HashString("ogg_vorbis"); - static const int pcm_HASH = HashingUtils::HashString("pcm"); + static constexpr uint32_t json_HASH = ConstExprHashingUtils::HashString("json"); + static constexpr uint32_t mp3_HASH = ConstExprHashingUtils::HashString("mp3"); + static constexpr uint32_t ogg_vorbis_HASH = ConstExprHashingUtils::HashString("ogg_vorbis"); + static constexpr uint32_t pcm_HASH = ConstExprHashingUtils::HashString("pcm"); OutputFormat GetOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == json_HASH) { return OutputFormat::json; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/SpeechMarkType.cpp b/generated/src/aws-cpp-sdk-polly/source/model/SpeechMarkType.cpp index 3bdb64d76ce..c152666bd1e 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/SpeechMarkType.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/SpeechMarkType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SpeechMarkTypeMapper { - static const int sentence_HASH = HashingUtils::HashString("sentence"); - static const int ssml_HASH = HashingUtils::HashString("ssml"); - static const int viseme_HASH = HashingUtils::HashString("viseme"); - static const int word_HASH = HashingUtils::HashString("word"); + static constexpr uint32_t sentence_HASH = ConstExprHashingUtils::HashString("sentence"); + static constexpr uint32_t ssml_HASH = ConstExprHashingUtils::HashString("ssml"); + static constexpr uint32_t viseme_HASH = ConstExprHashingUtils::HashString("viseme"); + static constexpr uint32_t word_HASH = ConstExprHashingUtils::HashString("word"); SpeechMarkType GetSpeechMarkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sentence_HASH) { return SpeechMarkType::sentence; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/TaskStatus.cpp b/generated/src/aws-cpp-sdk-polly/source/model/TaskStatus.cpp index 6fcd44fcf96..c17ff687f01 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/TaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/TaskStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TaskStatusMapper { - static const int scheduled_HASH = HashingUtils::HashString("scheduled"); - static const int inProgress_HASH = HashingUtils::HashString("inProgress"); - static const int completed_HASH = HashingUtils::HashString("completed"); - static const int failed_HASH = HashingUtils::HashString("failed"); + static constexpr uint32_t scheduled_HASH = ConstExprHashingUtils::HashString("scheduled"); + static constexpr uint32_t inProgress_HASH = ConstExprHashingUtils::HashString("inProgress"); + static constexpr uint32_t completed_HASH = ConstExprHashingUtils::HashString("completed"); + static constexpr uint32_t failed_HASH = ConstExprHashingUtils::HashString("failed"); TaskStatus GetTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == scheduled_HASH) { return TaskStatus::scheduled; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/TextType.cpp b/generated/src/aws-cpp-sdk-polly/source/model/TextType.cpp index 9a822d5edf4..e21da365982 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/TextType.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/TextType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TextTypeMapper { - static const int ssml_HASH = HashingUtils::HashString("ssml"); - static const int text_HASH = HashingUtils::HashString("text"); + static constexpr uint32_t ssml_HASH = ConstExprHashingUtils::HashString("ssml"); + static constexpr uint32_t text_HASH = ConstExprHashingUtils::HashString("text"); TextType GetTextTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ssml_HASH) { return TextType::ssml; diff --git a/generated/src/aws-cpp-sdk-polly/source/model/VoiceId.cpp b/generated/src/aws-cpp-sdk-polly/source/model/VoiceId.cpp index b81ad17b3b9..d2013945745 100644 --- a/generated/src/aws-cpp-sdk-polly/source/model/VoiceId.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/model/VoiceId.cpp @@ -20,104 +20,104 @@ namespace Aws namespace VoiceIdMapper { - static const int Aditi_HASH = HashingUtils::HashString("Aditi"); - static const int Amy_HASH = HashingUtils::HashString("Amy"); - static const int Astrid_HASH = HashingUtils::HashString("Astrid"); - static const int Bianca_HASH = HashingUtils::HashString("Bianca"); - static const int Brian_HASH = HashingUtils::HashString("Brian"); - static const int Camila_HASH = HashingUtils::HashString("Camila"); - static const int Carla_HASH = HashingUtils::HashString("Carla"); - static const int Carmen_HASH = HashingUtils::HashString("Carmen"); - static const int Celine_HASH = HashingUtils::HashString("Celine"); - static const int Chantal_HASH = HashingUtils::HashString("Chantal"); - static const int Conchita_HASH = HashingUtils::HashString("Conchita"); - static const int Cristiano_HASH = HashingUtils::HashString("Cristiano"); - static const int Dora_HASH = HashingUtils::HashString("Dora"); - static const int Emma_HASH = HashingUtils::HashString("Emma"); - static const int Enrique_HASH = HashingUtils::HashString("Enrique"); - static const int Ewa_HASH = HashingUtils::HashString("Ewa"); - static const int Filiz_HASH = HashingUtils::HashString("Filiz"); - static const int Gabrielle_HASH = HashingUtils::HashString("Gabrielle"); - static const int Geraint_HASH = HashingUtils::HashString("Geraint"); - static const int Giorgio_HASH = HashingUtils::HashString("Giorgio"); - static const int Gwyneth_HASH = HashingUtils::HashString("Gwyneth"); - static const int Hans_HASH = HashingUtils::HashString("Hans"); - static const int Ines_HASH = HashingUtils::HashString("Ines"); - static const int Ivy_HASH = HashingUtils::HashString("Ivy"); - static const int Jacek_HASH = HashingUtils::HashString("Jacek"); - static const int Jan_HASH = HashingUtils::HashString("Jan"); - static const int Joanna_HASH = HashingUtils::HashString("Joanna"); - static const int Joey_HASH = HashingUtils::HashString("Joey"); - static const int Justin_HASH = HashingUtils::HashString("Justin"); - static const int Karl_HASH = HashingUtils::HashString("Karl"); - static const int Kendra_HASH = HashingUtils::HashString("Kendra"); - static const int Kevin_HASH = HashingUtils::HashString("Kevin"); - static const int Kimberly_HASH = HashingUtils::HashString("Kimberly"); - static const int Lea_HASH = HashingUtils::HashString("Lea"); - static const int Liv_HASH = HashingUtils::HashString("Liv"); - static const int Lotte_HASH = HashingUtils::HashString("Lotte"); - static const int Lucia_HASH = HashingUtils::HashString("Lucia"); - static const int Lupe_HASH = HashingUtils::HashString("Lupe"); - static const int Mads_HASH = HashingUtils::HashString("Mads"); - static const int Maja_HASH = HashingUtils::HashString("Maja"); - static const int Marlene_HASH = HashingUtils::HashString("Marlene"); - static const int Mathieu_HASH = HashingUtils::HashString("Mathieu"); - static const int Matthew_HASH = HashingUtils::HashString("Matthew"); - static const int Maxim_HASH = HashingUtils::HashString("Maxim"); - static const int Mia_HASH = HashingUtils::HashString("Mia"); - static const int Miguel_HASH = HashingUtils::HashString("Miguel"); - static const int Mizuki_HASH = HashingUtils::HashString("Mizuki"); - static const int Naja_HASH = HashingUtils::HashString("Naja"); - static const int Nicole_HASH = HashingUtils::HashString("Nicole"); - static const int Olivia_HASH = HashingUtils::HashString("Olivia"); - static const int Penelope_HASH = HashingUtils::HashString("Penelope"); - static const int Raveena_HASH = HashingUtils::HashString("Raveena"); - static const int Ricardo_HASH = HashingUtils::HashString("Ricardo"); - static const int Ruben_HASH = HashingUtils::HashString("Ruben"); - static const int Russell_HASH = HashingUtils::HashString("Russell"); - static const int Salli_HASH = HashingUtils::HashString("Salli"); - static const int Seoyeon_HASH = HashingUtils::HashString("Seoyeon"); - static const int Takumi_HASH = HashingUtils::HashString("Takumi"); - static const int Tatyana_HASH = HashingUtils::HashString("Tatyana"); - static const int Vicki_HASH = HashingUtils::HashString("Vicki"); - static const int Vitoria_HASH = HashingUtils::HashString("Vitoria"); - static const int Zeina_HASH = HashingUtils::HashString("Zeina"); - static const int Zhiyu_HASH = HashingUtils::HashString("Zhiyu"); - static const int Aria_HASH = HashingUtils::HashString("Aria"); - static const int Ayanda_HASH = HashingUtils::HashString("Ayanda"); - static const int Arlet_HASH = HashingUtils::HashString("Arlet"); - static const int Hannah_HASH = HashingUtils::HashString("Hannah"); - static const int Arthur_HASH = HashingUtils::HashString("Arthur"); - static const int Daniel_HASH = HashingUtils::HashString("Daniel"); - static const int Liam_HASH = HashingUtils::HashString("Liam"); - static const int Pedro_HASH = HashingUtils::HashString("Pedro"); - static const int Kajal_HASH = HashingUtils::HashString("Kajal"); - static const int Hiujin_HASH = HashingUtils::HashString("Hiujin"); - static const int Laura_HASH = HashingUtils::HashString("Laura"); - static const int Elin_HASH = HashingUtils::HashString("Elin"); - static const int Ida_HASH = HashingUtils::HashString("Ida"); - static const int Suvi_HASH = HashingUtils::HashString("Suvi"); - static const int Ola_HASH = HashingUtils::HashString("Ola"); - static const int Hala_HASH = HashingUtils::HashString("Hala"); - static const int Andres_HASH = HashingUtils::HashString("Andres"); - static const int Sergio_HASH = HashingUtils::HashString("Sergio"); - static const int Remi_HASH = HashingUtils::HashString("Remi"); - static const int Adriano_HASH = HashingUtils::HashString("Adriano"); - static const int Thiago_HASH = HashingUtils::HashString("Thiago"); - static const int Ruth_HASH = HashingUtils::HashString("Ruth"); - static const int Stephen_HASH = HashingUtils::HashString("Stephen"); - static const int Kazuha_HASH = HashingUtils::HashString("Kazuha"); - static const int Tomoko_HASH = HashingUtils::HashString("Tomoko"); - static const int Niamh_HASH = HashingUtils::HashString("Niamh"); - static const int Sofie_HASH = HashingUtils::HashString("Sofie"); - static const int Lisa_HASH = HashingUtils::HashString("Lisa"); - static const int Isabelle_HASH = HashingUtils::HashString("Isabelle"); - static const int Zayd_HASH = HashingUtils::HashString("Zayd"); + static constexpr uint32_t Aditi_HASH = ConstExprHashingUtils::HashString("Aditi"); + static constexpr uint32_t Amy_HASH = ConstExprHashingUtils::HashString("Amy"); + static constexpr uint32_t Astrid_HASH = ConstExprHashingUtils::HashString("Astrid"); + static constexpr uint32_t Bianca_HASH = ConstExprHashingUtils::HashString("Bianca"); + static constexpr uint32_t Brian_HASH = ConstExprHashingUtils::HashString("Brian"); + static constexpr uint32_t Camila_HASH = ConstExprHashingUtils::HashString("Camila"); + static constexpr uint32_t Carla_HASH = ConstExprHashingUtils::HashString("Carla"); + static constexpr uint32_t Carmen_HASH = ConstExprHashingUtils::HashString("Carmen"); + static constexpr uint32_t Celine_HASH = ConstExprHashingUtils::HashString("Celine"); + static constexpr uint32_t Chantal_HASH = ConstExprHashingUtils::HashString("Chantal"); + static constexpr uint32_t Conchita_HASH = ConstExprHashingUtils::HashString("Conchita"); + static constexpr uint32_t Cristiano_HASH = ConstExprHashingUtils::HashString("Cristiano"); + static constexpr uint32_t Dora_HASH = ConstExprHashingUtils::HashString("Dora"); + static constexpr uint32_t Emma_HASH = ConstExprHashingUtils::HashString("Emma"); + static constexpr uint32_t Enrique_HASH = ConstExprHashingUtils::HashString("Enrique"); + static constexpr uint32_t Ewa_HASH = ConstExprHashingUtils::HashString("Ewa"); + static constexpr uint32_t Filiz_HASH = ConstExprHashingUtils::HashString("Filiz"); + static constexpr uint32_t Gabrielle_HASH = ConstExprHashingUtils::HashString("Gabrielle"); + static constexpr uint32_t Geraint_HASH = ConstExprHashingUtils::HashString("Geraint"); + static constexpr uint32_t Giorgio_HASH = ConstExprHashingUtils::HashString("Giorgio"); + static constexpr uint32_t Gwyneth_HASH = ConstExprHashingUtils::HashString("Gwyneth"); + static constexpr uint32_t Hans_HASH = ConstExprHashingUtils::HashString("Hans"); + static constexpr uint32_t Ines_HASH = ConstExprHashingUtils::HashString("Ines"); + static constexpr uint32_t Ivy_HASH = ConstExprHashingUtils::HashString("Ivy"); + static constexpr uint32_t Jacek_HASH = ConstExprHashingUtils::HashString("Jacek"); + static constexpr uint32_t Jan_HASH = ConstExprHashingUtils::HashString("Jan"); + static constexpr uint32_t Joanna_HASH = ConstExprHashingUtils::HashString("Joanna"); + static constexpr uint32_t Joey_HASH = ConstExprHashingUtils::HashString("Joey"); + static constexpr uint32_t Justin_HASH = ConstExprHashingUtils::HashString("Justin"); + static constexpr uint32_t Karl_HASH = ConstExprHashingUtils::HashString("Karl"); + static constexpr uint32_t Kendra_HASH = ConstExprHashingUtils::HashString("Kendra"); + static constexpr uint32_t Kevin_HASH = ConstExprHashingUtils::HashString("Kevin"); + static constexpr uint32_t Kimberly_HASH = ConstExprHashingUtils::HashString("Kimberly"); + static constexpr uint32_t Lea_HASH = ConstExprHashingUtils::HashString("Lea"); + static constexpr uint32_t Liv_HASH = ConstExprHashingUtils::HashString("Liv"); + static constexpr uint32_t Lotte_HASH = ConstExprHashingUtils::HashString("Lotte"); + static constexpr uint32_t Lucia_HASH = ConstExprHashingUtils::HashString("Lucia"); + static constexpr uint32_t Lupe_HASH = ConstExprHashingUtils::HashString("Lupe"); + static constexpr uint32_t Mads_HASH = ConstExprHashingUtils::HashString("Mads"); + static constexpr uint32_t Maja_HASH = ConstExprHashingUtils::HashString("Maja"); + static constexpr uint32_t Marlene_HASH = ConstExprHashingUtils::HashString("Marlene"); + static constexpr uint32_t Mathieu_HASH = ConstExprHashingUtils::HashString("Mathieu"); + static constexpr uint32_t Matthew_HASH = ConstExprHashingUtils::HashString("Matthew"); + static constexpr uint32_t Maxim_HASH = ConstExprHashingUtils::HashString("Maxim"); + static constexpr uint32_t Mia_HASH = ConstExprHashingUtils::HashString("Mia"); + static constexpr uint32_t Miguel_HASH = ConstExprHashingUtils::HashString("Miguel"); + static constexpr uint32_t Mizuki_HASH = ConstExprHashingUtils::HashString("Mizuki"); + static constexpr uint32_t Naja_HASH = ConstExprHashingUtils::HashString("Naja"); + static constexpr uint32_t Nicole_HASH = ConstExprHashingUtils::HashString("Nicole"); + static constexpr uint32_t Olivia_HASH = ConstExprHashingUtils::HashString("Olivia"); + static constexpr uint32_t Penelope_HASH = ConstExprHashingUtils::HashString("Penelope"); + static constexpr uint32_t Raveena_HASH = ConstExprHashingUtils::HashString("Raveena"); + static constexpr uint32_t Ricardo_HASH = ConstExprHashingUtils::HashString("Ricardo"); + static constexpr uint32_t Ruben_HASH = ConstExprHashingUtils::HashString("Ruben"); + static constexpr uint32_t Russell_HASH = ConstExprHashingUtils::HashString("Russell"); + static constexpr uint32_t Salli_HASH = ConstExprHashingUtils::HashString("Salli"); + static constexpr uint32_t Seoyeon_HASH = ConstExprHashingUtils::HashString("Seoyeon"); + static constexpr uint32_t Takumi_HASH = ConstExprHashingUtils::HashString("Takumi"); + static constexpr uint32_t Tatyana_HASH = ConstExprHashingUtils::HashString("Tatyana"); + static constexpr uint32_t Vicki_HASH = ConstExprHashingUtils::HashString("Vicki"); + static constexpr uint32_t Vitoria_HASH = ConstExprHashingUtils::HashString("Vitoria"); + static constexpr uint32_t Zeina_HASH = ConstExprHashingUtils::HashString("Zeina"); + static constexpr uint32_t Zhiyu_HASH = ConstExprHashingUtils::HashString("Zhiyu"); + static constexpr uint32_t Aria_HASH = ConstExprHashingUtils::HashString("Aria"); + static constexpr uint32_t Ayanda_HASH = ConstExprHashingUtils::HashString("Ayanda"); + static constexpr uint32_t Arlet_HASH = ConstExprHashingUtils::HashString("Arlet"); + static constexpr uint32_t Hannah_HASH = ConstExprHashingUtils::HashString("Hannah"); + static constexpr uint32_t Arthur_HASH = ConstExprHashingUtils::HashString("Arthur"); + static constexpr uint32_t Daniel_HASH = ConstExprHashingUtils::HashString("Daniel"); + static constexpr uint32_t Liam_HASH = ConstExprHashingUtils::HashString("Liam"); + static constexpr uint32_t Pedro_HASH = ConstExprHashingUtils::HashString("Pedro"); + static constexpr uint32_t Kajal_HASH = ConstExprHashingUtils::HashString("Kajal"); + static constexpr uint32_t Hiujin_HASH = ConstExprHashingUtils::HashString("Hiujin"); + static constexpr uint32_t Laura_HASH = ConstExprHashingUtils::HashString("Laura"); + static constexpr uint32_t Elin_HASH = ConstExprHashingUtils::HashString("Elin"); + static constexpr uint32_t Ida_HASH = ConstExprHashingUtils::HashString("Ida"); + static constexpr uint32_t Suvi_HASH = ConstExprHashingUtils::HashString("Suvi"); + static constexpr uint32_t Ola_HASH = ConstExprHashingUtils::HashString("Ola"); + static constexpr uint32_t Hala_HASH = ConstExprHashingUtils::HashString("Hala"); + static constexpr uint32_t Andres_HASH = ConstExprHashingUtils::HashString("Andres"); + static constexpr uint32_t Sergio_HASH = ConstExprHashingUtils::HashString("Sergio"); + static constexpr uint32_t Remi_HASH = ConstExprHashingUtils::HashString("Remi"); + static constexpr uint32_t Adriano_HASH = ConstExprHashingUtils::HashString("Adriano"); + static constexpr uint32_t Thiago_HASH = ConstExprHashingUtils::HashString("Thiago"); + static constexpr uint32_t Ruth_HASH = ConstExprHashingUtils::HashString("Ruth"); + static constexpr uint32_t Stephen_HASH = ConstExprHashingUtils::HashString("Stephen"); + static constexpr uint32_t Kazuha_HASH = ConstExprHashingUtils::HashString("Kazuha"); + static constexpr uint32_t Tomoko_HASH = ConstExprHashingUtils::HashString("Tomoko"); + static constexpr uint32_t Niamh_HASH = ConstExprHashingUtils::HashString("Niamh"); + static constexpr uint32_t Sofie_HASH = ConstExprHashingUtils::HashString("Sofie"); + static constexpr uint32_t Lisa_HASH = ConstExprHashingUtils::HashString("Lisa"); + static constexpr uint32_t Isabelle_HASH = ConstExprHashingUtils::HashString("Isabelle"); + static constexpr uint32_t Zayd_HASH = ConstExprHashingUtils::HashString("Zayd"); VoiceId GetVoiceIdForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Aditi_HASH) { return VoiceId::Aditi; diff --git a/generated/src/aws-cpp-sdk-pricing/source/PricingErrors.cpp b/generated/src/aws-cpp-sdk-pricing/source/PricingErrors.cpp index 57998fc34c5..1eaf0a32a1e 100644 --- a/generated/src/aws-cpp-sdk-pricing/source/PricingErrors.cpp +++ b/generated/src/aws-cpp-sdk-pricing/source/PricingErrors.cpp @@ -18,16 +18,16 @@ namespace Pricing namespace PricingErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int EXPIRED_NEXT_TOKEN_HASH = HashingUtils::HashString("ExpiredNextTokenException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t EXPIRED_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredNextTokenException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-pricing/source/model/FilterType.cpp b/generated/src/aws-cpp-sdk-pricing/source/model/FilterType.cpp index c09c8217674..e3b6deb2b6b 100644 --- a/generated/src/aws-cpp-sdk-pricing/source/model/FilterType.cpp +++ b/generated/src/aws-cpp-sdk-pricing/source/model/FilterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FilterTypeMapper { - static const int TERM_MATCH_HASH = HashingUtils::HashString("TERM_MATCH"); + static constexpr uint32_t TERM_MATCH_HASH = ConstExprHashingUtils::HashString("TERM_MATCH"); FilterType GetFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERM_MATCH_HASH) { return FilterType::TERM_MATCH; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/PrivateNetworksErrors.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/PrivateNetworksErrors.cpp index 3e20b22cab2..1d9deb616b9 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/PrivateNetworksErrors.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/PrivateNetworksErrors.cpp @@ -40,13 +40,13 @@ template<> AWS_PRIVATENETWORKS_API ValidationException PrivateNetworksError::Get namespace PrivateNetworksErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/AcknowledgmentStatus.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/AcknowledgmentStatus.cpp index a941acb99a4..d4c66122b6a 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/AcknowledgmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/AcknowledgmentStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AcknowledgmentStatusMapper { - static const int ACKNOWLEDGING_HASH = HashingUtils::HashString("ACKNOWLEDGING"); - static const int ACKNOWLEDGED_HASH = HashingUtils::HashString("ACKNOWLEDGED"); - static const int UNACKNOWLEDGED_HASH = HashingUtils::HashString("UNACKNOWLEDGED"); + static constexpr uint32_t ACKNOWLEDGING_HASH = ConstExprHashingUtils::HashString("ACKNOWLEDGING"); + static constexpr uint32_t ACKNOWLEDGED_HASH = ConstExprHashingUtils::HashString("ACKNOWLEDGED"); + static constexpr uint32_t UNACKNOWLEDGED_HASH = ConstExprHashingUtils::HashString("UNACKNOWLEDGED"); AcknowledgmentStatus GetAcknowledgmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACKNOWLEDGING_HASH) { return AcknowledgmentStatus::ACKNOWLEDGING; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/CommitmentLength.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/CommitmentLength.cpp index 01188ad1469..71a32d64089 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/CommitmentLength.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/CommitmentLength.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CommitmentLengthMapper { - static const int SIXTY_DAYS_HASH = HashingUtils::HashString("SIXTY_DAYS"); - static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); - static const int THREE_YEARS_HASH = HashingUtils::HashString("THREE_YEARS"); + static constexpr uint32_t SIXTY_DAYS_HASH = ConstExprHashingUtils::HashString("SIXTY_DAYS"); + static constexpr uint32_t ONE_YEAR_HASH = ConstExprHashingUtils::HashString("ONE_YEAR"); + static constexpr uint32_t THREE_YEARS_HASH = ConstExprHashingUtils::HashString("THREE_YEARS"); CommitmentLength GetCommitmentLengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIXTY_DAYS_HASH) { return CommitmentLength::SIXTY_DAYS; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierFilterKeys.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierFilterKeys.cpp index 324e2c643ba..7d97e059b02 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierFilterKeys.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierFilterKeys.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeviceIdentifierFilterKeysMapper { - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int ORDER_HASH = HashingUtils::HashString("ORDER"); - static const int TRAFFIC_GROUP_HASH = HashingUtils::HashString("TRAFFIC_GROUP"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t ORDER_HASH = ConstExprHashingUtils::HashString("ORDER"); + static constexpr uint32_t TRAFFIC_GROUP_HASH = ConstExprHashingUtils::HashString("TRAFFIC_GROUP"); DeviceIdentifierFilterKeys GetDeviceIdentifierFilterKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATUS_HASH) { return DeviceIdentifierFilterKeys::STATUS; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierStatus.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierStatus.cpp index ea6c84e0b38..27950644edd 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierStatus.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/DeviceIdentifierStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceIdentifierStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); DeviceIdentifierStatus GetDeviceIdentifierStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DeviceIdentifierStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationReference.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationReference.cpp index 72930acebab..3e276153563 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationReference.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationReference.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ElevationReferenceMapper { - static const int AGL_HASH = HashingUtils::HashString("AGL"); - static const int AMSL_HASH = HashingUtils::HashString("AMSL"); + static constexpr uint32_t AGL_HASH = ConstExprHashingUtils::HashString("AGL"); + static constexpr uint32_t AMSL_HASH = ConstExprHashingUtils::HashString("AMSL"); ElevationReference GetElevationReferenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGL_HASH) { return ElevationReference::AGL; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationUnit.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationUnit.cpp index d6ef65cc258..46f1506df05 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationUnit.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/ElevationUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ElevationUnitMapper { - static const int FEET_HASH = HashingUtils::HashString("FEET"); + static constexpr uint32_t FEET_HASH = ConstExprHashingUtils::HashString("FEET"); ElevationUnit GetElevationUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FEET_HASH) { return ElevationUnit::FEET; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/HealthStatus.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/HealthStatus.cpp index 9fd336af1cd..657ad89a5ab 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/HealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/HealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HealthStatusMapper { - static const int INITIAL_HASH = HashingUtils::HashString("INITIAL"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t INITIAL_HASH = ConstExprHashingUtils::HashString("INITIAL"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); HealthStatus GetHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIAL_HASH) { return HealthStatus::INITIAL; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkFilterKeys.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkFilterKeys.cpp index bcd40a93a67..746cc6bd518 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkFilterKeys.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkFilterKeys.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NetworkFilterKeysMapper { - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); NetworkFilterKeys GetNetworkFilterKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATUS_HASH) { return NetworkFilterKeys::STATUS; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceDefinitionType.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceDefinitionType.cpp index 0b7cb7a0cd4..af176a251cb 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceDefinitionType.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceDefinitionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkResourceDefinitionTypeMapper { - static const int RADIO_UNIT_HASH = HashingUtils::HashString("RADIO_UNIT"); - static const int DEVICE_IDENTIFIER_HASH = HashingUtils::HashString("DEVICE_IDENTIFIER"); + static constexpr uint32_t RADIO_UNIT_HASH = ConstExprHashingUtils::HashString("RADIO_UNIT"); + static constexpr uint32_t DEVICE_IDENTIFIER_HASH = ConstExprHashingUtils::HashString("DEVICE_IDENTIFIER"); NetworkResourceDefinitionType GetNetworkResourceDefinitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RADIO_UNIT_HASH) { return NetworkResourceDefinitionType::RADIO_UNIT; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceFilterKeys.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceFilterKeys.cpp index 80be5322a67..77fe8833da5 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceFilterKeys.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceFilterKeys.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkResourceFilterKeysMapper { - static const int ORDER_HASH = HashingUtils::HashString("ORDER"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); + static constexpr uint32_t ORDER_HASH = ConstExprHashingUtils::HashString("ORDER"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); NetworkResourceFilterKeys GetNetworkResourceFilterKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORDER_HASH) { return NetworkResourceFilterKeys::ORDER; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceStatus.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceStatus.cpp index abfbf4f8e4b..10443e28056 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace NetworkResourceStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SHIPPED_HASH = HashingUtils::HashString("SHIPPED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int PENDING_RETURN_HASH = HashingUtils::HashString("PENDING_RETURN"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int CREATING_SHIPPING_LABEL_HASH = HashingUtils::HashString("CREATING_SHIPPING_LABEL"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SHIPPED_HASH = ConstExprHashingUtils::HashString("SHIPPED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t PENDING_RETURN_HASH = ConstExprHashingUtils::HashString("PENDING_RETURN"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_SHIPPING_LABEL_HASH = ConstExprHashingUtils::HashString("CREATING_SHIPPING_LABEL"); NetworkResourceStatus GetNetworkResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return NetworkResourceStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceType.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceType.cpp index ae302cc08f5..8524315e2f5 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceType.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NetworkResourceTypeMapper { - static const int RADIO_UNIT_HASH = HashingUtils::HashString("RADIO_UNIT"); + static constexpr uint32_t RADIO_UNIT_HASH = ConstExprHashingUtils::HashString("RADIO_UNIT"); NetworkResourceType GetNetworkResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RADIO_UNIT_HASH) { return NetworkResourceType::RADIO_UNIT; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteFilterKeys.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteFilterKeys.cpp index a6918ccdbe0..89a3ff31b3b 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteFilterKeys.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteFilterKeys.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NetworkSiteFilterKeysMapper { - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); NetworkSiteFilterKeys GetNetworkSiteFilterKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATUS_HASH) { return NetworkSiteFilterKeys::STATUS; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteStatus.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteStatus.cpp index b2fefc44afc..45472443937 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteStatus.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkSiteStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NetworkSiteStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DEPROVISIONING_HASH = HashingUtils::HashString("DEPROVISIONING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DEPROVISIONING_HASH = ConstExprHashingUtils::HashString("DEPROVISIONING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); NetworkSiteStatus GetNetworkSiteStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return NetworkSiteStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkStatus.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkStatus.cpp index 4991acc5728..a58107d3900 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkStatus.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/NetworkStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NetworkStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DEPROVISIONING_HASH = HashingUtils::HashString("DEPROVISIONING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DEPROVISIONING_HASH = ConstExprHashingUtils::HashString("DEPROVISIONING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); NetworkStatus GetNetworkStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return NetworkStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/OrderFilterKeys.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/OrderFilterKeys.cpp index 9b1ffcbb3ba..dece94bb277 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/OrderFilterKeys.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/OrderFilterKeys.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderFilterKeysMapper { - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int NETWORK_SITE_HASH = HashingUtils::HashString("NETWORK_SITE"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t NETWORK_SITE_HASH = ConstExprHashingUtils::HashString("NETWORK_SITE"); OrderFilterKeys GetOrderFilterKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATUS_HASH) { return OrderFilterKeys::STATUS; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/UpdateType.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/UpdateType.cpp index c6341aaef0f..f4aee0d78fa 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/UpdateType.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/UpdateType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UpdateTypeMapper { - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); - static const int RETURN_HASH = HashingUtils::HashString("RETURN"); - static const int COMMITMENT_HASH = HashingUtils::HashString("COMMITMENT"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); + static constexpr uint32_t RETURN_HASH = ConstExprHashingUtils::HashString("RETURN"); + static constexpr uint32_t COMMITMENT_HASH = ConstExprHashingUtils::HashString("COMMITMENT"); UpdateType GetUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPLACE_HASH) { return UpdateType::REPLACE; diff --git a/generated/src/aws-cpp-sdk-privatenetworks/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-privatenetworks/source/model/ValidationExceptionReason.cpp index 54d61e6035d..c541175d007 100644 --- a/generated/src/aws-cpp-sdk-privatenetworks/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-privatenetworks/source/model/ValidationExceptionReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int CANNOT_ASSUME_ROLE_HASH = HashingUtils::HashString("CANNOT_ASSUME_ROLE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t CANNOT_ASSUME_ROLE_HASH = ConstExprHashingUtils::HashString("CANNOT_ASSUME_ROLE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-proton/source/ProtonErrors.cpp b/generated/src/aws-cpp-sdk-proton/source/ProtonErrors.cpp index 0c57789f114..767dd7ee2aa 100644 --- a/generated/src/aws-cpp-sdk-proton/source/ProtonErrors.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/ProtonErrors.cpp @@ -18,14 +18,14 @@ namespace Proton namespace ProtonErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-proton/source/model/BlockerStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/BlockerStatus.cpp index 2349ba941e4..60cf5099055 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/BlockerStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/BlockerStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BlockerStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); BlockerStatus GetBlockerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return BlockerStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/BlockerType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/BlockerType.cpp index f45fbed115d..ff468e83c6c 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/BlockerType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/BlockerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BlockerTypeMapper { - static const int AUTOMATED_HASH = HashingUtils::HashString("AUTOMATED"); + static constexpr uint32_t AUTOMATED_HASH = ConstExprHashingUtils::HashString("AUTOMATED"); BlockerType GetBlockerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATED_HASH) { return BlockerType::AUTOMATED; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ComponentDeploymentUpdateType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ComponentDeploymentUpdateType.cpp index 8adaee65d39..4addd6dbe63 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ComponentDeploymentUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ComponentDeploymentUpdateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComponentDeploymentUpdateTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int CURRENT_VERSION_HASH = HashingUtils::HashString("CURRENT_VERSION"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t CURRENT_VERSION_HASH = ConstExprHashingUtils::HashString("CURRENT_VERSION"); ComponentDeploymentUpdateType GetComponentDeploymentUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ComponentDeploymentUpdateType::NONE; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/DeploymentStatus.cpp index e8321b58258..4664290dc6b 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/DeploymentStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DeploymentStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETE_COMPLETE_HASH = HashingUtils::HashString("DELETE_COMPLETE"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETE_COMPLETE_HASH = ConstExprHashingUtils::HashString("DELETE_COMPLETE"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DeploymentStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/DeploymentTargetResourceType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/DeploymentTargetResourceType.cpp index 71adbfb4f89..396b3ec8a57 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/DeploymentTargetResourceType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/DeploymentTargetResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeploymentTargetResourceTypeMapper { - static const int ENVIRONMENT_HASH = HashingUtils::HashString("ENVIRONMENT"); - static const int SERVICE_PIPELINE_HASH = HashingUtils::HashString("SERVICE_PIPELINE"); - static const int SERVICE_INSTANCE_HASH = HashingUtils::HashString("SERVICE_INSTANCE"); - static const int COMPONENT_HASH = HashingUtils::HashString("COMPONENT"); + static constexpr uint32_t ENVIRONMENT_HASH = ConstExprHashingUtils::HashString("ENVIRONMENT"); + static constexpr uint32_t SERVICE_PIPELINE_HASH = ConstExprHashingUtils::HashString("SERVICE_PIPELINE"); + static constexpr uint32_t SERVICE_INSTANCE_HASH = ConstExprHashingUtils::HashString("SERVICE_INSTANCE"); + static constexpr uint32_t COMPONENT_HASH = ConstExprHashingUtils::HashString("COMPONENT"); DeploymentTargetResourceType GetDeploymentTargetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENVIRONMENT_HASH) { return DeploymentTargetResourceType::ENVIRONMENT; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/DeploymentUpdateType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/DeploymentUpdateType.cpp index 3928cab3313..87684796d63 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/DeploymentUpdateType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/DeploymentUpdateType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DeploymentUpdateTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int CURRENT_VERSION_HASH = HashingUtils::HashString("CURRENT_VERSION"); - static const int MINOR_VERSION_HASH = HashingUtils::HashString("MINOR_VERSION"); - static const int MAJOR_VERSION_HASH = HashingUtils::HashString("MAJOR_VERSION"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t CURRENT_VERSION_HASH = ConstExprHashingUtils::HashString("CURRENT_VERSION"); + static constexpr uint32_t MINOR_VERSION_HASH = ConstExprHashingUtils::HashString("MINOR_VERSION"); + static constexpr uint32_t MAJOR_VERSION_HASH = ConstExprHashingUtils::HashString("MAJOR_VERSION"); DeploymentUpdateType GetDeploymentUpdateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DeploymentUpdateType::NONE; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionRequesterAccountType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionRequesterAccountType.cpp index 29fcf769acc..429c0a3c4ab 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionRequesterAccountType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionRequesterAccountType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnvironmentAccountConnectionRequesterAccountTypeMapper { - static const int MANAGEMENT_ACCOUNT_HASH = HashingUtils::HashString("MANAGEMENT_ACCOUNT"); - static const int ENVIRONMENT_ACCOUNT_HASH = HashingUtils::HashString("ENVIRONMENT_ACCOUNT"); + static constexpr uint32_t MANAGEMENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("MANAGEMENT_ACCOUNT"); + static constexpr uint32_t ENVIRONMENT_ACCOUNT_HASH = ConstExprHashingUtils::HashString("ENVIRONMENT_ACCOUNT"); EnvironmentAccountConnectionRequesterAccountType GetEnvironmentAccountConnectionRequesterAccountTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANAGEMENT_ACCOUNT_HASH) { return EnvironmentAccountConnectionRequesterAccountType::MANAGEMENT_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionStatus.cpp index 6659ed6a166..422528d11f3 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/EnvironmentAccountConnectionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EnvironmentAccountConnectionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); EnvironmentAccountConnectionStatus GetEnvironmentAccountConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return EnvironmentAccountConnectionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesFilterBy.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesFilterBy.cpp index 9d4aecf99ae..3876ee30687 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesFilterBy.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesFilterBy.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ListServiceInstancesFilterByMapper { - static const int name_HASH = HashingUtils::HashString("name"); - static const int deploymentStatus_HASH = HashingUtils::HashString("deploymentStatus"); - static const int templateName_HASH = HashingUtils::HashString("templateName"); - static const int serviceName_HASH = HashingUtils::HashString("serviceName"); - static const int deployedTemplateVersionStatus_HASH = HashingUtils::HashString("deployedTemplateVersionStatus"); - static const int environmentName_HASH = HashingUtils::HashString("environmentName"); - static const int lastDeploymentAttemptedAtBefore_HASH = HashingUtils::HashString("lastDeploymentAttemptedAtBefore"); - static const int lastDeploymentAttemptedAtAfter_HASH = HashingUtils::HashString("lastDeploymentAttemptedAtAfter"); - static const int createdAtBefore_HASH = HashingUtils::HashString("createdAtBefore"); - static const int createdAtAfter_HASH = HashingUtils::HashString("createdAtAfter"); + static constexpr uint32_t name_HASH = ConstExprHashingUtils::HashString("name"); + static constexpr uint32_t deploymentStatus_HASH = ConstExprHashingUtils::HashString("deploymentStatus"); + static constexpr uint32_t templateName_HASH = ConstExprHashingUtils::HashString("templateName"); + static constexpr uint32_t serviceName_HASH = ConstExprHashingUtils::HashString("serviceName"); + static constexpr uint32_t deployedTemplateVersionStatus_HASH = ConstExprHashingUtils::HashString("deployedTemplateVersionStatus"); + static constexpr uint32_t environmentName_HASH = ConstExprHashingUtils::HashString("environmentName"); + static constexpr uint32_t lastDeploymentAttemptedAtBefore_HASH = ConstExprHashingUtils::HashString("lastDeploymentAttemptedAtBefore"); + static constexpr uint32_t lastDeploymentAttemptedAtAfter_HASH = ConstExprHashingUtils::HashString("lastDeploymentAttemptedAtAfter"); + static constexpr uint32_t createdAtBefore_HASH = ConstExprHashingUtils::HashString("createdAtBefore"); + static constexpr uint32_t createdAtAfter_HASH = ConstExprHashingUtils::HashString("createdAtAfter"); ListServiceInstancesFilterBy GetListServiceInstancesFilterByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == name_HASH) { return ListServiceInstancesFilterBy::name; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesSortBy.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesSortBy.cpp index 1a19528e566..ddf23c19ff1 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesSortBy.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ListServiceInstancesSortBy.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ListServiceInstancesSortByMapper { - static const int name_HASH = HashingUtils::HashString("name"); - static const int deploymentStatus_HASH = HashingUtils::HashString("deploymentStatus"); - static const int templateName_HASH = HashingUtils::HashString("templateName"); - static const int serviceName_HASH = HashingUtils::HashString("serviceName"); - static const int environmentName_HASH = HashingUtils::HashString("environmentName"); - static const int lastDeploymentAttemptedAt_HASH = HashingUtils::HashString("lastDeploymentAttemptedAt"); - static const int createdAt_HASH = HashingUtils::HashString("createdAt"); + static constexpr uint32_t name_HASH = ConstExprHashingUtils::HashString("name"); + static constexpr uint32_t deploymentStatus_HASH = ConstExprHashingUtils::HashString("deploymentStatus"); + static constexpr uint32_t templateName_HASH = ConstExprHashingUtils::HashString("templateName"); + static constexpr uint32_t serviceName_HASH = ConstExprHashingUtils::HashString("serviceName"); + static constexpr uint32_t environmentName_HASH = ConstExprHashingUtils::HashString("environmentName"); + static constexpr uint32_t lastDeploymentAttemptedAt_HASH = ConstExprHashingUtils::HashString("lastDeploymentAttemptedAt"); + static constexpr uint32_t createdAt_HASH = ConstExprHashingUtils::HashString("createdAt"); ListServiceInstancesSortBy GetListServiceInstancesSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == name_HASH) { return ListServiceInstancesSortBy::name; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ProvisionedResourceEngine.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ProvisionedResourceEngine.cpp index a609dc1a995..d8a2afa0216 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ProvisionedResourceEngine.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ProvisionedResourceEngine.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProvisionedResourceEngineMapper { - static const int CLOUDFORMATION_HASH = HashingUtils::HashString("CLOUDFORMATION"); - static const int TERRAFORM_HASH = HashingUtils::HashString("TERRAFORM"); + static constexpr uint32_t CLOUDFORMATION_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION"); + static constexpr uint32_t TERRAFORM_HASH = ConstExprHashingUtils::HashString("TERRAFORM"); ProvisionedResourceEngine GetProvisionedResourceEngineForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFORMATION_HASH) { return ProvisionedResourceEngine::CLOUDFORMATION; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/Provisioning.cpp b/generated/src/aws-cpp-sdk-proton/source/model/Provisioning.cpp index 0b733a9f8d8..5ecdb62ed6e 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/Provisioning.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/Provisioning.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProvisioningMapper { - static const int CUSTOMER_MANAGED_HASH = HashingUtils::HashString("CUSTOMER_MANAGED"); + static constexpr uint32_t CUSTOMER_MANAGED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED"); Provisioning GetProvisioningForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_HASH) { return Provisioning::CUSTOMER_MANAGED; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/RepositoryProvider.cpp b/generated/src/aws-cpp-sdk-proton/source/model/RepositoryProvider.cpp index 3ffdb598329..42601834401 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/RepositoryProvider.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/RepositoryProvider.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RepositoryProviderMapper { - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int GITHUB_ENTERPRISE_HASH = HashingUtils::HashString("GITHUB_ENTERPRISE"); - static const int BITBUCKET_HASH = HashingUtils::HashString("BITBUCKET"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t GITHUB_ENTERPRISE_HASH = ConstExprHashingUtils::HashString("GITHUB_ENTERPRISE"); + static constexpr uint32_t BITBUCKET_HASH = ConstExprHashingUtils::HashString("BITBUCKET"); RepositoryProvider GetRepositoryProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GITHUB_HASH) { return RepositoryProvider::GITHUB; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/RepositorySyncStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/RepositorySyncStatus.cpp index ba28b18b290..64f1620eeb8 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/RepositorySyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/RepositorySyncStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RepositorySyncStatusMapper { - static const int INITIATED_HASH = HashingUtils::HashString("INITIATED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); + static constexpr uint32_t INITIATED_HASH = ConstExprHashingUtils::HashString("INITIATED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); RepositorySyncStatus GetRepositorySyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIATED_HASH) { return RepositorySyncStatus::INITIATED; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ResourceDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ResourceDeploymentStatus.cpp index c070e2fbb82..803397e1658 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ResourceDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ResourceDeploymentStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceDeploymentStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); ResourceDeploymentStatus GetResourceDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ResourceDeploymentStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ResourceSyncStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ResourceSyncStatus.cpp index 8147958e471..b4591527c18 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ResourceSyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ResourceSyncStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceSyncStatusMapper { - static const int INITIATED_HASH = HashingUtils::HashString("INITIATED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t INITIATED_HASH = ConstExprHashingUtils::HashString("INITIATED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ResourceSyncStatus GetResourceSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIATED_HASH) { return ResourceSyncStatus::INITIATED; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ServiceStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ServiceStatus.cpp index fbeb7178033..edf1ff6bd3d 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ServiceStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ServiceStatus.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ServiceStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_CLEANUP_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_FAILED_CLEANUP_IN_PROGRESS"); - static const int CREATE_FAILED_CLEANUP_COMPLETE_HASH = HashingUtils::HashString("CREATE_FAILED_CLEANUP_COMPLETE"); - static const int CREATE_FAILED_CLEANUP_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED_CLEANUP_FAILED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_FAILED_CLEANUP_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_FAILED_CLEANUP_IN_PROGRESS"); - static const int UPDATE_FAILED_CLEANUP_COMPLETE_HASH = HashingUtils::HashString("UPDATE_FAILED_CLEANUP_COMPLETE"); - static const int UPDATE_FAILED_CLEANUP_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED_CLEANUP_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int UPDATE_COMPLETE_CLEANUP_FAILED_HASH = HashingUtils::HashString("UPDATE_COMPLETE_CLEANUP_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_CLEANUP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED_CLEANUP_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_CLEANUP_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED_CLEANUP_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_CLEANUP_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED_CLEANUP_FAILED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_CLEANUP_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED_CLEANUP_IN_PROGRESS"); + static constexpr uint32_t UPDATE_FAILED_CLEANUP_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED_CLEANUP_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_CLEANUP_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED_CLEANUP_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t UPDATE_COMPLETE_CLEANUP_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE_CLEANUP_FAILED"); ServiceStatus GetServiceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ServiceStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/ServiceTemplateSupportedComponentSourceType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/ServiceTemplateSupportedComponentSourceType.cpp index 33340b487f4..c7bad3131fc 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/ServiceTemplateSupportedComponentSourceType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/ServiceTemplateSupportedComponentSourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceTemplateSupportedComponentSourceTypeMapper { - static const int DIRECTLY_DEFINED_HASH = HashingUtils::HashString("DIRECTLY_DEFINED"); + static constexpr uint32_t DIRECTLY_DEFINED_HASH = ConstExprHashingUtils::HashString("DIRECTLY_DEFINED"); ServiceTemplateSupportedComponentSourceType GetServiceTemplateSupportedComponentSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECTLY_DEFINED_HASH) { return ServiceTemplateSupportedComponentSourceType::DIRECTLY_DEFINED; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-proton/source/model/SortOrder.cpp index 831945a9870..1998a8dfc04 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/SyncType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/SyncType.cpp index abeec535cdb..40604f528a0 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/SyncType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/SyncType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SyncTypeMapper { - static const int TEMPLATE_SYNC_HASH = HashingUtils::HashString("TEMPLATE_SYNC"); - static const int SERVICE_SYNC_HASH = HashingUtils::HashString("SERVICE_SYNC"); + static constexpr uint32_t TEMPLATE_SYNC_HASH = ConstExprHashingUtils::HashString("TEMPLATE_SYNC"); + static constexpr uint32_t SERVICE_SYNC_HASH = ConstExprHashingUtils::HashString("SERVICE_SYNC"); SyncType GetSyncTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEMPLATE_SYNC_HASH) { return SyncType::TEMPLATE_SYNC; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/TemplateType.cpp b/generated/src/aws-cpp-sdk-proton/source/model/TemplateType.cpp index f8bb8a1879b..15238686aa1 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/TemplateType.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/TemplateType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateTypeMapper { - static const int ENVIRONMENT_HASH = HashingUtils::HashString("ENVIRONMENT"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); + static constexpr uint32_t ENVIRONMENT_HASH = ConstExprHashingUtils::HashString("ENVIRONMENT"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); TemplateType GetTemplateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENVIRONMENT_HASH) { return TemplateType::ENVIRONMENT; diff --git a/generated/src/aws-cpp-sdk-proton/source/model/TemplateVersionStatus.cpp b/generated/src/aws-cpp-sdk-proton/source/model/TemplateVersionStatus.cpp index ad841275235..d75c39d3d79 100644 --- a/generated/src/aws-cpp-sdk-proton/source/model/TemplateVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/model/TemplateVersionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TemplateVersionStatusMapper { - static const int REGISTRATION_IN_PROGRESS_HASH = HashingUtils::HashString("REGISTRATION_IN_PROGRESS"); - static const int REGISTRATION_FAILED_HASH = HashingUtils::HashString("REGISTRATION_FAILED"); - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t REGISTRATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REGISTRATION_IN_PROGRESS"); + static constexpr uint32_t REGISTRATION_FAILED_HASH = ConstExprHashingUtils::HashString("REGISTRATION_FAILED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); TemplateVersionStatus GetTemplateVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTRATION_IN_PROGRESS_HASH) { return TemplateVersionStatus::REGISTRATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-qldb-session/source/QLDBSessionErrors.cpp b/generated/src/aws-cpp-sdk-qldb-session/source/QLDBSessionErrors.cpp index 3784c03e107..2b2e7859b24 100644 --- a/generated/src/aws-cpp-sdk-qldb-session/source/QLDBSessionErrors.cpp +++ b/generated/src/aws-cpp-sdk-qldb-session/source/QLDBSessionErrors.cpp @@ -33,17 +33,17 @@ template<> AWS_QLDBSESSION_API BadRequestException QLDBSessionError::GetModeledE namespace QLDBSessionErrorMapper { -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_SESSION_HASH = HashingUtils::HashString("InvalidSessionException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int CAPACITY_EXCEEDED_HASH = HashingUtils::HashString("CapacityExceededException"); -static const int OCC_CONFLICT_HASH = HashingUtils::HashString("OccConflictException"); -static const int RATE_EXCEEDED_HASH = HashingUtils::HashString("RateExceededException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_SESSION_HASH = ConstExprHashingUtils::HashString("InvalidSessionException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CAPACITY_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CapacityExceededException"); +static constexpr uint32_t OCC_CONFLICT_HASH = ConstExprHashingUtils::HashString("OccConflictException"); +static constexpr uint32_t RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RateExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-qldb/source/QLDBErrors.cpp b/generated/src/aws-cpp-sdk-qldb/source/QLDBErrors.cpp index ae08c36cc1c..69a7fb6c452 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/QLDBErrors.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/QLDBErrors.cpp @@ -61,16 +61,16 @@ template<> AWS_QLDB_API ResourceInUseException QLDBError::GetModeledError() namespace QLDBErrorMapper { -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_PRECONDITION_NOT_MET_HASH = HashingUtils::HashString("ResourcePreconditionNotMetException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_PRECONDITION_NOT_MET_HASH = ConstExprHashingUtils::HashString("ResourcePreconditionNotMetException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_PARAMETER_HASH) { diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/EncryptionStatus.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/EncryptionStatus.cpp index 925fb661d2f..1f3f85572d3 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/EncryptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/EncryptionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EncryptionStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int KMS_KEY_INACCESSIBLE_HASH = HashingUtils::HashString("KMS_KEY_INACCESSIBLE"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t KMS_KEY_INACCESSIBLE_HASH = ConstExprHashingUtils::HashString("KMS_KEY_INACCESSIBLE"); EncryptionStatus GetEncryptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EncryptionStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/ErrorCause.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/ErrorCause.cpp index fa183377e8b..f0b5c869ead 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/ErrorCause.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/ErrorCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorCauseMapper { - static const int KINESIS_STREAM_NOT_FOUND_HASH = HashingUtils::HashString("KINESIS_STREAM_NOT_FOUND"); - static const int IAM_PERMISSION_REVOKED_HASH = HashingUtils::HashString("IAM_PERMISSION_REVOKED"); + static constexpr uint32_t KINESIS_STREAM_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KINESIS_STREAM_NOT_FOUND"); + static constexpr uint32_t IAM_PERMISSION_REVOKED_HASH = ConstExprHashingUtils::HashString("IAM_PERMISSION_REVOKED"); ErrorCause GetErrorCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KINESIS_STREAM_NOT_FOUND_HASH) { return ErrorCause::KINESIS_STREAM_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/ExportStatus.cpp index 16e047af3a3..78710ff686d 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/ExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/ExportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); ExportStatus GetExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ExportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/LedgerState.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/LedgerState.cpp index 0dc01b40038..5e7e0210296 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/LedgerState.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/LedgerState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LedgerStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); LedgerState GetLedgerStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return LedgerState::CREATING; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/OutputFormat.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/OutputFormat.cpp index bf6c05a28c2..1110ce3e970 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/OutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/OutputFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OutputFormatMapper { - static const int ION_BINARY_HASH = HashingUtils::HashString("ION_BINARY"); - static const int ION_TEXT_HASH = HashingUtils::HashString("ION_TEXT"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t ION_BINARY_HASH = ConstExprHashingUtils::HashString("ION_BINARY"); + static constexpr uint32_t ION_TEXT_HASH = ConstExprHashingUtils::HashString("ION_TEXT"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); OutputFormat GetOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ION_BINARY_HASH) { return OutputFormat::ION_BINARY; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/PermissionsMode.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/PermissionsMode.cpp index 647bdb9ccc1..0aee6dfa822 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/PermissionsMode.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/PermissionsMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionsModeMapper { - static const int ALLOW_ALL_HASH = HashingUtils::HashString("ALLOW_ALL"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t ALLOW_ALL_HASH = ConstExprHashingUtils::HashString("ALLOW_ALL"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); PermissionsMode GetPermissionsModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_ALL_HASH) { return PermissionsMode::ALLOW_ALL; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/S3ObjectEncryptionType.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/S3ObjectEncryptionType.cpp index 743c8800f6d..0dd4e290281 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/S3ObjectEncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/S3ObjectEncryptionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace S3ObjectEncryptionTypeMapper { - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE_KMS"); - static const int SSE_S3_HASH = HashingUtils::HashString("SSE_S3"); - static const int NO_ENCRYPTION_HASH = HashingUtils::HashString("NO_ENCRYPTION"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE_KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE_S3"); + static constexpr uint32_t NO_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("NO_ENCRYPTION"); S3ObjectEncryptionType GetS3ObjectEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSE_KMS_HASH) { return S3ObjectEncryptionType::SSE_KMS; diff --git a/generated/src/aws-cpp-sdk-qldb/source/model/StreamStatus.cpp b/generated/src/aws-cpp-sdk-qldb/source/model/StreamStatus.cpp index f621fc6f8a5..587214dc972 100644 --- a/generated/src/aws-cpp-sdk-qldb/source/model/StreamStatus.cpp +++ b/generated/src/aws-cpp-sdk-qldb/source/model/StreamStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StreamStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int IMPAIRED_HASH = HashingUtils::HashString("IMPAIRED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t IMPAIRED_HASH = ConstExprHashingUtils::HashString("IMPAIRED"); StreamStatus GetStreamStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return StreamStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightErrors.cpp b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightErrors.cpp index d41f21ddd5c..c207d342e9f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightErrors.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightErrors.cpp @@ -152,25 +152,25 @@ template<> AWS_QUICKSIGHT_API InvalidRequestException QuickSightError::GetModele namespace QuickSightErrorMapper { -static const int RESOURCE_EXISTS_HASH = HashingUtils::HashString("ResourceExistsException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int QUICK_SIGHT_USER_NOT_FOUND_HASH = HashingUtils::HashString("QuickSightUserNotFoundException"); -static const int IDENTITY_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("IdentityTypeNotSupportedException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int UNSUPPORTED_PRICING_PLAN_HASH = HashingUtils::HashString("UnsupportedPricingPlanException"); -static const int DOMAIN_NOT_WHITELISTED_HASH = HashingUtils::HashString("DomainNotWhitelistedException"); -static const int UNSUPPORTED_USER_EDITION_HASH = HashingUtils::HashString("UnsupportedUserEditionException"); -static const int SESSION_LIFETIME_IN_MINUTES_INVALID_HASH = HashingUtils::HashString("SessionLifetimeInMinutesInvalidException"); -static const int PRECONDITION_NOT_MET_HASH = HashingUtils::HashString("PreconditionNotMetException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); -static const int CONCURRENT_UPDATING_HASH = HashingUtils::HashString("ConcurrentUpdatingException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t RESOURCE_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceExistsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t QUICK_SIGHT_USER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("QuickSightUserNotFoundException"); +static constexpr uint32_t IDENTITY_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("IdentityTypeNotSupportedException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t UNSUPPORTED_PRICING_PLAN_HASH = ConstExprHashingUtils::HashString("UnsupportedPricingPlanException"); +static constexpr uint32_t DOMAIN_NOT_WHITELISTED_HASH = ConstExprHashingUtils::HashString("DomainNotWhitelistedException"); +static constexpr uint32_t UNSUPPORTED_USER_EDITION_HASH = ConstExprHashingUtils::HashString("UnsupportedUserEditionException"); +static constexpr uint32_t SESSION_LIFETIME_IN_MINUTES_INVALID_HASH = ConstExprHashingUtils::HashString("SessionLifetimeInMinutesInvalidException"); +static constexpr uint32_t PRECONDITION_NOT_MET_HASH = ConstExprHashingUtils::HashString("PreconditionNotMetException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t CONCURRENT_UPDATING_HASH = ConstExprHashingUtils::HashString("ConcurrentUpdatingException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisErrorType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisErrorType.cpp index 182293398d2..fbcafd13a12 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisErrorType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisErrorType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace AnalysisErrorTypeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int SOURCE_NOT_FOUND_HASH = HashingUtils::HashString("SOURCE_NOT_FOUND"); - static const int DATA_SET_NOT_FOUND_HASH = HashingUtils::HashString("DATA_SET_NOT_FOUND"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int PARAMETER_VALUE_INCOMPATIBLE_HASH = HashingUtils::HashString("PARAMETER_VALUE_INCOMPATIBLE"); - static const int PARAMETER_TYPE_INVALID_HASH = HashingUtils::HashString("PARAMETER_TYPE_INVALID"); - static const int PARAMETER_NOT_FOUND_HASH = HashingUtils::HashString("PARAMETER_NOT_FOUND"); - static const int COLUMN_TYPE_MISMATCH_HASH = HashingUtils::HashString("COLUMN_TYPE_MISMATCH"); - static const int COLUMN_GEOGRAPHIC_ROLE_MISMATCH_HASH = HashingUtils::HashString("COLUMN_GEOGRAPHIC_ROLE_MISMATCH"); - static const int COLUMN_REPLACEMENT_MISSING_HASH = HashingUtils::HashString("COLUMN_REPLACEMENT_MISSING"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t SOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SOURCE_NOT_FOUND"); + static constexpr uint32_t DATA_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DATA_SET_NOT_FOUND"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t PARAMETER_VALUE_INCOMPATIBLE_HASH = ConstExprHashingUtils::HashString("PARAMETER_VALUE_INCOMPATIBLE"); + static constexpr uint32_t PARAMETER_TYPE_INVALID_HASH = ConstExprHashingUtils::HashString("PARAMETER_TYPE_INVALID"); + static constexpr uint32_t PARAMETER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PARAMETER_NOT_FOUND"); + static constexpr uint32_t COLUMN_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("COLUMN_TYPE_MISMATCH"); + static constexpr uint32_t COLUMN_GEOGRAPHIC_ROLE_MISMATCH_HASH = ConstExprHashingUtils::HashString("COLUMN_GEOGRAPHIC_ROLE_MISMATCH"); + static constexpr uint32_t COLUMN_REPLACEMENT_MISSING_HASH = ConstExprHashingUtils::HashString("COLUMN_REPLACEMENT_MISSING"); AnalysisErrorType GetAnalysisErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return AnalysisErrorType::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisFilterAttribute.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisFilterAttribute.cpp index ab79f164a75..ce1bd14b5d7 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisFilterAttribute.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AnalysisFilterAttributeMapper { - static const int QUICKSIGHT_USER_HASH = HashingUtils::HashString("QUICKSIGHT_USER"); - static const int QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); - static const int DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); - static const int QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); - static const int ANALYSIS_NAME_HASH = HashingUtils::HashString("ANALYSIS_NAME"); + static constexpr uint32_t QUICKSIGHT_USER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_USER"); + static constexpr uint32_t QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); + static constexpr uint32_t ANALYSIS_NAME_HASH = ConstExprHashingUtils::HashString("ANALYSIS_NAME"); AnalysisFilterAttribute GetAnalysisFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUICKSIGHT_USER_HASH) { return AnalysisFilterAttribute::QUICKSIGHT_USER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnchorOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnchorOption.cpp index 8d38580c190..20ad3ae9635 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AnchorOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnchorOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnchorOptionMapper { - static const int NOW_HASH = HashingUtils::HashString("NOW"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); AnchorOption GetAnchorOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOW_HASH) { return AnchorOption::NOW; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThickness.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThickness.cpp index dc4075221a8..b715ddea381 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThickness.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThickness.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ArcThicknessMapper { - static const int SMALL_HASH = HashingUtils::HashString("SMALL"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LARGE_HASH = HashingUtils::HashString("LARGE"); - static const int WHOLE_HASH = HashingUtils::HashString("WHOLE"); + static constexpr uint32_t SMALL_HASH = ConstExprHashingUtils::HashString("SMALL"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LARGE_HASH = ConstExprHashingUtils::HashString("LARGE"); + static constexpr uint32_t WHOLE_HASH = ConstExprHashingUtils::HashString("WHOLE"); ArcThickness GetArcThicknessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMALL_HASH) { return ArcThickness::SMALL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThicknessOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThicknessOptions.cpp index 5d8a3af1599..cd480e934c6 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThicknessOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ArcThicknessOptions.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ArcThicknessOptionsMapper { - static const int SMALL_HASH = HashingUtils::HashString("SMALL"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LARGE_HASH = HashingUtils::HashString("LARGE"); + static constexpr uint32_t SMALL_HASH = ConstExprHashingUtils::HashString("SMALL"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LARGE_HASH = ConstExprHashingUtils::HashString("LARGE"); ArcThicknessOptions GetArcThicknessOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMALL_HASH) { return ArcThicknessOptions::SMALL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportFormat.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportFormat.cpp index 6d47a753c8e..1c6f26a7712 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportFormat.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssetBundleExportFormatMapper { - static const int CLOUDFORMATION_JSON_HASH = HashingUtils::HashString("CLOUDFORMATION_JSON"); - static const int QUICKSIGHT_JSON_HASH = HashingUtils::HashString("QUICKSIGHT_JSON"); + static constexpr uint32_t CLOUDFORMATION_JSON_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION_JSON"); + static constexpr uint32_t QUICKSIGHT_JSON_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_JSON"); AssetBundleExportFormat GetAssetBundleExportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFORMATION_JSON_HASH) { return AssetBundleExportFormat::CLOUDFORMATION_JSON; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobAnalysisPropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobAnalysisPropertyToOverride.cpp index 12489eaaacd..94460c54f48 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobAnalysisPropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobAnalysisPropertyToOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetBundleExportJobAnalysisPropertyToOverrideMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); AssetBundleExportJobAnalysisPropertyToOverride GetAssetBundleExportJobAnalysisPropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AssetBundleExportJobAnalysisPropertyToOverride::Name; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDashboardPropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDashboardPropertyToOverride.cpp index 1144184e35e..3c36f843578 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDashboardPropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDashboardPropertyToOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetBundleExportJobDashboardPropertyToOverrideMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); AssetBundleExportJobDashboardPropertyToOverride GetAssetBundleExportJobDashboardPropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AssetBundleExportJobDashboardPropertyToOverride::Name; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSetPropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSetPropertyToOverride.cpp index 588c6a4c058..73b7194c09f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSetPropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSetPropertyToOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetBundleExportJobDataSetPropertyToOverrideMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); AssetBundleExportJobDataSetPropertyToOverride GetAssetBundleExportJobDataSetPropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AssetBundleExportJobDataSetPropertyToOverride::Name; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSourcePropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSourcePropertyToOverride.cpp index e62a0643436..fb8440ed5d1 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSourcePropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobDataSourcePropertyToOverride.cpp @@ -20,28 +20,28 @@ namespace Aws namespace AssetBundleExportJobDataSourcePropertyToOverrideMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int DisableSsl_HASH = HashingUtils::HashString("DisableSsl"); - static const int SecretArn_HASH = HashingUtils::HashString("SecretArn"); - static const int Username_HASH = HashingUtils::HashString("Username"); - static const int Password_HASH = HashingUtils::HashString("Password"); - static const int Domain_HASH = HashingUtils::HashString("Domain"); - static const int WorkGroup_HASH = HashingUtils::HashString("WorkGroup"); - static const int Host_HASH = HashingUtils::HashString("Host"); - static const int Port_HASH = HashingUtils::HashString("Port"); - static const int Database_HASH = HashingUtils::HashString("Database"); - static const int DataSetName_HASH = HashingUtils::HashString("DataSetName"); - static const int Catalog_HASH = HashingUtils::HashString("Catalog"); - static const int InstanceId_HASH = HashingUtils::HashString("InstanceId"); - static const int ClusterId_HASH = HashingUtils::HashString("ClusterId"); - static const int ManifestFileLocation_HASH = HashingUtils::HashString("ManifestFileLocation"); - static const int Warehouse_HASH = HashingUtils::HashString("Warehouse"); - static const int RoleArn_HASH = HashingUtils::HashString("RoleArn"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t DisableSsl_HASH = ConstExprHashingUtils::HashString("DisableSsl"); + static constexpr uint32_t SecretArn_HASH = ConstExprHashingUtils::HashString("SecretArn"); + static constexpr uint32_t Username_HASH = ConstExprHashingUtils::HashString("Username"); + static constexpr uint32_t Password_HASH = ConstExprHashingUtils::HashString("Password"); + static constexpr uint32_t Domain_HASH = ConstExprHashingUtils::HashString("Domain"); + static constexpr uint32_t WorkGroup_HASH = ConstExprHashingUtils::HashString("WorkGroup"); + static constexpr uint32_t Host_HASH = ConstExprHashingUtils::HashString("Host"); + static constexpr uint32_t Port_HASH = ConstExprHashingUtils::HashString("Port"); + static constexpr uint32_t Database_HASH = ConstExprHashingUtils::HashString("Database"); + static constexpr uint32_t DataSetName_HASH = ConstExprHashingUtils::HashString("DataSetName"); + static constexpr uint32_t Catalog_HASH = ConstExprHashingUtils::HashString("Catalog"); + static constexpr uint32_t InstanceId_HASH = ConstExprHashingUtils::HashString("InstanceId"); + static constexpr uint32_t ClusterId_HASH = ConstExprHashingUtils::HashString("ClusterId"); + static constexpr uint32_t ManifestFileLocation_HASH = ConstExprHashingUtils::HashString("ManifestFileLocation"); + static constexpr uint32_t Warehouse_HASH = ConstExprHashingUtils::HashString("Warehouse"); + static constexpr uint32_t RoleArn_HASH = ConstExprHashingUtils::HashString("RoleArn"); AssetBundleExportJobDataSourcePropertyToOverride GetAssetBundleExportJobDataSourcePropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AssetBundleExportJobDataSourcePropertyToOverride::Name; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobRefreshSchedulePropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobRefreshSchedulePropertyToOverride.cpp index 45699a8eb32..44b1822c9ad 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobRefreshSchedulePropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobRefreshSchedulePropertyToOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetBundleExportJobRefreshSchedulePropertyToOverrideMapper { - static const int StartAfterDateTime_HASH = HashingUtils::HashString("StartAfterDateTime"); + static constexpr uint32_t StartAfterDateTime_HASH = ConstExprHashingUtils::HashString("StartAfterDateTime"); AssetBundleExportJobRefreshSchedulePropertyToOverride GetAssetBundleExportJobRefreshSchedulePropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == StartAfterDateTime_HASH) { return AssetBundleExportJobRefreshSchedulePropertyToOverride::StartAfterDateTime; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobStatus.cpp index 4873494ba1a..706316285a5 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AssetBundleExportJobStatusMapper { - static const int QUEUED_FOR_IMMEDIATE_EXECUTION_HASH = HashingUtils::HashString("QUEUED_FOR_IMMEDIATE_EXECUTION"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t QUEUED_FOR_IMMEDIATE_EXECUTION_HASH = ConstExprHashingUtils::HashString("QUEUED_FOR_IMMEDIATE_EXECUTION"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); AssetBundleExportJobStatus GetAssetBundleExportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_FOR_IMMEDIATE_EXECUTION_HASH) { return AssetBundleExportJobStatus::QUEUED_FOR_IMMEDIATE_EXECUTION; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobThemePropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobThemePropertyToOverride.cpp index 2ce51ad459d..3c911e490bc 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobThemePropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobThemePropertyToOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssetBundleExportJobThemePropertyToOverrideMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); AssetBundleExportJobThemePropertyToOverride GetAssetBundleExportJobThemePropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AssetBundleExportJobThemePropertyToOverride::Name; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobVPCConnectionPropertyToOverride.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobVPCConnectionPropertyToOverride.cpp index bf2688d410a..abfe128a7ea 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobVPCConnectionPropertyToOverride.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleExportJobVPCConnectionPropertyToOverride.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssetBundleExportJobVPCConnectionPropertyToOverrideMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int DnsResolvers_HASH = HashingUtils::HashString("DnsResolvers"); - static const int RoleArn_HASH = HashingUtils::HashString("RoleArn"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t DnsResolvers_HASH = ConstExprHashingUtils::HashString("DnsResolvers"); + static constexpr uint32_t RoleArn_HASH = ConstExprHashingUtils::HashString("RoleArn"); AssetBundleExportJobVPCConnectionPropertyToOverride GetAssetBundleExportJobVPCConnectionPropertyToOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AssetBundleExportJobVPCConnectionPropertyToOverride::Name; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportFailureAction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportFailureAction.cpp index c9dd9fcc297..c36afa2a608 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportFailureAction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportFailureAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssetBundleImportFailureActionMapper { - static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); - static const int ROLLBACK_HASH = HashingUtils::HashString("ROLLBACK"); + static constexpr uint32_t DO_NOTHING_HASH = ConstExprHashingUtils::HashString("DO_NOTHING"); + static constexpr uint32_t ROLLBACK_HASH = ConstExprHashingUtils::HashString("ROLLBACK"); AssetBundleImportFailureAction GetAssetBundleImportFailureActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DO_NOTHING_HASH) { return AssetBundleImportFailureAction::DO_NOTHING; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobStatus.cpp index 81514782a23..755b7cb8f3d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssetBundleImportJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AssetBundleImportJobStatusMapper { - static const int QUEUED_FOR_IMMEDIATE_EXECUTION_HASH = HashingUtils::HashString("QUEUED_FOR_IMMEDIATE_EXECUTION"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int FAILED_ROLLBACK_IN_PROGRESS_HASH = HashingUtils::HashString("FAILED_ROLLBACK_IN_PROGRESS"); - static const int FAILED_ROLLBACK_COMPLETED_HASH = HashingUtils::HashString("FAILED_ROLLBACK_COMPLETED"); - static const int FAILED_ROLLBACK_ERROR_HASH = HashingUtils::HashString("FAILED_ROLLBACK_ERROR"); + static constexpr uint32_t QUEUED_FOR_IMMEDIATE_EXECUTION_HASH = ConstExprHashingUtils::HashString("QUEUED_FOR_IMMEDIATE_EXECUTION"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t FAILED_ROLLBACK_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("FAILED_ROLLBACK_IN_PROGRESS"); + static constexpr uint32_t FAILED_ROLLBACK_COMPLETED_HASH = ConstExprHashingUtils::HashString("FAILED_ROLLBACK_COMPLETED"); + static constexpr uint32_t FAILED_ROLLBACK_ERROR_HASH = ConstExprHashingUtils::HashString("FAILED_ROLLBACK_ERROR"); AssetBundleImportJobStatus GetAssetBundleImportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_FOR_IMMEDIATE_EXECUTION_HASH) { return AssetBundleImportJobStatus::QUEUED_FOR_IMMEDIATE_EXECUTION; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AssignmentStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AssignmentStatus.cpp index 2fcc142ecab..6f064294a3f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AssignmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AssignmentStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssignmentStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignmentStatus GetAssignmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignmentStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AuthenticationMethodOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AuthenticationMethodOption.cpp index 0ba6087f29d..9afacb03818 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AuthenticationMethodOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AuthenticationMethodOption.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AuthenticationMethodOptionMapper { - static const int IAM_AND_QUICKSIGHT_HASH = HashingUtils::HashString("IAM_AND_QUICKSIGHT"); - static const int IAM_ONLY_HASH = HashingUtils::HashString("IAM_ONLY"); - static const int ACTIVE_DIRECTORY_HASH = HashingUtils::HashString("ACTIVE_DIRECTORY"); - static const int IAM_IDENTITY_CENTER_HASH = HashingUtils::HashString("IAM_IDENTITY_CENTER"); + static constexpr uint32_t IAM_AND_QUICKSIGHT_HASH = ConstExprHashingUtils::HashString("IAM_AND_QUICKSIGHT"); + static constexpr uint32_t IAM_ONLY_HASH = ConstExprHashingUtils::HashString("IAM_ONLY"); + static constexpr uint32_t ACTIVE_DIRECTORY_HASH = ConstExprHashingUtils::HashString("ACTIVE_DIRECTORY"); + static constexpr uint32_t IAM_IDENTITY_CENTER_HASH = ConstExprHashingUtils::HashString("IAM_IDENTITY_CENTER"); AuthenticationMethodOption GetAuthenticationMethodOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_AND_QUICKSIGHT_HASH) { return AuthenticationMethodOption::IAM_AND_QUICKSIGHT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AuthorSpecifiedAggregation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AuthorSpecifiedAggregation.cpp index a847d26310b..45467e88337 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AuthorSpecifiedAggregation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AuthorSpecifiedAggregation.cpp @@ -20,23 +20,23 @@ namespace Aws namespace AuthorSpecifiedAggregationMapper { - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int STDEV_HASH = HashingUtils::HashString("STDEV"); - static const int STDEVP_HASH = HashingUtils::HashString("STDEVP"); - static const int VAR_HASH = HashingUtils::HashString("VAR"); - static const int VARP_HASH = HashingUtils::HashString("VARP"); - static const int PERCENTILE_HASH = HashingUtils::HashString("PERCENTILE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t STDEV_HASH = ConstExprHashingUtils::HashString("STDEV"); + static constexpr uint32_t STDEVP_HASH = ConstExprHashingUtils::HashString("STDEVP"); + static constexpr uint32_t VAR_HASH = ConstExprHashingUtils::HashString("VAR"); + static constexpr uint32_t VARP_HASH = ConstExprHashingUtils::HashString("VARP"); + static constexpr uint32_t PERCENTILE_HASH = ConstExprHashingUtils::HashString("PERCENTILE"); AuthorSpecifiedAggregation GetAuthorSpecifiedAggregationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_HASH) { return AuthorSpecifiedAggregation::COUNT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AxisBinding.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AxisBinding.cpp index 4bcfe92a45d..64b98fac92e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AxisBinding.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AxisBinding.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AxisBindingMapper { - static const int PRIMARY_YAXIS_HASH = HashingUtils::HashString("PRIMARY_YAXIS"); - static const int SECONDARY_YAXIS_HASH = HashingUtils::HashString("SECONDARY_YAXIS"); + static constexpr uint32_t PRIMARY_YAXIS_HASH = ConstExprHashingUtils::HashString("PRIMARY_YAXIS"); + static constexpr uint32_t SECONDARY_YAXIS_HASH = ConstExprHashingUtils::HashString("SECONDARY_YAXIS"); AxisBinding GetAxisBindingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_YAXIS_HASH) { return AxisBinding::PRIMARY_YAXIS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/BarChartOrientation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/BarChartOrientation.cpp index fdfee170477..a231038719c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/BarChartOrientation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/BarChartOrientation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BarChartOrientationMapper { - static const int HORIZONTAL_HASH = HashingUtils::HashString("HORIZONTAL"); - static const int VERTICAL_HASH = HashingUtils::HashString("VERTICAL"); + static constexpr uint32_t HORIZONTAL_HASH = ConstExprHashingUtils::HashString("HORIZONTAL"); + static constexpr uint32_t VERTICAL_HASH = ConstExprHashingUtils::HashString("VERTICAL"); BarChartOrientation GetBarChartOrientationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HORIZONTAL_HASH) { return BarChartOrientation::HORIZONTAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/BarsArrangement.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/BarsArrangement.cpp index 18503c36979..a832265a8be 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/BarsArrangement.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/BarsArrangement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BarsArrangementMapper { - static const int CLUSTERED_HASH = HashingUtils::HashString("CLUSTERED"); - static const int STACKED_HASH = HashingUtils::HashString("STACKED"); - static const int STACKED_PERCENT_HASH = HashingUtils::HashString("STACKED_PERCENT"); + static constexpr uint32_t CLUSTERED_HASH = ConstExprHashingUtils::HashString("CLUSTERED"); + static constexpr uint32_t STACKED_HASH = ConstExprHashingUtils::HashString("STACKED"); + static constexpr uint32_t STACKED_PERCENT_HASH = ConstExprHashingUtils::HashString("STACKED_PERCENT"); BarsArrangement GetBarsArrangementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLUSTERED_HASH) { return BarsArrangement::CLUSTERED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/BaseMapStyleType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/BaseMapStyleType.cpp index b21919f0094..8b9745f2440 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/BaseMapStyleType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/BaseMapStyleType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BaseMapStyleTypeMapper { - static const int LIGHT_GRAY_HASH = HashingUtils::HashString("LIGHT_GRAY"); - static const int DARK_GRAY_HASH = HashingUtils::HashString("DARK_GRAY"); - static const int STREET_HASH = HashingUtils::HashString("STREET"); - static const int IMAGERY_HASH = HashingUtils::HashString("IMAGERY"); + static constexpr uint32_t LIGHT_GRAY_HASH = ConstExprHashingUtils::HashString("LIGHT_GRAY"); + static constexpr uint32_t DARK_GRAY_HASH = ConstExprHashingUtils::HashString("DARK_GRAY"); + static constexpr uint32_t STREET_HASH = ConstExprHashingUtils::HashString("STREET"); + static constexpr uint32_t IMAGERY_HASH = ConstExprHashingUtils::HashString("IMAGERY"); BaseMapStyleType GetBaseMapStyleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LIGHT_GRAY_HASH) { return BaseMapStyleType::LIGHT_GRAY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/BoxPlotFillStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/BoxPlotFillStyle.cpp index 9056c648683..fc825d07b66 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/BoxPlotFillStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/BoxPlotFillStyle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BoxPlotFillStyleMapper { - static const int SOLID_HASH = HashingUtils::HashString("SOLID"); - static const int TRANSPARENT_HASH = HashingUtils::HashString("TRANSPARENT"); + static constexpr uint32_t SOLID_HASH = ConstExprHashingUtils::HashString("SOLID"); + static constexpr uint32_t TRANSPARENT_HASH = ConstExprHashingUtils::HashString("TRANSPARENT"); BoxPlotFillStyle GetBoxPlotFillStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOLID_HASH) { return BoxPlotFillStyle::SOLID; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoricalAggregationFunction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoricalAggregationFunction.cpp index 24ac3b96d2f..0b390806641 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoricalAggregationFunction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoricalAggregationFunction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CategoricalAggregationFunctionMapper { - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); CategoricalAggregationFunction GetCategoricalAggregationFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_HASH) { return CategoricalAggregationFunction::COUNT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterFunction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterFunction.cpp index e572df6a753..649c0be8cfd 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterFunction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterFunction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CategoryFilterFunctionMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); CategoryFilterFunction GetCategoryFilterFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return CategoryFilterFunction::EXACT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterMatchOperator.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterMatchOperator.cpp index 6c3c04b9a4c..c930d84b398 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterMatchOperator.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterMatchOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CategoryFilterMatchOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int DOES_NOT_EQUAL_HASH = HashingUtils::HashString("DOES_NOT_EQUAL"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int DOES_NOT_CONTAIN_HASH = HashingUtils::HashString("DOES_NOT_CONTAIN"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); - static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t DOES_NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("DOES_NOT_EQUAL"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t DOES_NOT_CONTAIN_HASH = ConstExprHashingUtils::HashString("DOES_NOT_CONTAIN"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t ENDS_WITH_HASH = ConstExprHashingUtils::HashString("ENDS_WITH"); CategoryFilterMatchOperator GetCategoryFilterMatchOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return CategoryFilterMatchOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterSelectAllOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterSelectAllOptions.cpp index 114cc82ddbc..304d2a765d8 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterSelectAllOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterSelectAllOptions.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CategoryFilterSelectAllOptionsMapper { - static const int FILTER_ALL_VALUES_HASH = HashingUtils::HashString("FILTER_ALL_VALUES"); + static constexpr uint32_t FILTER_ALL_VALUES_HASH = ConstExprHashingUtils::HashString("FILTER_ALL_VALUES"); CategoryFilterSelectAllOptions GetCategoryFilterSelectAllOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILTER_ALL_VALUES_HASH) { return CategoryFilterSelectAllOptions::FILTER_ALL_VALUES; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterType.cpp index 4eb5dc60009..ce3d1ee34ba 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CategoryFilterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CategoryFilterTypeMapper { - static const int CUSTOM_FILTER_HASH = HashingUtils::HashString("CUSTOM_FILTER"); - static const int CUSTOM_FILTER_LIST_HASH = HashingUtils::HashString("CUSTOM_FILTER_LIST"); - static const int FILTER_LIST_HASH = HashingUtils::HashString("FILTER_LIST"); + static constexpr uint32_t CUSTOM_FILTER_HASH = ConstExprHashingUtils::HashString("CUSTOM_FILTER"); + static constexpr uint32_t CUSTOM_FILTER_LIST_HASH = ConstExprHashingUtils::HashString("CUSTOM_FILTER_LIST"); + static constexpr uint32_t FILTER_LIST_HASH = ConstExprHashingUtils::HashString("FILTER_LIST"); CategoryFilterType GetCategoryFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOM_FILTER_HASH) { return CategoryFilterType::CUSTOM_FILTER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ColorFillType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ColorFillType.cpp index c56e58b0545..8789376cc5a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ColorFillType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ColorFillType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ColorFillTypeMapper { - static const int DISCRETE_HASH = HashingUtils::HashString("DISCRETE"); - static const int GRADIENT_HASH = HashingUtils::HashString("GRADIENT"); + static constexpr uint32_t DISCRETE_HASH = ConstExprHashingUtils::HashString("DISCRETE"); + static constexpr uint32_t GRADIENT_HASH = ConstExprHashingUtils::HashString("GRADIENT"); ColorFillType GetColorFillTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISCRETE_HASH) { return ColorFillType::DISCRETE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataRole.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataRole.cpp index 5219e9e277d..140f69c3a2e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataRole.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ColumnDataRoleMapper { - static const int DIMENSION_HASH = HashingUtils::HashString("DIMENSION"); - static const int MEASURE_HASH = HashingUtils::HashString("MEASURE"); + static constexpr uint32_t DIMENSION_HASH = ConstExprHashingUtils::HashString("DIMENSION"); + static constexpr uint32_t MEASURE_HASH = ConstExprHashingUtils::HashString("MEASURE"); ColumnDataRole GetColumnDataRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIMENSION_HASH) { return ColumnDataRole::DIMENSION; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataType.cpp index 0824d6ca7de..999dddf9efc 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnDataType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ColumnDataTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int DECIMAL_HASH = HashingUtils::HashString("DECIMAL"); - static const int DATETIME_HASH = HashingUtils::HashString("DATETIME"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t DECIMAL_HASH = ConstExprHashingUtils::HashString("DECIMAL"); + static constexpr uint32_t DATETIME_HASH = ConstExprHashingUtils::HashString("DATETIME"); ColumnDataType GetColumnDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return ColumnDataType::STRING; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnOrderingType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnOrderingType.cpp index 73ad133a7cd..81709d52849 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnOrderingType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnOrderingType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ColumnOrderingTypeMapper { - static const int GREATER_IS_BETTER_HASH = HashingUtils::HashString("GREATER_IS_BETTER"); - static const int LESSER_IS_BETTER_HASH = HashingUtils::HashString("LESSER_IS_BETTER"); - static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); + static constexpr uint32_t GREATER_IS_BETTER_HASH = ConstExprHashingUtils::HashString("GREATER_IS_BETTER"); + static constexpr uint32_t LESSER_IS_BETTER_HASH = ConstExprHashingUtils::HashString("LESSER_IS_BETTER"); + static constexpr uint32_t SPECIFIED_HASH = ConstExprHashingUtils::HashString("SPECIFIED"); ColumnOrderingType GetColumnOrderingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GREATER_IS_BETTER_HASH) { return ColumnOrderingType::GREATER_IS_BETTER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnRole.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnRole.cpp index 76a2b374cd4..40341ad2cab 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnRole.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ColumnRoleMapper { - static const int DIMENSION_HASH = HashingUtils::HashString("DIMENSION"); - static const int MEASURE_HASH = HashingUtils::HashString("MEASURE"); + static constexpr uint32_t DIMENSION_HASH = ConstExprHashingUtils::HashString("DIMENSION"); + static constexpr uint32_t MEASURE_HASH = ConstExprHashingUtils::HashString("MEASURE"); ColumnRole GetColumnRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIMENSION_HASH) { return ColumnRole::DIMENSION; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnTagName.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnTagName.cpp index cf355d5f7a7..b23269b7ead 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnTagName.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ColumnTagName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ColumnTagNameMapper { - static const int COLUMN_GEOGRAPHIC_ROLE_HASH = HashingUtils::HashString("COLUMN_GEOGRAPHIC_ROLE"); - static const int COLUMN_DESCRIPTION_HASH = HashingUtils::HashString("COLUMN_DESCRIPTION"); + static constexpr uint32_t COLUMN_GEOGRAPHIC_ROLE_HASH = ConstExprHashingUtils::HashString("COLUMN_GEOGRAPHIC_ROLE"); + static constexpr uint32_t COLUMN_DESCRIPTION_HASH = ConstExprHashingUtils::HashString("COLUMN_DESCRIPTION"); ColumnTagName GetColumnTagNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMN_GEOGRAPHIC_ROLE_HASH) { return ColumnTagName::COLUMN_GEOGRAPHIC_ROLE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ComparisonMethod.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ComparisonMethod.cpp index ce1860f933b..b5b33682632 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ComparisonMethod.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ComparisonMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComparisonMethodMapper { - static const int DIFFERENCE_HASH = HashingUtils::HashString("DIFFERENCE"); - static const int PERCENT_DIFFERENCE_HASH = HashingUtils::HashString("PERCENT_DIFFERENCE"); - static const int PERCENT_HASH = HashingUtils::HashString("PERCENT"); + static constexpr uint32_t DIFFERENCE_HASH = ConstExprHashingUtils::HashString("DIFFERENCE"); + static constexpr uint32_t PERCENT_DIFFERENCE_HASH = ConstExprHashingUtils::HashString("PERCENT_DIFFERENCE"); + static constexpr uint32_t PERCENT_HASH = ConstExprHashingUtils::HashString("PERCENT"); ComparisonMethod GetComparisonMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIFFERENCE_HASH) { return ComparisonMethod::DIFFERENCE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconDisplayOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconDisplayOption.cpp index 53badca63c5..fe81c91bbc4 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconDisplayOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconDisplayOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConditionalFormattingIconDisplayOptionMapper { - static const int ICON_ONLY_HASH = HashingUtils::HashString("ICON_ONLY"); + static constexpr uint32_t ICON_ONLY_HASH = ConstExprHashingUtils::HashString("ICON_ONLY"); ConditionalFormattingIconDisplayOption GetConditionalFormattingIconDisplayOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ICON_ONLY_HASH) { return ConditionalFormattingIconDisplayOption::ICON_ONLY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconSetType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconSetType.cpp index 37725fdd56c..b09b03f0b31 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconSetType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ConditionalFormattingIconSetType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ConditionalFormattingIconSetTypeMapper { - static const int PLUS_MINUS_HASH = HashingUtils::HashString("PLUS_MINUS"); - static const int CHECK_X_HASH = HashingUtils::HashString("CHECK_X"); - static const int THREE_COLOR_ARROW_HASH = HashingUtils::HashString("THREE_COLOR_ARROW"); - static const int THREE_GRAY_ARROW_HASH = HashingUtils::HashString("THREE_GRAY_ARROW"); - static const int CARET_UP_MINUS_DOWN_HASH = HashingUtils::HashString("CARET_UP_MINUS_DOWN"); - static const int THREE_SHAPE_HASH = HashingUtils::HashString("THREE_SHAPE"); - static const int THREE_CIRCLE_HASH = HashingUtils::HashString("THREE_CIRCLE"); - static const int FLAGS_HASH = HashingUtils::HashString("FLAGS"); - static const int BARS_HASH = HashingUtils::HashString("BARS"); - static const int FOUR_COLOR_ARROW_HASH = HashingUtils::HashString("FOUR_COLOR_ARROW"); - static const int FOUR_GRAY_ARROW_HASH = HashingUtils::HashString("FOUR_GRAY_ARROW"); + static constexpr uint32_t PLUS_MINUS_HASH = ConstExprHashingUtils::HashString("PLUS_MINUS"); + static constexpr uint32_t CHECK_X_HASH = ConstExprHashingUtils::HashString("CHECK_X"); + static constexpr uint32_t THREE_COLOR_ARROW_HASH = ConstExprHashingUtils::HashString("THREE_COLOR_ARROW"); + static constexpr uint32_t THREE_GRAY_ARROW_HASH = ConstExprHashingUtils::HashString("THREE_GRAY_ARROW"); + static constexpr uint32_t CARET_UP_MINUS_DOWN_HASH = ConstExprHashingUtils::HashString("CARET_UP_MINUS_DOWN"); + static constexpr uint32_t THREE_SHAPE_HASH = ConstExprHashingUtils::HashString("THREE_SHAPE"); + static constexpr uint32_t THREE_CIRCLE_HASH = ConstExprHashingUtils::HashString("THREE_CIRCLE"); + static constexpr uint32_t FLAGS_HASH = ConstExprHashingUtils::HashString("FLAGS"); + static constexpr uint32_t BARS_HASH = ConstExprHashingUtils::HashString("BARS"); + static constexpr uint32_t FOUR_COLOR_ARROW_HASH = ConstExprHashingUtils::HashString("FOUR_COLOR_ARROW"); + static constexpr uint32_t FOUR_GRAY_ARROW_HASH = ConstExprHashingUtils::HashString("FOUR_GRAY_ARROW"); ConditionalFormattingIconSetType GetConditionalFormattingIconSetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PLUS_MINUS_HASH) { return ConditionalFormattingIconSetType::PLUS_MINUS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ConstantType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ConstantType.cpp index f2c44bf7de5..cdd351d880e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ConstantType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ConstantType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConstantTypeMapper { - static const int SINGULAR_HASH = HashingUtils::HashString("SINGULAR"); - static const int RANGE_HASH = HashingUtils::HashString("RANGE"); - static const int COLLECTIVE_HASH = HashingUtils::HashString("COLLECTIVE"); + static constexpr uint32_t SINGULAR_HASH = ConstExprHashingUtils::HashString("SINGULAR"); + static constexpr uint32_t RANGE_HASH = ConstExprHashingUtils::HashString("RANGE"); + static constexpr uint32_t COLLECTIVE_HASH = ConstExprHashingUtils::HashString("COLLECTIVE"); ConstantType GetConstantTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGULAR_HASH) { return ConstantType::SINGULAR; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CrossDatasetTypes.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CrossDatasetTypes.cpp index e16807ac9eb..0a5e1d71822 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CrossDatasetTypes.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CrossDatasetTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CrossDatasetTypesMapper { - static const int ALL_DATASETS_HASH = HashingUtils::HashString("ALL_DATASETS"); - static const int SINGLE_DATASET_HASH = HashingUtils::HashString("SINGLE_DATASET"); + static constexpr uint32_t ALL_DATASETS_HASH = ConstExprHashingUtils::HashString("ALL_DATASETS"); + static constexpr uint32_t SINGLE_DATASET_HASH = ConstExprHashingUtils::HashString("SINGLE_DATASET"); CrossDatasetTypes GetCrossDatasetTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_DATASETS_HASH) { return CrossDatasetTypes::ALL_DATASETS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentImageScalingConfiguration.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentImageScalingConfiguration.cpp index 4763af07a35..ef962a9143b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentImageScalingConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentImageScalingConfiguration.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CustomContentImageScalingConfigurationMapper { - static const int FIT_TO_HEIGHT_HASH = HashingUtils::HashString("FIT_TO_HEIGHT"); - static const int FIT_TO_WIDTH_HASH = HashingUtils::HashString("FIT_TO_WIDTH"); - static const int DO_NOT_SCALE_HASH = HashingUtils::HashString("DO_NOT_SCALE"); - static const int SCALE_TO_VISUAL_HASH = HashingUtils::HashString("SCALE_TO_VISUAL"); + static constexpr uint32_t FIT_TO_HEIGHT_HASH = ConstExprHashingUtils::HashString("FIT_TO_HEIGHT"); + static constexpr uint32_t FIT_TO_WIDTH_HASH = ConstExprHashingUtils::HashString("FIT_TO_WIDTH"); + static constexpr uint32_t DO_NOT_SCALE_HASH = ConstExprHashingUtils::HashString("DO_NOT_SCALE"); + static constexpr uint32_t SCALE_TO_VISUAL_HASH = ConstExprHashingUtils::HashString("SCALE_TO_VISUAL"); CustomContentImageScalingConfiguration GetCustomContentImageScalingConfigurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIT_TO_HEIGHT_HASH) { return CustomContentImageScalingConfiguration::FIT_TO_HEIGHT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentType.cpp index aa4a31d952b..84b990fc31e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/CustomContentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomContentTypeMapper { - static const int IMAGE_HASH = HashingUtils::HashString("IMAGE"); - static const int OTHER_EMBEDDED_CONTENT_HASH = HashingUtils::HashString("OTHER_EMBEDDED_CONTENT"); + static constexpr uint32_t IMAGE_HASH = ConstExprHashingUtils::HashString("IMAGE"); + static constexpr uint32_t OTHER_EMBEDDED_CONTENT_HASH = ConstExprHashingUtils::HashString("OTHER_EMBEDDED_CONTENT"); CustomContentType GetCustomContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMAGE_HASH) { return CustomContentType::IMAGE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardBehavior.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardBehavior.cpp index 335ee00ab42..f2937458f9b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardBehavior.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashboardBehaviorMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DashboardBehavior GetDashboardBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DashboardBehavior::ENABLED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardErrorType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardErrorType.cpp index 99367b60706..2e8e28201db 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardErrorType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardErrorType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace DashboardErrorTypeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int SOURCE_NOT_FOUND_HASH = HashingUtils::HashString("SOURCE_NOT_FOUND"); - static const int DATA_SET_NOT_FOUND_HASH = HashingUtils::HashString("DATA_SET_NOT_FOUND"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int PARAMETER_VALUE_INCOMPATIBLE_HASH = HashingUtils::HashString("PARAMETER_VALUE_INCOMPATIBLE"); - static const int PARAMETER_TYPE_INVALID_HASH = HashingUtils::HashString("PARAMETER_TYPE_INVALID"); - static const int PARAMETER_NOT_FOUND_HASH = HashingUtils::HashString("PARAMETER_NOT_FOUND"); - static const int COLUMN_TYPE_MISMATCH_HASH = HashingUtils::HashString("COLUMN_TYPE_MISMATCH"); - static const int COLUMN_GEOGRAPHIC_ROLE_MISMATCH_HASH = HashingUtils::HashString("COLUMN_GEOGRAPHIC_ROLE_MISMATCH"); - static const int COLUMN_REPLACEMENT_MISSING_HASH = HashingUtils::HashString("COLUMN_REPLACEMENT_MISSING"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t SOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SOURCE_NOT_FOUND"); + static constexpr uint32_t DATA_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DATA_SET_NOT_FOUND"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t PARAMETER_VALUE_INCOMPATIBLE_HASH = ConstExprHashingUtils::HashString("PARAMETER_VALUE_INCOMPATIBLE"); + static constexpr uint32_t PARAMETER_TYPE_INVALID_HASH = ConstExprHashingUtils::HashString("PARAMETER_TYPE_INVALID"); + static constexpr uint32_t PARAMETER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PARAMETER_NOT_FOUND"); + static constexpr uint32_t COLUMN_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("COLUMN_TYPE_MISMATCH"); + static constexpr uint32_t COLUMN_GEOGRAPHIC_ROLE_MISMATCH_HASH = ConstExprHashingUtils::HashString("COLUMN_GEOGRAPHIC_ROLE_MISMATCH"); + static constexpr uint32_t COLUMN_REPLACEMENT_MISSING_HASH = ConstExprHashingUtils::HashString("COLUMN_REPLACEMENT_MISSING"); DashboardErrorType GetDashboardErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return DashboardErrorType::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardFilterAttribute.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardFilterAttribute.cpp index d0d3796c46e..c91d1666a46 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardFilterAttribute.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DashboardFilterAttributeMapper { - static const int QUICKSIGHT_USER_HASH = HashingUtils::HashString("QUICKSIGHT_USER"); - static const int QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); - static const int DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); - static const int QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); - static const int DASHBOARD_NAME_HASH = HashingUtils::HashString("DASHBOARD_NAME"); + static constexpr uint32_t QUICKSIGHT_USER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_USER"); + static constexpr uint32_t QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); + static constexpr uint32_t DASHBOARD_NAME_HASH = ConstExprHashingUtils::HashString("DASHBOARD_NAME"); DashboardFilterAttribute GetDashboardFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUICKSIGHT_USER_HASH) { return DashboardFilterAttribute::QUICKSIGHT_USER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardUIState.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardUIState.cpp index 68cf2235b01..3bec1ecf7a2 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardUIState.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DashboardUIState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DashboardUIStateMapper { - static const int EXPANDED_HASH = HashingUtils::HashString("EXPANDED"); - static const int COLLAPSED_HASH = HashingUtils::HashString("COLLAPSED"); + static constexpr uint32_t EXPANDED_HASH = ConstExprHashingUtils::HashString("EXPANDED"); + static constexpr uint32_t COLLAPSED_HASH = ConstExprHashingUtils::HashString("COLLAPSED"); DashboardUIState GetDashboardUIStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXPANDED_HASH) { return DashboardUIState::EXPANDED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelContent.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelContent.cpp index 9055dd1ad3b..f76a0154f4b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelContent.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelContent.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataLabelContentMapper { - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); - static const int PERCENT_HASH = HashingUtils::HashString("PERCENT"); - static const int VALUE_AND_PERCENT_HASH = HashingUtils::HashString("VALUE_AND_PERCENT"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); + static constexpr uint32_t PERCENT_HASH = ConstExprHashingUtils::HashString("PERCENT"); + static constexpr uint32_t VALUE_AND_PERCENT_HASH = ConstExprHashingUtils::HashString("VALUE_AND_PERCENT"); DataLabelContent GetDataLabelContentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALUE_HASH) { return DataLabelContent::VALUE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelOverlap.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelOverlap.cpp index 01bf795a471..ddee1b878a2 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelOverlap.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelOverlap.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataLabelOverlapMapper { - static const int DISABLE_OVERLAP_HASH = HashingUtils::HashString("DISABLE_OVERLAP"); - static const int ENABLE_OVERLAP_HASH = HashingUtils::HashString("ENABLE_OVERLAP"); + static constexpr uint32_t DISABLE_OVERLAP_HASH = ConstExprHashingUtils::HashString("DISABLE_OVERLAP"); + static constexpr uint32_t ENABLE_OVERLAP_HASH = ConstExprHashingUtils::HashString("ENABLE_OVERLAP"); DataLabelOverlap GetDataLabelOverlapForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLE_OVERLAP_HASH) { return DataLabelOverlap::DISABLE_OVERLAP; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelPosition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelPosition.cpp index 952f7d9dd14..0d1e373b965 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelPosition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataLabelPosition.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataLabelPositionMapper { - static const int INSIDE_HASH = HashingUtils::HashString("INSIDE"); - static const int OUTSIDE_HASH = HashingUtils::HashString("OUTSIDE"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int TOP_HASH = HashingUtils::HashString("TOP"); - static const int BOTTOM_HASH = HashingUtils::HashString("BOTTOM"); - static const int RIGHT_HASH = HashingUtils::HashString("RIGHT"); + static constexpr uint32_t INSIDE_HASH = ConstExprHashingUtils::HashString("INSIDE"); + static constexpr uint32_t OUTSIDE_HASH = ConstExprHashingUtils::HashString("OUTSIDE"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t TOP_HASH = ConstExprHashingUtils::HashString("TOP"); + static constexpr uint32_t BOTTOM_HASH = ConstExprHashingUtils::HashString("BOTTOM"); + static constexpr uint32_t RIGHT_HASH = ConstExprHashingUtils::HashString("RIGHT"); DataLabelPosition GetDataLabelPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSIDE_HASH) { return DataLabelPosition::INSIDE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetFilterAttribute.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetFilterAttribute.cpp index 8c0616d9912..cb63c85b606 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetFilterAttribute.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataSetFilterAttributeMapper { - static const int QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); - static const int QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); - static const int DIRECT_QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); - static const int DATASET_NAME_HASH = HashingUtils::HashString("DATASET_NAME"); + static constexpr uint32_t QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); + static constexpr uint32_t DATASET_NAME_HASH = ConstExprHashingUtils::HashString("DATASET_NAME"); DataSetFilterAttribute GetDataSetFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUICKSIGHT_VIEWER_OR_OWNER_HASH) { return DataSetFilterAttribute::QUICKSIGHT_VIEWER_OR_OWNER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetImportMode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetImportMode.cpp index baf319f8de5..6c62a48ded2 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetImportMode.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSetImportMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataSetImportModeMapper { - static const int SPICE_HASH = HashingUtils::HashString("SPICE"); - static const int DIRECT_QUERY_HASH = HashingUtils::HashString("DIRECT_QUERY"); + static constexpr uint32_t SPICE_HASH = ConstExprHashingUtils::HashString("SPICE"); + static constexpr uint32_t DIRECT_QUERY_HASH = ConstExprHashingUtils::HashString("DIRECT_QUERY"); DataSetImportMode GetDataSetImportModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SPICE_HASH) { return DataSetImportMode::SPICE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceErrorInfoType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceErrorInfoType.cpp index 44a8adf90a4..9ee31da3910 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceErrorInfoType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceErrorInfoType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DataSourceErrorInfoTypeMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int COPY_SOURCE_NOT_FOUND_HASH = HashingUtils::HashString("COPY_SOURCE_NOT_FOUND"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int ENGINE_VERSION_NOT_SUPPORTED_HASH = HashingUtils::HashString("ENGINE_VERSION_NOT_SUPPORTED"); - static const int UNKNOWN_HOST_HASH = HashingUtils::HashString("UNKNOWN_HOST"); - static const int GENERIC_SQL_FAILURE_HASH = HashingUtils::HashString("GENERIC_SQL_FAILURE"); - static const int CONFLICT_HASH = HashingUtils::HashString("CONFLICT"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t COPY_SOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("COPY_SOURCE_NOT_FOUND"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t ENGINE_VERSION_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ENGINE_VERSION_NOT_SUPPORTED"); + static constexpr uint32_t UNKNOWN_HOST_HASH = ConstExprHashingUtils::HashString("UNKNOWN_HOST"); + static constexpr uint32_t GENERIC_SQL_FAILURE_HASH = ConstExprHashingUtils::HashString("GENERIC_SQL_FAILURE"); + static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("CONFLICT"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); DataSourceErrorInfoType GetDataSourceErrorInfoTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return DataSourceErrorInfoType::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceFilterAttribute.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceFilterAttribute.cpp index 57c1666f10b..3b26deb0423 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceFilterAttribute.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DataSourceFilterAttributeMapper { - static const int DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); - static const int DIRECT_QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); - static const int DATASOURCE_NAME_HASH = HashingUtils::HashString("DATASOURCE_NAME"); + static constexpr uint32_t DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); + static constexpr uint32_t DATASOURCE_NAME_HASH = ConstExprHashingUtils::HashString("DATASOURCE_NAME"); DataSourceFilterAttribute GetDataSourceFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH) { return DataSourceFilterAttribute::DIRECT_QUICKSIGHT_VIEWER_OR_OWNER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceType.cpp index c2c258b83d3..3b9a3fe322f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DataSourceType.cpp @@ -20,37 +20,37 @@ namespace Aws namespace DataSourceTypeMapper { - static const int ADOBE_ANALYTICS_HASH = HashingUtils::HashString("ADOBE_ANALYTICS"); - static const int AMAZON_ELASTICSEARCH_HASH = HashingUtils::HashString("AMAZON_ELASTICSEARCH"); - static const int ATHENA_HASH = HashingUtils::HashString("ATHENA"); - static const int AURORA_HASH = HashingUtils::HashString("AURORA"); - static const int AURORA_POSTGRESQL_HASH = HashingUtils::HashString("AURORA_POSTGRESQL"); - static const int AWS_IOT_ANALYTICS_HASH = HashingUtils::HashString("AWS_IOT_ANALYTICS"); - static const int GITHUB_HASH = HashingUtils::HashString("GITHUB"); - static const int JIRA_HASH = HashingUtils::HashString("JIRA"); - static const int MARIADB_HASH = HashingUtils::HashString("MARIADB"); - static const int MYSQL_HASH = HashingUtils::HashString("MYSQL"); - static const int ORACLE_HASH = HashingUtils::HashString("ORACLE"); - static const int POSTGRESQL_HASH = HashingUtils::HashString("POSTGRESQL"); - static const int PRESTO_HASH = HashingUtils::HashString("PRESTO"); - static const int REDSHIFT_HASH = HashingUtils::HashString("REDSHIFT"); - static const int S3_HASH = HashingUtils::HashString("S3"); - static const int SALESFORCE_HASH = HashingUtils::HashString("SALESFORCE"); - static const int SERVICENOW_HASH = HashingUtils::HashString("SERVICENOW"); - static const int SNOWFLAKE_HASH = HashingUtils::HashString("SNOWFLAKE"); - static const int SPARK_HASH = HashingUtils::HashString("SPARK"); - static const int SQLSERVER_HASH = HashingUtils::HashString("SQLSERVER"); - static const int TERADATA_HASH = HashingUtils::HashString("TERADATA"); - static const int TWITTER_HASH = HashingUtils::HashString("TWITTER"); - static const int TIMESTREAM_HASH = HashingUtils::HashString("TIMESTREAM"); - static const int AMAZON_OPENSEARCH_HASH = HashingUtils::HashString("AMAZON_OPENSEARCH"); - static const int EXASOL_HASH = HashingUtils::HashString("EXASOL"); - static const int DATABRICKS_HASH = HashingUtils::HashString("DATABRICKS"); + static constexpr uint32_t ADOBE_ANALYTICS_HASH = ConstExprHashingUtils::HashString("ADOBE_ANALYTICS"); + static constexpr uint32_t AMAZON_ELASTICSEARCH_HASH = ConstExprHashingUtils::HashString("AMAZON_ELASTICSEARCH"); + static constexpr uint32_t ATHENA_HASH = ConstExprHashingUtils::HashString("ATHENA"); + static constexpr uint32_t AURORA_HASH = ConstExprHashingUtils::HashString("AURORA"); + static constexpr uint32_t AURORA_POSTGRESQL_HASH = ConstExprHashingUtils::HashString("AURORA_POSTGRESQL"); + static constexpr uint32_t AWS_IOT_ANALYTICS_HASH = ConstExprHashingUtils::HashString("AWS_IOT_ANALYTICS"); + static constexpr uint32_t GITHUB_HASH = ConstExprHashingUtils::HashString("GITHUB"); + static constexpr uint32_t JIRA_HASH = ConstExprHashingUtils::HashString("JIRA"); + static constexpr uint32_t MARIADB_HASH = ConstExprHashingUtils::HashString("MARIADB"); + static constexpr uint32_t MYSQL_HASH = ConstExprHashingUtils::HashString("MYSQL"); + static constexpr uint32_t ORACLE_HASH = ConstExprHashingUtils::HashString("ORACLE"); + static constexpr uint32_t POSTGRESQL_HASH = ConstExprHashingUtils::HashString("POSTGRESQL"); + static constexpr uint32_t PRESTO_HASH = ConstExprHashingUtils::HashString("PRESTO"); + static constexpr uint32_t REDSHIFT_HASH = ConstExprHashingUtils::HashString("REDSHIFT"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); + static constexpr uint32_t SALESFORCE_HASH = ConstExprHashingUtils::HashString("SALESFORCE"); + static constexpr uint32_t SERVICENOW_HASH = ConstExprHashingUtils::HashString("SERVICENOW"); + static constexpr uint32_t SNOWFLAKE_HASH = ConstExprHashingUtils::HashString("SNOWFLAKE"); + static constexpr uint32_t SPARK_HASH = ConstExprHashingUtils::HashString("SPARK"); + static constexpr uint32_t SQLSERVER_HASH = ConstExprHashingUtils::HashString("SQLSERVER"); + static constexpr uint32_t TERADATA_HASH = ConstExprHashingUtils::HashString("TERADATA"); + static constexpr uint32_t TWITTER_HASH = ConstExprHashingUtils::HashString("TWITTER"); + static constexpr uint32_t TIMESTREAM_HASH = ConstExprHashingUtils::HashString("TIMESTREAM"); + static constexpr uint32_t AMAZON_OPENSEARCH_HASH = ConstExprHashingUtils::HashString("AMAZON_OPENSEARCH"); + static constexpr uint32_t EXASOL_HASH = ConstExprHashingUtils::HashString("EXASOL"); + static constexpr uint32_t DATABRICKS_HASH = ConstExprHashingUtils::HashString("DATABRICKS"); DataSourceType GetDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADOBE_ANALYTICS_HASH) { return DataSourceType::ADOBE_ANALYTICS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DatasetParameterValueType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DatasetParameterValueType.cpp index 121bd7e4b92..71424abe3eb 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DatasetParameterValueType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DatasetParameterValueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatasetParameterValueTypeMapper { - static const int MULTI_VALUED_HASH = HashingUtils::HashString("MULTI_VALUED"); - static const int SINGLE_VALUED_HASH = HashingUtils::HashString("SINGLE_VALUED"); + static constexpr uint32_t MULTI_VALUED_HASH = ConstExprHashingUtils::HashString("MULTI_VALUED"); + static constexpr uint32_t SINGLE_VALUED_HASH = ConstExprHashingUtils::HashString("SINGLE_VALUED"); DatasetParameterValueType GetDatasetParameterValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_VALUED_HASH) { return DatasetParameterValueType::MULTI_VALUED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DateAggregationFunction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DateAggregationFunction.cpp index 38b148b27d0..487e79acb40 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DateAggregationFunction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DateAggregationFunction.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DateAggregationFunctionMapper { - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); DateAggregationFunction GetDateAggregationFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNT_HASH) { return DateAggregationFunction::COUNT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DayOfWeek.cpp index 3fd8b287dbe..3ed7678073e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); - static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); - static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); - static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); - static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); - static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); - static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); + static constexpr uint32_t SUNDAY_HASH = ConstExprHashingUtils::HashString("SUNDAY"); + static constexpr uint32_t MONDAY_HASH = ConstExprHashingUtils::HashString("MONDAY"); + static constexpr uint32_t TUESDAY_HASH = ConstExprHashingUtils::HashString("TUESDAY"); + static constexpr uint32_t WEDNESDAY_HASH = ConstExprHashingUtils::HashString("WEDNESDAY"); + static constexpr uint32_t THURSDAY_HASH = ConstExprHashingUtils::HashString("THURSDAY"); + static constexpr uint32_t FRIDAY_HASH = ConstExprHashingUtils::HashString("FRIDAY"); + static constexpr uint32_t SATURDAY_HASH = ConstExprHashingUtils::HashString("SATURDAY"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUNDAY_HASH) { return DayOfWeek::SUNDAY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultAggregation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultAggregation.cpp index 0727952006a..9c0464ef240 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultAggregation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DefaultAggregation.cpp @@ -20,22 +20,22 @@ namespace Aws namespace DefaultAggregationMapper { - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); - static const int STDEV_HASH = HashingUtils::HashString("STDEV"); - static const int STDEVP_HASH = HashingUtils::HashString("STDEVP"); - static const int VAR_HASH = HashingUtils::HashString("VAR"); - static const int VARP_HASH = HashingUtils::HashString("VARP"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); + static constexpr uint32_t STDEV_HASH = ConstExprHashingUtils::HashString("STDEV"); + static constexpr uint32_t STDEVP_HASH = ConstExprHashingUtils::HashString("STDEVP"); + static constexpr uint32_t VAR_HASH = ConstExprHashingUtils::HashString("VAR"); + static constexpr uint32_t VARP_HASH = ConstExprHashingUtils::HashString("VARP"); DefaultAggregation GetDefaultAggregationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_HASH) { return DefaultAggregation::SUM; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/DisplayFormat.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/DisplayFormat.cpp index 87e13029d0d..b3f1b31e96d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/DisplayFormat.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/DisplayFormat.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DisplayFormatMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int PERCENT_HASH = HashingUtils::HashString("PERCENT"); - static const int CURRENCY_HASH = HashingUtils::HashString("CURRENCY"); - static const int NUMBER_HASH = HashingUtils::HashString("NUMBER"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int STRING_HASH = HashingUtils::HashString("STRING"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t PERCENT_HASH = ConstExprHashingUtils::HashString("PERCENT"); + static constexpr uint32_t CURRENCY_HASH = ConstExprHashingUtils::HashString("CURRENCY"); + static constexpr uint32_t NUMBER_HASH = ConstExprHashingUtils::HashString("NUMBER"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); DisplayFormat GetDisplayFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return DisplayFormat::AUTO; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/Edition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/Edition.cpp index 07de2b46ffe..a940a96e9cf 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/Edition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/Edition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EditionMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int ENTERPRISE_HASH = HashingUtils::HashString("ENTERPRISE"); - static const int ENTERPRISE_AND_Q_HASH = HashingUtils::HashString("ENTERPRISE_AND_Q"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t ENTERPRISE_HASH = ConstExprHashingUtils::HashString("ENTERPRISE"); + static constexpr uint32_t ENTERPRISE_AND_Q_HASH = ConstExprHashingUtils::HashString("ENTERPRISE_AND_Q"); Edition GetEditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return Edition::STANDARD; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/EmbeddingIdentityType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/EmbeddingIdentityType.cpp index 6d729721aa4..5628f1abe5e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/EmbeddingIdentityType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/EmbeddingIdentityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EmbeddingIdentityTypeMapper { - static const int IAM_HASH = HashingUtils::HashString("IAM"); - static const int QUICKSIGHT_HASH = HashingUtils::HashString("QUICKSIGHT"); - static const int ANONYMOUS_HASH = HashingUtils::HashString("ANONYMOUS"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); + static constexpr uint32_t QUICKSIGHT_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT"); + static constexpr uint32_t ANONYMOUS_HASH = ConstExprHashingUtils::HashString("ANONYMOUS"); EmbeddingIdentityType GetEmbeddingIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_HASH) { return EmbeddingIdentityType::IAM; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ExceptionResourceType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ExceptionResourceType.cpp index 9467cd29a12..39df063bc0a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ExceptionResourceType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ExceptionResourceType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ExceptionResourceTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int NAMESPACE_HASH = HashingUtils::HashString("NAMESPACE"); - static const int ACCOUNT_SETTINGS_HASH = HashingUtils::HashString("ACCOUNT_SETTINGS"); - static const int IAMPOLICY_ASSIGNMENT_HASH = HashingUtils::HashString("IAMPOLICY_ASSIGNMENT"); - static const int DATA_SOURCE_HASH = HashingUtils::HashString("DATA_SOURCE"); - static const int DATA_SET_HASH = HashingUtils::HashString("DATA_SET"); - static const int VPC_CONNECTION_HASH = HashingUtils::HashString("VPC_CONNECTION"); - static const int INGESTION_HASH = HashingUtils::HashString("INGESTION"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t NAMESPACE_HASH = ConstExprHashingUtils::HashString("NAMESPACE"); + static constexpr uint32_t ACCOUNT_SETTINGS_HASH = ConstExprHashingUtils::HashString("ACCOUNT_SETTINGS"); + static constexpr uint32_t IAMPOLICY_ASSIGNMENT_HASH = ConstExprHashingUtils::HashString("IAMPOLICY_ASSIGNMENT"); + static constexpr uint32_t DATA_SOURCE_HASH = ConstExprHashingUtils::HashString("DATA_SOURCE"); + static constexpr uint32_t DATA_SET_HASH = ConstExprHashingUtils::HashString("DATA_SET"); + static constexpr uint32_t VPC_CONNECTION_HASH = ConstExprHashingUtils::HashString("VPC_CONNECTION"); + static constexpr uint32_t INGESTION_HASH = ConstExprHashingUtils::HashString("INGESTION"); ExceptionResourceType GetExceptionResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return ExceptionResourceType::USER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FileFormat.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FileFormat.cpp index 5f1606d5a61..7f1c657525f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FileFormat.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FileFormat.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FileFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int TSV_HASH = HashingUtils::HashString("TSV"); - static const int CLF_HASH = HashingUtils::HashString("CLF"); - static const int ELF_HASH = HashingUtils::HashString("ELF"); - static const int XLSX_HASH = HashingUtils::HashString("XLSX"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t TSV_HASH = ConstExprHashingUtils::HashString("TSV"); + static constexpr uint32_t CLF_HASH = ConstExprHashingUtils::HashString("CLF"); + static constexpr uint32_t ELF_HASH = ConstExprHashingUtils::HashString("ELF"); + static constexpr uint32_t XLSX_HASH = ConstExprHashingUtils::HashString("XLSX"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); FileFormat GetFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return FileFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterClass.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterClass.cpp index 03d9ccb5c3e..039e8ae6c26 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterClass.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterClass.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FilterClassMapper { - static const int ENFORCED_VALUE_FILTER_HASH = HashingUtils::HashString("ENFORCED_VALUE_FILTER"); - static const int CONDITIONAL_VALUE_FILTER_HASH = HashingUtils::HashString("CONDITIONAL_VALUE_FILTER"); - static const int NAMED_VALUE_FILTER_HASH = HashingUtils::HashString("NAMED_VALUE_FILTER"); + static constexpr uint32_t ENFORCED_VALUE_FILTER_HASH = ConstExprHashingUtils::HashString("ENFORCED_VALUE_FILTER"); + static constexpr uint32_t CONDITIONAL_VALUE_FILTER_HASH = ConstExprHashingUtils::HashString("CONDITIONAL_VALUE_FILTER"); + static constexpr uint32_t NAMED_VALUE_FILTER_HASH = ConstExprHashingUtils::HashString("NAMED_VALUE_FILTER"); FilterClass GetFilterClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENFORCED_VALUE_FILTER_HASH) { return FilterClass::ENFORCED_VALUE_FILTER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterNullOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterNullOption.cpp index efe3b180891..6fabd832968 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterNullOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterNullOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FilterNullOptionMapper { - static const int ALL_VALUES_HASH = HashingUtils::HashString("ALL_VALUES"); - static const int NULLS_ONLY_HASH = HashingUtils::HashString("NULLS_ONLY"); - static const int NON_NULLS_ONLY_HASH = HashingUtils::HashString("NON_NULLS_ONLY"); + static constexpr uint32_t ALL_VALUES_HASH = ConstExprHashingUtils::HashString("ALL_VALUES"); + static constexpr uint32_t NULLS_ONLY_HASH = ConstExprHashingUtils::HashString("NULLS_ONLY"); + static constexpr uint32_t NON_NULLS_ONLY_HASH = ConstExprHashingUtils::HashString("NON_NULLS_ONLY"); FilterNullOption GetFilterNullOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_VALUES_HASH) { return FilterNullOption::ALL_VALUES; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterOperator.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterOperator.cpp index 795719063d7..e0e84ae108f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterOperatorMapper { - static const int StringEquals_HASH = HashingUtils::HashString("StringEquals"); - static const int StringLike_HASH = HashingUtils::HashString("StringLike"); + static constexpr uint32_t StringEquals_HASH = ConstExprHashingUtils::HashString("StringEquals"); + static constexpr uint32_t StringLike_HASH = ConstExprHashingUtils::HashString("StringLike"); FilterOperator GetFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == StringEquals_HASH) { return FilterOperator::StringEquals; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterVisualScope.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterVisualScope.cpp index 0a3a5d4d2f3..372ef114d6b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FilterVisualScope.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FilterVisualScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterVisualScopeMapper { - static const int ALL_VISUALS_HASH = HashingUtils::HashString("ALL_VISUALS"); - static const int SELECTED_VISUALS_HASH = HashingUtils::HashString("SELECTED_VISUALS"); + static constexpr uint32_t ALL_VISUALS_HASH = ConstExprHashingUtils::HashString("ALL_VISUALS"); + static constexpr uint32_t SELECTED_VISUALS_HASH = ConstExprHashingUtils::HashString("SELECTED_VISUALS"); FilterVisualScope GetFilterVisualScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_VISUALS_HASH) { return FilterVisualScope::ALL_VISUALS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FolderFilterAttribute.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FolderFilterAttribute.cpp index 401853b893f..1a38825da5b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FolderFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FolderFilterAttribute.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FolderFilterAttributeMapper { - static const int PARENT_FOLDER_ARN_HASH = HashingUtils::HashString("PARENT_FOLDER_ARN"); - static const int DIRECT_QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); - static const int DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); - static const int DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); - static const int QUICKSIGHT_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_OWNER"); - static const int QUICKSIGHT_VIEWER_OR_OWNER_HASH = HashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); - static const int FOLDER_NAME_HASH = HashingUtils::HashString("FOLDER_NAME"); + static constexpr uint32_t PARENT_FOLDER_ARN_HASH = ConstExprHashingUtils::HashString("PARENT_FOLDER_ARN"); + static constexpr uint32_t DIRECT_QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_SOLE_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_SOLE_OWNER"); + static constexpr uint32_t DIRECT_QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("DIRECT_QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t QUICKSIGHT_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_OWNER"); + static constexpr uint32_t QUICKSIGHT_VIEWER_OR_OWNER_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT_VIEWER_OR_OWNER"); + static constexpr uint32_t FOLDER_NAME_HASH = ConstExprHashingUtils::HashString("FOLDER_NAME"); FolderFilterAttribute GetFolderFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARENT_FOLDER_ARN_HASH) { return FolderFilterAttribute::PARENT_FOLDER_ARN; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FolderType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FolderType.cpp index 2715bb78bb0..4193829cb86 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FolderType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FolderType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FolderTypeMapper { - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); FolderType GetFolderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHARED_HASH) { return FolderType::SHARED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FontDecoration.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FontDecoration.cpp index 40080c6e370..3a6205e4f10 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FontDecoration.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FontDecoration.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FontDecorationMapper { - static const int UNDERLINE_HASH = HashingUtils::HashString("UNDERLINE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t UNDERLINE_HASH = ConstExprHashingUtils::HashString("UNDERLINE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); FontDecoration GetFontDecorationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNDERLINE_HASH) { return FontDecoration::UNDERLINE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FontStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FontStyle.cpp index 2119c102da8..57961ea4bb8 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FontStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FontStyle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FontStyleMapper { - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int ITALIC_HASH = HashingUtils::HashString("ITALIC"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); + static constexpr uint32_t ITALIC_HASH = ConstExprHashingUtils::HashString("ITALIC"); FontStyle GetFontStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NORMAL_HASH) { return FontStyle::NORMAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FontWeightName.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FontWeightName.cpp index edcfc85fcf3..d98bfd73e94 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FontWeightName.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FontWeightName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FontWeightNameMapper { - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int BOLD_HASH = HashingUtils::HashString("BOLD"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); + static constexpr uint32_t BOLD_HASH = ConstExprHashingUtils::HashString("BOLD"); FontWeightName GetFontWeightNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NORMAL_HASH) { return FontWeightName::NORMAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ForecastComputationSeasonality.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ForecastComputationSeasonality.cpp index d119a6ee3e1..3e5fbb384e8 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ForecastComputationSeasonality.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ForecastComputationSeasonality.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ForecastComputationSeasonalityMapper { - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); ForecastComputationSeasonality GetForecastComputationSeasonalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTOMATIC_HASH) { return ForecastComputationSeasonality::AUTOMATIC; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/FunnelChartMeasureDataLabelStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/FunnelChartMeasureDataLabelStyle.cpp index 250d090809e..ae5a9c674ff 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/FunnelChartMeasureDataLabelStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/FunnelChartMeasureDataLabelStyle.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FunnelChartMeasureDataLabelStyleMapper { - static const int VALUE_ONLY_HASH = HashingUtils::HashString("VALUE_ONLY"); - static const int PERCENTAGE_BY_FIRST_STAGE_HASH = HashingUtils::HashString("PERCENTAGE_BY_FIRST_STAGE"); - static const int PERCENTAGE_BY_PREVIOUS_STAGE_HASH = HashingUtils::HashString("PERCENTAGE_BY_PREVIOUS_STAGE"); - static const int VALUE_AND_PERCENTAGE_BY_FIRST_STAGE_HASH = HashingUtils::HashString("VALUE_AND_PERCENTAGE_BY_FIRST_STAGE"); - static const int VALUE_AND_PERCENTAGE_BY_PREVIOUS_STAGE_HASH = HashingUtils::HashString("VALUE_AND_PERCENTAGE_BY_PREVIOUS_STAGE"); + static constexpr uint32_t VALUE_ONLY_HASH = ConstExprHashingUtils::HashString("VALUE_ONLY"); + static constexpr uint32_t PERCENTAGE_BY_FIRST_STAGE_HASH = ConstExprHashingUtils::HashString("PERCENTAGE_BY_FIRST_STAGE"); + static constexpr uint32_t PERCENTAGE_BY_PREVIOUS_STAGE_HASH = ConstExprHashingUtils::HashString("PERCENTAGE_BY_PREVIOUS_STAGE"); + static constexpr uint32_t VALUE_AND_PERCENTAGE_BY_FIRST_STAGE_HASH = ConstExprHashingUtils::HashString("VALUE_AND_PERCENTAGE_BY_FIRST_STAGE"); + static constexpr uint32_t VALUE_AND_PERCENTAGE_BY_PREVIOUS_STAGE_HASH = ConstExprHashingUtils::HashString("VALUE_AND_PERCENTAGE_BY_PREVIOUS_STAGE"); FunnelChartMeasureDataLabelStyle GetFunnelChartMeasureDataLabelStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALUE_ONLY_HASH) { return FunnelChartMeasureDataLabelStyle::VALUE_ONLY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialCountryCode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialCountryCode.cpp index 391e4d235d5..0e2b46ea326 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialCountryCode.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialCountryCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GeoSpatialCountryCodeMapper { - static const int US_HASH = HashingUtils::HashString("US"); + static constexpr uint32_t US_HASH = ConstExprHashingUtils::HashString("US"); GeoSpatialCountryCode GetGeoSpatialCountryCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == US_HASH) { return GeoSpatialCountryCode::US; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialDataRole.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialDataRole.cpp index 99b1a1f87ae..f015ea91be3 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialDataRole.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/GeoSpatialDataRole.cpp @@ -20,18 +20,18 @@ namespace Aws namespace GeoSpatialDataRoleMapper { - static const int COUNTRY_HASH = HashingUtils::HashString("COUNTRY"); - static const int STATE_HASH = HashingUtils::HashString("STATE"); - static const int COUNTY_HASH = HashingUtils::HashString("COUNTY"); - static const int CITY_HASH = HashingUtils::HashString("CITY"); - static const int POSTCODE_HASH = HashingUtils::HashString("POSTCODE"); - static const int LONGITUDE_HASH = HashingUtils::HashString("LONGITUDE"); - static const int LATITUDE_HASH = HashingUtils::HashString("LATITUDE"); + static constexpr uint32_t COUNTRY_HASH = ConstExprHashingUtils::HashString("COUNTRY"); + static constexpr uint32_t STATE_HASH = ConstExprHashingUtils::HashString("STATE"); + static constexpr uint32_t COUNTY_HASH = ConstExprHashingUtils::HashString("COUNTY"); + static constexpr uint32_t CITY_HASH = ConstExprHashingUtils::HashString("CITY"); + static constexpr uint32_t POSTCODE_HASH = ConstExprHashingUtils::HashString("POSTCODE"); + static constexpr uint32_t LONGITUDE_HASH = ConstExprHashingUtils::HashString("LONGITUDE"); + static constexpr uint32_t LATITUDE_HASH = ConstExprHashingUtils::HashString("LATITUDE"); GeoSpatialDataRole GetGeoSpatialDataRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COUNTRY_HASH) { return GeoSpatialDataRole::COUNTRY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/GeospatialSelectedPointStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/GeospatialSelectedPointStyle.cpp index 74a36f2fec0..0a50321e479 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/GeospatialSelectedPointStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/GeospatialSelectedPointStyle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GeospatialSelectedPointStyleMapper { - static const int POINT_HASH = HashingUtils::HashString("POINT"); - static const int CLUSTER_HASH = HashingUtils::HashString("CLUSTER"); - static const int HEATMAP_HASH = HashingUtils::HashString("HEATMAP"); + static constexpr uint32_t POINT_HASH = ConstExprHashingUtils::HashString("POINT"); + static constexpr uint32_t CLUSTER_HASH = ConstExprHashingUtils::HashString("CLUSTER"); + static constexpr uint32_t HEATMAP_HASH = ConstExprHashingUtils::HashString("HEATMAP"); GeospatialSelectedPointStyle GetGeospatialSelectedPointStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POINT_HASH) { return GeospatialSelectedPointStyle::POINT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterAttribute.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterAttribute.cpp index 27892ade68b..b43d8d1ac40 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterAttribute.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GroupFilterAttributeMapper { - static const int GROUP_NAME_HASH = HashingUtils::HashString("GROUP_NAME"); + static constexpr uint32_t GROUP_NAME_HASH = ConstExprHashingUtils::HashString("GROUP_NAME"); GroupFilterAttribute GetGroupFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GROUP_NAME_HASH) { return GroupFilterAttribute::GROUP_NAME; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterOperator.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterOperator.cpp index 48c73dcd3d8..0e6513e7a4f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/GroupFilterOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GroupFilterOperatorMapper { - static const int StartsWith_HASH = HashingUtils::HashString("StartsWith"); + static constexpr uint32_t StartsWith_HASH = ConstExprHashingUtils::HashString("StartsWith"); GroupFilterOperator GetGroupFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == StartsWith_HASH) { return GroupFilterOperator::StartsWith; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/HistogramBinType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/HistogramBinType.cpp index 83a90aff2c2..fabf27c0232 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/HistogramBinType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/HistogramBinType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HistogramBinTypeMapper { - static const int BIN_COUNT_HASH = HashingUtils::HashString("BIN_COUNT"); - static const int BIN_WIDTH_HASH = HashingUtils::HashString("BIN_WIDTH"); + static constexpr uint32_t BIN_COUNT_HASH = ConstExprHashingUtils::HashString("BIN_COUNT"); + static constexpr uint32_t BIN_WIDTH_HASH = ConstExprHashingUtils::HashString("BIN_WIDTH"); HistogramBinType GetHistogramBinTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BIN_COUNT_HASH) { return HistogramBinType::BIN_COUNT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/HorizontalTextAlignment.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/HorizontalTextAlignment.cpp index 432db0ea03f..ac436e08c44 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/HorizontalTextAlignment.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/HorizontalTextAlignment.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HorizontalTextAlignmentMapper { - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int CENTER_HASH = HashingUtils::HashString("CENTER"); - static const int RIGHT_HASH = HashingUtils::HashString("RIGHT"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t CENTER_HASH = ConstExprHashingUtils::HashString("CENTER"); + static constexpr uint32_t RIGHT_HASH = ConstExprHashingUtils::HashString("RIGHT"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); HorizontalTextAlignment GetHorizontalTextAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEFT_HASH) { return HorizontalTextAlignment::LEFT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/Icon.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/Icon.cpp index 4eaa8cb1a24..351e768bc11 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/Icon.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/Icon.cpp @@ -20,37 +20,37 @@ namespace Aws namespace IconMapper { - static const int CARET_UP_HASH = HashingUtils::HashString("CARET_UP"); - static const int CARET_DOWN_HASH = HashingUtils::HashString("CARET_DOWN"); - static const int PLUS_HASH = HashingUtils::HashString("PLUS"); - static const int MINUS_HASH = HashingUtils::HashString("MINUS"); - static const int ARROW_UP_HASH = HashingUtils::HashString("ARROW_UP"); - static const int ARROW_DOWN_HASH = HashingUtils::HashString("ARROW_DOWN"); - static const int ARROW_LEFT_HASH = HashingUtils::HashString("ARROW_LEFT"); - static const int ARROW_UP_LEFT_HASH = HashingUtils::HashString("ARROW_UP_LEFT"); - static const int ARROW_DOWN_LEFT_HASH = HashingUtils::HashString("ARROW_DOWN_LEFT"); - static const int ARROW_RIGHT_HASH = HashingUtils::HashString("ARROW_RIGHT"); - static const int ARROW_UP_RIGHT_HASH = HashingUtils::HashString("ARROW_UP_RIGHT"); - static const int ARROW_DOWN_RIGHT_HASH = HashingUtils::HashString("ARROW_DOWN_RIGHT"); - static const int FACE_UP_HASH = HashingUtils::HashString("FACE_UP"); - static const int FACE_DOWN_HASH = HashingUtils::HashString("FACE_DOWN"); - static const int FACE_FLAT_HASH = HashingUtils::HashString("FACE_FLAT"); - static const int ONE_BAR_HASH = HashingUtils::HashString("ONE_BAR"); - static const int TWO_BAR_HASH = HashingUtils::HashString("TWO_BAR"); - static const int THREE_BAR_HASH = HashingUtils::HashString("THREE_BAR"); - static const int CIRCLE_HASH = HashingUtils::HashString("CIRCLE"); - static const int TRIANGLE_HASH = HashingUtils::HashString("TRIANGLE"); - static const int SQUARE_HASH = HashingUtils::HashString("SQUARE"); - static const int FLAG_HASH = HashingUtils::HashString("FLAG"); - static const int THUMBS_UP_HASH = HashingUtils::HashString("THUMBS_UP"); - static const int THUMBS_DOWN_HASH = HashingUtils::HashString("THUMBS_DOWN"); - static const int CHECKMARK_HASH = HashingUtils::HashString("CHECKMARK"); - static const int X_HASH = HashingUtils::HashString("X"); + static constexpr uint32_t CARET_UP_HASH = ConstExprHashingUtils::HashString("CARET_UP"); + static constexpr uint32_t CARET_DOWN_HASH = ConstExprHashingUtils::HashString("CARET_DOWN"); + static constexpr uint32_t PLUS_HASH = ConstExprHashingUtils::HashString("PLUS"); + static constexpr uint32_t MINUS_HASH = ConstExprHashingUtils::HashString("MINUS"); + static constexpr uint32_t ARROW_UP_HASH = ConstExprHashingUtils::HashString("ARROW_UP"); + static constexpr uint32_t ARROW_DOWN_HASH = ConstExprHashingUtils::HashString("ARROW_DOWN"); + static constexpr uint32_t ARROW_LEFT_HASH = ConstExprHashingUtils::HashString("ARROW_LEFT"); + static constexpr uint32_t ARROW_UP_LEFT_HASH = ConstExprHashingUtils::HashString("ARROW_UP_LEFT"); + static constexpr uint32_t ARROW_DOWN_LEFT_HASH = ConstExprHashingUtils::HashString("ARROW_DOWN_LEFT"); + static constexpr uint32_t ARROW_RIGHT_HASH = ConstExprHashingUtils::HashString("ARROW_RIGHT"); + static constexpr uint32_t ARROW_UP_RIGHT_HASH = ConstExprHashingUtils::HashString("ARROW_UP_RIGHT"); + static constexpr uint32_t ARROW_DOWN_RIGHT_HASH = ConstExprHashingUtils::HashString("ARROW_DOWN_RIGHT"); + static constexpr uint32_t FACE_UP_HASH = ConstExprHashingUtils::HashString("FACE_UP"); + static constexpr uint32_t FACE_DOWN_HASH = ConstExprHashingUtils::HashString("FACE_DOWN"); + static constexpr uint32_t FACE_FLAT_HASH = ConstExprHashingUtils::HashString("FACE_FLAT"); + static constexpr uint32_t ONE_BAR_HASH = ConstExprHashingUtils::HashString("ONE_BAR"); + static constexpr uint32_t TWO_BAR_HASH = ConstExprHashingUtils::HashString("TWO_BAR"); + static constexpr uint32_t THREE_BAR_HASH = ConstExprHashingUtils::HashString("THREE_BAR"); + static constexpr uint32_t CIRCLE_HASH = ConstExprHashingUtils::HashString("CIRCLE"); + static constexpr uint32_t TRIANGLE_HASH = ConstExprHashingUtils::HashString("TRIANGLE"); + static constexpr uint32_t SQUARE_HASH = ConstExprHashingUtils::HashString("SQUARE"); + static constexpr uint32_t FLAG_HASH = ConstExprHashingUtils::HashString("FLAG"); + static constexpr uint32_t THUMBS_UP_HASH = ConstExprHashingUtils::HashString("THUMBS_UP"); + static constexpr uint32_t THUMBS_DOWN_HASH = ConstExprHashingUtils::HashString("THUMBS_DOWN"); + static constexpr uint32_t CHECKMARK_HASH = ConstExprHashingUtils::HashString("CHECKMARK"); + static constexpr uint32_t X_HASH = ConstExprHashingUtils::HashString("X"); Icon GetIconForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CARET_UP_HASH) { return Icon::CARET_UP; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityStore.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityStore.cpp index cdf28dbd678..c8c71988e4d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityStore.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityStore.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IdentityStoreMapper { - static const int QUICKSIGHT_HASH = HashingUtils::HashString("QUICKSIGHT"); + static constexpr uint32_t QUICKSIGHT_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT"); IdentityStore GetIdentityStoreForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUICKSIGHT_HASH) { return IdentityStore::QUICKSIGHT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityType.cpp index 62ba9b4ff1f..fd536dae367 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IdentityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IdentityTypeMapper { - static const int IAM_HASH = HashingUtils::HashString("IAM"); - static const int QUICKSIGHT_HASH = HashingUtils::HashString("QUICKSIGHT"); - static const int IAM_IDENTITY_CENTER_HASH = HashingUtils::HashString("IAM_IDENTITY_CENTER"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); + static constexpr uint32_t QUICKSIGHT_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT"); + static constexpr uint32_t IAM_IDENTITY_CENTER_HASH = ConstExprHashingUtils::HashString("IAM_IDENTITY_CENTER"); IdentityType GetIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_HASH) { return IdentityType::IAM; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionErrorType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionErrorType.cpp index f3efc09965b..22de9289ba0 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionErrorType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionErrorType.cpp @@ -20,56 +20,56 @@ namespace Aws namespace IngestionErrorTypeMapper { - static const int FAILURE_TO_ASSUME_ROLE_HASH = HashingUtils::HashString("FAILURE_TO_ASSUME_ROLE"); - static const int INGESTION_SUPERSEDED_HASH = HashingUtils::HashString("INGESTION_SUPERSEDED"); - static const int INGESTION_CANCELED_HASH = HashingUtils::HashString("INGESTION_CANCELED"); - static const int DATA_SET_DELETED_HASH = HashingUtils::HashString("DATA_SET_DELETED"); - static const int DATA_SET_NOT_SPICE_HASH = HashingUtils::HashString("DATA_SET_NOT_SPICE"); - static const int S3_UPLOADED_FILE_DELETED_HASH = HashingUtils::HashString("S3_UPLOADED_FILE_DELETED"); - static const int S3_MANIFEST_ERROR_HASH = HashingUtils::HashString("S3_MANIFEST_ERROR"); - static const int DATA_TOLERANCE_EXCEPTION_HASH = HashingUtils::HashString("DATA_TOLERANCE_EXCEPTION"); - static const int SPICE_TABLE_NOT_FOUND_HASH = HashingUtils::HashString("SPICE_TABLE_NOT_FOUND"); - static const int DATA_SET_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DATA_SET_SIZE_LIMIT_EXCEEDED"); - static const int ROW_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ROW_SIZE_LIMIT_EXCEEDED"); - static const int ACCOUNT_CAPACITY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ACCOUNT_CAPACITY_LIMIT_EXCEEDED"); - static const int CUSTOMER_ERROR_HASH = HashingUtils::HashString("CUSTOMER_ERROR"); - static const int DATA_SOURCE_NOT_FOUND_HASH = HashingUtils::HashString("DATA_SOURCE_NOT_FOUND"); - static const int IAM_ROLE_NOT_AVAILABLE_HASH = HashingUtils::HashString("IAM_ROLE_NOT_AVAILABLE"); - static const int CONNECTION_FAILURE_HASH = HashingUtils::HashString("CONNECTION_FAILURE"); - static const int SQL_TABLE_NOT_FOUND_HASH = HashingUtils::HashString("SQL_TABLE_NOT_FOUND"); - static const int PERMISSION_DENIED_HASH = HashingUtils::HashString("PERMISSION_DENIED"); - static const int SSL_CERTIFICATE_VALIDATION_FAILURE_HASH = HashingUtils::HashString("SSL_CERTIFICATE_VALIDATION_FAILURE"); - static const int OAUTH_TOKEN_FAILURE_HASH = HashingUtils::HashString("OAUTH_TOKEN_FAILURE"); - static const int SOURCE_API_LIMIT_EXCEEDED_FAILURE_HASH = HashingUtils::HashString("SOURCE_API_LIMIT_EXCEEDED_FAILURE"); - static const int PASSWORD_AUTHENTICATION_FAILURE_HASH = HashingUtils::HashString("PASSWORD_AUTHENTICATION_FAILURE"); - static const int SQL_SCHEMA_MISMATCH_ERROR_HASH = HashingUtils::HashString("SQL_SCHEMA_MISMATCH_ERROR"); - static const int INVALID_DATE_FORMAT_HASH = HashingUtils::HashString("INVALID_DATE_FORMAT"); - static const int INVALID_DATAPREP_SYNTAX_HASH = HashingUtils::HashString("INVALID_DATAPREP_SYNTAX"); - static const int SOURCE_RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SOURCE_RESOURCE_LIMIT_EXCEEDED"); - static const int SQL_INVALID_PARAMETER_VALUE_HASH = HashingUtils::HashString("SQL_INVALID_PARAMETER_VALUE"); - static const int QUERY_TIMEOUT_HASH = HashingUtils::HashString("QUERY_TIMEOUT"); - static const int SQL_NUMERIC_OVERFLOW_HASH = HashingUtils::HashString("SQL_NUMERIC_OVERFLOW"); - static const int UNRESOLVABLE_HOST_HASH = HashingUtils::HashString("UNRESOLVABLE_HOST"); - static const int UNROUTABLE_HOST_HASH = HashingUtils::HashString("UNROUTABLE_HOST"); - static const int SQL_EXCEPTION_HASH = HashingUtils::HashString("SQL_EXCEPTION"); - static const int S3_FILE_INACCESSIBLE_HASH = HashingUtils::HashString("S3_FILE_INACCESSIBLE"); - static const int IOT_FILE_NOT_FOUND_HASH = HashingUtils::HashString("IOT_FILE_NOT_FOUND"); - static const int IOT_DATA_SET_FILE_EMPTY_HASH = HashingUtils::HashString("IOT_DATA_SET_FILE_EMPTY"); - static const int INVALID_DATA_SOURCE_CONFIG_HASH = HashingUtils::HashString("INVALID_DATA_SOURCE_CONFIG"); - static const int DATA_SOURCE_AUTH_FAILED_HASH = HashingUtils::HashString("DATA_SOURCE_AUTH_FAILED"); - static const int DATA_SOURCE_CONNECTION_FAILED_HASH = HashingUtils::HashString("DATA_SOURCE_CONNECTION_FAILED"); - static const int FAILURE_TO_PROCESS_JSON_FILE_HASH = HashingUtils::HashString("FAILURE_TO_PROCESS_JSON_FILE"); - static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVICE_ERROR"); - static const int REFRESH_SUPPRESSED_BY_EDIT_HASH = HashingUtils::HashString("REFRESH_SUPPRESSED_BY_EDIT"); - static const int PERMISSION_NOT_FOUND_HASH = HashingUtils::HashString("PERMISSION_NOT_FOUND"); - static const int ELASTICSEARCH_CURSOR_NOT_ENABLED_HASH = HashingUtils::HashString("ELASTICSEARCH_CURSOR_NOT_ENABLED"); - static const int CURSOR_NOT_ENABLED_HASH = HashingUtils::HashString("CURSOR_NOT_ENABLED"); - static const int DUPLICATE_COLUMN_NAMES_FOUND_HASH = HashingUtils::HashString("DUPLICATE_COLUMN_NAMES_FOUND"); + static constexpr uint32_t FAILURE_TO_ASSUME_ROLE_HASH = ConstExprHashingUtils::HashString("FAILURE_TO_ASSUME_ROLE"); + static constexpr uint32_t INGESTION_SUPERSEDED_HASH = ConstExprHashingUtils::HashString("INGESTION_SUPERSEDED"); + static constexpr uint32_t INGESTION_CANCELED_HASH = ConstExprHashingUtils::HashString("INGESTION_CANCELED"); + static constexpr uint32_t DATA_SET_DELETED_HASH = ConstExprHashingUtils::HashString("DATA_SET_DELETED"); + static constexpr uint32_t DATA_SET_NOT_SPICE_HASH = ConstExprHashingUtils::HashString("DATA_SET_NOT_SPICE"); + static constexpr uint32_t S3_UPLOADED_FILE_DELETED_HASH = ConstExprHashingUtils::HashString("S3_UPLOADED_FILE_DELETED"); + static constexpr uint32_t S3_MANIFEST_ERROR_HASH = ConstExprHashingUtils::HashString("S3_MANIFEST_ERROR"); + static constexpr uint32_t DATA_TOLERANCE_EXCEPTION_HASH = ConstExprHashingUtils::HashString("DATA_TOLERANCE_EXCEPTION"); + static constexpr uint32_t SPICE_TABLE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SPICE_TABLE_NOT_FOUND"); + static constexpr uint32_t DATA_SET_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DATA_SET_SIZE_LIMIT_EXCEEDED"); + static constexpr uint32_t ROW_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ROW_SIZE_LIMIT_EXCEEDED"); + static constexpr uint32_t ACCOUNT_CAPACITY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_CAPACITY_LIMIT_EXCEEDED"); + static constexpr uint32_t CUSTOMER_ERROR_HASH = ConstExprHashingUtils::HashString("CUSTOMER_ERROR"); + static constexpr uint32_t DATA_SOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DATA_SOURCE_NOT_FOUND"); + static constexpr uint32_t IAM_ROLE_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("IAM_ROLE_NOT_AVAILABLE"); + static constexpr uint32_t CONNECTION_FAILURE_HASH = ConstExprHashingUtils::HashString("CONNECTION_FAILURE"); + static constexpr uint32_t SQL_TABLE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SQL_TABLE_NOT_FOUND"); + static constexpr uint32_t PERMISSION_DENIED_HASH = ConstExprHashingUtils::HashString("PERMISSION_DENIED"); + static constexpr uint32_t SSL_CERTIFICATE_VALIDATION_FAILURE_HASH = ConstExprHashingUtils::HashString("SSL_CERTIFICATE_VALIDATION_FAILURE"); + static constexpr uint32_t OAUTH_TOKEN_FAILURE_HASH = ConstExprHashingUtils::HashString("OAUTH_TOKEN_FAILURE"); + static constexpr uint32_t SOURCE_API_LIMIT_EXCEEDED_FAILURE_HASH = ConstExprHashingUtils::HashString("SOURCE_API_LIMIT_EXCEEDED_FAILURE"); + static constexpr uint32_t PASSWORD_AUTHENTICATION_FAILURE_HASH = ConstExprHashingUtils::HashString("PASSWORD_AUTHENTICATION_FAILURE"); + static constexpr uint32_t SQL_SCHEMA_MISMATCH_ERROR_HASH = ConstExprHashingUtils::HashString("SQL_SCHEMA_MISMATCH_ERROR"); + static constexpr uint32_t INVALID_DATE_FORMAT_HASH = ConstExprHashingUtils::HashString("INVALID_DATE_FORMAT"); + static constexpr uint32_t INVALID_DATAPREP_SYNTAX_HASH = ConstExprHashingUtils::HashString("INVALID_DATAPREP_SYNTAX"); + static constexpr uint32_t SOURCE_RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SOURCE_RESOURCE_LIMIT_EXCEEDED"); + static constexpr uint32_t SQL_INVALID_PARAMETER_VALUE_HASH = ConstExprHashingUtils::HashString("SQL_INVALID_PARAMETER_VALUE"); + static constexpr uint32_t QUERY_TIMEOUT_HASH = ConstExprHashingUtils::HashString("QUERY_TIMEOUT"); + static constexpr uint32_t SQL_NUMERIC_OVERFLOW_HASH = ConstExprHashingUtils::HashString("SQL_NUMERIC_OVERFLOW"); + static constexpr uint32_t UNRESOLVABLE_HOST_HASH = ConstExprHashingUtils::HashString("UNRESOLVABLE_HOST"); + static constexpr uint32_t UNROUTABLE_HOST_HASH = ConstExprHashingUtils::HashString("UNROUTABLE_HOST"); + static constexpr uint32_t SQL_EXCEPTION_HASH = ConstExprHashingUtils::HashString("SQL_EXCEPTION"); + static constexpr uint32_t S3_FILE_INACCESSIBLE_HASH = ConstExprHashingUtils::HashString("S3_FILE_INACCESSIBLE"); + static constexpr uint32_t IOT_FILE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("IOT_FILE_NOT_FOUND"); + static constexpr uint32_t IOT_DATA_SET_FILE_EMPTY_HASH = ConstExprHashingUtils::HashString("IOT_DATA_SET_FILE_EMPTY"); + static constexpr uint32_t INVALID_DATA_SOURCE_CONFIG_HASH = ConstExprHashingUtils::HashString("INVALID_DATA_SOURCE_CONFIG"); + static constexpr uint32_t DATA_SOURCE_AUTH_FAILED_HASH = ConstExprHashingUtils::HashString("DATA_SOURCE_AUTH_FAILED"); + static constexpr uint32_t DATA_SOURCE_CONNECTION_FAILED_HASH = ConstExprHashingUtils::HashString("DATA_SOURCE_CONNECTION_FAILED"); + static constexpr uint32_t FAILURE_TO_PROCESS_JSON_FILE_HASH = ConstExprHashingUtils::HashString("FAILURE_TO_PROCESS_JSON_FILE"); + static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t REFRESH_SUPPRESSED_BY_EDIT_HASH = ConstExprHashingUtils::HashString("REFRESH_SUPPRESSED_BY_EDIT"); + static constexpr uint32_t PERMISSION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("PERMISSION_NOT_FOUND"); + static constexpr uint32_t ELASTICSEARCH_CURSOR_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("ELASTICSEARCH_CURSOR_NOT_ENABLED"); + static constexpr uint32_t CURSOR_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("CURSOR_NOT_ENABLED"); + static constexpr uint32_t DUPLICATE_COLUMN_NAMES_FOUND_HASH = ConstExprHashingUtils::HashString("DUPLICATE_COLUMN_NAMES_FOUND"); IngestionErrorType GetIngestionErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAILURE_TO_ASSUME_ROLE_HASH) { return IngestionErrorType::FAILURE_TO_ASSUME_ROLE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestSource.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestSource.cpp index 42a1f109a04..c49f415239b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestSource.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IngestionRequestSourceMapper { - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); IngestionRequestSource GetIngestionRequestSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MANUAL_HASH) { return IngestionRequestSource::MANUAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestType.cpp index 90696010c41..fd84446cc35 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionRequestType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace IngestionRequestTypeMapper { - static const int INITIAL_INGESTION_HASH = HashingUtils::HashString("INITIAL_INGESTION"); - static const int EDIT_HASH = HashingUtils::HashString("EDIT"); - static const int INCREMENTAL_REFRESH_HASH = HashingUtils::HashString("INCREMENTAL_REFRESH"); - static const int FULL_REFRESH_HASH = HashingUtils::HashString("FULL_REFRESH"); + static constexpr uint32_t INITIAL_INGESTION_HASH = ConstExprHashingUtils::HashString("INITIAL_INGESTION"); + static constexpr uint32_t EDIT_HASH = ConstExprHashingUtils::HashString("EDIT"); + static constexpr uint32_t INCREMENTAL_REFRESH_HASH = ConstExprHashingUtils::HashString("INCREMENTAL_REFRESH"); + static constexpr uint32_t FULL_REFRESH_HASH = ConstExprHashingUtils::HashString("FULL_REFRESH"); IngestionRequestType GetIngestionRequestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIAL_INGESTION_HASH) { return IngestionRequestType::INITIAL_INGESTION; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionStatus.cpp index b78b98314ef..d5f8c63f963 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IngestionStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); IngestionStatus GetIngestionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return IngestionStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionType.cpp index f99a2c49e60..93d71af08a0 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/IngestionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IngestionTypeMapper { - static const int INCREMENTAL_REFRESH_HASH = HashingUtils::HashString("INCREMENTAL_REFRESH"); - static const int FULL_REFRESH_HASH = HashingUtils::HashString("FULL_REFRESH"); + static constexpr uint32_t INCREMENTAL_REFRESH_HASH = ConstExprHashingUtils::HashString("INCREMENTAL_REFRESH"); + static constexpr uint32_t FULL_REFRESH_HASH = ConstExprHashingUtils::HashString("FULL_REFRESH"); IngestionType GetIngestionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCREMENTAL_REFRESH_HASH) { return IngestionType::INCREMENTAL_REFRESH; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/InputColumnDataType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/InputColumnDataType.cpp index d610ace945a..f3649a86f69 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/InputColumnDataType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/InputColumnDataType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace InputColumnDataTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); - static const int DECIMAL_HASH = HashingUtils::HashString("DECIMAL"); - static const int DATETIME_HASH = HashingUtils::HashString("DATETIME"); - static const int BIT_HASH = HashingUtils::HashString("BIT"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); + static constexpr uint32_t DECIMAL_HASH = ConstExprHashingUtils::HashString("DECIMAL"); + static constexpr uint32_t DATETIME_HASH = ConstExprHashingUtils::HashString("DATETIME"); + static constexpr uint32_t BIT_HASH = ConstExprHashingUtils::HashString("BIT"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); InputColumnDataType GetInputColumnDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return InputColumnDataType::STRING; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/JoinType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/JoinType.cpp index a53b5467bbc..d978be02f4e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/JoinType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/JoinType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JoinTypeMapper { - static const int INNER_HASH = HashingUtils::HashString("INNER"); - static const int OUTER_HASH = HashingUtils::HashString("OUTER"); - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int RIGHT_HASH = HashingUtils::HashString("RIGHT"); + static constexpr uint32_t INNER_HASH = ConstExprHashingUtils::HashString("INNER"); + static constexpr uint32_t OUTER_HASH = ConstExprHashingUtils::HashString("OUTER"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t RIGHT_HASH = ConstExprHashingUtils::HashString("RIGHT"); JoinType GetJoinTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INNER_HASH) { return JoinType::INNER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/KPISparklineType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/KPISparklineType.cpp index 2a606da84cc..5d1fdfc2ec1 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/KPISparklineType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/KPISparklineType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KPISparklineTypeMapper { - static const int LINE_HASH = HashingUtils::HashString("LINE"); - static const int AREA_HASH = HashingUtils::HashString("AREA"); + static constexpr uint32_t LINE_HASH = ConstExprHashingUtils::HashString("LINE"); + static constexpr uint32_t AREA_HASH = ConstExprHashingUtils::HashString("AREA"); KPISparklineType GetKPISparklineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINE_HASH) { return KPISparklineType::LINE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/KPIVisualStandardLayoutType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/KPIVisualStandardLayoutType.cpp index d93564506b0..5455970bba3 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/KPIVisualStandardLayoutType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/KPIVisualStandardLayoutType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KPIVisualStandardLayoutTypeMapper { - static const int CLASSIC_HASH = HashingUtils::HashString("CLASSIC"); - static const int VERTICAL_HASH = HashingUtils::HashString("VERTICAL"); + static constexpr uint32_t CLASSIC_HASH = ConstExprHashingUtils::HashString("CLASSIC"); + static constexpr uint32_t VERTICAL_HASH = ConstExprHashingUtils::HashString("VERTICAL"); KPIVisualStandardLayoutType GetKPIVisualStandardLayoutTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLASSIC_HASH) { return KPIVisualStandardLayoutType::CLASSIC; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LayoutElementType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LayoutElementType.cpp index 8a90f335ea6..e55d0d45201 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LayoutElementType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LayoutElementType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LayoutElementTypeMapper { - static const int VISUAL_HASH = HashingUtils::HashString("VISUAL"); - static const int FILTER_CONTROL_HASH = HashingUtils::HashString("FILTER_CONTROL"); - static const int PARAMETER_CONTROL_HASH = HashingUtils::HashString("PARAMETER_CONTROL"); - static const int TEXT_BOX_HASH = HashingUtils::HashString("TEXT_BOX"); + static constexpr uint32_t VISUAL_HASH = ConstExprHashingUtils::HashString("VISUAL"); + static constexpr uint32_t FILTER_CONTROL_HASH = ConstExprHashingUtils::HashString("FILTER_CONTROL"); + static constexpr uint32_t PARAMETER_CONTROL_HASH = ConstExprHashingUtils::HashString("PARAMETER_CONTROL"); + static constexpr uint32_t TEXT_BOX_HASH = ConstExprHashingUtils::HashString("TEXT_BOX"); LayoutElementType GetLayoutElementTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VISUAL_HASH) { return LayoutElementType::VISUAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LegendPosition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LegendPosition.cpp index 019d50e5d02..236effb9ab6 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LegendPosition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LegendPosition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LegendPositionMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int RIGHT_HASH = HashingUtils::HashString("RIGHT"); - static const int BOTTOM_HASH = HashingUtils::HashString("BOTTOM"); - static const int TOP_HASH = HashingUtils::HashString("TOP"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t RIGHT_HASH = ConstExprHashingUtils::HashString("RIGHT"); + static constexpr uint32_t BOTTOM_HASH = ConstExprHashingUtils::HashString("BOTTOM"); + static constexpr uint32_t TOP_HASH = ConstExprHashingUtils::HashString("TOP"); LegendPosition GetLegendPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return LegendPosition::AUTO; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartLineStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartLineStyle.cpp index 963d980027c..d6f50bac023 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartLineStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartLineStyle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LineChartLineStyleMapper { - static const int SOLID_HASH = HashingUtils::HashString("SOLID"); - static const int DOTTED_HASH = HashingUtils::HashString("DOTTED"); - static const int DASHED_HASH = HashingUtils::HashString("DASHED"); + static constexpr uint32_t SOLID_HASH = ConstExprHashingUtils::HashString("SOLID"); + static constexpr uint32_t DOTTED_HASH = ConstExprHashingUtils::HashString("DOTTED"); + static constexpr uint32_t DASHED_HASH = ConstExprHashingUtils::HashString("DASHED"); LineChartLineStyle GetLineChartLineStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOLID_HASH) { return LineChartLineStyle::SOLID; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartMarkerShape.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartMarkerShape.cpp index aff60d2eb26..e3e2ebe7031 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartMarkerShape.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartMarkerShape.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LineChartMarkerShapeMapper { - static const int CIRCLE_HASH = HashingUtils::HashString("CIRCLE"); - static const int TRIANGLE_HASH = HashingUtils::HashString("TRIANGLE"); - static const int SQUARE_HASH = HashingUtils::HashString("SQUARE"); - static const int DIAMOND_HASH = HashingUtils::HashString("DIAMOND"); - static const int ROUNDED_SQUARE_HASH = HashingUtils::HashString("ROUNDED_SQUARE"); + static constexpr uint32_t CIRCLE_HASH = ConstExprHashingUtils::HashString("CIRCLE"); + static constexpr uint32_t TRIANGLE_HASH = ConstExprHashingUtils::HashString("TRIANGLE"); + static constexpr uint32_t SQUARE_HASH = ConstExprHashingUtils::HashString("SQUARE"); + static constexpr uint32_t DIAMOND_HASH = ConstExprHashingUtils::HashString("DIAMOND"); + static constexpr uint32_t ROUNDED_SQUARE_HASH = ConstExprHashingUtils::HashString("ROUNDED_SQUARE"); LineChartMarkerShape GetLineChartMarkerShapeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CIRCLE_HASH) { return LineChartMarkerShape::CIRCLE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartType.cpp index 65728d4cfb6..fb1e643ebf2 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LineChartType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LineChartTypeMapper { - static const int LINE_HASH = HashingUtils::HashString("LINE"); - static const int AREA_HASH = HashingUtils::HashString("AREA"); - static const int STACKED_AREA_HASH = HashingUtils::HashString("STACKED_AREA"); + static constexpr uint32_t LINE_HASH = ConstExprHashingUtils::HashString("LINE"); + static constexpr uint32_t AREA_HASH = ConstExprHashingUtils::HashString("AREA"); + static constexpr uint32_t STACKED_AREA_HASH = ConstExprHashingUtils::HashString("STACKED_AREA"); LineChartType GetLineChartTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINE_HASH) { return LineChartType::LINE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LineInterpolation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LineInterpolation.cpp index f40b8495d22..5f33a9cd69c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LineInterpolation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LineInterpolation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LineInterpolationMapper { - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); - static const int SMOOTH_HASH = HashingUtils::HashString("SMOOTH"); - static const int STEPPED_HASH = HashingUtils::HashString("STEPPED"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); + static constexpr uint32_t SMOOTH_HASH = ConstExprHashingUtils::HashString("SMOOTH"); + static constexpr uint32_t STEPPED_HASH = ConstExprHashingUtils::HashString("STEPPED"); LineInterpolation GetLineInterpolationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINEAR_HASH) { return LineInterpolation::LINEAR; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/LookbackWindowSizeUnit.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/LookbackWindowSizeUnit.cpp index fc2a7a02f4d..d4f57efc378 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/LookbackWindowSizeUnit.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/LookbackWindowSizeUnit.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LookbackWindowSizeUnitMapper { - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); LookbackWindowSizeUnit GetLookbackWindowSizeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOUR_HASH) { return LookbackWindowSizeUnit::HOUR; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/MapZoomMode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/MapZoomMode.cpp index 8e2d656761d..156a27c6405 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/MapZoomMode.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/MapZoomMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MapZoomModeMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); MapZoomMode GetMapZoomModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return MapZoomMode::AUTO; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/MaximumMinimumComputationType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/MaximumMinimumComputationType.cpp index bce80c39e25..28b9236db40 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/MaximumMinimumComputationType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/MaximumMinimumComputationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MaximumMinimumComputationTypeMapper { - static const int MAXIMUM_HASH = HashingUtils::HashString("MAXIMUM"); - static const int MINIMUM_HASH = HashingUtils::HashString("MINIMUM"); + static constexpr uint32_t MAXIMUM_HASH = ConstExprHashingUtils::HashString("MAXIMUM"); + static constexpr uint32_t MINIMUM_HASH = ConstExprHashingUtils::HashString("MINIMUM"); MaximumMinimumComputationType GetMaximumMinimumComputationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAXIMUM_HASH) { return MaximumMinimumComputationType::MAXIMUM; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/MemberType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/MemberType.cpp index 46a7381bb1c..492f0430a1c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/MemberType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/MemberType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MemberTypeMapper { - static const int DASHBOARD_HASH = HashingUtils::HashString("DASHBOARD"); - static const int ANALYSIS_HASH = HashingUtils::HashString("ANALYSIS"); - static const int DATASET_HASH = HashingUtils::HashString("DATASET"); - static const int DATASOURCE_HASH = HashingUtils::HashString("DATASOURCE"); - static const int TOPIC_HASH = HashingUtils::HashString("TOPIC"); + static constexpr uint32_t DASHBOARD_HASH = ConstExprHashingUtils::HashString("DASHBOARD"); + static constexpr uint32_t ANALYSIS_HASH = ConstExprHashingUtils::HashString("ANALYSIS"); + static constexpr uint32_t DATASET_HASH = ConstExprHashingUtils::HashString("DATASET"); + static constexpr uint32_t DATASOURCE_HASH = ConstExprHashingUtils::HashString("DATASOURCE"); + static constexpr uint32_t TOPIC_HASH = ConstExprHashingUtils::HashString("TOPIC"); MemberType GetMemberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DASHBOARD_HASH) { return MemberType::DASHBOARD; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/MissingDataTreatmentOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/MissingDataTreatmentOption.cpp index f4cb3ad4ca7..b5779790979 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/MissingDataTreatmentOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/MissingDataTreatmentOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MissingDataTreatmentOptionMapper { - static const int INTERPOLATE_HASH = HashingUtils::HashString("INTERPOLATE"); - static const int SHOW_AS_ZERO_HASH = HashingUtils::HashString("SHOW_AS_ZERO"); - static const int SHOW_AS_BLANK_HASH = HashingUtils::HashString("SHOW_AS_BLANK"); + static constexpr uint32_t INTERPOLATE_HASH = ConstExprHashingUtils::HashString("INTERPOLATE"); + static constexpr uint32_t SHOW_AS_ZERO_HASH = ConstExprHashingUtils::HashString("SHOW_AS_ZERO"); + static constexpr uint32_t SHOW_AS_BLANK_HASH = ConstExprHashingUtils::HashString("SHOW_AS_BLANK"); MissingDataTreatmentOption GetMissingDataTreatmentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERPOLATE_HASH) { return MissingDataTreatmentOption::INTERPOLATE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NamedEntityAggType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NamedEntityAggType.cpp index a360155484a..171550631a0 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NamedEntityAggType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NamedEntityAggType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace NamedEntityAggTypeMapper { - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); - static const int STDEV_HASH = HashingUtils::HashString("STDEV"); - static const int STDEVP_HASH = HashingUtils::HashString("STDEVP"); - static const int VAR_HASH = HashingUtils::HashString("VAR"); - static const int VARP_HASH = HashingUtils::HashString("VARP"); - static const int PERCENTILE_HASH = HashingUtils::HashString("PERCENTILE"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t STDEV_HASH = ConstExprHashingUtils::HashString("STDEV"); + static constexpr uint32_t STDEVP_HASH = ConstExprHashingUtils::HashString("STDEVP"); + static constexpr uint32_t VAR_HASH = ConstExprHashingUtils::HashString("VAR"); + static constexpr uint32_t VARP_HASH = ConstExprHashingUtils::HashString("VARP"); + static constexpr uint32_t PERCENTILE_HASH = ConstExprHashingUtils::HashString("PERCENTILE"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); NamedEntityAggType GetNamedEntityAggTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_HASH) { return NamedEntityAggType::SUM; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterAggType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterAggType.cpp index f7def0999c9..76a11b43363 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterAggType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterAggType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace NamedFilterAggTypeMapper { - static const int NO_AGGREGATION_HASH = HashingUtils::HashString("NO_AGGREGATION"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int STDEV_HASH = HashingUtils::HashString("STDEV"); - static const int STDEVP_HASH = HashingUtils::HashString("STDEVP"); - static const int VAR_HASH = HashingUtils::HashString("VAR"); - static const int VARP_HASH = HashingUtils::HashString("VARP"); + static constexpr uint32_t NO_AGGREGATION_HASH = ConstExprHashingUtils::HashString("NO_AGGREGATION"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t STDEV_HASH = ConstExprHashingUtils::HashString("STDEV"); + static constexpr uint32_t STDEVP_HASH = ConstExprHashingUtils::HashString("STDEVP"); + static constexpr uint32_t VAR_HASH = ConstExprHashingUtils::HashString("VAR"); + static constexpr uint32_t VARP_HASH = ConstExprHashingUtils::HashString("VARP"); NamedFilterAggType GetNamedFilterAggTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_AGGREGATION_HASH) { return NamedFilterAggType::NO_AGGREGATION; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterType.cpp index 1a5ea967782..7bffbaa4923 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NamedFilterType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NamedFilterTypeMapper { - static const int CATEGORY_FILTER_HASH = HashingUtils::HashString("CATEGORY_FILTER"); - static const int NUMERIC_EQUALITY_FILTER_HASH = HashingUtils::HashString("NUMERIC_EQUALITY_FILTER"); - static const int NUMERIC_RANGE_FILTER_HASH = HashingUtils::HashString("NUMERIC_RANGE_FILTER"); - static const int DATE_RANGE_FILTER_HASH = HashingUtils::HashString("DATE_RANGE_FILTER"); - static const int RELATIVE_DATE_FILTER_HASH = HashingUtils::HashString("RELATIVE_DATE_FILTER"); + static constexpr uint32_t CATEGORY_FILTER_HASH = ConstExprHashingUtils::HashString("CATEGORY_FILTER"); + static constexpr uint32_t NUMERIC_EQUALITY_FILTER_HASH = ConstExprHashingUtils::HashString("NUMERIC_EQUALITY_FILTER"); + static constexpr uint32_t NUMERIC_RANGE_FILTER_HASH = ConstExprHashingUtils::HashString("NUMERIC_RANGE_FILTER"); + static constexpr uint32_t DATE_RANGE_FILTER_HASH = ConstExprHashingUtils::HashString("DATE_RANGE_FILTER"); + static constexpr uint32_t RELATIVE_DATE_FILTER_HASH = ConstExprHashingUtils::HashString("RELATIVE_DATE_FILTER"); NamedFilterType GetNamedFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CATEGORY_FILTER_HASH) { return NamedFilterType::CATEGORY_FILTER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceErrorType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceErrorType.cpp index df532694abe..1557df062ae 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceErrorType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NamespaceErrorTypeMapper { - static const int PERMISSION_DENIED_HASH = HashingUtils::HashString("PERMISSION_DENIED"); - static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t PERMISSION_DENIED_HASH = ConstExprHashingUtils::HashString("PERMISSION_DENIED"); + static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_ERROR"); NamespaceErrorType GetNamespaceErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERMISSION_DENIED_HASH) { return NamespaceErrorType::PERMISSION_DENIED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceStatus.cpp index e3042ca2efe..709b03877bd 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NamespaceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NamespaceStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int RETRYABLE_FAILURE_HASH = HashingUtils::HashString("RETRYABLE_FAILURE"); - static const int NON_RETRYABLE_FAILURE_HASH = HashingUtils::HashString("NON_RETRYABLE_FAILURE"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t RETRYABLE_FAILURE_HASH = ConstExprHashingUtils::HashString("RETRYABLE_FAILURE"); + static constexpr uint32_t NON_RETRYABLE_FAILURE_HASH = ConstExprHashingUtils::HashString("NON_RETRYABLE_FAILURE"); NamespaceStatus GetNamespaceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return NamespaceStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NegativeValueDisplayMode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NegativeValueDisplayMode.cpp index 2f7ab990089..ab1572cd3aa 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NegativeValueDisplayMode.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NegativeValueDisplayMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NegativeValueDisplayModeMapper { - static const int POSITIVE_HASH = HashingUtils::HashString("POSITIVE"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t POSITIVE_HASH = ConstExprHashingUtils::HashString("POSITIVE"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); NegativeValueDisplayMode GetNegativeValueDisplayModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POSITIVE_HASH) { return NegativeValueDisplayMode::POSITIVE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NetworkInterfaceStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NetworkInterfaceStatus.cpp index 49381c8ad97..c124605f12e 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NetworkInterfaceStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NetworkInterfaceStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace NetworkInterfaceStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); - static const int DELETION_SCHEDULED_HASH = HashingUtils::HashString("DELETION_SCHEDULED"); - static const int ATTACHMENT_FAILED_ROLLBACK_FAILED_HASH = HashingUtils::HashString("ATTACHMENT_FAILED_ROLLBACK_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t DELETION_SCHEDULED_HASH = ConstExprHashingUtils::HashString("DELETION_SCHEDULED"); + static constexpr uint32_t ATTACHMENT_FAILED_ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("ATTACHMENT_FAILED_ROLLBACK_FAILED"); NetworkInterfaceStatus GetNetworkInterfaceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return NetworkInterfaceStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NumberScale.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NumberScale.cpp index e6401f2e1d9..c1dbd0f3500 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NumberScale.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NumberScale.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NumberScaleMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int THOUSANDS_HASH = HashingUtils::HashString("THOUSANDS"); - static const int MILLIONS_HASH = HashingUtils::HashString("MILLIONS"); - static const int BILLIONS_HASH = HashingUtils::HashString("BILLIONS"); - static const int TRILLIONS_HASH = HashingUtils::HashString("TRILLIONS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t THOUSANDS_HASH = ConstExprHashingUtils::HashString("THOUSANDS"); + static constexpr uint32_t MILLIONS_HASH = ConstExprHashingUtils::HashString("MILLIONS"); + static constexpr uint32_t BILLIONS_HASH = ConstExprHashingUtils::HashString("BILLIONS"); + static constexpr uint32_t TRILLIONS_HASH = ConstExprHashingUtils::HashString("TRILLIONS"); NumberScale GetNumberScaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return NumberScale::NONE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NumericEqualityMatchOperator.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NumericEqualityMatchOperator.cpp index 906a024bd1a..feafa7797b0 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NumericEqualityMatchOperator.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NumericEqualityMatchOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NumericEqualityMatchOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int DOES_NOT_EQUAL_HASH = HashingUtils::HashString("DOES_NOT_EQUAL"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t DOES_NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("DOES_NOT_EQUAL"); NumericEqualityMatchOperator GetNumericEqualityMatchOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return NumericEqualityMatchOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NumericFilterSelectAllOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NumericFilterSelectAllOptions.cpp index e15c490ff6a..010869133cf 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NumericFilterSelectAllOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NumericFilterSelectAllOptions.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NumericFilterSelectAllOptionsMapper { - static const int FILTER_ALL_VALUES_HASH = HashingUtils::HashString("FILTER_ALL_VALUES"); + static constexpr uint32_t FILTER_ALL_VALUES_HASH = ConstExprHashingUtils::HashString("FILTER_ALL_VALUES"); NumericFilterSelectAllOptions GetNumericFilterSelectAllOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FILTER_ALL_VALUES_HASH) { return NumericFilterSelectAllOptions::FILTER_ALL_VALUES; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/NumericSeparatorSymbol.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/NumericSeparatorSymbol.cpp index 672a58d114a..f7b304450f5 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/NumericSeparatorSymbol.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/NumericSeparatorSymbol.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NumericSeparatorSymbolMapper { - static const int COMMA_HASH = HashingUtils::HashString("COMMA"); - static const int DOT_HASH = HashingUtils::HashString("DOT"); - static const int SPACE_HASH = HashingUtils::HashString("SPACE"); + static constexpr uint32_t COMMA_HASH = ConstExprHashingUtils::HashString("COMMA"); + static constexpr uint32_t DOT_HASH = ConstExprHashingUtils::HashString("DOT"); + static constexpr uint32_t SPACE_HASH = ConstExprHashingUtils::HashString("SPACE"); NumericSeparatorSymbol GetNumericSeparatorSymbolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMA_HASH) { return NumericSeparatorSymbol::COMMA; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/OtherCategories.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/OtherCategories.cpp index 07eeb8cf38f..749cd9bb718 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/OtherCategories.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/OtherCategories.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OtherCategoriesMapper { - static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); - static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); + static constexpr uint32_t INCLUDE_HASH = ConstExprHashingUtils::HashString("INCLUDE"); + static constexpr uint32_t EXCLUDE_HASH = ConstExprHashingUtils::HashString("EXCLUDE"); OtherCategories GetOtherCategoriesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return OtherCategories::INCLUDE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PanelBorderStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PanelBorderStyle.cpp index d585ecbb444..76b440edceb 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PanelBorderStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PanelBorderStyle.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PanelBorderStyleMapper { - static const int SOLID_HASH = HashingUtils::HashString("SOLID"); - static const int DASHED_HASH = HashingUtils::HashString("DASHED"); - static const int DOTTED_HASH = HashingUtils::HashString("DOTTED"); + static constexpr uint32_t SOLID_HASH = ConstExprHashingUtils::HashString("SOLID"); + static constexpr uint32_t DASHED_HASH = ConstExprHashingUtils::HashString("DASHED"); + static constexpr uint32_t DOTTED_HASH = ConstExprHashingUtils::HashString("DOTTED"); PanelBorderStyle GetPanelBorderStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOLID_HASH) { return PanelBorderStyle::SOLID; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PaperOrientation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PaperOrientation.cpp index f7a421aafcb..fc46de5f101 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PaperOrientation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PaperOrientation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PaperOrientationMapper { - static const int PORTRAIT_HASH = HashingUtils::HashString("PORTRAIT"); - static const int LANDSCAPE_HASH = HashingUtils::HashString("LANDSCAPE"); + static constexpr uint32_t PORTRAIT_HASH = ConstExprHashingUtils::HashString("PORTRAIT"); + static constexpr uint32_t LANDSCAPE_HASH = ConstExprHashingUtils::HashString("LANDSCAPE"); PaperOrientation GetPaperOrientationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PORTRAIT_HASH) { return PaperOrientation::PORTRAIT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PaperSize.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PaperSize.cpp index 92e8a13d149..e667bf0f9c9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PaperSize.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PaperSize.cpp @@ -20,22 +20,22 @@ namespace Aws namespace PaperSizeMapper { - static const int US_LETTER_HASH = HashingUtils::HashString("US_LETTER"); - static const int US_LEGAL_HASH = HashingUtils::HashString("US_LEGAL"); - static const int US_TABLOID_LEDGER_HASH = HashingUtils::HashString("US_TABLOID_LEDGER"); - static const int A0_HASH = HashingUtils::HashString("A0"); - static const int A1_HASH = HashingUtils::HashString("A1"); - static const int A2_HASH = HashingUtils::HashString("A2"); - static const int A3_HASH = HashingUtils::HashString("A3"); - static const int A4_HASH = HashingUtils::HashString("A4"); - static const int A5_HASH = HashingUtils::HashString("A5"); - static const int JIS_B4_HASH = HashingUtils::HashString("JIS_B4"); - static const int JIS_B5_HASH = HashingUtils::HashString("JIS_B5"); + static constexpr uint32_t US_LETTER_HASH = ConstExprHashingUtils::HashString("US_LETTER"); + static constexpr uint32_t US_LEGAL_HASH = ConstExprHashingUtils::HashString("US_LEGAL"); + static constexpr uint32_t US_TABLOID_LEDGER_HASH = ConstExprHashingUtils::HashString("US_TABLOID_LEDGER"); + static constexpr uint32_t A0_HASH = ConstExprHashingUtils::HashString("A0"); + static constexpr uint32_t A1_HASH = ConstExprHashingUtils::HashString("A1"); + static constexpr uint32_t A2_HASH = ConstExprHashingUtils::HashString("A2"); + static constexpr uint32_t A3_HASH = ConstExprHashingUtils::HashString("A3"); + static constexpr uint32_t A4_HASH = ConstExprHashingUtils::HashString("A4"); + static constexpr uint32_t A5_HASH = ConstExprHashingUtils::HashString("A5"); + static constexpr uint32_t JIS_B4_HASH = ConstExprHashingUtils::HashString("JIS_B4"); + static constexpr uint32_t JIS_B5_HASH = ConstExprHashingUtils::HashString("JIS_B5"); PaperSize GetPaperSizeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == US_LETTER_HASH) { return PaperSize::US_LETTER; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterValueType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterValueType.cpp index 2f44bc30d4f..c24f80d24dc 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterValueType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ParameterValueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParameterValueTypeMapper { - static const int MULTI_VALUED_HASH = HashingUtils::HashString("MULTI_VALUED"); - static const int SINGLE_VALUED_HASH = HashingUtils::HashString("SINGLE_VALUED"); + static constexpr uint32_t MULTI_VALUED_HASH = ConstExprHashingUtils::HashString("MULTI_VALUED"); + static constexpr uint32_t SINGLE_VALUED_HASH = ConstExprHashingUtils::HashString("SINGLE_VALUED"); ParameterValueType GetParameterValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_VALUED_HASH) { return ParameterValueType::MULTI_VALUED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableConditionalFormattingScopeRole.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableConditionalFormattingScopeRole.cpp index e78c49a5c54..03ead86dd29 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableConditionalFormattingScopeRole.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableConditionalFormattingScopeRole.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PivotTableConditionalFormattingScopeRoleMapper { - static const int FIELD_HASH = HashingUtils::HashString("FIELD"); - static const int FIELD_TOTAL_HASH = HashingUtils::HashString("FIELD_TOTAL"); - static const int GRAND_TOTAL_HASH = HashingUtils::HashString("GRAND_TOTAL"); + static constexpr uint32_t FIELD_HASH = ConstExprHashingUtils::HashString("FIELD"); + static constexpr uint32_t FIELD_TOTAL_HASH = ConstExprHashingUtils::HashString("FIELD_TOTAL"); + static constexpr uint32_t GRAND_TOTAL_HASH = ConstExprHashingUtils::HashString("GRAND_TOTAL"); PivotTableConditionalFormattingScopeRole GetPivotTableConditionalFormattingScopeRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIELD_HASH) { return PivotTableConditionalFormattingScopeRole::FIELD; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableFieldCollapseState.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableFieldCollapseState.cpp index cb42c4b82ad..ca9ab53b5ff 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableFieldCollapseState.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableFieldCollapseState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PivotTableFieldCollapseStateMapper { - static const int COLLAPSED_HASH = HashingUtils::HashString("COLLAPSED"); - static const int EXPANDED_HASH = HashingUtils::HashString("EXPANDED"); + static constexpr uint32_t COLLAPSED_HASH = ConstExprHashingUtils::HashString("COLLAPSED"); + static constexpr uint32_t EXPANDED_HASH = ConstExprHashingUtils::HashString("EXPANDED"); PivotTableFieldCollapseState GetPivotTableFieldCollapseStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLLAPSED_HASH) { return PivotTableFieldCollapseState::COLLAPSED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableMetricPlacement.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableMetricPlacement.cpp index 354362ae941..4ea036af9ac 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableMetricPlacement.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableMetricPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PivotTableMetricPlacementMapper { - static const int ROW_HASH = HashingUtils::HashString("ROW"); - static const int COLUMN_HASH = HashingUtils::HashString("COLUMN"); + static constexpr uint32_t ROW_HASH = ConstExprHashingUtils::HashString("ROW"); + static constexpr uint32_t COLUMN_HASH = ConstExprHashingUtils::HashString("COLUMN"); PivotTableMetricPlacement GetPivotTableMetricPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROW_HASH) { return PivotTableMetricPlacement::ROW; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableRowsLayout.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableRowsLayout.cpp index 99892638d7a..0e84a873979 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableRowsLayout.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableRowsLayout.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PivotTableRowsLayoutMapper { - static const int TABULAR_HASH = HashingUtils::HashString("TABULAR"); - static const int HIERARCHY_HASH = HashingUtils::HashString("HIERARCHY"); + static constexpr uint32_t TABULAR_HASH = ConstExprHashingUtils::HashString("TABULAR"); + static constexpr uint32_t HIERARCHY_HASH = ConstExprHashingUtils::HashString("HIERARCHY"); PivotTableRowsLayout GetPivotTableRowsLayoutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABULAR_HASH) { return PivotTableRowsLayout::TABULAR; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableSubtotalLevel.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableSubtotalLevel.cpp index bdb3efcf070..e44ce5eff76 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableSubtotalLevel.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PivotTableSubtotalLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PivotTableSubtotalLevelMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int LAST_HASH = HashingUtils::HashString("LAST"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t LAST_HASH = ConstExprHashingUtils::HashString("LAST"); PivotTableSubtotalLevel GetPivotTableSubtotalLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return PivotTableSubtotalLevel::ALL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PrimaryValueDisplayType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PrimaryValueDisplayType.cpp index bd1b5484b49..d97e7015ce4 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PrimaryValueDisplayType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PrimaryValueDisplayType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PrimaryValueDisplayTypeMapper { - static const int HIDDEN_HASH = HashingUtils::HashString("HIDDEN"); - static const int COMPARISON_HASH = HashingUtils::HashString("COMPARISON"); - static const int ACTUAL_HASH = HashingUtils::HashString("ACTUAL"); + static constexpr uint32_t HIDDEN_HASH = ConstExprHashingUtils::HashString("HIDDEN"); + static constexpr uint32_t COMPARISON_HASH = ConstExprHashingUtils::HashString("COMPARISON"); + static constexpr uint32_t ACTUAL_HASH = ConstExprHashingUtils::HashString("ACTUAL"); PrimaryValueDisplayType GetPrimaryValueDisplayTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIDDEN_HASH) { return PrimaryValueDisplayType::HIDDEN; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyRole.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyRole.cpp index dbd11958d24..5f2a2f86f40 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyRole.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PropertyRoleMapper { - static const int PRIMARY_HASH = HashingUtils::HashString("PRIMARY"); - static const int ID_HASH = HashingUtils::HashString("ID"); + static constexpr uint32_t PRIMARY_HASH = ConstExprHashingUtils::HashString("PRIMARY"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); PropertyRole GetPropertyRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_HASH) { return PropertyRole::PRIMARY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyUsage.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyUsage.cpp index 2c29800f089..c5cb9d89890 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyUsage.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/PropertyUsage.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PropertyUsageMapper { - static const int INHERIT_HASH = HashingUtils::HashString("INHERIT"); - static const int DIMENSION_HASH = HashingUtils::HashString("DIMENSION"); - static const int MEASURE_HASH = HashingUtils::HashString("MEASURE"); + static constexpr uint32_t INHERIT_HASH = ConstExprHashingUtils::HashString("INHERIT"); + static constexpr uint32_t DIMENSION_HASH = ConstExprHashingUtils::HashString("DIMENSION"); + static constexpr uint32_t MEASURE_HASH = ConstExprHashingUtils::HashString("MEASURE"); PropertyUsage GetPropertyUsageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INHERIT_HASH) { return PropertyUsage::INHERIT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartAxesRangeScale.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartAxesRangeScale.cpp index 303cb212052..6bf41c16248 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartAxesRangeScale.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartAxesRangeScale.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RadarChartAxesRangeScaleMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int INDEPENDENT_HASH = HashingUtils::HashString("INDEPENDENT"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t INDEPENDENT_HASH = ConstExprHashingUtils::HashString("INDEPENDENT"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); RadarChartAxesRangeScale GetRadarChartAxesRangeScaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return RadarChartAxesRangeScale::AUTO; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartShape.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartShape.cpp index 8bdd2b1c6da..b31da92377a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartShape.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RadarChartShape.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RadarChartShapeMapper { - static const int CIRCLE_HASH = HashingUtils::HashString("CIRCLE"); - static const int POLYGON_HASH = HashingUtils::HashString("POLYGON"); + static constexpr uint32_t CIRCLE_HASH = ConstExprHashingUtils::HashString("CIRCLE"); + static constexpr uint32_t POLYGON_HASH = ConstExprHashingUtils::HashString("POLYGON"); RadarChartShape GetRadarChartShapeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CIRCLE_HASH) { return RadarChartShape::CIRCLE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelHorizontalPosition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelHorizontalPosition.cpp index a1fdea70594..ea18b506b9f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelHorizontalPosition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelHorizontalPosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReferenceLineLabelHorizontalPositionMapper { - static const int LEFT_HASH = HashingUtils::HashString("LEFT"); - static const int CENTER_HASH = HashingUtils::HashString("CENTER"); - static const int RIGHT_HASH = HashingUtils::HashString("RIGHT"); + static constexpr uint32_t LEFT_HASH = ConstExprHashingUtils::HashString("LEFT"); + static constexpr uint32_t CENTER_HASH = ConstExprHashingUtils::HashString("CENTER"); + static constexpr uint32_t RIGHT_HASH = ConstExprHashingUtils::HashString("RIGHT"); ReferenceLineLabelHorizontalPosition GetReferenceLineLabelHorizontalPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEFT_HASH) { return ReferenceLineLabelHorizontalPosition::LEFT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelVerticalPosition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelVerticalPosition.cpp index 4f7a430988b..6f272df2826 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelVerticalPosition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineLabelVerticalPosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReferenceLineLabelVerticalPositionMapper { - static const int ABOVE_HASH = HashingUtils::HashString("ABOVE"); - static const int BELOW_HASH = HashingUtils::HashString("BELOW"); + static constexpr uint32_t ABOVE_HASH = ConstExprHashingUtils::HashString("ABOVE"); + static constexpr uint32_t BELOW_HASH = ConstExprHashingUtils::HashString("BELOW"); ReferenceLineLabelVerticalPosition GetReferenceLineLabelVerticalPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ABOVE_HASH) { return ReferenceLineLabelVerticalPosition::ABOVE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLinePatternType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLinePatternType.cpp index 5abc2937df7..f528f9a9223 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLinePatternType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLinePatternType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReferenceLinePatternTypeMapper { - static const int SOLID_HASH = HashingUtils::HashString("SOLID"); - static const int DASHED_HASH = HashingUtils::HashString("DASHED"); - static const int DOTTED_HASH = HashingUtils::HashString("DOTTED"); + static constexpr uint32_t SOLID_HASH = ConstExprHashingUtils::HashString("SOLID"); + static constexpr uint32_t DASHED_HASH = ConstExprHashingUtils::HashString("DASHED"); + static constexpr uint32_t DOTTED_HASH = ConstExprHashingUtils::HashString("DOTTED"); ReferenceLinePatternType GetReferenceLinePatternTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOLID_HASH) { return ReferenceLinePatternType::SOLID; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineValueLabelRelativePosition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineValueLabelRelativePosition.cpp index d3ab5378aca..336025978f0 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineValueLabelRelativePosition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ReferenceLineValueLabelRelativePosition.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReferenceLineValueLabelRelativePositionMapper { - static const int BEFORE_CUSTOM_LABEL_HASH = HashingUtils::HashString("BEFORE_CUSTOM_LABEL"); - static const int AFTER_CUSTOM_LABEL_HASH = HashingUtils::HashString("AFTER_CUSTOM_LABEL"); + static constexpr uint32_t BEFORE_CUSTOM_LABEL_HASH = ConstExprHashingUtils::HashString("BEFORE_CUSTOM_LABEL"); + static constexpr uint32_t AFTER_CUSTOM_LABEL_HASH = ConstExprHashingUtils::HashString("AFTER_CUSTOM_LABEL"); ReferenceLineValueLabelRelativePosition GetReferenceLineValueLabelRelativePositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BEFORE_CUSTOM_LABEL_HASH) { return ReferenceLineValueLabelRelativePosition::BEFORE_CUSTOM_LABEL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RefreshInterval.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RefreshInterval.cpp index 1412c06a4c1..bf52b2f47ff 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RefreshInterval.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RefreshInterval.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RefreshIntervalMapper { - static const int MINUTE15_HASH = HashingUtils::HashString("MINUTE15"); - static const int MINUTE30_HASH = HashingUtils::HashString("MINUTE30"); - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); + static constexpr uint32_t MINUTE15_HASH = ConstExprHashingUtils::HashString("MINUTE15"); + static constexpr uint32_t MINUTE30_HASH = ConstExprHashingUtils::HashString("MINUTE30"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); RefreshInterval GetRefreshIntervalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MINUTE15_HASH) { return RefreshInterval::MINUTE15; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeDateType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeDateType.cpp index e1c2d86ba3f..d4d1176e1dd 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeDateType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeDateType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RelativeDateTypeMapper { - static const int PREVIOUS_HASH = HashingUtils::HashString("PREVIOUS"); - static const int THIS_HASH = HashingUtils::HashString("THIS"); - static const int LAST_HASH = HashingUtils::HashString("LAST"); - static const int NOW_HASH = HashingUtils::HashString("NOW"); - static const int NEXT_HASH = HashingUtils::HashString("NEXT"); + static constexpr uint32_t PREVIOUS_HASH = ConstExprHashingUtils::HashString("PREVIOUS"); + static constexpr uint32_t THIS_HASH = ConstExprHashingUtils::HashString("THIS"); + static constexpr uint32_t LAST_HASH = ConstExprHashingUtils::HashString("LAST"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); + static constexpr uint32_t NEXT_HASH = ConstExprHashingUtils::HashString("NEXT"); RelativeDateType GetRelativeDateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREVIOUS_HASH) { return RelativeDateType::PREVIOUS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeFontSize.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeFontSize.cpp index a4a3b67ccbc..7ff3e53c7d9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeFontSize.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RelativeFontSize.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RelativeFontSizeMapper { - static const int EXTRA_SMALL_HASH = HashingUtils::HashString("EXTRA_SMALL"); - static const int SMALL_HASH = HashingUtils::HashString("SMALL"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LARGE_HASH = HashingUtils::HashString("LARGE"); - static const int EXTRA_LARGE_HASH = HashingUtils::HashString("EXTRA_LARGE"); + static constexpr uint32_t EXTRA_SMALL_HASH = ConstExprHashingUtils::HashString("EXTRA_SMALL"); + static constexpr uint32_t SMALL_HASH = ConstExprHashingUtils::HashString("SMALL"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LARGE_HASH = ConstExprHashingUtils::HashString("LARGE"); + static constexpr uint32_t EXTRA_LARGE_HASH = ConstExprHashingUtils::HashString("EXTRA_LARGE"); RelativeFontSize GetRelativeFontSizeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTRA_SMALL_HASH) { return RelativeFontSize::EXTRA_SMALL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ResizeOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ResizeOption.cpp index 7dabc7b9c0a..a407f0feb92 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ResizeOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ResizeOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResizeOptionMapper { - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); - static const int RESPONSIVE_HASH = HashingUtils::HashString("RESPONSIVE"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); + static constexpr uint32_t RESPONSIVE_HASH = ConstExprHashingUtils::HashString("RESPONSIVE"); ResizeOption GetResizeOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIXED_HASH) { return ResizeOption::FIXED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ResourceStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ResourceStatus.cpp index 4fb31d09082..5c5beadfb68 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ResourceStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ResourceStatusMapper { - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int CREATION_SUCCESSFUL_HASH = HashingUtils::HashString("CREATION_SUCCESSFUL"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_SUCCESSFUL_HASH = HashingUtils::HashString("UPDATE_SUCCESSFUL"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t CREATION_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("CREATION_SUCCESSFUL"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("UPDATE_SUCCESSFUL"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ResourceStatus GetResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_IN_PROGRESS_HASH) { return ResourceStatus::CREATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionFormatVersion.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionFormatVersion.cpp index a927218259a..0da005be884 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionFormatVersion.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionFormatVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RowLevelPermissionFormatVersionMapper { - static const int VERSION_1_HASH = HashingUtils::HashString("VERSION_1"); - static const int VERSION_2_HASH = HashingUtils::HashString("VERSION_2"); + static constexpr uint32_t VERSION_1_HASH = ConstExprHashingUtils::HashString("VERSION_1"); + static constexpr uint32_t VERSION_2_HASH = ConstExprHashingUtils::HashString("VERSION_2"); RowLevelPermissionFormatVersion GetRowLevelPermissionFormatVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERSION_1_HASH) { return RowLevelPermissionFormatVersion::VERSION_1; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionPolicy.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionPolicy.cpp index db7cd482f92..4b7c0be085a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionPolicy.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RowLevelPermissionPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RowLevelPermissionPolicyMapper { - static const int GRANT_ACCESS_HASH = HashingUtils::HashString("GRANT_ACCESS"); - static const int DENY_ACCESS_HASH = HashingUtils::HashString("DENY_ACCESS"); + static constexpr uint32_t GRANT_ACCESS_HASH = ConstExprHashingUtils::HashString("GRANT_ACCESS"); + static constexpr uint32_t DENY_ACCESS_HASH = ConstExprHashingUtils::HashString("DENY_ACCESS"); RowLevelPermissionPolicy GetRowLevelPermissionPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GRANT_ACCESS_HASH) { return RowLevelPermissionPolicy::GRANT_ACCESS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SectionPageBreakStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SectionPageBreakStatus.cpp index 697b7473d7b..0285cb04dea 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SectionPageBreakStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SectionPageBreakStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SectionPageBreakStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); SectionPageBreakStatus GetSectionPageBreakStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return SectionPageBreakStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SelectAllValueOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SelectAllValueOptions.cpp index 64ae36715b8..e48f6ce9f1f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SelectAllValueOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SelectAllValueOptions.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SelectAllValueOptionsMapper { - static const int ALL_VALUES_HASH = HashingUtils::HashString("ALL_VALUES"); + static constexpr uint32_t ALL_VALUES_HASH = ConstExprHashingUtils::HashString("ALL_VALUES"); SelectAllValueOptions GetSelectAllValueOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_VALUES_HASH) { return SelectAllValueOptions::ALL_VALUES; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedFieldOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedFieldOptions.cpp index fb515be64a9..4bae11775af 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedFieldOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedFieldOptions.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SelectedFieldOptionsMapper { - static const int ALL_FIELDS_HASH = HashingUtils::HashString("ALL_FIELDS"); + static constexpr uint32_t ALL_FIELDS_HASH = ConstExprHashingUtils::HashString("ALL_FIELDS"); SelectedFieldOptions GetSelectedFieldOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_FIELDS_HASH) { return SelectedFieldOptions::ALL_FIELDS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedTooltipType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedTooltipType.cpp index 5dc722430fa..0c2d0958441 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedTooltipType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SelectedTooltipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SelectedTooltipTypeMapper { - static const int BASIC_HASH = HashingUtils::HashString("BASIC"); - static const int DETAILED_HASH = HashingUtils::HashString("DETAILED"); + static constexpr uint32_t BASIC_HASH = ConstExprHashingUtils::HashString("BASIC"); + static constexpr uint32_t DETAILED_HASH = ConstExprHashingUtils::HashString("DETAILED"); SelectedTooltipType GetSelectedTooltipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BASIC_HASH) { return SelectedTooltipType::BASIC; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SharingModel.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SharingModel.cpp index b195ed863f8..97425272d3d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SharingModel.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SharingModel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SharingModelMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int NAMESPACE_HASH = HashingUtils::HashString("NAMESPACE"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t NAMESPACE_HASH = ConstExprHashingUtils::HashString("NAMESPACE"); SharingModel GetSharingModelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return SharingModel::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetContentType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetContentType.cpp index 65dea0f8b7e..542bed6ef2d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetContentType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetContentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SheetContentTypeMapper { - static const int PAGINATED_HASH = HashingUtils::HashString("PAGINATED"); - static const int INTERACTIVE_HASH = HashingUtils::HashString("INTERACTIVE"); + static constexpr uint32_t PAGINATED_HASH = ConstExprHashingUtils::HashString("PAGINATED"); + static constexpr uint32_t INTERACTIVE_HASH = ConstExprHashingUtils::HashString("INTERACTIVE"); SheetContentType GetSheetContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PAGINATED_HASH) { return SheetContentType::PAGINATED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlDateTimePickerType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlDateTimePickerType.cpp index 79cc5c1184f..83576291238 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlDateTimePickerType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlDateTimePickerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SheetControlDateTimePickerTypeMapper { - static const int SINGLE_VALUED_HASH = HashingUtils::HashString("SINGLE_VALUED"); - static const int DATE_RANGE_HASH = HashingUtils::HashString("DATE_RANGE"); + static constexpr uint32_t SINGLE_VALUED_HASH = ConstExprHashingUtils::HashString("SINGLE_VALUED"); + static constexpr uint32_t DATE_RANGE_HASH = ConstExprHashingUtils::HashString("DATE_RANGE"); SheetControlDateTimePickerType GetSheetControlDateTimePickerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_VALUED_HASH) { return SheetControlDateTimePickerType::SINGLE_VALUED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlListType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlListType.cpp index e3db7d10611..81d10e2d861 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlListType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlListType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SheetControlListTypeMapper { - static const int MULTI_SELECT_HASH = HashingUtils::HashString("MULTI_SELECT"); - static const int SINGLE_SELECT_HASH = HashingUtils::HashString("SINGLE_SELECT"); + static constexpr uint32_t MULTI_SELECT_HASH = ConstExprHashingUtils::HashString("MULTI_SELECT"); + static constexpr uint32_t SINGLE_SELECT_HASH = ConstExprHashingUtils::HashString("SINGLE_SELECT"); SheetControlListType GetSheetControlListTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTI_SELECT_HASH) { return SheetControlListType::MULTI_SELECT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlSliderType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlSliderType.cpp index c4fb8dd79ec..8d70f810b76 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlSliderType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SheetControlSliderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SheetControlSliderTypeMapper { - static const int SINGLE_POINT_HASH = HashingUtils::HashString("SINGLE_POINT"); - static const int RANGE_HASH = HashingUtils::HashString("RANGE"); + static constexpr uint32_t SINGLE_POINT_HASH = ConstExprHashingUtils::HashString("SINGLE_POINT"); + static constexpr uint32_t RANGE_HASH = ConstExprHashingUtils::HashString("RANGE"); SheetControlSliderType GetSheetControlSliderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_POINT_HASH) { return SheetControlSliderType::SINGLE_POINT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleAttributeAggregationFunction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleAttributeAggregationFunction.cpp index fbce6d6f7c9..be9ecef090b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleAttributeAggregationFunction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleAttributeAggregationFunction.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SimpleAttributeAggregationFunctionMapper { - static const int UNIQUE_VALUE_HASH = HashingUtils::HashString("UNIQUE_VALUE"); + static constexpr uint32_t UNIQUE_VALUE_HASH = ConstExprHashingUtils::HashString("UNIQUE_VALUE"); SimpleAttributeAggregationFunction GetSimpleAttributeAggregationFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNIQUE_VALUE_HASH) { return SimpleAttributeAggregationFunction::UNIQUE_VALUE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleNumericalAggregationFunction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleNumericalAggregationFunction.cpp index b8fc6ba70db..30f368adc06 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleNumericalAggregationFunction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SimpleNumericalAggregationFunction.cpp @@ -20,22 +20,22 @@ namespace Aws namespace SimpleNumericalAggregationFunctionMapper { - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int DISTINCT_COUNT_HASH = HashingUtils::HashString("DISTINCT_COUNT"); - static const int VAR_HASH = HashingUtils::HashString("VAR"); - static const int VARP_HASH = HashingUtils::HashString("VARP"); - static const int STDEV_HASH = HashingUtils::HashString("STDEV"); - static const int STDEVP_HASH = HashingUtils::HashString("STDEVP"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t DISTINCT_COUNT_HASH = ConstExprHashingUtils::HashString("DISTINCT_COUNT"); + static constexpr uint32_t VAR_HASH = ConstExprHashingUtils::HashString("VAR"); + static constexpr uint32_t VARP_HASH = ConstExprHashingUtils::HashString("VARP"); + static constexpr uint32_t STDEV_HASH = ConstExprHashingUtils::HashString("STDEV"); + static constexpr uint32_t STDEVP_HASH = ConstExprHashingUtils::HashString("STDEVP"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); SimpleNumericalAggregationFunction GetSimpleNumericalAggregationFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_HASH) { return SimpleNumericalAggregationFunction::SUM; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisPlacement.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisPlacement.cpp index 3bd7d937cb0..9ee3816eee5 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisPlacement.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisPlacement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmallMultiplesAxisPlacementMapper { - static const int OUTSIDE_HASH = HashingUtils::HashString("OUTSIDE"); - static const int INSIDE_HASH = HashingUtils::HashString("INSIDE"); + static constexpr uint32_t OUTSIDE_HASH = ConstExprHashingUtils::HashString("OUTSIDE"); + static constexpr uint32_t INSIDE_HASH = ConstExprHashingUtils::HashString("INSIDE"); SmallMultiplesAxisPlacement GetSmallMultiplesAxisPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OUTSIDE_HASH) { return SmallMultiplesAxisPlacement::OUTSIDE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisScale.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisScale.cpp index 75f639c6e3a..f40ed69ece9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisScale.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SmallMultiplesAxisScale.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SmallMultiplesAxisScaleMapper { - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); - static const int INDEPENDENT_HASH = HashingUtils::HashString("INDEPENDENT"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); + static constexpr uint32_t INDEPENDENT_HASH = ConstExprHashingUtils::HashString("INDEPENDENT"); SmallMultiplesAxisScale GetSmallMultiplesAxisScaleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHARED_HASH) { return SmallMultiplesAxisScale::SHARED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileFormatType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileFormatType.cpp index 54d2318b049..f71456e4f0a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileFormatType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileFormatType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SnapshotFileFormatTypeMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int PDF_HASH = HashingUtils::HashString("PDF"); - static const int EXCEL_HASH = HashingUtils::HashString("EXCEL"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t PDF_HASH = ConstExprHashingUtils::HashString("PDF"); + static constexpr uint32_t EXCEL_HASH = ConstExprHashingUtils::HashString("EXCEL"); SnapshotFileFormatType GetSnapshotFileFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return SnapshotFileFormatType::CSV; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileSheetSelectionScope.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileSheetSelectionScope.cpp index a79acf0a9ef..a41b4881858 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileSheetSelectionScope.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotFileSheetSelectionScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SnapshotFileSheetSelectionScopeMapper { - static const int ALL_VISUALS_HASH = HashingUtils::HashString("ALL_VISUALS"); - static const int SELECTED_VISUALS_HASH = HashingUtils::HashString("SELECTED_VISUALS"); + static constexpr uint32_t ALL_VISUALS_HASH = ConstExprHashingUtils::HashString("ALL_VISUALS"); + static constexpr uint32_t SELECTED_VISUALS_HASH = ConstExprHashingUtils::HashString("SELECTED_VISUALS"); SnapshotFileSheetSelectionScope GetSnapshotFileSheetSelectionScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_VISUALS_HASH) { return SnapshotFileSheetSelectionScope::ALL_VISUALS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotJobStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotJobStatus.cpp index 712e3ef80e8..815a0273c5b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SnapshotJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SnapshotJobStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); SnapshotJobStatus GetSnapshotJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return SnapshotJobStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SortDirection.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SortDirection.cpp index 298f68846e6..66c16387f15 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SortDirection.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SortDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortDirectionMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortDirection GetSortDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortDirection::ASC; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SpecialValue.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SpecialValue.cpp index 3d1da4b617a..d6e3e08cfed 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/SpecialValue.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SpecialValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SpecialValueMapper { - static const int EMPTY_HASH = HashingUtils::HashString("EMPTY"); - static const int NULL__HASH = HashingUtils::HashString("NULL"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t EMPTY_HASH = ConstExprHashingUtils::HashString("EMPTY"); + static constexpr uint32_t NULL__HASH = ConstExprHashingUtils::HashString("NULL"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); SpecialValue GetSpecialValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMPTY_HASH) { return SpecialValue::EMPTY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/Status.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/Status.cpp index 9b5c54c0d44..37d1133a61a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/Status.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return Status::ENABLED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/StyledCellType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/StyledCellType.cpp index b525e651b7c..3860cc9406a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/StyledCellType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/StyledCellType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StyledCellTypeMapper { - static const int TOTAL_HASH = HashingUtils::HashString("TOTAL"); - static const int METRIC_HEADER_HASH = HashingUtils::HashString("METRIC_HEADER"); - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); + static constexpr uint32_t TOTAL_HASH = ConstExprHashingUtils::HashString("TOTAL"); + static constexpr uint32_t METRIC_HEADER_HASH = ConstExprHashingUtils::HashString("METRIC_HEADER"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); StyledCellType GetStyledCellTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOTAL_HASH) { return StyledCellType::TOTAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TableBorderStyle.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TableBorderStyle.cpp index 8fe695001f2..f3b2f741677 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TableBorderStyle.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TableBorderStyle.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TableBorderStyleMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SOLID_HASH = HashingUtils::HashString("SOLID"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SOLID_HASH = ConstExprHashingUtils::HashString("SOLID"); TableBorderStyle GetTableBorderStyleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TableBorderStyle::NONE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TableCellImageScalingConfiguration.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TableCellImageScalingConfiguration.cpp index a174e1a5847..a27e3f98c44 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TableCellImageScalingConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TableCellImageScalingConfiguration.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TableCellImageScalingConfigurationMapper { - static const int FIT_TO_CELL_HEIGHT_HASH = HashingUtils::HashString("FIT_TO_CELL_HEIGHT"); - static const int FIT_TO_CELL_WIDTH_HASH = HashingUtils::HashString("FIT_TO_CELL_WIDTH"); - static const int DO_NOT_SCALE_HASH = HashingUtils::HashString("DO_NOT_SCALE"); + static constexpr uint32_t FIT_TO_CELL_HEIGHT_HASH = ConstExprHashingUtils::HashString("FIT_TO_CELL_HEIGHT"); + static constexpr uint32_t FIT_TO_CELL_WIDTH_HASH = ConstExprHashingUtils::HashString("FIT_TO_CELL_WIDTH"); + static constexpr uint32_t DO_NOT_SCALE_HASH = ConstExprHashingUtils::HashString("DO_NOT_SCALE"); TableCellImageScalingConfiguration GetTableCellImageScalingConfigurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIT_TO_CELL_HEIGHT_HASH) { return TableCellImageScalingConfiguration::FIT_TO_CELL_HEIGHT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TableFieldIconSetType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TableFieldIconSetType.cpp index 8c24461ab91..b8790eed435 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TableFieldIconSetType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TableFieldIconSetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TableFieldIconSetTypeMapper { - static const int LINK_HASH = HashingUtils::HashString("LINK"); + static constexpr uint32_t LINK_HASH = ConstExprHashingUtils::HashString("LINK"); TableFieldIconSetType GetTableFieldIconSetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINK_HASH) { return TableFieldIconSetType::LINK; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TableOrientation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TableOrientation.cpp index 09a3f0ee39a..d6e1c2555f9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TableOrientation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TableOrientation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TableOrientationMapper { - static const int VERTICAL_HASH = HashingUtils::HashString("VERTICAL"); - static const int HORIZONTAL_HASH = HashingUtils::HashString("HORIZONTAL"); + static constexpr uint32_t VERTICAL_HASH = ConstExprHashingUtils::HashString("VERTICAL"); + static constexpr uint32_t HORIZONTAL_HASH = ConstExprHashingUtils::HashString("HORIZONTAL"); TableOrientation GetTableOrientationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VERTICAL_HASH) { return TableOrientation::VERTICAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsPlacement.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsPlacement.cpp index 3955c41e2ce..3331a3b5eea 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsPlacement.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsPlacement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TableTotalsPlacementMapper { - static const int START_HASH = HashingUtils::HashString("START"); - static const int END_HASH = HashingUtils::HashString("END"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t START_HASH = ConstExprHashingUtils::HashString("START"); + static constexpr uint32_t END_HASH = ConstExprHashingUtils::HashString("END"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); TableTotalsPlacement GetTableTotalsPlacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_HASH) { return TableTotalsPlacement::START; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsScrollStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsScrollStatus.cpp index 2e556a41249..1c7b87b4ea9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsScrollStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TableTotalsScrollStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TableTotalsScrollStatusMapper { - static const int PINNED_HASH = HashingUtils::HashString("PINNED"); - static const int SCROLLED_HASH = HashingUtils::HashString("SCROLLED"); + static constexpr uint32_t PINNED_HASH = ConstExprHashingUtils::HashString("PINNED"); + static constexpr uint32_t SCROLLED_HASH = ConstExprHashingUtils::HashString("SCROLLED"); TableTotalsScrollStatus GetTableTotalsScrollStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PINNED_HASH) { return TableTotalsScrollStatus::PINNED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TargetVisualOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TargetVisualOptions.cpp index bf7346b6dc5..e78ede7b125 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TargetVisualOptions.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TargetVisualOptions.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetVisualOptionsMapper { - static const int ALL_VISUALS_HASH = HashingUtils::HashString("ALL_VISUALS"); + static constexpr uint32_t ALL_VISUALS_HASH = ConstExprHashingUtils::HashString("ALL_VISUALS"); TargetVisualOptions GetTargetVisualOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_VISUALS_HASH) { return TargetVisualOptions::ALL_VISUALS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateErrorType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateErrorType.cpp index aeb2fd6af86..c44de8617ef 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateErrorType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateErrorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TemplateErrorTypeMapper { - static const int SOURCE_NOT_FOUND_HASH = HashingUtils::HashString("SOURCE_NOT_FOUND"); - static const int DATA_SET_NOT_FOUND_HASH = HashingUtils::HashString("DATA_SET_NOT_FOUND"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t SOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SOURCE_NOT_FOUND"); + static constexpr uint32_t DATA_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DATA_SET_NOT_FOUND"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); TemplateErrorType GetTemplateErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE_NOT_FOUND_HASH) { return TemplateErrorType::SOURCE_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TextQualifier.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TextQualifier.cpp index eb745e896bc..6811f264548 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TextQualifier.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TextQualifier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TextQualifierMapper { - static const int DOUBLE_QUOTE_HASH = HashingUtils::HashString("DOUBLE_QUOTE"); - static const int SINGLE_QUOTE_HASH = HashingUtils::HashString("SINGLE_QUOTE"); + static constexpr uint32_t DOUBLE_QUOTE_HASH = ConstExprHashingUtils::HashString("DOUBLE_QUOTE"); + static constexpr uint32_t SINGLE_QUOTE_HASH = ConstExprHashingUtils::HashString("SINGLE_QUOTE"); TextQualifier GetTextQualifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOUBLE_QUOTE_HASH) { return TextQualifier::DOUBLE_QUOTE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TextWrap.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TextWrap.cpp index 48c0c1e518e..a5979a1aa1c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TextWrap.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TextWrap.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TextWrapMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int WRAP_HASH = HashingUtils::HashString("WRAP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t WRAP_HASH = ConstExprHashingUtils::HashString("WRAP"); TextWrap GetTextWrapForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TextWrap::NONE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeErrorType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeErrorType.cpp index e7f46e6e616..03ce8c2a78a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeErrorType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeErrorType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ThemeErrorTypeMapper { - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); ThemeErrorType GetThemeErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_FAILURE_HASH) { return ThemeErrorType::INTERNAL_FAILURE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeType.cpp index 3f52167e672..e0d43267f9d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ThemeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ThemeTypeMapper { - static const int QUICKSIGHT_HASH = HashingUtils::HashString("QUICKSIGHT"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t QUICKSIGHT_HASH = ConstExprHashingUtils::HashString("QUICKSIGHT"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ThemeType GetThemeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUICKSIGHT_HASH) { return ThemeType::QUICKSIGHT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TimeGranularity.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TimeGranularity.cpp index 2c70005d8e5..4f1ffde1687 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TimeGranularity.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TimeGranularity.cpp @@ -20,20 +20,20 @@ namespace Aws namespace TimeGranularityMapper { - static const int YEAR_HASH = HashingUtils::HashString("YEAR"); - static const int QUARTER_HASH = HashingUtils::HashString("QUARTER"); - static const int MONTH_HASH = HashingUtils::HashString("MONTH"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int MINUTE_HASH = HashingUtils::HashString("MINUTE"); - static const int SECOND_HASH = HashingUtils::HashString("SECOND"); - static const int MILLISECOND_HASH = HashingUtils::HashString("MILLISECOND"); + static constexpr uint32_t YEAR_HASH = ConstExprHashingUtils::HashString("YEAR"); + static constexpr uint32_t QUARTER_HASH = ConstExprHashingUtils::HashString("QUARTER"); + static constexpr uint32_t MONTH_HASH = ConstExprHashingUtils::HashString("MONTH"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t MINUTE_HASH = ConstExprHashingUtils::HashString("MINUTE"); + static constexpr uint32_t SECOND_HASH = ConstExprHashingUtils::HashString("SECOND"); + static constexpr uint32_t MILLISECOND_HASH = ConstExprHashingUtils::HashString("MILLISECOND"); TimeGranularity GetTimeGranularityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YEAR_HASH) { return TimeGranularity::YEAR; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TooltipTitleType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TooltipTitleType.cpp index e6630a42cf5..3cccace72a4 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TooltipTitleType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TooltipTitleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TooltipTitleTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int PRIMARY_VALUE_HASH = HashingUtils::HashString("PRIMARY_VALUE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t PRIMARY_VALUE_HASH = ConstExprHashingUtils::HashString("PRIMARY_VALUE"); TooltipTitleType GetTooltipTitleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TooltipTitleType::NONE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomComputationType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomComputationType.cpp index 23c87107f07..ac122d9201c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomComputationType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomComputationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TopBottomComputationTypeMapper { - static const int TOP_HASH = HashingUtils::HashString("TOP"); - static const int BOTTOM_HASH = HashingUtils::HashString("BOTTOM"); + static constexpr uint32_t TOP_HASH = ConstExprHashingUtils::HashString("TOP"); + static constexpr uint32_t BOTTOM_HASH = ConstExprHashingUtils::HashString("BOTTOM"); TopBottomComputationType GetTopBottomComputationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOP_HASH) { return TopBottomComputationType::TOP; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomSortOrder.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomSortOrder.cpp index 9a2fbec2491..9aedf7d9de8 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TopBottomSortOrderMapper { - static const int PERCENT_DIFFERENCE_HASH = HashingUtils::HashString("PERCENT_DIFFERENCE"); - static const int ABSOLUTE_DIFFERENCE_HASH = HashingUtils::HashString("ABSOLUTE_DIFFERENCE"); + static constexpr uint32_t PERCENT_DIFFERENCE_HASH = ConstExprHashingUtils::HashString("PERCENT_DIFFERENCE"); + static constexpr uint32_t ABSOLUTE_DIFFERENCE_HASH = ConstExprHashingUtils::HashString("ABSOLUTE_DIFFERENCE"); TopBottomSortOrder GetTopBottomSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERCENT_DIFFERENCE_HASH) { return TopBottomSortOrder::PERCENT_DIFFERENCE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicNumericSeparatorSymbol.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicNumericSeparatorSymbol.cpp index 3030597654b..0ce0c66d1a1 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicNumericSeparatorSymbol.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicNumericSeparatorSymbol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TopicNumericSeparatorSymbolMapper { - static const int COMMA_HASH = HashingUtils::HashString("COMMA"); - static const int DOT_HASH = HashingUtils::HashString("DOT"); + static constexpr uint32_t COMMA_HASH = ConstExprHashingUtils::HashString("COMMA"); + static constexpr uint32_t DOT_HASH = ConstExprHashingUtils::HashString("DOT"); TopicNumericSeparatorSymbol GetTopicNumericSeparatorSymbolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMA_HASH) { return TopicNumericSeparatorSymbol::COMMA; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRefreshStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRefreshStatus.cpp index 659756d3cdc..82c07ac7f9b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRefreshStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRefreshStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TopicRefreshStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); TopicRefreshStatus GetTopicRefreshStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return TopicRefreshStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRelativeDateFilterFunction.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRelativeDateFilterFunction.cpp index cf84340950b..f36e6e194b7 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRelativeDateFilterFunction.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicRelativeDateFilterFunction.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TopicRelativeDateFilterFunctionMapper { - static const int PREVIOUS_HASH = HashingUtils::HashString("PREVIOUS"); - static const int THIS_HASH = HashingUtils::HashString("THIS"); - static const int LAST_HASH = HashingUtils::HashString("LAST"); - static const int NEXT_HASH = HashingUtils::HashString("NEXT"); - static const int NOW_HASH = HashingUtils::HashString("NOW"); + static constexpr uint32_t PREVIOUS_HASH = ConstExprHashingUtils::HashString("PREVIOUS"); + static constexpr uint32_t THIS_HASH = ConstExprHashingUtils::HashString("THIS"); + static constexpr uint32_t LAST_HASH = ConstExprHashingUtils::HashString("LAST"); + static constexpr uint32_t NEXT_HASH = ConstExprHashingUtils::HashString("NEXT"); + static constexpr uint32_t NOW_HASH = ConstExprHashingUtils::HashString("NOW"); TopicRelativeDateFilterFunction GetTopicRelativeDateFilterFunctionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREVIOUS_HASH) { return TopicRelativeDateFilterFunction::PREVIOUS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicScheduleType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicScheduleType.cpp index 0b560f14212..bd0b4945c15 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicScheduleType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicScheduleType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TopicScheduleTypeMapper { - static const int HOURLY_HASH = HashingUtils::HashString("HOURLY"); - static const int DAILY_HASH = HashingUtils::HashString("DAILY"); - static const int WEEKLY_HASH = HashingUtils::HashString("WEEKLY"); - static const int MONTHLY_HASH = HashingUtils::HashString("MONTHLY"); + static constexpr uint32_t HOURLY_HASH = ConstExprHashingUtils::HashString("HOURLY"); + static constexpr uint32_t DAILY_HASH = ConstExprHashingUtils::HashString("DAILY"); + static constexpr uint32_t WEEKLY_HASH = ConstExprHashingUtils::HashString("WEEKLY"); + static constexpr uint32_t MONTHLY_HASH = ConstExprHashingUtils::HashString("MONTHLY"); TopicScheduleType GetTopicScheduleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HOURLY_HASH) { return TopicScheduleType::HOURLY; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicTimeGranularity.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicTimeGranularity.cpp index 3310b973b23..f980f180e73 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TopicTimeGranularity.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TopicTimeGranularity.cpp @@ -20,19 +20,19 @@ namespace Aws namespace TopicTimeGranularityMapper { - static const int SECOND_HASH = HashingUtils::HashString("SECOND"); - static const int MINUTE_HASH = HashingUtils::HashString("MINUTE"); - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); - static const int MONTH_HASH = HashingUtils::HashString("MONTH"); - static const int QUARTER_HASH = HashingUtils::HashString("QUARTER"); - static const int YEAR_HASH = HashingUtils::HashString("YEAR"); + static constexpr uint32_t SECOND_HASH = ConstExprHashingUtils::HashString("SECOND"); + static constexpr uint32_t MINUTE_HASH = ConstExprHashingUtils::HashString("MINUTE"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); + static constexpr uint32_t MONTH_HASH = ConstExprHashingUtils::HashString("MONTH"); + static constexpr uint32_t QUARTER_HASH = ConstExprHashingUtils::HashString("QUARTER"); + static constexpr uint32_t YEAR_HASH = ConstExprHashingUtils::HashString("YEAR"); TopicTimeGranularity GetTopicTimeGranularityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECOND_HASH) { return TopicTimeGranularity::SECOND; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/URLTargetConfiguration.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/URLTargetConfiguration.cpp index d5c145b82fe..940c638e572 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/URLTargetConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/URLTargetConfiguration.cpp @@ -20,14 +20,14 @@ namespace Aws namespace URLTargetConfigurationMapper { - static const int NEW_TAB_HASH = HashingUtils::HashString("NEW_TAB"); - static const int NEW_WINDOW_HASH = HashingUtils::HashString("NEW_WINDOW"); - static const int SAME_TAB_HASH = HashingUtils::HashString("SAME_TAB"); + static constexpr uint32_t NEW_TAB_HASH = ConstExprHashingUtils::HashString("NEW_TAB"); + static constexpr uint32_t NEW_WINDOW_HASH = ConstExprHashingUtils::HashString("NEW_WINDOW"); + static constexpr uint32_t SAME_TAB_HASH = ConstExprHashingUtils::HashString("SAME_TAB"); URLTargetConfiguration GetURLTargetConfigurationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW_TAB_HASH) { return URLTargetConfiguration::NEW_TAB; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/UndefinedSpecifiedValueType.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/UndefinedSpecifiedValueType.cpp index f0161767b92..db45d4732cc 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/UndefinedSpecifiedValueType.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/UndefinedSpecifiedValueType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UndefinedSpecifiedValueTypeMapper { - static const int LEAST_HASH = HashingUtils::HashString("LEAST"); - static const int MOST_HASH = HashingUtils::HashString("MOST"); + static constexpr uint32_t LEAST_HASH = ConstExprHashingUtils::HashString("LEAST"); + static constexpr uint32_t MOST_HASH = ConstExprHashingUtils::HashString("MOST"); UndefinedSpecifiedValueType GetUndefinedSpecifiedValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEAST_HASH) { return UndefinedSpecifiedValueType::LEAST; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/UserRole.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/UserRole.cpp index d0f5ba48fa9..febd156cc94 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/UserRole.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/UserRole.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UserRoleMapper { - static const int ADMIN_HASH = HashingUtils::HashString("ADMIN"); - static const int AUTHOR_HASH = HashingUtils::HashString("AUTHOR"); - static const int READER_HASH = HashingUtils::HashString("READER"); - static const int RESTRICTED_AUTHOR_HASH = HashingUtils::HashString("RESTRICTED_AUTHOR"); - static const int RESTRICTED_READER_HASH = HashingUtils::HashString("RESTRICTED_READER"); + static constexpr uint32_t ADMIN_HASH = ConstExprHashingUtils::HashString("ADMIN"); + static constexpr uint32_t AUTHOR_HASH = ConstExprHashingUtils::HashString("AUTHOR"); + static constexpr uint32_t READER_HASH = ConstExprHashingUtils::HashString("READER"); + static constexpr uint32_t RESTRICTED_AUTHOR_HASH = ConstExprHashingUtils::HashString("RESTRICTED_AUTHOR"); + static constexpr uint32_t RESTRICTED_READER_HASH = ConstExprHashingUtils::HashString("RESTRICTED_READER"); UserRole GetUserRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADMIN_HASH) { return UserRole::ADMIN; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionAvailabilityStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionAvailabilityStatus.cpp index 12bfe300e0f..a87be1e1446 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionAvailabilityStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionAvailabilityStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VPCConnectionAvailabilityStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); - static const int PARTIALLY_AVAILABLE_HASH = HashingUtils::HashString("PARTIALLY_AVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t PARTIALLY_AVAILABLE_HASH = ConstExprHashingUtils::HashString("PARTIALLY_AVAILABLE"); VPCConnectionAvailabilityStatus GetVPCConnectionAvailabilityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return VPCConnectionAvailabilityStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionResourceStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionResourceStatus.cpp index e3f6f38c3ca..e316a3e6bb1 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/VPCConnectionResourceStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace VPCConnectionResourceStatusMapper { - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int CREATION_SUCCESSFUL_HASH = HashingUtils::HashString("CREATION_SUCCESSFUL"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_SUCCESSFUL_HASH = HashingUtils::HashString("UPDATE_SUCCESSFUL"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETION_IN_PROGRESS_HASH = HashingUtils::HashString("DELETION_IN_PROGRESS"); - static const int DELETION_FAILED_HASH = HashingUtils::HashString("DELETION_FAILED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t CREATION_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("CREATION_SUCCESSFUL"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("UPDATE_SUCCESSFUL"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETION_IN_PROGRESS"); + static constexpr uint32_t DELETION_FAILED_HASH = ConstExprHashingUtils::HashString("DELETION_FAILED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VPCConnectionResourceStatus GetVPCConnectionResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_IN_PROGRESS_HASH) { return VPCConnectionResourceStatus::CREATION_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ValidationStrategyMode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ValidationStrategyMode.cpp index c31f9b93510..2e87ace8af8 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ValidationStrategyMode.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ValidationStrategyMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationStrategyModeMapper { - static const int STRICT_HASH = HashingUtils::HashString("STRICT"); - static const int LENIENT_HASH = HashingUtils::HashString("LENIENT"); + static constexpr uint32_t STRICT_HASH = ConstExprHashingUtils::HashString("STRICT"); + static constexpr uint32_t LENIENT_HASH = ConstExprHashingUtils::HashString("LENIENT"); ValidationStrategyMode GetValidationStrategyModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRICT_HASH) { return ValidationStrategyMode::STRICT; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/ValueWhenUnsetOption.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/ValueWhenUnsetOption.cpp index 7a45f918a5e..aa91a2297cb 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/ValueWhenUnsetOption.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/ValueWhenUnsetOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValueWhenUnsetOptionMapper { - static const int RECOMMENDED_VALUE_HASH = HashingUtils::HashString("RECOMMENDED_VALUE"); - static const int NULL__HASH = HashingUtils::HashString("NULL"); + static constexpr uint32_t RECOMMENDED_VALUE_HASH = ConstExprHashingUtils::HashString("RECOMMENDED_VALUE"); + static constexpr uint32_t NULL__HASH = ConstExprHashingUtils::HashString("NULL"); ValueWhenUnsetOption GetValueWhenUnsetOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECOMMENDED_VALUE_HASH) { return ValueWhenUnsetOption::RECOMMENDED_VALUE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/VerticalTextAlignment.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/VerticalTextAlignment.cpp index 54873c9da09..5fc58cc3b3c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/VerticalTextAlignment.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/VerticalTextAlignment.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VerticalTextAlignmentMapper { - static const int TOP_HASH = HashingUtils::HashString("TOP"); - static const int MIDDLE_HASH = HashingUtils::HashString("MIDDLE"); - static const int BOTTOM_HASH = HashingUtils::HashString("BOTTOM"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static constexpr uint32_t TOP_HASH = ConstExprHashingUtils::HashString("TOP"); + static constexpr uint32_t MIDDLE_HASH = ConstExprHashingUtils::HashString("MIDDLE"); + static constexpr uint32_t BOTTOM_HASH = ConstExprHashingUtils::HashString("BOTTOM"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); VerticalTextAlignment GetVerticalTextAlignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOP_HASH) { return VerticalTextAlignment::TOP; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/Visibility.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/Visibility.cpp index c7583a47fee..9726719d6ed 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/Visibility.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/Visibility.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VisibilityMapper { - static const int HIDDEN_HASH = HashingUtils::HashString("HIDDEN"); - static const int VISIBLE_HASH = HashingUtils::HashString("VISIBLE"); + static constexpr uint32_t HIDDEN_HASH = ConstExprHashingUtils::HashString("HIDDEN"); + static constexpr uint32_t VISIBLE_HASH = ConstExprHashingUtils::HashString("VISIBLE"); Visibility GetVisibilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIDDEN_HASH) { return Visibility::HIDDEN; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/VisualCustomActionTrigger.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/VisualCustomActionTrigger.cpp index 26ddb53b73d..c1c7b214d58 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/VisualCustomActionTrigger.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/VisualCustomActionTrigger.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VisualCustomActionTriggerMapper { - static const int DATA_POINT_CLICK_HASH = HashingUtils::HashString("DATA_POINT_CLICK"); - static const int DATA_POINT_MENU_HASH = HashingUtils::HashString("DATA_POINT_MENU"); + static constexpr uint32_t DATA_POINT_CLICK_HASH = ConstExprHashingUtils::HashString("DATA_POINT_CLICK"); + static constexpr uint32_t DATA_POINT_MENU_HASH = ConstExprHashingUtils::HashString("DATA_POINT_MENU"); VisualCustomActionTrigger GetVisualCustomActionTriggerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATA_POINT_CLICK_HASH) { return VisualCustomActionTrigger::DATA_POINT_CLICK; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/WidgetStatus.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/WidgetStatus.cpp index 35b3331b404..97f76222f5b 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/WidgetStatus.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/WidgetStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WidgetStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); WidgetStatus GetWidgetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return WidgetStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudCloudLayout.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudCloudLayout.cpp index 6dd422c13a5..f8c7b10b91c 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudCloudLayout.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudCloudLayout.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WordCloudCloudLayoutMapper { - static const int FLUID_HASH = HashingUtils::HashString("FLUID"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t FLUID_HASH = ConstExprHashingUtils::HashString("FLUID"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); WordCloudCloudLayout GetWordCloudCloudLayoutForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FLUID_HASH) { return WordCloudCloudLayout::FLUID; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordCasing.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordCasing.cpp index 2159bd089f7..c9b6b25ffd7 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordCasing.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordCasing.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WordCloudWordCasingMapper { - static const int LOWER_CASE_HASH = HashingUtils::HashString("LOWER_CASE"); - static const int EXISTING_CASE_HASH = HashingUtils::HashString("EXISTING_CASE"); + static constexpr uint32_t LOWER_CASE_HASH = ConstExprHashingUtils::HashString("LOWER_CASE"); + static constexpr uint32_t EXISTING_CASE_HASH = ConstExprHashingUtils::HashString("EXISTING_CASE"); WordCloudWordCasing GetWordCloudWordCasingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOWER_CASE_HASH) { return WordCloudWordCasing::LOWER_CASE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordOrientation.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordOrientation.cpp index 955766e8878..ba6cc8b9776 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordOrientation.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordOrientation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WordCloudWordOrientationMapper { - static const int HORIZONTAL_HASH = HashingUtils::HashString("HORIZONTAL"); - static const int HORIZONTAL_AND_VERTICAL_HASH = HashingUtils::HashString("HORIZONTAL_AND_VERTICAL"); + static constexpr uint32_t HORIZONTAL_HASH = ConstExprHashingUtils::HashString("HORIZONTAL"); + static constexpr uint32_t HORIZONTAL_AND_VERTICAL_HASH = ConstExprHashingUtils::HashString("HORIZONTAL_AND_VERTICAL"); WordCloudWordOrientation GetWordCloudWordOrientationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HORIZONTAL_HASH) { return WordCloudWordOrientation::HORIZONTAL; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordPadding.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordPadding.cpp index 35f0ac31f24..b48f2736684 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordPadding.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordPadding.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WordCloudWordPaddingMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SMALL_HASH = HashingUtils::HashString("SMALL"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LARGE_HASH = HashingUtils::HashString("LARGE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SMALL_HASH = ConstExprHashingUtils::HashString("SMALL"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LARGE_HASH = ConstExprHashingUtils::HashString("LARGE"); WordCloudWordPadding GetWordCloudWordPaddingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return WordCloudWordPadding::NONE; diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordScaling.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordScaling.cpp index 4f76a9fa7c7..32896bbb784 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordScaling.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/WordCloudWordScaling.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WordCloudWordScalingMapper { - static const int EMPHASIZE_HASH = HashingUtils::HashString("EMPHASIZE"); - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); + static constexpr uint32_t EMPHASIZE_HASH = ConstExprHashingUtils::HashString("EMPHASIZE"); + static constexpr uint32_t NORMAL_HASH = ConstExprHashingUtils::HashString("NORMAL"); WordCloudWordScaling GetWordCloudWordScalingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMPHASIZE_HASH) { return WordCloudWordScaling::EMPHASIZE; diff --git a/generated/src/aws-cpp-sdk-ram/source/RAMErrors.cpp b/generated/src/aws-cpp-sdk-ram/source/RAMErrors.cpp index d638fd88b18..9caeff15b43 100644 --- a/generated/src/aws-cpp-sdk-ram/source/RAMErrors.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/RAMErrors.cpp @@ -18,37 +18,37 @@ namespace RAM namespace RAMErrorMapper { -static const int RESOURCE_SHARE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceShareLimitExceededException"); -static const int RESOURCE_ARN_NOT_FOUND_HASH = HashingUtils::HashString("ResourceArnNotFoundException"); -static const int INVALID_CLIENT_TOKEN_HASH = HashingUtils::HashString("InvalidClientTokenException"); -static const int INVALID_MAX_RESULTS_HASH = HashingUtils::HashString("InvalidMaxResultsException"); -static const int MISSING_REQUIRED_PARAMETER_HASH = HashingUtils::HashString("MissingRequiredParameterException"); -static const int PERMISSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PermissionLimitExceededException"); -static const int UNKNOWN_RESOURCE_HASH = HashingUtils::HashString("UnknownResourceException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_RESOURCE_TYPE_HASH = HashingUtils::HashString("InvalidResourceTypeException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_SHARE_INVITATION_EXPIRED_HASH = HashingUtils::HashString("ResourceShareInvitationExpiredException"); -static const int TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagLimitExceededException"); -static const int RESOURCE_SHARE_INVITATION_ALREADY_REJECTED_HASH = HashingUtils::HashString("ResourceShareInvitationAlreadyRejectedException"); -static const int INVALID_STATE_TRANSITION_HASH = HashingUtils::HashString("InvalidStateTransitionException"); -static const int INVALID_POLICY_HASH = HashingUtils::HashString("InvalidPolicyException"); -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermittedException"); -static const int PERMISSION_VERSIONS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PermissionVersionsLimitExceededException"); -static const int UNMATCHED_POLICY_PERMISSION_HASH = HashingUtils::HashString("UnmatchedPolicyPermissionException"); -static const int PERMISSION_ALREADY_EXISTS_HASH = HashingUtils::HashString("PermissionAlreadyExistsException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int MALFORMED_ARN_HASH = HashingUtils::HashString("MalformedArnException"); -static const int RESOURCE_SHARE_INVITATION_ALREADY_ACCEPTED_HASH = HashingUtils::HashString("ResourceShareInvitationAlreadyAcceptedException"); -static const int RESOURCE_SHARE_INVITATION_ARN_NOT_FOUND_HASH = HashingUtils::HashString("ResourceShareInvitationArnNotFoundException"); -static const int SERVER_INTERNAL_HASH = HashingUtils::HashString("ServerInternalException"); -static const int TAG_POLICY_VIOLATION_HASH = HashingUtils::HashString("TagPolicyViolationException"); -static const int MALFORMED_POLICY_TEMPLATE_HASH = HashingUtils::HashString("MalformedPolicyTemplateException"); +static constexpr uint32_t RESOURCE_SHARE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceShareLimitExceededException"); +static constexpr uint32_t RESOURCE_ARN_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ResourceArnNotFoundException"); +static constexpr uint32_t INVALID_CLIENT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidClientTokenException"); +static constexpr uint32_t INVALID_MAX_RESULTS_HASH = ConstExprHashingUtils::HashString("InvalidMaxResultsException"); +static constexpr uint32_t MISSING_REQUIRED_PARAMETER_HASH = ConstExprHashingUtils::HashString("MissingRequiredParameterException"); +static constexpr uint32_t PERMISSION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PermissionLimitExceededException"); +static constexpr uint32_t UNKNOWN_RESOURCE_HASH = ConstExprHashingUtils::HashString("UnknownResourceException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidResourceTypeException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_SHARE_INVITATION_EXPIRED_HASH = ConstExprHashingUtils::HashString("ResourceShareInvitationExpiredException"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagLimitExceededException"); +static constexpr uint32_t RESOURCE_SHARE_INVITATION_ALREADY_REJECTED_HASH = ConstExprHashingUtils::HashString("ResourceShareInvitationAlreadyRejectedException"); +static constexpr uint32_t INVALID_STATE_TRANSITION_HASH = ConstExprHashingUtils::HashString("InvalidStateTransitionException"); +static constexpr uint32_t INVALID_POLICY_HASH = ConstExprHashingUtils::HashString("InvalidPolicyException"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermittedException"); +static constexpr uint32_t PERMISSION_VERSIONS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PermissionVersionsLimitExceededException"); +static constexpr uint32_t UNMATCHED_POLICY_PERMISSION_HASH = ConstExprHashingUtils::HashString("UnmatchedPolicyPermissionException"); +static constexpr uint32_t PERMISSION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("PermissionAlreadyExistsException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t MALFORMED_ARN_HASH = ConstExprHashingUtils::HashString("MalformedArnException"); +static constexpr uint32_t RESOURCE_SHARE_INVITATION_ALREADY_ACCEPTED_HASH = ConstExprHashingUtils::HashString("ResourceShareInvitationAlreadyAcceptedException"); +static constexpr uint32_t RESOURCE_SHARE_INVITATION_ARN_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ResourceShareInvitationArnNotFoundException"); +static constexpr uint32_t SERVER_INTERNAL_HASH = ConstExprHashingUtils::HashString("ServerInternalException"); +static constexpr uint32_t TAG_POLICY_VIOLATION_HASH = ConstExprHashingUtils::HashString("TagPolicyViolationException"); +static constexpr uint32_t MALFORMED_POLICY_TEMPLATE_HASH = ConstExprHashingUtils::HashString("MalformedPolicyTemplateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_SHARE_LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-ram/source/model/PermissionFeatureSet.cpp b/generated/src/aws-cpp-sdk-ram/source/model/PermissionFeatureSet.cpp index d7a38a7efa9..579ca3e1058 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/PermissionFeatureSet.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/PermissionFeatureSet.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PermissionFeatureSetMapper { - static const int CREATED_FROM_POLICY_HASH = HashingUtils::HashString("CREATED_FROM_POLICY"); - static const int PROMOTING_TO_STANDARD_HASH = HashingUtils::HashString("PROMOTING_TO_STANDARD"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t CREATED_FROM_POLICY_HASH = ConstExprHashingUtils::HashString("CREATED_FROM_POLICY"); + static constexpr uint32_t PROMOTING_TO_STANDARD_HASH = ConstExprHashingUtils::HashString("PROMOTING_TO_STANDARD"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); PermissionFeatureSet GetPermissionFeatureSetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_FROM_POLICY_HASH) { return PermissionFeatureSet::CREATED_FROM_POLICY; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/PermissionStatus.cpp b/generated/src/aws-cpp-sdk-ram/source/model/PermissionStatus.cpp index 4ef30f764d3..12730d7d3d5 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/PermissionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/PermissionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PermissionStatusMapper { - static const int ATTACHABLE_HASH = HashingUtils::HashString("ATTACHABLE"); - static const int UNATTACHABLE_HASH = HashingUtils::HashString("UNATTACHABLE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ATTACHABLE_HASH = ConstExprHashingUtils::HashString("ATTACHABLE"); + static constexpr uint32_t UNATTACHABLE_HASH = ConstExprHashingUtils::HashString("UNATTACHABLE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); PermissionStatus GetPermissionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTACHABLE_HASH) { return PermissionStatus::ATTACHABLE; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/PermissionType.cpp b/generated/src/aws-cpp-sdk-ram/source/model/PermissionType.cpp index 2c2f65f800d..b9df04d9f15 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/PermissionType.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/PermissionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionTypeMapper { - static const int CUSTOMER_MANAGED_HASH = HashingUtils::HashString("CUSTOMER_MANAGED"); - static const int AWS_MANAGED_HASH = HashingUtils::HashString("AWS_MANAGED"); + static constexpr uint32_t CUSTOMER_MANAGED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED"); + static constexpr uint32_t AWS_MANAGED_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED"); PermissionType GetPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_MANAGED_HASH) { return PermissionType::CUSTOMER_MANAGED; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/PermissionTypeFilter.cpp b/generated/src/aws-cpp-sdk-ram/source/model/PermissionTypeFilter.cpp index 1e1896a1f9e..5d97c16ebff 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/PermissionTypeFilter.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/PermissionTypeFilter.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PermissionTypeFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int AWS_MANAGED_HASH = HashingUtils::HashString("AWS_MANAGED"); - static const int CUSTOMER_MANAGED_HASH = HashingUtils::HashString("CUSTOMER_MANAGED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t AWS_MANAGED_HASH = ConstExprHashingUtils::HashString("AWS_MANAGED"); + static constexpr uint32_t CUSTOMER_MANAGED_HASH = ConstExprHashingUtils::HashString("CUSTOMER_MANAGED"); PermissionTypeFilter GetPermissionTypeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return PermissionTypeFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ReplacePermissionAssociationsWorkStatus.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ReplacePermissionAssociationsWorkStatus.cpp index bedc6b5ce39..85e12bc5f30 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ReplacePermissionAssociationsWorkStatus.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ReplacePermissionAssociationsWorkStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReplacePermissionAssociationsWorkStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReplacePermissionAssociationsWorkStatus GetReplacePermissionAssociationsWorkStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ReplacePermissionAssociationsWorkStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceOwner.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceOwner.cpp index df67ef337f6..76522f452e3 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceOwner.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceOwner.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceOwnerMapper { - static const int SELF_HASH = HashingUtils::HashString("SELF"); - static const int OTHER_ACCOUNTS_HASH = HashingUtils::HashString("OTHER-ACCOUNTS"); + static constexpr uint32_t SELF_HASH = ConstExprHashingUtils::HashString("SELF"); + static constexpr uint32_t OTHER_ACCOUNTS_HASH = ConstExprHashingUtils::HashString("OTHER-ACCOUNTS"); ResourceOwner GetResourceOwnerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_HASH) { return ResourceOwner::SELF; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScope.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScope.cpp index 5844651795c..c46dc673122 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScope.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceRegionScopeMapper { - static const int REGIONAL_HASH = HashingUtils::HashString("REGIONAL"); - static const int GLOBAL_HASH = HashingUtils::HashString("GLOBAL"); + static constexpr uint32_t REGIONAL_HASH = ConstExprHashingUtils::HashString("REGIONAL"); + static constexpr uint32_t GLOBAL_HASH = ConstExprHashingUtils::HashString("GLOBAL"); ResourceRegionScope GetResourceRegionScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGIONAL_HASH) { return ResourceRegionScope::REGIONAL; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScopeFilter.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScopeFilter.cpp index 3cd150f2b41..457b4566f88 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScopeFilter.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceRegionScopeFilter.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceRegionScopeFilterMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int REGIONAL_HASH = HashingUtils::HashString("REGIONAL"); - static const int GLOBAL_HASH = HashingUtils::HashString("GLOBAL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t REGIONAL_HASH = ConstExprHashingUtils::HashString("REGIONAL"); + static constexpr uint32_t GLOBAL_HASH = ConstExprHashingUtils::HashString("GLOBAL"); ResourceRegionScopeFilter GetResourceRegionScopeFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ResourceRegionScopeFilter::ALL; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationStatus.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationStatus.cpp index 232e47215c3..23726a2e77d 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceShareAssociationStatusMapper { - static const int ASSOCIATING_HASH = HashingUtils::HashString("ASSOCIATING"); - static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DISASSOCIATING_HASH = HashingUtils::HashString("DISASSOCIATING"); - static const int DISASSOCIATED_HASH = HashingUtils::HashString("DISASSOCIATED"); + static constexpr uint32_t ASSOCIATING_HASH = ConstExprHashingUtils::HashString("ASSOCIATING"); + static constexpr uint32_t ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ASSOCIATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DISASSOCIATING_HASH = ConstExprHashingUtils::HashString("DISASSOCIATING"); + static constexpr uint32_t DISASSOCIATED_HASH = ConstExprHashingUtils::HashString("DISASSOCIATED"); ResourceShareAssociationStatus GetResourceShareAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATING_HASH) { return ResourceShareAssociationStatus::ASSOCIATING; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationType.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationType.cpp index 7d477e032fa..2bd5b26e2fc 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationType.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareAssociationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceShareAssociationTypeMapper { - static const int PRINCIPAL_HASH = HashingUtils::HashString("PRINCIPAL"); - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); + static constexpr uint32_t PRINCIPAL_HASH = ConstExprHashingUtils::HashString("PRINCIPAL"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); ResourceShareAssociationType GetResourceShareAssociationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRINCIPAL_HASH) { return ResourceShareAssociationType::PRINCIPAL; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareFeatureSet.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareFeatureSet.cpp index dd6dc5d07d1..727ab5f07ca 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareFeatureSet.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareFeatureSet.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResourceShareFeatureSetMapper { - static const int CREATED_FROM_POLICY_HASH = HashingUtils::HashString("CREATED_FROM_POLICY"); - static const int PROMOTING_TO_STANDARD_HASH = HashingUtils::HashString("PROMOTING_TO_STANDARD"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t CREATED_FROM_POLICY_HASH = ConstExprHashingUtils::HashString("CREATED_FROM_POLICY"); + static constexpr uint32_t PROMOTING_TO_STANDARD_HASH = ConstExprHashingUtils::HashString("PROMOTING_TO_STANDARD"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ResourceShareFeatureSet GetResourceShareFeatureSetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_FROM_POLICY_HASH) { return ResourceShareFeatureSet::CREATED_FROM_POLICY; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareInvitationStatus.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareInvitationStatus.cpp index 85e5e08d999..04ed18541b6 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareInvitationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareInvitationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceShareInvitationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACCEPTED_HASH = ConstExprHashingUtils::HashString("ACCEPTED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ResourceShareInvitationStatus GetResourceShareInvitationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ResourceShareInvitationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareStatus.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareStatus.cpp index 94472cf5a4c..c062b21cfaf 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceShareStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceShareStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ResourceShareStatus GetResourceShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ResourceShareStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-ram/source/model/ResourceStatus.cpp b/generated/src/aws-cpp-sdk-ram/source/model/ResourceStatus.cpp index 0803c1e93d0..63b8cd710c9 100644 --- a/generated/src/aws-cpp-sdk-ram/source/model/ResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/model/ResourceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int ZONAL_RESOURCE_INACCESSIBLE_HASH = HashingUtils::HashString("ZONAL_RESOURCE_INACCESSIBLE"); - static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LIMIT_EXCEEDED"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t ZONAL_RESOURCE_INACCESSIBLE_HASH = ConstExprHashingUtils::HashString("ZONAL_RESOURCE_INACCESSIBLE"); + static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LIMIT_EXCEEDED"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); ResourceStatus GetResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return ResourceStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-rbin/source/RecycleBinErrors.cpp b/generated/src/aws-cpp-sdk-rbin/source/RecycleBinErrors.cpp index 9a6a1c155c8..ed95ef2c5b4 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/RecycleBinErrors.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/RecycleBinErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_RECYCLEBIN_API ValidationException RecycleBinError::GetModeledErr namespace RecycleBinErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/ConflictExceptionReason.cpp index aa8a3f77c55..8be4d72866c 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/ConflictExceptionReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ConflictExceptionReasonMapper { - static const int INVALID_RULE_STATE_HASH = HashingUtils::HashString("INVALID_RULE_STATE"); + static constexpr uint32_t INVALID_RULE_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_RULE_STATE"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_RULE_STATE_HASH) { return ConflictExceptionReason::INVALID_RULE_STATE; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/LockState.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/LockState.cpp index f28a678319b..dd71f3bdec6 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/LockState.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/LockState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LockStateMapper { - static const int locked_HASH = HashingUtils::HashString("locked"); - static const int pending_unlock_HASH = HashingUtils::HashString("pending_unlock"); - static const int unlocked_HASH = HashingUtils::HashString("unlocked"); + static constexpr uint32_t locked_HASH = ConstExprHashingUtils::HashString("locked"); + static constexpr uint32_t pending_unlock_HASH = ConstExprHashingUtils::HashString("pending_unlock"); + static constexpr uint32_t unlocked_HASH = ConstExprHashingUtils::HashString("unlocked"); LockState GetLockStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == locked_HASH) { return LockState::locked; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/ResourceNotFoundExceptionReason.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/ResourceNotFoundExceptionReason.cpp index 2cadad372a1..ab999506e3f 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/ResourceNotFoundExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/ResourceNotFoundExceptionReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceNotFoundExceptionReasonMapper { - static const int RULE_NOT_FOUND_HASH = HashingUtils::HashString("RULE_NOT_FOUND"); + static constexpr uint32_t RULE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RULE_NOT_FOUND"); ResourceNotFoundExceptionReason GetResourceNotFoundExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RULE_NOT_FOUND_HASH) { return ResourceNotFoundExceptionReason::RULE_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/ResourceType.cpp index 6e720f69e4b..93f188cc992 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int EBS_SNAPSHOT_HASH = HashingUtils::HashString("EBS_SNAPSHOT"); - static const int EC2_IMAGE_HASH = HashingUtils::HashString("EC2_IMAGE"); + static constexpr uint32_t EBS_SNAPSHOT_HASH = ConstExprHashingUtils::HashString("EBS_SNAPSHOT"); + static constexpr uint32_t EC2_IMAGE_HASH = ConstExprHashingUtils::HashString("EC2_IMAGE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EBS_SNAPSHOT_HASH) { return ResourceType::EBS_SNAPSHOT; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/RetentionPeriodUnit.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/RetentionPeriodUnit.cpp index 8e687b83337..5c73d9c6641 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/RetentionPeriodUnit.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/RetentionPeriodUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RetentionPeriodUnitMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); RetentionPeriodUnit GetRetentionPeriodUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return RetentionPeriodUnit::DAYS; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/RuleStatus.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/RuleStatus.cpp index 99d152b3968..98651b07b9f 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/RuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/RuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleStatusMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int available_HASH = HashingUtils::HashString("available"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); RuleStatus GetRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return RuleStatus::pending; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/ServiceQuotaExceededExceptionReason.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/ServiceQuotaExceededExceptionReason.cpp index 123cb1d489a..6c7cfef421c 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/ServiceQuotaExceededExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/ServiceQuotaExceededExceptionReason.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceQuotaExceededExceptionReasonMapper { - static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("SERVICE_QUOTA_EXCEEDED"); + static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SERVICE_QUOTA_EXCEEDED"); ServiceQuotaExceededExceptionReason GetServiceQuotaExceededExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { return ServiceQuotaExceededExceptionReason::SERVICE_QUOTA_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/UnlockDelayUnit.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/UnlockDelayUnit.cpp index 0e51c8538c5..f6c7222a6f4 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/UnlockDelayUnit.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/UnlockDelayUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UnlockDelayUnitMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); UnlockDelayUnit GetUnlockDelayUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return UnlockDelayUnit::DAYS; diff --git a/generated/src/aws-cpp-sdk-rbin/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-rbin/source/model/ValidationExceptionReason.cpp index ceda0ccde15..4d1dd50e2c2 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/model/ValidationExceptionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int INVALID_PAGE_TOKEN_HASH = HashingUtils::HashString("INVALID_PAGE_TOKEN"); - static const int INVALID_PARAMETER_VALUE_HASH = HashingUtils::HashString("INVALID_PARAMETER_VALUE"); + static constexpr uint32_t INVALID_PAGE_TOKEN_HASH = ConstExprHashingUtils::HashString("INVALID_PAGE_TOKEN"); + static constexpr uint32_t INVALID_PARAMETER_VALUE_HASH = ConstExprHashingUtils::HashString("INVALID_PARAMETER_VALUE"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_PAGE_TOKEN_HASH) { return ValidationExceptionReason::INVALID_PAGE_TOKEN; diff --git a/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceErrors.cpp b/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceErrors.cpp index 184a140892a..23f7781a9de 100644 --- a/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_RDSDATASERVICE_API StatementTimeoutException RDSDataServiceError: namespace RDSDataServiceErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int STATEMENT_TIMEOUT_HASH = HashingUtils::HashString("StatementTimeoutException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t STATEMENT_TIMEOUT_HASH = ConstExprHashingUtils::HashString("StatementTimeoutException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-rds-data/source/model/DecimalReturnType.cpp b/generated/src/aws-cpp-sdk-rds-data/source/model/DecimalReturnType.cpp index d054cb93758..54a813fd758 100644 --- a/generated/src/aws-cpp-sdk-rds-data/source/model/DecimalReturnType.cpp +++ b/generated/src/aws-cpp-sdk-rds-data/source/model/DecimalReturnType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DecimalReturnTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int DOUBLE_OR_LONG_HASH = HashingUtils::HashString("DOUBLE_OR_LONG"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t DOUBLE_OR_LONG_HASH = ConstExprHashingUtils::HashString("DOUBLE_OR_LONG"); DecimalReturnType GetDecimalReturnTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return DecimalReturnType::STRING; diff --git a/generated/src/aws-cpp-sdk-rds-data/source/model/LongReturnType.cpp b/generated/src/aws-cpp-sdk-rds-data/source/model/LongReturnType.cpp index f97e843ef02..27d3ad105b9 100644 --- a/generated/src/aws-cpp-sdk-rds-data/source/model/LongReturnType.cpp +++ b/generated/src/aws-cpp-sdk-rds-data/source/model/LongReturnType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LongReturnTypeMapper { - static const int STRING_HASH = HashingUtils::HashString("STRING"); - static const int LONG_HASH = HashingUtils::HashString("LONG"); + static constexpr uint32_t STRING_HASH = ConstExprHashingUtils::HashString("STRING"); + static constexpr uint32_t LONG_HASH = ConstExprHashingUtils::HashString("LONG"); LongReturnType GetLongReturnTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STRING_HASH) { return LongReturnType::STRING; diff --git a/generated/src/aws-cpp-sdk-rds-data/source/model/RecordsFormatType.cpp b/generated/src/aws-cpp-sdk-rds-data/source/model/RecordsFormatType.cpp index 4585c6447db..1f59716335d 100644 --- a/generated/src/aws-cpp-sdk-rds-data/source/model/RecordsFormatType.cpp +++ b/generated/src/aws-cpp-sdk-rds-data/source/model/RecordsFormatType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordsFormatTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); RecordsFormatType GetRecordsFormatTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return RecordsFormatType::NONE; diff --git a/generated/src/aws-cpp-sdk-rds-data/source/model/TypeHint.cpp b/generated/src/aws-cpp-sdk-rds-data/source/model/TypeHint.cpp index cc5ed9bfb4c..33180b930e9 100644 --- a/generated/src/aws-cpp-sdk-rds-data/source/model/TypeHint.cpp +++ b/generated/src/aws-cpp-sdk-rds-data/source/model/TypeHint.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TypeHintMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int UUID_HASH = HashingUtils::HashString("UUID"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int TIME_HASH = HashingUtils::HashString("TIME"); - static const int DECIMAL_HASH = HashingUtils::HashString("DECIMAL"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t UUID_HASH = ConstExprHashingUtils::HashString("UUID"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t TIME_HASH = ConstExprHashingUtils::HashString("TIME"); + static constexpr uint32_t DECIMAL_HASH = ConstExprHashingUtils::HashString("DECIMAL"); TypeHint GetTypeHintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return TypeHint::JSON; diff --git a/generated/src/aws-cpp-sdk-rds/source/RDSErrors.cpp b/generated/src/aws-cpp-sdk-rds/source/RDSErrors.cpp index ee8f060c8a7..aa4e487829a 100644 --- a/generated/src/aws-cpp-sdk-rds/source/RDSErrors.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/RDSErrors.cpp @@ -18,135 +18,135 @@ namespace RDS namespace RDSErrorMapper { -static const int D_B_INSTANCE_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBInstanceRoleNotFound"); -static const int OPTION_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("OptionGroupNotFoundFault"); -static const int D_B_CLUSTER_ENDPOINT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterEndpointQuotaExceededFault"); -static const int SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionCategoryNotFound"); -static const int D_B_SECURITY_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSecurityGroupAlreadyExists"); -static const int INVALID_D_B_SUBNET_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetGroupStateFault"); -static const int D_B_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupQuotaExceeded"); -static const int EXPORT_TASK_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ExportTaskNotFound"); -static const int IAM_ROLE_MISSING_PERMISSIONS_FAULT_HASH = HashingUtils::HashString("IamRoleMissingPermissions"); -static const int D_B_INSTANCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBInstanceNotFound"); -static const int OPTION_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("OptionGroupQuotaExceededFault"); -static const int D_B_LOG_FILE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBLogFileNotFoundFault"); -static const int INVALID_D_B_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSnapshotState"); -static const int SHARED_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SharedSnapshotQuotaExceeded"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int D_B_PROXY_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBProxyQuotaExceededFault"); -static const int D_B_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBParameterGroupQuotaExceeded"); -static const int D_B_CLUSTER_ROLE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterRoleAlreadyExists"); -static const int INVALID_EXPORT_TASK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidExportTaskStateFault"); -static const int INSUFFICIENT_STORAGE_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientStorageClusterCapacity"); -static const int D_B_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupNotFoundFault"); -static const int D_B_SECURITY_GROUP_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("DBSecurityGroupNotSupported"); -static const int STORAGE_TYPE_NOT_AVAILABLE_FAULT_HASH = HashingUtils::HashString("StorageTypeNotAvailableFault"); -static const int D_B_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSnapshotAlreadyExists"); -static const int D_B_PROXY_TARGET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBProxyTargetGroupNotFoundFault"); -static const int SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotQuotaExceeded"); -static const int SUBNET_ALREADY_IN_USE_HASH = HashingUtils::HashString("SubnetAlreadyInUse"); -static const int D_B_CLUSTER_ENDPOINT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterEndpointNotFoundFault"); -static const int D_B_INSTANCE_ROLE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBInstanceRoleAlreadyExists"); -static const int RESERVED_D_B_INSTANCES_OFFERING_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedDBInstancesOfferingNotFound"); -static const int INVALID_D_B_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBParameterGroupState"); -static const int D_B_PROXY_ENDPOINT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBProxyEndpointQuotaExceededFault"); -static const int D_B_PROXY_TARGET_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBProxyTargetNotFoundFault"); -static const int INVALID_D_B_SECURITY_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSecurityGroupState"); -static const int D_B_CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterSnapshotAlreadyExistsFault"); -static const int STORAGE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("StorageQuotaExceeded"); -static const int INVALID_D_B_SUBNET_GROUP_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetGroupFault"); -static const int INVALID_D_B_INSTANCE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBInstanceState"); -static const int D_B_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBSubnetQuotaExceededFault"); -static const int D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterSnapshotNotFoundFault"); -static const int D_B_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterAlreadyExistsFault"); -static const int D_B_PROXY_TARGET_ALREADY_REGISTERED_FAULT_HASH = HashingUtils::HashString("DBProxyTargetAlreadyRegisteredFault"); -static const int AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("AuthorizationAlreadyExists"); -static const int D_B_CLUSTER_ROLE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterRoleQuotaExceeded"); -static const int INVALID_S3_BUCKET_FAULT_HASH = HashingUtils::HashString("InvalidS3BucketFault"); -static const int INVALID_OPTION_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidOptionGroupStateFault"); -static const int D_B_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBParameterGroupNotFound"); -static const int INVALID_D_B_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterStateFault"); -static const int SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = HashingUtils::HashString("SubscriptionAlreadyExist"); -static const int BLUE_GREEN_DEPLOYMENT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("BlueGreenDeploymentAlreadyExistsFault"); -static const int CERTIFICATE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CertificateNotFound"); -static const int D_B_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBParameterGroupAlreadyExists"); -static const int INVALID_D_B_CLUSTER_ENDPOINT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterEndpointStateFault"); -static const int SOURCE_CLUSTER_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("SourceClusterNotSupportedFault"); -static const int INVALID_D_B_CLUSTER_AUTOMATED_BACKUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterAutomatedBackupStateFault"); -static const int STORAGE_TYPE_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("StorageTypeNotSupported"); -static const int S_N_S_INVALID_TOPIC_FAULT_HASH = HashingUtils::HashString("SNSInvalidTopic"); -static const int INVALID_D_B_SUBNET_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBSubnetStateFault"); -static const int INVALID_D_B_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterCapacityFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int AUTHORIZATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("AuthorizationNotFound"); -static const int AUTHORIZATION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("AuthorizationQuotaExceeded"); -static const int D_B_CLUSTER_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterRoleNotFound"); -static const int D_B_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterQuotaExceededFault"); -static const int OPTION_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("OptionGroupAlreadyExistsFault"); -static const int D_B_INSTANCE_AUTOMATED_BACKUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBInstanceAutomatedBackupQuotaExceeded"); -static const int D_B_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterNotFoundFault"); -static const int SUBSCRIPTION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionNotFound"); -static const int BACKUP_POLICY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("BackupPolicyNotFoundFault"); -static const int INVALID_D_B_PROXY_ENDPOINT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBProxyEndpointStateFault"); -static const int D_B_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = HashingUtils::HashString("DBSubnetGroupDoesNotCoverEnoughAZs"); -static const int D_B_UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = HashingUtils::HashString("DBUpgradeDependencyFailure"); -static const int INVALID_D_B_PROXY_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBProxyStateFault"); -static const int D_B_SUBNET_GROUP_NOT_ALLOWED_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupNotAllowedFault"); -static const int BLUE_GREEN_DEPLOYMENT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("BlueGreenDeploymentNotFoundFault"); -static const int D_B_PROXY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBProxyNotFoundFault"); -static const int D_B_CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterParameterGroupNotFound"); -static const int DOMAIN_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DomainNotFoundFault"); -static const int INVALID_EVENT_SUBSCRIPTION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidEventSubscriptionState"); -static const int D_B_INSTANCE_AUTOMATED_BACKUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBInstanceAutomatedBackupNotFound"); -static const int SOURCE_DATABASE_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("SourceDatabaseNotSupportedFault"); -static const int INSUFFICIENT_AVAILABLE_I_PS_IN_SUBNET_FAULT_HASH = HashingUtils::HashString("InsufficientAvailableIPsInSubnetFault"); -static const int D_B_CLUSTER_ENDPOINT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBClusterEndpointAlreadyExistsFault"); -static const int D_B_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBSubnetGroupAlreadyExists"); -static const int INVALID_EXPORT_SOURCE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidExportSourceState"); -static const int EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EventSubscriptionQuotaExceeded"); -static const int D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBInstanceAlreadyExists"); -static const int INVALID_EXPORT_ONLY_FAULT_HASH = HashingUtils::HashString("InvalidExportOnly"); -static const int D_B_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSecurityGroupNotFound"); -static const int CUSTOM_D_B_ENGINE_VERSION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CustomDBEngineVersionNotFoundFault"); -static const int INVALID_D_B_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBClusterSnapshotStateFault"); -static const int D_B_INSTANCE_ROLE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBInstanceRoleQuotaExceeded"); -static const int GLOBAL_CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("GlobalClusterNotFoundFault"); -static const int D_B_PROXY_ENDPOINT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBProxyEndpointAlreadyExistsFault"); -static const int NETWORK_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("NetworkTypeNotSupported"); -static const int PROVISIONED_IOPS_NOT_AVAILABLE_IN_A_Z_FAULT_HASH = HashingUtils::HashString("ProvisionedIopsNotAvailableInAZFault"); -static const int D_B_CLUSTER_AUTOMATED_BACKUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("DBClusterAutomatedBackupQuotaExceededFault"); -static const int IAM_ROLE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("IamRoleNotFound"); -static const int GLOBAL_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("GlobalClusterQuotaExceededFault"); -static const int RESOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ResourceNotFoundFault"); -static const int INVALID_D_B_INSTANCE_AUTOMATED_BACKUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidDBInstanceAutomatedBackupState"); -static const int INSUFFICIENT_D_B_INSTANCE_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientDBInstanceCapacity"); -static const int RESERVED_D_B_INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ReservedDBInstanceQuotaExceeded"); -static const int RESERVED_D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ReservedDBInstanceAlreadyExists"); -static const int EXPORT_TASK_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ExportTaskAlreadyExists"); -static const int D_B_PROXY_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DBProxyAlreadyExistsFault"); -static const int D_B_PROXY_ENDPOINT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBProxyEndpointNotFoundFault"); -static const int INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("InstanceQuotaExceeded"); -static const int GLOBAL_CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("GlobalClusterAlreadyExistsFault"); -static const int D_B_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBSnapshotNotFound"); -static const int CUSTOM_AVAILABILITY_ZONE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CustomAvailabilityZoneNotFound"); -static const int D_B_CLUSTER_AUTOMATED_BACKUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterAutomatedBackupNotFoundFault"); -static const int K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = HashingUtils::HashString("KMSKeyNotAccessibleFault"); -static const int D_B_CLUSTER_BACKTRACK_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("DBClusterBacktrackNotFoundFault"); -static const int CREATE_CUSTOM_D_B_ENGINE_VERSION_FAULT_HASH = HashingUtils::HashString("CreateCustomDBEngineVersionFault"); -static const int S_N_S_NO_AUTHORIZATION_FAULT_HASH = HashingUtils::HashString("SNSNoAuthorization"); -static const int RESERVED_D_B_INSTANCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedDBInstanceNotFound"); -static const int INVALID_RESTORE_FAULT_HASH = HashingUtils::HashString("InvalidRestoreFault"); -static const int S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SNSTopicArnNotFound"); -static const int INVALID_BLUE_GREEN_DEPLOYMENT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidBlueGreenDeploymentStateFault"); -static const int D_B_SECURITY_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("QuotaExceeded.DBSecurityGroup"); -static const int CUSTOM_D_B_ENGINE_VERSION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("CustomDBEngineVersionAlreadyExistsFault"); -static const int EC2_IMAGE_PROPERTIES_NOT_SUPPORTED_FAULT_HASH = HashingUtils::HashString("Ec2ImagePropertiesNotSupportedFault"); -static const int INSUFFICIENT_D_B_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientDBClusterCapacityFault"); -static const int POINT_IN_TIME_RESTORE_NOT_ENABLED_FAULT_HASH = HashingUtils::HashString("PointInTimeRestoreNotEnabled"); -static const int SOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SourceNotFound"); -static const int INVALID_GLOBAL_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidGlobalClusterStateFault"); -static const int INVALID_CUSTOM_D_B_ENGINE_VERSION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidCustomDBEngineVersionStateFault"); -static const int CUSTOM_D_B_ENGINE_VERSION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("CustomDBEngineVersionQuotaExceededFault"); +static constexpr uint32_t D_B_INSTANCE_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceRoleNotFound"); +static constexpr uint32_t OPTION_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("OptionGroupNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_ENDPOINT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterEndpointQuotaExceededFault"); +static constexpr uint32_t SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionCategoryNotFound"); +static constexpr uint32_t D_B_SECURITY_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSecurityGroupAlreadyExists"); +static constexpr uint32_t INVALID_D_B_SUBNET_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetGroupStateFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupQuotaExceeded"); +static constexpr uint32_t EXPORT_TASK_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ExportTaskNotFound"); +static constexpr uint32_t IAM_ROLE_MISSING_PERMISSIONS_FAULT_HASH = ConstExprHashingUtils::HashString("IamRoleMissingPermissions"); +static constexpr uint32_t D_B_INSTANCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceNotFound"); +static constexpr uint32_t OPTION_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("OptionGroupQuotaExceededFault"); +static constexpr uint32_t D_B_LOG_FILE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBLogFileNotFoundFault"); +static constexpr uint32_t INVALID_D_B_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSnapshotState"); +static constexpr uint32_t SHARED_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SharedSnapshotQuotaExceeded"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t D_B_PROXY_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyQuotaExceededFault"); +static constexpr uint32_t D_B_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupQuotaExceeded"); +static constexpr uint32_t D_B_CLUSTER_ROLE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterRoleAlreadyExists"); +static constexpr uint32_t INVALID_EXPORT_TASK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidExportTaskStateFault"); +static constexpr uint32_t INSUFFICIENT_STORAGE_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientStorageClusterCapacity"); +static constexpr uint32_t D_B_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupNotFoundFault"); +static constexpr uint32_t D_B_SECURITY_GROUP_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSecurityGroupNotSupported"); +static constexpr uint32_t STORAGE_TYPE_NOT_AVAILABLE_FAULT_HASH = ConstExprHashingUtils::HashString("StorageTypeNotAvailableFault"); +static constexpr uint32_t D_B_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSnapshotAlreadyExists"); +static constexpr uint32_t D_B_PROXY_TARGET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyTargetGroupNotFoundFault"); +static constexpr uint32_t SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotQuotaExceeded"); +static constexpr uint32_t SUBNET_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetAlreadyInUse"); +static constexpr uint32_t D_B_CLUSTER_ENDPOINT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterEndpointNotFoundFault"); +static constexpr uint32_t D_B_INSTANCE_ROLE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceRoleAlreadyExists"); +static constexpr uint32_t RESERVED_D_B_INSTANCES_OFFERING_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedDBInstancesOfferingNotFound"); +static constexpr uint32_t INVALID_D_B_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBParameterGroupState"); +static constexpr uint32_t D_B_PROXY_ENDPOINT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyEndpointQuotaExceededFault"); +static constexpr uint32_t D_B_PROXY_TARGET_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyTargetNotFoundFault"); +static constexpr uint32_t INVALID_D_B_SECURITY_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSecurityGroupState"); +static constexpr uint32_t D_B_CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterSnapshotAlreadyExistsFault"); +static constexpr uint32_t STORAGE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageQuotaExceeded"); +static constexpr uint32_t INVALID_D_B_SUBNET_GROUP_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetGroupFault"); +static constexpr uint32_t INVALID_D_B_INSTANCE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBInstanceState"); +static constexpr uint32_t D_B_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetQuotaExceededFault"); +static constexpr uint32_t D_B_CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterSnapshotNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterAlreadyExistsFault"); +static constexpr uint32_t D_B_PROXY_TARGET_ALREADY_REGISTERED_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyTargetAlreadyRegisteredFault"); +static constexpr uint32_t AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationAlreadyExists"); +static constexpr uint32_t D_B_CLUSTER_ROLE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterRoleQuotaExceeded"); +static constexpr uint32_t INVALID_S3_BUCKET_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidS3BucketFault"); +static constexpr uint32_t INVALID_OPTION_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidOptionGroupStateFault"); +static constexpr uint32_t D_B_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupNotFound"); +static constexpr uint32_t INVALID_D_B_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterStateFault"); +static constexpr uint32_t SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionAlreadyExist"); +static constexpr uint32_t BLUE_GREEN_DEPLOYMENT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("BlueGreenDeploymentAlreadyExistsFault"); +static constexpr uint32_t CERTIFICATE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CertificateNotFound"); +static constexpr uint32_t D_B_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBParameterGroupAlreadyExists"); +static constexpr uint32_t INVALID_D_B_CLUSTER_ENDPOINT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterEndpointStateFault"); +static constexpr uint32_t SOURCE_CLUSTER_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("SourceClusterNotSupportedFault"); +static constexpr uint32_t INVALID_D_B_CLUSTER_AUTOMATED_BACKUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterAutomatedBackupStateFault"); +static constexpr uint32_t STORAGE_TYPE_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("StorageTypeNotSupported"); +static constexpr uint32_t S_N_S_INVALID_TOPIC_FAULT_HASH = ConstExprHashingUtils::HashString("SNSInvalidTopic"); +static constexpr uint32_t INVALID_D_B_SUBNET_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBSubnetStateFault"); +static constexpr uint32_t INVALID_D_B_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterCapacityFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t AUTHORIZATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationNotFound"); +static constexpr uint32_t AUTHORIZATION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationQuotaExceeded"); +static constexpr uint32_t D_B_CLUSTER_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterRoleNotFound"); +static constexpr uint32_t D_B_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterQuotaExceededFault"); +static constexpr uint32_t OPTION_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("OptionGroupAlreadyExistsFault"); +static constexpr uint32_t D_B_INSTANCE_AUTOMATED_BACKUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceAutomatedBackupQuotaExceeded"); +static constexpr uint32_t D_B_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterNotFoundFault"); +static constexpr uint32_t SUBSCRIPTION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionNotFound"); +static constexpr uint32_t BACKUP_POLICY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("BackupPolicyNotFoundFault"); +static constexpr uint32_t INVALID_D_B_PROXY_ENDPOINT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBProxyEndpointStateFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_DOES_NOT_COVER_ENOUGH_A_ZS_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupDoesNotCoverEnoughAZs"); +static constexpr uint32_t D_B_UPGRADE_DEPENDENCY_FAILURE_FAULT_HASH = ConstExprHashingUtils::HashString("DBUpgradeDependencyFailure"); +static constexpr uint32_t INVALID_D_B_PROXY_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBProxyStateFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_NOT_ALLOWED_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupNotAllowedFault"); +static constexpr uint32_t BLUE_GREEN_DEPLOYMENT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("BlueGreenDeploymentNotFoundFault"); +static constexpr uint32_t D_B_PROXY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyNotFoundFault"); +static constexpr uint32_t D_B_CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterParameterGroupNotFound"); +static constexpr uint32_t DOMAIN_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DomainNotFoundFault"); +static constexpr uint32_t INVALID_EVENT_SUBSCRIPTION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidEventSubscriptionState"); +static constexpr uint32_t D_B_INSTANCE_AUTOMATED_BACKUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceAutomatedBackupNotFound"); +static constexpr uint32_t SOURCE_DATABASE_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("SourceDatabaseNotSupportedFault"); +static constexpr uint32_t INSUFFICIENT_AVAILABLE_I_PS_IN_SUBNET_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientAvailableIPsInSubnetFault"); +static constexpr uint32_t D_B_CLUSTER_ENDPOINT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterEndpointAlreadyExistsFault"); +static constexpr uint32_t D_B_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBSubnetGroupAlreadyExists"); +static constexpr uint32_t INVALID_EXPORT_SOURCE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidExportSourceState"); +static constexpr uint32_t EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EventSubscriptionQuotaExceeded"); +static constexpr uint32_t D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceAlreadyExists"); +static constexpr uint32_t INVALID_EXPORT_ONLY_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidExportOnly"); +static constexpr uint32_t D_B_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSecurityGroupNotFound"); +static constexpr uint32_t CUSTOM_D_B_ENGINE_VERSION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CustomDBEngineVersionNotFoundFault"); +static constexpr uint32_t INVALID_D_B_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBClusterSnapshotStateFault"); +static constexpr uint32_t D_B_INSTANCE_ROLE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBInstanceRoleQuotaExceeded"); +static constexpr uint32_t GLOBAL_CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterNotFoundFault"); +static constexpr uint32_t D_B_PROXY_ENDPOINT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyEndpointAlreadyExistsFault"); +static constexpr uint32_t NETWORK_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("NetworkTypeNotSupported"); +static constexpr uint32_t PROVISIONED_IOPS_NOT_AVAILABLE_IN_A_Z_FAULT_HASH = ConstExprHashingUtils::HashString("ProvisionedIopsNotAvailableInAZFault"); +static constexpr uint32_t D_B_CLUSTER_AUTOMATED_BACKUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterAutomatedBackupQuotaExceededFault"); +static constexpr uint32_t IAM_ROLE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("IamRoleNotFound"); +static constexpr uint32_t GLOBAL_CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterQuotaExceededFault"); +static constexpr uint32_t RESOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundFault"); +static constexpr uint32_t INVALID_D_B_INSTANCE_AUTOMATED_BACKUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDBInstanceAutomatedBackupState"); +static constexpr uint32_t INSUFFICIENT_D_B_INSTANCE_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientDBInstanceCapacity"); +static constexpr uint32_t RESERVED_D_B_INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedDBInstanceQuotaExceeded"); +static constexpr uint32_t RESERVED_D_B_INSTANCE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedDBInstanceAlreadyExists"); +static constexpr uint32_t EXPORT_TASK_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ExportTaskAlreadyExists"); +static constexpr uint32_t D_B_PROXY_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyAlreadyExistsFault"); +static constexpr uint32_t D_B_PROXY_ENDPOINT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBProxyEndpointNotFoundFault"); +static constexpr uint32_t INSTANCE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("InstanceQuotaExceeded"); +static constexpr uint32_t GLOBAL_CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("GlobalClusterAlreadyExistsFault"); +static constexpr uint32_t D_B_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBSnapshotNotFound"); +static constexpr uint32_t CUSTOM_AVAILABILITY_ZONE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CustomAvailabilityZoneNotFound"); +static constexpr uint32_t D_B_CLUSTER_AUTOMATED_BACKUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterAutomatedBackupNotFoundFault"); +static constexpr uint32_t K_M_S_KEY_NOT_ACCESSIBLE_FAULT_HASH = ConstExprHashingUtils::HashString("KMSKeyNotAccessibleFault"); +static constexpr uint32_t D_B_CLUSTER_BACKTRACK_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("DBClusterBacktrackNotFoundFault"); +static constexpr uint32_t CREATE_CUSTOM_D_B_ENGINE_VERSION_FAULT_HASH = ConstExprHashingUtils::HashString("CreateCustomDBEngineVersionFault"); +static constexpr uint32_t S_N_S_NO_AUTHORIZATION_FAULT_HASH = ConstExprHashingUtils::HashString("SNSNoAuthorization"); +static constexpr uint32_t RESERVED_D_B_INSTANCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedDBInstanceNotFound"); +static constexpr uint32_t INVALID_RESTORE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidRestoreFault"); +static constexpr uint32_t S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SNSTopicArnNotFound"); +static constexpr uint32_t INVALID_BLUE_GREEN_DEPLOYMENT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidBlueGreenDeploymentStateFault"); +static constexpr uint32_t D_B_SECURITY_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("QuotaExceeded.DBSecurityGroup"); +static constexpr uint32_t CUSTOM_D_B_ENGINE_VERSION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("CustomDBEngineVersionAlreadyExistsFault"); +static constexpr uint32_t EC2_IMAGE_PROPERTIES_NOT_SUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("Ec2ImagePropertiesNotSupportedFault"); +static constexpr uint32_t INSUFFICIENT_D_B_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientDBClusterCapacityFault"); +static constexpr uint32_t POINT_IN_TIME_RESTORE_NOT_ENABLED_FAULT_HASH = ConstExprHashingUtils::HashString("PointInTimeRestoreNotEnabled"); +static constexpr uint32_t SOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SourceNotFound"); +static constexpr uint32_t INVALID_GLOBAL_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidGlobalClusterStateFault"); +static constexpr uint32_t INVALID_CUSTOM_D_B_ENGINE_VERSION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidCustomDBEngineVersionStateFault"); +static constexpr uint32_t CUSTOM_D_B_ENGINE_VERSION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("CustomDBEngineVersionQuotaExceededFault"); /* @@ -155,7 +155,7 @@ which allows constant time lookup. The chain has been broken into helper functio because MSVC has a maximum of 122 chained if-else blocks. */ -static bool GetErrorForNameHelper0(int hashCode, AWSError& error) +static bool GetErrorForNameHelper0(uint32_t hashCode, AWSError& error) { if (hashCode == D_B_INSTANCE_ROLE_NOT_FOUND_FAULT_HASH) { @@ -770,7 +770,7 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) return false; } -static bool GetErrorForNameHelper1(int hashCode, AWSError& error) +static bool GetErrorForNameHelper1(uint32_t hashCode, AWSError& error) { if (hashCode == EC2_IMAGE_PROPERTIES_NOT_SUPPORTED_FAULT_HASH) { @@ -812,7 +812,7 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamMode.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamMode.cpp index f08ed64e918..87e2fea83f4 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamMode.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ActivityStreamModeMapper { - static const int sync_HASH = HashingUtils::HashString("sync"); - static const int async_HASH = HashingUtils::HashString("async"); + static constexpr uint32_t sync_HASH = ConstExprHashingUtils::HashString("sync"); + static constexpr uint32_t async_HASH = ConstExprHashingUtils::HashString("async"); ActivityStreamMode GetActivityStreamModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sync_HASH) { return ActivityStreamMode::sync; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamPolicyStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamPolicyStatus.cpp index e873c40213b..3c71cb15177 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamPolicyStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamPolicyStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActivityStreamPolicyStatusMapper { - static const int locked_HASH = HashingUtils::HashString("locked"); - static const int unlocked_HASH = HashingUtils::HashString("unlocked"); - static const int locking_policy_HASH = HashingUtils::HashString("locking-policy"); - static const int unlocking_policy_HASH = HashingUtils::HashString("unlocking-policy"); + static constexpr uint32_t locked_HASH = ConstExprHashingUtils::HashString("locked"); + static constexpr uint32_t unlocked_HASH = ConstExprHashingUtils::HashString("unlocked"); + static constexpr uint32_t locking_policy_HASH = ConstExprHashingUtils::HashString("locking-policy"); + static constexpr uint32_t unlocking_policy_HASH = ConstExprHashingUtils::HashString("unlocking-policy"); ActivityStreamPolicyStatus GetActivityStreamPolicyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == locked_HASH) { return ActivityStreamPolicyStatus::locked; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamStatus.cpp index 41e7bb2a711..72d751af556 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ActivityStreamStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActivityStreamStatusMapper { - static const int stopped_HASH = HashingUtils::HashString("stopped"); - static const int starting_HASH = HashingUtils::HashString("starting"); - static const int started_HASH = HashingUtils::HashString("started"); - static const int stopping_HASH = HashingUtils::HashString("stopping"); + static constexpr uint32_t stopped_HASH = ConstExprHashingUtils::HashString("stopped"); + static constexpr uint32_t starting_HASH = ConstExprHashingUtils::HashString("starting"); + static constexpr uint32_t started_HASH = ConstExprHashingUtils::HashString("started"); + static constexpr uint32_t stopping_HASH = ConstExprHashingUtils::HashString("stopping"); ActivityStreamStatus GetActivityStreamStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == stopped_HASH) { return ActivityStreamStatus::stopped; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ApplyMethod.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ApplyMethod.cpp index 015bca869e7..c4a419ccd03 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ApplyMethod.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ApplyMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplyMethodMapper { - static const int immediate_HASH = HashingUtils::HashString("immediate"); - static const int pending_reboot_HASH = HashingUtils::HashString("pending-reboot"); + static constexpr uint32_t immediate_HASH = ConstExprHashingUtils::HashString("immediate"); + static constexpr uint32_t pending_reboot_HASH = ConstExprHashingUtils::HashString("pending-reboot"); ApplyMethod GetApplyMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == immediate_HASH) { return ApplyMethod::immediate; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/AuditPolicyState.cpp b/generated/src/aws-cpp-sdk-rds/source/model/AuditPolicyState.cpp index 0e498409e10..b37ad92a2df 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/AuditPolicyState.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/AuditPolicyState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuditPolicyStateMapper { - static const int locked_HASH = HashingUtils::HashString("locked"); - static const int unlocked_HASH = HashingUtils::HashString("unlocked"); + static constexpr uint32_t locked_HASH = ConstExprHashingUtils::HashString("locked"); + static constexpr uint32_t unlocked_HASH = ConstExprHashingUtils::HashString("unlocked"); AuditPolicyState GetAuditPolicyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == locked_HASH) { return AuditPolicyState::locked; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/AuthScheme.cpp b/generated/src/aws-cpp-sdk-rds/source/model/AuthScheme.cpp index a7d29589003..3fd6724e760 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/AuthScheme.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/AuthScheme.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AuthSchemeMapper { - static const int SECRETS_HASH = HashingUtils::HashString("SECRETS"); + static constexpr uint32_t SECRETS_HASH = ConstExprHashingUtils::HashString("SECRETS"); AuthScheme GetAuthSchemeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECRETS_HASH) { return AuthScheme::SECRETS; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/AutomationMode.cpp b/generated/src/aws-cpp-sdk-rds/source/model/AutomationMode.cpp index 9259b478d08..5950e2beaa3 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/AutomationMode.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/AutomationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutomationModeMapper { - static const int full_HASH = HashingUtils::HashString("full"); - static const int all_paused_HASH = HashingUtils::HashString("all-paused"); + static constexpr uint32_t full_HASH = ConstExprHashingUtils::HashString("full"); + static constexpr uint32_t all_paused_HASH = ConstExprHashingUtils::HashString("all-paused"); AutomationMode GetAutomationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == full_HASH) { return AutomationMode::full; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ClientPasswordAuthType.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ClientPasswordAuthType.cpp index 16315ddb9dc..97d44abe049 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ClientPasswordAuthType.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ClientPasswordAuthType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ClientPasswordAuthTypeMapper { - static const int MYSQL_NATIVE_PASSWORD_HASH = HashingUtils::HashString("MYSQL_NATIVE_PASSWORD"); - static const int POSTGRES_SCRAM_SHA_256_HASH = HashingUtils::HashString("POSTGRES_SCRAM_SHA_256"); - static const int POSTGRES_MD5_HASH = HashingUtils::HashString("POSTGRES_MD5"); - static const int SQL_SERVER_AUTHENTICATION_HASH = HashingUtils::HashString("SQL_SERVER_AUTHENTICATION"); + static constexpr uint32_t MYSQL_NATIVE_PASSWORD_HASH = ConstExprHashingUtils::HashString("MYSQL_NATIVE_PASSWORD"); + static constexpr uint32_t POSTGRES_SCRAM_SHA_256_HASH = ConstExprHashingUtils::HashString("POSTGRES_SCRAM_SHA_256"); + static constexpr uint32_t POSTGRES_MD5_HASH = ConstExprHashingUtils::HashString("POSTGRES_MD5"); + static constexpr uint32_t SQL_SERVER_AUTHENTICATION_HASH = ConstExprHashingUtils::HashString("SQL_SERVER_AUTHENTICATION"); ClientPasswordAuthType GetClientPasswordAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MYSQL_NATIVE_PASSWORD_HASH) { return ClientPasswordAuthType::MYSQL_NATIVE_PASSWORD; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/CustomEngineVersionStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/CustomEngineVersionStatus.cpp index c32c43e0207..1eb0109d982 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/CustomEngineVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/CustomEngineVersionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CustomEngineVersionStatusMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int inactive_HASH = HashingUtils::HashString("inactive"); - static const int inactive_except_restore_HASH = HashingUtils::HashString("inactive-except-restore"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t inactive_HASH = ConstExprHashingUtils::HashString("inactive"); + static constexpr uint32_t inactive_except_restore_HASH = ConstExprHashingUtils::HashString("inactive-except-restore"); CustomEngineVersionStatus GetCustomEngineVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return CustomEngineVersionStatus::available; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointStatus.cpp index b5efd44b0b3..999848055e9 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DBProxyEndpointStatusMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int incompatible_network_HASH = HashingUtils::HashString("incompatible-network"); - static const int insufficient_resource_limits_HASH = HashingUtils::HashString("insufficient-resource-limits"); - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t incompatible_network_HASH = ConstExprHashingUtils::HashString("incompatible-network"); + static constexpr uint32_t insufficient_resource_limits_HASH = ConstExprHashingUtils::HashString("insufficient-resource-limits"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); DBProxyEndpointStatus GetDBProxyEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return DBProxyEndpointStatus::available; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointTargetRole.cpp b/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointTargetRole.cpp index dc6c265f881..001029ee0c0 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointTargetRole.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/DBProxyEndpointTargetRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DBProxyEndpointTargetRoleMapper { - static const int READ_WRITE_HASH = HashingUtils::HashString("READ_WRITE"); - static const int READ_ONLY_HASH = HashingUtils::HashString("READ_ONLY"); + static constexpr uint32_t READ_WRITE_HASH = ConstExprHashingUtils::HashString("READ_WRITE"); + static constexpr uint32_t READ_ONLY_HASH = ConstExprHashingUtils::HashString("READ_ONLY"); DBProxyEndpointTargetRole GetDBProxyEndpointTargetRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_WRITE_HASH) { return DBProxyEndpointTargetRole::READ_WRITE; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/DBProxyStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/DBProxyStatus.cpp index 0968b2ee3c8..152411b33c7 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/DBProxyStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/DBProxyStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace DBProxyStatusMapper { - static const int available_HASH = HashingUtils::HashString("available"); - static const int modifying_HASH = HashingUtils::HashString("modifying"); - static const int incompatible_network_HASH = HashingUtils::HashString("incompatible-network"); - static const int insufficient_resource_limits_HASH = HashingUtils::HashString("insufficient-resource-limits"); - static const int creating_HASH = HashingUtils::HashString("creating"); - static const int deleting_HASH = HashingUtils::HashString("deleting"); - static const int suspended_HASH = HashingUtils::HashString("suspended"); - static const int suspending_HASH = HashingUtils::HashString("suspending"); - static const int reactivating_HASH = HashingUtils::HashString("reactivating"); + static constexpr uint32_t available_HASH = ConstExprHashingUtils::HashString("available"); + static constexpr uint32_t modifying_HASH = ConstExprHashingUtils::HashString("modifying"); + static constexpr uint32_t incompatible_network_HASH = ConstExprHashingUtils::HashString("incompatible-network"); + static constexpr uint32_t insufficient_resource_limits_HASH = ConstExprHashingUtils::HashString("insufficient-resource-limits"); + static constexpr uint32_t creating_HASH = ConstExprHashingUtils::HashString("creating"); + static constexpr uint32_t deleting_HASH = ConstExprHashingUtils::HashString("deleting"); + static constexpr uint32_t suspended_HASH = ConstExprHashingUtils::HashString("suspended"); + static constexpr uint32_t suspending_HASH = ConstExprHashingUtils::HashString("suspending"); + static constexpr uint32_t reactivating_HASH = ConstExprHashingUtils::HashString("reactivating"); DBProxyStatus GetDBProxyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == available_HASH) { return DBProxyStatus::available; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/EngineFamily.cpp b/generated/src/aws-cpp-sdk-rds/source/model/EngineFamily.cpp index f580f89556b..b9a63d40af3 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/EngineFamily.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/EngineFamily.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EngineFamilyMapper { - static const int MYSQL_HASH = HashingUtils::HashString("MYSQL"); - static const int POSTGRESQL_HASH = HashingUtils::HashString("POSTGRESQL"); - static const int SQLSERVER_HASH = HashingUtils::HashString("SQLSERVER"); + static constexpr uint32_t MYSQL_HASH = ConstExprHashingUtils::HashString("MYSQL"); + static constexpr uint32_t POSTGRESQL_HASH = ConstExprHashingUtils::HashString("POSTGRESQL"); + static constexpr uint32_t SQLSERVER_HASH = ConstExprHashingUtils::HashString("SQLSERVER"); EngineFamily GetEngineFamilyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MYSQL_HASH) { return EngineFamily::MYSQL; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ExportSourceType.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ExportSourceType.cpp index e571eb553a0..3920a9b158b 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ExportSourceType.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ExportSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportSourceTypeMapper { - static const int SNAPSHOT_HASH = HashingUtils::HashString("SNAPSHOT"); - static const int CLUSTER_HASH = HashingUtils::HashString("CLUSTER"); + static constexpr uint32_t SNAPSHOT_HASH = ConstExprHashingUtils::HashString("SNAPSHOT"); + static constexpr uint32_t CLUSTER_HASH = ConstExprHashingUtils::HashString("CLUSTER"); ExportSourceType GetExportSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SNAPSHOT_HASH) { return ExportSourceType::SNAPSHOT; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/FailoverStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/FailoverStatus.cpp index 67dfaaaa26c..b1a3f1e893f 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/FailoverStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/FailoverStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FailoverStatusMapper { - static const int pending_HASH = HashingUtils::HashString("pending"); - static const int failing_over_HASH = HashingUtils::HashString("failing-over"); - static const int cancelling_HASH = HashingUtils::HashString("cancelling"); + static constexpr uint32_t pending_HASH = ConstExprHashingUtils::HashString("pending"); + static constexpr uint32_t failing_over_HASH = ConstExprHashingUtils::HashString("failing-over"); + static constexpr uint32_t cancelling_HASH = ConstExprHashingUtils::HashString("cancelling"); FailoverStatus GetFailoverStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pending_HASH) { return FailoverStatus::pending; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/GlobalClusterMemberSynchronizationStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/GlobalClusterMemberSynchronizationStatus.cpp index d0d3f88506d..5201f324314 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/GlobalClusterMemberSynchronizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/GlobalClusterMemberSynchronizationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GlobalClusterMemberSynchronizationStatusMapper { - static const int connected_HASH = HashingUtils::HashString("connected"); - static const int pending_resync_HASH = HashingUtils::HashString("pending-resync"); + static constexpr uint32_t connected_HASH = ConstExprHashingUtils::HashString("connected"); + static constexpr uint32_t pending_resync_HASH = ConstExprHashingUtils::HashString("pending-resync"); GlobalClusterMemberSynchronizationStatus GetGlobalClusterMemberSynchronizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == connected_HASH) { return GlobalClusterMemberSynchronizationStatus::connected; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/IAMAuthMode.cpp b/generated/src/aws-cpp-sdk-rds/source/model/IAMAuthMode.cpp index c0cc07bb381..3aca33d66fe 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/IAMAuthMode.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/IAMAuthMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IAMAuthModeMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int REQUIRED_HASH = HashingUtils::HashString("REQUIRED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t REQUIRED_HASH = ConstExprHashingUtils::HashString("REQUIRED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); IAMAuthMode GetIAMAuthModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return IAMAuthMode::DISABLED; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/LocalWriteForwardingStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/LocalWriteForwardingStatus.cpp index 875dad21b12..eb55675e9e8 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/LocalWriteForwardingStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/LocalWriteForwardingStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LocalWriteForwardingStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int requested_HASH = HashingUtils::HashString("requested"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t requested_HASH = ConstExprHashingUtils::HashString("requested"); LocalWriteForwardingStatus GetLocalWriteForwardingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return LocalWriteForwardingStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/ReplicaMode.cpp b/generated/src/aws-cpp-sdk-rds/source/model/ReplicaMode.cpp index 1efb0287706..d9a120733a5 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/ReplicaMode.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/ReplicaMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicaModeMapper { - static const int open_read_only_HASH = HashingUtils::HashString("open-read-only"); - static const int mounted_HASH = HashingUtils::HashString("mounted"); + static constexpr uint32_t open_read_only_HASH = ConstExprHashingUtils::HashString("open-read-only"); + static constexpr uint32_t mounted_HASH = ConstExprHashingUtils::HashString("mounted"); ReplicaMode GetReplicaModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == open_read_only_HASH) { return ReplicaMode::open_read_only; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-rds/source/model/SourceType.cpp index 329209f30ee..a6012b601a7 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/SourceType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SourceTypeMapper { - static const int db_instance_HASH = HashingUtils::HashString("db-instance"); - static const int db_parameter_group_HASH = HashingUtils::HashString("db-parameter-group"); - static const int db_security_group_HASH = HashingUtils::HashString("db-security-group"); - static const int db_snapshot_HASH = HashingUtils::HashString("db-snapshot"); - static const int db_cluster_HASH = HashingUtils::HashString("db-cluster"); - static const int db_cluster_snapshot_HASH = HashingUtils::HashString("db-cluster-snapshot"); - static const int custom_engine_version_HASH = HashingUtils::HashString("custom-engine-version"); - static const int db_proxy_HASH = HashingUtils::HashString("db-proxy"); - static const int blue_green_deployment_HASH = HashingUtils::HashString("blue-green-deployment"); + static constexpr uint32_t db_instance_HASH = ConstExprHashingUtils::HashString("db-instance"); + static constexpr uint32_t db_parameter_group_HASH = ConstExprHashingUtils::HashString("db-parameter-group"); + static constexpr uint32_t db_security_group_HASH = ConstExprHashingUtils::HashString("db-security-group"); + static constexpr uint32_t db_snapshot_HASH = ConstExprHashingUtils::HashString("db-snapshot"); + static constexpr uint32_t db_cluster_HASH = ConstExprHashingUtils::HashString("db-cluster"); + static constexpr uint32_t db_cluster_snapshot_HASH = ConstExprHashingUtils::HashString("db-cluster-snapshot"); + static constexpr uint32_t custom_engine_version_HASH = ConstExprHashingUtils::HashString("custom-engine-version"); + static constexpr uint32_t db_proxy_HASH = ConstExprHashingUtils::HashString("db-proxy"); + static constexpr uint32_t blue_green_deployment_HASH = ConstExprHashingUtils::HashString("blue-green-deployment"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == db_instance_HASH) { return SourceType::db_instance; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/TargetHealthReason.cpp b/generated/src/aws-cpp-sdk-rds/source/model/TargetHealthReason.cpp index 508f5e5c41f..5e1349cc91b 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/TargetHealthReason.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/TargetHealthReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TargetHealthReasonMapper { - static const int UNREACHABLE_HASH = HashingUtils::HashString("UNREACHABLE"); - static const int CONNECTION_FAILED_HASH = HashingUtils::HashString("CONNECTION_FAILED"); - static const int AUTH_FAILURE_HASH = HashingUtils::HashString("AUTH_FAILURE"); - static const int PENDING_PROXY_CAPACITY_HASH = HashingUtils::HashString("PENDING_PROXY_CAPACITY"); - static const int INVALID_REPLICATION_STATE_HASH = HashingUtils::HashString("INVALID_REPLICATION_STATE"); + static constexpr uint32_t UNREACHABLE_HASH = ConstExprHashingUtils::HashString("UNREACHABLE"); + static constexpr uint32_t CONNECTION_FAILED_HASH = ConstExprHashingUtils::HashString("CONNECTION_FAILED"); + static constexpr uint32_t AUTH_FAILURE_HASH = ConstExprHashingUtils::HashString("AUTH_FAILURE"); + static constexpr uint32_t PENDING_PROXY_CAPACITY_HASH = ConstExprHashingUtils::HashString("PENDING_PROXY_CAPACITY"); + static constexpr uint32_t INVALID_REPLICATION_STATE_HASH = ConstExprHashingUtils::HashString("INVALID_REPLICATION_STATE"); TargetHealthReason GetTargetHealthReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNREACHABLE_HASH) { return TargetHealthReason::UNREACHABLE; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/TargetRole.cpp b/generated/src/aws-cpp-sdk-rds/source/model/TargetRole.cpp index c9bab67f792..e40077f4b72 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/TargetRole.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/TargetRole.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetRoleMapper { - static const int READ_WRITE_HASH = HashingUtils::HashString("READ_WRITE"); - static const int READ_ONLY_HASH = HashingUtils::HashString("READ_ONLY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t READ_WRITE_HASH = ConstExprHashingUtils::HashString("READ_WRITE"); + static constexpr uint32_t READ_ONLY_HASH = ConstExprHashingUtils::HashString("READ_ONLY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); TargetRole GetTargetRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READ_WRITE_HASH) { return TargetRole::READ_WRITE; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/TargetState.cpp b/generated/src/aws-cpp-sdk-rds/source/model/TargetState.cpp index a38002267e4..4788171d962 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/TargetState.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/TargetState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetStateMapper { - static const int REGISTERING_HASH = HashingUtils::HashString("REGISTERING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t REGISTERING_HASH = ConstExprHashingUtils::HashString("REGISTERING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); TargetState GetTargetStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTERING_HASH) { return TargetState::REGISTERING; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-rds/source/model/TargetType.cpp index b35d85c616f..d021419426c 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/TargetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetTypeMapper { - static const int RDS_INSTANCE_HASH = HashingUtils::HashString("RDS_INSTANCE"); - static const int RDS_SERVERLESS_ENDPOINT_HASH = HashingUtils::HashString("RDS_SERVERLESS_ENDPOINT"); - static const int TRACKED_CLUSTER_HASH = HashingUtils::HashString("TRACKED_CLUSTER"); + static constexpr uint32_t RDS_INSTANCE_HASH = ConstExprHashingUtils::HashString("RDS_INSTANCE"); + static constexpr uint32_t RDS_SERVERLESS_ENDPOINT_HASH = ConstExprHashingUtils::HashString("RDS_SERVERLESS_ENDPOINT"); + static constexpr uint32_t TRACKED_CLUSTER_HASH = ConstExprHashingUtils::HashString("TRACKED_CLUSTER"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RDS_INSTANCE_HASH) { return TargetType::RDS_INSTANCE; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/WriteForwardingStatus.cpp b/generated/src/aws-cpp-sdk-rds/source/model/WriteForwardingStatus.cpp index d743e6dd606..7a2cb9a6a60 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/WriteForwardingStatus.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/WriteForwardingStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WriteForwardingStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int enabling_HASH = HashingUtils::HashString("enabling"); - static const int disabling_HASH = HashingUtils::HashString("disabling"); - static const int unknown_HASH = HashingUtils::HashString("unknown"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t enabling_HASH = ConstExprHashingUtils::HashString("enabling"); + static constexpr uint32_t disabling_HASH = ConstExprHashingUtils::HashString("disabling"); + static constexpr uint32_t unknown_HASH = ConstExprHashingUtils::HashString("unknown"); WriteForwardingStatus GetWriteForwardingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return WriteForwardingStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceErrors.cpp b/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceErrors.cpp index daf27b0f671..4b3ea34edbc 100644 --- a/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceErrors.cpp @@ -40,16 +40,16 @@ template<> AWS_REDSHIFTDATAAPISERVICE_API ResourceNotFoundException RedshiftData namespace RedshiftDataAPIServiceErrorMapper { -static const int BATCH_EXECUTE_STATEMENT_HASH = HashingUtils::HashString("BatchExecuteStatementException"); -static const int EXECUTE_STATEMENT_HASH = HashingUtils::HashString("ExecuteStatementException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int DATABASE_CONNECTION_HASH = HashingUtils::HashString("DatabaseConnectionException"); -static const int ACTIVE_STATEMENTS_EXCEEDED_HASH = HashingUtils::HashString("ActiveStatementsExceededException"); +static constexpr uint32_t BATCH_EXECUTE_STATEMENT_HASH = ConstExprHashingUtils::HashString("BatchExecuteStatementException"); +static constexpr uint32_t EXECUTE_STATEMENT_HASH = ConstExprHashingUtils::HashString("ExecuteStatementException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t DATABASE_CONNECTION_HASH = ConstExprHashingUtils::HashString("DatabaseConnectionException"); +static constexpr uint32_t ACTIVE_STATEMENTS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ActiveStatementsExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == BATCH_EXECUTE_STATEMENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-redshift-data/source/model/StatementStatusString.cpp b/generated/src/aws-cpp-sdk-redshift-data/source/model/StatementStatusString.cpp index b3a4c93e0a5..5814ce950ad 100644 --- a/generated/src/aws-cpp-sdk-redshift-data/source/model/StatementStatusString.cpp +++ b/generated/src/aws-cpp-sdk-redshift-data/source/model/StatementStatusString.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StatementStatusStringMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int PICKED_HASH = HashingUtils::HashString("PICKED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t PICKED_HASH = ConstExprHashingUtils::HashString("PICKED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); StatementStatusString GetStatementStatusStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return StatementStatusString::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-redshift-data/source/model/StatusString.cpp b/generated/src/aws-cpp-sdk-redshift-data/source/model/StatusString.cpp index 01a0cf55c3c..0b59f1de2bc 100644 --- a/generated/src/aws-cpp-sdk-redshift-data/source/model/StatusString.cpp +++ b/generated/src/aws-cpp-sdk-redshift-data/source/model/StatusString.cpp @@ -20,18 +20,18 @@ namespace Aws namespace StatusStringMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int PICKED_HASH = HashingUtils::HashString("PICKED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t PICKED_HASH = ConstExprHashingUtils::HashString("PICKED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t FINISHED_HASH = ConstExprHashingUtils::HashString("FINISHED"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); StatusString GetStatusStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return StatusString::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessErrors.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessErrors.cpp index 2890fdea27b..af3d11f281e 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessErrors.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessErrors.cpp @@ -47,17 +47,17 @@ template<> AWS_REDSHIFTSERVERLESS_API AccessDeniedException RedshiftServerlessEr namespace RedshiftServerlessErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INSUFFICIENT_CAPACITY_HASH = HashingUtils::HashString("InsufficientCapacityException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int INVALID_PAGINATION_HASH = HashingUtils::HashString("InvalidPaginationException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INSUFFICIENT_CAPACITY_HASH = ConstExprHashingUtils::HashString("InsufficientCapacityException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t INVALID_PAGINATION_HASH = ConstExprHashingUtils::HashString("InvalidPaginationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/LogExport.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/LogExport.cpp index d769d2b59eb..450e4ebf67c 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/LogExport.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/LogExport.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LogExportMapper { - static const int useractivitylog_HASH = HashingUtils::HashString("useractivitylog"); - static const int userlog_HASH = HashingUtils::HashString("userlog"); - static const int connectionlog_HASH = HashingUtils::HashString("connectionlog"); + static constexpr uint32_t useractivitylog_HASH = ConstExprHashingUtils::HashString("useractivitylog"); + static constexpr uint32_t userlog_HASH = ConstExprHashingUtils::HashString("userlog"); + static constexpr uint32_t connectionlog_HASH = ConstExprHashingUtils::HashString("connectionlog"); LogExport GetLogExportForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == useractivitylog_HASH) { return LogExport::useractivitylog; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/NamespaceStatus.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/NamespaceStatus.cpp index 2316b9ad37a..8218b9aa23a 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/NamespaceStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/NamespaceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NamespaceStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int MODIFYING_HASH = HashingUtils::HashString("MODIFYING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t MODIFYING_HASH = ConstExprHashingUtils::HashString("MODIFYING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); NamespaceStatus GetNamespaceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return NamespaceStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/SnapshotStatus.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/SnapshotStatus.cpp index f00b28f8ff3..931f5447f74 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/SnapshotStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/SnapshotStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SnapshotStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COPYING_HASH = HashingUtils::HashString("COPYING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COPYING_HASH = ConstExprHashingUtils::HashString("COPYING"); SnapshotStatus GetSnapshotStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return SnapshotStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitBreachAction.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitBreachAction.cpp index 136c52cf518..8d0984a4932 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitBreachAction.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitBreachAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageLimitBreachActionMapper { - static const int log_HASH = HashingUtils::HashString("log"); - static const int emit_metric_HASH = HashingUtils::HashString("emit-metric"); - static const int deactivate_HASH = HashingUtils::HashString("deactivate"); + static constexpr uint32_t log_HASH = ConstExprHashingUtils::HashString("log"); + static constexpr uint32_t emit_metric_HASH = ConstExprHashingUtils::HashString("emit-metric"); + static constexpr uint32_t deactivate_HASH = ConstExprHashingUtils::HashString("deactivate"); UsageLimitBreachAction GetUsageLimitBreachActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == log_HASH) { return UsageLimitBreachAction::log; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitPeriod.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitPeriod.cpp index f62c0d30164..4807b6fa950 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitPeriod.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitPeriod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageLimitPeriodMapper { - static const int daily_HASH = HashingUtils::HashString("daily"); - static const int weekly_HASH = HashingUtils::HashString("weekly"); - static const int monthly_HASH = HashingUtils::HashString("monthly"); + static constexpr uint32_t daily_HASH = ConstExprHashingUtils::HashString("daily"); + static constexpr uint32_t weekly_HASH = ConstExprHashingUtils::HashString("weekly"); + static constexpr uint32_t monthly_HASH = ConstExprHashingUtils::HashString("monthly"); UsageLimitPeriod GetUsageLimitPeriodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == daily_HASH) { return UsageLimitPeriod::daily; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitUsageType.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitUsageType.cpp index b92894bb8b2..f4f517d2614 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitUsageType.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/UsageLimitUsageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UsageLimitUsageTypeMapper { - static const int serverless_compute_HASH = HashingUtils::HashString("serverless-compute"); - static const int cross_region_datasharing_HASH = HashingUtils::HashString("cross-region-datasharing"); + static constexpr uint32_t serverless_compute_HASH = ConstExprHashingUtils::HashString("serverless-compute"); + static constexpr uint32_t cross_region_datasharing_HASH = ConstExprHashingUtils::HashString("cross-region-datasharing"); UsageLimitUsageType GetUsageLimitUsageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == serverless_compute_HASH) { return UsageLimitUsageType::serverless_compute; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/WorkgroupStatus.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/WorkgroupStatus.cpp index 15824476e99..2246a0bfb23 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/model/WorkgroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/model/WorkgroupStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WorkgroupStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int MODIFYING_HASH = HashingUtils::HashString("MODIFYING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t MODIFYING_HASH = ConstExprHashingUtils::HashString("MODIFYING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); WorkgroupStatus GetWorkgroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return WorkgroupStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-redshift/source/RedshiftErrors.cpp b/generated/src/aws-cpp-sdk-redshift/source/RedshiftErrors.cpp index dec95c8bfd2..fe0a32a6a85 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/RedshiftErrors.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/RedshiftErrors.cpp @@ -18,134 +18,134 @@ namespace Redshift namespace RedshiftErrorMapper { -static const int AUTHENTICATION_PROFILE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("AuthenticationProfileNotFoundFault"); -static const int TABLE_RESTORE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("TableRestoreNotFoundFault"); -static const int INVALID_S3_KEY_PREFIX_FAULT_HASH = HashingUtils::HashString("InvalidS3KeyPrefixFault"); -static const int SCHEDULED_ACTION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ScheduledActionAlreadyExists"); -static const int SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionCategoryNotFound"); -static const int HSM_CLIENT_CERTIFICATE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("HsmClientCertificateNotFoundFault"); -static const int INVALID_DATA_SHARE_FAULT_HASH = HashingUtils::HashString("InvalidDataShareFault"); -static const int CLUSTER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterNotFound"); -static const int INVALID_TAG_FAULT_HASH = HashingUtils::HashString("InvalidTagFault"); -static const int CLUSTER_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterSnapshotQuotaExceeded"); -static const int RESERVED_NODE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ReservedNodeQuotaExceeded"); -static const int TABLE_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("TableLimitExceeded"); -static const int BATCH_DELETE_REQUEST_SIZE_EXCEEDED_FAULT_HASH = HashingUtils::HashString("BatchDeleteRequestSizeExceeded"); -static const int INVALID_SUBNET_HASH = HashingUtils::HashString("InvalidSubnet"); -static const int INVALID_CLUSTER_TRACK_FAULT_HASH = HashingUtils::HashString("InvalidClusterTrack"); -static const int INVALID_SNAPSHOT_COPY_GRANT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidSnapshotCopyGrantStateFault"); -static const int INVALID_ELASTIC_IP_FAULT_HASH = HashingUtils::HashString("InvalidElasticIpFault"); -static const int ENDPOINT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("EndpointAlreadyExists"); -static const int SNAPSHOT_COPY_GRANT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("SnapshotCopyGrantAlreadyExistsFault"); -static const int AUTHENTICATION_PROFILE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("AuthenticationProfileQuotaExceededFault"); -static const int SUBNET_ALREADY_IN_USE_HASH = HashingUtils::HashString("SubnetAlreadyInUse"); -static const int CUSTOM_CNAME_ASSOCIATION_FAULT_HASH = HashingUtils::HashString("CustomCnameAssociationFault"); -static const int SNAPSHOT_SCHEDULE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("SnapshotScheduleAlreadyExists"); -static const int CLUSTER_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterSubnetQuotaExceededFault"); -static const int CLUSTER_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterSecurityGroupNotFound"); -static const int INVALID_SCHEDULE_FAULT_HASH = HashingUtils::HashString("InvalidSchedule"); -static const int ENDPOINT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("EndpointNotFound"); -static const int ENDPOINT_AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("EndpointAuthorizationAlreadyExists"); -static const int INVALID_CLUSTER_SNAPSHOT_SCHEDULE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterSnapshotScheduleState"); -static const int CLUSTER_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterAlreadyExists"); -static const int INVALID_USAGE_LIMIT_FAULT_HASH = HashingUtils::HashString("InvalidUsageLimit"); -static const int CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterSnapshotNotFound"); -static const int INVALID_CLUSTER_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterState"); -static const int INVALID_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterSnapshotState"); -static const int SCHEDULE_DEFINITION_TYPE_UNSUPPORTED_FAULT_HASH = HashingUtils::HashString("ScheduleDefinitionTypeUnsupported"); -static const int AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("AuthorizationAlreadyExists"); -static const int SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = HashingUtils::HashString("SubscriptionAlreadyExist"); -static const int SNAPSHOT_SCHEDULE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotScheduleQuotaExceeded"); -static const int INCOMPATIBLE_ORDERABLE_OPTIONS_HASH = HashingUtils::HashString("IncompatibleOrderableOptions"); -static const int SNAPSHOT_COPY_ALREADY_ENABLED_FAULT_HASH = HashingUtils::HashString("SnapshotCopyAlreadyEnabledFault"); -static const int RESERVED_NODE_OFFERING_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedNodeOfferingNotFound"); -static const int UNAUTHORIZED_OPERATION_HASH = HashingUtils::HashString("UnauthorizedOperation"); -static const int SUBSCRIPTION_SEVERITY_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionSeverityNotFound"); -static const int SUBSCRIPTION_EVENT_ID_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionEventIdNotFound"); -static const int HSM_CLIENT_CERTIFICATE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("HsmClientCertificateAlreadyExistsFault"); -static const int IN_PROGRESS_TABLE_RESTORE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("InProgressTableRestoreQuotaExceededFault"); -static const int S_N_S_INVALID_TOPIC_FAULT_HASH = HashingUtils::HashString("SNSInvalidTopic"); -static const int BUCKET_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("BucketNotFoundFault"); -static const int INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = HashingUtils::HashString("InvalidVPCNetworkStateFault"); -static const int AUTHORIZATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("AuthorizationNotFound"); -static const int AUTHORIZATION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("AuthorizationQuotaExceeded"); -static const int HSM_CONFIGURATION_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("HsmConfigurationAlreadyExistsFault"); -static const int UNAUTHORIZED_PARTNER_INTEGRATION_FAULT_HASH = HashingUtils::HashString("UnauthorizedPartnerIntegration"); -static const int RESERVED_NODE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ReservedNodeAlreadyExists"); -static const int HSM_CLIENT_CERTIFICATE_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("HsmClientCertificateQuotaExceededFault"); -static const int HSM_CONFIGURATION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("HsmConfigurationQuotaExceededFault"); -static const int ENDPOINT_AUTHORIZATIONS_PER_CLUSTER_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EndpointAuthorizationsPerClusterLimitExceeded"); -static const int SUBSCRIPTION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SubscriptionNotFound"); -static const int CLUSTER_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterSubnetGroupQuotaExceeded"); -static const int INVALID_SCHEDULED_ACTION_FAULT_HASH = HashingUtils::HashString("InvalidScheduledAction"); -static const int SNAPSHOT_COPY_ALREADY_DISABLED_FAULT_HASH = HashingUtils::HashString("SnapshotCopyAlreadyDisabledFault"); -static const int UNKNOWN_SNAPSHOT_COPY_REGION_FAULT_HASH = HashingUtils::HashString("UnknownSnapshotCopyRegionFault"); -static const int SNAPSHOT_SCHEDULE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SnapshotScheduleNotFound"); -static const int USAGE_LIMIT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("UsageLimitAlreadyExists"); -static const int INVALID_TABLE_RESTORE_ARGUMENT_FAULT_HASH = HashingUtils::HashString("InvalidTableRestoreArgument"); -static const int PARTNER_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("PartnerNotFound"); -static const int ENDPOINT_AUTHORIZATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("EndpointAuthorizationNotFound"); -static const int ACCESS_TO_CLUSTER_DENIED_FAULT_HASH = HashingUtils::HashString("AccessToClusterDenied"); -static const int UNSUPPORTED_OPTION_FAULT_HASH = HashingUtils::HashString("UnsupportedOptionFault"); -static const int SNAPSHOT_COPY_GRANT_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("SnapshotCopyGrantQuotaExceededFault"); -static const int INSUFFICIENT_S3_BUCKET_POLICY_FAULT_HASH = HashingUtils::HashString("InsufficientS3BucketPolicyFault"); -static const int RESERVED_NODE_EXCHANGE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedNodeExchangeNotFond"); -static const int RESIZE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ResizeNotFound"); -static const int INVALID_NAMESPACE_FAULT_HASH = HashingUtils::HashString("InvalidNamespaceFault"); -static const int INVALID_ENDPOINT_STATE_FAULT_HASH = HashingUtils::HashString("InvalidEndpointState"); -static const int INVALID_HSM_CONFIGURATION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidHsmConfigurationStateFault"); -static const int INVALID_RETENTION_PERIOD_FAULT_HASH = HashingUtils::HashString("InvalidRetentionPeriodFault"); -static const int HSM_CONFIGURATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("HsmConfigurationNotFoundFault"); -static const int ENDPOINTS_PER_AUTHORIZATION_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EndpointsPerAuthorizationLimitExceeded"); -static const int SCHEDULED_ACTION_TYPE_UNSUPPORTED_FAULT_HASH = HashingUtils::HashString("ScheduledActionTypeUnsupported"); -static const int CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterQuotaExceeded"); -static const int CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterSnapshotAlreadyExists"); -static const int INSUFFICIENT_CLUSTER_CAPACITY_FAULT_HASH = HashingUtils::HashString("InsufficientClusterCapacity"); -static const int SNAPSHOT_SCHEDULE_UPDATE_IN_PROGRESS_FAULT_HASH = HashingUtils::HashString("SnapshotScheduleUpdateInProgress"); -static const int EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EventSubscriptionQuotaExceeded"); -static const int INVALID_AUTHENTICATION_PROFILE_REQUEST_FAULT_HASH = HashingUtils::HashString("InvalidAuthenticationProfileRequestFault"); -static const int SCHEDULED_ACTION_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ScheduledActionQuotaExceeded"); -static const int CUSTOM_DOMAIN_ASSOCIATION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("CustomDomainAssociationNotFoundFault"); -static const int SCHEDULED_ACTION_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ScheduledActionNotFound"); -static const int INVALID_CLUSTER_SUBNET_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterSubnetStateFault"); -static const int INVALID_SUBSCRIPTION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidSubscriptionStateFault"); -static const int INVALID_AUTHORIZATION_STATE_FAULT_HASH = HashingUtils::HashString("InvalidAuthorizationState"); -static const int CLUSTER_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterParameterGroupAlreadyExists"); -static const int INVALID_RESERVED_NODE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidReservedNodeState"); -static const int CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterParameterGroupNotFound"); -static const int SNAPSHOT_COPY_GRANT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SnapshotCopyGrantNotFoundFault"); -static const int DEPENDENT_SERVICE_UNAVAILABLE_FAULT_HASH = HashingUtils::HashString("DependentServiceUnavailableFault"); -static const int INVALID_HSM_CLIENT_CERTIFICATE_STATE_FAULT_HASH = HashingUtils::HashString("InvalidHsmClientCertificateStateFault"); -static const int ACCESS_TO_SNAPSHOT_DENIED_FAULT_HASH = HashingUtils::HashString("AccessToSnapshotDenied"); -static const int RESOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ResourceNotFoundFault"); -static const int AUTHENTICATION_PROFILE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("AuthenticationProfileAlreadyExistsFault"); -static const int SNAPSHOT_COPY_DISABLED_FAULT_HASH = HashingUtils::HashString("SnapshotCopyDisabledFault"); -static const int BATCH_MODIFY_CLUSTER_SNAPSHOTS_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("BatchModifyClusterSnapshotsLimitExceededFault"); -static const int CLUSTER_ON_LATEST_REVISION_FAULT_HASH = HashingUtils::HashString("ClusterOnLatestRevision"); -static const int CLUSTER_SECURITY_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterSecurityGroupAlreadyExists"); -static const int USAGE_LIMIT_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("UsageLimitNotFound"); -static const int CLUSTER_SECURITY_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("QuotaExceeded.ClusterSecurityGroup"); -static const int COPY_TO_REGION_DISABLED_FAULT_HASH = HashingUtils::HashString("CopyToRegionDisabledFault"); -static const int NUMBER_OF_NODES_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NumberOfNodesQuotaExceeded"); -static const int S_N_S_NO_AUTHORIZATION_FAULT_HASH = HashingUtils::HashString("SNSNoAuthorization"); -static const int INVALID_CLUSTER_PARAMETER_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterParameterGroupState"); -static const int INVALID_RESTORE_FAULT_HASH = HashingUtils::HashString("InvalidRestore"); -static const int LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("LimitExceededFault"); -static const int S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SNSTopicArnNotFound"); -static const int INVALID_S3_BUCKET_NAME_FAULT_HASH = HashingUtils::HashString("InvalidS3BucketNameFault"); -static const int NUMBER_OF_NODES_PER_CLUSTER_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("NumberOfNodesPerClusterLimitExceeded"); -static const int CLUSTER_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = HashingUtils::HashString("ClusterParameterGroupQuotaExceeded"); -static const int RESERVED_NODE_ALREADY_MIGRATED_FAULT_HASH = HashingUtils::HashString("ReservedNodeAlreadyMigrated"); -static const int ENDPOINTS_PER_CLUSTER_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("EndpointsPerClusterLimitExceeded"); -static const int DEPENDENT_SERVICE_REQUEST_THROTTLING_FAULT_HASH = HashingUtils::HashString("DependentServiceRequestThrottlingFault"); -static const int INVALID_CLUSTER_SUBNET_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterSubnetGroupStateFault"); -static const int UNSUPPORTED_OPERATION_FAULT_HASH = HashingUtils::HashString("UnsupportedOperation"); -static const int TAG_LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("TagLimitExceededFault"); -static const int INVALID_CLUSTER_SECURITY_GROUP_STATE_FAULT_HASH = HashingUtils::HashString("InvalidClusterSecurityGroupState"); -static const int CLUSTER_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ClusterSubnetGroupNotFoundFault"); -static const int SOURCE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("SourceNotFound"); -static const int CLUSTER_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("ClusterSubnetGroupAlreadyExists"); -static const int RESERVED_NODE_NOT_FOUND_FAULT_HASH = HashingUtils::HashString("ReservedNodeNotFound"); +static constexpr uint32_t AUTHENTICATION_PROFILE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("AuthenticationProfileNotFoundFault"); +static constexpr uint32_t TABLE_RESTORE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("TableRestoreNotFoundFault"); +static constexpr uint32_t INVALID_S3_KEY_PREFIX_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidS3KeyPrefixFault"); +static constexpr uint32_t SCHEDULED_ACTION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ScheduledActionAlreadyExists"); +static constexpr uint32_t SUBSCRIPTION_CATEGORY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionCategoryNotFound"); +static constexpr uint32_t HSM_CLIENT_CERTIFICATE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("HsmClientCertificateNotFoundFault"); +static constexpr uint32_t INVALID_DATA_SHARE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidDataShareFault"); +static constexpr uint32_t CLUSTER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterNotFound"); +static constexpr uint32_t INVALID_TAG_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidTagFault"); +static constexpr uint32_t CLUSTER_SNAPSHOT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSnapshotQuotaExceeded"); +static constexpr uint32_t RESERVED_NODE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeQuotaExceeded"); +static constexpr uint32_t TABLE_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("TableLimitExceeded"); +static constexpr uint32_t BATCH_DELETE_REQUEST_SIZE_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("BatchDeleteRequestSizeExceeded"); +static constexpr uint32_t INVALID_SUBNET_HASH = ConstExprHashingUtils::HashString("InvalidSubnet"); +static constexpr uint32_t INVALID_CLUSTER_TRACK_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterTrack"); +static constexpr uint32_t INVALID_SNAPSHOT_COPY_GRANT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidSnapshotCopyGrantStateFault"); +static constexpr uint32_t INVALID_ELASTIC_IP_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidElasticIpFault"); +static constexpr uint32_t ENDPOINT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointAlreadyExists"); +static constexpr uint32_t SNAPSHOT_COPY_GRANT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotCopyGrantAlreadyExistsFault"); +static constexpr uint32_t AUTHENTICATION_PROFILE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("AuthenticationProfileQuotaExceededFault"); +static constexpr uint32_t SUBNET_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("SubnetAlreadyInUse"); +static constexpr uint32_t CUSTOM_CNAME_ASSOCIATION_FAULT_HASH = ConstExprHashingUtils::HashString("CustomCnameAssociationFault"); +static constexpr uint32_t SNAPSHOT_SCHEDULE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotScheduleAlreadyExists"); +static constexpr uint32_t CLUSTER_SUBNET_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSubnetQuotaExceededFault"); +static constexpr uint32_t CLUSTER_SECURITY_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSecurityGroupNotFound"); +static constexpr uint32_t INVALID_SCHEDULE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidSchedule"); +static constexpr uint32_t ENDPOINT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointNotFound"); +static constexpr uint32_t ENDPOINT_AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointAuthorizationAlreadyExists"); +static constexpr uint32_t INVALID_CLUSTER_SNAPSHOT_SCHEDULE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterSnapshotScheduleState"); +static constexpr uint32_t CLUSTER_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterAlreadyExists"); +static constexpr uint32_t INVALID_USAGE_LIMIT_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidUsageLimit"); +static constexpr uint32_t CLUSTER_SNAPSHOT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSnapshotNotFound"); +static constexpr uint32_t INVALID_CLUSTER_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterState"); +static constexpr uint32_t INVALID_CLUSTER_SNAPSHOT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterSnapshotState"); +static constexpr uint32_t SCHEDULE_DEFINITION_TYPE_UNSUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("ScheduleDefinitionTypeUnsupported"); +static constexpr uint32_t AUTHORIZATION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationAlreadyExists"); +static constexpr uint32_t SUBSCRIPTION_ALREADY_EXIST_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionAlreadyExist"); +static constexpr uint32_t SNAPSHOT_SCHEDULE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotScheduleQuotaExceeded"); +static constexpr uint32_t INCOMPATIBLE_ORDERABLE_OPTIONS_HASH = ConstExprHashingUtils::HashString("IncompatibleOrderableOptions"); +static constexpr uint32_t SNAPSHOT_COPY_ALREADY_ENABLED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotCopyAlreadyEnabledFault"); +static constexpr uint32_t RESERVED_NODE_OFFERING_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeOfferingNotFound"); +static constexpr uint32_t UNAUTHORIZED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnauthorizedOperation"); +static constexpr uint32_t SUBSCRIPTION_SEVERITY_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionSeverityNotFound"); +static constexpr uint32_t SUBSCRIPTION_EVENT_ID_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionEventIdNotFound"); +static constexpr uint32_t HSM_CLIENT_CERTIFICATE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("HsmClientCertificateAlreadyExistsFault"); +static constexpr uint32_t IN_PROGRESS_TABLE_RESTORE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("InProgressTableRestoreQuotaExceededFault"); +static constexpr uint32_t S_N_S_INVALID_TOPIC_FAULT_HASH = ConstExprHashingUtils::HashString("SNSInvalidTopic"); +static constexpr uint32_t BUCKET_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("BucketNotFoundFault"); +static constexpr uint32_t INVALID_V_P_C_NETWORK_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidVPCNetworkStateFault"); +static constexpr uint32_t AUTHORIZATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationNotFound"); +static constexpr uint32_t AUTHORIZATION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("AuthorizationQuotaExceeded"); +static constexpr uint32_t HSM_CONFIGURATION_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("HsmConfigurationAlreadyExistsFault"); +static constexpr uint32_t UNAUTHORIZED_PARTNER_INTEGRATION_FAULT_HASH = ConstExprHashingUtils::HashString("UnauthorizedPartnerIntegration"); +static constexpr uint32_t RESERVED_NODE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeAlreadyExists"); +static constexpr uint32_t HSM_CLIENT_CERTIFICATE_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("HsmClientCertificateQuotaExceededFault"); +static constexpr uint32_t HSM_CONFIGURATION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("HsmConfigurationQuotaExceededFault"); +static constexpr uint32_t ENDPOINT_AUTHORIZATIONS_PER_CLUSTER_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointAuthorizationsPerClusterLimitExceeded"); +static constexpr uint32_t SUBSCRIPTION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SubscriptionNotFound"); +static constexpr uint32_t CLUSTER_SUBNET_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSubnetGroupQuotaExceeded"); +static constexpr uint32_t INVALID_SCHEDULED_ACTION_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidScheduledAction"); +static constexpr uint32_t SNAPSHOT_COPY_ALREADY_DISABLED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotCopyAlreadyDisabledFault"); +static constexpr uint32_t UNKNOWN_SNAPSHOT_COPY_REGION_FAULT_HASH = ConstExprHashingUtils::HashString("UnknownSnapshotCopyRegionFault"); +static constexpr uint32_t SNAPSHOT_SCHEDULE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotScheduleNotFound"); +static constexpr uint32_t USAGE_LIMIT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("UsageLimitAlreadyExists"); +static constexpr uint32_t INVALID_TABLE_RESTORE_ARGUMENT_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidTableRestoreArgument"); +static constexpr uint32_t PARTNER_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("PartnerNotFound"); +static constexpr uint32_t ENDPOINT_AUTHORIZATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointAuthorizationNotFound"); +static constexpr uint32_t ACCESS_TO_CLUSTER_DENIED_FAULT_HASH = ConstExprHashingUtils::HashString("AccessToClusterDenied"); +static constexpr uint32_t UNSUPPORTED_OPTION_FAULT_HASH = ConstExprHashingUtils::HashString("UnsupportedOptionFault"); +static constexpr uint32_t SNAPSHOT_COPY_GRANT_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotCopyGrantQuotaExceededFault"); +static constexpr uint32_t INSUFFICIENT_S3_BUCKET_POLICY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientS3BucketPolicyFault"); +static constexpr uint32_t RESERVED_NODE_EXCHANGE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeExchangeNotFond"); +static constexpr uint32_t RESIZE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ResizeNotFound"); +static constexpr uint32_t INVALID_NAMESPACE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidNamespaceFault"); +static constexpr uint32_t INVALID_ENDPOINT_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidEndpointState"); +static constexpr uint32_t INVALID_HSM_CONFIGURATION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidHsmConfigurationStateFault"); +static constexpr uint32_t INVALID_RETENTION_PERIOD_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidRetentionPeriodFault"); +static constexpr uint32_t HSM_CONFIGURATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("HsmConfigurationNotFoundFault"); +static constexpr uint32_t ENDPOINTS_PER_AUTHORIZATION_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointsPerAuthorizationLimitExceeded"); +static constexpr uint32_t SCHEDULED_ACTION_TYPE_UNSUPPORTED_FAULT_HASH = ConstExprHashingUtils::HashString("ScheduledActionTypeUnsupported"); +static constexpr uint32_t CLUSTER_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterQuotaExceeded"); +static constexpr uint32_t CLUSTER_SNAPSHOT_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSnapshotAlreadyExists"); +static constexpr uint32_t INSUFFICIENT_CLUSTER_CAPACITY_FAULT_HASH = ConstExprHashingUtils::HashString("InsufficientClusterCapacity"); +static constexpr uint32_t SNAPSHOT_SCHEDULE_UPDATE_IN_PROGRESS_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotScheduleUpdateInProgress"); +static constexpr uint32_t EVENT_SUBSCRIPTION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EventSubscriptionQuotaExceeded"); +static constexpr uint32_t INVALID_AUTHENTICATION_PROFILE_REQUEST_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidAuthenticationProfileRequestFault"); +static constexpr uint32_t SCHEDULED_ACTION_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ScheduledActionQuotaExceeded"); +static constexpr uint32_t CUSTOM_DOMAIN_ASSOCIATION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("CustomDomainAssociationNotFoundFault"); +static constexpr uint32_t SCHEDULED_ACTION_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ScheduledActionNotFound"); +static constexpr uint32_t INVALID_CLUSTER_SUBNET_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterSubnetStateFault"); +static constexpr uint32_t INVALID_SUBSCRIPTION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidSubscriptionStateFault"); +static constexpr uint32_t INVALID_AUTHORIZATION_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidAuthorizationState"); +static constexpr uint32_t CLUSTER_PARAMETER_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterParameterGroupAlreadyExists"); +static constexpr uint32_t INVALID_RESERVED_NODE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidReservedNodeState"); +static constexpr uint32_t CLUSTER_PARAMETER_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterParameterGroupNotFound"); +static constexpr uint32_t SNAPSHOT_COPY_GRANT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotCopyGrantNotFoundFault"); +static constexpr uint32_t DEPENDENT_SERVICE_UNAVAILABLE_FAULT_HASH = ConstExprHashingUtils::HashString("DependentServiceUnavailableFault"); +static constexpr uint32_t INVALID_HSM_CLIENT_CERTIFICATE_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidHsmClientCertificateStateFault"); +static constexpr uint32_t ACCESS_TO_SNAPSHOT_DENIED_FAULT_HASH = ConstExprHashingUtils::HashString("AccessToSnapshotDenied"); +static constexpr uint32_t RESOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ResourceNotFoundFault"); +static constexpr uint32_t AUTHENTICATION_PROFILE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("AuthenticationProfileAlreadyExistsFault"); +static constexpr uint32_t SNAPSHOT_COPY_DISABLED_FAULT_HASH = ConstExprHashingUtils::HashString("SnapshotCopyDisabledFault"); +static constexpr uint32_t BATCH_MODIFY_CLUSTER_SNAPSHOTS_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("BatchModifyClusterSnapshotsLimitExceededFault"); +static constexpr uint32_t CLUSTER_ON_LATEST_REVISION_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterOnLatestRevision"); +static constexpr uint32_t CLUSTER_SECURITY_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSecurityGroupAlreadyExists"); +static constexpr uint32_t USAGE_LIMIT_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("UsageLimitNotFound"); +static constexpr uint32_t CLUSTER_SECURITY_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("QuotaExceeded.ClusterSecurityGroup"); +static constexpr uint32_t COPY_TO_REGION_DISABLED_FAULT_HASH = ConstExprHashingUtils::HashString("CopyToRegionDisabledFault"); +static constexpr uint32_t NUMBER_OF_NODES_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NumberOfNodesQuotaExceeded"); +static constexpr uint32_t S_N_S_NO_AUTHORIZATION_FAULT_HASH = ConstExprHashingUtils::HashString("SNSNoAuthorization"); +static constexpr uint32_t INVALID_CLUSTER_PARAMETER_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterParameterGroupState"); +static constexpr uint32_t INVALID_RESTORE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidRestore"); +static constexpr uint32_t LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("LimitExceededFault"); +static constexpr uint32_t S_N_S_TOPIC_ARN_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SNSTopicArnNotFound"); +static constexpr uint32_t INVALID_S3_BUCKET_NAME_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidS3BucketNameFault"); +static constexpr uint32_t NUMBER_OF_NODES_PER_CLUSTER_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("NumberOfNodesPerClusterLimitExceeded"); +static constexpr uint32_t CLUSTER_PARAMETER_GROUP_QUOTA_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterParameterGroupQuotaExceeded"); +static constexpr uint32_t RESERVED_NODE_ALREADY_MIGRATED_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeAlreadyMigrated"); +static constexpr uint32_t ENDPOINTS_PER_CLUSTER_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("EndpointsPerClusterLimitExceeded"); +static constexpr uint32_t DEPENDENT_SERVICE_REQUEST_THROTTLING_FAULT_HASH = ConstExprHashingUtils::HashString("DependentServiceRequestThrottlingFault"); +static constexpr uint32_t INVALID_CLUSTER_SUBNET_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterSubnetGroupStateFault"); +static constexpr uint32_t UNSUPPORTED_OPERATION_FAULT_HASH = ConstExprHashingUtils::HashString("UnsupportedOperation"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("TagLimitExceededFault"); +static constexpr uint32_t INVALID_CLUSTER_SECURITY_GROUP_STATE_FAULT_HASH = ConstExprHashingUtils::HashString("InvalidClusterSecurityGroupState"); +static constexpr uint32_t CLUSTER_SUBNET_GROUP_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSubnetGroupNotFoundFault"); +static constexpr uint32_t SOURCE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("SourceNotFound"); +static constexpr uint32_t CLUSTER_SUBNET_GROUP_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("ClusterSubnetGroupAlreadyExists"); +static constexpr uint32_t RESERVED_NODE_NOT_FOUND_FAULT_HASH = ConstExprHashingUtils::HashString("ReservedNodeNotFound"); /* @@ -154,7 +154,7 @@ which allows constant time lookup. The chain has been broken into helper functio because MSVC has a maximum of 122 chained if-else blocks. */ -static bool GetErrorForNameHelper0(int hashCode, AWSError& error) +static bool GetErrorForNameHelper0(uint32_t hashCode, AWSError& error) { if (hashCode == AUTHENTICATION_PROFILE_NOT_FOUND_FAULT_HASH) { @@ -769,7 +769,7 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) return false; } -static bool GetErrorForNameHelper1(int hashCode, AWSError& error) +static bool GetErrorForNameHelper1(uint32_t hashCode, AWSError& error) { if (hashCode == TAG_LIMIT_EXCEEDED_FAULT_HASH) { @@ -806,7 +806,7 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ActionType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ActionType.cpp index dc26cedeed8..14a431ec19e 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ActionType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionTypeMapper { - static const int restore_cluster_HASH = HashingUtils::HashString("restore-cluster"); - static const int recommend_node_config_HASH = HashingUtils::HashString("recommend-node-config"); - static const int resize_cluster_HASH = HashingUtils::HashString("resize-cluster"); + static constexpr uint32_t restore_cluster_HASH = ConstExprHashingUtils::HashString("restore-cluster"); + static constexpr uint32_t recommend_node_config_HASH = ConstExprHashingUtils::HashString("recommend-node-config"); + static constexpr uint32_t resize_cluster_HASH = ConstExprHashingUtils::HashString("resize-cluster"); ActionType GetActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == restore_cluster_HASH) { return ActionType::restore_cluster; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/AquaConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/AquaConfigurationStatus.cpp index 7f0db3fea5a..ec46e7b5578 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/AquaConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/AquaConfigurationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AquaConfigurationStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int auto__HASH = HashingUtils::HashString("auto"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t auto__HASH = ConstExprHashingUtils::HashString("auto"); AquaConfigurationStatus GetAquaConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return AquaConfigurationStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/AquaStatus.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/AquaStatus.cpp index bc3c34d74b9..b7e25b6086f 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/AquaStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/AquaStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AquaStatusMapper { - static const int enabled_HASH = HashingUtils::HashString("enabled"); - static const int disabled_HASH = HashingUtils::HashString("disabled"); - static const int applying_HASH = HashingUtils::HashString("applying"); + static constexpr uint32_t enabled_HASH = ConstExprHashingUtils::HashString("enabled"); + static constexpr uint32_t disabled_HASH = ConstExprHashingUtils::HashString("disabled"); + static constexpr uint32_t applying_HASH = ConstExprHashingUtils::HashString("applying"); AquaStatus GetAquaStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == enabled_HASH) { return AquaStatus::enabled; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/AuthorizationStatus.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/AuthorizationStatus.cpp index 5172d4ccb77..4e988537b30 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/AuthorizationStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/AuthorizationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthorizationStatusMapper { - static const int Authorized_HASH = HashingUtils::HashString("Authorized"); - static const int Revoking_HASH = HashingUtils::HashString("Revoking"); + static constexpr uint32_t Authorized_HASH = ConstExprHashingUtils::HashString("Authorized"); + static constexpr uint32_t Revoking_HASH = ConstExprHashingUtils::HashString("Revoking"); AuthorizationStatus GetAuthorizationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Authorized_HASH) { return AuthorizationStatus::Authorized; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatus.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatus.cpp index f9f18278bf2..50be786c452 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DataShareStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_AUTHORIZATION_HASH = HashingUtils::HashString("PENDING_AUTHORIZATION"); - static const int AUTHORIZED_HASH = HashingUtils::HashString("AUTHORIZED"); - static const int DEAUTHORIZED_HASH = HashingUtils::HashString("DEAUTHORIZED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_AUTHORIZATION_HASH = ConstExprHashingUtils::HashString("PENDING_AUTHORIZATION"); + static constexpr uint32_t AUTHORIZED_HASH = ConstExprHashingUtils::HashString("AUTHORIZED"); + static constexpr uint32_t DEAUTHORIZED_HASH = ConstExprHashingUtils::HashString("DEAUTHORIZED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); DataShareStatus GetDataShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DataShareStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForConsumer.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForConsumer.cpp index a7c6b0dd59c..90d7d5bde10 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForConsumer.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForConsumer.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataShareStatusForConsumerMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); DataShareStatusForConsumer GetDataShareStatusForConsumerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DataShareStatusForConsumer::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForProducer.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForProducer.cpp index cd981cb51e7..b3c18f3dba1 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForProducer.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/DataShareStatusForProducer.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DataShareStatusForProducerMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int AUTHORIZED_HASH = HashingUtils::HashString("AUTHORIZED"); - static const int PENDING_AUTHORIZATION_HASH = HashingUtils::HashString("PENDING_AUTHORIZATION"); - static const int DEAUTHORIZED_HASH = HashingUtils::HashString("DEAUTHORIZED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t AUTHORIZED_HASH = ConstExprHashingUtils::HashString("AUTHORIZED"); + static constexpr uint32_t PENDING_AUTHORIZATION_HASH = ConstExprHashingUtils::HashString("PENDING_AUTHORIZATION"); + static constexpr uint32_t DEAUTHORIZED_HASH = ConstExprHashingUtils::HashString("DEAUTHORIZED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); DataShareStatusForProducer GetDataShareStatusForProducerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DataShareStatusForProducer::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/LogDestinationType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/LogDestinationType.cpp index 2e831e9e5f6..6a5ee68ba2e 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/LogDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/LogDestinationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogDestinationTypeMapper { - static const int s3_HASH = HashingUtils::HashString("s3"); - static const int cloudwatch_HASH = HashingUtils::HashString("cloudwatch"); + static constexpr uint32_t s3_HASH = ConstExprHashingUtils::HashString("s3"); + static constexpr uint32_t cloudwatch_HASH = ConstExprHashingUtils::HashString("cloudwatch"); LogDestinationType GetLogDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s3_HASH) { return LogDestinationType::s3; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/Mode.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/Mode.cpp index 185a942e538..a8b08507869 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/Mode.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/Mode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModeMapper { - static const int standard_HASH = HashingUtils::HashString("standard"); - static const int high_performance_HASH = HashingUtils::HashString("high-performance"); + static constexpr uint32_t standard_HASH = ConstExprHashingUtils::HashString("standard"); + static constexpr uint32_t high_performance_HASH = ConstExprHashingUtils::HashString("high-performance"); Mode GetModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == standard_HASH) { return Mode::standard; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/NodeConfigurationOptionsFilterName.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/NodeConfigurationOptionsFilterName.cpp index c7fd2c840b3..2f38a35bbfa 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/NodeConfigurationOptionsFilterName.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/NodeConfigurationOptionsFilterName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace NodeConfigurationOptionsFilterNameMapper { - static const int NodeType_HASH = HashingUtils::HashString("NodeType"); - static const int NumberOfNodes_HASH = HashingUtils::HashString("NumberOfNodes"); - static const int EstimatedDiskUtilizationPercent_HASH = HashingUtils::HashString("EstimatedDiskUtilizationPercent"); - static const int Mode_HASH = HashingUtils::HashString("Mode"); + static constexpr uint32_t NodeType_HASH = ConstExprHashingUtils::HashString("NodeType"); + static constexpr uint32_t NumberOfNodes_HASH = ConstExprHashingUtils::HashString("NumberOfNodes"); + static constexpr uint32_t EstimatedDiskUtilizationPercent_HASH = ConstExprHashingUtils::HashString("EstimatedDiskUtilizationPercent"); + static constexpr uint32_t Mode_HASH = ConstExprHashingUtils::HashString("Mode"); NodeConfigurationOptionsFilterName GetNodeConfigurationOptionsFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NodeType_HASH) { return NodeConfigurationOptionsFilterName::NodeType; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/OperatorType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/OperatorType.cpp index efd76580de0..805e48718d6 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/OperatorType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/OperatorType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace OperatorTypeMapper { - static const int eq_HASH = HashingUtils::HashString("eq"); - static const int lt_HASH = HashingUtils::HashString("lt"); - static const int gt_HASH = HashingUtils::HashString("gt"); - static const int le_HASH = HashingUtils::HashString("le"); - static const int ge_HASH = HashingUtils::HashString("ge"); - static const int in_HASH = HashingUtils::HashString("in"); - static const int between_HASH = HashingUtils::HashString("between"); + static constexpr uint32_t eq_HASH = ConstExprHashingUtils::HashString("eq"); + static constexpr uint32_t lt_HASH = ConstExprHashingUtils::HashString("lt"); + static constexpr uint32_t gt_HASH = ConstExprHashingUtils::HashString("gt"); + static constexpr uint32_t le_HASH = ConstExprHashingUtils::HashString("le"); + static constexpr uint32_t ge_HASH = ConstExprHashingUtils::HashString("ge"); + static constexpr uint32_t in_HASH = ConstExprHashingUtils::HashString("in"); + static constexpr uint32_t between_HASH = ConstExprHashingUtils::HashString("between"); OperatorType GetOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == eq_HASH) { return OperatorType::eq; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ParameterApplyType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ParameterApplyType.cpp index a9159ba73d1..d2f23add3f3 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ParameterApplyType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ParameterApplyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParameterApplyTypeMapper { - static const int static__HASH = HashingUtils::HashString("static"); - static const int dynamic_HASH = HashingUtils::HashString("dynamic"); + static constexpr uint32_t static__HASH = ConstExprHashingUtils::HashString("static"); + static constexpr uint32_t dynamic_HASH = ConstExprHashingUtils::HashString("dynamic"); ParameterApplyType GetParameterApplyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == static__HASH) { return ParameterApplyType::static_; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/PartnerIntegrationStatus.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/PartnerIntegrationStatus.cpp index 57a24aeea2b..61710a0fc94 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/PartnerIntegrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/PartnerIntegrationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PartnerIntegrationStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); - static const int RuntimeFailure_HASH = HashingUtils::HashString("RuntimeFailure"); - static const int ConnectionFailure_HASH = HashingUtils::HashString("ConnectionFailure"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); + static constexpr uint32_t RuntimeFailure_HASH = ConstExprHashingUtils::HashString("RuntimeFailure"); + static constexpr uint32_t ConnectionFailure_HASH = ConstExprHashingUtils::HashString("ConnectionFailure"); PartnerIntegrationStatus GetPartnerIntegrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return PartnerIntegrationStatus::Active; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeActionType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeActionType.cpp index dbfebfaef9a..e1678647341 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeActionType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReservedNodeExchangeActionTypeMapper { - static const int restore_cluster_HASH = HashingUtils::HashString("restore-cluster"); - static const int resize_cluster_HASH = HashingUtils::HashString("resize-cluster"); + static constexpr uint32_t restore_cluster_HASH = ConstExprHashingUtils::HashString("restore-cluster"); + static constexpr uint32_t resize_cluster_HASH = ConstExprHashingUtils::HashString("resize-cluster"); ReservedNodeExchangeActionType GetReservedNodeExchangeActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == restore_cluster_HASH) { return ReservedNodeExchangeActionType::restore_cluster; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeStatusType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeStatusType.cpp index f2d7db0d5e2..30dc931bbe8 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeStatusType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeExchangeStatusType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ReservedNodeExchangeStatusTypeMapper { - static const int REQUESTED_HASH = HashingUtils::HashString("REQUESTED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int RETRYING_HASH = HashingUtils::HashString("RETRYING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t REQUESTED_HASH = ConstExprHashingUtils::HashString("REQUESTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t RETRYING_HASH = ConstExprHashingUtils::HashString("RETRYING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReservedNodeExchangeStatusType GetReservedNodeExchangeStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUESTED_HASH) { return ReservedNodeExchangeStatusType::REQUESTED; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeOfferingType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeOfferingType.cpp index a2637497d7f..cdb0717a8ca 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeOfferingType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ReservedNodeOfferingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReservedNodeOfferingTypeMapper { - static const int Regular_HASH = HashingUtils::HashString("Regular"); - static const int Upgradable_HASH = HashingUtils::HashString("Upgradable"); + static constexpr uint32_t Regular_HASH = ConstExprHashingUtils::HashString("Regular"); + static constexpr uint32_t Upgradable_HASH = ConstExprHashingUtils::HashString("Upgradable"); ReservedNodeOfferingType GetReservedNodeOfferingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Regular_HASH) { return ReservedNodeOfferingType::Regular; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduleState.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduleState.cpp index d2fc2860498..0723da164fb 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduleState.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduleState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScheduleStateMapper { - static const int MODIFYING_HASH = HashingUtils::HashString("MODIFYING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t MODIFYING_HASH = ConstExprHashingUtils::HashString("MODIFYING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ScheduleState GetScheduleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MODIFYING_HASH) { return ScheduleState::MODIFYING; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionFilterName.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionFilterName.cpp index 49336c4503e..a52d01bb469 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionFilterName.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduledActionFilterNameMapper { - static const int cluster_identifier_HASH = HashingUtils::HashString("cluster-identifier"); - static const int iam_role_HASH = HashingUtils::HashString("iam-role"); + static constexpr uint32_t cluster_identifier_HASH = ConstExprHashingUtils::HashString("cluster-identifier"); + static constexpr uint32_t iam_role_HASH = ConstExprHashingUtils::HashString("iam-role"); ScheduledActionFilterName GetScheduledActionFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cluster_identifier_HASH) { return ScheduledActionFilterName::cluster_identifier; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionState.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionState.cpp index 0a30268987b..f9dd65a847a 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionState.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduledActionStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ScheduledActionState GetScheduledActionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ScheduledActionState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionTypeValues.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionTypeValues.cpp index abe000a7f87..3535d6dbaa6 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionTypeValues.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/ScheduledActionTypeValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ScheduledActionTypeValuesMapper { - static const int ResizeCluster_HASH = HashingUtils::HashString("ResizeCluster"); - static const int PauseCluster_HASH = HashingUtils::HashString("PauseCluster"); - static const int ResumeCluster_HASH = HashingUtils::HashString("ResumeCluster"); + static constexpr uint32_t ResizeCluster_HASH = ConstExprHashingUtils::HashString("ResizeCluster"); + static constexpr uint32_t PauseCluster_HASH = ConstExprHashingUtils::HashString("PauseCluster"); + static constexpr uint32_t ResumeCluster_HASH = ConstExprHashingUtils::HashString("ResumeCluster"); ScheduledActionTypeValues GetScheduledActionTypeValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResizeCluster_HASH) { return ScheduledActionTypeValues::ResizeCluster; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/SnapshotAttributeToSortBy.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/SnapshotAttributeToSortBy.cpp index f7af7b0d33a..2fdc66b1a2d 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/SnapshotAttributeToSortBy.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/SnapshotAttributeToSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SnapshotAttributeToSortByMapper { - static const int SOURCE_TYPE_HASH = HashingUtils::HashString("SOURCE_TYPE"); - static const int TOTAL_SIZE_HASH = HashingUtils::HashString("TOTAL_SIZE"); - static const int CREATE_TIME_HASH = HashingUtils::HashString("CREATE_TIME"); + static constexpr uint32_t SOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("SOURCE_TYPE"); + static constexpr uint32_t TOTAL_SIZE_HASH = ConstExprHashingUtils::HashString("TOTAL_SIZE"); + static constexpr uint32_t CREATE_TIME_HASH = ConstExprHashingUtils::HashString("CREATE_TIME"); SnapshotAttributeToSortBy GetSnapshotAttributeToSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOURCE_TYPE_HASH) { return SnapshotAttributeToSortBy::SOURCE_TYPE; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/SortByOrder.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/SortByOrder.cpp index 812d2fda5f7..d30cb84e158 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/SortByOrder.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/SortByOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortByOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortByOrder GetSortByOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortByOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/SourceType.cpp index d6c87bcbc93..30957fb902f 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/SourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SourceTypeMapper { - static const int cluster_HASH = HashingUtils::HashString("cluster"); - static const int cluster_parameter_group_HASH = HashingUtils::HashString("cluster-parameter-group"); - static const int cluster_security_group_HASH = HashingUtils::HashString("cluster-security-group"); - static const int cluster_snapshot_HASH = HashingUtils::HashString("cluster-snapshot"); - static const int scheduled_action_HASH = HashingUtils::HashString("scheduled-action"); + static constexpr uint32_t cluster_HASH = ConstExprHashingUtils::HashString("cluster"); + static constexpr uint32_t cluster_parameter_group_HASH = ConstExprHashingUtils::HashString("cluster-parameter-group"); + static constexpr uint32_t cluster_security_group_HASH = ConstExprHashingUtils::HashString("cluster-security-group"); + static constexpr uint32_t cluster_snapshot_HASH = ConstExprHashingUtils::HashString("cluster-snapshot"); + static constexpr uint32_t scheduled_action_HASH = ConstExprHashingUtils::HashString("scheduled-action"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == cluster_HASH) { return SourceType::cluster; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/TableRestoreStatusType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/TableRestoreStatusType.cpp index 7e6055a1f5e..ccbdb3660c0 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/TableRestoreStatusType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/TableRestoreStatusType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TableRestoreStatusTypeMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); TableRestoreStatusType GetTableRestoreStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return TableRestoreStatusType::PENDING; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitBreachAction.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitBreachAction.cpp index 1d31e128371..5b807b75a1b 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitBreachAction.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitBreachAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageLimitBreachActionMapper { - static const int log_HASH = HashingUtils::HashString("log"); - static const int emit_metric_HASH = HashingUtils::HashString("emit-metric"); - static const int disable_HASH = HashingUtils::HashString("disable"); + static constexpr uint32_t log_HASH = ConstExprHashingUtils::HashString("log"); + static constexpr uint32_t emit_metric_HASH = ConstExprHashingUtils::HashString("emit-metric"); + static constexpr uint32_t disable_HASH = ConstExprHashingUtils::HashString("disable"); UsageLimitBreachAction GetUsageLimitBreachActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == log_HASH) { return UsageLimitBreachAction::log; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitFeatureType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitFeatureType.cpp index a1631719bdd..568073f0442 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitFeatureType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitFeatureType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageLimitFeatureTypeMapper { - static const int spectrum_HASH = HashingUtils::HashString("spectrum"); - static const int concurrency_scaling_HASH = HashingUtils::HashString("concurrency-scaling"); - static const int cross_region_datasharing_HASH = HashingUtils::HashString("cross-region-datasharing"); + static constexpr uint32_t spectrum_HASH = ConstExprHashingUtils::HashString("spectrum"); + static constexpr uint32_t concurrency_scaling_HASH = ConstExprHashingUtils::HashString("concurrency-scaling"); + static constexpr uint32_t cross_region_datasharing_HASH = ConstExprHashingUtils::HashString("cross-region-datasharing"); UsageLimitFeatureType GetUsageLimitFeatureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == spectrum_HASH) { return UsageLimitFeatureType::spectrum; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitLimitType.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitLimitType.cpp index 2b983969218..46172a97b5d 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitLimitType.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitLimitType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UsageLimitLimitTypeMapper { - static const int time_HASH = HashingUtils::HashString("time"); - static const int data_scanned_HASH = HashingUtils::HashString("data-scanned"); + static constexpr uint32_t time_HASH = ConstExprHashingUtils::HashString("time"); + static constexpr uint32_t data_scanned_HASH = ConstExprHashingUtils::HashString("data-scanned"); UsageLimitLimitType GetUsageLimitLimitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == time_HASH) { return UsageLimitLimitType::time; diff --git a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitPeriod.cpp b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitPeriod.cpp index 010fff02bfe..2c615e910c2 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitPeriod.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/model/UsageLimitPeriod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UsageLimitPeriodMapper { - static const int daily_HASH = HashingUtils::HashString("daily"); - static const int weekly_HASH = HashingUtils::HashString("weekly"); - static const int monthly_HASH = HashingUtils::HashString("monthly"); + static constexpr uint32_t daily_HASH = ConstExprHashingUtils::HashString("daily"); + static constexpr uint32_t weekly_HASH = ConstExprHashingUtils::HashString("weekly"); + static constexpr uint32_t monthly_HASH = ConstExprHashingUtils::HashString("monthly"); UsageLimitPeriod GetUsageLimitPeriodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == daily_HASH) { return UsageLimitPeriod::daily; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/RekognitionErrors.cpp b/generated/src/aws-cpp-sdk-rekognition/source/RekognitionErrors.cpp index edafff4b2c7..84a07ad0432 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/RekognitionErrors.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/RekognitionErrors.cpp @@ -26,29 +26,29 @@ template<> AWS_REKOGNITION_API HumanLoopQuotaExceededException RekognitionError: namespace RekognitionErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int IMAGE_TOO_LARGE_HASH = HashingUtils::HashString("ImageTooLargeException"); -static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_POLICY_REVISION_ID_HASH = HashingUtils::HashString("InvalidPolicyRevisionIdException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); -static const int SESSION_NOT_FOUND_HASH = HashingUtils::HashString("SessionNotFoundException"); -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocumentException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("ProvisionedThroughputExceededException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int VIDEO_TOO_LARGE_HASH = HashingUtils::HashString("VideoTooLargeException"); -static const int INVALID_S3_OBJECT_HASH = HashingUtils::HashString("InvalidS3ObjectException"); -static const int INVALID_IMAGE_FORMAT_HASH = HashingUtils::HashString("InvalidImageFormatException"); -static const int HUMAN_LOOP_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("HumanLoopQuotaExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t IMAGE_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("ImageTooLargeException"); +static constexpr uint32_t RESOURCE_NOT_READY_HASH = ConstExprHashingUtils::HashString("ResourceNotReadyException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_POLICY_REVISION_ID_HASH = ConstExprHashingUtils::HashString("InvalidPolicyRevisionIdException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t SESSION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("SessionNotFoundException"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocumentException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ProvisionedThroughputExceededException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t VIDEO_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("VideoTooLargeException"); +static constexpr uint32_t INVALID_S3_OBJECT_HASH = ConstExprHashingUtils::HashString("InvalidS3ObjectException"); +static constexpr uint32_t INVALID_IMAGE_FORMAT_HASH = ConstExprHashingUtils::HashString("InvalidImageFormatException"); +static constexpr uint32_t HUMAN_LOOP_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("HumanLoopQuotaExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/Attribute.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/Attribute.cpp index 4067dfa6764..62a3d51cab5 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/Attribute.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/Attribute.cpp @@ -20,25 +20,25 @@ namespace Aws namespace AttributeMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int AGE_RANGE_HASH = HashingUtils::HashString("AGE_RANGE"); - static const int BEARD_HASH = HashingUtils::HashString("BEARD"); - static const int EMOTIONS_HASH = HashingUtils::HashString("EMOTIONS"); - static const int EYE_DIRECTION_HASH = HashingUtils::HashString("EYE_DIRECTION"); - static const int EYEGLASSES_HASH = HashingUtils::HashString("EYEGLASSES"); - static const int EYES_OPEN_HASH = HashingUtils::HashString("EYES_OPEN"); - static const int GENDER_HASH = HashingUtils::HashString("GENDER"); - static const int MOUTH_OPEN_HASH = HashingUtils::HashString("MOUTH_OPEN"); - static const int MUSTACHE_HASH = HashingUtils::HashString("MUSTACHE"); - static const int FACE_OCCLUDED_HASH = HashingUtils::HashString("FACE_OCCLUDED"); - static const int SMILE_HASH = HashingUtils::HashString("SMILE"); - static const int SUNGLASSES_HASH = HashingUtils::HashString("SUNGLASSES"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t AGE_RANGE_HASH = ConstExprHashingUtils::HashString("AGE_RANGE"); + static constexpr uint32_t BEARD_HASH = ConstExprHashingUtils::HashString("BEARD"); + static constexpr uint32_t EMOTIONS_HASH = ConstExprHashingUtils::HashString("EMOTIONS"); + static constexpr uint32_t EYE_DIRECTION_HASH = ConstExprHashingUtils::HashString("EYE_DIRECTION"); + static constexpr uint32_t EYEGLASSES_HASH = ConstExprHashingUtils::HashString("EYEGLASSES"); + static constexpr uint32_t EYES_OPEN_HASH = ConstExprHashingUtils::HashString("EYES_OPEN"); + static constexpr uint32_t GENDER_HASH = ConstExprHashingUtils::HashString("GENDER"); + static constexpr uint32_t MOUTH_OPEN_HASH = ConstExprHashingUtils::HashString("MOUTH_OPEN"); + static constexpr uint32_t MUSTACHE_HASH = ConstExprHashingUtils::HashString("MUSTACHE"); + static constexpr uint32_t FACE_OCCLUDED_HASH = ConstExprHashingUtils::HashString("FACE_OCCLUDED"); + static constexpr uint32_t SMILE_HASH = ConstExprHashingUtils::HashString("SMILE"); + static constexpr uint32_t SUNGLASSES_HASH = ConstExprHashingUtils::HashString("SUNGLASSES"); Attribute GetAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return Attribute::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/BodyPart.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/BodyPart.cpp index f57261c230f..4726dc89d03 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/BodyPart.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/BodyPart.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BodyPartMapper { - static const int FACE_HASH = HashingUtils::HashString("FACE"); - static const int HEAD_HASH = HashingUtils::HashString("HEAD"); - static const int LEFT_HAND_HASH = HashingUtils::HashString("LEFT_HAND"); - static const int RIGHT_HAND_HASH = HashingUtils::HashString("RIGHT_HAND"); + static constexpr uint32_t FACE_HASH = ConstExprHashingUtils::HashString("FACE"); + static constexpr uint32_t HEAD_HASH = ConstExprHashingUtils::HashString("HEAD"); + static constexpr uint32_t LEFT_HAND_HASH = ConstExprHashingUtils::HashString("LEFT_HAND"); + static constexpr uint32_t RIGHT_HAND_HASH = ConstExprHashingUtils::HashString("RIGHT_HAND"); BodyPart GetBodyPartForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FACE_HASH) { return BodyPart::FACE; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/CelebrityRecognitionSortBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/CelebrityRecognitionSortBy.cpp index f5316d038b6..fbc33cc4e47 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/CelebrityRecognitionSortBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/CelebrityRecognitionSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CelebrityRecognitionSortByMapper { - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); CelebrityRecognitionSortBy GetCelebrityRecognitionSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ID_HASH) { return CelebrityRecognitionSortBy::ID; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ContentClassifier.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ContentClassifier.cpp index 8f137b14f0c..3899b796f1c 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ContentClassifier.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ContentClassifier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentClassifierMapper { - static const int FreeOfPersonallyIdentifiableInformation_HASH = HashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); - static const int FreeOfAdultContent_HASH = HashingUtils::HashString("FreeOfAdultContent"); + static constexpr uint32_t FreeOfPersonallyIdentifiableInformation_HASH = ConstExprHashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); + static constexpr uint32_t FreeOfAdultContent_HASH = ConstExprHashingUtils::HashString("FreeOfAdultContent"); ContentClassifier GetContentClassifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FreeOfPersonallyIdentifiableInformation_HASH) { return ContentClassifier::FreeOfPersonallyIdentifiableInformation; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationAggregateBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationAggregateBy.cpp index 5608a11dddf..30f2c67a758 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationAggregateBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationAggregateBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentModerationAggregateByMapper { - static const int TIMESTAMPS_HASH = HashingUtils::HashString("TIMESTAMPS"); - static const int SEGMENTS_HASH = HashingUtils::HashString("SEGMENTS"); + static constexpr uint32_t TIMESTAMPS_HASH = ConstExprHashingUtils::HashString("TIMESTAMPS"); + static constexpr uint32_t SEGMENTS_HASH = ConstExprHashingUtils::HashString("SEGMENTS"); ContentModerationAggregateBy GetContentModerationAggregateByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TIMESTAMPS_HASH) { return ContentModerationAggregateBy::TIMESTAMPS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationSortBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationSortBy.cpp index 6a950fce57e..4a88e6e5270 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationSortBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ContentModerationSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentModerationSortByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); ContentModerationSortBy GetContentModerationSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return ContentModerationSortBy::NAME; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/CustomizationFeature.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/CustomizationFeature.cpp index 9d09208beba..9a02ef27e53 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/CustomizationFeature.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/CustomizationFeature.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomizationFeatureMapper { - static const int CONTENT_MODERATION_HASH = HashingUtils::HashString("CONTENT_MODERATION"); - static const int CUSTOM_LABELS_HASH = HashingUtils::HashString("CUSTOM_LABELS"); + static constexpr uint32_t CONTENT_MODERATION_HASH = ConstExprHashingUtils::HashString("CONTENT_MODERATION"); + static constexpr uint32_t CUSTOM_LABELS_HASH = ConstExprHashingUtils::HashString("CUSTOM_LABELS"); CustomizationFeature GetCustomizationFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTENT_MODERATION_HASH) { return CustomizationFeature::CONTENT_MODERATION; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatus.cpp index 39bbe5fac15..84ac865f74c 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DatasetStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); DatasetStatus GetDatasetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return DatasetStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatusMessageCode.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatusMessageCode.cpp index 07a79027407..b01a525e989 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatusMessageCode.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetStatusMessageCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DatasetStatusMessageCodeMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int SERVICE_ERROR_HASH = HashingUtils::HashString("SERVICE_ERROR"); - static const int CLIENT_ERROR_HASH = HashingUtils::HashString("CLIENT_ERROR"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("SERVICE_ERROR"); + static constexpr uint32_t CLIENT_ERROR_HASH = ConstExprHashingUtils::HashString("CLIENT_ERROR"); DatasetStatusMessageCode GetDatasetStatusMessageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return DatasetStatusMessageCode::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetType.cpp index 1323f440edb..7c8ac258039 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/DatasetType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatasetTypeMapper { - static const int TRAIN_HASH = HashingUtils::HashString("TRAIN"); - static const int TEST_HASH = HashingUtils::HashString("TEST"); + static constexpr uint32_t TRAIN_HASH = ConstExprHashingUtils::HashString("TRAIN"); + static constexpr uint32_t TEST_HASH = ConstExprHashingUtils::HashString("TEST"); DatasetType GetDatasetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAIN_HASH) { return DatasetType::TRAIN; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/DetectLabelsFeatureName.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/DetectLabelsFeatureName.cpp index 0aaf01e375e..fc0c03bae78 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/DetectLabelsFeatureName.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/DetectLabelsFeatureName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DetectLabelsFeatureNameMapper { - static const int GENERAL_LABELS_HASH = HashingUtils::HashString("GENERAL_LABELS"); - static const int IMAGE_PROPERTIES_HASH = HashingUtils::HashString("IMAGE_PROPERTIES"); + static constexpr uint32_t GENERAL_LABELS_HASH = ConstExprHashingUtils::HashString("GENERAL_LABELS"); + static constexpr uint32_t IMAGE_PROPERTIES_HASH = ConstExprHashingUtils::HashString("IMAGE_PROPERTIES"); DetectLabelsFeatureName GetDetectLabelsFeatureNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERAL_LABELS_HASH) { return DetectLabelsFeatureName::GENERAL_LABELS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/EmotionName.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/EmotionName.cpp index 521ce22998f..7d552e733b2 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/EmotionName.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/EmotionName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace EmotionNameMapper { - static const int HAPPY_HASH = HashingUtils::HashString("HAPPY"); - static const int SAD_HASH = HashingUtils::HashString("SAD"); - static const int ANGRY_HASH = HashingUtils::HashString("ANGRY"); - static const int CONFUSED_HASH = HashingUtils::HashString("CONFUSED"); - static const int DISGUSTED_HASH = HashingUtils::HashString("DISGUSTED"); - static const int SURPRISED_HASH = HashingUtils::HashString("SURPRISED"); - static const int CALM_HASH = HashingUtils::HashString("CALM"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int FEAR_HASH = HashingUtils::HashString("FEAR"); + static constexpr uint32_t HAPPY_HASH = ConstExprHashingUtils::HashString("HAPPY"); + static constexpr uint32_t SAD_HASH = ConstExprHashingUtils::HashString("SAD"); + static constexpr uint32_t ANGRY_HASH = ConstExprHashingUtils::HashString("ANGRY"); + static constexpr uint32_t CONFUSED_HASH = ConstExprHashingUtils::HashString("CONFUSED"); + static constexpr uint32_t DISGUSTED_HASH = ConstExprHashingUtils::HashString("DISGUSTED"); + static constexpr uint32_t SURPRISED_HASH = ConstExprHashingUtils::HashString("SURPRISED"); + static constexpr uint32_t CALM_HASH = ConstExprHashingUtils::HashString("CALM"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t FEAR_HASH = ConstExprHashingUtils::HashString("FEAR"); EmotionName GetEmotionNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HAPPY_HASH) { return EmotionName::HAPPY; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/FaceAttributes.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/FaceAttributes.cpp index 0bec33eee1e..2a2861e12b5 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/FaceAttributes.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/FaceAttributes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FaceAttributesMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); FaceAttributes GetFaceAttributesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return FaceAttributes::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/FaceSearchSortBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/FaceSearchSortBy.cpp index b26b23160ff..85d19517ecf 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/FaceSearchSortBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/FaceSearchSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FaceSearchSortByMapper { - static const int INDEX_HASH = HashingUtils::HashString("INDEX"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t INDEX_HASH = ConstExprHashingUtils::HashString("INDEX"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); FaceSearchSortBy GetFaceSearchSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INDEX_HASH) { return FaceSearchSortBy::INDEX; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/GenderType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/GenderType.cpp index 3e00fe177d9..2982ef5c852 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/GenderType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/GenderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GenderTypeMapper { - static const int Male_HASH = HashingUtils::HashString("Male"); - static const int Female_HASH = HashingUtils::HashString("Female"); + static constexpr uint32_t Male_HASH = ConstExprHashingUtils::HashString("Male"); + static constexpr uint32_t Female_HASH = ConstExprHashingUtils::HashString("Female"); GenderType GetGenderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Male_HASH) { return GenderType::Male; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/KnownGenderType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/KnownGenderType.cpp index b84ada52257..c3e6b5a18db 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/KnownGenderType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/KnownGenderType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace KnownGenderTypeMapper { - static const int Male_HASH = HashingUtils::HashString("Male"); - static const int Female_HASH = HashingUtils::HashString("Female"); - static const int Nonbinary_HASH = HashingUtils::HashString("Nonbinary"); - static const int Unlisted_HASH = HashingUtils::HashString("Unlisted"); + static constexpr uint32_t Male_HASH = ConstExprHashingUtils::HashString("Male"); + static constexpr uint32_t Female_HASH = ConstExprHashingUtils::HashString("Female"); + static constexpr uint32_t Nonbinary_HASH = ConstExprHashingUtils::HashString("Nonbinary"); + static constexpr uint32_t Unlisted_HASH = ConstExprHashingUtils::HashString("Unlisted"); KnownGenderType GetKnownGenderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Male_HASH) { return KnownGenderType::Male; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionAggregateBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionAggregateBy.cpp index ec995674bb9..c5afb9a22a6 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionAggregateBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionAggregateBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LabelDetectionAggregateByMapper { - static const int TIMESTAMPS_HASH = HashingUtils::HashString("TIMESTAMPS"); - static const int SEGMENTS_HASH = HashingUtils::HashString("SEGMENTS"); + static constexpr uint32_t TIMESTAMPS_HASH = ConstExprHashingUtils::HashString("TIMESTAMPS"); + static constexpr uint32_t SEGMENTS_HASH = ConstExprHashingUtils::HashString("SEGMENTS"); LabelDetectionAggregateBy GetLabelDetectionAggregateByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TIMESTAMPS_HASH) { return LabelDetectionAggregateBy::TIMESTAMPS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionFeatureName.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionFeatureName.cpp index cdd42ae5891..a0a299e411b 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionFeatureName.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionFeatureName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LabelDetectionFeatureNameMapper { - static const int GENERAL_LABELS_HASH = HashingUtils::HashString("GENERAL_LABELS"); + static constexpr uint32_t GENERAL_LABELS_HASH = ConstExprHashingUtils::HashString("GENERAL_LABELS"); LabelDetectionFeatureName GetLabelDetectionFeatureNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GENERAL_LABELS_HASH) { return LabelDetectionFeatureName::GENERAL_LABELS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionSortBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionSortBy.cpp index 922d144539e..2d23e39c4ec 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionSortBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/LabelDetectionSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LabelDetectionSortByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); LabelDetectionSortBy GetLabelDetectionSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return LabelDetectionSortBy::NAME; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/LandmarkType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/LandmarkType.cpp index 56b5e134b35..bc54b138fe2 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/LandmarkType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/LandmarkType.cpp @@ -20,41 +20,41 @@ namespace Aws namespace LandmarkTypeMapper { - static const int eyeLeft_HASH = HashingUtils::HashString("eyeLeft"); - static const int eyeRight_HASH = HashingUtils::HashString("eyeRight"); - static const int nose_HASH = HashingUtils::HashString("nose"); - static const int mouthLeft_HASH = HashingUtils::HashString("mouthLeft"); - static const int mouthRight_HASH = HashingUtils::HashString("mouthRight"); - static const int leftEyeBrowLeft_HASH = HashingUtils::HashString("leftEyeBrowLeft"); - static const int leftEyeBrowRight_HASH = HashingUtils::HashString("leftEyeBrowRight"); - static const int leftEyeBrowUp_HASH = HashingUtils::HashString("leftEyeBrowUp"); - static const int rightEyeBrowLeft_HASH = HashingUtils::HashString("rightEyeBrowLeft"); - static const int rightEyeBrowRight_HASH = HashingUtils::HashString("rightEyeBrowRight"); - static const int rightEyeBrowUp_HASH = HashingUtils::HashString("rightEyeBrowUp"); - static const int leftEyeLeft_HASH = HashingUtils::HashString("leftEyeLeft"); - static const int leftEyeRight_HASH = HashingUtils::HashString("leftEyeRight"); - static const int leftEyeUp_HASH = HashingUtils::HashString("leftEyeUp"); - static const int leftEyeDown_HASH = HashingUtils::HashString("leftEyeDown"); - static const int rightEyeLeft_HASH = HashingUtils::HashString("rightEyeLeft"); - static const int rightEyeRight_HASH = HashingUtils::HashString("rightEyeRight"); - static const int rightEyeUp_HASH = HashingUtils::HashString("rightEyeUp"); - static const int rightEyeDown_HASH = HashingUtils::HashString("rightEyeDown"); - static const int noseLeft_HASH = HashingUtils::HashString("noseLeft"); - static const int noseRight_HASH = HashingUtils::HashString("noseRight"); - static const int mouthUp_HASH = HashingUtils::HashString("mouthUp"); - static const int mouthDown_HASH = HashingUtils::HashString("mouthDown"); - static const int leftPupil_HASH = HashingUtils::HashString("leftPupil"); - static const int rightPupil_HASH = HashingUtils::HashString("rightPupil"); - static const int upperJawlineLeft_HASH = HashingUtils::HashString("upperJawlineLeft"); - static const int midJawlineLeft_HASH = HashingUtils::HashString("midJawlineLeft"); - static const int chinBottom_HASH = HashingUtils::HashString("chinBottom"); - static const int midJawlineRight_HASH = HashingUtils::HashString("midJawlineRight"); - static const int upperJawlineRight_HASH = HashingUtils::HashString("upperJawlineRight"); + static constexpr uint32_t eyeLeft_HASH = ConstExprHashingUtils::HashString("eyeLeft"); + static constexpr uint32_t eyeRight_HASH = ConstExprHashingUtils::HashString("eyeRight"); + static constexpr uint32_t nose_HASH = ConstExprHashingUtils::HashString("nose"); + static constexpr uint32_t mouthLeft_HASH = ConstExprHashingUtils::HashString("mouthLeft"); + static constexpr uint32_t mouthRight_HASH = ConstExprHashingUtils::HashString("mouthRight"); + static constexpr uint32_t leftEyeBrowLeft_HASH = ConstExprHashingUtils::HashString("leftEyeBrowLeft"); + static constexpr uint32_t leftEyeBrowRight_HASH = ConstExprHashingUtils::HashString("leftEyeBrowRight"); + static constexpr uint32_t leftEyeBrowUp_HASH = ConstExprHashingUtils::HashString("leftEyeBrowUp"); + static constexpr uint32_t rightEyeBrowLeft_HASH = ConstExprHashingUtils::HashString("rightEyeBrowLeft"); + static constexpr uint32_t rightEyeBrowRight_HASH = ConstExprHashingUtils::HashString("rightEyeBrowRight"); + static constexpr uint32_t rightEyeBrowUp_HASH = ConstExprHashingUtils::HashString("rightEyeBrowUp"); + static constexpr uint32_t leftEyeLeft_HASH = ConstExprHashingUtils::HashString("leftEyeLeft"); + static constexpr uint32_t leftEyeRight_HASH = ConstExprHashingUtils::HashString("leftEyeRight"); + static constexpr uint32_t leftEyeUp_HASH = ConstExprHashingUtils::HashString("leftEyeUp"); + static constexpr uint32_t leftEyeDown_HASH = ConstExprHashingUtils::HashString("leftEyeDown"); + static constexpr uint32_t rightEyeLeft_HASH = ConstExprHashingUtils::HashString("rightEyeLeft"); + static constexpr uint32_t rightEyeRight_HASH = ConstExprHashingUtils::HashString("rightEyeRight"); + static constexpr uint32_t rightEyeUp_HASH = ConstExprHashingUtils::HashString("rightEyeUp"); + static constexpr uint32_t rightEyeDown_HASH = ConstExprHashingUtils::HashString("rightEyeDown"); + static constexpr uint32_t noseLeft_HASH = ConstExprHashingUtils::HashString("noseLeft"); + static constexpr uint32_t noseRight_HASH = ConstExprHashingUtils::HashString("noseRight"); + static constexpr uint32_t mouthUp_HASH = ConstExprHashingUtils::HashString("mouthUp"); + static constexpr uint32_t mouthDown_HASH = ConstExprHashingUtils::HashString("mouthDown"); + static constexpr uint32_t leftPupil_HASH = ConstExprHashingUtils::HashString("leftPupil"); + static constexpr uint32_t rightPupil_HASH = ConstExprHashingUtils::HashString("rightPupil"); + static constexpr uint32_t upperJawlineLeft_HASH = ConstExprHashingUtils::HashString("upperJawlineLeft"); + static constexpr uint32_t midJawlineLeft_HASH = ConstExprHashingUtils::HashString("midJawlineLeft"); + static constexpr uint32_t chinBottom_HASH = ConstExprHashingUtils::HashString("chinBottom"); + static constexpr uint32_t midJawlineRight_HASH = ConstExprHashingUtils::HashString("midJawlineRight"); + static constexpr uint32_t upperJawlineRight_HASH = ConstExprHashingUtils::HashString("upperJawlineRight"); LandmarkType GetLandmarkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == eyeLeft_HASH) { return LandmarkType::eyeLeft; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/LivenessSessionStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/LivenessSessionStatus.cpp index e136f76a182..a76e5819881 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/LivenessSessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/LivenessSessionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LivenessSessionStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); LivenessSessionStatus GetLivenessSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return LivenessSessionStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/OrientationCorrection.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/OrientationCorrection.cpp index 24de481d462..6adc8b22be0 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/OrientationCorrection.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/OrientationCorrection.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OrientationCorrectionMapper { - static const int ROTATE_0_HASH = HashingUtils::HashString("ROTATE_0"); - static const int ROTATE_90_HASH = HashingUtils::HashString("ROTATE_90"); - static const int ROTATE_180_HASH = HashingUtils::HashString("ROTATE_180"); - static const int ROTATE_270_HASH = HashingUtils::HashString("ROTATE_270"); + static constexpr uint32_t ROTATE_0_HASH = ConstExprHashingUtils::HashString("ROTATE_0"); + static constexpr uint32_t ROTATE_90_HASH = ConstExprHashingUtils::HashString("ROTATE_90"); + static constexpr uint32_t ROTATE_180_HASH = ConstExprHashingUtils::HashString("ROTATE_180"); + static constexpr uint32_t ROTATE_270_HASH = ConstExprHashingUtils::HashString("ROTATE_270"); OrientationCorrection GetOrientationCorrectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROTATE_0_HASH) { return OrientationCorrection::ROTATE_0; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/PersonTrackingSortBy.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/PersonTrackingSortBy.cpp index 2b345546814..461ef41e142 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/PersonTrackingSortBy.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/PersonTrackingSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PersonTrackingSortByMapper { - static const int INDEX_HASH = HashingUtils::HashString("INDEX"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t INDEX_HASH = ConstExprHashingUtils::HashString("INDEX"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); PersonTrackingSortBy GetPersonTrackingSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INDEX_HASH) { return PersonTrackingSortBy::INDEX; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectAutoUpdate.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectAutoUpdate.cpp index f8714dfa387..6278bae0bdf 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectAutoUpdate.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectAutoUpdate.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProjectAutoUpdateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ProjectAutoUpdate GetProjectAutoUpdateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ProjectAutoUpdate::ENABLED; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectStatus.cpp index e97906662f6..f68eec245b1 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProjectStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ProjectStatus GetProjectStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ProjectStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectVersionStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectVersionStatus.cpp index 0608308eb2d..ee184750725 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ProjectVersionStatus.cpp @@ -20,25 +20,25 @@ namespace Aws namespace ProjectVersionStatusMapper { - static const int TRAINING_IN_PROGRESS_HASH = HashingUtils::HashString("TRAINING_IN_PROGRESS"); - static const int TRAINING_COMPLETED_HASH = HashingUtils::HashString("TRAINING_COMPLETED"); - static const int TRAINING_FAILED_HASH = HashingUtils::HashString("TRAINING_FAILED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int COPYING_IN_PROGRESS_HASH = HashingUtils::HashString("COPYING_IN_PROGRESS"); - static const int COPYING_COMPLETED_HASH = HashingUtils::HashString("COPYING_COMPLETED"); - static const int COPYING_FAILED_HASH = HashingUtils::HashString("COPYING_FAILED"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t TRAINING_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TRAINING_IN_PROGRESS"); + static constexpr uint32_t TRAINING_COMPLETED_HASH = ConstExprHashingUtils::HashString("TRAINING_COMPLETED"); + static constexpr uint32_t TRAINING_FAILED_HASH = ConstExprHashingUtils::HashString("TRAINING_FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t COPYING_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("COPYING_IN_PROGRESS"); + static constexpr uint32_t COPYING_COMPLETED_HASH = ConstExprHashingUtils::HashString("COPYING_COMPLETED"); + static constexpr uint32_t COPYING_FAILED_HASH = ConstExprHashingUtils::HashString("COPYING_FAILED"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ProjectVersionStatus GetProjectVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAINING_IN_PROGRESS_HASH) { return ProjectVersionStatus::TRAINING_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/ProtectiveEquipmentType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/ProtectiveEquipmentType.cpp index ae0d49b6991..1827543c6e4 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/ProtectiveEquipmentType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/ProtectiveEquipmentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProtectiveEquipmentTypeMapper { - static const int FACE_COVER_HASH = HashingUtils::HashString("FACE_COVER"); - static const int HAND_COVER_HASH = HashingUtils::HashString("HAND_COVER"); - static const int HEAD_COVER_HASH = HashingUtils::HashString("HEAD_COVER"); + static constexpr uint32_t FACE_COVER_HASH = ConstExprHashingUtils::HashString("FACE_COVER"); + static constexpr uint32_t HAND_COVER_HASH = ConstExprHashingUtils::HashString("HAND_COVER"); + static constexpr uint32_t HEAD_COVER_HASH = ConstExprHashingUtils::HashString("HEAD_COVER"); ProtectiveEquipmentType GetProtectiveEquipmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FACE_COVER_HASH) { return ProtectiveEquipmentType::FACE_COVER; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/QualityFilter.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/QualityFilter.cpp index 686c271f418..2af18cfb3ee 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/QualityFilter.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/QualityFilter.cpp @@ -20,16 +20,16 @@ namespace Aws namespace QualityFilterMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); QualityFilter GetQualityFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return QualityFilter::NONE; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/Reason.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/Reason.cpp index f55545be516..bb962a9ba63 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/Reason.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/Reason.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReasonMapper { - static const int EXCEEDS_MAX_FACES_HASH = HashingUtils::HashString("EXCEEDS_MAX_FACES"); - static const int EXTREME_POSE_HASH = HashingUtils::HashString("EXTREME_POSE"); - static const int LOW_BRIGHTNESS_HASH = HashingUtils::HashString("LOW_BRIGHTNESS"); - static const int LOW_SHARPNESS_HASH = HashingUtils::HashString("LOW_SHARPNESS"); - static const int LOW_CONFIDENCE_HASH = HashingUtils::HashString("LOW_CONFIDENCE"); - static const int SMALL_BOUNDING_BOX_HASH = HashingUtils::HashString("SMALL_BOUNDING_BOX"); - static const int LOW_FACE_QUALITY_HASH = HashingUtils::HashString("LOW_FACE_QUALITY"); + static constexpr uint32_t EXCEEDS_MAX_FACES_HASH = ConstExprHashingUtils::HashString("EXCEEDS_MAX_FACES"); + static constexpr uint32_t EXTREME_POSE_HASH = ConstExprHashingUtils::HashString("EXTREME_POSE"); + static constexpr uint32_t LOW_BRIGHTNESS_HASH = ConstExprHashingUtils::HashString("LOW_BRIGHTNESS"); + static constexpr uint32_t LOW_SHARPNESS_HASH = ConstExprHashingUtils::HashString("LOW_SHARPNESS"); + static constexpr uint32_t LOW_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("LOW_CONFIDENCE"); + static constexpr uint32_t SMALL_BOUNDING_BOX_HASH = ConstExprHashingUtils::HashString("SMALL_BOUNDING_BOX"); + static constexpr uint32_t LOW_FACE_QUALITY_HASH = ConstExprHashingUtils::HashString("LOW_FACE_QUALITY"); Reason GetReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXCEEDS_MAX_FACES_HASH) { return Reason::EXCEEDS_MAX_FACES; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/SegmentType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/SegmentType.cpp index 17825ceff77..da66388926c 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/SegmentType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/SegmentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SegmentTypeMapper { - static const int TECHNICAL_CUE_HASH = HashingUtils::HashString("TECHNICAL_CUE"); - static const int SHOT_HASH = HashingUtils::HashString("SHOT"); + static constexpr uint32_t TECHNICAL_CUE_HASH = ConstExprHashingUtils::HashString("TECHNICAL_CUE"); + static constexpr uint32_t SHOT_HASH = ConstExprHashingUtils::HashString("SHOT"); SegmentType GetSegmentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TECHNICAL_CUE_HASH) { return SegmentType::TECHNICAL_CUE; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorParameterToDelete.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorParameterToDelete.cpp index 45aaf282aaa..95c4ee5b2a8 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorParameterToDelete.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorParameterToDelete.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StreamProcessorParameterToDeleteMapper { - static const int ConnectedHomeMinConfidence_HASH = HashingUtils::HashString("ConnectedHomeMinConfidence"); - static const int RegionsOfInterest_HASH = HashingUtils::HashString("RegionsOfInterest"); + static constexpr uint32_t ConnectedHomeMinConfidence_HASH = ConstExprHashingUtils::HashString("ConnectedHomeMinConfidence"); + static constexpr uint32_t RegionsOfInterest_HASH = ConstExprHashingUtils::HashString("RegionsOfInterest"); StreamProcessorParameterToDelete GetStreamProcessorParameterToDeleteForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ConnectedHomeMinConfidence_HASH) { return StreamProcessorParameterToDelete::ConnectedHomeMinConfidence; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorStatus.cpp index 91580349b24..9600501cbd5 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/StreamProcessorStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StreamProcessorStatusMapper { - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); StreamProcessorStatus GetStreamProcessorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STOPPED_HASH) { return StreamProcessorStatus::STOPPED; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/TechnicalCueType.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/TechnicalCueType.cpp index 1004e4f3ae7..02d5acdf687 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/TechnicalCueType.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/TechnicalCueType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TechnicalCueTypeMapper { - static const int ColorBars_HASH = HashingUtils::HashString("ColorBars"); - static const int EndCredits_HASH = HashingUtils::HashString("EndCredits"); - static const int BlackFrames_HASH = HashingUtils::HashString("BlackFrames"); - static const int OpeningCredits_HASH = HashingUtils::HashString("OpeningCredits"); - static const int StudioLogo_HASH = HashingUtils::HashString("StudioLogo"); - static const int Slate_HASH = HashingUtils::HashString("Slate"); - static const int Content_HASH = HashingUtils::HashString("Content"); + static constexpr uint32_t ColorBars_HASH = ConstExprHashingUtils::HashString("ColorBars"); + static constexpr uint32_t EndCredits_HASH = ConstExprHashingUtils::HashString("EndCredits"); + static constexpr uint32_t BlackFrames_HASH = ConstExprHashingUtils::HashString("BlackFrames"); + static constexpr uint32_t OpeningCredits_HASH = ConstExprHashingUtils::HashString("OpeningCredits"); + static constexpr uint32_t StudioLogo_HASH = ConstExprHashingUtils::HashString("StudioLogo"); + static constexpr uint32_t Slate_HASH = ConstExprHashingUtils::HashString("Slate"); + static constexpr uint32_t Content_HASH = ConstExprHashingUtils::HashString("Content"); TechnicalCueType GetTechnicalCueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ColorBars_HASH) { return TechnicalCueType::ColorBars; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/TextTypes.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/TextTypes.cpp index 9448aab78c6..bd820223d1c 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/TextTypes.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/TextTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TextTypesMapper { - static const int LINE_HASH = HashingUtils::HashString("LINE"); - static const int WORD_HASH = HashingUtils::HashString("WORD"); + static constexpr uint32_t LINE_HASH = ConstExprHashingUtils::HashString("LINE"); + static constexpr uint32_t WORD_HASH = ConstExprHashingUtils::HashString("WORD"); TextTypes GetTextTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LINE_HASH) { return TextTypes::LINE; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsearchedFaceReason.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsearchedFaceReason.cpp index b3b6b184e95..eee3ebe1967 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsearchedFaceReason.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsearchedFaceReason.cpp @@ -20,19 +20,19 @@ namespace Aws namespace UnsearchedFaceReasonMapper { - static const int FACE_NOT_LARGEST_HASH = HashingUtils::HashString("FACE_NOT_LARGEST"); - static const int EXCEEDS_MAX_FACES_HASH = HashingUtils::HashString("EXCEEDS_MAX_FACES"); - static const int EXTREME_POSE_HASH = HashingUtils::HashString("EXTREME_POSE"); - static const int LOW_BRIGHTNESS_HASH = HashingUtils::HashString("LOW_BRIGHTNESS"); - static const int LOW_SHARPNESS_HASH = HashingUtils::HashString("LOW_SHARPNESS"); - static const int LOW_CONFIDENCE_HASH = HashingUtils::HashString("LOW_CONFIDENCE"); - static const int SMALL_BOUNDING_BOX_HASH = HashingUtils::HashString("SMALL_BOUNDING_BOX"); - static const int LOW_FACE_QUALITY_HASH = HashingUtils::HashString("LOW_FACE_QUALITY"); + static constexpr uint32_t FACE_NOT_LARGEST_HASH = ConstExprHashingUtils::HashString("FACE_NOT_LARGEST"); + static constexpr uint32_t EXCEEDS_MAX_FACES_HASH = ConstExprHashingUtils::HashString("EXCEEDS_MAX_FACES"); + static constexpr uint32_t EXTREME_POSE_HASH = ConstExprHashingUtils::HashString("EXTREME_POSE"); + static constexpr uint32_t LOW_BRIGHTNESS_HASH = ConstExprHashingUtils::HashString("LOW_BRIGHTNESS"); + static constexpr uint32_t LOW_SHARPNESS_HASH = ConstExprHashingUtils::HashString("LOW_SHARPNESS"); + static constexpr uint32_t LOW_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("LOW_CONFIDENCE"); + static constexpr uint32_t SMALL_BOUNDING_BOX_HASH = ConstExprHashingUtils::HashString("SMALL_BOUNDING_BOX"); + static constexpr uint32_t LOW_FACE_QUALITY_HASH = ConstExprHashingUtils::HashString("LOW_FACE_QUALITY"); UnsearchedFaceReason GetUnsearchedFaceReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FACE_NOT_LARGEST_HASH) { return UnsearchedFaceReason::FACE_NOT_LARGEST; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceAssociationReason.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceAssociationReason.cpp index c9398246977..8019a745198 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceAssociationReason.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceAssociationReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UnsuccessfulFaceAssociationReasonMapper { - static const int FACE_NOT_FOUND_HASH = HashingUtils::HashString("FACE_NOT_FOUND"); - static const int ASSOCIATED_TO_A_DIFFERENT_USER_HASH = HashingUtils::HashString("ASSOCIATED_TO_A_DIFFERENT_USER"); - static const int LOW_MATCH_CONFIDENCE_HASH = HashingUtils::HashString("LOW_MATCH_CONFIDENCE"); + static constexpr uint32_t FACE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FACE_NOT_FOUND"); + static constexpr uint32_t ASSOCIATED_TO_A_DIFFERENT_USER_HASH = ConstExprHashingUtils::HashString("ASSOCIATED_TO_A_DIFFERENT_USER"); + static constexpr uint32_t LOW_MATCH_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("LOW_MATCH_CONFIDENCE"); UnsuccessfulFaceAssociationReason GetUnsuccessfulFaceAssociationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FACE_NOT_FOUND_HASH) { return UnsuccessfulFaceAssociationReason::FACE_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDeletionReason.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDeletionReason.cpp index fd38a57ec42..bd65e1f16d3 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDeletionReason.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDeletionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UnsuccessfulFaceDeletionReasonMapper { - static const int ASSOCIATED_TO_AN_EXISTING_USER_HASH = HashingUtils::HashString("ASSOCIATED_TO_AN_EXISTING_USER"); - static const int FACE_NOT_FOUND_HASH = HashingUtils::HashString("FACE_NOT_FOUND"); + static constexpr uint32_t ASSOCIATED_TO_AN_EXISTING_USER_HASH = ConstExprHashingUtils::HashString("ASSOCIATED_TO_AN_EXISTING_USER"); + static constexpr uint32_t FACE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FACE_NOT_FOUND"); UnsuccessfulFaceDeletionReason GetUnsuccessfulFaceDeletionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATED_TO_AN_EXISTING_USER_HASH) { return UnsuccessfulFaceDeletionReason::ASSOCIATED_TO_AN_EXISTING_USER; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDisassociationReason.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDisassociationReason.cpp index ebfabda3460..807c1c4b358 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDisassociationReason.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/UnsuccessfulFaceDisassociationReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UnsuccessfulFaceDisassociationReasonMapper { - static const int FACE_NOT_FOUND_HASH = HashingUtils::HashString("FACE_NOT_FOUND"); - static const int ASSOCIATED_TO_A_DIFFERENT_USER_HASH = HashingUtils::HashString("ASSOCIATED_TO_A_DIFFERENT_USER"); + static constexpr uint32_t FACE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("FACE_NOT_FOUND"); + static constexpr uint32_t ASSOCIATED_TO_A_DIFFERENT_USER_HASH = ConstExprHashingUtils::HashString("ASSOCIATED_TO_A_DIFFERENT_USER"); UnsuccessfulFaceDisassociationReason GetUnsuccessfulFaceDisassociationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FACE_NOT_FOUND_HASH) { return UnsuccessfulFaceDisassociationReason::FACE_NOT_FOUND; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/UserStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/UserStatus.cpp index 29b2e2d089c..1a2e66eceb8 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/UserStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/UserStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UserStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); UserStatus GetUserStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return UserStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/VideoColorRange.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/VideoColorRange.cpp index 99c150e6972..05abd4803b9 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/VideoColorRange.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/VideoColorRange.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VideoColorRangeMapper { - static const int FULL_HASH = HashingUtils::HashString("FULL"); - static const int LIMITED_HASH = HashingUtils::HashString("LIMITED"); + static constexpr uint32_t FULL_HASH = ConstExprHashingUtils::HashString("FULL"); + static constexpr uint32_t LIMITED_HASH = ConstExprHashingUtils::HashString("LIMITED"); VideoColorRange GetVideoColorRangeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_HASH) { return VideoColorRange::FULL; diff --git a/generated/src/aws-cpp-sdk-rekognition/source/model/VideoJobStatus.cpp b/generated/src/aws-cpp-sdk-rekognition/source/model/VideoJobStatus.cpp index 59ad3b25084..ce6d89b5802 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/model/VideoJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/model/VideoJobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VideoJobStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VideoJobStatus GetVideoJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return VideoJobStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubErrors.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubErrors.cpp index 109362974a8..994b6c7eab3 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubErrors.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubErrors.cpp @@ -40,14 +40,14 @@ template<> AWS_RESILIENCEHUB_API ResourceNotFoundException ResilienceHubError::G namespace ResilienceHubErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AlarmType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AlarmType.cpp index f2dd22869e9..c7b6835ccbb 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AlarmType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AlarmType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AlarmTypeMapper { - static const int Metric_HASH = HashingUtils::HashString("Metric"); - static const int Composite_HASH = HashingUtils::HashString("Composite"); - static const int Canary_HASH = HashingUtils::HashString("Canary"); - static const int Logs_HASH = HashingUtils::HashString("Logs"); - static const int Event_HASH = HashingUtils::HashString("Event"); + static constexpr uint32_t Metric_HASH = ConstExprHashingUtils::HashString("Metric"); + static constexpr uint32_t Composite_HASH = ConstExprHashingUtils::HashString("Composite"); + static constexpr uint32_t Canary_HASH = ConstExprHashingUtils::HashString("Canary"); + static constexpr uint32_t Logs_HASH = ConstExprHashingUtils::HashString("Logs"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); AlarmType GetAlarmTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Metric_HASH) { return AlarmType::Metric; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppAssessmentScheduleType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppAssessmentScheduleType.cpp index 6fc42941102..c60f27a282a 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppAssessmentScheduleType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppAssessmentScheduleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppAssessmentScheduleTypeMapper { - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); - static const int Daily_HASH = HashingUtils::HashString("Daily"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); + static constexpr uint32_t Daily_HASH = ConstExprHashingUtils::HashString("Daily"); AppAssessmentScheduleType GetAppAssessmentScheduleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Disabled_HASH) { return AppAssessmentScheduleType::Disabled; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppComplianceStatusType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppComplianceStatusType.cpp index 79c035692b5..ffb3820d76b 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppComplianceStatusType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppComplianceStatusType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AppComplianceStatusTypeMapper { - static const int PolicyBreached_HASH = HashingUtils::HashString("PolicyBreached"); - static const int PolicyMet_HASH = HashingUtils::HashString("PolicyMet"); - static const int NotAssessed_HASH = HashingUtils::HashString("NotAssessed"); - static const int ChangesDetected_HASH = HashingUtils::HashString("ChangesDetected"); + static constexpr uint32_t PolicyBreached_HASH = ConstExprHashingUtils::HashString("PolicyBreached"); + static constexpr uint32_t PolicyMet_HASH = ConstExprHashingUtils::HashString("PolicyMet"); + static constexpr uint32_t NotAssessed_HASH = ConstExprHashingUtils::HashString("NotAssessed"); + static constexpr uint32_t ChangesDetected_HASH = ConstExprHashingUtils::HashString("ChangesDetected"); AppComplianceStatusType GetAppComplianceStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PolicyBreached_HASH) { return AppComplianceStatusType::PolicyBreached; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppDriftStatusType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppDriftStatusType.cpp index 2ce74510b01..5202e14f74e 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppDriftStatusType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppDriftStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AppDriftStatusTypeMapper { - static const int NotChecked_HASH = HashingUtils::HashString("NotChecked"); - static const int NotDetected_HASH = HashingUtils::HashString("NotDetected"); - static const int Detected_HASH = HashingUtils::HashString("Detected"); + static constexpr uint32_t NotChecked_HASH = ConstExprHashingUtils::HashString("NotChecked"); + static constexpr uint32_t NotDetected_HASH = ConstExprHashingUtils::HashString("NotDetected"); + static constexpr uint32_t Detected_HASH = ConstExprHashingUtils::HashString("Detected"); AppDriftStatusType GetAppDriftStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotChecked_HASH) { return AppDriftStatusType::NotChecked; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppStatusType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppStatusType.cpp index 29ccb211fb7..0e5c46a6e87 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppStatusType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AppStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppStatusTypeMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); AppStatusType GetAppStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return AppStatusType::Active; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentInvoker.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentInvoker.cpp index 64c6fb3f425..246e38a0ebd 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentInvoker.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentInvoker.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssessmentInvokerMapper { - static const int User_HASH = HashingUtils::HashString("User"); - static const int System_HASH = HashingUtils::HashString("System"); + static constexpr uint32_t User_HASH = ConstExprHashingUtils::HashString("User"); + static constexpr uint32_t System_HASH = ConstExprHashingUtils::HashString("System"); AssessmentInvoker GetAssessmentInvokerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == User_HASH) { return AssessmentInvoker::User; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentStatus.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentStatus.cpp index e6147de16e0..207ac3bea0c 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/AssessmentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AssessmentStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Success_HASH = HashingUtils::HashString("Success"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); AssessmentStatus GetAssessmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return AssessmentStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ComplianceStatus.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ComplianceStatus.cpp index 14ce74580bb..cb0af4cada7 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ComplianceStatus.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ComplianceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComplianceStatusMapper { - static const int PolicyBreached_HASH = HashingUtils::HashString("PolicyBreached"); - static const int PolicyMet_HASH = HashingUtils::HashString("PolicyMet"); + static constexpr uint32_t PolicyBreached_HASH = ConstExprHashingUtils::HashString("PolicyBreached"); + static constexpr uint32_t PolicyMet_HASH = ConstExprHashingUtils::HashString("PolicyMet"); ComplianceStatus GetComplianceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PolicyBreached_HASH) { return ComplianceStatus::PolicyBreached; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ConfigRecommendationOptimizationType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ConfigRecommendationOptimizationType.cpp index c8bdb005160..faaf0a79a1b 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ConfigRecommendationOptimizationType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ConfigRecommendationOptimizationType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ConfigRecommendationOptimizationTypeMapper { - static const int LeastCost_HASH = HashingUtils::HashString("LeastCost"); - static const int LeastChange_HASH = HashingUtils::HashString("LeastChange"); - static const int BestAZRecovery_HASH = HashingUtils::HashString("BestAZRecovery"); - static const int LeastErrors_HASH = HashingUtils::HashString("LeastErrors"); - static const int BestAttainable_HASH = HashingUtils::HashString("BestAttainable"); - static const int BestRegionRecovery_HASH = HashingUtils::HashString("BestRegionRecovery"); + static constexpr uint32_t LeastCost_HASH = ConstExprHashingUtils::HashString("LeastCost"); + static constexpr uint32_t LeastChange_HASH = ConstExprHashingUtils::HashString("LeastChange"); + static constexpr uint32_t BestAZRecovery_HASH = ConstExprHashingUtils::HashString("BestAZRecovery"); + static constexpr uint32_t LeastErrors_HASH = ConstExprHashingUtils::HashString("LeastErrors"); + static constexpr uint32_t BestAttainable_HASH = ConstExprHashingUtils::HashString("BestAttainable"); + static constexpr uint32_t BestRegionRecovery_HASH = ConstExprHashingUtils::HashString("BestRegionRecovery"); ConfigRecommendationOptimizationType GetConfigRecommendationOptimizationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LeastCost_HASH) { return ConfigRecommendationOptimizationType::LeastCost; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/CostFrequency.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/CostFrequency.cpp index faaddd1bbda..24cc8b9754d 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/CostFrequency.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/CostFrequency.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CostFrequencyMapper { - static const int Hourly_HASH = HashingUtils::HashString("Hourly"); - static const int Daily_HASH = HashingUtils::HashString("Daily"); - static const int Monthly_HASH = HashingUtils::HashString("Monthly"); - static const int Yearly_HASH = HashingUtils::HashString("Yearly"); + static constexpr uint32_t Hourly_HASH = ConstExprHashingUtils::HashString("Hourly"); + static constexpr uint32_t Daily_HASH = ConstExprHashingUtils::HashString("Daily"); + static constexpr uint32_t Monthly_HASH = ConstExprHashingUtils::HashString("Monthly"); + static constexpr uint32_t Yearly_HASH = ConstExprHashingUtils::HashString("Yearly"); CostFrequency GetCostFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Hourly_HASH) { return CostFrequency::Hourly; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DataLocationConstraint.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DataLocationConstraint.cpp index b9fa67a9254..d0936865260 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DataLocationConstraint.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DataLocationConstraint.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataLocationConstraintMapper { - static const int AnyLocation_HASH = HashingUtils::HashString("AnyLocation"); - static const int SameContinent_HASH = HashingUtils::HashString("SameContinent"); - static const int SameCountry_HASH = HashingUtils::HashString("SameCountry"); + static constexpr uint32_t AnyLocation_HASH = ConstExprHashingUtils::HashString("AnyLocation"); + static constexpr uint32_t SameContinent_HASH = ConstExprHashingUtils::HashString("SameContinent"); + static constexpr uint32_t SameCountry_HASH = ConstExprHashingUtils::HashString("SameCountry"); DataLocationConstraint GetDataLocationConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AnyLocation_HASH) { return DataLocationConstraint::AnyLocation; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DifferenceType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DifferenceType.cpp index fb34a6a059e..024bd1493d4 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DifferenceType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DifferenceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DifferenceTypeMapper { - static const int NotEqual_HASH = HashingUtils::HashString("NotEqual"); + static constexpr uint32_t NotEqual_HASH = ConstExprHashingUtils::HashString("NotEqual"); DifferenceType GetDifferenceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotEqual_HASH) { return DifferenceType::NotEqual; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DisruptionType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DisruptionType.cpp index 0ee52fc80f2..dc1b3c71546 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DisruptionType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DisruptionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DisruptionTypeMapper { - static const int Software_HASH = HashingUtils::HashString("Software"); - static const int Hardware_HASH = HashingUtils::HashString("Hardware"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int Region_HASH = HashingUtils::HashString("Region"); + static constexpr uint32_t Software_HASH = ConstExprHashingUtils::HashString("Software"); + static constexpr uint32_t Hardware_HASH = ConstExprHashingUtils::HashString("Hardware"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t Region_HASH = ConstExprHashingUtils::HashString("Region"); DisruptionType GetDisruptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Software_HASH) { return DisruptionType::Software; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftStatus.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftStatus.cpp index 05424c5bcdd..79496d5f7c7 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftStatus.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DriftStatusMapper { - static const int NotChecked_HASH = HashingUtils::HashString("NotChecked"); - static const int NotDetected_HASH = HashingUtils::HashString("NotDetected"); - static const int Detected_HASH = HashingUtils::HashString("Detected"); + static constexpr uint32_t NotChecked_HASH = ConstExprHashingUtils::HashString("NotChecked"); + static constexpr uint32_t NotDetected_HASH = ConstExprHashingUtils::HashString("NotDetected"); + static constexpr uint32_t Detected_HASH = ConstExprHashingUtils::HashString("Detected"); DriftStatus GetDriftStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotChecked_HASH) { return DriftStatus::NotChecked; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftType.cpp index a98d471e445..e681e2cf565 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/DriftType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DriftTypeMapper { - static const int ApplicationCompliance_HASH = HashingUtils::HashString("ApplicationCompliance"); + static constexpr uint32_t ApplicationCompliance_HASH = ConstExprHashingUtils::HashString("ApplicationCompliance"); DriftType GetDriftTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ApplicationCompliance_HASH) { return DriftType::ApplicationCompliance; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/EstimatedCostTier.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/EstimatedCostTier.cpp index ef986dc07bf..0ac76b402af 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/EstimatedCostTier.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/EstimatedCostTier.cpp @@ -20,15 +20,15 @@ namespace Aws namespace EstimatedCostTierMapper { - static const int L1_HASH = HashingUtils::HashString("L1"); - static const int L2_HASH = HashingUtils::HashString("L2"); - static const int L3_HASH = HashingUtils::HashString("L3"); - static const int L4_HASH = HashingUtils::HashString("L4"); + static constexpr uint32_t L1_HASH = ConstExprHashingUtils::HashString("L1"); + static constexpr uint32_t L2_HASH = ConstExprHashingUtils::HashString("L2"); + static constexpr uint32_t L3_HASH = ConstExprHashingUtils::HashString("L3"); + static constexpr uint32_t L4_HASH = ConstExprHashingUtils::HashString("L4"); EstimatedCostTier GetEstimatedCostTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == L1_HASH) { return EstimatedCostTier::L1; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/EventType.cpp index 96bbf61374d..8756a4e91a4 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/EventType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EventTypeMapper { - static const int ScheduledAssessmentFailure_HASH = HashingUtils::HashString("ScheduledAssessmentFailure"); - static const int DriftDetected_HASH = HashingUtils::HashString("DriftDetected"); + static constexpr uint32_t ScheduledAssessmentFailure_HASH = ConstExprHashingUtils::HashString("ScheduledAssessmentFailure"); + static constexpr uint32_t DriftDetected_HASH = ConstExprHashingUtils::HashString("DriftDetected"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ScheduledAssessmentFailure_HASH) { return EventType::ScheduledAssessmentFailure; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ExcludeRecommendationReason.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ExcludeRecommendationReason.cpp index 767c04150b1..2e05d881886 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ExcludeRecommendationReason.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ExcludeRecommendationReason.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ExcludeRecommendationReasonMapper { - static const int AlreadyImplemented_HASH = HashingUtils::HashString("AlreadyImplemented"); - static const int NotRelevant_HASH = HashingUtils::HashString("NotRelevant"); - static const int ComplexityOfImplementation_HASH = HashingUtils::HashString("ComplexityOfImplementation"); + static constexpr uint32_t AlreadyImplemented_HASH = ConstExprHashingUtils::HashString("AlreadyImplemented"); + static constexpr uint32_t NotRelevant_HASH = ConstExprHashingUtils::HashString("NotRelevant"); + static constexpr uint32_t ComplexityOfImplementation_HASH = ConstExprHashingUtils::HashString("ComplexityOfImplementation"); ExcludeRecommendationReason GetExcludeRecommendationReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AlreadyImplemented_HASH) { return ExcludeRecommendationReason::AlreadyImplemented; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/HaArchitecture.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/HaArchitecture.cpp index d76ae6c3a75..78d3138083d 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/HaArchitecture.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/HaArchitecture.cpp @@ -20,16 +20,16 @@ namespace Aws namespace HaArchitectureMapper { - static const int MultiSite_HASH = HashingUtils::HashString("MultiSite"); - static const int WarmStandby_HASH = HashingUtils::HashString("WarmStandby"); - static const int PilotLight_HASH = HashingUtils::HashString("PilotLight"); - static const int BackupAndRestore_HASH = HashingUtils::HashString("BackupAndRestore"); - static const int NoRecoveryPlan_HASH = HashingUtils::HashString("NoRecoveryPlan"); + static constexpr uint32_t MultiSite_HASH = ConstExprHashingUtils::HashString("MultiSite"); + static constexpr uint32_t WarmStandby_HASH = ConstExprHashingUtils::HashString("WarmStandby"); + static constexpr uint32_t PilotLight_HASH = ConstExprHashingUtils::HashString("PilotLight"); + static constexpr uint32_t BackupAndRestore_HASH = ConstExprHashingUtils::HashString("BackupAndRestore"); + static constexpr uint32_t NoRecoveryPlan_HASH = ConstExprHashingUtils::HashString("NoRecoveryPlan"); HaArchitecture GetHaArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MultiSite_HASH) { return HaArchitecture::MultiSite; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/PermissionModelType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/PermissionModelType.cpp index c3b9652e2b1..c8ea5c2ef95 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/PermissionModelType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/PermissionModelType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionModelTypeMapper { - static const int LegacyIAMUser_HASH = HashingUtils::HashString("LegacyIAMUser"); - static const int RoleBased_HASH = HashingUtils::HashString("RoleBased"); + static constexpr uint32_t LegacyIAMUser_HASH = ConstExprHashingUtils::HashString("LegacyIAMUser"); + static constexpr uint32_t RoleBased_HASH = ConstExprHashingUtils::HashString("RoleBased"); PermissionModelType GetPermissionModelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LegacyIAMUser_HASH) { return PermissionModelType::LegacyIAMUser; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/PhysicalIdentifierType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/PhysicalIdentifierType.cpp index 705d4747960..80b124b928d 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/PhysicalIdentifierType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/PhysicalIdentifierType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PhysicalIdentifierTypeMapper { - static const int Arn_HASH = HashingUtils::HashString("Arn"); - static const int Native_HASH = HashingUtils::HashString("Native"); + static constexpr uint32_t Arn_HASH = ConstExprHashingUtils::HashString("Arn"); + static constexpr uint32_t Native_HASH = ConstExprHashingUtils::HashString("Native"); PhysicalIdentifierType GetPhysicalIdentifierTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Arn_HASH) { return PhysicalIdentifierType::Arn; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationComplianceStatus.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationComplianceStatus.cpp index 3fe7720b78e..742bffc1be6 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationComplianceStatus.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationComplianceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecommendationComplianceStatusMapper { - static const int BreachedUnattainable_HASH = HashingUtils::HashString("BreachedUnattainable"); - static const int BreachedCanMeet_HASH = HashingUtils::HashString("BreachedCanMeet"); - static const int MetCanImprove_HASH = HashingUtils::HashString("MetCanImprove"); + static constexpr uint32_t BreachedUnattainable_HASH = ConstExprHashingUtils::HashString("BreachedUnattainable"); + static constexpr uint32_t BreachedCanMeet_HASH = ConstExprHashingUtils::HashString("BreachedCanMeet"); + static constexpr uint32_t MetCanImprove_HASH = ConstExprHashingUtils::HashString("MetCanImprove"); RecommendationComplianceStatus GetRecommendationComplianceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BreachedUnattainable_HASH) { return RecommendationComplianceStatus::BreachedUnattainable; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationTemplateStatus.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationTemplateStatus.cpp index 71a953c9c3d..518cdaa198c 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationTemplateStatus.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/RecommendationTemplateStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RecommendationTemplateStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Success_HASH = HashingUtils::HashString("Success"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); RecommendationTemplateStatus GetRecommendationTemplateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return RecommendationTemplateStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/RenderRecommendationType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/RenderRecommendationType.cpp index 5099106e85f..cd910223471 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/RenderRecommendationType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/RenderRecommendationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RenderRecommendationTypeMapper { - static const int Alarm_HASH = HashingUtils::HashString("Alarm"); - static const int Sop_HASH = HashingUtils::HashString("Sop"); - static const int Test_HASH = HashingUtils::HashString("Test"); + static constexpr uint32_t Alarm_HASH = ConstExprHashingUtils::HashString("Alarm"); + static constexpr uint32_t Sop_HASH = ConstExprHashingUtils::HashString("Sop"); + static constexpr uint32_t Test_HASH = ConstExprHashingUtils::HashString("Test"); RenderRecommendationType GetRenderRecommendationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Alarm_HASH) { return RenderRecommendationType::Alarm; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResiliencyPolicyTier.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResiliencyPolicyTier.cpp index c8af3cdabee..6f62b77f2ec 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResiliencyPolicyTier.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResiliencyPolicyTier.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResiliencyPolicyTierMapper { - static const int MissionCritical_HASH = HashingUtils::HashString("MissionCritical"); - static const int Critical_HASH = HashingUtils::HashString("Critical"); - static const int Important_HASH = HashingUtils::HashString("Important"); - static const int CoreServices_HASH = HashingUtils::HashString("CoreServices"); - static const int NonCritical_HASH = HashingUtils::HashString("NonCritical"); - static const int NotApplicable_HASH = HashingUtils::HashString("NotApplicable"); + static constexpr uint32_t MissionCritical_HASH = ConstExprHashingUtils::HashString("MissionCritical"); + static constexpr uint32_t Critical_HASH = ConstExprHashingUtils::HashString("Critical"); + static constexpr uint32_t Important_HASH = ConstExprHashingUtils::HashString("Important"); + static constexpr uint32_t CoreServices_HASH = ConstExprHashingUtils::HashString("CoreServices"); + static constexpr uint32_t NonCritical_HASH = ConstExprHashingUtils::HashString("NonCritical"); + static constexpr uint32_t NotApplicable_HASH = ConstExprHashingUtils::HashString("NotApplicable"); ResiliencyPolicyTier GetResiliencyPolicyTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MissionCritical_HASH) { return ResiliencyPolicyTier::MissionCritical; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStatusType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStatusType.cpp index f8218880745..4f4bf83c2fb 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStatusType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStatusType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceImportStatusTypeMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Success_HASH = HashingUtils::HashString("Success"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); ResourceImportStatusType GetResourceImportStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ResourceImportStatusType::Pending; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStrategyType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStrategyType.cpp index 83a457bd870..afde8eaf232 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceImportStrategyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceImportStrategyTypeMapper { - static const int AddOnly_HASH = HashingUtils::HashString("AddOnly"); - static const int ReplaceAll_HASH = HashingUtils::HashString("ReplaceAll"); + static constexpr uint32_t AddOnly_HASH = ConstExprHashingUtils::HashString("AddOnly"); + static constexpr uint32_t ReplaceAll_HASH = ConstExprHashingUtils::HashString("ReplaceAll"); ResourceImportStrategyType GetResourceImportStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AddOnly_HASH) { return ResourceImportStrategyType::AddOnly; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceMappingType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceMappingType.cpp index 21dc75a8f53..5cb9cb5afbd 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceMappingType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceMappingType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResourceMappingTypeMapper { - static const int CfnStack_HASH = HashingUtils::HashString("CfnStack"); - static const int Resource_HASH = HashingUtils::HashString("Resource"); - static const int AppRegistryApp_HASH = HashingUtils::HashString("AppRegistryApp"); - static const int ResourceGroup_HASH = HashingUtils::HashString("ResourceGroup"); - static const int Terraform_HASH = HashingUtils::HashString("Terraform"); - static const int EKS_HASH = HashingUtils::HashString("EKS"); + static constexpr uint32_t CfnStack_HASH = ConstExprHashingUtils::HashString("CfnStack"); + static constexpr uint32_t Resource_HASH = ConstExprHashingUtils::HashString("Resource"); + static constexpr uint32_t AppRegistryApp_HASH = ConstExprHashingUtils::HashString("AppRegistryApp"); + static constexpr uint32_t ResourceGroup_HASH = ConstExprHashingUtils::HashString("ResourceGroup"); + static constexpr uint32_t Terraform_HASH = ConstExprHashingUtils::HashString("Terraform"); + static constexpr uint32_t EKS_HASH = ConstExprHashingUtils::HashString("EKS"); ResourceMappingType GetResourceMappingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CfnStack_HASH) { return ResourceMappingType::CfnStack; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceResolutionStatusType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceResolutionStatusType.cpp index 046f3a134ef..9ce6a61dbf2 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceResolutionStatusType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceResolutionStatusType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceResolutionStatusTypeMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Success_HASH = HashingUtils::HashString("Success"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); ResourceResolutionStatusType GetResourceResolutionStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ResourceResolutionStatusType::Pending; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceSourceType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceSourceType.cpp index 1eacc1c13a9..0fc7d45f6cc 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceSourceType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/ResourceSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceSourceTypeMapper { - static const int AppTemplate_HASH = HashingUtils::HashString("AppTemplate"); - static const int Discovered_HASH = HashingUtils::HashString("Discovered"); + static constexpr uint32_t AppTemplate_HASH = ConstExprHashingUtils::HashString("AppTemplate"); + static constexpr uint32_t Discovered_HASH = ConstExprHashingUtils::HashString("Discovered"); ResourceSourceType GetResourceSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AppTemplate_HASH) { return ResourceSourceType::AppTemplate; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/SopServiceType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/SopServiceType.cpp index d80ca05e74b..5c904c71f50 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/SopServiceType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/SopServiceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SopServiceTypeMapper { - static const int SSM_HASH = HashingUtils::HashString("SSM"); + static constexpr uint32_t SSM_HASH = ConstExprHashingUtils::HashString("SSM"); SopServiceType GetSopServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_HASH) { return SopServiceType::SSM; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/TemplateFormat.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/TemplateFormat.cpp index eb8915b1192..e494314c736 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/TemplateFormat.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/TemplateFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TemplateFormatMapper { - static const int CfnYaml_HASH = HashingUtils::HashString("CfnYaml"); - static const int CfnJson_HASH = HashingUtils::HashString("CfnJson"); + static constexpr uint32_t CfnYaml_HASH = ConstExprHashingUtils::HashString("CfnYaml"); + static constexpr uint32_t CfnJson_HASH = ConstExprHashingUtils::HashString("CfnJson"); TemplateFormat GetTemplateFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CfnYaml_HASH) { return TemplateFormat::CfnYaml; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestRisk.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestRisk.cpp index f7b68b65fb7..5fc6c9940f0 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestRisk.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestRisk.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TestRiskMapper { - static const int Small_HASH = HashingUtils::HashString("Small"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int High_HASH = HashingUtils::HashString("High"); + static constexpr uint32_t Small_HASH = ConstExprHashingUtils::HashString("Small"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t High_HASH = ConstExprHashingUtils::HashString("High"); TestRisk GetTestRiskForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Small_HASH) { return TestRisk::Small; diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestType.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestType.cpp index f69e4edd50e..f8fca85f7a4 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestType.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/model/TestType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TestTypeMapper { - static const int Software_HASH = HashingUtils::HashString("Software"); - static const int Hardware_HASH = HashingUtils::HashString("Hardware"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int Region_HASH = HashingUtils::HashString("Region"); + static constexpr uint32_t Software_HASH = ConstExprHashingUtils::HashString("Software"); + static constexpr uint32_t Hardware_HASH = ConstExprHashingUtils::HashString("Hardware"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t Region_HASH = ConstExprHashingUtils::HashString("Region"); TestType GetTestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Software_HASH) { return TestType::Software; diff --git a/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Errors.cpp b/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Errors.cpp index 1581541faf2..5f1d5405ed3 100644 --- a/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Errors.cpp +++ b/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Errors.cpp @@ -33,15 +33,15 @@ template<> AWS_RESOURCEEXPLORER2_API ValidationException ResourceExplorer2Error: namespace ResourceExplorer2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexState.cpp b/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexState.cpp index b4f1cdac630..92256d5db9f 100644 --- a/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexState.cpp +++ b/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace IndexStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); IndexState GetIndexStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return IndexState::CREATING; diff --git a/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexType.cpp b/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexType.cpp index 25758bfe52c..f0b67b24768 100644 --- a/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexType.cpp +++ b/generated/src/aws-cpp-sdk-resource-explorer-2/source/model/IndexType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IndexTypeMapper { - static const int LOCAL_HASH = HashingUtils::HashString("LOCAL"); - static const int AGGREGATOR_HASH = HashingUtils::HashString("AGGREGATOR"); + static constexpr uint32_t LOCAL_HASH = ConstExprHashingUtils::HashString("LOCAL"); + static constexpr uint32_t AGGREGATOR_HASH = ConstExprHashingUtils::HashString("AGGREGATOR"); IndexType GetIndexTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOCAL_HASH) { return IndexType::LOCAL; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsErrors.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsErrors.cpp index 7d9bb75c7f7..0148171a48d 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsErrors.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsErrors.cpp @@ -18,18 +18,18 @@ namespace ResourceGroups namespace ResourceGroupsErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); -static const int METHOD_NOT_ALLOWED_HASH = HashingUtils::HashString("MethodNotAllowedException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t METHOD_NOT_ALLOWED_HASH = ConstExprHashingUtils::HashString("MethodNotAllowedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupConfigurationStatus.cpp index cbf94c4aae5..3690ca2297d 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupConfigurationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GroupConfigurationStatusMapper { - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); GroupConfigurationStatus GetGroupConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATING_HASH) { return GroupConfigurationStatus::UPDATING; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupFilterName.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupFilterName.cpp index f45069d81fe..b79d39bd4e8 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupFilterName.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupFilterName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GroupFilterNameMapper { - static const int resource_type_HASH = HashingUtils::HashString("resource-type"); - static const int configuration_type_HASH = HashingUtils::HashString("configuration-type"); + static constexpr uint32_t resource_type_HASH = ConstExprHashingUtils::HashString("resource-type"); + static constexpr uint32_t configuration_type_HASH = ConstExprHashingUtils::HashString("configuration-type"); GroupFilterName GetGroupFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == resource_type_HASH) { return GroupFilterName::resource_type; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsDesiredStatus.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsDesiredStatus.cpp index a1e0d584379..d23a7cca539 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsDesiredStatus.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsDesiredStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GroupLifecycleEventsDesiredStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); GroupLifecycleEventsDesiredStatus GetGroupLifecycleEventsDesiredStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return GroupLifecycleEventsDesiredStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsStatus.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsStatus.cpp index 365e1c56de6..9d2247d76e1 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsStatus.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/GroupLifecycleEventsStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace GroupLifecycleEventsStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); GroupLifecycleEventsStatus GetGroupLifecycleEventsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return GroupLifecycleEventsStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryErrorCode.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryErrorCode.cpp index 131186eb986..72ead75c04a 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryErrorCode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace QueryErrorCodeMapper { - static const int CLOUDFORMATION_STACK_INACTIVE_HASH = HashingUtils::HashString("CLOUDFORMATION_STACK_INACTIVE"); - static const int CLOUDFORMATION_STACK_NOT_EXISTING_HASH = HashingUtils::HashString("CLOUDFORMATION_STACK_NOT_EXISTING"); - static const int CLOUDFORMATION_STACK_UNASSUMABLE_ROLE_HASH = HashingUtils::HashString("CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"); + static constexpr uint32_t CLOUDFORMATION_STACK_INACTIVE_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION_STACK_INACTIVE"); + static constexpr uint32_t CLOUDFORMATION_STACK_NOT_EXISTING_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION_STACK_NOT_EXISTING"); + static constexpr uint32_t CLOUDFORMATION_STACK_UNASSUMABLE_ROLE_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"); QueryErrorCode GetQueryErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFORMATION_STACK_INACTIVE_HASH) { return QueryErrorCode::CLOUDFORMATION_STACK_INACTIVE; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryType.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryType.cpp index 056c2d7d8bf..cc11e1d93b9 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryType.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/QueryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueryTypeMapper { - static const int TAG_FILTERS_1_0_HASH = HashingUtils::HashString("TAG_FILTERS_1_0"); - static const int CLOUDFORMATION_STACK_1_0_HASH = HashingUtils::HashString("CLOUDFORMATION_STACK_1_0"); + static constexpr uint32_t TAG_FILTERS_1_0_HASH = ConstExprHashingUtils::HashString("TAG_FILTERS_1_0"); + static constexpr uint32_t CLOUDFORMATION_STACK_1_0_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION_STACK_1_0"); QueryType GetQueryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TAG_FILTERS_1_0_HASH) { return QueryType::TAG_FILTERS_1_0; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceFilterName.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceFilterName.cpp index f13b415b722..aabef40cdc6 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceFilterName.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceFilterNameMapper { - static const int resource_type_HASH = HashingUtils::HashString("resource-type"); + static constexpr uint32_t resource_type_HASH = ConstExprHashingUtils::HashString("resource-type"); ResourceFilterName GetResourceFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == resource_type_HASH) { return ResourceFilterName::resource_type; diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceStatusValue.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceStatusValue.cpp index 555d4c4763b..b95c3be6fe4 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceStatusValue.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/model/ResourceStatusValue.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceStatusValueMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); ResourceStatusValue GetResourceStatusValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ResourceStatusValue::PENDING; diff --git a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIErrors.cpp b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIErrors.cpp index 2e4aa65ce56..c3326761562 100644 --- a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIErrors.cpp +++ b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIErrors.cpp @@ -18,16 +18,16 @@ namespace ResourceGroupsTaggingAPI namespace ResourceGroupsTaggingAPIErrorMapper { -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int PAGINATION_TOKEN_EXPIRED_HASH = HashingUtils::HashString("PaginationTokenExpiredException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int CONSTRAINT_VIOLATION_HASH = HashingUtils::HashString("ConstraintViolationException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t PAGINATION_TOKEN_EXPIRED_HASH = ConstExprHashingUtils::HashString("PaginationTokenExpiredException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t CONSTRAINT_VIOLATION_HASH = ConstExprHashingUtils::HashString("ConstraintViolationException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_PARAMETER_HASH) { diff --git a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/ErrorCode.cpp index 3473d8976bd..5e41f032581 100644 --- a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/ErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ErrorCodeMapper { - static const int InternalServiceException_HASH = HashingUtils::HashString("InternalServiceException"); - static const int InvalidParameterException_HASH = HashingUtils::HashString("InvalidParameterException"); + static constexpr uint32_t InternalServiceException_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); + static constexpr uint32_t InvalidParameterException_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalServiceException_HASH) { return ErrorCode::InternalServiceException; diff --git a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/GroupByAttribute.cpp b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/GroupByAttribute.cpp index 9808e12de41..574b74b105f 100644 --- a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/GroupByAttribute.cpp +++ b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/GroupByAttribute.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GroupByAttributeMapper { - static const int TARGET_ID_HASH = HashingUtils::HashString("TARGET_ID"); - static const int REGION_HASH = HashingUtils::HashString("REGION"); - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t TARGET_ID_HASH = ConstExprHashingUtils::HashString("TARGET_ID"); + static constexpr uint32_t REGION_HASH = ConstExprHashingUtils::HashString("REGION"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); GroupByAttribute GetGroupByAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TARGET_ID_HASH) { return GroupByAttribute::TARGET_ID; diff --git a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/TargetIdType.cpp b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/TargetIdType.cpp index c42aa1b9b48..26735d59364 100644 --- a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/TargetIdType.cpp +++ b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/model/TargetIdType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetIdTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int OU_HASH = HashingUtils::HashString("OU"); - static const int ROOT_HASH = HashingUtils::HashString("ROOT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t OU_HASH = ConstExprHashingUtils::HashString("OU"); + static constexpr uint32_t ROOT_HASH = ConstExprHashingUtils::HashString("ROOT"); TargetIdType GetTargetIdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return TargetIdType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/RoboMakerErrors.cpp b/generated/src/aws-cpp-sdk-robomaker/source/RoboMakerErrors.cpp index e205f116e63..c92e0cb24e5 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/RoboMakerErrors.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/RoboMakerErrors.cpp @@ -18,16 +18,16 @@ namespace RoboMaker namespace RoboMakerErrorMapper { -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVER_HASH) { diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/Architecture.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/Architecture.cpp index 06f40c61332..09a84fc6798 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/Architecture.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/Architecture.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ArchitectureMapper { - static const int X86_64_HASH = HashingUtils::HashString("X86_64"); - static const int ARM64_HASH = HashingUtils::HashString("ARM64"); - static const int ARMHF_HASH = HashingUtils::HashString("ARMHF"); + static constexpr uint32_t X86_64_HASH = ConstExprHashingUtils::HashString("X86_64"); + static constexpr uint32_t ARM64_HASH = ConstExprHashingUtils::HashString("ARM64"); + static constexpr uint32_t ARMHF_HASH = ConstExprHashingUtils::HashString("ARMHF"); Architecture GetArchitectureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == X86_64_HASH) { return Architecture::X86_64; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/ComputeType.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/ComputeType.cpp index 2fed63db894..c9849559b33 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/ComputeType.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/ComputeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComputeTypeMapper { - static const int CPU_HASH = HashingUtils::HashString("CPU"); - static const int GPU_AND_CPU_HASH = HashingUtils::HashString("GPU_AND_CPU"); + static constexpr uint32_t CPU_HASH = ConstExprHashingUtils::HashString("CPU"); + static constexpr uint32_t GPU_AND_CPU_HASH = ConstExprHashingUtils::HashString("GPU_AND_CPU"); ComputeType GetComputeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPU_HASH) { return ComputeType::CPU; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/DataSourceType.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/DataSourceType.cpp index 0313c803402..c3b6a9d23c1 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/DataSourceType.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/DataSourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataSourceTypeMapper { - static const int Prefix_HASH = HashingUtils::HashString("Prefix"); - static const int Archive_HASH = HashingUtils::HashString("Archive"); - static const int File_HASH = HashingUtils::HashString("File"); + static constexpr uint32_t Prefix_HASH = ConstExprHashingUtils::HashString("Prefix"); + static constexpr uint32_t Archive_HASH = ConstExprHashingUtils::HashString("Archive"); + static constexpr uint32_t File_HASH = ConstExprHashingUtils::HashString("File"); DataSourceType GetDataSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Prefix_HASH) { return DataSourceType::Prefix; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentJobErrorCode.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentJobErrorCode.cpp index 85625f9d87b..b096539bdae 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentJobErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentJobErrorCode.cpp @@ -20,35 +20,35 @@ namespace Aws namespace DeploymentJobErrorCodeMapper { - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); - static const int EnvironmentSetupError_HASH = HashingUtils::HashString("EnvironmentSetupError"); - static const int EtagMismatch_HASH = HashingUtils::HashString("EtagMismatch"); - static const int FailureThresholdBreached_HASH = HashingUtils::HashString("FailureThresholdBreached"); - static const int RobotDeploymentAborted_HASH = HashingUtils::HashString("RobotDeploymentAborted"); - static const int RobotDeploymentNoResponse_HASH = HashingUtils::HashString("RobotDeploymentNoResponse"); - static const int RobotAgentConnectionTimeout_HASH = HashingUtils::HashString("RobotAgentConnectionTimeout"); - static const int GreengrassDeploymentFailed_HASH = HashingUtils::HashString("GreengrassDeploymentFailed"); - static const int InvalidGreengrassGroup_HASH = HashingUtils::HashString("InvalidGreengrassGroup"); - static const int MissingRobotArchitecture_HASH = HashingUtils::HashString("MissingRobotArchitecture"); - static const int MissingRobotApplicationArchitecture_HASH = HashingUtils::HashString("MissingRobotApplicationArchitecture"); - static const int MissingRobotDeploymentResource_HASH = HashingUtils::HashString("MissingRobotDeploymentResource"); - static const int GreengrassGroupVersionDoesNotExist_HASH = HashingUtils::HashString("GreengrassGroupVersionDoesNotExist"); - static const int LambdaDeleted_HASH = HashingUtils::HashString("LambdaDeleted"); - static const int ExtractingBundleFailure_HASH = HashingUtils::HashString("ExtractingBundleFailure"); - static const int PreLaunchFileFailure_HASH = HashingUtils::HashString("PreLaunchFileFailure"); - static const int PostLaunchFileFailure_HASH = HashingUtils::HashString("PostLaunchFileFailure"); - static const int BadPermissionError_HASH = HashingUtils::HashString("BadPermissionError"); - static const int DownloadConditionFailed_HASH = HashingUtils::HashString("DownloadConditionFailed"); - static const int BadLambdaAssociated_HASH = HashingUtils::HashString("BadLambdaAssociated"); - static const int InternalServerError_HASH = HashingUtils::HashString("InternalServerError"); - static const int RobotApplicationDoesNotExist_HASH = HashingUtils::HashString("RobotApplicationDoesNotExist"); - static const int DeploymentFleetDoesNotExist_HASH = HashingUtils::HashString("DeploymentFleetDoesNotExist"); - static const int FleetDeploymentTimeout_HASH = HashingUtils::HashString("FleetDeploymentTimeout"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t EnvironmentSetupError_HASH = ConstExprHashingUtils::HashString("EnvironmentSetupError"); + static constexpr uint32_t EtagMismatch_HASH = ConstExprHashingUtils::HashString("EtagMismatch"); + static constexpr uint32_t FailureThresholdBreached_HASH = ConstExprHashingUtils::HashString("FailureThresholdBreached"); + static constexpr uint32_t RobotDeploymentAborted_HASH = ConstExprHashingUtils::HashString("RobotDeploymentAborted"); + static constexpr uint32_t RobotDeploymentNoResponse_HASH = ConstExprHashingUtils::HashString("RobotDeploymentNoResponse"); + static constexpr uint32_t RobotAgentConnectionTimeout_HASH = ConstExprHashingUtils::HashString("RobotAgentConnectionTimeout"); + static constexpr uint32_t GreengrassDeploymentFailed_HASH = ConstExprHashingUtils::HashString("GreengrassDeploymentFailed"); + static constexpr uint32_t InvalidGreengrassGroup_HASH = ConstExprHashingUtils::HashString("InvalidGreengrassGroup"); + static constexpr uint32_t MissingRobotArchitecture_HASH = ConstExprHashingUtils::HashString("MissingRobotArchitecture"); + static constexpr uint32_t MissingRobotApplicationArchitecture_HASH = ConstExprHashingUtils::HashString("MissingRobotApplicationArchitecture"); + static constexpr uint32_t MissingRobotDeploymentResource_HASH = ConstExprHashingUtils::HashString("MissingRobotDeploymentResource"); + static constexpr uint32_t GreengrassGroupVersionDoesNotExist_HASH = ConstExprHashingUtils::HashString("GreengrassGroupVersionDoesNotExist"); + static constexpr uint32_t LambdaDeleted_HASH = ConstExprHashingUtils::HashString("LambdaDeleted"); + static constexpr uint32_t ExtractingBundleFailure_HASH = ConstExprHashingUtils::HashString("ExtractingBundleFailure"); + static constexpr uint32_t PreLaunchFileFailure_HASH = ConstExprHashingUtils::HashString("PreLaunchFileFailure"); + static constexpr uint32_t PostLaunchFileFailure_HASH = ConstExprHashingUtils::HashString("PostLaunchFileFailure"); + static constexpr uint32_t BadPermissionError_HASH = ConstExprHashingUtils::HashString("BadPermissionError"); + static constexpr uint32_t DownloadConditionFailed_HASH = ConstExprHashingUtils::HashString("DownloadConditionFailed"); + static constexpr uint32_t BadLambdaAssociated_HASH = ConstExprHashingUtils::HashString("BadLambdaAssociated"); + static constexpr uint32_t InternalServerError_HASH = ConstExprHashingUtils::HashString("InternalServerError"); + static constexpr uint32_t RobotApplicationDoesNotExist_HASH = ConstExprHashingUtils::HashString("RobotApplicationDoesNotExist"); + static constexpr uint32_t DeploymentFleetDoesNotExist_HASH = ConstExprHashingUtils::HashString("DeploymentFleetDoesNotExist"); + static constexpr uint32_t FleetDeploymentTimeout_HASH = ConstExprHashingUtils::HashString("FleetDeploymentTimeout"); DeploymentJobErrorCode GetDeploymentJobErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceNotFound_HASH) { return DeploymentJobErrorCode::ResourceNotFound; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentStatus.cpp index a6704f3c9c7..a6198a8f5bc 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/DeploymentStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeploymentStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Preparing_HASH = HashingUtils::HashString("Preparing"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Preparing_HASH = ConstExprHashingUtils::HashString("Preparing"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return DeploymentStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/ExitBehavior.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/ExitBehavior.cpp index 935191cf182..f88555c171d 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/ExitBehavior.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/ExitBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExitBehaviorMapper { - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); - static const int RESTART_HASH = HashingUtils::HashString("RESTART"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); + static constexpr uint32_t RESTART_HASH = ConstExprHashingUtils::HashString("RESTART"); ExitBehavior GetExitBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAIL_HASH) { return ExitBehavior::FAIL; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/FailureBehavior.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/FailureBehavior.cpp index f01d332ab43..6305d05f68a 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/FailureBehavior.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/FailureBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailureBehaviorMapper { - static const int Fail_HASH = HashingUtils::HashString("Fail"); - static const int Continue_HASH = HashingUtils::HashString("Continue"); + static constexpr uint32_t Fail_HASH = ConstExprHashingUtils::HashString("Fail"); + static constexpr uint32_t Continue_HASH = ConstExprHashingUtils::HashString("Continue"); FailureBehavior GetFailureBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Fail_HASH) { return FailureBehavior::Fail; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/RenderingEngineType.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/RenderingEngineType.cpp index b563d9ff269..d1e5a0b6fc4 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/RenderingEngineType.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/RenderingEngineType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RenderingEngineTypeMapper { - static const int OGRE_HASH = HashingUtils::HashString("OGRE"); + static constexpr uint32_t OGRE_HASH = ConstExprHashingUtils::HashString("OGRE"); RenderingEngineType GetRenderingEngineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OGRE_HASH) { return RenderingEngineType::OGRE; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotDeploymentStep.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotDeploymentStep.cpp index e25a1a4ab29..a718d6126c8 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotDeploymentStep.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotDeploymentStep.cpp @@ -20,18 +20,18 @@ namespace Aws namespace RobotDeploymentStepMapper { - static const int Validating_HASH = HashingUtils::HashString("Validating"); - static const int DownloadingExtracting_HASH = HashingUtils::HashString("DownloadingExtracting"); - static const int ExecutingDownloadCondition_HASH = HashingUtils::HashString("ExecutingDownloadCondition"); - static const int ExecutingPreLaunch_HASH = HashingUtils::HashString("ExecutingPreLaunch"); - static const int Launching_HASH = HashingUtils::HashString("Launching"); - static const int ExecutingPostLaunch_HASH = HashingUtils::HashString("ExecutingPostLaunch"); - static const int Finished_HASH = HashingUtils::HashString("Finished"); + static constexpr uint32_t Validating_HASH = ConstExprHashingUtils::HashString("Validating"); + static constexpr uint32_t DownloadingExtracting_HASH = ConstExprHashingUtils::HashString("DownloadingExtracting"); + static constexpr uint32_t ExecutingDownloadCondition_HASH = ConstExprHashingUtils::HashString("ExecutingDownloadCondition"); + static constexpr uint32_t ExecutingPreLaunch_HASH = ConstExprHashingUtils::HashString("ExecutingPreLaunch"); + static constexpr uint32_t Launching_HASH = ConstExprHashingUtils::HashString("Launching"); + static constexpr uint32_t ExecutingPostLaunch_HASH = ConstExprHashingUtils::HashString("ExecutingPostLaunch"); + static constexpr uint32_t Finished_HASH = ConstExprHashingUtils::HashString("Finished"); RobotDeploymentStep GetRobotDeploymentStepForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Validating_HASH) { return RobotDeploymentStep::Validating; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteType.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteType.cpp index b1f0c2f5c4d..3c9ad1bf7ed 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteType.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RobotSoftwareSuiteTypeMapper { - static const int ROS_HASH = HashingUtils::HashString("ROS"); - static const int ROS2_HASH = HashingUtils::HashString("ROS2"); - static const int General_HASH = HashingUtils::HashString("General"); + static constexpr uint32_t ROS_HASH = ConstExprHashingUtils::HashString("ROS"); + static constexpr uint32_t ROS2_HASH = ConstExprHashingUtils::HashString("ROS2"); + static constexpr uint32_t General_HASH = ConstExprHashingUtils::HashString("General"); RobotSoftwareSuiteType GetRobotSoftwareSuiteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROS_HASH) { return RobotSoftwareSuiteType::ROS; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteVersionType.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteVersionType.cpp index 4b1c3f04798..0f7489788a4 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteVersionType.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotSoftwareSuiteVersionType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RobotSoftwareSuiteVersionTypeMapper { - static const int Kinetic_HASH = HashingUtils::HashString("Kinetic"); - static const int Melodic_HASH = HashingUtils::HashString("Melodic"); - static const int Dashing_HASH = HashingUtils::HashString("Dashing"); - static const int Foxy_HASH = HashingUtils::HashString("Foxy"); + static constexpr uint32_t Kinetic_HASH = ConstExprHashingUtils::HashString("Kinetic"); + static constexpr uint32_t Melodic_HASH = ConstExprHashingUtils::HashString("Melodic"); + static constexpr uint32_t Dashing_HASH = ConstExprHashingUtils::HashString("Dashing"); + static constexpr uint32_t Foxy_HASH = ConstExprHashingUtils::HashString("Foxy"); RobotSoftwareSuiteVersionType GetRobotSoftwareSuiteVersionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Kinetic_HASH) { return RobotSoftwareSuiteVersionType::Kinetic; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotStatus.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotStatus.cpp index e09fb808792..0a5740f3658 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/RobotStatus.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/RobotStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace RobotStatusMapper { - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Registered_HASH = HashingUtils::HashString("Registered"); - static const int PendingNewDeployment_HASH = HashingUtils::HashString("PendingNewDeployment"); - static const int Deploying_HASH = HashingUtils::HashString("Deploying"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InSync_HASH = HashingUtils::HashString("InSync"); - static const int NoResponse_HASH = HashingUtils::HashString("NoResponse"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Registered_HASH = ConstExprHashingUtils::HashString("Registered"); + static constexpr uint32_t PendingNewDeployment_HASH = ConstExprHashingUtils::HashString("PendingNewDeployment"); + static constexpr uint32_t Deploying_HASH = ConstExprHashingUtils::HashString("Deploying"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InSync_HASH = ConstExprHashingUtils::HashString("InSync"); + static constexpr uint32_t NoResponse_HASH = ConstExprHashingUtils::HashString("NoResponse"); RobotStatus GetRobotStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Available_HASH) { return RobotStatus::Available; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchErrorCode.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchErrorCode.cpp index 8b08261e6e1..27c9386447d 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchErrorCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SimulationJobBatchErrorCodeMapper { - static const int InternalServiceError_HASH = HashingUtils::HashString("InternalServiceError"); + static constexpr uint32_t InternalServiceError_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); SimulationJobBatchErrorCode GetSimulationJobBatchErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalServiceError_HASH) { return SimulationJobBatchErrorCode::InternalServiceError; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchStatus.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchStatus.cpp index 2110d79ee5e..762e26bed3b 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchStatus.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobBatchStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SimulationJobBatchStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); - static const int Canceling_HASH = HashingUtils::HashString("Canceling"); - static const int Completing_HASH = HashingUtils::HashString("Completing"); - static const int TimingOut_HASH = HashingUtils::HashString("TimingOut"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); + static constexpr uint32_t Canceling_HASH = ConstExprHashingUtils::HashString("Canceling"); + static constexpr uint32_t Completing_HASH = ConstExprHashingUtils::HashString("Completing"); + static constexpr uint32_t TimingOut_HASH = ConstExprHashingUtils::HashString("TimingOut"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); SimulationJobBatchStatus GetSimulationJobBatchStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return SimulationJobBatchStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobErrorCode.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobErrorCode.cpp index b7b34736cf7..57c01ef29d6 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobErrorCode.cpp @@ -20,42 +20,42 @@ namespace Aws namespace SimulationJobErrorCodeMapper { - static const int InternalServiceError_HASH = HashingUtils::HashString("InternalServiceError"); - static const int RobotApplicationCrash_HASH = HashingUtils::HashString("RobotApplicationCrash"); - static const int SimulationApplicationCrash_HASH = HashingUtils::HashString("SimulationApplicationCrash"); - static const int RobotApplicationHealthCheckFailure_HASH = HashingUtils::HashString("RobotApplicationHealthCheckFailure"); - static const int SimulationApplicationHealthCheckFailure_HASH = HashingUtils::HashString("SimulationApplicationHealthCheckFailure"); - static const int BadPermissionsRobotApplication_HASH = HashingUtils::HashString("BadPermissionsRobotApplication"); - static const int BadPermissionsSimulationApplication_HASH = HashingUtils::HashString("BadPermissionsSimulationApplication"); - static const int BadPermissionsS3Object_HASH = HashingUtils::HashString("BadPermissionsS3Object"); - static const int BadPermissionsS3Output_HASH = HashingUtils::HashString("BadPermissionsS3Output"); - static const int BadPermissionsCloudwatchLogs_HASH = HashingUtils::HashString("BadPermissionsCloudwatchLogs"); - static const int SubnetIpLimitExceeded_HASH = HashingUtils::HashString("SubnetIpLimitExceeded"); - static const int ENILimitExceeded_HASH = HashingUtils::HashString("ENILimitExceeded"); - static const int BadPermissionsUserCredentials_HASH = HashingUtils::HashString("BadPermissionsUserCredentials"); - static const int InvalidBundleRobotApplication_HASH = HashingUtils::HashString("InvalidBundleRobotApplication"); - static const int InvalidBundleSimulationApplication_HASH = HashingUtils::HashString("InvalidBundleSimulationApplication"); - static const int InvalidS3Resource_HASH = HashingUtils::HashString("InvalidS3Resource"); - static const int ThrottlingError_HASH = HashingUtils::HashString("ThrottlingError"); - static const int LimitExceeded_HASH = HashingUtils::HashString("LimitExceeded"); - static const int MismatchedEtag_HASH = HashingUtils::HashString("MismatchedEtag"); - static const int RobotApplicationVersionMismatchedEtag_HASH = HashingUtils::HashString("RobotApplicationVersionMismatchedEtag"); - static const int SimulationApplicationVersionMismatchedEtag_HASH = HashingUtils::HashString("SimulationApplicationVersionMismatchedEtag"); - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); - static const int RequestThrottled_HASH = HashingUtils::HashString("RequestThrottled"); - static const int BatchTimedOut_HASH = HashingUtils::HashString("BatchTimedOut"); - static const int BatchCanceled_HASH = HashingUtils::HashString("BatchCanceled"); - static const int InvalidInput_HASH = HashingUtils::HashString("InvalidInput"); - static const int WrongRegionS3Bucket_HASH = HashingUtils::HashString("WrongRegionS3Bucket"); - static const int WrongRegionS3Output_HASH = HashingUtils::HashString("WrongRegionS3Output"); - static const int WrongRegionRobotApplication_HASH = HashingUtils::HashString("WrongRegionRobotApplication"); - static const int WrongRegionSimulationApplication_HASH = HashingUtils::HashString("WrongRegionSimulationApplication"); - static const int UploadContentMismatchError_HASH = HashingUtils::HashString("UploadContentMismatchError"); + static constexpr uint32_t InternalServiceError_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); + static constexpr uint32_t RobotApplicationCrash_HASH = ConstExprHashingUtils::HashString("RobotApplicationCrash"); + static constexpr uint32_t SimulationApplicationCrash_HASH = ConstExprHashingUtils::HashString("SimulationApplicationCrash"); + static constexpr uint32_t RobotApplicationHealthCheckFailure_HASH = ConstExprHashingUtils::HashString("RobotApplicationHealthCheckFailure"); + static constexpr uint32_t SimulationApplicationHealthCheckFailure_HASH = ConstExprHashingUtils::HashString("SimulationApplicationHealthCheckFailure"); + static constexpr uint32_t BadPermissionsRobotApplication_HASH = ConstExprHashingUtils::HashString("BadPermissionsRobotApplication"); + static constexpr uint32_t BadPermissionsSimulationApplication_HASH = ConstExprHashingUtils::HashString("BadPermissionsSimulationApplication"); + static constexpr uint32_t BadPermissionsS3Object_HASH = ConstExprHashingUtils::HashString("BadPermissionsS3Object"); + static constexpr uint32_t BadPermissionsS3Output_HASH = ConstExprHashingUtils::HashString("BadPermissionsS3Output"); + static constexpr uint32_t BadPermissionsCloudwatchLogs_HASH = ConstExprHashingUtils::HashString("BadPermissionsCloudwatchLogs"); + static constexpr uint32_t SubnetIpLimitExceeded_HASH = ConstExprHashingUtils::HashString("SubnetIpLimitExceeded"); + static constexpr uint32_t ENILimitExceeded_HASH = ConstExprHashingUtils::HashString("ENILimitExceeded"); + static constexpr uint32_t BadPermissionsUserCredentials_HASH = ConstExprHashingUtils::HashString("BadPermissionsUserCredentials"); + static constexpr uint32_t InvalidBundleRobotApplication_HASH = ConstExprHashingUtils::HashString("InvalidBundleRobotApplication"); + static constexpr uint32_t InvalidBundleSimulationApplication_HASH = ConstExprHashingUtils::HashString("InvalidBundleSimulationApplication"); + static constexpr uint32_t InvalidS3Resource_HASH = ConstExprHashingUtils::HashString("InvalidS3Resource"); + static constexpr uint32_t ThrottlingError_HASH = ConstExprHashingUtils::HashString("ThrottlingError"); + static constexpr uint32_t LimitExceeded_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); + static constexpr uint32_t MismatchedEtag_HASH = ConstExprHashingUtils::HashString("MismatchedEtag"); + static constexpr uint32_t RobotApplicationVersionMismatchedEtag_HASH = ConstExprHashingUtils::HashString("RobotApplicationVersionMismatchedEtag"); + static constexpr uint32_t SimulationApplicationVersionMismatchedEtag_HASH = ConstExprHashingUtils::HashString("SimulationApplicationVersionMismatchedEtag"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t RequestThrottled_HASH = ConstExprHashingUtils::HashString("RequestThrottled"); + static constexpr uint32_t BatchTimedOut_HASH = ConstExprHashingUtils::HashString("BatchTimedOut"); + static constexpr uint32_t BatchCanceled_HASH = ConstExprHashingUtils::HashString("BatchCanceled"); + static constexpr uint32_t InvalidInput_HASH = ConstExprHashingUtils::HashString("InvalidInput"); + static constexpr uint32_t WrongRegionS3Bucket_HASH = ConstExprHashingUtils::HashString("WrongRegionS3Bucket"); + static constexpr uint32_t WrongRegionS3Output_HASH = ConstExprHashingUtils::HashString("WrongRegionS3Output"); + static constexpr uint32_t WrongRegionRobotApplication_HASH = ConstExprHashingUtils::HashString("WrongRegionRobotApplication"); + static constexpr uint32_t WrongRegionSimulationApplication_HASH = ConstExprHashingUtils::HashString("WrongRegionSimulationApplication"); + static constexpr uint32_t UploadContentMismatchError_HASH = ConstExprHashingUtils::HashString("UploadContentMismatchError"); SimulationJobErrorCode GetSimulationJobErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalServiceError_HASH) { return SimulationJobErrorCode::InternalServiceError; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobStatus.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobStatus.cpp index 9a3ed178a0b..88b5c134524 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationJobStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace SimulationJobStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Preparing_HASH = HashingUtils::HashString("Preparing"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Restarting_HASH = HashingUtils::HashString("Restarting"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int RunningFailed_HASH = HashingUtils::HashString("RunningFailed"); - static const int Terminating_HASH = HashingUtils::HashString("Terminating"); - static const int Terminated_HASH = HashingUtils::HashString("Terminated"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Preparing_HASH = ConstExprHashingUtils::HashString("Preparing"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Restarting_HASH = ConstExprHashingUtils::HashString("Restarting"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t RunningFailed_HASH = ConstExprHashingUtils::HashString("RunningFailed"); + static constexpr uint32_t Terminating_HASH = ConstExprHashingUtils::HashString("Terminating"); + static constexpr uint32_t Terminated_HASH = ConstExprHashingUtils::HashString("Terminated"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); SimulationJobStatus GetSimulationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return SimulationJobStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationSoftwareSuiteType.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationSoftwareSuiteType.cpp index da341af07f2..8a30a783cac 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationSoftwareSuiteType.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/SimulationSoftwareSuiteType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SimulationSoftwareSuiteTypeMapper { - static const int Gazebo_HASH = HashingUtils::HashString("Gazebo"); - static const int RosbagPlay_HASH = HashingUtils::HashString("RosbagPlay"); - static const int SimulationRuntime_HASH = HashingUtils::HashString("SimulationRuntime"); + static constexpr uint32_t Gazebo_HASH = ConstExprHashingUtils::HashString("Gazebo"); + static constexpr uint32_t RosbagPlay_HASH = ConstExprHashingUtils::HashString("RosbagPlay"); + static constexpr uint32_t SimulationRuntime_HASH = ConstExprHashingUtils::HashString("SimulationRuntime"); SimulationSoftwareSuiteType GetSimulationSoftwareSuiteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Gazebo_HASH) { return SimulationSoftwareSuiteType::Gazebo; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/UploadBehavior.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/UploadBehavior.cpp index 0d22050a36d..7337cd07b84 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/UploadBehavior.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/UploadBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UploadBehaviorMapper { - static const int UPLOAD_ON_TERMINATE_HASH = HashingUtils::HashString("UPLOAD_ON_TERMINATE"); - static const int UPLOAD_ROLLING_AUTO_REMOVE_HASH = HashingUtils::HashString("UPLOAD_ROLLING_AUTO_REMOVE"); + static constexpr uint32_t UPLOAD_ON_TERMINATE_HASH = ConstExprHashingUtils::HashString("UPLOAD_ON_TERMINATE"); + static constexpr uint32_t UPLOAD_ROLLING_AUTO_REMOVE_HASH = ConstExprHashingUtils::HashString("UPLOAD_ROLLING_AUTO_REMOVE"); UploadBehavior GetUploadBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPLOAD_ON_TERMINATE_HASH) { return UploadBehavior::UPLOAD_ON_TERMINATE; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobErrorCode.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobErrorCode.cpp index 0323543b92a..1248af99385 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace WorldExportJobErrorCodeMapper { - static const int InternalServiceError_HASH = HashingUtils::HashString("InternalServiceError"); - static const int LimitExceeded_HASH = HashingUtils::HashString("LimitExceeded"); - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); - static const int RequestThrottled_HASH = HashingUtils::HashString("RequestThrottled"); - static const int InvalidInput_HASH = HashingUtils::HashString("InvalidInput"); - static const int AccessDenied_HASH = HashingUtils::HashString("AccessDenied"); + static constexpr uint32_t InternalServiceError_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); + static constexpr uint32_t LimitExceeded_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t RequestThrottled_HASH = ConstExprHashingUtils::HashString("RequestThrottled"); + static constexpr uint32_t InvalidInput_HASH = ConstExprHashingUtils::HashString("InvalidInput"); + static constexpr uint32_t AccessDenied_HASH = ConstExprHashingUtils::HashString("AccessDenied"); WorldExportJobErrorCode GetWorldExportJobErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalServiceError_HASH) { return WorldExportJobErrorCode::InternalServiceError; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobStatus.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobStatus.cpp index 6f9ea93092d..1762336e0be 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldExportJobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace WorldExportJobStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Canceling_HASH = HashingUtils::HashString("Canceling"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Canceling_HASH = ConstExprHashingUtils::HashString("Canceling"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); WorldExportJobStatus GetWorldExportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return WorldExportJobStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobErrorCode.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobErrorCode.cpp index 4eb53bc1433..6a24cdf5918 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace WorldGenerationJobErrorCodeMapper { - static const int InternalServiceError_HASH = HashingUtils::HashString("InternalServiceError"); - static const int LimitExceeded_HASH = HashingUtils::HashString("LimitExceeded"); - static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); - static const int RequestThrottled_HASH = HashingUtils::HashString("RequestThrottled"); - static const int InvalidInput_HASH = HashingUtils::HashString("InvalidInput"); - static const int AllWorldGenerationFailed_HASH = HashingUtils::HashString("AllWorldGenerationFailed"); + static constexpr uint32_t InternalServiceError_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); + static constexpr uint32_t LimitExceeded_HASH = ConstExprHashingUtils::HashString("LimitExceeded"); + static constexpr uint32_t ResourceNotFound_HASH = ConstExprHashingUtils::HashString("ResourceNotFound"); + static constexpr uint32_t RequestThrottled_HASH = ConstExprHashingUtils::HashString("RequestThrottled"); + static constexpr uint32_t InvalidInput_HASH = ConstExprHashingUtils::HashString("InvalidInput"); + static constexpr uint32_t AllWorldGenerationFailed_HASH = ConstExprHashingUtils::HashString("AllWorldGenerationFailed"); WorldGenerationJobErrorCode GetWorldGenerationJobErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InternalServiceError_HASH) { return WorldGenerationJobErrorCode::InternalServiceError; diff --git a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobStatus.cpp b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobStatus.cpp index edd77f7fed9..cecf266c5e4 100644 --- a/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-robomaker/source/model/WorldGenerationJobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace WorldGenerationJobStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int PartialFailed_HASH = HashingUtils::HashString("PartialFailed"); - static const int Canceling_HASH = HashingUtils::HashString("Canceling"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t PartialFailed_HASH = ConstExprHashingUtils::HashString("PartialFailed"); + static constexpr uint32_t Canceling_HASH = ConstExprHashingUtils::HashString("Canceling"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); WorldGenerationJobStatus GetWorldGenerationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return WorldGenerationJobStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereErrors.cpp b/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereErrors.cpp index 0d86906d642..c7cd044b01d 100644 --- a/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereErrors.cpp +++ b/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereErrors.cpp @@ -18,12 +18,12 @@ namespace RolesAnywhere namespace RolesAnywhereErrorMapper { -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TOO_MANY_TAGS_HASH) { diff --git a/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationChannel.cpp b/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationChannel.cpp index 53b52f7883a..29abc0300b8 100644 --- a/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationChannel.cpp +++ b/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationChannel.cpp @@ -20,12 +20,12 @@ namespace Aws namespace NotificationChannelMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); NotificationChannel GetNotificationChannelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return NotificationChannel::ALL; diff --git a/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationEvent.cpp b/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationEvent.cpp index 450d7e2e29c..c3fc0035383 100644 --- a/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationEvent.cpp +++ b/generated/src/aws-cpp-sdk-rolesanywhere/source/model/NotificationEvent.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationEventMapper { - static const int CA_CERTIFICATE_EXPIRY_HASH = HashingUtils::HashString("CA_CERTIFICATE_EXPIRY"); - static const int END_ENTITY_CERTIFICATE_EXPIRY_HASH = HashingUtils::HashString("END_ENTITY_CERTIFICATE_EXPIRY"); + static constexpr uint32_t CA_CERTIFICATE_EXPIRY_HASH = ConstExprHashingUtils::HashString("CA_CERTIFICATE_EXPIRY"); + static constexpr uint32_t END_ENTITY_CERTIFICATE_EXPIRY_HASH = ConstExprHashingUtils::HashString("END_ENTITY_CERTIFICATE_EXPIRY"); NotificationEvent GetNotificationEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CA_CERTIFICATE_EXPIRY_HASH) { return NotificationEvent::CA_CERTIFICATE_EXPIRY; diff --git a/generated/src/aws-cpp-sdk-rolesanywhere/source/model/TrustAnchorType.cpp b/generated/src/aws-cpp-sdk-rolesanywhere/source/model/TrustAnchorType.cpp index fb865985b62..9d262e39dc2 100644 --- a/generated/src/aws-cpp-sdk-rolesanywhere/source/model/TrustAnchorType.cpp +++ b/generated/src/aws-cpp-sdk-rolesanywhere/source/model/TrustAnchorType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrustAnchorTypeMapper { - static const int AWS_ACM_PCA_HASH = HashingUtils::HashString("AWS_ACM_PCA"); - static const int CERTIFICATE_BUNDLE_HASH = HashingUtils::HashString("CERTIFICATE_BUNDLE"); - static const int SELF_SIGNED_REPOSITORY_HASH = HashingUtils::HashString("SELF_SIGNED_REPOSITORY"); + static constexpr uint32_t AWS_ACM_PCA_HASH = ConstExprHashingUtils::HashString("AWS_ACM_PCA"); + static constexpr uint32_t CERTIFICATE_BUNDLE_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_BUNDLE"); + static constexpr uint32_t SELF_SIGNED_REPOSITORY_HASH = ConstExprHashingUtils::HashString("SELF_SIGNED_REPOSITORY"); TrustAnchorType GetTrustAnchorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ACM_PCA_HASH) { return TrustAnchorType::AWS_ACM_PCA; diff --git a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterErrors.cpp b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterErrors.cpp index c7752d3986d..bc0b08ee1b9 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterErrors.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterErrors.cpp @@ -61,15 +61,15 @@ template<> AWS_ROUTE53RECOVERYCLUSTER_API ServiceLimitExceededException Route53R namespace Route53RecoveryClusterErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int ENDPOINT_TEMPORARILY_UNAVAILABLE_HASH = HashingUtils::HashString("EndpointTemporarilyUnavailableException"); -static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t ENDPOINT_TEMPORARILY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("EndpointTemporarilyUnavailableException"); +static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControlState.cpp b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControlState.cpp index 8e1db4e7c95..dfab332ebac 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControlState.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControlState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RoutingControlStateMapper { - static const int On_HASH = HashingUtils::HashString("On"); - static const int Off_HASH = HashingUtils::HashString("Off"); + static constexpr uint32_t On_HASH = ConstExprHashingUtils::HashString("On"); + static constexpr uint32_t Off_HASH = ConstExprHashingUtils::HashString("Off"); RoutingControlState GetRoutingControlStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == On_HASH) { return RoutingControlState::On; diff --git a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/ValidationExceptionReason.cpp index 70936370827..69eaa71a011 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigErrors.cpp b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigErrors.cpp index 442268adcd2..e6b01c0e5e0 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigErrors.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigErrors.cpp @@ -18,14 +18,14 @@ namespace Route53RecoveryControlConfig namespace Route53RecoveryControlConfigErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/RuleType.cpp b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/RuleType.cpp index b170d35df3a..95f66436930 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/RuleType.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/RuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RuleTypeMapper { - static const int ATLEAST_HASH = HashingUtils::HashString("ATLEAST"); - static const int AND_HASH = HashingUtils::HashString("AND"); - static const int OR_HASH = HashingUtils::HashString("OR"); + static constexpr uint32_t ATLEAST_HASH = ConstExprHashingUtils::HashString("ATLEAST"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); + static constexpr uint32_t OR_HASH = ConstExprHashingUtils::HashString("OR"); RuleType GetRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATLEAST_HASH) { return RuleType::ATLEAST; diff --git a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/Status.cpp b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/Status.cpp index 2f7f43cd8e2..105cbfce4b7 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int DEPLOYED_HASH = HashingUtils::HashString("DEPLOYED"); - static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t DEPLOYED_HASH = ConstExprHashingUtils::HashString("DEPLOYED"); + static constexpr uint32_t PENDING_DELETION_HASH = ConstExprHashingUtils::HashString("PENDING_DELETION"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return Status::PENDING; diff --git a/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessErrors.cpp b/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessErrors.cpp index 3d8698f06ac..c00f2c57e79 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessErrors.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessErrors.cpp @@ -18,13 +18,13 @@ namespace Route53RecoveryReadiness namespace Route53RecoveryReadinessErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/model/Readiness.cpp b/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/model/Readiness.cpp index 3b012c73734..205b27a85b3 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/model/Readiness.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/model/Readiness.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReadinessMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int NOT_READY_HASH = HashingUtils::HashString("NOT_READY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NOT_AUTHORIZED"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t NOT_READY_HASH = ConstExprHashingUtils::HashString("NOT_READY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NOT_AUTHORIZED"); Readiness GetReadinessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return Readiness::READY; diff --git a/generated/src/aws-cpp-sdk-route53/source/Route53Errors.cpp b/generated/src/aws-cpp-sdk-route53/source/Route53Errors.cpp index f43174a8a2c..8b0c8b540ab 100644 --- a/generated/src/aws-cpp-sdk-route53/source/Route53Errors.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/Route53Errors.cpp @@ -26,79 +26,79 @@ template<> AWS_ROUTE53_API InvalidChangeBatch Route53Error::GetModeledError() namespace Route53ErrorMapper { -static const int TOO_MANY_KEY_SIGNING_KEYS_HASH = HashingUtils::HashString("TooManyKeySigningKeys"); -static const int INVALID_KEY_SIGNING_KEY_NAME_HASH = HashingUtils::HashString("InvalidKeySigningKeyName"); -static const int INVALID_DOMAIN_NAME_HASH = HashingUtils::HashString("InvalidDomainName"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInput"); -static const int HOSTED_ZONE_NOT_FOUND_HASH = HashingUtils::HashString("HostedZoneNotFound"); -static const int DELEGATION_SET_ALREADY_REUSABLE_HASH = HashingUtils::HashString("DelegationSetAlreadyReusable"); -static const int TRAFFIC_POLICY_INSTANCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("TrafficPolicyInstanceAlreadyExists"); -static const int HOSTED_ZONE_NOT_EMPTY_HASH = HashingUtils::HashString("HostedZoneNotEmpty"); -static const int TOO_MANY_TRAFFIC_POLICY_INSTANCES_HASH = HashingUtils::HashString("TooManyTrafficPolicyInstances"); -static const int KEY_SIGNING_KEY_ALREADY_EXISTS_HASH = HashingUtils::HashString("KeySigningKeyAlreadyExists"); -static const int INVALID_CHANGE_BATCH_HASH = HashingUtils::HashString("InvalidChangeBatch"); -static const int NO_SUCH_CLOUD_WATCH_LOGS_LOG_GROUP_HASH = HashingUtils::HashString("NoSuchCloudWatchLogsLogGroup"); -static const int INVALID_V_P_C_ID_HASH = HashingUtils::HashString("InvalidVPCId"); -static const int CIDR_BLOCK_IN_USE_HASH = HashingUtils::HashString("CidrBlockInUseException"); -static const int V_P_C_ASSOCIATION_NOT_FOUND_HASH = HashingUtils::HashString("VPCAssociationNotFound"); -static const int CIDR_COLLECTION_VERSION_MISMATCH_HASH = HashingUtils::HashString("CidrCollectionVersionMismatchException"); -static const int INVALID_TRAFFIC_POLICY_DOCUMENT_HASH = HashingUtils::HashString("InvalidTrafficPolicyDocument"); -static const int HOSTED_ZONE_ALREADY_EXISTS_HASH = HashingUtils::HashString("HostedZoneAlreadyExists"); -static const int LAST_V_P_C_ASSOCIATION_HASH = HashingUtils::HashString("LastVPCAssociation"); -static const int DELEGATION_SET_NOT_AVAILABLE_HASH = HashingUtils::HashString("DelegationSetNotAvailable"); -static const int LIMITS_EXCEEDED_HASH = HashingUtils::HashString("LimitsExceeded"); -static const int PUBLIC_ZONE_V_P_C_ASSOCIATION_HASH = HashingUtils::HashString("PublicZoneVPCAssociation"); -static const int NO_SUCH_CIDR_COLLECTION_HASH = HashingUtils::HashString("NoSuchCidrCollectionException"); -static const int NO_SUCH_DELEGATION_SET_HASH = HashingUtils::HashString("NoSuchDelegationSet"); -static const int KEY_SIGNING_KEY_IN_PARENT_D_S_RECORD_HASH = HashingUtils::HashString("KeySigningKeyInParentDSRecord"); -static const int NO_SUCH_TRAFFIC_POLICY_HASH = HashingUtils::HashString("NoSuchTrafficPolicy"); -static const int CONFLICTING_TYPES_HASH = HashingUtils::HashString("ConflictingTypes"); -static const int TOO_MANY_TRAFFIC_POLICY_VERSIONS_FOR_CURRENT_POLICY_HASH = HashingUtils::HashString("TooManyTrafficPolicyVersionsForCurrentPolicy"); -static const int CIDR_COLLECTION_IN_USE_HASH = HashingUtils::HashString("CidrCollectionInUseException"); -static const int NO_SUCH_TRAFFIC_POLICY_INSTANCE_HASH = HashingUtils::HashString("NoSuchTrafficPolicyInstance"); -static const int NO_SUCH_QUERY_LOGGING_CONFIG_HASH = HashingUtils::HashString("NoSuchQueryLoggingConfig"); -static const int HEALTH_CHECK_VERSION_MISMATCH_HASH = HashingUtils::HashString("HealthCheckVersionMismatch"); -static const int CONFLICTING_DOMAIN_EXISTS_HASH = HashingUtils::HashString("ConflictingDomainExists"); -static const int INVALID_K_M_S_ARN_HASH = HashingUtils::HashString("InvalidKMSArn"); -static const int DELEGATION_SET_NOT_REUSABLE_HASH = HashingUtils::HashString("DelegationSetNotReusable"); -static const int INVALID_KEY_SIGNING_KEY_STATUS_HASH = HashingUtils::HashString("InvalidKeySigningKeyStatus"); -static const int TOO_MANY_HEALTH_CHECKS_HASH = HashingUtils::HashString("TooManyHealthChecks"); -static const int DELEGATION_SET_IN_USE_HASH = HashingUtils::HashString("DelegationSetInUse"); -static const int INVALID_SIGNING_STATUS_HASH = HashingUtils::HashString("InvalidSigningStatus"); -static const int HEALTH_CHECK_IN_USE_HASH = HashingUtils::HashString("HealthCheckInUse"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationToken"); -static const int INSUFFICIENT_CLOUD_WATCH_LOGS_RESOURCE_POLICY_HASH = HashingUtils::HashString("InsufficientCloudWatchLogsResourcePolicy"); -static const int HEALTH_CHECK_ALREADY_EXISTS_HASH = HashingUtils::HashString("HealthCheckAlreadyExists"); -static const int TOO_MANY_TRAFFIC_POLICIES_HASH = HashingUtils::HashString("TooManyTrafficPolicies"); -static const int TRAFFIC_POLICY_ALREADY_EXISTS_HASH = HashingUtils::HashString("TrafficPolicyAlreadyExists"); -static const int KEY_SIGNING_KEY_WITH_ACTIVE_STATUS_NOT_FOUND_HASH = HashingUtils::HashString("KeySigningKeyWithActiveStatusNotFound"); -static const int NO_SUCH_CIDR_LOCATION_HASH = HashingUtils::HashString("NoSuchCidrLocationException"); -static const int PRIOR_REQUEST_NOT_COMPLETE_HASH = HashingUtils::HashString("PriorRequestNotComplete"); -static const int TOO_MANY_V_P_C_ASSOCIATION_AUTHORIZATIONS_HASH = HashingUtils::HashString("TooManyVPCAssociationAuthorizations"); -static const int INCOMPATIBLE_VERSION_HASH = HashingUtils::HashString("IncompatibleVersion"); -static const int NO_SUCH_HEALTH_CHECK_HASH = HashingUtils::HashString("NoSuchHealthCheck"); -static const int DELEGATION_SET_ALREADY_CREATED_HASH = HashingUtils::HashString("DelegationSetAlreadyCreated"); -static const int KEY_SIGNING_KEY_IN_USE_HASH = HashingUtils::HashString("KeySigningKeyInUse"); -static const int TRAFFIC_POLICY_IN_USE_HASH = HashingUtils::HashString("TrafficPolicyInUse"); -static const int HOSTED_ZONE_PARTIALLY_DELEGATED_HASH = HashingUtils::HashString("HostedZonePartiallyDelegated"); -static const int D_N_S_S_E_C_NOT_FOUND_HASH = HashingUtils::HashString("DNSSECNotFound"); -static const int TOO_MANY_HOSTED_ZONES_HASH = HashingUtils::HashString("TooManyHostedZones"); -static const int NO_SUCH_CHANGE_HASH = HashingUtils::HashString("NoSuchChange"); -static const int NO_SUCH_KEY_SIGNING_KEY_HASH = HashingUtils::HashString("NoSuchKeySigningKey"); -static const int NO_SUCH_GEO_LOCATION_HASH = HashingUtils::HashString("NoSuchGeoLocation"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgument"); -static const int V_P_C_ASSOCIATION_AUTHORIZATION_NOT_FOUND_HASH = HashingUtils::HashString("VPCAssociationAuthorizationNotFound"); -static const int HOSTED_ZONE_NOT_PRIVATE_HASH = HashingUtils::HashString("HostedZoneNotPrivate"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModification"); -static const int NOT_AUTHORIZED_HASH = HashingUtils::HashString("NotAuthorizedException"); -static const int CIDR_COLLECTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("CidrCollectionAlreadyExistsException"); -static const int QUERY_LOGGING_CONFIG_ALREADY_EXISTS_HASH = HashingUtils::HashString("QueryLoggingConfigAlreadyExists"); -static const int NO_SUCH_HOSTED_ZONE_HASH = HashingUtils::HashString("NoSuchHostedZone"); +static constexpr uint32_t TOO_MANY_KEY_SIGNING_KEYS_HASH = ConstExprHashingUtils::HashString("TooManyKeySigningKeys"); +static constexpr uint32_t INVALID_KEY_SIGNING_KEY_NAME_HASH = ConstExprHashingUtils::HashString("InvalidKeySigningKeyName"); +static constexpr uint32_t INVALID_DOMAIN_NAME_HASH = ConstExprHashingUtils::HashString("InvalidDomainName"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInput"); +static constexpr uint32_t HOSTED_ZONE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("HostedZoneNotFound"); +static constexpr uint32_t DELEGATION_SET_ALREADY_REUSABLE_HASH = ConstExprHashingUtils::HashString("DelegationSetAlreadyReusable"); +static constexpr uint32_t TRAFFIC_POLICY_INSTANCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TrafficPolicyInstanceAlreadyExists"); +static constexpr uint32_t HOSTED_ZONE_NOT_EMPTY_HASH = ConstExprHashingUtils::HashString("HostedZoneNotEmpty"); +static constexpr uint32_t TOO_MANY_TRAFFIC_POLICY_INSTANCES_HASH = ConstExprHashingUtils::HashString("TooManyTrafficPolicyInstances"); +static constexpr uint32_t KEY_SIGNING_KEY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("KeySigningKeyAlreadyExists"); +static constexpr uint32_t INVALID_CHANGE_BATCH_HASH = ConstExprHashingUtils::HashString("InvalidChangeBatch"); +static constexpr uint32_t NO_SUCH_CLOUD_WATCH_LOGS_LOG_GROUP_HASH = ConstExprHashingUtils::HashString("NoSuchCloudWatchLogsLogGroup"); +static constexpr uint32_t INVALID_V_P_C_ID_HASH = ConstExprHashingUtils::HashString("InvalidVPCId"); +static constexpr uint32_t CIDR_BLOCK_IN_USE_HASH = ConstExprHashingUtils::HashString("CidrBlockInUseException"); +static constexpr uint32_t V_P_C_ASSOCIATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("VPCAssociationNotFound"); +static constexpr uint32_t CIDR_COLLECTION_VERSION_MISMATCH_HASH = ConstExprHashingUtils::HashString("CidrCollectionVersionMismatchException"); +static constexpr uint32_t INVALID_TRAFFIC_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("InvalidTrafficPolicyDocument"); +static constexpr uint32_t HOSTED_ZONE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("HostedZoneAlreadyExists"); +static constexpr uint32_t LAST_V_P_C_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("LastVPCAssociation"); +static constexpr uint32_t DELEGATION_SET_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("DelegationSetNotAvailable"); +static constexpr uint32_t LIMITS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitsExceeded"); +static constexpr uint32_t PUBLIC_ZONE_V_P_C_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("PublicZoneVPCAssociation"); +static constexpr uint32_t NO_SUCH_CIDR_COLLECTION_HASH = ConstExprHashingUtils::HashString("NoSuchCidrCollectionException"); +static constexpr uint32_t NO_SUCH_DELEGATION_SET_HASH = ConstExprHashingUtils::HashString("NoSuchDelegationSet"); +static constexpr uint32_t KEY_SIGNING_KEY_IN_PARENT_D_S_RECORD_HASH = ConstExprHashingUtils::HashString("KeySigningKeyInParentDSRecord"); +static constexpr uint32_t NO_SUCH_TRAFFIC_POLICY_HASH = ConstExprHashingUtils::HashString("NoSuchTrafficPolicy"); +static constexpr uint32_t CONFLICTING_TYPES_HASH = ConstExprHashingUtils::HashString("ConflictingTypes"); +static constexpr uint32_t TOO_MANY_TRAFFIC_POLICY_VERSIONS_FOR_CURRENT_POLICY_HASH = ConstExprHashingUtils::HashString("TooManyTrafficPolicyVersionsForCurrentPolicy"); +static constexpr uint32_t CIDR_COLLECTION_IN_USE_HASH = ConstExprHashingUtils::HashString("CidrCollectionInUseException"); +static constexpr uint32_t NO_SUCH_TRAFFIC_POLICY_INSTANCE_HASH = ConstExprHashingUtils::HashString("NoSuchTrafficPolicyInstance"); +static constexpr uint32_t NO_SUCH_QUERY_LOGGING_CONFIG_HASH = ConstExprHashingUtils::HashString("NoSuchQueryLoggingConfig"); +static constexpr uint32_t HEALTH_CHECK_VERSION_MISMATCH_HASH = ConstExprHashingUtils::HashString("HealthCheckVersionMismatch"); +static constexpr uint32_t CONFLICTING_DOMAIN_EXISTS_HASH = ConstExprHashingUtils::HashString("ConflictingDomainExists"); +static constexpr uint32_t INVALID_K_M_S_ARN_HASH = ConstExprHashingUtils::HashString("InvalidKMSArn"); +static constexpr uint32_t DELEGATION_SET_NOT_REUSABLE_HASH = ConstExprHashingUtils::HashString("DelegationSetNotReusable"); +static constexpr uint32_t INVALID_KEY_SIGNING_KEY_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidKeySigningKeyStatus"); +static constexpr uint32_t TOO_MANY_HEALTH_CHECKS_HASH = ConstExprHashingUtils::HashString("TooManyHealthChecks"); +static constexpr uint32_t DELEGATION_SET_IN_USE_HASH = ConstExprHashingUtils::HashString("DelegationSetInUse"); +static constexpr uint32_t INVALID_SIGNING_STATUS_HASH = ConstExprHashingUtils::HashString("InvalidSigningStatus"); +static constexpr uint32_t HEALTH_CHECK_IN_USE_HASH = ConstExprHashingUtils::HashString("HealthCheckInUse"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationToken"); +static constexpr uint32_t INSUFFICIENT_CLOUD_WATCH_LOGS_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("InsufficientCloudWatchLogsResourcePolicy"); +static constexpr uint32_t HEALTH_CHECK_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("HealthCheckAlreadyExists"); +static constexpr uint32_t TOO_MANY_TRAFFIC_POLICIES_HASH = ConstExprHashingUtils::HashString("TooManyTrafficPolicies"); +static constexpr uint32_t TRAFFIC_POLICY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("TrafficPolicyAlreadyExists"); +static constexpr uint32_t KEY_SIGNING_KEY_WITH_ACTIVE_STATUS_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KeySigningKeyWithActiveStatusNotFound"); +static constexpr uint32_t NO_SUCH_CIDR_LOCATION_HASH = ConstExprHashingUtils::HashString("NoSuchCidrLocationException"); +static constexpr uint32_t PRIOR_REQUEST_NOT_COMPLETE_HASH = ConstExprHashingUtils::HashString("PriorRequestNotComplete"); +static constexpr uint32_t TOO_MANY_V_P_C_ASSOCIATION_AUTHORIZATIONS_HASH = ConstExprHashingUtils::HashString("TooManyVPCAssociationAuthorizations"); +static constexpr uint32_t INCOMPATIBLE_VERSION_HASH = ConstExprHashingUtils::HashString("IncompatibleVersion"); +static constexpr uint32_t NO_SUCH_HEALTH_CHECK_HASH = ConstExprHashingUtils::HashString("NoSuchHealthCheck"); +static constexpr uint32_t DELEGATION_SET_ALREADY_CREATED_HASH = ConstExprHashingUtils::HashString("DelegationSetAlreadyCreated"); +static constexpr uint32_t KEY_SIGNING_KEY_IN_USE_HASH = ConstExprHashingUtils::HashString("KeySigningKeyInUse"); +static constexpr uint32_t TRAFFIC_POLICY_IN_USE_HASH = ConstExprHashingUtils::HashString("TrafficPolicyInUse"); +static constexpr uint32_t HOSTED_ZONE_PARTIALLY_DELEGATED_HASH = ConstExprHashingUtils::HashString("HostedZonePartiallyDelegated"); +static constexpr uint32_t D_N_S_S_E_C_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DNSSECNotFound"); +static constexpr uint32_t TOO_MANY_HOSTED_ZONES_HASH = ConstExprHashingUtils::HashString("TooManyHostedZones"); +static constexpr uint32_t NO_SUCH_CHANGE_HASH = ConstExprHashingUtils::HashString("NoSuchChange"); +static constexpr uint32_t NO_SUCH_KEY_SIGNING_KEY_HASH = ConstExprHashingUtils::HashString("NoSuchKeySigningKey"); +static constexpr uint32_t NO_SUCH_GEO_LOCATION_HASH = ConstExprHashingUtils::HashString("NoSuchGeoLocation"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgument"); +static constexpr uint32_t V_P_C_ASSOCIATION_AUTHORIZATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("VPCAssociationAuthorizationNotFound"); +static constexpr uint32_t HOSTED_ZONE_NOT_PRIVATE_HASH = ConstExprHashingUtils::HashString("HostedZoneNotPrivate"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModification"); +static constexpr uint32_t NOT_AUTHORIZED_HASH = ConstExprHashingUtils::HashString("NotAuthorizedException"); +static constexpr uint32_t CIDR_COLLECTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("CidrCollectionAlreadyExistsException"); +static constexpr uint32_t QUERY_LOGGING_CONFIG_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("QueryLoggingConfigAlreadyExists"); +static constexpr uint32_t NO_SUCH_HOSTED_ZONE_HASH = ConstExprHashingUtils::HashString("NoSuchHostedZone"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TOO_MANY_KEY_SIGNING_KEYS_HASH) { diff --git a/generated/src/aws-cpp-sdk-route53/source/model/AccountLimitType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/AccountLimitType.cpp index c153160f376..64c5386beb6 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/AccountLimitType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/AccountLimitType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AccountLimitTypeMapper { - static const int MAX_HEALTH_CHECKS_BY_OWNER_HASH = HashingUtils::HashString("MAX_HEALTH_CHECKS_BY_OWNER"); - static const int MAX_HOSTED_ZONES_BY_OWNER_HASH = HashingUtils::HashString("MAX_HOSTED_ZONES_BY_OWNER"); - static const int MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER_HASH = HashingUtils::HashString("MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER"); - static const int MAX_REUSABLE_DELEGATION_SETS_BY_OWNER_HASH = HashingUtils::HashString("MAX_REUSABLE_DELEGATION_SETS_BY_OWNER"); - static const int MAX_TRAFFIC_POLICIES_BY_OWNER_HASH = HashingUtils::HashString("MAX_TRAFFIC_POLICIES_BY_OWNER"); + static constexpr uint32_t MAX_HEALTH_CHECKS_BY_OWNER_HASH = ConstExprHashingUtils::HashString("MAX_HEALTH_CHECKS_BY_OWNER"); + static constexpr uint32_t MAX_HOSTED_ZONES_BY_OWNER_HASH = ConstExprHashingUtils::HashString("MAX_HOSTED_ZONES_BY_OWNER"); + static constexpr uint32_t MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER_HASH = ConstExprHashingUtils::HashString("MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER"); + static constexpr uint32_t MAX_REUSABLE_DELEGATION_SETS_BY_OWNER_HASH = ConstExprHashingUtils::HashString("MAX_REUSABLE_DELEGATION_SETS_BY_OWNER"); + static constexpr uint32_t MAX_TRAFFIC_POLICIES_BY_OWNER_HASH = ConstExprHashingUtils::HashString("MAX_TRAFFIC_POLICIES_BY_OWNER"); AccountLimitType GetAccountLimitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAX_HEALTH_CHECKS_BY_OWNER_HASH) { return AccountLimitType::MAX_HEALTH_CHECKS_BY_OWNER; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ChangeAction.cpp index 1e3e46424b8..56b7b64fa24 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ChangeAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeActionMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int UPSERT_HASH = HashingUtils::HashString("UPSERT"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t UPSERT_HASH = ConstExprHashingUtils::HashString("UPSERT"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return ChangeAction::CREATE; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ChangeStatus.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ChangeStatus.cpp index 8bc4ae4f12f..f2fd1694433 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ChangeStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ChangeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int INSYNC_HASH = HashingUtils::HashString("INSYNC"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t INSYNC_HASH = ConstExprHashingUtils::HashString("INSYNC"); ChangeStatus GetChangeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ChangeStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/CidrCollectionChangeAction.cpp b/generated/src/aws-cpp-sdk-route53/source/model/CidrCollectionChangeAction.cpp index ac3dd46fef8..f5838082f1f 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/CidrCollectionChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/CidrCollectionChangeAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CidrCollectionChangeActionMapper { - static const int PUT_HASH = HashingUtils::HashString("PUT"); - static const int DELETE_IF_EXISTS_HASH = HashingUtils::HashString("DELETE_IF_EXISTS"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE_IF_EXISTS_HASH = ConstExprHashingUtils::HashString("DELETE_IF_EXISTS"); CidrCollectionChangeAction GetCidrCollectionChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUT_HASH) { return CidrCollectionChangeAction::PUT; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp index ff9b3e32235..0b6928de12b 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp @@ -20,46 +20,46 @@ namespace Aws namespace CloudWatchRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_central_2_HASH = HashingUtils::HashString("eu-central-2"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int me_central_1_HASH = HashingUtils::HashString("me-central-1"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_south_2_HASH = HashingUtils::HashString("ap-south-2"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_southeast_3_HASH = HashingUtils::HashString("ap-southeast-3"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_3_HASH = HashingUtils::HashString("ap-northeast-3"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int cn_northwest_1_HASH = HashingUtils::HashString("cn-northwest-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); - static const int us_gov_west_1_HASH = HashingUtils::HashString("us-gov-west-1"); - static const int us_gov_east_1_HASH = HashingUtils::HashString("us-gov-east-1"); - static const int us_iso_east_1_HASH = HashingUtils::HashString("us-iso-east-1"); - static const int us_iso_west_1_HASH = HashingUtils::HashString("us-iso-west-1"); - static const int us_isob_east_1_HASH = HashingUtils::HashString("us-isob-east-1"); - static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); - static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_central_2_HASH = ConstExprHashingUtils::HashString("eu-central-2"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t me_central_1_HASH = ConstExprHashingUtils::HashString("me-central-1"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_south_2_HASH = ConstExprHashingUtils::HashString("ap-south-2"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_southeast_3_HASH = ConstExprHashingUtils::HashString("ap-southeast-3"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_3_HASH = ConstExprHashingUtils::HashString("ap-northeast-3"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t cn_northwest_1_HASH = ConstExprHashingUtils::HashString("cn-northwest-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t eu_south_2_HASH = ConstExprHashingUtils::HashString("eu-south-2"); + static constexpr uint32_t us_gov_west_1_HASH = ConstExprHashingUtils::HashString("us-gov-west-1"); + static constexpr uint32_t us_gov_east_1_HASH = ConstExprHashingUtils::HashString("us-gov-east-1"); + static constexpr uint32_t us_iso_east_1_HASH = ConstExprHashingUtils::HashString("us-iso-east-1"); + static constexpr uint32_t us_iso_west_1_HASH = ConstExprHashingUtils::HashString("us-iso-west-1"); + static constexpr uint32_t us_isob_east_1_HASH = ConstExprHashingUtils::HashString("us-isob-east-1"); + static constexpr uint32_t ap_southeast_4_HASH = ConstExprHashingUtils::HashString("ap-southeast-4"); + static constexpr uint32_t il_central_1_HASH = ConstExprHashingUtils::HashString("il-central-1"); CloudWatchRegion GetCloudWatchRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return CloudWatchRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ComparisonOperator.cpp index 094f605adf1..ce7715a483d 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ComparisonOperator.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int GreaterThanOrEqualToThreshold_HASH = HashingUtils::HashString("GreaterThanOrEqualToThreshold"); - static const int GreaterThanThreshold_HASH = HashingUtils::HashString("GreaterThanThreshold"); - static const int LessThanThreshold_HASH = HashingUtils::HashString("LessThanThreshold"); - static const int LessThanOrEqualToThreshold_HASH = HashingUtils::HashString("LessThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqualToThreshold"); + static constexpr uint32_t GreaterThanThreshold_HASH = ConstExprHashingUtils::HashString("GreaterThanThreshold"); + static constexpr uint32_t LessThanThreshold_HASH = ConstExprHashingUtils::HashString("LessThanThreshold"); + static constexpr uint32_t LessThanOrEqualToThreshold_HASH = ConstExprHashingUtils::HashString("LessThanOrEqualToThreshold"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreaterThanOrEqualToThreshold_HASH) { return ComparisonOperator::GreaterThanOrEqualToThreshold; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckRegion.cpp index c7550501e20..bef723ca95a 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckRegion.cpp @@ -20,19 +20,19 @@ namespace Aws namespace HealthCheckRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); HealthCheckRegion GetHealthCheckRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return HealthCheckRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckType.cpp index 05d7be72166..aea48fe1f17 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/HealthCheckType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace HealthCheckTypeMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int HTTP_STR_MATCH_HASH = HashingUtils::HashString("HTTP_STR_MATCH"); - static const int HTTPS_STR_MATCH_HASH = HashingUtils::HashString("HTTPS_STR_MATCH"); - static const int TCP_HASH = HashingUtils::HashString("TCP"); - static const int CALCULATED_HASH = HashingUtils::HashString("CALCULATED"); - static const int CLOUDWATCH_METRIC_HASH = HashingUtils::HashString("CLOUDWATCH_METRIC"); - static const int RECOVERY_CONTROL_HASH = HashingUtils::HashString("RECOVERY_CONTROL"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t HTTP_STR_MATCH_HASH = ConstExprHashingUtils::HashString("HTTP_STR_MATCH"); + static constexpr uint32_t HTTPS_STR_MATCH_HASH = ConstExprHashingUtils::HashString("HTTPS_STR_MATCH"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); + static constexpr uint32_t CALCULATED_HASH = ConstExprHashingUtils::HashString("CALCULATED"); + static constexpr uint32_t CLOUDWATCH_METRIC_HASH = ConstExprHashingUtils::HashString("CLOUDWATCH_METRIC"); + static constexpr uint32_t RECOVERY_CONTROL_HASH = ConstExprHashingUtils::HashString("RECOVERY_CONTROL"); HealthCheckType GetHealthCheckTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return HealthCheckType::HTTP; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneLimitType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneLimitType.cpp index 96bd8c17c93..ecc7ee238f3 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneLimitType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneLimitType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HostedZoneLimitTypeMapper { - static const int MAX_RRSETS_BY_ZONE_HASH = HashingUtils::HashString("MAX_RRSETS_BY_ZONE"); - static const int MAX_VPCS_ASSOCIATED_BY_ZONE_HASH = HashingUtils::HashString("MAX_VPCS_ASSOCIATED_BY_ZONE"); + static constexpr uint32_t MAX_RRSETS_BY_ZONE_HASH = ConstExprHashingUtils::HashString("MAX_RRSETS_BY_ZONE"); + static constexpr uint32_t MAX_VPCS_ASSOCIATED_BY_ZONE_HASH = ConstExprHashingUtils::HashString("MAX_VPCS_ASSOCIATED_BY_ZONE"); HostedZoneLimitType GetHostedZoneLimitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAX_RRSETS_BY_ZONE_HASH) { return HostedZoneLimitType::MAX_RRSETS_BY_ZONE; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneType.cpp index 07f152444c4..2d39c041c43 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/HostedZoneType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HostedZoneTypeMapper { - static const int PrivateHostedZone_HASH = HashingUtils::HashString("PrivateHostedZone"); + static constexpr uint32_t PrivateHostedZone_HASH = ConstExprHashingUtils::HashString("PrivateHostedZone"); HostedZoneType GetHostedZoneTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PrivateHostedZone_HASH) { return HostedZoneType::PrivateHostedZone; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/InsufficientDataHealthStatus.cpp b/generated/src/aws-cpp-sdk-route53/source/model/InsufficientDataHealthStatus.cpp index a33e495be31..0cdc3d4985e 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/InsufficientDataHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/InsufficientDataHealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InsufficientDataHealthStatusMapper { - static const int Healthy_HASH = HashingUtils::HashString("Healthy"); - static const int Unhealthy_HASH = HashingUtils::HashString("Unhealthy"); - static const int LastKnownStatus_HASH = HashingUtils::HashString("LastKnownStatus"); + static constexpr uint32_t Healthy_HASH = ConstExprHashingUtils::HashString("Healthy"); + static constexpr uint32_t Unhealthy_HASH = ConstExprHashingUtils::HashString("Unhealthy"); + static constexpr uint32_t LastKnownStatus_HASH = ConstExprHashingUtils::HashString("LastKnownStatus"); InsufficientDataHealthStatus GetInsufficientDataHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Healthy_HASH) { return InsufficientDataHealthStatus::Healthy; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/RRType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/RRType.cpp index 23afcde080e..2686b6f21f1 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/RRType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/RRType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace RRTypeMapper { - static const int SOA_HASH = HashingUtils::HashString("SOA"); - static const int A_HASH = HashingUtils::HashString("A"); - static const int TXT_HASH = HashingUtils::HashString("TXT"); - static const int NS_HASH = HashingUtils::HashString("NS"); - static const int CNAME_HASH = HashingUtils::HashString("CNAME"); - static const int MX_HASH = HashingUtils::HashString("MX"); - static const int NAPTR_HASH = HashingUtils::HashString("NAPTR"); - static const int PTR_HASH = HashingUtils::HashString("PTR"); - static const int SRV_HASH = HashingUtils::HashString("SRV"); - static const int SPF_HASH = HashingUtils::HashString("SPF"); - static const int AAAA_HASH = HashingUtils::HashString("AAAA"); - static const int CAA_HASH = HashingUtils::HashString("CAA"); - static const int DS_HASH = HashingUtils::HashString("DS"); + static constexpr uint32_t SOA_HASH = ConstExprHashingUtils::HashString("SOA"); + static constexpr uint32_t A_HASH = ConstExprHashingUtils::HashString("A"); + static constexpr uint32_t TXT_HASH = ConstExprHashingUtils::HashString("TXT"); + static constexpr uint32_t NS_HASH = ConstExprHashingUtils::HashString("NS"); + static constexpr uint32_t CNAME_HASH = ConstExprHashingUtils::HashString("CNAME"); + static constexpr uint32_t MX_HASH = ConstExprHashingUtils::HashString("MX"); + static constexpr uint32_t NAPTR_HASH = ConstExprHashingUtils::HashString("NAPTR"); + static constexpr uint32_t PTR_HASH = ConstExprHashingUtils::HashString("PTR"); + static constexpr uint32_t SRV_HASH = ConstExprHashingUtils::HashString("SRV"); + static constexpr uint32_t SPF_HASH = ConstExprHashingUtils::HashString("SPF"); + static constexpr uint32_t AAAA_HASH = ConstExprHashingUtils::HashString("AAAA"); + static constexpr uint32_t CAA_HASH = ConstExprHashingUtils::HashString("CAA"); + static constexpr uint32_t DS_HASH = ConstExprHashingUtils::HashString("DS"); RRType GetRRTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOA_HASH) { return RRType::SOA; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ResettableElementName.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ResettableElementName.cpp index 79ef7987582..92f146de851 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ResettableElementName.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ResettableElementName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResettableElementNameMapper { - static const int FullyQualifiedDomainName_HASH = HashingUtils::HashString("FullyQualifiedDomainName"); - static const int Regions_HASH = HashingUtils::HashString("Regions"); - static const int ResourcePath_HASH = HashingUtils::HashString("ResourcePath"); - static const int ChildHealthChecks_HASH = HashingUtils::HashString("ChildHealthChecks"); + static constexpr uint32_t FullyQualifiedDomainName_HASH = ConstExprHashingUtils::HashString("FullyQualifiedDomainName"); + static constexpr uint32_t Regions_HASH = ConstExprHashingUtils::HashString("Regions"); + static constexpr uint32_t ResourcePath_HASH = ConstExprHashingUtils::HashString("ResourcePath"); + static constexpr uint32_t ChildHealthChecks_HASH = ConstExprHashingUtils::HashString("ChildHealthChecks"); ResettableElementName GetResettableElementNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FullyQualifiedDomainName_HASH) { return ResettableElementName::FullyQualifiedDomainName; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetFailover.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetFailover.cpp index 5c6644dba7b..d42874a8d11 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetFailover.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetFailover.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceRecordSetFailoverMapper { - static const int PRIMARY_HASH = HashingUtils::HashString("PRIMARY"); - static const int SECONDARY_HASH = HashingUtils::HashString("SECONDARY"); + static constexpr uint32_t PRIMARY_HASH = ConstExprHashingUtils::HashString("PRIMARY"); + static constexpr uint32_t SECONDARY_HASH = ConstExprHashingUtils::HashString("SECONDARY"); ResourceRecordSetFailover GetResourceRecordSetFailoverForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_HASH) { return ResourceRecordSetFailover::PRIMARY; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp index f2d1997ec73..18fdc14259b 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp @@ -20,41 +20,41 @@ namespace Aws namespace ResourceRecordSetRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_central_2_HASH = HashingUtils::HashString("eu-central-2"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_southeast_3_HASH = HashingUtils::HashString("ap-southeast-3"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_3_HASH = HashingUtils::HashString("ap-northeast-3"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int cn_northwest_1_HASH = HashingUtils::HashString("cn-northwest-1"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int me_central_1_HASH = HashingUtils::HashString("me-central-1"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_south_2_HASH = HashingUtils::HashString("ap-south-2"); - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); - static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); - static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_central_2_HASH = ConstExprHashingUtils::HashString("eu-central-2"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_southeast_3_HASH = ConstExprHashingUtils::HashString("ap-southeast-3"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_3_HASH = ConstExprHashingUtils::HashString("ap-northeast-3"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t cn_northwest_1_HASH = ConstExprHashingUtils::HashString("cn-northwest-1"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t me_central_1_HASH = ConstExprHashingUtils::HashString("me-central-1"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_south_2_HASH = ConstExprHashingUtils::HashString("ap-south-2"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t eu_south_2_HASH = ConstExprHashingUtils::HashString("eu-south-2"); + static constexpr uint32_t ap_southeast_4_HASH = ConstExprHashingUtils::HashString("ap-southeast-4"); + static constexpr uint32_t il_central_1_HASH = ConstExprHashingUtils::HashString("il-central-1"); ResourceRecordSetRegion GetResourceRecordSetRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return ResourceRecordSetRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ReusableDelegationSetLimitType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ReusableDelegationSetLimitType.cpp index bf1454598c9..d6e6de407b4 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ReusableDelegationSetLimitType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ReusableDelegationSetLimitType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ReusableDelegationSetLimitTypeMapper { - static const int MAX_ZONES_BY_REUSABLE_DELEGATION_SET_HASH = HashingUtils::HashString("MAX_ZONES_BY_REUSABLE_DELEGATION_SET"); + static constexpr uint32_t MAX_ZONES_BY_REUSABLE_DELEGATION_SET_HASH = ConstExprHashingUtils::HashString("MAX_ZONES_BY_REUSABLE_DELEGATION_SET"); ReusableDelegationSetLimitType GetReusableDelegationSetLimitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MAX_ZONES_BY_REUSABLE_DELEGATION_SET_HASH) { return ReusableDelegationSetLimitType::MAX_ZONES_BY_REUSABLE_DELEGATION_SET; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/Statistic.cpp b/generated/src/aws-cpp-sdk-route53/source/model/Statistic.cpp index 1be2a0dc9cd..78fb3d98495 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/Statistic.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/Statistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatisticMapper { - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); Statistic GetStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Average_HASH) { return Statistic::Average; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/TagResourceType.cpp b/generated/src/aws-cpp-sdk-route53/source/model/TagResourceType.cpp index 0c6d629a451..51e9cc2f009 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/TagResourceType.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/TagResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TagResourceTypeMapper { - static const int healthcheck_HASH = HashingUtils::HashString("healthcheck"); - static const int hostedzone_HASH = HashingUtils::HashString("hostedzone"); + static constexpr uint32_t healthcheck_HASH = ConstExprHashingUtils::HashString("healthcheck"); + static constexpr uint32_t hostedzone_HASH = ConstExprHashingUtils::HashString("hostedzone"); TagResourceType GetTagResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == healthcheck_HASH) { return TagResourceType::healthcheck; diff --git a/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp index c2e23598665..eeec737268e 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp @@ -20,45 +20,45 @@ namespace Aws namespace VPCRegionMapper { - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_central_2_HASH = HashingUtils::HashString("eu-central-2"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int us_gov_west_1_HASH = HashingUtils::HashString("us-gov-west-1"); - static const int us_gov_east_1_HASH = HashingUtils::HashString("us-gov-east-1"); - static const int us_iso_east_1_HASH = HashingUtils::HashString("us-iso-east-1"); - static const int us_iso_west_1_HASH = HashingUtils::HashString("us-iso-west-1"); - static const int us_isob_east_1_HASH = HashingUtils::HashString("us-isob-east-1"); - static const int me_central_1_HASH = HashingUtils::HashString("me-central-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_southeast_3_HASH = HashingUtils::HashString("ap-southeast-3"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_south_2_HASH = HashingUtils::HashString("ap-south-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_3_HASH = HashingUtils::HashString("ap-northeast-3"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); - static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); - static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_central_2_HASH = ConstExprHashingUtils::HashString("eu-central-2"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t us_gov_west_1_HASH = ConstExprHashingUtils::HashString("us-gov-west-1"); + static constexpr uint32_t us_gov_east_1_HASH = ConstExprHashingUtils::HashString("us-gov-east-1"); + static constexpr uint32_t us_iso_east_1_HASH = ConstExprHashingUtils::HashString("us-iso-east-1"); + static constexpr uint32_t us_iso_west_1_HASH = ConstExprHashingUtils::HashString("us-iso-west-1"); + static constexpr uint32_t us_isob_east_1_HASH = ConstExprHashingUtils::HashString("us-isob-east-1"); + static constexpr uint32_t me_central_1_HASH = ConstExprHashingUtils::HashString("me-central-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_southeast_3_HASH = ConstExprHashingUtils::HashString("ap-southeast-3"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_south_2_HASH = ConstExprHashingUtils::HashString("ap-south-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_3_HASH = ConstExprHashingUtils::HashString("ap-northeast-3"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t eu_south_2_HASH = ConstExprHashingUtils::HashString("eu-south-2"); + static constexpr uint32_t ap_southeast_4_HASH = ConstExprHashingUtils::HashString("ap-southeast-4"); + static constexpr uint32_t il_central_1_HASH = ConstExprHashingUtils::HashString("il-central-1"); VPCRegion GetVPCRegionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == us_east_1_HASH) { return VPCRegion::us_east_1; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsErrors.cpp b/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsErrors.cpp index 07d3530b9f6..d07c3cdeebe 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsErrors.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsErrors.cpp @@ -26,18 +26,18 @@ template<> AWS_ROUTE53DOMAINS_API DuplicateRequest Route53DomainsError::GetModel namespace Route53DomainsErrorMapper { -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInput"); -static const int DOMAIN_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DomainLimitExceeded"); -static const int DUPLICATE_REQUEST_HASH = HashingUtils::HashString("DuplicateRequest"); -static const int OPERATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OperationLimitExceeded"); -static const int T_L_D_RULES_VIOLATION_HASH = HashingUtils::HashString("TLDRulesViolation"); -static const int UNSUPPORTED_T_L_D_HASH = HashingUtils::HashString("UnsupportedTLD"); -static const int DNSSEC_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DnssecLimitExceeded"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInput"); +static constexpr uint32_t DOMAIN_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DomainLimitExceeded"); +static constexpr uint32_t DUPLICATE_REQUEST_HASH = ConstExprHashingUtils::HashString("DuplicateRequest"); +static constexpr uint32_t OPERATION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OperationLimitExceeded"); +static constexpr uint32_t T_L_D_RULES_VIOLATION_HASH = ConstExprHashingUtils::HashString("TLDRulesViolation"); +static constexpr uint32_t UNSUPPORTED_T_L_D_HASH = ConstExprHashingUtils::HashString("UnsupportedTLD"); +static constexpr uint32_t DNSSEC_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DnssecLimitExceeded"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_INPUT_HASH) { diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/ContactType.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/ContactType.cpp index 9bf93151b92..045e2acfd36 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/ContactType.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/ContactType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ContactTypeMapper { - static const int PERSON_HASH = HashingUtils::HashString("PERSON"); - static const int COMPANY_HASH = HashingUtils::HashString("COMPANY"); - static const int ASSOCIATION_HASH = HashingUtils::HashString("ASSOCIATION"); - static const int PUBLIC_BODY_HASH = HashingUtils::HashString("PUBLIC_BODY"); - static const int RESELLER_HASH = HashingUtils::HashString("RESELLER"); + static constexpr uint32_t PERSON_HASH = ConstExprHashingUtils::HashString("PERSON"); + static constexpr uint32_t COMPANY_HASH = ConstExprHashingUtils::HashString("COMPANY"); + static constexpr uint32_t ASSOCIATION_HASH = ConstExprHashingUtils::HashString("ASSOCIATION"); + static constexpr uint32_t PUBLIC_BODY_HASH = ConstExprHashingUtils::HashString("PUBLIC_BODY"); + static constexpr uint32_t RESELLER_HASH = ConstExprHashingUtils::HashString("RESELLER"); ContactType GetContactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSON_HASH) { return ContactType::PERSON; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/CountryCode.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/CountryCode.cpp index 6231b51b552..ca2a98bc1b8 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/CountryCode.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/CountryCode.cpp @@ -20,264 +20,264 @@ namespace Aws namespace CountryCodeMapper { - static const int AC_HASH = HashingUtils::HashString("AC"); - static const int AD_HASH = HashingUtils::HashString("AD"); - static const int AE_HASH = HashingUtils::HashString("AE"); - static const int AF_HASH = HashingUtils::HashString("AF"); - static const int AG_HASH = HashingUtils::HashString("AG"); - static const int AI_HASH = HashingUtils::HashString("AI"); - static const int AL_HASH = HashingUtils::HashString("AL"); - static const int AM_HASH = HashingUtils::HashString("AM"); - static const int AN_HASH = HashingUtils::HashString("AN"); - static const int AO_HASH = HashingUtils::HashString("AO"); - static const int AQ_HASH = HashingUtils::HashString("AQ"); - static const int AR_HASH = HashingUtils::HashString("AR"); - static const int AS_HASH = HashingUtils::HashString("AS"); - static const int AT_HASH = HashingUtils::HashString("AT"); - static const int AU_HASH = HashingUtils::HashString("AU"); - static const int AW_HASH = HashingUtils::HashString("AW"); - static const int AX_HASH = HashingUtils::HashString("AX"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int BA_HASH = HashingUtils::HashString("BA"); - static const int BB_HASH = HashingUtils::HashString("BB"); - static const int BD_HASH = HashingUtils::HashString("BD"); - static const int BE_HASH = HashingUtils::HashString("BE"); - static const int BF_HASH = HashingUtils::HashString("BF"); - static const int BG_HASH = HashingUtils::HashString("BG"); - static const int BH_HASH = HashingUtils::HashString("BH"); - static const int BI_HASH = HashingUtils::HashString("BI"); - static const int BJ_HASH = HashingUtils::HashString("BJ"); - static const int BL_HASH = HashingUtils::HashString("BL"); - static const int BM_HASH = HashingUtils::HashString("BM"); - static const int BN_HASH = HashingUtils::HashString("BN"); - static const int BO_HASH = HashingUtils::HashString("BO"); - static const int BQ_HASH = HashingUtils::HashString("BQ"); - static const int BR_HASH = HashingUtils::HashString("BR"); - static const int BS_HASH = HashingUtils::HashString("BS"); - static const int BT_HASH = HashingUtils::HashString("BT"); - static const int BV_HASH = HashingUtils::HashString("BV"); - static const int BW_HASH = HashingUtils::HashString("BW"); - static const int BY_HASH = HashingUtils::HashString("BY"); - static const int BZ_HASH = HashingUtils::HashString("BZ"); - static const int CA_HASH = HashingUtils::HashString("CA"); - static const int CC_HASH = HashingUtils::HashString("CC"); - static const int CD_HASH = HashingUtils::HashString("CD"); - static const int CF_HASH = HashingUtils::HashString("CF"); - static const int CG_HASH = HashingUtils::HashString("CG"); - static const int CH_HASH = HashingUtils::HashString("CH"); - static const int CI_HASH = HashingUtils::HashString("CI"); - static const int CK_HASH = HashingUtils::HashString("CK"); - static const int CL_HASH = HashingUtils::HashString("CL"); - static const int CM_HASH = HashingUtils::HashString("CM"); - static const int CN_HASH = HashingUtils::HashString("CN"); - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int CR_HASH = HashingUtils::HashString("CR"); - static const int CU_HASH = HashingUtils::HashString("CU"); - static const int CV_HASH = HashingUtils::HashString("CV"); - static const int CW_HASH = HashingUtils::HashString("CW"); - static const int CX_HASH = HashingUtils::HashString("CX"); - static const int CY_HASH = HashingUtils::HashString("CY"); - static const int CZ_HASH = HashingUtils::HashString("CZ"); - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int DJ_HASH = HashingUtils::HashString("DJ"); - static const int DK_HASH = HashingUtils::HashString("DK"); - static const int DM_HASH = HashingUtils::HashString("DM"); - static const int DO_HASH = HashingUtils::HashString("DO"); - static const int DZ_HASH = HashingUtils::HashString("DZ"); - static const int EC_HASH = HashingUtils::HashString("EC"); - static const int EE_HASH = HashingUtils::HashString("EE"); - static const int EG_HASH = HashingUtils::HashString("EG"); - static const int EH_HASH = HashingUtils::HashString("EH"); - static const int ER_HASH = HashingUtils::HashString("ER"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int ET_HASH = HashingUtils::HashString("ET"); - static const int FI_HASH = HashingUtils::HashString("FI"); - static const int FJ_HASH = HashingUtils::HashString("FJ"); - static const int FK_HASH = HashingUtils::HashString("FK"); - static const int FM_HASH = HashingUtils::HashString("FM"); - static const int FO_HASH = HashingUtils::HashString("FO"); - static const int FR_HASH = HashingUtils::HashString("FR"); - static const int GA_HASH = HashingUtils::HashString("GA"); - static const int GB_HASH = HashingUtils::HashString("GB"); - static const int GD_HASH = HashingUtils::HashString("GD"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int GF_HASH = HashingUtils::HashString("GF"); - static const int GG_HASH = HashingUtils::HashString("GG"); - static const int GH_HASH = HashingUtils::HashString("GH"); - static const int GI_HASH = HashingUtils::HashString("GI"); - static const int GL_HASH = HashingUtils::HashString("GL"); - static const int GM_HASH = HashingUtils::HashString("GM"); - static const int GN_HASH = HashingUtils::HashString("GN"); - static const int GP_HASH = HashingUtils::HashString("GP"); - static const int GQ_HASH = HashingUtils::HashString("GQ"); - static const int GR_HASH = HashingUtils::HashString("GR"); - static const int GS_HASH = HashingUtils::HashString("GS"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GU_HASH = HashingUtils::HashString("GU"); - static const int GW_HASH = HashingUtils::HashString("GW"); - static const int GY_HASH = HashingUtils::HashString("GY"); - static const int HK_HASH = HashingUtils::HashString("HK"); - static const int HM_HASH = HashingUtils::HashString("HM"); - static const int HN_HASH = HashingUtils::HashString("HN"); - static const int HR_HASH = HashingUtils::HashString("HR"); - static const int HT_HASH = HashingUtils::HashString("HT"); - static const int HU_HASH = HashingUtils::HashString("HU"); - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int IE_HASH = HashingUtils::HashString("IE"); - static const int IL_HASH = HashingUtils::HashString("IL"); - static const int IM_HASH = HashingUtils::HashString("IM"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int IO_HASH = HashingUtils::HashString("IO"); - static const int IQ_HASH = HashingUtils::HashString("IQ"); - static const int IR_HASH = HashingUtils::HashString("IR"); - static const int IS_HASH = HashingUtils::HashString("IS"); - static const int IT_HASH = HashingUtils::HashString("IT"); - static const int JE_HASH = HashingUtils::HashString("JE"); - static const int JM_HASH = HashingUtils::HashString("JM"); - static const int JO_HASH = HashingUtils::HashString("JO"); - static const int JP_HASH = HashingUtils::HashString("JP"); - static const int KE_HASH = HashingUtils::HashString("KE"); - static const int KG_HASH = HashingUtils::HashString("KG"); - static const int KH_HASH = HashingUtils::HashString("KH"); - static const int KI_HASH = HashingUtils::HashString("KI"); - static const int KM_HASH = HashingUtils::HashString("KM"); - static const int KN_HASH = HashingUtils::HashString("KN"); - static const int KP_HASH = HashingUtils::HashString("KP"); - static const int KR_HASH = HashingUtils::HashString("KR"); - static const int KW_HASH = HashingUtils::HashString("KW"); - static const int KY_HASH = HashingUtils::HashString("KY"); - static const int KZ_HASH = HashingUtils::HashString("KZ"); - static const int LA_HASH = HashingUtils::HashString("LA"); - static const int LB_HASH = HashingUtils::HashString("LB"); - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int LI_HASH = HashingUtils::HashString("LI"); - static const int LK_HASH = HashingUtils::HashString("LK"); - static const int LR_HASH = HashingUtils::HashString("LR"); - static const int LS_HASH = HashingUtils::HashString("LS"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LU_HASH = HashingUtils::HashString("LU"); - static const int LV_HASH = HashingUtils::HashString("LV"); - static const int LY_HASH = HashingUtils::HashString("LY"); - static const int MA_HASH = HashingUtils::HashString("MA"); - static const int MC_HASH = HashingUtils::HashString("MC"); - static const int MD_HASH = HashingUtils::HashString("MD"); - static const int ME_HASH = HashingUtils::HashString("ME"); - static const int MF_HASH = HashingUtils::HashString("MF"); - static const int MG_HASH = HashingUtils::HashString("MG"); - static const int MH_HASH = HashingUtils::HashString("MH"); - static const int MK_HASH = HashingUtils::HashString("MK"); - static const int ML_HASH = HashingUtils::HashString("ML"); - static const int MM_HASH = HashingUtils::HashString("MM"); - static const int MN_HASH = HashingUtils::HashString("MN"); - static const int MO_HASH = HashingUtils::HashString("MO"); - static const int MP_HASH = HashingUtils::HashString("MP"); - static const int MQ_HASH = HashingUtils::HashString("MQ"); - static const int MR_HASH = HashingUtils::HashString("MR"); - static const int MS_HASH = HashingUtils::HashString("MS"); - static const int MT_HASH = HashingUtils::HashString("MT"); - static const int MU_HASH = HashingUtils::HashString("MU"); - static const int MV_HASH = HashingUtils::HashString("MV"); - static const int MW_HASH = HashingUtils::HashString("MW"); - static const int MX_HASH = HashingUtils::HashString("MX"); - static const int MY_HASH = HashingUtils::HashString("MY"); - static const int MZ_HASH = HashingUtils::HashString("MZ"); - static const int NA_HASH = HashingUtils::HashString("NA"); - static const int NC_HASH = HashingUtils::HashString("NC"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int NF_HASH = HashingUtils::HashString("NF"); - static const int NG_HASH = HashingUtils::HashString("NG"); - static const int NI_HASH = HashingUtils::HashString("NI"); - static const int NL_HASH = HashingUtils::HashString("NL"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int NP_HASH = HashingUtils::HashString("NP"); - static const int NR_HASH = HashingUtils::HashString("NR"); - static const int NU_HASH = HashingUtils::HashString("NU"); - static const int NZ_HASH = HashingUtils::HashString("NZ"); - static const int OM_HASH = HashingUtils::HashString("OM"); - static const int PA_HASH = HashingUtils::HashString("PA"); - static const int PE_HASH = HashingUtils::HashString("PE"); - static const int PF_HASH = HashingUtils::HashString("PF"); - static const int PG_HASH = HashingUtils::HashString("PG"); - static const int PH_HASH = HashingUtils::HashString("PH"); - static const int PK_HASH = HashingUtils::HashString("PK"); - static const int PL_HASH = HashingUtils::HashString("PL"); - static const int PM_HASH = HashingUtils::HashString("PM"); - static const int PN_HASH = HashingUtils::HashString("PN"); - static const int PR_HASH = HashingUtils::HashString("PR"); - static const int PS_HASH = HashingUtils::HashString("PS"); - static const int PT_HASH = HashingUtils::HashString("PT"); - static const int PW_HASH = HashingUtils::HashString("PW"); - static const int PY_HASH = HashingUtils::HashString("PY"); - static const int QA_HASH = HashingUtils::HashString("QA"); - static const int RE_HASH = HashingUtils::HashString("RE"); - static const int RO_HASH = HashingUtils::HashString("RO"); - static const int RS_HASH = HashingUtils::HashString("RS"); - static const int RU_HASH = HashingUtils::HashString("RU"); - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int SA_HASH = HashingUtils::HashString("SA"); - static const int SB_HASH = HashingUtils::HashString("SB"); - static const int SC_HASH = HashingUtils::HashString("SC"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int SE_HASH = HashingUtils::HashString("SE"); - static const int SG_HASH = HashingUtils::HashString("SG"); - static const int SH_HASH = HashingUtils::HashString("SH"); - static const int SI_HASH = HashingUtils::HashString("SI"); - static const int SJ_HASH = HashingUtils::HashString("SJ"); - static const int SK_HASH = HashingUtils::HashString("SK"); - static const int SL_HASH = HashingUtils::HashString("SL"); - static const int SM_HASH = HashingUtils::HashString("SM"); - static const int SN_HASH = HashingUtils::HashString("SN"); - static const int SO_HASH = HashingUtils::HashString("SO"); - static const int SR_HASH = HashingUtils::HashString("SR"); - static const int SS_HASH = HashingUtils::HashString("SS"); - static const int ST_HASH = HashingUtils::HashString("ST"); - static const int SV_HASH = HashingUtils::HashString("SV"); - static const int SX_HASH = HashingUtils::HashString("SX"); - static const int SY_HASH = HashingUtils::HashString("SY"); - static const int SZ_HASH = HashingUtils::HashString("SZ"); - static const int TC_HASH = HashingUtils::HashString("TC"); - static const int TD_HASH = HashingUtils::HashString("TD"); - static const int TF_HASH = HashingUtils::HashString("TF"); - static const int TG_HASH = HashingUtils::HashString("TG"); - static const int TH_HASH = HashingUtils::HashString("TH"); - static const int TJ_HASH = HashingUtils::HashString("TJ"); - static const int TK_HASH = HashingUtils::HashString("TK"); - static const int TL_HASH = HashingUtils::HashString("TL"); - static const int TM_HASH = HashingUtils::HashString("TM"); - static const int TN_HASH = HashingUtils::HashString("TN"); - static const int TO_HASH = HashingUtils::HashString("TO"); - static const int TP_HASH = HashingUtils::HashString("TP"); - static const int TR_HASH = HashingUtils::HashString("TR"); - static const int TT_HASH = HashingUtils::HashString("TT"); - static const int TV_HASH = HashingUtils::HashString("TV"); - static const int TW_HASH = HashingUtils::HashString("TW"); - static const int TZ_HASH = HashingUtils::HashString("TZ"); - static const int UA_HASH = HashingUtils::HashString("UA"); - static const int UG_HASH = HashingUtils::HashString("UG"); - static const int US_HASH = HashingUtils::HashString("US"); - static const int UY_HASH = HashingUtils::HashString("UY"); - static const int UZ_HASH = HashingUtils::HashString("UZ"); - static const int VA_HASH = HashingUtils::HashString("VA"); - static const int VC_HASH = HashingUtils::HashString("VC"); - static const int VE_HASH = HashingUtils::HashString("VE"); - static const int VG_HASH = HashingUtils::HashString("VG"); - static const int VI_HASH = HashingUtils::HashString("VI"); - static const int VN_HASH = HashingUtils::HashString("VN"); - static const int VU_HASH = HashingUtils::HashString("VU"); - static const int WF_HASH = HashingUtils::HashString("WF"); - static const int WS_HASH = HashingUtils::HashString("WS"); - static const int YE_HASH = HashingUtils::HashString("YE"); - static const int YT_HASH = HashingUtils::HashString("YT"); - static const int ZA_HASH = HashingUtils::HashString("ZA"); - static const int ZM_HASH = HashingUtils::HashString("ZM"); - static const int ZW_HASH = HashingUtils::HashString("ZW"); + static constexpr uint32_t AC_HASH = ConstExprHashingUtils::HashString("AC"); + static constexpr uint32_t AD_HASH = ConstExprHashingUtils::HashString("AD"); + static constexpr uint32_t AE_HASH = ConstExprHashingUtils::HashString("AE"); + static constexpr uint32_t AF_HASH = ConstExprHashingUtils::HashString("AF"); + static constexpr uint32_t AG_HASH = ConstExprHashingUtils::HashString("AG"); + static constexpr uint32_t AI_HASH = ConstExprHashingUtils::HashString("AI"); + static constexpr uint32_t AL_HASH = ConstExprHashingUtils::HashString("AL"); + static constexpr uint32_t AM_HASH = ConstExprHashingUtils::HashString("AM"); + static constexpr uint32_t AN_HASH = ConstExprHashingUtils::HashString("AN"); + static constexpr uint32_t AO_HASH = ConstExprHashingUtils::HashString("AO"); + static constexpr uint32_t AQ_HASH = ConstExprHashingUtils::HashString("AQ"); + static constexpr uint32_t AR_HASH = ConstExprHashingUtils::HashString("AR"); + static constexpr uint32_t AS_HASH = ConstExprHashingUtils::HashString("AS"); + static constexpr uint32_t AT_HASH = ConstExprHashingUtils::HashString("AT"); + static constexpr uint32_t AU_HASH = ConstExprHashingUtils::HashString("AU"); + static constexpr uint32_t AW_HASH = ConstExprHashingUtils::HashString("AW"); + static constexpr uint32_t AX_HASH = ConstExprHashingUtils::HashString("AX"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t BA_HASH = ConstExprHashingUtils::HashString("BA"); + static constexpr uint32_t BB_HASH = ConstExprHashingUtils::HashString("BB"); + static constexpr uint32_t BD_HASH = ConstExprHashingUtils::HashString("BD"); + static constexpr uint32_t BE_HASH = ConstExprHashingUtils::HashString("BE"); + static constexpr uint32_t BF_HASH = ConstExprHashingUtils::HashString("BF"); + static constexpr uint32_t BG_HASH = ConstExprHashingUtils::HashString("BG"); + static constexpr uint32_t BH_HASH = ConstExprHashingUtils::HashString("BH"); + static constexpr uint32_t BI_HASH = ConstExprHashingUtils::HashString("BI"); + static constexpr uint32_t BJ_HASH = ConstExprHashingUtils::HashString("BJ"); + static constexpr uint32_t BL_HASH = ConstExprHashingUtils::HashString("BL"); + static constexpr uint32_t BM_HASH = ConstExprHashingUtils::HashString("BM"); + static constexpr uint32_t BN_HASH = ConstExprHashingUtils::HashString("BN"); + static constexpr uint32_t BO_HASH = ConstExprHashingUtils::HashString("BO"); + static constexpr uint32_t BQ_HASH = ConstExprHashingUtils::HashString("BQ"); + static constexpr uint32_t BR_HASH = ConstExprHashingUtils::HashString("BR"); + static constexpr uint32_t BS_HASH = ConstExprHashingUtils::HashString("BS"); + static constexpr uint32_t BT_HASH = ConstExprHashingUtils::HashString("BT"); + static constexpr uint32_t BV_HASH = ConstExprHashingUtils::HashString("BV"); + static constexpr uint32_t BW_HASH = ConstExprHashingUtils::HashString("BW"); + static constexpr uint32_t BY_HASH = ConstExprHashingUtils::HashString("BY"); + static constexpr uint32_t BZ_HASH = ConstExprHashingUtils::HashString("BZ"); + static constexpr uint32_t CA_HASH = ConstExprHashingUtils::HashString("CA"); + static constexpr uint32_t CC_HASH = ConstExprHashingUtils::HashString("CC"); + static constexpr uint32_t CD_HASH = ConstExprHashingUtils::HashString("CD"); + static constexpr uint32_t CF_HASH = ConstExprHashingUtils::HashString("CF"); + static constexpr uint32_t CG_HASH = ConstExprHashingUtils::HashString("CG"); + static constexpr uint32_t CH_HASH = ConstExprHashingUtils::HashString("CH"); + static constexpr uint32_t CI_HASH = ConstExprHashingUtils::HashString("CI"); + static constexpr uint32_t CK_HASH = ConstExprHashingUtils::HashString("CK"); + static constexpr uint32_t CL_HASH = ConstExprHashingUtils::HashString("CL"); + static constexpr uint32_t CM_HASH = ConstExprHashingUtils::HashString("CM"); + static constexpr uint32_t CN_HASH = ConstExprHashingUtils::HashString("CN"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t CR_HASH = ConstExprHashingUtils::HashString("CR"); + static constexpr uint32_t CU_HASH = ConstExprHashingUtils::HashString("CU"); + static constexpr uint32_t CV_HASH = ConstExprHashingUtils::HashString("CV"); + static constexpr uint32_t CW_HASH = ConstExprHashingUtils::HashString("CW"); + static constexpr uint32_t CX_HASH = ConstExprHashingUtils::HashString("CX"); + static constexpr uint32_t CY_HASH = ConstExprHashingUtils::HashString("CY"); + static constexpr uint32_t CZ_HASH = ConstExprHashingUtils::HashString("CZ"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t DJ_HASH = ConstExprHashingUtils::HashString("DJ"); + static constexpr uint32_t DK_HASH = ConstExprHashingUtils::HashString("DK"); + static constexpr uint32_t DM_HASH = ConstExprHashingUtils::HashString("DM"); + static constexpr uint32_t DO_HASH = ConstExprHashingUtils::HashString("DO"); + static constexpr uint32_t DZ_HASH = ConstExprHashingUtils::HashString("DZ"); + static constexpr uint32_t EC_HASH = ConstExprHashingUtils::HashString("EC"); + static constexpr uint32_t EE_HASH = ConstExprHashingUtils::HashString("EE"); + static constexpr uint32_t EG_HASH = ConstExprHashingUtils::HashString("EG"); + static constexpr uint32_t EH_HASH = ConstExprHashingUtils::HashString("EH"); + static constexpr uint32_t ER_HASH = ConstExprHashingUtils::HashString("ER"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t ET_HASH = ConstExprHashingUtils::HashString("ET"); + static constexpr uint32_t FI_HASH = ConstExprHashingUtils::HashString("FI"); + static constexpr uint32_t FJ_HASH = ConstExprHashingUtils::HashString("FJ"); + static constexpr uint32_t FK_HASH = ConstExprHashingUtils::HashString("FK"); + static constexpr uint32_t FM_HASH = ConstExprHashingUtils::HashString("FM"); + static constexpr uint32_t FO_HASH = ConstExprHashingUtils::HashString("FO"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t GA_HASH = ConstExprHashingUtils::HashString("GA"); + static constexpr uint32_t GB_HASH = ConstExprHashingUtils::HashString("GB"); + static constexpr uint32_t GD_HASH = ConstExprHashingUtils::HashString("GD"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t GF_HASH = ConstExprHashingUtils::HashString("GF"); + static constexpr uint32_t GG_HASH = ConstExprHashingUtils::HashString("GG"); + static constexpr uint32_t GH_HASH = ConstExprHashingUtils::HashString("GH"); + static constexpr uint32_t GI_HASH = ConstExprHashingUtils::HashString("GI"); + static constexpr uint32_t GL_HASH = ConstExprHashingUtils::HashString("GL"); + static constexpr uint32_t GM_HASH = ConstExprHashingUtils::HashString("GM"); + static constexpr uint32_t GN_HASH = ConstExprHashingUtils::HashString("GN"); + static constexpr uint32_t GP_HASH = ConstExprHashingUtils::HashString("GP"); + static constexpr uint32_t GQ_HASH = ConstExprHashingUtils::HashString("GQ"); + static constexpr uint32_t GR_HASH = ConstExprHashingUtils::HashString("GR"); + static constexpr uint32_t GS_HASH = ConstExprHashingUtils::HashString("GS"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GU_HASH = ConstExprHashingUtils::HashString("GU"); + static constexpr uint32_t GW_HASH = ConstExprHashingUtils::HashString("GW"); + static constexpr uint32_t GY_HASH = ConstExprHashingUtils::HashString("GY"); + static constexpr uint32_t HK_HASH = ConstExprHashingUtils::HashString("HK"); + static constexpr uint32_t HM_HASH = ConstExprHashingUtils::HashString("HM"); + static constexpr uint32_t HN_HASH = ConstExprHashingUtils::HashString("HN"); + static constexpr uint32_t HR_HASH = ConstExprHashingUtils::HashString("HR"); + static constexpr uint32_t HT_HASH = ConstExprHashingUtils::HashString("HT"); + static constexpr uint32_t HU_HASH = ConstExprHashingUtils::HashString("HU"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t IE_HASH = ConstExprHashingUtils::HashString("IE"); + static constexpr uint32_t IL_HASH = ConstExprHashingUtils::HashString("IL"); + static constexpr uint32_t IM_HASH = ConstExprHashingUtils::HashString("IM"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t IO_HASH = ConstExprHashingUtils::HashString("IO"); + static constexpr uint32_t IQ_HASH = ConstExprHashingUtils::HashString("IQ"); + static constexpr uint32_t IR_HASH = ConstExprHashingUtils::HashString("IR"); + static constexpr uint32_t IS_HASH = ConstExprHashingUtils::HashString("IS"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t JE_HASH = ConstExprHashingUtils::HashString("JE"); + static constexpr uint32_t JM_HASH = ConstExprHashingUtils::HashString("JM"); + static constexpr uint32_t JO_HASH = ConstExprHashingUtils::HashString("JO"); + static constexpr uint32_t JP_HASH = ConstExprHashingUtils::HashString("JP"); + static constexpr uint32_t KE_HASH = ConstExprHashingUtils::HashString("KE"); + static constexpr uint32_t KG_HASH = ConstExprHashingUtils::HashString("KG"); + static constexpr uint32_t KH_HASH = ConstExprHashingUtils::HashString("KH"); + static constexpr uint32_t KI_HASH = ConstExprHashingUtils::HashString("KI"); + static constexpr uint32_t KM_HASH = ConstExprHashingUtils::HashString("KM"); + static constexpr uint32_t KN_HASH = ConstExprHashingUtils::HashString("KN"); + static constexpr uint32_t KP_HASH = ConstExprHashingUtils::HashString("KP"); + static constexpr uint32_t KR_HASH = ConstExprHashingUtils::HashString("KR"); + static constexpr uint32_t KW_HASH = ConstExprHashingUtils::HashString("KW"); + static constexpr uint32_t KY_HASH = ConstExprHashingUtils::HashString("KY"); + static constexpr uint32_t KZ_HASH = ConstExprHashingUtils::HashString("KZ"); + static constexpr uint32_t LA_HASH = ConstExprHashingUtils::HashString("LA"); + static constexpr uint32_t LB_HASH = ConstExprHashingUtils::HashString("LB"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t LI_HASH = ConstExprHashingUtils::HashString("LI"); + static constexpr uint32_t LK_HASH = ConstExprHashingUtils::HashString("LK"); + static constexpr uint32_t LR_HASH = ConstExprHashingUtils::HashString("LR"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LU_HASH = ConstExprHashingUtils::HashString("LU"); + static constexpr uint32_t LV_HASH = ConstExprHashingUtils::HashString("LV"); + static constexpr uint32_t LY_HASH = ConstExprHashingUtils::HashString("LY"); + static constexpr uint32_t MA_HASH = ConstExprHashingUtils::HashString("MA"); + static constexpr uint32_t MC_HASH = ConstExprHashingUtils::HashString("MC"); + static constexpr uint32_t MD_HASH = ConstExprHashingUtils::HashString("MD"); + static constexpr uint32_t ME_HASH = ConstExprHashingUtils::HashString("ME"); + static constexpr uint32_t MF_HASH = ConstExprHashingUtils::HashString("MF"); + static constexpr uint32_t MG_HASH = ConstExprHashingUtils::HashString("MG"); + static constexpr uint32_t MH_HASH = ConstExprHashingUtils::HashString("MH"); + static constexpr uint32_t MK_HASH = ConstExprHashingUtils::HashString("MK"); + static constexpr uint32_t ML_HASH = ConstExprHashingUtils::HashString("ML"); + static constexpr uint32_t MM_HASH = ConstExprHashingUtils::HashString("MM"); + static constexpr uint32_t MN_HASH = ConstExprHashingUtils::HashString("MN"); + static constexpr uint32_t MO_HASH = ConstExprHashingUtils::HashString("MO"); + static constexpr uint32_t MP_HASH = ConstExprHashingUtils::HashString("MP"); + static constexpr uint32_t MQ_HASH = ConstExprHashingUtils::HashString("MQ"); + static constexpr uint32_t MR_HASH = ConstExprHashingUtils::HashString("MR"); + static constexpr uint32_t MS_HASH = ConstExprHashingUtils::HashString("MS"); + static constexpr uint32_t MT_HASH = ConstExprHashingUtils::HashString("MT"); + static constexpr uint32_t MU_HASH = ConstExprHashingUtils::HashString("MU"); + static constexpr uint32_t MV_HASH = ConstExprHashingUtils::HashString("MV"); + static constexpr uint32_t MW_HASH = ConstExprHashingUtils::HashString("MW"); + static constexpr uint32_t MX_HASH = ConstExprHashingUtils::HashString("MX"); + static constexpr uint32_t MY_HASH = ConstExprHashingUtils::HashString("MY"); + static constexpr uint32_t MZ_HASH = ConstExprHashingUtils::HashString("MZ"); + static constexpr uint32_t NA_HASH = ConstExprHashingUtils::HashString("NA"); + static constexpr uint32_t NC_HASH = ConstExprHashingUtils::HashString("NC"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t NF_HASH = ConstExprHashingUtils::HashString("NF"); + static constexpr uint32_t NG_HASH = ConstExprHashingUtils::HashString("NG"); + static constexpr uint32_t NI_HASH = ConstExprHashingUtils::HashString("NI"); + static constexpr uint32_t NL_HASH = ConstExprHashingUtils::HashString("NL"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t NP_HASH = ConstExprHashingUtils::HashString("NP"); + static constexpr uint32_t NR_HASH = ConstExprHashingUtils::HashString("NR"); + static constexpr uint32_t NU_HASH = ConstExprHashingUtils::HashString("NU"); + static constexpr uint32_t NZ_HASH = ConstExprHashingUtils::HashString("NZ"); + static constexpr uint32_t OM_HASH = ConstExprHashingUtils::HashString("OM"); + static constexpr uint32_t PA_HASH = ConstExprHashingUtils::HashString("PA"); + static constexpr uint32_t PE_HASH = ConstExprHashingUtils::HashString("PE"); + static constexpr uint32_t PF_HASH = ConstExprHashingUtils::HashString("PF"); + static constexpr uint32_t PG_HASH = ConstExprHashingUtils::HashString("PG"); + static constexpr uint32_t PH_HASH = ConstExprHashingUtils::HashString("PH"); + static constexpr uint32_t PK_HASH = ConstExprHashingUtils::HashString("PK"); + static constexpr uint32_t PL_HASH = ConstExprHashingUtils::HashString("PL"); + static constexpr uint32_t PM_HASH = ConstExprHashingUtils::HashString("PM"); + static constexpr uint32_t PN_HASH = ConstExprHashingUtils::HashString("PN"); + static constexpr uint32_t PR_HASH = ConstExprHashingUtils::HashString("PR"); + static constexpr uint32_t PS_HASH = ConstExprHashingUtils::HashString("PS"); + static constexpr uint32_t PT_HASH = ConstExprHashingUtils::HashString("PT"); + static constexpr uint32_t PW_HASH = ConstExprHashingUtils::HashString("PW"); + static constexpr uint32_t PY_HASH = ConstExprHashingUtils::HashString("PY"); + static constexpr uint32_t QA_HASH = ConstExprHashingUtils::HashString("QA"); + static constexpr uint32_t RE_HASH = ConstExprHashingUtils::HashString("RE"); + static constexpr uint32_t RO_HASH = ConstExprHashingUtils::HashString("RO"); + static constexpr uint32_t RS_HASH = ConstExprHashingUtils::HashString("RS"); + static constexpr uint32_t RU_HASH = ConstExprHashingUtils::HashString("RU"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t SA_HASH = ConstExprHashingUtils::HashString("SA"); + static constexpr uint32_t SB_HASH = ConstExprHashingUtils::HashString("SB"); + static constexpr uint32_t SC_HASH = ConstExprHashingUtils::HashString("SC"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t SE_HASH = ConstExprHashingUtils::HashString("SE"); + static constexpr uint32_t SG_HASH = ConstExprHashingUtils::HashString("SG"); + static constexpr uint32_t SH_HASH = ConstExprHashingUtils::HashString("SH"); + static constexpr uint32_t SI_HASH = ConstExprHashingUtils::HashString("SI"); + static constexpr uint32_t SJ_HASH = ConstExprHashingUtils::HashString("SJ"); + static constexpr uint32_t SK_HASH = ConstExprHashingUtils::HashString("SK"); + static constexpr uint32_t SL_HASH = ConstExprHashingUtils::HashString("SL"); + static constexpr uint32_t SM_HASH = ConstExprHashingUtils::HashString("SM"); + static constexpr uint32_t SN_HASH = ConstExprHashingUtils::HashString("SN"); + static constexpr uint32_t SO_HASH = ConstExprHashingUtils::HashString("SO"); + static constexpr uint32_t SR_HASH = ConstExprHashingUtils::HashString("SR"); + static constexpr uint32_t SS_HASH = ConstExprHashingUtils::HashString("SS"); + static constexpr uint32_t ST_HASH = ConstExprHashingUtils::HashString("ST"); + static constexpr uint32_t SV_HASH = ConstExprHashingUtils::HashString("SV"); + static constexpr uint32_t SX_HASH = ConstExprHashingUtils::HashString("SX"); + static constexpr uint32_t SY_HASH = ConstExprHashingUtils::HashString("SY"); + static constexpr uint32_t SZ_HASH = ConstExprHashingUtils::HashString("SZ"); + static constexpr uint32_t TC_HASH = ConstExprHashingUtils::HashString("TC"); + static constexpr uint32_t TD_HASH = ConstExprHashingUtils::HashString("TD"); + static constexpr uint32_t TF_HASH = ConstExprHashingUtils::HashString("TF"); + static constexpr uint32_t TG_HASH = ConstExprHashingUtils::HashString("TG"); + static constexpr uint32_t TH_HASH = ConstExprHashingUtils::HashString("TH"); + static constexpr uint32_t TJ_HASH = ConstExprHashingUtils::HashString("TJ"); + static constexpr uint32_t TK_HASH = ConstExprHashingUtils::HashString("TK"); + static constexpr uint32_t TL_HASH = ConstExprHashingUtils::HashString("TL"); + static constexpr uint32_t TM_HASH = ConstExprHashingUtils::HashString("TM"); + static constexpr uint32_t TN_HASH = ConstExprHashingUtils::HashString("TN"); + static constexpr uint32_t TO_HASH = ConstExprHashingUtils::HashString("TO"); + static constexpr uint32_t TP_HASH = ConstExprHashingUtils::HashString("TP"); + static constexpr uint32_t TR_HASH = ConstExprHashingUtils::HashString("TR"); + static constexpr uint32_t TT_HASH = ConstExprHashingUtils::HashString("TT"); + static constexpr uint32_t TV_HASH = ConstExprHashingUtils::HashString("TV"); + static constexpr uint32_t TW_HASH = ConstExprHashingUtils::HashString("TW"); + static constexpr uint32_t TZ_HASH = ConstExprHashingUtils::HashString("TZ"); + static constexpr uint32_t UA_HASH = ConstExprHashingUtils::HashString("UA"); + static constexpr uint32_t UG_HASH = ConstExprHashingUtils::HashString("UG"); + static constexpr uint32_t US_HASH = ConstExprHashingUtils::HashString("US"); + static constexpr uint32_t UY_HASH = ConstExprHashingUtils::HashString("UY"); + static constexpr uint32_t UZ_HASH = ConstExprHashingUtils::HashString("UZ"); + static constexpr uint32_t VA_HASH = ConstExprHashingUtils::HashString("VA"); + static constexpr uint32_t VC_HASH = ConstExprHashingUtils::HashString("VC"); + static constexpr uint32_t VE_HASH = ConstExprHashingUtils::HashString("VE"); + static constexpr uint32_t VG_HASH = ConstExprHashingUtils::HashString("VG"); + static constexpr uint32_t VI_HASH = ConstExprHashingUtils::HashString("VI"); + static constexpr uint32_t VN_HASH = ConstExprHashingUtils::HashString("VN"); + static constexpr uint32_t VU_HASH = ConstExprHashingUtils::HashString("VU"); + static constexpr uint32_t WF_HASH = ConstExprHashingUtils::HashString("WF"); + static constexpr uint32_t WS_HASH = ConstExprHashingUtils::HashString("WS"); + static constexpr uint32_t YE_HASH = ConstExprHashingUtils::HashString("YE"); + static constexpr uint32_t YT_HASH = ConstExprHashingUtils::HashString("YT"); + static constexpr uint32_t ZA_HASH = ConstExprHashingUtils::HashString("ZA"); + static constexpr uint32_t ZM_HASH = ConstExprHashingUtils::HashString("ZM"); + static constexpr uint32_t ZW_HASH = ConstExprHashingUtils::HashString("ZW"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, CountryCode& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, CountryCode& enumValue) { if (hashCode == AC_HASH) { @@ -891,7 +891,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, CountryCode& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, CountryCode& enumValue) { if (hashCode == KP_HASH) { @@ -1505,7 +1505,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper2(int hashCode, CountryCode& enumValue) + static bool GetEnumForNameHelper2(uint32_t hashCode, CountryCode& enumValue) { if (hashCode == WF_HASH) { @@ -2325,7 +2325,7 @@ namespace Aws CountryCode GetCountryCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); CountryCode enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/DomainAvailability.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/DomainAvailability.cpp index 2ac657e1aa0..30f3379b493 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/DomainAvailability.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/DomainAvailability.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DomainAvailabilityMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int AVAILABLE_RESERVED_HASH = HashingUtils::HashString("AVAILABLE_RESERVED"); - static const int AVAILABLE_PREORDER_HASH = HashingUtils::HashString("AVAILABLE_PREORDER"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); - static const int UNAVAILABLE_PREMIUM_HASH = HashingUtils::HashString("UNAVAILABLE_PREMIUM"); - static const int UNAVAILABLE_RESTRICTED_HASH = HashingUtils::HashString("UNAVAILABLE_RESTRICTED"); - static const int RESERVED_HASH = HashingUtils::HashString("RESERVED"); - static const int DONT_KNOW_HASH = HashingUtils::HashString("DONT_KNOW"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t AVAILABLE_RESERVED_HASH = ConstExprHashingUtils::HashString("AVAILABLE_RESERVED"); + static constexpr uint32_t AVAILABLE_PREORDER_HASH = ConstExprHashingUtils::HashString("AVAILABLE_PREORDER"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t UNAVAILABLE_PREMIUM_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE_PREMIUM"); + static constexpr uint32_t UNAVAILABLE_RESTRICTED_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE_RESTRICTED"); + static constexpr uint32_t RESERVED_HASH = ConstExprHashingUtils::HashString("RESERVED"); + static constexpr uint32_t DONT_KNOW_HASH = ConstExprHashingUtils::HashString("DONT_KNOW"); DomainAvailability GetDomainAvailabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return DomainAvailability::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/ExtraParamName.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/ExtraParamName.cpp index 5d2d07698bd..891a854ce22 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/ExtraParamName.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/ExtraParamName.cpp @@ -20,42 +20,42 @@ namespace Aws namespace ExtraParamNameMapper { - static const int DUNS_NUMBER_HASH = HashingUtils::HashString("DUNS_NUMBER"); - static const int BRAND_NUMBER_HASH = HashingUtils::HashString("BRAND_NUMBER"); - static const int BIRTH_DEPARTMENT_HASH = HashingUtils::HashString("BIRTH_DEPARTMENT"); - static const int BIRTH_DATE_IN_YYYY_MM_DD_HASH = HashingUtils::HashString("BIRTH_DATE_IN_YYYY_MM_DD"); - static const int BIRTH_COUNTRY_HASH = HashingUtils::HashString("BIRTH_COUNTRY"); - static const int BIRTH_CITY_HASH = HashingUtils::HashString("BIRTH_CITY"); - static const int DOCUMENT_NUMBER_HASH = HashingUtils::HashString("DOCUMENT_NUMBER"); - static const int AU_ID_NUMBER_HASH = HashingUtils::HashString("AU_ID_NUMBER"); - static const int AU_ID_TYPE_HASH = HashingUtils::HashString("AU_ID_TYPE"); - static const int CA_LEGAL_TYPE_HASH = HashingUtils::HashString("CA_LEGAL_TYPE"); - static const int CA_BUSINESS_ENTITY_TYPE_HASH = HashingUtils::HashString("CA_BUSINESS_ENTITY_TYPE"); - static const int CA_LEGAL_REPRESENTATIVE_HASH = HashingUtils::HashString("CA_LEGAL_REPRESENTATIVE"); - static const int CA_LEGAL_REPRESENTATIVE_CAPACITY_HASH = HashingUtils::HashString("CA_LEGAL_REPRESENTATIVE_CAPACITY"); - static const int ES_IDENTIFICATION_HASH = HashingUtils::HashString("ES_IDENTIFICATION"); - static const int ES_IDENTIFICATION_TYPE_HASH = HashingUtils::HashString("ES_IDENTIFICATION_TYPE"); - static const int ES_LEGAL_FORM_HASH = HashingUtils::HashString("ES_LEGAL_FORM"); - static const int FI_BUSINESS_NUMBER_HASH = HashingUtils::HashString("FI_BUSINESS_NUMBER"); - static const int FI_ID_NUMBER_HASH = HashingUtils::HashString("FI_ID_NUMBER"); - static const int FI_NATIONALITY_HASH = HashingUtils::HashString("FI_NATIONALITY"); - static const int FI_ORGANIZATION_TYPE_HASH = HashingUtils::HashString("FI_ORGANIZATION_TYPE"); - static const int IT_NATIONALITY_HASH = HashingUtils::HashString("IT_NATIONALITY"); - static const int IT_PIN_HASH = HashingUtils::HashString("IT_PIN"); - static const int IT_REGISTRANT_ENTITY_TYPE_HASH = HashingUtils::HashString("IT_REGISTRANT_ENTITY_TYPE"); - static const int RU_PASSPORT_DATA_HASH = HashingUtils::HashString("RU_PASSPORT_DATA"); - static const int SE_ID_NUMBER_HASH = HashingUtils::HashString("SE_ID_NUMBER"); - static const int SG_ID_NUMBER_HASH = HashingUtils::HashString("SG_ID_NUMBER"); - static const int VAT_NUMBER_HASH = HashingUtils::HashString("VAT_NUMBER"); - static const int UK_CONTACT_TYPE_HASH = HashingUtils::HashString("UK_CONTACT_TYPE"); - static const int UK_COMPANY_NUMBER_HASH = HashingUtils::HashString("UK_COMPANY_NUMBER"); - static const int EU_COUNTRY_OF_CITIZENSHIP_HASH = HashingUtils::HashString("EU_COUNTRY_OF_CITIZENSHIP"); - static const int AU_PRIORITY_TOKEN_HASH = HashingUtils::HashString("AU_PRIORITY_TOKEN"); + static constexpr uint32_t DUNS_NUMBER_HASH = ConstExprHashingUtils::HashString("DUNS_NUMBER"); + static constexpr uint32_t BRAND_NUMBER_HASH = ConstExprHashingUtils::HashString("BRAND_NUMBER"); + static constexpr uint32_t BIRTH_DEPARTMENT_HASH = ConstExprHashingUtils::HashString("BIRTH_DEPARTMENT"); + static constexpr uint32_t BIRTH_DATE_IN_YYYY_MM_DD_HASH = ConstExprHashingUtils::HashString("BIRTH_DATE_IN_YYYY_MM_DD"); + static constexpr uint32_t BIRTH_COUNTRY_HASH = ConstExprHashingUtils::HashString("BIRTH_COUNTRY"); + static constexpr uint32_t BIRTH_CITY_HASH = ConstExprHashingUtils::HashString("BIRTH_CITY"); + static constexpr uint32_t DOCUMENT_NUMBER_HASH = ConstExprHashingUtils::HashString("DOCUMENT_NUMBER"); + static constexpr uint32_t AU_ID_NUMBER_HASH = ConstExprHashingUtils::HashString("AU_ID_NUMBER"); + static constexpr uint32_t AU_ID_TYPE_HASH = ConstExprHashingUtils::HashString("AU_ID_TYPE"); + static constexpr uint32_t CA_LEGAL_TYPE_HASH = ConstExprHashingUtils::HashString("CA_LEGAL_TYPE"); + static constexpr uint32_t CA_BUSINESS_ENTITY_TYPE_HASH = ConstExprHashingUtils::HashString("CA_BUSINESS_ENTITY_TYPE"); + static constexpr uint32_t CA_LEGAL_REPRESENTATIVE_HASH = ConstExprHashingUtils::HashString("CA_LEGAL_REPRESENTATIVE"); + static constexpr uint32_t CA_LEGAL_REPRESENTATIVE_CAPACITY_HASH = ConstExprHashingUtils::HashString("CA_LEGAL_REPRESENTATIVE_CAPACITY"); + static constexpr uint32_t ES_IDENTIFICATION_HASH = ConstExprHashingUtils::HashString("ES_IDENTIFICATION"); + static constexpr uint32_t ES_IDENTIFICATION_TYPE_HASH = ConstExprHashingUtils::HashString("ES_IDENTIFICATION_TYPE"); + static constexpr uint32_t ES_LEGAL_FORM_HASH = ConstExprHashingUtils::HashString("ES_LEGAL_FORM"); + static constexpr uint32_t FI_BUSINESS_NUMBER_HASH = ConstExprHashingUtils::HashString("FI_BUSINESS_NUMBER"); + static constexpr uint32_t FI_ID_NUMBER_HASH = ConstExprHashingUtils::HashString("FI_ID_NUMBER"); + static constexpr uint32_t FI_NATIONALITY_HASH = ConstExprHashingUtils::HashString("FI_NATIONALITY"); + static constexpr uint32_t FI_ORGANIZATION_TYPE_HASH = ConstExprHashingUtils::HashString("FI_ORGANIZATION_TYPE"); + static constexpr uint32_t IT_NATIONALITY_HASH = ConstExprHashingUtils::HashString("IT_NATIONALITY"); + static constexpr uint32_t IT_PIN_HASH = ConstExprHashingUtils::HashString("IT_PIN"); + static constexpr uint32_t IT_REGISTRANT_ENTITY_TYPE_HASH = ConstExprHashingUtils::HashString("IT_REGISTRANT_ENTITY_TYPE"); + static constexpr uint32_t RU_PASSPORT_DATA_HASH = ConstExprHashingUtils::HashString("RU_PASSPORT_DATA"); + static constexpr uint32_t SE_ID_NUMBER_HASH = ConstExprHashingUtils::HashString("SE_ID_NUMBER"); + static constexpr uint32_t SG_ID_NUMBER_HASH = ConstExprHashingUtils::HashString("SG_ID_NUMBER"); + static constexpr uint32_t VAT_NUMBER_HASH = ConstExprHashingUtils::HashString("VAT_NUMBER"); + static constexpr uint32_t UK_CONTACT_TYPE_HASH = ConstExprHashingUtils::HashString("UK_CONTACT_TYPE"); + static constexpr uint32_t UK_COMPANY_NUMBER_HASH = ConstExprHashingUtils::HashString("UK_COMPANY_NUMBER"); + static constexpr uint32_t EU_COUNTRY_OF_CITIZENSHIP_HASH = ConstExprHashingUtils::HashString("EU_COUNTRY_OF_CITIZENSHIP"); + static constexpr uint32_t AU_PRIORITY_TOKEN_HASH = ConstExprHashingUtils::HashString("AU_PRIORITY_TOKEN"); ExtraParamName GetExtraParamNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUNS_NUMBER_HASH) { return ExtraParamName::DUNS_NUMBER; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/ListDomainsAttributeName.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/ListDomainsAttributeName.cpp index 948fd2a7a66..a10affa1d10 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/ListDomainsAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/ListDomainsAttributeName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListDomainsAttributeNameMapper { - static const int DomainName_HASH = HashingUtils::HashString("DomainName"); - static const int Expiry_HASH = HashingUtils::HashString("Expiry"); + static constexpr uint32_t DomainName_HASH = ConstExprHashingUtils::HashString("DomainName"); + static constexpr uint32_t Expiry_HASH = ConstExprHashingUtils::HashString("Expiry"); ListDomainsAttributeName GetListDomainsAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DomainName_HASH) { return ListDomainsAttributeName::DomainName; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/ListOperationsSortAttributeName.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/ListOperationsSortAttributeName.cpp index 6b1b3906ea3..dee2f601fc9 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/ListOperationsSortAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/ListOperationsSortAttributeName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ListOperationsSortAttributeNameMapper { - static const int SubmittedDate_HASH = HashingUtils::HashString("SubmittedDate"); + static constexpr uint32_t SubmittedDate_HASH = ConstExprHashingUtils::HashString("SubmittedDate"); ListOperationsSortAttributeName GetListOperationsSortAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SubmittedDate_HASH) { return ListOperationsSortAttributeName::SubmittedDate; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/OperationStatus.cpp index fb600b135e6..84ab05a3018 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/OperationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OperationStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t SUCCESSFUL_HASH = ConstExprHashingUtils::HashString("SUCCESSFUL"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return OperationStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/OperationType.cpp index 20988c79b1a..bd09a420347 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/OperationType.cpp @@ -20,29 +20,29 @@ namespace Aws namespace OperationTypeMapper { - static const int REGISTER_DOMAIN_HASH = HashingUtils::HashString("REGISTER_DOMAIN"); - static const int DELETE_DOMAIN_HASH = HashingUtils::HashString("DELETE_DOMAIN"); - static const int TRANSFER_IN_DOMAIN_HASH = HashingUtils::HashString("TRANSFER_IN_DOMAIN"); - static const int UPDATE_DOMAIN_CONTACT_HASH = HashingUtils::HashString("UPDATE_DOMAIN_CONTACT"); - static const int UPDATE_NAMESERVER_HASH = HashingUtils::HashString("UPDATE_NAMESERVER"); - static const int CHANGE_PRIVACY_PROTECTION_HASH = HashingUtils::HashString("CHANGE_PRIVACY_PROTECTION"); - static const int DOMAIN_LOCK_HASH = HashingUtils::HashString("DOMAIN_LOCK"); - static const int ENABLE_AUTORENEW_HASH = HashingUtils::HashString("ENABLE_AUTORENEW"); - static const int DISABLE_AUTORENEW_HASH = HashingUtils::HashString("DISABLE_AUTORENEW"); - static const int ADD_DNSSEC_HASH = HashingUtils::HashString("ADD_DNSSEC"); - static const int REMOVE_DNSSEC_HASH = HashingUtils::HashString("REMOVE_DNSSEC"); - static const int EXPIRE_DOMAIN_HASH = HashingUtils::HashString("EXPIRE_DOMAIN"); - static const int TRANSFER_OUT_DOMAIN_HASH = HashingUtils::HashString("TRANSFER_OUT_DOMAIN"); - static const int CHANGE_DOMAIN_OWNER_HASH = HashingUtils::HashString("CHANGE_DOMAIN_OWNER"); - static const int RENEW_DOMAIN_HASH = HashingUtils::HashString("RENEW_DOMAIN"); - static const int PUSH_DOMAIN_HASH = HashingUtils::HashString("PUSH_DOMAIN"); - static const int INTERNAL_TRANSFER_OUT_DOMAIN_HASH = HashingUtils::HashString("INTERNAL_TRANSFER_OUT_DOMAIN"); - static const int INTERNAL_TRANSFER_IN_DOMAIN_HASH = HashingUtils::HashString("INTERNAL_TRANSFER_IN_DOMAIN"); + static constexpr uint32_t REGISTER_DOMAIN_HASH = ConstExprHashingUtils::HashString("REGISTER_DOMAIN"); + static constexpr uint32_t DELETE_DOMAIN_HASH = ConstExprHashingUtils::HashString("DELETE_DOMAIN"); + static constexpr uint32_t TRANSFER_IN_DOMAIN_HASH = ConstExprHashingUtils::HashString("TRANSFER_IN_DOMAIN"); + static constexpr uint32_t UPDATE_DOMAIN_CONTACT_HASH = ConstExprHashingUtils::HashString("UPDATE_DOMAIN_CONTACT"); + static constexpr uint32_t UPDATE_NAMESERVER_HASH = ConstExprHashingUtils::HashString("UPDATE_NAMESERVER"); + static constexpr uint32_t CHANGE_PRIVACY_PROTECTION_HASH = ConstExprHashingUtils::HashString("CHANGE_PRIVACY_PROTECTION"); + static constexpr uint32_t DOMAIN_LOCK_HASH = ConstExprHashingUtils::HashString("DOMAIN_LOCK"); + static constexpr uint32_t ENABLE_AUTORENEW_HASH = ConstExprHashingUtils::HashString("ENABLE_AUTORENEW"); + static constexpr uint32_t DISABLE_AUTORENEW_HASH = ConstExprHashingUtils::HashString("DISABLE_AUTORENEW"); + static constexpr uint32_t ADD_DNSSEC_HASH = ConstExprHashingUtils::HashString("ADD_DNSSEC"); + static constexpr uint32_t REMOVE_DNSSEC_HASH = ConstExprHashingUtils::HashString("REMOVE_DNSSEC"); + static constexpr uint32_t EXPIRE_DOMAIN_HASH = ConstExprHashingUtils::HashString("EXPIRE_DOMAIN"); + static constexpr uint32_t TRANSFER_OUT_DOMAIN_HASH = ConstExprHashingUtils::HashString("TRANSFER_OUT_DOMAIN"); + static constexpr uint32_t CHANGE_DOMAIN_OWNER_HASH = ConstExprHashingUtils::HashString("CHANGE_DOMAIN_OWNER"); + static constexpr uint32_t RENEW_DOMAIN_HASH = ConstExprHashingUtils::HashString("RENEW_DOMAIN"); + static constexpr uint32_t PUSH_DOMAIN_HASH = ConstExprHashingUtils::HashString("PUSH_DOMAIN"); + static constexpr uint32_t INTERNAL_TRANSFER_OUT_DOMAIN_HASH = ConstExprHashingUtils::HashString("INTERNAL_TRANSFER_OUT_DOMAIN"); + static constexpr uint32_t INTERNAL_TRANSFER_IN_DOMAIN_HASH = ConstExprHashingUtils::HashString("INTERNAL_TRANSFER_IN_DOMAIN"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTER_DOMAIN_HASH) { return OperationType::REGISTER_DOMAIN; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/Operator.cpp index e579e6135a0..c2bdeee6265 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/Operator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperatorMapper { - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int BEGINS_WITH_HASH = HashingUtils::HashString("BEGINS_WITH"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t BEGINS_WITH_HASH = ConstExprHashingUtils::HashString("BEGINS_WITH"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LE_HASH) { return Operator::LE; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/ReachabilityStatus.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/ReachabilityStatus.cpp index 500afe8dcf2..00249de87f1 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/ReachabilityStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/ReachabilityStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReachabilityStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int DONE_HASH = HashingUtils::HashString("DONE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t DONE_HASH = ConstExprHashingUtils::HashString("DONE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ReachabilityStatus GetReachabilityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ReachabilityStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/SortOrder.cpp index 130ca34bbad..2b3e648cfc9 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/StatusFlag.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/StatusFlag.cpp index 20cf0340689..063cc1c4b60 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/StatusFlag.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/StatusFlag.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatusFlagMapper { - static const int PENDING_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_ACCEPTANCE"); - static const int PENDING_CUSTOMER_ACTION_HASH = HashingUtils::HashString("PENDING_CUSTOMER_ACTION"); - static const int PENDING_AUTHORIZATION_HASH = HashingUtils::HashString("PENDING_AUTHORIZATION"); - static const int PENDING_PAYMENT_VERIFICATION_HASH = HashingUtils::HashString("PENDING_PAYMENT_VERIFICATION"); - static const int PENDING_SUPPORT_CASE_HASH = HashingUtils::HashString("PENDING_SUPPORT_CASE"); + static constexpr uint32_t PENDING_ACCEPTANCE_HASH = ConstExprHashingUtils::HashString("PENDING_ACCEPTANCE"); + static constexpr uint32_t PENDING_CUSTOMER_ACTION_HASH = ConstExprHashingUtils::HashString("PENDING_CUSTOMER_ACTION"); + static constexpr uint32_t PENDING_AUTHORIZATION_HASH = ConstExprHashingUtils::HashString("PENDING_AUTHORIZATION"); + static constexpr uint32_t PENDING_PAYMENT_VERIFICATION_HASH = ConstExprHashingUtils::HashString("PENDING_PAYMENT_VERIFICATION"); + static constexpr uint32_t PENDING_SUPPORT_CASE_HASH = ConstExprHashingUtils::HashString("PENDING_SUPPORT_CASE"); StatusFlag GetStatusFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_ACCEPTANCE_HASH) { return StatusFlag::PENDING_ACCEPTANCE; diff --git a/generated/src/aws-cpp-sdk-route53domains/source/model/Transferable.cpp b/generated/src/aws-cpp-sdk-route53domains/source/model/Transferable.cpp index a4521e0904c..5b4fb5ec8db 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/model/Transferable.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/model/Transferable.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TransferableMapper { - static const int TRANSFERABLE_HASH = HashingUtils::HashString("TRANSFERABLE"); - static const int UNTRANSFERABLE_HASH = HashingUtils::HashString("UNTRANSFERABLE"); - static const int DONT_KNOW_HASH = HashingUtils::HashString("DONT_KNOW"); - static const int DOMAIN_IN_OWN_ACCOUNT_HASH = HashingUtils::HashString("DOMAIN_IN_OWN_ACCOUNT"); - static const int DOMAIN_IN_ANOTHER_ACCOUNT_HASH = HashingUtils::HashString("DOMAIN_IN_ANOTHER_ACCOUNT"); - static const int PREMIUM_DOMAIN_HASH = HashingUtils::HashString("PREMIUM_DOMAIN"); + static constexpr uint32_t TRANSFERABLE_HASH = ConstExprHashingUtils::HashString("TRANSFERABLE"); + static constexpr uint32_t UNTRANSFERABLE_HASH = ConstExprHashingUtils::HashString("UNTRANSFERABLE"); + static constexpr uint32_t DONT_KNOW_HASH = ConstExprHashingUtils::HashString("DONT_KNOW"); + static constexpr uint32_t DOMAIN_IN_OWN_ACCOUNT_HASH = ConstExprHashingUtils::HashString("DOMAIN_IN_OWN_ACCOUNT"); + static constexpr uint32_t DOMAIN_IN_ANOTHER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("DOMAIN_IN_ANOTHER_ACCOUNT"); + static constexpr uint32_t PREMIUM_DOMAIN_HASH = ConstExprHashingUtils::HashString("PREMIUM_DOMAIN"); Transferable GetTransferableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRANSFERABLE_HASH) { return Transferable::TRANSFERABLE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverErrors.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverErrors.cpp index b8b83dcc710..7d8791c6437 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverErrors.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverErrors.cpp @@ -61,24 +61,24 @@ template<> AWS_ROUTE53RESOLVER_API ResourceUnavailableException Route53ResolverE namespace Route53ResolverErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int RESOURCE_EXISTS_HASH = HashingUtils::HashString("ResourceExistsException"); -static const int INVALID_POLICY_DOCUMENT_HASH = HashingUtils::HashString("InvalidPolicyDocument"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTagException"); -static const int UNKNOWN_RESOURCE_HASH = HashingUtils::HashString("UnknownResourceException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t RESOURCE_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceExistsException"); +static constexpr uint32_t INVALID_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("InvalidPolicyDocument"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTagException"); +static constexpr uint32_t UNKNOWN_RESOURCE_HASH = ConstExprHashingUtils::HashString("UnknownResourceException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/Action.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/Action.cpp index 131ab3e6200..bb2bce41dc4 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/Action.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/Action.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ActionMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); - static const int ALERT_HASH = HashingUtils::HashString("ALERT"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); + static constexpr uint32_t ALERT_HASH = ConstExprHashingUtils::HashString("ALERT"); Action GetActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return Action::ALLOW; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/AutodefinedReverseFlag.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/AutodefinedReverseFlag.cpp index d39a2e73107..c37dceed114 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/AutodefinedReverseFlag.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/AutodefinedReverseFlag.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutodefinedReverseFlagMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); - static const int USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); + static constexpr uint32_t USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); AutodefinedReverseFlag GetAutodefinedReverseFlagForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return AutodefinedReverseFlag::ENABLE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockOverrideDnsType.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockOverrideDnsType.cpp index 2a1a9454af3..04b4a16e129 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockOverrideDnsType.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockOverrideDnsType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BlockOverrideDnsTypeMapper { - static const int CNAME_HASH = HashingUtils::HashString("CNAME"); + static constexpr uint32_t CNAME_HASH = ConstExprHashingUtils::HashString("CNAME"); BlockOverrideDnsType GetBlockOverrideDnsTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CNAME_HASH) { return BlockOverrideDnsType::CNAME; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockResponse.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockResponse.cpp index 0f7fac2d229..42efb16dc23 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockResponse.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/BlockResponse.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BlockResponseMapper { - static const int NODATA_HASH = HashingUtils::HashString("NODATA"); - static const int NXDOMAIN_HASH = HashingUtils::HashString("NXDOMAIN"); - static const int OVERRIDE_HASH = HashingUtils::HashString("OVERRIDE"); + static constexpr uint32_t NODATA_HASH = ConstExprHashingUtils::HashString("NODATA"); + static constexpr uint32_t NXDOMAIN_HASH = ConstExprHashingUtils::HashString("NXDOMAIN"); + static constexpr uint32_t OVERRIDE_HASH = ConstExprHashingUtils::HashString("OVERRIDE"); BlockResponse GetBlockResponseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NODATA_HASH) { return BlockResponse::NODATA; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainImportOperation.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainImportOperation.cpp index 6add397bc75..9af5ea7c77c 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainImportOperation.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainImportOperation.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FirewallDomainImportOperationMapper { - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); FirewallDomainImportOperation GetFirewallDomainImportOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REPLACE_HASH) { return FirewallDomainImportOperation::REPLACE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainListStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainListStatus.cpp index 550ac2245e0..6ea85b80289 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainListStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainListStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FirewallDomainListStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int COMPLETE_IMPORT_FAILED_HASH = HashingUtils::HashString("COMPLETE_IMPORT_FAILED"); - static const int IMPORTING_HASH = HashingUtils::HashString("IMPORTING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t COMPLETE_IMPORT_FAILED_HASH = ConstExprHashingUtils::HashString("COMPLETE_IMPORT_FAILED"); + static constexpr uint32_t IMPORTING_HASH = ConstExprHashingUtils::HashString("IMPORTING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); FirewallDomainListStatus GetFirewallDomainListStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return FirewallDomainListStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainUpdateOperation.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainUpdateOperation.cpp index 0f347106778..65fa40e53d1 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainUpdateOperation.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallDomainUpdateOperation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FirewallDomainUpdateOperationMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); FirewallDomainUpdateOperation GetFirewallDomainUpdateOperationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return FirewallDomainUpdateOperation::ADD; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallFailOpenStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallFailOpenStatus.cpp index 7de2b9471f3..07c60b9665a 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallFailOpenStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallFailOpenStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FirewallFailOpenStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); FirewallFailOpenStatus GetFirewallFailOpenStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return FirewallFailOpenStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupAssociationStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupAssociationStatus.cpp index cf4a178431f..680550961c2 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupAssociationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FirewallRuleGroupAssociationStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); FirewallRuleGroupAssociationStatus GetFirewallRuleGroupAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return FirewallRuleGroupAssociationStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupStatus.cpp index 7518f9d7bc7..225459ceebb 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRuleGroupStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FirewallRuleGroupStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); FirewallRuleGroupStatus GetFirewallRuleGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return FirewallRuleGroupStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/IpAddressStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/IpAddressStatus.cpp index 47f3975de7f..a9ad51b0886 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/IpAddressStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/IpAddressStatus.cpp @@ -20,23 +20,23 @@ namespace Aws namespace IpAddressStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_CREATION_HASH = HashingUtils::HashString("FAILED_CREATION"); - static const int ATTACHING_HASH = HashingUtils::HashString("ATTACHING"); - static const int ATTACHED_HASH = HashingUtils::HashString("ATTACHED"); - static const int REMAP_DETACHING_HASH = HashingUtils::HashString("REMAP_DETACHING"); - static const int REMAP_ATTACHING_HASH = HashingUtils::HashString("REMAP_ATTACHING"); - static const int DETACHING_HASH = HashingUtils::HashString("DETACHING"); - static const int FAILED_RESOURCE_GONE_HASH = HashingUtils::HashString("FAILED_RESOURCE_GONE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_FAS_EXPIRED_HASH = HashingUtils::HashString("DELETE_FAILED_FAS_EXPIRED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_CREATION_HASH = ConstExprHashingUtils::HashString("FAILED_CREATION"); + static constexpr uint32_t ATTACHING_HASH = ConstExprHashingUtils::HashString("ATTACHING"); + static constexpr uint32_t ATTACHED_HASH = ConstExprHashingUtils::HashString("ATTACHED"); + static constexpr uint32_t REMAP_DETACHING_HASH = ConstExprHashingUtils::HashString("REMAP_DETACHING"); + static constexpr uint32_t REMAP_ATTACHING_HASH = ConstExprHashingUtils::HashString("REMAP_ATTACHING"); + static constexpr uint32_t DETACHING_HASH = ConstExprHashingUtils::HashString("DETACHING"); + static constexpr uint32_t FAILED_RESOURCE_GONE_HASH = ConstExprHashingUtils::HashString("FAILED_RESOURCE_GONE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_FAS_EXPIRED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED_FAS_EXPIRED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); IpAddressStatus GetIpAddressStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return IpAddressStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/MutationProtectionStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/MutationProtectionStatus.cpp index d4bcf639ad7..5cda0c55d91 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/MutationProtectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/MutationProtectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MutationProtectionStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); MutationProtectionStatus GetMutationProtectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return MutationProtectionStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/OutpostResolverStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/OutpostResolverStatus.cpp index b8733d08700..503288a2955 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/OutpostResolverStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/OutpostResolverStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace OutpostResolverStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int OPERATIONAL_HASH = HashingUtils::HashString("OPERATIONAL"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTION_NEEDED_HASH = HashingUtils::HashString("ACTION_NEEDED"); - static const int FAILED_CREATION_HASH = HashingUtils::HashString("FAILED_CREATION"); - static const int FAILED_DELETION_HASH = HashingUtils::HashString("FAILED_DELETION"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t OPERATIONAL_HASH = ConstExprHashingUtils::HashString("OPERATIONAL"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTION_NEEDED_HASH = ConstExprHashingUtils::HashString("ACTION_NEEDED"); + static constexpr uint32_t FAILED_CREATION_HASH = ConstExprHashingUtils::HashString("FAILED_CREATION"); + static constexpr uint32_t FAILED_DELETION_HASH = ConstExprHashingUtils::HashString("FAILED_DELETION"); OutpostResolverStatus GetOutpostResolverStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return OutpostResolverStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverAutodefinedReverseStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverAutodefinedReverseStatus.cpp index 77200213384..a5d26828bd8 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverAutodefinedReverseStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverAutodefinedReverseStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResolverAutodefinedReverseStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int UPDATING_TO_USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("UPDATING_TO_USE_LOCAL_RESOURCE_SETTING"); - static const int USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPDATING_TO_USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("UPDATING_TO_USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); ResolverAutodefinedReverseStatus GetResolverAutodefinedReverseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return ResolverAutodefinedReverseStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverDNSSECValidationStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverDNSSECValidationStatus.cpp index b93dd404f4e..4f586318916 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverDNSSECValidationStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverDNSSECValidationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResolverDNSSECValidationStatusMapper { - static const int ENABLING_HASH = HashingUtils::HashString("ENABLING"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLING_HASH = HashingUtils::HashString("DISABLING"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int UPDATING_TO_USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("UPDATING_TO_USE_LOCAL_RESOURCE_SETTING"); - static const int USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t ENABLING_HASH = ConstExprHashingUtils::HashString("ENABLING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLING_HASH = ConstExprHashingUtils::HashString("DISABLING"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t UPDATING_TO_USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("UPDATING_TO_USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); ResolverDNSSECValidationStatus GetResolverDNSSECValidationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLING_HASH) { return ResolverDNSSECValidationStatus::ENABLING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointDirection.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointDirection.cpp index 3291c2606a1..85544f5ac12 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointDirection.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResolverEndpointDirectionMapper { - static const int INBOUND_HASH = HashingUtils::HashString("INBOUND"); - static const int OUTBOUND_HASH = HashingUtils::HashString("OUTBOUND"); + static constexpr uint32_t INBOUND_HASH = ConstExprHashingUtils::HashString("INBOUND"); + static constexpr uint32_t OUTBOUND_HASH = ConstExprHashingUtils::HashString("OUTBOUND"); ResolverEndpointDirection GetResolverEndpointDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INBOUND_HASH) { return ResolverEndpointDirection::INBOUND; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointStatus.cpp index 400c743e1ca..6604321a70e 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResolverEndpointStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int OPERATIONAL_HASH = HashingUtils::HashString("OPERATIONAL"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int AUTO_RECOVERING_HASH = HashingUtils::HashString("AUTO_RECOVERING"); - static const int ACTION_NEEDED_HASH = HashingUtils::HashString("ACTION_NEEDED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t OPERATIONAL_HASH = ConstExprHashingUtils::HashString("OPERATIONAL"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t AUTO_RECOVERING_HASH = ConstExprHashingUtils::HashString("AUTO_RECOVERING"); + static constexpr uint32_t ACTION_NEEDED_HASH = ConstExprHashingUtils::HashString("ACTION_NEEDED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ResolverEndpointStatus GetResolverEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ResolverEndpointStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointType.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointType.cpp index 47d025ea868..4c890d7d027 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverEndpointType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResolverEndpointTypeMapper { - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int DUALSTACK_HASH = HashingUtils::HashString("DUALSTACK"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t DUALSTACK_HASH = ConstExprHashingUtils::HashString("DUALSTACK"); ResolverEndpointType GetResolverEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV6_HASH) { return ResolverEndpointType::IPV6; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationError.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationError.cpp index 441b1d7b4cd..b3ea5b0d8c5 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationError.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationError.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResolverQueryLogConfigAssociationErrorMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DESTINATION_NOT_FOUND_HASH = HashingUtils::HashString("DESTINATION_NOT_FOUND"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVICE_ERROR"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DESTINATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("DESTINATION_NOT_FOUND"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_SERVICE_ERROR"); ResolverQueryLogConfigAssociationError GetResolverQueryLogConfigAssociationErrorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ResolverQueryLogConfigAssociationError::NONE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationStatus.cpp index b500dc88949..72ae960dead 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigAssociationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResolverQueryLogConfigAssociationStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ACTION_NEEDED_HASH = HashingUtils::HashString("ACTION_NEEDED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTION_NEEDED_HASH = ConstExprHashingUtils::HashString("ACTION_NEEDED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ResolverQueryLogConfigAssociationStatus GetResolverQueryLogConfigAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ResolverQueryLogConfigAssociationStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigStatus.cpp index 335cbf7cfa9..ef8c2cbd7d1 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverQueryLogConfigStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResolverQueryLogConfigStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ResolverQueryLogConfigStatus GetResolverQueryLogConfigStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ResolverQueryLogConfigStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleAssociationStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleAssociationStatus.cpp index 008327145e7..8dd052cd75c 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleAssociationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResolverRuleAssociationStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int OVERRIDDEN_HASH = HashingUtils::HashString("OVERRIDDEN"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t OVERRIDDEN_HASH = ConstExprHashingUtils::HashString("OVERRIDDEN"); ResolverRuleAssociationStatus GetResolverRuleAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ResolverRuleAssociationStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleStatus.cpp index 58bfe313f0c..68f55133317 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ResolverRuleStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResolverRuleStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ResolverRuleStatus GetResolverRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return ResolverRuleStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/RuleTypeOption.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/RuleTypeOption.cpp index cb6e3fe1a0a..197a6829688 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/RuleTypeOption.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/RuleTypeOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RuleTypeOptionMapper { - static const int FORWARD_HASH = HashingUtils::HashString("FORWARD"); - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int RECURSIVE_HASH = HashingUtils::HashString("RECURSIVE"); + static constexpr uint32_t FORWARD_HASH = ConstExprHashingUtils::HashString("FORWARD"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t RECURSIVE_HASH = ConstExprHashingUtils::HashString("RECURSIVE"); RuleTypeOption GetRuleTypeOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORWARD_HASH) { return RuleTypeOption::FORWARD; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ShareStatus.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ShareStatus.cpp index 5ced073b424..7354342d581 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/ShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ShareStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ShareStatusMapper { - static const int NOT_SHARED_HASH = HashingUtils::HashString("NOT_SHARED"); - static const int SHARED_WITH_ME_HASH = HashingUtils::HashString("SHARED_WITH_ME"); - static const int SHARED_BY_ME_HASH = HashingUtils::HashString("SHARED_BY_ME"); + static constexpr uint32_t NOT_SHARED_HASH = ConstExprHashingUtils::HashString("NOT_SHARED"); + static constexpr uint32_t SHARED_WITH_ME_HASH = ConstExprHashingUtils::HashString("SHARED_WITH_ME"); + static constexpr uint32_t SHARED_BY_ME_HASH = ConstExprHashingUtils::HashString("SHARED_BY_ME"); ShareStatus GetShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_SHARED_HASH) { return ShareStatus::NOT_SHARED; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/SortOrder.cpp index 9332cfd5e43..56429e9936e 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/Validation.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/Validation.cpp index 4638d360e84..b7a420df12a 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/Validation.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/Validation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ValidationMapper { - static const int ENABLE_HASH = HashingUtils::HashString("ENABLE"); - static const int DISABLE_HASH = HashingUtils::HashString("DISABLE"); - static const int USE_LOCAL_RESOURCE_SETTING_HASH = HashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); + static constexpr uint32_t ENABLE_HASH = ConstExprHashingUtils::HashString("ENABLE"); + static constexpr uint32_t DISABLE_HASH = ConstExprHashingUtils::HashString("DISABLE"); + static constexpr uint32_t USE_LOCAL_RESOURCE_SETTING_HASH = ConstExprHashingUtils::HashString("USE_LOCAL_RESOURCE_SETTING"); Validation GetValidationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLE_HASH) { return Validation::ENABLE; diff --git a/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMErrors.cpp b/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMErrors.cpp index c9880d606ea..1fcbd11b9bd 100644 --- a/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMErrors.cpp +++ b/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_CLOUDWATCHRUM_API InternalServerException CloudWatchRUMError::Get namespace CloudWatchRUMErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-rum/source/model/CustomEventsStatus.cpp b/generated/src/aws-cpp-sdk-rum/source/model/CustomEventsStatus.cpp index d038fe52113..36c21230f3f 100644 --- a/generated/src/aws-cpp-sdk-rum/source/model/CustomEventsStatus.cpp +++ b/generated/src/aws-cpp-sdk-rum/source/model/CustomEventsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomEventsStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); CustomEventsStatus GetCustomEventsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return CustomEventsStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-rum/source/model/MetricDestination.cpp b/generated/src/aws-cpp-sdk-rum/source/model/MetricDestination.cpp index 19e32c74db1..a13f9fba94b 100644 --- a/generated/src/aws-cpp-sdk-rum/source/model/MetricDestination.cpp +++ b/generated/src/aws-cpp-sdk-rum/source/model/MetricDestination.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricDestinationMapper { - static const int CloudWatch_HASH = HashingUtils::HashString("CloudWatch"); - static const int Evidently_HASH = HashingUtils::HashString("Evidently"); + static constexpr uint32_t CloudWatch_HASH = ConstExprHashingUtils::HashString("CloudWatch"); + static constexpr uint32_t Evidently_HASH = ConstExprHashingUtils::HashString("Evidently"); MetricDestination GetMetricDestinationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CloudWatch_HASH) { return MetricDestination::CloudWatch; diff --git a/generated/src/aws-cpp-sdk-rum/source/model/StateEnum.cpp b/generated/src/aws-cpp-sdk-rum/source/model/StateEnum.cpp index c184a560f8e..068ef2b39a2 100644 --- a/generated/src/aws-cpp-sdk-rum/source/model/StateEnum.cpp +++ b/generated/src/aws-cpp-sdk-rum/source/model/StateEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StateEnumMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); StateEnum GetStateEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return StateEnum::CREATED; diff --git a/generated/src/aws-cpp-sdk-rum/source/model/Telemetry.cpp b/generated/src/aws-cpp-sdk-rum/source/model/Telemetry.cpp index 5155b8c5b03..74ad8c44faa 100644 --- a/generated/src/aws-cpp-sdk-rum/source/model/Telemetry.cpp +++ b/generated/src/aws-cpp-sdk-rum/source/model/Telemetry.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TelemetryMapper { - static const int errors_HASH = HashingUtils::HashString("errors"); - static const int performance_HASH = HashingUtils::HashString("performance"); - static const int http_HASH = HashingUtils::HashString("http"); + static constexpr uint32_t errors_HASH = ConstExprHashingUtils::HashString("errors"); + static constexpr uint32_t performance_HASH = ConstExprHashingUtils::HashString("performance"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); Telemetry GetTelemetryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == errors_HASH) { return Telemetry::errors; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtErrors.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtErrors.cpp index 4cff5b98fc1..c7a67a9e2a1 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtErrors.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtErrors.cpp @@ -26,19 +26,19 @@ template<> AWS_S3CRT_API InvalidObjectState S3CrtError::GetModeledError() namespace S3CrtErrorMapper { -static const int NO_SUCH_UPLOAD_HASH = HashingUtils::HashString("NoSuchUpload"); -static const int BUCKET_ALREADY_OWNED_BY_YOU_HASH = HashingUtils::HashString("BucketAlreadyOwnedByYou"); -static const int OBJECT_ALREADY_IN_ACTIVE_TIER_HASH = HashingUtils::HashString("ObjectAlreadyInActiveTierError"); -static const int NO_SUCH_BUCKET_HASH = HashingUtils::HashString("NoSuchBucket"); -static const int NO_SUCH_KEY_HASH = HashingUtils::HashString("NoSuchKey"); -static const int OBJECT_NOT_IN_ACTIVE_TIER_HASH = HashingUtils::HashString("ObjectNotInActiveTierError"); -static const int BUCKET_ALREADY_EXISTS_HASH = HashingUtils::HashString("BucketAlreadyExists"); -static const int INVALID_OBJECT_STATE_HASH = HashingUtils::HashString("InvalidObjectState"); +static constexpr uint32_t NO_SUCH_UPLOAD_HASH = ConstExprHashingUtils::HashString("NoSuchUpload"); +static constexpr uint32_t BUCKET_ALREADY_OWNED_BY_YOU_HASH = ConstExprHashingUtils::HashString("BucketAlreadyOwnedByYou"); +static constexpr uint32_t OBJECT_ALREADY_IN_ACTIVE_TIER_HASH = ConstExprHashingUtils::HashString("ObjectAlreadyInActiveTierError"); +static constexpr uint32_t NO_SUCH_BUCKET_HASH = ConstExprHashingUtils::HashString("NoSuchBucket"); +static constexpr uint32_t NO_SUCH_KEY_HASH = ConstExprHashingUtils::HashString("NoSuchKey"); +static constexpr uint32_t OBJECT_NOT_IN_ACTIVE_TIER_HASH = ConstExprHashingUtils::HashString("ObjectNotInActiveTierError"); +static constexpr uint32_t BUCKET_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("BucketAlreadyExists"); +static constexpr uint32_t INVALID_OBJECT_STATE_HASH = ConstExprHashingUtils::HashString("InvalidObjectState"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NO_SUCH_UPLOAD_HASH) { diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/AnalyticsS3ExportFileFormat.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/AnalyticsS3ExportFileFormat.cpp index 2e7784baf74..c4b8df01cf8 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/AnalyticsS3ExportFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/AnalyticsS3ExportFileFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnalyticsS3ExportFileFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); AnalyticsS3ExportFileFormat GetAnalyticsS3ExportFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return AnalyticsS3ExportFileFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ArchiveStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ArchiveStatus.cpp index 76b70a61239..8e44c4d7b78 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ArchiveStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ArchiveStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArchiveStatusMapper { - static const int ARCHIVE_ACCESS_HASH = HashingUtils::HashString("ARCHIVE_ACCESS"); - static const int DEEP_ARCHIVE_ACCESS_HASH = HashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); + static constexpr uint32_t ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("ARCHIVE_ACCESS"); + static constexpr uint32_t DEEP_ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); ArchiveStatus GetArchiveStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVE_ACCESS_HASH) { return ArchiveStatus::ARCHIVE_ACCESS; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketAccelerateStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketAccelerateStatus.cpp index 50845729727..4c0cc05d4a2 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketAccelerateStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketAccelerateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BucketAccelerateStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); BucketAccelerateStatus GetBucketAccelerateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return BucketAccelerateStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketCannedACL.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketCannedACL.cpp index ac989a5b90e..8d3800e401f 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketCannedACL.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketCannedACL.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BucketCannedACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); BucketCannedACL GetBucketCannedACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return BucketCannedACL::private_; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLocationConstraint.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLocationConstraint.cpp index 106b83af3d9..df7f48a0433 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLocationConstraint.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLocationConstraint.cpp @@ -20,41 +20,41 @@ namespace Aws namespace BucketLocationConstraintMapper { - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_3_HASH = HashingUtils::HashString("ap-northeast-3"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_southeast_3_HASH = HashingUtils::HashString("ap-southeast-3"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int cn_northwest_1_HASH = HashingUtils::HashString("cn-northwest-1"); - static const int EU_HASH = HashingUtils::HashString("EU"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_gov_east_1_HASH = HashingUtils::HashString("us-gov-east-1"); - static const int us_gov_west_1_HASH = HashingUtils::HashString("us-gov-west-1"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_south_2_HASH = HashingUtils::HashString("ap-south-2"); - static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); - static const int us_iso_west_1_HASH = HashingUtils::HashString("us-iso-west-1"); - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_3_HASH = ConstExprHashingUtils::HashString("ap-northeast-3"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_southeast_3_HASH = ConstExprHashingUtils::HashString("ap-southeast-3"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t cn_northwest_1_HASH = ConstExprHashingUtils::HashString("cn-northwest-1"); + static constexpr uint32_t EU_HASH = ConstExprHashingUtils::HashString("EU"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_gov_east_1_HASH = ConstExprHashingUtils::HashString("us-gov-east-1"); + static constexpr uint32_t us_gov_west_1_HASH = ConstExprHashingUtils::HashString("us-gov-west-1"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_south_2_HASH = ConstExprHashingUtils::HashString("ap-south-2"); + static constexpr uint32_t eu_south_2_HASH = ConstExprHashingUtils::HashString("eu-south-2"); + static constexpr uint32_t us_iso_west_1_HASH = ConstExprHashingUtils::HashString("us-iso-west-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); BucketLocationConstraint GetBucketLocationConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == af_south_1_HASH) { return BucketLocationConstraint::af_south_1; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLogsPermission.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLogsPermission.cpp index 87e7bbc3738..5a35f1d2660 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLogsPermission.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketLogsPermission.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BucketLogsPermissionMapper { - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); BucketLogsPermission GetBucketLogsPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_CONTROL_HASH) { return BucketLogsPermission::FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketVersioningStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketVersioningStatus.cpp index 3b3d9afa77f..b62b76825d4 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketVersioningStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/BucketVersioningStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BucketVersioningStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); BucketVersioningStatus GetBucketVersioningStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return BucketVersioningStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumAlgorithm.cpp index 71eec10106f..8cde9bde0ca 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChecksumAlgorithmMapper { - static const int CRC32_HASH = HashingUtils::HashString("CRC32"); - static const int CRC32C_HASH = HashingUtils::HashString("CRC32C"); - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); + static constexpr uint32_t CRC32_HASH = ConstExprHashingUtils::HashString("CRC32"); + static constexpr uint32_t CRC32C_HASH = ConstExprHashingUtils::HashString("CRC32C"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); ChecksumAlgorithm GetChecksumAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRC32_HASH) { return ChecksumAlgorithm::CRC32; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumMode.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumMode.cpp index 3d977c9e662..82bccdd9038 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumMode.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ChecksumMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ChecksumModeMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); ChecksumMode GetChecksumModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ChecksumMode::ENABLED; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/CompressionType.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/CompressionType.cpp index f8aa16a4f3c..a57eeeaaa05 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/CompressionType.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/CompressionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CompressionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int BZIP2_HASH = HashingUtils::HashString("BZIP2"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t BZIP2_HASH = ConstExprHashingUtils::HashString("BZIP2"); CompressionType GetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return CompressionType::NONE; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/DeleteMarkerReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/DeleteMarkerReplicationStatus.cpp index 4e61dca5ddd..d41a273458f 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/DeleteMarkerReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/DeleteMarkerReplicationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeleteMarkerReplicationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); DeleteMarkerReplicationStatus GetDeleteMarkerReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return DeleteMarkerReplicationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/EncodingType.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/EncodingType.cpp index de1d290c504..d8a3e466ab2 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/EncodingType.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/EncodingType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncodingTypeMapper { - static const int url_HASH = HashingUtils::HashString("url"); + static constexpr uint32_t url_HASH = ConstExprHashingUtils::HashString("url"); EncodingType GetEncodingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == url_HASH) { return EncodingType::url; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/Event.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/Event.cpp index 001c66d17fb..8747d947728 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/Event.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/Event.cpp @@ -20,38 +20,38 @@ namespace Aws namespace EventMapper { - static const int s3_ReducedRedundancyLostObject_HASH = HashingUtils::HashString("s3:ReducedRedundancyLostObject"); - static const int s3_ObjectCreated_HASH = HashingUtils::HashString("s3:ObjectCreated:*"); - static const int s3_ObjectCreated_Put_HASH = HashingUtils::HashString("s3:ObjectCreated:Put"); - static const int s3_ObjectCreated_Post_HASH = HashingUtils::HashString("s3:ObjectCreated:Post"); - static const int s3_ObjectCreated_Copy_HASH = HashingUtils::HashString("s3:ObjectCreated:Copy"); - static const int s3_ObjectCreated_CompleteMultipartUpload_HASH = HashingUtils::HashString("s3:ObjectCreated:CompleteMultipartUpload"); - static const int s3_ObjectRemoved_HASH = HashingUtils::HashString("s3:ObjectRemoved:*"); - static const int s3_ObjectRemoved_Delete_HASH = HashingUtils::HashString("s3:ObjectRemoved:Delete"); - static const int s3_ObjectRemoved_DeleteMarkerCreated_HASH = HashingUtils::HashString("s3:ObjectRemoved:DeleteMarkerCreated"); - static const int s3_ObjectRestore_HASH = HashingUtils::HashString("s3:ObjectRestore:*"); - static const int s3_ObjectRestore_Post_HASH = HashingUtils::HashString("s3:ObjectRestore:Post"); - static const int s3_ObjectRestore_Completed_HASH = HashingUtils::HashString("s3:ObjectRestore:Completed"); - static const int s3_Replication_HASH = HashingUtils::HashString("s3:Replication:*"); - static const int s3_Replication_OperationFailedReplication_HASH = HashingUtils::HashString("s3:Replication:OperationFailedReplication"); - static const int s3_Replication_OperationNotTracked_HASH = HashingUtils::HashString("s3:Replication:OperationNotTracked"); - static const int s3_Replication_OperationMissedThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationMissedThreshold"); - static const int s3_Replication_OperationReplicatedAfterThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationReplicatedAfterThreshold"); - static const int s3_ObjectRestore_Delete_HASH = HashingUtils::HashString("s3:ObjectRestore:Delete"); - static const int s3_LifecycleTransition_HASH = HashingUtils::HashString("s3:LifecycleTransition"); - static const int s3_IntelligentTiering_HASH = HashingUtils::HashString("s3:IntelligentTiering"); - static const int s3_ObjectAcl_Put_HASH = HashingUtils::HashString("s3:ObjectAcl:Put"); - static const int s3_LifecycleExpiration_HASH = HashingUtils::HashString("s3:LifecycleExpiration:*"); - static const int s3_LifecycleExpiration_Delete_HASH = HashingUtils::HashString("s3:LifecycleExpiration:Delete"); - static const int s3_LifecycleExpiration_DeleteMarkerCreated_HASH = HashingUtils::HashString("s3:LifecycleExpiration:DeleteMarkerCreated"); - static const int s3_ObjectTagging_HASH = HashingUtils::HashString("s3:ObjectTagging:*"); - static const int s3_ObjectTagging_Put_HASH = HashingUtils::HashString("s3:ObjectTagging:Put"); - static const int s3_ObjectTagging_Delete_HASH = HashingUtils::HashString("s3:ObjectTagging:Delete"); + static constexpr uint32_t s3_ReducedRedundancyLostObject_HASH = ConstExprHashingUtils::HashString("s3:ReducedRedundancyLostObject"); + static constexpr uint32_t s3_ObjectCreated_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:*"); + static constexpr uint32_t s3_ObjectCreated_Put_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:Put"); + static constexpr uint32_t s3_ObjectCreated_Post_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:Post"); + static constexpr uint32_t s3_ObjectCreated_Copy_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:Copy"); + static constexpr uint32_t s3_ObjectCreated_CompleteMultipartUpload_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:CompleteMultipartUpload"); + static constexpr uint32_t s3_ObjectRemoved_HASH = ConstExprHashingUtils::HashString("s3:ObjectRemoved:*"); + static constexpr uint32_t s3_ObjectRemoved_Delete_HASH = ConstExprHashingUtils::HashString("s3:ObjectRemoved:Delete"); + static constexpr uint32_t s3_ObjectRemoved_DeleteMarkerCreated_HASH = ConstExprHashingUtils::HashString("s3:ObjectRemoved:DeleteMarkerCreated"); + static constexpr uint32_t s3_ObjectRestore_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:*"); + static constexpr uint32_t s3_ObjectRestore_Post_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:Post"); + static constexpr uint32_t s3_ObjectRestore_Completed_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:Completed"); + static constexpr uint32_t s3_Replication_HASH = ConstExprHashingUtils::HashString("s3:Replication:*"); + static constexpr uint32_t s3_Replication_OperationFailedReplication_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationFailedReplication"); + static constexpr uint32_t s3_Replication_OperationNotTracked_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationNotTracked"); + static constexpr uint32_t s3_Replication_OperationMissedThreshold_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationMissedThreshold"); + static constexpr uint32_t s3_Replication_OperationReplicatedAfterThreshold_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationReplicatedAfterThreshold"); + static constexpr uint32_t s3_ObjectRestore_Delete_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:Delete"); + static constexpr uint32_t s3_LifecycleTransition_HASH = ConstExprHashingUtils::HashString("s3:LifecycleTransition"); + static constexpr uint32_t s3_IntelligentTiering_HASH = ConstExprHashingUtils::HashString("s3:IntelligentTiering"); + static constexpr uint32_t s3_ObjectAcl_Put_HASH = ConstExprHashingUtils::HashString("s3:ObjectAcl:Put"); + static constexpr uint32_t s3_LifecycleExpiration_HASH = ConstExprHashingUtils::HashString("s3:LifecycleExpiration:*"); + static constexpr uint32_t s3_LifecycleExpiration_Delete_HASH = ConstExprHashingUtils::HashString("s3:LifecycleExpiration:Delete"); + static constexpr uint32_t s3_LifecycleExpiration_DeleteMarkerCreated_HASH = ConstExprHashingUtils::HashString("s3:LifecycleExpiration:DeleteMarkerCreated"); + static constexpr uint32_t s3_ObjectTagging_HASH = ConstExprHashingUtils::HashString("s3:ObjectTagging:*"); + static constexpr uint32_t s3_ObjectTagging_Put_HASH = ConstExprHashingUtils::HashString("s3:ObjectTagging:Put"); + static constexpr uint32_t s3_ObjectTagging_Delete_HASH = ConstExprHashingUtils::HashString("s3:ObjectTagging:Delete"); Event GetEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s3_ReducedRedundancyLostObject_HASH) { return Event::s3_ReducedRedundancyLostObject; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ExistingObjectReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ExistingObjectReplicationStatus.cpp index b0b465fe582..f31927bdc67 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ExistingObjectReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ExistingObjectReplicationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExistingObjectReplicationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExistingObjectReplicationStatus GetExistingObjectReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExistingObjectReplicationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpirationStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpirationStatus.cpp index 9cb3aef4df0..4059b22a5d9 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpirationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpirationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpirationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExpirationStatus GetExpirationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExpirationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpressionType.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpressionType.cpp index 808584fe972..52931d4976c 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpressionType.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ExpressionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExpressionTypeMapper { - static const int SQL_HASH = HashingUtils::HashString("SQL"); + static constexpr uint32_t SQL_HASH = ConstExprHashingUtils::HashString("SQL"); ExpressionType GetExpressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQL_HASH) { return ExpressionType::SQL; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/FileHeaderInfo.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/FileHeaderInfo.cpp index e4cc92edfe1..0a2d9bfd801 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/FileHeaderInfo.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/FileHeaderInfo.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileHeaderInfoMapper { - static const int USE_HASH = HashingUtils::HashString("USE"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t USE_HASH = ConstExprHashingUtils::HashString("USE"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); FileHeaderInfo GetFileHeaderInfoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_HASH) { return FileHeaderInfo::USE; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/FilterRuleName.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/FilterRuleName.cpp index 999af2b047f..b45e6f123b3 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/FilterRuleName.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/FilterRuleName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterRuleNameMapper { - static const int prefix_HASH = HashingUtils::HashString("prefix"); - static const int suffix_HASH = HashingUtils::HashString("suffix"); + static constexpr uint32_t prefix_HASH = ConstExprHashingUtils::HashString("prefix"); + static constexpr uint32_t suffix_HASH = ConstExprHashingUtils::HashString("suffix"); FilterRuleName GetFilterRuleNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == prefix_HASH) { return FilterRuleName::prefix; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringAccessTier.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringAccessTier.cpp index d860deeb673..42de3791caa 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringAccessTier.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringAccessTier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntelligentTieringAccessTierMapper { - static const int ARCHIVE_ACCESS_HASH = HashingUtils::HashString("ARCHIVE_ACCESS"); - static const int DEEP_ARCHIVE_ACCESS_HASH = HashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); + static constexpr uint32_t ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("ARCHIVE_ACCESS"); + static constexpr uint32_t DEEP_ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); IntelligentTieringAccessTier GetIntelligentTieringAccessTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVE_ACCESS_HASH) { return IntelligentTieringAccessTier::ARCHIVE_ACCESS; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringStatus.cpp index 2e0510b8ea1..7c18e1b8308 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/IntelligentTieringStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntelligentTieringStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); IntelligentTieringStatus GetIntelligentTieringStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return IntelligentTieringStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFormat.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFormat.cpp index 6fb75916891..7f69bb08ad2 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InventoryFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int ORC_HASH = HashingUtils::HashString("ORC"); - static const int Parquet_HASH = HashingUtils::HashString("Parquet"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t ORC_HASH = ConstExprHashingUtils::HashString("ORC"); + static constexpr uint32_t Parquet_HASH = ConstExprHashingUtils::HashString("Parquet"); InventoryFormat GetInventoryFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return InventoryFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFrequency.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFrequency.cpp index 197e2bd64bb..14c2bbbcc48 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFrequency.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryFrequency.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventoryFrequencyMapper { - static const int Daily_HASH = HashingUtils::HashString("Daily"); - static const int Weekly_HASH = HashingUtils::HashString("Weekly"); + static constexpr uint32_t Daily_HASH = ConstExprHashingUtils::HashString("Daily"); + static constexpr uint32_t Weekly_HASH = ConstExprHashingUtils::HashString("Weekly"); InventoryFrequency GetInventoryFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Daily_HASH) { return InventoryFrequency::Daily; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryIncludedObjectVersions.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryIncludedObjectVersions.cpp index 30aac797638..ac60045b94d 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryIncludedObjectVersions.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryIncludedObjectVersions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventoryIncludedObjectVersionsMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int Current_HASH = HashingUtils::HashString("Current"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t Current_HASH = ConstExprHashingUtils::HashString("Current"); InventoryIncludedObjectVersions GetInventoryIncludedObjectVersionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return InventoryIncludedObjectVersions::All; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryOptionalField.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryOptionalField.cpp index 3c4e6bda1f1..21b6bdaa159 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryOptionalField.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/InventoryOptionalField.cpp @@ -20,26 +20,26 @@ namespace Aws namespace InventoryOptionalFieldMapper { - static const int Size_HASH = HashingUtils::HashString("Size"); - static const int LastModifiedDate_HASH = HashingUtils::HashString("LastModifiedDate"); - static const int StorageClass_HASH = HashingUtils::HashString("StorageClass"); - static const int ETag_HASH = HashingUtils::HashString("ETag"); - static const int IsMultipartUploaded_HASH = HashingUtils::HashString("IsMultipartUploaded"); - static const int ReplicationStatus_HASH = HashingUtils::HashString("ReplicationStatus"); - static const int EncryptionStatus_HASH = HashingUtils::HashString("EncryptionStatus"); - static const int ObjectLockRetainUntilDate_HASH = HashingUtils::HashString("ObjectLockRetainUntilDate"); - static const int ObjectLockMode_HASH = HashingUtils::HashString("ObjectLockMode"); - static const int ObjectLockLegalHoldStatus_HASH = HashingUtils::HashString("ObjectLockLegalHoldStatus"); - static const int IntelligentTieringAccessTier_HASH = HashingUtils::HashString("IntelligentTieringAccessTier"); - static const int BucketKeyStatus_HASH = HashingUtils::HashString("BucketKeyStatus"); - static const int ChecksumAlgorithm_HASH = HashingUtils::HashString("ChecksumAlgorithm"); - static const int ObjectAccessControlList_HASH = HashingUtils::HashString("ObjectAccessControlList"); - static const int ObjectOwner_HASH = HashingUtils::HashString("ObjectOwner"); + static constexpr uint32_t Size_HASH = ConstExprHashingUtils::HashString("Size"); + static constexpr uint32_t LastModifiedDate_HASH = ConstExprHashingUtils::HashString("LastModifiedDate"); + static constexpr uint32_t StorageClass_HASH = ConstExprHashingUtils::HashString("StorageClass"); + static constexpr uint32_t ETag_HASH = ConstExprHashingUtils::HashString("ETag"); + static constexpr uint32_t IsMultipartUploaded_HASH = ConstExprHashingUtils::HashString("IsMultipartUploaded"); + static constexpr uint32_t ReplicationStatus_HASH = ConstExprHashingUtils::HashString("ReplicationStatus"); + static constexpr uint32_t EncryptionStatus_HASH = ConstExprHashingUtils::HashString("EncryptionStatus"); + static constexpr uint32_t ObjectLockRetainUntilDate_HASH = ConstExprHashingUtils::HashString("ObjectLockRetainUntilDate"); + static constexpr uint32_t ObjectLockMode_HASH = ConstExprHashingUtils::HashString("ObjectLockMode"); + static constexpr uint32_t ObjectLockLegalHoldStatus_HASH = ConstExprHashingUtils::HashString("ObjectLockLegalHoldStatus"); + static constexpr uint32_t IntelligentTieringAccessTier_HASH = ConstExprHashingUtils::HashString("IntelligentTieringAccessTier"); + static constexpr uint32_t BucketKeyStatus_HASH = ConstExprHashingUtils::HashString("BucketKeyStatus"); + static constexpr uint32_t ChecksumAlgorithm_HASH = ConstExprHashingUtils::HashString("ChecksumAlgorithm"); + static constexpr uint32_t ObjectAccessControlList_HASH = ConstExprHashingUtils::HashString("ObjectAccessControlList"); + static constexpr uint32_t ObjectOwner_HASH = ConstExprHashingUtils::HashString("ObjectOwner"); InventoryOptionalField GetInventoryOptionalFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Size_HASH) { return InventoryOptionalField::Size; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/JSONType.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/JSONType.cpp index 709132cdd37..d6a87213dc8 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/JSONType.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/JSONType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JSONTypeMapper { - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int LINES_HASH = HashingUtils::HashString("LINES"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t LINES_HASH = ConstExprHashingUtils::HashString("LINES"); JSONType GetJSONTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_HASH) { return JSONType::DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADelete.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADelete.cpp index 08f62d3ec71..66da78c8292 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADelete.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADelete.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MFADeleteMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MFADelete GetMFADeleteForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MFADelete::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADeleteStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADeleteStatus.cpp index e8f67dbb2ad..4752e92b749 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADeleteStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/MFADeleteStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MFADeleteStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MFADeleteStatus GetMFADeleteStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MFADeleteStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/MetadataDirective.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/MetadataDirective.cpp index d0839308e36..c13c6de5972 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/MetadataDirective.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/MetadataDirective.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetadataDirectiveMapper { - static const int COPY_HASH = HashingUtils::HashString("COPY"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t COPY_HASH = ConstExprHashingUtils::HashString("COPY"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); MetadataDirective GetMetadataDirectiveForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPY_HASH) { return MetadataDirective::COPY; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/MetricsStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/MetricsStatus.cpp index cc2c8d2273c..2692e47691e 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/MetricsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/MetricsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MetricsStatus GetMetricsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MetricsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectAttributes.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectAttributes.cpp index 90f08e0b4ca..7740551e5d1 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectAttributes.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectAttributes.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ObjectAttributesMapper { - static const int ETag_HASH = HashingUtils::HashString("ETag"); - static const int Checksum_HASH = HashingUtils::HashString("Checksum"); - static const int ObjectParts_HASH = HashingUtils::HashString("ObjectParts"); - static const int StorageClass_HASH = HashingUtils::HashString("StorageClass"); - static const int ObjectSize_HASH = HashingUtils::HashString("ObjectSize"); + static constexpr uint32_t ETag_HASH = ConstExprHashingUtils::HashString("ETag"); + static constexpr uint32_t Checksum_HASH = ConstExprHashingUtils::HashString("Checksum"); + static constexpr uint32_t ObjectParts_HASH = ConstExprHashingUtils::HashString("ObjectParts"); + static constexpr uint32_t StorageClass_HASH = ConstExprHashingUtils::HashString("StorageClass"); + static constexpr uint32_t ObjectSize_HASH = ConstExprHashingUtils::HashString("ObjectSize"); ObjectAttributes GetObjectAttributesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ETag_HASH) { return ObjectAttributes::ETag; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectCannedACL.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectCannedACL.cpp index 4e46c5f58a8..9e54c3c674e 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectCannedACL.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectCannedACL.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ObjectCannedACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); ObjectCannedACL GetObjectCannedACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return ObjectCannedACL::private_; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockEnabled.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockEnabled.cpp index 72998fb28c2..4039b8b41e1 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockEnabled.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockEnabled.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ObjectLockEnabledMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); ObjectLockEnabled GetObjectLockEnabledForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ObjectLockEnabled::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockLegalHoldStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockLegalHoldStatus.cpp index 6fc10741903..059643c339a 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockLegalHoldStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockLegalHoldStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLockLegalHoldStatusMapper { - static const int ON_HASH = HashingUtils::HashString("ON"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_HASH) { return ObjectLockLegalHoldStatus::ON; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockMode.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockMode.cpp index ecd7d49a368..ee75d1bf948 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockMode.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLockModeMapper { - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); ObjectLockMode GetObjectLockModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GOVERNANCE_HASH) { return ObjectLockMode::GOVERNANCE; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockRetentionMode.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockRetentionMode.cpp index aa06832e078..3d24ca9053a 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockRetentionMode.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectLockRetentionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLockRetentionModeMapper { - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); ObjectLockRetentionMode GetObjectLockRetentionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GOVERNANCE_HASH) { return ObjectLockRetentionMode::GOVERNANCE; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectOwnership.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectOwnership.cpp index ba769ecdfa9..6d9160dd56b 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectOwnership.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectOwnership.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ObjectOwnershipMapper { - static const int BucketOwnerPreferred_HASH = HashingUtils::HashString("BucketOwnerPreferred"); - static const int ObjectWriter_HASH = HashingUtils::HashString("ObjectWriter"); - static const int BucketOwnerEnforced_HASH = HashingUtils::HashString("BucketOwnerEnforced"); + static constexpr uint32_t BucketOwnerPreferred_HASH = ConstExprHashingUtils::HashString("BucketOwnerPreferred"); + static constexpr uint32_t ObjectWriter_HASH = ConstExprHashingUtils::HashString("ObjectWriter"); + static constexpr uint32_t BucketOwnerEnforced_HASH = ConstExprHashingUtils::HashString("BucketOwnerEnforced"); ObjectOwnership GetObjectOwnershipForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BucketOwnerPreferred_HASH) { return ObjectOwnership::BucketOwnerPreferred; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectStorageClass.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectStorageClass.cpp index 2324925cf88..5cd1c53f434 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectStorageClass.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ObjectStorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); - static const int SNOW_HASH = HashingUtils::HashString("SNOW"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t SNOW_HASH = ConstExprHashingUtils::HashString("SNOW"); ObjectStorageClass GetObjectStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ObjectStorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectVersionStorageClass.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectVersionStorageClass.cpp index 2f432bdd1a8..f9629d4bf02 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectVersionStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ObjectVersionStorageClass.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ObjectVersionStorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ObjectVersionStorageClass GetObjectVersionStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ObjectVersionStorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/OptionalObjectAttributes.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/OptionalObjectAttributes.cpp index ced34f6467d..a407b43bdbf 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/OptionalObjectAttributes.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/OptionalObjectAttributes.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OptionalObjectAttributesMapper { - static const int RestoreStatus_HASH = HashingUtils::HashString("RestoreStatus"); + static constexpr uint32_t RestoreStatus_HASH = ConstExprHashingUtils::HashString("RestoreStatus"); OptionalObjectAttributes GetOptionalObjectAttributesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RestoreStatus_HASH) { return OptionalObjectAttributes::RestoreStatus; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/OwnerOverride.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/OwnerOverride.cpp index 555aff42d53..d7fb77599e8 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/OwnerOverride.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/OwnerOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OwnerOverrideMapper { - static const int Destination_HASH = HashingUtils::HashString("Destination"); + static constexpr uint32_t Destination_HASH = ConstExprHashingUtils::HashString("Destination"); OwnerOverride GetOwnerOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Destination_HASH) { return OwnerOverride::Destination; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/Payer.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/Payer.cpp index c26967f04b5..93056f7bc18 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/Payer.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/Payer.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PayerMapper { - static const int Requester_HASH = HashingUtils::HashString("Requester"); - static const int BucketOwner_HASH = HashingUtils::HashString("BucketOwner"); + static constexpr uint32_t Requester_HASH = ConstExprHashingUtils::HashString("Requester"); + static constexpr uint32_t BucketOwner_HASH = ConstExprHashingUtils::HashString("BucketOwner"); Payer GetPayerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Requester_HASH) { return Payer::Requester; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/Permission.cpp index fab91d805fd..47bc45a7dfe 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/Permission.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PermissionMapper { - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); - static const int WRITE_ACP_HASH = HashingUtils::HashString("WRITE_ACP"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int READ_ACP_HASH = HashingUtils::HashString("READ_ACP"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); + static constexpr uint32_t WRITE_ACP_HASH = ConstExprHashingUtils::HashString("WRITE_ACP"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t READ_ACP_HASH = ConstExprHashingUtils::HashString("READ_ACP"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_CONTROL_HASH) { return Permission::FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/Protocol.cpp index 0b6f069455b..728c67831e9 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/Protocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int https_HASH = HashingUtils::HashString("https"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t https_HASH = ConstExprHashingUtils::HashString("https"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return Protocol::http; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/QuoteFields.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/QuoteFields.cpp index b1b6ffafa90..83427a3b072 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/QuoteFields.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/QuoteFields.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuoteFieldsMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int ASNEEDED_HASH = HashingUtils::HashString("ASNEEDED"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t ASNEEDED_HASH = ConstExprHashingUtils::HashString("ASNEEDED"); QuoteFields GetQuoteFieldsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return QuoteFields::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicaModificationsStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicaModificationsStatus.cpp index fe34f8cf8b0..b857f382933 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicaModificationsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicaModificationsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicaModificationsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicaModificationsStatus GetReplicaModificationsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicaModificationsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationRuleStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationRuleStatus.cpp index d8480377297..cbb8cb063a4 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationRuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationRuleStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicationRuleStatus GetReplicationRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicationRuleStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationStatus.cpp index b7629b7dac2..2bc489e2d69 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReplicationStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REPLICA_HASH = HashingUtils::HashString("REPLICA"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REPLICA_HASH = ConstExprHashingUtils::HashString("REPLICA"); ReplicationStatus GetReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return ReplicationStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationTimeStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationTimeStatus.cpp index 507f54df48a..9548d65f8c2 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationTimeStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ReplicationTimeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationTimeStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicationTimeStatus GetReplicationTimeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicationTimeStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestCharged.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestCharged.cpp index 1e80130931d..aea0d039071 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestCharged.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestCharged.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RequestChargedMapper { - static const int requester_HASH = HashingUtils::HashString("requester"); + static constexpr uint32_t requester_HASH = ConstExprHashingUtils::HashString("requester"); RequestCharged GetRequestChargedForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requester_HASH) { return RequestCharged::requester; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestPayer.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestPayer.cpp index 408d55d614f..54a5985885a 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestPayer.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/RequestPayer.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RequestPayerMapper { - static const int requester_HASH = HashingUtils::HashString("requester"); + static constexpr uint32_t requester_HASH = ConstExprHashingUtils::HashString("requester"); RequestPayer GetRequestPayerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requester_HASH) { return RequestPayer::requester; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/RestoreRequestType.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/RestoreRequestType.cpp index 0482cb199d1..29657d095d5 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/RestoreRequestType.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/RestoreRequestType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RestoreRequestTypeMapper { - static const int SELECT_HASH = HashingUtils::HashString("SELECT"); + static constexpr uint32_t SELECT_HASH = ConstExprHashingUtils::HashString("SELECT"); RestoreRequestType GetRestoreRequestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELECT_HASH) { return RestoreRequestType::SELECT; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp index df2a87700ba..e08b614495c 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/SelectObjectContentHandler.cpp @@ -215,15 +215,15 @@ namespace Model namespace SelectObjectContentEventMapper { - static const int RECORDS_HASH = Aws::Utils::HashingUtils::HashString("Records"); - static const int STATS_HASH = Aws::Utils::HashingUtils::HashString("Stats"); - static const int PROGRESS_HASH = Aws::Utils::HashingUtils::HashString("Progress"); - static const int CONT_HASH = Aws::Utils::HashingUtils::HashString("Cont"); - static const int END_HASH = Aws::Utils::HashingUtils::HashString("End"); + static constexpr uint32_t RECORDS_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Records"); + static constexpr uint32_t STATS_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Stats"); + static constexpr uint32_t PROGRESS_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Progress"); + static constexpr uint32_t CONT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Cont"); + static constexpr uint32_t END_HASH = Aws::Utils::ConstExprHashingUtils::HashString("End"); SelectObjectContentEventType GetSelectObjectContentEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == RECORDS_HASH) { return SelectObjectContentEventType::RECORDS; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/ServerSideEncryption.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/ServerSideEncryption.cpp index f92394f04b7..f8e0df2df2a 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/ServerSideEncryption.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/ServerSideEncryption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServerSideEncryptionMapper { - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int aws_kms_HASH = HashingUtils::HashString("aws:kms"); - static const int aws_kms_dsse_HASH = HashingUtils::HashString("aws:kms:dsse"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t aws_kms_HASH = ConstExprHashingUtils::HashString("aws:kms"); + static constexpr uint32_t aws_kms_dsse_HASH = ConstExprHashingUtils::HashString("aws:kms:dsse"); ServerSideEncryption GetServerSideEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES256_HASH) { return ServerSideEncryption::AES256; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/SseKmsEncryptedObjectsStatus.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/SseKmsEncryptedObjectsStatus.cpp index e8b7ce33eb6..f4df7a75d7a 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/SseKmsEncryptedObjectsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/SseKmsEncryptedObjectsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SseKmsEncryptedObjectsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); SseKmsEncryptedObjectsStatus GetSseKmsEncryptedObjectsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return SseKmsEncryptedObjectsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClass.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClass.cpp index 920669b0f73..9110b04deb3 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClass.cpp @@ -20,21 +20,21 @@ namespace Aws namespace StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); - static const int SNOW_HASH = HashingUtils::HashString("SNOW"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t SNOW_HASH = ConstExprHashingUtils::HashString("SNOW"); StorageClass GetStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClassAnalysisSchemaVersion.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClassAnalysisSchemaVersion.cpp index 61f17ef0182..3e44b6d25bf 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClassAnalysisSchemaVersion.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/StorageClassAnalysisSchemaVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StorageClassAnalysisSchemaVersionMapper { - static const int V_1_HASH = HashingUtils::HashString("V_1"); + static constexpr uint32_t V_1_HASH = ConstExprHashingUtils::HashString("V_1"); StorageClassAnalysisSchemaVersion GetStorageClassAnalysisSchemaVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V_1_HASH) { return StorageClassAnalysisSchemaVersion::V_1; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/TaggingDirective.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/TaggingDirective.cpp index 41a214dd2a8..aebe91c9460 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/TaggingDirective.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/TaggingDirective.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TaggingDirectiveMapper { - static const int COPY_HASH = HashingUtils::HashString("COPY"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t COPY_HASH = ConstExprHashingUtils::HashString("COPY"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); TaggingDirective GetTaggingDirectiveForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPY_HASH) { return TaggingDirective::COPY; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/Tier.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/Tier.cpp index 7e858074e2c..818d6ebce4a 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/Tier.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/Tier.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TierMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Bulk_HASH = HashingUtils::HashString("Bulk"); - static const int Expedited_HASH = HashingUtils::HashString("Expedited"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Bulk_HASH = ConstExprHashingUtils::HashString("Bulk"); + static constexpr uint32_t Expedited_HASH = ConstExprHashingUtils::HashString("Expedited"); Tier GetTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return Tier::Standard; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/TransitionStorageClass.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/TransitionStorageClass.cpp index 80d7bf26b87..e80fa9038c4 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/TransitionStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/TransitionStorageClass.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TransitionStorageClassMapper { - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); TransitionStorageClass GetTransitionStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GLACIER_HASH) { return TransitionStorageClass::GLACIER; diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/model/Type.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/model/Type.cpp index fee6109af03..b9fd6e0d1dc 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/model/Type.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TypeMapper { - static const int CanonicalUser_HASH = HashingUtils::HashString("CanonicalUser"); - static const int AmazonCustomerByEmail_HASH = HashingUtils::HashString("AmazonCustomerByEmail"); - static const int Group_HASH = HashingUtils::HashString("Group"); + static constexpr uint32_t CanonicalUser_HASH = ConstExprHashingUtils::HashString("CanonicalUser"); + static constexpr uint32_t AmazonCustomerByEmail_HASH = ConstExprHashingUtils::HashString("AmazonCustomerByEmail"); + static constexpr uint32_t Group_HASH = ConstExprHashingUtils::HashString("Group"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CanonicalUser_HASH) { return Type::CanonicalUser; diff --git a/generated/src/aws-cpp-sdk-s3/source/S3Errors.cpp b/generated/src/aws-cpp-sdk-s3/source/S3Errors.cpp index 28c1929c011..9b9f52adb27 100644 --- a/generated/src/aws-cpp-sdk-s3/source/S3Errors.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/S3Errors.cpp @@ -26,19 +26,19 @@ template<> AWS_S3_API InvalidObjectState S3Error::GetModeledError() namespace S3ErrorMapper { -static const int NO_SUCH_UPLOAD_HASH = HashingUtils::HashString("NoSuchUpload"); -static const int BUCKET_ALREADY_OWNED_BY_YOU_HASH = HashingUtils::HashString("BucketAlreadyOwnedByYou"); -static const int OBJECT_ALREADY_IN_ACTIVE_TIER_HASH = HashingUtils::HashString("ObjectAlreadyInActiveTierError"); -static const int NO_SUCH_BUCKET_HASH = HashingUtils::HashString("NoSuchBucket"); -static const int NO_SUCH_KEY_HASH = HashingUtils::HashString("NoSuchKey"); -static const int OBJECT_NOT_IN_ACTIVE_TIER_HASH = HashingUtils::HashString("ObjectNotInActiveTierError"); -static const int BUCKET_ALREADY_EXISTS_HASH = HashingUtils::HashString("BucketAlreadyExists"); -static const int INVALID_OBJECT_STATE_HASH = HashingUtils::HashString("InvalidObjectState"); +static constexpr uint32_t NO_SUCH_UPLOAD_HASH = ConstExprHashingUtils::HashString("NoSuchUpload"); +static constexpr uint32_t BUCKET_ALREADY_OWNED_BY_YOU_HASH = ConstExprHashingUtils::HashString("BucketAlreadyOwnedByYou"); +static constexpr uint32_t OBJECT_ALREADY_IN_ACTIVE_TIER_HASH = ConstExprHashingUtils::HashString("ObjectAlreadyInActiveTierError"); +static constexpr uint32_t NO_SUCH_BUCKET_HASH = ConstExprHashingUtils::HashString("NoSuchBucket"); +static constexpr uint32_t NO_SUCH_KEY_HASH = ConstExprHashingUtils::HashString("NoSuchKey"); +static constexpr uint32_t OBJECT_NOT_IN_ACTIVE_TIER_HASH = ConstExprHashingUtils::HashString("ObjectNotInActiveTierError"); +static constexpr uint32_t BUCKET_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("BucketAlreadyExists"); +static constexpr uint32_t INVALID_OBJECT_STATE_HASH = ConstExprHashingUtils::HashString("InvalidObjectState"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NO_SUCH_UPLOAD_HASH) { diff --git a/generated/src/aws-cpp-sdk-s3/source/model/AnalyticsS3ExportFileFormat.cpp b/generated/src/aws-cpp-sdk-s3/source/model/AnalyticsS3ExportFileFormat.cpp index 1af88eaeb2d..8171b8c2f6b 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/AnalyticsS3ExportFileFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/AnalyticsS3ExportFileFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AnalyticsS3ExportFileFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); AnalyticsS3ExportFileFormat GetAnalyticsS3ExportFileFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return AnalyticsS3ExportFileFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ArchiveStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ArchiveStatus.cpp index 4428ed79746..73ad26acd7e 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ArchiveStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ArchiveStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ArchiveStatusMapper { - static const int ARCHIVE_ACCESS_HASH = HashingUtils::HashString("ARCHIVE_ACCESS"); - static const int DEEP_ARCHIVE_ACCESS_HASH = HashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); + static constexpr uint32_t ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("ARCHIVE_ACCESS"); + static constexpr uint32_t DEEP_ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); ArchiveStatus GetArchiveStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVE_ACCESS_HASH) { return ArchiveStatus::ARCHIVE_ACCESS; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/BucketAccelerateStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/BucketAccelerateStatus.cpp index 2aa1bc5c7c0..d14cad922cd 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/BucketAccelerateStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/BucketAccelerateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BucketAccelerateStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); BucketAccelerateStatus GetBucketAccelerateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return BucketAccelerateStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/BucketCannedACL.cpp b/generated/src/aws-cpp-sdk-s3/source/model/BucketCannedACL.cpp index 27a07bc7d30..011b3a79cdc 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/BucketCannedACL.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/BucketCannedACL.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BucketCannedACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); BucketCannedACL GetBucketCannedACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return BucketCannedACL::private_; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp b/generated/src/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp index 9fef6429736..a76011c7a9b 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/BucketLocationConstraint.cpp @@ -20,41 +20,41 @@ namespace Aws namespace BucketLocationConstraintMapper { - static const int af_south_1_HASH = HashingUtils::HashString("af-south-1"); - static const int ap_east_1_HASH = HashingUtils::HashString("ap-east-1"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int ap_northeast_2_HASH = HashingUtils::HashString("ap-northeast-2"); - static const int ap_northeast_3_HASH = HashingUtils::HashString("ap-northeast-3"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_southeast_3_HASH = HashingUtils::HashString("ap-southeast-3"); - static const int ca_central_1_HASH = HashingUtils::HashString("ca-central-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int cn_northwest_1_HASH = HashingUtils::HashString("cn-northwest-1"); - static const int EU_HASH = HashingUtils::HashString("EU"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); - static const int eu_north_1_HASH = HashingUtils::HashString("eu-north-1"); - static const int eu_south_1_HASH = HashingUtils::HashString("eu-south-1"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int eu_west_2_HASH = HashingUtils::HashString("eu-west-2"); - static const int eu_west_3_HASH = HashingUtils::HashString("eu-west-3"); - static const int me_south_1_HASH = HashingUtils::HashString("me-south-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int us_east_2_HASH = HashingUtils::HashString("us-east-2"); - static const int us_gov_east_1_HASH = HashingUtils::HashString("us-gov-east-1"); - static const int us_gov_west_1_HASH = HashingUtils::HashString("us-gov-west-1"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_south_2_HASH = HashingUtils::HashString("ap-south-2"); - static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); - static const int us_iso_west_1_HASH = HashingUtils::HashString("us-iso-west-1"); - static const int us_east_1_HASH = HashingUtils::HashString("us-east-1"); + static constexpr uint32_t af_south_1_HASH = ConstExprHashingUtils::HashString("af-south-1"); + static constexpr uint32_t ap_east_1_HASH = ConstExprHashingUtils::HashString("ap-east-1"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t ap_northeast_2_HASH = ConstExprHashingUtils::HashString("ap-northeast-2"); + static constexpr uint32_t ap_northeast_3_HASH = ConstExprHashingUtils::HashString("ap-northeast-3"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_southeast_3_HASH = ConstExprHashingUtils::HashString("ap-southeast-3"); + static constexpr uint32_t ca_central_1_HASH = ConstExprHashingUtils::HashString("ca-central-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t cn_northwest_1_HASH = ConstExprHashingUtils::HashString("cn-northwest-1"); + static constexpr uint32_t EU_HASH = ConstExprHashingUtils::HashString("EU"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); + static constexpr uint32_t eu_north_1_HASH = ConstExprHashingUtils::HashString("eu-north-1"); + static constexpr uint32_t eu_south_1_HASH = ConstExprHashingUtils::HashString("eu-south-1"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t eu_west_2_HASH = ConstExprHashingUtils::HashString("eu-west-2"); + static constexpr uint32_t eu_west_3_HASH = ConstExprHashingUtils::HashString("eu-west-3"); + static constexpr uint32_t me_south_1_HASH = ConstExprHashingUtils::HashString("me-south-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t us_east_2_HASH = ConstExprHashingUtils::HashString("us-east-2"); + static constexpr uint32_t us_gov_east_1_HASH = ConstExprHashingUtils::HashString("us-gov-east-1"); + static constexpr uint32_t us_gov_west_1_HASH = ConstExprHashingUtils::HashString("us-gov-west-1"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_south_2_HASH = ConstExprHashingUtils::HashString("ap-south-2"); + static constexpr uint32_t eu_south_2_HASH = ConstExprHashingUtils::HashString("eu-south-2"); + static constexpr uint32_t us_iso_west_1_HASH = ConstExprHashingUtils::HashString("us-iso-west-1"); + static constexpr uint32_t us_east_1_HASH = ConstExprHashingUtils::HashString("us-east-1"); BucketLocationConstraint GetBucketLocationConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == af_south_1_HASH) { return BucketLocationConstraint::af_south_1; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/BucketLogsPermission.cpp b/generated/src/aws-cpp-sdk-s3/source/model/BucketLogsPermission.cpp index 9d833e78bda..3e9599ca7dd 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/BucketLogsPermission.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/BucketLogsPermission.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BucketLogsPermissionMapper { - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); BucketLogsPermission GetBucketLogsPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_CONTROL_HASH) { return BucketLogsPermission::FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/BucketVersioningStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/BucketVersioningStatus.cpp index 4d13fad5109..19a751d97b2 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/BucketVersioningStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/BucketVersioningStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BucketVersioningStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); BucketVersioningStatus GetBucketVersioningStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return BucketVersioningStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ChecksumAlgorithm.cpp index b1c02d8d2c6..f5a16bf3cb0 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ChecksumAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ChecksumAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ChecksumAlgorithmMapper { - static const int CRC32_HASH = HashingUtils::HashString("CRC32"); - static const int CRC32C_HASH = HashingUtils::HashString("CRC32C"); - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); + static constexpr uint32_t CRC32_HASH = ConstExprHashingUtils::HashString("CRC32"); + static constexpr uint32_t CRC32C_HASH = ConstExprHashingUtils::HashString("CRC32C"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); ChecksumAlgorithm GetChecksumAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRC32_HASH) { return ChecksumAlgorithm::CRC32; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ChecksumMode.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ChecksumMode.cpp index fd0c380dff5..fae9b82f5fa 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ChecksumMode.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ChecksumMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ChecksumModeMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); ChecksumMode GetChecksumModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ChecksumMode::ENABLED; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/CompressionType.cpp b/generated/src/aws-cpp-sdk-s3/source/model/CompressionType.cpp index 6be3dfa8ac6..6f995d58dca 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/CompressionType.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/CompressionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CompressionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int BZIP2_HASH = HashingUtils::HashString("BZIP2"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t BZIP2_HASH = ConstExprHashingUtils::HashString("BZIP2"); CompressionType GetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return CompressionType::NONE; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/DeleteMarkerReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/DeleteMarkerReplicationStatus.cpp index c3af0a738f6..24878260655 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/DeleteMarkerReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/DeleteMarkerReplicationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeleteMarkerReplicationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); DeleteMarkerReplicationStatus GetDeleteMarkerReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return DeleteMarkerReplicationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/EncodingType.cpp b/generated/src/aws-cpp-sdk-s3/source/model/EncodingType.cpp index 30b313eadd5..300e07947ab 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/EncodingType.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/EncodingType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncodingTypeMapper { - static const int url_HASH = HashingUtils::HashString("url"); + static constexpr uint32_t url_HASH = ConstExprHashingUtils::HashString("url"); EncodingType GetEncodingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == url_HASH) { return EncodingType::url; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/Event.cpp b/generated/src/aws-cpp-sdk-s3/source/model/Event.cpp index 96f94ba7afd..fc98844f29f 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/Event.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/Event.cpp @@ -20,38 +20,38 @@ namespace Aws namespace EventMapper { - static const int s3_ReducedRedundancyLostObject_HASH = HashingUtils::HashString("s3:ReducedRedundancyLostObject"); - static const int s3_ObjectCreated_HASH = HashingUtils::HashString("s3:ObjectCreated:*"); - static const int s3_ObjectCreated_Put_HASH = HashingUtils::HashString("s3:ObjectCreated:Put"); - static const int s3_ObjectCreated_Post_HASH = HashingUtils::HashString("s3:ObjectCreated:Post"); - static const int s3_ObjectCreated_Copy_HASH = HashingUtils::HashString("s3:ObjectCreated:Copy"); - static const int s3_ObjectCreated_CompleteMultipartUpload_HASH = HashingUtils::HashString("s3:ObjectCreated:CompleteMultipartUpload"); - static const int s3_ObjectRemoved_HASH = HashingUtils::HashString("s3:ObjectRemoved:*"); - static const int s3_ObjectRemoved_Delete_HASH = HashingUtils::HashString("s3:ObjectRemoved:Delete"); - static const int s3_ObjectRemoved_DeleteMarkerCreated_HASH = HashingUtils::HashString("s3:ObjectRemoved:DeleteMarkerCreated"); - static const int s3_ObjectRestore_HASH = HashingUtils::HashString("s3:ObjectRestore:*"); - static const int s3_ObjectRestore_Post_HASH = HashingUtils::HashString("s3:ObjectRestore:Post"); - static const int s3_ObjectRestore_Completed_HASH = HashingUtils::HashString("s3:ObjectRestore:Completed"); - static const int s3_Replication_HASH = HashingUtils::HashString("s3:Replication:*"); - static const int s3_Replication_OperationFailedReplication_HASH = HashingUtils::HashString("s3:Replication:OperationFailedReplication"); - static const int s3_Replication_OperationNotTracked_HASH = HashingUtils::HashString("s3:Replication:OperationNotTracked"); - static const int s3_Replication_OperationMissedThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationMissedThreshold"); - static const int s3_Replication_OperationReplicatedAfterThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationReplicatedAfterThreshold"); - static const int s3_ObjectRestore_Delete_HASH = HashingUtils::HashString("s3:ObjectRestore:Delete"); - static const int s3_LifecycleTransition_HASH = HashingUtils::HashString("s3:LifecycleTransition"); - static const int s3_IntelligentTiering_HASH = HashingUtils::HashString("s3:IntelligentTiering"); - static const int s3_ObjectAcl_Put_HASH = HashingUtils::HashString("s3:ObjectAcl:Put"); - static const int s3_LifecycleExpiration_HASH = HashingUtils::HashString("s3:LifecycleExpiration:*"); - static const int s3_LifecycleExpiration_Delete_HASH = HashingUtils::HashString("s3:LifecycleExpiration:Delete"); - static const int s3_LifecycleExpiration_DeleteMarkerCreated_HASH = HashingUtils::HashString("s3:LifecycleExpiration:DeleteMarkerCreated"); - static const int s3_ObjectTagging_HASH = HashingUtils::HashString("s3:ObjectTagging:*"); - static const int s3_ObjectTagging_Put_HASH = HashingUtils::HashString("s3:ObjectTagging:Put"); - static const int s3_ObjectTagging_Delete_HASH = HashingUtils::HashString("s3:ObjectTagging:Delete"); + static constexpr uint32_t s3_ReducedRedundancyLostObject_HASH = ConstExprHashingUtils::HashString("s3:ReducedRedundancyLostObject"); + static constexpr uint32_t s3_ObjectCreated_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:*"); + static constexpr uint32_t s3_ObjectCreated_Put_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:Put"); + static constexpr uint32_t s3_ObjectCreated_Post_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:Post"); + static constexpr uint32_t s3_ObjectCreated_Copy_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:Copy"); + static constexpr uint32_t s3_ObjectCreated_CompleteMultipartUpload_HASH = ConstExprHashingUtils::HashString("s3:ObjectCreated:CompleteMultipartUpload"); + static constexpr uint32_t s3_ObjectRemoved_HASH = ConstExprHashingUtils::HashString("s3:ObjectRemoved:*"); + static constexpr uint32_t s3_ObjectRemoved_Delete_HASH = ConstExprHashingUtils::HashString("s3:ObjectRemoved:Delete"); + static constexpr uint32_t s3_ObjectRemoved_DeleteMarkerCreated_HASH = ConstExprHashingUtils::HashString("s3:ObjectRemoved:DeleteMarkerCreated"); + static constexpr uint32_t s3_ObjectRestore_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:*"); + static constexpr uint32_t s3_ObjectRestore_Post_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:Post"); + static constexpr uint32_t s3_ObjectRestore_Completed_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:Completed"); + static constexpr uint32_t s3_Replication_HASH = ConstExprHashingUtils::HashString("s3:Replication:*"); + static constexpr uint32_t s3_Replication_OperationFailedReplication_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationFailedReplication"); + static constexpr uint32_t s3_Replication_OperationNotTracked_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationNotTracked"); + static constexpr uint32_t s3_Replication_OperationMissedThreshold_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationMissedThreshold"); + static constexpr uint32_t s3_Replication_OperationReplicatedAfterThreshold_HASH = ConstExprHashingUtils::HashString("s3:Replication:OperationReplicatedAfterThreshold"); + static constexpr uint32_t s3_ObjectRestore_Delete_HASH = ConstExprHashingUtils::HashString("s3:ObjectRestore:Delete"); + static constexpr uint32_t s3_LifecycleTransition_HASH = ConstExprHashingUtils::HashString("s3:LifecycleTransition"); + static constexpr uint32_t s3_IntelligentTiering_HASH = ConstExprHashingUtils::HashString("s3:IntelligentTiering"); + static constexpr uint32_t s3_ObjectAcl_Put_HASH = ConstExprHashingUtils::HashString("s3:ObjectAcl:Put"); + static constexpr uint32_t s3_LifecycleExpiration_HASH = ConstExprHashingUtils::HashString("s3:LifecycleExpiration:*"); + static constexpr uint32_t s3_LifecycleExpiration_Delete_HASH = ConstExprHashingUtils::HashString("s3:LifecycleExpiration:Delete"); + static constexpr uint32_t s3_LifecycleExpiration_DeleteMarkerCreated_HASH = ConstExprHashingUtils::HashString("s3:LifecycleExpiration:DeleteMarkerCreated"); + static constexpr uint32_t s3_ObjectTagging_HASH = ConstExprHashingUtils::HashString("s3:ObjectTagging:*"); + static constexpr uint32_t s3_ObjectTagging_Put_HASH = ConstExprHashingUtils::HashString("s3:ObjectTagging:Put"); + static constexpr uint32_t s3_ObjectTagging_Delete_HASH = ConstExprHashingUtils::HashString("s3:ObjectTagging:Delete"); Event GetEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == s3_ReducedRedundancyLostObject_HASH) { return Event::s3_ReducedRedundancyLostObject; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ExistingObjectReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ExistingObjectReplicationStatus.cpp index cbb111bd5ff..0dd874b5df7 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ExistingObjectReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ExistingObjectReplicationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExistingObjectReplicationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExistingObjectReplicationStatus GetExistingObjectReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExistingObjectReplicationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ExpirationStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ExpirationStatus.cpp index 5b4e8a39236..5021632889f 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ExpirationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ExpirationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpirationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExpirationStatus GetExpirationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExpirationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ExpressionType.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ExpressionType.cpp index bac0c2076d0..d73d62bcfcf 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ExpressionType.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ExpressionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ExpressionTypeMapper { - static const int SQL_HASH = HashingUtils::HashString("SQL"); + static constexpr uint32_t SQL_HASH = ConstExprHashingUtils::HashString("SQL"); ExpressionType GetExpressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SQL_HASH) { return ExpressionType::SQL; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/FileHeaderInfo.cpp b/generated/src/aws-cpp-sdk-s3/source/model/FileHeaderInfo.cpp index 525ae1aff84..b721b064984 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/FileHeaderInfo.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/FileHeaderInfo.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FileHeaderInfoMapper { - static const int USE_HASH = HashingUtils::HashString("USE"); - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t USE_HASH = ConstExprHashingUtils::HashString("USE"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); FileHeaderInfo GetFileHeaderInfoForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_HASH) { return FileHeaderInfo::USE; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/FilterRuleName.cpp b/generated/src/aws-cpp-sdk-s3/source/model/FilterRuleName.cpp index ae7f32692b8..1011820b187 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/FilterRuleName.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/FilterRuleName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterRuleNameMapper { - static const int prefix_HASH = HashingUtils::HashString("prefix"); - static const int suffix_HASH = HashingUtils::HashString("suffix"); + static constexpr uint32_t prefix_HASH = ConstExprHashingUtils::HashString("prefix"); + static constexpr uint32_t suffix_HASH = ConstExprHashingUtils::HashString("suffix"); FilterRuleName GetFilterRuleNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == prefix_HASH) { return FilterRuleName::prefix; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringAccessTier.cpp b/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringAccessTier.cpp index 072bce220d0..2387f36ce06 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringAccessTier.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringAccessTier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntelligentTieringAccessTierMapper { - static const int ARCHIVE_ACCESS_HASH = HashingUtils::HashString("ARCHIVE_ACCESS"); - static const int DEEP_ARCHIVE_ACCESS_HASH = HashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); + static constexpr uint32_t ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("ARCHIVE_ACCESS"); + static constexpr uint32_t DEEP_ARCHIVE_ACCESS_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE_ACCESS"); IntelligentTieringAccessTier GetIntelligentTieringAccessTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCHIVE_ACCESS_HASH) { return IntelligentTieringAccessTier::ARCHIVE_ACCESS; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringStatus.cpp index 157e3c25d11..19ecc3ff71f 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/IntelligentTieringStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IntelligentTieringStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); IntelligentTieringStatus GetIntelligentTieringStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return IntelligentTieringStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/InventoryFormat.cpp b/generated/src/aws-cpp-sdk-s3/source/model/InventoryFormat.cpp index 73e029d84f9..4a2cac65bd0 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/InventoryFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/InventoryFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InventoryFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int ORC_HASH = HashingUtils::HashString("ORC"); - static const int Parquet_HASH = HashingUtils::HashString("Parquet"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t ORC_HASH = ConstExprHashingUtils::HashString("ORC"); + static constexpr uint32_t Parquet_HASH = ConstExprHashingUtils::HashString("Parquet"); InventoryFormat GetInventoryFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return InventoryFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/InventoryFrequency.cpp b/generated/src/aws-cpp-sdk-s3/source/model/InventoryFrequency.cpp index c24d9206a85..f6f92a46db6 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/InventoryFrequency.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/InventoryFrequency.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventoryFrequencyMapper { - static const int Daily_HASH = HashingUtils::HashString("Daily"); - static const int Weekly_HASH = HashingUtils::HashString("Weekly"); + static constexpr uint32_t Daily_HASH = ConstExprHashingUtils::HashString("Daily"); + static constexpr uint32_t Weekly_HASH = ConstExprHashingUtils::HashString("Weekly"); InventoryFrequency GetInventoryFrequencyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Daily_HASH) { return InventoryFrequency::Daily; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/InventoryIncludedObjectVersions.cpp b/generated/src/aws-cpp-sdk-s3/source/model/InventoryIncludedObjectVersions.cpp index 29afb019830..b268b3020a0 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/InventoryIncludedObjectVersions.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/InventoryIncludedObjectVersions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventoryIncludedObjectVersionsMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int Current_HASH = HashingUtils::HashString("Current"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t Current_HASH = ConstExprHashingUtils::HashString("Current"); InventoryIncludedObjectVersions GetInventoryIncludedObjectVersionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return InventoryIncludedObjectVersions::All; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/InventoryOptionalField.cpp b/generated/src/aws-cpp-sdk-s3/source/model/InventoryOptionalField.cpp index fc019155a5d..0de9f17b206 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/InventoryOptionalField.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/InventoryOptionalField.cpp @@ -20,26 +20,26 @@ namespace Aws namespace InventoryOptionalFieldMapper { - static const int Size_HASH = HashingUtils::HashString("Size"); - static const int LastModifiedDate_HASH = HashingUtils::HashString("LastModifiedDate"); - static const int StorageClass_HASH = HashingUtils::HashString("StorageClass"); - static const int ETag_HASH = HashingUtils::HashString("ETag"); - static const int IsMultipartUploaded_HASH = HashingUtils::HashString("IsMultipartUploaded"); - static const int ReplicationStatus_HASH = HashingUtils::HashString("ReplicationStatus"); - static const int EncryptionStatus_HASH = HashingUtils::HashString("EncryptionStatus"); - static const int ObjectLockRetainUntilDate_HASH = HashingUtils::HashString("ObjectLockRetainUntilDate"); - static const int ObjectLockMode_HASH = HashingUtils::HashString("ObjectLockMode"); - static const int ObjectLockLegalHoldStatus_HASH = HashingUtils::HashString("ObjectLockLegalHoldStatus"); - static const int IntelligentTieringAccessTier_HASH = HashingUtils::HashString("IntelligentTieringAccessTier"); - static const int BucketKeyStatus_HASH = HashingUtils::HashString("BucketKeyStatus"); - static const int ChecksumAlgorithm_HASH = HashingUtils::HashString("ChecksumAlgorithm"); - static const int ObjectAccessControlList_HASH = HashingUtils::HashString("ObjectAccessControlList"); - static const int ObjectOwner_HASH = HashingUtils::HashString("ObjectOwner"); + static constexpr uint32_t Size_HASH = ConstExprHashingUtils::HashString("Size"); + static constexpr uint32_t LastModifiedDate_HASH = ConstExprHashingUtils::HashString("LastModifiedDate"); + static constexpr uint32_t StorageClass_HASH = ConstExprHashingUtils::HashString("StorageClass"); + static constexpr uint32_t ETag_HASH = ConstExprHashingUtils::HashString("ETag"); + static constexpr uint32_t IsMultipartUploaded_HASH = ConstExprHashingUtils::HashString("IsMultipartUploaded"); + static constexpr uint32_t ReplicationStatus_HASH = ConstExprHashingUtils::HashString("ReplicationStatus"); + static constexpr uint32_t EncryptionStatus_HASH = ConstExprHashingUtils::HashString("EncryptionStatus"); + static constexpr uint32_t ObjectLockRetainUntilDate_HASH = ConstExprHashingUtils::HashString("ObjectLockRetainUntilDate"); + static constexpr uint32_t ObjectLockMode_HASH = ConstExprHashingUtils::HashString("ObjectLockMode"); + static constexpr uint32_t ObjectLockLegalHoldStatus_HASH = ConstExprHashingUtils::HashString("ObjectLockLegalHoldStatus"); + static constexpr uint32_t IntelligentTieringAccessTier_HASH = ConstExprHashingUtils::HashString("IntelligentTieringAccessTier"); + static constexpr uint32_t BucketKeyStatus_HASH = ConstExprHashingUtils::HashString("BucketKeyStatus"); + static constexpr uint32_t ChecksumAlgorithm_HASH = ConstExprHashingUtils::HashString("ChecksumAlgorithm"); + static constexpr uint32_t ObjectAccessControlList_HASH = ConstExprHashingUtils::HashString("ObjectAccessControlList"); + static constexpr uint32_t ObjectOwner_HASH = ConstExprHashingUtils::HashString("ObjectOwner"); InventoryOptionalField GetInventoryOptionalFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Size_HASH) { return InventoryOptionalField::Size; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/JSONType.cpp b/generated/src/aws-cpp-sdk-s3/source/model/JSONType.cpp index 7b055a0f925..1e9d5a20912 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/JSONType.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/JSONType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JSONTypeMapper { - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int LINES_HASH = HashingUtils::HashString("LINES"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t LINES_HASH = ConstExprHashingUtils::HashString("LINES"); JSONType GetJSONTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_HASH) { return JSONType::DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/MFADelete.cpp b/generated/src/aws-cpp-sdk-s3/source/model/MFADelete.cpp index 529d9e6b157..535e94b029e 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/MFADelete.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/MFADelete.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MFADeleteMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MFADelete GetMFADeleteForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MFADelete::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/MFADeleteStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/MFADeleteStatus.cpp index 246ab23db5b..4964dba3e7c 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/MFADeleteStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/MFADeleteStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MFADeleteStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MFADeleteStatus GetMFADeleteStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MFADeleteStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/MetadataDirective.cpp b/generated/src/aws-cpp-sdk-s3/source/model/MetadataDirective.cpp index 64547d9437a..ab3e1eff321 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/MetadataDirective.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/MetadataDirective.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetadataDirectiveMapper { - static const int COPY_HASH = HashingUtils::HashString("COPY"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t COPY_HASH = ConstExprHashingUtils::HashString("COPY"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); MetadataDirective GetMetadataDirectiveForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPY_HASH) { return MetadataDirective::COPY; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/MetricsStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/MetricsStatus.cpp index fcea4e3dc68..a0691dc0354 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/MetricsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/MetricsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MetricsStatus GetMetricsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MetricsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectAttributes.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectAttributes.cpp index 6ab6a277de4..b11ee4a0d61 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectAttributes.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectAttributes.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ObjectAttributesMapper { - static const int ETag_HASH = HashingUtils::HashString("ETag"); - static const int Checksum_HASH = HashingUtils::HashString("Checksum"); - static const int ObjectParts_HASH = HashingUtils::HashString("ObjectParts"); - static const int StorageClass_HASH = HashingUtils::HashString("StorageClass"); - static const int ObjectSize_HASH = HashingUtils::HashString("ObjectSize"); + static constexpr uint32_t ETag_HASH = ConstExprHashingUtils::HashString("ETag"); + static constexpr uint32_t Checksum_HASH = ConstExprHashingUtils::HashString("Checksum"); + static constexpr uint32_t ObjectParts_HASH = ConstExprHashingUtils::HashString("ObjectParts"); + static constexpr uint32_t StorageClass_HASH = ConstExprHashingUtils::HashString("StorageClass"); + static constexpr uint32_t ObjectSize_HASH = ConstExprHashingUtils::HashString("ObjectSize"); ObjectAttributes GetObjectAttributesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ETag_HASH) { return ObjectAttributes::ETag; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectCannedACL.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectCannedACL.cpp index 3a4a674086d..5e116ffe725 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectCannedACL.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectCannedACL.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ObjectCannedACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); ObjectCannedACL GetObjectCannedACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return ObjectCannedACL::private_; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockEnabled.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockEnabled.cpp index 44fee468a10..7c4d32d9fb5 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockEnabled.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockEnabled.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ObjectLockEnabledMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); ObjectLockEnabled GetObjectLockEnabledForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ObjectLockEnabled::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockLegalHoldStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockLegalHoldStatus.cpp index 7589ca26f45..761df4cd24f 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockLegalHoldStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockLegalHoldStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLockLegalHoldStatusMapper { - static const int ON_HASH = HashingUtils::HashString("ON"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); ObjectLockLegalHoldStatus GetObjectLockLegalHoldStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_HASH) { return ObjectLockLegalHoldStatus::ON; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockMode.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockMode.cpp index c6463648d21..cd99bd96e65 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockMode.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLockModeMapper { - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); ObjectLockMode GetObjectLockModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GOVERNANCE_HASH) { return ObjectLockMode::GOVERNANCE; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockRetentionMode.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockRetentionMode.cpp index 484e6f5dedc..b009eef0baf 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockRetentionMode.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectLockRetentionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLockRetentionModeMapper { - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); ObjectLockRetentionMode GetObjectLockRetentionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GOVERNANCE_HASH) { return ObjectLockRetentionMode::GOVERNANCE; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectOwnership.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectOwnership.cpp index dbe3bc6ac35..16ad16b86f6 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectOwnership.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectOwnership.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ObjectOwnershipMapper { - static const int BucketOwnerPreferred_HASH = HashingUtils::HashString("BucketOwnerPreferred"); - static const int ObjectWriter_HASH = HashingUtils::HashString("ObjectWriter"); - static const int BucketOwnerEnforced_HASH = HashingUtils::HashString("BucketOwnerEnforced"); + static constexpr uint32_t BucketOwnerPreferred_HASH = ConstExprHashingUtils::HashString("BucketOwnerPreferred"); + static constexpr uint32_t ObjectWriter_HASH = ConstExprHashingUtils::HashString("ObjectWriter"); + static constexpr uint32_t BucketOwnerEnforced_HASH = ConstExprHashingUtils::HashString("BucketOwnerEnforced"); ObjectOwnership GetObjectOwnershipForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BucketOwnerPreferred_HASH) { return ObjectOwnership::BucketOwnerPreferred; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectStorageClass.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectStorageClass.cpp index 71beeda10f3..510d328f3fa 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectStorageClass.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ObjectStorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); - static const int SNOW_HASH = HashingUtils::HashString("SNOW"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t SNOW_HASH = ConstExprHashingUtils::HashString("SNOW"); ObjectStorageClass GetObjectStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ObjectStorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ObjectVersionStorageClass.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ObjectVersionStorageClass.cpp index 6b1bf4ea13d..b035675fd17 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ObjectVersionStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ObjectVersionStorageClass.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ObjectVersionStorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ObjectVersionStorageClass GetObjectVersionStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ObjectVersionStorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/OptionalObjectAttributes.cpp b/generated/src/aws-cpp-sdk-s3/source/model/OptionalObjectAttributes.cpp index 84f9cb7b089..36273c84665 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/OptionalObjectAttributes.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/OptionalObjectAttributes.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OptionalObjectAttributesMapper { - static const int RestoreStatus_HASH = HashingUtils::HashString("RestoreStatus"); + static constexpr uint32_t RestoreStatus_HASH = ConstExprHashingUtils::HashString("RestoreStatus"); OptionalObjectAttributes GetOptionalObjectAttributesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RestoreStatus_HASH) { return OptionalObjectAttributes::RestoreStatus; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/OwnerOverride.cpp b/generated/src/aws-cpp-sdk-s3/source/model/OwnerOverride.cpp index 5cfaba0506f..312333cd6a1 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/OwnerOverride.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/OwnerOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OwnerOverrideMapper { - static const int Destination_HASH = HashingUtils::HashString("Destination"); + static constexpr uint32_t Destination_HASH = ConstExprHashingUtils::HashString("Destination"); OwnerOverride GetOwnerOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Destination_HASH) { return OwnerOverride::Destination; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/Payer.cpp b/generated/src/aws-cpp-sdk-s3/source/model/Payer.cpp index f1f170b1f50..1df89d91421 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/Payer.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/Payer.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PayerMapper { - static const int Requester_HASH = HashingUtils::HashString("Requester"); - static const int BucketOwner_HASH = HashingUtils::HashString("BucketOwner"); + static constexpr uint32_t Requester_HASH = ConstExprHashingUtils::HashString("Requester"); + static constexpr uint32_t BucketOwner_HASH = ConstExprHashingUtils::HashString("BucketOwner"); Payer GetPayerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Requester_HASH) { return Payer::Requester; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/Permission.cpp b/generated/src/aws-cpp-sdk-s3/source/model/Permission.cpp index 0d69f1c98c2..0e35d8a6ab9 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/Permission.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/Permission.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PermissionMapper { - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); - static const int WRITE_ACP_HASH = HashingUtils::HashString("WRITE_ACP"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int READ_ACP_HASH = HashingUtils::HashString("READ_ACP"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); + static constexpr uint32_t WRITE_ACP_HASH = ConstExprHashingUtils::HashString("WRITE_ACP"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t READ_ACP_HASH = ConstExprHashingUtils::HashString("READ_ACP"); Permission GetPermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_CONTROL_HASH) { return Permission::FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-s3/source/model/Protocol.cpp index b5a03716d4c..ba661dfc81d 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/Protocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolMapper { - static const int http_HASH = HashingUtils::HashString("http"); - static const int https_HASH = HashingUtils::HashString("https"); + static constexpr uint32_t http_HASH = ConstExprHashingUtils::HashString("http"); + static constexpr uint32_t https_HASH = ConstExprHashingUtils::HashString("https"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return Protocol::http; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/QuoteFields.cpp b/generated/src/aws-cpp-sdk-s3/source/model/QuoteFields.cpp index a532a5450ec..927445ae471 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/QuoteFields.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/QuoteFields.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuoteFieldsMapper { - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); - static const int ASNEEDED_HASH = HashingUtils::HashString("ASNEEDED"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); + static constexpr uint32_t ASNEEDED_HASH = ConstExprHashingUtils::HashString("ASNEEDED"); QuoteFields GetQuoteFieldsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALWAYS_HASH) { return QuoteFields::ALWAYS; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ReplicaModificationsStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ReplicaModificationsStatus.cpp index 7865385e50c..bc72d146058 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ReplicaModificationsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ReplicaModificationsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicaModificationsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicaModificationsStatus GetReplicaModificationsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicaModificationsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ReplicationRuleStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ReplicationRuleStatus.cpp index aec67de5663..62daa77f33c 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ReplicationRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ReplicationRuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationRuleStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicationRuleStatus GetReplicationRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicationRuleStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ReplicationStatus.cpp index 83164014250..fa43cbb10ed 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ReplicationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReplicationStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REPLICA_HASH = HashingUtils::HashString("REPLICA"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REPLICA_HASH = ConstExprHashingUtils::HashString("REPLICA"); ReplicationStatus GetReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return ReplicationStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ReplicationTimeStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ReplicationTimeStatus.cpp index 1977d3796f8..3ff7fd89f23 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ReplicationTimeStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ReplicationTimeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationTimeStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicationTimeStatus GetReplicationTimeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicationTimeStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/RequestCharged.cpp b/generated/src/aws-cpp-sdk-s3/source/model/RequestCharged.cpp index b38850ea276..138d105092b 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/RequestCharged.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/RequestCharged.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RequestChargedMapper { - static const int requester_HASH = HashingUtils::HashString("requester"); + static constexpr uint32_t requester_HASH = ConstExprHashingUtils::HashString("requester"); RequestCharged GetRequestChargedForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requester_HASH) { return RequestCharged::requester; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/RequestPayer.cpp b/generated/src/aws-cpp-sdk-s3/source/model/RequestPayer.cpp index f682343d558..57466b7f580 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/RequestPayer.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/RequestPayer.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RequestPayerMapper { - static const int requester_HASH = HashingUtils::HashString("requester"); + static constexpr uint32_t requester_HASH = ConstExprHashingUtils::HashString("requester"); RequestPayer GetRequestPayerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == requester_HASH) { return RequestPayer::requester; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/RestoreRequestType.cpp b/generated/src/aws-cpp-sdk-s3/source/model/RestoreRequestType.cpp index 03171cf4a71..316d5a29b50 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/RestoreRequestType.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/RestoreRequestType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RestoreRequestTypeMapper { - static const int SELECT_HASH = HashingUtils::HashString("SELECT"); + static constexpr uint32_t SELECT_HASH = ConstExprHashingUtils::HashString("SELECT"); RestoreRequestType GetRestoreRequestTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELECT_HASH) { return RestoreRequestType::SELECT; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp b/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp index 00969ef5212..abf9104d454 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/SelectObjectContentHandler.cpp @@ -215,15 +215,15 @@ namespace Model namespace SelectObjectContentEventMapper { - static const int RECORDS_HASH = Aws::Utils::HashingUtils::HashString("Records"); - static const int STATS_HASH = Aws::Utils::HashingUtils::HashString("Stats"); - static const int PROGRESS_HASH = Aws::Utils::HashingUtils::HashString("Progress"); - static const int CONT_HASH = Aws::Utils::HashingUtils::HashString("Cont"); - static const int END_HASH = Aws::Utils::HashingUtils::HashString("End"); + static constexpr uint32_t RECORDS_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Records"); + static constexpr uint32_t STATS_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Stats"); + static constexpr uint32_t PROGRESS_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Progress"); + static constexpr uint32_t CONT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("Cont"); + static constexpr uint32_t END_HASH = Aws::Utils::ConstExprHashingUtils::HashString("End"); SelectObjectContentEventType GetSelectObjectContentEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == RECORDS_HASH) { return SelectObjectContentEventType::RECORDS; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/ServerSideEncryption.cpp b/generated/src/aws-cpp-sdk-s3/source/model/ServerSideEncryption.cpp index fb2d950413f..2a579da7a96 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/ServerSideEncryption.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/ServerSideEncryption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServerSideEncryptionMapper { - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int aws_kms_HASH = HashingUtils::HashString("aws:kms"); - static const int aws_kms_dsse_HASH = HashingUtils::HashString("aws:kms:dsse"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t aws_kms_HASH = ConstExprHashingUtils::HashString("aws:kms"); + static constexpr uint32_t aws_kms_dsse_HASH = ConstExprHashingUtils::HashString("aws:kms:dsse"); ServerSideEncryption GetServerSideEncryptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES256_HASH) { return ServerSideEncryption::AES256; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/SseKmsEncryptedObjectsStatus.cpp b/generated/src/aws-cpp-sdk-s3/source/model/SseKmsEncryptedObjectsStatus.cpp index 41c19917692..ae9977d076e 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/SseKmsEncryptedObjectsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/SseKmsEncryptedObjectsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SseKmsEncryptedObjectsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); SseKmsEncryptedObjectsStatus GetSseKmsEncryptedObjectsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return SseKmsEncryptedObjectsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/StorageClass.cpp b/generated/src/aws-cpp-sdk-s3/source/model/StorageClass.cpp index 04336649469..b16fe73db3c 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/StorageClass.cpp @@ -20,21 +20,21 @@ namespace Aws namespace StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); - static const int SNOW_HASH = HashingUtils::HashString("SNOW"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t SNOW_HASH = ConstExprHashingUtils::HashString("SNOW"); StorageClass GetStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/StorageClassAnalysisSchemaVersion.cpp b/generated/src/aws-cpp-sdk-s3/source/model/StorageClassAnalysisSchemaVersion.cpp index 6bea2b314ce..44e5b7716b2 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/StorageClassAnalysisSchemaVersion.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/StorageClassAnalysisSchemaVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StorageClassAnalysisSchemaVersionMapper { - static const int V_1_HASH = HashingUtils::HashString("V_1"); + static constexpr uint32_t V_1_HASH = ConstExprHashingUtils::HashString("V_1"); StorageClassAnalysisSchemaVersion GetStorageClassAnalysisSchemaVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V_1_HASH) { return StorageClassAnalysisSchemaVersion::V_1; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/TaggingDirective.cpp b/generated/src/aws-cpp-sdk-s3/source/model/TaggingDirective.cpp index e52487f851a..a775ec4044c 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/TaggingDirective.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/TaggingDirective.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TaggingDirectiveMapper { - static const int COPY_HASH = HashingUtils::HashString("COPY"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t COPY_HASH = ConstExprHashingUtils::HashString("COPY"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); TaggingDirective GetTaggingDirectiveForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPY_HASH) { return TaggingDirective::COPY; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/Tier.cpp b/generated/src/aws-cpp-sdk-s3/source/model/Tier.cpp index 3f35f93fded..7c3c716418b 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/Tier.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/Tier.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TierMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Bulk_HASH = HashingUtils::HashString("Bulk"); - static const int Expedited_HASH = HashingUtils::HashString("Expedited"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Bulk_HASH = ConstExprHashingUtils::HashString("Bulk"); + static constexpr uint32_t Expedited_HASH = ConstExprHashingUtils::HashString("Expedited"); Tier GetTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return Tier::Standard; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/TransitionStorageClass.cpp b/generated/src/aws-cpp-sdk-s3/source/model/TransitionStorageClass.cpp index 7acbd51c5db..ba190da500b 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/TransitionStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/TransitionStorageClass.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TransitionStorageClassMapper { - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); TransitionStorageClass GetTransitionStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GLACIER_HASH) { return TransitionStorageClass::GLACIER; diff --git a/generated/src/aws-cpp-sdk-s3/source/model/Type.cpp b/generated/src/aws-cpp-sdk-s3/source/model/Type.cpp index 122dcb76912..93b2685e21d 100644 --- a/generated/src/aws-cpp-sdk-s3/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/model/Type.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TypeMapper { - static const int CanonicalUser_HASH = HashingUtils::HashString("CanonicalUser"); - static const int AmazonCustomerByEmail_HASH = HashingUtils::HashString("AmazonCustomerByEmail"); - static const int Group_HASH = HashingUtils::HashString("Group"); + static constexpr uint32_t CanonicalUser_HASH = ConstExprHashingUtils::HashString("CanonicalUser"); + static constexpr uint32_t AmazonCustomerByEmail_HASH = ConstExprHashingUtils::HashString("AmazonCustomerByEmail"); + static constexpr uint32_t Group_HASH = ConstExprHashingUtils::HashString("Group"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CanonicalUser_HASH) { return Type::CanonicalUser; diff --git a/generated/src/aws-cpp-sdk-s3control/source/S3ControlErrors.cpp b/generated/src/aws-cpp-sdk-s3control/source/S3ControlErrors.cpp index ef4a2fde2ec..7596e83366f 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/S3ControlErrors.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/S3ControlErrors.cpp @@ -18,23 +18,23 @@ namespace S3Control namespace S3ControlErrorMapper { -static const int IDEMPOTENCY_HASH = HashingUtils::HashString("IdempotencyException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int BUCKET_ALREADY_OWNED_BY_YOU_HASH = HashingUtils::HashString("BucketAlreadyOwnedByYou"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int NO_SUCH_PUBLIC_ACCESS_BLOCK_CONFIGURATION_HASH = HashingUtils::HashString("NoSuchPublicAccessBlockConfiguration"); -static const int JOB_STATUS_HASH = HashingUtils::HashString("JobStatusException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int BUCKET_ALREADY_EXISTS_HASH = HashingUtils::HashString("BucketAlreadyExists"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t IDEMPOTENCY_HASH = ConstExprHashingUtils::HashString("IdempotencyException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t BUCKET_ALREADY_OWNED_BY_YOU_HASH = ConstExprHashingUtils::HashString("BucketAlreadyOwnedByYou"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t NO_SUCH_PUBLIC_ACCESS_BLOCK_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("NoSuchPublicAccessBlockConfiguration"); +static constexpr uint32_t JOB_STATUS_HASH = ConstExprHashingUtils::HashString("JobStatusException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t BUCKET_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("BucketAlreadyExists"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == IDEMPOTENCY_HASH) { diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/AsyncOperationName.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/AsyncOperationName.cpp index a078eb3ed37..4f06f871ba6 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/AsyncOperationName.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/AsyncOperationName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AsyncOperationNameMapper { - static const int CreateMultiRegionAccessPoint_HASH = HashingUtils::HashString("CreateMultiRegionAccessPoint"); - static const int DeleteMultiRegionAccessPoint_HASH = HashingUtils::HashString("DeleteMultiRegionAccessPoint"); - static const int PutMultiRegionAccessPointPolicy_HASH = HashingUtils::HashString("PutMultiRegionAccessPointPolicy"); + static constexpr uint32_t CreateMultiRegionAccessPoint_HASH = ConstExprHashingUtils::HashString("CreateMultiRegionAccessPoint"); + static constexpr uint32_t DeleteMultiRegionAccessPoint_HASH = ConstExprHashingUtils::HashString("DeleteMultiRegionAccessPoint"); + static constexpr uint32_t PutMultiRegionAccessPointPolicy_HASH = ConstExprHashingUtils::HashString("PutMultiRegionAccessPointPolicy"); AsyncOperationName GetAsyncOperationNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreateMultiRegionAccessPoint_HASH) { return AsyncOperationName::CreateMultiRegionAccessPoint; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/BucketCannedACL.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/BucketCannedACL.cpp index 0650cd60818..4072e30c365 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/BucketCannedACL.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/BucketCannedACL.cpp @@ -20,15 +20,15 @@ namespace Aws namespace BucketCannedACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); BucketCannedACL GetBucketCannedACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return BucketCannedACL::private_; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/BucketLocationConstraint.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/BucketLocationConstraint.cpp index 3909fac540d..7eddfc2f8d7 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/BucketLocationConstraint.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/BucketLocationConstraint.cpp @@ -20,22 +20,22 @@ namespace Aws namespace BucketLocationConstraintMapper { - static const int EU_HASH = HashingUtils::HashString("EU"); - static const int eu_west_1_HASH = HashingUtils::HashString("eu-west-1"); - static const int us_west_1_HASH = HashingUtils::HashString("us-west-1"); - static const int us_west_2_HASH = HashingUtils::HashString("us-west-2"); - static const int ap_south_1_HASH = HashingUtils::HashString("ap-south-1"); - static const int ap_southeast_1_HASH = HashingUtils::HashString("ap-southeast-1"); - static const int ap_southeast_2_HASH = HashingUtils::HashString("ap-southeast-2"); - static const int ap_northeast_1_HASH = HashingUtils::HashString("ap-northeast-1"); - static const int sa_east_1_HASH = HashingUtils::HashString("sa-east-1"); - static const int cn_north_1_HASH = HashingUtils::HashString("cn-north-1"); - static const int eu_central_1_HASH = HashingUtils::HashString("eu-central-1"); + static constexpr uint32_t EU_HASH = ConstExprHashingUtils::HashString("EU"); + static constexpr uint32_t eu_west_1_HASH = ConstExprHashingUtils::HashString("eu-west-1"); + static constexpr uint32_t us_west_1_HASH = ConstExprHashingUtils::HashString("us-west-1"); + static constexpr uint32_t us_west_2_HASH = ConstExprHashingUtils::HashString("us-west-2"); + static constexpr uint32_t ap_south_1_HASH = ConstExprHashingUtils::HashString("ap-south-1"); + static constexpr uint32_t ap_southeast_1_HASH = ConstExprHashingUtils::HashString("ap-southeast-1"); + static constexpr uint32_t ap_southeast_2_HASH = ConstExprHashingUtils::HashString("ap-southeast-2"); + static constexpr uint32_t ap_northeast_1_HASH = ConstExprHashingUtils::HashString("ap-northeast-1"); + static constexpr uint32_t sa_east_1_HASH = ConstExprHashingUtils::HashString("sa-east-1"); + static constexpr uint32_t cn_north_1_HASH = ConstExprHashingUtils::HashString("cn-north-1"); + static constexpr uint32_t eu_central_1_HASH = ConstExprHashingUtils::HashString("eu-central-1"); BucketLocationConstraint GetBucketLocationConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EU_HASH) { return BucketLocationConstraint::EU; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/BucketVersioningStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/BucketVersioningStatus.cpp index 70d1acae703..709a8b0bc8f 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/BucketVersioningStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/BucketVersioningStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BucketVersioningStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); BucketVersioningStatus GetBucketVersioningStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return BucketVersioningStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/DeleteMarkerReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/DeleteMarkerReplicationStatus.cpp index 26e0b9d5b9a..5f8c3c28f54 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/DeleteMarkerReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/DeleteMarkerReplicationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeleteMarkerReplicationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); DeleteMarkerReplicationStatus GetDeleteMarkerReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return DeleteMarkerReplicationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ExistingObjectReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ExistingObjectReplicationStatus.cpp index 24241f5b0b9..3798383c90e 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ExistingObjectReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ExistingObjectReplicationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExistingObjectReplicationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExistingObjectReplicationStatus GetExistingObjectReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExistingObjectReplicationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ExpirationStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ExpirationStatus.cpp index f2e652df784..b3ca8cff87b 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ExpirationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ExpirationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpirationStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExpirationStatus GetExpirationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExpirationStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/Format.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/Format.cpp index a02f063f0d4..bca21073fd6 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/Format.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/Format.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int Parquet_HASH = HashingUtils::HashString("Parquet"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t Parquet_HASH = ConstExprHashingUtils::HashString("Parquet"); Format GetFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return Format::CSV; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/GeneratedManifestFormat.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/GeneratedManifestFormat.cpp index f6f2283abf1..c27691ce303 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/GeneratedManifestFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/GeneratedManifestFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GeneratedManifestFormatMapper { - static const int S3InventoryReport_CSV_20211130_HASH = HashingUtils::HashString("S3InventoryReport_CSV_20211130"); + static constexpr uint32_t S3InventoryReport_CSV_20211130_HASH = ConstExprHashingUtils::HashString("S3InventoryReport_CSV_20211130"); GeneratedManifestFormat GetGeneratedManifestFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3InventoryReport_CSV_20211130_HASH) { return GeneratedManifestFormat::S3InventoryReport_CSV_20211130; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFieldName.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFieldName.cpp index c3fcd59b174..091bfc76035 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFieldName.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFieldName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobManifestFieldNameMapper { - static const int Ignore_HASH = HashingUtils::HashString("Ignore"); - static const int Bucket_HASH = HashingUtils::HashString("Bucket"); - static const int Key_HASH = HashingUtils::HashString("Key"); - static const int VersionId_HASH = HashingUtils::HashString("VersionId"); + static constexpr uint32_t Ignore_HASH = ConstExprHashingUtils::HashString("Ignore"); + static constexpr uint32_t Bucket_HASH = ConstExprHashingUtils::HashString("Bucket"); + static constexpr uint32_t Key_HASH = ConstExprHashingUtils::HashString("Key"); + static constexpr uint32_t VersionId_HASH = ConstExprHashingUtils::HashString("VersionId"); JobManifestFieldName GetJobManifestFieldNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ignore_HASH) { return JobManifestFieldName::Ignore; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFormat.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFormat.cpp index 5d9b6a3a36c..a21d6445e7b 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/JobManifestFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobManifestFormatMapper { - static const int S3BatchOperations_CSV_20180820_HASH = HashingUtils::HashString("S3BatchOperations_CSV_20180820"); - static const int S3InventoryReport_CSV_20161130_HASH = HashingUtils::HashString("S3InventoryReport_CSV_20161130"); + static constexpr uint32_t S3BatchOperations_CSV_20180820_HASH = ConstExprHashingUtils::HashString("S3BatchOperations_CSV_20180820"); + static constexpr uint32_t S3InventoryReport_CSV_20161130_HASH = ConstExprHashingUtils::HashString("S3InventoryReport_CSV_20161130"); JobManifestFormat GetJobManifestFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3BatchOperations_CSV_20180820_HASH) { return JobManifestFormat::S3BatchOperations_CSV_20180820; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/JobReportFormat.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/JobReportFormat.cpp index ba2d221a691..331763e2fbb 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/JobReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/JobReportFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace JobReportFormatMapper { - static const int Report_CSV_20180820_HASH = HashingUtils::HashString("Report_CSV_20180820"); + static constexpr uint32_t Report_CSV_20180820_HASH = ConstExprHashingUtils::HashString("Report_CSV_20180820"); JobReportFormat GetJobReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Report_CSV_20180820_HASH) { return JobReportFormat::Report_CSV_20180820; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/JobReportScope.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/JobReportScope.cpp index 21452d52bd7..a1161b2f4ca 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/JobReportScope.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/JobReportScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JobReportScopeMapper { - static const int AllTasks_HASH = HashingUtils::HashString("AllTasks"); - static const int FailedTasksOnly_HASH = HashingUtils::HashString("FailedTasksOnly"); + static constexpr uint32_t AllTasks_HASH = ConstExprHashingUtils::HashString("AllTasks"); + static constexpr uint32_t FailedTasksOnly_HASH = ConstExprHashingUtils::HashString("FailedTasksOnly"); JobReportScope GetJobReportScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AllTasks_HASH) { return JobReportScope::AllTasks; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/JobStatus.cpp index 979d0e58b56..242ec399f49 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/JobStatus.cpp @@ -20,24 +20,24 @@ namespace Aws namespace JobStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int Completing_HASH = HashingUtils::HashString("Completing"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Failing_HASH = HashingUtils::HashString("Failing"); - static const int New_HASH = HashingUtils::HashString("New"); - static const int Paused_HASH = HashingUtils::HashString("Paused"); - static const int Pausing_HASH = HashingUtils::HashString("Pausing"); - static const int Preparing_HASH = HashingUtils::HashString("Preparing"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); - static const int Suspended_HASH = HashingUtils::HashString("Suspended"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t Completing_HASH = ConstExprHashingUtils::HashString("Completing"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Failing_HASH = ConstExprHashingUtils::HashString("Failing"); + static constexpr uint32_t New_HASH = ConstExprHashingUtils::HashString("New"); + static constexpr uint32_t Paused_HASH = ConstExprHashingUtils::HashString("Paused"); + static constexpr uint32_t Pausing_HASH = ConstExprHashingUtils::HashString("Pausing"); + static constexpr uint32_t Preparing_HASH = ConstExprHashingUtils::HashString("Preparing"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); + static constexpr uint32_t Suspended_HASH = ConstExprHashingUtils::HashString("Suspended"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return JobStatus::Active; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/MFADelete.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/MFADelete.cpp index d3ae122a674..9b14aaebdee 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/MFADelete.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/MFADelete.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MFADeleteMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MFADelete GetMFADeleteForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MFADelete::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/MFADeleteStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/MFADeleteStatus.cpp index 520f2290b1e..8680a5c35b7 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/MFADeleteStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/MFADeleteStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MFADeleteStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MFADeleteStatus GetMFADeleteStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MFADeleteStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/MetricsStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/MetricsStatus.cpp index db38260cd12..ccb21ca50b8 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/MetricsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/MetricsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); MetricsStatus GetMetricsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return MetricsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/MultiRegionAccessPointStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/MultiRegionAccessPointStatus.cpp index f4cd4334b0a..22cca480dd5 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/MultiRegionAccessPointStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/MultiRegionAccessPointStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MultiRegionAccessPointStatusMapper { - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int INCONSISTENT_ACROSS_REGIONS_HASH = HashingUtils::HashString("INCONSISTENT_ACROSS_REGIONS"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int PARTIALLY_CREATED_HASH = HashingUtils::HashString("PARTIALLY_CREATED"); - static const int PARTIALLY_DELETED_HASH = HashingUtils::HashString("PARTIALLY_DELETED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t INCONSISTENT_ACROSS_REGIONS_HASH = ConstExprHashingUtils::HashString("INCONSISTENT_ACROSS_REGIONS"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t PARTIALLY_CREATED_HASH = ConstExprHashingUtils::HashString("PARTIALLY_CREATED"); + static constexpr uint32_t PARTIALLY_DELETED_HASH = ConstExprHashingUtils::HashString("PARTIALLY_DELETED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); MultiRegionAccessPointStatus GetMultiRegionAccessPointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_HASH) { return MultiRegionAccessPointStatus::READY; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/NetworkOrigin.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/NetworkOrigin.cpp index 195564915b6..83572595fa8 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/NetworkOrigin.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/NetworkOrigin.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkOriginMapper { - static const int Internet_HASH = HashingUtils::HashString("Internet"); - static const int VPC_HASH = HashingUtils::HashString("VPC"); + static constexpr uint32_t Internet_HASH = ConstExprHashingUtils::HashString("Internet"); + static constexpr uint32_t VPC_HASH = ConstExprHashingUtils::HashString("VPC"); NetworkOrigin GetNetworkOriginForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Internet_HASH) { return NetworkOrigin::Internet; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAccessPointAliasStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAccessPointAliasStatus.cpp index 3f334b7236d..1786297e3dc 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAccessPointAliasStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAccessPointAliasStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ObjectLambdaAccessPointAliasStatusMapper { - static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); - static const int READY_HASH = HashingUtils::HashString("READY"); + static constexpr uint32_t PROVISIONING_HASH = ConstExprHashingUtils::HashString("PROVISIONING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); ObjectLambdaAccessPointAliasStatus GetObjectLambdaAccessPointAliasStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONING_HASH) { return ObjectLambdaAccessPointAliasStatus::PROVISIONING; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAllowedFeature.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAllowedFeature.cpp index 3abdfc90f0c..4dbe525d8e2 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAllowedFeature.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaAllowedFeature.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ObjectLambdaAllowedFeatureMapper { - static const int GetObject_Range_HASH = HashingUtils::HashString("GetObject-Range"); - static const int GetObject_PartNumber_HASH = HashingUtils::HashString("GetObject-PartNumber"); - static const int HeadObject_Range_HASH = HashingUtils::HashString("HeadObject-Range"); - static const int HeadObject_PartNumber_HASH = HashingUtils::HashString("HeadObject-PartNumber"); + static constexpr uint32_t GetObject_Range_HASH = ConstExprHashingUtils::HashString("GetObject-Range"); + static constexpr uint32_t GetObject_PartNumber_HASH = ConstExprHashingUtils::HashString("GetObject-PartNumber"); + static constexpr uint32_t HeadObject_Range_HASH = ConstExprHashingUtils::HashString("HeadObject-Range"); + static constexpr uint32_t HeadObject_PartNumber_HASH = ConstExprHashingUtils::HashString("HeadObject-PartNumber"); ObjectLambdaAllowedFeature GetObjectLambdaAllowedFeatureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GetObject_Range_HASH) { return ObjectLambdaAllowedFeature::GetObject_Range; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaTransformationConfigurationAction.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaTransformationConfigurationAction.cpp index 4141872f911..5f7d0f58b7b 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaTransformationConfigurationAction.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ObjectLambdaTransformationConfigurationAction.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ObjectLambdaTransformationConfigurationActionMapper { - static const int GetObject_HASH = HashingUtils::HashString("GetObject"); - static const int HeadObject_HASH = HashingUtils::HashString("HeadObject"); - static const int ListObjects_HASH = HashingUtils::HashString("ListObjects"); - static const int ListObjectsV2_HASH = HashingUtils::HashString("ListObjectsV2"); + static constexpr uint32_t GetObject_HASH = ConstExprHashingUtils::HashString("GetObject"); + static constexpr uint32_t HeadObject_HASH = ConstExprHashingUtils::HashString("HeadObject"); + static constexpr uint32_t ListObjects_HASH = ConstExprHashingUtils::HashString("ListObjects"); + static constexpr uint32_t ListObjectsV2_HASH = ConstExprHashingUtils::HashString("ListObjectsV2"); ObjectLambdaTransformationConfigurationAction GetObjectLambdaTransformationConfigurationActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GetObject_HASH) { return ObjectLambdaTransformationConfigurationAction::GetObject; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/OperationName.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/OperationName.cpp index 753aa51bf97..fda1f5bc9ad 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/OperationName.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/OperationName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace OperationNameMapper { - static const int LambdaInvoke_HASH = HashingUtils::HashString("LambdaInvoke"); - static const int S3PutObjectCopy_HASH = HashingUtils::HashString("S3PutObjectCopy"); - static const int S3PutObjectAcl_HASH = HashingUtils::HashString("S3PutObjectAcl"); - static const int S3PutObjectTagging_HASH = HashingUtils::HashString("S3PutObjectTagging"); - static const int S3DeleteObjectTagging_HASH = HashingUtils::HashString("S3DeleteObjectTagging"); - static const int S3InitiateRestoreObject_HASH = HashingUtils::HashString("S3InitiateRestoreObject"); - static const int S3PutObjectLegalHold_HASH = HashingUtils::HashString("S3PutObjectLegalHold"); - static const int S3PutObjectRetention_HASH = HashingUtils::HashString("S3PutObjectRetention"); - static const int S3ReplicateObject_HASH = HashingUtils::HashString("S3ReplicateObject"); + static constexpr uint32_t LambdaInvoke_HASH = ConstExprHashingUtils::HashString("LambdaInvoke"); + static constexpr uint32_t S3PutObjectCopy_HASH = ConstExprHashingUtils::HashString("S3PutObjectCopy"); + static constexpr uint32_t S3PutObjectAcl_HASH = ConstExprHashingUtils::HashString("S3PutObjectAcl"); + static constexpr uint32_t S3PutObjectTagging_HASH = ConstExprHashingUtils::HashString("S3PutObjectTagging"); + static constexpr uint32_t S3DeleteObjectTagging_HASH = ConstExprHashingUtils::HashString("S3DeleteObjectTagging"); + static constexpr uint32_t S3InitiateRestoreObject_HASH = ConstExprHashingUtils::HashString("S3InitiateRestoreObject"); + static constexpr uint32_t S3PutObjectLegalHold_HASH = ConstExprHashingUtils::HashString("S3PutObjectLegalHold"); + static constexpr uint32_t S3PutObjectRetention_HASH = ConstExprHashingUtils::HashString("S3PutObjectRetention"); + static constexpr uint32_t S3ReplicateObject_HASH = ConstExprHashingUtils::HashString("S3ReplicateObject"); OperationName GetOperationNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LambdaInvoke_HASH) { return OperationName::LambdaInvoke; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/OutputSchemaVersion.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/OutputSchemaVersion.cpp index 30b49b88200..a06a59961cb 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/OutputSchemaVersion.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/OutputSchemaVersion.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OutputSchemaVersionMapper { - static const int V_1_HASH = HashingUtils::HashString("V_1"); + static constexpr uint32_t V_1_HASH = ConstExprHashingUtils::HashString("V_1"); OutputSchemaVersion GetOutputSchemaVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V_1_HASH) { return OutputSchemaVersion::V_1; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/OwnerOverride.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/OwnerOverride.cpp index 015a32f2687..97cad67f1ae 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/OwnerOverride.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/OwnerOverride.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OwnerOverrideMapper { - static const int Destination_HASH = HashingUtils::HashString("Destination"); + static constexpr uint32_t Destination_HASH = ConstExprHashingUtils::HashString("Destination"); OwnerOverride GetOwnerOverrideForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Destination_HASH) { return OwnerOverride::Destination; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicaModificationsStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicaModificationsStatus.cpp index 74533c8e4cf..629fe9c2b26 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicaModificationsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicaModificationsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicaModificationsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicaModificationsStatus GetReplicaModificationsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicaModificationsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationRuleStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationRuleStatus.cpp index 826b281a222..65c2209de98 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationRuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationRuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationRuleStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicationRuleStatus GetReplicationRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicationRuleStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStatus.cpp index 2f7623aca75..89f072abdc7 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReplicationStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REPLICA_HASH = HashingUtils::HashString("REPLICA"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REPLICA_HASH = ConstExprHashingUtils::HashString("REPLICA"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ReplicationStatus GetReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return ReplicationStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStorageClass.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStorageClass.cpp index b72ce9be80e..9375aafd623 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationStorageClass.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ReplicationStorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int REDUCED_REDUNDANCY_HASH = HashingUtils::HashString("REDUCED_REDUNDANCY"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int OUTPOSTS_HASH = HashingUtils::HashString("OUTPOSTS"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t REDUCED_REDUNDANCY_HASH = ConstExprHashingUtils::HashString("REDUCED_REDUNDANCY"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t OUTPOSTS_HASH = ConstExprHashingUtils::HashString("OUTPOSTS"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); ReplicationStorageClass GetReplicationStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ReplicationStorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationTimeStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationTimeStatus.cpp index a08c7315ba8..7ab1249465b 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationTimeStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/ReplicationTimeStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationTimeStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ReplicationTimeStatus GetReplicationTimeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ReplicationTimeStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/RequestedJobStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/RequestedJobStatus.cpp index 6eb3c2a25eb..2db9512e607 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/RequestedJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/RequestedJobStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RequestedJobStatusMapper { - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Ready_HASH = HashingUtils::HashString("Ready"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Ready_HASH = ConstExprHashingUtils::HashString("Ready"); RequestedJobStatus GetRequestedJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Cancelled_HASH) { return RequestedJobStatus::Cancelled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3CannedAccessControlList.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3CannedAccessControlList.cpp index b9d22ec44c5..f977fada929 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3CannedAccessControlList.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3CannedAccessControlList.cpp @@ -20,18 +20,18 @@ namespace Aws namespace S3CannedAccessControlListMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); S3CannedAccessControlList GetS3CannedAccessControlListForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return S3CannedAccessControlList::private_; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3ChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3ChecksumAlgorithm.cpp index 29c1e74033f..f5106c5196a 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3ChecksumAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3ChecksumAlgorithm.cpp @@ -20,15 +20,15 @@ namespace Aws namespace S3ChecksumAlgorithmMapper { - static const int CRC32_HASH = HashingUtils::HashString("CRC32"); - static const int CRC32C_HASH = HashingUtils::HashString("CRC32C"); - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); + static constexpr uint32_t CRC32_HASH = ConstExprHashingUtils::HashString("CRC32"); + static constexpr uint32_t CRC32C_HASH = ConstExprHashingUtils::HashString("CRC32C"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); S3ChecksumAlgorithm GetS3ChecksumAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRC32_HASH) { return S3ChecksumAlgorithm::CRC32; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3GlacierJobTier.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3GlacierJobTier.cpp index e9474cf0900..3f18ff478fb 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3GlacierJobTier.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3GlacierJobTier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3GlacierJobTierMapper { - static const int BULK_HASH = HashingUtils::HashString("BULK"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t BULK_HASH = ConstExprHashingUtils::HashString("BULK"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); S3GlacierJobTier GetS3GlacierJobTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BULK_HASH) { return S3GlacierJobTier::BULK; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3GranteeTypeIdentifier.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3GranteeTypeIdentifier.cpp index 4c4f64bc714..6c2afcfff5a 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3GranteeTypeIdentifier.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3GranteeTypeIdentifier.cpp @@ -20,14 +20,14 @@ namespace Aws namespace S3GranteeTypeIdentifierMapper { - static const int id_HASH = HashingUtils::HashString("id"); - static const int emailAddress_HASH = HashingUtils::HashString("emailAddress"); - static const int uri_HASH = HashingUtils::HashString("uri"); + static constexpr uint32_t id_HASH = ConstExprHashingUtils::HashString("id"); + static constexpr uint32_t emailAddress_HASH = ConstExprHashingUtils::HashString("emailAddress"); + static constexpr uint32_t uri_HASH = ConstExprHashingUtils::HashString("uri"); S3GranteeTypeIdentifier GetS3GranteeTypeIdentifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == id_HASH) { return S3GranteeTypeIdentifier::id; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3MetadataDirective.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3MetadataDirective.cpp index 4a92ea93963..66eb2ef7cf7 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3MetadataDirective.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3MetadataDirective.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3MetadataDirectiveMapper { - static const int COPY_HASH = HashingUtils::HashString("COPY"); - static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static constexpr uint32_t COPY_HASH = ConstExprHashingUtils::HashString("COPY"); + static constexpr uint32_t REPLACE_HASH = ConstExprHashingUtils::HashString("REPLACE"); S3MetadataDirective GetS3MetadataDirectiveForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COPY_HASH) { return S3MetadataDirective::COPY; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockLegalHoldStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockLegalHoldStatus.cpp index c89f3cd8056..3872c45dc7a 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockLegalHoldStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockLegalHoldStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3ObjectLockLegalHoldStatusMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int ON_HASH = HashingUtils::HashString("ON"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t ON_HASH = ConstExprHashingUtils::HashString("ON"); S3ObjectLockLegalHoldStatus GetS3ObjectLockLegalHoldStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return S3ObjectLockLegalHoldStatus::OFF; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockMode.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockMode.cpp index 14f9014a2b8..f685fdfe65a 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockMode.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3ObjectLockModeMapper { - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); S3ObjectLockMode GetS3ObjectLockModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANCE_HASH) { return S3ObjectLockMode::COMPLIANCE; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockRetentionMode.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockRetentionMode.cpp index 804d9efe7a3..35411463103 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockRetentionMode.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3ObjectLockRetentionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3ObjectLockRetentionModeMapper { - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); S3ObjectLockRetentionMode GetS3ObjectLockRetentionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANCE_HASH) { return S3ObjectLockRetentionMode::COMPLIANCE; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3Permission.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3Permission.cpp index a0750f8a566..2f3a6231276 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3Permission.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3Permission.cpp @@ -20,16 +20,16 @@ namespace Aws namespace S3PermissionMapper { - static const int FULL_CONTROL_HASH = HashingUtils::HashString("FULL_CONTROL"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int WRITE_HASH = HashingUtils::HashString("WRITE"); - static const int READ_ACP_HASH = HashingUtils::HashString("READ_ACP"); - static const int WRITE_ACP_HASH = HashingUtils::HashString("WRITE_ACP"); + static constexpr uint32_t FULL_CONTROL_HASH = ConstExprHashingUtils::HashString("FULL_CONTROL"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t WRITE_HASH = ConstExprHashingUtils::HashString("WRITE"); + static constexpr uint32_t READ_ACP_HASH = ConstExprHashingUtils::HashString("READ_ACP"); + static constexpr uint32_t WRITE_ACP_HASH = ConstExprHashingUtils::HashString("WRITE_ACP"); S3Permission GetS3PermissionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_CONTROL_HASH) { return S3Permission::FULL_CONTROL; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3SSEAlgorithm.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3SSEAlgorithm.cpp index 7d5db688310..56fdf2e3135 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3SSEAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3SSEAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3SSEAlgorithmMapper { - static const int AES256_HASH = HashingUtils::HashString("AES256"); - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t AES256_HASH = ConstExprHashingUtils::HashString("AES256"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); S3SSEAlgorithm GetS3SSEAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AES256_HASH) { return S3SSEAlgorithm::AES256; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/S3StorageClass.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/S3StorageClass.cpp index dac6c0a8a26..e530677e990 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/S3StorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/S3StorageClass.cpp @@ -20,18 +20,18 @@ namespace Aws namespace S3StorageClassMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int GLACIER_IR_HASH = HashingUtils::HashString("GLACIER_IR"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t GLACIER_IR_HASH = ConstExprHashingUtils::HashString("GLACIER_IR"); S3StorageClass GetS3StorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return S3StorageClass::STANDARD; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/SseKmsEncryptedObjectsStatus.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/SseKmsEncryptedObjectsStatus.cpp index eb45b8dd561..96b16f0c675 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/SseKmsEncryptedObjectsStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/SseKmsEncryptedObjectsStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SseKmsEncryptedObjectsStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); SseKmsEncryptedObjectsStatus GetSseKmsEncryptedObjectsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return SseKmsEncryptedObjectsStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-s3control/source/model/TransitionStorageClass.cpp b/generated/src/aws-cpp-sdk-s3control/source/model/TransitionStorageClass.cpp index 1f5bd4ef7a0..033c494a36a 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/model/TransitionStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/model/TransitionStorageClass.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransitionStorageClassMapper { - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); - static const int STANDARD_IA_HASH = HashingUtils::HashString("STANDARD_IA"); - static const int ONEZONE_IA_HASH = HashingUtils::HashString("ONEZONE_IA"); - static const int INTELLIGENT_TIERING_HASH = HashingUtils::HashString("INTELLIGENT_TIERING"); - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); + static constexpr uint32_t STANDARD_IA_HASH = ConstExprHashingUtils::HashString("STANDARD_IA"); + static constexpr uint32_t ONEZONE_IA_HASH = ConstExprHashingUtils::HashString("ONEZONE_IA"); + static constexpr uint32_t INTELLIGENT_TIERING_HASH = ConstExprHashingUtils::HashString("INTELLIGENT_TIERING"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); TransitionStorageClass GetTransitionStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GLACIER_HASH) { return TransitionStorageClass::GLACIER; diff --git a/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsErrors.cpp b/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsErrors.cpp index 2985ee245de..57739c83b2d 100644 --- a/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsErrors.cpp +++ b/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsErrors.cpp @@ -18,14 +18,14 @@ namespace S3Outposts namespace S3OutpostsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int OUTPOST_OFFLINE_HASH = HashingUtils::HashString("OutpostOfflineException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t OUTPOST_OFFLINE_HASH = ConstExprHashingUtils::HashString("OutpostOfflineException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointAccessType.cpp b/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointAccessType.cpp index 2d5d022cc87..ece0dec4016 100644 --- a/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointAccessType.cpp +++ b/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointAccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EndpointAccessTypeMapper { - static const int Private_HASH = HashingUtils::HashString("Private"); - static const int CustomerOwnedIp_HASH = HashingUtils::HashString("CustomerOwnedIp"); + static constexpr uint32_t Private_HASH = ConstExprHashingUtils::HashString("Private"); + static constexpr uint32_t CustomerOwnedIp_HASH = ConstExprHashingUtils::HashString("CustomerOwnedIp"); EndpointAccessType GetEndpointAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Private_HASH) { return EndpointAccessType::Private; diff --git a/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointStatus.cpp b/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointStatus.cpp index b377551e922..a450e15f312 100644 --- a/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-s3outposts/source/model/EndpointStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace EndpointStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Create_Failed_HASH = HashingUtils::HashString("Create_Failed"); - static const int Delete_Failed_HASH = HashingUtils::HashString("Delete_Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Create_Failed_HASH = ConstExprHashingUtils::HashString("Create_Failed"); + static constexpr uint32_t Delete_Failed_HASH = ConstExprHashingUtils::HashString("Delete_Failed"); EndpointStatus GetEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return EndpointStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeErrors.cpp b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeErrors.cpp index 87bc080079d..8a7d04c47a8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeErrors.cpp @@ -18,14 +18,14 @@ namespace AugmentedAIRuntime namespace AugmentedAIRuntimeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/ContentClassifier.cpp b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/ContentClassifier.cpp index 32b9ffdd380..cf52713f041 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/ContentClassifier.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/ContentClassifier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentClassifierMapper { - static const int FreeOfPersonallyIdentifiableInformation_HASH = HashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); - static const int FreeOfAdultContent_HASH = HashingUtils::HashString("FreeOfAdultContent"); + static constexpr uint32_t FreeOfPersonallyIdentifiableInformation_HASH = ConstExprHashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); + static constexpr uint32_t FreeOfAdultContent_HASH = ConstExprHashingUtils::HashString("FreeOfAdultContent"); ContentClassifier GetContentClassifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FreeOfPersonallyIdentifiableInformation_HASH) { return ContentClassifier::FreeOfPersonallyIdentifiableInformation; diff --git a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/HumanLoopStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/HumanLoopStatus.cpp index cd2b0e98223..55ef09b8536 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/HumanLoopStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/HumanLoopStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace HumanLoopStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); HumanLoopStatus GetHumanLoopStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return HumanLoopStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/SortOrder.cpp index 216f8f38899..865338878d1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return SortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerErrors.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerErrors.cpp index 07357e424f7..5fb137fd4e8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerErrors.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerErrors.cpp @@ -18,12 +18,12 @@ namespace SagemakerEdgeManager namespace SagemakerEdgeManagerErrorMapper { -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_SERVICE_HASH) { diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ChecksumType.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ChecksumType.cpp index 9952569baf4..23bdaaba297 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ChecksumType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ChecksumType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ChecksumTypeMapper { - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); ChecksumType GetChecksumTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA1_HASH) { return ChecksumType::SHA1; diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentStatus.cpp index 3a29aa3b204..86baa157101 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeploymentStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return DeploymentStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentType.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentType.cpp index 12bc569fee2..c311de874fc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/DeploymentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DeploymentTypeMapper { - static const int Model_HASH = HashingUtils::HashString("Model"); + static constexpr uint32_t Model_HASH = ConstExprHashingUtils::HashString("Model"); DeploymentType GetDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Model_HASH) { return DeploymentType::Model; diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/FailureHandlingPolicy.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/FailureHandlingPolicy.cpp index e92fe01336c..cbb569dd27a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/FailureHandlingPolicy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/FailureHandlingPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailureHandlingPolicyMapper { - static const int ROLLBACK_ON_FAILURE_HASH = HashingUtils::HashString("ROLLBACK_ON_FAILURE"); - static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); + static constexpr uint32_t ROLLBACK_ON_FAILURE_HASH = ConstExprHashingUtils::HashString("ROLLBACK_ON_FAILURE"); + static constexpr uint32_t DO_NOTHING_HASH = ConstExprHashingUtils::HashString("DO_NOTHING"); FailureHandlingPolicy GetFailureHandlingPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROLLBACK_ON_FAILURE_HASH) { return FailureHandlingPolicy::ROLLBACK_ON_FAILURE; diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ModelState.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ModelState.cpp index deb6662119c..17ef8cc7e7c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ModelState.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/model/ModelState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelStateMapper { - static const int DEPLOY_HASH = HashingUtils::HashString("DEPLOY"); - static const int UNDEPLOY_HASH = HashingUtils::HashString("UNDEPLOY"); + static constexpr uint32_t DEPLOY_HASH = ConstExprHashingUtils::HashString("DEPLOY"); + static constexpr uint32_t UNDEPLOY_HASH = ConstExprHashingUtils::HashString("UNDEPLOY"); ModelState GetModelStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPLOY_HASH) { return ModelState::DEPLOY; diff --git a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeErrors.cpp b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeErrors.cpp index 173d36dd940..a23377aba76 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeErrors.cpp @@ -18,12 +18,12 @@ namespace SageMakerFeatureStoreRuntime namespace SageMakerFeatureStoreRuntimeErrorMapper { -static const int ACCESS_FORBIDDEN_HASH = HashingUtils::HashString("AccessForbidden"); +static constexpr uint32_t ACCESS_FORBIDDEN_HASH = ConstExprHashingUtils::HashString("AccessForbidden"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == ACCESS_FORBIDDEN_HASH) { diff --git a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/DeletionMode.cpp b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/DeletionMode.cpp index 474fba32071..a199afa0f05 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/DeletionMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/DeletionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeletionModeMapper { - static const int SoftDelete_HASH = HashingUtils::HashString("SoftDelete"); - static const int HardDelete_HASH = HashingUtils::HashString("HardDelete"); + static constexpr uint32_t SoftDelete_HASH = ConstExprHashingUtils::HashString("SoftDelete"); + static constexpr uint32_t HardDelete_HASH = ConstExprHashingUtils::HashString("HardDelete"); DeletionMode GetDeletionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SoftDelete_HASH) { return DeletionMode::SoftDelete; diff --git a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/ExpirationTimeResponse.cpp b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/ExpirationTimeResponse.cpp index 9939736abf5..a171dda8a3b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/ExpirationTimeResponse.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/ExpirationTimeResponse.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExpirationTimeResponseMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ExpirationTimeResponse GetExpirationTimeResponseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ExpirationTimeResponse::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TargetStore.cpp b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TargetStore.cpp index 6a84da59eb7..9ab05d4617f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TargetStore.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TargetStore.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetStoreMapper { - static const int OnlineStore_HASH = HashingUtils::HashString("OnlineStore"); - static const int OfflineStore_HASH = HashingUtils::HashString("OfflineStore"); + static constexpr uint32_t OnlineStore_HASH = ConstExprHashingUtils::HashString("OnlineStore"); + static constexpr uint32_t OfflineStore_HASH = ConstExprHashingUtils::HashString("OfflineStore"); TargetStore GetTargetStoreForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OnlineStore_HASH) { return TargetStore::OnlineStore; diff --git a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TtlDurationUnit.cpp b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TtlDurationUnit.cpp index 916e6a104db..42276346bfb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TtlDurationUnit.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/model/TtlDurationUnit.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TtlDurationUnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Minutes_HASH = HashingUtils::HashString("Minutes"); - static const int Hours_HASH = HashingUtils::HashString("Hours"); - static const int Days_HASH = HashingUtils::HashString("Days"); - static const int Weeks_HASH = HashingUtils::HashString("Weeks"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Minutes_HASH = ConstExprHashingUtils::HashString("Minutes"); + static constexpr uint32_t Hours_HASH = ConstExprHashingUtils::HashString("Hours"); + static constexpr uint32_t Days_HASH = ConstExprHashingUtils::HashString("Days"); + static constexpr uint32_t Weeks_HASH = ConstExprHashingUtils::HashString("Weeks"); TtlDurationUnit GetTtlDurationUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return TtlDurationUnit::Seconds; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialErrors.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialErrors.cpp index 3ef6ee5899d..86e47879c39 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialErrors.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_SAGEMAKERGEOSPATIAL_API ValidationException SageMakerGeospatialEr namespace SageMakerGeospatialErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameCloudRemoval.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameCloudRemoval.cpp index d80731bf12d..471a8b09720 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameCloudRemoval.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameCloudRemoval.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AlgorithmNameCloudRemovalMapper { - static const int INTERPOLATION_HASH = HashingUtils::HashString("INTERPOLATION"); + static constexpr uint32_t INTERPOLATION_HASH = ConstExprHashingUtils::HashString("INTERPOLATION"); AlgorithmNameCloudRemoval GetAlgorithmNameCloudRemovalForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERPOLATION_HASH) { return AlgorithmNameCloudRemoval::INTERPOLATION; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameGeoMosaic.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameGeoMosaic.cpp index 91d13ba993a..2031fed2fd1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameGeoMosaic.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameGeoMosaic.cpp @@ -20,25 +20,25 @@ namespace Aws namespace AlgorithmNameGeoMosaicMapper { - static const int NEAR_HASH = HashingUtils::HashString("NEAR"); - static const int BILINEAR_HASH = HashingUtils::HashString("BILINEAR"); - static const int CUBIC_HASH = HashingUtils::HashString("CUBIC"); - static const int CUBICSPLINE_HASH = HashingUtils::HashString("CUBICSPLINE"); - static const int LANCZOS_HASH = HashingUtils::HashString("LANCZOS"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int RMS_HASH = HashingUtils::HashString("RMS"); - static const int MODE_HASH = HashingUtils::HashString("MODE"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int MED_HASH = HashingUtils::HashString("MED"); - static const int Q1_HASH = HashingUtils::HashString("Q1"); - static const int Q3_HASH = HashingUtils::HashString("Q3"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); + static constexpr uint32_t NEAR_HASH = ConstExprHashingUtils::HashString("NEAR"); + static constexpr uint32_t BILINEAR_HASH = ConstExprHashingUtils::HashString("BILINEAR"); + static constexpr uint32_t CUBIC_HASH = ConstExprHashingUtils::HashString("CUBIC"); + static constexpr uint32_t CUBICSPLINE_HASH = ConstExprHashingUtils::HashString("CUBICSPLINE"); + static constexpr uint32_t LANCZOS_HASH = ConstExprHashingUtils::HashString("LANCZOS"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t RMS_HASH = ConstExprHashingUtils::HashString("RMS"); + static constexpr uint32_t MODE_HASH = ConstExprHashingUtils::HashString("MODE"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t MED_HASH = ConstExprHashingUtils::HashString("MED"); + static constexpr uint32_t Q1_HASH = ConstExprHashingUtils::HashString("Q1"); + static constexpr uint32_t Q3_HASH = ConstExprHashingUtils::HashString("Q3"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); AlgorithmNameGeoMosaic GetAlgorithmNameGeoMosaicForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEAR_HASH) { return AlgorithmNameGeoMosaic::NEAR; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameResampling.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameResampling.cpp index 5ebe1ab0fb4..7a9a0e4efc3 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameResampling.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/AlgorithmNameResampling.cpp @@ -20,25 +20,25 @@ namespace Aws namespace AlgorithmNameResamplingMapper { - static const int NEAR_HASH = HashingUtils::HashString("NEAR"); - static const int BILINEAR_HASH = HashingUtils::HashString("BILINEAR"); - static const int CUBIC_HASH = HashingUtils::HashString("CUBIC"); - static const int CUBICSPLINE_HASH = HashingUtils::HashString("CUBICSPLINE"); - static const int LANCZOS_HASH = HashingUtils::HashString("LANCZOS"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); - static const int RMS_HASH = HashingUtils::HashString("RMS"); - static const int MODE_HASH = HashingUtils::HashString("MODE"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int MED_HASH = HashingUtils::HashString("MED"); - static const int Q1_HASH = HashingUtils::HashString("Q1"); - static const int Q3_HASH = HashingUtils::HashString("Q3"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); + static constexpr uint32_t NEAR_HASH = ConstExprHashingUtils::HashString("NEAR"); + static constexpr uint32_t BILINEAR_HASH = ConstExprHashingUtils::HashString("BILINEAR"); + static constexpr uint32_t CUBIC_HASH = ConstExprHashingUtils::HashString("CUBIC"); + static constexpr uint32_t CUBICSPLINE_HASH = ConstExprHashingUtils::HashString("CUBICSPLINE"); + static constexpr uint32_t LANCZOS_HASH = ConstExprHashingUtils::HashString("LANCZOS"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); + static constexpr uint32_t RMS_HASH = ConstExprHashingUtils::HashString("RMS"); + static constexpr uint32_t MODE_HASH = ConstExprHashingUtils::HashString("MODE"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t MED_HASH = ConstExprHashingUtils::HashString("MED"); + static constexpr uint32_t Q1_HASH = ConstExprHashingUtils::HashString("Q1"); + static constexpr uint32_t Q3_HASH = ConstExprHashingUtils::HashString("Q3"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); AlgorithmNameResampling GetAlgorithmNameResamplingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEAR_HASH) { return AlgorithmNameResampling::NEAR; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ComparisonOperator.cpp index 2ba5938506e..e43975bd989 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ComparisonOperator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return ComparisonOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/DataCollectionType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/DataCollectionType.cpp index ce5b3762415..739e8409261 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/DataCollectionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/DataCollectionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DataCollectionTypeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PREMIUM_HASH = HashingUtils::HashString("PREMIUM"); - static const int USER_HASH = HashingUtils::HashString("USER"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PREMIUM_HASH = ConstExprHashingUtils::HashString("PREMIUM"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); DataCollectionType GetDataCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return DataCollectionType::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobErrorType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobErrorType.cpp index f29046f21ac..b0179bbbaff 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobErrorType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EarthObservationJobErrorTypeMapper { - static const int CLIENT_ERROR_HASH = HashingUtils::HashString("CLIENT_ERROR"); - static const int SERVER_ERROR_HASH = HashingUtils::HashString("SERVER_ERROR"); + static constexpr uint32_t CLIENT_ERROR_HASH = ConstExprHashingUtils::HashString("CLIENT_ERROR"); + static constexpr uint32_t SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("SERVER_ERROR"); EarthObservationJobErrorType GetEarthObservationJobErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIENT_ERROR_HASH) { return EarthObservationJobErrorType::CLIENT_ERROR; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobExportStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobExportStatus.cpp index 1355ae6fef3..8db2d2df846 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobExportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EarthObservationJobExportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); EarthObservationJobExportStatus GetEarthObservationJobExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return EarthObservationJobExportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobStatus.cpp index 90c1dec84dd..0919d15b516 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/EarthObservationJobStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace EarthObservationJobStatusMapper { - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); EarthObservationJobStatus GetEarthObservationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZING_HASH) { return EarthObservationJobStatus::INITIALIZING; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ExportErrorType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ExportErrorType.cpp index f30bf0ce0ad..cdf5391e9f0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ExportErrorType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ExportErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportErrorTypeMapper { - static const int CLIENT_ERROR_HASH = HashingUtils::HashString("CLIENT_ERROR"); - static const int SERVER_ERROR_HASH = HashingUtils::HashString("SERVER_ERROR"); + static constexpr uint32_t CLIENT_ERROR_HASH = ConstExprHashingUtils::HashString("CLIENT_ERROR"); + static constexpr uint32_t SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("SERVER_ERROR"); ExportErrorType GetExportErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIENT_ERROR_HASH) { return ExportErrorType::CLIENT_ERROR; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/GroupBy.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/GroupBy.cpp index e791653cdf0..a97c02b55df 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/GroupBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/GroupBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace GroupByMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int YEARLY_HASH = HashingUtils::HashString("YEARLY"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t YEARLY_HASH = ConstExprHashingUtils::HashString("YEARLY"); GroupBy GetGroupByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return GroupBy::ALL; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/LogicalOperator.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/LogicalOperator.cpp index 4b1d31ddcfa..2567d0e5a6f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/LogicalOperator.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/LogicalOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LogicalOperatorMapper { - static const int AND_HASH = HashingUtils::HashString("AND"); + static constexpr uint32_t AND_HASH = ConstExprHashingUtils::HashString("AND"); LogicalOperator GetLogicalOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AND_HASH) { return LogicalOperator::AND; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/OutputType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/OutputType.cpp index 76bc79e35d6..d09903dc6bf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/OutputType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/OutputType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OutputTypeMapper { - static const int INT32_HASH = HashingUtils::HashString("INT32"); - static const int FLOAT32_HASH = HashingUtils::HashString("FLOAT32"); - static const int INT16_HASH = HashingUtils::HashString("INT16"); - static const int FLOAT64_HASH = HashingUtils::HashString("FLOAT64"); - static const int UINT16_HASH = HashingUtils::HashString("UINT16"); + static constexpr uint32_t INT32_HASH = ConstExprHashingUtils::HashString("INT32"); + static constexpr uint32_t FLOAT32_HASH = ConstExprHashingUtils::HashString("FLOAT32"); + static constexpr uint32_t INT16_HASH = ConstExprHashingUtils::HashString("INT16"); + static constexpr uint32_t FLOAT64_HASH = ConstExprHashingUtils::HashString("FLOAT64"); + static constexpr uint32_t UINT16_HASH = ConstExprHashingUtils::HashString("UINT16"); OutputType GetOutputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INT32_HASH) { return OutputType::INT32; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/PredefinedResolution.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/PredefinedResolution.cpp index 81ccfc59f6b..5a3c4fde119 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/PredefinedResolution.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/PredefinedResolution.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PredefinedResolutionMapper { - static const int HIGHEST_HASH = HashingUtils::HashString("HIGHEST"); - static const int LOWEST_HASH = HashingUtils::HashString("LOWEST"); - static const int AVERAGE_HASH = HashingUtils::HashString("AVERAGE"); + static constexpr uint32_t HIGHEST_HASH = ConstExprHashingUtils::HashString("HIGHEST"); + static constexpr uint32_t LOWEST_HASH = ConstExprHashingUtils::HashString("LOWEST"); + static constexpr uint32_t AVERAGE_HASH = ConstExprHashingUtils::HashString("AVERAGE"); PredefinedResolution GetPredefinedResolutionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGHEST_HASH) { return PredefinedResolution::HIGHEST; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/SortOrder.cpp index 17e498f4323..6cb006bb6d9 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TargetOptions.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TargetOptions.cpp index a2b8f1afac9..3df48081d37 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TargetOptions.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TargetOptions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetOptionsMapper { - static const int INPUT_HASH = HashingUtils::HashString("INPUT"); - static const int OUTPUT_HASH = HashingUtils::HashString("OUTPUT"); + static constexpr uint32_t INPUT_HASH = ConstExprHashingUtils::HashString("INPUT"); + static constexpr uint32_t OUTPUT_HASH = ConstExprHashingUtils::HashString("OUTPUT"); TargetOptions GetTargetOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INPUT_HASH) { return TargetOptions::INPUT; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TemporalStatistics.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TemporalStatistics.cpp index 86112d4c053..a4f65f22c48 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TemporalStatistics.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/TemporalStatistics.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TemporalStatisticsMapper { - static const int MEAN_HASH = HashingUtils::HashString("MEAN"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); - static const int STANDARD_DEVIATION_HASH = HashingUtils::HashString("STANDARD_DEVIATION"); + static constexpr uint32_t MEAN_HASH = ConstExprHashingUtils::HashString("MEAN"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); + static constexpr uint32_t STANDARD_DEVIATION_HASH = ConstExprHashingUtils::HashString("STANDARD_DEVIATION"); TemporalStatistics GetTemporalStatisticsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEAN_HASH) { return TemporalStatistics::MEAN; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/Unit.cpp index bafffbb97ee..53ed0187282 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/Unit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UnitMapper { - static const int METERS_HASH = HashingUtils::HashString("METERS"); + static constexpr uint32_t METERS_HASH = ConstExprHashingUtils::HashString("METERS"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == METERS_HASH) { return Unit::METERS; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobDocumentType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobDocumentType.cpp index b1f556e5717..ffcf0a46373 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobDocumentType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobDocumentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace VectorEnrichmentJobDocumentTypeMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); VectorEnrichmentJobDocumentType GetVectorEnrichmentJobDocumentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return VectorEnrichmentJobDocumentType::CSV; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobErrorType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobErrorType.cpp index d3c83f29b55..0a62b96c4f4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobErrorType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VectorEnrichmentJobErrorTypeMapper { - static const int CLIENT_ERROR_HASH = HashingUtils::HashString("CLIENT_ERROR"); - static const int SERVER_ERROR_HASH = HashingUtils::HashString("SERVER_ERROR"); + static constexpr uint32_t CLIENT_ERROR_HASH = ConstExprHashingUtils::HashString("CLIENT_ERROR"); + static constexpr uint32_t SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("SERVER_ERROR"); VectorEnrichmentJobErrorType GetVectorEnrichmentJobErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIENT_ERROR_HASH) { return VectorEnrichmentJobErrorType::CLIENT_ERROR; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportErrorType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportErrorType.cpp index ac0c636b101..9a672a4831a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportErrorType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportErrorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VectorEnrichmentJobExportErrorTypeMapper { - static const int CLIENT_ERROR_HASH = HashingUtils::HashString("CLIENT_ERROR"); - static const int SERVER_ERROR_HASH = HashingUtils::HashString("SERVER_ERROR"); + static constexpr uint32_t CLIENT_ERROR_HASH = ConstExprHashingUtils::HashString("CLIENT_ERROR"); + static constexpr uint32_t SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("SERVER_ERROR"); VectorEnrichmentJobExportErrorType GetVectorEnrichmentJobExportErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLIENT_ERROR_HASH) { return VectorEnrichmentJobExportErrorType::CLIENT_ERROR; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportStatus.cpp index 7f84a91af96..616c8c507b9 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobExportStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VectorEnrichmentJobExportStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VectorEnrichmentJobExportStatus GetVectorEnrichmentJobExportStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return VectorEnrichmentJobExportStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobStatus.cpp index 1ce0256de0a..21605ac5cf1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace VectorEnrichmentJobStatusMapper { - static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t INITIALIZING_HASH = ConstExprHashingUtils::HashString("INITIALIZING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); VectorEnrichmentJobStatus GetVectorEnrichmentJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZING_HASH) { return VectorEnrichmentJobStatus::INITIALIZING; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobType.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobType.cpp index 59781d88e90..b4b04ad0306 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/VectorEnrichmentJobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VectorEnrichmentJobTypeMapper { - static const int REVERSE_GEOCODING_HASH = HashingUtils::HashString("REVERSE_GEOCODING"); - static const int MAP_MATCHING_HASH = HashingUtils::HashString("MAP_MATCHING"); + static constexpr uint32_t REVERSE_GEOCODING_HASH = ConstExprHashingUtils::HashString("REVERSE_GEOCODING"); + static constexpr uint32_t MAP_MATCHING_HASH = ConstExprHashingUtils::HashString("MAP_MATCHING"); VectorEnrichmentJobType GetVectorEnrichmentJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REVERSE_GEOCODING_HASH) { return VectorEnrichmentJobType::REVERSE_GEOCODING; diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ZonalStatistics.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ZonalStatistics.cpp index 6468170b10e..e873b1cedba 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ZonalStatistics.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/model/ZonalStatistics.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ZonalStatisticsMapper { - static const int MEAN_HASH = HashingUtils::HashString("MEAN"); - static const int MEDIAN_HASH = HashingUtils::HashString("MEDIAN"); - static const int STANDARD_DEVIATION_HASH = HashingUtils::HashString("STANDARD_DEVIATION"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); - static const int MIN_HASH = HashingUtils::HashString("MIN"); - static const int SUM_HASH = HashingUtils::HashString("SUM"); + static constexpr uint32_t MEAN_HASH = ConstExprHashingUtils::HashString("MEAN"); + static constexpr uint32_t MEDIAN_HASH = ConstExprHashingUtils::HashString("MEDIAN"); + static constexpr uint32_t STANDARD_DEVIATION_HASH = ConstExprHashingUtils::HashString("STANDARD_DEVIATION"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); + static constexpr uint32_t MIN_HASH = ConstExprHashingUtils::HashString("MIN"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); ZonalStatistics GetZonalStatisticsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEAN_HASH) { return ZonalStatistics::MEAN; diff --git a/generated/src/aws-cpp-sdk-sagemaker-metrics/source/model/PutMetricsErrorCode.cpp b/generated/src/aws-cpp-sdk-sagemaker-metrics/source/model/PutMetricsErrorCode.cpp index 40c1aebdd0f..dbb1815499a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-metrics/source/model/PutMetricsErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-metrics/source/model/PutMetricsErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PutMetricsErrorCodeMapper { - static const int METRIC_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("METRIC_LIMIT_EXCEEDED"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); - static const int VALIDATION_ERROR_HASH = HashingUtils::HashString("VALIDATION_ERROR"); - static const int CONFLICT_ERROR_HASH = HashingUtils::HashString("CONFLICT_ERROR"); + static constexpr uint32_t METRIC_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("METRIC_LIMIT_EXCEEDED"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t VALIDATION_ERROR_HASH = ConstExprHashingUtils::HashString("VALIDATION_ERROR"); + static constexpr uint32_t CONFLICT_ERROR_HASH = ConstExprHashingUtils::HashString("CONFLICT_ERROR"); PutMetricsErrorCode GetPutMetricsErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == METRIC_LIMIT_EXCEEDED_HASH) { return PutMetricsErrorCode::METRIC_LIMIT_EXCEEDED; diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeErrors.cpp b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeErrors.cpp index 22bdb7b4f7f..91821923b9a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeErrors.cpp @@ -33,16 +33,16 @@ template<> AWS_SAGEMAKERRUNTIME_API ModelStreamError SageMakerRuntimeError::GetM namespace SageMakerRuntimeErrorMapper { -static const int MODEL_HASH = HashingUtils::HashString("ModelError"); -static const int INTERNAL_DEPENDENCY_HASH = HashingUtils::HashString("InternalDependencyException"); -static const int INTERNAL_STREAM_FAILURE_HASH = HashingUtils::HashString("InternalStreamFailure"); -static const int MODEL_STREAM_HASH = HashingUtils::HashString("ModelStreamError"); -static const int MODEL_NOT_READY_HASH = HashingUtils::HashString("ModelNotReadyException"); +static constexpr uint32_t MODEL_HASH = ConstExprHashingUtils::HashString("ModelError"); +static constexpr uint32_t INTERNAL_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("InternalDependencyException"); +static constexpr uint32_t INTERNAL_STREAM_FAILURE_HASH = ConstExprHashingUtils::HashString("InternalStreamFailure"); +static constexpr uint32_t MODEL_STREAM_HASH = ConstExprHashingUtils::HashString("ModelStreamError"); +static constexpr uint32_t MODEL_NOT_READY_HASH = ConstExprHashingUtils::HashString("ModelNotReadyException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == MODEL_HASH) { diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp index 5781c45cd23..e2262129bca 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/model/InvokeEndpointWithResponseStreamHandler.cpp @@ -186,11 +186,11 @@ namespace Model namespace InvokeEndpointWithResponseStreamEventMapper { - static const int PAYLOADPART_HASH = Aws::Utils::HashingUtils::HashString("PayloadPart"); + static constexpr uint32_t PAYLOADPART_HASH = Aws::Utils::ConstExprHashingUtils::HashString("PayloadPart"); InvokeEndpointWithResponseStreamEventType GetInvokeEndpointWithResponseStreamEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == PAYLOADPART_HASH) { return InvokeEndpointWithResponseStreamEventType::PAYLOADPART; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp index 38f2cbd7a90..edf644f9abd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp @@ -21,8 +21,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -33,35 +33,35 @@ #include #include #include -#include #include +#include #include -#include #include +#include #include #include #include -#include #include -#include +#include #include +#include #include -#include #include -#include +#include #include +#include #include #include #include -#include #include -#include +#include #include -#include -#include +#include #include -#include +#include +#include #include +#include #include #include #include @@ -79,8 +79,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -101,8 +101,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -111,15 +111,15 @@ #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include @@ -254,52 +254,52 @@ void SageMakerClient::OverrideEndpoint(const Aws::String& endpoint) m_endpointProvider->OverrideEndpoint(endpoint); } -DeleteAppImageConfigOutcome SageMakerClient::DeleteAppImageConfig(const DeleteAppImageConfigRequest& request) const +CreateHyperParameterTuningJobOutcome SageMakerClient::CreateHyperParameterTuningJob(const CreateHyperParameterTuningJobRequest& request) const { - AWS_OPERATION_GUARD(DeleteAppImageConfig); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAppImageConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAppImageConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateHyperParameterTuningJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteAppImageConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAppImageConfig", + AWS_OPERATION_CHECK_PTR(meter, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateHyperParameterTuningJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteAppImageConfigOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateHyperParameterTuningJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAppImageConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteAppImageConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateHyperParameterTuningJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateHyperParameterTuningJobOutcome SageMakerClient::CreateHyperParameterTuningJob(const CreateHyperParameterTuningJobRequest& request) const +DeleteAppImageConfigOutcome SageMakerClient::DeleteAppImageConfig(const DeleteAppImageConfigRequest& request) const { - AWS_OPERATION_GUARD(CreateHyperParameterTuningJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteAppImageConfig); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAppImageConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAppImageConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateHyperParameterTuningJob", + AWS_OPERATION_CHECK_PTR(meter, DeleteAppImageConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAppImageConfig", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateHyperParameterTuningJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAppImageConfigOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateHyperParameterTuningJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAppImageConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteAppImageConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -566,52 +566,52 @@ CreateEdgeDeploymentStageOutcome SageMakerClient::CreateEdgeDeploymentStage(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateSpaceOutcome SageMakerClient::CreateSpace(const CreateSpaceRequest& request) const +CreatePresignedNotebookInstanceUrlOutcome SageMakerClient::CreatePresignedNotebookInstanceUrl(const CreatePresignedNotebookInstanceUrlRequest& request) const { - AWS_OPERATION_GUARD(CreateSpace); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreatePresignedNotebookInstanceUrl); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateSpace", + AWS_OPERATION_CHECK_PTR(meter, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePresignedNotebookInstanceUrl", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateSpaceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreatePresignedNotebookInstanceUrlOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateSpaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreatePresignedNotebookInstanceUrlOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreatePresignedNotebookInstanceUrlOutcome SageMakerClient::CreatePresignedNotebookInstanceUrl(const CreatePresignedNotebookInstanceUrlRequest& request) const +CreateSpaceOutcome SageMakerClient::CreateSpace(const CreateSpaceRequest& request) const { - AWS_OPERATION_GUARD(CreatePresignedNotebookInstanceUrl); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateSpace); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePresignedNotebookInstanceUrl", + AWS_OPERATION_CHECK_PTR(meter, CreateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateSpace", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreatePresignedNotebookInstanceUrlOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateSpaceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePresignedNotebookInstanceUrl, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreatePresignedNotebookInstanceUrlOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateSpaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -644,52 +644,52 @@ DeleteSpaceOutcome SageMakerClient::DeleteSpace(const DeleteSpaceRequest& reques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteModelCardOutcome SageMakerClient::DeleteModelCard(const DeleteModelCardRequest& request) const +CreateAlgorithmOutcome SageMakerClient::CreateAlgorithm(const CreateAlgorithmRequest& request) const { - AWS_OPERATION_GUARD(DeleteModelCard); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateAlgorithm); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAlgorithm, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAlgorithm, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteModelCard", + AWS_OPERATION_CHECK_PTR(meter, CreateAlgorithm, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAlgorithm", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteModelCardOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAlgorithmOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteModelCardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAlgorithm, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateAlgorithmOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateAlgorithmOutcome SageMakerClient::CreateAlgorithm(const CreateAlgorithmRequest& request) const +DeleteModelCardOutcome SageMakerClient::DeleteModelCard(const DeleteModelCardRequest& request) const { - AWS_OPERATION_GUARD(CreateAlgorithm); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAlgorithm, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAlgorithm, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteModelCard); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateAlgorithm, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAlgorithm", + AWS_OPERATION_CHECK_PTR(meter, DeleteModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteModelCard", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateAlgorithmOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteModelCardOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAlgorithm, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateAlgorithmOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteModelCardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -774,32 +774,6 @@ CreateWorkforceOutcome SageMakerClient::CreateWorkforce(const CreateWorkforceReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateImageVersionOutcome SageMakerClient::CreateImageVersion(const CreateImageVersionRequest& request) const -{ - AWS_OPERATION_GUARD(CreateImageVersion); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateImageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateImageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateImageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateImageVersion", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateImageVersionOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateImageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateImageVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - CreateHubOutcome SageMakerClient::CreateHub(const CreateHubRequest& request) const { AWS_OPERATION_GUARD(CreateHub); @@ -826,26 +800,26 @@ CreateHubOutcome SageMakerClient::CreateHub(const CreateHubRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteExperimentOutcome SageMakerClient::DeleteExperiment(const DeleteExperimentRequest& request) const +CreateImageVersionOutcome SageMakerClient::CreateImageVersion(const CreateImageVersionRequest& request) const { - AWS_OPERATION_GUARD(DeleteExperiment); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteExperiment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteExperiment, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateImageVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateImageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateImageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteExperiment, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteExperiment", + AWS_OPERATION_CHECK_PTR(meter, CreateImageVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateImageVersion", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteExperimentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateImageVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteExperiment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteExperimentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateImageVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateImageVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -878,52 +852,52 @@ DeleteEndpointOutcome SageMakerClient::DeleteEndpoint(const DeleteEndpointReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteModelQualityJobDefinitionOutcome SageMakerClient::DeleteModelQualityJobDefinition(const DeleteModelQualityJobDefinitionRequest& request) const +DeleteExperimentOutcome SageMakerClient::DeleteExperiment(const DeleteExperimentRequest& request) const { - AWS_OPERATION_GUARD(DeleteModelQualityJobDefinition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteExperiment); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteExperiment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteExperiment, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteModelQualityJobDefinition", + AWS_OPERATION_CHECK_PTR(meter, DeleteExperiment, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteExperiment", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteModelQualityJobDefinitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteExperimentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteModelQualityJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteExperiment, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteExperimentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateFlowDefinitionOutcome SageMakerClient::CreateFlowDefinition(const CreateFlowDefinitionRequest& request) const +DeleteModelQualityJobDefinitionOutcome SageMakerClient::DeleteModelQualityJobDefinition(const DeleteModelQualityJobDefinitionRequest& request) const { - AWS_OPERATION_GUARD(CreateFlowDefinition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteModelQualityJobDefinition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateFlowDefinition", + AWS_OPERATION_CHECK_PTR(meter, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteModelQualityJobDefinition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateFlowDefinitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteModelQualityJobDefinitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateFlowDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteModelQualityJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -956,26 +930,26 @@ CreateCodeRepositoryOutcome SageMakerClient::CreateCodeRepository(const CreateCo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteProjectOutcome SageMakerClient::DeleteProject(const DeleteProjectRequest& request) const +CreateFlowDefinitionOutcome SageMakerClient::CreateFlowDefinition(const CreateFlowDefinitionRequest& request) const { - AWS_OPERATION_GUARD(DeleteProject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteProject, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateFlowDefinition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteProject", + AWS_OPERATION_CHECK_PTR(meter, CreateFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateFlowDefinition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteProjectOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateFlowDefinitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteProjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateFlowDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1008,6 +982,32 @@ CreateNotebookInstanceOutcome SageMakerClient::CreateNotebookInstance(const Crea {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteProjectOutcome SageMakerClient::DeleteProject(const DeleteProjectRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteProject); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteProject, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteProject, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteProject", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteProjectOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteProjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeletePipelineOutcome SageMakerClient::DeletePipeline(const DeletePipelineRequest& request) const { AWS_OPERATION_GUARD(DeletePipeline); @@ -1086,130 +1086,130 @@ DeleteActionOutcome SageMakerClient::DeleteAction(const DeleteActionRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteHubOutcome SageMakerClient::DeleteHub(const DeleteHubRequest& request) const +CreateTransformJobOutcome SageMakerClient::CreateTransformJob(const CreateTransformJobRequest& request) const { - AWS_OPERATION_GUARD(DeleteHub); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteHub, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateTransformJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTransformJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTransformJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteHub, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteHub", + AWS_OPERATION_CHECK_PTR(meter, CreateTransformJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTransformJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteHubOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTransformJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteHubOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTransformJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateTransformJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateTransformJobOutcome SageMakerClient::CreateTransformJob(const CreateTransformJobRequest& request) const +DeleteHubOutcome SageMakerClient::DeleteHub(const DeleteHubRequest& request) const { - AWS_OPERATION_GUARD(CreateTransformJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTransformJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTransformJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteHub); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteHub, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateTransformJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTransformJob", + AWS_OPERATION_CHECK_PTR(meter, DeleteHub, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteHub", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateTransformJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteHubOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTransformJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateTransformJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteHubOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteStudioLifecycleConfigOutcome SageMakerClient::DeleteStudioLifecycleConfig(const DeleteStudioLifecycleConfigRequest& request) const +DeleteMonitoringScheduleOutcome SageMakerClient::DeleteMonitoringSchedule(const DeleteMonitoringScheduleRequest& request) const { - AWS_OPERATION_GUARD(DeleteStudioLifecycleConfig); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteMonitoringSchedule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteStudioLifecycleConfig", + AWS_OPERATION_CHECK_PTR(meter, DeleteMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteMonitoringSchedule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteStudioLifecycleConfigOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteMonitoringScheduleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteStudioLifecycleConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteMonitoringScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteMonitoringScheduleOutcome SageMakerClient::DeleteMonitoringSchedule(const DeleteMonitoringScheduleRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteMonitoringSchedule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); +DeleteStudioLifecycleConfigOutcome SageMakerClient::DeleteStudioLifecycleConfig(const DeleteStudioLifecycleConfigRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteStudioLifecycleConfig); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteMonitoringSchedule", + AWS_OPERATION_CHECK_PTR(meter, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteStudioLifecycleConfig", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteMonitoringScheduleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteStudioLifecycleConfigOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteMonitoringScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteStudioLifecycleConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteStudioLifecycleConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTrialComponentOutcome SageMakerClient::DeleteTrialComponent(const DeleteTrialComponentRequest& request) const +BatchDescribeModelPackageOutcome SageMakerClient::BatchDescribeModelPackage(const BatchDescribeModelPackageRequest& request) const { - AWS_OPERATION_GUARD(DeleteTrialComponent); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(BatchDescribeModelPackage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchDescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchDescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrialComponent", + AWS_OPERATION_CHECK_PTR(meter, BatchDescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchDescribeModelPackage", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTrialComponentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> BatchDescribeModelPackageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTrialComponentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchDescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return BatchDescribeModelPackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1242,78 +1242,78 @@ DeleteModelPackageOutcome SageMakerClient::DeleteModelPackage(const DeleteModelP {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -BatchDescribeModelPackageOutcome SageMakerClient::BatchDescribeModelPackage(const BatchDescribeModelPackageRequest& request) const +DeleteTrialComponentOutcome SageMakerClient::DeleteTrialComponent(const DeleteTrialComponentRequest& request) const { - AWS_OPERATION_GUARD(BatchDescribeModelPackage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchDescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchDescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTrialComponent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, BatchDescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchDescribeModelPackage", + AWS_OPERATION_CHECK_PTR(meter, DeleteTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrialComponent", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> BatchDescribeModelPackageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTrialComponentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchDescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return BatchDescribeModelPackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTrialComponentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateModelCardOutcome SageMakerClient::CreateModelCard(const CreateModelCardRequest& request) const +CreateEdgeDeploymentPlanOutcome SageMakerClient::CreateEdgeDeploymentPlan(const CreateEdgeDeploymentPlanRequest& request) const { - AWS_OPERATION_GUARD(CreateModelCard); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateEdgeDeploymentPlan); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelCard", + AWS_OPERATION_CHECK_PTR(meter, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateEdgeDeploymentPlan", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateModelCardOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateEdgeDeploymentPlanOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateModelCardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateEdgeDeploymentPlanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateEdgeDeploymentPlanOutcome SageMakerClient::CreateEdgeDeploymentPlan(const CreateEdgeDeploymentPlanRequest& request) const +CreateModelCardOutcome SageMakerClient::CreateModelCard(const CreateModelCardRequest& request) const { - AWS_OPERATION_GUARD(CreateEdgeDeploymentPlan); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateModelCard); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateEdgeDeploymentPlan", + AWS_OPERATION_CHECK_PTR(meter, CreateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelCard", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateEdgeDeploymentPlanOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateModelCardOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateEdgeDeploymentPlanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateModelCardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1762,52 +1762,52 @@ DeleteNotebookInstanceLifecycleConfigOutcome SageMakerClient::DeleteNotebookInst {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateLabelingJobOutcome SageMakerClient::CreateLabelingJob(const CreateLabelingJobRequest& request) const +CreateDomainOutcome SageMakerClient::CreateDomain(const CreateDomainRequest& request) const { - AWS_OPERATION_GUARD(CreateLabelingJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLabelingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLabelingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateDomain); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateLabelingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateLabelingJob", + AWS_OPERATION_CHECK_PTR(meter, CreateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDomain", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateLabelingJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateDomainOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLabelingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateLabelingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateDomainOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateDomainOutcome SageMakerClient::CreateDomain(const CreateDomainRequest& request) const +CreateLabelingJobOutcome SageMakerClient::CreateLabelingJob(const CreateLabelingJobRequest& request) const { - AWS_OPERATION_GUARD(CreateDomain); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateLabelingJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateLabelingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateLabelingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDomain", + AWS_OPERATION_CHECK_PTR(meter, CreateLabelingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateLabelingJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateDomainOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateLabelingJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateDomainOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateLabelingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateLabelingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2334,52 +2334,52 @@ DeleteFlowDefinitionOutcome SageMakerClient::DeleteFlowDefinition(const DeleteFl {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreatePipelineOutcome SageMakerClient::CreatePipeline(const CreatePipelineRequest& request) const +AssociateTrialComponentOutcome SageMakerClient::AssociateTrialComponent(const AssociateTrialComponentRequest& request) const { - AWS_OPERATION_GUARD(CreatePipeline); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(AssociateTrialComponent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePipeline", + AWS_OPERATION_CHECK_PTR(meter, AssociateTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateTrialComponent", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreatePipelineOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> AssociateTrialComponentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreatePipelineOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return AssociateTrialComponentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -AssociateTrialComponentOutcome SageMakerClient::AssociateTrialComponent(const AssociateTrialComponentRequest& request) const +CreatePipelineOutcome SageMakerClient::CreatePipeline(const CreatePipelineRequest& request) const { - AWS_OPERATION_GUARD(AssociateTrialComponent); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreatePipeline); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, AssociateTrialComponent, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateTrialComponent", + AWS_OPERATION_CHECK_PTR(meter, CreatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreatePipeline", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> AssociateTrialComponentOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreatePipelineOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, AssociateTrialComponent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return AssociateTrialComponentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreatePipelineOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2594,52 +2594,52 @@ DeleteHumanTaskUiOutcome SageMakerClient::DeleteHumanTaskUi(const DeleteHumanTas {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateModelExplainabilityJobDefinitionOutcome SageMakerClient::CreateModelExplainabilityJobDefinition(const CreateModelExplainabilityJobDefinitionRequest& request) const +CreateModelCardExportJobOutcome SageMakerClient::CreateModelCardExportJob(const CreateModelCardExportJobRequest& request) const { - AWS_OPERATION_GUARD(CreateModelExplainabilityJobDefinition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateModelCardExportJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelCardExportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelCardExportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelExplainabilityJobDefinition", + AWS_OPERATION_CHECK_PTR(meter, CreateModelCardExportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelCardExportJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateModelExplainabilityJobDefinitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateModelCardExportJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateModelExplainabilityJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelCardExportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateModelCardExportJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -CreateModelCardExportJobOutcome SageMakerClient::CreateModelCardExportJob(const CreateModelCardExportJobRequest& request) const +CreateModelExplainabilityJobDefinitionOutcome SageMakerClient::CreateModelExplainabilityJobDefinition(const CreateModelExplainabilityJobDefinitionRequest& request) const { - AWS_OPERATION_GUARD(CreateModelCardExportJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelCardExportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelCardExportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(CreateModelExplainabilityJobDefinition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateModelCardExportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelCardExportJob", + AWS_OPERATION_CHECK_PTR(meter, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelExplainabilityJobDefinition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> CreateModelCardExportJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateModelExplainabilityJobDefinitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelCardExportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return CreateModelCardExportJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelExplainabilityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateModelExplainabilityJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2776,52 +2776,52 @@ CreateModelQualityJobDefinitionOutcome SageMakerClient::CreateModelQualityJobDef {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteTrialOutcome SageMakerClient::DeleteTrial(const DeleteTrialRequest& request) const +DeleteEdgeDeploymentPlanOutcome SageMakerClient::DeleteEdgeDeploymentPlan(const DeleteEdgeDeploymentPlanRequest& request) const { - AWS_OPERATION_GUARD(DeleteTrial); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrial, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrial, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteEdgeDeploymentPlan); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteTrial, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrial", + AWS_OPERATION_CHECK_PTR(meter, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteEdgeDeploymentPlan", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteTrialOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteEdgeDeploymentPlanOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrial, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteTrialOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteEdgeDeploymentPlanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteEdgeDeploymentPlanOutcome SageMakerClient::DeleteEdgeDeploymentPlan(const DeleteEdgeDeploymentPlanRequest& request) const +DeleteTrialOutcome SageMakerClient::DeleteTrial(const DeleteTrialRequest& request) const { - AWS_OPERATION_GUARD(DeleteEdgeDeploymentPlan); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteTrial); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrial, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrial, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteEdgeDeploymentPlan", + AWS_OPERATION_CHECK_PTR(meter, DeleteTrial, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrial", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteEdgeDeploymentPlanOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTrialOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteEdgeDeploymentPlanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrial, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTrialOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp index 84676b44772..f2201b7f1c7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp @@ -26,11 +26,11 @@ #include #include #include -#include #include +#include #include -#include #include +#include #include #include #include @@ -46,15 +46,15 @@ #include #include #include -#include #include -#include +#include #include -#include +#include #include +#include #include -#include #include +#include #include #include #include @@ -65,41 +65,41 @@ #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include -#include #include -#include +#include #include +#include #include #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include -#include #include +#include #include #include #include #include -#include -#include #include +#include +#include #include #include #include @@ -108,16 +108,16 @@ #include #include #include -#include #include +#include #include #include #include -#include #include +#include #include -#include #include +#include #include #include #include @@ -266,52 +266,52 @@ DescribePipelineExecutionOutcome SageMakerClient::DescribePipelineExecution(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCodeRepositoriesOutcome SageMakerClient::ListCodeRepositories(const ListCodeRepositoriesRequest& request) const +DescribeModelPackageOutcome SageMakerClient::DescribeModelPackage(const DescribeModelPackageRequest& request) const { - AWS_OPERATION_GUARD(ListCodeRepositories); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeModelPackage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCodeRepositories", + AWS_OPERATION_CHECK_PTR(meter, DescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeModelPackage", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListCodeRepositoriesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeModelPackageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListCodeRepositoriesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeModelPackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeModelPackageOutcome SageMakerClient::DescribeModelPackage(const DescribeModelPackageRequest& request) const +ListCodeRepositoriesOutcome SageMakerClient::ListCodeRepositories(const ListCodeRepositoriesRequest& request) const { - AWS_OPERATION_GUARD(DescribeModelPackage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListCodeRepositories); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeModelPackage", + AWS_OPERATION_CHECK_PTR(meter, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCodeRepositories", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeModelPackageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCodeRepositoriesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeModelPackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListCodeRepositoriesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -344,52 +344,52 @@ DeregisterDevicesOutcome SageMakerClient::DeregisterDevices(const DeregisterDevi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetLineageGroupPolicyOutcome SageMakerClient::GetLineageGroupPolicy(const GetLineageGroupPolicyRequest& request) const +EnableSagemakerServicecatalogPortfolioOutcome SageMakerClient::EnableSagemakerServicecatalogPortfolio(const EnableSagemakerServicecatalogPortfolioRequest& request) const { - AWS_OPERATION_GUARD(GetLineageGroupPolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetLineageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetLineageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(EnableSagemakerServicecatalogPortfolio); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetLineageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetLineageGroupPolicy", + AWS_OPERATION_CHECK_PTR(meter, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".EnableSagemakerServicecatalogPortfolio", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetLineageGroupPolicyOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> EnableSagemakerServicecatalogPortfolioOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetLineageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetLineageGroupPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableSagemakerServicecatalogPortfolioOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -EnableSagemakerServicecatalogPortfolioOutcome SageMakerClient::EnableSagemakerServicecatalogPortfolio(const EnableSagemakerServicecatalogPortfolioRequest& request) const +GetLineageGroupPolicyOutcome SageMakerClient::GetLineageGroupPolicy(const GetLineageGroupPolicyRequest& request) const { - AWS_OPERATION_GUARD(EnableSagemakerServicecatalogPortfolio); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetLineageGroupPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetLineageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetLineageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".EnableSagemakerServicecatalogPortfolio", + AWS_OPERATION_CHECK_PTR(meter, GetLineageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetLineageGroupPolicy", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> EnableSagemakerServicecatalogPortfolioOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetLineageGroupPolicyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, EnableSagemakerServicecatalogPortfolio, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return EnableSagemakerServicecatalogPortfolioOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetLineageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetLineageGroupPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -786,32 +786,6 @@ DescribeAppImageConfigOutcome SageMakerClient::DescribeAppImageConfig(const Desc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeWorkforceOutcome SageMakerClient::DescribeWorkforce(const DescribeWorkforceRequest& request) const -{ - AWS_OPERATION_GUARD(DescribeWorkforce); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeWorkforce, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeWorkforce, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeWorkforce, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeWorkforce", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeWorkforceOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeWorkforce, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeWorkforceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - DescribeLineageGroupOutcome SageMakerClient::DescribeLineageGroup(const DescribeLineageGroupRequest& request) const { AWS_OPERATION_GUARD(DescribeLineageGroup); @@ -838,26 +812,26 @@ DescribeLineageGroupOutcome SageMakerClient::DescribeLineageGroup(const Describe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeModelBiasJobDefinitionOutcome SageMakerClient::DescribeModelBiasJobDefinition(const DescribeModelBiasJobDefinitionRequest& request) const +DescribeWorkforceOutcome SageMakerClient::DescribeWorkforce(const DescribeWorkforceRequest& request) const { - AWS_OPERATION_GUARD(DescribeModelBiasJobDefinition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeWorkforce); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeWorkforce, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeWorkforce, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeModelBiasJobDefinition", + AWS_OPERATION_CHECK_PTR(meter, DescribeWorkforce, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeWorkforce", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeModelBiasJobDefinitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeWorkforceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeModelBiasJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeWorkforce, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeWorkforceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -890,26 +864,26 @@ DescribeLabelingJobOutcome SageMakerClient::DescribeLabelingJob(const DescribeLa {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListEdgePackagingJobsOutcome SageMakerClient::ListEdgePackagingJobs(const ListEdgePackagingJobsRequest& request) const +DescribeModelBiasJobDefinitionOutcome SageMakerClient::DescribeModelBiasJobDefinition(const DescribeModelBiasJobDefinitionRequest& request) const { - AWS_OPERATION_GUARD(ListEdgePackagingJobs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListEdgePackagingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListEdgePackagingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeModelBiasJobDefinition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListEdgePackagingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListEdgePackagingJobs", + AWS_OPERATION_CHECK_PTR(meter, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeModelBiasJobDefinition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListEdgePackagingJobsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeModelBiasJobDefinitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListEdgePackagingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListEdgePackagingJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeModelBiasJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeModelBiasJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -942,52 +916,52 @@ ListEdgeDeploymentPlansOutcome SageMakerClient::ListEdgeDeploymentPlans(const Li {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListExperimentsOutcome SageMakerClient::ListExperiments(const ListExperimentsRequest& request) const +ListEdgePackagingJobsOutcome SageMakerClient::ListEdgePackagingJobs(const ListEdgePackagingJobsRequest& request) const { - AWS_OPERATION_GUARD(ListExperiments); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListExperiments, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListExperiments, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListEdgePackagingJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListEdgePackagingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListEdgePackagingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListExperiments, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListExperiments", + AWS_OPERATION_CHECK_PTR(meter, ListEdgePackagingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListEdgePackagingJobs", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListExperimentsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListEdgePackagingJobsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListExperiments, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListExperimentsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListEdgePackagingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListEdgePackagingJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetDeviceFleetReportOutcome SageMakerClient::GetDeviceFleetReport(const GetDeviceFleetReportRequest& request) const +ListExperimentsOutcome SageMakerClient::ListExperiments(const ListExperimentsRequest& request) const { - AWS_OPERATION_GUARD(GetDeviceFleetReport); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDeviceFleetReport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDeviceFleetReport, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListExperiments); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListExperiments, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListExperiments, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetDeviceFleetReport, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetDeviceFleetReport", + AWS_OPERATION_CHECK_PTR(meter, ListExperiments, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListExperiments", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetDeviceFleetReportOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListExperimentsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetDeviceFleetReport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetDeviceFleetReportOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListExperiments, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListExperimentsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1020,6 +994,32 @@ DisassociateTrialComponentOutcome SageMakerClient::DisassociateTrialComponent(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetDeviceFleetReportOutcome SageMakerClient::GetDeviceFleetReport(const GetDeviceFleetReportRequest& request) const +{ + AWS_OPERATION_GUARD(GetDeviceFleetReport); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDeviceFleetReport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDeviceFleetReport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetDeviceFleetReport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetDeviceFleetReport", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetDeviceFleetReportOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetDeviceFleetReport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetDeviceFleetReportOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeTrainingJobOutcome SageMakerClient::DescribeTrainingJob(const DescribeTrainingJobRequest& request) const { AWS_OPERATION_GUARD(DescribeTrainingJob); @@ -1280,52 +1280,52 @@ DescribeModelCardOutcome SageMakerClient::DescribeModelCard(const DescribeModelC {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListFeatureGroupsOutcome SageMakerClient::ListFeatureGroups(const ListFeatureGroupsRequest& request) const +DescribeHyperParameterTuningJobOutcome SageMakerClient::DescribeHyperParameterTuningJob(const DescribeHyperParameterTuningJobRequest& request) const { - AWS_OPERATION_GUARD(ListFeatureGroups); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListFeatureGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListFeatureGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeHyperParameterTuningJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListFeatureGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListFeatureGroups", + AWS_OPERATION_CHECK_PTR(meter, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeHyperParameterTuningJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListFeatureGroupsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeHyperParameterTuningJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListFeatureGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListFeatureGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeHyperParameterTuningJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeHyperParameterTuningJobOutcome SageMakerClient::DescribeHyperParameterTuningJob(const DescribeHyperParameterTuningJobRequest& request) const +ListFeatureGroupsOutcome SageMakerClient::ListFeatureGroups(const ListFeatureGroupsRequest& request) const { - AWS_OPERATION_GUARD(DescribeHyperParameterTuningJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListFeatureGroups); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListFeatureGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListFeatureGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeHyperParameterTuningJob", + AWS_OPERATION_CHECK_PTR(meter, ListFeatureGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListFeatureGroups", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeHyperParameterTuningJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListFeatureGroupsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeHyperParameterTuningJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeHyperParameterTuningJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListFeatureGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListFeatureGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1410,32 +1410,6 @@ DescribeTrialComponentOutcome SageMakerClient::DescribeTrialComponent(const Desc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListDataQualityJobDefinitionsOutcome SageMakerClient::ListDataQualityJobDefinitions(const ListDataQualityJobDefinitionsRequest& request) const -{ - AWS_OPERATION_GUARD(ListDataQualityJobDefinitions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDataQualityJobDefinitions", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListDataQualityJobDefinitionsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListDataQualityJobDefinitionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ListArtifactsOutcome SageMakerClient::ListArtifacts(const ListArtifactsRequest& request) const { AWS_OPERATION_GUARD(ListArtifacts); @@ -1462,52 +1436,52 @@ ListArtifactsOutcome SageMakerClient::ListArtifacts(const ListArtifactsRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribePipelineDefinitionForExecutionOutcome SageMakerClient::DescribePipelineDefinitionForExecution(const DescribePipelineDefinitionForExecutionRequest& request) const +ListDataQualityJobDefinitionsOutcome SageMakerClient::ListDataQualityJobDefinitions(const ListDataQualityJobDefinitionsRequest& request) const { - AWS_OPERATION_GUARD(DescribePipelineDefinitionForExecution); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListDataQualityJobDefinitions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribePipelineDefinitionForExecution", + AWS_OPERATION_CHECK_PTR(meter, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDataQualityJobDefinitions", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribePipelineDefinitionForExecutionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListDataQualityJobDefinitionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribePipelineDefinitionForExecutionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListDataQualityJobDefinitions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListDataQualityJobDefinitionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeProcessingJobOutcome SageMakerClient::DescribeProcessingJob(const DescribeProcessingJobRequest& request) const +DescribePipelineDefinitionForExecutionOutcome SageMakerClient::DescribePipelineDefinitionForExecution(const DescribePipelineDefinitionForExecutionRequest& request) const { - AWS_OPERATION_GUARD(DescribeProcessingJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProcessingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProcessingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribePipelineDefinitionForExecution); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeProcessingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProcessingJob", + AWS_OPERATION_CHECK_PTR(meter, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribePipelineDefinitionForExecution", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeProcessingJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribePipelineDefinitionForExecutionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeProcessingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeProcessingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribePipelineDefinitionForExecution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribePipelineDefinitionForExecutionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1540,26 +1514,26 @@ DeleteWorkforceOutcome SageMakerClient::DeleteWorkforce(const DeleteWorkforceReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetSearchSuggestionsOutcome SageMakerClient::GetSearchSuggestions(const GetSearchSuggestionsRequest& request) const +DescribeProcessingJobOutcome SageMakerClient::DescribeProcessingJob(const DescribeProcessingJobRequest& request) const { - AWS_OPERATION_GUARD(GetSearchSuggestions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSearchSuggestions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSearchSuggestions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeProcessingJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProcessingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProcessingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetSearchSuggestions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSearchSuggestions", + AWS_OPERATION_CHECK_PTR(meter, DescribeProcessingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProcessingJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetSearchSuggestionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeProcessingJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSearchSuggestions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetSearchSuggestionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeProcessingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeProcessingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1592,6 +1566,32 @@ DescribeAutoMLJobOutcome SageMakerClient::DescribeAutoMLJob(const DescribeAutoML {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetSearchSuggestionsOutcome SageMakerClient::GetSearchSuggestions(const GetSearchSuggestionsRequest& request) const +{ + AWS_OPERATION_GUARD(GetSearchSuggestions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSearchSuggestions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSearchSuggestions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetSearchSuggestions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSearchSuggestions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetSearchSuggestionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSearchSuggestions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetSearchSuggestionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeProjectOutcome SageMakerClient::DescribeProject(const DescribeProjectRequest& request) const { AWS_OPERATION_GUARD(DescribeProject); @@ -1696,52 +1696,52 @@ ListAssociationsOutcome SageMakerClient::ListAssociations(const ListAssociations {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListActionsOutcome SageMakerClient::ListActions(const ListActionsRequest& request) const +GetSagemakerServicecatalogPortfolioStatusOutcome SageMakerClient::GetSagemakerServicecatalogPortfolioStatus(const GetSagemakerServicecatalogPortfolioStatusRequest& request) const { - AWS_OPERATION_GUARD(ListActions); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListActions, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetSagemakerServicecatalogPortfolioStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListActions, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListActions", + AWS_OPERATION_CHECK_PTR(meter, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSagemakerServicecatalogPortfolioStatus", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListActionsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetSagemakerServicecatalogPortfolioStatusOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListActionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetSagemakerServicecatalogPortfolioStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetSagemakerServicecatalogPortfolioStatusOutcome SageMakerClient::GetSagemakerServicecatalogPortfolioStatus(const GetSagemakerServicecatalogPortfolioStatusRequest& request) const +ListActionsOutcome SageMakerClient::ListActions(const ListActionsRequest& request) const { - AWS_OPERATION_GUARD(GetSagemakerServicecatalogPortfolioStatus); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListActions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListActions, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetSagemakerServicecatalogPortfolioStatus", + AWS_OPERATION_CHECK_PTR(meter, ListActions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListActions", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetSagemakerServicecatalogPortfolioStatusOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListActionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetSagemakerServicecatalogPortfolioStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetSagemakerServicecatalogPortfolioStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListActions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListActionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1878,52 +1878,52 @@ DescribeFeatureMetadataOutcome SageMakerClient::DescribeFeatureMetadata(const De {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListAppImageConfigsOutcome SageMakerClient::ListAppImageConfigs(const ListAppImageConfigsRequest& request) const +DescribeAutoMLJobV2Outcome SageMakerClient::DescribeAutoMLJobV2(const DescribeAutoMLJobV2Request& request) const { - AWS_OPERATION_GUARD(ListAppImageConfigs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAppImageConfigs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAppImageConfigs, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeAutoMLJobV2); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAutoMLJobV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAutoMLJobV2, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListAppImageConfigs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAppImageConfigs", + AWS_OPERATION_CHECK_PTR(meter, DescribeAutoMLJobV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeAutoMLJobV2", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListAppImageConfigsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeAutoMLJobV2Outcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAppImageConfigs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListAppImageConfigsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAutoMLJobV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeAutoMLJobV2Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeAutoMLJobV2Outcome SageMakerClient::DescribeAutoMLJobV2(const DescribeAutoMLJobV2Request& request) const +ListAppImageConfigsOutcome SageMakerClient::ListAppImageConfigs(const ListAppImageConfigsRequest& request) const { - AWS_OPERATION_GUARD(DescribeAutoMLJobV2); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeAutoMLJobV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeAutoMLJobV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListAppImageConfigs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAppImageConfigs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAppImageConfigs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeAutoMLJobV2, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeAutoMLJobV2", + AWS_OPERATION_CHECK_PTR(meter, ListAppImageConfigs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAppImageConfigs", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeAutoMLJobV2Outcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAppImageConfigsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeAutoMLJobV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeAutoMLJobV2Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAppImageConfigs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListAppImageConfigsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1956,52 +1956,52 @@ ListEndpointConfigsOutcome SageMakerClient::ListEndpointConfigs(const ListEndpoi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeImageOutcome SageMakerClient::DescribeImage(const DescribeImageRequest& request) const +DeleteUserProfileOutcome SageMakerClient::DeleteUserProfile(const DeleteUserProfileRequest& request) const { - AWS_OPERATION_GUARD(DescribeImage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeImage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DeleteUserProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteUserProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeImage, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeImage", + AWS_OPERATION_CHECK_PTR(meter, DeleteUserProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteUserProfile", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeImageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteUserProfileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeImageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteUserProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteUserProfileOutcome SageMakerClient::DeleteUserProfile(const DeleteUserProfileRequest& request) const +DescribeImageOutcome SageMakerClient::DescribeImage(const DescribeImageRequest& request) const { - AWS_OPERATION_GUARD(DeleteUserProfile); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteUserProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeImage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeImage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteUserProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteUserProfile", + AWS_OPERATION_CHECK_PTR(meter, DescribeImage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeImage", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteUserProfileOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeImageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteUserProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteUserProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeImage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeImageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2112,26 +2112,26 @@ DescribeSpaceOutcome SageMakerClient::DescribeSpace(const DescribeSpaceRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetModelPackageGroupPolicyOutcome SageMakerClient::GetModelPackageGroupPolicy(const GetModelPackageGroupPolicyRequest& request) const +DescribeModelQualityJobDefinitionOutcome SageMakerClient::DescribeModelQualityJobDefinition(const DescribeModelQualityJobDefinitionRequest& request) const { - AWS_OPERATION_GUARD(GetModelPackageGroupPolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeModelQualityJobDefinition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetModelPackageGroupPolicy", + AWS_OPERATION_CHECK_PTR(meter, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeModelQualityJobDefinition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetModelPackageGroupPolicyOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeModelQualityJobDefinitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return GetModelPackageGroupPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeModelQualityJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2164,26 +2164,26 @@ DescribeTrialOutcome SageMakerClient::DescribeTrial(const DescribeTrialRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeModelQualityJobDefinitionOutcome SageMakerClient::DescribeModelQualityJobDefinition(const DescribeModelQualityJobDefinitionRequest& request) const +GetModelPackageGroupPolicyOutcome SageMakerClient::GetModelPackageGroupPolicy(const GetModelPackageGroupPolicyRequest& request) const { - AWS_OPERATION_GUARD(DescribeModelQualityJobDefinition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(GetModelPackageGroupPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeModelQualityJobDefinition", + AWS_OPERATION_CHECK_PTR(meter, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetModelPackageGroupPolicy", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeModelQualityJobDefinitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> GetModelPackageGroupPolicyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeModelQualityJobDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeModelQualityJobDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetModelPackageGroupPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2398,52 +2398,52 @@ DescribeArtifactOutcome SageMakerClient::DescribeArtifact(const DescribeArtifact {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeEndpointOutcome SageMakerClient::DescribeEndpoint(const DescribeEndpointRequest& request) const +DescribeAppOutcome SageMakerClient::DescribeApp(const DescribeAppRequest& request) const { - AWS_OPERATION_GUARD(DescribeEndpoint); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeApp); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeApp, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeApp, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeEndpoint", + AWS_OPERATION_CHECK_PTR(meter, DescribeApp, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeApp", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeEndpointOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeAppOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeApp, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeAppOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeAppOutcome SageMakerClient::DescribeApp(const DescribeAppRequest& request) const +DescribeEndpointOutcome SageMakerClient::DescribeEndpoint(const DescribeEndpointRequest& request) const { - AWS_OPERATION_GUARD(DescribeApp); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeApp, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeApp, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeEndpoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeApp, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeApp", + AWS_OPERATION_CHECK_PTR(meter, DescribeEndpoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeEndpoint", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeAppOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeApp, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeAppOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeEndpoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeEndpointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2528,52 +2528,52 @@ GetScalingConfigurationRecommendationOutcome SageMakerClient::GetScalingConfigur {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCandidatesForAutoMLJobOutcome SageMakerClient::ListCandidatesForAutoMLJob(const ListCandidatesForAutoMLJobRequest& request) const +DescribeFlowDefinitionOutcome SageMakerClient::DescribeFlowDefinition(const DescribeFlowDefinitionRequest& request) const { - AWS_OPERATION_GUARD(ListCandidatesForAutoMLJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeFlowDefinition); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCandidatesForAutoMLJob", + AWS_OPERATION_CHECK_PTR(meter, DescribeFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeFlowDefinition", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListCandidatesForAutoMLJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeFlowDefinitionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListCandidatesForAutoMLJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeFlowDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeFlowDefinitionOutcome SageMakerClient::DescribeFlowDefinition(const DescribeFlowDefinitionRequest& request) const +ListCandidatesForAutoMLJobOutcome SageMakerClient::ListCandidatesForAutoMLJob(const ListCandidatesForAutoMLJobRequest& request) const { - AWS_OPERATION_GUARD(DescribeFlowDefinition); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListCandidatesForAutoMLJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeFlowDefinition, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeFlowDefinition", + AWS_OPERATION_CHECK_PTR(meter, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCandidatesForAutoMLJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeFlowDefinitionOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCandidatesForAutoMLJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeFlowDefinition, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeFlowDefinitionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCandidatesForAutoMLJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListCandidatesForAutoMLJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2606,52 +2606,52 @@ DescribeCodeRepositoryOutcome SageMakerClient::DescribeCodeRepository(const Desc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListHubsOutcome SageMakerClient::ListHubs(const ListHubsRequest& request) const +DescribeEdgeDeploymentPlanOutcome SageMakerClient::DescribeEdgeDeploymentPlan(const DescribeEdgeDeploymentPlanRequest& request) const { - AWS_OPERATION_GUARD(ListHubs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListHubs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListHubs, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DescribeEdgeDeploymentPlan); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListHubs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListHubs", + AWS_OPERATION_CHECK_PTR(meter, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeEdgeDeploymentPlan", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListHubsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeEdgeDeploymentPlanOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListHubs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListHubsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeEdgeDeploymentPlanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DescribeEdgeDeploymentPlanOutcome SageMakerClient::DescribeEdgeDeploymentPlan(const DescribeEdgeDeploymentPlanRequest& request) const +ListHubsOutcome SageMakerClient::ListHubs(const ListHubsRequest& request) const { - AWS_OPERATION_GUARD(DescribeEdgeDeploymentPlan); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListHubs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListHubs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListHubs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeEdgeDeploymentPlan", + AWS_OPERATION_CHECK_PTR(meter, ListHubs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListHubs", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DescribeEdgeDeploymentPlanOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListHubsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeEdgeDeploymentPlan, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DescribeEdgeDeploymentPlanOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListHubs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListHubsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp index 4c2bb05b287..12f86d8096e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp @@ -22,20 +22,20 @@ #include #include #include -#include #include -#include +#include #include +#include #include -#include #include +#include #include -#include #include +#include #include #include -#include #include +#include #include #include #include @@ -44,15 +44,15 @@ #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include #include #include #include @@ -61,12 +61,12 @@ #include #include #include -#include -#include #include +#include +#include #include -#include #include +#include #include #include #include @@ -75,16 +75,16 @@ #include #include #include -#include #include +#include #include #include #include #include #include #include -#include #include +#include #include #include #include @@ -100,17 +100,17 @@ #include #include #include -#include #include +#include #include #include -#include #include +#include #include #include #include -#include #include +#include #include #include #include @@ -162,32 +162,6 @@ ListModelBiasJobDefinitionsOutcome SageMakerClient::ListModelBiasJobDefinitions( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateSpaceOutcome SageMakerClient::UpdateSpace(const UpdateSpaceRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateSpace); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSpace", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateSpaceOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateSpaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - StopInferenceExperimentOutcome SageMakerClient::StopInferenceExperiment(const StopInferenceExperimentRequest& request) const { AWS_OPERATION_GUARD(StopInferenceExperiment); @@ -214,26 +188,26 @@ StopInferenceExperimentOutcome SageMakerClient::StopInferenceExperiment(const St {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateHubOutcome SageMakerClient::UpdateHub(const UpdateHubRequest& request) const +UpdateSpaceOutcome SageMakerClient::UpdateSpace(const UpdateSpaceRequest& request) const { - AWS_OPERATION_GUARD(UpdateHub); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateHub, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateSpace); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateHub, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateHub", + AWS_OPERATION_CHECK_PTR(meter, UpdateSpace, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSpace", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateHubOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateSpaceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateHubOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateSpace, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateSpaceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -266,52 +240,52 @@ ListModelPackageGroupsOutcome SageMakerClient::ListModelPackageGroups(const List {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListWorkforcesOutcome SageMakerClient::ListWorkforces(const ListWorkforcesRequest& request) const +UpdateHubOutcome SageMakerClient::UpdateHub(const UpdateHubRequest& request) const { - AWS_OPERATION_GUARD(ListWorkforces); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListWorkforces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListWorkforces, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateHub); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateHub, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListWorkforces, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListWorkforces", + AWS_OPERATION_CHECK_PTR(meter, UpdateHub, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateHub", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListWorkforcesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateHubOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListWorkforces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListWorkforcesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateHub, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateHubOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateModelPackageOutcome SageMakerClient::UpdateModelPackage(const UpdateModelPackageRequest& request) const +ListWorkforcesOutcome SageMakerClient::ListWorkforces(const ListWorkforcesRequest& request) const { - AWS_OPERATION_GUARD(UpdateModelPackage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListWorkforces); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListWorkforces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListWorkforces, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateModelPackage", + AWS_OPERATION_CHECK_PTR(meter, ListWorkforces, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListWorkforces", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateModelPackageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListWorkforcesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateModelPackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListWorkforces, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListWorkforcesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -344,52 +318,52 @@ StopEdgeDeploymentStageOutcome SageMakerClient::StopEdgeDeploymentStage(const St {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateNotebookInstanceOutcome SageMakerClient::UpdateNotebookInstance(const UpdateNotebookInstanceRequest& request) const +UpdateModelPackageOutcome SageMakerClient::UpdateModelPackage(const UpdateModelPackageRequest& request) const { - AWS_OPERATION_GUARD(UpdateNotebookInstance); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateNotebookInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateNotebookInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateModelPackage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateNotebookInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateNotebookInstance", + AWS_OPERATION_CHECK_PTR(meter, UpdateModelPackage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateModelPackage", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateNotebookInstanceOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateModelPackageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateNotebookInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateNotebookInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateModelPackage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateModelPackageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateTrainingJobOutcome SageMakerClient::UpdateTrainingJob(const UpdateTrainingJobRequest& request) const +UpdateNotebookInstanceOutcome SageMakerClient::UpdateNotebookInstance(const UpdateNotebookInstanceRequest& request) const { - AWS_OPERATION_GUARD(UpdateTrainingJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateTrainingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateTrainingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateNotebookInstance); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateNotebookInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateNotebookInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateTrainingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateTrainingJob", + AWS_OPERATION_CHECK_PTR(meter, UpdateNotebookInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateNotebookInstance", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateTrainingJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateNotebookInstanceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateTrainingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateTrainingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateNotebookInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateNotebookInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -422,6 +396,32 @@ ListModelCardVersionsOutcome SageMakerClient::ListModelCardVersions(const ListMo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateTrainingJobOutcome SageMakerClient::UpdateTrainingJob(const UpdateTrainingJobRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateTrainingJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateTrainingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateTrainingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateTrainingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateTrainingJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateTrainingJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateTrainingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateTrainingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListInferenceExperimentsOutcome SageMakerClient::ListInferenceExperiments(const ListInferenceExperimentsRequest& request) const { AWS_OPERATION_GUARD(ListInferenceExperiments); @@ -474,52 +474,52 @@ ListUserProfilesOutcome SageMakerClient::ListUserProfiles(const ListUserProfiles {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateFeatureGroupOutcome SageMakerClient::UpdateFeatureGroup(const UpdateFeatureGroupRequest& request) const +ListTrainingJobsOutcome SageMakerClient::ListTrainingJobs(const ListTrainingJobsRequest& request) const { - AWS_OPERATION_GUARD(UpdateFeatureGroup); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateFeatureGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateFeatureGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListTrainingJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrainingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrainingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateFeatureGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateFeatureGroup", + AWS_OPERATION_CHECK_PTR(meter, ListTrainingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrainingJobs", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateFeatureGroupOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTrainingJobsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateFeatureGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateFeatureGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrainingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListTrainingJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTrainingJobsOutcome SageMakerClient::ListTrainingJobs(const ListTrainingJobsRequest& request) const +UpdateFeatureGroupOutcome SageMakerClient::UpdateFeatureGroup(const UpdateFeatureGroupRequest& request) const { - AWS_OPERATION_GUARD(ListTrainingJobs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrainingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrainingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateFeatureGroup); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateFeatureGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateFeatureGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTrainingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrainingJobs", + AWS_OPERATION_CHECK_PTR(meter, UpdateFeatureGroup, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateFeatureGroup", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTrainingJobsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateFeatureGroupOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrainingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListTrainingJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateFeatureGroup, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateFeatureGroupOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -734,52 +734,52 @@ StartNotebookInstanceOutcome SageMakerClient::StartNotebookInstance(const StartN {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StartMonitoringScheduleOutcome SageMakerClient::StartMonitoringSchedule(const StartMonitoringScheduleRequest& request) const +RegisterDevicesOutcome SageMakerClient::RegisterDevices(const RegisterDevicesRequest& request) const { - AWS_OPERATION_GUARD(StartMonitoringSchedule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(RegisterDevices); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RegisterDevices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RegisterDevices, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartMonitoringSchedule", + AWS_OPERATION_CHECK_PTR(meter, RegisterDevices, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RegisterDevices", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartMonitoringScheduleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> RegisterDevicesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StartMonitoringScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RegisterDevices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return RegisterDevicesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -RegisterDevicesOutcome SageMakerClient::RegisterDevices(const RegisterDevicesRequest& request) const +StartMonitoringScheduleOutcome SageMakerClient::StartMonitoringSchedule(const StartMonitoringScheduleRequest& request) const { - AWS_OPERATION_GUARD(RegisterDevices); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, RegisterDevices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RegisterDevices, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StartMonitoringSchedule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, RegisterDevices, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RegisterDevices", + AWS_OPERATION_CHECK_PTR(meter, StartMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartMonitoringSchedule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> RegisterDevicesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StartMonitoringScheduleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RegisterDevices, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return RegisterDevicesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartMonitoringScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -916,52 +916,52 @@ StopProcessingJobOutcome SageMakerClient::StopProcessingJob(const StopProcessing {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdatePipelineOutcome SageMakerClient::UpdatePipeline(const UpdatePipelineRequest& request) const +ListTrialsOutcome SageMakerClient::ListTrials(const ListTrialsRequest& request) const { - AWS_OPERATION_GUARD(UpdatePipeline); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListTrials); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrials, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrials, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdatePipeline", + AWS_OPERATION_CHECK_PTR(meter, ListTrials, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrials", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdatePipelineOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTrialsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdatePipelineOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrials, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListTrialsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListTrialsOutcome SageMakerClient::ListTrials(const ListTrialsRequest& request) const +UpdatePipelineOutcome SageMakerClient::UpdatePipeline(const UpdatePipelineRequest& request) const { - AWS_OPERATION_GUARD(ListTrials); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrials, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrials, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdatePipeline); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListTrials, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrials", + AWS_OPERATION_CHECK_PTR(meter, UpdatePipeline, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdatePipeline", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListTrialsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdatePipelineOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrials, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListTrialsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdatePipeline, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdatePipelineOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1176,26 +1176,26 @@ StartEdgeDeploymentStageOutcome SageMakerClient::StartEdgeDeploymentStage(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateMonitoringScheduleOutcome SageMakerClient::UpdateMonitoringSchedule(const UpdateMonitoringScheduleRequest& request) const +ListLineageGroupsOutcome SageMakerClient::ListLineageGroups(const ListLineageGroupsRequest& request) const { - AWS_OPERATION_GUARD(UpdateMonitoringSchedule); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListLineageGroups); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLineageGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLineageGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateMonitoringSchedule", + AWS_OPERATION_CHECK_PTR(meter, ListLineageGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLineageGroups", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateMonitoringScheduleOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListLineageGroupsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateMonitoringScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListLineageGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListLineageGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1228,26 +1228,26 @@ ListTrainingJobsForHyperParameterTuningJobOutcome SageMakerClient::ListTrainingJ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListLineageGroupsOutcome SageMakerClient::ListLineageGroups(const ListLineageGroupsRequest& request) const -{ - AWS_OPERATION_GUARD(ListLineageGroups); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLineageGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLineageGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); +UpdateMonitoringScheduleOutcome SageMakerClient::UpdateMonitoringSchedule(const UpdateMonitoringScheduleRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateMonitoringSchedule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListLineageGroups, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLineageGroups", + AWS_OPERATION_CHECK_PTR(meter, UpdateMonitoringSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateMonitoringSchedule", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListLineageGroupsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateMonitoringScheduleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListLineageGroups, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListLineageGroupsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateMonitoringSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateMonitoringScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1280,52 +1280,52 @@ UpdateEndpointOutcome SageMakerClient::UpdateEndpoint(const UpdateEndpointReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateModelCardOutcome SageMakerClient::UpdateModelCard(const UpdateModelCardRequest& request) const +ListLabelingJobsOutcome SageMakerClient::ListLabelingJobs(const ListLabelingJobsRequest& request) const { - AWS_OPERATION_GUARD(UpdateModelCard); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListLabelingJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLabelingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLabelingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateModelCard", + AWS_OPERATION_CHECK_PTR(meter, ListLabelingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLabelingJobs", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateModelCardOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListLabelingJobsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateModelCardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListLabelingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListLabelingJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListLabelingJobsOutcome SageMakerClient::ListLabelingJobs(const ListLabelingJobsRequest& request) const +UpdateModelCardOutcome SageMakerClient::UpdateModelCard(const UpdateModelCardRequest& request) const { - AWS_OPERATION_GUARD(ListLabelingJobs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListLabelingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListLabelingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateModelCard); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListLabelingJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListLabelingJobs", + AWS_OPERATION_CHECK_PTR(meter, UpdateModelCard, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateModelCard", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListLabelingJobsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateModelCardOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListLabelingJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListLabelingJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateModelCard, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateModelCardOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1540,52 +1540,52 @@ StartInferenceExperimentOutcome SageMakerClient::StartInferenceExperiment(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -StopCompilationJobOutcome SageMakerClient::StopCompilationJob(const StopCompilationJobRequest& request) const +ListModelPackagesOutcome SageMakerClient::ListModelPackages(const ListModelPackagesRequest& request) const { - AWS_OPERATION_GUARD(StopCompilationJob); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopCompilationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopCompilationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListModelPackages); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StopCompilationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopCompilationJob", + AWS_OPERATION_CHECK_PTR(meter, ListModelPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelPackages", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StopCompilationJobOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListModelPackagesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopCompilationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return StopCompilationJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListModelPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListModelPackagesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListModelPackagesOutcome SageMakerClient::ListModelPackages(const ListModelPackagesRequest& request) const +StopCompilationJobOutcome SageMakerClient::StopCompilationJob(const StopCompilationJobRequest& request) const { - AWS_OPERATION_GUARD(ListModelPackages); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(StopCompilationJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopCompilationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopCompilationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListModelPackages, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelPackages", + AWS_OPERATION_CHECK_PTR(meter, StopCompilationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopCompilationJob", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListModelPackagesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> StopCompilationJobOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListModelPackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListModelPackagesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopCompilationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StopCompilationJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -1748,52 +1748,52 @@ UpdateNotebookInstanceLifecycleConfigOutcome SageMakerClient::UpdateNotebookInst {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -QueryLineageOutcome SageMakerClient::QueryLineage(const QueryLineageRequest& request) const +ListModelCardsOutcome SageMakerClient::ListModelCards(const ListModelCardsRequest& request) const { - AWS_OPERATION_GUARD(QueryLineage); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, QueryLineage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, QueryLineage, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListModelCards); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelCards, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelCards, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, QueryLineage, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".QueryLineage", + AWS_OPERATION_CHECK_PTR(meter, ListModelCards, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelCards", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> QueryLineageOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListModelCardsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, QueryLineage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return QueryLineageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListModelCards, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListModelCardsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListModelCardsOutcome SageMakerClient::ListModelCards(const ListModelCardsRequest& request) const +QueryLineageOutcome SageMakerClient::QueryLineage(const QueryLineageRequest& request) const { - AWS_OPERATION_GUARD(ListModelCards); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelCards, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelCards, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(QueryLineage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, QueryLineage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, QueryLineage, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListModelCards, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelCards", + AWS_OPERATION_CHECK_PTR(meter, QueryLineage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".QueryLineage", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListModelCardsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> QueryLineageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListModelCards, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListModelCardsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, QueryLineage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return QueryLineageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2190,52 +2190,52 @@ UpdateAppImageConfigOutcome SageMakerClient::UpdateAppImageConfig(const UpdateAp {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateFeatureMetadataOutcome SageMakerClient::UpdateFeatureMetadata(const UpdateFeatureMetadataRequest& request) const +SendPipelineExecutionStepFailureOutcome SageMakerClient::SendPipelineExecutionStepFailure(const SendPipelineExecutionStepFailureRequest& request) const { - AWS_OPERATION_GUARD(UpdateFeatureMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateFeatureMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateFeatureMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SendPipelineExecutionStepFailure); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateFeatureMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateFeatureMetadata", + AWS_OPERATION_CHECK_PTR(meter, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SendPipelineExecutionStepFailure", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateFeatureMetadataOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SendPipelineExecutionStepFailureOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateFeatureMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateFeatureMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return SendPipelineExecutionStepFailureOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SendPipelineExecutionStepFailureOutcome SageMakerClient::SendPipelineExecutionStepFailure(const SendPipelineExecutionStepFailureRequest& request) const +UpdateFeatureMetadataOutcome SageMakerClient::UpdateFeatureMetadata(const UpdateFeatureMetadataRequest& request) const { - AWS_OPERATION_GUARD(SendPipelineExecutionStepFailure); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateFeatureMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateFeatureMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateFeatureMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SendPipelineExecutionStepFailure", + AWS_OPERATION_CHECK_PTR(meter, UpdateFeatureMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateFeatureMetadata", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SendPipelineExecutionStepFailureOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateFeatureMetadataOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SendPipelineExecutionStepFailure, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return SendPipelineExecutionStepFailureOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateFeatureMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateFeatureMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2294,52 +2294,52 @@ StopInferenceRecommendationsJobOutcome SageMakerClient::StopInferenceRecommendat {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateDomainOutcome SageMakerClient::UpdateDomain(const UpdateDomainRequest& request) const +ListInferenceRecommendationsJobStepsOutcome SageMakerClient::ListInferenceRecommendationsJobSteps(const ListInferenceRecommendationsJobStepsRequest& request) const { - AWS_OPERATION_GUARD(UpdateDomain); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListInferenceRecommendationsJobSteps); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDomain", + AWS_OPERATION_CHECK_PTR(meter, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListInferenceRecommendationsJobSteps", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> UpdateDomainOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListInferenceRecommendationsJobStepsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateDomainOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListInferenceRecommendationsJobStepsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListInferenceRecommendationsJobStepsOutcome SageMakerClient::ListInferenceRecommendationsJobSteps(const ListInferenceRecommendationsJobStepsRequest& request) const +UpdateDomainOutcome SageMakerClient::UpdateDomain(const UpdateDomainRequest& request) const { - AWS_OPERATION_GUARD(ListInferenceRecommendationsJobSteps); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(UpdateDomain); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListInferenceRecommendationsJobSteps", + AWS_OPERATION_CHECK_PTR(meter, UpdateDomain, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDomain", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListInferenceRecommendationsJobStepsOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateDomainOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListInferenceRecommendationsJobSteps, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListInferenceRecommendationsJobStepsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateDomain, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateDomainOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2424,52 +2424,52 @@ UpdateDevicesOutcome SageMakerClient::UpdateDevices(const UpdateDevicesRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -SendPipelineExecutionStepSuccessOutcome SageMakerClient::SendPipelineExecutionStepSuccess(const SendPipelineExecutionStepSuccessRequest& request) const +ListMonitoringSchedulesOutcome SageMakerClient::ListMonitoringSchedules(const ListMonitoringSchedulesRequest& request) const { - AWS_OPERATION_GUARD(SendPipelineExecutionStepSuccess); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListMonitoringSchedules); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListMonitoringSchedules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListMonitoringSchedules, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SendPipelineExecutionStepSuccess", + AWS_OPERATION_CHECK_PTR(meter, ListMonitoringSchedules, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListMonitoringSchedules", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> SendPipelineExecutionStepSuccessOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListMonitoringSchedulesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return SendPipelineExecutionStepSuccessOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListMonitoringSchedules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListMonitoringSchedulesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListMonitoringSchedulesOutcome SageMakerClient::ListMonitoringSchedules(const ListMonitoringSchedulesRequest& request) const +SendPipelineExecutionStepSuccessOutcome SageMakerClient::SendPipelineExecutionStepSuccess(const SendPipelineExecutionStepSuccessRequest& request) const { - AWS_OPERATION_GUARD(ListMonitoringSchedules); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListMonitoringSchedules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListMonitoringSchedules, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(SendPipelineExecutionStepSuccess); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListMonitoringSchedules, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListMonitoringSchedules", + AWS_OPERATION_CHECK_PTR(meter, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SendPipelineExecutionStepSuccess", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListMonitoringSchedulesOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> SendPipelineExecutionStepSuccessOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListMonitoringSchedules, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListMonitoringSchedulesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SendPipelineExecutionStepSuccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return SendPipelineExecutionStepSuccessOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerErrors.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerErrors.cpp index 64275ae81a6..5e0d0ea617a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerErrors.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerErrors.cpp @@ -18,14 +18,14 @@ namespace SageMaker namespace SageMakerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUse"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceeded"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUse"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ActionStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ActionStatus.cpp index e9d693d6ce5..afb4c0b27b1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ActionStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ActionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ActionStatusMapper { - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); ActionStatus GetActionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Unknown_HASH) { return ActionStatus::Unknown; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalS3DataSourceDataType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalS3DataSourceDataType.cpp index 2eb53cb6152..3e9b709f709 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalS3DataSourceDataType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalS3DataSourceDataType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AdditionalS3DataSourceDataTypeMapper { - static const int S3Object_HASH = HashingUtils::HashString("S3Object"); + static constexpr uint32_t S3Object_HASH = ConstExprHashingUtils::HashString("S3Object"); AdditionalS3DataSourceDataType GetAdditionalS3DataSourceDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3Object_HASH) { return AdditionalS3DataSourceDataType::S3Object; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AggregationTransformationValue.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AggregationTransformationValue.cpp index 5d2d25339c0..002425cf08d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AggregationTransformationValue.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AggregationTransformationValue.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AggregationTransformationValueMapper { - static const int sum_HASH = HashingUtils::HashString("sum"); - static const int avg_HASH = HashingUtils::HashString("avg"); - static const int first_HASH = HashingUtils::HashString("first"); - static const int min_HASH = HashingUtils::HashString("min"); - static const int max_HASH = HashingUtils::HashString("max"); + static constexpr uint32_t sum_HASH = ConstExprHashingUtils::HashString("sum"); + static constexpr uint32_t avg_HASH = ConstExprHashingUtils::HashString("avg"); + static constexpr uint32_t first_HASH = ConstExprHashingUtils::HashString("first"); + static constexpr uint32_t min_HASH = ConstExprHashingUtils::HashString("min"); + static constexpr uint32_t max_HASH = ConstExprHashingUtils::HashString("max"); AggregationTransformationValue GetAggregationTransformationValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == sum_HASH) { return AggregationTransformationValue::sum; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmSortBy.cpp index e83a5467c94..9140e12b184 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AlgorithmSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); AlgorithmSortBy GetAlgorithmSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AlgorithmSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmStatus.cpp index 8b509d2df78..ed50a975f58 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AlgorithmStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AlgorithmStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); AlgorithmStatus GetAlgorithmStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return AlgorithmStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigSortKey.cpp index ded7b6e256e..51ff40384ae 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppImageConfigSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AppImageConfigSortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); - static const int Name_HASH = HashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); AppImageConfigSortKey GetAppImageConfigSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return AppImageConfigSortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp index b5288870b97..01ea21b3b4d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppInstanceType.cpp @@ -20,71 +20,71 @@ namespace Aws namespace AppInstanceTypeMapper { - static const int system_HASH = HashingUtils::HashString("system"); - static const int ml_t3_micro_HASH = HashingUtils::HashString("ml.t3.micro"); - static const int ml_t3_small_HASH = HashingUtils::HashString("ml.t3.small"); - static const int ml_t3_medium_HASH = HashingUtils::HashString("ml.t3.medium"); - static const int ml_t3_large_HASH = HashingUtils::HashString("ml.t3.large"); - static const int ml_t3_xlarge_HASH = HashingUtils::HashString("ml.t3.xlarge"); - static const int ml_t3_2xlarge_HASH = HashingUtils::HashString("ml.t3.2xlarge"); - static const int ml_m5_large_HASH = HashingUtils::HashString("ml.m5.large"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_8xlarge_HASH = HashingUtils::HashString("ml.m5.8xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_16xlarge_HASH = HashingUtils::HashString("ml.m5.16xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_m5d_large_HASH = HashingUtils::HashString("ml.m5d.large"); - static const int ml_m5d_xlarge_HASH = HashingUtils::HashString("ml.m5d.xlarge"); - static const int ml_m5d_2xlarge_HASH = HashingUtils::HashString("ml.m5d.2xlarge"); - static const int ml_m5d_4xlarge_HASH = HashingUtils::HashString("ml.m5d.4xlarge"); - static const int ml_m5d_8xlarge_HASH = HashingUtils::HashString("ml.m5d.8xlarge"); - static const int ml_m5d_12xlarge_HASH = HashingUtils::HashString("ml.m5d.12xlarge"); - static const int ml_m5d_16xlarge_HASH = HashingUtils::HashString("ml.m5d.16xlarge"); - static const int ml_m5d_24xlarge_HASH = HashingUtils::HashString("ml.m5d.24xlarge"); - static const int ml_c5_large_HASH = HashingUtils::HashString("ml.c5.large"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_12xlarge_HASH = HashingUtils::HashString("ml.c5.12xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_c5_24xlarge_HASH = HashingUtils::HashString("ml.c5.24xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_p3dn_24xlarge_HASH = HashingUtils::HashString("ml.p3dn.24xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); - static const int ml_r5_large_HASH = HashingUtils::HashString("ml.r5.large"); - static const int ml_r5_xlarge_HASH = HashingUtils::HashString("ml.r5.xlarge"); - static const int ml_r5_2xlarge_HASH = HashingUtils::HashString("ml.r5.2xlarge"); - static const int ml_r5_4xlarge_HASH = HashingUtils::HashString("ml.r5.4xlarge"); - static const int ml_r5_8xlarge_HASH = HashingUtils::HashString("ml.r5.8xlarge"); - static const int ml_r5_12xlarge_HASH = HashingUtils::HashString("ml.r5.12xlarge"); - static const int ml_r5_16xlarge_HASH = HashingUtils::HashString("ml.r5.16xlarge"); - static const int ml_r5_24xlarge_HASH = HashingUtils::HashString("ml.r5.24xlarge"); - static const int ml_g5_xlarge_HASH = HashingUtils::HashString("ml.g5.xlarge"); - static const int ml_g5_2xlarge_HASH = HashingUtils::HashString("ml.g5.2xlarge"); - static const int ml_g5_4xlarge_HASH = HashingUtils::HashString("ml.g5.4xlarge"); - static const int ml_g5_8xlarge_HASH = HashingUtils::HashString("ml.g5.8xlarge"); - static const int ml_g5_16xlarge_HASH = HashingUtils::HashString("ml.g5.16xlarge"); - static const int ml_g5_12xlarge_HASH = HashingUtils::HashString("ml.g5.12xlarge"); - static const int ml_g5_24xlarge_HASH = HashingUtils::HashString("ml.g5.24xlarge"); - static const int ml_g5_48xlarge_HASH = HashingUtils::HashString("ml.g5.48xlarge"); - static const int ml_geospatial_interactive_HASH = HashingUtils::HashString("ml.geospatial.interactive"); - static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); - static const int ml_p4de_24xlarge_HASH = HashingUtils::HashString("ml.p4de.24xlarge"); + static constexpr uint32_t system_HASH = ConstExprHashingUtils::HashString("system"); + static constexpr uint32_t ml_t3_micro_HASH = ConstExprHashingUtils::HashString("ml.t3.micro"); + static constexpr uint32_t ml_t3_small_HASH = ConstExprHashingUtils::HashString("ml.t3.small"); + static constexpr uint32_t ml_t3_medium_HASH = ConstExprHashingUtils::HashString("ml.t3.medium"); + static constexpr uint32_t ml_t3_large_HASH = ConstExprHashingUtils::HashString("ml.t3.large"); + static constexpr uint32_t ml_t3_xlarge_HASH = ConstExprHashingUtils::HashString("ml.t3.xlarge"); + static constexpr uint32_t ml_t3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.t3.2xlarge"); + static constexpr uint32_t ml_m5_large_HASH = ConstExprHashingUtils::HashString("ml.m5.large"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.8xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.16xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_m5d_large_HASH = ConstExprHashingUtils::HashString("ml.m5d.large"); + static constexpr uint32_t ml_m5d_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.xlarge"); + static constexpr uint32_t ml_m5d_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.2xlarge"); + static constexpr uint32_t ml_m5d_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.4xlarge"); + static constexpr uint32_t ml_m5d_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.8xlarge"); + static constexpr uint32_t ml_m5d_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.12xlarge"); + static constexpr uint32_t ml_m5d_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.16xlarge"); + static constexpr uint32_t ml_m5d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.24xlarge"); + static constexpr uint32_t ml_c5_large_HASH = ConstExprHashingUtils::HashString("ml.c5.large"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.12xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_c5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.24xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_p3dn_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3dn.24xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_r5_large_HASH = ConstExprHashingUtils::HashString("ml.r5.large"); + static constexpr uint32_t ml_r5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.xlarge"); + static constexpr uint32_t ml_r5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.2xlarge"); + static constexpr uint32_t ml_r5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.4xlarge"); + static constexpr uint32_t ml_r5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.8xlarge"); + static constexpr uint32_t ml_r5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.12xlarge"); + static constexpr uint32_t ml_r5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.16xlarge"); + static constexpr uint32_t ml_r5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.24xlarge"); + static constexpr uint32_t ml_g5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.xlarge"); + static constexpr uint32_t ml_g5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.2xlarge"); + static constexpr uint32_t ml_g5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.4xlarge"); + static constexpr uint32_t ml_g5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.8xlarge"); + static constexpr uint32_t ml_g5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.16xlarge"); + static constexpr uint32_t ml_g5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.12xlarge"); + static constexpr uint32_t ml_g5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.24xlarge"); + static constexpr uint32_t ml_g5_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.48xlarge"); + static constexpr uint32_t ml_geospatial_interactive_HASH = ConstExprHashingUtils::HashString("ml.geospatial.interactive"); + static constexpr uint32_t ml_p4d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4d.24xlarge"); + static constexpr uint32_t ml_p4de_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4de.24xlarge"); AppInstanceType GetAppInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == system_HASH) { return AppInstanceType::system; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppNetworkAccessType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppNetworkAccessType.cpp index 076c592f11c..ad9b6f5e900 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppNetworkAccessType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppNetworkAccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppNetworkAccessTypeMapper { - static const int PublicInternetOnly_HASH = HashingUtils::HashString("PublicInternetOnly"); - static const int VpcOnly_HASH = HashingUtils::HashString("VpcOnly"); + static constexpr uint32_t PublicInternetOnly_HASH = ConstExprHashingUtils::HashString("PublicInternetOnly"); + static constexpr uint32_t VpcOnly_HASH = ConstExprHashingUtils::HashString("VpcOnly"); AppNetworkAccessType GetAppNetworkAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PublicInternetOnly_HASH) { return AppNetworkAccessType::PublicInternetOnly; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSecurityGroupManagement.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSecurityGroupManagement.cpp index 91d3bcd7709..bd1d53f960b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSecurityGroupManagement.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSecurityGroupManagement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppSecurityGroupManagementMapper { - static const int Service_HASH = HashingUtils::HashString("Service"); - static const int Customer_HASH = HashingUtils::HashString("Customer"); + static constexpr uint32_t Service_HASH = ConstExprHashingUtils::HashString("Service"); + static constexpr uint32_t Customer_HASH = ConstExprHashingUtils::HashString("Customer"); AppSecurityGroupManagement GetAppSecurityGroupManagementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Service_HASH) { return AppSecurityGroupManagement::Service; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSortKey.cpp index 1d7b6e27340..ff066ac48e0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppSortKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AppSortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); AppSortKey GetAppSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return AppSortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppStatus.cpp index dedaa35c78b..06a4d3a288f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AppStatusMapper { - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); AppStatus GetAppStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Deleted_HASH) { return AppStatus::Deleted; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp index 81a249aca41..a828b75c59c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AppType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AppTypeMapper { - static const int JupyterServer_HASH = HashingUtils::HashString("JupyterServer"); - static const int KernelGateway_HASH = HashingUtils::HashString("KernelGateway"); - static const int TensorBoard_HASH = HashingUtils::HashString("TensorBoard"); - static const int RStudioServerPro_HASH = HashingUtils::HashString("RStudioServerPro"); - static const int RSessionGateway_HASH = HashingUtils::HashString("RSessionGateway"); + static constexpr uint32_t JupyterServer_HASH = ConstExprHashingUtils::HashString("JupyterServer"); + static constexpr uint32_t KernelGateway_HASH = ConstExprHashingUtils::HashString("KernelGateway"); + static constexpr uint32_t TensorBoard_HASH = ConstExprHashingUtils::HashString("TensorBoard"); + static constexpr uint32_t RStudioServerPro_HASH = ConstExprHashingUtils::HashString("RStudioServerPro"); + static constexpr uint32_t RSessionGateway_HASH = ConstExprHashingUtils::HashString("RSessionGateway"); AppType GetAppTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JupyterServer_HASH) { return AppType::JupyterServer; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ArtifactSourceIdType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ArtifactSourceIdType.cpp index 79c81b90e66..ea345d2427e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ArtifactSourceIdType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ArtifactSourceIdType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ArtifactSourceIdTypeMapper { - static const int MD5Hash_HASH = HashingUtils::HashString("MD5Hash"); - static const int S3ETag_HASH = HashingUtils::HashString("S3ETag"); - static const int S3Version_HASH = HashingUtils::HashString("S3Version"); - static const int Custom_HASH = HashingUtils::HashString("Custom"); + static constexpr uint32_t MD5Hash_HASH = ConstExprHashingUtils::HashString("MD5Hash"); + static constexpr uint32_t S3ETag_HASH = ConstExprHashingUtils::HashString("S3ETag"); + static constexpr uint32_t S3Version_HASH = ConstExprHashingUtils::HashString("S3Version"); + static constexpr uint32_t Custom_HASH = ConstExprHashingUtils::HashString("Custom"); ArtifactSourceIdType GetArtifactSourceIdTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MD5Hash_HASH) { return ArtifactSourceIdType::MD5Hash; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AssemblyType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AssemblyType.cpp index 91eaf20700f..d089a8e51e8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AssemblyType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AssemblyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssemblyTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Line_HASH = HashingUtils::HashString("Line"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Line_HASH = ConstExprHashingUtils::HashString("Line"); AssemblyType GetAssemblyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return AssemblyType::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AssociationEdgeType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AssociationEdgeType.cpp index afe73332858..091e1f08e1e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AssociationEdgeType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AssociationEdgeType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AssociationEdgeTypeMapper { - static const int ContributedTo_HASH = HashingUtils::HashString("ContributedTo"); - static const int AssociatedWith_HASH = HashingUtils::HashString("AssociatedWith"); - static const int DerivedFrom_HASH = HashingUtils::HashString("DerivedFrom"); - static const int Produced_HASH = HashingUtils::HashString("Produced"); + static constexpr uint32_t ContributedTo_HASH = ConstExprHashingUtils::HashString("ContributedTo"); + static constexpr uint32_t AssociatedWith_HASH = ConstExprHashingUtils::HashString("AssociatedWith"); + static constexpr uint32_t DerivedFrom_HASH = ConstExprHashingUtils::HashString("DerivedFrom"); + static constexpr uint32_t Produced_HASH = ConstExprHashingUtils::HashString("Produced"); AssociationEdgeType GetAssociationEdgeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ContributedTo_HASH) { return AssociationEdgeType::ContributedTo; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AsyncNotificationTopicTypes.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AsyncNotificationTopicTypes.cpp index c86cdf010e5..6d0a077689b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AsyncNotificationTopicTypes.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AsyncNotificationTopicTypes.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AsyncNotificationTopicTypesMapper { - static const int SUCCESS_NOTIFICATION_TOPIC_HASH = HashingUtils::HashString("SUCCESS_NOTIFICATION_TOPIC"); - static const int ERROR_NOTIFICATION_TOPIC_HASH = HashingUtils::HashString("ERROR_NOTIFICATION_TOPIC"); + static constexpr uint32_t SUCCESS_NOTIFICATION_TOPIC_HASH = ConstExprHashingUtils::HashString("SUCCESS_NOTIFICATION_TOPIC"); + static constexpr uint32_t ERROR_NOTIFICATION_TOPIC_HASH = ConstExprHashingUtils::HashString("ERROR_NOTIFICATION_TOPIC"); AsyncNotificationTopicTypes GetAsyncNotificationTopicTypesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_NOTIFICATION_TOPIC_HASH) { return AsyncNotificationTopicTypes::SUCCESS_NOTIFICATION_TOPIC; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultCompressionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultCompressionType.cpp index 4f8f570bd9a..762709ba1eb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultCompressionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AthenaResultCompressionTypeMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int SNAPPY_HASH = HashingUtils::HashString("SNAPPY"); - static const int ZLIB_HASH = HashingUtils::HashString("ZLIB"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t SNAPPY_HASH = ConstExprHashingUtils::HashString("SNAPPY"); + static constexpr uint32_t ZLIB_HASH = ConstExprHashingUtils::HashString("ZLIB"); AthenaResultCompressionType GetAthenaResultCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return AthenaResultCompressionType::GZIP; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultFormat.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultFormat.cpp index 8d3add2b591..a14878f6d06 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultFormat.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AthenaResultFormat.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AthenaResultFormatMapper { - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); - static const int ORC_HASH = HashingUtils::HashString("ORC"); - static const int AVRO_HASH = HashingUtils::HashString("AVRO"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int TEXTFILE_HASH = HashingUtils::HashString("TEXTFILE"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); + static constexpr uint32_t ORC_HASH = ConstExprHashingUtils::HashString("ORC"); + static constexpr uint32_t AVRO_HASH = ConstExprHashingUtils::HashString("AVRO"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t TEXTFILE_HASH = ConstExprHashingUtils::HashString("TEXTFILE"); AthenaResultFormat GetAthenaResultFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARQUET_HASH) { return AthenaResultFormat::PARQUET; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AuthMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AuthMode.cpp index 42e88a7302c..5fbd87a21e5 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AuthMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AuthMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthModeMapper { - static const int SSO_HASH = HashingUtils::HashString("SSO"); - static const int IAM_HASH = HashingUtils::HashString("IAM"); + static constexpr uint32_t SSO_HASH = ConstExprHashingUtils::HashString("SSO"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); AuthMode GetAuthModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSO_HASH) { return AuthMode::SSO; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLAlgorithm.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLAlgorithm.cpp index e38478c9d04..252bc68c2e2 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLAlgorithm.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AutoMLAlgorithmMapper { - static const int xgboost_HASH = HashingUtils::HashString("xgboost"); - static const int linear_learner_HASH = HashingUtils::HashString("linear-learner"); - static const int mlp_HASH = HashingUtils::HashString("mlp"); - static const int lightgbm_HASH = HashingUtils::HashString("lightgbm"); - static const int catboost_HASH = HashingUtils::HashString("catboost"); - static const int randomforest_HASH = HashingUtils::HashString("randomforest"); - static const int extra_trees_HASH = HashingUtils::HashString("extra-trees"); - static const int nn_torch_HASH = HashingUtils::HashString("nn-torch"); - static const int fastai_HASH = HashingUtils::HashString("fastai"); + static constexpr uint32_t xgboost_HASH = ConstExprHashingUtils::HashString("xgboost"); + static constexpr uint32_t linear_learner_HASH = ConstExprHashingUtils::HashString("linear-learner"); + static constexpr uint32_t mlp_HASH = ConstExprHashingUtils::HashString("mlp"); + static constexpr uint32_t lightgbm_HASH = ConstExprHashingUtils::HashString("lightgbm"); + static constexpr uint32_t catboost_HASH = ConstExprHashingUtils::HashString("catboost"); + static constexpr uint32_t randomforest_HASH = ConstExprHashingUtils::HashString("randomforest"); + static constexpr uint32_t extra_trees_HASH = ConstExprHashingUtils::HashString("extra-trees"); + static constexpr uint32_t nn_torch_HASH = ConstExprHashingUtils::HashString("nn-torch"); + static constexpr uint32_t fastai_HASH = ConstExprHashingUtils::HashString("fastai"); AutoMLAlgorithm GetAutoMLAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == xgboost_HASH) { return AutoMLAlgorithm::xgboost; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLChannelType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLChannelType.cpp index c7a9c276bc2..f438745b55d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLChannelType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLChannelType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoMLChannelTypeMapper { - static const int training_HASH = HashingUtils::HashString("training"); - static const int validation_HASH = HashingUtils::HashString("validation"); + static constexpr uint32_t training_HASH = ConstExprHashingUtils::HashString("training"); + static constexpr uint32_t validation_HASH = ConstExprHashingUtils::HashString("validation"); AutoMLChannelType GetAutoMLChannelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == training_HASH) { return AutoMLChannelType::training; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobObjectiveType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobObjectiveType.cpp index a6fe17d9c3f..04c81203b20 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobObjectiveType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobObjectiveType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoMLJobObjectiveTypeMapper { - static const int Maximize_HASH = HashingUtils::HashString("Maximize"); - static const int Minimize_HASH = HashingUtils::HashString("Minimize"); + static constexpr uint32_t Maximize_HASH = ConstExprHashingUtils::HashString("Maximize"); + static constexpr uint32_t Minimize_HASH = ConstExprHashingUtils::HashString("Minimize"); AutoMLJobObjectiveType GetAutoMLJobObjectiveTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Maximize_HASH) { return AutoMLJobObjectiveType::Maximize; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobSecondaryStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobSecondaryStatus.cpp index ac4944112c2..145b3333c86 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobSecondaryStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobSecondaryStatus.cpp @@ -20,30 +20,30 @@ namespace Aws namespace AutoMLJobSecondaryStatusMapper { - static const int Starting_HASH = HashingUtils::HashString("Starting"); - static const int AnalyzingData_HASH = HashingUtils::HashString("AnalyzingData"); - static const int FeatureEngineering_HASH = HashingUtils::HashString("FeatureEngineering"); - static const int ModelTuning_HASH = HashingUtils::HashString("ModelTuning"); - static const int MaxCandidatesReached_HASH = HashingUtils::HashString("MaxCandidatesReached"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int MaxAutoMLJobRuntimeReached_HASH = HashingUtils::HashString("MaxAutoMLJobRuntimeReached"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int CandidateDefinitionsGenerated_HASH = HashingUtils::HashString("CandidateDefinitionsGenerated"); - static const int GeneratingExplainabilityReport_HASH = HashingUtils::HashString("GeneratingExplainabilityReport"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int ExplainabilityError_HASH = HashingUtils::HashString("ExplainabilityError"); - static const int DeployingModel_HASH = HashingUtils::HashString("DeployingModel"); - static const int ModelDeploymentError_HASH = HashingUtils::HashString("ModelDeploymentError"); - static const int GeneratingModelInsightsReport_HASH = HashingUtils::HashString("GeneratingModelInsightsReport"); - static const int ModelInsightsError_HASH = HashingUtils::HashString("ModelInsightsError"); - static const int TrainingModels_HASH = HashingUtils::HashString("TrainingModels"); - static const int PreTraining_HASH = HashingUtils::HashString("PreTraining"); + static constexpr uint32_t Starting_HASH = ConstExprHashingUtils::HashString("Starting"); + static constexpr uint32_t AnalyzingData_HASH = ConstExprHashingUtils::HashString("AnalyzingData"); + static constexpr uint32_t FeatureEngineering_HASH = ConstExprHashingUtils::HashString("FeatureEngineering"); + static constexpr uint32_t ModelTuning_HASH = ConstExprHashingUtils::HashString("ModelTuning"); + static constexpr uint32_t MaxCandidatesReached_HASH = ConstExprHashingUtils::HashString("MaxCandidatesReached"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t MaxAutoMLJobRuntimeReached_HASH = ConstExprHashingUtils::HashString("MaxAutoMLJobRuntimeReached"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t CandidateDefinitionsGenerated_HASH = ConstExprHashingUtils::HashString("CandidateDefinitionsGenerated"); + static constexpr uint32_t GeneratingExplainabilityReport_HASH = ConstExprHashingUtils::HashString("GeneratingExplainabilityReport"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t ExplainabilityError_HASH = ConstExprHashingUtils::HashString("ExplainabilityError"); + static constexpr uint32_t DeployingModel_HASH = ConstExprHashingUtils::HashString("DeployingModel"); + static constexpr uint32_t ModelDeploymentError_HASH = ConstExprHashingUtils::HashString("ModelDeploymentError"); + static constexpr uint32_t GeneratingModelInsightsReport_HASH = ConstExprHashingUtils::HashString("GeneratingModelInsightsReport"); + static constexpr uint32_t ModelInsightsError_HASH = ConstExprHashingUtils::HashString("ModelInsightsError"); + static constexpr uint32_t TrainingModels_HASH = ConstExprHashingUtils::HashString("TrainingModels"); + static constexpr uint32_t PreTraining_HASH = ConstExprHashingUtils::HashString("PreTraining"); AutoMLJobSecondaryStatus GetAutoMLJobSecondaryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Starting_HASH) { return AutoMLJobSecondaryStatus::Starting; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobStatus.cpp index dd282839e5a..45167567d14 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AutoMLJobStatusMapper { - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); AutoMLJobStatus GetAutoMLJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Completed_HASH) { return AutoMLJobStatus::Completed; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricEnum.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricEnum.cpp index 0e78f161c08..00ee718979d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricEnum.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricEnum.cpp @@ -20,28 +20,28 @@ namespace Aws namespace AutoMLMetricEnumMapper { - static const int Accuracy_HASH = HashingUtils::HashString("Accuracy"); - static const int MSE_HASH = HashingUtils::HashString("MSE"); - static const int F1_HASH = HashingUtils::HashString("F1"); - static const int F1macro_HASH = HashingUtils::HashString("F1macro"); - static const int AUC_HASH = HashingUtils::HashString("AUC"); - static const int RMSE_HASH = HashingUtils::HashString("RMSE"); - static const int MAE_HASH = HashingUtils::HashString("MAE"); - static const int R2_HASH = HashingUtils::HashString("R2"); - static const int BalancedAccuracy_HASH = HashingUtils::HashString("BalancedAccuracy"); - static const int Precision_HASH = HashingUtils::HashString("Precision"); - static const int PrecisionMacro_HASH = HashingUtils::HashString("PrecisionMacro"); - static const int Recall_HASH = HashingUtils::HashString("Recall"); - static const int RecallMacro_HASH = HashingUtils::HashString("RecallMacro"); - static const int MAPE_HASH = HashingUtils::HashString("MAPE"); - static const int MASE_HASH = HashingUtils::HashString("MASE"); - static const int WAPE_HASH = HashingUtils::HashString("WAPE"); - static const int AverageWeightedQuantileLoss_HASH = HashingUtils::HashString("AverageWeightedQuantileLoss"); + static constexpr uint32_t Accuracy_HASH = ConstExprHashingUtils::HashString("Accuracy"); + static constexpr uint32_t MSE_HASH = ConstExprHashingUtils::HashString("MSE"); + static constexpr uint32_t F1_HASH = ConstExprHashingUtils::HashString("F1"); + static constexpr uint32_t F1macro_HASH = ConstExprHashingUtils::HashString("F1macro"); + static constexpr uint32_t AUC_HASH = ConstExprHashingUtils::HashString("AUC"); + static constexpr uint32_t RMSE_HASH = ConstExprHashingUtils::HashString("RMSE"); + static constexpr uint32_t MAE_HASH = ConstExprHashingUtils::HashString("MAE"); + static constexpr uint32_t R2_HASH = ConstExprHashingUtils::HashString("R2"); + static constexpr uint32_t BalancedAccuracy_HASH = ConstExprHashingUtils::HashString("BalancedAccuracy"); + static constexpr uint32_t Precision_HASH = ConstExprHashingUtils::HashString("Precision"); + static constexpr uint32_t PrecisionMacro_HASH = ConstExprHashingUtils::HashString("PrecisionMacro"); + static constexpr uint32_t Recall_HASH = ConstExprHashingUtils::HashString("Recall"); + static constexpr uint32_t RecallMacro_HASH = ConstExprHashingUtils::HashString("RecallMacro"); + static constexpr uint32_t MAPE_HASH = ConstExprHashingUtils::HashString("MAPE"); + static constexpr uint32_t MASE_HASH = ConstExprHashingUtils::HashString("MASE"); + static constexpr uint32_t WAPE_HASH = ConstExprHashingUtils::HashString("WAPE"); + static constexpr uint32_t AverageWeightedQuantileLoss_HASH = ConstExprHashingUtils::HashString("AverageWeightedQuantileLoss"); AutoMLMetricEnum GetAutoMLMetricEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Accuracy_HASH) { return AutoMLMetricEnum::Accuracy; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricExtendedEnum.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricExtendedEnum.cpp index a098f05a362..c0ef6c38935 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricExtendedEnum.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMetricExtendedEnum.cpp @@ -20,30 +20,30 @@ namespace Aws namespace AutoMLMetricExtendedEnumMapper { - static const int Accuracy_HASH = HashingUtils::HashString("Accuracy"); - static const int MSE_HASH = HashingUtils::HashString("MSE"); - static const int F1_HASH = HashingUtils::HashString("F1"); - static const int F1macro_HASH = HashingUtils::HashString("F1macro"); - static const int AUC_HASH = HashingUtils::HashString("AUC"); - static const int RMSE_HASH = HashingUtils::HashString("RMSE"); - static const int MAE_HASH = HashingUtils::HashString("MAE"); - static const int R2_HASH = HashingUtils::HashString("R2"); - static const int BalancedAccuracy_HASH = HashingUtils::HashString("BalancedAccuracy"); - static const int Precision_HASH = HashingUtils::HashString("Precision"); - static const int PrecisionMacro_HASH = HashingUtils::HashString("PrecisionMacro"); - static const int Recall_HASH = HashingUtils::HashString("Recall"); - static const int RecallMacro_HASH = HashingUtils::HashString("RecallMacro"); - static const int LogLoss_HASH = HashingUtils::HashString("LogLoss"); - static const int InferenceLatency_HASH = HashingUtils::HashString("InferenceLatency"); - static const int MAPE_HASH = HashingUtils::HashString("MAPE"); - static const int MASE_HASH = HashingUtils::HashString("MASE"); - static const int WAPE_HASH = HashingUtils::HashString("WAPE"); - static const int AverageWeightedQuantileLoss_HASH = HashingUtils::HashString("AverageWeightedQuantileLoss"); + static constexpr uint32_t Accuracy_HASH = ConstExprHashingUtils::HashString("Accuracy"); + static constexpr uint32_t MSE_HASH = ConstExprHashingUtils::HashString("MSE"); + static constexpr uint32_t F1_HASH = ConstExprHashingUtils::HashString("F1"); + static constexpr uint32_t F1macro_HASH = ConstExprHashingUtils::HashString("F1macro"); + static constexpr uint32_t AUC_HASH = ConstExprHashingUtils::HashString("AUC"); + static constexpr uint32_t RMSE_HASH = ConstExprHashingUtils::HashString("RMSE"); + static constexpr uint32_t MAE_HASH = ConstExprHashingUtils::HashString("MAE"); + static constexpr uint32_t R2_HASH = ConstExprHashingUtils::HashString("R2"); + static constexpr uint32_t BalancedAccuracy_HASH = ConstExprHashingUtils::HashString("BalancedAccuracy"); + static constexpr uint32_t Precision_HASH = ConstExprHashingUtils::HashString("Precision"); + static constexpr uint32_t PrecisionMacro_HASH = ConstExprHashingUtils::HashString("PrecisionMacro"); + static constexpr uint32_t Recall_HASH = ConstExprHashingUtils::HashString("Recall"); + static constexpr uint32_t RecallMacro_HASH = ConstExprHashingUtils::HashString("RecallMacro"); + static constexpr uint32_t LogLoss_HASH = ConstExprHashingUtils::HashString("LogLoss"); + static constexpr uint32_t InferenceLatency_HASH = ConstExprHashingUtils::HashString("InferenceLatency"); + static constexpr uint32_t MAPE_HASH = ConstExprHashingUtils::HashString("MAPE"); + static constexpr uint32_t MASE_HASH = ConstExprHashingUtils::HashString("MASE"); + static constexpr uint32_t WAPE_HASH = ConstExprHashingUtils::HashString("WAPE"); + static constexpr uint32_t AverageWeightedQuantileLoss_HASH = ConstExprHashingUtils::HashString("AverageWeightedQuantileLoss"); AutoMLMetricExtendedEnum GetAutoMLMetricExtendedEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Accuracy_HASH) { return AutoMLMetricExtendedEnum::Accuracy; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMode.cpp index eab63876ef4..839d3554a5a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutoMLModeMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int ENSEMBLING_HASH = HashingUtils::HashString("ENSEMBLING"); - static const int HYPERPARAMETER_TUNING_HASH = HashingUtils::HashString("HYPERPARAMETER_TUNING"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t ENSEMBLING_HASH = ConstExprHashingUtils::HashString("ENSEMBLING"); + static constexpr uint32_t HYPERPARAMETER_TUNING_HASH = ConstExprHashingUtils::HashString("HYPERPARAMETER_TUNING"); AutoMLMode GetAutoMLModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return AutoMLMode::AUTO; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProblemTypeConfigName.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProblemTypeConfigName.cpp index 26a080cac20..205af201478 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProblemTypeConfigName.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProblemTypeConfigName.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AutoMLProblemTypeConfigNameMapper { - static const int ImageClassification_HASH = HashingUtils::HashString("ImageClassification"); - static const int TextClassification_HASH = HashingUtils::HashString("TextClassification"); - static const int Tabular_HASH = HashingUtils::HashString("Tabular"); - static const int TimeSeriesForecasting_HASH = HashingUtils::HashString("TimeSeriesForecasting"); + static constexpr uint32_t ImageClassification_HASH = ConstExprHashingUtils::HashString("ImageClassification"); + static constexpr uint32_t TextClassification_HASH = ConstExprHashingUtils::HashString("TextClassification"); + static constexpr uint32_t Tabular_HASH = ConstExprHashingUtils::HashString("Tabular"); + static constexpr uint32_t TimeSeriesForecasting_HASH = ConstExprHashingUtils::HashString("TimeSeriesForecasting"); AutoMLProblemTypeConfigName GetAutoMLProblemTypeConfigNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ImageClassification_HASH) { return AutoMLProblemTypeConfigName::ImageClassification; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProcessingUnit.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProcessingUnit.cpp index c969032d8ec..e75317775ea 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProcessingUnit.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLProcessingUnit.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoMLProcessingUnitMapper { - static const int CPU_HASH = HashingUtils::HashString("CPU"); - static const int GPU_HASH = HashingUtils::HashString("GPU"); + static constexpr uint32_t CPU_HASH = ConstExprHashingUtils::HashString("CPU"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); AutoMLProcessingUnit GetAutoMLProcessingUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPU_HASH) { return AutoMLProcessingUnit::CPU; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLS3DataType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLS3DataType.cpp index ba010ff874f..6f86abf3062 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLS3DataType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLS3DataType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutoMLS3DataTypeMapper { - static const int ManifestFile_HASH = HashingUtils::HashString("ManifestFile"); - static const int S3Prefix_HASH = HashingUtils::HashString("S3Prefix"); - static const int AugmentedManifestFile_HASH = HashingUtils::HashString("AugmentedManifestFile"); + static constexpr uint32_t ManifestFile_HASH = ConstExprHashingUtils::HashString("ManifestFile"); + static constexpr uint32_t S3Prefix_HASH = ConstExprHashingUtils::HashString("S3Prefix"); + static constexpr uint32_t AugmentedManifestFile_HASH = ConstExprHashingUtils::HashString("AugmentedManifestFile"); AutoMLS3DataType GetAutoMLS3DataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ManifestFile_HASH) { return AutoMLS3DataType::ManifestFile; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortBy.cpp index 5dc758c3d19..21129f24467 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AutoMLSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); AutoMLSortBy GetAutoMLSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return AutoMLSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortOrder.cpp index dc0f3ab2c7a..9f6a9fef61c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutoMLSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoMLSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); AutoMLSortOrder GetAutoMLSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return AutoMLSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutotuneMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutotuneMode.cpp index 63f78200836..4ad04712ffe 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AutotuneMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AutotuneMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AutotuneModeMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); AutotuneMode GetAutotuneModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return AutotuneMode::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AwsManagedHumanLoopRequestSource.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AwsManagedHumanLoopRequestSource.cpp index 61eba743541..daaa2bd14c4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/AwsManagedHumanLoopRequestSource.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AwsManagedHumanLoopRequestSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AwsManagedHumanLoopRequestSourceMapper { - static const int AWS_Rekognition_DetectModerationLabels_Image_V3_HASH = HashingUtils::HashString("AWS/Rekognition/DetectModerationLabels/Image/V3"); - static const int AWS_Textract_AnalyzeDocument_Forms_V1_HASH = HashingUtils::HashString("AWS/Textract/AnalyzeDocument/Forms/V1"); + static constexpr uint32_t AWS_Rekognition_DetectModerationLabels_Image_V3_HASH = ConstExprHashingUtils::HashString("AWS/Rekognition/DetectModerationLabels/Image/V3"); + static constexpr uint32_t AWS_Textract_AnalyzeDocument_Forms_V1_HASH = ConstExprHashingUtils::HashString("AWS/Textract/AnalyzeDocument/Forms/V1"); AwsManagedHumanLoopRequestSource GetAwsManagedHumanLoopRequestSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_Rekognition_DetectModerationLabels_Image_V3_HASH) { return AwsManagedHumanLoopRequestSource::AWS_Rekognition_DetectModerationLabels_Image_V3; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/BatchStrategy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/BatchStrategy.cpp index e44cb57057f..372b8afd830 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/BatchStrategy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/BatchStrategy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BatchStrategyMapper { - static const int MultiRecord_HASH = HashingUtils::HashString("MultiRecord"); - static const int SingleRecord_HASH = HashingUtils::HashString("SingleRecord"); + static constexpr uint32_t MultiRecord_HASH = ConstExprHashingUtils::HashString("MultiRecord"); + static constexpr uint32_t SingleRecord_HASH = ConstExprHashingUtils::HashString("SingleRecord"); BatchStrategy GetBatchStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MultiRecord_HASH) { return BatchStrategy::MultiRecord; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/BooleanOperator.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/BooleanOperator.cpp index 48113077008..fea310c1ce8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/BooleanOperator.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/BooleanOperator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BooleanOperatorMapper { - static const int And_HASH = HashingUtils::HashString("And"); - static const int Or_HASH = HashingUtils::HashString("Or"); + static constexpr uint32_t And_HASH = ConstExprHashingUtils::HashString("And"); + static constexpr uint32_t Or_HASH = ConstExprHashingUtils::HashString("Or"); BooleanOperator GetBooleanOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == And_HASH) { return BooleanOperator::And; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateSortBy.cpp index 5961b403502..397a9e0e0ea 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CandidateSortByMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int FinalObjectiveMetricValue_HASH = HashingUtils::HashString("FinalObjectiveMetricValue"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t FinalObjectiveMetricValue_HASH = ConstExprHashingUtils::HashString("FinalObjectiveMetricValue"); CandidateSortBy GetCandidateSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return CandidateSortBy::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStatus.cpp index e2f87321a31..fe2e3a8c0d6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CandidateStatusMapper { - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); CandidateStatus GetCandidateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Completed_HASH) { return CandidateStatus::Completed; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStepType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStepType.cpp index aa6b7aceddf..4c1f492a316 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStepType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CandidateStepType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CandidateStepTypeMapper { - static const int AWS_SageMaker_TrainingJob_HASH = HashingUtils::HashString("AWS::SageMaker::TrainingJob"); - static const int AWS_SageMaker_TransformJob_HASH = HashingUtils::HashString("AWS::SageMaker::TransformJob"); - static const int AWS_SageMaker_ProcessingJob_HASH = HashingUtils::HashString("AWS::SageMaker::ProcessingJob"); + static constexpr uint32_t AWS_SageMaker_TrainingJob_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::TrainingJob"); + static constexpr uint32_t AWS_SageMaker_TransformJob_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::TransformJob"); + static constexpr uint32_t AWS_SageMaker_ProcessingJob_HASH = ConstExprHashingUtils::HashString("AWS::SageMaker::ProcessingJob"); CandidateStepType GetCandidateStepTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_SageMaker_TrainingJob_HASH) { return CandidateStepType::AWS_SageMaker_TrainingJob; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CapacitySizeType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CapacitySizeType.cpp index acd7f3c8a64..63a600fc3e7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CapacitySizeType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CapacitySizeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CapacitySizeTypeMapper { - static const int INSTANCE_COUNT_HASH = HashingUtils::HashString("INSTANCE_COUNT"); - static const int CAPACITY_PERCENT_HASH = HashingUtils::HashString("CAPACITY_PERCENT"); + static constexpr uint32_t INSTANCE_COUNT_HASH = ConstExprHashingUtils::HashString("INSTANCE_COUNT"); + static constexpr uint32_t CAPACITY_PERCENT_HASH = ConstExprHashingUtils::HashString("CAPACITY_PERCENT"); CapacitySizeType GetCapacitySizeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANCE_COUNT_HASH) { return CapacitySizeType::INSTANCE_COUNT; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureMode.cpp index 1a5b43156ff..2b4ef826256 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CaptureModeMapper { - static const int Input_HASH = HashingUtils::HashString("Input"); - static const int Output_HASH = HashingUtils::HashString("Output"); + static constexpr uint32_t Input_HASH = ConstExprHashingUtils::HashString("Input"); + static constexpr uint32_t Output_HASH = ConstExprHashingUtils::HashString("Output"); CaptureMode GetCaptureModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Input_HASH) { return CaptureMode::Input; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureStatus.cpp index be9fe6421bf..bd5521ed521 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CaptureStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CaptureStatusMapper { - static const int Started_HASH = HashingUtils::HashString("Started"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Started_HASH = ConstExprHashingUtils::HashString("Started"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); CaptureStatus GetCaptureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Started_HASH) { return CaptureStatus::Started; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyFeatureType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyFeatureType.cpp index 12ede35b5e5..a7a9d2b7c8c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyFeatureType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyFeatureType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClarifyFeatureTypeMapper { - static const int numerical_HASH = HashingUtils::HashString("numerical"); - static const int categorical_HASH = HashingUtils::HashString("categorical"); - static const int text_HASH = HashingUtils::HashString("text"); + static constexpr uint32_t numerical_HASH = ConstExprHashingUtils::HashString("numerical"); + static constexpr uint32_t categorical_HASH = ConstExprHashingUtils::HashString("categorical"); + static constexpr uint32_t text_HASH = ConstExprHashingUtils::HashString("text"); ClarifyFeatureType GetClarifyFeatureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == numerical_HASH) { return ClarifyFeatureType::numerical; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextGranularity.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextGranularity.cpp index 458a55d26d1..d63b0cfd26a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextGranularity.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextGranularity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClarifyTextGranularityMapper { - static const int token_HASH = HashingUtils::HashString("token"); - static const int sentence_HASH = HashingUtils::HashString("sentence"); - static const int paragraph_HASH = HashingUtils::HashString("paragraph"); + static constexpr uint32_t token_HASH = ConstExprHashingUtils::HashString("token"); + static constexpr uint32_t sentence_HASH = ConstExprHashingUtils::HashString("sentence"); + static constexpr uint32_t paragraph_HASH = ConstExprHashingUtils::HashString("paragraph"); ClarifyTextGranularity GetClarifyTextGranularityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == token_HASH) { return ClarifyTextGranularity::token; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextLanguage.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextLanguage.cpp index a10c266de42..e0949f643d8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextLanguage.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ClarifyTextLanguage.cpp @@ -20,71 +20,71 @@ namespace Aws namespace ClarifyTextLanguageMapper { - static const int af_HASH = HashingUtils::HashString("af"); - static const int sq_HASH = HashingUtils::HashString("sq"); - static const int ar_HASH = HashingUtils::HashString("ar"); - static const int hy_HASH = HashingUtils::HashString("hy"); - static const int eu_HASH = HashingUtils::HashString("eu"); - static const int bn_HASH = HashingUtils::HashString("bn"); - static const int bg_HASH = HashingUtils::HashString("bg"); - static const int ca_HASH = HashingUtils::HashString("ca"); - static const int zh_HASH = HashingUtils::HashString("zh"); - static const int hr_HASH = HashingUtils::HashString("hr"); - static const int cs_HASH = HashingUtils::HashString("cs"); - static const int da_HASH = HashingUtils::HashString("da"); - static const int nl_HASH = HashingUtils::HashString("nl"); - static const int en_HASH = HashingUtils::HashString("en"); - static const int et_HASH = HashingUtils::HashString("et"); - static const int fi_HASH = HashingUtils::HashString("fi"); - static const int fr_HASH = HashingUtils::HashString("fr"); - static const int de_HASH = HashingUtils::HashString("de"); - static const int el_HASH = HashingUtils::HashString("el"); - static const int gu_HASH = HashingUtils::HashString("gu"); - 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 is_HASH = HashingUtils::HashString("is"); - static const int id_HASH = HashingUtils::HashString("id"); - static const int ga_HASH = HashingUtils::HashString("ga"); - static const int it_HASH = HashingUtils::HashString("it"); - static const int kn_HASH = HashingUtils::HashString("kn"); - static const int ky_HASH = HashingUtils::HashString("ky"); - static const int lv_HASH = HashingUtils::HashString("lv"); - static const int lt_HASH = HashingUtils::HashString("lt"); - static const int lb_HASH = HashingUtils::HashString("lb"); - static const int mk_HASH = HashingUtils::HashString("mk"); - static const int ml_HASH = HashingUtils::HashString("ml"); - static const int mr_HASH = HashingUtils::HashString("mr"); - static const int ne_HASH = HashingUtils::HashString("ne"); - static const int nb_HASH = HashingUtils::HashString("nb"); - static const int fa_HASH = HashingUtils::HashString("fa"); - static const int pl_HASH = HashingUtils::HashString("pl"); - 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 sa_HASH = HashingUtils::HashString("sa"); - static const int sr_HASH = HashingUtils::HashString("sr"); - static const int tn_HASH = HashingUtils::HashString("tn"); - static const int si_HASH = HashingUtils::HashString("si"); - static const int sk_HASH = HashingUtils::HashString("sk"); - static const int sl_HASH = HashingUtils::HashString("sl"); - static const int es_HASH = HashingUtils::HashString("es"); - static const int sv_HASH = HashingUtils::HashString("sv"); - static const int tl_HASH = HashingUtils::HashString("tl"); - static const int ta_HASH = HashingUtils::HashString("ta"); - static const int tt_HASH = HashingUtils::HashString("tt"); - static const int te_HASH = HashingUtils::HashString("te"); - static const int tr_HASH = HashingUtils::HashString("tr"); - static const int uk_HASH = HashingUtils::HashString("uk"); - static const int ur_HASH = HashingUtils::HashString("ur"); - static const int yo_HASH = HashingUtils::HashString("yo"); - static const int lij_HASH = HashingUtils::HashString("lij"); - static const int xx_HASH = HashingUtils::HashString("xx"); + static constexpr uint32_t af_HASH = ConstExprHashingUtils::HashString("af"); + static constexpr uint32_t sq_HASH = ConstExprHashingUtils::HashString("sq"); + static constexpr uint32_t ar_HASH = ConstExprHashingUtils::HashString("ar"); + static constexpr uint32_t hy_HASH = ConstExprHashingUtils::HashString("hy"); + static constexpr uint32_t eu_HASH = ConstExprHashingUtils::HashString("eu"); + static constexpr uint32_t bn_HASH = ConstExprHashingUtils::HashString("bn"); + static constexpr uint32_t bg_HASH = ConstExprHashingUtils::HashString("bg"); + static constexpr uint32_t ca_HASH = ConstExprHashingUtils::HashString("ca"); + static constexpr uint32_t zh_HASH = ConstExprHashingUtils::HashString("zh"); + static constexpr uint32_t hr_HASH = ConstExprHashingUtils::HashString("hr"); + static constexpr uint32_t cs_HASH = ConstExprHashingUtils::HashString("cs"); + static constexpr uint32_t da_HASH = ConstExprHashingUtils::HashString("da"); + static constexpr uint32_t nl_HASH = ConstExprHashingUtils::HashString("nl"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); + static constexpr uint32_t et_HASH = ConstExprHashingUtils::HashString("et"); + static constexpr uint32_t fi_HASH = ConstExprHashingUtils::HashString("fi"); + static constexpr uint32_t fr_HASH = ConstExprHashingUtils::HashString("fr"); + static constexpr uint32_t de_HASH = ConstExprHashingUtils::HashString("de"); + static constexpr uint32_t el_HASH = ConstExprHashingUtils::HashString("el"); + static constexpr uint32_t gu_HASH = ConstExprHashingUtils::HashString("gu"); + static constexpr uint32_t he_HASH = ConstExprHashingUtils::HashString("he"); + static constexpr uint32_t hi_HASH = ConstExprHashingUtils::HashString("hi"); + static constexpr uint32_t hu_HASH = ConstExprHashingUtils::HashString("hu"); + static constexpr uint32_t is_HASH = ConstExprHashingUtils::HashString("is"); + static constexpr uint32_t id_HASH = ConstExprHashingUtils::HashString("id"); + static constexpr uint32_t ga_HASH = ConstExprHashingUtils::HashString("ga"); + static constexpr uint32_t it_HASH = ConstExprHashingUtils::HashString("it"); + static constexpr uint32_t kn_HASH = ConstExprHashingUtils::HashString("kn"); + static constexpr uint32_t ky_HASH = ConstExprHashingUtils::HashString("ky"); + static constexpr uint32_t lv_HASH = ConstExprHashingUtils::HashString("lv"); + static constexpr uint32_t lt_HASH = ConstExprHashingUtils::HashString("lt"); + static constexpr uint32_t lb_HASH = ConstExprHashingUtils::HashString("lb"); + static constexpr uint32_t mk_HASH = ConstExprHashingUtils::HashString("mk"); + static constexpr uint32_t ml_HASH = ConstExprHashingUtils::HashString("ml"); + static constexpr uint32_t mr_HASH = ConstExprHashingUtils::HashString("mr"); + static constexpr uint32_t ne_HASH = ConstExprHashingUtils::HashString("ne"); + static constexpr uint32_t nb_HASH = ConstExprHashingUtils::HashString("nb"); + static constexpr uint32_t fa_HASH = ConstExprHashingUtils::HashString("fa"); + static constexpr uint32_t pl_HASH = ConstExprHashingUtils::HashString("pl"); + static constexpr uint32_t pt_HASH = ConstExprHashingUtils::HashString("pt"); + static constexpr uint32_t ro_HASH = ConstExprHashingUtils::HashString("ro"); + static constexpr uint32_t ru_HASH = ConstExprHashingUtils::HashString("ru"); + static constexpr uint32_t sa_HASH = ConstExprHashingUtils::HashString("sa"); + static constexpr uint32_t sr_HASH = ConstExprHashingUtils::HashString("sr"); + static constexpr uint32_t tn_HASH = ConstExprHashingUtils::HashString("tn"); + static constexpr uint32_t si_HASH = ConstExprHashingUtils::HashString("si"); + static constexpr uint32_t sk_HASH = ConstExprHashingUtils::HashString("sk"); + static constexpr uint32_t sl_HASH = ConstExprHashingUtils::HashString("sl"); + static constexpr uint32_t es_HASH = ConstExprHashingUtils::HashString("es"); + static constexpr uint32_t sv_HASH = ConstExprHashingUtils::HashString("sv"); + static constexpr uint32_t tl_HASH = ConstExprHashingUtils::HashString("tl"); + static constexpr uint32_t ta_HASH = ConstExprHashingUtils::HashString("ta"); + static constexpr uint32_t tt_HASH = ConstExprHashingUtils::HashString("tt"); + static constexpr uint32_t te_HASH = ConstExprHashingUtils::HashString("te"); + static constexpr uint32_t tr_HASH = ConstExprHashingUtils::HashString("tr"); + static constexpr uint32_t uk_HASH = ConstExprHashingUtils::HashString("uk"); + static constexpr uint32_t ur_HASH = ConstExprHashingUtils::HashString("ur"); + static constexpr uint32_t yo_HASH = ConstExprHashingUtils::HashString("yo"); + static constexpr uint32_t lij_HASH = ConstExprHashingUtils::HashString("lij"); + static constexpr uint32_t xx_HASH = ConstExprHashingUtils::HashString("xx"); ClarifyTextLanguage GetClarifyTextLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == af_HASH) { return ClarifyTextLanguage::af; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortBy.cpp index ca44bcecf35..e9cc3686a96 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CodeRepositorySortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); CodeRepositorySortBy GetCodeRepositorySortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return CodeRepositorySortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortOrder.cpp index ba3fa0bb6fa..27a8ec91f26 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CodeRepositorySortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CodeRepositorySortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); CodeRepositorySortOrder GetCodeRepositorySortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return CodeRepositorySortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CollectionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CollectionType.cpp index adc0201136f..ecb62298507 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CollectionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CollectionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CollectionTypeMapper { - static const int List_HASH = HashingUtils::HashString("List"); - static const int Set_HASH = HashingUtils::HashString("Set"); - static const int Vector_HASH = HashingUtils::HashString("Vector"); + static constexpr uint32_t List_HASH = ConstExprHashingUtils::HashString("List"); + static constexpr uint32_t Set_HASH = ConstExprHashingUtils::HashString("Set"); + static constexpr uint32_t Vector_HASH = ConstExprHashingUtils::HashString("Vector"); CollectionType GetCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == List_HASH) { return CollectionType::List; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CompilationJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CompilationJobStatus.cpp index 245f4961d75..b21e78b962a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CompilationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CompilationJobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CompilationJobStatusMapper { - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); CompilationJobStatus GetCompilationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INPROGRESS_HASH) { return CompilationJobStatus::INPROGRESS; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CompleteOnConvergence.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CompleteOnConvergence.cpp index f26663861a0..7efd52361f4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CompleteOnConvergence.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CompleteOnConvergence.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompleteOnConvergenceMapper { - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); CompleteOnConvergence GetCompleteOnConvergenceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Disabled_HASH) { return CompleteOnConvergence::Disabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CompressionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CompressionType.cpp index 9f7afae548b..ea3066754dc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CompressionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompressionTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Gzip_HASH = HashingUtils::HashString("Gzip"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Gzip_HASH = ConstExprHashingUtils::HashString("Gzip"); CompressionType GetCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return CompressionType::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ConditionOutcome.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ConditionOutcome.cpp index c7639925f09..25de879601a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ConditionOutcome.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ConditionOutcome.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConditionOutcomeMapper { - static const int True_HASH = HashingUtils::HashString("True"); - static const int False_HASH = HashingUtils::HashString("False"); + static constexpr uint32_t True_HASH = ConstExprHashingUtils::HashString("True"); + static constexpr uint32_t False_HASH = ConstExprHashingUtils::HashString("False"); ConditionOutcome GetConditionOutcomeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == True_HASH) { return ConditionOutcome::True; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerMode.cpp index 6360bdcd775..85975924940 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContainerModeMapper { - static const int SingleModel_HASH = HashingUtils::HashString("SingleModel"); - static const int MultiModel_HASH = HashingUtils::HashString("MultiModel"); + static constexpr uint32_t SingleModel_HASH = ConstExprHashingUtils::HashString("SingleModel"); + static constexpr uint32_t MultiModel_HASH = ConstExprHashingUtils::HashString("MultiModel"); ContainerMode GetContainerModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SingleModel_HASH) { return ContainerMode::SingleModel; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContentClassifier.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContentClassifier.cpp index a18678aec36..0400019cbfe 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContentClassifier.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContentClassifier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentClassifierMapper { - static const int FreeOfPersonallyIdentifiableInformation_HASH = HashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); - static const int FreeOfAdultContent_HASH = HashingUtils::HashString("FreeOfAdultContent"); + static constexpr uint32_t FreeOfPersonallyIdentifiableInformation_HASH = ConstExprHashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); + static constexpr uint32_t FreeOfAdultContent_HASH = ConstExprHashingUtils::HashString("FreeOfAdultContent"); ContentClassifier GetContentClassifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FreeOfPersonallyIdentifiableInformation_HASH) { return ContentClassifier::FreeOfPersonallyIdentifiableInformation; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CrossAccountFilterOption.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CrossAccountFilterOption.cpp index f63bd4a0a54..d49b64340ca 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CrossAccountFilterOption.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CrossAccountFilterOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CrossAccountFilterOptionMapper { - static const int SameAccount_HASH = HashingUtils::HashString("SameAccount"); - static const int CrossAccount_HASH = HashingUtils::HashString("CrossAccount"); + static constexpr uint32_t SameAccount_HASH = ConstExprHashingUtils::HashString("SameAccount"); + static constexpr uint32_t CrossAccount_HASH = ConstExprHashingUtils::HashString("CrossAccount"); CrossAccountFilterOption GetCrossAccountFilterOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SameAccount_HASH) { return CrossAccountFilterOption::SameAccount; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DataDistributionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DataDistributionType.cpp index 1236853f1dc..451f16f5bf4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DataDistributionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DataDistributionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataDistributionTypeMapper { - static const int FullyReplicated_HASH = HashingUtils::HashString("FullyReplicated"); - static const int ShardedByS3Key_HASH = HashingUtils::HashString("ShardedByS3Key"); + static constexpr uint32_t FullyReplicated_HASH = ConstExprHashingUtils::HashString("FullyReplicated"); + static constexpr uint32_t ShardedByS3Key_HASH = ConstExprHashingUtils::HashString("ShardedByS3Key"); DataDistributionType GetDataDistributionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FullyReplicated_HASH) { return DataDistributionType::FullyReplicated; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DataSourceName.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DataSourceName.cpp index b07b9fdf7c6..2ed51c54fca 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DataSourceName.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DataSourceName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataSourceNameMapper { - static const int SalesforceGenie_HASH = HashingUtils::HashString("SalesforceGenie"); - static const int Snowflake_HASH = HashingUtils::HashString("Snowflake"); + static constexpr uint32_t SalesforceGenie_HASH = ConstExprHashingUtils::HashString("SalesforceGenie"); + static constexpr uint32_t Snowflake_HASH = ConstExprHashingUtils::HashString("Snowflake"); DataSourceName GetDataSourceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SalesforceGenie_HASH) { return DataSourceName::SalesforceGenie; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedAlgorithmStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedAlgorithmStatus.cpp index 255ee37d536..6c3c8187a0e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedAlgorithmStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedAlgorithmStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DetailedAlgorithmStatusMapper { - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DetailedAlgorithmStatus GetDetailedAlgorithmStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotStarted_HASH) { return DetailedAlgorithmStatus::NotStarted; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedModelPackageStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedModelPackageStatus.cpp index ed87ed9a14e..df313d0260a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedModelPackageStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DetailedModelPackageStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DetailedModelPackageStatusMapper { - static const int NotStarted_HASH = HashingUtils::HashString("NotStarted"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t NotStarted_HASH = ConstExprHashingUtils::HashString("NotStarted"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DetailedModelPackageStatus GetDetailedModelPackageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NotStarted_HASH) { return DetailedModelPackageStatus::NotStarted; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceDeploymentStatus.cpp index a433fca89b6..9f0acfbb0c1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceDeploymentStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeviceDeploymentStatusMapper { - static const int READYTODEPLOY_HASH = HashingUtils::HashString("READYTODEPLOY"); - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int DEPLOYED_HASH = HashingUtils::HashString("DEPLOYED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t READYTODEPLOY_HASH = ConstExprHashingUtils::HashString("READYTODEPLOY"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t DEPLOYED_HASH = ConstExprHashingUtils::HashString("DEPLOYED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); DeviceDeploymentStatus GetDeviceDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READYTODEPLOY_HASH) { return DeviceDeploymentStatus::READYTODEPLOY; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceSubsetType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceSubsetType.cpp index 4254d7e388e..0e30edf58f7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceSubsetType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DeviceSubsetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeviceSubsetTypeMapper { - static const int PERCENTAGE_HASH = HashingUtils::HashString("PERCENTAGE"); - static const int SELECTION_HASH = HashingUtils::HashString("SELECTION"); - static const int NAMECONTAINS_HASH = HashingUtils::HashString("NAMECONTAINS"); + static constexpr uint32_t PERCENTAGE_HASH = ConstExprHashingUtils::HashString("PERCENTAGE"); + static constexpr uint32_t SELECTION_HASH = ConstExprHashingUtils::HashString("SELECTION"); + static constexpr uint32_t NAMECONTAINS_HASH = ConstExprHashingUtils::HashString("NAMECONTAINS"); DeviceSubsetType GetDeviceSubsetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERCENTAGE_HASH) { return DeviceSubsetType::PERCENTAGE; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DirectInternetAccess.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DirectInternetAccess.cpp index 969d612ccfb..6c22b8a9545 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DirectInternetAccess.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DirectInternetAccess.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DirectInternetAccessMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); DirectInternetAccess GetDirectInternetAccessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return DirectInternetAccess::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/Direction.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/Direction.cpp index a592a04e017..76a04d01a96 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/Direction.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/Direction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DirectionMapper { - static const int Both_HASH = HashingUtils::HashString("Both"); - static const int Ascendants_HASH = HashingUtils::HashString("Ascendants"); - static const int Descendants_HASH = HashingUtils::HashString("Descendants"); + static constexpr uint32_t Both_HASH = ConstExprHashingUtils::HashString("Both"); + static constexpr uint32_t Ascendants_HASH = ConstExprHashingUtils::HashString("Ascendants"); + static constexpr uint32_t Descendants_HASH = ConstExprHashingUtils::HashString("Descendants"); Direction GetDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Both_HASH) { return Direction::Both; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainStatus.cpp index 12872536c93..508ae334279 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DomainStatusMapper { - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Update_Failed_HASH = HashingUtils::HashString("Update_Failed"); - static const int Delete_Failed_HASH = HashingUtils::HashString("Delete_Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Update_Failed_HASH = ConstExprHashingUtils::HashString("Update_Failed"); + static constexpr uint32_t Delete_Failed_HASH = ConstExprHashingUtils::HashString("Delete_Failed"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Deleting_HASH) { return DomainStatus::Deleting; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePackagingJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePackagingJobStatus.cpp index 95303267937..169b959bddf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePackagingJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePackagingJobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace EdgePackagingJobStatusMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); EdgePackagingJobStatus GetEdgePackagingJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return EdgePackagingJobStatus::STARTING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentStatus.cpp index fbd492a6e7d..b3d5964ffb0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EdgePresetDeploymentStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); EdgePresetDeploymentStatus GetEdgePresetDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return EdgePresetDeploymentStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentType.cpp index 481385aa251..2121344ecde 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EdgePresetDeploymentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EdgePresetDeploymentTypeMapper { - static const int GreengrassV2Component_HASH = HashingUtils::HashString("GreengrassV2Component"); + static constexpr uint32_t GreengrassV2Component_HASH = ConstExprHashingUtils::HashString("GreengrassV2Component"); EdgePresetDeploymentType GetEdgePresetDeploymentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GreengrassV2Component_HASH) { return EdgePresetDeploymentType::GreengrassV2Component; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointConfigSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointConfigSortKey.cpp index b076bbb465a..c5f7180c2ab 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointConfigSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointConfigSortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EndpointConfigSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); EndpointConfigSortKey GetEndpointConfigSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return EndpointConfigSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointSortKey.cpp index 75a17d048f2..8878655a4ef 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EndpointSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); EndpointSortKey GetEndpointSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return EndpointSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointStatus.cpp index 6a251376ee9..46add4c882c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/EndpointStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace EndpointStatusMapper { - static const int OutOfService_HASH = HashingUtils::HashString("OutOfService"); - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int SystemUpdating_HASH = HashingUtils::HashString("SystemUpdating"); - static const int RollingBack_HASH = HashingUtils::HashString("RollingBack"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int UpdateRollbackFailed_HASH = HashingUtils::HashString("UpdateRollbackFailed"); + static constexpr uint32_t OutOfService_HASH = ConstExprHashingUtils::HashString("OutOfService"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t SystemUpdating_HASH = ConstExprHashingUtils::HashString("SystemUpdating"); + static constexpr uint32_t RollingBack_HASH = ConstExprHashingUtils::HashString("RollingBack"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t UpdateRollbackFailed_HASH = ConstExprHashingUtils::HashString("UpdateRollbackFailed"); EndpointStatus GetEndpointStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OutOfService_HASH) { return EndpointStatus::OutOfService; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionRoleIdentityConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionRoleIdentityConfig.cpp index a5263c246d7..1b316eb07cb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionRoleIdentityConfig.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionRoleIdentityConfig.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExecutionRoleIdentityConfigMapper { - static const int USER_PROFILE_NAME_HASH = HashingUtils::HashString("USER_PROFILE_NAME"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t USER_PROFILE_NAME_HASH = ConstExprHashingUtils::HashString("USER_PROFILE_NAME"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ExecutionRoleIdentityConfig GetExecutionRoleIdentityConfigForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_PROFILE_NAME_HASH) { return ExecutionRoleIdentityConfig::USER_PROFILE_NAME; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionStatus.cpp index 8a540bc81e1..38acb32efcf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ExecutionStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ExecutionStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int CompletedWithViolations_HASH = HashingUtils::HashString("CompletedWithViolations"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t CompletedWithViolations_HASH = ConstExprHashingUtils::HashString("CompletedWithViolations"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ExecutionStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FailureHandlingPolicy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FailureHandlingPolicy.cpp index b89618a0939..2e06a5d0955 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FailureHandlingPolicy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FailureHandlingPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailureHandlingPolicyMapper { - static const int ROLLBACK_ON_FAILURE_HASH = HashingUtils::HashString("ROLLBACK_ON_FAILURE"); - static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); + static constexpr uint32_t ROLLBACK_ON_FAILURE_HASH = ConstExprHashingUtils::HashString("ROLLBACK_ON_FAILURE"); + static constexpr uint32_t DO_NOTHING_HASH = ConstExprHashingUtils::HashString("DO_NOTHING"); FailureHandlingPolicy GetFailureHandlingPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROLLBACK_ON_FAILURE_HASH) { return FailureHandlingPolicy::ROLLBACK_ON_FAILURE; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortBy.cpp index df19eefe045..ec1b044ed7a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FeatureGroupSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int FeatureGroupStatus_HASH = HashingUtils::HashString("FeatureGroupStatus"); - static const int OfflineStoreStatus_HASH = HashingUtils::HashString("OfflineStoreStatus"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t FeatureGroupStatus_HASH = ConstExprHashingUtils::HashString("FeatureGroupStatus"); + static constexpr uint32_t OfflineStoreStatus_HASH = ConstExprHashingUtils::HashString("OfflineStoreStatus"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); FeatureGroupSortBy GetFeatureGroupSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return FeatureGroupSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortOrder.cpp index a4e5535efaa..4630c50a3bc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureGroupSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); FeatureGroupSortOrder GetFeatureGroupSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return FeatureGroupSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupStatus.cpp index 5f730d14e39..a6adfae0488 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureGroupStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FeatureGroupStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int CreateFailed_HASH = HashingUtils::HashString("CreateFailed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t CreateFailed_HASH = ConstExprHashingUtils::HashString("CreateFailed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); FeatureGroupStatus GetFeatureGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return FeatureGroupStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureStatus.cpp index 457237ef19d..de604c47763 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); FeatureStatus GetFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return FeatureStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureType.cpp index 4e4b2ac65fd..8d6c9387397 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FeatureType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FeatureTypeMapper { - static const int Integral_HASH = HashingUtils::HashString("Integral"); - static const int Fractional_HASH = HashingUtils::HashString("Fractional"); - static const int String_HASH = HashingUtils::HashString("String"); + static constexpr uint32_t Integral_HASH = ConstExprHashingUtils::HashString("Integral"); + static constexpr uint32_t Fractional_HASH = ConstExprHashingUtils::HashString("Fractional"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); FeatureType GetFeatureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Integral_HASH) { return FeatureType::Integral; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemAccessMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemAccessMode.cpp index 483b8f84056..d495dfef28a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemAccessMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemAccessMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileSystemAccessModeMapper { - static const int rw_HASH = HashingUtils::HashString("rw"); - static const int ro_HASH = HashingUtils::HashString("ro"); + static constexpr uint32_t rw_HASH = ConstExprHashingUtils::HashString("rw"); + static constexpr uint32_t ro_HASH = ConstExprHashingUtils::HashString("ro"); FileSystemAccessMode GetFileSystemAccessModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == rw_HASH) { return FileSystemAccessMode::rw; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemType.cpp index ad1bf94ccfb..fe4469c8bda 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FileSystemType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileSystemTypeMapper { - static const int EFS_HASH = HashingUtils::HashString("EFS"); - static const int FSxLustre_HASH = HashingUtils::HashString("FSxLustre"); + static constexpr uint32_t EFS_HASH = ConstExprHashingUtils::HashString("EFS"); + static constexpr uint32_t FSxLustre_HASH = ConstExprHashingUtils::HashString("FSxLustre"); FileSystemType GetFileSystemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EFS_HASH) { return FileSystemType::EFS; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FillingType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FillingType.cpp index 263a934bcbc..5203acb2868 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FillingType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FillingType.cpp @@ -20,19 +20,19 @@ namespace Aws namespace FillingTypeMapper { - static const int frontfill_HASH = HashingUtils::HashString("frontfill"); - static const int middlefill_HASH = HashingUtils::HashString("middlefill"); - static const int backfill_HASH = HashingUtils::HashString("backfill"); - static const int futurefill_HASH = HashingUtils::HashString("futurefill"); - static const int frontfill_value_HASH = HashingUtils::HashString("frontfill_value"); - static const int middlefill_value_HASH = HashingUtils::HashString("middlefill_value"); - static const int backfill_value_HASH = HashingUtils::HashString("backfill_value"); - static const int futurefill_value_HASH = HashingUtils::HashString("futurefill_value"); + static constexpr uint32_t frontfill_HASH = ConstExprHashingUtils::HashString("frontfill"); + static constexpr uint32_t middlefill_HASH = ConstExprHashingUtils::HashString("middlefill"); + static constexpr uint32_t backfill_HASH = ConstExprHashingUtils::HashString("backfill"); + static constexpr uint32_t futurefill_HASH = ConstExprHashingUtils::HashString("futurefill"); + static constexpr uint32_t frontfill_value_HASH = ConstExprHashingUtils::HashString("frontfill_value"); + static constexpr uint32_t middlefill_value_HASH = ConstExprHashingUtils::HashString("middlefill_value"); + static constexpr uint32_t backfill_value_HASH = ConstExprHashingUtils::HashString("backfill_value"); + static constexpr uint32_t futurefill_value_HASH = ConstExprHashingUtils::HashString("futurefill_value"); FillingType GetFillingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == frontfill_HASH) { return FillingType::frontfill; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FlatInvocations.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FlatInvocations.cpp index 70f7df31309..0e2b3e876d6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FlatInvocations.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FlatInvocations.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FlatInvocationsMapper { - static const int Continue_HASH = HashingUtils::HashString("Continue"); - static const int Stop_HASH = HashingUtils::HashString("Stop"); + static constexpr uint32_t Continue_HASH = ConstExprHashingUtils::HashString("Continue"); + static constexpr uint32_t Stop_HASH = ConstExprHashingUtils::HashString("Stop"); FlatInvocations GetFlatInvocationsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Continue_HASH) { return FlatInvocations::Continue; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/FlowDefinitionStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/FlowDefinitionStatus.cpp index 17ca80dafe0..638188261fd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/FlowDefinitionStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/FlowDefinitionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FlowDefinitionStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); FlowDefinitionStatus GetFlowDefinitionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return FlowDefinitionStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/Framework.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/Framework.cpp index cd930df8e12..1ede189f0ef 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/Framework.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/Framework.cpp @@ -20,20 +20,20 @@ namespace Aws namespace FrameworkMapper { - static const int TENSORFLOW_HASH = HashingUtils::HashString("TENSORFLOW"); - static const int KERAS_HASH = HashingUtils::HashString("KERAS"); - static const int MXNET_HASH = HashingUtils::HashString("MXNET"); - static const int ONNX_HASH = HashingUtils::HashString("ONNX"); - static const int PYTORCH_HASH = HashingUtils::HashString("PYTORCH"); - static const int XGBOOST_HASH = HashingUtils::HashString("XGBOOST"); - static const int TFLITE_HASH = HashingUtils::HashString("TFLITE"); - static const int DARKNET_HASH = HashingUtils::HashString("DARKNET"); - static const int SKLEARN_HASH = HashingUtils::HashString("SKLEARN"); + static constexpr uint32_t TENSORFLOW_HASH = ConstExprHashingUtils::HashString("TENSORFLOW"); + static constexpr uint32_t KERAS_HASH = ConstExprHashingUtils::HashString("KERAS"); + static constexpr uint32_t MXNET_HASH = ConstExprHashingUtils::HashString("MXNET"); + static constexpr uint32_t ONNX_HASH = ConstExprHashingUtils::HashString("ONNX"); + static constexpr uint32_t PYTORCH_HASH = ConstExprHashingUtils::HashString("PYTORCH"); + static constexpr uint32_t XGBOOST_HASH = ConstExprHashingUtils::HashString("XGBOOST"); + static constexpr uint32_t TFLITE_HASH = ConstExprHashingUtils::HashString("TFLITE"); + static constexpr uint32_t DARKNET_HASH = ConstExprHashingUtils::HashString("DARKNET"); + static constexpr uint32_t SKLEARN_HASH = ConstExprHashingUtils::HashString("SKLEARN"); Framework GetFrameworkForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TENSORFLOW_HASH) { return Framework::TENSORFLOW; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentSortBy.cpp index 1fe555f057f..573886cbcef 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HubContentSortByMapper { - static const int HubContentName_HASH = HashingUtils::HashString("HubContentName"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int HubContentStatus_HASH = HashingUtils::HashString("HubContentStatus"); + static constexpr uint32_t HubContentName_HASH = ConstExprHashingUtils::HashString("HubContentName"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t HubContentStatus_HASH = ConstExprHashingUtils::HashString("HubContentStatus"); HubContentSortBy GetHubContentSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HubContentName_HASH) { return HubContentSortBy::HubContentName; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentStatus.cpp index 91fed196686..de294753084 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace HubContentStatusMapper { - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Importing_HASH = HashingUtils::HashString("Importing"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int ImportFailed_HASH = HashingUtils::HashString("ImportFailed"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Importing_HASH = ConstExprHashingUtils::HashString("Importing"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t ImportFailed_HASH = ConstExprHashingUtils::HashString("ImportFailed"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); HubContentStatus GetHubContentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Available_HASH) { return HubContentStatus::Available; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentType.cpp index 5887cd0419e..4a7a7921663 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubContentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HubContentTypeMapper { - static const int Model_HASH = HashingUtils::HashString("Model"); - static const int Notebook_HASH = HashingUtils::HashString("Notebook"); + static constexpr uint32_t Model_HASH = ConstExprHashingUtils::HashString("Model"); + static constexpr uint32_t Notebook_HASH = ConstExprHashingUtils::HashString("Notebook"); HubContentType GetHubContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Model_HASH) { return HubContentType::Model; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubSortBy.cpp index eb4893fcb84..0720c853331 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubSortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HubSortByMapper { - static const int HubName_HASH = HashingUtils::HashString("HubName"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int HubStatus_HASH = HashingUtils::HashString("HubStatus"); - static const int AccountIdOwner_HASH = HashingUtils::HashString("AccountIdOwner"); + static constexpr uint32_t HubName_HASH = ConstExprHashingUtils::HashString("HubName"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t HubStatus_HASH = ConstExprHashingUtils::HashString("HubStatus"); + static constexpr uint32_t AccountIdOwner_HASH = ConstExprHashingUtils::HashString("AccountIdOwner"); HubSortBy GetHubSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HubName_HASH) { return HubSortBy::HubName; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubStatus.cpp index 0ba8a37dd56..633296e35d8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HubStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HubStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace HubStatusMapper { - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int CreateFailed_HASH = HashingUtils::HashString("CreateFailed"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t CreateFailed_HASH = ConstExprHashingUtils::HashString("CreateFailed"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); HubStatus GetHubStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InService_HASH) { return HubStatus::InService; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HumanTaskUiStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HumanTaskUiStatus.cpp index c8d6b211c50..8439207911c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HumanTaskUiStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HumanTaskUiStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HumanTaskUiStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); HumanTaskUiStatus GetHumanTaskUiStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return HumanTaskUiStatus::Active; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterScalingType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterScalingType.cpp index 191955341d2..9d8bfb501c7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterScalingType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterScalingType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HyperParameterScalingTypeMapper { - static const int Auto_HASH = HashingUtils::HashString("Auto"); - static const int Linear_HASH = HashingUtils::HashString("Linear"); - static const int Logarithmic_HASH = HashingUtils::HashString("Logarithmic"); - static const int ReverseLogarithmic_HASH = HashingUtils::HashString("ReverseLogarithmic"); + static constexpr uint32_t Auto_HASH = ConstExprHashingUtils::HashString("Auto"); + static constexpr uint32_t Linear_HASH = ConstExprHashingUtils::HashString("Linear"); + static constexpr uint32_t Logarithmic_HASH = ConstExprHashingUtils::HashString("Logarithmic"); + static constexpr uint32_t ReverseLogarithmic_HASH = ConstExprHashingUtils::HashString("ReverseLogarithmic"); HyperParameterScalingType GetHyperParameterScalingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Auto_HASH) { return HyperParameterScalingType::Auto; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningAllocationStrategy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningAllocationStrategy.cpp index 6154ba805f5..c61006884ff 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningAllocationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningAllocationStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace HyperParameterTuningAllocationStrategyMapper { - static const int Prioritized_HASH = HashingUtils::HashString("Prioritized"); + static constexpr uint32_t Prioritized_HASH = ConstExprHashingUtils::HashString("Prioritized"); HyperParameterTuningAllocationStrategy GetHyperParameterTuningAllocationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Prioritized_HASH) { return HyperParameterTuningAllocationStrategy::Prioritized; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobObjectiveType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobObjectiveType.cpp index 8e4ae8d0b78..be28f762c59 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobObjectiveType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobObjectiveType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HyperParameterTuningJobObjectiveTypeMapper { - static const int Maximize_HASH = HashingUtils::HashString("Maximize"); - static const int Minimize_HASH = HashingUtils::HashString("Minimize"); + static constexpr uint32_t Maximize_HASH = ConstExprHashingUtils::HashString("Maximize"); + static constexpr uint32_t Minimize_HASH = ConstExprHashingUtils::HashString("Minimize"); HyperParameterTuningJobObjectiveType GetHyperParameterTuningJobObjectiveTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Maximize_HASH) { return HyperParameterTuningJobObjectiveType::Maximize; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobSortByOptions.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobSortByOptions.cpp index 3e94dcc19e0..ff0c621b47c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobSortByOptions.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobSortByOptions.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HyperParameterTuningJobSortByOptionsMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); HyperParameterTuningJobSortByOptions GetHyperParameterTuningJobSortByOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return HyperParameterTuningJobSortByOptions::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStatus.cpp index 6fff503da1d..998ae3b9c76 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace HyperParameterTuningJobStatusMapper { - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); HyperParameterTuningJobStatus GetHyperParameterTuningJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Completed_HASH) { return HyperParameterTuningJobStatus::Completed; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStrategyType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStrategyType.cpp index d06bb0e909b..e25a04316ba 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobStrategyType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HyperParameterTuningJobStrategyTypeMapper { - static const int Bayesian_HASH = HashingUtils::HashString("Bayesian"); - static const int Random_HASH = HashingUtils::HashString("Random"); - static const int Hyperband_HASH = HashingUtils::HashString("Hyperband"); - static const int Grid_HASH = HashingUtils::HashString("Grid"); + static constexpr uint32_t Bayesian_HASH = ConstExprHashingUtils::HashString("Bayesian"); + static constexpr uint32_t Random_HASH = ConstExprHashingUtils::HashString("Random"); + static constexpr uint32_t Hyperband_HASH = ConstExprHashingUtils::HashString("Hyperband"); + static constexpr uint32_t Grid_HASH = ConstExprHashingUtils::HashString("Grid"); HyperParameterTuningJobStrategyType GetHyperParameterTuningJobStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Bayesian_HASH) { return HyperParameterTuningJobStrategyType::Bayesian; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobWarmStartType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobWarmStartType.cpp index f4b954a47c0..5fe384c3b27 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobWarmStartType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HyperParameterTuningJobWarmStartType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HyperParameterTuningJobWarmStartTypeMapper { - static const int IdenticalDataAndAlgorithm_HASH = HashingUtils::HashString("IdenticalDataAndAlgorithm"); - static const int TransferLearning_HASH = HashingUtils::HashString("TransferLearning"); + static constexpr uint32_t IdenticalDataAndAlgorithm_HASH = ConstExprHashingUtils::HashString("IdenticalDataAndAlgorithm"); + static constexpr uint32_t TransferLearning_HASH = ConstExprHashingUtils::HashString("TransferLearning"); HyperParameterTuningJobWarmStartType GetHyperParameterTuningJobWarmStartTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IdenticalDataAndAlgorithm_HASH) { return HyperParameterTuningJobWarmStartType::IdenticalDataAndAlgorithm; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortBy.cpp index 2ba1663887f..14c2c02780d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageSortByMapper { - static const int CREATION_TIME_HASH = HashingUtils::HashString("CREATION_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); - static const int IMAGE_NAME_HASH = HashingUtils::HashString("IMAGE_NAME"); + static constexpr uint32_t CREATION_TIME_HASH = ConstExprHashingUtils::HashString("CREATION_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t IMAGE_NAME_HASH = ConstExprHashingUtils::HashString("IMAGE_NAME"); ImageSortBy GetImageSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_TIME_HASH) { return ImageSortBy::CREATION_TIME; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortOrder.cpp index 16c44107db0..bbbe9f330dc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageSortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); ImageSortOrder GetImageSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return ImageSortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageStatus.cpp index 12fa4777f13..79aea2729fd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ImageStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ImageStatus GetImageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ImageStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortBy.cpp index 0180f0bfd8b..e668ce14ad1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageVersionSortByMapper { - static const int CREATION_TIME_HASH = HashingUtils::HashString("CREATION_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); - static const int VERSION_HASH = HashingUtils::HashString("VERSION"); + static constexpr uint32_t CREATION_TIME_HASH = ConstExprHashingUtils::HashString("CREATION_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t VERSION_HASH = ConstExprHashingUtils::HashString("VERSION"); ImageVersionSortBy GetImageVersionSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATION_TIME_HASH) { return ImageVersionSortBy::CREATION_TIME; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortOrder.cpp index 7380a40207f..3d903738a39 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageVersionSortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); ImageVersionSortOrder GetImageVersionSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return ImageVersionSortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionStatus.cpp index f474b5b8a45..09efd8d4345 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ImageVersionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ImageVersionStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ImageVersionStatus GetImageVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ImageVersionStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExecutionMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExecutionMode.cpp index b658d543962..50b6e68eead 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExecutionMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExecutionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InferenceExecutionModeMapper { - static const int Serial_HASH = HashingUtils::HashString("Serial"); - static const int Direct_HASH = HashingUtils::HashString("Direct"); + static constexpr uint32_t Serial_HASH = ConstExprHashingUtils::HashString("Serial"); + static constexpr uint32_t Direct_HASH = ConstExprHashingUtils::HashString("Direct"); InferenceExecutionMode GetInferenceExecutionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Serial_HASH) { return InferenceExecutionMode::Serial; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStatus.cpp index ba510f825a3..7cf0858b697 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace InferenceExperimentStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Created_HASH = HashingUtils::HashString("Created"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Running_HASH = HashingUtils::HashString("Running"); - static const int Starting_HASH = HashingUtils::HashString("Starting"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Created_HASH = ConstExprHashingUtils::HashString("Created"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Running_HASH = ConstExprHashingUtils::HashString("Running"); + static constexpr uint32_t Starting_HASH = ConstExprHashingUtils::HashString("Starting"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); InferenceExperimentStatus GetInferenceExperimentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return InferenceExperimentStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStopDesiredState.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStopDesiredState.cpp index 6f0d5324feb..995e64ad815 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStopDesiredState.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentStopDesiredState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InferenceExperimentStopDesiredStateMapper { - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); InferenceExperimentStopDesiredState GetInferenceExperimentStopDesiredStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Completed_HASH) { return InferenceExperimentStopDesiredState::Completed; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentType.cpp index 94a4da9e447..e5ad95e8a0f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/InferenceExperimentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InferenceExperimentTypeMapper { - static const int ShadowMode_HASH = HashingUtils::HashString("ShadowMode"); + static constexpr uint32_t ShadowMode_HASH = ConstExprHashingUtils::HashString("ShadowMode"); InferenceExperimentType GetInferenceExperimentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ShadowMode_HASH) { return InferenceExperimentType::ShadowMode; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/InputMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/InputMode.cpp index c7fe12c34bd..34a04248a02 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/InputMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/InputMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputModeMapper { - static const int Pipe_HASH = HashingUtils::HashString("Pipe"); - static const int File_HASH = HashingUtils::HashString("File"); + static constexpr uint32_t Pipe_HASH = ConstExprHashingUtils::HashString("Pipe"); + static constexpr uint32_t File_HASH = ConstExprHashingUtils::HashString("File"); InputMode GetInputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pipe_HASH) { return InputMode::Pipe; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/InstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/InstanceType.cpp index ed22daed311..7b092087888 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/InstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/InstanceType.cpp @@ -20,86 +20,86 @@ namespace Aws namespace InstanceTypeMapper { - static const int ml_t2_medium_HASH = HashingUtils::HashString("ml.t2.medium"); - static const int ml_t2_large_HASH = HashingUtils::HashString("ml.t2.large"); - static const int ml_t2_xlarge_HASH = HashingUtils::HashString("ml.t2.xlarge"); - static const int ml_t2_2xlarge_HASH = HashingUtils::HashString("ml.t2.2xlarge"); - static const int ml_t3_medium_HASH = HashingUtils::HashString("ml.t3.medium"); - static const int ml_t3_large_HASH = HashingUtils::HashString("ml.t3.large"); - static const int ml_t3_xlarge_HASH = HashingUtils::HashString("ml.t3.xlarge"); - static const int ml_t3_2xlarge_HASH = HashingUtils::HashString("ml.t3.2xlarge"); - static const int ml_m4_xlarge_HASH = HashingUtils::HashString("ml.m4.xlarge"); - static const int ml_m4_2xlarge_HASH = HashingUtils::HashString("ml.m4.2xlarge"); - static const int ml_m4_4xlarge_HASH = HashingUtils::HashString("ml.m4.4xlarge"); - static const int ml_m4_10xlarge_HASH = HashingUtils::HashString("ml.m4.10xlarge"); - static const int ml_m4_16xlarge_HASH = HashingUtils::HashString("ml.m4.16xlarge"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_m5d_large_HASH = HashingUtils::HashString("ml.m5d.large"); - static const int ml_m5d_xlarge_HASH = HashingUtils::HashString("ml.m5d.xlarge"); - static const int ml_m5d_2xlarge_HASH = HashingUtils::HashString("ml.m5d.2xlarge"); - static const int ml_m5d_4xlarge_HASH = HashingUtils::HashString("ml.m5d.4xlarge"); - static const int ml_m5d_8xlarge_HASH = HashingUtils::HashString("ml.m5d.8xlarge"); - static const int ml_m5d_12xlarge_HASH = HashingUtils::HashString("ml.m5d.12xlarge"); - static const int ml_m5d_16xlarge_HASH = HashingUtils::HashString("ml.m5d.16xlarge"); - static const int ml_m5d_24xlarge_HASH = HashingUtils::HashString("ml.m5d.24xlarge"); - static const int ml_c4_xlarge_HASH = HashingUtils::HashString("ml.c4.xlarge"); - static const int ml_c4_2xlarge_HASH = HashingUtils::HashString("ml.c4.2xlarge"); - static const int ml_c4_4xlarge_HASH = HashingUtils::HashString("ml.c4.4xlarge"); - static const int ml_c4_8xlarge_HASH = HashingUtils::HashString("ml.c4.8xlarge"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_c5d_xlarge_HASH = HashingUtils::HashString("ml.c5d.xlarge"); - static const int ml_c5d_2xlarge_HASH = HashingUtils::HashString("ml.c5d.2xlarge"); - static const int ml_c5d_4xlarge_HASH = HashingUtils::HashString("ml.c5d.4xlarge"); - static const int ml_c5d_9xlarge_HASH = HashingUtils::HashString("ml.c5d.9xlarge"); - static const int ml_c5d_18xlarge_HASH = HashingUtils::HashString("ml.c5d.18xlarge"); - static const int ml_p2_xlarge_HASH = HashingUtils::HashString("ml.p2.xlarge"); - static const int ml_p2_8xlarge_HASH = HashingUtils::HashString("ml.p2.8xlarge"); - static const int ml_p2_16xlarge_HASH = HashingUtils::HashString("ml.p2.16xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_p3dn_24xlarge_HASH = HashingUtils::HashString("ml.p3dn.24xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); - static const int ml_r5_large_HASH = HashingUtils::HashString("ml.r5.large"); - static const int ml_r5_xlarge_HASH = HashingUtils::HashString("ml.r5.xlarge"); - static const int ml_r5_2xlarge_HASH = HashingUtils::HashString("ml.r5.2xlarge"); - static const int ml_r5_4xlarge_HASH = HashingUtils::HashString("ml.r5.4xlarge"); - static const int ml_r5_8xlarge_HASH = HashingUtils::HashString("ml.r5.8xlarge"); - static const int ml_r5_12xlarge_HASH = HashingUtils::HashString("ml.r5.12xlarge"); - static const int ml_r5_16xlarge_HASH = HashingUtils::HashString("ml.r5.16xlarge"); - static const int ml_r5_24xlarge_HASH = HashingUtils::HashString("ml.r5.24xlarge"); - static const int ml_g5_xlarge_HASH = HashingUtils::HashString("ml.g5.xlarge"); - static const int ml_g5_2xlarge_HASH = HashingUtils::HashString("ml.g5.2xlarge"); - static const int ml_g5_4xlarge_HASH = HashingUtils::HashString("ml.g5.4xlarge"); - static const int ml_g5_8xlarge_HASH = HashingUtils::HashString("ml.g5.8xlarge"); - static const int ml_g5_16xlarge_HASH = HashingUtils::HashString("ml.g5.16xlarge"); - static const int ml_g5_12xlarge_HASH = HashingUtils::HashString("ml.g5.12xlarge"); - static const int ml_g5_24xlarge_HASH = HashingUtils::HashString("ml.g5.24xlarge"); - static const int ml_g5_48xlarge_HASH = HashingUtils::HashString("ml.g5.48xlarge"); - static const int ml_inf1_xlarge_HASH = HashingUtils::HashString("ml.inf1.xlarge"); - static const int ml_inf1_2xlarge_HASH = HashingUtils::HashString("ml.inf1.2xlarge"); - static const int ml_inf1_6xlarge_HASH = HashingUtils::HashString("ml.inf1.6xlarge"); - static const int ml_inf1_24xlarge_HASH = HashingUtils::HashString("ml.inf1.24xlarge"); - static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); - static const int ml_p4de_24xlarge_HASH = HashingUtils::HashString("ml.p4de.24xlarge"); + static constexpr uint32_t ml_t2_medium_HASH = ConstExprHashingUtils::HashString("ml.t2.medium"); + static constexpr uint32_t ml_t2_large_HASH = ConstExprHashingUtils::HashString("ml.t2.large"); + static constexpr uint32_t ml_t2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.t2.xlarge"); + static constexpr uint32_t ml_t2_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.t2.2xlarge"); + static constexpr uint32_t ml_t3_medium_HASH = ConstExprHashingUtils::HashString("ml.t3.medium"); + static constexpr uint32_t ml_t3_large_HASH = ConstExprHashingUtils::HashString("ml.t3.large"); + static constexpr uint32_t ml_t3_xlarge_HASH = ConstExprHashingUtils::HashString("ml.t3.xlarge"); + static constexpr uint32_t ml_t3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.t3.2xlarge"); + static constexpr uint32_t ml_m4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.xlarge"); + static constexpr uint32_t ml_m4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.2xlarge"); + static constexpr uint32_t ml_m4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.4xlarge"); + static constexpr uint32_t ml_m4_10xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.10xlarge"); + static constexpr uint32_t ml_m4_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.16xlarge"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_m5d_large_HASH = ConstExprHashingUtils::HashString("ml.m5d.large"); + static constexpr uint32_t ml_m5d_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.xlarge"); + static constexpr uint32_t ml_m5d_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.2xlarge"); + static constexpr uint32_t ml_m5d_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.4xlarge"); + static constexpr uint32_t ml_m5d_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.8xlarge"); + static constexpr uint32_t ml_m5d_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.12xlarge"); + static constexpr uint32_t ml_m5d_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.16xlarge"); + static constexpr uint32_t ml_m5d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.24xlarge"); + static constexpr uint32_t ml_c4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.xlarge"); + static constexpr uint32_t ml_c4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.2xlarge"); + static constexpr uint32_t ml_c4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.4xlarge"); + static constexpr uint32_t ml_c4_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.8xlarge"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_c5d_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.xlarge"); + static constexpr uint32_t ml_c5d_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.2xlarge"); + static constexpr uint32_t ml_c5d_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.4xlarge"); + static constexpr uint32_t ml_c5d_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.9xlarge"); + static constexpr uint32_t ml_c5d_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.18xlarge"); + static constexpr uint32_t ml_p2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.xlarge"); + static constexpr uint32_t ml_p2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.8xlarge"); + static constexpr uint32_t ml_p2_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.16xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_p3dn_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3dn.24xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_r5_large_HASH = ConstExprHashingUtils::HashString("ml.r5.large"); + static constexpr uint32_t ml_r5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.xlarge"); + static constexpr uint32_t ml_r5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.2xlarge"); + static constexpr uint32_t ml_r5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.4xlarge"); + static constexpr uint32_t ml_r5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.8xlarge"); + static constexpr uint32_t ml_r5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.12xlarge"); + static constexpr uint32_t ml_r5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.16xlarge"); + static constexpr uint32_t ml_r5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.24xlarge"); + static constexpr uint32_t ml_g5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.xlarge"); + static constexpr uint32_t ml_g5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.2xlarge"); + static constexpr uint32_t ml_g5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.4xlarge"); + static constexpr uint32_t ml_g5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.8xlarge"); + static constexpr uint32_t ml_g5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.16xlarge"); + static constexpr uint32_t ml_g5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.12xlarge"); + static constexpr uint32_t ml_g5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.24xlarge"); + static constexpr uint32_t ml_g5_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.48xlarge"); + static constexpr uint32_t ml_inf1_xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.xlarge"); + static constexpr uint32_t ml_inf1_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.2xlarge"); + static constexpr uint32_t ml_inf1_6xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.6xlarge"); + static constexpr uint32_t ml_inf1_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.24xlarge"); + static constexpr uint32_t ml_p4d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4d.24xlarge"); + static constexpr uint32_t ml_p4de_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4de.24xlarge"); InstanceType GetInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_t2_medium_HASH) { return InstanceType::ml_t2_medium; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/JobType.cpp index a1a11ebc9cb..61edc2b7c73 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/JobType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobTypeMapper { - static const int TRAINING_HASH = HashingUtils::HashString("TRAINING"); - static const int INFERENCE_HASH = HashingUtils::HashString("INFERENCE"); - static const int NOTEBOOK_KERNEL_HASH = HashingUtils::HashString("NOTEBOOK_KERNEL"); + static constexpr uint32_t TRAINING_HASH = ConstExprHashingUtils::HashString("TRAINING"); + static constexpr uint32_t INFERENCE_HASH = ConstExprHashingUtils::HashString("INFERENCE"); + static constexpr uint32_t NOTEBOOK_KERNEL_HASH = ConstExprHashingUtils::HashString("NOTEBOOK_KERNEL"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRAINING_HASH) { return JobType::TRAINING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/JoinSource.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/JoinSource.cpp index d57136c8cb4..780b0559a41 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/JoinSource.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/JoinSource.cpp @@ -20,13 +20,13 @@ namespace Aws namespace JoinSourceMapper { - static const int Input_HASH = HashingUtils::HashString("Input"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t Input_HASH = ConstExprHashingUtils::HashString("Input"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); JoinSource GetJoinSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Input_HASH) { return JoinSource::Input; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/LabelingJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/LabelingJobStatus.cpp index 432992c6f43..d1e9c02aece 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/LabelingJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/LabelingJobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace LabelingJobStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); LabelingJobStatus GetLabelingJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return LabelingJobStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/LastUpdateStatusValue.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/LastUpdateStatusValue.cpp index 6e63466ff78..072c99d826b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/LastUpdateStatusValue.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/LastUpdateStatusValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LastUpdateStatusValueMapper { - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); LastUpdateStatusValue GetLastUpdateStatusValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Successful_HASH) { return LastUpdateStatusValue::Successful; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/LineageType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/LineageType.cpp index b66787f3e86..8bc71abebfb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/LineageType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/LineageType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LineageTypeMapper { - static const int TrialComponent_HASH = HashingUtils::HashString("TrialComponent"); - static const int Artifact_HASH = HashingUtils::HashString("Artifact"); - static const int Context_HASH = HashingUtils::HashString("Context"); - static const int Action_HASH = HashingUtils::HashString("Action"); + static constexpr uint32_t TrialComponent_HASH = ConstExprHashingUtils::HashString("TrialComponent"); + static constexpr uint32_t Artifact_HASH = ConstExprHashingUtils::HashString("Artifact"); + static constexpr uint32_t Context_HASH = ConstExprHashingUtils::HashString("Context"); + static constexpr uint32_t Action_HASH = ConstExprHashingUtils::HashString("Action"); LineageType GetLineageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TrialComponent_HASH) { return LineageType::TrialComponent; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListCompilationJobsSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListCompilationJobsSortBy.cpp index b15e103fe76..35c791017ef 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListCompilationJobsSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListCompilationJobsSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListCompilationJobsSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); ListCompilationJobsSortBy GetListCompilationJobsSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ListCompilationJobsSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListDeviceFleetsSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListDeviceFleetsSortBy.cpp index e2a81a6cca4..efe93127fbf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListDeviceFleetsSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListDeviceFleetsSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListDeviceFleetsSortByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CREATION_TIME_HASH = HashingUtils::HashString("CREATION_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CREATION_TIME_HASH = ConstExprHashingUtils::HashString("CREATION_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); ListDeviceFleetsSortBy GetListDeviceFleetsSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return ListDeviceFleetsSortBy::NAME; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgeDeploymentPlansSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgeDeploymentPlansSortBy.cpp index 76b3f5a1432..54289ed9f73 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgeDeploymentPlansSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgeDeploymentPlansSortBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListEdgeDeploymentPlansSortByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int DEVICE_FLEET_NAME_HASH = HashingUtils::HashString("DEVICE_FLEET_NAME"); - static const int CREATION_TIME_HASH = HashingUtils::HashString("CREATION_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t DEVICE_FLEET_NAME_HASH = ConstExprHashingUtils::HashString("DEVICE_FLEET_NAME"); + static constexpr uint32_t CREATION_TIME_HASH = ConstExprHashingUtils::HashString("CREATION_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); ListEdgeDeploymentPlansSortBy GetListEdgeDeploymentPlansSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return ListEdgeDeploymentPlansSortBy::NAME; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgePackagingJobsSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgePackagingJobsSortBy.cpp index af3cd8f4771..6a6a324739b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgePackagingJobsSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListEdgePackagingJobsSortBy.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ListEdgePackagingJobsSortByMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int MODEL_NAME_HASH = HashingUtils::HashString("MODEL_NAME"); - static const int CREATION_TIME_HASH = HashingUtils::HashString("CREATION_TIME"); - static const int LAST_MODIFIED_TIME_HASH = HashingUtils::HashString("LAST_MODIFIED_TIME"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t MODEL_NAME_HASH = ConstExprHashingUtils::HashString("MODEL_NAME"); + static constexpr uint32_t CREATION_TIME_HASH = ConstExprHashingUtils::HashString("CREATION_TIME"); + static constexpr uint32_t LAST_MODIFIED_TIME_HASH = ConstExprHashingUtils::HashString("LAST_MODIFIED_TIME"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); ListEdgePackagingJobsSortBy GetListEdgePackagingJobsSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return ListEdgePackagingJobsSortBy::NAME; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListInferenceRecommendationsJobsSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListInferenceRecommendationsJobsSortBy.cpp index 4f494aba379..def45bd94b5 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListInferenceRecommendationsJobsSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListInferenceRecommendationsJobsSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ListInferenceRecommendationsJobsSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); ListInferenceRecommendationsJobsSortBy GetListInferenceRecommendationsJobsSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ListInferenceRecommendationsJobsSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListLabelingJobsForWorkteamSortByOptions.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListLabelingJobsForWorkteamSortByOptions.cpp index 34460f92c62..6dd715009a0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListLabelingJobsForWorkteamSortByOptions.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListLabelingJobsForWorkteamSortByOptions.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ListLabelingJobsForWorkteamSortByOptionsMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ListLabelingJobsForWorkteamSortByOptions GetListLabelingJobsForWorkteamSortByOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return ListLabelingJobsForWorkteamSortByOptions::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkforcesSortByOptions.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkforcesSortByOptions.cpp index 40bd1a24db2..29308552a14 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkforcesSortByOptions.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkforcesSortByOptions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListWorkforcesSortByOptionsMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreateDate_HASH = HashingUtils::HashString("CreateDate"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreateDate_HASH = ConstExprHashingUtils::HashString("CreateDate"); ListWorkforcesSortByOptions GetListWorkforcesSortByOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ListWorkforcesSortByOptions::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkteamsSortByOptions.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkteamsSortByOptions.cpp index 70d8049f271..042f35519fa 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkteamsSortByOptions.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListWorkteamsSortByOptions.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListWorkteamsSortByOptionsMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreateDate_HASH = HashingUtils::HashString("CreateDate"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreateDate_HASH = ConstExprHashingUtils::HashString("CreateDate"); ListWorkteamsSortByOptions GetListWorkteamsSortByOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ListWorkteamsSortByOptions::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MetricSetSource.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MetricSetSource.cpp index ed864094f1e..99108d0b3b5 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MetricSetSource.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MetricSetSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MetricSetSourceMapper { - static const int Train_HASH = HashingUtils::HashString("Train"); - static const int Validation_HASH = HashingUtils::HashString("Validation"); - static const int Test_HASH = HashingUtils::HashString("Test"); + static constexpr uint32_t Train_HASH = ConstExprHashingUtils::HashString("Train"); + static constexpr uint32_t Validation_HASH = ConstExprHashingUtils::HashString("Validation"); + static constexpr uint32_t Test_HASH = ConstExprHashingUtils::HashString("Test"); MetricSetSource GetMetricSetSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Train_HASH) { return MetricSetSource::Train; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelApprovalStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelApprovalStatus.cpp index 8bc21b9e909..67356ca3655 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelApprovalStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelApprovalStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelApprovalStatusMapper { - static const int Approved_HASH = HashingUtils::HashString("Approved"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); - static const int PendingManualApproval_HASH = HashingUtils::HashString("PendingManualApproval"); + static constexpr uint32_t Approved_HASH = ConstExprHashingUtils::HashString("Approved"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); + static constexpr uint32_t PendingManualApproval_HASH = ConstExprHashingUtils::HashString("PendingManualApproval"); ModelApprovalStatus GetModelApprovalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Approved_HASH) { return ModelApprovalStatus::Approved; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCacheSetting.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCacheSetting.cpp index fac0c81d764..73c3bddf9eb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCacheSetting.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCacheSetting.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelCacheSettingMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ModelCacheSetting GetModelCacheSettingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ModelCacheSetting::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortBy.cpp index 37ff15be8fa..ea7764c5e3e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelCardExportJobSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); ModelCardExportJobSortBy GetModelCardExportJobSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ModelCardExportJobSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortOrder.cpp index 2d0a608d364..7ef4490cfac 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelCardExportJobSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); ModelCardExportJobSortOrder GetModelCardExportJobSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return ModelCardExportJobSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobStatus.cpp index 28e19c0bc23..71480ca064b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardExportJobStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelCardExportJobStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ModelCardExportJobStatus GetModelCardExportJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ModelCardExportJobStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardProcessingStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardProcessingStatus.cpp index 241050d615d..ad87d695cf9 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardProcessingStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardProcessingStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ModelCardProcessingStatusMapper { - static const int DeleteInProgress_HASH = HashingUtils::HashString("DeleteInProgress"); - static const int DeletePending_HASH = HashingUtils::HashString("DeletePending"); - static const int ContentDeleted_HASH = HashingUtils::HashString("ContentDeleted"); - static const int ExportJobsDeleted_HASH = HashingUtils::HashString("ExportJobsDeleted"); - static const int DeleteCompleted_HASH = HashingUtils::HashString("DeleteCompleted"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t DeleteInProgress_HASH = ConstExprHashingUtils::HashString("DeleteInProgress"); + static constexpr uint32_t DeletePending_HASH = ConstExprHashingUtils::HashString("DeletePending"); + static constexpr uint32_t ContentDeleted_HASH = ConstExprHashingUtils::HashString("ContentDeleted"); + static constexpr uint32_t ExportJobsDeleted_HASH = ConstExprHashingUtils::HashString("ExportJobsDeleted"); + static constexpr uint32_t DeleteCompleted_HASH = ConstExprHashingUtils::HashString("DeleteCompleted"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); ModelCardProcessingStatus GetModelCardProcessingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DeleteInProgress_HASH) { return ModelCardProcessingStatus::DeleteInProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortBy.cpp index b8a2826afbd..ac39fc45488 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelCardSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ModelCardSortBy GetModelCardSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ModelCardSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortOrder.cpp index 36875cfecc0..a9584c61aec 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelCardSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); ModelCardSortOrder GetModelCardSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return ModelCardSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardStatus.cpp index 7298d9f3c1c..ed88a0e5428 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ModelCardStatusMapper { - static const int Draft_HASH = HashingUtils::HashString("Draft"); - static const int PendingReview_HASH = HashingUtils::HashString("PendingReview"); - static const int Approved_HASH = HashingUtils::HashString("Approved"); - static const int Archived_HASH = HashingUtils::HashString("Archived"); + static constexpr uint32_t Draft_HASH = ConstExprHashingUtils::HashString("Draft"); + static constexpr uint32_t PendingReview_HASH = ConstExprHashingUtils::HashString("PendingReview"); + static constexpr uint32_t Approved_HASH = ConstExprHashingUtils::HashString("Approved"); + static constexpr uint32_t Archived_HASH = ConstExprHashingUtils::HashString("Archived"); ModelCardStatus GetModelCardStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Draft_HASH) { return ModelCardStatus::Draft; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardVersionSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardVersionSortBy.cpp index 57c181399ac..56b0378be62 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardVersionSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCardVersionSortBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ModelCardVersionSortByMapper { - static const int Version_HASH = HashingUtils::HashString("Version"); + static constexpr uint32_t Version_HASH = ConstExprHashingUtils::HashString("Version"); ModelCardVersionSortBy GetModelCardVersionSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Version_HASH) { return ModelCardVersionSortBy::Version; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompressionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompressionType.cpp index f99466a82b5..e4723ee388c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelCompressionTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Gzip_HASH = HashingUtils::HashString("Gzip"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Gzip_HASH = ConstExprHashingUtils::HashString("Gzip"); ModelCompressionType GetModelCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return ModelCompressionType::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelInfrastructureType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelInfrastructureType.cpp index 854077b4693..2680a60e3a6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelInfrastructureType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelInfrastructureType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ModelInfrastructureTypeMapper { - static const int RealTimeInference_HASH = HashingUtils::HashString("RealTimeInference"); + static constexpr uint32_t RealTimeInference_HASH = ConstExprHashingUtils::HashString("RealTimeInference"); ModelInfrastructureType GetModelInfrastructureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RealTimeInference_HASH) { return ModelInfrastructureType::RealTimeInference; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelMetadataFilterType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelMetadataFilterType.cpp index b24891b4bb8..6b4fe68fef9 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelMetadataFilterType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelMetadataFilterType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ModelMetadataFilterTypeMapper { - static const int Domain_HASH = HashingUtils::HashString("Domain"); - static const int Framework_HASH = HashingUtils::HashString("Framework"); - static const int Task_HASH = HashingUtils::HashString("Task"); - static const int FrameworkVersion_HASH = HashingUtils::HashString("FrameworkVersion"); + static constexpr uint32_t Domain_HASH = ConstExprHashingUtils::HashString("Domain"); + static constexpr uint32_t Framework_HASH = ConstExprHashingUtils::HashString("Framework"); + static constexpr uint32_t Task_HASH = ConstExprHashingUtils::HashString("Task"); + static constexpr uint32_t FrameworkVersion_HASH = ConstExprHashingUtils::HashString("FrameworkVersion"); ModelMetadataFilterType GetModelMetadataFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Domain_HASH) { return ModelMetadataFilterType::Domain; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupSortBy.cpp index ded4c22d0bf..6f6d64b5e94 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelPackageGroupSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ModelPackageGroupSortBy GetModelPackageGroupSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ModelPackageGroupSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupStatus.cpp index e9044d0a97d..bbd48d7d57f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageGroupStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ModelPackageGroupStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); ModelPackageGroupStatus GetModelPackageGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ModelPackageGroupStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageSortBy.cpp index a563d430ebd..5029486a545 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelPackageSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ModelPackageSortBy GetModelPackageSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ModelPackageSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageStatus.cpp index fe6b4fcbd56..bb354842fed 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ModelPackageStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); ModelPackageStatus GetModelPackageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ModelPackageStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageType.cpp index 90d09c793ee..c9423bded08 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelPackageType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelPackageTypeMapper { - static const int Versioned_HASH = HashingUtils::HashString("Versioned"); - static const int Unversioned_HASH = HashingUtils::HashString("Unversioned"); - static const int Both_HASH = HashingUtils::HashString("Both"); + static constexpr uint32_t Versioned_HASH = ConstExprHashingUtils::HashString("Versioned"); + static constexpr uint32_t Unversioned_HASH = ConstExprHashingUtils::HashString("Unversioned"); + static constexpr uint32_t Both_HASH = ConstExprHashingUtils::HashString("Both"); ModelPackageType GetModelPackageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Versioned_HASH) { return ModelPackageType::Versioned; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelSortKey.cpp index 6c8ee06549f..d5aa2cff702 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelSortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModelSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ModelSortKey GetModelSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ModelSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantAction.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantAction.cpp index e1114952ac7..591eead28c1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantAction.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelVariantActionMapper { - static const int Retain_HASH = HashingUtils::HashString("Retain"); - static const int Remove_HASH = HashingUtils::HashString("Remove"); - static const int Promote_HASH = HashingUtils::HashString("Promote"); + static constexpr uint32_t Retain_HASH = ConstExprHashingUtils::HashString("Retain"); + static constexpr uint32_t Remove_HASH = ConstExprHashingUtils::HashString("Remove"); + static constexpr uint32_t Promote_HASH = ConstExprHashingUtils::HashString("Promote"); ModelVariantAction GetModelVariantActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Retain_HASH) { return ModelVariantAction::Retain; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantStatus.cpp index 6e6ab1e3d2e..0c1e8971c32 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelVariantStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ModelVariantStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Deleted_HASH = HashingUtils::HashString("Deleted"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Deleted_HASH = ConstExprHashingUtils::HashString("Deleted"); ModelVariantStatus GetModelVariantStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return ModelVariantStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertHistorySortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertHistorySortKey.cpp index 51ee62399ea..b211693b349 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertHistorySortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertHistorySortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MonitoringAlertHistorySortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); MonitoringAlertHistorySortKey GetMonitoringAlertHistorySortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return MonitoringAlertHistorySortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertStatus.cpp index a50fb70476d..29380f5b8d8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringAlertStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MonitoringAlertStatusMapper { - static const int InAlert_HASH = HashingUtils::HashString("InAlert"); - static const int OK_HASH = HashingUtils::HashString("OK"); + static constexpr uint32_t InAlert_HASH = ConstExprHashingUtils::HashString("InAlert"); + static constexpr uint32_t OK_HASH = ConstExprHashingUtils::HashString("OK"); MonitoringAlertStatus GetMonitoringAlertStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InAlert_HASH) { return MonitoringAlertStatus::InAlert; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringExecutionSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringExecutionSortKey.cpp index 09a5cf5a888..e054a6ffe81 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringExecutionSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringExecutionSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MonitoringExecutionSortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int ScheduledTime_HASH = HashingUtils::HashString("ScheduledTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t ScheduledTime_HASH = ConstExprHashingUtils::HashString("ScheduledTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); MonitoringExecutionSortKey GetMonitoringExecutionSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return MonitoringExecutionSortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringJobDefinitionSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringJobDefinitionSortKey.cpp index c243a72c0e6..b954218260c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringJobDefinitionSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringJobDefinitionSortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MonitoringJobDefinitionSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); MonitoringJobDefinitionSortKey GetMonitoringJobDefinitionSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return MonitoringJobDefinitionSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringProblemType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringProblemType.cpp index 214153304e7..34e660091be 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringProblemType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringProblemType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MonitoringProblemTypeMapper { - static const int BinaryClassification_HASH = HashingUtils::HashString("BinaryClassification"); - static const int MulticlassClassification_HASH = HashingUtils::HashString("MulticlassClassification"); - static const int Regression_HASH = HashingUtils::HashString("Regression"); + static constexpr uint32_t BinaryClassification_HASH = ConstExprHashingUtils::HashString("BinaryClassification"); + static constexpr uint32_t MulticlassClassification_HASH = ConstExprHashingUtils::HashString("MulticlassClassification"); + static constexpr uint32_t Regression_HASH = ConstExprHashingUtils::HashString("Regression"); MonitoringProblemType GetMonitoringProblemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BinaryClassification_HASH) { return MonitoringProblemType::BinaryClassification; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringScheduleSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringScheduleSortKey.cpp index 4e1701f5a5c..3454972f6b7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringScheduleSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringScheduleSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MonitoringScheduleSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); MonitoringScheduleSortKey GetMonitoringScheduleSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return MonitoringScheduleSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringType.cpp index 1e1ae6652c1..52c0134c5f2 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MonitoringType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MonitoringTypeMapper { - static const int DataQuality_HASH = HashingUtils::HashString("DataQuality"); - static const int ModelQuality_HASH = HashingUtils::HashString("ModelQuality"); - static const int ModelBias_HASH = HashingUtils::HashString("ModelBias"); - static const int ModelExplainability_HASH = HashingUtils::HashString("ModelExplainability"); + static constexpr uint32_t DataQuality_HASH = ConstExprHashingUtils::HashString("DataQuality"); + static constexpr uint32_t ModelQuality_HASH = ConstExprHashingUtils::HashString("ModelQuality"); + static constexpr uint32_t ModelBias_HASH = ConstExprHashingUtils::HashString("ModelBias"); + static constexpr uint32_t ModelExplainability_HASH = ConstExprHashingUtils::HashString("ModelExplainability"); MonitoringType GetMonitoringTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DataQuality_HASH) { return MonitoringType::DataQuality; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceAcceleratorType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceAcceleratorType.cpp index ea26258a56e..85fa7e11a7c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceAcceleratorType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceAcceleratorType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NotebookInstanceAcceleratorTypeMapper { - static const int ml_eia1_medium_HASH = HashingUtils::HashString("ml.eia1.medium"); - static const int ml_eia1_large_HASH = HashingUtils::HashString("ml.eia1.large"); - static const int ml_eia1_xlarge_HASH = HashingUtils::HashString("ml.eia1.xlarge"); - static const int ml_eia2_medium_HASH = HashingUtils::HashString("ml.eia2.medium"); - static const int ml_eia2_large_HASH = HashingUtils::HashString("ml.eia2.large"); - static const int ml_eia2_xlarge_HASH = HashingUtils::HashString("ml.eia2.xlarge"); + static constexpr uint32_t ml_eia1_medium_HASH = ConstExprHashingUtils::HashString("ml.eia1.medium"); + static constexpr uint32_t ml_eia1_large_HASH = ConstExprHashingUtils::HashString("ml.eia1.large"); + static constexpr uint32_t ml_eia1_xlarge_HASH = ConstExprHashingUtils::HashString("ml.eia1.xlarge"); + static constexpr uint32_t ml_eia2_medium_HASH = ConstExprHashingUtils::HashString("ml.eia2.medium"); + static constexpr uint32_t ml_eia2_large_HASH = ConstExprHashingUtils::HashString("ml.eia2.large"); + static constexpr uint32_t ml_eia2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.eia2.xlarge"); NotebookInstanceAcceleratorType GetNotebookInstanceAcceleratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_eia1_medium_HASH) { return NotebookInstanceAcceleratorType::ml_eia1_medium; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortKey.cpp index 50d9835d041..215dffe83c8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotebookInstanceLifecycleConfigSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); NotebookInstanceLifecycleConfigSortKey GetNotebookInstanceLifecycleConfigSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return NotebookInstanceLifecycleConfigSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortOrder.cpp index 5aaa718364c..8de03a5e274 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceLifecycleConfigSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotebookInstanceLifecycleConfigSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); NotebookInstanceLifecycleConfigSortOrder GetNotebookInstanceLifecycleConfigSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return NotebookInstanceLifecycleConfigSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortKey.cpp index 7746b4f525e..fc702b6f15e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotebookInstanceSortKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); NotebookInstanceSortKey GetNotebookInstanceSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return NotebookInstanceSortKey::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortOrder.cpp index c747926aab2..88ddd2ae418 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotebookInstanceSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); NotebookInstanceSortOrder GetNotebookInstanceSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return NotebookInstanceSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceStatus.cpp index a142f053d38..720fd8374d1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookInstanceStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace NotebookInstanceStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); NotebookInstanceStatus GetNotebookInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return NotebookInstanceStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookOutputOption.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookOutputOption.cpp index 3fe04420536..0a8d56fc52d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookOutputOption.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/NotebookOutputOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotebookOutputOptionMapper { - static const int Allowed_HASH = HashingUtils::HashString("Allowed"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Allowed_HASH = ConstExprHashingUtils::HashString("Allowed"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); NotebookOutputOption GetNotebookOutputOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Allowed_HASH) { return NotebookOutputOption::Allowed; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ObjectiveStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ObjectiveStatus.cpp index a7db9e75e36..72e836e48a6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ObjectiveStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ObjectiveStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ObjectiveStatusMapper { - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ObjectiveStatus GetObjectiveStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Succeeded_HASH) { return ObjectiveStatus::Succeeded; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OfflineStoreStatusValue.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OfflineStoreStatusValue.cpp index b72b5e2fd31..72774e04db0 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/OfflineStoreStatusValue.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OfflineStoreStatusValue.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OfflineStoreStatusValueMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Blocked_HASH = HashingUtils::HashString("Blocked"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Blocked_HASH = ConstExprHashingUtils::HashString("Blocked"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); OfflineStoreStatusValue GetOfflineStoreStatusValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return OfflineStoreStatusValue::Active; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/Operator.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/Operator.cpp index a31821b66b2..b0765fbd8fd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/Operator.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/Operator.cpp @@ -20,21 +20,21 @@ namespace Aws namespace OperatorMapper { - static const int Equals_HASH = HashingUtils::HashString("Equals"); - static const int NotEquals_HASH = HashingUtils::HashString("NotEquals"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int GreaterThanOrEqualTo_HASH = HashingUtils::HashString("GreaterThanOrEqualTo"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int LessThanOrEqualTo_HASH = HashingUtils::HashString("LessThanOrEqualTo"); - static const int Contains_HASH = HashingUtils::HashString("Contains"); - static const int Exists_HASH = HashingUtils::HashString("Exists"); - static const int NotExists_HASH = HashingUtils::HashString("NotExists"); - static const int In_HASH = HashingUtils::HashString("In"); + static constexpr uint32_t Equals_HASH = ConstExprHashingUtils::HashString("Equals"); + static constexpr uint32_t NotEquals_HASH = ConstExprHashingUtils::HashString("NotEquals"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t GreaterThanOrEqualTo_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEqualTo"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t LessThanOrEqualTo_HASH = ConstExprHashingUtils::HashString("LessThanOrEqualTo"); + static constexpr uint32_t Contains_HASH = ConstExprHashingUtils::HashString("Contains"); + static constexpr uint32_t Exists_HASH = ConstExprHashingUtils::HashString("Exists"); + static constexpr uint32_t NotExists_HASH = ConstExprHashingUtils::HashString("NotExists"); + static constexpr uint32_t In_HASH = ConstExprHashingUtils::HashString("In"); Operator GetOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equals_HASH) { return Operator::Equals; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OrderKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OrderKey.cpp index 005811dc0aa..c91b5454864 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/OrderKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OrderKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderKeyMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); OrderKey GetOrderKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return OrderKey::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OutputCompressionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OutputCompressionType.cpp index 495cc46175d..37e9e59968d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/OutputCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OutputCompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutputCompressionTypeMapper { - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); OutputCompressionType GetOutputCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GZIP_HASH) { return OutputCompressionType::GZIP; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ParameterType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ParameterType.cpp index 92bde4301cd..e0db7584f4f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ParameterType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ParameterType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ParameterTypeMapper { - static const int Integer_HASH = HashingUtils::HashString("Integer"); - static const int Continuous_HASH = HashingUtils::HashString("Continuous"); - static const int Categorical_HASH = HashingUtils::HashString("Categorical"); - static const int FreeText_HASH = HashingUtils::HashString("FreeText"); + static constexpr uint32_t Integer_HASH = ConstExprHashingUtils::HashString("Integer"); + static constexpr uint32_t Continuous_HASH = ConstExprHashingUtils::HashString("Continuous"); + static constexpr uint32_t Categorical_HASH = ConstExprHashingUtils::HashString("Categorical"); + static constexpr uint32_t FreeText_HASH = ConstExprHashingUtils::HashString("FreeText"); ParameterType GetParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Integer_HASH) { return ParameterType::Integer; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineExecutionStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineExecutionStatus.cpp index 1ccdb9ab560..5965e61a248 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineExecutionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PipelineExecutionStatusMapper { - static const int Executing_HASH = HashingUtils::HashString("Executing"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t Executing_HASH = ConstExprHashingUtils::HashString("Executing"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); PipelineExecutionStatus GetPipelineExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Executing_HASH) { return PipelineExecutionStatus::Executing; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineStatus.cpp index b296c7db104..f1996800e95 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/PipelineStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PipelineStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); PipelineStatus GetPipelineStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return PipelineStatus::Active; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProblemType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProblemType.cpp index 91e38cb0975..5e8d04686b1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProblemType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProblemType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProblemTypeMapper { - static const int BinaryClassification_HASH = HashingUtils::HashString("BinaryClassification"); - static const int MulticlassClassification_HASH = HashingUtils::HashString("MulticlassClassification"); - static const int Regression_HASH = HashingUtils::HashString("Regression"); + static constexpr uint32_t BinaryClassification_HASH = ConstExprHashingUtils::HashString("BinaryClassification"); + static constexpr uint32_t MulticlassClassification_HASH = ConstExprHashingUtils::HashString("MulticlassClassification"); + static constexpr uint32_t Regression_HASH = ConstExprHashingUtils::HashString("Regression"); ProblemType GetProblemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BinaryClassification_HASH) { return ProblemType::BinaryClassification; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingInstanceType.cpp index 5664287bd4c..53aa6df391d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingInstanceType.cpp @@ -20,55 +20,55 @@ namespace Aws namespace ProcessingInstanceTypeMapper { - static const int ml_t3_medium_HASH = HashingUtils::HashString("ml.t3.medium"); - static const int ml_t3_large_HASH = HashingUtils::HashString("ml.t3.large"); - static const int ml_t3_xlarge_HASH = HashingUtils::HashString("ml.t3.xlarge"); - static const int ml_t3_2xlarge_HASH = HashingUtils::HashString("ml.t3.2xlarge"); - static const int ml_m4_xlarge_HASH = HashingUtils::HashString("ml.m4.xlarge"); - static const int ml_m4_2xlarge_HASH = HashingUtils::HashString("ml.m4.2xlarge"); - static const int ml_m4_4xlarge_HASH = HashingUtils::HashString("ml.m4.4xlarge"); - static const int ml_m4_10xlarge_HASH = HashingUtils::HashString("ml.m4.10xlarge"); - static const int ml_m4_16xlarge_HASH = HashingUtils::HashString("ml.m4.16xlarge"); - static const int ml_c4_xlarge_HASH = HashingUtils::HashString("ml.c4.xlarge"); - static const int ml_c4_2xlarge_HASH = HashingUtils::HashString("ml.c4.2xlarge"); - static const int ml_c4_4xlarge_HASH = HashingUtils::HashString("ml.c4.4xlarge"); - static const int ml_c4_8xlarge_HASH = HashingUtils::HashString("ml.c4.8xlarge"); - static const int ml_p2_xlarge_HASH = HashingUtils::HashString("ml.p2.xlarge"); - static const int ml_p2_8xlarge_HASH = HashingUtils::HashString("ml.p2.8xlarge"); - static const int ml_p2_16xlarge_HASH = HashingUtils::HashString("ml.p2.16xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_m5_large_HASH = HashingUtils::HashString("ml.m5.large"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_r5_large_HASH = HashingUtils::HashString("ml.r5.large"); - static const int ml_r5_xlarge_HASH = HashingUtils::HashString("ml.r5.xlarge"); - static const int ml_r5_2xlarge_HASH = HashingUtils::HashString("ml.r5.2xlarge"); - static const int ml_r5_4xlarge_HASH = HashingUtils::HashString("ml.r5.4xlarge"); - static const int ml_r5_8xlarge_HASH = HashingUtils::HashString("ml.r5.8xlarge"); - static const int ml_r5_12xlarge_HASH = HashingUtils::HashString("ml.r5.12xlarge"); - static const int ml_r5_16xlarge_HASH = HashingUtils::HashString("ml.r5.16xlarge"); - static const int ml_r5_24xlarge_HASH = HashingUtils::HashString("ml.r5.24xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_t3_medium_HASH = ConstExprHashingUtils::HashString("ml.t3.medium"); + static constexpr uint32_t ml_t3_large_HASH = ConstExprHashingUtils::HashString("ml.t3.large"); + static constexpr uint32_t ml_t3_xlarge_HASH = ConstExprHashingUtils::HashString("ml.t3.xlarge"); + static constexpr uint32_t ml_t3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.t3.2xlarge"); + static constexpr uint32_t ml_m4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.xlarge"); + static constexpr uint32_t ml_m4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.2xlarge"); + static constexpr uint32_t ml_m4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.4xlarge"); + static constexpr uint32_t ml_m4_10xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.10xlarge"); + static constexpr uint32_t ml_m4_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.16xlarge"); + static constexpr uint32_t ml_c4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.xlarge"); + static constexpr uint32_t ml_c4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.2xlarge"); + static constexpr uint32_t ml_c4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.4xlarge"); + static constexpr uint32_t ml_c4_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.8xlarge"); + static constexpr uint32_t ml_p2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.xlarge"); + static constexpr uint32_t ml_p2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.8xlarge"); + static constexpr uint32_t ml_p2_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.16xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_m5_large_HASH = ConstExprHashingUtils::HashString("ml.m5.large"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_r5_large_HASH = ConstExprHashingUtils::HashString("ml.r5.large"); + static constexpr uint32_t ml_r5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.xlarge"); + static constexpr uint32_t ml_r5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.2xlarge"); + static constexpr uint32_t ml_r5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.4xlarge"); + static constexpr uint32_t ml_r5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.8xlarge"); + static constexpr uint32_t ml_r5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.12xlarge"); + static constexpr uint32_t ml_r5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.16xlarge"); + static constexpr uint32_t ml_r5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.24xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); ProcessingInstanceType GetProcessingInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_t3_medium_HASH) { return ProcessingInstanceType::ml_t3_medium; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingJobStatus.cpp index c1665f98616..ed7271975b7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProcessingJobStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); ProcessingJobStatus GetProcessingJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ProcessingJobStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3CompressionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3CompressionType.cpp index 90df7bb35ec..9107e9a9f45 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3CompressionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3CompressionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessingS3CompressionTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Gzip_HASH = HashingUtils::HashString("Gzip"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Gzip_HASH = ConstExprHashingUtils::HashString("Gzip"); ProcessingS3CompressionType GetProcessingS3CompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return ProcessingS3CompressionType::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataDistributionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataDistributionType.cpp index 6f1ea8d63c0..b4530f57988 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataDistributionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataDistributionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessingS3DataDistributionTypeMapper { - static const int FullyReplicated_HASH = HashingUtils::HashString("FullyReplicated"); - static const int ShardedByS3Key_HASH = HashingUtils::HashString("ShardedByS3Key"); + static constexpr uint32_t FullyReplicated_HASH = ConstExprHashingUtils::HashString("FullyReplicated"); + static constexpr uint32_t ShardedByS3Key_HASH = ConstExprHashingUtils::HashString("ShardedByS3Key"); ProcessingS3DataDistributionType GetProcessingS3DataDistributionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FullyReplicated_HASH) { return ProcessingS3DataDistributionType::FullyReplicated; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataType.cpp index 629232d559e..aa7b25e9e26 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3DataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessingS3DataTypeMapper { - static const int ManifestFile_HASH = HashingUtils::HashString("ManifestFile"); - static const int S3Prefix_HASH = HashingUtils::HashString("S3Prefix"); + static constexpr uint32_t ManifestFile_HASH = ConstExprHashingUtils::HashString("ManifestFile"); + static constexpr uint32_t S3Prefix_HASH = ConstExprHashingUtils::HashString("S3Prefix"); ProcessingS3DataType GetProcessingS3DataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ManifestFile_HASH) { return ProcessingS3DataType::ManifestFile; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3InputMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3InputMode.cpp index 4352baaec0f..c9f531c3221 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3InputMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3InputMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessingS3InputModeMapper { - static const int Pipe_HASH = HashingUtils::HashString("Pipe"); - static const int File_HASH = HashingUtils::HashString("File"); + static constexpr uint32_t Pipe_HASH = ConstExprHashingUtils::HashString("Pipe"); + static constexpr uint32_t File_HASH = ConstExprHashingUtils::HashString("File"); ProcessingS3InputMode GetProcessingS3InputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pipe_HASH) { return ProcessingS3InputMode::Pipe; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3UploadMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3UploadMode.cpp index f4df5f33164..aca62a06155 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3UploadMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProcessingS3UploadMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessingS3UploadModeMapper { - static const int Continuous_HASH = HashingUtils::HashString("Continuous"); - static const int EndOfJob_HASH = HashingUtils::HashString("EndOfJob"); + static constexpr uint32_t Continuous_HASH = ConstExprHashingUtils::HashString("Continuous"); + static constexpr uint32_t EndOfJob_HASH = ConstExprHashingUtils::HashString("EndOfJob"); ProcessingS3UploadMode GetProcessingS3UploadModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Continuous_HASH) { return ProcessingS3UploadMode::Continuous; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/Processor.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/Processor.cpp index 532766109cf..652cd04fc61 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/Processor.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/Processor.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProcessorMapper { - static const int CPU_HASH = HashingUtils::HashString("CPU"); - static const int GPU_HASH = HashingUtils::HashString("GPU"); + static constexpr uint32_t CPU_HASH = ConstExprHashingUtils::HashString("CPU"); + static constexpr uint32_t GPU_HASH = ConstExprHashingUtils::HashString("GPU"); Processor GetProcessorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CPU_HASH) { return Processor::CPU; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantAcceleratorType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantAcceleratorType.cpp index 5305250a95c..349ada86223 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantAcceleratorType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantAcceleratorType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ProductionVariantAcceleratorTypeMapper { - static const int ml_eia1_medium_HASH = HashingUtils::HashString("ml.eia1.medium"); - static const int ml_eia1_large_HASH = HashingUtils::HashString("ml.eia1.large"); - static const int ml_eia1_xlarge_HASH = HashingUtils::HashString("ml.eia1.xlarge"); - static const int ml_eia2_medium_HASH = HashingUtils::HashString("ml.eia2.medium"); - static const int ml_eia2_large_HASH = HashingUtils::HashString("ml.eia2.large"); - static const int ml_eia2_xlarge_HASH = HashingUtils::HashString("ml.eia2.xlarge"); + static constexpr uint32_t ml_eia1_medium_HASH = ConstExprHashingUtils::HashString("ml.eia1.medium"); + static constexpr uint32_t ml_eia1_large_HASH = ConstExprHashingUtils::HashString("ml.eia1.large"); + static constexpr uint32_t ml_eia1_xlarge_HASH = ConstExprHashingUtils::HashString("ml.eia1.xlarge"); + static constexpr uint32_t ml_eia2_medium_HASH = ConstExprHashingUtils::HashString("ml.eia2.medium"); + static constexpr uint32_t ml_eia2_large_HASH = ConstExprHashingUtils::HashString("ml.eia2.large"); + static constexpr uint32_t ml_eia2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.eia2.xlarge"); ProductionVariantAcceleratorType GetProductionVariantAcceleratorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_eia1_medium_HASH) { return ProductionVariantAcceleratorType::ml_eia1_medium; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantInstanceType.cpp index 960347f8661..5537fcfc627 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProductionVariantInstanceType.cpp @@ -20,161 +20,161 @@ namespace Aws namespace ProductionVariantInstanceTypeMapper { - static const int ml_t2_medium_HASH = HashingUtils::HashString("ml.t2.medium"); - static const int ml_t2_large_HASH = HashingUtils::HashString("ml.t2.large"); - static const int ml_t2_xlarge_HASH = HashingUtils::HashString("ml.t2.xlarge"); - static const int ml_t2_2xlarge_HASH = HashingUtils::HashString("ml.t2.2xlarge"); - static const int ml_m4_xlarge_HASH = HashingUtils::HashString("ml.m4.xlarge"); - static const int ml_m4_2xlarge_HASH = HashingUtils::HashString("ml.m4.2xlarge"); - static const int ml_m4_4xlarge_HASH = HashingUtils::HashString("ml.m4.4xlarge"); - static const int ml_m4_10xlarge_HASH = HashingUtils::HashString("ml.m4.10xlarge"); - static const int ml_m4_16xlarge_HASH = HashingUtils::HashString("ml.m4.16xlarge"); - static const int ml_m5_large_HASH = HashingUtils::HashString("ml.m5.large"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_m5d_large_HASH = HashingUtils::HashString("ml.m5d.large"); - static const int ml_m5d_xlarge_HASH = HashingUtils::HashString("ml.m5d.xlarge"); - static const int ml_m5d_2xlarge_HASH = HashingUtils::HashString("ml.m5d.2xlarge"); - static const int ml_m5d_4xlarge_HASH = HashingUtils::HashString("ml.m5d.4xlarge"); - static const int ml_m5d_12xlarge_HASH = HashingUtils::HashString("ml.m5d.12xlarge"); - static const int ml_m5d_24xlarge_HASH = HashingUtils::HashString("ml.m5d.24xlarge"); - static const int ml_c4_large_HASH = HashingUtils::HashString("ml.c4.large"); - static const int ml_c4_xlarge_HASH = HashingUtils::HashString("ml.c4.xlarge"); - static const int ml_c4_2xlarge_HASH = HashingUtils::HashString("ml.c4.2xlarge"); - static const int ml_c4_4xlarge_HASH = HashingUtils::HashString("ml.c4.4xlarge"); - static const int ml_c4_8xlarge_HASH = HashingUtils::HashString("ml.c4.8xlarge"); - static const int ml_p2_xlarge_HASH = HashingUtils::HashString("ml.p2.xlarge"); - static const int ml_p2_8xlarge_HASH = HashingUtils::HashString("ml.p2.8xlarge"); - static const int ml_p2_16xlarge_HASH = HashingUtils::HashString("ml.p2.16xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_c5_large_HASH = HashingUtils::HashString("ml.c5.large"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_c5d_large_HASH = HashingUtils::HashString("ml.c5d.large"); - static const int ml_c5d_xlarge_HASH = HashingUtils::HashString("ml.c5d.xlarge"); - static const int ml_c5d_2xlarge_HASH = HashingUtils::HashString("ml.c5d.2xlarge"); - static const int ml_c5d_4xlarge_HASH = HashingUtils::HashString("ml.c5d.4xlarge"); - static const int ml_c5d_9xlarge_HASH = HashingUtils::HashString("ml.c5d.9xlarge"); - static const int ml_c5d_18xlarge_HASH = HashingUtils::HashString("ml.c5d.18xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); - static const int ml_r5_large_HASH = HashingUtils::HashString("ml.r5.large"); - static const int ml_r5_xlarge_HASH = HashingUtils::HashString("ml.r5.xlarge"); - static const int ml_r5_2xlarge_HASH = HashingUtils::HashString("ml.r5.2xlarge"); - static const int ml_r5_4xlarge_HASH = HashingUtils::HashString("ml.r5.4xlarge"); - static const int ml_r5_12xlarge_HASH = HashingUtils::HashString("ml.r5.12xlarge"); - static const int ml_r5_24xlarge_HASH = HashingUtils::HashString("ml.r5.24xlarge"); - static const int ml_r5d_large_HASH = HashingUtils::HashString("ml.r5d.large"); - static const int ml_r5d_xlarge_HASH = HashingUtils::HashString("ml.r5d.xlarge"); - static const int ml_r5d_2xlarge_HASH = HashingUtils::HashString("ml.r5d.2xlarge"); - static const int ml_r5d_4xlarge_HASH = HashingUtils::HashString("ml.r5d.4xlarge"); - static const int ml_r5d_12xlarge_HASH = HashingUtils::HashString("ml.r5d.12xlarge"); - static const int ml_r5d_24xlarge_HASH = HashingUtils::HashString("ml.r5d.24xlarge"); - static const int ml_inf1_xlarge_HASH = HashingUtils::HashString("ml.inf1.xlarge"); - static const int ml_inf1_2xlarge_HASH = HashingUtils::HashString("ml.inf1.2xlarge"); - static const int ml_inf1_6xlarge_HASH = HashingUtils::HashString("ml.inf1.6xlarge"); - static const int ml_inf1_24xlarge_HASH = HashingUtils::HashString("ml.inf1.24xlarge"); - static const int ml_c6i_large_HASH = HashingUtils::HashString("ml.c6i.large"); - static const int ml_c6i_xlarge_HASH = HashingUtils::HashString("ml.c6i.xlarge"); - static const int ml_c6i_2xlarge_HASH = HashingUtils::HashString("ml.c6i.2xlarge"); - static const int ml_c6i_4xlarge_HASH = HashingUtils::HashString("ml.c6i.4xlarge"); - static const int ml_c6i_8xlarge_HASH = HashingUtils::HashString("ml.c6i.8xlarge"); - static const int ml_c6i_12xlarge_HASH = HashingUtils::HashString("ml.c6i.12xlarge"); - static const int ml_c6i_16xlarge_HASH = HashingUtils::HashString("ml.c6i.16xlarge"); - static const int ml_c6i_24xlarge_HASH = HashingUtils::HashString("ml.c6i.24xlarge"); - static const int ml_c6i_32xlarge_HASH = HashingUtils::HashString("ml.c6i.32xlarge"); - static const int ml_g5_xlarge_HASH = HashingUtils::HashString("ml.g5.xlarge"); - static const int ml_g5_2xlarge_HASH = HashingUtils::HashString("ml.g5.2xlarge"); - static const int ml_g5_4xlarge_HASH = HashingUtils::HashString("ml.g5.4xlarge"); - static const int ml_g5_8xlarge_HASH = HashingUtils::HashString("ml.g5.8xlarge"); - static const int ml_g5_12xlarge_HASH = HashingUtils::HashString("ml.g5.12xlarge"); - static const int ml_g5_16xlarge_HASH = HashingUtils::HashString("ml.g5.16xlarge"); - static const int ml_g5_24xlarge_HASH = HashingUtils::HashString("ml.g5.24xlarge"); - static const int ml_g5_48xlarge_HASH = HashingUtils::HashString("ml.g5.48xlarge"); - static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); - static const int ml_c7g_large_HASH = HashingUtils::HashString("ml.c7g.large"); - static const int ml_c7g_xlarge_HASH = HashingUtils::HashString("ml.c7g.xlarge"); - static const int ml_c7g_2xlarge_HASH = HashingUtils::HashString("ml.c7g.2xlarge"); - static const int ml_c7g_4xlarge_HASH = HashingUtils::HashString("ml.c7g.4xlarge"); - static const int ml_c7g_8xlarge_HASH = HashingUtils::HashString("ml.c7g.8xlarge"); - static const int ml_c7g_12xlarge_HASH = HashingUtils::HashString("ml.c7g.12xlarge"); - static const int ml_c7g_16xlarge_HASH = HashingUtils::HashString("ml.c7g.16xlarge"); - static const int ml_m6g_large_HASH = HashingUtils::HashString("ml.m6g.large"); - static const int ml_m6g_xlarge_HASH = HashingUtils::HashString("ml.m6g.xlarge"); - static const int ml_m6g_2xlarge_HASH = HashingUtils::HashString("ml.m6g.2xlarge"); - static const int ml_m6g_4xlarge_HASH = HashingUtils::HashString("ml.m6g.4xlarge"); - static const int ml_m6g_8xlarge_HASH = HashingUtils::HashString("ml.m6g.8xlarge"); - static const int ml_m6g_12xlarge_HASH = HashingUtils::HashString("ml.m6g.12xlarge"); - static const int ml_m6g_16xlarge_HASH = HashingUtils::HashString("ml.m6g.16xlarge"); - static const int ml_m6gd_large_HASH = HashingUtils::HashString("ml.m6gd.large"); - static const int ml_m6gd_xlarge_HASH = HashingUtils::HashString("ml.m6gd.xlarge"); - static const int ml_m6gd_2xlarge_HASH = HashingUtils::HashString("ml.m6gd.2xlarge"); - static const int ml_m6gd_4xlarge_HASH = HashingUtils::HashString("ml.m6gd.4xlarge"); - static const int ml_m6gd_8xlarge_HASH = HashingUtils::HashString("ml.m6gd.8xlarge"); - static const int ml_m6gd_12xlarge_HASH = HashingUtils::HashString("ml.m6gd.12xlarge"); - static const int ml_m6gd_16xlarge_HASH = HashingUtils::HashString("ml.m6gd.16xlarge"); - static const int ml_c6g_large_HASH = HashingUtils::HashString("ml.c6g.large"); - static const int ml_c6g_xlarge_HASH = HashingUtils::HashString("ml.c6g.xlarge"); - static const int ml_c6g_2xlarge_HASH = HashingUtils::HashString("ml.c6g.2xlarge"); - static const int ml_c6g_4xlarge_HASH = HashingUtils::HashString("ml.c6g.4xlarge"); - static const int ml_c6g_8xlarge_HASH = HashingUtils::HashString("ml.c6g.8xlarge"); - static const int ml_c6g_12xlarge_HASH = HashingUtils::HashString("ml.c6g.12xlarge"); - static const int ml_c6g_16xlarge_HASH = HashingUtils::HashString("ml.c6g.16xlarge"); - static const int ml_c6gd_large_HASH = HashingUtils::HashString("ml.c6gd.large"); - static const int ml_c6gd_xlarge_HASH = HashingUtils::HashString("ml.c6gd.xlarge"); - static const int ml_c6gd_2xlarge_HASH = HashingUtils::HashString("ml.c6gd.2xlarge"); - static const int ml_c6gd_4xlarge_HASH = HashingUtils::HashString("ml.c6gd.4xlarge"); - static const int ml_c6gd_8xlarge_HASH = HashingUtils::HashString("ml.c6gd.8xlarge"); - static const int ml_c6gd_12xlarge_HASH = HashingUtils::HashString("ml.c6gd.12xlarge"); - static const int ml_c6gd_16xlarge_HASH = HashingUtils::HashString("ml.c6gd.16xlarge"); - static const int ml_c6gn_large_HASH = HashingUtils::HashString("ml.c6gn.large"); - static const int ml_c6gn_xlarge_HASH = HashingUtils::HashString("ml.c6gn.xlarge"); - static const int ml_c6gn_2xlarge_HASH = HashingUtils::HashString("ml.c6gn.2xlarge"); - static const int ml_c6gn_4xlarge_HASH = HashingUtils::HashString("ml.c6gn.4xlarge"); - static const int ml_c6gn_8xlarge_HASH = HashingUtils::HashString("ml.c6gn.8xlarge"); - static const int ml_c6gn_12xlarge_HASH = HashingUtils::HashString("ml.c6gn.12xlarge"); - static const int ml_c6gn_16xlarge_HASH = HashingUtils::HashString("ml.c6gn.16xlarge"); - static const int ml_r6g_large_HASH = HashingUtils::HashString("ml.r6g.large"); - static const int ml_r6g_xlarge_HASH = HashingUtils::HashString("ml.r6g.xlarge"); - static const int ml_r6g_2xlarge_HASH = HashingUtils::HashString("ml.r6g.2xlarge"); - static const int ml_r6g_4xlarge_HASH = HashingUtils::HashString("ml.r6g.4xlarge"); - static const int ml_r6g_8xlarge_HASH = HashingUtils::HashString("ml.r6g.8xlarge"); - static const int ml_r6g_12xlarge_HASH = HashingUtils::HashString("ml.r6g.12xlarge"); - static const int ml_r6g_16xlarge_HASH = HashingUtils::HashString("ml.r6g.16xlarge"); - static const int ml_r6gd_large_HASH = HashingUtils::HashString("ml.r6gd.large"); - static const int ml_r6gd_xlarge_HASH = HashingUtils::HashString("ml.r6gd.xlarge"); - static const int ml_r6gd_2xlarge_HASH = HashingUtils::HashString("ml.r6gd.2xlarge"); - static const int ml_r6gd_4xlarge_HASH = HashingUtils::HashString("ml.r6gd.4xlarge"); - static const int ml_r6gd_8xlarge_HASH = HashingUtils::HashString("ml.r6gd.8xlarge"); - static const int ml_r6gd_12xlarge_HASH = HashingUtils::HashString("ml.r6gd.12xlarge"); - static const int ml_r6gd_16xlarge_HASH = HashingUtils::HashString("ml.r6gd.16xlarge"); - static const int ml_p4de_24xlarge_HASH = HashingUtils::HashString("ml.p4de.24xlarge"); - static const int ml_trn1_2xlarge_HASH = HashingUtils::HashString("ml.trn1.2xlarge"); - static const int ml_trn1_32xlarge_HASH = HashingUtils::HashString("ml.trn1.32xlarge"); - static const int ml_inf2_xlarge_HASH = HashingUtils::HashString("ml.inf2.xlarge"); - static const int ml_inf2_8xlarge_HASH = HashingUtils::HashString("ml.inf2.8xlarge"); - static const int ml_inf2_24xlarge_HASH = HashingUtils::HashString("ml.inf2.24xlarge"); - static const int ml_inf2_48xlarge_HASH = HashingUtils::HashString("ml.inf2.48xlarge"); - static const int ml_p5_48xlarge_HASH = HashingUtils::HashString("ml.p5.48xlarge"); + static constexpr uint32_t ml_t2_medium_HASH = ConstExprHashingUtils::HashString("ml.t2.medium"); + static constexpr uint32_t ml_t2_large_HASH = ConstExprHashingUtils::HashString("ml.t2.large"); + static constexpr uint32_t ml_t2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.t2.xlarge"); + static constexpr uint32_t ml_t2_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.t2.2xlarge"); + static constexpr uint32_t ml_m4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.xlarge"); + static constexpr uint32_t ml_m4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.2xlarge"); + static constexpr uint32_t ml_m4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.4xlarge"); + static constexpr uint32_t ml_m4_10xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.10xlarge"); + static constexpr uint32_t ml_m4_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.16xlarge"); + static constexpr uint32_t ml_m5_large_HASH = ConstExprHashingUtils::HashString("ml.m5.large"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_m5d_large_HASH = ConstExprHashingUtils::HashString("ml.m5d.large"); + static constexpr uint32_t ml_m5d_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.xlarge"); + static constexpr uint32_t ml_m5d_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.2xlarge"); + static constexpr uint32_t ml_m5d_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.4xlarge"); + static constexpr uint32_t ml_m5d_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.12xlarge"); + static constexpr uint32_t ml_m5d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5d.24xlarge"); + static constexpr uint32_t ml_c4_large_HASH = ConstExprHashingUtils::HashString("ml.c4.large"); + static constexpr uint32_t ml_c4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.xlarge"); + static constexpr uint32_t ml_c4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.2xlarge"); + static constexpr uint32_t ml_c4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.4xlarge"); + static constexpr uint32_t ml_c4_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.8xlarge"); + static constexpr uint32_t ml_p2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.xlarge"); + static constexpr uint32_t ml_p2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.8xlarge"); + static constexpr uint32_t ml_p2_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.16xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_c5_large_HASH = ConstExprHashingUtils::HashString("ml.c5.large"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_c5d_large_HASH = ConstExprHashingUtils::HashString("ml.c5d.large"); + static constexpr uint32_t ml_c5d_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.xlarge"); + static constexpr uint32_t ml_c5d_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.2xlarge"); + static constexpr uint32_t ml_c5d_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.4xlarge"); + static constexpr uint32_t ml_c5d_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.9xlarge"); + static constexpr uint32_t ml_c5d_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5d.18xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_r5_large_HASH = ConstExprHashingUtils::HashString("ml.r5.large"); + static constexpr uint32_t ml_r5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.xlarge"); + static constexpr uint32_t ml_r5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.2xlarge"); + static constexpr uint32_t ml_r5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.4xlarge"); + static constexpr uint32_t ml_r5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.12xlarge"); + static constexpr uint32_t ml_r5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5.24xlarge"); + static constexpr uint32_t ml_r5d_large_HASH = ConstExprHashingUtils::HashString("ml.r5d.large"); + static constexpr uint32_t ml_r5d_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5d.xlarge"); + static constexpr uint32_t ml_r5d_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5d.2xlarge"); + static constexpr uint32_t ml_r5d_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5d.4xlarge"); + static constexpr uint32_t ml_r5d_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5d.12xlarge"); + static constexpr uint32_t ml_r5d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.r5d.24xlarge"); + static constexpr uint32_t ml_inf1_xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.xlarge"); + static constexpr uint32_t ml_inf1_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.2xlarge"); + static constexpr uint32_t ml_inf1_6xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.6xlarge"); + static constexpr uint32_t ml_inf1_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf1.24xlarge"); + static constexpr uint32_t ml_c6i_large_HASH = ConstExprHashingUtils::HashString("ml.c6i.large"); + static constexpr uint32_t ml_c6i_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.xlarge"); + static constexpr uint32_t ml_c6i_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.2xlarge"); + static constexpr uint32_t ml_c6i_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.4xlarge"); + static constexpr uint32_t ml_c6i_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.8xlarge"); + static constexpr uint32_t ml_c6i_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.12xlarge"); + static constexpr uint32_t ml_c6i_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.16xlarge"); + static constexpr uint32_t ml_c6i_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.24xlarge"); + static constexpr uint32_t ml_c6i_32xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6i.32xlarge"); + static constexpr uint32_t ml_g5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.xlarge"); + static constexpr uint32_t ml_g5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.2xlarge"); + static constexpr uint32_t ml_g5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.4xlarge"); + static constexpr uint32_t ml_g5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.8xlarge"); + static constexpr uint32_t ml_g5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.12xlarge"); + static constexpr uint32_t ml_g5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.16xlarge"); + static constexpr uint32_t ml_g5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.24xlarge"); + static constexpr uint32_t ml_g5_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.48xlarge"); + static constexpr uint32_t ml_p4d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4d.24xlarge"); + static constexpr uint32_t ml_c7g_large_HASH = ConstExprHashingUtils::HashString("ml.c7g.large"); + static constexpr uint32_t ml_c7g_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c7g.xlarge"); + static constexpr uint32_t ml_c7g_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c7g.2xlarge"); + static constexpr uint32_t ml_c7g_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c7g.4xlarge"); + static constexpr uint32_t ml_c7g_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c7g.8xlarge"); + static constexpr uint32_t ml_c7g_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.c7g.12xlarge"); + static constexpr uint32_t ml_c7g_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.c7g.16xlarge"); + static constexpr uint32_t ml_m6g_large_HASH = ConstExprHashingUtils::HashString("ml.m6g.large"); + static constexpr uint32_t ml_m6g_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6g.xlarge"); + static constexpr uint32_t ml_m6g_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6g.2xlarge"); + static constexpr uint32_t ml_m6g_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6g.4xlarge"); + static constexpr uint32_t ml_m6g_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6g.8xlarge"); + static constexpr uint32_t ml_m6g_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6g.12xlarge"); + static constexpr uint32_t ml_m6g_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6g.16xlarge"); + static constexpr uint32_t ml_m6gd_large_HASH = ConstExprHashingUtils::HashString("ml.m6gd.large"); + static constexpr uint32_t ml_m6gd_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6gd.xlarge"); + static constexpr uint32_t ml_m6gd_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6gd.2xlarge"); + static constexpr uint32_t ml_m6gd_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6gd.4xlarge"); + static constexpr uint32_t ml_m6gd_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6gd.8xlarge"); + static constexpr uint32_t ml_m6gd_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6gd.12xlarge"); + static constexpr uint32_t ml_m6gd_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m6gd.16xlarge"); + static constexpr uint32_t ml_c6g_large_HASH = ConstExprHashingUtils::HashString("ml.c6g.large"); + static constexpr uint32_t ml_c6g_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6g.xlarge"); + static constexpr uint32_t ml_c6g_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6g.2xlarge"); + static constexpr uint32_t ml_c6g_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6g.4xlarge"); + static constexpr uint32_t ml_c6g_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6g.8xlarge"); + static constexpr uint32_t ml_c6g_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6g.12xlarge"); + static constexpr uint32_t ml_c6g_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6g.16xlarge"); + static constexpr uint32_t ml_c6gd_large_HASH = ConstExprHashingUtils::HashString("ml.c6gd.large"); + static constexpr uint32_t ml_c6gd_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gd.xlarge"); + static constexpr uint32_t ml_c6gd_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gd.2xlarge"); + static constexpr uint32_t ml_c6gd_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gd.4xlarge"); + static constexpr uint32_t ml_c6gd_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gd.8xlarge"); + static constexpr uint32_t ml_c6gd_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gd.12xlarge"); + static constexpr uint32_t ml_c6gd_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gd.16xlarge"); + static constexpr uint32_t ml_c6gn_large_HASH = ConstExprHashingUtils::HashString("ml.c6gn.large"); + static constexpr uint32_t ml_c6gn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gn.xlarge"); + static constexpr uint32_t ml_c6gn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gn.2xlarge"); + static constexpr uint32_t ml_c6gn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gn.4xlarge"); + static constexpr uint32_t ml_c6gn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gn.8xlarge"); + static constexpr uint32_t ml_c6gn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gn.12xlarge"); + static constexpr uint32_t ml_c6gn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.c6gn.16xlarge"); + static constexpr uint32_t ml_r6g_large_HASH = ConstExprHashingUtils::HashString("ml.r6g.large"); + static constexpr uint32_t ml_r6g_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6g.xlarge"); + static constexpr uint32_t ml_r6g_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6g.2xlarge"); + static constexpr uint32_t ml_r6g_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6g.4xlarge"); + static constexpr uint32_t ml_r6g_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6g.8xlarge"); + static constexpr uint32_t ml_r6g_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6g.12xlarge"); + static constexpr uint32_t ml_r6g_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6g.16xlarge"); + static constexpr uint32_t ml_r6gd_large_HASH = ConstExprHashingUtils::HashString("ml.r6gd.large"); + static constexpr uint32_t ml_r6gd_xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6gd.xlarge"); + static constexpr uint32_t ml_r6gd_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6gd.2xlarge"); + static constexpr uint32_t ml_r6gd_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6gd.4xlarge"); + static constexpr uint32_t ml_r6gd_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6gd.8xlarge"); + static constexpr uint32_t ml_r6gd_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6gd.12xlarge"); + static constexpr uint32_t ml_r6gd_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.r6gd.16xlarge"); + static constexpr uint32_t ml_p4de_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4de.24xlarge"); + static constexpr uint32_t ml_trn1_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.trn1.2xlarge"); + static constexpr uint32_t ml_trn1_32xlarge_HASH = ConstExprHashingUtils::HashString("ml.trn1.32xlarge"); + static constexpr uint32_t ml_inf2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf2.xlarge"); + static constexpr uint32_t ml_inf2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf2.8xlarge"); + static constexpr uint32_t ml_inf2_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf2.24xlarge"); + static constexpr uint32_t ml_inf2_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.inf2.48xlarge"); + static constexpr uint32_t ml_p5_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.p5.48xlarge"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, ProductionVariantInstanceType& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, ProductionVariantInstanceType& enumValue) { if (hashCode == ml_t2_medium_HASH) { @@ -788,7 +788,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, ProductionVariantInstanceType& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, ProductionVariantInstanceType& enumValue) { if (hashCode == ml_c6gn_4xlarge_HASH) { @@ -1386,7 +1386,7 @@ namespace Aws ProductionVariantInstanceType GetProductionVariantInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); ProductionVariantInstanceType enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProfilingStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProfilingStatus.cpp index f6488084a46..2a40f5604d1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProfilingStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProfilingStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProfilingStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); ProfilingStatus GetProfilingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return ProfilingStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortBy.cpp index 1a90cf1982c..fc98b68e90d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProjectSortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ProjectSortBy GetProjectSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ProjectSortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortOrder.cpp index f19bce98e6e..387ef84ed55 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProjectSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); ProjectSortOrder GetProjectSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return ProjectSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectStatus.cpp index 6f151262275..13681847fcc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ProjectStatus.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ProjectStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int CreateInProgress_HASH = HashingUtils::HashString("CreateInProgress"); - static const int CreateCompleted_HASH = HashingUtils::HashString("CreateCompleted"); - static const int CreateFailed_HASH = HashingUtils::HashString("CreateFailed"); - static const int DeleteInProgress_HASH = HashingUtils::HashString("DeleteInProgress"); - static const int DeleteFailed_HASH = HashingUtils::HashString("DeleteFailed"); - static const int DeleteCompleted_HASH = HashingUtils::HashString("DeleteCompleted"); - static const int UpdateInProgress_HASH = HashingUtils::HashString("UpdateInProgress"); - static const int UpdateCompleted_HASH = HashingUtils::HashString("UpdateCompleted"); - static const int UpdateFailed_HASH = HashingUtils::HashString("UpdateFailed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t CreateInProgress_HASH = ConstExprHashingUtils::HashString("CreateInProgress"); + static constexpr uint32_t CreateCompleted_HASH = ConstExprHashingUtils::HashString("CreateCompleted"); + static constexpr uint32_t CreateFailed_HASH = ConstExprHashingUtils::HashString("CreateFailed"); + static constexpr uint32_t DeleteInProgress_HASH = ConstExprHashingUtils::HashString("DeleteInProgress"); + static constexpr uint32_t DeleteFailed_HASH = ConstExprHashingUtils::HashString("DeleteFailed"); + static constexpr uint32_t DeleteCompleted_HASH = ConstExprHashingUtils::HashString("DeleteCompleted"); + static constexpr uint32_t UpdateInProgress_HASH = ConstExprHashingUtils::HashString("UpdateInProgress"); + static constexpr uint32_t UpdateCompleted_HASH = ConstExprHashingUtils::HashString("UpdateCompleted"); + static constexpr uint32_t UpdateFailed_HASH = ConstExprHashingUtils::HashString("UpdateFailed"); ProjectStatus GetProjectStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ProjectStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProAccessStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProAccessStatus.cpp index 177fb102c7f..78682cae28f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProAccessStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProAccessStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RStudioServerProAccessStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); RStudioServerProAccessStatus GetRStudioServerProAccessStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RStudioServerProAccessStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp index 262cf2dad05..14e445b7a77 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RStudioServerProUserGroupMapper { - static const int R_STUDIO_ADMIN_HASH = HashingUtils::HashString("R_STUDIO_ADMIN"); - static const int R_STUDIO_USER_HASH = HashingUtils::HashString("R_STUDIO_USER"); + static constexpr uint32_t R_STUDIO_ADMIN_HASH = ConstExprHashingUtils::HashString("R_STUDIO_ADMIN"); + static constexpr uint32_t R_STUDIO_USER_HASH = ConstExprHashingUtils::HashString("R_STUDIO_USER"); RStudioServerProUserGroup GetRStudioServerProUserGroupForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == R_STUDIO_ADMIN_HASH) { return RStudioServerProUserGroup::R_STUDIO_ADMIN; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobStatus.cpp index 5309fbfa2d2..a9f98aab6f6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RecommendationJobStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); RecommendationJobStatus GetRecommendationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return RecommendationJobStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobSupportedEndpointType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobSupportedEndpointType.cpp index a7a7aecb813..b7d3418f246 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobSupportedEndpointType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobSupportedEndpointType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecommendationJobSupportedEndpointTypeMapper { - static const int RealTime_HASH = HashingUtils::HashString("RealTime"); - static const int Serverless_HASH = HashingUtils::HashString("Serverless"); + static constexpr uint32_t RealTime_HASH = ConstExprHashingUtils::HashString("RealTime"); + static constexpr uint32_t Serverless_HASH = ConstExprHashingUtils::HashString("Serverless"); RecommendationJobSupportedEndpointType GetRecommendationJobSupportedEndpointTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RealTime_HASH) { return RecommendationJobSupportedEndpointType::RealTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobType.cpp index b9f6a01f840..a36932e3bbd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationJobType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecommendationJobTypeMapper { - static const int Default_HASH = HashingUtils::HashString("Default"); - static const int Advanced_HASH = HashingUtils::HashString("Advanced"); + static constexpr uint32_t Default_HASH = ConstExprHashingUtils::HashString("Default"); + static constexpr uint32_t Advanced_HASH = ConstExprHashingUtils::HashString("Advanced"); RecommendationJobType GetRecommendationJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Default_HASH) { return RecommendationJobType::Default; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStatus.cpp index 1dbe47205a6..69062b3420a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RecommendationStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); RecommendationStatus GetRecommendationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return RecommendationStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStepType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStepType.cpp index b1e580427e8..f25cbe29481 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStepType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecommendationStepType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecommendationStepTypeMapper { - static const int BENCHMARK_HASH = HashingUtils::HashString("BENCHMARK"); + static constexpr uint32_t BENCHMARK_HASH = ConstExprHashingUtils::HashString("BENCHMARK"); RecommendationStepType GetRecommendationStepTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BENCHMARK_HASH) { return RecommendationStepType::BENCHMARK; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecordWrapper.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecordWrapper.cpp index 799842ed0cc..d99eac9d970 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RecordWrapper.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RecordWrapper.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordWrapperMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int RecordIO_HASH = HashingUtils::HashString("RecordIO"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t RecordIO_HASH = ConstExprHashingUtils::HashString("RecordIO"); RecordWrapper GetRecordWrapperForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return RecordWrapper::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultCompressionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultCompressionType.cpp index 5504d94627a..04c201c0de5 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultCompressionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultCompressionType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RedshiftResultCompressionTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int GZIP_HASH = HashingUtils::HashString("GZIP"); - static const int BZIP2_HASH = HashingUtils::HashString("BZIP2"); - static const int ZSTD_HASH = HashingUtils::HashString("ZSTD"); - static const int SNAPPY_HASH = HashingUtils::HashString("SNAPPY"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t GZIP_HASH = ConstExprHashingUtils::HashString("GZIP"); + static constexpr uint32_t BZIP2_HASH = ConstExprHashingUtils::HashString("BZIP2"); + static constexpr uint32_t ZSTD_HASH = ConstExprHashingUtils::HashString("ZSTD"); + static constexpr uint32_t SNAPPY_HASH = ConstExprHashingUtils::HashString("SNAPPY"); RedshiftResultCompressionType GetRedshiftResultCompressionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return RedshiftResultCompressionType::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultFormat.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultFormat.cpp index fe5e39681d2..9f2698cd182 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultFormat.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RedshiftResultFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RedshiftResultFormatMapper { - static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t PARQUET_HASH = ConstExprHashingUtils::HashString("PARQUET"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); RedshiftResultFormat GetRedshiftResultFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PARQUET_HASH) { return RedshiftResultFormat::PARQUET; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RepositoryAccessMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RepositoryAccessMode.cpp index 146948ced17..aac4f5471b6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RepositoryAccessMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RepositoryAccessMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RepositoryAccessModeMapper { - static const int Platform_HASH = HashingUtils::HashString("Platform"); - static const int Vpc_HASH = HashingUtils::HashString("Vpc"); + static constexpr uint32_t Platform_HASH = ConstExprHashingUtils::HashString("Platform"); + static constexpr uint32_t Vpc_HASH = ConstExprHashingUtils::HashString("Vpc"); RepositoryAccessMode GetRepositoryAccessModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Platform_HASH) { return RepositoryAccessMode::Platform; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortBy.cpp index 662e9135b5d..4da20c343b4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceCatalogSortByMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); ResourceCatalogSortBy GetResourceCatalogSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return ResourceCatalogSortBy::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortOrder.cpp index 0c7382927f6..a3b838cc6e2 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceCatalogSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceCatalogSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); ResourceCatalogSortOrder GetResourceCatalogSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return ResourceCatalogSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceType.cpp index e99346bf4c4..a5afaadd70c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ResourceType.cpp @@ -20,26 +20,26 @@ namespace Aws namespace ResourceTypeMapper { - static const int TrainingJob_HASH = HashingUtils::HashString("TrainingJob"); - static const int Experiment_HASH = HashingUtils::HashString("Experiment"); - static const int ExperimentTrial_HASH = HashingUtils::HashString("ExperimentTrial"); - static const int ExperimentTrialComponent_HASH = HashingUtils::HashString("ExperimentTrialComponent"); - static const int Endpoint_HASH = HashingUtils::HashString("Endpoint"); - static const int ModelPackage_HASH = HashingUtils::HashString("ModelPackage"); - static const int ModelPackageGroup_HASH = HashingUtils::HashString("ModelPackageGroup"); - static const int Pipeline_HASH = HashingUtils::HashString("Pipeline"); - static const int PipelineExecution_HASH = HashingUtils::HashString("PipelineExecution"); - static const int FeatureGroup_HASH = HashingUtils::HashString("FeatureGroup"); - static const int Project_HASH = HashingUtils::HashString("Project"); - static const int FeatureMetadata_HASH = HashingUtils::HashString("FeatureMetadata"); - static const int HyperParameterTuningJob_HASH = HashingUtils::HashString("HyperParameterTuningJob"); - static const int ModelCard_HASH = HashingUtils::HashString("ModelCard"); - static const int Model_HASH = HashingUtils::HashString("Model"); + static constexpr uint32_t TrainingJob_HASH = ConstExprHashingUtils::HashString("TrainingJob"); + static constexpr uint32_t Experiment_HASH = ConstExprHashingUtils::HashString("Experiment"); + static constexpr uint32_t ExperimentTrial_HASH = ConstExprHashingUtils::HashString("ExperimentTrial"); + static constexpr uint32_t ExperimentTrialComponent_HASH = ConstExprHashingUtils::HashString("ExperimentTrialComponent"); + static constexpr uint32_t Endpoint_HASH = ConstExprHashingUtils::HashString("Endpoint"); + static constexpr uint32_t ModelPackage_HASH = ConstExprHashingUtils::HashString("ModelPackage"); + static constexpr uint32_t ModelPackageGroup_HASH = ConstExprHashingUtils::HashString("ModelPackageGroup"); + static constexpr uint32_t Pipeline_HASH = ConstExprHashingUtils::HashString("Pipeline"); + static constexpr uint32_t PipelineExecution_HASH = ConstExprHashingUtils::HashString("PipelineExecution"); + static constexpr uint32_t FeatureGroup_HASH = ConstExprHashingUtils::HashString("FeatureGroup"); + static constexpr uint32_t Project_HASH = ConstExprHashingUtils::HashString("Project"); + static constexpr uint32_t FeatureMetadata_HASH = ConstExprHashingUtils::HashString("FeatureMetadata"); + static constexpr uint32_t HyperParameterTuningJob_HASH = ConstExprHashingUtils::HashString("HyperParameterTuningJob"); + static constexpr uint32_t ModelCard_HASH = ConstExprHashingUtils::HashString("ModelCard"); + static constexpr uint32_t Model_HASH = ConstExprHashingUtils::HashString("Model"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TrainingJob_HASH) { return ResourceType::TrainingJob; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RetentionType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RetentionType.cpp index 138c8f2aa33..cb315725a94 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RetentionType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RetentionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RetentionTypeMapper { - static const int Retain_HASH = HashingUtils::HashString("Retain"); - static const int Delete_HASH = HashingUtils::HashString("Delete"); + static constexpr uint32_t Retain_HASH = ConstExprHashingUtils::HashString("Retain"); + static constexpr uint32_t Delete_HASH = ConstExprHashingUtils::HashString("Delete"); RetentionType GetRetentionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Retain_HASH) { return RetentionType::Retain; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RootAccess.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RootAccess.cpp index 4749e6327fc..656a10b792a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RootAccess.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RootAccess.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RootAccessMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); RootAccess GetRootAccessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return RootAccess::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/RuleEvaluationStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/RuleEvaluationStatus.cpp index 207a8bc0e1c..e67934386ed 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/RuleEvaluationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/RuleEvaluationStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace RuleEvaluationStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int NoIssuesFound_HASH = HashingUtils::HashString("NoIssuesFound"); - static const int IssuesFound_HASH = HashingUtils::HashString("IssuesFound"); - static const int Error_HASH = HashingUtils::HashString("Error"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t NoIssuesFound_HASH = ConstExprHashingUtils::HashString("NoIssuesFound"); + static constexpr uint32_t IssuesFound_HASH = ConstExprHashingUtils::HashString("IssuesFound"); + static constexpr uint32_t Error_HASH = ConstExprHashingUtils::HashString("Error"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); RuleEvaluationStatus GetRuleEvaluationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return RuleEvaluationStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataDistribution.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataDistribution.cpp index 4a96beb264a..d0f25f49517 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataDistribution.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataDistribution.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3DataDistributionMapper { - static const int FullyReplicated_HASH = HashingUtils::HashString("FullyReplicated"); - static const int ShardedByS3Key_HASH = HashingUtils::HashString("ShardedByS3Key"); + static constexpr uint32_t FullyReplicated_HASH = ConstExprHashingUtils::HashString("FullyReplicated"); + static constexpr uint32_t ShardedByS3Key_HASH = ConstExprHashingUtils::HashString("ShardedByS3Key"); S3DataDistribution GetS3DataDistributionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FullyReplicated_HASH) { return S3DataDistribution::FullyReplicated; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataType.cpp index 81cb904cf08..8cf873fd82d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/S3DataType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace S3DataTypeMapper { - static const int ManifestFile_HASH = HashingUtils::HashString("ManifestFile"); - static const int S3Prefix_HASH = HashingUtils::HashString("S3Prefix"); - static const int AugmentedManifestFile_HASH = HashingUtils::HashString("AugmentedManifestFile"); + static constexpr uint32_t ManifestFile_HASH = ConstExprHashingUtils::HashString("ManifestFile"); + static constexpr uint32_t S3Prefix_HASH = ConstExprHashingUtils::HashString("S3Prefix"); + static constexpr uint32_t AugmentedManifestFile_HASH = ConstExprHashingUtils::HashString("AugmentedManifestFile"); S3DataType GetS3DataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ManifestFile_HASH) { return S3DataType::ManifestFile; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/S3ModelDataType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/S3ModelDataType.cpp index 5ea975cf1ba..f354fbbaf40 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/S3ModelDataType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/S3ModelDataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3ModelDataTypeMapper { - static const int S3Prefix_HASH = HashingUtils::HashString("S3Prefix"); - static const int S3Object_HASH = HashingUtils::HashString("S3Object"); + static constexpr uint32_t S3Prefix_HASH = ConstExprHashingUtils::HashString("S3Prefix"); + static constexpr uint32_t S3Object_HASH = ConstExprHashingUtils::HashString("S3Object"); S3ModelDataType GetS3ModelDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == S3Prefix_HASH) { return S3ModelDataType::S3Prefix; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SagemakerServicecatalogStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SagemakerServicecatalogStatus.cpp index 7f05a864cac..e618a13709f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SagemakerServicecatalogStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SagemakerServicecatalogStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SagemakerServicecatalogStatusMapper { - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); SagemakerServicecatalogStatus GetSagemakerServicecatalogStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Enabled_HASH) { return SagemakerServicecatalogStatus::Enabled; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ScheduleStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ScheduleStatus.cpp index 41a1528d84f..22c038ab7e2 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ScheduleStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ScheduleStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ScheduleStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); ScheduleStatus GetScheduleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return ScheduleStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SearchSortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SearchSortOrder.cpp index 0636abebdea..d02f4d1c30a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SearchSortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SearchSortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SearchSortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); SearchSortOrder GetSearchSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return SearchSortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SecondaryStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SecondaryStatus.cpp index 5c76e066afc..2eddefa313a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SecondaryStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SecondaryStatus.cpp @@ -20,27 +20,27 @@ namespace Aws namespace SecondaryStatusMapper { - static const int Starting_HASH = HashingUtils::HashString("Starting"); - static const int LaunchingMLInstances_HASH = HashingUtils::HashString("LaunchingMLInstances"); - static const int PreparingTrainingStack_HASH = HashingUtils::HashString("PreparingTrainingStack"); - static const int Downloading_HASH = HashingUtils::HashString("Downloading"); - static const int DownloadingTrainingImage_HASH = HashingUtils::HashString("DownloadingTrainingImage"); - static const int Training_HASH = HashingUtils::HashString("Training"); - static const int Uploading_HASH = HashingUtils::HashString("Uploading"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int MaxRuntimeExceeded_HASH = HashingUtils::HashString("MaxRuntimeExceeded"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Interrupted_HASH = HashingUtils::HashString("Interrupted"); - static const int MaxWaitTimeExceeded_HASH = HashingUtils::HashString("MaxWaitTimeExceeded"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Restarting_HASH = HashingUtils::HashString("Restarting"); + static constexpr uint32_t Starting_HASH = ConstExprHashingUtils::HashString("Starting"); + static constexpr uint32_t LaunchingMLInstances_HASH = ConstExprHashingUtils::HashString("LaunchingMLInstances"); + static constexpr uint32_t PreparingTrainingStack_HASH = ConstExprHashingUtils::HashString("PreparingTrainingStack"); + static constexpr uint32_t Downloading_HASH = ConstExprHashingUtils::HashString("Downloading"); + static constexpr uint32_t DownloadingTrainingImage_HASH = ConstExprHashingUtils::HashString("DownloadingTrainingImage"); + static constexpr uint32_t Training_HASH = ConstExprHashingUtils::HashString("Training"); + static constexpr uint32_t Uploading_HASH = ConstExprHashingUtils::HashString("Uploading"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t MaxRuntimeExceeded_HASH = ConstExprHashingUtils::HashString("MaxRuntimeExceeded"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Interrupted_HASH = ConstExprHashingUtils::HashString("Interrupted"); + static constexpr uint32_t MaxWaitTimeExceeded_HASH = ConstExprHashingUtils::HashString("MaxWaitTimeExceeded"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Restarting_HASH = ConstExprHashingUtils::HashString("Restarting"); SecondaryStatus GetSecondaryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Starting_HASH) { return SecondaryStatus::Starting; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SkipModelValidation.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SkipModelValidation.cpp index ccf6b0286ad..e4f278b6e8b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SkipModelValidation.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SkipModelValidation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SkipModelValidationMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int None_HASH = HashingUtils::HashString("None"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); SkipModelValidation GetSkipModelValidationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return SkipModelValidation::All; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortActionsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortActionsBy.cpp index 9ebbc6c9e77..f1395ccce92 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortActionsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortActionsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortActionsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortActionsBy GetSortActionsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortActionsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortArtifactsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortArtifactsBy.cpp index a2dfbe533f7..46f1ccfa13e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortArtifactsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortArtifactsBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SortArtifactsByMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortArtifactsBy GetSortArtifactsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return SortArtifactsBy::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortAssociationsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortAssociationsBy.cpp index f77dc22f8f1..913348b7e02 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortAssociationsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortAssociationsBy.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SortAssociationsByMapper { - static const int SourceArn_HASH = HashingUtils::HashString("SourceArn"); - static const int DestinationArn_HASH = HashingUtils::HashString("DestinationArn"); - static const int SourceType_HASH = HashingUtils::HashString("SourceType"); - static const int DestinationType_HASH = HashingUtils::HashString("DestinationType"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t SourceArn_HASH = ConstExprHashingUtils::HashString("SourceArn"); + static constexpr uint32_t DestinationArn_HASH = ConstExprHashingUtils::HashString("DestinationArn"); + static constexpr uint32_t SourceType_HASH = ConstExprHashingUtils::HashString("SourceType"); + static constexpr uint32_t DestinationType_HASH = ConstExprHashingUtils::HashString("DestinationType"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortAssociationsBy GetSortAssociationsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SourceArn_HASH) { return SortAssociationsBy::SourceArn; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortBy.cpp index 59af18aef91..b2fbaf0016c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SortByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); SortBy GetSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortContextsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortContextsBy.cpp index bb2958980b3..14f506cfda7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortContextsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortContextsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortContextsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortContextsBy GetSortContextsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortContextsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortExperimentsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortExperimentsBy.cpp index f9da73fe207..a8ca45f815f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortExperimentsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortExperimentsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortExperimentsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortExperimentsBy GetSortExperimentsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortExperimentsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortInferenceExperimentsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortInferenceExperimentsBy.cpp index 964389ddc18..dc0e2cbce27 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortInferenceExperimentsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortInferenceExperimentsBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SortInferenceExperimentsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); SortInferenceExperimentsBy GetSortInferenceExperimentsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortInferenceExperimentsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortLineageGroupsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortLineageGroupsBy.cpp index 42cf9f59303..0e247b7732e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortLineageGroupsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortLineageGroupsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortLineageGroupsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortLineageGroupsBy GetSortLineageGroupsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortLineageGroupsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortOrder.cpp index 512b793124d..bacb1571467 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int Ascending_HASH = HashingUtils::HashString("Ascending"); - static const int Descending_HASH = HashingUtils::HashString("Descending"); + static constexpr uint32_t Ascending_HASH = ConstExprHashingUtils::HashString("Ascending"); + static constexpr uint32_t Descending_HASH = ConstExprHashingUtils::HashString("Descending"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Ascending_HASH) { return SortOrder::Ascending; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelineExecutionsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelineExecutionsBy.cpp index 052d7fee60b..e2b94c6262d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelineExecutionsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelineExecutionsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortPipelineExecutionsByMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int PipelineExecutionArn_HASH = HashingUtils::HashString("PipelineExecutionArn"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t PipelineExecutionArn_HASH = ConstExprHashingUtils::HashString("PipelineExecutionArn"); SortPipelineExecutionsBy GetSortPipelineExecutionsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return SortPipelineExecutionsBy::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelinesBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelinesBy.cpp index 62092cc9cad..71c6bc97a0b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelinesBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortPipelinesBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortPipelinesByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortPipelinesBy GetSortPipelinesByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortPipelinesBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialComponentsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialComponentsBy.cpp index 67dae3fbcfd..0d3319e71be 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialComponentsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialComponentsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortTrialComponentsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortTrialComponentsBy GetSortTrialComponentsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortTrialComponentsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialsBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialsBy.cpp index d08d1b85095..6e05dcb957d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialsBy.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SortTrialsBy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortTrialsByMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); SortTrialsBy GetSortTrialsByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return SortTrialsBy::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSortKey.cpp index 7f397a0dba3..19b7720df67 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceSortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SpaceSortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); SpaceSortKey GetSpaceSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return SpaceSortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStatus.cpp index 8548cb5c1aa..15b203f77de 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SpaceStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace SpaceStatusMapper { - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Update_Failed_HASH = HashingUtils::HashString("Update_Failed"); - static const int Delete_Failed_HASH = HashingUtils::HashString("Delete_Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Update_Failed_HASH = ConstExprHashingUtils::HashString("Update_Failed"); + static constexpr uint32_t Delete_Failed_HASH = ConstExprHashingUtils::HashString("Delete_Failed"); SpaceStatus GetSpaceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Deleting_HASH) { return SpaceStatus::Deleting; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SplitType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SplitType.cpp index ae8a2f217e1..1ba957fd1d6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/SplitType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SplitType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SplitTypeMapper { - static const int None_HASH = HashingUtils::HashString("None"); - static const int Line_HASH = HashingUtils::HashString("Line"); - static const int RecordIO_HASH = HashingUtils::HashString("RecordIO"); - static const int TFRecord_HASH = HashingUtils::HashString("TFRecord"); + static constexpr uint32_t None_HASH = ConstExprHashingUtils::HashString("None"); + static constexpr uint32_t Line_HASH = ConstExprHashingUtils::HashString("Line"); + static constexpr uint32_t RecordIO_HASH = ConstExprHashingUtils::HashString("RecordIO"); + static constexpr uint32_t TFRecord_HASH = ConstExprHashingUtils::HashString("TFRecord"); SplitType GetSplitTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == None_HASH) { return SplitType::None; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StageStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StageStatus.cpp index 472964a638b..a4719b73780 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StageStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StageStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace StageStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int READYTODEPLOY_HASH = HashingUtils::HashString("READYTODEPLOY"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int DEPLOYED_HASH = HashingUtils::HashString("DEPLOYED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t READYTODEPLOY_HASH = ConstExprHashingUtils::HashString("READYTODEPLOY"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t DEPLOYED_HASH = ConstExprHashingUtils::HashString("DEPLOYED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); StageStatus GetStageStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return StageStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/Statistic.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/Statistic.cpp index f7bbe4b9ee9..01469834f59 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/Statistic.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/Statistic.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StatisticMapper { - static const int Average_HASH = HashingUtils::HashString("Average"); - static const int Minimum_HASH = HashingUtils::HashString("Minimum"); - static const int Maximum_HASH = HashingUtils::HashString("Maximum"); - static const int SampleCount_HASH = HashingUtils::HashString("SampleCount"); - static const int Sum_HASH = HashingUtils::HashString("Sum"); + static constexpr uint32_t Average_HASH = ConstExprHashingUtils::HashString("Average"); + static constexpr uint32_t Minimum_HASH = ConstExprHashingUtils::HashString("Minimum"); + static constexpr uint32_t Maximum_HASH = ConstExprHashingUtils::HashString("Maximum"); + static constexpr uint32_t SampleCount_HASH = ConstExprHashingUtils::HashString("SampleCount"); + static constexpr uint32_t Sum_HASH = ConstExprHashingUtils::HashString("Sum"); Statistic GetStatisticForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Average_HASH) { return Statistic::Average; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StepStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StepStatus.cpp index 234d6b8e5c5..dec5bd6153e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StepStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StepStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StepStatusMapper { - static const int Starting_HASH = HashingUtils::HashString("Starting"); - static const int Executing_HASH = HashingUtils::HashString("Executing"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t Starting_HASH = ConstExprHashingUtils::HashString("Starting"); + static constexpr uint32_t Executing_HASH = ConstExprHashingUtils::HashString("Executing"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); StepStatus GetStepStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Starting_HASH) { return StepStatus::Starting; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StorageType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StorageType.cpp index b2fb214c9e4..12bf8887c9d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StorageType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageTypeMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int InMemory_HASH = HashingUtils::HashString("InMemory"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t InMemory_HASH = ConstExprHashingUtils::HashString("InMemory"); StorageType GetStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return StorageType::Standard; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp index 821bbe74086..cb3479f6c7c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigAppType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StudioLifecycleConfigAppTypeMapper { - static const int JupyterServer_HASH = HashingUtils::HashString("JupyterServer"); - static const int KernelGateway_HASH = HashingUtils::HashString("KernelGateway"); + static constexpr uint32_t JupyterServer_HASH = ConstExprHashingUtils::HashString("JupyterServer"); + static constexpr uint32_t KernelGateway_HASH = ConstExprHashingUtils::HashString("KernelGateway"); StudioLifecycleConfigAppType GetStudioLifecycleConfigAppTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JupyterServer_HASH) { return StudioLifecycleConfigAppType::JupyterServer; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigSortKey.cpp index cc5b060a4bb..76293c15abc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioLifecycleConfigSortKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StudioLifecycleConfigSortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); - static const int Name_HASH = HashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); StudioLifecycleConfigSortKey GetStudioLifecycleConfigSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return StudioLifecycleConfigSortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TableFormat.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TableFormat.cpp index 9bd64f9e9d1..bb2c4e634eb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TableFormat.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TableFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TableFormatMapper { - static const int Glue_HASH = HashingUtils::HashString("Glue"); - static const int Iceberg_HASH = HashingUtils::HashString("Iceberg"); + static constexpr uint32_t Glue_HASH = ConstExprHashingUtils::HashString("Glue"); + static constexpr uint32_t Iceberg_HASH = ConstExprHashingUtils::HashString("Iceberg"); TableFormat GetTableFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Glue_HASH) { return TableFormat::Glue; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetDevice.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetDevice.cpp index 56d1b94bedf..a721de8315c 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetDevice.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetDevice.cpp @@ -20,45 +20,45 @@ namespace Aws namespace TargetDeviceMapper { - static const int lambda_HASH = HashingUtils::HashString("lambda"); - static const int ml_m4_HASH = HashingUtils::HashString("ml_m4"); - static const int ml_m5_HASH = HashingUtils::HashString("ml_m5"); - static const int ml_c4_HASH = HashingUtils::HashString("ml_c4"); - static const int ml_c5_HASH = HashingUtils::HashString("ml_c5"); - static const int ml_p2_HASH = HashingUtils::HashString("ml_p2"); - static const int ml_p3_HASH = HashingUtils::HashString("ml_p3"); - static const int ml_g4dn_HASH = HashingUtils::HashString("ml_g4dn"); - static const int ml_inf1_HASH = HashingUtils::HashString("ml_inf1"); - static const int ml_inf2_HASH = HashingUtils::HashString("ml_inf2"); - static const int ml_trn1_HASH = HashingUtils::HashString("ml_trn1"); - static const int ml_eia2_HASH = HashingUtils::HashString("ml_eia2"); - static const int jetson_tx1_HASH = HashingUtils::HashString("jetson_tx1"); - static const int jetson_tx2_HASH = HashingUtils::HashString("jetson_tx2"); - static const int jetson_nano_HASH = HashingUtils::HashString("jetson_nano"); - static const int jetson_xavier_HASH = HashingUtils::HashString("jetson_xavier"); - static const int rasp3b_HASH = HashingUtils::HashString("rasp3b"); - static const int imx8qm_HASH = HashingUtils::HashString("imx8qm"); - static const int deeplens_HASH = HashingUtils::HashString("deeplens"); - static const int rk3399_HASH = HashingUtils::HashString("rk3399"); - static const int rk3288_HASH = HashingUtils::HashString("rk3288"); - static const int aisage_HASH = HashingUtils::HashString("aisage"); - static const int sbe_c_HASH = HashingUtils::HashString("sbe_c"); - static const int qcs605_HASH = HashingUtils::HashString("qcs605"); - static const int qcs603_HASH = HashingUtils::HashString("qcs603"); - static const int sitara_am57x_HASH = HashingUtils::HashString("sitara_am57x"); - static const int amba_cv2_HASH = HashingUtils::HashString("amba_cv2"); - static const int amba_cv22_HASH = HashingUtils::HashString("amba_cv22"); - static const int amba_cv25_HASH = HashingUtils::HashString("amba_cv25"); - static const int x86_win32_HASH = HashingUtils::HashString("x86_win32"); - static const int x86_win64_HASH = HashingUtils::HashString("x86_win64"); - static const int coreml_HASH = HashingUtils::HashString("coreml"); - static const int jacinto_tda4vm_HASH = HashingUtils::HashString("jacinto_tda4vm"); - static const int imx8mplus_HASH = HashingUtils::HashString("imx8mplus"); + static constexpr uint32_t lambda_HASH = ConstExprHashingUtils::HashString("lambda"); + static constexpr uint32_t ml_m4_HASH = ConstExprHashingUtils::HashString("ml_m4"); + static constexpr uint32_t ml_m5_HASH = ConstExprHashingUtils::HashString("ml_m5"); + static constexpr uint32_t ml_c4_HASH = ConstExprHashingUtils::HashString("ml_c4"); + static constexpr uint32_t ml_c5_HASH = ConstExprHashingUtils::HashString("ml_c5"); + static constexpr uint32_t ml_p2_HASH = ConstExprHashingUtils::HashString("ml_p2"); + static constexpr uint32_t ml_p3_HASH = ConstExprHashingUtils::HashString("ml_p3"); + static constexpr uint32_t ml_g4dn_HASH = ConstExprHashingUtils::HashString("ml_g4dn"); + static constexpr uint32_t ml_inf1_HASH = ConstExprHashingUtils::HashString("ml_inf1"); + static constexpr uint32_t ml_inf2_HASH = ConstExprHashingUtils::HashString("ml_inf2"); + static constexpr uint32_t ml_trn1_HASH = ConstExprHashingUtils::HashString("ml_trn1"); + static constexpr uint32_t ml_eia2_HASH = ConstExprHashingUtils::HashString("ml_eia2"); + static constexpr uint32_t jetson_tx1_HASH = ConstExprHashingUtils::HashString("jetson_tx1"); + static constexpr uint32_t jetson_tx2_HASH = ConstExprHashingUtils::HashString("jetson_tx2"); + static constexpr uint32_t jetson_nano_HASH = ConstExprHashingUtils::HashString("jetson_nano"); + static constexpr uint32_t jetson_xavier_HASH = ConstExprHashingUtils::HashString("jetson_xavier"); + static constexpr uint32_t rasp3b_HASH = ConstExprHashingUtils::HashString("rasp3b"); + static constexpr uint32_t imx8qm_HASH = ConstExprHashingUtils::HashString("imx8qm"); + static constexpr uint32_t deeplens_HASH = ConstExprHashingUtils::HashString("deeplens"); + static constexpr uint32_t rk3399_HASH = ConstExprHashingUtils::HashString("rk3399"); + static constexpr uint32_t rk3288_HASH = ConstExprHashingUtils::HashString("rk3288"); + static constexpr uint32_t aisage_HASH = ConstExprHashingUtils::HashString("aisage"); + static constexpr uint32_t sbe_c_HASH = ConstExprHashingUtils::HashString("sbe_c"); + static constexpr uint32_t qcs605_HASH = ConstExprHashingUtils::HashString("qcs605"); + static constexpr uint32_t qcs603_HASH = ConstExprHashingUtils::HashString("qcs603"); + static constexpr uint32_t sitara_am57x_HASH = ConstExprHashingUtils::HashString("sitara_am57x"); + static constexpr uint32_t amba_cv2_HASH = ConstExprHashingUtils::HashString("amba_cv2"); + static constexpr uint32_t amba_cv22_HASH = ConstExprHashingUtils::HashString("amba_cv22"); + static constexpr uint32_t amba_cv25_HASH = ConstExprHashingUtils::HashString("amba_cv25"); + static constexpr uint32_t x86_win32_HASH = ConstExprHashingUtils::HashString("x86_win32"); + static constexpr uint32_t x86_win64_HASH = ConstExprHashingUtils::HashString("x86_win64"); + static constexpr uint32_t coreml_HASH = ConstExprHashingUtils::HashString("coreml"); + static constexpr uint32_t jacinto_tda4vm_HASH = ConstExprHashingUtils::HashString("jacinto_tda4vm"); + static constexpr uint32_t imx8mplus_HASH = ConstExprHashingUtils::HashString("imx8mplus"); TargetDevice GetTargetDeviceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == lambda_HASH) { return TargetDevice::lambda; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformAccelerator.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformAccelerator.cpp index a4e26965ef0..be9737448cf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformAccelerator.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformAccelerator.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TargetPlatformAcceleratorMapper { - static const int INTEL_GRAPHICS_HASH = HashingUtils::HashString("INTEL_GRAPHICS"); - static const int MALI_HASH = HashingUtils::HashString("MALI"); - static const int NVIDIA_HASH = HashingUtils::HashString("NVIDIA"); - static const int NNA_HASH = HashingUtils::HashString("NNA"); + static constexpr uint32_t INTEL_GRAPHICS_HASH = ConstExprHashingUtils::HashString("INTEL_GRAPHICS"); + static constexpr uint32_t MALI_HASH = ConstExprHashingUtils::HashString("MALI"); + static constexpr uint32_t NVIDIA_HASH = ConstExprHashingUtils::HashString("NVIDIA"); + static constexpr uint32_t NNA_HASH = ConstExprHashingUtils::HashString("NNA"); TargetPlatformAccelerator GetTargetPlatformAcceleratorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTEL_GRAPHICS_HASH) { return TargetPlatformAccelerator::INTEL_GRAPHICS; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformArch.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformArch.cpp index 906c2a3604e..a5ffdb17bfc 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformArch.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformArch.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TargetPlatformArchMapper { - static const int X86_64_HASH = HashingUtils::HashString("X86_64"); - static const int X86_HASH = HashingUtils::HashString("X86"); - static const int ARM64_HASH = HashingUtils::HashString("ARM64"); - static const int ARM_EABI_HASH = HashingUtils::HashString("ARM_EABI"); - static const int ARM_EABIHF_HASH = HashingUtils::HashString("ARM_EABIHF"); + static constexpr uint32_t X86_64_HASH = ConstExprHashingUtils::HashString("X86_64"); + static constexpr uint32_t X86_HASH = ConstExprHashingUtils::HashString("X86"); + static constexpr uint32_t ARM64_HASH = ConstExprHashingUtils::HashString("ARM64"); + static constexpr uint32_t ARM_EABI_HASH = ConstExprHashingUtils::HashString("ARM_EABI"); + static constexpr uint32_t ARM_EABIHF_HASH = ConstExprHashingUtils::HashString("ARM_EABIHF"); TargetPlatformArch GetTargetPlatformArchForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == X86_64_HASH) { return TargetPlatformArch::X86_64; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformOs.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformOs.cpp index 76afc940a71..38878913d92 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformOs.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TargetPlatformOs.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetPlatformOsMapper { - static const int ANDROID__HASH = HashingUtils::HashString("ANDROID"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); + static constexpr uint32_t ANDROID__HASH = ConstExprHashingUtils::HashString("ANDROID"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); TargetPlatformOs GetTargetPlatformOsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANDROID__HASH) { return TargetPlatformOs::ANDROID_; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficRoutingConfigType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficRoutingConfigType.cpp index 53b08d12bc4..e6168272598 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficRoutingConfigType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficRoutingConfigType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrafficRoutingConfigTypeMapper { - static const int ALL_AT_ONCE_HASH = HashingUtils::HashString("ALL_AT_ONCE"); - static const int CANARY_HASH = HashingUtils::HashString("CANARY"); - static const int LINEAR_HASH = HashingUtils::HashString("LINEAR"); + static constexpr uint32_t ALL_AT_ONCE_HASH = ConstExprHashingUtils::HashString("ALL_AT_ONCE"); + static constexpr uint32_t CANARY_HASH = ConstExprHashingUtils::HashString("CANARY"); + static constexpr uint32_t LINEAR_HASH = ConstExprHashingUtils::HashString("LINEAR"); TrafficRoutingConfigType GetTrafficRoutingConfigTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_AT_ONCE_HASH) { return TrafficRoutingConfigType::ALL_AT_ONCE; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficType.cpp index 42523a2ce63..e250c7e504d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrafficType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrafficTypeMapper { - static const int PHASES_HASH = HashingUtils::HashString("PHASES"); - static const int STAIRS_HASH = HashingUtils::HashString("STAIRS"); + static constexpr uint32_t PHASES_HASH = ConstExprHashingUtils::HashString("PHASES"); + static constexpr uint32_t STAIRS_HASH = ConstExprHashingUtils::HashString("STAIRS"); TrafficType GetTrafficTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHASES_HASH) { return TrafficType::PHASES; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInputMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInputMode.cpp index 8117eae236e..2085b7d056d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInputMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInputMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TrainingInputModeMapper { - static const int Pipe_HASH = HashingUtils::HashString("Pipe"); - static const int File_HASH = HashingUtils::HashString("File"); - static const int FastFile_HASH = HashingUtils::HashString("FastFile"); + static constexpr uint32_t Pipe_HASH = ConstExprHashingUtils::HashString("Pipe"); + static constexpr uint32_t File_HASH = ConstExprHashingUtils::HashString("File"); + static constexpr uint32_t FastFile_HASH = ConstExprHashingUtils::HashString("FastFile"); TrainingInputMode GetTrainingInputModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pipe_HASH) { return TrainingInputMode::Pipe; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInstanceType.cpp index 94c7adef64f..e827776036a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingInstanceType.cpp @@ -20,62 +20,62 @@ namespace Aws namespace TrainingInstanceTypeMapper { - static const int ml_m4_xlarge_HASH = HashingUtils::HashString("ml.m4.xlarge"); - static const int ml_m4_2xlarge_HASH = HashingUtils::HashString("ml.m4.2xlarge"); - static const int ml_m4_4xlarge_HASH = HashingUtils::HashString("ml.m4.4xlarge"); - static const int ml_m4_10xlarge_HASH = HashingUtils::HashString("ml.m4.10xlarge"); - static const int ml_m4_16xlarge_HASH = HashingUtils::HashString("ml.m4.16xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); - static const int ml_m5_large_HASH = HashingUtils::HashString("ml.m5.large"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_c4_xlarge_HASH = HashingUtils::HashString("ml.c4.xlarge"); - static const int ml_c4_2xlarge_HASH = HashingUtils::HashString("ml.c4.2xlarge"); - static const int ml_c4_4xlarge_HASH = HashingUtils::HashString("ml.c4.4xlarge"); - static const int ml_c4_8xlarge_HASH = HashingUtils::HashString("ml.c4.8xlarge"); - static const int ml_p2_xlarge_HASH = HashingUtils::HashString("ml.p2.xlarge"); - static const int ml_p2_8xlarge_HASH = HashingUtils::HashString("ml.p2.8xlarge"); - static const int ml_p2_16xlarge_HASH = HashingUtils::HashString("ml.p2.16xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_p3dn_24xlarge_HASH = HashingUtils::HashString("ml.p3dn.24xlarge"); - static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_c5n_xlarge_HASH = HashingUtils::HashString("ml.c5n.xlarge"); - static const int ml_c5n_2xlarge_HASH = HashingUtils::HashString("ml.c5n.2xlarge"); - static const int ml_c5n_4xlarge_HASH = HashingUtils::HashString("ml.c5n.4xlarge"); - static const int ml_c5n_9xlarge_HASH = HashingUtils::HashString("ml.c5n.9xlarge"); - static const int ml_c5n_18xlarge_HASH = HashingUtils::HashString("ml.c5n.18xlarge"); - static const int ml_g5_xlarge_HASH = HashingUtils::HashString("ml.g5.xlarge"); - static const int ml_g5_2xlarge_HASH = HashingUtils::HashString("ml.g5.2xlarge"); - static const int ml_g5_4xlarge_HASH = HashingUtils::HashString("ml.g5.4xlarge"); - static const int ml_g5_8xlarge_HASH = HashingUtils::HashString("ml.g5.8xlarge"); - static const int ml_g5_16xlarge_HASH = HashingUtils::HashString("ml.g5.16xlarge"); - static const int ml_g5_12xlarge_HASH = HashingUtils::HashString("ml.g5.12xlarge"); - static const int ml_g5_24xlarge_HASH = HashingUtils::HashString("ml.g5.24xlarge"); - static const int ml_g5_48xlarge_HASH = HashingUtils::HashString("ml.g5.48xlarge"); - static const int ml_trn1_2xlarge_HASH = HashingUtils::HashString("ml.trn1.2xlarge"); - static const int ml_trn1_32xlarge_HASH = HashingUtils::HashString("ml.trn1.32xlarge"); - static const int ml_trn1n_32xlarge_HASH = HashingUtils::HashString("ml.trn1n.32xlarge"); - static const int ml_p5_48xlarge_HASH = HashingUtils::HashString("ml.p5.48xlarge"); + static constexpr uint32_t ml_m4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.xlarge"); + static constexpr uint32_t ml_m4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.2xlarge"); + static constexpr uint32_t ml_m4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.4xlarge"); + static constexpr uint32_t ml_m4_10xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.10xlarge"); + static constexpr uint32_t ml_m4_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.16xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_m5_large_HASH = ConstExprHashingUtils::HashString("ml.m5.large"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_c4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.xlarge"); + static constexpr uint32_t ml_c4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.2xlarge"); + static constexpr uint32_t ml_c4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.4xlarge"); + static constexpr uint32_t ml_c4_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.8xlarge"); + static constexpr uint32_t ml_p2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.xlarge"); + static constexpr uint32_t ml_p2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.8xlarge"); + static constexpr uint32_t ml_p2_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.16xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_p3dn_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3dn.24xlarge"); + static constexpr uint32_t ml_p4d_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.p4d.24xlarge"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_c5n_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.xlarge"); + static constexpr uint32_t ml_c5n_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.2xlarge"); + static constexpr uint32_t ml_c5n_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.4xlarge"); + static constexpr uint32_t ml_c5n_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.9xlarge"); + static constexpr uint32_t ml_c5n_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5n.18xlarge"); + static constexpr uint32_t ml_g5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.xlarge"); + static constexpr uint32_t ml_g5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.2xlarge"); + static constexpr uint32_t ml_g5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.4xlarge"); + static constexpr uint32_t ml_g5_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.8xlarge"); + static constexpr uint32_t ml_g5_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.16xlarge"); + static constexpr uint32_t ml_g5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.12xlarge"); + static constexpr uint32_t ml_g5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.24xlarge"); + static constexpr uint32_t ml_g5_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.g5.48xlarge"); + static constexpr uint32_t ml_trn1_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.trn1.2xlarge"); + static constexpr uint32_t ml_trn1_32xlarge_HASH = ConstExprHashingUtils::HashString("ml.trn1.32xlarge"); + static constexpr uint32_t ml_trn1n_32xlarge_HASH = ConstExprHashingUtils::HashString("ml.trn1n.32xlarge"); + static constexpr uint32_t ml_p5_48xlarge_HASH = ConstExprHashingUtils::HashString("ml.p5.48xlarge"); TrainingInstanceType GetTrainingInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_m4_xlarge_HASH) { return TrainingInstanceType::ml_m4_xlarge; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobEarlyStoppingType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobEarlyStoppingType.cpp index a64a7f29b68..2d3ec1475a4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobEarlyStoppingType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobEarlyStoppingType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrainingJobEarlyStoppingTypeMapper { - static const int Off_HASH = HashingUtils::HashString("Off"); - static const int Auto_HASH = HashingUtils::HashString("Auto"); + static constexpr uint32_t Off_HASH = ConstExprHashingUtils::HashString("Off"); + static constexpr uint32_t Auto_HASH = ConstExprHashingUtils::HashString("Auto"); TrainingJobEarlyStoppingType GetTrainingJobEarlyStoppingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Off_HASH) { return TrainingJobEarlyStoppingType::Off; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobSortByOptions.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobSortByOptions.cpp index 2229a57b210..f8f2c0ae251 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobSortByOptions.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobSortByOptions.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TrainingJobSortByOptionsMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int FinalObjectiveMetricValue_HASH = HashingUtils::HashString("FinalObjectiveMetricValue"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t FinalObjectiveMetricValue_HASH = ConstExprHashingUtils::HashString("FinalObjectiveMetricValue"); TrainingJobSortByOptions GetTrainingJobSortByOptionsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return TrainingJobSortByOptions::Name; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobStatus.cpp index 14cab2fb610..b5cbb49f3e9 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TrainingJobStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); TrainingJobStatus GetTrainingJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return TrainingJobStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingRepositoryAccessMode.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingRepositoryAccessMode.cpp index 8c080332a60..18687903473 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingRepositoryAccessMode.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrainingRepositoryAccessMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrainingRepositoryAccessModeMapper { - static const int Platform_HASH = HashingUtils::HashString("Platform"); - static const int Vpc_HASH = HashingUtils::HashString("Vpc"); + static constexpr uint32_t Platform_HASH = ConstExprHashingUtils::HashString("Platform"); + static constexpr uint32_t Vpc_HASH = ConstExprHashingUtils::HashString("Vpc"); TrainingRepositoryAccessMode GetTrainingRepositoryAccessModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Platform_HASH) { return TrainingRepositoryAccessMode::Platform; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp index c92c4498d20..06f7d91cc13 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformInstanceType.cpp @@ -20,43 +20,43 @@ namespace Aws namespace TransformInstanceTypeMapper { - static const int ml_m4_xlarge_HASH = HashingUtils::HashString("ml.m4.xlarge"); - static const int ml_m4_2xlarge_HASH = HashingUtils::HashString("ml.m4.2xlarge"); - static const int ml_m4_4xlarge_HASH = HashingUtils::HashString("ml.m4.4xlarge"); - static const int ml_m4_10xlarge_HASH = HashingUtils::HashString("ml.m4.10xlarge"); - static const int ml_m4_16xlarge_HASH = HashingUtils::HashString("ml.m4.16xlarge"); - static const int ml_c4_xlarge_HASH = HashingUtils::HashString("ml.c4.xlarge"); - static const int ml_c4_2xlarge_HASH = HashingUtils::HashString("ml.c4.2xlarge"); - static const int ml_c4_4xlarge_HASH = HashingUtils::HashString("ml.c4.4xlarge"); - static const int ml_c4_8xlarge_HASH = HashingUtils::HashString("ml.c4.8xlarge"); - static const int ml_p2_xlarge_HASH = HashingUtils::HashString("ml.p2.xlarge"); - static const int ml_p2_8xlarge_HASH = HashingUtils::HashString("ml.p2.8xlarge"); - static const int ml_p2_16xlarge_HASH = HashingUtils::HashString("ml.p2.16xlarge"); - static const int ml_p3_2xlarge_HASH = HashingUtils::HashString("ml.p3.2xlarge"); - static const int ml_p3_8xlarge_HASH = HashingUtils::HashString("ml.p3.8xlarge"); - static const int ml_p3_16xlarge_HASH = HashingUtils::HashString("ml.p3.16xlarge"); - static const int ml_c5_xlarge_HASH = HashingUtils::HashString("ml.c5.xlarge"); - static const int ml_c5_2xlarge_HASH = HashingUtils::HashString("ml.c5.2xlarge"); - static const int ml_c5_4xlarge_HASH = HashingUtils::HashString("ml.c5.4xlarge"); - static const int ml_c5_9xlarge_HASH = HashingUtils::HashString("ml.c5.9xlarge"); - static const int ml_c5_18xlarge_HASH = HashingUtils::HashString("ml.c5.18xlarge"); - static const int ml_m5_large_HASH = HashingUtils::HashString("ml.m5.large"); - static const int ml_m5_xlarge_HASH = HashingUtils::HashString("ml.m5.xlarge"); - static const int ml_m5_2xlarge_HASH = HashingUtils::HashString("ml.m5.2xlarge"); - static const int ml_m5_4xlarge_HASH = HashingUtils::HashString("ml.m5.4xlarge"); - static const int ml_m5_12xlarge_HASH = HashingUtils::HashString("ml.m5.12xlarge"); - static const int ml_m5_24xlarge_HASH = HashingUtils::HashString("ml.m5.24xlarge"); - static const int ml_g4dn_xlarge_HASH = HashingUtils::HashString("ml.g4dn.xlarge"); - static const int ml_g4dn_2xlarge_HASH = HashingUtils::HashString("ml.g4dn.2xlarge"); - static const int ml_g4dn_4xlarge_HASH = HashingUtils::HashString("ml.g4dn.4xlarge"); - static const int ml_g4dn_8xlarge_HASH = HashingUtils::HashString("ml.g4dn.8xlarge"); - static const int ml_g4dn_12xlarge_HASH = HashingUtils::HashString("ml.g4dn.12xlarge"); - static const int ml_g4dn_16xlarge_HASH = HashingUtils::HashString("ml.g4dn.16xlarge"); + static constexpr uint32_t ml_m4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.xlarge"); + static constexpr uint32_t ml_m4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.2xlarge"); + static constexpr uint32_t ml_m4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.4xlarge"); + static constexpr uint32_t ml_m4_10xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.10xlarge"); + static constexpr uint32_t ml_m4_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.m4.16xlarge"); + static constexpr uint32_t ml_c4_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.xlarge"); + static constexpr uint32_t ml_c4_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.2xlarge"); + static constexpr uint32_t ml_c4_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.4xlarge"); + static constexpr uint32_t ml_c4_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.c4.8xlarge"); + static constexpr uint32_t ml_p2_xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.xlarge"); + static constexpr uint32_t ml_p2_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.8xlarge"); + static constexpr uint32_t ml_p2_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p2.16xlarge"); + static constexpr uint32_t ml_p3_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.2xlarge"); + static constexpr uint32_t ml_p3_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.8xlarge"); + static constexpr uint32_t ml_p3_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.p3.16xlarge"); + static constexpr uint32_t ml_c5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.xlarge"); + static constexpr uint32_t ml_c5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.2xlarge"); + static constexpr uint32_t ml_c5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.4xlarge"); + static constexpr uint32_t ml_c5_9xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.9xlarge"); + static constexpr uint32_t ml_c5_18xlarge_HASH = ConstExprHashingUtils::HashString("ml.c5.18xlarge"); + static constexpr uint32_t ml_m5_large_HASH = ConstExprHashingUtils::HashString("ml.m5.large"); + static constexpr uint32_t ml_m5_xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.xlarge"); + static constexpr uint32_t ml_m5_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.2xlarge"); + static constexpr uint32_t ml_m5_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.4xlarge"); + static constexpr uint32_t ml_m5_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.12xlarge"); + static constexpr uint32_t ml_m5_24xlarge_HASH = ConstExprHashingUtils::HashString("ml.m5.24xlarge"); + static constexpr uint32_t ml_g4dn_xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.xlarge"); + static constexpr uint32_t ml_g4dn_2xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.2xlarge"); + static constexpr uint32_t ml_g4dn_4xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.4xlarge"); + static constexpr uint32_t ml_g4dn_8xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.8xlarge"); + static constexpr uint32_t ml_g4dn_12xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.12xlarge"); + static constexpr uint32_t ml_g4dn_16xlarge_HASH = ConstExprHashingUtils::HashString("ml.g4dn.16xlarge"); TransformInstanceType GetTransformInstanceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ml_m4_xlarge_HASH) { return TransformInstanceType::ml_m4_xlarge; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformJobStatus.cpp index 7223732643e..15b16d465c1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TransformJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TransformJobStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); TransformJobStatus GetTransformJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return TransformJobStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrialComponentPrimaryStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrialComponentPrimaryStatus.cpp index 7b26340a856..720fbd7e924 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TrialComponentPrimaryStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TrialComponentPrimaryStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TrialComponentPrimaryStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Completed_HASH = HashingUtils::HashString("Completed"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Stopping_HASH = HashingUtils::HashString("Stopping"); - static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Completed_HASH = ConstExprHashingUtils::HashString("Completed"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Stopping_HASH = ConstExprHashingUtils::HashString("Stopping"); + static constexpr uint32_t Stopped_HASH = ConstExprHashingUtils::HashString("Stopped"); TrialComponentPrimaryStatus GetTrialComponentPrimaryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return TrialComponentPrimaryStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TtlDurationUnit.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TtlDurationUnit.cpp index ef0432cedaa..f2f1de79872 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/TtlDurationUnit.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TtlDurationUnit.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TtlDurationUnitMapper { - static const int Seconds_HASH = HashingUtils::HashString("Seconds"); - static const int Minutes_HASH = HashingUtils::HashString("Minutes"); - static const int Hours_HASH = HashingUtils::HashString("Hours"); - static const int Days_HASH = HashingUtils::HashString("Days"); - static const int Weeks_HASH = HashingUtils::HashString("Weeks"); + static constexpr uint32_t Seconds_HASH = ConstExprHashingUtils::HashString("Seconds"); + static constexpr uint32_t Minutes_HASH = ConstExprHashingUtils::HashString("Minutes"); + static constexpr uint32_t Hours_HASH = ConstExprHashingUtils::HashString("Hours"); + static constexpr uint32_t Days_HASH = ConstExprHashingUtils::HashString("Days"); + static constexpr uint32_t Weeks_HASH = ConstExprHashingUtils::HashString("Weeks"); TtlDurationUnit GetTtlDurationUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return TtlDurationUnit::Seconds; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileSortKey.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileSortKey.cpp index 36ab150d673..a351c8ea7e1 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileSortKey.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileSortKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserProfileSortKeyMapper { - static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t CreationTime_HASH = ConstExprHashingUtils::HashString("CreationTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); UserProfileSortKey GetUserProfileSortKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CreationTime_HASH) { return UserProfileSortKey::CreationTime; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileStatus.cpp index 283f03796c8..055d523da84 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/UserProfileStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace UserProfileStatusMapper { - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InService_HASH = HashingUtils::HashString("InService"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Update_Failed_HASH = HashingUtils::HashString("Update_Failed"); - static const int Delete_Failed_HASH = HashingUtils::HashString("Delete_Failed"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InService_HASH = ConstExprHashingUtils::HashString("InService"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Update_Failed_HASH = ConstExprHashingUtils::HashString("Update_Failed"); + static constexpr uint32_t Delete_Failed_HASH = ConstExprHashingUtils::HashString("Delete_Failed"); UserProfileStatus GetUserProfileStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Deleting_HASH) { return UserProfileStatus::Deleting; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantPropertyType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantPropertyType.cpp index 41f4daf0b6f..3d1dd3302f8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantPropertyType.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantPropertyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VariantPropertyTypeMapper { - static const int DesiredInstanceCount_HASH = HashingUtils::HashString("DesiredInstanceCount"); - static const int DesiredWeight_HASH = HashingUtils::HashString("DesiredWeight"); - static const int DataCaptureConfig_HASH = HashingUtils::HashString("DataCaptureConfig"); + static constexpr uint32_t DesiredInstanceCount_HASH = ConstExprHashingUtils::HashString("DesiredInstanceCount"); + static constexpr uint32_t DesiredWeight_HASH = ConstExprHashingUtils::HashString("DesiredWeight"); + static constexpr uint32_t DataCaptureConfig_HASH = ConstExprHashingUtils::HashString("DataCaptureConfig"); VariantPropertyType GetVariantPropertyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DesiredInstanceCount_HASH) { return VariantPropertyType::DesiredInstanceCount; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantStatus.cpp index 9aceeb1fed8..1bf5d61db25 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/VariantStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VariantStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int ActivatingTraffic_HASH = HashingUtils::HashString("ActivatingTraffic"); - static const int Baking_HASH = HashingUtils::HashString("Baking"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t ActivatingTraffic_HASH = ConstExprHashingUtils::HashString("ActivatingTraffic"); + static constexpr uint32_t Baking_HASH = ConstExprHashingUtils::HashString("Baking"); VariantStatus GetVariantStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return VariantStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/VendorGuidance.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/VendorGuidance.cpp index a2ddb1ad034..8d840084056 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/VendorGuidance.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/VendorGuidance.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VendorGuidanceMapper { - static const int NOT_PROVIDED_HASH = HashingUtils::HashString("NOT_PROVIDED"); - static const int STABLE_HASH = HashingUtils::HashString("STABLE"); - static const int TO_BE_ARCHIVED_HASH = HashingUtils::HashString("TO_BE_ARCHIVED"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t NOT_PROVIDED_HASH = ConstExprHashingUtils::HashString("NOT_PROVIDED"); + static constexpr uint32_t STABLE_HASH = ConstExprHashingUtils::HashString("STABLE"); + static constexpr uint32_t TO_BE_ARCHIVED_HASH = ConstExprHashingUtils::HashString("TO_BE_ARCHIVED"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); VendorGuidance GetVendorGuidanceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_PROVIDED_HASH) { return VendorGuidance::NOT_PROVIDED; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/WarmPoolResourceStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/WarmPoolResourceStatus.cpp index 7d8d9b23174..4e709b58205 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/WarmPoolResourceStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/WarmPoolResourceStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WarmPoolResourceStatusMapper { - static const int Available_HASH = HashingUtils::HashString("Available"); - static const int Terminated_HASH = HashingUtils::HashString("Terminated"); - static const int Reused_HASH = HashingUtils::HashString("Reused"); - static const int InUse_HASH = HashingUtils::HashString("InUse"); + static constexpr uint32_t Available_HASH = ConstExprHashingUtils::HashString("Available"); + static constexpr uint32_t Terminated_HASH = ConstExprHashingUtils::HashString("Terminated"); + static constexpr uint32_t Reused_HASH = ConstExprHashingUtils::HashString("Reused"); + static constexpr uint32_t InUse_HASH = ConstExprHashingUtils::HashString("InUse"); WarmPoolResourceStatus GetWarmPoolResourceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Available_HASH) { return WarmPoolResourceStatus::Available; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/WorkforceStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/WorkforceStatus.cpp index a51dc8e9fbb..bc853d7a1c7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/WorkforceStatus.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/WorkforceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkforceStatusMapper { - static const int Initializing_HASH = HashingUtils::HashString("Initializing"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Active_HASH = HashingUtils::HashString("Active"); + static constexpr uint32_t Initializing_HASH = ConstExprHashingUtils::HashString("Initializing"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); WorkforceStatus GetWorkforceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Initializing_HASH) { return WorkforceStatus::Initializing; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansErrors.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansErrors.cpp index 682dab19a1f..8fc85e69364 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansErrors.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansErrors.cpp @@ -18,13 +18,13 @@ namespace SavingsPlans namespace SavingsPlansErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/CurrencyCode.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/CurrencyCode.cpp index 48e8b156d58..93d43cfb844 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/CurrencyCode.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/CurrencyCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CurrencyCodeMapper { - static const int CNY_HASH = HashingUtils::HashString("CNY"); - static const int USD_HASH = HashingUtils::HashString("USD"); + static constexpr uint32_t CNY_HASH = ConstExprHashingUtils::HashString("CNY"); + static constexpr uint32_t USD_HASH = ConstExprHashingUtils::HashString("USD"); CurrencyCode GetCurrencyCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CNY_HASH) { return CurrencyCode::CNY; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingFilterAttribute.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingFilterAttribute.cpp index b03513f1326..16bd330fa9f 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingFilterAttribute.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SavingsPlanOfferingFilterAttributeMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int instanceFamily_HASH = HashingUtils::HashString("instanceFamily"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t instanceFamily_HASH = ConstExprHashingUtils::HashString("instanceFamily"); SavingsPlanOfferingFilterAttribute GetSavingsPlanOfferingFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return SavingsPlanOfferingFilterAttribute::region; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingPropertyKey.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingPropertyKey.cpp index 3d9176812b2..2a1d49d95ac 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingPropertyKey.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanOfferingPropertyKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SavingsPlanOfferingPropertyKeyMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int instanceFamily_HASH = HashingUtils::HashString("instanceFamily"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t instanceFamily_HASH = ConstExprHashingUtils::HashString("instanceFamily"); SavingsPlanOfferingPropertyKey GetSavingsPlanOfferingPropertyKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return SavingsPlanOfferingPropertyKey::region; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanPaymentOption.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanPaymentOption.cpp index f53b6e88601..a93af7d9097 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanPaymentOption.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanPaymentOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SavingsPlanPaymentOptionMapper { - static const int All_Upfront_HASH = HashingUtils::HashString("All Upfront"); - static const int Partial_Upfront_HASH = HashingUtils::HashString("Partial Upfront"); - static const int No_Upfront_HASH = HashingUtils::HashString("No Upfront"); + static constexpr uint32_t All_Upfront_HASH = ConstExprHashingUtils::HashString("All Upfront"); + static constexpr uint32_t Partial_Upfront_HASH = ConstExprHashingUtils::HashString("Partial Upfront"); + static constexpr uint32_t No_Upfront_HASH = ConstExprHashingUtils::HashString("No Upfront"); SavingsPlanPaymentOption GetSavingsPlanPaymentOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_Upfront_HASH) { return SavingsPlanPaymentOption::All_Upfront; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanProductType.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanProductType.cpp index 609a9fbfc38..d8bb1f208ed 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanProductType.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanProductType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SavingsPlanProductTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int Fargate_HASH = HashingUtils::HashString("Fargate"); - static const int Lambda_HASH = HashingUtils::HashString("Lambda"); - static const int SageMaker_HASH = HashingUtils::HashString("SageMaker"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t Fargate_HASH = ConstExprHashingUtils::HashString("Fargate"); + static constexpr uint32_t Lambda_HASH = ConstExprHashingUtils::HashString("Lambda"); + static constexpr uint32_t SageMaker_HASH = ConstExprHashingUtils::HashString("SageMaker"); SavingsPlanProductType GetSavingsPlanProductTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return SavingsPlanProductType::EC2; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterAttribute.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterAttribute.cpp index 1fcdf42d443..2a4b645611c 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterAttribute.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterAttribute.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SavingsPlanRateFilterAttributeMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int instanceFamily_HASH = HashingUtils::HashString("instanceFamily"); - static const int instanceType_HASH = HashingUtils::HashString("instanceType"); - static const int productDescription_HASH = HashingUtils::HashString("productDescription"); - static const int tenancy_HASH = HashingUtils::HashString("tenancy"); - static const int productId_HASH = HashingUtils::HashString("productId"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t instanceFamily_HASH = ConstExprHashingUtils::HashString("instanceFamily"); + static constexpr uint32_t instanceType_HASH = ConstExprHashingUtils::HashString("instanceType"); + static constexpr uint32_t productDescription_HASH = ConstExprHashingUtils::HashString("productDescription"); + static constexpr uint32_t tenancy_HASH = ConstExprHashingUtils::HashString("tenancy"); + static constexpr uint32_t productId_HASH = ConstExprHashingUtils::HashString("productId"); SavingsPlanRateFilterAttribute GetSavingsPlanRateFilterAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return SavingsPlanRateFilterAttribute::region; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterName.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterName.cpp index 3f58a82d1b9..3d485bfc7ac 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterName.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateFilterName.cpp @@ -20,19 +20,19 @@ namespace Aws namespace SavingsPlanRateFilterNameMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int instanceType_HASH = HashingUtils::HashString("instanceType"); - static const int productDescription_HASH = HashingUtils::HashString("productDescription"); - static const int tenancy_HASH = HashingUtils::HashString("tenancy"); - static const int productType_HASH = HashingUtils::HashString("productType"); - static const int serviceCode_HASH = HashingUtils::HashString("serviceCode"); - static const int usageType_HASH = HashingUtils::HashString("usageType"); - static const int operation_HASH = HashingUtils::HashString("operation"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t instanceType_HASH = ConstExprHashingUtils::HashString("instanceType"); + static constexpr uint32_t productDescription_HASH = ConstExprHashingUtils::HashString("productDescription"); + static constexpr uint32_t tenancy_HASH = ConstExprHashingUtils::HashString("tenancy"); + static constexpr uint32_t productType_HASH = ConstExprHashingUtils::HashString("productType"); + static constexpr uint32_t serviceCode_HASH = ConstExprHashingUtils::HashString("serviceCode"); + static constexpr uint32_t usageType_HASH = ConstExprHashingUtils::HashString("usageType"); + static constexpr uint32_t operation_HASH = ConstExprHashingUtils::HashString("operation"); SavingsPlanRateFilterName GetSavingsPlanRateFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return SavingsPlanRateFilterName::region; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRatePropertyKey.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRatePropertyKey.cpp index 933def85b5c..9ddef4a48d1 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRatePropertyKey.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRatePropertyKey.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SavingsPlanRatePropertyKeyMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int instanceType_HASH = HashingUtils::HashString("instanceType"); - static const int instanceFamily_HASH = HashingUtils::HashString("instanceFamily"); - static const int productDescription_HASH = HashingUtils::HashString("productDescription"); - static const int tenancy_HASH = HashingUtils::HashString("tenancy"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t instanceType_HASH = ConstExprHashingUtils::HashString("instanceType"); + static constexpr uint32_t instanceFamily_HASH = ConstExprHashingUtils::HashString("instanceFamily"); + static constexpr uint32_t productDescription_HASH = ConstExprHashingUtils::HashString("productDescription"); + static constexpr uint32_t tenancy_HASH = ConstExprHashingUtils::HashString("tenancy"); SavingsPlanRatePropertyKey GetSavingsPlanRatePropertyKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return SavingsPlanRatePropertyKey::region; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateServiceCode.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateServiceCode.cpp index 212da96d2cb..72206527265 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateServiceCode.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateServiceCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SavingsPlanRateServiceCodeMapper { - static const int AmazonEC2_HASH = HashingUtils::HashString("AmazonEC2"); - static const int AmazonECS_HASH = HashingUtils::HashString("AmazonECS"); - static const int AmazonEKS_HASH = HashingUtils::HashString("AmazonEKS"); - static const int AWSLambda_HASH = HashingUtils::HashString("AWSLambda"); - static const int AmazonSageMaker_HASH = HashingUtils::HashString("AmazonSageMaker"); + static constexpr uint32_t AmazonEC2_HASH = ConstExprHashingUtils::HashString("AmazonEC2"); + static constexpr uint32_t AmazonECS_HASH = ConstExprHashingUtils::HashString("AmazonECS"); + static constexpr uint32_t AmazonEKS_HASH = ConstExprHashingUtils::HashString("AmazonEKS"); + static constexpr uint32_t AWSLambda_HASH = ConstExprHashingUtils::HashString("AWSLambda"); + static constexpr uint32_t AmazonSageMaker_HASH = ConstExprHashingUtils::HashString("AmazonSageMaker"); SavingsPlanRateServiceCode GetSavingsPlanRateServiceCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AmazonEC2_HASH) { return SavingsPlanRateServiceCode::AmazonEC2; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateUnit.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateUnit.cpp index fa0a08eeb02..ef8f1f8a053 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateUnit.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanRateUnit.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SavingsPlanRateUnitMapper { - static const int Hrs_HASH = HashingUtils::HashString("Hrs"); - static const int Lambda_GB_Second_HASH = HashingUtils::HashString("Lambda-GB-Second"); - static const int Request_HASH = HashingUtils::HashString("Request"); + static constexpr uint32_t Hrs_HASH = ConstExprHashingUtils::HashString("Hrs"); + static constexpr uint32_t Lambda_GB_Second_HASH = ConstExprHashingUtils::HashString("Lambda-GB-Second"); + static constexpr uint32_t Request_HASH = ConstExprHashingUtils::HashString("Request"); SavingsPlanRateUnit GetSavingsPlanRateUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Hrs_HASH) { return SavingsPlanRateUnit::Hrs; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanState.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanState.cpp index db45d56fed6..8761872a94b 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanState.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SavingsPlanStateMapper { - static const int payment_pending_HASH = HashingUtils::HashString("payment-pending"); - static const int payment_failed_HASH = HashingUtils::HashString("payment-failed"); - static const int active_HASH = HashingUtils::HashString("active"); - static const int retired_HASH = HashingUtils::HashString("retired"); - static const int queued_HASH = HashingUtils::HashString("queued"); - static const int queued_deleted_HASH = HashingUtils::HashString("queued-deleted"); + static constexpr uint32_t payment_pending_HASH = ConstExprHashingUtils::HashString("payment-pending"); + static constexpr uint32_t payment_failed_HASH = ConstExprHashingUtils::HashString("payment-failed"); + static constexpr uint32_t active_HASH = ConstExprHashingUtils::HashString("active"); + static constexpr uint32_t retired_HASH = ConstExprHashingUtils::HashString("retired"); + static constexpr uint32_t queued_HASH = ConstExprHashingUtils::HashString("queued"); + static constexpr uint32_t queued_deleted_HASH = ConstExprHashingUtils::HashString("queued-deleted"); SavingsPlanState GetSavingsPlanStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == payment_pending_HASH) { return SavingsPlanState::payment_pending; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanType.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanType.cpp index 85c273b9699..cb0e3addb6a 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanType.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlanType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SavingsPlanTypeMapper { - static const int Compute_HASH = HashingUtils::HashString("Compute"); - static const int EC2Instance_HASH = HashingUtils::HashString("EC2Instance"); - static const int SageMaker_HASH = HashingUtils::HashString("SageMaker"); + static constexpr uint32_t Compute_HASH = ConstExprHashingUtils::HashString("Compute"); + static constexpr uint32_t EC2Instance_HASH = ConstExprHashingUtils::HashString("EC2Instance"); + static constexpr uint32_t SageMaker_HASH = ConstExprHashingUtils::HashString("SageMaker"); SavingsPlanType GetSavingsPlanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Compute_HASH) { return SavingsPlanType::Compute; diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlansFilterName.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlansFilterName.cpp index 52f82ffa47f..ec9db202e5e 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlansFilterName.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/model/SavingsPlansFilterName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SavingsPlansFilterNameMapper { - static const int region_HASH = HashingUtils::HashString("region"); - static const int ec2_instance_family_HASH = HashingUtils::HashString("ec2-instance-family"); - static const int commitment_HASH = HashingUtils::HashString("commitment"); - static const int upfront_HASH = HashingUtils::HashString("upfront"); - static const int term_HASH = HashingUtils::HashString("term"); - static const int savings_plan_type_HASH = HashingUtils::HashString("savings-plan-type"); - static const int payment_option_HASH = HashingUtils::HashString("payment-option"); - static const int start_HASH = HashingUtils::HashString("start"); - static const int end_HASH = HashingUtils::HashString("end"); + static constexpr uint32_t region_HASH = ConstExprHashingUtils::HashString("region"); + static constexpr uint32_t ec2_instance_family_HASH = ConstExprHashingUtils::HashString("ec2-instance-family"); + static constexpr uint32_t commitment_HASH = ConstExprHashingUtils::HashString("commitment"); + static constexpr uint32_t upfront_HASH = ConstExprHashingUtils::HashString("upfront"); + static constexpr uint32_t term_HASH = ConstExprHashingUtils::HashString("term"); + static constexpr uint32_t savings_plan_type_HASH = ConstExprHashingUtils::HashString("savings-plan-type"); + static constexpr uint32_t payment_option_HASH = ConstExprHashingUtils::HashString("payment-option"); + static constexpr uint32_t start_HASH = ConstExprHashingUtils::HashString("start"); + static constexpr uint32_t end_HASH = ConstExprHashingUtils::HashString("end"); SavingsPlansFilterName GetSavingsPlansFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == region_HASH) { return SavingsPlansFilterName::region; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/SchedulerErrors.cpp b/generated/src/aws-cpp-sdk-scheduler/source/SchedulerErrors.cpp index 5e49e3f6dd5..d54c9350f2e 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/SchedulerErrors.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/SchedulerErrors.cpp @@ -18,14 +18,14 @@ namespace Scheduler namespace SchedulerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/ActionAfterCompletion.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/ActionAfterCompletion.cpp index 72666d86490..e81618998e0 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/ActionAfterCompletion.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/ActionAfterCompletion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ActionAfterCompletionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ActionAfterCompletion GetActionAfterCompletionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return ActionAfterCompletion::NONE; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/AssignPublicIp.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/AssignPublicIp.cpp index 1ac918de633..84b1a419027 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/AssignPublicIp.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/AssignPublicIp.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssignPublicIpMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssignPublicIp GetAssignPublicIpForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssignPublicIp::ENABLED; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/FlexibleTimeWindowMode.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/FlexibleTimeWindowMode.cpp index ada9e32ba48..d9df57414dc 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/FlexibleTimeWindowMode.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/FlexibleTimeWindowMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FlexibleTimeWindowModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int FLEXIBLE_HASH = HashingUtils::HashString("FLEXIBLE"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t FLEXIBLE_HASH = ConstExprHashingUtils::HashString("FLEXIBLE"); FlexibleTimeWindowMode GetFlexibleTimeWindowModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return FlexibleTimeWindowMode::OFF; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/LaunchType.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/LaunchType.cpp index 314bc4bb709..ec1d5899032 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/LaunchType.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/LaunchType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LaunchTypeMapper { - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int FARGATE_HASH = HashingUtils::HashString("FARGATE"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t FARGATE_HASH = ConstExprHashingUtils::HashString("FARGATE"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); LaunchType GetLaunchTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EC2_HASH) { return LaunchType::EC2; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementConstraintType.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementConstraintType.cpp index b9852c993cd..762e053397b 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementConstraintType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlacementConstraintTypeMapper { - static const int distinctInstance_HASH = HashingUtils::HashString("distinctInstance"); - static const int memberOf_HASH = HashingUtils::HashString("memberOf"); + static constexpr uint32_t distinctInstance_HASH = ConstExprHashingUtils::HashString("distinctInstance"); + static constexpr uint32_t memberOf_HASH = ConstExprHashingUtils::HashString("memberOf"); PlacementConstraintType GetPlacementConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == distinctInstance_HASH) { return PlacementConstraintType::distinctInstance; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementStrategyType.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementStrategyType.cpp index d4d916a83f2..ae1700ad8e1 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementStrategyType.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/PlacementStrategyType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlacementStrategyTypeMapper { - static const int random_HASH = HashingUtils::HashString("random"); - static const int spread_HASH = HashingUtils::HashString("spread"); - static const int binpack_HASH = HashingUtils::HashString("binpack"); + static constexpr uint32_t random_HASH = ConstExprHashingUtils::HashString("random"); + static constexpr uint32_t spread_HASH = ConstExprHashingUtils::HashString("spread"); + static constexpr uint32_t binpack_HASH = ConstExprHashingUtils::HashString("binpack"); PlacementStrategyType GetPlacementStrategyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == random_HASH) { return PlacementStrategyType::random; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/PropagateTags.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/PropagateTags.cpp index e3f5c212774..720caef7da6 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/PropagateTags.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/PropagateTags.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PropagateTagsMapper { - static const int TASK_DEFINITION_HASH = HashingUtils::HashString("TASK_DEFINITION"); + static constexpr uint32_t TASK_DEFINITION_HASH = ConstExprHashingUtils::HashString("TASK_DEFINITION"); PropagateTags GetPropagateTagsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TASK_DEFINITION_HASH) { return PropagateTags::TASK_DEFINITION; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleGroupState.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleGroupState.cpp index 379c00c2135..bde6dc1d69c 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleGroupState.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleGroupState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduleGroupStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ScheduleGroupState GetScheduleGroupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ScheduleGroupState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleState.cpp b/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleState.cpp index cb6a5562846..27c0d92df02 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleState.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/model/ScheduleState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduleStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ScheduleState GetScheduleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ScheduleState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-schemas/source/SchemasErrors.cpp b/generated/src/aws-cpp-sdk-schemas/source/SchemasErrors.cpp index 1f96031bc7c..7c029ed20c2 100644 --- a/generated/src/aws-cpp-sdk-schemas/source/SchemasErrors.cpp +++ b/generated/src/aws-cpp-sdk-schemas/source/SchemasErrors.cpp @@ -89,20 +89,20 @@ template<> AWS_SCHEMAS_API InternalServerErrorException SchemasError::GetModeled namespace SchemasErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException"); -static const int GONE_HASH = HashingUtils::HashString("GoneException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailedException"); +static constexpr uint32_t GONE_HASH = ConstExprHashingUtils::HashString("GoneException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-schemas/source/model/CodeGenerationStatus.cpp b/generated/src/aws-cpp-sdk-schemas/source/model/CodeGenerationStatus.cpp index 4e3a971a3dc..b3976b16ab0 100644 --- a/generated/src/aws-cpp-sdk-schemas/source/model/CodeGenerationStatus.cpp +++ b/generated/src/aws-cpp-sdk-schemas/source/model/CodeGenerationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CodeGenerationStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); CodeGenerationStatus GetCodeGenerationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return CodeGenerationStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-schemas/source/model/DiscovererState.cpp b/generated/src/aws-cpp-sdk-schemas/source/model/DiscovererState.cpp index 146cab83468..3b0554adfeb 100644 --- a/generated/src/aws-cpp-sdk-schemas/source/model/DiscovererState.cpp +++ b/generated/src/aws-cpp-sdk-schemas/source/model/DiscovererState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DiscovererStateMapper { - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); DiscovererState GetDiscovererStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTED_HASH) { return DiscovererState::STARTED; diff --git a/generated/src/aws-cpp-sdk-schemas/source/model/Type.cpp b/generated/src/aws-cpp-sdk-schemas/source/model/Type.cpp index 66ba115c123..19fb7fec453 100644 --- a/generated/src/aws-cpp-sdk-schemas/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-schemas/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int OpenApi3_HASH = HashingUtils::HashString("OpenApi3"); - static const int JSONSchemaDraft4_HASH = HashingUtils::HashString("JSONSchemaDraft4"); + static constexpr uint32_t OpenApi3_HASH = ConstExprHashingUtils::HashString("OpenApi3"); + static constexpr uint32_t JSONSchemaDraft4_HASH = ConstExprHashingUtils::HashString("JSONSchemaDraft4"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OpenApi3_HASH) { return Type::OpenApi3; diff --git a/generated/src/aws-cpp-sdk-sdb/source/SimpleDBErrors.cpp b/generated/src/aws-cpp-sdk-sdb/source/SimpleDBErrors.cpp index 39d0342bc17..81abe306171 100644 --- a/generated/src/aws-cpp-sdk-sdb/source/SimpleDBErrors.cpp +++ b/generated/src/aws-cpp-sdk-sdb/source/SimpleDBErrors.cpp @@ -138,25 +138,25 @@ template<> AWS_SIMPLEDB_API RequestTimeout SimpleDBError::GetModeledError() namespace SimpleDBErrorMapper { -static const int NUMBER_SUBMITTED_ITEMS_EXCEEDED_HASH = HashingUtils::HashString("NumberSubmittedItemsExceeded"); -static const int NUMBER_DOMAIN_ATTRIBUTES_EXCEEDED_HASH = HashingUtils::HashString("NumberDomainAttributesExceeded"); -static const int INVALID_NUMBER_PREDICATES_HASH = HashingUtils::HashString("InvalidNumberPredicates"); -static const int TOO_MANY_REQUESTED_ATTRIBUTES_HASH = HashingUtils::HashString("TooManyRequestedAttributes"); -static const int NO_SUCH_DOMAIN_HASH = HashingUtils::HashString("NoSuchDomain"); -static const int INVALID_NUMBER_VALUE_TESTS_HASH = HashingUtils::HashString("InvalidNumberValueTests"); -static const int NUMBER_ITEM_ATTRIBUTES_EXCEEDED_HASH = HashingUtils::HashString("NumberItemAttributesExceeded"); -static const int NUMBER_DOMAINS_EXCEEDED_HASH = HashingUtils::HashString("NumberDomainsExceeded"); -static const int INVALID_QUERY_EXPRESSION_HASH = HashingUtils::HashString("InvalidQueryExpression"); -static const int DUPLICATE_ITEM_NAME_HASH = HashingUtils::HashString("DuplicateItemName"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextToken"); -static const int ATTRIBUTE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AttributeDoesNotExist"); -static const int NUMBER_DOMAIN_BYTES_EXCEEDED_HASH = HashingUtils::HashString("NumberDomainBytesExceeded"); -static const int NUMBER_SUBMITTED_ATTRIBUTES_EXCEEDED_HASH = HashingUtils::HashString("NumberSubmittedAttributesExceeded"); +static constexpr uint32_t NUMBER_SUBMITTED_ITEMS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberSubmittedItemsExceeded"); +static constexpr uint32_t NUMBER_DOMAIN_ATTRIBUTES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberDomainAttributesExceeded"); +static constexpr uint32_t INVALID_NUMBER_PREDICATES_HASH = ConstExprHashingUtils::HashString("InvalidNumberPredicates"); +static constexpr uint32_t TOO_MANY_REQUESTED_ATTRIBUTES_HASH = ConstExprHashingUtils::HashString("TooManyRequestedAttributes"); +static constexpr uint32_t NO_SUCH_DOMAIN_HASH = ConstExprHashingUtils::HashString("NoSuchDomain"); +static constexpr uint32_t INVALID_NUMBER_VALUE_TESTS_HASH = ConstExprHashingUtils::HashString("InvalidNumberValueTests"); +static constexpr uint32_t NUMBER_ITEM_ATTRIBUTES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberItemAttributesExceeded"); +static constexpr uint32_t NUMBER_DOMAINS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberDomainsExceeded"); +static constexpr uint32_t INVALID_QUERY_EXPRESSION_HASH = ConstExprHashingUtils::HashString("InvalidQueryExpression"); +static constexpr uint32_t DUPLICATE_ITEM_NAME_HASH = ConstExprHashingUtils::HashString("DuplicateItemName"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextToken"); +static constexpr uint32_t ATTRIBUTE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("AttributeDoesNotExist"); +static constexpr uint32_t NUMBER_DOMAIN_BYTES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberDomainBytesExceeded"); +static constexpr uint32_t NUMBER_SUBMITTED_ATTRIBUTES_EXCEEDED_HASH = ConstExprHashingUtils::HashString("NumberSubmittedAttributesExceeded"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NUMBER_SUBMITTED_ITEMS_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerErrors.cpp b/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerErrors.cpp index 8206e75e267..d4d512e5115 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerErrors.cpp +++ b/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerErrors.cpp @@ -18,22 +18,22 @@ namespace SecretsManager namespace SecretsManagerErrorMapper { -static const int RESOURCE_EXISTS_HASH = HashingUtils::HashString("ResourceExistsException"); -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocumentException"); -static const int INTERNAL_SERVICE_HASH = HashingUtils::HashString("InternalServiceError"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int DECRYPTION_FAILURE_HASH = HashingUtils::HashString("DecryptionFailure"); -static const int PUBLIC_POLICY_HASH = HashingUtils::HashString("PublicPolicyException"); -static const int PRECONDITION_NOT_MET_HASH = HashingUtils::HashString("PreconditionNotMetException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); -static const int ENCRYPTION_FAILURE_HASH = HashingUtils::HashString("EncryptionFailure"); +static constexpr uint32_t RESOURCE_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceExistsException"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocumentException"); +static constexpr uint32_t INTERNAL_SERVICE_HASH = ConstExprHashingUtils::HashString("InternalServiceError"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t DECRYPTION_FAILURE_HASH = ConstExprHashingUtils::HashString("DecryptionFailure"); +static constexpr uint32_t PUBLIC_POLICY_HASH = ConstExprHashingUtils::HashString("PublicPolicyException"); +static constexpr uint32_t PRECONDITION_NOT_MET_HASH = ConstExprHashingUtils::HashString("PreconditionNotMetException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t ENCRYPTION_FAILURE_HASH = ConstExprHashingUtils::HashString("EncryptionFailure"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-secretsmanager/source/model/FilterNameStringType.cpp b/generated/src/aws-cpp-sdk-secretsmanager/source/model/FilterNameStringType.cpp index 248ae98a2aa..6ce3a63917d 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/source/model/FilterNameStringType.cpp +++ b/generated/src/aws-cpp-sdk-secretsmanager/source/model/FilterNameStringType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace FilterNameStringTypeMapper { - static const int description_HASH = HashingUtils::HashString("description"); - static const int name_HASH = HashingUtils::HashString("name"); - static const int tag_key_HASH = HashingUtils::HashString("tag-key"); - static const int tag_value_HASH = HashingUtils::HashString("tag-value"); - static const int primary_region_HASH = HashingUtils::HashString("primary-region"); - static const int owning_service_HASH = HashingUtils::HashString("owning-service"); - static const int all_HASH = HashingUtils::HashString("all"); + static constexpr uint32_t description_HASH = ConstExprHashingUtils::HashString("description"); + static constexpr uint32_t name_HASH = ConstExprHashingUtils::HashString("name"); + static constexpr uint32_t tag_key_HASH = ConstExprHashingUtils::HashString("tag-key"); + static constexpr uint32_t tag_value_HASH = ConstExprHashingUtils::HashString("tag-value"); + static constexpr uint32_t primary_region_HASH = ConstExprHashingUtils::HashString("primary-region"); + static constexpr uint32_t owning_service_HASH = ConstExprHashingUtils::HashString("owning-service"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); FilterNameStringType GetFilterNameStringTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == description_HASH) { return FilterNameStringType::description; diff --git a/generated/src/aws-cpp-sdk-secretsmanager/source/model/SortOrderType.cpp b/generated/src/aws-cpp-sdk-secretsmanager/source/model/SortOrderType.cpp index deb37f8f387..107b9149ec2 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/source/model/SortOrderType.cpp +++ b/generated/src/aws-cpp-sdk-secretsmanager/source/model/SortOrderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderTypeMapper { - static const int asc_HASH = HashingUtils::HashString("asc"); - static const int desc_HASH = HashingUtils::HashString("desc"); + static constexpr uint32_t asc_HASH = ConstExprHashingUtils::HashString("asc"); + static constexpr uint32_t desc_HASH = ConstExprHashingUtils::HashString("desc"); SortOrderType GetSortOrderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == asc_HASH) { return SortOrderType::asc; diff --git a/generated/src/aws-cpp-sdk-secretsmanager/source/model/StatusType.cpp b/generated/src/aws-cpp-sdk-secretsmanager/source/model/StatusType.cpp index 354431b32b7..e2ee52f9694 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/source/model/StatusType.cpp +++ b/generated/src/aws-cpp-sdk-secretsmanager/source/model/StatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusTypeMapper { - static const int InSync_HASH = HashingUtils::HashString("InSync"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); + static constexpr uint32_t InSync_HASH = ConstExprHashingUtils::HashString("InSync"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); StatusType GetStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InSync_HASH) { return StatusType::InSync; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubErrors.cpp b/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubErrors.cpp index aa5b9938ac6..dd5b06f2206 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubErrors.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubErrors.cpp @@ -68,16 +68,16 @@ template<> AWS_SECURITYHUB_API InvalidInputException SecurityHubError::GetModele namespace SecurityHubErrorMapper { -static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); -static const int INVALID_ACCESS_HASH = HashingUtils::HashString("InvalidAccessException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInputException"); +static constexpr uint32_t INTERNAL_HASH = ConstExprHashingUtils::HashString("InternalException"); +static constexpr uint32_t INVALID_ACCESS_HASH = ConstExprHashingUtils::HashString("InvalidAccessException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t RESOURCE_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceConflictException"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInputException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_HASH) { diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/AdminStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/AdminStatus.cpp index 488bde497d4..977c755cb04 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/AdminStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/AdminStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdminStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DISABLE_IN_PROGRESS"); AdminStatus GetAdminStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AdminStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/AssociationStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/AssociationStatus.cpp index 1ef3a4e8e39..fb5471867fa 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/AssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/AssociationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssociationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AssociationStatus GetAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AssociationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/AutoEnableStandards.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/AutoEnableStandards.cpp index 1f1dc16a3e3..111d7723aee 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/AutoEnableStandards.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/AutoEnableStandards.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoEnableStandardsMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); AutoEnableStandards GetAutoEnableStandardsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AutoEnableStandards::NONE; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/AutomationRulesActionType.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/AutomationRulesActionType.cpp index 3f9fee198c8..323b4ceebca 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/AutomationRulesActionType.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/AutomationRulesActionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AutomationRulesActionTypeMapper { - static const int FINDING_FIELDS_UPDATE_HASH = HashingUtils::HashString("FINDING_FIELDS_UPDATE"); + static constexpr uint32_t FINDING_FIELDS_UPDATE_HASH = ConstExprHashingUtils::HashString("FINDING_FIELDS_UPDATE"); AutomationRulesActionType GetAutomationRulesActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINDING_FIELDS_UPDATE_HASH) { return AutomationRulesActionType::FINDING_FIELDS_UPDATE; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/AwsIamAccessKeyStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/AwsIamAccessKeyStatus.cpp index f5f0b325040..e2fd6330dd2 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/AwsIamAccessKeyStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/AwsIamAccessKeyStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AwsIamAccessKeyStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); AwsIamAccessKeyStatus GetAwsIamAccessKeyStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return AwsIamAccessKeyStatus::Active; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/AwsS3BucketNotificationConfigurationS3KeyFilterRuleName.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/AwsS3BucketNotificationConfigurationS3KeyFilterRuleName.cpp index a6611dcd88b..da8fe6a5514 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/AwsS3BucketNotificationConfigurationS3KeyFilterRuleName.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/AwsS3BucketNotificationConfigurationS3KeyFilterRuleName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AwsS3BucketNotificationConfigurationS3KeyFilterRuleNameMapper { - static const int Prefix_HASH = HashingUtils::HashString("Prefix"); - static const int Suffix_HASH = HashingUtils::HashString("Suffix"); + static constexpr uint32_t Prefix_HASH = ConstExprHashingUtils::HashString("Prefix"); + static constexpr uint32_t Suffix_HASH = ConstExprHashingUtils::HashString("Suffix"); AwsS3BucketNotificationConfigurationS3KeyFilterRuleName GetAwsS3BucketNotificationConfigurationS3KeyFilterRuleNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Prefix_HASH) { return AwsS3BucketNotificationConfigurationS3KeyFilterRuleName::Prefix; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/ComplianceStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/ComplianceStatus.cpp index f3de2cbd861..1e6d522766c 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/ComplianceStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/ComplianceStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ComplianceStatusMapper { - static const int PASSED_HASH = HashingUtils::HashString("PASSED"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t PASSED_HASH = ConstExprHashingUtils::HashString("PASSED"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); ComplianceStatus GetComplianceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSED_HASH) { return ComplianceStatus::PASSED; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/ControlFindingGenerator.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/ControlFindingGenerator.cpp index 4df0aab918c..61afee5be36 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/ControlFindingGenerator.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/ControlFindingGenerator.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ControlFindingGeneratorMapper { - static const int STANDARD_CONTROL_HASH = HashingUtils::HashString("STANDARD_CONTROL"); - static const int SECURITY_CONTROL_HASH = HashingUtils::HashString("SECURITY_CONTROL"); + static constexpr uint32_t STANDARD_CONTROL_HASH = ConstExprHashingUtils::HashString("STANDARD_CONTROL"); + static constexpr uint32_t SECURITY_CONTROL_HASH = ConstExprHashingUtils::HashString("SECURITY_CONTROL"); ControlFindingGenerator GetControlFindingGeneratorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_CONTROL_HASH) { return ControlFindingGenerator::STANDARD_CONTROL; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/ControlStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/ControlStatus.cpp index 3b366868a0b..65d2551051e 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/ControlStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/ControlStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ControlStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ControlStatus GetControlStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ControlStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/DateRangeUnit.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/DateRangeUnit.cpp index 0eb4edc051f..6eefa8afc09 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/DateRangeUnit.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/DateRangeUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DateRangeUnitMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); DateRangeUnit GetDateRangeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return DateRangeUnit::DAYS; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/FindingHistoryUpdateSourceType.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/FindingHistoryUpdateSourceType.cpp index ab7f6a77881..e9768255b54 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/FindingHistoryUpdateSourceType.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/FindingHistoryUpdateSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FindingHistoryUpdateSourceTypeMapper { - static const int BATCH_UPDATE_FINDINGS_HASH = HashingUtils::HashString("BATCH_UPDATE_FINDINGS"); - static const int BATCH_IMPORT_FINDINGS_HASH = HashingUtils::HashString("BATCH_IMPORT_FINDINGS"); + static constexpr uint32_t BATCH_UPDATE_FINDINGS_HASH = ConstExprHashingUtils::HashString("BATCH_UPDATE_FINDINGS"); + static constexpr uint32_t BATCH_IMPORT_FINDINGS_HASH = ConstExprHashingUtils::HashString("BATCH_IMPORT_FINDINGS"); FindingHistoryUpdateSourceType GetFindingHistoryUpdateSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BATCH_UPDATE_FINDINGS_HASH) { return FindingHistoryUpdateSourceType::BATCH_UPDATE_FINDINGS; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/IntegrationType.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/IntegrationType.cpp index 1f3d8b293dd..ede4ca0c39e 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/IntegrationType.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/IntegrationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IntegrationTypeMapper { - static const int SEND_FINDINGS_TO_SECURITY_HUB_HASH = HashingUtils::HashString("SEND_FINDINGS_TO_SECURITY_HUB"); - static const int RECEIVE_FINDINGS_FROM_SECURITY_HUB_HASH = HashingUtils::HashString("RECEIVE_FINDINGS_FROM_SECURITY_HUB"); - static const int UPDATE_FINDINGS_IN_SECURITY_HUB_HASH = HashingUtils::HashString("UPDATE_FINDINGS_IN_SECURITY_HUB"); + static constexpr uint32_t SEND_FINDINGS_TO_SECURITY_HUB_HASH = ConstExprHashingUtils::HashString("SEND_FINDINGS_TO_SECURITY_HUB"); + static constexpr uint32_t RECEIVE_FINDINGS_FROM_SECURITY_HUB_HASH = ConstExprHashingUtils::HashString("RECEIVE_FINDINGS_FROM_SECURITY_HUB"); + static constexpr uint32_t UPDATE_FINDINGS_IN_SECURITY_HUB_HASH = ConstExprHashingUtils::HashString("UPDATE_FINDINGS_IN_SECURITY_HUB"); IntegrationType GetIntegrationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_FINDINGS_TO_SECURITY_HUB_HASH) { return IntegrationType::SEND_FINDINGS_TO_SECURITY_HUB; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareState.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareState.cpp index cc8c93aa9c1..8818574455c 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareState.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MalwareStateMapper { - static const int OBSERVED_HASH = HashingUtils::HashString("OBSERVED"); - static const int REMOVAL_FAILED_HASH = HashingUtils::HashString("REMOVAL_FAILED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); + static constexpr uint32_t OBSERVED_HASH = ConstExprHashingUtils::HashString("OBSERVED"); + static constexpr uint32_t REMOVAL_FAILED_HASH = ConstExprHashingUtils::HashString("REMOVAL_FAILED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); MalwareState GetMalwareStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OBSERVED_HASH) { return MalwareState::OBSERVED; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareType.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareType.cpp index 59901e6a571..a35901181fd 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareType.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/MalwareType.cpp @@ -20,26 +20,26 @@ namespace Aws namespace MalwareTypeMapper { - static const int ADWARE_HASH = HashingUtils::HashString("ADWARE"); - static const int BLENDED_THREAT_HASH = HashingUtils::HashString("BLENDED_THREAT"); - static const int BOTNET_AGENT_HASH = HashingUtils::HashString("BOTNET_AGENT"); - static const int COIN_MINER_HASH = HashingUtils::HashString("COIN_MINER"); - static const int EXPLOIT_KIT_HASH = HashingUtils::HashString("EXPLOIT_KIT"); - static const int KEYLOGGER_HASH = HashingUtils::HashString("KEYLOGGER"); - static const int MACRO_HASH = HashingUtils::HashString("MACRO"); - static const int POTENTIALLY_UNWANTED_HASH = HashingUtils::HashString("POTENTIALLY_UNWANTED"); - static const int SPYWARE_HASH = HashingUtils::HashString("SPYWARE"); - static const int RANSOMWARE_HASH = HashingUtils::HashString("RANSOMWARE"); - static const int REMOTE_ACCESS_HASH = HashingUtils::HashString("REMOTE_ACCESS"); - static const int ROOTKIT_HASH = HashingUtils::HashString("ROOTKIT"); - static const int TROJAN_HASH = HashingUtils::HashString("TROJAN"); - static const int VIRUS_HASH = HashingUtils::HashString("VIRUS"); - static const int WORM_HASH = HashingUtils::HashString("WORM"); + static constexpr uint32_t ADWARE_HASH = ConstExprHashingUtils::HashString("ADWARE"); + static constexpr uint32_t BLENDED_THREAT_HASH = ConstExprHashingUtils::HashString("BLENDED_THREAT"); + static constexpr uint32_t BOTNET_AGENT_HASH = ConstExprHashingUtils::HashString("BOTNET_AGENT"); + static constexpr uint32_t COIN_MINER_HASH = ConstExprHashingUtils::HashString("COIN_MINER"); + static constexpr uint32_t EXPLOIT_KIT_HASH = ConstExprHashingUtils::HashString("EXPLOIT_KIT"); + static constexpr uint32_t KEYLOGGER_HASH = ConstExprHashingUtils::HashString("KEYLOGGER"); + static constexpr uint32_t MACRO_HASH = ConstExprHashingUtils::HashString("MACRO"); + static constexpr uint32_t POTENTIALLY_UNWANTED_HASH = ConstExprHashingUtils::HashString("POTENTIALLY_UNWANTED"); + static constexpr uint32_t SPYWARE_HASH = ConstExprHashingUtils::HashString("SPYWARE"); + static constexpr uint32_t RANSOMWARE_HASH = ConstExprHashingUtils::HashString("RANSOMWARE"); + static constexpr uint32_t REMOTE_ACCESS_HASH = ConstExprHashingUtils::HashString("REMOTE_ACCESS"); + static constexpr uint32_t ROOTKIT_HASH = ConstExprHashingUtils::HashString("ROOTKIT"); + static constexpr uint32_t TROJAN_HASH = ConstExprHashingUtils::HashString("TROJAN"); + static constexpr uint32_t VIRUS_HASH = ConstExprHashingUtils::HashString("VIRUS"); + static constexpr uint32_t WORM_HASH = ConstExprHashingUtils::HashString("WORM"); MalwareType GetMalwareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADWARE_HASH) { return MalwareType::ADWARE; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/MapFilterComparison.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/MapFilterComparison.cpp index 266fe30b41a..8e1b269642f 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/MapFilterComparison.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/MapFilterComparison.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MapFilterComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int NOT_CONTAINS_HASH = HashingUtils::HashString("NOT_CONTAINS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t NOT_CONTAINS_HASH = ConstExprHashingUtils::HashString("NOT_CONTAINS"); MapFilterComparison GetMapFilterComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return MapFilterComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/NetworkDirection.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/NetworkDirection.cpp index 032420e0230..9ded6a78589 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/NetworkDirection.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/NetworkDirection.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NetworkDirectionMapper { - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int OUT_HASH = HashingUtils::HashString("OUT"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t OUT_HASH = ConstExprHashingUtils::HashString("OUT"); NetworkDirection GetNetworkDirectionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_HASH) { return NetworkDirection::IN; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/Partition.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/Partition.cpp index ced2e49f42a..df265b7c896 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/Partition.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/Partition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PartitionMapper { - static const int aws_HASH = HashingUtils::HashString("aws"); - static const int aws_cn_HASH = HashingUtils::HashString("aws-cn"); - static const int aws_us_gov_HASH = HashingUtils::HashString("aws-us-gov"); + static constexpr uint32_t aws_HASH = ConstExprHashingUtils::HashString("aws"); + static constexpr uint32_t aws_cn_HASH = ConstExprHashingUtils::HashString("aws-cn"); + static constexpr uint32_t aws_us_gov_HASH = ConstExprHashingUtils::HashString("aws-us-gov"); Partition GetPartitionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == aws_HASH) { return Partition::aws; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/RecordState.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/RecordState.cpp index 1f759661ef5..9d2afd538b7 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/RecordState.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/RecordState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecordStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int ARCHIVED_HASH = HashingUtils::HashString("ARCHIVED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ARCHIVED_HASH = ConstExprHashingUtils::HashString("ARCHIVED"); RecordState GetRecordStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RecordState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/RegionAvailabilityStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/RegionAvailabilityStatus.cpp index a472b476748..6c840973308 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/RegionAvailabilityStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/RegionAvailabilityStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RegionAvailabilityStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); RegionAvailabilityStatus GetRegionAvailabilityStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return RegionAvailabilityStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/RuleStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/RuleStatus.cpp index 962b554667b..c4d45e468b4 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/RuleStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/RuleStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RuleStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); RuleStatus GetRuleStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return RuleStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityLabel.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityLabel.cpp index c285aec51d5..acd2ba5da71 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityLabel.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityLabel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SeverityLabelMapper { - static const int INFORMATIONAL_HASH = HashingUtils::HashString("INFORMATIONAL"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); + static constexpr uint32_t INFORMATIONAL_HASH = ConstExprHashingUtils::HashString("INFORMATIONAL"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); SeverityLabel GetSeverityLabelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INFORMATIONAL_HASH) { return SeverityLabel::INFORMATIONAL; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityRating.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityRating.cpp index 4ac2d1a1247..c2fed4474c3 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityRating.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/SeverityRating.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SeverityRatingMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); SeverityRating GetSeverityRatingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return SeverityRating::LOW; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/SortOrder.cpp index d8c9d73d5e6..cb575efd98f 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int asc_HASH = HashingUtils::HashString("asc"); - static const int desc_HASH = HashingUtils::HashString("desc"); + static constexpr uint32_t asc_HASH = ConstExprHashingUtils::HashString("asc"); + static constexpr uint32_t desc_HASH = ConstExprHashingUtils::HashString("desc"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == asc_HASH) { return SortOrder::asc; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/StandardsStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/StandardsStatus.cpp index f0e428a41ca..a51c9dc513c 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/StandardsStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/StandardsStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace StandardsStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int INCOMPLETE_HASH = HashingUtils::HashString("INCOMPLETE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t INCOMPLETE_HASH = ConstExprHashingUtils::HashString("INCOMPLETE"); StandardsStatus GetStandardsStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return StandardsStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/StatusReasonCode.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/StatusReasonCode.cpp index 450dd15f2f0..25b2e1251e1 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/StatusReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/StatusReasonCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StatusReasonCodeMapper { - static const int NO_AVAILABLE_CONFIGURATION_RECORDER_HASH = HashingUtils::HashString("NO_AVAILABLE_CONFIGURATION_RECORDER"); - static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("INTERNAL_ERROR"); + static constexpr uint32_t NO_AVAILABLE_CONFIGURATION_RECORDER_HASH = ConstExprHashingUtils::HashString("NO_AVAILABLE_CONFIGURATION_RECORDER"); + static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("INTERNAL_ERROR"); StatusReasonCode GetStatusReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_AVAILABLE_CONFIGURATION_RECORDER_HASH) { return StatusReasonCode::NO_AVAILABLE_CONFIGURATION_RECORDER; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/StringFilterComparison.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/StringFilterComparison.cpp index c47d360798b..4f432579457 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/StringFilterComparison.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/StringFilterComparison.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StringFilterComparisonMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); - static const int PREFIX_HASH = HashingUtils::HashString("PREFIX"); - static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); - static const int PREFIX_NOT_EQUALS_HASH = HashingUtils::HashString("PREFIX_NOT_EQUALS"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int NOT_CONTAINS_HASH = HashingUtils::HashString("NOT_CONTAINS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); + static constexpr uint32_t PREFIX_HASH = ConstExprHashingUtils::HashString("PREFIX"); + static constexpr uint32_t NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("NOT_EQUALS"); + static constexpr uint32_t PREFIX_NOT_EQUALS_HASH = ConstExprHashingUtils::HashString("PREFIX_NOT_EQUALS"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t NOT_CONTAINS_HASH = ConstExprHashingUtils::HashString("NOT_CONTAINS"); StringFilterComparison GetStringFilterComparisonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return StringFilterComparison::EQUALS; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorCategory.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorCategory.cpp index 313a6be23c0..a921c1a4fcf 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorCategory.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorCategory.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ThreatIntelIndicatorCategoryMapper { - static const int BACKDOOR_HASH = HashingUtils::HashString("BACKDOOR"); - static const int CARD_STEALER_HASH = HashingUtils::HashString("CARD_STEALER"); - static const int COMMAND_AND_CONTROL_HASH = HashingUtils::HashString("COMMAND_AND_CONTROL"); - static const int DROP_SITE_HASH = HashingUtils::HashString("DROP_SITE"); - static const int EXPLOIT_SITE_HASH = HashingUtils::HashString("EXPLOIT_SITE"); - static const int KEYLOGGER_HASH = HashingUtils::HashString("KEYLOGGER"); + static constexpr uint32_t BACKDOOR_HASH = ConstExprHashingUtils::HashString("BACKDOOR"); + static constexpr uint32_t CARD_STEALER_HASH = ConstExprHashingUtils::HashString("CARD_STEALER"); + static constexpr uint32_t COMMAND_AND_CONTROL_HASH = ConstExprHashingUtils::HashString("COMMAND_AND_CONTROL"); + static constexpr uint32_t DROP_SITE_HASH = ConstExprHashingUtils::HashString("DROP_SITE"); + static constexpr uint32_t EXPLOIT_SITE_HASH = ConstExprHashingUtils::HashString("EXPLOIT_SITE"); + static constexpr uint32_t KEYLOGGER_HASH = ConstExprHashingUtils::HashString("KEYLOGGER"); ThreatIntelIndicatorCategory GetThreatIntelIndicatorCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BACKDOOR_HASH) { return ThreatIntelIndicatorCategory::BACKDOOR; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorType.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorType.cpp index 258a8b76b95..79518097676 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorType.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/ThreatIntelIndicatorType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ThreatIntelIndicatorTypeMapper { - static const int DOMAIN__HASH = HashingUtils::HashString("DOMAIN"); - static const int EMAIL_ADDRESS_HASH = HashingUtils::HashString("EMAIL_ADDRESS"); - static const int HASH_MD5_HASH = HashingUtils::HashString("HASH_MD5"); - static const int HASH_SHA1_HASH = HashingUtils::HashString("HASH_SHA1"); - static const int HASH_SHA256_HASH = HashingUtils::HashString("HASH_SHA256"); - static const int HASH_SHA512_HASH = HashingUtils::HashString("HASH_SHA512"); - static const int IPV4_ADDRESS_HASH = HashingUtils::HashString("IPV4_ADDRESS"); - static const int IPV6_ADDRESS_HASH = HashingUtils::HashString("IPV6_ADDRESS"); - static const int MUTEX_HASH = HashingUtils::HashString("MUTEX"); - static const int PROCESS_HASH = HashingUtils::HashString("PROCESS"); - static const int URL_HASH = HashingUtils::HashString("URL"); + static constexpr uint32_t DOMAIN__HASH = ConstExprHashingUtils::HashString("DOMAIN"); + static constexpr uint32_t EMAIL_ADDRESS_HASH = ConstExprHashingUtils::HashString("EMAIL_ADDRESS"); + static constexpr uint32_t HASH_MD5_HASH = ConstExprHashingUtils::HashString("HASH_MD5"); + static constexpr uint32_t HASH_SHA1_HASH = ConstExprHashingUtils::HashString("HASH_SHA1"); + static constexpr uint32_t HASH_SHA256_HASH = ConstExprHashingUtils::HashString("HASH_SHA256"); + static constexpr uint32_t HASH_SHA512_HASH = ConstExprHashingUtils::HashString("HASH_SHA512"); + static constexpr uint32_t IPV4_ADDRESS_HASH = ConstExprHashingUtils::HashString("IPV4_ADDRESS"); + static constexpr uint32_t IPV6_ADDRESS_HASH = ConstExprHashingUtils::HashString("IPV6_ADDRESS"); + static constexpr uint32_t MUTEX_HASH = ConstExprHashingUtils::HashString("MUTEX"); + static constexpr uint32_t PROCESS_HASH = ConstExprHashingUtils::HashString("PROCESS"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); ThreatIntelIndicatorType GetThreatIntelIndicatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOMAIN__HASH) { return ThreatIntelIndicatorType::DOMAIN_; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/UnprocessedErrorCode.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/UnprocessedErrorCode.cpp index b4fbe87a2c3..bfd3a7afb90 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/UnprocessedErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/UnprocessedErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UnprocessedErrorCodeMapper { - static const int INVALID_INPUT_HASH = HashingUtils::HashString("INVALID_INPUT"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND"); - static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LIMIT_EXCEEDED"); + static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("INVALID_INPUT"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NOT_FOUND"); + static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LIMIT_EXCEEDED"); UnprocessedErrorCode GetUnprocessedErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_INPUT_HASH) { return UnprocessedErrorCode::INVALID_INPUT; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/VerificationState.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/VerificationState.cpp index fea56080df8..7523350989b 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/VerificationState.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/VerificationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace VerificationStateMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int TRUE_POSITIVE_HASH = HashingUtils::HashString("TRUE_POSITIVE"); - static const int FALSE_POSITIVE_HASH = HashingUtils::HashString("FALSE_POSITIVE"); - static const int BENIGN_POSITIVE_HASH = HashingUtils::HashString("BENIGN_POSITIVE"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t TRUE_POSITIVE_HASH = ConstExprHashingUtils::HashString("TRUE_POSITIVE"); + static constexpr uint32_t FALSE_POSITIVE_HASH = ConstExprHashingUtils::HashString("FALSE_POSITIVE"); + static constexpr uint32_t BENIGN_POSITIVE_HASH = ConstExprHashingUtils::HashString("BENIGN_POSITIVE"); VerificationState GetVerificationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return VerificationState::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityExploitAvailable.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityExploitAvailable.cpp index 3f17ce40dc4..18f7cef60d5 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityExploitAvailable.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityExploitAvailable.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VulnerabilityExploitAvailableMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); VulnerabilityExploitAvailable GetVulnerabilityExploitAvailableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return VulnerabilityExploitAvailable::YES; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityFixAvailable.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityFixAvailable.cpp index 885812178b8..7e375092619 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityFixAvailable.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/VulnerabilityFixAvailable.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VulnerabilityFixAvailableMapper { - static const int YES_HASH = HashingUtils::HashString("YES"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int PARTIAL_HASH = HashingUtils::HashString("PARTIAL"); + static constexpr uint32_t YES_HASH = ConstExprHashingUtils::HashString("YES"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t PARTIAL_HASH = ConstExprHashingUtils::HashString("PARTIAL"); VulnerabilityFixAvailable GetVulnerabilityFixAvailableForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YES_HASH) { return VulnerabilityFixAvailable::YES; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowState.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowState.cpp index 2d1cc7b6dc5..e87cf19fd34 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowState.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkflowStateMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int ASSIGNED_HASH = HashingUtils::HashString("ASSIGNED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int DEFERRED_HASH = HashingUtils::HashString("DEFERRED"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t ASSIGNED_HASH = ConstExprHashingUtils::HashString("ASSIGNED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t DEFERRED_HASH = ConstExprHashingUtils::HashString("DEFERRED"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); WorkflowState GetWorkflowStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return WorkflowState::NEW_; diff --git a/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowStatus.cpp b/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowStatus.cpp index f7b206853d6..b38d441ec25 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowStatus.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/model/WorkflowStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WorkflowStatusMapper { - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int NOTIFIED_HASH = HashingUtils::HashString("NOTIFIED"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); - static const int SUPPRESSED_HASH = HashingUtils::HashString("SUPPRESSED"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t NOTIFIED_HASH = ConstExprHashingUtils::HashString("NOTIFIED"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); + static constexpr uint32_t SUPPRESSED_HASH = ConstExprHashingUtils::HashString("SUPPRESSED"); WorkflowStatus GetWorkflowStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEW__HASH) { return WorkflowStatus::NEW_; diff --git a/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeErrors.cpp b/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeErrors.cpp index 442c14e8f6e..02cc1eead47 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeErrors.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_SECURITYLAKE_API AccessDeniedException SecurityLakeError::GetMode namespace SecurityLakeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-securitylake/source/model/AccessType.cpp b/generated/src/aws-cpp-sdk-securitylake/source/model/AccessType.cpp index c8291f0dd6d..9dd229a2bee 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/model/AccessType.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/model/AccessType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessTypeMapper { - static const int LAKEFORMATION_HASH = HashingUtils::HashString("LAKEFORMATION"); - static const int S3_HASH = HashingUtils::HashString("S3"); + static constexpr uint32_t LAKEFORMATION_HASH = ConstExprHashingUtils::HashString("LAKEFORMATION"); + static constexpr uint32_t S3_HASH = ConstExprHashingUtils::HashString("S3"); AccessType GetAccessTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LAKEFORMATION_HASH) { return AccessType::LAKEFORMATION; diff --git a/generated/src/aws-cpp-sdk-securitylake/source/model/AwsLogSourceName.cpp b/generated/src/aws-cpp-sdk-securitylake/source/model/AwsLogSourceName.cpp index 1b16e533725..a048693865f 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/model/AwsLogSourceName.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/model/AwsLogSourceName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AwsLogSourceNameMapper { - static const int ROUTE53_HASH = HashingUtils::HashString("ROUTE53"); - static const int VPC_FLOW_HASH = HashingUtils::HashString("VPC_FLOW"); - static const int SH_FINDINGS_HASH = HashingUtils::HashString("SH_FINDINGS"); - static const int CLOUD_TRAIL_MGMT_HASH = HashingUtils::HashString("CLOUD_TRAIL_MGMT"); - static const int LAMBDA_EXECUTION_HASH = HashingUtils::HashString("LAMBDA_EXECUTION"); - static const int S3_DATA_HASH = HashingUtils::HashString("S3_DATA"); + static constexpr uint32_t ROUTE53_HASH = ConstExprHashingUtils::HashString("ROUTE53"); + static constexpr uint32_t VPC_FLOW_HASH = ConstExprHashingUtils::HashString("VPC_FLOW"); + static constexpr uint32_t SH_FINDINGS_HASH = ConstExprHashingUtils::HashString("SH_FINDINGS"); + static constexpr uint32_t CLOUD_TRAIL_MGMT_HASH = ConstExprHashingUtils::HashString("CLOUD_TRAIL_MGMT"); + static constexpr uint32_t LAMBDA_EXECUTION_HASH = ConstExprHashingUtils::HashString("LAMBDA_EXECUTION"); + static constexpr uint32_t S3_DATA_HASH = ConstExprHashingUtils::HashString("S3_DATA"); AwsLogSourceName GetAwsLogSourceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROUTE53_HASH) { return AwsLogSourceName::ROUTE53; diff --git a/generated/src/aws-cpp-sdk-securitylake/source/model/DataLakeStatus.cpp b/generated/src/aws-cpp-sdk-securitylake/source/model/DataLakeStatus.cpp index cb7fd8f1eb4..e7797aa83c0 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/model/DataLakeStatus.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/model/DataLakeStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DataLakeStatusMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DataLakeStatus GetDataLakeStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return DataLakeStatus::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-securitylake/source/model/HttpMethod.cpp b/generated/src/aws-cpp-sdk-securitylake/source/model/HttpMethod.cpp index 408dd0a79ba..857e66d90b0 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/model/HttpMethod.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/model/HttpMethod.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HttpMethodMapper { - static const int POST_HASH = HashingUtils::HashString("POST"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); + static constexpr uint32_t POST_HASH = ConstExprHashingUtils::HashString("POST"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); HttpMethod GetHttpMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POST_HASH) { return HttpMethod::POST; diff --git a/generated/src/aws-cpp-sdk-securitylake/source/model/SourceCollectionStatus.cpp b/generated/src/aws-cpp-sdk-securitylake/source/model/SourceCollectionStatus.cpp index d0372dfe2e9..fa3b102f3b9 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/model/SourceCollectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/model/SourceCollectionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SourceCollectionStatusMapper { - static const int COLLECTING_HASH = HashingUtils::HashString("COLLECTING"); - static const int MISCONFIGURED_HASH = HashingUtils::HashString("MISCONFIGURED"); - static const int NOT_COLLECTING_HASH = HashingUtils::HashString("NOT_COLLECTING"); + static constexpr uint32_t COLLECTING_HASH = ConstExprHashingUtils::HashString("COLLECTING"); + static constexpr uint32_t MISCONFIGURED_HASH = ConstExprHashingUtils::HashString("MISCONFIGURED"); + static constexpr uint32_t NOT_COLLECTING_HASH = ConstExprHashingUtils::HashString("NOT_COLLECTING"); SourceCollectionStatus GetSourceCollectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLLECTING_HASH) { return SourceCollectionStatus::COLLECTING; diff --git a/generated/src/aws-cpp-sdk-securitylake/source/model/SubscriberStatus.cpp b/generated/src/aws-cpp-sdk-securitylake/source/model/SubscriberStatus.cpp index 67a272f7ff5..cc7e859c84a 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/model/SubscriberStatus.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/model/SubscriberStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SubscriberStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DEACTIVATED_HASH = HashingUtils::HashString("DEACTIVATED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int READY_HASH = HashingUtils::HashString("READY"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DEACTIVATED_HASH = ConstExprHashingUtils::HashString("DEACTIVATED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); SubscriberStatus GetSubscriberStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return SubscriberStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryErrors.cpp b/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryErrors.cpp index ca697b37785..fb5c9dd6fce 100644 --- a/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryErrors.cpp +++ b/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryErrors.cpp @@ -61,17 +61,17 @@ template<> AWS_SERVERLESSAPPLICATIONREPOSITORY_API InternalServerErrorException namespace ServerlessApplicationRepositoryErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t FORBIDDEN_HASH = ConstExprHashingUtils::HashString("ForbiddenException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVER_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServerErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Capability.cpp b/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Capability.cpp index df8cad1c6c9..eb540da5e0d 100644 --- a/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Capability.cpp +++ b/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Capability.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CapabilityMapper { - static const int CAPABILITY_IAM_HASH = HashingUtils::HashString("CAPABILITY_IAM"); - static const int CAPABILITY_NAMED_IAM_HASH = HashingUtils::HashString("CAPABILITY_NAMED_IAM"); - static const int CAPABILITY_AUTO_EXPAND_HASH = HashingUtils::HashString("CAPABILITY_AUTO_EXPAND"); - static const int CAPABILITY_RESOURCE_POLICY_HASH = HashingUtils::HashString("CAPABILITY_RESOURCE_POLICY"); + static constexpr uint32_t CAPABILITY_IAM_HASH = ConstExprHashingUtils::HashString("CAPABILITY_IAM"); + static constexpr uint32_t CAPABILITY_NAMED_IAM_HASH = ConstExprHashingUtils::HashString("CAPABILITY_NAMED_IAM"); + static constexpr uint32_t CAPABILITY_AUTO_EXPAND_HASH = ConstExprHashingUtils::HashString("CAPABILITY_AUTO_EXPAND"); + static constexpr uint32_t CAPABILITY_RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("CAPABILITY_RESOURCE_POLICY"); Capability GetCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CAPABILITY_IAM_HASH) { return Capability::CAPABILITY_IAM; diff --git a/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Status.cpp b/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Status.cpp index c6e03e23635..1ae2e6f89fd 100644 --- a/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-serverlessrepo/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int PREPARING_HASH = HashingUtils::HashString("PREPARING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t PREPARING_HASH = ConstExprHashingUtils::HashString("PREPARING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PREPARING_HASH) { return Status::PREPARING; diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasErrors.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasErrors.cpp index ce1e8fd287f..24ddc74e0cd 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasErrors.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasErrors.cpp @@ -18,27 +18,27 @@ namespace ServiceQuotas namespace ServiceQuotasErrorMapper { -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = HashingUtils::HashString("OrganizationNotInAllFeaturesModeException"); -static const int SERVICE_QUOTA_TEMPLATE_NOT_IN_USE_HASH = HashingUtils::HashString("ServiceQuotaTemplateNotInUseException"); -static const int DEPENDENCY_ACCESS_DENIED_HASH = HashingUtils::HashString("DependencyAccessDeniedException"); -static const int TEMPLATES_NOT_AVAILABLE_IN_REGION_HASH = HashingUtils::HashString("TemplatesNotAvailableInRegionException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); -static const int INVALID_RESOURCE_STATE_HASH = HashingUtils::HashString("InvalidResourceStateException"); -static const int NO_AVAILABLE_ORGANIZATION_HASH = HashingUtils::HashString("NoAvailableOrganizationException"); -static const int TAG_POLICY_VIOLATION_HASH = HashingUtils::HashString("TagPolicyViolationException"); -static const int A_W_S_SERVICE_ACCESS_NOT_ENABLED_HASH = HashingUtils::HashString("AWSServiceAccessNotEnabledException"); -static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("IllegalArgumentException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int QUOTA_EXCEEDED_HASH = HashingUtils::HashString("QuotaExceededException"); -static const int SERVICE_HASH = HashingUtils::HashString("ServiceException"); -static const int NO_SUCH_RESOURCE_HASH = HashingUtils::HashString("NoSuchResourceException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = ConstExprHashingUtils::HashString("OrganizationNotInAllFeaturesModeException"); +static constexpr uint32_t SERVICE_QUOTA_TEMPLATE_NOT_IN_USE_HASH = ConstExprHashingUtils::HashString("ServiceQuotaTemplateNotInUseException"); +static constexpr uint32_t DEPENDENCY_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("DependencyAccessDeniedException"); +static constexpr uint32_t TEMPLATES_NOT_AVAILABLE_IN_REGION_HASH = ConstExprHashingUtils::HashString("TemplatesNotAvailableInRegionException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t INVALID_RESOURCE_STATE_HASH = ConstExprHashingUtils::HashString("InvalidResourceStateException"); +static constexpr uint32_t NO_AVAILABLE_ORGANIZATION_HASH = ConstExprHashingUtils::HashString("NoAvailableOrganizationException"); +static constexpr uint32_t TAG_POLICY_VIOLATION_HASH = ConstExprHashingUtils::HashString("TagPolicyViolationException"); +static constexpr uint32_t A_W_S_SERVICE_ACCESS_NOT_ENABLED_HASH = ConstExprHashingUtils::HashString("AWSServiceAccessNotEnabledException"); +static constexpr uint32_t ILLEGAL_ARGUMENT_HASH = ConstExprHashingUtils::HashString("IllegalArgumentException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("QuotaExceededException"); +static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("ServiceException"); +static constexpr uint32_t NO_SUCH_RESOURCE_HASH = ConstExprHashingUtils::HashString("NoSuchResourceException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == RESOURCE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/model/AppliedLevelEnum.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/model/AppliedLevelEnum.cpp index 0d09c18e1b8..476a0330976 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/model/AppliedLevelEnum.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/model/AppliedLevelEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AppliedLevelEnumMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); AppliedLevelEnum GetAppliedLevelEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return AppliedLevelEnum::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/model/ErrorCode.cpp index 3ccdc656c4c..d92bf55ba57 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/model/ErrorCode.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ErrorCodeMapper { - static const int DEPENDENCY_ACCESS_DENIED_ERROR_HASH = HashingUtils::HashString("DEPENDENCY_ACCESS_DENIED_ERROR"); - static const int DEPENDENCY_THROTTLING_ERROR_HASH = HashingUtils::HashString("DEPENDENCY_THROTTLING_ERROR"); - static const int DEPENDENCY_SERVICE_ERROR_HASH = HashingUtils::HashString("DEPENDENCY_SERVICE_ERROR"); - static const int SERVICE_QUOTA_NOT_AVAILABLE_ERROR_HASH = HashingUtils::HashString("SERVICE_QUOTA_NOT_AVAILABLE_ERROR"); + static constexpr uint32_t DEPENDENCY_ACCESS_DENIED_ERROR_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_ACCESS_DENIED_ERROR"); + static constexpr uint32_t DEPENDENCY_THROTTLING_ERROR_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_THROTTLING_ERROR"); + static constexpr uint32_t DEPENDENCY_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("DEPENDENCY_SERVICE_ERROR"); + static constexpr uint32_t SERVICE_QUOTA_NOT_AVAILABLE_ERROR_HASH = ConstExprHashingUtils::HashString("SERVICE_QUOTA_NOT_AVAILABLE_ERROR"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEPENDENCY_ACCESS_DENIED_ERROR_HASH) { return ErrorCode::DEPENDENCY_ACCESS_DENIED_ERROR; diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/model/PeriodUnit.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/model/PeriodUnit.cpp index 1828465c3cc..89775ab0444 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/model/PeriodUnit.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/model/PeriodUnit.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PeriodUnitMapper { - static const int MICROSECOND_HASH = HashingUtils::HashString("MICROSECOND"); - static const int MILLISECOND_HASH = HashingUtils::HashString("MILLISECOND"); - static const int SECOND_HASH = HashingUtils::HashString("SECOND"); - static const int MINUTE_HASH = HashingUtils::HashString("MINUTE"); - static const int HOUR_HASH = HashingUtils::HashString("HOUR"); - static const int DAY_HASH = HashingUtils::HashString("DAY"); - static const int WEEK_HASH = HashingUtils::HashString("WEEK"); + static constexpr uint32_t MICROSECOND_HASH = ConstExprHashingUtils::HashString("MICROSECOND"); + static constexpr uint32_t MILLISECOND_HASH = ConstExprHashingUtils::HashString("MILLISECOND"); + static constexpr uint32_t SECOND_HASH = ConstExprHashingUtils::HashString("SECOND"); + static constexpr uint32_t MINUTE_HASH = ConstExprHashingUtils::HashString("MINUTE"); + static constexpr uint32_t HOUR_HASH = ConstExprHashingUtils::HashString("HOUR"); + static constexpr uint32_t DAY_HASH = ConstExprHashingUtils::HashString("DAY"); + static constexpr uint32_t WEEK_HASH = ConstExprHashingUtils::HashString("WEEK"); PeriodUnit GetPeriodUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MICROSECOND_HASH) { return PeriodUnit::MICROSECOND; diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/model/QuotaContextScope.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/model/QuotaContextScope.cpp index f9c9d7f7dd0..422cd4d54bf 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/model/QuotaContextScope.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/model/QuotaContextScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuotaContextScopeMapper { - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); QuotaContextScope GetQuotaContextScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESOURCE_HASH) { return QuotaContextScope::RESOURCE; diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/model/RequestStatus.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/model/RequestStatus.cpp index 78e0f18d110..140ed73f965 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/model/RequestStatus.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/model/RequestStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace RequestStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int CASE_OPENED_HASH = HashingUtils::HashString("CASE_OPENED"); - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int DENIED_HASH = HashingUtils::HashString("DENIED"); - static const int CASE_CLOSED_HASH = HashingUtils::HashString("CASE_CLOSED"); - static const int NOT_APPROVED_HASH = HashingUtils::HashString("NOT_APPROVED"); - static const int INVALID_REQUEST_HASH = HashingUtils::HashString("INVALID_REQUEST"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t CASE_OPENED_HASH = ConstExprHashingUtils::HashString("CASE_OPENED"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t DENIED_HASH = ConstExprHashingUtils::HashString("DENIED"); + static constexpr uint32_t CASE_CLOSED_HASH = ConstExprHashingUtils::HashString("CASE_CLOSED"); + static constexpr uint32_t NOT_APPROVED_HASH = ConstExprHashingUtils::HashString("NOT_APPROVED"); + static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("INVALID_REQUEST"); RequestStatus GetRequestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return RequestStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/model/ServiceQuotaTemplateAssociationStatus.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/model/ServiceQuotaTemplateAssociationStatus.cpp index 7720e3f4bda..6218c2f41d3 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/model/ServiceQuotaTemplateAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/model/ServiceQuotaTemplateAssociationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceQuotaTemplateAssociationStatusMapper { - static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED"); - static const int DISASSOCIATED_HASH = HashingUtils::HashString("DISASSOCIATED"); + static constexpr uint32_t ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ASSOCIATED"); + static constexpr uint32_t DISASSOCIATED_HASH = ConstExprHashingUtils::HashString("DISASSOCIATED"); ServiceQuotaTemplateAssociationStatus GetServiceQuotaTemplateAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSOCIATED_HASH) { return ServiceQuotaTemplateAssociationStatus::ASSOCIATED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryErrors.cpp b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryErrors.cpp index a4a13bbc476..0c16831bc1f 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryErrors.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryErrors.cpp @@ -26,14 +26,14 @@ template<> AWS_APPREGISTRY_API ThrottlingException AppRegistryError::GetModeledE namespace AppRegistryErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceGroupState.cpp b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceGroupState.cpp index 2539d999f1c..ab5e8e3446f 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceGroupState.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceGroupState.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResourceGroupStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("CREATE_COMPLETE"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ResourceGroupState GetResourceGroupStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ResourceGroupState::CREATING; diff --git a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceType.cpp index 7a91c28d21c..24722ac97b0 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int CFN_STACK_HASH = HashingUtils::HashString("CFN_STACK"); - static const int RESOURCE_TAG_VALUE_HASH = HashingUtils::HashString("RESOURCE_TAG_VALUE"); + static constexpr uint32_t CFN_STACK_HASH = ConstExprHashingUtils::HashString("CFN_STACK"); + static constexpr uint32_t RESOURCE_TAG_VALUE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TAG_VALUE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CFN_STACK_HASH) { return ResourceType::CFN_STACK; diff --git a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/SyncAction.cpp b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/SyncAction.cpp index 8dbd9d4e230..94d2eae3065 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/SyncAction.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/model/SyncAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SyncActionMapper { - static const int START_SYNC_HASH = HashingUtils::HashString("START_SYNC"); - static const int NO_ACTION_HASH = HashingUtils::HashString("NO_ACTION"); + static constexpr uint32_t START_SYNC_HASH = ConstExprHashingUtils::HashString("START_SYNC"); + static constexpr uint32_t NO_ACTION_HASH = ConstExprHashingUtils::HashString("NO_ACTION"); SyncAction GetSyncActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_SYNC_HASH) { return SyncAction::START_SYNC; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogErrors.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogErrors.cpp index 623aadbf50f..113b61b0ecc 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogErrors.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogErrors.cpp @@ -18,18 +18,18 @@ namespace ServiceCatalog namespace ServiceCatalogErrorMapper { -static const int TAG_OPTION_NOT_MIGRATED_HASH = HashingUtils::HashString("TagOptionNotMigratedException"); -static const int OPERATION_NOT_SUPPORTED_HASH = HashingUtils::HashString("OperationNotSupportedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int DUPLICATE_RESOURCE_HASH = HashingUtils::HashString("DuplicateResourceException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int INVALID_PARAMETERS_HASH = HashingUtils::HashString("InvalidParametersException"); -static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); +static constexpr uint32_t TAG_OPTION_NOT_MIGRATED_HASH = ConstExprHashingUtils::HashString("TagOptionNotMigratedException"); +static constexpr uint32_t OPERATION_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("OperationNotSupportedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t DUPLICATE_RESOURCE_HASH = ConstExprHashingUtils::HashString("DuplicateResourceException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t INVALID_PARAMETERS_HASH = ConstExprHashingUtils::HashString("InvalidParametersException"); +static constexpr uint32_t INVALID_STATE_HASH = ConstExprHashingUtils::HashString("InvalidStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TAG_OPTION_NOT_MIGRATED_HASH) { diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessLevelFilterKey.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessLevelFilterKey.cpp index 38e7a5b1ee8..647a22fabde 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessLevelFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessLevelFilterKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccessLevelFilterKeyMapper { - static const int Account_HASH = HashingUtils::HashString("Account"); - static const int Role_HASH = HashingUtils::HashString("Role"); - static const int User_HASH = HashingUtils::HashString("User"); + static constexpr uint32_t Account_HASH = ConstExprHashingUtils::HashString("Account"); + static constexpr uint32_t Role_HASH = ConstExprHashingUtils::HashString("Role"); + static constexpr uint32_t User_HASH = ConstExprHashingUtils::HashString("User"); AccessLevelFilterKey GetAccessLevelFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Account_HASH) { return AccessLevelFilterKey::Account; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessStatus.cpp index f9bc37162e4..5e34bbe8fbe 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/AccessStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AccessStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int UNDER_CHANGE_HASH = HashingUtils::HashString("UNDER_CHANGE"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t UNDER_CHANGE_HASH = ConstExprHashingUtils::HashString("UNDER_CHANGE"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AccessStatus GetAccessStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AccessStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ChangeAction.cpp index e30e6bbe188..e85f4ea0e73 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ChangeAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeActionMapper { - static const int ADD_HASH = HashingUtils::HashString("ADD"); - static const int MODIFY_HASH = HashingUtils::HashString("MODIFY"); - static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + static constexpr uint32_t ADD_HASH = ConstExprHashingUtils::HashString("ADD"); + static constexpr uint32_t MODIFY_HASH = ConstExprHashingUtils::HashString("MODIFY"); + static constexpr uint32_t REMOVE_HASH = ConstExprHashingUtils::HashString("REMOVE"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADD_HASH) { return ChangeAction::ADD; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyOption.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyOption.cpp index 1d55ba98cf0..53de35e9da5 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyOption.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CopyOptionMapper { - static const int CopyTags_HASH = HashingUtils::HashString("CopyTags"); + static constexpr uint32_t CopyTags_HASH = ConstExprHashingUtils::HashString("CopyTags"); CopyOption GetCopyOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CopyTags_HASH) { return CopyOption::CopyTags; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyProductStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyProductStatus.cpp index d053c8585a4..42c8cd43f7e 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyProductStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/CopyProductStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CopyProductStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CopyProductStatus GetCopyProductStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return CopyProductStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/DescribePortfolioShareType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/DescribePortfolioShareType.cpp index aa998f763ff..64a1b4ca560 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/DescribePortfolioShareType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/DescribePortfolioShareType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DescribePortfolioShareTypeMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); - static const int ORGANIZATIONAL_UNIT_HASH = HashingUtils::HashString("ORGANIZATIONAL_UNIT"); - static const int ORGANIZATION_MEMBER_ACCOUNT_HASH = HashingUtils::HashString("ORGANIZATION_MEMBER_ACCOUNT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t ORGANIZATIONAL_UNIT_HASH = ConstExprHashingUtils::HashString("ORGANIZATIONAL_UNIT"); + static constexpr uint32_t ORGANIZATION_MEMBER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("ORGANIZATION_MEMBER_ACCOUNT"); DescribePortfolioShareType GetDescribePortfolioShareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return DescribePortfolioShareType::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/EngineWorkflowStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/EngineWorkflowStatus.cpp index d313f967b7d..40ceabe387a 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/EngineWorkflowStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/EngineWorkflowStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngineWorkflowStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); EngineWorkflowStatus GetEngineWorkflowStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return EngineWorkflowStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/EvaluationType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/EvaluationType.cpp index c27634e27a5..26d5ba3923e 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/EvaluationType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/EvaluationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EvaluationTypeMapper { - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); - static const int DYNAMIC_HASH = HashingUtils::HashString("DYNAMIC"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); + static constexpr uint32_t DYNAMIC_HASH = ConstExprHashingUtils::HashString("DYNAMIC"); EvaluationType GetEvaluationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC__HASH) { return EvaluationType::STATIC_; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/LastSyncStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/LastSyncStatus.cpp index 9b96463daba..c1f34193050 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/LastSyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/LastSyncStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LastSyncStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); LastSyncStatus GetLastSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return LastSyncStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/OrganizationNodeType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/OrganizationNodeType.cpp index 2ef8dcc7ca9..e57850709e8 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/OrganizationNodeType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/OrganizationNodeType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OrganizationNodeTypeMapper { - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); - static const int ORGANIZATIONAL_UNIT_HASH = HashingUtils::HashString("ORGANIZATIONAL_UNIT"); - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t ORGANIZATIONAL_UNIT_HASH = ConstExprHashingUtils::HashString("ORGANIZATIONAL_UNIT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); OrganizationNodeType GetOrganizationNodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORGANIZATION_HASH) { return OrganizationNodeType::ORGANIZATION; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/PortfolioShareType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/PortfolioShareType.cpp index 058a645f325..767178c8bd2 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/PortfolioShareType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/PortfolioShareType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PortfolioShareTypeMapper { - static const int IMPORTED_HASH = HashingUtils::HashString("IMPORTED"); - static const int AWS_SERVICECATALOG_HASH = HashingUtils::HashString("AWS_SERVICECATALOG"); - static const int AWS_ORGANIZATIONS_HASH = HashingUtils::HashString("AWS_ORGANIZATIONS"); + static constexpr uint32_t IMPORTED_HASH = ConstExprHashingUtils::HashString("IMPORTED"); + static constexpr uint32_t AWS_SERVICECATALOG_HASH = ConstExprHashingUtils::HashString("AWS_SERVICECATALOG"); + static constexpr uint32_t AWS_ORGANIZATIONS_HASH = ConstExprHashingUtils::HashString("AWS_ORGANIZATIONS"); PortfolioShareType GetPortfolioShareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORTED_HASH) { return PortfolioShareType::IMPORTED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/PrincipalType.cpp index 2b8eda8a99f..c962d02fde7 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/PrincipalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PrincipalTypeMapper { - static const int IAM_HASH = HashingUtils::HashString("IAM"); - static const int IAM_PATTERN_HASH = HashingUtils::HashString("IAM_PATTERN"); + static constexpr uint32_t IAM_HASH = ConstExprHashingUtils::HashString("IAM"); + static constexpr uint32_t IAM_PATTERN_HASH = ConstExprHashingUtils::HashString("IAM_PATTERN"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IAM_HASH) { return PrincipalType::IAM; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductSource.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductSource.cpp index e5c46ca0006..af678173b7b 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductSource.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductSource.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProductSourceMapper { - static const int ACCOUNT_HASH = HashingUtils::HashString("ACCOUNT"); + static constexpr uint32_t ACCOUNT_HASH = ConstExprHashingUtils::HashString("ACCOUNT"); ProductSource GetProductSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCOUNT_HASH) { return ProductSource::ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductType.cpp index 9b30156ac28..2a45e675d65 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProductTypeMapper { - static const int CLOUD_FORMATION_TEMPLATE_HASH = HashingUtils::HashString("CLOUD_FORMATION_TEMPLATE"); - static const int MARKETPLACE_HASH = HashingUtils::HashString("MARKETPLACE"); - static const int TERRAFORM_OPEN_SOURCE_HASH = HashingUtils::HashString("TERRAFORM_OPEN_SOURCE"); - static const int TERRAFORM_CLOUD_HASH = HashingUtils::HashString("TERRAFORM_CLOUD"); + static constexpr uint32_t CLOUD_FORMATION_TEMPLATE_HASH = ConstExprHashingUtils::HashString("CLOUD_FORMATION_TEMPLATE"); + static constexpr uint32_t MARKETPLACE_HASH = ConstExprHashingUtils::HashString("MARKETPLACE"); + static constexpr uint32_t TERRAFORM_OPEN_SOURCE_HASH = ConstExprHashingUtils::HashString("TERRAFORM_OPEN_SOURCE"); + static constexpr uint32_t TERRAFORM_CLOUD_HASH = ConstExprHashingUtils::HashString("TERRAFORM_CLOUD"); ProductType GetProductTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUD_FORMATION_TEMPLATE_HASH) { return ProductType::CLOUD_FORMATION_TEMPLATE; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewFilterBy.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewFilterBy.cpp index f96e0167fcc..7599a3a32db 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewFilterBy.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewFilterBy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ProductViewFilterByMapper { - static const int FullTextSearch_HASH = HashingUtils::HashString("FullTextSearch"); - static const int Owner_HASH = HashingUtils::HashString("Owner"); - static const int ProductType_HASH = HashingUtils::HashString("ProductType"); - static const int SourceProductId_HASH = HashingUtils::HashString("SourceProductId"); + static constexpr uint32_t FullTextSearch_HASH = ConstExprHashingUtils::HashString("FullTextSearch"); + static constexpr uint32_t Owner_HASH = ConstExprHashingUtils::HashString("Owner"); + static constexpr uint32_t ProductType_HASH = ConstExprHashingUtils::HashString("ProductType"); + static constexpr uint32_t SourceProductId_HASH = ConstExprHashingUtils::HashString("SourceProductId"); ProductViewFilterBy GetProductViewFilterByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FullTextSearch_HASH) { return ProductViewFilterBy::FullTextSearch; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewSortBy.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewSortBy.cpp index 6c51d9aa0cd..4b20a50f56e 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewSortBy.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProductViewSortBy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProductViewSortByMapper { - static const int Title_HASH = HashingUtils::HashString("Title"); - static const int VersionCount_HASH = HashingUtils::HashString("VersionCount"); - static const int CreationDate_HASH = HashingUtils::HashString("CreationDate"); + static constexpr uint32_t Title_HASH = ConstExprHashingUtils::HashString("Title"); + static constexpr uint32_t VersionCount_HASH = ConstExprHashingUtils::HashString("VersionCount"); + static constexpr uint32_t CreationDate_HASH = ConstExprHashingUtils::HashString("CreationDate"); ProductViewSortBy GetProductViewSortByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Title_HASH) { return ProductViewSortBy::Title; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/PropertyKey.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/PropertyKey.cpp index 7499d14765b..fe9272557f6 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/PropertyKey.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/PropertyKey.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PropertyKeyMapper { - static const int OWNER_HASH = HashingUtils::HashString("OWNER"); - static const int LAUNCH_ROLE_HASH = HashingUtils::HashString("LAUNCH_ROLE"); + static constexpr uint32_t OWNER_HASH = ConstExprHashingUtils::HashString("OWNER"); + static constexpr uint32_t LAUNCH_ROLE_HASH = ConstExprHashingUtils::HashString("LAUNCH_ROLE"); PropertyKey GetPropertyKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OWNER_HASH) { return PropertyKey::OWNER; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanStatus.cpp index b6d602c8745..a3e5169ed8b 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ProvisionedProductPlanStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_SUCCESS_HASH = HashingUtils::HashString("CREATE_SUCCESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int EXECUTE_IN_PROGRESS_HASH = HashingUtils::HashString("EXECUTE_IN_PROGRESS"); - static const int EXECUTE_SUCCESS_HASH = HashingUtils::HashString("EXECUTE_SUCCESS"); - static const int EXECUTE_FAILED_HASH = HashingUtils::HashString("EXECUTE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_SUCCESS_HASH = ConstExprHashingUtils::HashString("CREATE_SUCCESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t EXECUTE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("EXECUTE_IN_PROGRESS"); + static constexpr uint32_t EXECUTE_SUCCESS_HASH = ConstExprHashingUtils::HashString("EXECUTE_SUCCESS"); + static constexpr uint32_t EXECUTE_FAILED_HASH = ConstExprHashingUtils::HashString("EXECUTE_FAILED"); ProvisionedProductPlanStatus GetProvisionedProductPlanStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ProvisionedProductPlanStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanType.cpp index 4c64477de21..42c96f17327 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductPlanType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProvisionedProductPlanTypeMapper { - static const int CLOUDFORMATION_HASH = HashingUtils::HashString("CLOUDFORMATION"); + static constexpr uint32_t CLOUDFORMATION_HASH = ConstExprHashingUtils::HashString("CLOUDFORMATION"); ProvisionedProductPlanType GetProvisionedProductPlanTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFORMATION_HASH) { return ProvisionedProductPlanType::CLOUDFORMATION; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductStatus.cpp index 5f59f334d4f..5c09ea31d81 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProvisionedProductStatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNDER_CHANGE_HASH = HashingUtils::HashString("UNDER_CHANGE"); - static const int TAINTED_HASH = HashingUtils::HashString("TAINTED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int PLAN_IN_PROGRESS_HASH = HashingUtils::HashString("PLAN_IN_PROGRESS"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNDER_CHANGE_HASH = ConstExprHashingUtils::HashString("UNDER_CHANGE"); + static constexpr uint32_t TAINTED_HASH = ConstExprHashingUtils::HashString("TAINTED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t PLAN_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("PLAN_IN_PROGRESS"); ProvisionedProductStatus GetProvisionedProductStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return ProvisionedProductStatus::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductViewFilterBy.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductViewFilterBy.cpp index 508a81a0512..85de2b49c6f 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductViewFilterBy.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisionedProductViewFilterBy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProvisionedProductViewFilterByMapper { - static const int SearchQuery_HASH = HashingUtils::HashString("SearchQuery"); + static constexpr uint32_t SearchQuery_HASH = ConstExprHashingUtils::HashString("SearchQuery"); ProvisionedProductViewFilterBy GetProvisionedProductViewFilterByForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SearchQuery_HASH) { return ProvisionedProductViewFilterBy::SearchQuery; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactGuidance.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactGuidance.cpp index 57616b7c222..a63f1426fbd 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactGuidance.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactGuidance.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProvisioningArtifactGuidanceMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); ProvisioningArtifactGuidance GetProvisioningArtifactGuidanceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return ProvisioningArtifactGuidance::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactPropertyName.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactPropertyName.cpp index 245748c7418..5d7f22ca151 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactPropertyName.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactPropertyName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProvisioningArtifactPropertyNameMapper { - static const int Id_HASH = HashingUtils::HashString("Id"); + static constexpr uint32_t Id_HASH = ConstExprHashingUtils::HashString("Id"); ProvisioningArtifactPropertyName GetProvisioningArtifactPropertyNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Id_HASH) { return ProvisioningArtifactPropertyName::Id; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactType.cpp index ab19d2ea748..8b3529d6bed 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ProvisioningArtifactType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ProvisioningArtifactTypeMapper { - static const int CLOUD_FORMATION_TEMPLATE_HASH = HashingUtils::HashString("CLOUD_FORMATION_TEMPLATE"); - static const int MARKETPLACE_AMI_HASH = HashingUtils::HashString("MARKETPLACE_AMI"); - static const int MARKETPLACE_CAR_HASH = HashingUtils::HashString("MARKETPLACE_CAR"); - static const int TERRAFORM_OPEN_SOURCE_HASH = HashingUtils::HashString("TERRAFORM_OPEN_SOURCE"); - static const int TERRAFORM_CLOUD_HASH = HashingUtils::HashString("TERRAFORM_CLOUD"); + static constexpr uint32_t CLOUD_FORMATION_TEMPLATE_HASH = ConstExprHashingUtils::HashString("CLOUD_FORMATION_TEMPLATE"); + static constexpr uint32_t MARKETPLACE_AMI_HASH = ConstExprHashingUtils::HashString("MARKETPLACE_AMI"); + static constexpr uint32_t MARKETPLACE_CAR_HASH = ConstExprHashingUtils::HashString("MARKETPLACE_CAR"); + static constexpr uint32_t TERRAFORM_OPEN_SOURCE_HASH = ConstExprHashingUtils::HashString("TERRAFORM_OPEN_SOURCE"); + static constexpr uint32_t TERRAFORM_CLOUD_HASH = ConstExprHashingUtils::HashString("TERRAFORM_CLOUD"); ProvisioningArtifactType GetProvisioningArtifactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUD_FORMATION_TEMPLATE_HASH) { return ProvisioningArtifactType::CLOUD_FORMATION_TEMPLATE; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/RecordStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/RecordStatus.cpp index 51220033b78..e96ccc1cc48 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/RecordStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/RecordStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RecordStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int IN_PROGRESS_IN_ERROR_HASH = HashingUtils::HashString("IN_PROGRESS_IN_ERROR"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t IN_PROGRESS_IN_ERROR_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS_IN_ERROR"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RecordStatus GetRecordStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return RecordStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/Replacement.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/Replacement.cpp index 62bed64c5b2..d3088a4a0dd 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/Replacement.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/Replacement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ReplacementMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); - static const int CONDITIONAL_HASH = HashingUtils::HashString("CONDITIONAL"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); + static constexpr uint32_t CONDITIONAL_HASH = ConstExprHashingUtils::HashString("CONDITIONAL"); Replacement GetReplacementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return Replacement::TRUE; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/RequiresRecreation.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/RequiresRecreation.cpp index ce708605356..ed15af36110 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/RequiresRecreation.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/RequiresRecreation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequiresRecreationMapper { - static const int NEVER_HASH = HashingUtils::HashString("NEVER"); - static const int CONDITIONALLY_HASH = HashingUtils::HashString("CONDITIONALLY"); - static const int ALWAYS_HASH = HashingUtils::HashString("ALWAYS"); + static constexpr uint32_t NEVER_HASH = ConstExprHashingUtils::HashString("NEVER"); + static constexpr uint32_t CONDITIONALLY_HASH = ConstExprHashingUtils::HashString("CONDITIONALLY"); + static constexpr uint32_t ALWAYS_HASH = ConstExprHashingUtils::HashString("ALWAYS"); RequiresRecreation GetRequiresRecreationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NEVER_HASH) { return RequiresRecreation::NEVER; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ResourceAttribute.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ResourceAttribute.cpp index bd3a77b2e06..5437f10926f 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ResourceAttribute.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ResourceAttribute.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResourceAttributeMapper { - static const int PROPERTIES_HASH = HashingUtils::HashString("PROPERTIES"); - static const int METADATA_HASH = HashingUtils::HashString("METADATA"); - static const int CREATIONPOLICY_HASH = HashingUtils::HashString("CREATIONPOLICY"); - static const int UPDATEPOLICY_HASH = HashingUtils::HashString("UPDATEPOLICY"); - static const int DELETIONPOLICY_HASH = HashingUtils::HashString("DELETIONPOLICY"); - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); + static constexpr uint32_t PROPERTIES_HASH = ConstExprHashingUtils::HashString("PROPERTIES"); + static constexpr uint32_t METADATA_HASH = ConstExprHashingUtils::HashString("METADATA"); + static constexpr uint32_t CREATIONPOLICY_HASH = ConstExprHashingUtils::HashString("CREATIONPOLICY"); + static constexpr uint32_t UPDATEPOLICY_HASH = ConstExprHashingUtils::HashString("UPDATEPOLICY"); + static constexpr uint32_t DELETIONPOLICY_HASH = ConstExprHashingUtils::HashString("DELETIONPOLICY"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); ResourceAttribute GetResourceAttributeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROPERTIES_HASH) { return ResourceAttribute::PROPERTIES; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionAssociationErrorCode.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionAssociationErrorCode.cpp index c922f3ad85f..77bb629acc8 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionAssociationErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionAssociationErrorCode.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ServiceActionAssociationErrorCodeMapper { - static const int DUPLICATE_RESOURCE_HASH = HashingUtils::HashString("DUPLICATE_RESOURCE"); - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LIMIT_EXCEEDED"); - static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); - static const int THROTTLING_HASH = HashingUtils::HashString("THROTTLING"); - static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("INVALID_PARAMETER"); + static constexpr uint32_t DUPLICATE_RESOURCE_HASH = ConstExprHashingUtils::HashString("DUPLICATE_RESOURCE"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LIMIT_EXCEEDED"); + static constexpr uint32_t RESOURCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("RESOURCE_NOT_FOUND"); + static constexpr uint32_t THROTTLING_HASH = ConstExprHashingUtils::HashString("THROTTLING"); + static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("INVALID_PARAMETER"); ServiceActionAssociationErrorCode GetServiceActionAssociationErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DUPLICATE_RESOURCE_HASH) { return ServiceActionAssociationErrorCode::DUPLICATE_RESOURCE; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionKey.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionKey.cpp index 0b50363a930..4db12dbb9f2 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionKey.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ServiceActionDefinitionKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int Version_HASH = HashingUtils::HashString("Version"); - static const int AssumeRole_HASH = HashingUtils::HashString("AssumeRole"); - static const int Parameters_HASH = HashingUtils::HashString("Parameters"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t Version_HASH = ConstExprHashingUtils::HashString("Version"); + static constexpr uint32_t AssumeRole_HASH = ConstExprHashingUtils::HashString("AssumeRole"); + static constexpr uint32_t Parameters_HASH = ConstExprHashingUtils::HashString("Parameters"); ServiceActionDefinitionKey GetServiceActionDefinitionKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ServiceActionDefinitionKey::Name; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionType.cpp index d703a41c9b3..d43f95f94a7 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ServiceActionDefinitionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceActionDefinitionTypeMapper { - static const int SSM_AUTOMATION_HASH = HashingUtils::HashString("SSM_AUTOMATION"); + static constexpr uint32_t SSM_AUTOMATION_HASH = ConstExprHashingUtils::HashString("SSM_AUTOMATION"); ServiceActionDefinitionType GetServiceActionDefinitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_AUTOMATION_HASH) { return ServiceActionDefinitionType::SSM_AUTOMATION; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ShareStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ShareStatus.cpp index 92bb60efcce..b6e7ab26c6a 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/ShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/ShareStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ShareStatusMapper { - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_ERRORS_HASH = HashingUtils::HashString("COMPLETED_WITH_ERRORS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ERRORS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ShareStatus GetShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_STARTED_HASH) { return ShareStatus::NOT_STARTED; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/SortOrder.cpp index 3d9fdcc2812..21376e513d3 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/SourceType.cpp index abb62477f74..37f31674a77 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/SourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SourceTypeMapper { - static const int CODESTAR_HASH = HashingUtils::HashString("CODESTAR"); + static constexpr uint32_t CODESTAR_HASH = ConstExprHashingUtils::HashString("CODESTAR"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CODESTAR_HASH) { return SourceType::CODESTAR; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackInstanceStatus.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackInstanceStatus.cpp index 0590a4837b0..d7378a6a5d5 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackInstanceStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackInstanceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StackInstanceStatusMapper { - static const int CURRENT_HASH = HashingUtils::HashString("CURRENT"); - static const int OUTDATED_HASH = HashingUtils::HashString("OUTDATED"); - static const int INOPERABLE_HASH = HashingUtils::HashString("INOPERABLE"); + static constexpr uint32_t CURRENT_HASH = ConstExprHashingUtils::HashString("CURRENT"); + static constexpr uint32_t OUTDATED_HASH = ConstExprHashingUtils::HashString("OUTDATED"); + static constexpr uint32_t INOPERABLE_HASH = ConstExprHashingUtils::HashString("INOPERABLE"); StackInstanceStatus GetStackInstanceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_HASH) { return StackInstanceStatus::CURRENT; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackSetOperationType.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackSetOperationType.cpp index 6b09a298c11..72e508572ca 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackSetOperationType.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/StackSetOperationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StackSetOperationTypeMapper { - static const int CREATE_HASH = HashingUtils::HashString("CREATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t CREATE_HASH = ConstExprHashingUtils::HashString("CREATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); StackSetOperationType GetStackSetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return StackSetOperationType::CREATE; diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/model/Status.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/model/Status.cpp index 91337d555ea..277eda473a1 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/model/Status.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); Status GetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return Status::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryErrors.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryErrors.cpp index ed03f9f58cf..a3bb88483c4 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryErrors.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryErrors.cpp @@ -47,24 +47,24 @@ template<> AWS_SERVICEDISCOVERY_API TooManyTagsException ServiceDiscoveryError:: namespace ServiceDiscoveryErrorMapper { -static const int NAMESPACE_ALREADY_EXISTS_HASH = HashingUtils::HashString("NamespaceAlreadyExists"); -static const int NAMESPACE_NOT_FOUND_HASH = HashingUtils::HashString("NamespaceNotFound"); -static const int OPERATION_NOT_FOUND_HASH = HashingUtils::HashString("OperationNotFound"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUse"); -static const int DUPLICATE_REQUEST_HASH = HashingUtils::HashString("DuplicateRequest"); -static const int SERVICE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ServiceAlreadyExists"); -static const int INVALID_INPUT_HASH = HashingUtils::HashString("InvalidInput"); -static const int INSTANCE_NOT_FOUND_HASH = HashingUtils::HashString("InstanceNotFound"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int REQUEST_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RequestLimitExceeded"); -static const int SERVICE_NOT_FOUND_HASH = HashingUtils::HashString("ServiceNotFound"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceeded"); -static const int CUSTOM_HEALTH_NOT_FOUND_HASH = HashingUtils::HashString("CustomHealthNotFound"); +static constexpr uint32_t NAMESPACE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("NamespaceAlreadyExists"); +static constexpr uint32_t NAMESPACE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NamespaceNotFound"); +static constexpr uint32_t OPERATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OperationNotFound"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUse"); +static constexpr uint32_t DUPLICATE_REQUEST_HASH = ConstExprHashingUtils::HashString("DuplicateRequest"); +static constexpr uint32_t SERVICE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ServiceAlreadyExists"); +static constexpr uint32_t INVALID_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidInput"); +static constexpr uint32_t INSTANCE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("InstanceNotFound"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t REQUEST_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RequestLimitExceeded"); +static constexpr uint32_t SERVICE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ServiceNotFound"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceeded"); +static constexpr uint32_t CUSTOM_HEALTH_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CustomHealthNotFound"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NAMESPACE_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/CustomHealthStatus.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/CustomHealthStatus.cpp index e69998f2169..2bcbe0656aa 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/CustomHealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/CustomHealthStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CustomHealthStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); CustomHealthStatus GetCustomHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return CustomHealthStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/FilterCondition.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/FilterCondition.cpp index bb452155c18..7aa7024386d 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/FilterCondition.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/FilterCondition.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FilterConditionMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int BETWEEN_HASH = HashingUtils::HashString("BETWEEN"); - static const int BEGINS_WITH_HASH = HashingUtils::HashString("BEGINS_WITH"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t BETWEEN_HASH = ConstExprHashingUtils::HashString("BETWEEN"); + static constexpr uint32_t BEGINS_WITH_HASH = ConstExprHashingUtils::HashString("BEGINS_WITH"); FilterCondition GetFilterConditionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return FilterCondition::EQ; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthCheckType.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthCheckType.cpp index 3eb47f4ddfb..a4c3ec9a77f 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthCheckType.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthCheckType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HealthCheckTypeMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int TCP_HASH = HashingUtils::HashString("TCP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t TCP_HASH = ConstExprHashingUtils::HashString("TCP"); HealthCheckType GetHealthCheckTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return HealthCheckType::HTTP; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatus.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatus.cpp index 72da6cde1ea..f94c5f3295f 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace HealthStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); HealthStatus GetHealthStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return HealthStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatusFilter.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatusFilter.cpp index 78e4e877414..aa0e55e98ec 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatusFilter.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/HealthStatusFilter.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HealthStatusFilterMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int HEALTHY_OR_ELSE_ALL_HASH = HashingUtils::HashString("HEALTHY_OR_ELSE_ALL"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t HEALTHY_OR_ELSE_ALL_HASH = ConstExprHashingUtils::HashString("HEALTHY_OR_ELSE_ALL"); HealthStatusFilter GetHealthStatusFilterForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return HealthStatusFilter::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceFilterName.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceFilterName.cpp index e3cc274f731..424b456f5db 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceFilterName.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceFilterName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NamespaceFilterNameMapper { - static const int TYPE_HASH = HashingUtils::HashString("TYPE"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int HTTP_NAME_HASH = HashingUtils::HashString("HTTP_NAME"); + static constexpr uint32_t TYPE_HASH = ConstExprHashingUtils::HashString("TYPE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t HTTP_NAME_HASH = ConstExprHashingUtils::HashString("HTTP_NAME"); NamespaceFilterName GetNamespaceFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TYPE_HASH) { return NamespaceFilterName::TYPE; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceType.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceType.cpp index c4f2571bcd6..efb232c0d48 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceType.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/NamespaceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NamespaceTypeMapper { - static const int DNS_PUBLIC_HASH = HashingUtils::HashString("DNS_PUBLIC"); - static const int DNS_PRIVATE_HASH = HashingUtils::HashString("DNS_PRIVATE"); - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t DNS_PUBLIC_HASH = ConstExprHashingUtils::HashString("DNS_PUBLIC"); + static constexpr uint32_t DNS_PRIVATE_HASH = ConstExprHashingUtils::HashString("DNS_PRIVATE"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); NamespaceType GetNamespaceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DNS_PUBLIC_HASH) { return NamespaceType::DNS_PUBLIC; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationFilterName.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationFilterName.cpp index 86cea1291d9..89ebe17bccd 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationFilterName.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationFilterName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OperationFilterNameMapper { - static const int NAMESPACE_ID_HASH = HashingUtils::HashString("NAMESPACE_ID"); - static const int SERVICE_ID_HASH = HashingUtils::HashString("SERVICE_ID"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int TYPE_HASH = HashingUtils::HashString("TYPE"); - static const int UPDATE_DATE_HASH = HashingUtils::HashString("UPDATE_DATE"); + static constexpr uint32_t NAMESPACE_ID_HASH = ConstExprHashingUtils::HashString("NAMESPACE_ID"); + static constexpr uint32_t SERVICE_ID_HASH = ConstExprHashingUtils::HashString("SERVICE_ID"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t TYPE_HASH = ConstExprHashingUtils::HashString("TYPE"); + static constexpr uint32_t UPDATE_DATE_HASH = ConstExprHashingUtils::HashString("UPDATE_DATE"); OperationFilterName GetOperationFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAMESPACE_ID_HASH) { return OperationFilterName::NAMESPACE_ID; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationStatus.cpp index 1300fb6e55a..0150efd2f6b 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OperationStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return OperationStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationTargetType.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationTargetType.cpp index 03f5f2198d8..41a7e59603e 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationTargetType.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationTargetType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperationTargetTypeMapper { - static const int NAMESPACE_HASH = HashingUtils::HashString("NAMESPACE"); - static const int SERVICE_HASH = HashingUtils::HashString("SERVICE"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); + static constexpr uint32_t NAMESPACE_HASH = ConstExprHashingUtils::HashString("NAMESPACE"); + static constexpr uint32_t SERVICE_HASH = ConstExprHashingUtils::HashString("SERVICE"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); OperationTargetType GetOperationTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAMESPACE_HASH) { return OperationTargetType::NAMESPACE; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationType.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationType.cpp index 55f3104b8d9..bd0503238ef 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationType.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/OperationType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OperationTypeMapper { - static const int CREATE_NAMESPACE_HASH = HashingUtils::HashString("CREATE_NAMESPACE"); - static const int DELETE_NAMESPACE_HASH = HashingUtils::HashString("DELETE_NAMESPACE"); - static const int UPDATE_NAMESPACE_HASH = HashingUtils::HashString("UPDATE_NAMESPACE"); - static const int UPDATE_SERVICE_HASH = HashingUtils::HashString("UPDATE_SERVICE"); - static const int REGISTER_INSTANCE_HASH = HashingUtils::HashString("REGISTER_INSTANCE"); - static const int DEREGISTER_INSTANCE_HASH = HashingUtils::HashString("DEREGISTER_INSTANCE"); + static constexpr uint32_t CREATE_NAMESPACE_HASH = ConstExprHashingUtils::HashString("CREATE_NAMESPACE"); + static constexpr uint32_t DELETE_NAMESPACE_HASH = ConstExprHashingUtils::HashString("DELETE_NAMESPACE"); + static constexpr uint32_t UPDATE_NAMESPACE_HASH = ConstExprHashingUtils::HashString("UPDATE_NAMESPACE"); + static constexpr uint32_t UPDATE_SERVICE_HASH = ConstExprHashingUtils::HashString("UPDATE_SERVICE"); + static constexpr uint32_t REGISTER_INSTANCE_HASH = ConstExprHashingUtils::HashString("REGISTER_INSTANCE"); + static constexpr uint32_t DEREGISTER_INSTANCE_HASH = ConstExprHashingUtils::HashString("DEREGISTER_INSTANCE"); OperationType GetOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_NAMESPACE_HASH) { return OperationType::CREATE_NAMESPACE; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/RecordType.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/RecordType.cpp index 7d9740d8e10..f61f9a69bfb 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/RecordType.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/RecordType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RecordTypeMapper { - static const int SRV_HASH = HashingUtils::HashString("SRV"); - static const int A_HASH = HashingUtils::HashString("A"); - static const int AAAA_HASH = HashingUtils::HashString("AAAA"); - static const int CNAME_HASH = HashingUtils::HashString("CNAME"); + static constexpr uint32_t SRV_HASH = ConstExprHashingUtils::HashString("SRV"); + static constexpr uint32_t A_HASH = ConstExprHashingUtils::HashString("A"); + static constexpr uint32_t AAAA_HASH = ConstExprHashingUtils::HashString("AAAA"); + static constexpr uint32_t CNAME_HASH = ConstExprHashingUtils::HashString("CNAME"); RecordType GetRecordTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SRV_HASH) { return RecordType::SRV; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/RoutingPolicy.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/RoutingPolicy.cpp index 6d7969ba102..1303c5e14f4 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/RoutingPolicy.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/RoutingPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RoutingPolicyMapper { - static const int MULTIVALUE_HASH = HashingUtils::HashString("MULTIVALUE"); - static const int WEIGHTED_HASH = HashingUtils::HashString("WEIGHTED"); + static constexpr uint32_t MULTIVALUE_HASH = ConstExprHashingUtils::HashString("MULTIVALUE"); + static constexpr uint32_t WEIGHTED_HASH = ConstExprHashingUtils::HashString("WEIGHTED"); RoutingPolicy GetRoutingPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MULTIVALUE_HASH) { return RoutingPolicy::MULTIVALUE; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceFilterName.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceFilterName.cpp index e038cb3de4c..85598e1639a 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceFilterName.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceFilterName.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceFilterNameMapper { - static const int NAMESPACE_ID_HASH = HashingUtils::HashString("NAMESPACE_ID"); + static constexpr uint32_t NAMESPACE_ID_HASH = ConstExprHashingUtils::HashString("NAMESPACE_ID"); ServiceFilterName GetServiceFilterNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAMESPACE_ID_HASH) { return ServiceFilterName::NAMESPACE_ID; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceType.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceType.cpp index 3414a639242..cacde15755b 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceType.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServiceTypeMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int DNS_HTTP_HASH = HashingUtils::HashString("DNS_HTTP"); - static const int DNS_HASH = HashingUtils::HashString("DNS"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t DNS_HTTP_HASH = ConstExprHashingUtils::HashString("DNS_HTTP"); + static constexpr uint32_t DNS_HASH = ConstExprHashingUtils::HashString("DNS"); ServiceType GetServiceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return ServiceType::HTTP; diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceTypeOption.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceTypeOption.cpp index 6be678c35ba..f798d12406d 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceTypeOption.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/model/ServiceTypeOption.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceTypeOptionMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); ServiceTypeOption GetServiceTypeOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return ServiceTypeOption::HTTP; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/SESV2Errors.cpp b/generated/src/aws-cpp-sdk-sesv2/source/SESV2Errors.cpp index da393f74495..31ba14b8f1d 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/SESV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/SESV2Errors.cpp @@ -18,24 +18,24 @@ namespace SESV2 namespace SESV2ErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SENDING_PAUSED_HASH = HashingUtils::HashString("SendingPausedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int MESSAGE_REJECTED_HASH = HashingUtils::HashString("MessageRejected"); -static const int MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = HashingUtils::HashString("MailFromDomainNotVerifiedException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); -static const int ACCOUNT_SUSPENDED_HASH = HashingUtils::HashString("AccountSuspendedException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SENDING_PAUSED_HASH = ConstExprHashingUtils::HashString("SendingPausedException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t MESSAGE_REJECTED_HASH = ConstExprHashingUtils::HashString("MessageRejected"); +static constexpr uint32_t MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("MailFromDomainNotVerifiedException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t ACCOUNT_SUSPENDED_HASH = ConstExprHashingUtils::HashString("AccountSuspendedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/BehaviorOnMxFailure.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/BehaviorOnMxFailure.cpp index f01053414cf..c16ba9dd2c7 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/BehaviorOnMxFailure.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/BehaviorOnMxFailure.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BehaviorOnMxFailureMapper { - static const int USE_DEFAULT_VALUE_HASH = HashingUtils::HashString("USE_DEFAULT_VALUE"); - static const int REJECT_MESSAGE_HASH = HashingUtils::HashString("REJECT_MESSAGE"); + static constexpr uint32_t USE_DEFAULT_VALUE_HASH = ConstExprHashingUtils::HashString("USE_DEFAULT_VALUE"); + static constexpr uint32_t REJECT_MESSAGE_HASH = ConstExprHashingUtils::HashString("REJECT_MESSAGE"); BehaviorOnMxFailure GetBehaviorOnMxFailureForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USE_DEFAULT_VALUE_HASH) { return BehaviorOnMxFailure::USE_DEFAULT_VALUE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/BounceType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/BounceType.cpp index 4706e136a17..8e4aa2b6a16 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/BounceType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/BounceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BounceTypeMapper { - static const int UNDETERMINED_HASH = HashingUtils::HashString("UNDETERMINED"); - static const int TRANSIENT_HASH = HashingUtils::HashString("TRANSIENT"); - static const int PERMANENT_HASH = HashingUtils::HashString("PERMANENT"); + static constexpr uint32_t UNDETERMINED_HASH = ConstExprHashingUtils::HashString("UNDETERMINED"); + static constexpr uint32_t TRANSIENT_HASH = ConstExprHashingUtils::HashString("TRANSIENT"); + static constexpr uint32_t PERMANENT_HASH = ConstExprHashingUtils::HashString("PERMANENT"); BounceType GetBounceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNDETERMINED_HASH) { return BounceType::UNDETERMINED; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailStatus.cpp index 165e271dee7..59ece0c6e2c 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/BulkEmailStatus.cpp @@ -20,25 +20,25 @@ namespace Aws namespace BulkEmailStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int MESSAGE_REJECTED_HASH = HashingUtils::HashString("MESSAGE_REJECTED"); - static const int MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = HashingUtils::HashString("MAIL_FROM_DOMAIN_NOT_VERIFIED"); - static const int CONFIGURATION_SET_NOT_FOUND_HASH = HashingUtils::HashString("CONFIGURATION_SET_NOT_FOUND"); - static const int TEMPLATE_NOT_FOUND_HASH = HashingUtils::HashString("TEMPLATE_NOT_FOUND"); - static const int ACCOUNT_SUSPENDED_HASH = HashingUtils::HashString("ACCOUNT_SUSPENDED"); - static const int ACCOUNT_THROTTLED_HASH = HashingUtils::HashString("ACCOUNT_THROTTLED"); - static const int ACCOUNT_DAILY_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ACCOUNT_DAILY_QUOTA_EXCEEDED"); - static const int INVALID_SENDING_POOL_NAME_HASH = HashingUtils::HashString("INVALID_SENDING_POOL_NAME"); - static const int ACCOUNT_SENDING_PAUSED_HASH = HashingUtils::HashString("ACCOUNT_SENDING_PAUSED"); - static const int CONFIGURATION_SET_SENDING_PAUSED_HASH = HashingUtils::HashString("CONFIGURATION_SET_SENDING_PAUSED"); - static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("INVALID_PARAMETER"); - static const int TRANSIENT_FAILURE_HASH = HashingUtils::HashString("TRANSIENT_FAILURE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t MESSAGE_REJECTED_HASH = ConstExprHashingUtils::HashString("MESSAGE_REJECTED"); + static constexpr uint32_t MAIL_FROM_DOMAIN_NOT_VERIFIED_HASH = ConstExprHashingUtils::HashString("MAIL_FROM_DOMAIN_NOT_VERIFIED"); + static constexpr uint32_t CONFIGURATION_SET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_SET_NOT_FOUND"); + static constexpr uint32_t TEMPLATE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("TEMPLATE_NOT_FOUND"); + static constexpr uint32_t ACCOUNT_SUSPENDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_SUSPENDED"); + static constexpr uint32_t ACCOUNT_THROTTLED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_THROTTLED"); + static constexpr uint32_t ACCOUNT_DAILY_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_DAILY_QUOTA_EXCEEDED"); + static constexpr uint32_t INVALID_SENDING_POOL_NAME_HASH = ConstExprHashingUtils::HashString("INVALID_SENDING_POOL_NAME"); + static constexpr uint32_t ACCOUNT_SENDING_PAUSED_HASH = ConstExprHashingUtils::HashString("ACCOUNT_SENDING_PAUSED"); + static constexpr uint32_t CONFIGURATION_SET_SENDING_PAUSED_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_SET_SENDING_PAUSED"); + static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("INVALID_PARAMETER"); + static constexpr uint32_t TRANSIENT_FAILURE_HASH = ConstExprHashingUtils::HashString("TRANSIENT_FAILURE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); BulkEmailStatus GetBulkEmailStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return BulkEmailStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ContactLanguage.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ContactLanguage.cpp index eafa0228e00..4833f1caf32 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ContactLanguage.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ContactLanguage.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContactLanguageMapper { - static const int EN_HASH = HashingUtils::HashString("EN"); - static const int JA_HASH = HashingUtils::HashString("JA"); + static constexpr uint32_t EN_HASH = ConstExprHashingUtils::HashString("EN"); + static constexpr uint32_t JA_HASH = ConstExprHashingUtils::HashString("JA"); ContactLanguage GetContactLanguageForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EN_HASH) { return ContactLanguage::EN; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ContactListImportAction.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ContactListImportAction.cpp index 967497d6718..7c55e515c15 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ContactListImportAction.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ContactListImportAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContactListImportActionMapper { - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); ContactListImportAction GetContactListImportActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE__HASH) { return ContactListImportAction::DELETE_; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DataFormat.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DataFormat.cpp index a9537f11a2b..3d2db9aa0a3 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DataFormat.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DataFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DataFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); DataFormat GetDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return DataFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityDashboardAccountStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityDashboardAccountStatus.cpp index e5e22f328e9..42d4249af68 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityDashboardAccountStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityDashboardAccountStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DeliverabilityDashboardAccountStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_EXPIRATION_HASH = HashingUtils::HashString("PENDING_EXPIRATION"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_EXPIRATION_HASH = ConstExprHashingUtils::HashString("PENDING_EXPIRATION"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DeliverabilityDashboardAccountStatus GetDeliverabilityDashboardAccountStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DeliverabilityDashboardAccountStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityTestStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityTestStatus.cpp index e8cab278500..ca46832d0ac 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityTestStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DeliverabilityTestStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeliverabilityTestStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); DeliverabilityTestStatus GetDeliverabilityTestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return DeliverabilityTestStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DeliveryEventType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DeliveryEventType.cpp index f1c8dc3a98d..75a022b555b 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DeliveryEventType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DeliveryEventType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DeliveryEventTypeMapper { - static const int SEND_HASH = HashingUtils::HashString("SEND"); - static const int DELIVERY_HASH = HashingUtils::HashString("DELIVERY"); - static const int TRANSIENT_BOUNCE_HASH = HashingUtils::HashString("TRANSIENT_BOUNCE"); - static const int PERMANENT_BOUNCE_HASH = HashingUtils::HashString("PERMANENT_BOUNCE"); - static const int UNDETERMINED_BOUNCE_HASH = HashingUtils::HashString("UNDETERMINED_BOUNCE"); - static const int COMPLAINT_HASH = HashingUtils::HashString("COMPLAINT"); + static constexpr uint32_t SEND_HASH = ConstExprHashingUtils::HashString("SEND"); + static constexpr uint32_t DELIVERY_HASH = ConstExprHashingUtils::HashString("DELIVERY"); + static constexpr uint32_t TRANSIENT_BOUNCE_HASH = ConstExprHashingUtils::HashString("TRANSIENT_BOUNCE"); + static constexpr uint32_t PERMANENT_BOUNCE_HASH = ConstExprHashingUtils::HashString("PERMANENT_BOUNCE"); + static constexpr uint32_t UNDETERMINED_BOUNCE_HASH = ConstExprHashingUtils::HashString("UNDETERMINED_BOUNCE"); + static constexpr uint32_t COMPLAINT_HASH = ConstExprHashingUtils::HashString("COMPLAINT"); DeliveryEventType GetDeliveryEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_HASH) { return DeliveryEventType::SEND; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DimensionValueSource.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DimensionValueSource.cpp index d9be121d0f4..4b6dcbd7cbf 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DimensionValueSource.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DimensionValueSource.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DimensionValueSourceMapper { - static const int MESSAGE_TAG_HASH = HashingUtils::HashString("MESSAGE_TAG"); - static const int EMAIL_HEADER_HASH = HashingUtils::HashString("EMAIL_HEADER"); - static const int LINK_TAG_HASH = HashingUtils::HashString("LINK_TAG"); + static constexpr uint32_t MESSAGE_TAG_HASH = ConstExprHashingUtils::HashString("MESSAGE_TAG"); + static constexpr uint32_t EMAIL_HEADER_HASH = ConstExprHashingUtils::HashString("EMAIL_HEADER"); + static constexpr uint32_t LINK_TAG_HASH = ConstExprHashingUtils::HashString("LINK_TAG"); DimensionValueSource GetDimensionValueSourceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MESSAGE_TAG_HASH) { return DimensionValueSource::MESSAGE_TAG; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningAttributesOrigin.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningAttributesOrigin.cpp index efb2b699ffa..099aaa8d081 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningAttributesOrigin.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningAttributesOrigin.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DkimSigningAttributesOriginMapper { - static const int AWS_SES_HASH = HashingUtils::HashString("AWS_SES"); - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t AWS_SES_HASH = ConstExprHashingUtils::HashString("AWS_SES"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); DkimSigningAttributesOrigin GetDkimSigningAttributesOriginForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_SES_HASH) { return DkimSigningAttributesOrigin::AWS_SES; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningKeyLength.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningKeyLength.cpp index 45149a9429c..cf18b57f1cf 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningKeyLength.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DkimSigningKeyLength.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DkimSigningKeyLengthMapper { - static const int RSA_1024_BIT_HASH = HashingUtils::HashString("RSA_1024_BIT"); - static const int RSA_2048_BIT_HASH = HashingUtils::HashString("RSA_2048_BIT"); + static constexpr uint32_t RSA_1024_BIT_HASH = ConstExprHashingUtils::HashString("RSA_1024_BIT"); + static constexpr uint32_t RSA_2048_BIT_HASH = ConstExprHashingUtils::HashString("RSA_2048_BIT"); DkimSigningKeyLength GetDkimSigningKeyLengthForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_1024_BIT_HASH) { return DkimSigningKeyLength::RSA_1024_BIT; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/DkimStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/DkimStatus.cpp index 2b055ed665a..d6860f6b314 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/DkimStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/DkimStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DkimStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TEMPORARY_FAILURE_HASH = HashingUtils::HashString("TEMPORARY_FAILURE"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TEMPORARY_FAILURE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_FAILURE"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); DkimStatus GetDkimStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DkimStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/EngagementEventType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/EngagementEventType.cpp index 13b543a592e..ad317ada344 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/EngagementEventType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/EngagementEventType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EngagementEventTypeMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLICK_HASH = HashingUtils::HashString("CLICK"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLICK_HASH = ConstExprHashingUtils::HashString("CLICK"); EngagementEventType GetEngagementEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return EngagementEventType::OPEN; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/EventType.cpp index 087023b96d9..f3805e5b399 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/EventType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace EventTypeMapper { - static const int SEND_HASH = HashingUtils::HashString("SEND"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); - static const int BOUNCE_HASH = HashingUtils::HashString("BOUNCE"); - static const int COMPLAINT_HASH = HashingUtils::HashString("COMPLAINT"); - static const int DELIVERY_HASH = HashingUtils::HashString("DELIVERY"); - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLICK_HASH = HashingUtils::HashString("CLICK"); - static const int RENDERING_FAILURE_HASH = HashingUtils::HashString("RENDERING_FAILURE"); - static const int DELIVERY_DELAY_HASH = HashingUtils::HashString("DELIVERY_DELAY"); - static const int SUBSCRIPTION_HASH = HashingUtils::HashString("SUBSCRIPTION"); + static constexpr uint32_t SEND_HASH = ConstExprHashingUtils::HashString("SEND"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); + static constexpr uint32_t BOUNCE_HASH = ConstExprHashingUtils::HashString("BOUNCE"); + static constexpr uint32_t COMPLAINT_HASH = ConstExprHashingUtils::HashString("COMPLAINT"); + static constexpr uint32_t DELIVERY_HASH = ConstExprHashingUtils::HashString("DELIVERY"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLICK_HASH = ConstExprHashingUtils::HashString("CLICK"); + static constexpr uint32_t RENDERING_FAILURE_HASH = ConstExprHashingUtils::HashString("RENDERING_FAILURE"); + static constexpr uint32_t DELIVERY_DELAY_HASH = ConstExprHashingUtils::HashString("DELIVERY_DELAY"); + static constexpr uint32_t SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("SUBSCRIPTION"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_HASH) { return EventType::SEND; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ExportSourceType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ExportSourceType.cpp index 321274e19f7..08cf1c92d73 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ExportSourceType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ExportSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExportSourceTypeMapper { - static const int METRICS_DATA_HASH = HashingUtils::HashString("METRICS_DATA"); - static const int MESSAGE_INSIGHTS_HASH = HashingUtils::HashString("MESSAGE_INSIGHTS"); + static constexpr uint32_t METRICS_DATA_HASH = ConstExprHashingUtils::HashString("METRICS_DATA"); + static constexpr uint32_t MESSAGE_INSIGHTS_HASH = ConstExprHashingUtils::HashString("MESSAGE_INSIGHTS"); ExportSourceType GetExportSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == METRICS_DATA_HASH) { return ExportSourceType::METRICS_DATA; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/FeatureStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/FeatureStatus.cpp index f8e6f55f6f6..7acbdbf3f3c 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/FeatureStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/FeatureStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FeatureStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); FeatureStatus GetFeatureStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return FeatureStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/IdentityType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/IdentityType.cpp index 84ef63e6698..bf427b6245b 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/IdentityType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/IdentityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace IdentityTypeMapper { - static const int EMAIL_ADDRESS_HASH = HashingUtils::HashString("EMAIL_ADDRESS"); - static const int DOMAIN__HASH = HashingUtils::HashString("DOMAIN"); - static const int MANAGED_DOMAIN_HASH = HashingUtils::HashString("MANAGED_DOMAIN"); + static constexpr uint32_t EMAIL_ADDRESS_HASH = ConstExprHashingUtils::HashString("EMAIL_ADDRESS"); + static constexpr uint32_t DOMAIN__HASH = ConstExprHashingUtils::HashString("DOMAIN"); + static constexpr uint32_t MANAGED_DOMAIN_HASH = ConstExprHashingUtils::HashString("MANAGED_DOMAIN"); IdentityType GetIdentityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_ADDRESS_HASH) { return IdentityType::EMAIL_ADDRESS; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ImportDestinationType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ImportDestinationType.cpp index 3a054d7c460..285ffe4a504 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ImportDestinationType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ImportDestinationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImportDestinationTypeMapper { - static const int SUPPRESSION_LIST_HASH = HashingUtils::HashString("SUPPRESSION_LIST"); - static const int CONTACT_LIST_HASH = HashingUtils::HashString("CONTACT_LIST"); + static constexpr uint32_t SUPPRESSION_LIST_HASH = ConstExprHashingUtils::HashString("SUPPRESSION_LIST"); + static constexpr uint32_t CONTACT_LIST_HASH = ConstExprHashingUtils::HashString("CONTACT_LIST"); ImportDestinationType GetImportDestinationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUPPRESSION_LIST_HASH) { return ImportDestinationType::SUPPRESSION_LIST; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/JobStatus.cpp index ef74419001b..770cd1c0b42 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/JobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace JobStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return JobStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ListRecommendationsFilterKey.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ListRecommendationsFilterKey.cpp index 8ef45fbd1ff..0aefa21dee5 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ListRecommendationsFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ListRecommendationsFilterKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ListRecommendationsFilterKeyMapper { - static const int TYPE_HASH = HashingUtils::HashString("TYPE"); - static const int IMPACT_HASH = HashingUtils::HashString("IMPACT"); - static const int STATUS_HASH = HashingUtils::HashString("STATUS"); - static const int RESOURCE_ARN_HASH = HashingUtils::HashString("RESOURCE_ARN"); + static constexpr uint32_t TYPE_HASH = ConstExprHashingUtils::HashString("TYPE"); + static constexpr uint32_t IMPACT_HASH = ConstExprHashingUtils::HashString("IMPACT"); + static constexpr uint32_t STATUS_HASH = ConstExprHashingUtils::HashString("STATUS"); + static constexpr uint32_t RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("RESOURCE_ARN"); ListRecommendationsFilterKey GetListRecommendationsFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TYPE_HASH) { return ListRecommendationsFilterKey::TYPE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/MailFromDomainStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/MailFromDomainStatus.cpp index 79cdd47e551..57ca2b75fb1 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/MailFromDomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/MailFromDomainStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MailFromDomainStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TEMPORARY_FAILURE_HASH = HashingUtils::HashString("TEMPORARY_FAILURE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TEMPORARY_FAILURE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_FAILURE"); MailFromDomainStatus GetMailFromDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return MailFromDomainStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/MailType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/MailType.cpp index a1ebc98844e..c5ada2bb458 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/MailType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/MailType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MailTypeMapper { - static const int MARKETING_HASH = HashingUtils::HashString("MARKETING"); - static const int TRANSACTIONAL_HASH = HashingUtils::HashString("TRANSACTIONAL"); + static constexpr uint32_t MARKETING_HASH = ConstExprHashingUtils::HashString("MARKETING"); + static constexpr uint32_t TRANSACTIONAL_HASH = ConstExprHashingUtils::HashString("TRANSACTIONAL"); MailType GetMailTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MARKETING_HASH) { return MailType::MARKETING; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/Metric.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/Metric.cpp index a18c67d64c3..cf59301eb14 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/Metric.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/Metric.cpp @@ -20,21 +20,21 @@ namespace Aws namespace MetricMapper { - static const int SEND_HASH = HashingUtils::HashString("SEND"); - static const int COMPLAINT_HASH = HashingUtils::HashString("COMPLAINT"); - static const int PERMANENT_BOUNCE_HASH = HashingUtils::HashString("PERMANENT_BOUNCE"); - static const int TRANSIENT_BOUNCE_HASH = HashingUtils::HashString("TRANSIENT_BOUNCE"); - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLICK_HASH = HashingUtils::HashString("CLICK"); - static const int DELIVERY_HASH = HashingUtils::HashString("DELIVERY"); - static const int DELIVERY_OPEN_HASH = HashingUtils::HashString("DELIVERY_OPEN"); - static const int DELIVERY_CLICK_HASH = HashingUtils::HashString("DELIVERY_CLICK"); - static const int DELIVERY_COMPLAINT_HASH = HashingUtils::HashString("DELIVERY_COMPLAINT"); + static constexpr uint32_t SEND_HASH = ConstExprHashingUtils::HashString("SEND"); + static constexpr uint32_t COMPLAINT_HASH = ConstExprHashingUtils::HashString("COMPLAINT"); + static constexpr uint32_t PERMANENT_BOUNCE_HASH = ConstExprHashingUtils::HashString("PERMANENT_BOUNCE"); + static constexpr uint32_t TRANSIENT_BOUNCE_HASH = ConstExprHashingUtils::HashString("TRANSIENT_BOUNCE"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLICK_HASH = ConstExprHashingUtils::HashString("CLICK"); + static constexpr uint32_t DELIVERY_HASH = ConstExprHashingUtils::HashString("DELIVERY"); + static constexpr uint32_t DELIVERY_OPEN_HASH = ConstExprHashingUtils::HashString("DELIVERY_OPEN"); + static constexpr uint32_t DELIVERY_CLICK_HASH = ConstExprHashingUtils::HashString("DELIVERY_CLICK"); + static constexpr uint32_t DELIVERY_COMPLAINT_HASH = ConstExprHashingUtils::HashString("DELIVERY_COMPLAINT"); Metric GetMetricForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SEND_HASH) { return Metric::SEND; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/MetricAggregation.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/MetricAggregation.cpp index 90d048a9291..90eb49a5a3f 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/MetricAggregation.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/MetricAggregation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MetricAggregationMapper { - static const int RATE_HASH = HashingUtils::HashString("RATE"); - static const int VOLUME_HASH = HashingUtils::HashString("VOLUME"); + static constexpr uint32_t RATE_HASH = ConstExprHashingUtils::HashString("RATE"); + static constexpr uint32_t VOLUME_HASH = ConstExprHashingUtils::HashString("VOLUME"); MetricAggregation GetMetricAggregationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RATE_HASH) { return MetricAggregation::RATE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/MetricDimensionName.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/MetricDimensionName.cpp index 05002671739..0e6db2207c3 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/MetricDimensionName.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/MetricDimensionName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MetricDimensionNameMapper { - static const int EMAIL_IDENTITY_HASH = HashingUtils::HashString("EMAIL_IDENTITY"); - static const int CONFIGURATION_SET_HASH = HashingUtils::HashString("CONFIGURATION_SET"); - static const int ISP_HASH = HashingUtils::HashString("ISP"); + static constexpr uint32_t EMAIL_IDENTITY_HASH = ConstExprHashingUtils::HashString("EMAIL_IDENTITY"); + static constexpr uint32_t CONFIGURATION_SET_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_SET"); + static constexpr uint32_t ISP_HASH = ConstExprHashingUtils::HashString("ISP"); MetricDimensionName GetMetricDimensionNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EMAIL_IDENTITY_HASH) { return MetricDimensionName::EMAIL_IDENTITY; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/MetricNamespace.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/MetricNamespace.cpp index 35b8ff1fccb..c5d79a9339b 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/MetricNamespace.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/MetricNamespace.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MetricNamespaceMapper { - static const int VDM_HASH = HashingUtils::HashString("VDM"); + static constexpr uint32_t VDM_HASH = ConstExprHashingUtils::HashString("VDM"); MetricNamespace GetMetricNamespaceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VDM_HASH) { return MetricNamespace::VDM; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/QueryErrorCode.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/QueryErrorCode.cpp index 413a9151337..657e3a6079a 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/QueryErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/QueryErrorCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QueryErrorCodeMapper { - static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t INTERNAL_FAILURE_HASH = ConstExprHashingUtils::HashString("INTERNAL_FAILURE"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); QueryErrorCode GetQueryErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INTERNAL_FAILURE_HASH) { return QueryErrorCode::INTERNAL_FAILURE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationImpact.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationImpact.cpp index 617b4003512..69a9dbbe2eb 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationImpact.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationImpact.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecommendationImpactMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); RecommendationImpact GetRecommendationImpactForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return RecommendationImpact::LOW; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationStatus.cpp index f18e669986d..2263bd84aff 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RecommendationStatusMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int FIXED_HASH = HashingUtils::HashString("FIXED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t FIXED_HASH = ConstExprHashingUtils::HashString("FIXED"); RecommendationStatus GetRecommendationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return RecommendationStatus::OPEN; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationType.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationType.cpp index 3e2c255d7e1..beae925a43d 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationType.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/RecommendationType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RecommendationTypeMapper { - static const int DKIM_HASH = HashingUtils::HashString("DKIM"); - static const int DMARC_HASH = HashingUtils::HashString("DMARC"); - static const int SPF_HASH = HashingUtils::HashString("SPF"); - static const int BIMI_HASH = HashingUtils::HashString("BIMI"); + static constexpr uint32_t DKIM_HASH = ConstExprHashingUtils::HashString("DKIM"); + static constexpr uint32_t DMARC_HASH = ConstExprHashingUtils::HashString("DMARC"); + static constexpr uint32_t SPF_HASH = ConstExprHashingUtils::HashString("SPF"); + static constexpr uint32_t BIMI_HASH = ConstExprHashingUtils::HashString("BIMI"); RecommendationType GetRecommendationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DKIM_HASH) { return RecommendationType::DKIM; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ReviewStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ReviewStatus.cpp index 63b7fbdd940..d1b6fb0bd7b 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ReviewStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ReviewStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReviewStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int GRANTED_HASH = HashingUtils::HashString("GRANTED"); - static const int DENIED_HASH = HashingUtils::HashString("DENIED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t GRANTED_HASH = ConstExprHashingUtils::HashString("GRANTED"); + static constexpr uint32_t DENIED_HASH = ConstExprHashingUtils::HashString("DENIED"); ReviewStatus GetReviewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ReviewStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/ScalingMode.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/ScalingMode.cpp index 93837fe9ab4..960b3998a98 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/ScalingMode.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/ScalingMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScalingModeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t MANAGED_HASH = ConstExprHashingUtils::HashString("MANAGED"); ScalingMode GetScalingModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ScalingMode::STANDARD; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/SubscriptionStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/SubscriptionStatus.cpp index 9ba518c40ff..fc404742c7b 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/SubscriptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/SubscriptionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubscriptionStatusMapper { - static const int OPT_IN_HASH = HashingUtils::HashString("OPT_IN"); - static const int OPT_OUT_HASH = HashingUtils::HashString("OPT_OUT"); + static constexpr uint32_t OPT_IN_HASH = ConstExprHashingUtils::HashString("OPT_IN"); + static constexpr uint32_t OPT_OUT_HASH = ConstExprHashingUtils::HashString("OPT_OUT"); SubscriptionStatus GetSubscriptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPT_IN_HASH) { return SubscriptionStatus::OPT_IN; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListImportAction.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListImportAction.cpp index 56fa80687a8..c95bfada792 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListImportAction.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListImportAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SuppressionListImportActionMapper { - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int PUT_HASH = HashingUtils::HashString("PUT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t PUT_HASH = ConstExprHashingUtils::HashString("PUT"); SuppressionListImportAction GetSuppressionListImportActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELETE__HASH) { return SuppressionListImportAction::DELETE_; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListReason.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListReason.cpp index 495cdaac2eb..5e594bf3828 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListReason.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/SuppressionListReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SuppressionListReasonMapper { - static const int BOUNCE_HASH = HashingUtils::HashString("BOUNCE"); - static const int COMPLAINT_HASH = HashingUtils::HashString("COMPLAINT"); + static constexpr uint32_t BOUNCE_HASH = ConstExprHashingUtils::HashString("BOUNCE"); + static constexpr uint32_t COMPLAINT_HASH = ConstExprHashingUtils::HashString("COMPLAINT"); SuppressionListReason GetSuppressionListReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BOUNCE_HASH) { return SuppressionListReason::BOUNCE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/TlsPolicy.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/TlsPolicy.cpp index 101b2747df8..fecc00e561d 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/TlsPolicy.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/TlsPolicy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TlsPolicyMapper { - static const int REQUIRE_HASH = HashingUtils::HashString("REQUIRE"); - static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static constexpr uint32_t REQUIRE_HASH = ConstExprHashingUtils::HashString("REQUIRE"); + static constexpr uint32_t OPTIONAL_HASH = ConstExprHashingUtils::HashString("OPTIONAL"); TlsPolicy GetTlsPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUIRE_HASH) { return TlsPolicy::REQUIRE; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/VerificationStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/VerificationStatus.cpp index 2f118dd7efa..50ee8bae078 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/VerificationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/VerificationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace VerificationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TEMPORARY_FAILURE_HASH = HashingUtils::HashString("TEMPORARY_FAILURE"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TEMPORARY_FAILURE_HASH = ConstExprHashingUtils::HashString("TEMPORARY_FAILURE"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); VerificationStatus GetVerificationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return VerificationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-sesv2/source/model/WarmupStatus.cpp b/generated/src/aws-cpp-sdk-sesv2/source/model/WarmupStatus.cpp index 85ee2b739c0..870cedeb613 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/model/WarmupStatus.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/model/WarmupStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WarmupStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int DONE_HASH = HashingUtils::HashString("DONE"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t DONE_HASH = ConstExprHashingUtils::HashString("DONE"); WarmupStatus GetWarmupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return WarmupStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-shield/source/ShieldErrors.cpp b/generated/src/aws-cpp-sdk-shield/source/ShieldErrors.cpp index 04949ebbe28..7631f36134e 100644 --- a/generated/src/aws-cpp-sdk-shield/source/ShieldErrors.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/ShieldErrors.cpp @@ -47,22 +47,22 @@ template<> AWS_SHIELD_API InvalidParameterException ShieldError::GetModeledError namespace ShieldErrorMapper { -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalErrorException"); -static const int LOCKED_SUBSCRIPTION_HASH = HashingUtils::HashString("LockedSubscriptionException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int ACCESS_DENIED_FOR_DEPENDENCY_HASH = HashingUtils::HashString("AccessDeniedForDependencyException"); -static const int NO_ASSOCIATED_ROLE_HASH = HashingUtils::HashString("NoAssociatedRoleException"); -static const int LIMITS_EXCEEDED_HASH = HashingUtils::HashString("LimitsExceededException"); -static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException"); -static const int OPTIMISTIC_LOCK_HASH = HashingUtils::HashString("OptimisticLockException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int INVALID_RESOURCE_HASH = HashingUtils::HashString("InvalidResourceException"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalErrorException"); +static constexpr uint32_t LOCKED_SUBSCRIPTION_HASH = ConstExprHashingUtils::HashString("LockedSubscriptionException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t ACCESS_DENIED_FOR_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("AccessDeniedForDependencyException"); +static constexpr uint32_t NO_ASSOCIATED_ROLE_HASH = ConstExprHashingUtils::HashString("NoAssociatedRoleException"); +static constexpr uint32_t LIMITS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitsExceededException"); +static constexpr uint32_t INVALID_PAGINATION_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidPaginationTokenException"); +static constexpr uint32_t OPTIMISTIC_LOCK_HASH = ConstExprHashingUtils::HashString("OptimisticLockException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t INVALID_RESOURCE_HASH = ConstExprHashingUtils::HashString("InvalidResourceException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INTERNAL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-shield/source/model/ApplicationLayerAutomaticResponseStatus.cpp b/generated/src/aws-cpp-sdk-shield/source/model/ApplicationLayerAutomaticResponseStatus.cpp index 59a565caa83..f322da51303 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/ApplicationLayerAutomaticResponseStatus.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/ApplicationLayerAutomaticResponseStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplicationLayerAutomaticResponseStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ApplicationLayerAutomaticResponseStatus GetApplicationLayerAutomaticResponseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ApplicationLayerAutomaticResponseStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/AttackLayer.cpp b/generated/src/aws-cpp-sdk-shield/source/model/AttackLayer.cpp index 8d3b22439cb..02fa7902d23 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/AttackLayer.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/AttackLayer.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AttackLayerMapper { - static const int NETWORK_HASH = HashingUtils::HashString("NETWORK"); - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t NETWORK_HASH = ConstExprHashingUtils::HashString("NETWORK"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); AttackLayer GetAttackLayerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NETWORK_HASH) { return AttackLayer::NETWORK; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/AttackPropertyIdentifier.cpp b/generated/src/aws-cpp-sdk-shield/source/model/AttackPropertyIdentifier.cpp index 28805142add..2a5ce9ae4c9 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/AttackPropertyIdentifier.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/AttackPropertyIdentifier.cpp @@ -20,19 +20,19 @@ namespace Aws namespace AttackPropertyIdentifierMapper { - static const int DESTINATION_URL_HASH = HashingUtils::HashString("DESTINATION_URL"); - static const int REFERRER_HASH = HashingUtils::HashString("REFERRER"); - static const int SOURCE_ASN_HASH = HashingUtils::HashString("SOURCE_ASN"); - static const int SOURCE_COUNTRY_HASH = HashingUtils::HashString("SOURCE_COUNTRY"); - static const int SOURCE_IP_ADDRESS_HASH = HashingUtils::HashString("SOURCE_IP_ADDRESS"); - static const int SOURCE_USER_AGENT_HASH = HashingUtils::HashString("SOURCE_USER_AGENT"); - static const int WORDPRESS_PINGBACK_REFLECTOR_HASH = HashingUtils::HashString("WORDPRESS_PINGBACK_REFLECTOR"); - static const int WORDPRESS_PINGBACK_SOURCE_HASH = HashingUtils::HashString("WORDPRESS_PINGBACK_SOURCE"); + static constexpr uint32_t DESTINATION_URL_HASH = ConstExprHashingUtils::HashString("DESTINATION_URL"); + static constexpr uint32_t REFERRER_HASH = ConstExprHashingUtils::HashString("REFERRER"); + static constexpr uint32_t SOURCE_ASN_HASH = ConstExprHashingUtils::HashString("SOURCE_ASN"); + static constexpr uint32_t SOURCE_COUNTRY_HASH = ConstExprHashingUtils::HashString("SOURCE_COUNTRY"); + static constexpr uint32_t SOURCE_IP_ADDRESS_HASH = ConstExprHashingUtils::HashString("SOURCE_IP_ADDRESS"); + static constexpr uint32_t SOURCE_USER_AGENT_HASH = ConstExprHashingUtils::HashString("SOURCE_USER_AGENT"); + static constexpr uint32_t WORDPRESS_PINGBACK_REFLECTOR_HASH = ConstExprHashingUtils::HashString("WORDPRESS_PINGBACK_REFLECTOR"); + static constexpr uint32_t WORDPRESS_PINGBACK_SOURCE_HASH = ConstExprHashingUtils::HashString("WORDPRESS_PINGBACK_SOURCE"); AttackPropertyIdentifier GetAttackPropertyIdentifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DESTINATION_URL_HASH) { return AttackPropertyIdentifier::DESTINATION_URL; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/AutoRenew.cpp b/generated/src/aws-cpp-sdk-shield/source/model/AutoRenew.cpp index 7f9573d2d26..c683ce2d130 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/AutoRenew.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/AutoRenew.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoRenewMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AutoRenew GetAutoRenewForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutoRenew::ENABLED; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/ProactiveEngagementStatus.cpp b/generated/src/aws-cpp-sdk-shield/source/model/ProactiveEngagementStatus.cpp index 9deca1b87a2..531aa644deb 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/ProactiveEngagementStatus.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/ProactiveEngagementStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProactiveEngagementStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); ProactiveEngagementStatus GetProactiveEngagementStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ProactiveEngagementStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/ProtectedResourceType.cpp b/generated/src/aws-cpp-sdk-shield/source/model/ProtectedResourceType.cpp index 5b9cd4cbdb9..30bda829328 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/ProtectedResourceType.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/ProtectedResourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ProtectedResourceTypeMapper { - static const int CLOUDFRONT_DISTRIBUTION_HASH = HashingUtils::HashString("CLOUDFRONT_DISTRIBUTION"); - static const int ROUTE_53_HOSTED_ZONE_HASH = HashingUtils::HashString("ROUTE_53_HOSTED_ZONE"); - static const int ELASTIC_IP_ALLOCATION_HASH = HashingUtils::HashString("ELASTIC_IP_ALLOCATION"); - static const int CLASSIC_LOAD_BALANCER_HASH = HashingUtils::HashString("CLASSIC_LOAD_BALANCER"); - static const int APPLICATION_LOAD_BALANCER_HASH = HashingUtils::HashString("APPLICATION_LOAD_BALANCER"); - static const int GLOBAL_ACCELERATOR_HASH = HashingUtils::HashString("GLOBAL_ACCELERATOR"); + static constexpr uint32_t CLOUDFRONT_DISTRIBUTION_HASH = ConstExprHashingUtils::HashString("CLOUDFRONT_DISTRIBUTION"); + static constexpr uint32_t ROUTE_53_HOSTED_ZONE_HASH = ConstExprHashingUtils::HashString("ROUTE_53_HOSTED_ZONE"); + static constexpr uint32_t ELASTIC_IP_ALLOCATION_HASH = ConstExprHashingUtils::HashString("ELASTIC_IP_ALLOCATION"); + static constexpr uint32_t CLASSIC_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("CLASSIC_LOAD_BALANCER"); + static constexpr uint32_t APPLICATION_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("APPLICATION_LOAD_BALANCER"); + static constexpr uint32_t GLOBAL_ACCELERATOR_HASH = ConstExprHashingUtils::HashString("GLOBAL_ACCELERATOR"); ProtectedResourceType GetProtectedResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFRONT_DISTRIBUTION_HASH) { return ProtectedResourceType::CLOUDFRONT_DISTRIBUTION; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupAggregation.cpp b/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupAggregation.cpp index 3762a0065d8..e4416757415 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupAggregation.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupAggregation.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProtectionGroupAggregationMapper { - static const int SUM_HASH = HashingUtils::HashString("SUM"); - static const int MEAN_HASH = HashingUtils::HashString("MEAN"); - static const int MAX_HASH = HashingUtils::HashString("MAX"); + static constexpr uint32_t SUM_HASH = ConstExprHashingUtils::HashString("SUM"); + static constexpr uint32_t MEAN_HASH = ConstExprHashingUtils::HashString("MEAN"); + static constexpr uint32_t MAX_HASH = ConstExprHashingUtils::HashString("MAX"); ProtectionGroupAggregation GetProtectionGroupAggregationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUM_HASH) { return ProtectionGroupAggregation::SUM; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupPattern.cpp b/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupPattern.cpp index 62344bb75ca..e12eb9d9034 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupPattern.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/ProtectionGroupPattern.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ProtectionGroupPatternMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ARBITRARY_HASH = HashingUtils::HashString("ARBITRARY"); - static const int BY_RESOURCE_TYPE_HASH = HashingUtils::HashString("BY_RESOURCE_TYPE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ARBITRARY_HASH = ConstExprHashingUtils::HashString("ARBITRARY"); + static constexpr uint32_t BY_RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("BY_RESOURCE_TYPE"); ProtectionGroupPattern GetProtectionGroupPatternForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ProtectionGroupPattern::ALL; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/SubResourceType.cpp b/generated/src/aws-cpp-sdk-shield/source/model/SubResourceType.cpp index c34a3557ba8..d22a1c80b6c 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/SubResourceType.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/SubResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubResourceTypeMapper { - static const int IP_HASH = HashingUtils::HashString("IP"); - static const int URL_HASH = HashingUtils::HashString("URL"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); + static constexpr uint32_t URL_HASH = ConstExprHashingUtils::HashString("URL"); SubResourceType GetSubResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_HASH) { return SubResourceType::IP; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/SubscriptionState.cpp b/generated/src/aws-cpp-sdk-shield/source/model/SubscriptionState.cpp index 00358610983..28235e4fb90 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/SubscriptionState.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/SubscriptionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubscriptionStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); SubscriptionState GetSubscriptionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return SubscriptionState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/Unit.cpp b/generated/src/aws-cpp-sdk-shield/source/model/Unit.cpp index 30c6274b215..05b4a9cb2ae 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/Unit.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/Unit.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UnitMapper { - static const int BITS_HASH = HashingUtils::HashString("BITS"); - static const int BYTES_HASH = HashingUtils::HashString("BYTES"); - static const int PACKETS_HASH = HashingUtils::HashString("PACKETS"); - static const int REQUESTS_HASH = HashingUtils::HashString("REQUESTS"); + static constexpr uint32_t BITS_HASH = ConstExprHashingUtils::HashString("BITS"); + static constexpr uint32_t BYTES_HASH = ConstExprHashingUtils::HashString("BYTES"); + static constexpr uint32_t PACKETS_HASH = ConstExprHashingUtils::HashString("PACKETS"); + static constexpr uint32_t REQUESTS_HASH = ConstExprHashingUtils::HashString("REQUESTS"); Unit GetUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BITS_HASH) { return Unit::BITS; diff --git a/generated/src/aws-cpp-sdk-shield/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-shield/source/model/ValidationExceptionReason.cpp index 92a68a3dda0..9d3810d011e 100644 --- a/generated/src/aws-cpp-sdk-shield/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/model/ValidationExceptionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIELD_VALIDATION_FAILED_HASH) { return ValidationExceptionReason::FIELD_VALIDATION_FAILED; diff --git a/generated/src/aws-cpp-sdk-signer/source/SignerErrors.cpp b/generated/src/aws-cpp-sdk-signer/source/SignerErrors.cpp index 060422515f0..5d276a1de51 100644 --- a/generated/src/aws-cpp-sdk-signer/source/SignerErrors.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/SignerErrors.cpp @@ -89,17 +89,17 @@ template<> AWS_SIGNER_API BadRequestException SignerError::GetModeledError() namespace SignerErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t SERVICE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceLimitExceededException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-signer/source/model/Category.cpp b/generated/src/aws-cpp-sdk-signer/source/model/Category.cpp index 24dcdef9037..bd12e0c57c6 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/Category.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/Category.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CategoryMapper { - static const int AWSIoT_HASH = HashingUtils::HashString("AWSIoT"); + static constexpr uint32_t AWSIoT_HASH = ConstExprHashingUtils::HashString("AWSIoT"); Category GetCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSIoT_HASH) { return Category::AWSIoT; diff --git a/generated/src/aws-cpp-sdk-signer/source/model/EncryptionAlgorithm.cpp b/generated/src/aws-cpp-sdk-signer/source/model/EncryptionAlgorithm.cpp index 04d191ac237..f34a9892854 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/EncryptionAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/EncryptionAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionAlgorithmMapper { - static const int RSA_HASH = HashingUtils::HashString("RSA"); - static const int ECDSA_HASH = HashingUtils::HashString("ECDSA"); + static constexpr uint32_t RSA_HASH = ConstExprHashingUtils::HashString("RSA"); + static constexpr uint32_t ECDSA_HASH = ConstExprHashingUtils::HashString("ECDSA"); EncryptionAlgorithm GetEncryptionAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RSA_HASH) { return EncryptionAlgorithm::RSA; diff --git a/generated/src/aws-cpp-sdk-signer/source/model/HashAlgorithm.cpp b/generated/src/aws-cpp-sdk-signer/source/model/HashAlgorithm.cpp index 8e80d3d8f7a..b7da47ded87 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/HashAlgorithm.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/HashAlgorithm.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HashAlgorithmMapper { - static const int SHA1_HASH = HashingUtils::HashString("SHA1"); - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); + static constexpr uint32_t SHA1_HASH = ConstExprHashingUtils::HashString("SHA1"); + static constexpr uint32_t SHA256_HASH = ConstExprHashingUtils::HashString("SHA256"); HashAlgorithm GetHashAlgorithmForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHA1_HASH) { return HashAlgorithm::SHA1; diff --git a/generated/src/aws-cpp-sdk-signer/source/model/ImageFormat.cpp b/generated/src/aws-cpp-sdk-signer/source/model/ImageFormat.cpp index f9931db64db..900f6b55917 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/ImageFormat.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/ImageFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImageFormatMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int JSONEmbedded_HASH = HashingUtils::HashString("JSONEmbedded"); - static const int JSONDetached_HASH = HashingUtils::HashString("JSONDetached"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t JSONEmbedded_HASH = ConstExprHashingUtils::HashString("JSONEmbedded"); + static constexpr uint32_t JSONDetached_HASH = ConstExprHashingUtils::HashString("JSONDetached"); ImageFormat GetImageFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return ImageFormat::JSON; diff --git a/generated/src/aws-cpp-sdk-signer/source/model/SigningProfileStatus.cpp b/generated/src/aws-cpp-sdk-signer/source/model/SigningProfileStatus.cpp index 66096ae939f..d4fa1a5a46e 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/SigningProfileStatus.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/SigningProfileStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SigningProfileStatusMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Canceled_HASH = HashingUtils::HashString("Canceled"); - static const int Revoked_HASH = HashingUtils::HashString("Revoked"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Canceled_HASH = ConstExprHashingUtils::HashString("Canceled"); + static constexpr uint32_t Revoked_HASH = ConstExprHashingUtils::HashString("Revoked"); SigningProfileStatus GetSigningProfileStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return SigningProfileStatus::Active; diff --git a/generated/src/aws-cpp-sdk-signer/source/model/SigningStatus.cpp b/generated/src/aws-cpp-sdk-signer/source/model/SigningStatus.cpp index 04a4e86eba2..6923019ff8e 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/SigningStatus.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/SigningStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SigningStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); SigningStatus GetSigningStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return SigningStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-signer/source/model/ValidityType.cpp b/generated/src/aws-cpp-sdk-signer/source/model/ValidityType.cpp index a7d24f7f360..bc899b1d6fd 100644 --- a/generated/src/aws-cpp-sdk-signer/source/model/ValidityType.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/model/ValidityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ValidityTypeMapper { - static const int DAYS_HASH = HashingUtils::HashString("DAYS"); - static const int MONTHS_HASH = HashingUtils::HashString("MONTHS"); - static const int YEARS_HASH = HashingUtils::HashString("YEARS"); + static constexpr uint32_t DAYS_HASH = ConstExprHashingUtils::HashString("DAYS"); + static constexpr uint32_t MONTHS_HASH = ConstExprHashingUtils::HashString("MONTHS"); + static constexpr uint32_t YEARS_HASH = ConstExprHashingUtils::HashString("YEARS"); ValidityType GetValidityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DAYS_HASH) { return ValidityType::DAYS; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/SimSpaceWeaverErrors.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/SimSpaceWeaverErrors.cpp index bef6364e84e..065da205601 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/SimSpaceWeaverErrors.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/SimSpaceWeaverErrors.cpp @@ -18,15 +18,15 @@ namespace SimSpaceWeaver namespace SimSpaceWeaverErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockStatus.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockStatus.cpp index 0b912ee5fc3..8f952eefbd7 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockStatus.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ClockStatusMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); ClockStatus GetClockStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return ClockStatus::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockTargetStatus.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockTargetStatus.cpp index b358f96a2b5..773b45f6af4 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockTargetStatus.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/ClockTargetStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ClockTargetStatusMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); ClockTargetStatus GetClockTargetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return ClockTargetStatus::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/LifecycleManagementStrategy.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/LifecycleManagementStrategy.cpp index 922bd08c096..e8472c72454 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/LifecycleManagementStrategy.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/LifecycleManagementStrategy.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LifecycleManagementStrategyMapper { - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); - static const int PerWorker_HASH = HashingUtils::HashString("PerWorker"); - static const int BySpatialSubdivision_HASH = HashingUtils::HashString("BySpatialSubdivision"); - static const int ByRequest_HASH = HashingUtils::HashString("ByRequest"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); + static constexpr uint32_t PerWorker_HASH = ConstExprHashingUtils::HashString("PerWorker"); + static constexpr uint32_t BySpatialSubdivision_HASH = ConstExprHashingUtils::HashString("BySpatialSubdivision"); + static constexpr uint32_t ByRequest_HASH = ConstExprHashingUtils::HashString("ByRequest"); LifecycleManagementStrategy GetLifecycleManagementStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Unknown_HASH) { return LifecycleManagementStrategy::Unknown; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppStatus.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppStatus.cpp index aebf512ebd0..474cb9ae5ef 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppStatus.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SimulationAppStatusMapper { - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); SimulationAppStatus GetSimulationAppStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTING_HASH) { return SimulationAppStatus::STARTING; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppTargetStatus.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppTargetStatus.cpp index c64c9963bd3..f8b0ce4acc6 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppTargetStatus.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationAppTargetStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SimulationAppTargetStatusMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); SimulationAppTargetStatus GetSimulationAppTargetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return SimulationAppTargetStatus::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationStatus.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationStatus.cpp index 16776b133bc..8f08ced826d 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationStatus.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationStatus.cpp @@ -20,20 +20,20 @@ namespace Aws namespace SimulationStatusMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int SNAPSHOT_IN_PROGRESS_HASH = HashingUtils::HashString("SNAPSHOT_IN_PROGRESS"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t SNAPSHOT_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_IN_PROGRESS"); SimulationStatus GetSimulationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return SimulationStatus::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationTargetStatus.cpp b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationTargetStatus.cpp index 6dc717cd67f..0e0fd00bd3f 100644 --- a/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationTargetStatus.cpp +++ b/generated/src/aws-cpp-sdk-simspaceweaver/source/model/SimulationTargetStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SimulationTargetStatusMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); SimulationTargetStatus GetSimulationTargetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return SimulationTargetStatus::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceErrors.cpp b/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceErrors.cpp index 72027b04ae7..8989d9714a6 100644 --- a/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceErrors.cpp @@ -18,17 +18,17 @@ namespace PinpointSMSVoice namespace PinpointSMSVoiceErrorMapper { -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t INTERNAL_SERVICE_ERROR_HASH = ConstExprHashingUtils::HashString("InternalServiceErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-sms-voice/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-sms-voice/source/model/EventType.cpp index ac36551d488..0cfee9b57ad 100644 --- a/generated/src/aws-cpp-sdk-sms-voice/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-sms-voice/source/model/EventType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace EventTypeMapper { - static const int INITIATED_CALL_HASH = HashingUtils::HashString("INITIATED_CALL"); - static const int RINGING_HASH = HashingUtils::HashString("RINGING"); - static const int ANSWERED_HASH = HashingUtils::HashString("ANSWERED"); - static const int COMPLETED_CALL_HASH = HashingUtils::HashString("COMPLETED_CALL"); - static const int BUSY_HASH = HashingUtils::HashString("BUSY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int NO_ANSWER_HASH = HashingUtils::HashString("NO_ANSWER"); + static constexpr uint32_t INITIATED_CALL_HASH = ConstExprHashingUtils::HashString("INITIATED_CALL"); + static constexpr uint32_t RINGING_HASH = ConstExprHashingUtils::HashString("RINGING"); + static constexpr uint32_t ANSWERED_HASH = ConstExprHashingUtils::HashString("ANSWERED"); + static constexpr uint32_t COMPLETED_CALL_HASH = ConstExprHashingUtils::HashString("COMPLETED_CALL"); + static constexpr uint32_t BUSY_HASH = ConstExprHashingUtils::HashString("BUSY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t NO_ANSWER_HASH = ConstExprHashingUtils::HashString("NO_ANSWER"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIATED_CALL_HASH) { return EventType::INITIATED_CALL; diff --git a/generated/src/aws-cpp-sdk-sms/source/SMSErrors.cpp b/generated/src/aws-cpp-sdk-sms/source/SMSErrors.cpp index d715f799f43..4871d44196d 100644 --- a/generated/src/aws-cpp-sdk-sms/source/SMSErrors.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/SMSErrors.cpp @@ -18,22 +18,22 @@ namespace SMS namespace SMSErrorMapper { -static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OperationNotPermittedException"); -static const int REPLICATION_RUN_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ReplicationRunLimitExceededException"); -static const int NO_CONNECTORS_AVAILABLE_HASH = HashingUtils::HashString("NoConnectorsAvailableException"); -static const int MISSING_REQUIRED_PARAMETER_HASH = HashingUtils::HashString("MissingRequiredParameterException"); -static const int SERVER_CANNOT_BE_REPLICATED_HASH = HashingUtils::HashString("ServerCannotBeReplicatedException"); -static const int TEMPORARILY_UNAVAILABLE_HASH = HashingUtils::HashString("TemporarilyUnavailableException"); -static const int UNAUTHORIZED_OPERATION_HASH = HashingUtils::HashString("UnauthorizedOperationException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int REPLICATION_JOB_ALREADY_EXISTS_HASH = HashingUtils::HashString("ReplicationJobAlreadyExistsException"); -static const int DRY_RUN_OPERATION_HASH = HashingUtils::HashString("DryRunOperationException"); -static const int REPLICATION_JOB_NOT_FOUND_HASH = HashingUtils::HashString("ReplicationJobNotFoundException"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OperationNotPermittedException"); +static constexpr uint32_t REPLICATION_RUN_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ReplicationRunLimitExceededException"); +static constexpr uint32_t NO_CONNECTORS_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NoConnectorsAvailableException"); +static constexpr uint32_t MISSING_REQUIRED_PARAMETER_HASH = ConstExprHashingUtils::HashString("MissingRequiredParameterException"); +static constexpr uint32_t SERVER_CANNOT_BE_REPLICATED_HASH = ConstExprHashingUtils::HashString("ServerCannotBeReplicatedException"); +static constexpr uint32_t TEMPORARILY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("TemporarilyUnavailableException"); +static constexpr uint32_t UNAUTHORIZED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnauthorizedOperationException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t REPLICATION_JOB_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ReplicationJobAlreadyExistsException"); +static constexpr uint32_t DRY_RUN_OPERATION_HASH = ConstExprHashingUtils::HashString("DryRunOperationException"); +static constexpr uint32_t REPLICATION_JOB_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ReplicationJobNotFoundException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == OPERATION_NOT_PERMITTED_HASH) { diff --git a/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchConfigurationStatus.cpp index 911b1b40587..5cfecda6c36 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppLaunchConfigurationStatusMapper { - static const int NOT_CONFIGURED_HASH = HashingUtils::HashString("NOT_CONFIGURED"); - static const int CONFIGURED_HASH = HashingUtils::HashString("CONFIGURED"); + static constexpr uint32_t NOT_CONFIGURED_HASH = ConstExprHashingUtils::HashString("NOT_CONFIGURED"); + static constexpr uint32_t CONFIGURED_HASH = ConstExprHashingUtils::HashString("CONFIGURED"); AppLaunchConfigurationStatus GetAppLaunchConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_CONFIGURED_HASH) { return AppLaunchConfigurationStatus::NOT_CONFIGURED; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchStatus.cpp index aad9399214a..dfa0826a5aa 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/AppLaunchStatus.cpp @@ -20,26 +20,26 @@ namespace Aws namespace AppLaunchStatusMapper { - static const int READY_FOR_CONFIGURATION_HASH = HashingUtils::HashString("READY_FOR_CONFIGURATION"); - static const int CONFIGURATION_IN_PROGRESS_HASH = HashingUtils::HashString("CONFIGURATION_IN_PROGRESS"); - static const int CONFIGURATION_INVALID_HASH = HashingUtils::HashString("CONFIGURATION_INVALID"); - static const int READY_FOR_LAUNCH_HASH = HashingUtils::HashString("READY_FOR_LAUNCH"); - static const int VALIDATION_IN_PROGRESS_HASH = HashingUtils::HashString("VALIDATION_IN_PROGRESS"); - static const int LAUNCH_PENDING_HASH = HashingUtils::HashString("LAUNCH_PENDING"); - static const int LAUNCH_IN_PROGRESS_HASH = HashingUtils::HashString("LAUNCH_IN_PROGRESS"); - static const int LAUNCHED_HASH = HashingUtils::HashString("LAUNCHED"); - static const int PARTIALLY_LAUNCHED_HASH = HashingUtils::HashString("PARTIALLY_LAUNCHED"); - static const int DELTA_LAUNCH_IN_PROGRESS_HASH = HashingUtils::HashString("DELTA_LAUNCH_IN_PROGRESS"); - static const int DELTA_LAUNCH_FAILED_HASH = HashingUtils::HashString("DELTA_LAUNCH_FAILED"); - static const int LAUNCH_FAILED_HASH = HashingUtils::HashString("LAUNCH_FAILED"); - static const int TERMINATE_IN_PROGRESS_HASH = HashingUtils::HashString("TERMINATE_IN_PROGRESS"); - static const int TERMINATE_FAILED_HASH = HashingUtils::HashString("TERMINATE_FAILED"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); + static constexpr uint32_t READY_FOR_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("READY_FOR_CONFIGURATION"); + static constexpr uint32_t CONFIGURATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_IN_PROGRESS"); + static constexpr uint32_t CONFIGURATION_INVALID_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_INVALID"); + static constexpr uint32_t READY_FOR_LAUNCH_HASH = ConstExprHashingUtils::HashString("READY_FOR_LAUNCH"); + static constexpr uint32_t VALIDATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("VALIDATION_IN_PROGRESS"); + static constexpr uint32_t LAUNCH_PENDING_HASH = ConstExprHashingUtils::HashString("LAUNCH_PENDING"); + static constexpr uint32_t LAUNCH_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("LAUNCH_IN_PROGRESS"); + static constexpr uint32_t LAUNCHED_HASH = ConstExprHashingUtils::HashString("LAUNCHED"); + static constexpr uint32_t PARTIALLY_LAUNCHED_HASH = ConstExprHashingUtils::HashString("PARTIALLY_LAUNCHED"); + static constexpr uint32_t DELTA_LAUNCH_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELTA_LAUNCH_IN_PROGRESS"); + static constexpr uint32_t DELTA_LAUNCH_FAILED_HASH = ConstExprHashingUtils::HashString("DELTA_LAUNCH_FAILED"); + static constexpr uint32_t LAUNCH_FAILED_HASH = ConstExprHashingUtils::HashString("LAUNCH_FAILED"); + static constexpr uint32_t TERMINATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TERMINATE_IN_PROGRESS"); + static constexpr uint32_t TERMINATE_FAILED_HASH = ConstExprHashingUtils::HashString("TERMINATE_FAILED"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); AppLaunchStatus GetAppLaunchStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_FOR_CONFIGURATION_HASH) { return AppLaunchStatus::READY_FOR_CONFIGURATION; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationConfigurationStatus.cpp index 786ebb969f9..1acf56bc81f 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationConfigurationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AppReplicationConfigurationStatusMapper { - static const int NOT_CONFIGURED_HASH = HashingUtils::HashString("NOT_CONFIGURED"); - static const int CONFIGURED_HASH = HashingUtils::HashString("CONFIGURED"); + static constexpr uint32_t NOT_CONFIGURED_HASH = ConstExprHashingUtils::HashString("NOT_CONFIGURED"); + static constexpr uint32_t CONFIGURED_HASH = ConstExprHashingUtils::HashString("CONFIGURED"); AppReplicationConfigurationStatus GetAppReplicationConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_CONFIGURED_HASH) { return AppReplicationConfigurationStatus::NOT_CONFIGURED; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationStatus.cpp index b0a4c33b496..000e744d54e 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/AppReplicationStatus.cpp @@ -20,27 +20,27 @@ namespace Aws namespace AppReplicationStatusMapper { - static const int READY_FOR_CONFIGURATION_HASH = HashingUtils::HashString("READY_FOR_CONFIGURATION"); - static const int CONFIGURATION_IN_PROGRESS_HASH = HashingUtils::HashString("CONFIGURATION_IN_PROGRESS"); - static const int CONFIGURATION_INVALID_HASH = HashingUtils::HashString("CONFIGURATION_INVALID"); - static const int READY_FOR_REPLICATION_HASH = HashingUtils::HashString("READY_FOR_REPLICATION"); - static const int VALIDATION_IN_PROGRESS_HASH = HashingUtils::HashString("VALIDATION_IN_PROGRESS"); - static const int REPLICATION_PENDING_HASH = HashingUtils::HashString("REPLICATION_PENDING"); - static const int REPLICATION_IN_PROGRESS_HASH = HashingUtils::HashString("REPLICATION_IN_PROGRESS"); - static const int REPLICATED_HASH = HashingUtils::HashString("REPLICATED"); - static const int PARTIALLY_REPLICATED_HASH = HashingUtils::HashString("PARTIALLY_REPLICATED"); - static const int DELTA_REPLICATION_IN_PROGRESS_HASH = HashingUtils::HashString("DELTA_REPLICATION_IN_PROGRESS"); - static const int DELTA_REPLICATED_HASH = HashingUtils::HashString("DELTA_REPLICATED"); - static const int DELTA_REPLICATION_FAILED_HASH = HashingUtils::HashString("DELTA_REPLICATION_FAILED"); - static const int REPLICATION_FAILED_HASH = HashingUtils::HashString("REPLICATION_FAILED"); - static const int REPLICATION_STOPPING_HASH = HashingUtils::HashString("REPLICATION_STOPPING"); - static const int REPLICATION_STOP_FAILED_HASH = HashingUtils::HashString("REPLICATION_STOP_FAILED"); - static const int REPLICATION_STOPPED_HASH = HashingUtils::HashString("REPLICATION_STOPPED"); + static constexpr uint32_t READY_FOR_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("READY_FOR_CONFIGURATION"); + static constexpr uint32_t CONFIGURATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_IN_PROGRESS"); + static constexpr uint32_t CONFIGURATION_INVALID_HASH = ConstExprHashingUtils::HashString("CONFIGURATION_INVALID"); + static constexpr uint32_t READY_FOR_REPLICATION_HASH = ConstExprHashingUtils::HashString("READY_FOR_REPLICATION"); + static constexpr uint32_t VALIDATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("VALIDATION_IN_PROGRESS"); + static constexpr uint32_t REPLICATION_PENDING_HASH = ConstExprHashingUtils::HashString("REPLICATION_PENDING"); + static constexpr uint32_t REPLICATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("REPLICATION_IN_PROGRESS"); + static constexpr uint32_t REPLICATED_HASH = ConstExprHashingUtils::HashString("REPLICATED"); + static constexpr uint32_t PARTIALLY_REPLICATED_HASH = ConstExprHashingUtils::HashString("PARTIALLY_REPLICATED"); + static constexpr uint32_t DELTA_REPLICATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELTA_REPLICATION_IN_PROGRESS"); + static constexpr uint32_t DELTA_REPLICATED_HASH = ConstExprHashingUtils::HashString("DELTA_REPLICATED"); + static constexpr uint32_t DELTA_REPLICATION_FAILED_HASH = ConstExprHashingUtils::HashString("DELTA_REPLICATION_FAILED"); + static constexpr uint32_t REPLICATION_FAILED_HASH = ConstExprHashingUtils::HashString("REPLICATION_FAILED"); + static constexpr uint32_t REPLICATION_STOPPING_HASH = ConstExprHashingUtils::HashString("REPLICATION_STOPPING"); + static constexpr uint32_t REPLICATION_STOP_FAILED_HASH = ConstExprHashingUtils::HashString("REPLICATION_STOP_FAILED"); + static constexpr uint32_t REPLICATION_STOPPED_HASH = ConstExprHashingUtils::HashString("REPLICATION_STOPPED"); AppReplicationStatus GetAppReplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_FOR_CONFIGURATION_HASH) { return AppReplicationStatus::READY_FOR_CONFIGURATION; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/AppStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/AppStatus.cpp index 26100bc0ca3..6081fc5541e 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/AppStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/AppStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AppStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); AppStatus GetAppStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return AppStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/AppValidationStrategy.cpp b/generated/src/aws-cpp-sdk-sms/source/model/AppValidationStrategy.cpp index 61db9b2adb6..fd80b83e636 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/AppValidationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/AppValidationStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AppValidationStrategyMapper { - static const int SSM_HASH = HashingUtils::HashString("SSM"); + static constexpr uint32_t SSM_HASH = ConstExprHashingUtils::HashString("SSM"); AppValidationStrategy GetAppValidationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSM_HASH) { return AppValidationStrategy::SSM; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ConnectorCapability.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ConnectorCapability.cpp index 61f520bdbd6..30a113b86d2 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ConnectorCapability.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ConnectorCapability.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ConnectorCapabilityMapper { - static const int VSPHERE_HASH = HashingUtils::HashString("VSPHERE"); - static const int SCVMM_HASH = HashingUtils::HashString("SCVMM"); - static const int HYPERV_MANAGER_HASH = HashingUtils::HashString("HYPERV-MANAGER"); - static const int SNAPSHOT_BATCHING_HASH = HashingUtils::HashString("SNAPSHOT_BATCHING"); - static const int SMS_OPTIMIZED_HASH = HashingUtils::HashString("SMS_OPTIMIZED"); + static constexpr uint32_t VSPHERE_HASH = ConstExprHashingUtils::HashString("VSPHERE"); + static constexpr uint32_t SCVMM_HASH = ConstExprHashingUtils::HashString("SCVMM"); + static constexpr uint32_t HYPERV_MANAGER_HASH = ConstExprHashingUtils::HashString("HYPERV-MANAGER"); + static constexpr uint32_t SNAPSHOT_BATCHING_HASH = ConstExprHashingUtils::HashString("SNAPSHOT_BATCHING"); + static constexpr uint32_t SMS_OPTIMIZED_HASH = ConstExprHashingUtils::HashString("SMS_OPTIMIZED"); ConnectorCapability GetConnectorCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VSPHERE_HASH) { return ConnectorCapability::VSPHERE; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ConnectorStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ConnectorStatus.cpp index 8118a2ef876..f4c6ef124f1 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ConnectorStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ConnectorStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectorStatusMapper { - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); ConnectorStatus GetConnectorStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HEALTHY_HASH) { return ConnectorStatus::HEALTHY; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/LicenseType.cpp b/generated/src/aws-cpp-sdk-sms/source/model/LicenseType.cpp index 68f511c9382..5ae63ba8726 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/LicenseType.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/LicenseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LicenseTypeMapper { - static const int AWS_HASH = HashingUtils::HashString("AWS"); - static const int BYOL_HASH = HashingUtils::HashString("BYOL"); + static constexpr uint32_t AWS_HASH = ConstExprHashingUtils::HashString("AWS"); + static constexpr uint32_t BYOL_HASH = ConstExprHashingUtils::HashString("BYOL"); LicenseType GetLicenseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_HASH) { return LicenseType::AWS; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/OutputFormat.cpp b/generated/src/aws-cpp-sdk-sms/source/model/OutputFormat.cpp index 17f68d688d1..c427b3d0dc3 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/OutputFormat.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/OutputFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutputFormatMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int YAML_HASH = HashingUtils::HashString("YAML"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t YAML_HASH = ConstExprHashingUtils::HashString("YAML"); OutputFormat GetOutputFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return OutputFormat::JSON; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ReplicationJobState.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ReplicationJobState.cpp index 6ce1c821d88..863aed69560 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ReplicationJobState.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ReplicationJobState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ReplicationJobStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int PAUSED_ON_FAILURE_HASH = HashingUtils::HashString("PAUSED_ON_FAILURE"); - static const int FAILING_HASH = HashingUtils::HashString("FAILING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t PAUSED_ON_FAILURE_HASH = ConstExprHashingUtils::HashString("PAUSED_ON_FAILURE"); + static constexpr uint32_t FAILING_HASH = ConstExprHashingUtils::HashString("FAILING"); ReplicationJobState GetReplicationJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ReplicationJobState::PENDING; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunState.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunState.cpp index b422fa7d0d9..fb18def2257 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunState.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ReplicationRunStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int MISSED_HASH = HashingUtils::HashString("MISSED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t MISSED_HASH = ConstExprHashingUtils::HashString("MISSED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); ReplicationRunState GetReplicationRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return ReplicationRunState::PENDING; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunType.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunType.cpp index 1f5168eff9d..7c6bea43c7b 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunType.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ReplicationRunType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReplicationRunTypeMapper { - static const int ON_DEMAND_HASH = HashingUtils::HashString("ON_DEMAND"); - static const int AUTOMATIC_HASH = HashingUtils::HashString("AUTOMATIC"); + static constexpr uint32_t ON_DEMAND_HASH = ConstExprHashingUtils::HashString("ON_DEMAND"); + static constexpr uint32_t AUTOMATIC_HASH = ConstExprHashingUtils::HashString("AUTOMATIC"); ReplicationRunType GetReplicationRunTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ON_DEMAND_HASH) { return ReplicationRunType::ON_DEMAND; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ScriptType.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ScriptType.cpp index c4b8358b6d3..5da13ba2b5d 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ScriptType.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ScriptType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScriptTypeMapper { - static const int SHELL_SCRIPT_HASH = HashingUtils::HashString("SHELL_SCRIPT"); - static const int POWERSHELL_SCRIPT_HASH = HashingUtils::HashString("POWERSHELL_SCRIPT"); + static constexpr uint32_t SHELL_SCRIPT_HASH = ConstExprHashingUtils::HashString("SHELL_SCRIPT"); + static constexpr uint32_t POWERSHELL_SCRIPT_HASH = ConstExprHashingUtils::HashString("POWERSHELL_SCRIPT"); ScriptType GetScriptTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHELL_SCRIPT_HASH) { return ScriptType::SHELL_SCRIPT; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ServerCatalogStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ServerCatalogStatus.cpp index 162f2dc8f56..40480171b97 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ServerCatalogStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ServerCatalogStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServerCatalogStatusMapper { - static const int NOT_IMPORTED_HASH = HashingUtils::HashString("NOT_IMPORTED"); - static const int IMPORTING_HASH = HashingUtils::HashString("IMPORTING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + static constexpr uint32_t NOT_IMPORTED_HASH = ConstExprHashingUtils::HashString("NOT_IMPORTED"); + static constexpr uint32_t IMPORTING_HASH = ConstExprHashingUtils::HashString("IMPORTING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); ServerCatalogStatus GetServerCatalogStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_IMPORTED_HASH) { return ServerCatalogStatus::NOT_IMPORTED; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ServerType.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ServerType.cpp index 7ce31cbe2b9..f02bb15c3ab 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ServerType.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ServerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServerTypeMapper { - static const int VIRTUAL_MACHINE_HASH = HashingUtils::HashString("VIRTUAL_MACHINE"); + static constexpr uint32_t VIRTUAL_MACHINE_HASH = ConstExprHashingUtils::HashString("VIRTUAL_MACHINE"); ServerType GetServerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIRTUAL_MACHINE_HASH) { return ServerType::VIRTUAL_MACHINE; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ServerValidationStrategy.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ServerValidationStrategy.cpp index 86e1904c68c..017c262ae5d 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ServerValidationStrategy.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ServerValidationStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServerValidationStrategyMapper { - static const int USERDATA_HASH = HashingUtils::HashString("USERDATA"); + static constexpr uint32_t USERDATA_HASH = ConstExprHashingUtils::HashString("USERDATA"); ServerValidationStrategy GetServerValidationStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USERDATA_HASH) { return ServerValidationStrategy::USERDATA; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/ValidationStatus.cpp b/generated/src/aws-cpp-sdk-sms/source/model/ValidationStatus.cpp index 15eecd261ff..c2749ccc52c 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/ValidationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/ValidationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ValidationStatusMapper { - static const int READY_FOR_VALIDATION_HASH = HashingUtils::HashString("READY_FOR_VALIDATION"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t READY_FOR_VALIDATION_HASH = ConstExprHashingUtils::HashString("READY_FOR_VALIDATION"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ValidationStatus GetValidationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READY_FOR_VALIDATION_HASH) { return ValidationStatus::READY_FOR_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-sms/source/model/VmManagerType.cpp b/generated/src/aws-cpp-sdk-sms/source/model/VmManagerType.cpp index d2b53f0875e..d777ec3b2c7 100644 --- a/generated/src/aws-cpp-sdk-sms/source/model/VmManagerType.cpp +++ b/generated/src/aws-cpp-sdk-sms/source/model/VmManagerType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VmManagerTypeMapper { - static const int VSPHERE_HASH = HashingUtils::HashString("VSPHERE"); - static const int SCVMM_HASH = HashingUtils::HashString("SCVMM"); - static const int HYPERV_MANAGER_HASH = HashingUtils::HashString("HYPERV-MANAGER"); + static constexpr uint32_t VSPHERE_HASH = ConstExprHashingUtils::HashString("VSPHERE"); + static constexpr uint32_t SCVMM_HASH = ConstExprHashingUtils::HashString("SCVMM"); + static constexpr uint32_t HYPERV_MANAGER_HASH = ConstExprHashingUtils::HashString("HYPERV-MANAGER"); VmManagerType GetVmManagerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VSPHERE_HASH) { return VmManagerType::VSPHERE; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementErrors.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementErrors.cpp index 44093a91c8a..f7b2b5c5516 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementErrors.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementErrors.cpp @@ -18,13 +18,13 @@ namespace SnowDeviceManagement namespace SnowDeviceManagementErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/AttachmentStatus.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/AttachmentStatus.cpp index 9c6bed2fd0f..e3168fa94de 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/AttachmentStatus.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/AttachmentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace AttachmentStatusMapper { - static const int ATTACHING_HASH = HashingUtils::HashString("ATTACHING"); - static const int ATTACHED_HASH = HashingUtils::HashString("ATTACHED"); - static const int DETACHING_HASH = HashingUtils::HashString("DETACHING"); - static const int DETACHED_HASH = HashingUtils::HashString("DETACHED"); + static constexpr uint32_t ATTACHING_HASH = ConstExprHashingUtils::HashString("ATTACHING"); + static constexpr uint32_t ATTACHED_HASH = ConstExprHashingUtils::HashString("ATTACHED"); + static constexpr uint32_t DETACHING_HASH = ConstExprHashingUtils::HashString("DETACHING"); + static constexpr uint32_t DETACHED_HASH = ConstExprHashingUtils::HashString("DETACHED"); AttachmentStatus GetAttachmentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ATTACHING_HASH) { return AttachmentStatus::ATTACHING; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/ExecutionState.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/ExecutionState.cpp index ea34eff29f6..5c4810ab7b3 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/ExecutionState.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/ExecutionState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ExecutionStateMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); ExecutionState GetExecutionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return ExecutionState::QUEUED; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/InstanceStateName.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/InstanceStateName.cpp index 1a6fa4cf0b3..97371c07e1b 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/InstanceStateName.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/InstanceStateName.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InstanceStateNameMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SHUTTING_DOWN_HASH = HashingUtils::HashString("SHUTTING_DOWN"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SHUTTING_DOWN_HASH = ConstExprHashingUtils::HashString("SHUTTING_DOWN"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); InstanceStateName GetInstanceStateNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return InstanceStateName::PENDING; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/IpAddressAssignment.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/IpAddressAssignment.cpp index 8906a904611..f23af79dc86 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/IpAddressAssignment.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/IpAddressAssignment.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpAddressAssignmentMapper { - static const int DHCP_HASH = HashingUtils::HashString("DHCP"); - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static constexpr uint32_t DHCP_HASH = ConstExprHashingUtils::HashString("DHCP"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); IpAddressAssignment GetIpAddressAssignmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DHCP_HASH) { return IpAddressAssignment::DHCP; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/PhysicalConnectorType.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/PhysicalConnectorType.cpp index 9eec3996f98..906774dcc1d 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/PhysicalConnectorType.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/PhysicalConnectorType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PhysicalConnectorTypeMapper { - static const int RJ45_HASH = HashingUtils::HashString("RJ45"); - static const int SFP_PLUS_HASH = HashingUtils::HashString("SFP_PLUS"); - static const int QSFP_HASH = HashingUtils::HashString("QSFP"); - static const int RJ45_2_HASH = HashingUtils::HashString("RJ45_2"); - static const int WIFI_HASH = HashingUtils::HashString("WIFI"); + static constexpr uint32_t RJ45_HASH = ConstExprHashingUtils::HashString("RJ45"); + static constexpr uint32_t SFP_PLUS_HASH = ConstExprHashingUtils::HashString("SFP_PLUS"); + static constexpr uint32_t QSFP_HASH = ConstExprHashingUtils::HashString("QSFP"); + static constexpr uint32_t RJ45_2_HASH = ConstExprHashingUtils::HashString("RJ45_2"); + static constexpr uint32_t WIFI_HASH = ConstExprHashingUtils::HashString("WIFI"); PhysicalConnectorType GetPhysicalConnectorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RJ45_HASH) { return PhysicalConnectorType::RJ45; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/TaskState.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/TaskState.cpp index 7ae145670e3..746c6f7a401 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/TaskState.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/TaskState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TaskStateMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); TaskState GetTaskStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return TaskState::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/model/UnlockState.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/model/UnlockState.cpp index d90d04d5ca7..baaaef66649 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/model/UnlockState.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/model/UnlockState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UnlockStateMapper { - static const int UNLOCKED_HASH = HashingUtils::HashString("UNLOCKED"); - static const int LOCKED_HASH = HashingUtils::HashString("LOCKED"); - static const int UNLOCKING_HASH = HashingUtils::HashString("UNLOCKING"); + static constexpr uint32_t UNLOCKED_HASH = ConstExprHashingUtils::HashString("UNLOCKED"); + static constexpr uint32_t LOCKED_HASH = ConstExprHashingUtils::HashString("LOCKED"); + static constexpr uint32_t UNLOCKING_HASH = ConstExprHashingUtils::HashString("UNLOCKING"); UnlockState GetUnlockStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNLOCKED_HASH) { return UnlockState::UNLOCKED; diff --git a/generated/src/aws-cpp-sdk-snowball/source/SnowballErrors.cpp b/generated/src/aws-cpp-sdk-snowball/source/SnowballErrors.cpp index 0f5cebbbd5e..a23d34a266e 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/SnowballErrors.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/SnowballErrors.cpp @@ -33,22 +33,22 @@ template<> AWS_SNOWBALL_API InvalidResourceException SnowballError::GetModeledEr namespace SnowballErrorMapper { -static const int CLUSTER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ClusterLimitExceededException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INVALID_ADDRESS_HASH = HashingUtils::HashString("InvalidAddressException"); -static const int INVALID_JOB_STATE_HASH = HashingUtils::HashString("InvalidJobStateException"); -static const int K_M_S_REQUEST_FAILED_HASH = HashingUtils::HashString("KMSRequestFailedException"); -static const int EC2_REQUEST_FAILED_HASH = HashingUtils::HashString("Ec2RequestFailedException"); -static const int INVALID_INPUT_COMBINATION_HASH = HashingUtils::HashString("InvalidInputCombinationException"); -static const int UNSUPPORTED_ADDRESS_HASH = HashingUtils::HashString("UnsupportedAddressException"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); -static const int INVALID_RESOURCE_HASH = HashingUtils::HashString("InvalidResourceException"); -static const int RETURN_SHIPPING_LABEL_ALREADY_EXISTS_HASH = HashingUtils::HashString("ReturnShippingLabelAlreadyExistsException"); +static constexpr uint32_t CLUSTER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ClusterLimitExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INVALID_ADDRESS_HASH = ConstExprHashingUtils::HashString("InvalidAddressException"); +static constexpr uint32_t INVALID_JOB_STATE_HASH = ConstExprHashingUtils::HashString("InvalidJobStateException"); +static constexpr uint32_t K_M_S_REQUEST_FAILED_HASH = ConstExprHashingUtils::HashString("KMSRequestFailedException"); +static constexpr uint32_t EC2_REQUEST_FAILED_HASH = ConstExprHashingUtils::HashString("Ec2RequestFailedException"); +static constexpr uint32_t INVALID_INPUT_COMBINATION_HASH = ConstExprHashingUtils::HashString("InvalidInputCombinationException"); +static constexpr uint32_t UNSUPPORTED_ADDRESS_HASH = ConstExprHashingUtils::HashString("UnsupportedAddressException"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextTokenException"); +static constexpr uint32_t INVALID_RESOURCE_HASH = ConstExprHashingUtils::HashString("InvalidResourceException"); +static constexpr uint32_t RETURN_SHIPPING_LABEL_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ReturnShippingLabelAlreadyExistsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CLUSTER_LIMIT_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/AddressType.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/AddressType.cpp index 9b1369fe479..5c7f5eecd14 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/AddressType.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/AddressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AddressTypeMapper { - static const int CUST_PICKUP_HASH = HashingUtils::HashString("CUST_PICKUP"); - static const int AWS_SHIP_HASH = HashingUtils::HashString("AWS_SHIP"); + static constexpr uint32_t CUST_PICKUP_HASH = ConstExprHashingUtils::HashString("CUST_PICKUP"); + static constexpr uint32_t AWS_SHIP_HASH = ConstExprHashingUtils::HashString("AWS_SHIP"); AddressType GetAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUST_PICKUP_HASH) { return AddressType::CUST_PICKUP; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/ClusterState.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/ClusterState.cpp index 06199bdbc4c..60ce4f172fa 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/ClusterState.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/ClusterState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ClusterStateMapper { - static const int AwaitingQuorum_HASH = HashingUtils::HashString("AwaitingQuorum"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InUse_HASH = HashingUtils::HashString("InUse"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); + static constexpr uint32_t AwaitingQuorum_HASH = ConstExprHashingUtils::HashString("AwaitingQuorum"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InUse_HASH = ConstExprHashingUtils::HashString("InUse"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); ClusterState GetClusterStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AwaitingQuorum_HASH) { return ClusterState::AwaitingQuorum; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/DeviceServiceName.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/DeviceServiceName.cpp index 342ebe9e35d..36435cb49a5 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/DeviceServiceName.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/DeviceServiceName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceServiceNameMapper { - static const int NFS_ON_DEVICE_SERVICE_HASH = HashingUtils::HashString("NFS_ON_DEVICE_SERVICE"); - static const int S3_ON_DEVICE_SERVICE_HASH = HashingUtils::HashString("S3_ON_DEVICE_SERVICE"); + static constexpr uint32_t NFS_ON_DEVICE_SERVICE_HASH = ConstExprHashingUtils::HashString("NFS_ON_DEVICE_SERVICE"); + static constexpr uint32_t S3_ON_DEVICE_SERVICE_HASH = ConstExprHashingUtils::HashString("S3_ON_DEVICE_SERVICE"); DeviceServiceName GetDeviceServiceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NFS_ON_DEVICE_SERVICE_HASH) { return DeviceServiceName::NFS_ON_DEVICE_SERVICE; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/ImpactLevel.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/ImpactLevel.cpp index 43bc759248b..46347c3e90a 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/ImpactLevel.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/ImpactLevel.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ImpactLevelMapper { - static const int IL2_HASH = HashingUtils::HashString("IL2"); - static const int IL4_HASH = HashingUtils::HashString("IL4"); - static const int IL5_HASH = HashingUtils::HashString("IL5"); - static const int IL6_HASH = HashingUtils::HashString("IL6"); - static const int IL99_HASH = HashingUtils::HashString("IL99"); + static constexpr uint32_t IL2_HASH = ConstExprHashingUtils::HashString("IL2"); + static constexpr uint32_t IL4_HASH = ConstExprHashingUtils::HashString("IL4"); + static constexpr uint32_t IL5_HASH = ConstExprHashingUtils::HashString("IL5"); + static constexpr uint32_t IL6_HASH = ConstExprHashingUtils::HashString("IL6"); + static constexpr uint32_t IL99_HASH = ConstExprHashingUtils::HashString("IL99"); ImpactLevel GetImpactLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IL2_HASH) { return ImpactLevel::IL2; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/JobState.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/JobState.cpp index f979e7c44d4..09610a974b2 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/JobState.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/JobState.cpp @@ -20,24 +20,24 @@ namespace Aws namespace JobStateMapper { - static const int New_HASH = HashingUtils::HashString("New"); - static const int PreparingAppliance_HASH = HashingUtils::HashString("PreparingAppliance"); - static const int PreparingShipment_HASH = HashingUtils::HashString("PreparingShipment"); - static const int InTransitToCustomer_HASH = HashingUtils::HashString("InTransitToCustomer"); - static const int WithCustomer_HASH = HashingUtils::HashString("WithCustomer"); - static const int InTransitToAWS_HASH = HashingUtils::HashString("InTransitToAWS"); - static const int WithAWSSortingFacility_HASH = HashingUtils::HashString("WithAWSSortingFacility"); - static const int WithAWS_HASH = HashingUtils::HashString("WithAWS"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Listing_HASH = HashingUtils::HashString("Listing"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); + static constexpr uint32_t New_HASH = ConstExprHashingUtils::HashString("New"); + static constexpr uint32_t PreparingAppliance_HASH = ConstExprHashingUtils::HashString("PreparingAppliance"); + static constexpr uint32_t PreparingShipment_HASH = ConstExprHashingUtils::HashString("PreparingShipment"); + static constexpr uint32_t InTransitToCustomer_HASH = ConstExprHashingUtils::HashString("InTransitToCustomer"); + static constexpr uint32_t WithCustomer_HASH = ConstExprHashingUtils::HashString("WithCustomer"); + static constexpr uint32_t InTransitToAWS_HASH = ConstExprHashingUtils::HashString("InTransitToAWS"); + static constexpr uint32_t WithAWSSortingFacility_HASH = ConstExprHashingUtils::HashString("WithAWSSortingFacility"); + static constexpr uint32_t WithAWS_HASH = ConstExprHashingUtils::HashString("WithAWS"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Listing_HASH = ConstExprHashingUtils::HashString("Listing"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); JobState GetJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == New_HASH) { return JobState::New; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/JobType.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/JobType.cpp index 009c6070788..d2c9cae0f36 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/JobType.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/JobType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JobTypeMapper { - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); - static const int EXPORT_HASH = HashingUtils::HashString("EXPORT"); - static const int LOCAL_USE_HASH = HashingUtils::HashString("LOCAL_USE"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); + static constexpr uint32_t EXPORT_HASH = ConstExprHashingUtils::HashString("EXPORT"); + static constexpr uint32_t LOCAL_USE_HASH = ConstExprHashingUtils::HashString("LOCAL_USE"); JobType GetJobTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORT_HASH) { return JobType::IMPORT; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/LongTermPricingType.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/LongTermPricingType.cpp index d23a6dc1db1..e1b60c24ec9 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/LongTermPricingType.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/LongTermPricingType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LongTermPricingTypeMapper { - static const int OneYear_HASH = HashingUtils::HashString("OneYear"); - static const int ThreeYear_HASH = HashingUtils::HashString("ThreeYear"); - static const int OneMonth_HASH = HashingUtils::HashString("OneMonth"); + static constexpr uint32_t OneYear_HASH = ConstExprHashingUtils::HashString("OneYear"); + static constexpr uint32_t ThreeYear_HASH = ConstExprHashingUtils::HashString("ThreeYear"); + static constexpr uint32_t OneMonth_HASH = ConstExprHashingUtils::HashString("OneMonth"); LongTermPricingType GetLongTermPricingTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OneYear_HASH) { return LongTermPricingType::OneYear; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/RemoteManagement.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/RemoteManagement.cpp index b891321c7f0..d1b17cccad8 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/RemoteManagement.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/RemoteManagement.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RemoteManagementMapper { - static const int INSTALLED_ONLY_HASH = HashingUtils::HashString("INSTALLED_ONLY"); - static const int INSTALLED_AUTOSTART_HASH = HashingUtils::HashString("INSTALLED_AUTOSTART"); - static const int NOT_INSTALLED_HASH = HashingUtils::HashString("NOT_INSTALLED"); + static constexpr uint32_t INSTALLED_ONLY_HASH = ConstExprHashingUtils::HashString("INSTALLED_ONLY"); + static constexpr uint32_t INSTALLED_AUTOSTART_HASH = ConstExprHashingUtils::HashString("INSTALLED_AUTOSTART"); + static constexpr uint32_t NOT_INSTALLED_HASH = ConstExprHashingUtils::HashString("NOT_INSTALLED"); RemoteManagement GetRemoteManagementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTALLED_ONLY_HASH) { return RemoteManagement::INSTALLED_ONLY; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/ServiceName.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/ServiceName.cpp index a0df742d133..8dcf84a552d 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/ServiceName.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/ServiceName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ServiceNameMapper { - static const int KUBERNETES_HASH = HashingUtils::HashString("KUBERNETES"); - static const int EKS_ANYWHERE_HASH = HashingUtils::HashString("EKS_ANYWHERE"); + static constexpr uint32_t KUBERNETES_HASH = ConstExprHashingUtils::HashString("KUBERNETES"); + static constexpr uint32_t EKS_ANYWHERE_HASH = ConstExprHashingUtils::HashString("EKS_ANYWHERE"); ServiceName GetServiceNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KUBERNETES_HASH) { return ServiceName::KUBERNETES; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/ShipmentState.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/ShipmentState.cpp index bfbafd32148..de8482e7421 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/ShipmentState.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/ShipmentState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShipmentStateMapper { - static const int RECEIVED_HASH = HashingUtils::HashString("RECEIVED"); - static const int RETURNED_HASH = HashingUtils::HashString("RETURNED"); + static constexpr uint32_t RECEIVED_HASH = ConstExprHashingUtils::HashString("RECEIVED"); + static constexpr uint32_t RETURNED_HASH = ConstExprHashingUtils::HashString("RETURNED"); ShipmentState GetShipmentStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECEIVED_HASH) { return ShipmentState::RECEIVED; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/ShippingLabelStatus.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/ShippingLabelStatus.cpp index 54ec8aa0ba3..c34424977b5 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/ShippingLabelStatus.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/ShippingLabelStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ShippingLabelStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Succeeded_HASH = HashingUtils::HashString("Succeeded"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Succeeded_HASH = ConstExprHashingUtils::HashString("Succeeded"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); ShippingLabelStatus GetShippingLabelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return ShippingLabelStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/ShippingOption.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/ShippingOption.cpp index d277d8a4fe2..9551e6e8272 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/ShippingOption.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/ShippingOption.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ShippingOptionMapper { - static const int SECOND_DAY_HASH = HashingUtils::HashString("SECOND_DAY"); - static const int NEXT_DAY_HASH = HashingUtils::HashString("NEXT_DAY"); - static const int EXPRESS_HASH = HashingUtils::HashString("EXPRESS"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); + static constexpr uint32_t SECOND_DAY_HASH = ConstExprHashingUtils::HashString("SECOND_DAY"); + static constexpr uint32_t NEXT_DAY_HASH = ConstExprHashingUtils::HashString("NEXT_DAY"); + static constexpr uint32_t EXPRESS_HASH = ConstExprHashingUtils::HashString("EXPRESS"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); ShippingOption GetShippingOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SECOND_DAY_HASH) { return ShippingOption::SECOND_DAY; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/SnowballCapacity.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/SnowballCapacity.cpp index 422358dd759..59875095779 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/SnowballCapacity.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/SnowballCapacity.cpp @@ -20,22 +20,22 @@ namespace Aws namespace SnowballCapacityMapper { - static const int T50_HASH = HashingUtils::HashString("T50"); - static const int T80_HASH = HashingUtils::HashString("T80"); - static const int T100_HASH = HashingUtils::HashString("T100"); - static const int T42_HASH = HashingUtils::HashString("T42"); - static const int T98_HASH = HashingUtils::HashString("T98"); - static const int T8_HASH = HashingUtils::HashString("T8"); - static const int T14_HASH = HashingUtils::HashString("T14"); - static const int T32_HASH = HashingUtils::HashString("T32"); - static const int NoPreference_HASH = HashingUtils::HashString("NoPreference"); - static const int T240_HASH = HashingUtils::HashString("T240"); - static const int T13_HASH = HashingUtils::HashString("T13"); + static constexpr uint32_t T50_HASH = ConstExprHashingUtils::HashString("T50"); + static constexpr uint32_t T80_HASH = ConstExprHashingUtils::HashString("T80"); + static constexpr uint32_t T100_HASH = ConstExprHashingUtils::HashString("T100"); + static constexpr uint32_t T42_HASH = ConstExprHashingUtils::HashString("T42"); + static constexpr uint32_t T98_HASH = ConstExprHashingUtils::HashString("T98"); + static constexpr uint32_t T8_HASH = ConstExprHashingUtils::HashString("T8"); + static constexpr uint32_t T14_HASH = ConstExprHashingUtils::HashString("T14"); + static constexpr uint32_t T32_HASH = ConstExprHashingUtils::HashString("T32"); + static constexpr uint32_t NoPreference_HASH = ConstExprHashingUtils::HashString("NoPreference"); + static constexpr uint32_t T240_HASH = ConstExprHashingUtils::HashString("T240"); + static constexpr uint32_t T13_HASH = ConstExprHashingUtils::HashString("T13"); SnowballCapacity GetSnowballCapacityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == T50_HASH) { return SnowballCapacity::T50; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/SnowballType.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/SnowballType.cpp index 3e45ff0d6cd..ae515a9b7d3 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/SnowballType.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/SnowballType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace SnowballTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int EDGE_HASH = HashingUtils::HashString("EDGE"); - static const int EDGE_C_HASH = HashingUtils::HashString("EDGE_C"); - static const int EDGE_CG_HASH = HashingUtils::HashString("EDGE_CG"); - static const int EDGE_S_HASH = HashingUtils::HashString("EDGE_S"); - static const int SNC1_HDD_HASH = HashingUtils::HashString("SNC1_HDD"); - static const int SNC1_SSD_HASH = HashingUtils::HashString("SNC1_SSD"); - static const int V3_5C_HASH = HashingUtils::HashString("V3_5C"); - static const int V3_5S_HASH = HashingUtils::HashString("V3_5S"); - static const int RACK_5U_C_HASH = HashingUtils::HashString("RACK_5U_C"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t EDGE_HASH = ConstExprHashingUtils::HashString("EDGE"); + static constexpr uint32_t EDGE_C_HASH = ConstExprHashingUtils::HashString("EDGE_C"); + static constexpr uint32_t EDGE_CG_HASH = ConstExprHashingUtils::HashString("EDGE_CG"); + static constexpr uint32_t EDGE_S_HASH = ConstExprHashingUtils::HashString("EDGE_S"); + static constexpr uint32_t SNC1_HDD_HASH = ConstExprHashingUtils::HashString("SNC1_HDD"); + static constexpr uint32_t SNC1_SSD_HASH = ConstExprHashingUtils::HashString("SNC1_SSD"); + static constexpr uint32_t V3_5C_HASH = ConstExprHashingUtils::HashString("V3_5C"); + static constexpr uint32_t V3_5S_HASH = ConstExprHashingUtils::HashString("V3_5S"); + static constexpr uint32_t RACK_5U_C_HASH = ConstExprHashingUtils::HashString("RACK_5U_C"); SnowballType GetSnowballTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return SnowballType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/StorageUnit.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/StorageUnit.cpp index e63004c431a..37f879f8178 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/StorageUnit.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/StorageUnit.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StorageUnitMapper { - static const int TB_HASH = HashingUtils::HashString("TB"); + static constexpr uint32_t TB_HASH = ConstExprHashingUtils::HashString("TB"); StorageUnit GetStorageUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TB_HASH) { return StorageUnit::TB; diff --git a/generated/src/aws-cpp-sdk-snowball/source/model/TransferOption.cpp b/generated/src/aws-cpp-sdk-snowball/source/model/TransferOption.cpp index c5d6d4ba62c..487843ba1ec 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/model/TransferOption.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/model/TransferOption.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TransferOptionMapper { - static const int IMPORT_HASH = HashingUtils::HashString("IMPORT"); - static const int EXPORT_HASH = HashingUtils::HashString("EXPORT"); - static const int LOCAL_USE_HASH = HashingUtils::HashString("LOCAL_USE"); + static constexpr uint32_t IMPORT_HASH = ConstExprHashingUtils::HashString("IMPORT"); + static constexpr uint32_t EXPORT_HASH = ConstExprHashingUtils::HashString("EXPORT"); + static constexpr uint32_t LOCAL_USE_HASH = ConstExprHashingUtils::HashString("LOCAL_USE"); TransferOption GetTransferOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMPORT_HASH) { return TransferOption::IMPORT; diff --git a/generated/src/aws-cpp-sdk-sns/source/SNSErrors.cpp b/generated/src/aws-cpp-sdk-sns/source/SNSErrors.cpp index adb3d369a70..bf91b782bcd 100644 --- a/generated/src/aws-cpp-sdk-sns/source/SNSErrors.cpp +++ b/generated/src/aws-cpp-sdk-sns/source/SNSErrors.cpp @@ -26,39 +26,39 @@ template<> AWS_SNS_API VerificationException SNSError::GetModeledError() namespace SNSErrorMapper { -static const int VERIFICATION_HASH = HashingUtils::HashString("VerificationException"); -static const int K_M_S_INVALID_STATE_HASH = HashingUtils::HashString("KMSInvalidState"); -static const int BATCH_REQUEST_TOO_LONG_HASH = HashingUtils::HashString("BatchRequestTooLong"); -static const int SUBSCRIPTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SubscriptionLimitExceeded"); -static const int TOPIC_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TopicLimitExceeded"); -static const int AUTHORIZATION_ERROR_HASH = HashingUtils::HashString("AuthorizationError"); -static const int INTERNAL_ERROR_HASH = HashingUtils::HashString("InternalError"); -static const int ENDPOINT_DISABLED_HASH = HashingUtils::HashString("EndpointDisabled"); -static const int TOO_MANY_ENTRIES_IN_BATCH_REQUEST_HASH = HashingUtils::HashString("TooManyEntriesInBatchRequest"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameter"); -static const int K_M_S_NOT_FOUND_HASH = HashingUtils::HashString("KMSNotFound"); -static const int FILTER_POLICY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FilterPolicyLimitExceeded"); -static const int OPTED_OUT_HASH = HashingUtils::HashString("OptedOut"); -static const int TAG_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TagLimitExceeded"); -static const int CONCURRENT_ACCESS_HASH = HashingUtils::HashString("ConcurrentAccess"); -static const int K_M_S_THROTTLING_HASH = HashingUtils::HashString("KMSThrottling"); -static const int BATCH_ENTRY_IDS_NOT_DISTINCT_HASH = HashingUtils::HashString("BatchEntryIdsNotDistinct"); -static const int TAG_POLICY_HASH = HashingUtils::HashString("TagPolicy"); -static const int PLATFORM_APPLICATION_DISABLED_HASH = HashingUtils::HashString("PlatformApplicationDisabled"); -static const int USER_ERROR_HASH = HashingUtils::HashString("UserError"); -static const int K_M_S_OPT_IN_REQUIRED_HASH = HashingUtils::HashString("KMSOptInRequired"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFound"); -static const int K_M_S_DISABLED_HASH = HashingUtils::HashString("KMSDisabled"); -static const int K_M_S_ACCESS_DENIED_HASH = HashingUtils::HashString("KMSAccessDenied"); -static const int INVALID_SECURITY_HASH = HashingUtils::HashString("InvalidSecurity"); -static const int STALE_TAG_HASH = HashingUtils::HashString("StaleTag"); -static const int EMPTY_BATCH_REQUEST_HASH = HashingUtils::HashString("EmptyBatchRequest"); -static const int INVALID_BATCH_ENTRY_ID_HASH = HashingUtils::HashString("InvalidBatchEntryId"); +static constexpr uint32_t VERIFICATION_HASH = ConstExprHashingUtils::HashString("VerificationException"); +static constexpr uint32_t K_M_S_INVALID_STATE_HASH = ConstExprHashingUtils::HashString("KMSInvalidState"); +static constexpr uint32_t BATCH_REQUEST_TOO_LONG_HASH = ConstExprHashingUtils::HashString("BatchRequestTooLong"); +static constexpr uint32_t SUBSCRIPTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SubscriptionLimitExceeded"); +static constexpr uint32_t TOPIC_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TopicLimitExceeded"); +static constexpr uint32_t AUTHORIZATION_ERROR_HASH = ConstExprHashingUtils::HashString("AuthorizationError"); +static constexpr uint32_t INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("InternalError"); +static constexpr uint32_t ENDPOINT_DISABLED_HASH = ConstExprHashingUtils::HashString("EndpointDisabled"); +static constexpr uint32_t TOO_MANY_ENTRIES_IN_BATCH_REQUEST_HASH = ConstExprHashingUtils::HashString("TooManyEntriesInBatchRequest"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameter"); +static constexpr uint32_t K_M_S_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("KMSNotFound"); +static constexpr uint32_t FILTER_POLICY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("FilterPolicyLimitExceeded"); +static constexpr uint32_t OPTED_OUT_HASH = ConstExprHashingUtils::HashString("OptedOut"); +static constexpr uint32_t TAG_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TagLimitExceeded"); +static constexpr uint32_t CONCURRENT_ACCESS_HASH = ConstExprHashingUtils::HashString("ConcurrentAccess"); +static constexpr uint32_t K_M_S_THROTTLING_HASH = ConstExprHashingUtils::HashString("KMSThrottling"); +static constexpr uint32_t BATCH_ENTRY_IDS_NOT_DISTINCT_HASH = ConstExprHashingUtils::HashString("BatchEntryIdsNotDistinct"); +static constexpr uint32_t TAG_POLICY_HASH = ConstExprHashingUtils::HashString("TagPolicy"); +static constexpr uint32_t PLATFORM_APPLICATION_DISABLED_HASH = ConstExprHashingUtils::HashString("PlatformApplicationDisabled"); +static constexpr uint32_t USER_ERROR_HASH = ConstExprHashingUtils::HashString("UserError"); +static constexpr uint32_t K_M_S_OPT_IN_REQUIRED_HASH = ConstExprHashingUtils::HashString("KMSOptInRequired"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFound"); +static constexpr uint32_t K_M_S_DISABLED_HASH = ConstExprHashingUtils::HashString("KMSDisabled"); +static constexpr uint32_t K_M_S_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("KMSAccessDenied"); +static constexpr uint32_t INVALID_SECURITY_HASH = ConstExprHashingUtils::HashString("InvalidSecurity"); +static constexpr uint32_t STALE_TAG_HASH = ConstExprHashingUtils::HashString("StaleTag"); +static constexpr uint32_t EMPTY_BATCH_REQUEST_HASH = ConstExprHashingUtils::HashString("EmptyBatchRequest"); +static constexpr uint32_t INVALID_BATCH_ENTRY_ID_HASH = ConstExprHashingUtils::HashString("InvalidBatchEntryId"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == VERIFICATION_HASH) { diff --git a/generated/src/aws-cpp-sdk-sns/source/model/LanguageCodeString.cpp b/generated/src/aws-cpp-sdk-sns/source/model/LanguageCodeString.cpp index 40a8b05de31..4bf4d758ce8 100644 --- a/generated/src/aws-cpp-sdk-sns/source/model/LanguageCodeString.cpp +++ b/generated/src/aws-cpp-sdk-sns/source/model/LanguageCodeString.cpp @@ -20,24 +20,24 @@ namespace Aws namespace LanguageCodeStringMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int es_419_HASH = HashingUtils::HashString("es-419"); - static const int es_ES_HASH = HashingUtils::HashString("es-ES"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int kr_KR_HASH = HashingUtils::HashString("kr-KR"); - static const int zh_CN_HASH = HashingUtils::HashString("zh-CN"); - static const int zh_TW_HASH = HashingUtils::HashString("zh-TW"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t es_419_HASH = ConstExprHashingUtils::HashString("es-419"); + static constexpr uint32_t es_ES_HASH = ConstExprHashingUtils::HashString("es-ES"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t kr_KR_HASH = ConstExprHashingUtils::HashString("kr-KR"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh-CN"); + static constexpr uint32_t zh_TW_HASH = ConstExprHashingUtils::HashString("zh-TW"); LanguageCodeString GetLanguageCodeStringForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return LanguageCodeString::en_US; diff --git a/generated/src/aws-cpp-sdk-sns/source/model/NumberCapability.cpp b/generated/src/aws-cpp-sdk-sns/source/model/NumberCapability.cpp index 7d36a206d09..c3292cf05a4 100644 --- a/generated/src/aws-cpp-sdk-sns/source/model/NumberCapability.cpp +++ b/generated/src/aws-cpp-sdk-sns/source/model/NumberCapability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NumberCapabilityMapper { - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int MMS_HASH = HashingUtils::HashString("MMS"); - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t MMS_HASH = ConstExprHashingUtils::HashString("MMS"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); NumberCapability GetNumberCapabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMS_HASH) { return NumberCapability::SMS; diff --git a/generated/src/aws-cpp-sdk-sns/source/model/RouteType.cpp b/generated/src/aws-cpp-sdk-sns/source/model/RouteType.cpp index 8771eb5bae5..7052c99e996 100644 --- a/generated/src/aws-cpp-sdk-sns/source/model/RouteType.cpp +++ b/generated/src/aws-cpp-sdk-sns/source/model/RouteType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RouteTypeMapper { - static const int Transactional_HASH = HashingUtils::HashString("Transactional"); - static const int Promotional_HASH = HashingUtils::HashString("Promotional"); - static const int Premium_HASH = HashingUtils::HashString("Premium"); + static constexpr uint32_t Transactional_HASH = ConstExprHashingUtils::HashString("Transactional"); + static constexpr uint32_t Promotional_HASH = ConstExprHashingUtils::HashString("Promotional"); + static constexpr uint32_t Premium_HASH = ConstExprHashingUtils::HashString("Premium"); RouteType GetRouteTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Transactional_HASH) { return RouteType::Transactional; diff --git a/generated/src/aws-cpp-sdk-sns/source/model/SMSSandboxPhoneNumberVerificationStatus.cpp b/generated/src/aws-cpp-sdk-sns/source/model/SMSSandboxPhoneNumberVerificationStatus.cpp index 48901cd420d..4d5125d3b41 100644 --- a/generated/src/aws-cpp-sdk-sns/source/model/SMSSandboxPhoneNumberVerificationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sns/source/model/SMSSandboxPhoneNumberVerificationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SMSSandboxPhoneNumberVerificationStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Verified_HASH = HashingUtils::HashString("Verified"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Verified_HASH = ConstExprHashingUtils::HashString("Verified"); SMSSandboxPhoneNumberVerificationStatus GetSMSSandboxPhoneNumberVerificationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return SMSSandboxPhoneNumberVerificationStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-sqs/source/SQSErrors.cpp b/generated/src/aws-cpp-sdk-sqs/source/SQSErrors.cpp index 85e03f7a2d9..fabbcaa1057 100644 --- a/generated/src/aws-cpp-sdk-sqs/source/SQSErrors.cpp +++ b/generated/src/aws-cpp-sdk-sqs/source/SQSErrors.cpp @@ -18,27 +18,27 @@ namespace SQS namespace SQSErrorMapper { -static const int TOO_MANY_ENTRIES_IN_BATCH_REQUEST_HASH = HashingUtils::HashString("AWS.SimpleQueueService.TooManyEntriesInBatchRequest"); -static const int OVER_LIMIT_HASH = HashingUtils::HashString("OverLimit"); -static const int QUEUE_NAME_EXISTS_HASH = HashingUtils::HashString("QueueAlreadyExists"); -static const int PURGE_QUEUE_IN_PROGRESS_HASH = HashingUtils::HashString("AWS.SimpleQueueService.PurgeQueueInProgress"); -static const int QUEUE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AWS.SimpleQueueService.NonExistentQueue"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("AWS.SimpleQueueService.UnsupportedOperation"); -static const int BATCH_ENTRY_IDS_NOT_DISTINCT_HASH = HashingUtils::HashString("AWS.SimpleQueueService.BatchEntryIdsNotDistinct"); -static const int MESSAGE_NOT_INFLIGHT_HASH = HashingUtils::HashString("AWS.SimpleQueueService.MessageNotInflight"); -static const int BATCH_REQUEST_TOO_LONG_HASH = HashingUtils::HashString("AWS.SimpleQueueService.BatchRequestTooLong"); -static const int INVALID_BATCH_ENTRY_ID_HASH = HashingUtils::HashString("AWS.SimpleQueueService.InvalidBatchEntryId"); -static const int INVALID_ATTRIBUTE_NAME_HASH = HashingUtils::HashString("InvalidAttributeName"); -static const int INVALID_ID_FORMAT_HASH = HashingUtils::HashString("InvalidIdFormat"); -static const int EMPTY_BATCH_REQUEST_HASH = HashingUtils::HashString("AWS.SimpleQueueService.EmptyBatchRequest"); -static const int INVALID_MESSAGE_CONTENTS_HASH = HashingUtils::HashString("InvalidMessageContents"); -static const int RECEIPT_HANDLE_IS_INVALID_HASH = HashingUtils::HashString("ReceiptHandleIsInvalid"); -static const int QUEUE_DELETED_RECENTLY_HASH = HashingUtils::HashString("AWS.SimpleQueueService.QueueDeletedRecently"); +static constexpr uint32_t TOO_MANY_ENTRIES_IN_BATCH_REQUEST_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.TooManyEntriesInBatchRequest"); +static constexpr uint32_t OVER_LIMIT_HASH = ConstExprHashingUtils::HashString("OverLimit"); +static constexpr uint32_t QUEUE_NAME_EXISTS_HASH = ConstExprHashingUtils::HashString("QueueAlreadyExists"); +static constexpr uint32_t PURGE_QUEUE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.PurgeQueueInProgress"); +static constexpr uint32_t QUEUE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.NonExistentQueue"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.UnsupportedOperation"); +static constexpr uint32_t BATCH_ENTRY_IDS_NOT_DISTINCT_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.BatchEntryIdsNotDistinct"); +static constexpr uint32_t MESSAGE_NOT_INFLIGHT_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.MessageNotInflight"); +static constexpr uint32_t BATCH_REQUEST_TOO_LONG_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.BatchRequestTooLong"); +static constexpr uint32_t INVALID_BATCH_ENTRY_ID_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.InvalidBatchEntryId"); +static constexpr uint32_t INVALID_ATTRIBUTE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidAttributeName"); +static constexpr uint32_t INVALID_ID_FORMAT_HASH = ConstExprHashingUtils::HashString("InvalidIdFormat"); +static constexpr uint32_t EMPTY_BATCH_REQUEST_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.EmptyBatchRequest"); +static constexpr uint32_t INVALID_MESSAGE_CONTENTS_HASH = ConstExprHashingUtils::HashString("InvalidMessageContents"); +static constexpr uint32_t RECEIPT_HANDLE_IS_INVALID_HASH = ConstExprHashingUtils::HashString("ReceiptHandleIsInvalid"); +static constexpr uint32_t QUEUE_DELETED_RECENTLY_HASH = ConstExprHashingUtils::HashString("AWS.SimpleQueueService.QueueDeletedRecently"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == TOO_MANY_ENTRIES_IN_BATCH_REQUEST_HASH) { diff --git a/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeName.cpp b/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeName.cpp index c8b355ed6a9..47540c1e04b 100644 --- a/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeName.cpp @@ -20,20 +20,20 @@ namespace Aws namespace MessageSystemAttributeNameMapper { - static const int SenderId_HASH = HashingUtils::HashString("SenderId"); - static const int SentTimestamp_HASH = HashingUtils::HashString("SentTimestamp"); - static const int ApproximateReceiveCount_HASH = HashingUtils::HashString("ApproximateReceiveCount"); - static const int ApproximateFirstReceiveTimestamp_HASH = HashingUtils::HashString("ApproximateFirstReceiveTimestamp"); - static const int SequenceNumber_HASH = HashingUtils::HashString("SequenceNumber"); - static const int MessageDeduplicationId_HASH = HashingUtils::HashString("MessageDeduplicationId"); - static const int MessageGroupId_HASH = HashingUtils::HashString("MessageGroupId"); - static const int AWSTraceHeader_HASH = HashingUtils::HashString("AWSTraceHeader"); - static const int DeadLetterQueueSourceArn_HASH = HashingUtils::HashString("DeadLetterQueueSourceArn"); + static constexpr uint32_t SenderId_HASH = ConstExprHashingUtils::HashString("SenderId"); + static constexpr uint32_t SentTimestamp_HASH = ConstExprHashingUtils::HashString("SentTimestamp"); + static constexpr uint32_t ApproximateReceiveCount_HASH = ConstExprHashingUtils::HashString("ApproximateReceiveCount"); + static constexpr uint32_t ApproximateFirstReceiveTimestamp_HASH = ConstExprHashingUtils::HashString("ApproximateFirstReceiveTimestamp"); + static constexpr uint32_t SequenceNumber_HASH = ConstExprHashingUtils::HashString("SequenceNumber"); + static constexpr uint32_t MessageDeduplicationId_HASH = ConstExprHashingUtils::HashString("MessageDeduplicationId"); + static constexpr uint32_t MessageGroupId_HASH = ConstExprHashingUtils::HashString("MessageGroupId"); + static constexpr uint32_t AWSTraceHeader_HASH = ConstExprHashingUtils::HashString("AWSTraceHeader"); + static constexpr uint32_t DeadLetterQueueSourceArn_HASH = ConstExprHashingUtils::HashString("DeadLetterQueueSourceArn"); MessageSystemAttributeName GetMessageSystemAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SenderId_HASH) { return MessageSystemAttributeName::SenderId; diff --git a/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeNameForSends.cpp b/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeNameForSends.cpp index 06496dd5232..d1f672b001f 100644 --- a/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeNameForSends.cpp +++ b/generated/src/aws-cpp-sdk-sqs/source/model/MessageSystemAttributeNameForSends.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MessageSystemAttributeNameForSendsMapper { - static const int AWSTraceHeader_HASH = HashingUtils::HashString("AWSTraceHeader"); + static constexpr uint32_t AWSTraceHeader_HASH = ConstExprHashingUtils::HashString("AWSTraceHeader"); MessageSystemAttributeNameForSends GetMessageSystemAttributeNameForSendsForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSTraceHeader_HASH) { return MessageSystemAttributeNameForSends::AWSTraceHeader; diff --git a/generated/src/aws-cpp-sdk-sqs/source/model/QueueAttributeName.cpp b/generated/src/aws-cpp-sdk-sqs/source/model/QueueAttributeName.cpp index c7d7602d612..1377f968990 100644 --- a/generated/src/aws-cpp-sdk-sqs/source/model/QueueAttributeName.cpp +++ b/generated/src/aws-cpp-sdk-sqs/source/model/QueueAttributeName.cpp @@ -20,37 +20,37 @@ namespace Aws namespace QueueAttributeNameMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int Policy_HASH = HashingUtils::HashString("Policy"); - static const int VisibilityTimeout_HASH = HashingUtils::HashString("VisibilityTimeout"); - static const int MaximumMessageSize_HASH = HashingUtils::HashString("MaximumMessageSize"); - static const int MessageRetentionPeriod_HASH = HashingUtils::HashString("MessageRetentionPeriod"); - static const int ApproximateNumberOfMessages_HASH = HashingUtils::HashString("ApproximateNumberOfMessages"); - static const int ApproximateNumberOfMessagesNotVisible_HASH = HashingUtils::HashString("ApproximateNumberOfMessagesNotVisible"); - static const int CreatedTimestamp_HASH = HashingUtils::HashString("CreatedTimestamp"); - static const int LastModifiedTimestamp_HASH = HashingUtils::HashString("LastModifiedTimestamp"); - static const int QueueArn_HASH = HashingUtils::HashString("QueueArn"); - static const int ApproximateNumberOfMessagesDelayed_HASH = HashingUtils::HashString("ApproximateNumberOfMessagesDelayed"); - static const int DelaySeconds_HASH = HashingUtils::HashString("DelaySeconds"); - static const int ReceiveMessageWaitTimeSeconds_HASH = HashingUtils::HashString("ReceiveMessageWaitTimeSeconds"); - static const int RedrivePolicy_HASH = HashingUtils::HashString("RedrivePolicy"); - static const int FifoQueue_HASH = HashingUtils::HashString("FifoQueue"); - static const int ContentBasedDeduplication_HASH = HashingUtils::HashString("ContentBasedDeduplication"); - static const int KmsMasterKeyId_HASH = HashingUtils::HashString("KmsMasterKeyId"); - static const int KmsDataKeyReusePeriodSeconds_HASH = HashingUtils::HashString("KmsDataKeyReusePeriodSeconds"); - static const int DeduplicationScope_HASH = HashingUtils::HashString("DeduplicationScope"); - static const int FifoThroughputLimit_HASH = HashingUtils::HashString("FifoThroughputLimit"); - static const int RedriveAllowPolicy_HASH = HashingUtils::HashString("RedriveAllowPolicy"); - static const int SqsManagedSseEnabled_HASH = HashingUtils::HashString("SqsManagedSseEnabled"); - static const int SentTimestamp_HASH = HashingUtils::HashString("SentTimestamp"); - static const int ApproximateFirstReceiveTimestamp_HASH = HashingUtils::HashString("ApproximateFirstReceiveTimestamp"); - static const int ApproximateReceiveCount_HASH = HashingUtils::HashString("ApproximateReceiveCount"); - static const int SenderId_HASH = HashingUtils::HashString("SenderId"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t Policy_HASH = ConstExprHashingUtils::HashString("Policy"); + static constexpr uint32_t VisibilityTimeout_HASH = ConstExprHashingUtils::HashString("VisibilityTimeout"); + static constexpr uint32_t MaximumMessageSize_HASH = ConstExprHashingUtils::HashString("MaximumMessageSize"); + static constexpr uint32_t MessageRetentionPeriod_HASH = ConstExprHashingUtils::HashString("MessageRetentionPeriod"); + static constexpr uint32_t ApproximateNumberOfMessages_HASH = ConstExprHashingUtils::HashString("ApproximateNumberOfMessages"); + static constexpr uint32_t ApproximateNumberOfMessagesNotVisible_HASH = ConstExprHashingUtils::HashString("ApproximateNumberOfMessagesNotVisible"); + static constexpr uint32_t CreatedTimestamp_HASH = ConstExprHashingUtils::HashString("CreatedTimestamp"); + static constexpr uint32_t LastModifiedTimestamp_HASH = ConstExprHashingUtils::HashString("LastModifiedTimestamp"); + static constexpr uint32_t QueueArn_HASH = ConstExprHashingUtils::HashString("QueueArn"); + static constexpr uint32_t ApproximateNumberOfMessagesDelayed_HASH = ConstExprHashingUtils::HashString("ApproximateNumberOfMessagesDelayed"); + static constexpr uint32_t DelaySeconds_HASH = ConstExprHashingUtils::HashString("DelaySeconds"); + static constexpr uint32_t ReceiveMessageWaitTimeSeconds_HASH = ConstExprHashingUtils::HashString("ReceiveMessageWaitTimeSeconds"); + static constexpr uint32_t RedrivePolicy_HASH = ConstExprHashingUtils::HashString("RedrivePolicy"); + static constexpr uint32_t FifoQueue_HASH = ConstExprHashingUtils::HashString("FifoQueue"); + static constexpr uint32_t ContentBasedDeduplication_HASH = ConstExprHashingUtils::HashString("ContentBasedDeduplication"); + static constexpr uint32_t KmsMasterKeyId_HASH = ConstExprHashingUtils::HashString("KmsMasterKeyId"); + static constexpr uint32_t KmsDataKeyReusePeriodSeconds_HASH = ConstExprHashingUtils::HashString("KmsDataKeyReusePeriodSeconds"); + static constexpr uint32_t DeduplicationScope_HASH = ConstExprHashingUtils::HashString("DeduplicationScope"); + static constexpr uint32_t FifoThroughputLimit_HASH = ConstExprHashingUtils::HashString("FifoThroughputLimit"); + static constexpr uint32_t RedriveAllowPolicy_HASH = ConstExprHashingUtils::HashString("RedriveAllowPolicy"); + static constexpr uint32_t SqsManagedSseEnabled_HASH = ConstExprHashingUtils::HashString("SqsManagedSseEnabled"); + static constexpr uint32_t SentTimestamp_HASH = ConstExprHashingUtils::HashString("SentTimestamp"); + static constexpr uint32_t ApproximateFirstReceiveTimestamp_HASH = ConstExprHashingUtils::HashString("ApproximateFirstReceiveTimestamp"); + static constexpr uint32_t ApproximateReceiveCount_HASH = ConstExprHashingUtils::HashString("ApproximateReceiveCount"); + static constexpr uint32_t SenderId_HASH = ConstExprHashingUtils::HashString("SenderId"); QueueAttributeName GetQueueAttributeNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return QueueAttributeName::All; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsErrors.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsErrors.cpp index 84fd7796b4d..40bc8ef257a 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsErrors.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsErrors.cpp @@ -61,15 +61,15 @@ template<> AWS_SSMCONTACTS_API ValidationException SSMContactsError::GetModeledE namespace SSMContactsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int DATA_ENCRYPTION_HASH = HashingUtils::HashString("DataEncryptionException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t DATA_ENCRYPTION_HASH = ConstExprHashingUtils::HashString("DataEncryptionException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptCodeValidation.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptCodeValidation.cpp index c1646819247..50566f2b60a 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptCodeValidation.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptCodeValidation.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AcceptCodeValidationMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int ENFORCE_HASH = HashingUtils::HashString("ENFORCE"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t ENFORCE_HASH = ConstExprHashingUtils::HashString("ENFORCE"); AcceptCodeValidation GetAcceptCodeValidationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return AcceptCodeValidation::IGNORE; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptType.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptType.cpp index b9df9ab036e..7cc1a040177 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/AcceptType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AcceptTypeMapper { - static const int DELIVERED_HASH = HashingUtils::HashString("DELIVERED"); - static const int READ_HASH = HashingUtils::HashString("READ"); + static constexpr uint32_t DELIVERED_HASH = ConstExprHashingUtils::HashString("DELIVERED"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); AcceptType GetAcceptTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELIVERED_HASH) { return AcceptType::DELIVERED; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ActivationStatus.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ActivationStatus.cpp index 915e6a4aaf3..865e6b4f7ff 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ActivationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ActivationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ActivationStatusMapper { - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int NOT_ACTIVATED_HASH = HashingUtils::HashString("NOT_ACTIVATED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t NOT_ACTIVATED_HASH = ConstExprHashingUtils::HashString("NOT_ACTIVATED"); ActivationStatus GetActivationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATED_HASH) { return ActivationStatus::ACTIVATED; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ChannelType.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ChannelType.cpp index 124abf1be14..66ae23b9faa 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ChannelType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ChannelType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChannelTypeMapper { - static const int SMS_HASH = HashingUtils::HashString("SMS"); - static const int VOICE_HASH = HashingUtils::HashString("VOICE"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static constexpr uint32_t SMS_HASH = ConstExprHashingUtils::HashString("SMS"); + static constexpr uint32_t VOICE_HASH = ConstExprHashingUtils::HashString("VOICE"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); ChannelType GetChannelTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMS_HASH) { return ChannelType::SMS; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ContactType.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ContactType.cpp index 64f9be299dd..3b0835c34f3 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ContactType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ContactType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ContactTypeMapper { - static const int PERSONAL_HASH = HashingUtils::HashString("PERSONAL"); - static const int ESCALATION_HASH = HashingUtils::HashString("ESCALATION"); - static const int ONCALL_SCHEDULE_HASH = HashingUtils::HashString("ONCALL_SCHEDULE"); + static constexpr uint32_t PERSONAL_HASH = ConstExprHashingUtils::HashString("PERSONAL"); + static constexpr uint32_t ESCALATION_HASH = ConstExprHashingUtils::HashString("ESCALATION"); + static constexpr uint32_t ONCALL_SCHEDULE_HASH = ConstExprHashingUtils::HashString("ONCALL_SCHEDULE"); ContactType GetContactTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PERSONAL_HASH) { return ContactType::PERSONAL; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/DayOfWeek.cpp index 6632114de0b..b8961742f7c 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/DayOfWeek.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/DayOfWeek.cpp @@ -20,18 +20,18 @@ namespace Aws namespace DayOfWeekMapper { - static const int MON_HASH = HashingUtils::HashString("MON"); - static const int TUE_HASH = HashingUtils::HashString("TUE"); - static const int WED_HASH = HashingUtils::HashString("WED"); - static const int THU_HASH = HashingUtils::HashString("THU"); - static const int FRI_HASH = HashingUtils::HashString("FRI"); - static const int SAT_HASH = HashingUtils::HashString("SAT"); - static const int SUN_HASH = HashingUtils::HashString("SUN"); + static constexpr uint32_t MON_HASH = ConstExprHashingUtils::HashString("MON"); + static constexpr uint32_t TUE_HASH = ConstExprHashingUtils::HashString("TUE"); + static constexpr uint32_t WED_HASH = ConstExprHashingUtils::HashString("WED"); + static constexpr uint32_t THU_HASH = ConstExprHashingUtils::HashString("THU"); + static constexpr uint32_t FRI_HASH = ConstExprHashingUtils::HashString("FRI"); + static constexpr uint32_t SAT_HASH = ConstExprHashingUtils::HashString("SAT"); + static constexpr uint32_t SUN_HASH = ConstExprHashingUtils::HashString("SUN"); DayOfWeek GetDayOfWeekForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MON_HASH) { return DayOfWeek::MON; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ReceiptType.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ReceiptType.cpp index 62267029c8e..5449814006a 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ReceiptType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ReceiptType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ReceiptTypeMapper { - static const int DELIVERED_HASH = HashingUtils::HashString("DELIVERED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int READ_HASH = HashingUtils::HashString("READ"); - static const int SENT_HASH = HashingUtils::HashString("SENT"); - static const int STOP_HASH = HashingUtils::HashString("STOP"); + static constexpr uint32_t DELIVERED_HASH = ConstExprHashingUtils::HashString("DELIVERED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t READ_HASH = ConstExprHashingUtils::HashString("READ"); + static constexpr uint32_t SENT_HASH = ConstExprHashingUtils::HashString("SENT"); + static constexpr uint32_t STOP_HASH = ConstExprHashingUtils::HashString("STOP"); ReceiptType GetReceiptTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DELIVERED_HASH) { return ReceiptType::DELIVERED; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ShiftType.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ShiftType.cpp index 5dec44a4643..96b4fe77761 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ShiftType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ShiftType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShiftTypeMapper { - static const int REGULAR_HASH = HashingUtils::HashString("REGULAR"); - static const int OVERRIDDEN_HASH = HashingUtils::HashString("OVERRIDDEN"); + static constexpr uint32_t REGULAR_HASH = ConstExprHashingUtils::HashString("REGULAR"); + static constexpr uint32_t OVERRIDDEN_HASH = ConstExprHashingUtils::HashString("OVERRIDDEN"); ShiftType GetShiftTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGULAR_HASH) { return ShiftType::REGULAR; diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ValidationExceptionReason.cpp index fcb7d6e8520..9f6d58c8fb5 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsErrors.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsErrors.cpp index e95c147dd80..9dd23cfc2ce 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsErrors.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsErrors.cpp @@ -47,14 +47,14 @@ template<> AWS_SSMINCIDENTS_API ResourceNotFoundException SSMIncidentsError::Get namespace SSMIncidentsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/IncidentRecordStatus.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/IncidentRecordStatus.cpp index 54d46609eee..117c863eb5c 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/IncidentRecordStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/IncidentRecordStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IncidentRecordStatusMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int RESOLVED_HASH = HashingUtils::HashString("RESOLVED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t RESOLVED_HASH = ConstExprHashingUtils::HashString("RESOLVED"); IncidentRecordStatus GetIncidentRecordStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return IncidentRecordStatus::OPEN; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ItemType.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ItemType.cpp index 5127b145ea7..93a138de453 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ItemType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ItemType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ItemTypeMapper { - static const int ANALYSIS_HASH = HashingUtils::HashString("ANALYSIS"); - static const int INCIDENT_HASH = HashingUtils::HashString("INCIDENT"); - static const int METRIC_HASH = HashingUtils::HashString("METRIC"); - static const int PARENT_HASH = HashingUtils::HashString("PARENT"); - static const int ATTACHMENT_HASH = HashingUtils::HashString("ATTACHMENT"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int AUTOMATION_HASH = HashingUtils::HashString("AUTOMATION"); - static const int INVOLVED_RESOURCE_HASH = HashingUtils::HashString("INVOLVED_RESOURCE"); - static const int TASK_HASH = HashingUtils::HashString("TASK"); + static constexpr uint32_t ANALYSIS_HASH = ConstExprHashingUtils::HashString("ANALYSIS"); + static constexpr uint32_t INCIDENT_HASH = ConstExprHashingUtils::HashString("INCIDENT"); + static constexpr uint32_t METRIC_HASH = ConstExprHashingUtils::HashString("METRIC"); + static constexpr uint32_t PARENT_HASH = ConstExprHashingUtils::HashString("PARENT"); + static constexpr uint32_t ATTACHMENT_HASH = ConstExprHashingUtils::HashString("ATTACHMENT"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t AUTOMATION_HASH = ConstExprHashingUtils::HashString("AUTOMATION"); + static constexpr uint32_t INVOLVED_RESOURCE_HASH = ConstExprHashingUtils::HashString("INVOLVED_RESOURCE"); + static constexpr uint32_t TASK_HASH = ConstExprHashingUtils::HashString("TASK"); ItemType GetItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANALYSIS_HASH) { return ItemType::ANALYSIS; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/RegionStatus.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/RegionStatus.cpp index 8e249577ab3..fca28274b91 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/RegionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/RegionStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RegionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); RegionStatus GetRegionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return RegionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ReplicationSetStatus.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ReplicationSetStatus.cpp index ac03d723c4a..4ae15f57e55 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ReplicationSetStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ReplicationSetStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ReplicationSetStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ReplicationSetStatus GetReplicationSetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ReplicationSetStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ResourceType.cpp index 6748fe32cf6..383593dc125 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int RESPONSE_PLAN_HASH = HashingUtils::HashString("RESPONSE_PLAN"); - static const int INCIDENT_RECORD_HASH = HashingUtils::HashString("INCIDENT_RECORD"); - static const int TIMELINE_EVENT_HASH = HashingUtils::HashString("TIMELINE_EVENT"); - static const int REPLICATION_SET_HASH = HashingUtils::HashString("REPLICATION_SET"); - static const int RESOURCE_POLICY_HASH = HashingUtils::HashString("RESOURCE_POLICY"); + static constexpr uint32_t RESPONSE_PLAN_HASH = ConstExprHashingUtils::HashString("RESPONSE_PLAN"); + static constexpr uint32_t INCIDENT_RECORD_HASH = ConstExprHashingUtils::HashString("INCIDENT_RECORD"); + static constexpr uint32_t TIMELINE_EVENT_HASH = ConstExprHashingUtils::HashString("TIMELINE_EVENT"); + static constexpr uint32_t REPLICATION_SET_HASH = ConstExprHashingUtils::HashString("REPLICATION_SET"); + static constexpr uint32_t RESOURCE_POLICY_HASH = ConstExprHashingUtils::HashString("RESOURCE_POLICY"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESPONSE_PLAN_HASH) { return ResourceType::RESPONSE_PLAN; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ServiceCode.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ServiceCode.cpp index 878d997f6c6..def6b0829aa 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ServiceCode.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/ServiceCode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ServiceCodeMapper { - static const int ssm_incidents_HASH = HashingUtils::HashString("ssm-incidents"); + static constexpr uint32_t ssm_incidents_HASH = ConstExprHashingUtils::HashString("ssm-incidents"); ServiceCode GetServiceCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ssm_incidents_HASH) { return ServiceCode::ssm_incidents; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SortOrder.cpp index cc3675ec8de..233a014d8b4 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return SortOrder::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SsmTargetAccount.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SsmTargetAccount.cpp index 7d83e2bd3d0..791a501b97e 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SsmTargetAccount.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/SsmTargetAccount.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SsmTargetAccountMapper { - static const int RESPONSE_PLAN_OWNER_ACCOUNT_HASH = HashingUtils::HashString("RESPONSE_PLAN_OWNER_ACCOUNT"); - static const int IMPACTED_ACCOUNT_HASH = HashingUtils::HashString("IMPACTED_ACCOUNT"); + static constexpr uint32_t RESPONSE_PLAN_OWNER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("RESPONSE_PLAN_OWNER_ACCOUNT"); + static constexpr uint32_t IMPACTED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("IMPACTED_ACCOUNT"); SsmTargetAccount GetSsmTargetAccountForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESPONSE_PLAN_OWNER_ACCOUNT_HASH) { return SsmTargetAccount::RESPONSE_PLAN_OWNER_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/TimelineEventSort.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/TimelineEventSort.cpp index d2403f51d00..b3a506acb40 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/TimelineEventSort.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/TimelineEventSort.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TimelineEventSortMapper { - static const int EVENT_TIME_HASH = HashingUtils::HashString("EVENT_TIME"); + static constexpr uint32_t EVENT_TIME_HASH = ConstExprHashingUtils::HashString("EVENT_TIME"); TimelineEventSort GetTimelineEventSortForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EVENT_TIME_HASH) { return TimelineEventSort::EVENT_TIME; diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/VariableType.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/VariableType.cpp index 71238d676d8..93385c3db4d 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/model/VariableType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/model/VariableType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VariableTypeMapper { - static const int INCIDENT_RECORD_ARN_HASH = HashingUtils::HashString("INCIDENT_RECORD_ARN"); - static const int INVOLVED_RESOURCES_HASH = HashingUtils::HashString("INVOLVED_RESOURCES"); + static constexpr uint32_t INCIDENT_RECORD_ARN_HASH = ConstExprHashingUtils::HashString("INCIDENT_RECORD_ARN"); + static constexpr uint32_t INVOLVED_RESOURCES_HASH = ConstExprHashingUtils::HashString("INVOLVED_RESOURCES"); VariableType GetVariableTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCIDENT_RECORD_ARN_HASH) { return VariableType::INCIDENT_RECORD_ARN; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapErrors.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapErrors.cpp index 59b73c116f2..4270e9de15a 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapErrors.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapErrors.cpp @@ -18,13 +18,13 @@ namespace SsmSap namespace SsmSapErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationDiscoveryStatus.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationDiscoveryStatus.cpp index 9656f740b0e..1293d18d421 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationDiscoveryStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationDiscoveryStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ApplicationDiscoveryStatusMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int REGISTRATION_FAILED_HASH = HashingUtils::HashString("REGISTRATION_FAILED"); - static const int REFRESH_FAILED_HASH = HashingUtils::HashString("REFRESH_FAILED"); - static const int REGISTERING_HASH = HashingUtils::HashString("REGISTERING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t REGISTRATION_FAILED_HASH = ConstExprHashingUtils::HashString("REGISTRATION_FAILED"); + static constexpr uint32_t REFRESH_FAILED_HASH = ConstExprHashingUtils::HashString("REFRESH_FAILED"); + static constexpr uint32_t REGISTERING_HASH = ConstExprHashingUtils::HashString("REGISTERING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ApplicationDiscoveryStatus GetApplicationDiscoveryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return ApplicationDiscoveryStatus::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationStatus.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationStatus.cpp index d83ef77f7c1..6cc62503140 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ApplicationStatusMapper { - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int REGISTERING_HASH = HashingUtils::HashString("REGISTERING"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t REGISTERING_HASH = ConstExprHashingUtils::HashString("REGISTERING"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); ApplicationStatus GetApplicationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATED_HASH) { return ApplicationStatus::ACTIVATED; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationType.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationType.cpp index 5dcf72a7368..bbdbafc6e93 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ApplicationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ApplicationTypeMapper { - static const int HANA_HASH = HashingUtils::HashString("HANA"); + static constexpr uint32_t HANA_HASH = ConstExprHashingUtils::HashString("HANA"); ApplicationType GetApplicationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HANA_HASH) { return ApplicationType::HANA; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/BackintMode.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/BackintMode.cpp index 43e57b98011..c591186d4cb 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/BackintMode.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/BackintMode.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BackintModeMapper { - static const int AWSBackup_HASH = HashingUtils::HashString("AWSBackup"); + static constexpr uint32_t AWSBackup_HASH = ConstExprHashingUtils::HashString("AWSBackup"); BackintMode GetBackintModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWSBackup_HASH) { return BackintMode::AWSBackup; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ClusterStatus.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ClusterStatus.cpp index b748ca8af05..8e133d86cad 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ClusterStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ClusterStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ClusterStatusMapper { - static const int ONLINE_HASH = HashingUtils::HashString("ONLINE"); - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); - static const int MAINTENANCE_HASH = HashingUtils::HashString("MAINTENANCE"); - static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t ONLINE_HASH = ConstExprHashingUtils::HashString("ONLINE"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); + static constexpr uint32_t MAINTENANCE_HASH = ConstExprHashingUtils::HashString("MAINTENANCE"); + static constexpr uint32_t OFFLINE_HASH = ConstExprHashingUtils::HashString("OFFLINE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ClusterStatus GetClusterStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ONLINE_HASH) { return ClusterStatus::ONLINE; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentStatus.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentStatus.cpp index 817b5b63d18..2fae3fca092 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ComponentStatusMapper { - static const int ACTIVATED_HASH = HashingUtils::HashString("ACTIVATED"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int RUNNING_WITH_ERROR_HASH = HashingUtils::HashString("RUNNING_WITH_ERROR"); - static const int UNDEFINED_HASH = HashingUtils::HashString("UNDEFINED"); + static constexpr uint32_t ACTIVATED_HASH = ConstExprHashingUtils::HashString("ACTIVATED"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t RUNNING_WITH_ERROR_HASH = ConstExprHashingUtils::HashString("RUNNING_WITH_ERROR"); + static constexpr uint32_t UNDEFINED_HASH = ConstExprHashingUtils::HashString("UNDEFINED"); ComponentStatus GetComponentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVATED_HASH) { return ComponentStatus::ACTIVATED; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentType.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentType.cpp index 9f27c61ab07..48dc8b1b8a8 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ComponentType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComponentTypeMapper { - static const int HANA_HASH = HashingUtils::HashString("HANA"); - static const int HANA_NODE_HASH = HashingUtils::HashString("HANA_NODE"); + static constexpr uint32_t HANA_HASH = ConstExprHashingUtils::HashString("HANA"); + static constexpr uint32_t HANA_NODE_HASH = ConstExprHashingUtils::HashString("HANA_NODE"); ComponentType GetComponentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HANA_HASH) { return ComponentType::HANA; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/CredentialType.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/CredentialType.cpp index a19194a90ae..a42ca6daaf1 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/CredentialType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/CredentialType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CredentialTypeMapper { - static const int ADMIN_HASH = HashingUtils::HashString("ADMIN"); + static constexpr uint32_t ADMIN_HASH = ConstExprHashingUtils::HashString("ADMIN"); CredentialType GetCredentialTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADMIN_HASH) { return CredentialType::ADMIN; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseStatus.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseStatus.cpp index c8e7fe977cb..30fe7e934f3 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace DatabaseStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); DatabaseStatus GetDatabaseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return DatabaseStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseType.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseType.cpp index e4c7f0fb76b..f292669e5db 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/DatabaseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DatabaseTypeMapper { - static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); - static const int TENANT_HASH = HashingUtils::HashString("TENANT"); + static constexpr uint32_t SYSTEM_HASH = ConstExprHashingUtils::HashString("SYSTEM"); + static constexpr uint32_t TENANT_HASH = ConstExprHashingUtils::HashString("TENANT"); DatabaseType GetDatabaseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SYSTEM_HASH) { return DatabaseType::SYSTEM; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/FilterOperator.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/FilterOperator.cpp index 594f729b26d..352c78eb4bd 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/FilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/FilterOperator.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FilterOperatorMapper { - static const int Equals_HASH = HashingUtils::HashString("Equals"); - static const int GreaterThanOrEquals_HASH = HashingUtils::HashString("GreaterThanOrEquals"); - static const int LessThanOrEquals_HASH = HashingUtils::HashString("LessThanOrEquals"); + static constexpr uint32_t Equals_HASH = ConstExprHashingUtils::HashString("Equals"); + static constexpr uint32_t GreaterThanOrEquals_HASH = ConstExprHashingUtils::HashString("GreaterThanOrEquals"); + static constexpr uint32_t LessThanOrEquals_HASH = ConstExprHashingUtils::HashString("LessThanOrEquals"); FilterOperator GetFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equals_HASH) { return FilterOperator::Equals; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/HostRole.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/HostRole.cpp index 176b8e291ff..8c184aae381 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/HostRole.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/HostRole.cpp @@ -20,15 +20,15 @@ namespace Aws namespace HostRoleMapper { - static const int LEADER_HASH = HashingUtils::HashString("LEADER"); - static const int WORKER_HASH = HashingUtils::HashString("WORKER"); - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t LEADER_HASH = ConstExprHashingUtils::HashString("LEADER"); + static constexpr uint32_t WORKER_HASH = ConstExprHashingUtils::HashString("WORKER"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); HostRole GetHostRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LEADER_HASH) { return HostRole::LEADER; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationMode.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationMode.cpp index 38278014fbf..ff9d31bfbbe 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationMode.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OperationModeMapper { - static const int PRIMARY_HASH = HashingUtils::HashString("PRIMARY"); - static const int LOGREPLAY_HASH = HashingUtils::HashString("LOGREPLAY"); - static const int DELTA_DATASHIPPING_HASH = HashingUtils::HashString("DELTA_DATASHIPPING"); - static const int LOGREPLAY_READACCESS_HASH = HashingUtils::HashString("LOGREPLAY_READACCESS"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PRIMARY_HASH = ConstExprHashingUtils::HashString("PRIMARY"); + static constexpr uint32_t LOGREPLAY_HASH = ConstExprHashingUtils::HashString("LOGREPLAY"); + static constexpr uint32_t DELTA_DATASHIPPING_HASH = ConstExprHashingUtils::HashString("DELTA_DATASHIPPING"); + static constexpr uint32_t LOGREPLAY_READACCESS_HASH = ConstExprHashingUtils::HashString("LOGREPLAY_READACCESS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); OperationMode GetOperationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_HASH) { return OperationMode::PRIMARY; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationStatus.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationStatus.cpp index 0d962d612f3..dea8822a277 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/OperationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OperationStatusMapper { - static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t INPROGRESS_HASH = ConstExprHashingUtils::HashString("INPROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); OperationStatus GetOperationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INPROGRESS_HASH) { return OperationStatus::INPROGRESS; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/PermissionActionType.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/PermissionActionType.cpp index 639ec6850f7..5f6e3b9a274 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/PermissionActionType.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/PermissionActionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PermissionActionTypeMapper { - static const int RESTORE_HASH = HashingUtils::HashString("RESTORE"); + static constexpr uint32_t RESTORE_HASH = ConstExprHashingUtils::HashString("RESTORE"); PermissionActionType GetPermissionActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RESTORE_HASH) { return PermissionActionType::RESTORE; diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ReplicationMode.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ReplicationMode.cpp index d9286f60bc8..ac3a39ff239 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/model/ReplicationMode.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/model/ReplicationMode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ReplicationModeMapper { - static const int PRIMARY_HASH = HashingUtils::HashString("PRIMARY"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int SYNC_HASH = HashingUtils::HashString("SYNC"); - static const int SYNCMEM_HASH = HashingUtils::HashString("SYNCMEM"); - static const int ASYNC_HASH = HashingUtils::HashString("ASYNC"); + static constexpr uint32_t PRIMARY_HASH = ConstExprHashingUtils::HashString("PRIMARY"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t SYNC_HASH = ConstExprHashingUtils::HashString("SYNC"); + static constexpr uint32_t SYNCMEM_HASH = ConstExprHashingUtils::HashString("SYNCMEM"); + static constexpr uint32_t ASYNC_HASH = ConstExprHashingUtils::HashString("ASYNC"); ReplicationMode GetReplicationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_HASH) { return ReplicationMode::PRIMARY; diff --git a/generated/src/aws-cpp-sdk-ssm/source/SSMErrors.cpp b/generated/src/aws-cpp-sdk-ssm/source/SSMErrors.cpp index c51fa106526..ca0c15bd529 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/SSMErrors.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/SSMErrors.cpp @@ -103,133 +103,133 @@ template<> AWS_SSM_API OpsItemInvalidParameterException SSMError::GetModeledErro namespace SSMErrorMapper { -static const int INVALID_OUTPUT_LOCATION_HASH = HashingUtils::HashString("InvalidOutputLocation"); -static const int RESOURCE_DATA_SYNC_COUNT_EXCEEDED_HASH = HashingUtils::HashString("ResourceDataSyncCountExceededException"); -static const int PARAMETER_VERSION_NOT_FOUND_HASH = HashingUtils::HashString("ParameterVersionNotFound"); -static const int INVALID_POLICY_TYPE_HASH = HashingUtils::HashString("InvalidPolicyTypeException"); -static const int INVALID_AGGREGATOR_HASH = HashingUtils::HashString("InvalidAggregatorException"); -static const int INVALID_INVENTORY_REQUEST_HASH = HashingUtils::HashString("InvalidInventoryRequestException"); -static const int DUPLICATE_DOCUMENT_VERSION_NAME_HASH = HashingUtils::HashString("DuplicateDocumentVersionName"); -static const int OPS_METADATA_INVALID_ARGUMENT_HASH = HashingUtils::HashString("OpsMetadataInvalidArgumentException"); -static const int INVALID_TYPE_NAME_HASH = HashingUtils::HashString("InvalidTypeNameException"); -static const int UNSUPPORTED_INVENTORY_SCHEMA_VERSION_HASH = HashingUtils::HashString("UnsupportedInventorySchemaVersionException"); -static const int ASSOCIATION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AssociationDoesNotExist"); -static const int ASSOCIATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AssociationLimitExceeded"); -static const int INVALID_OPTION_HASH = HashingUtils::HashString("InvalidOptionException"); -static const int PARAMETER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ParameterLimitExceeded"); -static const int SUB_TYPE_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("SubTypeCountLimitExceededException"); -static const int ASSOCIATION_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AssociationVersionLimitExceeded"); -static const int INVALID_PERMISSION_TYPE_HASH = HashingUtils::HashString("InvalidPermissionType"); -static const int INCOMPATIBLE_POLICY_HASH = HashingUtils::HashString("IncompatiblePolicyException"); -static const int INVALID_ASSOCIATION_VERSION_HASH = HashingUtils::HashString("InvalidAssociationVersion"); -static const int OPS_ITEM_RELATED_ITEM_ALREADY_EXISTS_HASH = HashingUtils::HashString("OpsItemRelatedItemAlreadyExistsException"); -static const int PARAMETER_NOT_FOUND_HASH = HashingUtils::HashString("ParameterNotFound"); -static const int INVALID_DOCUMENT_TYPE_HASH = HashingUtils::HashString("InvalidDocumentType"); -static const int RESOURCE_POLICY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourcePolicyLimitExceededException"); -static const int RESOURCE_POLICY_CONFLICT_HASH = HashingUtils::HashString("ResourcePolicyConflictException"); -static const int PARAMETER_ALREADY_EXISTS_HASH = HashingUtils::HashString("ParameterAlreadyExists"); -static const int HIERARCHY_LEVEL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("HierarchyLevelLimitExceededException"); -static const int DOCUMENT_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DocumentVersionLimitExceeded"); -static const int RESOURCE_DATA_SYNC_NOT_FOUND_HASH = HashingUtils::HashString("ResourceDataSyncNotFoundException"); -static const int INVALID_FILTER_VALUE_HASH = HashingUtils::HashString("InvalidFilterValue"); -static const int OPS_ITEM_ALREADY_EXISTS_HASH = HashingUtils::HashString("OpsItemAlreadyExistsException"); -static const int INVALID_DELETE_INVENTORY_PARAMETERS_HASH = HashingUtils::HashString("InvalidDeleteInventoryParametersException"); -static const int OPS_METADATA_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OpsMetadataLimitExceededException"); -static const int FEATURE_NOT_AVAILABLE_HASH = HashingUtils::HashString("FeatureNotAvailableException"); -static const int INVALID_PLUGIN_NAME_HASH = HashingUtils::HashString("InvalidPluginName"); -static const int INVALID_DOCUMENT_HASH = HashingUtils::HashString("InvalidDocument"); -static const int INVALID_AUTOMATION_SIGNAL_HASH = HashingUtils::HashString("InvalidAutomationSignalException"); -static const int RESOURCE_POLICY_INVALID_PARAMETER_HASH = HashingUtils::HashString("ResourcePolicyInvalidParameterException"); -static const int AUTOMATION_DEFINITION_NOT_APPROVED_HASH = HashingUtils::HashString("AutomationDefinitionNotApprovedException"); -static const int AUTOMATION_EXECUTION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationExecutionNotFoundException"); -static const int INVALID_INVENTORY_ITEM_CONTEXT_HASH = HashingUtils::HashString("InvalidInventoryItemContextException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int ASSOCIATION_EXECUTION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("AssociationExecutionDoesNotExist"); -static const int INVALID_RESOURCE_ID_HASH = HashingUtils::HashString("InvalidResourceId"); -static const int INVALID_INSTANCE_ID_HASH = HashingUtils::HashString("InvalidInstanceId"); -static const int ASSOCIATED_INSTANCES_HASH = HashingUtils::HashString("AssociatedInstances"); -static const int OPS_METADATA_ALREADY_EXISTS_HASH = HashingUtils::HashString("OpsMetadataAlreadyExistsException"); -static const int TARGET_IN_USE_HASH = HashingUtils::HashString("TargetInUseException"); -static const int INVALID_KEY_ID_HASH = HashingUtils::HashString("InvalidKeyId"); -static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException"); -static const int ITEM_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ItemSizeLimitExceededException"); -static const int OPS_METADATA_TOO_MANY_UPDATES_HASH = HashingUtils::HashString("OpsMetadataTooManyUpdatesException"); -static const int PARAMETER_VERSION_LABEL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ParameterVersionLabelLimitExceeded"); -static const int INVALID_RESOURCE_TYPE_HASH = HashingUtils::HashString("InvalidResourceType"); -static const int OPS_ITEM_RELATED_ITEM_ASSOCIATION_NOT_FOUND_HASH = HashingUtils::HashString("OpsItemRelatedItemAssociationNotFoundException"); -static const int DOCUMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DocumentLimitExceeded"); -static const int ASSOCIATION_ALREADY_EXISTS_HASH = HashingUtils::HashString("AssociationAlreadyExists"); -static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextToken"); -static const int UNSUPPORTED_OPERATING_SYSTEM_HASH = HashingUtils::HashString("UnsupportedOperatingSystem"); -static const int AUTOMATION_EXECUTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AutomationExecutionLimitExceededException"); -static const int INVALID_DELETION_ID_HASH = HashingUtils::HashString("InvalidDeletionIdException"); -static const int INVALID_TARGET_HASH = HashingUtils::HashString("InvalidTarget"); -static const int INVALID_DOCUMENT_CONTENT_HASH = HashingUtils::HashString("InvalidDocumentContent"); -static const int UNSUPPORTED_INVENTORY_ITEM_CONTEXT_HASH = HashingUtils::HashString("UnsupportedInventoryItemContextException"); -static const int INVALID_POLICY_ATTRIBUTE_HASH = HashingUtils::HashString("InvalidPolicyAttributeException"); -static const int AUTOMATION_DEFINITION_VERSION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationDefinitionVersionNotFoundException"); -static const int COMPLIANCE_TYPE_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ComplianceTypeCountLimitExceededException"); -static const int PARAMETER_MAX_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ParameterMaxVersionLimitExceeded"); -static const int OPS_ITEM_ACCESS_DENIED_HASH = HashingUtils::HashString("OpsItemAccessDeniedException"); -static const int AUTOMATION_STEP_NOT_FOUND_HASH = HashingUtils::HashString("AutomationStepNotFoundException"); -static const int RESOURCE_DATA_SYNC_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceDataSyncAlreadyExistsException"); -static const int INVALID_RESULT_ATTRIBUTE_HASH = HashingUtils::HashString("InvalidResultAttributeException"); -static const int UNSUPPORTED_FEATURE_REQUIRED_HASH = HashingUtils::HashString("UnsupportedFeatureRequiredException"); -static const int STATUS_UNCHANGED_HASH = HashingUtils::HashString("StatusUnchanged"); -static const int OPS_ITEM_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OpsItemLimitExceededException"); -static const int DUPLICATE_INSTANCE_ID_HASH = HashingUtils::HashString("DuplicateInstanceId"); -static const int DUPLICATE_DOCUMENT_CONTENT_HASH = HashingUtils::HashString("DuplicateDocumentContent"); -static const int INVALID_OUTPUT_FOLDER_HASH = HashingUtils::HashString("InvalidOutputFolder"); -static const int TOO_MANY_UPDATES_HASH = HashingUtils::HashString("TooManyUpdates"); -static const int INVALID_DOCUMENT_SCHEMA_VERSION_HASH = HashingUtils::HashString("InvalidDocumentSchemaVersion"); -static const int INVALID_AUTOMATION_STATUS_UPDATE_HASH = HashingUtils::HashString("InvalidAutomationStatusUpdateException"); -static const int INVALID_AUTOMATION_EXECUTION_PARAMETERS_HASH = HashingUtils::HashString("InvalidAutomationExecutionParametersException"); -static const int ITEM_CONTENT_MISMATCH_HASH = HashingUtils::HashString("ItemContentMismatchException"); -static const int PARAMETER_PATTERN_MISMATCH_HASH = HashingUtils::HashString("ParameterPatternMismatchException"); -static const int INVALID_INSTANCE_INFORMATION_FILTER_VALUE_HASH = HashingUtils::HashString("InvalidInstanceInformationFilterValue"); -static const int INVALID_COMMAND_ID_HASH = HashingUtils::HashString("InvalidCommandId"); -static const int INVALID_TARGET_MAPS_HASH = HashingUtils::HashString("InvalidTargetMaps"); -static const int INVOCATION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("InvocationDoesNotExist"); -static const int TOTAL_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TotalSizeLimitExceededException"); -static const int AUTOMATION_DEFINITION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationDefinitionNotFoundException"); -static const int CUSTOM_SCHEMA_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CustomSchemaCountLimitExceededException"); -static const int INVALID_ALLOWED_PATTERN_HASH = HashingUtils::HashString("InvalidAllowedPatternException"); -static const int INVALID_ROLE_HASH = HashingUtils::HashString("InvalidRole"); -static const int INVALID_PARAMETERS_HASH = HashingUtils::HashString("InvalidParameters"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsError"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int INVALID_ACTIVATION_HASH = HashingUtils::HashString("InvalidActivation"); -static const int RESOURCE_DATA_SYNC_INVALID_CONFIGURATION_HASH = HashingUtils::HashString("ResourceDataSyncInvalidConfigurationException"); -static const int INVALID_ASSOCIATION_HASH = HashingUtils::HashString("InvalidAssociation"); -static const int HIERARCHY_TYPE_MISMATCH_HASH = HashingUtils::HashString("HierarchyTypeMismatchException"); -static const int DOES_NOT_EXIST_HASH = HashingUtils::HashString("DoesNotExistException"); -static const int INVALID_DOCUMENT_OPERATION_HASH = HashingUtils::HashString("InvalidDocumentOperation"); -static const int OPS_METADATA_NOT_FOUND_HASH = HashingUtils::HashString("OpsMetadataNotFoundException"); -static const int OPS_ITEM_NOT_FOUND_HASH = HashingUtils::HashString("OpsItemNotFoundException"); -static const int INVALID_UPDATE_HASH = HashingUtils::HashString("InvalidUpdate"); -static const int INVALID_FILTER_OPTION_HASH = HashingUtils::HashString("InvalidFilterOption"); -static const int INVALID_ITEM_CONTENT_HASH = HashingUtils::HashString("InvalidItemContentException"); -static const int TARGET_NOT_CONNECTED_HASH = HashingUtils::HashString("TargetNotConnected"); -static const int DOCUMENT_ALREADY_EXISTS_HASH = HashingUtils::HashString("DocumentAlreadyExists"); -static const int UNSUPPORTED_CALENDAR_HASH = HashingUtils::HashString("UnsupportedCalendarException"); -static const int INVALID_DOCUMENT_VERSION_HASH = HashingUtils::HashString("InvalidDocumentVersion"); -static const int INVALID_NOTIFICATION_CONFIG_HASH = HashingUtils::HashString("InvalidNotificationConfig"); -static const int INVALID_TAG_HASH = HashingUtils::HashString("InvalidTag"); -static const int INVALID_SCHEDULE_HASH = HashingUtils::HashString("InvalidSchedule"); -static const int INVALID_ACTIVATION_ID_HASH = HashingUtils::HashString("InvalidActivationId"); -static const int RESOURCE_DATA_SYNC_CONFLICT_HASH = HashingUtils::HashString("ResourceDataSyncConflictException"); -static const int OPS_METADATA_KEY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OpsMetadataKeyLimitExceededException"); -static const int INVALID_FILTER_HASH = HashingUtils::HashString("InvalidFilter"); -static const int OPS_ITEM_INVALID_PARAMETER_HASH = HashingUtils::HashString("OpsItemInvalidParameterException"); -static const int INVALID_INVENTORY_GROUP_HASH = HashingUtils::HashString("InvalidInventoryGroupException"); -static const int POLICIES_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PoliciesLimitExceededException"); -static const int UNSUPPORTED_PARAMETER_TYPE_HASH = HashingUtils::HashString("UnsupportedParameterType"); -static const int MAX_DOCUMENT_SIZE_EXCEEDED_HASH = HashingUtils::HashString("MaxDocumentSizeExceeded"); -static const int INVALID_FILTER_KEY_HASH = HashingUtils::HashString("InvalidFilterKey"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatch"); -static const int UNSUPPORTED_PLATFORM_TYPE_HASH = HashingUtils::HashString("UnsupportedPlatformType"); -static const int SERVICE_SETTING_NOT_FOUND_HASH = HashingUtils::HashString("ServiceSettingNotFound"); -static const int DOCUMENT_PERMISSION_LIMIT_HASH = HashingUtils::HashString("DocumentPermissionLimit"); +static constexpr uint32_t INVALID_OUTPUT_LOCATION_HASH = ConstExprHashingUtils::HashString("InvalidOutputLocation"); +static constexpr uint32_t RESOURCE_DATA_SYNC_COUNT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceDataSyncCountExceededException"); +static constexpr uint32_t PARAMETER_VERSION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ParameterVersionNotFound"); +static constexpr uint32_t INVALID_POLICY_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidPolicyTypeException"); +static constexpr uint32_t INVALID_AGGREGATOR_HASH = ConstExprHashingUtils::HashString("InvalidAggregatorException"); +static constexpr uint32_t INVALID_INVENTORY_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidInventoryRequestException"); +static constexpr uint32_t DUPLICATE_DOCUMENT_VERSION_NAME_HASH = ConstExprHashingUtils::HashString("DuplicateDocumentVersionName"); +static constexpr uint32_t OPS_METADATA_INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("OpsMetadataInvalidArgumentException"); +static constexpr uint32_t INVALID_TYPE_NAME_HASH = ConstExprHashingUtils::HashString("InvalidTypeNameException"); +static constexpr uint32_t UNSUPPORTED_INVENTORY_SCHEMA_VERSION_HASH = ConstExprHashingUtils::HashString("UnsupportedInventorySchemaVersionException"); +static constexpr uint32_t ASSOCIATION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("AssociationDoesNotExist"); +static constexpr uint32_t ASSOCIATION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AssociationLimitExceeded"); +static constexpr uint32_t INVALID_OPTION_HASH = ConstExprHashingUtils::HashString("InvalidOptionException"); +static constexpr uint32_t PARAMETER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ParameterLimitExceeded"); +static constexpr uint32_t SUB_TYPE_COUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SubTypeCountLimitExceededException"); +static constexpr uint32_t ASSOCIATION_VERSION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AssociationVersionLimitExceeded"); +static constexpr uint32_t INVALID_PERMISSION_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidPermissionType"); +static constexpr uint32_t INCOMPATIBLE_POLICY_HASH = ConstExprHashingUtils::HashString("IncompatiblePolicyException"); +static constexpr uint32_t INVALID_ASSOCIATION_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidAssociationVersion"); +static constexpr uint32_t OPS_ITEM_RELATED_ITEM_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("OpsItemRelatedItemAlreadyExistsException"); +static constexpr uint32_t PARAMETER_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ParameterNotFound"); +static constexpr uint32_t INVALID_DOCUMENT_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidDocumentType"); +static constexpr uint32_t RESOURCE_POLICY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourcePolicyLimitExceededException"); +static constexpr uint32_t RESOURCE_POLICY_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourcePolicyConflictException"); +static constexpr uint32_t PARAMETER_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ParameterAlreadyExists"); +static constexpr uint32_t HIERARCHY_LEVEL_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("HierarchyLevelLimitExceededException"); +static constexpr uint32_t DOCUMENT_VERSION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DocumentVersionLimitExceeded"); +static constexpr uint32_t RESOURCE_DATA_SYNC_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ResourceDataSyncNotFoundException"); +static constexpr uint32_t INVALID_FILTER_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidFilterValue"); +static constexpr uint32_t OPS_ITEM_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("OpsItemAlreadyExistsException"); +static constexpr uint32_t INVALID_DELETE_INVENTORY_PARAMETERS_HASH = ConstExprHashingUtils::HashString("InvalidDeleteInventoryParametersException"); +static constexpr uint32_t OPS_METADATA_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OpsMetadataLimitExceededException"); +static constexpr uint32_t FEATURE_NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("FeatureNotAvailableException"); +static constexpr uint32_t INVALID_PLUGIN_NAME_HASH = ConstExprHashingUtils::HashString("InvalidPluginName"); +static constexpr uint32_t INVALID_DOCUMENT_HASH = ConstExprHashingUtils::HashString("InvalidDocument"); +static constexpr uint32_t INVALID_AUTOMATION_SIGNAL_HASH = ConstExprHashingUtils::HashString("InvalidAutomationSignalException"); +static constexpr uint32_t RESOURCE_POLICY_INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("ResourcePolicyInvalidParameterException"); +static constexpr uint32_t AUTOMATION_DEFINITION_NOT_APPROVED_HASH = ConstExprHashingUtils::HashString("AutomationDefinitionNotApprovedException"); +static constexpr uint32_t AUTOMATION_EXECUTION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AutomationExecutionNotFoundException"); +static constexpr uint32_t INVALID_INVENTORY_ITEM_CONTEXT_HASH = ConstExprHashingUtils::HashString("InvalidInventoryItemContextException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t ASSOCIATION_EXECUTION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("AssociationExecutionDoesNotExist"); +static constexpr uint32_t INVALID_RESOURCE_ID_HASH = ConstExprHashingUtils::HashString("InvalidResourceId"); +static constexpr uint32_t INVALID_INSTANCE_ID_HASH = ConstExprHashingUtils::HashString("InvalidInstanceId"); +static constexpr uint32_t ASSOCIATED_INSTANCES_HASH = ConstExprHashingUtils::HashString("AssociatedInstances"); +static constexpr uint32_t OPS_METADATA_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("OpsMetadataAlreadyExistsException"); +static constexpr uint32_t TARGET_IN_USE_HASH = ConstExprHashingUtils::HashString("TargetInUseException"); +static constexpr uint32_t INVALID_KEY_ID_HASH = ConstExprHashingUtils::HashString("InvalidKeyId"); +static constexpr uint32_t ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AlreadyExistsException"); +static constexpr uint32_t ITEM_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ItemSizeLimitExceededException"); +static constexpr uint32_t OPS_METADATA_TOO_MANY_UPDATES_HASH = ConstExprHashingUtils::HashString("OpsMetadataTooManyUpdatesException"); +static constexpr uint32_t PARAMETER_VERSION_LABEL_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ParameterVersionLabelLimitExceeded"); +static constexpr uint32_t INVALID_RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("InvalidResourceType"); +static constexpr uint32_t OPS_ITEM_RELATED_ITEM_ASSOCIATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OpsItemRelatedItemAssociationNotFoundException"); +static constexpr uint32_t DOCUMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DocumentLimitExceeded"); +static constexpr uint32_t ASSOCIATION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("AssociationAlreadyExists"); +static constexpr uint32_t INVALID_NEXT_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidNextToken"); +static constexpr uint32_t UNSUPPORTED_OPERATING_SYSTEM_HASH = ConstExprHashingUtils::HashString("UnsupportedOperatingSystem"); +static constexpr uint32_t AUTOMATION_EXECUTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AutomationExecutionLimitExceededException"); +static constexpr uint32_t INVALID_DELETION_ID_HASH = ConstExprHashingUtils::HashString("InvalidDeletionIdException"); +static constexpr uint32_t INVALID_TARGET_HASH = ConstExprHashingUtils::HashString("InvalidTarget"); +static constexpr uint32_t INVALID_DOCUMENT_CONTENT_HASH = ConstExprHashingUtils::HashString("InvalidDocumentContent"); +static constexpr uint32_t UNSUPPORTED_INVENTORY_ITEM_CONTEXT_HASH = ConstExprHashingUtils::HashString("UnsupportedInventoryItemContextException"); +static constexpr uint32_t INVALID_POLICY_ATTRIBUTE_HASH = ConstExprHashingUtils::HashString("InvalidPolicyAttributeException"); +static constexpr uint32_t AUTOMATION_DEFINITION_VERSION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AutomationDefinitionVersionNotFoundException"); +static constexpr uint32_t COMPLIANCE_TYPE_COUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ComplianceTypeCountLimitExceededException"); +static constexpr uint32_t PARAMETER_MAX_VERSION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ParameterMaxVersionLimitExceeded"); +static constexpr uint32_t OPS_ITEM_ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("OpsItemAccessDeniedException"); +static constexpr uint32_t AUTOMATION_STEP_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AutomationStepNotFoundException"); +static constexpr uint32_t RESOURCE_DATA_SYNC_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceDataSyncAlreadyExistsException"); +static constexpr uint32_t INVALID_RESULT_ATTRIBUTE_HASH = ConstExprHashingUtils::HashString("InvalidResultAttributeException"); +static constexpr uint32_t UNSUPPORTED_FEATURE_REQUIRED_HASH = ConstExprHashingUtils::HashString("UnsupportedFeatureRequiredException"); +static constexpr uint32_t STATUS_UNCHANGED_HASH = ConstExprHashingUtils::HashString("StatusUnchanged"); +static constexpr uint32_t OPS_ITEM_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OpsItemLimitExceededException"); +static constexpr uint32_t DUPLICATE_INSTANCE_ID_HASH = ConstExprHashingUtils::HashString("DuplicateInstanceId"); +static constexpr uint32_t DUPLICATE_DOCUMENT_CONTENT_HASH = ConstExprHashingUtils::HashString("DuplicateDocumentContent"); +static constexpr uint32_t INVALID_OUTPUT_FOLDER_HASH = ConstExprHashingUtils::HashString("InvalidOutputFolder"); +static constexpr uint32_t TOO_MANY_UPDATES_HASH = ConstExprHashingUtils::HashString("TooManyUpdates"); +static constexpr uint32_t INVALID_DOCUMENT_SCHEMA_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidDocumentSchemaVersion"); +static constexpr uint32_t INVALID_AUTOMATION_STATUS_UPDATE_HASH = ConstExprHashingUtils::HashString("InvalidAutomationStatusUpdateException"); +static constexpr uint32_t INVALID_AUTOMATION_EXECUTION_PARAMETERS_HASH = ConstExprHashingUtils::HashString("InvalidAutomationExecutionParametersException"); +static constexpr uint32_t ITEM_CONTENT_MISMATCH_HASH = ConstExprHashingUtils::HashString("ItemContentMismatchException"); +static constexpr uint32_t PARAMETER_PATTERN_MISMATCH_HASH = ConstExprHashingUtils::HashString("ParameterPatternMismatchException"); +static constexpr uint32_t INVALID_INSTANCE_INFORMATION_FILTER_VALUE_HASH = ConstExprHashingUtils::HashString("InvalidInstanceInformationFilterValue"); +static constexpr uint32_t INVALID_COMMAND_ID_HASH = ConstExprHashingUtils::HashString("InvalidCommandId"); +static constexpr uint32_t INVALID_TARGET_MAPS_HASH = ConstExprHashingUtils::HashString("InvalidTargetMaps"); +static constexpr uint32_t INVOCATION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("InvocationDoesNotExist"); +static constexpr uint32_t TOTAL_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TotalSizeLimitExceededException"); +static constexpr uint32_t AUTOMATION_DEFINITION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AutomationDefinitionNotFoundException"); +static constexpr uint32_t CUSTOM_SCHEMA_COUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CustomSchemaCountLimitExceededException"); +static constexpr uint32_t INVALID_ALLOWED_PATTERN_HASH = ConstExprHashingUtils::HashString("InvalidAllowedPatternException"); +static constexpr uint32_t INVALID_ROLE_HASH = ConstExprHashingUtils::HashString("InvalidRole"); +static constexpr uint32_t INVALID_PARAMETERS_HASH = ConstExprHashingUtils::HashString("InvalidParameters"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsError"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t INVALID_ACTIVATION_HASH = ConstExprHashingUtils::HashString("InvalidActivation"); +static constexpr uint32_t RESOURCE_DATA_SYNC_INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("ResourceDataSyncInvalidConfigurationException"); +static constexpr uint32_t INVALID_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("InvalidAssociation"); +static constexpr uint32_t HIERARCHY_TYPE_MISMATCH_HASH = ConstExprHashingUtils::HashString("HierarchyTypeMismatchException"); +static constexpr uint32_t DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("DoesNotExistException"); +static constexpr uint32_t INVALID_DOCUMENT_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidDocumentOperation"); +static constexpr uint32_t OPS_METADATA_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OpsMetadataNotFoundException"); +static constexpr uint32_t OPS_ITEM_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OpsItemNotFoundException"); +static constexpr uint32_t INVALID_UPDATE_HASH = ConstExprHashingUtils::HashString("InvalidUpdate"); +static constexpr uint32_t INVALID_FILTER_OPTION_HASH = ConstExprHashingUtils::HashString("InvalidFilterOption"); +static constexpr uint32_t INVALID_ITEM_CONTENT_HASH = ConstExprHashingUtils::HashString("InvalidItemContentException"); +static constexpr uint32_t TARGET_NOT_CONNECTED_HASH = ConstExprHashingUtils::HashString("TargetNotConnected"); +static constexpr uint32_t DOCUMENT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("DocumentAlreadyExists"); +static constexpr uint32_t UNSUPPORTED_CALENDAR_HASH = ConstExprHashingUtils::HashString("UnsupportedCalendarException"); +static constexpr uint32_t INVALID_DOCUMENT_VERSION_HASH = ConstExprHashingUtils::HashString("InvalidDocumentVersion"); +static constexpr uint32_t INVALID_NOTIFICATION_CONFIG_HASH = ConstExprHashingUtils::HashString("InvalidNotificationConfig"); +static constexpr uint32_t INVALID_TAG_HASH = ConstExprHashingUtils::HashString("InvalidTag"); +static constexpr uint32_t INVALID_SCHEDULE_HASH = ConstExprHashingUtils::HashString("InvalidSchedule"); +static constexpr uint32_t INVALID_ACTIVATION_ID_HASH = ConstExprHashingUtils::HashString("InvalidActivationId"); +static constexpr uint32_t RESOURCE_DATA_SYNC_CONFLICT_HASH = ConstExprHashingUtils::HashString("ResourceDataSyncConflictException"); +static constexpr uint32_t OPS_METADATA_KEY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OpsMetadataKeyLimitExceededException"); +static constexpr uint32_t INVALID_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidFilter"); +static constexpr uint32_t OPS_ITEM_INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("OpsItemInvalidParameterException"); +static constexpr uint32_t INVALID_INVENTORY_GROUP_HASH = ConstExprHashingUtils::HashString("InvalidInventoryGroupException"); +static constexpr uint32_t POLICIES_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PoliciesLimitExceededException"); +static constexpr uint32_t UNSUPPORTED_PARAMETER_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedParameterType"); +static constexpr uint32_t MAX_DOCUMENT_SIZE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("MaxDocumentSizeExceeded"); +static constexpr uint32_t INVALID_FILTER_KEY_HASH = ConstExprHashingUtils::HashString("InvalidFilterKey"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatch"); +static constexpr uint32_t UNSUPPORTED_PLATFORM_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedPlatformType"); +static constexpr uint32_t SERVICE_SETTING_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ServiceSettingNotFound"); +static constexpr uint32_t DOCUMENT_PERMISSION_LIMIT_HASH = ConstExprHashingUtils::HashString("DocumentPermissionLimit"); /* @@ -238,7 +238,7 @@ which allows constant time lookup. The chain has been broken into helper functio because MSVC has a maximum of 122 chained if-else blocks. */ -static bool GetErrorForNameHelper0(int hashCode, AWSError& error) +static bool GetErrorForNameHelper0(uint32_t hashCode, AWSError& error) { if (hashCode == INVALID_OUTPUT_LOCATION_HASH) { @@ -853,7 +853,7 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) return false; } -static bool GetErrorForNameHelper1(int hashCode, AWSError& error) +static bool GetErrorForNameHelper1(uint32_t hashCode, AWSError& error) { if (hashCode == INVALID_FILTER_KEY_HASH) { @@ -885,7 +885,7 @@ static bool GetErrorForNameHelper1(int hashCode, AWSError& error) AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); AWSError error; if (GetErrorForNameHelper0(hashCode, error)) { diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationComplianceSeverity.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationComplianceSeverity.cpp index 3e30222e248..97a335556c7 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationComplianceSeverity.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationComplianceSeverity.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssociationComplianceSeverityMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); AssociationComplianceSeverity GetAssociationComplianceSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return AssociationComplianceSeverity::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionFilterKey.cpp index 2dcdf2467d4..d1074dca56f 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionFilterKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssociationExecutionFilterKeyMapper { - static const int ExecutionId_HASH = HashingUtils::HashString("ExecutionId"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int CreatedTime_HASH = HashingUtils::HashString("CreatedTime"); + static constexpr uint32_t ExecutionId_HASH = ConstExprHashingUtils::HashString("ExecutionId"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t CreatedTime_HASH = ConstExprHashingUtils::HashString("CreatedTime"); AssociationExecutionFilterKey GetAssociationExecutionFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ExecutionId_HASH) { return AssociationExecutionFilterKey::ExecutionId; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionTargetsFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionTargetsFilterKey.cpp index d794cb4b59c..e2d5c5a411e 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionTargetsFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationExecutionTargetsFilterKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssociationExecutionTargetsFilterKeyMapper { - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int ResourceId_HASH = HashingUtils::HashString("ResourceId"); - static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t ResourceId_HASH = ConstExprHashingUtils::HashString("ResourceId"); + static constexpr uint32_t ResourceType_HASH = ConstExprHashingUtils::HashString("ResourceType"); AssociationExecutionTargetsFilterKey GetAssociationExecutionTargetsFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Status_HASH) { return AssociationExecutionTargetsFilterKey::Status; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterKey.cpp index 3b4bcc22836..a475f8a6b10 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterKey.cpp @@ -20,19 +20,19 @@ namespace Aws namespace AssociationFilterKeyMapper { - static const int InstanceId_HASH = HashingUtils::HashString("InstanceId"); - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int AssociationId_HASH = HashingUtils::HashString("AssociationId"); - static const int AssociationStatusName_HASH = HashingUtils::HashString("AssociationStatusName"); - static const int LastExecutedBefore_HASH = HashingUtils::HashString("LastExecutedBefore"); - static const int LastExecutedAfter_HASH = HashingUtils::HashString("LastExecutedAfter"); - static const int AssociationName_HASH = HashingUtils::HashString("AssociationName"); - static const int ResourceGroupName_HASH = HashingUtils::HashString("ResourceGroupName"); + static constexpr uint32_t InstanceId_HASH = ConstExprHashingUtils::HashString("InstanceId"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t AssociationId_HASH = ConstExprHashingUtils::HashString("AssociationId"); + static constexpr uint32_t AssociationStatusName_HASH = ConstExprHashingUtils::HashString("AssociationStatusName"); + static constexpr uint32_t LastExecutedBefore_HASH = ConstExprHashingUtils::HashString("LastExecutedBefore"); + static constexpr uint32_t LastExecutedAfter_HASH = ConstExprHashingUtils::HashString("LastExecutedAfter"); + static constexpr uint32_t AssociationName_HASH = ConstExprHashingUtils::HashString("AssociationName"); + static constexpr uint32_t ResourceGroupName_HASH = ConstExprHashingUtils::HashString("ResourceGroupName"); AssociationFilterKey GetAssociationFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InstanceId_HASH) { return AssociationFilterKey::InstanceId; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterOperatorType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterOperatorType.cpp index 4686e9e8533..f0d193c931d 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterOperatorType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationFilterOperatorType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssociationFilterOperatorTypeMapper { - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); AssociationFilterOperatorType GetAssociationFilterOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUAL_HASH) { return AssociationFilterOperatorType::EQUAL; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationStatusName.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationStatusName.cpp index c6ca39d6918..bad054a7c85 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationStatusName.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationStatusName.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AssociationStatusNameMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); AssociationStatusName GetAssociationStatusNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return AssociationStatusName::Pending; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationSyncCompliance.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationSyncCompliance.cpp index 5ac65b15813..4358776a554 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AssociationSyncCompliance.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AssociationSyncCompliance.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AssociationSyncComplianceMapper { - static const int AUTO_HASH = HashingUtils::HashString("AUTO"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTO_HASH = ConstExprHashingUtils::HashString("AUTO"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); AssociationSyncCompliance GetAssociationSyncComplianceForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_HASH) { return AssociationSyncCompliance::AUTO; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentHashType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentHashType.cpp index f242b5bb491..31154c9818f 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentHashType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentHashType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AttachmentHashTypeMapper { - static const int Sha256_HASH = HashingUtils::HashString("Sha256"); + static constexpr uint32_t Sha256_HASH = ConstExprHashingUtils::HashString("Sha256"); AttachmentHashType GetAttachmentHashTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sha256_HASH) { return AttachmentHashType::Sha256; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentsSourceKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentsSourceKey.cpp index 32023fdbc2c..771e54c06c2 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentsSourceKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AttachmentsSourceKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AttachmentsSourceKeyMapper { - static const int SourceUrl_HASH = HashingUtils::HashString("SourceUrl"); - static const int S3FileUrl_HASH = HashingUtils::HashString("S3FileUrl"); - static const int AttachmentReference_HASH = HashingUtils::HashString("AttachmentReference"); + static constexpr uint32_t SourceUrl_HASH = ConstExprHashingUtils::HashString("SourceUrl"); + static constexpr uint32_t S3FileUrl_HASH = ConstExprHashingUtils::HashString("S3FileUrl"); + static constexpr uint32_t AttachmentReference_HASH = ConstExprHashingUtils::HashString("AttachmentReference"); AttachmentsSourceKey GetAttachmentsSourceKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SourceUrl_HASH) { return AttachmentsSourceKey::SourceUrl; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp index a0bc0e06fed..914996ae1bf 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp @@ -20,23 +20,23 @@ namespace Aws namespace AutomationExecutionFilterKeyMapper { - static const int DocumentNamePrefix_HASH = HashingUtils::HashString("DocumentNamePrefix"); - static const int ExecutionStatus_HASH = HashingUtils::HashString("ExecutionStatus"); - static const int ExecutionId_HASH = HashingUtils::HashString("ExecutionId"); - static const int ParentExecutionId_HASH = HashingUtils::HashString("ParentExecutionId"); - static const int CurrentAction_HASH = HashingUtils::HashString("CurrentAction"); - static const int StartTimeBefore_HASH = HashingUtils::HashString("StartTimeBefore"); - static const int StartTimeAfter_HASH = HashingUtils::HashString("StartTimeAfter"); - static const int AutomationType_HASH = HashingUtils::HashString("AutomationType"); - static const int TagKey_HASH = HashingUtils::HashString("TagKey"); - static const int TargetResourceGroup_HASH = HashingUtils::HashString("TargetResourceGroup"); - static const int AutomationSubtype_HASH = HashingUtils::HashString("AutomationSubtype"); - static const int OpsItemId_HASH = HashingUtils::HashString("OpsItemId"); + static constexpr uint32_t DocumentNamePrefix_HASH = ConstExprHashingUtils::HashString("DocumentNamePrefix"); + static constexpr uint32_t ExecutionStatus_HASH = ConstExprHashingUtils::HashString("ExecutionStatus"); + static constexpr uint32_t ExecutionId_HASH = ConstExprHashingUtils::HashString("ExecutionId"); + static constexpr uint32_t ParentExecutionId_HASH = ConstExprHashingUtils::HashString("ParentExecutionId"); + static constexpr uint32_t CurrentAction_HASH = ConstExprHashingUtils::HashString("CurrentAction"); + static constexpr uint32_t StartTimeBefore_HASH = ConstExprHashingUtils::HashString("StartTimeBefore"); + static constexpr uint32_t StartTimeAfter_HASH = ConstExprHashingUtils::HashString("StartTimeAfter"); + static constexpr uint32_t AutomationType_HASH = ConstExprHashingUtils::HashString("AutomationType"); + static constexpr uint32_t TagKey_HASH = ConstExprHashingUtils::HashString("TagKey"); + static constexpr uint32_t TargetResourceGroup_HASH = ConstExprHashingUtils::HashString("TargetResourceGroup"); + static constexpr uint32_t AutomationSubtype_HASH = ConstExprHashingUtils::HashString("AutomationSubtype"); + static constexpr uint32_t OpsItemId_HASH = ConstExprHashingUtils::HashString("OpsItemId"); AutomationExecutionFilterKey GetAutomationExecutionFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DocumentNamePrefix_HASH) { return AutomationExecutionFilterKey::DocumentNamePrefix; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp index f23fc5820e5..b239df2108e 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp @@ -20,29 +20,29 @@ namespace Aws namespace AutomationExecutionStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Waiting_HASH = HashingUtils::HashString("Waiting"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int PendingApproval_HASH = HashingUtils::HashString("PendingApproval"); - static const int Approved_HASH = HashingUtils::HashString("Approved"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int RunbookInProgress_HASH = HashingUtils::HashString("RunbookInProgress"); - static const int PendingChangeCalendarOverride_HASH = HashingUtils::HashString("PendingChangeCalendarOverride"); - static const int ChangeCalendarOverrideApproved_HASH = HashingUtils::HashString("ChangeCalendarOverrideApproved"); - static const int ChangeCalendarOverrideRejected_HASH = HashingUtils::HashString("ChangeCalendarOverrideRejected"); - static const int CompletedWithSuccess_HASH = HashingUtils::HashString("CompletedWithSuccess"); - static const int CompletedWithFailure_HASH = HashingUtils::HashString("CompletedWithFailure"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Waiting_HASH = ConstExprHashingUtils::HashString("Waiting"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t PendingApproval_HASH = ConstExprHashingUtils::HashString("PendingApproval"); + static constexpr uint32_t Approved_HASH = ConstExprHashingUtils::HashString("Approved"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t RunbookInProgress_HASH = ConstExprHashingUtils::HashString("RunbookInProgress"); + static constexpr uint32_t PendingChangeCalendarOverride_HASH = ConstExprHashingUtils::HashString("PendingChangeCalendarOverride"); + static constexpr uint32_t ChangeCalendarOverrideApproved_HASH = ConstExprHashingUtils::HashString("ChangeCalendarOverrideApproved"); + static constexpr uint32_t ChangeCalendarOverrideRejected_HASH = ConstExprHashingUtils::HashString("ChangeCalendarOverrideRejected"); + static constexpr uint32_t CompletedWithSuccess_HASH = ConstExprHashingUtils::HashString("CompletedWithSuccess"); + static constexpr uint32_t CompletedWithFailure_HASH = ConstExprHashingUtils::HashString("CompletedWithFailure"); AutomationExecutionStatus GetAutomationExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return AutomationExecutionStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp index d20269e8070..9b2f1969c54 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AutomationSubtypeMapper { - static const int ChangeRequest_HASH = HashingUtils::HashString("ChangeRequest"); + static constexpr uint32_t ChangeRequest_HASH = ConstExprHashingUtils::HashString("ChangeRequest"); AutomationSubtype GetAutomationSubtypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ChangeRequest_HASH) { return AutomationSubtype::ChangeRequest; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationType.cpp index d5766513181..8dbb2b50859 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/AutomationType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/AutomationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutomationTypeMapper { - static const int CrossAccount_HASH = HashingUtils::HashString("CrossAccount"); - static const int Local_HASH = HashingUtils::HashString("Local"); + static constexpr uint32_t CrossAccount_HASH = ConstExprHashingUtils::HashString("CrossAccount"); + static constexpr uint32_t Local_HASH = ConstExprHashingUtils::HashString("Local"); AutomationType GetAutomationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CrossAccount_HASH) { return AutomationType::CrossAccount; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CalendarState.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CalendarState.cpp index 4b0b650db83..bbd53d03dee 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CalendarState.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CalendarState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CalendarStateMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); CalendarState GetCalendarStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return CalendarState::OPEN; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CommandFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CommandFilterKey.cpp index 286b8500cc8..3c20dcaee50 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CommandFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CommandFilterKey.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CommandFilterKeyMapper { - static const int InvokedAfter_HASH = HashingUtils::HashString("InvokedAfter"); - static const int InvokedBefore_HASH = HashingUtils::HashString("InvokedBefore"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int ExecutionStage_HASH = HashingUtils::HashString("ExecutionStage"); - static const int DocumentName_HASH = HashingUtils::HashString("DocumentName"); + static constexpr uint32_t InvokedAfter_HASH = ConstExprHashingUtils::HashString("InvokedAfter"); + static constexpr uint32_t InvokedBefore_HASH = ConstExprHashingUtils::HashString("InvokedBefore"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t ExecutionStage_HASH = ConstExprHashingUtils::HashString("ExecutionStage"); + static constexpr uint32_t DocumentName_HASH = ConstExprHashingUtils::HashString("DocumentName"); CommandFilterKey GetCommandFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvokedAfter_HASH) { return CommandFilterKey::InvokedAfter; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CommandInvocationStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CommandInvocationStatus.cpp index fee0484bdb8..74fe55b6f5a 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CommandInvocationStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CommandInvocationStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace CommandInvocationStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Delayed_HASH = HashingUtils::HashString("Delayed"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Delayed_HASH = ConstExprHashingUtils::HashString("Delayed"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); CommandInvocationStatus GetCommandInvocationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return CommandInvocationStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CommandPluginStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CommandPluginStatus.cpp index 4f184276048..34f18e6a7a7 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CommandPluginStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CommandPluginStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CommandPluginStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); CommandPluginStatus GetCommandPluginStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return CommandPluginStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/CommandStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/CommandStatus.cpp index 3e3772475e2..597b1b400cd 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/CommandStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/CommandStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CommandStatusMapper { - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); CommandStatus GetCommandStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Pending_HASH) { return CommandStatus::Pending; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceQueryOperatorType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceQueryOperatorType.cpp index 8d959759446..31f20dbc5a3 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceQueryOperatorType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceQueryOperatorType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ComplianceQueryOperatorTypeMapper { - static const int EQUAL_HASH = HashingUtils::HashString("EQUAL"); - static const int NOT_EQUAL_HASH = HashingUtils::HashString("NOT_EQUAL"); - static const int BEGIN_WITH_HASH = HashingUtils::HashString("BEGIN_WITH"); - static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); - static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); + static constexpr uint32_t EQUAL_HASH = ConstExprHashingUtils::HashString("EQUAL"); + static constexpr uint32_t NOT_EQUAL_HASH = ConstExprHashingUtils::HashString("NOT_EQUAL"); + static constexpr uint32_t BEGIN_WITH_HASH = ConstExprHashingUtils::HashString("BEGIN_WITH"); + static constexpr uint32_t LESS_THAN_HASH = ConstExprHashingUtils::HashString("LESS_THAN"); + static constexpr uint32_t GREATER_THAN_HASH = ConstExprHashingUtils::HashString("GREATER_THAN"); ComplianceQueryOperatorType GetComplianceQueryOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUAL_HASH) { return ComplianceQueryOperatorType::EQUAL; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceSeverity.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceSeverity.cpp index affbe01085a..1daf9ba78b9 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceSeverity.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceSeverity.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ComplianceSeverityMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int INFORMATIONAL_HASH = HashingUtils::HashString("INFORMATIONAL"); - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t INFORMATIONAL_HASH = ConstExprHashingUtils::HashString("INFORMATIONAL"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); ComplianceSeverity GetComplianceSeverityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return ComplianceSeverity::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceStatus.cpp index 01d3105c2fb..4c78c97574c 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComplianceStatusMapper { - static const int COMPLIANT_HASH = HashingUtils::HashString("COMPLIANT"); - static const int NON_COMPLIANT_HASH = HashingUtils::HashString("NON_COMPLIANT"); + static constexpr uint32_t COMPLIANT_HASH = ConstExprHashingUtils::HashString("COMPLIANT"); + static constexpr uint32_t NON_COMPLIANT_HASH = ConstExprHashingUtils::HashString("NON_COMPLIANT"); ComplianceStatus GetComplianceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANT_HASH) { return ComplianceStatus::COMPLIANT; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceUploadType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceUploadType.cpp index 5cc307539c0..d56bd1094fa 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceUploadType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ComplianceUploadType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ComplianceUploadTypeMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int PARTIAL_HASH = HashingUtils::HashString("PARTIAL"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t PARTIAL_HASH = ConstExprHashingUtils::HashString("PARTIAL"); ComplianceUploadType GetComplianceUploadTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return ComplianceUploadType::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ConnectionStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ConnectionStatus.cpp index 1b9ad027730..c423a61f08a 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ConnectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ConnectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ConnectionStatusMapper { - static const int connected_HASH = HashingUtils::HashString("connected"); - static const int notconnected_HASH = HashingUtils::HashString("notconnected"); + static constexpr uint32_t connected_HASH = ConstExprHashingUtils::HashString("connected"); + static constexpr uint32_t notconnected_HASH = ConstExprHashingUtils::HashString("notconnected"); ConnectionStatus GetConnectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == connected_HASH) { return ConnectionStatus::connected; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DescribeActivationsFilterKeys.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DescribeActivationsFilterKeys.cpp index 286130650d9..79e6eb712a6 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DescribeActivationsFilterKeys.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DescribeActivationsFilterKeys.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DescribeActivationsFilterKeysMapper { - static const int ActivationIds_HASH = HashingUtils::HashString("ActivationIds"); - static const int DefaultInstanceName_HASH = HashingUtils::HashString("DefaultInstanceName"); - static const int IamRole_HASH = HashingUtils::HashString("IamRole"); + static constexpr uint32_t ActivationIds_HASH = ConstExprHashingUtils::HashString("ActivationIds"); + static constexpr uint32_t DefaultInstanceName_HASH = ConstExprHashingUtils::HashString("DefaultInstanceName"); + static constexpr uint32_t IamRole_HASH = ConstExprHashingUtils::HashString("IamRole"); DescribeActivationsFilterKeys GetDescribeActivationsFilterKeysForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ActivationIds_HASH) { return DescribeActivationsFilterKeys::ActivationIds; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFilterKey.cpp index 12c3a21d146..1a8a85a048e 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFilterKey.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DocumentFilterKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int Owner_HASH = HashingUtils::HashString("Owner"); - static const int PlatformTypes_HASH = HashingUtils::HashString("PlatformTypes"); - static const int DocumentType_HASH = HashingUtils::HashString("DocumentType"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t Owner_HASH = ConstExprHashingUtils::HashString("Owner"); + static constexpr uint32_t PlatformTypes_HASH = ConstExprHashingUtils::HashString("PlatformTypes"); + static constexpr uint32_t DocumentType_HASH = ConstExprHashingUtils::HashString("DocumentType"); DocumentFilterKey GetDocumentFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return DocumentFilterKey::Name; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFormat.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFormat.cpp index b737a4af57e..641c0a6f285 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFormat.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DocumentFormatMapper { - static const int YAML_HASH = HashingUtils::HashString("YAML"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int TEXT_HASH = HashingUtils::HashString("TEXT"); + static constexpr uint32_t YAML_HASH = ConstExprHashingUtils::HashString("YAML"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t TEXT_HASH = ConstExprHashingUtils::HashString("TEXT"); DocumentFormat GetDocumentFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == YAML_HASH) { return DocumentFormat::YAML; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentHashType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentHashType.cpp index 3fba6517b3e..8352be00030 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentHashType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentHashType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentHashTypeMapper { - static const int Sha256_HASH = HashingUtils::HashString("Sha256"); - static const int Sha1_HASH = HashingUtils::HashString("Sha1"); + static constexpr uint32_t Sha256_HASH = ConstExprHashingUtils::HashString("Sha256"); + static constexpr uint32_t Sha1_HASH = ConstExprHashingUtils::HashString("Sha1"); DocumentHashType GetDocumentHashTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Sha256_HASH) { return DocumentHashType::Sha256; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp index 1187cc59cea..44522deb142 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DocumentMetadataEnumMapper { - static const int DocumentReviews_HASH = HashingUtils::HashString("DocumentReviews"); + static constexpr uint32_t DocumentReviews_HASH = ConstExprHashingUtils::HashString("DocumentReviews"); DocumentMetadataEnum GetDocumentMetadataEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DocumentReviews_HASH) { return DocumentMetadataEnum::DocumentReviews; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentParameterType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentParameterType.cpp index a882d43d3da..91bed8d2154 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentParameterType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentParameterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentParameterTypeMapper { - static const int String_HASH = HashingUtils::HashString("String"); - static const int StringList_HASH = HashingUtils::HashString("StringList"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t StringList_HASH = ConstExprHashingUtils::HashString("StringList"); DocumentParameterType GetDocumentParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == String_HASH) { return DocumentParameterType::String; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentPermissionType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentPermissionType.cpp index c3b27207384..4925952be33 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentPermissionType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentPermissionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DocumentPermissionTypeMapper { - static const int Share_HASH = HashingUtils::HashString("Share"); + static constexpr uint32_t Share_HASH = ConstExprHashingUtils::HashString("Share"); DocumentPermissionType GetDocumentPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Share_HASH) { return DocumentPermissionType::Share; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp index 8acc1551f2a..aa1d64d6d42 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp @@ -20,15 +20,15 @@ namespace Aws namespace DocumentReviewActionMapper { - static const int SendForReview_HASH = HashingUtils::HashString("SendForReview"); - static const int UpdateReview_HASH = HashingUtils::HashString("UpdateReview"); - static const int Approve_HASH = HashingUtils::HashString("Approve"); - static const int Reject_HASH = HashingUtils::HashString("Reject"); + static constexpr uint32_t SendForReview_HASH = ConstExprHashingUtils::HashString("SendForReview"); + static constexpr uint32_t UpdateReview_HASH = ConstExprHashingUtils::HashString("UpdateReview"); + static constexpr uint32_t Approve_HASH = ConstExprHashingUtils::HashString("Approve"); + static constexpr uint32_t Reject_HASH = ConstExprHashingUtils::HashString("Reject"); DocumentReviewAction GetDocumentReviewActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SendForReview_HASH) { return DocumentReviewAction::SendForReview; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp index 67b052fc667..e5564a2f15d 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DocumentReviewCommentTypeMapper { - static const int Comment_HASH = HashingUtils::HashString("Comment"); + static constexpr uint32_t Comment_HASH = ConstExprHashingUtils::HashString("Comment"); DocumentReviewCommentType GetDocumentReviewCommentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Comment_HASH) { return DocumentReviewCommentType::Comment; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentStatus.cpp index 14242acf2be..84fd9ee8f7e 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace DocumentStatusMapper { - static const int Creating_HASH = HashingUtils::HashString("Creating"); - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Updating_HASH = HashingUtils::HashString("Updating"); - static const int Deleting_HASH = HashingUtils::HashString("Deleting"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Creating_HASH = ConstExprHashingUtils::HashString("Creating"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Updating_HASH = ConstExprHashingUtils::HashString("Updating"); + static constexpr uint32_t Deleting_HASH = ConstExprHashingUtils::HashString("Deleting"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); DocumentStatus GetDocumentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Creating_HASH) { return DocumentStatus::Creating; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentType.cpp index 6749236e981..853b843f24f 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/DocumentType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/DocumentType.cpp @@ -20,26 +20,26 @@ namespace Aws namespace DocumentTypeMapper { - static const int Command_HASH = HashingUtils::HashString("Command"); - static const int Policy_HASH = HashingUtils::HashString("Policy"); - static const int Automation_HASH = HashingUtils::HashString("Automation"); - static const int Session_HASH = HashingUtils::HashString("Session"); - static const int Package_HASH = HashingUtils::HashString("Package"); - static const int ApplicationConfiguration_HASH = HashingUtils::HashString("ApplicationConfiguration"); - static const int ApplicationConfigurationSchema_HASH = HashingUtils::HashString("ApplicationConfigurationSchema"); - static const int DeploymentStrategy_HASH = HashingUtils::HashString("DeploymentStrategy"); - static const int ChangeCalendar_HASH = HashingUtils::HashString("ChangeCalendar"); - static const int Automation_ChangeTemplate_HASH = HashingUtils::HashString("Automation.ChangeTemplate"); - static const int ProblemAnalysis_HASH = HashingUtils::HashString("ProblemAnalysis"); - static const int ProblemAnalysisTemplate_HASH = HashingUtils::HashString("ProblemAnalysisTemplate"); - static const int CloudFormation_HASH = HashingUtils::HashString("CloudFormation"); - static const int ConformancePackTemplate_HASH = HashingUtils::HashString("ConformancePackTemplate"); - static const int QuickSetup_HASH = HashingUtils::HashString("QuickSetup"); + static constexpr uint32_t Command_HASH = ConstExprHashingUtils::HashString("Command"); + static constexpr uint32_t Policy_HASH = ConstExprHashingUtils::HashString("Policy"); + static constexpr uint32_t Automation_HASH = ConstExprHashingUtils::HashString("Automation"); + static constexpr uint32_t Session_HASH = ConstExprHashingUtils::HashString("Session"); + static constexpr uint32_t Package_HASH = ConstExprHashingUtils::HashString("Package"); + static constexpr uint32_t ApplicationConfiguration_HASH = ConstExprHashingUtils::HashString("ApplicationConfiguration"); + static constexpr uint32_t ApplicationConfigurationSchema_HASH = ConstExprHashingUtils::HashString("ApplicationConfigurationSchema"); + static constexpr uint32_t DeploymentStrategy_HASH = ConstExprHashingUtils::HashString("DeploymentStrategy"); + static constexpr uint32_t ChangeCalendar_HASH = ConstExprHashingUtils::HashString("ChangeCalendar"); + static constexpr uint32_t Automation_ChangeTemplate_HASH = ConstExprHashingUtils::HashString("Automation.ChangeTemplate"); + static constexpr uint32_t ProblemAnalysis_HASH = ConstExprHashingUtils::HashString("ProblemAnalysis"); + static constexpr uint32_t ProblemAnalysisTemplate_HASH = ConstExprHashingUtils::HashString("ProblemAnalysisTemplate"); + static constexpr uint32_t CloudFormation_HASH = ConstExprHashingUtils::HashString("CloudFormation"); + static constexpr uint32_t ConformancePackTemplate_HASH = ConstExprHashingUtils::HashString("ConformancePackTemplate"); + static constexpr uint32_t QuickSetup_HASH = ConstExprHashingUtils::HashString("QuickSetup"); DocumentType GetDocumentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Command_HASH) { return DocumentType::Command; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ExecutionMode.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ExecutionMode.cpp index 022991727cb..71d089de3aa 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ExecutionMode.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ExecutionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExecutionModeMapper { - static const int Auto_HASH = HashingUtils::HashString("Auto"); - static const int Interactive_HASH = HashingUtils::HashString("Interactive"); + static constexpr uint32_t Auto_HASH = ConstExprHashingUtils::HashString("Auto"); + static constexpr uint32_t Interactive_HASH = ConstExprHashingUtils::HashString("Interactive"); ExecutionMode GetExecutionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Auto_HASH) { return ExecutionMode::Auto; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ExternalAlarmState.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ExternalAlarmState.cpp index bf232d5d8e8..74bb31f1107 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ExternalAlarmState.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ExternalAlarmState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExternalAlarmStateMapper { - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int ALARM_HASH = HashingUtils::HashString("ALARM"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t ALARM_HASH = ConstExprHashingUtils::HashString("ALARM"); ExternalAlarmState GetExternalAlarmStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_HASH) { return ExternalAlarmState::UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/Fault.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/Fault.cpp index 247288bad7b..a2d2514d904 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/Fault.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/Fault.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FaultMapper { - static const int Client_HASH = HashingUtils::HashString("Client"); - static const int Server_HASH = HashingUtils::HashString("Server"); - static const int Unknown_HASH = HashingUtils::HashString("Unknown"); + static constexpr uint32_t Client_HASH = ConstExprHashingUtils::HashString("Client"); + static constexpr uint32_t Server_HASH = ConstExprHashingUtils::HashString("Server"); + static constexpr uint32_t Unknown_HASH = ConstExprHashingUtils::HashString("Unknown"); Fault GetFaultForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Client_HASH) { return Fault::Client; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/InstanceInformationFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/InstanceInformationFilterKey.cpp index 80a6c1b7fa4..fcfed758fce 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/InstanceInformationFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/InstanceInformationFilterKey.cpp @@ -20,19 +20,19 @@ namespace Aws namespace InstanceInformationFilterKeyMapper { - static const int InstanceIds_HASH = HashingUtils::HashString("InstanceIds"); - static const int AgentVersion_HASH = HashingUtils::HashString("AgentVersion"); - static const int PingStatus_HASH = HashingUtils::HashString("PingStatus"); - static const int PlatformTypes_HASH = HashingUtils::HashString("PlatformTypes"); - static const int ActivationIds_HASH = HashingUtils::HashString("ActivationIds"); - static const int IamRole_HASH = HashingUtils::HashString("IamRole"); - static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); - static const int AssociationStatus_HASH = HashingUtils::HashString("AssociationStatus"); + static constexpr uint32_t InstanceIds_HASH = ConstExprHashingUtils::HashString("InstanceIds"); + static constexpr uint32_t AgentVersion_HASH = ConstExprHashingUtils::HashString("AgentVersion"); + static constexpr uint32_t PingStatus_HASH = ConstExprHashingUtils::HashString("PingStatus"); + static constexpr uint32_t PlatformTypes_HASH = ConstExprHashingUtils::HashString("PlatformTypes"); + static constexpr uint32_t ActivationIds_HASH = ConstExprHashingUtils::HashString("ActivationIds"); + static constexpr uint32_t IamRole_HASH = ConstExprHashingUtils::HashString("IamRole"); + static constexpr uint32_t ResourceType_HASH = ConstExprHashingUtils::HashString("ResourceType"); + static constexpr uint32_t AssociationStatus_HASH = ConstExprHashingUtils::HashString("AssociationStatus"); InstanceInformationFilterKey GetInstanceInformationFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InstanceIds_HASH) { return InstanceInformationFilterKey::InstanceIds; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/InstancePatchStateOperatorType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/InstancePatchStateOperatorType.cpp index ac949eca171..87b095ca98f 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/InstancePatchStateOperatorType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/InstancePatchStateOperatorType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace InstancePatchStateOperatorTypeMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); - static const int NotEqual_HASH = HashingUtils::HashString("NotEqual"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); + static constexpr uint32_t NotEqual_HASH = ConstExprHashingUtils::HashString("NotEqual"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); InstancePatchStateOperatorType GetInstancePatchStateOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return InstancePatchStateOperatorType::Equal; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/InventoryAttributeDataType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/InventoryAttributeDataType.cpp index fa0eb60f4cf..5eae62bd7cc 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/InventoryAttributeDataType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/InventoryAttributeDataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventoryAttributeDataTypeMapper { - static const int string_HASH = HashingUtils::HashString("string"); - static const int number_HASH = HashingUtils::HashString("number"); + static constexpr uint32_t string_HASH = ConstExprHashingUtils::HashString("string"); + static constexpr uint32_t number_HASH = ConstExprHashingUtils::HashString("number"); InventoryAttributeDataType GetInventoryAttributeDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == string_HASH) { return InventoryAttributeDataType::string; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/InventoryDeletionStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/InventoryDeletionStatus.cpp index a7178ecd614..ee1555946e8 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/InventoryDeletionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/InventoryDeletionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventoryDeletionStatusMapper { - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Complete_HASH = HashingUtils::HashString("Complete"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); InventoryDeletionStatus GetInventoryDeletionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InProgress_HASH) { return InventoryDeletionStatus::InProgress; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/InventoryQueryOperatorType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/InventoryQueryOperatorType.cpp index c4dbf45caa8..9ea034fb368 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/InventoryQueryOperatorType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/InventoryQueryOperatorType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace InventoryQueryOperatorTypeMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); - static const int NotEqual_HASH = HashingUtils::HashString("NotEqual"); - static const int BeginWith_HASH = HashingUtils::HashString("BeginWith"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int Exists_HASH = HashingUtils::HashString("Exists"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); + static constexpr uint32_t NotEqual_HASH = ConstExprHashingUtils::HashString("NotEqual"); + static constexpr uint32_t BeginWith_HASH = ConstExprHashingUtils::HashString("BeginWith"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t Exists_HASH = ConstExprHashingUtils::HashString("Exists"); InventoryQueryOperatorType GetInventoryQueryOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return InventoryQueryOperatorType::Equal; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/InventorySchemaDeleteOption.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/InventorySchemaDeleteOption.cpp index 21b06f562a0..f73d1e1b731 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/InventorySchemaDeleteOption.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/InventorySchemaDeleteOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InventorySchemaDeleteOptionMapper { - static const int DisableSchema_HASH = HashingUtils::HashString("DisableSchema"); - static const int DeleteSchema_HASH = HashingUtils::HashString("DeleteSchema"); + static constexpr uint32_t DisableSchema_HASH = ConstExprHashingUtils::HashString("DisableSchema"); + static constexpr uint32_t DeleteSchema_HASH = ConstExprHashingUtils::HashString("DeleteSchema"); InventorySchemaDeleteOption GetInventorySchemaDeleteOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DisableSchema_HASH) { return InventorySchemaDeleteOption::DisableSchema; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/LastResourceDataSyncStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/LastResourceDataSyncStatus.cpp index 1ce1f865d34..9566875156c 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/LastResourceDataSyncStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/LastResourceDataSyncStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LastResourceDataSyncStatusMapper { - static const int Successful_HASH = HashingUtils::HashString("Successful"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); + static constexpr uint32_t Successful_HASH = ConstExprHashingUtils::HashString("Successful"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); LastResourceDataSyncStatus GetLastResourceDataSyncStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Successful_HASH) { return LastResourceDataSyncStatus::Successful; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowExecutionStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowExecutionStatus.cpp index 1429d24c155..1991a6bb09c 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowExecutionStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace MaintenanceWindowExecutionStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); - static const int SKIPPED_OVERLAPPING_HASH = HashingUtils::HashString("SKIPPED_OVERLAPPING"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); + static constexpr uint32_t SKIPPED_OVERLAPPING_HASH = ConstExprHashingUtils::HashString("SKIPPED_OVERLAPPING"); MaintenanceWindowExecutionStatus GetMaintenanceWindowExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return MaintenanceWindowExecutionStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowResourceType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowResourceType.cpp index 6b5359dea91..0dfb125f632 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MaintenanceWindowResourceTypeMapper { - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); - static const int RESOURCE_GROUP_HASH = HashingUtils::HashString("RESOURCE_GROUP"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); + static constexpr uint32_t RESOURCE_GROUP_HASH = ConstExprHashingUtils::HashString("RESOURCE_GROUP"); MaintenanceWindowResourceType GetMaintenanceWindowResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANCE_HASH) { return MaintenanceWindowResourceType::INSTANCE; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskCutoffBehavior.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskCutoffBehavior.cpp index 128bf1524b1..465c3fac00a 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskCutoffBehavior.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskCutoffBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MaintenanceWindowTaskCutoffBehaviorMapper { - static const int CONTINUE_TASK_HASH = HashingUtils::HashString("CONTINUE_TASK"); - static const int CANCEL_TASK_HASH = HashingUtils::HashString("CANCEL_TASK"); + static constexpr uint32_t CONTINUE_TASK_HASH = ConstExprHashingUtils::HashString("CONTINUE_TASK"); + static constexpr uint32_t CANCEL_TASK_HASH = ConstExprHashingUtils::HashString("CANCEL_TASK"); MaintenanceWindowTaskCutoffBehavior GetMaintenanceWindowTaskCutoffBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTINUE_TASK_HASH) { return MaintenanceWindowTaskCutoffBehavior::CONTINUE_TASK; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskType.cpp index 96c3e7a8b41..1b29ffe5bbb 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/MaintenanceWindowTaskType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MaintenanceWindowTaskTypeMapper { - static const int RUN_COMMAND_HASH = HashingUtils::HashString("RUN_COMMAND"); - static const int AUTOMATION_HASH = HashingUtils::HashString("AUTOMATION"); - static const int STEP_FUNCTIONS_HASH = HashingUtils::HashString("STEP_FUNCTIONS"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); + static constexpr uint32_t RUN_COMMAND_HASH = ConstExprHashingUtils::HashString("RUN_COMMAND"); + static constexpr uint32_t AUTOMATION_HASH = ConstExprHashingUtils::HashString("AUTOMATION"); + static constexpr uint32_t STEP_FUNCTIONS_HASH = ConstExprHashingUtils::HashString("STEP_FUNCTIONS"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); MaintenanceWindowTaskType GetMaintenanceWindowTaskTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUN_COMMAND_HASH) { return MaintenanceWindowTaskType::RUN_COMMAND; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/NotificationEvent.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/NotificationEvent.cpp index f6140f22a87..e8f06579ae2 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/NotificationEvent.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/NotificationEvent.cpp @@ -20,17 +20,17 @@ namespace Aws namespace NotificationEventMapper { - static const int All_HASH = HashingUtils::HashString("All"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Success_HASH = HashingUtils::HashString("Success"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t All_HASH = ConstExprHashingUtils::HashString("All"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Success_HASH = ConstExprHashingUtils::HashString("Success"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); NotificationEvent GetNotificationEventForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == All_HASH) { return NotificationEvent::All; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/NotificationType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/NotificationType.cpp index 7c9a82937df..ec74baf271e 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/NotificationType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/NotificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationTypeMapper { - static const int Command_HASH = HashingUtils::HashString("Command"); - static const int Invocation_HASH = HashingUtils::HashString("Invocation"); + static constexpr uint32_t Command_HASH = ConstExprHashingUtils::HashString("Command"); + static constexpr uint32_t Invocation_HASH = ConstExprHashingUtils::HashString("Invocation"); NotificationType GetNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Command_HASH) { return NotificationType::Command; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OperatingSystem.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OperatingSystem.cpp index f731df586c8..2048f8b1ed1 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OperatingSystem.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OperatingSystem.cpp @@ -20,26 +20,26 @@ namespace Aws namespace OperatingSystemMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int AMAZON_LINUX_HASH = HashingUtils::HashString("AMAZON_LINUX"); - static const int AMAZON_LINUX_2_HASH = HashingUtils::HashString("AMAZON_LINUX_2"); - static const int AMAZON_LINUX_2022_HASH = HashingUtils::HashString("AMAZON_LINUX_2022"); - static const int UBUNTU_HASH = HashingUtils::HashString("UBUNTU"); - static const int REDHAT_ENTERPRISE_LINUX_HASH = HashingUtils::HashString("REDHAT_ENTERPRISE_LINUX"); - static const int SUSE_HASH = HashingUtils::HashString("SUSE"); - static const int CENTOS_HASH = HashingUtils::HashString("CENTOS"); - static const int ORACLE_LINUX_HASH = HashingUtils::HashString("ORACLE_LINUX"); - static const int DEBIAN_HASH = HashingUtils::HashString("DEBIAN"); - static const int MACOS_HASH = HashingUtils::HashString("MACOS"); - static const int RASPBIAN_HASH = HashingUtils::HashString("RASPBIAN"); - static const int ROCKY_LINUX_HASH = HashingUtils::HashString("ROCKY_LINUX"); - static const int ALMA_LINUX_HASH = HashingUtils::HashString("ALMA_LINUX"); - static const int AMAZON_LINUX_2023_HASH = HashingUtils::HashString("AMAZON_LINUX_2023"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t AMAZON_LINUX_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX"); + static constexpr uint32_t AMAZON_LINUX_2_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX_2"); + static constexpr uint32_t AMAZON_LINUX_2022_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX_2022"); + static constexpr uint32_t UBUNTU_HASH = ConstExprHashingUtils::HashString("UBUNTU"); + static constexpr uint32_t REDHAT_ENTERPRISE_LINUX_HASH = ConstExprHashingUtils::HashString("REDHAT_ENTERPRISE_LINUX"); + static constexpr uint32_t SUSE_HASH = ConstExprHashingUtils::HashString("SUSE"); + static constexpr uint32_t CENTOS_HASH = ConstExprHashingUtils::HashString("CENTOS"); + static constexpr uint32_t ORACLE_LINUX_HASH = ConstExprHashingUtils::HashString("ORACLE_LINUX"); + static constexpr uint32_t DEBIAN_HASH = ConstExprHashingUtils::HashString("DEBIAN"); + static constexpr uint32_t MACOS_HASH = ConstExprHashingUtils::HashString("MACOS"); + static constexpr uint32_t RASPBIAN_HASH = ConstExprHashingUtils::HashString("RASPBIAN"); + static constexpr uint32_t ROCKY_LINUX_HASH = ConstExprHashingUtils::HashString("ROCKY_LINUX"); + static constexpr uint32_t ALMA_LINUX_HASH = ConstExprHashingUtils::HashString("ALMA_LINUX"); + static constexpr uint32_t AMAZON_LINUX_2023_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX_2023"); OperatingSystem GetOperatingSystemForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return OperatingSystem::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsFilterOperatorType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsFilterOperatorType.cpp index 94b117a5eed..b0a30dbdac9 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsFilterOperatorType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsFilterOperatorType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace OpsFilterOperatorTypeMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); - static const int NotEqual_HASH = HashingUtils::HashString("NotEqual"); - static const int BeginWith_HASH = HashingUtils::HashString("BeginWith"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int Exists_HASH = HashingUtils::HashString("Exists"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); + static constexpr uint32_t NotEqual_HASH = ConstExprHashingUtils::HashString("NotEqual"); + static constexpr uint32_t BeginWith_HASH = ConstExprHashingUtils::HashString("BeginWith"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t Exists_HASH = ConstExprHashingUtils::HashString("Exists"); OpsFilterOperatorType GetOpsFilterOperatorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return OpsFilterOperatorType::Equal; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemDataType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemDataType.cpp index 2de75de5530..72907084ffa 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemDataType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemDataType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OpsItemDataTypeMapper { - static const int SearchableString_HASH = HashingUtils::HashString("SearchableString"); - static const int String_HASH = HashingUtils::HashString("String"); + static constexpr uint32_t SearchableString_HASH = ConstExprHashingUtils::HashString("SearchableString"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); OpsItemDataType GetOpsItemDataTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SearchableString_HASH) { return OpsItemDataType::SearchableString; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp index 98a970d7d10..68e40540b7c 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OpsItemEventFilterKeyMapper { - static const int OpsItemId_HASH = HashingUtils::HashString("OpsItemId"); + static constexpr uint32_t OpsItemId_HASH = ConstExprHashingUtils::HashString("OpsItemId"); OpsItemEventFilterKey GetOpsItemEventFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OpsItemId_HASH) { return OpsItemEventFilterKey::OpsItemId; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp index 466fd7552ec..35bea3764c5 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OpsItemEventFilterOperatorMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); OpsItemEventFilterOperator GetOpsItemEventFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return OpsItemEventFilterOperator::Equal; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp index ab9f54bc814..17d8c87db90 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp @@ -20,39 +20,39 @@ namespace Aws namespace OpsItemFilterKeyMapper { - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int CreatedBy_HASH = HashingUtils::HashString("CreatedBy"); - static const int Source_HASH = HashingUtils::HashString("Source"); - static const int Priority_HASH = HashingUtils::HashString("Priority"); - static const int Title_HASH = HashingUtils::HashString("Title"); - static const int OpsItemId_HASH = HashingUtils::HashString("OpsItemId"); - static const int CreatedTime_HASH = HashingUtils::HashString("CreatedTime"); - static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); - static const int ActualStartTime_HASH = HashingUtils::HashString("ActualStartTime"); - static const int ActualEndTime_HASH = HashingUtils::HashString("ActualEndTime"); - static const int PlannedStartTime_HASH = HashingUtils::HashString("PlannedStartTime"); - static const int PlannedEndTime_HASH = HashingUtils::HashString("PlannedEndTime"); - static const int OperationalData_HASH = HashingUtils::HashString("OperationalData"); - static const int OperationalDataKey_HASH = HashingUtils::HashString("OperationalDataKey"); - static const int OperationalDataValue_HASH = HashingUtils::HashString("OperationalDataValue"); - static const int ResourceId_HASH = HashingUtils::HashString("ResourceId"); - static const int AutomationId_HASH = HashingUtils::HashString("AutomationId"); - static const int Category_HASH = HashingUtils::HashString("Category"); - static const int Severity_HASH = HashingUtils::HashString("Severity"); - static const int OpsItemType_HASH = HashingUtils::HashString("OpsItemType"); - static const int ChangeRequestByRequesterArn_HASH = HashingUtils::HashString("ChangeRequestByRequesterArn"); - static const int ChangeRequestByRequesterName_HASH = HashingUtils::HashString("ChangeRequestByRequesterName"); - static const int ChangeRequestByApproverArn_HASH = HashingUtils::HashString("ChangeRequestByApproverArn"); - static const int ChangeRequestByApproverName_HASH = HashingUtils::HashString("ChangeRequestByApproverName"); - static const int ChangeRequestByTemplate_HASH = HashingUtils::HashString("ChangeRequestByTemplate"); - static const int ChangeRequestByTargetsResourceGroup_HASH = HashingUtils::HashString("ChangeRequestByTargetsResourceGroup"); - static const int InsightByType_HASH = HashingUtils::HashString("InsightByType"); - static const int AccountId_HASH = HashingUtils::HashString("AccountId"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t CreatedBy_HASH = ConstExprHashingUtils::HashString("CreatedBy"); + static constexpr uint32_t Source_HASH = ConstExprHashingUtils::HashString("Source"); + static constexpr uint32_t Priority_HASH = ConstExprHashingUtils::HashString("Priority"); + static constexpr uint32_t Title_HASH = ConstExprHashingUtils::HashString("Title"); + static constexpr uint32_t OpsItemId_HASH = ConstExprHashingUtils::HashString("OpsItemId"); + static constexpr uint32_t CreatedTime_HASH = ConstExprHashingUtils::HashString("CreatedTime"); + static constexpr uint32_t LastModifiedTime_HASH = ConstExprHashingUtils::HashString("LastModifiedTime"); + static constexpr uint32_t ActualStartTime_HASH = ConstExprHashingUtils::HashString("ActualStartTime"); + static constexpr uint32_t ActualEndTime_HASH = ConstExprHashingUtils::HashString("ActualEndTime"); + static constexpr uint32_t PlannedStartTime_HASH = ConstExprHashingUtils::HashString("PlannedStartTime"); + static constexpr uint32_t PlannedEndTime_HASH = ConstExprHashingUtils::HashString("PlannedEndTime"); + static constexpr uint32_t OperationalData_HASH = ConstExprHashingUtils::HashString("OperationalData"); + static constexpr uint32_t OperationalDataKey_HASH = ConstExprHashingUtils::HashString("OperationalDataKey"); + static constexpr uint32_t OperationalDataValue_HASH = ConstExprHashingUtils::HashString("OperationalDataValue"); + static constexpr uint32_t ResourceId_HASH = ConstExprHashingUtils::HashString("ResourceId"); + static constexpr uint32_t AutomationId_HASH = ConstExprHashingUtils::HashString("AutomationId"); + static constexpr uint32_t Category_HASH = ConstExprHashingUtils::HashString("Category"); + static constexpr uint32_t Severity_HASH = ConstExprHashingUtils::HashString("Severity"); + static constexpr uint32_t OpsItemType_HASH = ConstExprHashingUtils::HashString("OpsItemType"); + static constexpr uint32_t ChangeRequestByRequesterArn_HASH = ConstExprHashingUtils::HashString("ChangeRequestByRequesterArn"); + static constexpr uint32_t ChangeRequestByRequesterName_HASH = ConstExprHashingUtils::HashString("ChangeRequestByRequesterName"); + static constexpr uint32_t ChangeRequestByApproverArn_HASH = ConstExprHashingUtils::HashString("ChangeRequestByApproverArn"); + static constexpr uint32_t ChangeRequestByApproverName_HASH = ConstExprHashingUtils::HashString("ChangeRequestByApproverName"); + static constexpr uint32_t ChangeRequestByTemplate_HASH = ConstExprHashingUtils::HashString("ChangeRequestByTemplate"); + static constexpr uint32_t ChangeRequestByTargetsResourceGroup_HASH = ConstExprHashingUtils::HashString("ChangeRequestByTargetsResourceGroup"); + static constexpr uint32_t InsightByType_HASH = ConstExprHashingUtils::HashString("InsightByType"); + static constexpr uint32_t AccountId_HASH = ConstExprHashingUtils::HashString("AccountId"); OpsItemFilterKey GetOpsItemFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Status_HASH) { return OpsItemFilterKey::Status; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterOperator.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterOperator.cpp index 88532a43c90..f6f307070c5 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemFilterOperator.cpp @@ -20,15 +20,15 @@ namespace Aws namespace OpsItemFilterOperatorMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); - static const int Contains_HASH = HashingUtils::HashString("Contains"); - static const int GreaterThan_HASH = HashingUtils::HashString("GreaterThan"); - static const int LessThan_HASH = HashingUtils::HashString("LessThan"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); + static constexpr uint32_t Contains_HASH = ConstExprHashingUtils::HashString("Contains"); + static constexpr uint32_t GreaterThan_HASH = ConstExprHashingUtils::HashString("GreaterThan"); + static constexpr uint32_t LessThan_HASH = ConstExprHashingUtils::HashString("LessThan"); OpsItemFilterOperator GetOpsItemFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return OpsItemFilterOperator::Equal; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterKey.cpp index 5986fa66871..fdcaf379483 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OpsItemRelatedItemsFilterKeyMapper { - static const int ResourceType_HASH = HashingUtils::HashString("ResourceType"); - static const int AssociationId_HASH = HashingUtils::HashString("AssociationId"); - static const int ResourceUri_HASH = HashingUtils::HashString("ResourceUri"); + static constexpr uint32_t ResourceType_HASH = ConstExprHashingUtils::HashString("ResourceType"); + static constexpr uint32_t AssociationId_HASH = ConstExprHashingUtils::HashString("AssociationId"); + static constexpr uint32_t ResourceUri_HASH = ConstExprHashingUtils::HashString("ResourceUri"); OpsItemRelatedItemsFilterKey GetOpsItemRelatedItemsFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ResourceType_HASH) { return OpsItemRelatedItemsFilterKey::ResourceType; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterOperator.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterOperator.cpp index 3ca3b6a0510..6ccce4bed07 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemRelatedItemsFilterOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OpsItemRelatedItemsFilterOperatorMapper { - static const int Equal_HASH = HashingUtils::HashString("Equal"); + static constexpr uint32_t Equal_HASH = ConstExprHashingUtils::HashString("Equal"); OpsItemRelatedItemsFilterOperator GetOpsItemRelatedItemsFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Equal_HASH) { return OpsItemRelatedItemsFilterOperator::Equal; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp index 08bbebf55f9..f20160ca0ea 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp @@ -20,30 +20,30 @@ namespace Aws namespace OpsItemStatusMapper { - static const int Open_HASH = HashingUtils::HashString("Open"); - static const int InProgress_HASH = HashingUtils::HashString("InProgress"); - static const int Resolved_HASH = HashingUtils::HashString("Resolved"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); - static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); - static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); - static const int CompletedWithSuccess_HASH = HashingUtils::HashString("CompletedWithSuccess"); - static const int CompletedWithFailure_HASH = HashingUtils::HashString("CompletedWithFailure"); - static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); - static const int RunbookInProgress_HASH = HashingUtils::HashString("RunbookInProgress"); - static const int PendingChangeCalendarOverride_HASH = HashingUtils::HashString("PendingChangeCalendarOverride"); - static const int ChangeCalendarOverrideApproved_HASH = HashingUtils::HashString("ChangeCalendarOverrideApproved"); - static const int ChangeCalendarOverrideRejected_HASH = HashingUtils::HashString("ChangeCalendarOverrideRejected"); - static const int PendingApproval_HASH = HashingUtils::HashString("PendingApproval"); - static const int Approved_HASH = HashingUtils::HashString("Approved"); - static const int Rejected_HASH = HashingUtils::HashString("Rejected"); - static const int Closed_HASH = HashingUtils::HashString("Closed"); + static constexpr uint32_t Open_HASH = ConstExprHashingUtils::HashString("Open"); + static constexpr uint32_t InProgress_HASH = ConstExprHashingUtils::HashString("InProgress"); + static constexpr uint32_t Resolved_HASH = ConstExprHashingUtils::HashString("Resolved"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t TimedOut_HASH = ConstExprHashingUtils::HashString("TimedOut"); + static constexpr uint32_t Cancelling_HASH = ConstExprHashingUtils::HashString("Cancelling"); + static constexpr uint32_t Cancelled_HASH = ConstExprHashingUtils::HashString("Cancelled"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); + static constexpr uint32_t CompletedWithSuccess_HASH = ConstExprHashingUtils::HashString("CompletedWithSuccess"); + static constexpr uint32_t CompletedWithFailure_HASH = ConstExprHashingUtils::HashString("CompletedWithFailure"); + static constexpr uint32_t Scheduled_HASH = ConstExprHashingUtils::HashString("Scheduled"); + static constexpr uint32_t RunbookInProgress_HASH = ConstExprHashingUtils::HashString("RunbookInProgress"); + static constexpr uint32_t PendingChangeCalendarOverride_HASH = ConstExprHashingUtils::HashString("PendingChangeCalendarOverride"); + static constexpr uint32_t ChangeCalendarOverrideApproved_HASH = ConstExprHashingUtils::HashString("ChangeCalendarOverrideApproved"); + static constexpr uint32_t ChangeCalendarOverrideRejected_HASH = ConstExprHashingUtils::HashString("ChangeCalendarOverrideRejected"); + static constexpr uint32_t PendingApproval_HASH = ConstExprHashingUtils::HashString("PendingApproval"); + static constexpr uint32_t Approved_HASH = ConstExprHashingUtils::HashString("Approved"); + static constexpr uint32_t Rejected_HASH = ConstExprHashingUtils::HashString("Rejected"); + static constexpr uint32_t Closed_HASH = ConstExprHashingUtils::HashString("Closed"); OpsItemStatus GetOpsItemStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Open_HASH) { return OpsItemStatus::Open; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ParameterTier.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ParameterTier.cpp index 2eddfe948c0..3b63545efb5 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ParameterTier.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ParameterTier.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ParameterTierMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int Advanced_HASH = HashingUtils::HashString("Advanced"); - static const int Intelligent_Tiering_HASH = HashingUtils::HashString("Intelligent-Tiering"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t Advanced_HASH = ConstExprHashingUtils::HashString("Advanced"); + static constexpr uint32_t Intelligent_Tiering_HASH = ConstExprHashingUtils::HashString("Intelligent-Tiering"); ParameterTier GetParameterTierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return ParameterTier::Standard; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ParameterType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ParameterType.cpp index 3b656c478e8..dabdcd38ae9 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ParameterType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ParameterType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ParameterTypeMapper { - static const int String_HASH = HashingUtils::HashString("String"); - static const int StringList_HASH = HashingUtils::HashString("StringList"); - static const int SecureString_HASH = HashingUtils::HashString("SecureString"); + static constexpr uint32_t String_HASH = ConstExprHashingUtils::HashString("String"); + static constexpr uint32_t StringList_HASH = ConstExprHashingUtils::HashString("StringList"); + static constexpr uint32_t SecureString_HASH = ConstExprHashingUtils::HashString("SecureString"); ParameterType GetParameterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == String_HASH) { return ParameterType::String; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ParametersFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ParametersFilterKey.cpp index e4991f476bf..3ad711d9092 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ParametersFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ParametersFilterKey.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ParametersFilterKeyMapper { - static const int Name_HASH = HashingUtils::HashString("Name"); - static const int Type_HASH = HashingUtils::HashString("Type"); - static const int KeyId_HASH = HashingUtils::HashString("KeyId"); + static constexpr uint32_t Name_HASH = ConstExprHashingUtils::HashString("Name"); + static constexpr uint32_t Type_HASH = ConstExprHashingUtils::HashString("Type"); + static constexpr uint32_t KeyId_HASH = ConstExprHashingUtils::HashString("KeyId"); ParametersFilterKey GetParametersFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Name_HASH) { return ParametersFilterKey::Name; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchAction.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchAction.cpp index 98c45f0f87a..65eb979b26a 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchAction.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PatchActionMapper { - static const int ALLOW_AS_DEPENDENCY_HASH = HashingUtils::HashString("ALLOW_AS_DEPENDENCY"); - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); + static constexpr uint32_t ALLOW_AS_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("ALLOW_AS_DEPENDENCY"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); PatchAction GetPatchActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_AS_DEPENDENCY_HASH) { return PatchAction::ALLOW_AS_DEPENDENCY; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceDataState.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceDataState.cpp index 59105117efb..86c5ba6834c 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceDataState.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceDataState.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PatchComplianceDataStateMapper { - static const int INSTALLED_HASH = HashingUtils::HashString("INSTALLED"); - static const int INSTALLED_OTHER_HASH = HashingUtils::HashString("INSTALLED_OTHER"); - static const int INSTALLED_PENDING_REBOOT_HASH = HashingUtils::HashString("INSTALLED_PENDING_REBOOT"); - static const int INSTALLED_REJECTED_HASH = HashingUtils::HashString("INSTALLED_REJECTED"); - static const int MISSING_HASH = HashingUtils::HashString("MISSING"); - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t INSTALLED_HASH = ConstExprHashingUtils::HashString("INSTALLED"); + static constexpr uint32_t INSTALLED_OTHER_HASH = ConstExprHashingUtils::HashString("INSTALLED_OTHER"); + static constexpr uint32_t INSTALLED_PENDING_REBOOT_HASH = ConstExprHashingUtils::HashString("INSTALLED_PENDING_REBOOT"); + static constexpr uint32_t INSTALLED_REJECTED_HASH = ConstExprHashingUtils::HashString("INSTALLED_REJECTED"); + static constexpr uint32_t MISSING_HASH = ConstExprHashingUtils::HashString("MISSING"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); PatchComplianceDataState GetPatchComplianceDataStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTALLED_HASH) { return PatchComplianceDataState::INSTALLED; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceLevel.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceLevel.cpp index 8b174930bd5..65ec14571d1 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceLevel.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchComplianceLevel.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PatchComplianceLevelMapper { - static const int CRITICAL_HASH = HashingUtils::HashString("CRITICAL"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int INFORMATIONAL_HASH = HashingUtils::HashString("INFORMATIONAL"); - static const int UNSPECIFIED_HASH = HashingUtils::HashString("UNSPECIFIED"); + static constexpr uint32_t CRITICAL_HASH = ConstExprHashingUtils::HashString("CRITICAL"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t INFORMATIONAL_HASH = ConstExprHashingUtils::HashString("INFORMATIONAL"); + static constexpr uint32_t UNSPECIFIED_HASH = ConstExprHashingUtils::HashString("UNSPECIFIED"); PatchComplianceLevel GetPatchComplianceLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CRITICAL_HASH) { return PatchComplianceLevel::CRITICAL; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchDeploymentStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchDeploymentStatus.cpp index 3082a31807b..4d84bb33646 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchDeploymentStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchDeploymentStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PatchDeploymentStatusMapper { - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int PENDING_APPROVAL_HASH = HashingUtils::HashString("PENDING_APPROVAL"); - static const int EXPLICIT_APPROVED_HASH = HashingUtils::HashString("EXPLICIT_APPROVED"); - static const int EXPLICIT_REJECTED_HASH = HashingUtils::HashString("EXPLICIT_REJECTED"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t PENDING_APPROVAL_HASH = ConstExprHashingUtils::HashString("PENDING_APPROVAL"); + static constexpr uint32_t EXPLICIT_APPROVED_HASH = ConstExprHashingUtils::HashString("EXPLICIT_APPROVED"); + static constexpr uint32_t EXPLICIT_REJECTED_HASH = ConstExprHashingUtils::HashString("EXPLICIT_REJECTED"); PatchDeploymentStatus GetPatchDeploymentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVED_HASH) { return PatchDeploymentStatus::APPROVED; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchFilterKey.cpp index a28fb3d6eae..e399608f672 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchFilterKey.cpp @@ -20,30 +20,30 @@ namespace Aws namespace PatchFilterKeyMapper { - static const int ARCH_HASH = HashingUtils::HashString("ARCH"); - static const int ADVISORY_ID_HASH = HashingUtils::HashString("ADVISORY_ID"); - static const int BUGZILLA_ID_HASH = HashingUtils::HashString("BUGZILLA_ID"); - static const int PATCH_SET_HASH = HashingUtils::HashString("PATCH_SET"); - static const int PRODUCT_HASH = HashingUtils::HashString("PRODUCT"); - static const int PRODUCT_FAMILY_HASH = HashingUtils::HashString("PRODUCT_FAMILY"); - static const int CLASSIFICATION_HASH = HashingUtils::HashString("CLASSIFICATION"); - static const int CVE_ID_HASH = HashingUtils::HashString("CVE_ID"); - static const int EPOCH_HASH = HashingUtils::HashString("EPOCH"); - static const int MSRC_SEVERITY_HASH = HashingUtils::HashString("MSRC_SEVERITY"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int PATCH_ID_HASH = HashingUtils::HashString("PATCH_ID"); - static const int SECTION_HASH = HashingUtils::HashString("SECTION"); - static const int PRIORITY_HASH = HashingUtils::HashString("PRIORITY"); - static const int REPOSITORY_HASH = HashingUtils::HashString("REPOSITORY"); - static const int RELEASE_HASH = HashingUtils::HashString("RELEASE"); - static const int SEVERITY_HASH = HashingUtils::HashString("SEVERITY"); - static const int SECURITY_HASH = HashingUtils::HashString("SECURITY"); - static const int VERSION_HASH = HashingUtils::HashString("VERSION"); + static constexpr uint32_t ARCH_HASH = ConstExprHashingUtils::HashString("ARCH"); + static constexpr uint32_t ADVISORY_ID_HASH = ConstExprHashingUtils::HashString("ADVISORY_ID"); + static constexpr uint32_t BUGZILLA_ID_HASH = ConstExprHashingUtils::HashString("BUGZILLA_ID"); + static constexpr uint32_t PATCH_SET_HASH = ConstExprHashingUtils::HashString("PATCH_SET"); + static constexpr uint32_t PRODUCT_HASH = ConstExprHashingUtils::HashString("PRODUCT"); + static constexpr uint32_t PRODUCT_FAMILY_HASH = ConstExprHashingUtils::HashString("PRODUCT_FAMILY"); + static constexpr uint32_t CLASSIFICATION_HASH = ConstExprHashingUtils::HashString("CLASSIFICATION"); + static constexpr uint32_t CVE_ID_HASH = ConstExprHashingUtils::HashString("CVE_ID"); + static constexpr uint32_t EPOCH_HASH = ConstExprHashingUtils::HashString("EPOCH"); + static constexpr uint32_t MSRC_SEVERITY_HASH = ConstExprHashingUtils::HashString("MSRC_SEVERITY"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t PATCH_ID_HASH = ConstExprHashingUtils::HashString("PATCH_ID"); + static constexpr uint32_t SECTION_HASH = ConstExprHashingUtils::HashString("SECTION"); + static constexpr uint32_t PRIORITY_HASH = ConstExprHashingUtils::HashString("PRIORITY"); + static constexpr uint32_t REPOSITORY_HASH = ConstExprHashingUtils::HashString("REPOSITORY"); + static constexpr uint32_t RELEASE_HASH = ConstExprHashingUtils::HashString("RELEASE"); + static constexpr uint32_t SEVERITY_HASH = ConstExprHashingUtils::HashString("SEVERITY"); + static constexpr uint32_t SECURITY_HASH = ConstExprHashingUtils::HashString("SECURITY"); + static constexpr uint32_t VERSION_HASH = ConstExprHashingUtils::HashString("VERSION"); PatchFilterKey GetPatchFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ARCH_HASH) { return PatchFilterKey::ARCH; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchOperationType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchOperationType.cpp index 4feab32f559..40a987e8d00 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchOperationType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchOperationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PatchOperationTypeMapper { - static const int Scan_HASH = HashingUtils::HashString("Scan"); - static const int Install_HASH = HashingUtils::HashString("Install"); + static constexpr uint32_t Scan_HASH = ConstExprHashingUtils::HashString("Scan"); + static constexpr uint32_t Install_HASH = ConstExprHashingUtils::HashString("Install"); PatchOperationType GetPatchOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Scan_HASH) { return PatchOperationType::Scan; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchProperty.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchProperty.cpp index 214681fd9eb..1eed0a73b04 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchProperty.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchProperty.cpp @@ -20,17 +20,17 @@ namespace Aws namespace PatchPropertyMapper { - static const int PRODUCT_HASH = HashingUtils::HashString("PRODUCT"); - static const int PRODUCT_FAMILY_HASH = HashingUtils::HashString("PRODUCT_FAMILY"); - static const int CLASSIFICATION_HASH = HashingUtils::HashString("CLASSIFICATION"); - static const int MSRC_SEVERITY_HASH = HashingUtils::HashString("MSRC_SEVERITY"); - static const int PRIORITY_HASH = HashingUtils::HashString("PRIORITY"); - static const int SEVERITY_HASH = HashingUtils::HashString("SEVERITY"); + static constexpr uint32_t PRODUCT_HASH = ConstExprHashingUtils::HashString("PRODUCT"); + static constexpr uint32_t PRODUCT_FAMILY_HASH = ConstExprHashingUtils::HashString("PRODUCT_FAMILY"); + static constexpr uint32_t CLASSIFICATION_HASH = ConstExprHashingUtils::HashString("CLASSIFICATION"); + static constexpr uint32_t MSRC_SEVERITY_HASH = ConstExprHashingUtils::HashString("MSRC_SEVERITY"); + static constexpr uint32_t PRIORITY_HASH = ConstExprHashingUtils::HashString("PRIORITY"); + static constexpr uint32_t SEVERITY_HASH = ConstExprHashingUtils::HashString("SEVERITY"); PatchProperty GetPatchPropertyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCT_HASH) { return PatchProperty::PRODUCT; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PatchSet.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PatchSet.cpp index fdfd82dd2ba..0a49b29a006 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PatchSet.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PatchSet.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PatchSetMapper { - static const int OS_HASH = HashingUtils::HashString("OS"); - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t OS_HASH = ConstExprHashingUtils::HashString("OS"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); PatchSet GetPatchSetForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OS_HASH) { return PatchSet::OS; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PingStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PingStatus.cpp index e70eb3a213a..78c4c7a8055 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PingStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PingStatusMapper { - static const int Online_HASH = HashingUtils::HashString("Online"); - static const int ConnectionLost_HASH = HashingUtils::HashString("ConnectionLost"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Online_HASH = ConstExprHashingUtils::HashString("Online"); + static constexpr uint32_t ConnectionLost_HASH = ConstExprHashingUtils::HashString("ConnectionLost"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); PingStatus GetPingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Online_HASH) { return PingStatus::Online; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/PlatformType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/PlatformType.cpp index 64562ade57c..17f854bb7e6 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/PlatformType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/PlatformType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PlatformTypeMapper { - static const int Windows_HASH = HashingUtils::HashString("Windows"); - static const int Linux_HASH = HashingUtils::HashString("Linux"); - static const int MacOS_HASH = HashingUtils::HashString("MacOS"); + static constexpr uint32_t Windows_HASH = ConstExprHashingUtils::HashString("Windows"); + static constexpr uint32_t Linux_HASH = ConstExprHashingUtils::HashString("Linux"); + static constexpr uint32_t MacOS_HASH = ConstExprHashingUtils::HashString("MacOS"); PlatformType GetPlatformTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Windows_HASH) { return PlatformType::Windows; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/RebootOption.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/RebootOption.cpp index 30dc66b9bf5..5121f7088d7 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/RebootOption.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/RebootOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RebootOptionMapper { - static const int RebootIfNeeded_HASH = HashingUtils::HashString("RebootIfNeeded"); - static const int NoReboot_HASH = HashingUtils::HashString("NoReboot"); + static constexpr uint32_t RebootIfNeeded_HASH = ConstExprHashingUtils::HashString("RebootIfNeeded"); + static constexpr uint32_t NoReboot_HASH = ConstExprHashingUtils::HashString("NoReboot"); RebootOption GetRebootOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RebootIfNeeded_HASH) { return RebootOption::RebootIfNeeded; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ResourceDataSyncS3Format.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ResourceDataSyncS3Format.cpp index 7917ee292ed..233f2b1730f 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ResourceDataSyncS3Format.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ResourceDataSyncS3Format.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceDataSyncS3FormatMapper { - static const int JsonSerDe_HASH = HashingUtils::HashString("JsonSerDe"); + static constexpr uint32_t JsonSerDe_HASH = ConstExprHashingUtils::HashString("JsonSerDe"); ResourceDataSyncS3Format GetResourceDataSyncS3FormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JsonSerDe_HASH) { return ResourceDataSyncS3Format::JsonSerDe; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ResourceType.cpp index 0eccff541f2..5b7ceff80c0 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int ManagedInstance_HASH = HashingUtils::HashString("ManagedInstance"); - static const int EC2Instance_HASH = HashingUtils::HashString("EC2Instance"); + static constexpr uint32_t ManagedInstance_HASH = ConstExprHashingUtils::HashString("ManagedInstance"); + static constexpr uint32_t EC2Instance_HASH = ConstExprHashingUtils::HashString("EC2Instance"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ManagedInstance_HASH) { return ResourceType::ManagedInstance; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ResourceTypeForTagging.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ResourceTypeForTagging.cpp index 937f99c1b8f..607736e18ae 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ResourceTypeForTagging.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ResourceTypeForTagging.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ResourceTypeForTaggingMapper { - static const int Document_HASH = HashingUtils::HashString("Document"); - static const int ManagedInstance_HASH = HashingUtils::HashString("ManagedInstance"); - static const int MaintenanceWindow_HASH = HashingUtils::HashString("MaintenanceWindow"); - static const int Parameter_HASH = HashingUtils::HashString("Parameter"); - static const int PatchBaseline_HASH = HashingUtils::HashString("PatchBaseline"); - static const int OpsItem_HASH = HashingUtils::HashString("OpsItem"); - static const int OpsMetadata_HASH = HashingUtils::HashString("OpsMetadata"); - static const int Automation_HASH = HashingUtils::HashString("Automation"); - static const int Association_HASH = HashingUtils::HashString("Association"); + static constexpr uint32_t Document_HASH = ConstExprHashingUtils::HashString("Document"); + static constexpr uint32_t ManagedInstance_HASH = ConstExprHashingUtils::HashString("ManagedInstance"); + static constexpr uint32_t MaintenanceWindow_HASH = ConstExprHashingUtils::HashString("MaintenanceWindow"); + static constexpr uint32_t Parameter_HASH = ConstExprHashingUtils::HashString("Parameter"); + static constexpr uint32_t PatchBaseline_HASH = ConstExprHashingUtils::HashString("PatchBaseline"); + static constexpr uint32_t OpsItem_HASH = ConstExprHashingUtils::HashString("OpsItem"); + static constexpr uint32_t OpsMetadata_HASH = ConstExprHashingUtils::HashString("OpsMetadata"); + static constexpr uint32_t Automation_HASH = ConstExprHashingUtils::HashString("Automation"); + static constexpr uint32_t Association_HASH = ConstExprHashingUtils::HashString("Association"); ResourceTypeForTagging GetResourceTypeForTaggingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Document_HASH) { return ResourceTypeForTagging::Document; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp index a142a13d235..ab3340531d5 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ReviewStatusMapper { - static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); - static const int NOT_REVIEWED_HASH = HashingUtils::HashString("NOT_REVIEWED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static constexpr uint32_t APPROVED_HASH = ConstExprHashingUtils::HashString("APPROVED"); + static constexpr uint32_t NOT_REVIEWED_HASH = ConstExprHashingUtils::HashString("NOT_REVIEWED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); ReviewStatus GetReviewStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPROVED_HASH) { return ReviewStatus::APPROVED; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/SessionFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/SessionFilterKey.cpp index 26de8de4fa9..1e69eeba8f3 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/SessionFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/SessionFilterKey.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SessionFilterKeyMapper { - static const int InvokedAfter_HASH = HashingUtils::HashString("InvokedAfter"); - static const int InvokedBefore_HASH = HashingUtils::HashString("InvokedBefore"); - static const int Target_HASH = HashingUtils::HashString("Target"); - static const int Owner_HASH = HashingUtils::HashString("Owner"); - static const int Status_HASH = HashingUtils::HashString("Status"); - static const int SessionId_HASH = HashingUtils::HashString("SessionId"); + static constexpr uint32_t InvokedAfter_HASH = ConstExprHashingUtils::HashString("InvokedAfter"); + static constexpr uint32_t InvokedBefore_HASH = ConstExprHashingUtils::HashString("InvokedBefore"); + static constexpr uint32_t Target_HASH = ConstExprHashingUtils::HashString("Target"); + static constexpr uint32_t Owner_HASH = ConstExprHashingUtils::HashString("Owner"); + static constexpr uint32_t Status_HASH = ConstExprHashingUtils::HashString("Status"); + static constexpr uint32_t SessionId_HASH = ConstExprHashingUtils::HashString("SessionId"); SessionFilterKey GetSessionFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == InvokedAfter_HASH) { return SessionFilterKey::InvokedAfter; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/SessionState.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/SessionState.cpp index 58f64a89c17..9e6d64fdf3c 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/SessionState.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/SessionState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SessionStateMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int History_HASH = HashingUtils::HashString("History"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t History_HASH = ConstExprHashingUtils::HashString("History"); SessionState GetSessionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return SessionState::Active; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/SessionStatus.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/SessionStatus.cpp index 07c533adb5a..ab6078b8f18 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/SessionStatus.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/SessionStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SessionStatusMapper { - static const int Connected_HASH = HashingUtils::HashString("Connected"); - static const int Connecting_HASH = HashingUtils::HashString("Connecting"); - static const int Disconnected_HASH = HashingUtils::HashString("Disconnected"); - static const int Terminated_HASH = HashingUtils::HashString("Terminated"); - static const int Terminating_HASH = HashingUtils::HashString("Terminating"); - static const int Failed_HASH = HashingUtils::HashString("Failed"); + static constexpr uint32_t Connected_HASH = ConstExprHashingUtils::HashString("Connected"); + static constexpr uint32_t Connecting_HASH = ConstExprHashingUtils::HashString("Connecting"); + static constexpr uint32_t Disconnected_HASH = ConstExprHashingUtils::HashString("Disconnected"); + static constexpr uint32_t Terminated_HASH = ConstExprHashingUtils::HashString("Terminated"); + static constexpr uint32_t Terminating_HASH = ConstExprHashingUtils::HashString("Terminating"); + static constexpr uint32_t Failed_HASH = ConstExprHashingUtils::HashString("Failed"); SessionStatus GetSessionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Connected_HASH) { return SessionStatus::Connected; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/SignalType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/SignalType.cpp index 9999cad16f4..61339a8c29f 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/SignalType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/SignalType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SignalTypeMapper { - static const int Approve_HASH = HashingUtils::HashString("Approve"); - static const int Reject_HASH = HashingUtils::HashString("Reject"); - static const int StartStep_HASH = HashingUtils::HashString("StartStep"); - static const int StopStep_HASH = HashingUtils::HashString("StopStep"); - static const int Resume_HASH = HashingUtils::HashString("Resume"); + static constexpr uint32_t Approve_HASH = ConstExprHashingUtils::HashString("Approve"); + static constexpr uint32_t Reject_HASH = ConstExprHashingUtils::HashString("Reject"); + static constexpr uint32_t StartStep_HASH = ConstExprHashingUtils::HashString("StartStep"); + static constexpr uint32_t StopStep_HASH = ConstExprHashingUtils::HashString("StopStep"); + static constexpr uint32_t Resume_HASH = ConstExprHashingUtils::HashString("Resume"); SignalType GetSignalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Approve_HASH) { return SignalType::Approve; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/SourceType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/SourceType.cpp index c2b737cd031..682764c37f5 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/SourceType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/SourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SourceTypeMapper { - static const int AWS_EC2_Instance_HASH = HashingUtils::HashString("AWS::EC2::Instance"); - static const int AWS_IoT_Thing_HASH = HashingUtils::HashString("AWS::IoT::Thing"); - static const int AWS_SSM_ManagedInstance_HASH = HashingUtils::HashString("AWS::SSM::ManagedInstance"); + static constexpr uint32_t AWS_EC2_Instance_HASH = ConstExprHashingUtils::HashString("AWS::EC2::Instance"); + static constexpr uint32_t AWS_IoT_Thing_HASH = ConstExprHashingUtils::HashString("AWS::IoT::Thing"); + static constexpr uint32_t AWS_SSM_ManagedInstance_HASH = ConstExprHashingUtils::HashString("AWS::SSM::ManagedInstance"); SourceType GetSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_EC2_Instance_HASH) { return SourceType::AWS_EC2_Instance; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/StepExecutionFilterKey.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/StepExecutionFilterKey.cpp index 36b1dbb6da9..d470aafb930 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/StepExecutionFilterKey.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/StepExecutionFilterKey.cpp @@ -20,17 +20,17 @@ namespace Aws namespace StepExecutionFilterKeyMapper { - static const int StartTimeBefore_HASH = HashingUtils::HashString("StartTimeBefore"); - static const int StartTimeAfter_HASH = HashingUtils::HashString("StartTimeAfter"); - static const int StepExecutionStatus_HASH = HashingUtils::HashString("StepExecutionStatus"); - static const int StepExecutionId_HASH = HashingUtils::HashString("StepExecutionId"); - static const int StepName_HASH = HashingUtils::HashString("StepName"); - static const int Action_HASH = HashingUtils::HashString("Action"); + static constexpr uint32_t StartTimeBefore_HASH = ConstExprHashingUtils::HashString("StartTimeBefore"); + static constexpr uint32_t StartTimeAfter_HASH = ConstExprHashingUtils::HashString("StartTimeAfter"); + static constexpr uint32_t StepExecutionStatus_HASH = ConstExprHashingUtils::HashString("StepExecutionStatus"); + static constexpr uint32_t StepExecutionId_HASH = ConstExprHashingUtils::HashString("StepExecutionId"); + static constexpr uint32_t StepName_HASH = ConstExprHashingUtils::HashString("StepName"); + static constexpr uint32_t Action_HASH = ConstExprHashingUtils::HashString("Action"); StepExecutionFilterKey GetStepExecutionFilterKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == StartTimeBefore_HASH) { return StepExecutionFilterKey::StartTimeBefore; diff --git a/generated/src/aws-cpp-sdk-ssm/source/model/StopType.cpp b/generated/src/aws-cpp-sdk-ssm/source/model/StopType.cpp index 42439f61774..e975e21d704 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/model/StopType.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/model/StopType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StopTypeMapper { - static const int Complete_HASH = HashingUtils::HashString("Complete"); - static const int Cancel_HASH = HashingUtils::HashString("Cancel"); + static constexpr uint32_t Complete_HASH = ConstExprHashingUtils::HashString("Complete"); + static constexpr uint32_t Cancel_HASH = ConstExprHashingUtils::HashString("Cancel"); StopType GetStopTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Complete_HASH) { return StopType::Complete; diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminErrors.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminErrors.cpp index 4f533fd5d1a..9f52e72fe93 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminErrors.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminErrors.cpp @@ -18,14 +18,14 @@ namespace SSOAdmin namespace SSOAdminErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/model/InstanceAccessControlAttributeConfigurationStatus.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/model/InstanceAccessControlAttributeConfigurationStatus.cpp index 11008bff65b..83560ebf2e5 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/model/InstanceAccessControlAttributeConfigurationStatus.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/model/InstanceAccessControlAttributeConfigurationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace InstanceAccessControlAttributeConfigurationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); - static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("CREATION_FAILED"); InstanceAccessControlAttributeConfigurationStatus GetInstanceAccessControlAttributeConfigurationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return InstanceAccessControlAttributeConfigurationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/model/PrincipalType.cpp index 901525a6157..475f86e6f3b 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/model/PrincipalType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PrincipalTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return PrincipalType::USER; diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisionTargetType.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisionTargetType.cpp index 631d51f110a..4cd3b4a13ba 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisionTargetType.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisionTargetType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProvisionTargetTypeMapper { - static const int AWS_ACCOUNT_HASH = HashingUtils::HashString("AWS_ACCOUNT"); - static const int ALL_PROVISIONED_ACCOUNTS_HASH = HashingUtils::HashString("ALL_PROVISIONED_ACCOUNTS"); + static constexpr uint32_t AWS_ACCOUNT_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT"); + static constexpr uint32_t ALL_PROVISIONED_ACCOUNTS_HASH = ConstExprHashingUtils::HashString("ALL_PROVISIONED_ACCOUNTS"); ProvisionTargetType GetProvisionTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ACCOUNT_HASH) { return ProvisionTargetType::AWS_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisioningStatus.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisioningStatus.cpp index 2d48de36f81..43c53625543 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisioningStatus.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/model/ProvisioningStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProvisioningStatusMapper { - static const int LATEST_PERMISSION_SET_PROVISIONED_HASH = HashingUtils::HashString("LATEST_PERMISSION_SET_PROVISIONED"); - static const int LATEST_PERMISSION_SET_NOT_PROVISIONED_HASH = HashingUtils::HashString("LATEST_PERMISSION_SET_NOT_PROVISIONED"); + static constexpr uint32_t LATEST_PERMISSION_SET_PROVISIONED_HASH = ConstExprHashingUtils::HashString("LATEST_PERMISSION_SET_PROVISIONED"); + static constexpr uint32_t LATEST_PERMISSION_SET_NOT_PROVISIONED_HASH = ConstExprHashingUtils::HashString("LATEST_PERMISSION_SET_NOT_PROVISIONED"); ProvisioningStatus GetProvisioningStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LATEST_PERMISSION_SET_PROVISIONED_HASH) { return ProvisioningStatus::LATEST_PERMISSION_SET_PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/model/StatusValues.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/model/StatusValues.cpp index db70a4f721b..95ad23c1b10 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/model/StatusValues.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/model/StatusValues.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StatusValuesMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); StatusValues GetStatusValuesForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return StatusValues::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/model/TargetType.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/model/TargetType.cpp index cf5993f81f3..9c9cfb75e07 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/model/TargetType.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/model/TargetType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TargetTypeMapper { - static const int AWS_ACCOUNT_HASH = HashingUtils::HashString("AWS_ACCOUNT"); + static constexpr uint32_t AWS_ACCOUNT_HASH = ConstExprHashingUtils::HashString("AWS_ACCOUNT"); TargetType GetTargetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_ACCOUNT_HASH) { return TargetType::AWS_ACCOUNT; diff --git a/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCErrors.cpp b/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCErrors.cpp index 0d1b11a5c7c..ca6a657be90 100644 --- a/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCErrors.cpp +++ b/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCErrors.cpp @@ -103,21 +103,21 @@ template<> AWS_SSOOIDC_API InvalidRequestException SSOOIDCError::GetModeledError namespace SSOOIDCErrorMapper { -static const int INVALID_GRANT_HASH = HashingUtils::HashString("InvalidGrantException"); -static const int INVALID_SCOPE_HASH = HashingUtils::HashString("InvalidScopeException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int AUTHORIZATION_PENDING_HASH = HashingUtils::HashString("AuthorizationPendingException"); -static const int UNSUPPORTED_GRANT_TYPE_HASH = HashingUtils::HashString("UnsupportedGrantTypeException"); -static const int EXPIRED_TOKEN_HASH = HashingUtils::HashString("ExpiredTokenException"); -static const int UNAUTHORIZED_CLIENT_HASH = HashingUtils::HashString("UnauthorizedClientException"); -static const int INVALID_CLIENT_HASH = HashingUtils::HashString("InvalidClientException"); -static const int INVALID_CLIENT_METADATA_HASH = HashingUtils::HashString("InvalidClientMetadataException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t INVALID_GRANT_HASH = ConstExprHashingUtils::HashString("InvalidGrantException"); +static constexpr uint32_t INVALID_SCOPE_HASH = ConstExprHashingUtils::HashString("InvalidScopeException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t AUTHORIZATION_PENDING_HASH = ConstExprHashingUtils::HashString("AuthorizationPendingException"); +static constexpr uint32_t UNSUPPORTED_GRANT_TYPE_HASH = ConstExprHashingUtils::HashString("UnsupportedGrantTypeException"); +static constexpr uint32_t EXPIRED_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredTokenException"); +static constexpr uint32_t UNAUTHORIZED_CLIENT_HASH = ConstExprHashingUtils::HashString("UnauthorizedClientException"); +static constexpr uint32_t INVALID_CLIENT_HASH = ConstExprHashingUtils::HashString("InvalidClientException"); +static constexpr uint32_t INVALID_CLIENT_METADATA_HASH = ConstExprHashingUtils::HashString("InvalidClientMetadataException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_GRANT_HASH) { diff --git a/generated/src/aws-cpp-sdk-sso/source/SSOErrors.cpp b/generated/src/aws-cpp-sdk-sso/source/SSOErrors.cpp index 470367ff954..e48f99af2d0 100644 --- a/generated/src/aws-cpp-sdk-sso/source/SSOErrors.cpp +++ b/generated/src/aws-cpp-sdk-sso/source/SSOErrors.cpp @@ -18,14 +18,14 @@ namespace SSO namespace SSOErrorMapper { -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t UNAUTHORIZED_HASH = ConstExprHashingUtils::HashString("UnauthorizedException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == UNAUTHORIZED_HASH) { diff --git a/generated/src/aws-cpp-sdk-states/source/SFNErrors.cpp b/generated/src/aws-cpp-sdk-states/source/SFNErrors.cpp index 16ffe6e40a4..d77dad5d288 100644 --- a/generated/src/aws-cpp-sdk-states/source/SFNErrors.cpp +++ b/generated/src/aws-cpp-sdk-states/source/SFNErrors.cpp @@ -40,36 +40,36 @@ template<> AWS_SFN_API TooManyTags SFNError::GetModeledError() namespace SFNErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INVALID_TOKEN_HASH = HashingUtils::HashString("InvalidToken"); -static const int ACTIVITY_WORKER_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ActivityWorkerLimitExceeded"); -static const int INVALID_LOGGING_CONFIGURATION_HASH = HashingUtils::HashString("InvalidLoggingConfiguration"); -static const int TASK_TIMED_OUT_HASH = HashingUtils::HashString("TaskTimedOut"); -static const int INVALID_EXECUTION_INPUT_HASH = HashingUtils::HashString("InvalidExecutionInput"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int STATE_MACHINE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("StateMachineDoesNotExist"); -static const int INVALID_DEFINITION_HASH = HashingUtils::HashString("InvalidDefinition"); -static const int EXECUTION_ALREADY_EXISTS_HASH = HashingUtils::HashString("ExecutionAlreadyExists"); -static const int ACTIVITY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ActivityLimitExceeded"); -static const int STATE_MACHINE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("StateMachineLimitExceeded"); -static const int MISSING_REQUIRED_PARAMETER_HASH = HashingUtils::HashString("MissingRequiredParameter"); -static const int INVALID_ARN_HASH = HashingUtils::HashString("InvalidArn"); -static const int TASK_DOES_NOT_EXIST_HASH = HashingUtils::HashString("TaskDoesNotExist"); -static const int EXECUTION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ExecutionLimitExceeded"); -static const int ACTIVITY_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ActivityDoesNotExist"); -static const int INVALID_NAME_HASH = HashingUtils::HashString("InvalidName"); -static const int STATE_MACHINE_TYPE_NOT_SUPPORTED_HASH = HashingUtils::HashString("StateMachineTypeNotSupported"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTags"); -static const int STATE_MACHINE_DELETING_HASH = HashingUtils::HashString("StateMachineDeleting"); -static const int EXECUTION_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ExecutionDoesNotExist"); -static const int INVALID_TRACING_CONFIGURATION_HASH = HashingUtils::HashString("InvalidTracingConfiguration"); -static const int INVALID_OUTPUT_HASH = HashingUtils::HashString("InvalidOutput"); -static const int STATE_MACHINE_ALREADY_EXISTS_HASH = HashingUtils::HashString("StateMachineAlreadyExists"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INVALID_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidToken"); +static constexpr uint32_t ACTIVITY_WORKER_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ActivityWorkerLimitExceeded"); +static constexpr uint32_t INVALID_LOGGING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidLoggingConfiguration"); +static constexpr uint32_t TASK_TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TaskTimedOut"); +static constexpr uint32_t INVALID_EXECUTION_INPUT_HASH = ConstExprHashingUtils::HashString("InvalidExecutionInput"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t STATE_MACHINE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("StateMachineDoesNotExist"); +static constexpr uint32_t INVALID_DEFINITION_HASH = ConstExprHashingUtils::HashString("InvalidDefinition"); +static constexpr uint32_t EXECUTION_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ExecutionAlreadyExists"); +static constexpr uint32_t ACTIVITY_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ActivityLimitExceeded"); +static constexpr uint32_t STATE_MACHINE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("StateMachineLimitExceeded"); +static constexpr uint32_t MISSING_REQUIRED_PARAMETER_HASH = ConstExprHashingUtils::HashString("MissingRequiredParameter"); +static constexpr uint32_t INVALID_ARN_HASH = ConstExprHashingUtils::HashString("InvalidArn"); +static constexpr uint32_t TASK_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("TaskDoesNotExist"); +static constexpr uint32_t EXECUTION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ExecutionLimitExceeded"); +static constexpr uint32_t ACTIVITY_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ActivityDoesNotExist"); +static constexpr uint32_t INVALID_NAME_HASH = ConstExprHashingUtils::HashString("InvalidName"); +static constexpr uint32_t STATE_MACHINE_TYPE_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("StateMachineTypeNotSupported"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTags"); +static constexpr uint32_t STATE_MACHINE_DELETING_HASH = ConstExprHashingUtils::HashString("StateMachineDeleting"); +static constexpr uint32_t EXECUTION_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ExecutionDoesNotExist"); +static constexpr uint32_t INVALID_TRACING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidTracingConfiguration"); +static constexpr uint32_t INVALID_OUTPUT_HASH = ConstExprHashingUtils::HashString("InvalidOutput"); +static constexpr uint32_t STATE_MACHINE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("StateMachineAlreadyExists"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-states/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-states/source/model/ExecutionStatus.cpp index 4358f394b54..6ceb4d2beb1 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/ExecutionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ExecutionStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return ExecutionStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-states/source/model/HistoryEventType.cpp b/generated/src/aws-cpp-sdk-states/source/model/HistoryEventType.cpp index 0021ed9c054..8e11fb6c843 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/HistoryEventType.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/HistoryEventType.cpp @@ -20,70 +20,70 @@ namespace Aws namespace HistoryEventTypeMapper { - static const int ActivityFailed_HASH = HashingUtils::HashString("ActivityFailed"); - static const int ActivityScheduled_HASH = HashingUtils::HashString("ActivityScheduled"); - static const int ActivityScheduleFailed_HASH = HashingUtils::HashString("ActivityScheduleFailed"); - static const int ActivityStarted_HASH = HashingUtils::HashString("ActivityStarted"); - static const int ActivitySucceeded_HASH = HashingUtils::HashString("ActivitySucceeded"); - static const int ActivityTimedOut_HASH = HashingUtils::HashString("ActivityTimedOut"); - static const int ChoiceStateEntered_HASH = HashingUtils::HashString("ChoiceStateEntered"); - static const int ChoiceStateExited_HASH = HashingUtils::HashString("ChoiceStateExited"); - static const int ExecutionAborted_HASH = HashingUtils::HashString("ExecutionAborted"); - static const int ExecutionFailed_HASH = HashingUtils::HashString("ExecutionFailed"); - static const int ExecutionStarted_HASH = HashingUtils::HashString("ExecutionStarted"); - static const int ExecutionSucceeded_HASH = HashingUtils::HashString("ExecutionSucceeded"); - static const int ExecutionTimedOut_HASH = HashingUtils::HashString("ExecutionTimedOut"); - static const int FailStateEntered_HASH = HashingUtils::HashString("FailStateEntered"); - static const int LambdaFunctionFailed_HASH = HashingUtils::HashString("LambdaFunctionFailed"); - static const int LambdaFunctionScheduled_HASH = HashingUtils::HashString("LambdaFunctionScheduled"); - static const int LambdaFunctionScheduleFailed_HASH = HashingUtils::HashString("LambdaFunctionScheduleFailed"); - static const int LambdaFunctionStarted_HASH = HashingUtils::HashString("LambdaFunctionStarted"); - static const int LambdaFunctionStartFailed_HASH = HashingUtils::HashString("LambdaFunctionStartFailed"); - static const int LambdaFunctionSucceeded_HASH = HashingUtils::HashString("LambdaFunctionSucceeded"); - static const int LambdaFunctionTimedOut_HASH = HashingUtils::HashString("LambdaFunctionTimedOut"); - static const int MapIterationAborted_HASH = HashingUtils::HashString("MapIterationAborted"); - static const int MapIterationFailed_HASH = HashingUtils::HashString("MapIterationFailed"); - static const int MapIterationStarted_HASH = HashingUtils::HashString("MapIterationStarted"); - static const int MapIterationSucceeded_HASH = HashingUtils::HashString("MapIterationSucceeded"); - static const int MapStateAborted_HASH = HashingUtils::HashString("MapStateAborted"); - static const int MapStateEntered_HASH = HashingUtils::HashString("MapStateEntered"); - static const int MapStateExited_HASH = HashingUtils::HashString("MapStateExited"); - static const int MapStateFailed_HASH = HashingUtils::HashString("MapStateFailed"); - static const int MapStateStarted_HASH = HashingUtils::HashString("MapStateStarted"); - static const int MapStateSucceeded_HASH = HashingUtils::HashString("MapStateSucceeded"); - static const int ParallelStateAborted_HASH = HashingUtils::HashString("ParallelStateAborted"); - static const int ParallelStateEntered_HASH = HashingUtils::HashString("ParallelStateEntered"); - static const int ParallelStateExited_HASH = HashingUtils::HashString("ParallelStateExited"); - static const int ParallelStateFailed_HASH = HashingUtils::HashString("ParallelStateFailed"); - static const int ParallelStateStarted_HASH = HashingUtils::HashString("ParallelStateStarted"); - static const int ParallelStateSucceeded_HASH = HashingUtils::HashString("ParallelStateSucceeded"); - static const int PassStateEntered_HASH = HashingUtils::HashString("PassStateEntered"); - static const int PassStateExited_HASH = HashingUtils::HashString("PassStateExited"); - static const int SucceedStateEntered_HASH = HashingUtils::HashString("SucceedStateEntered"); - static const int SucceedStateExited_HASH = HashingUtils::HashString("SucceedStateExited"); - static const int TaskFailed_HASH = HashingUtils::HashString("TaskFailed"); - static const int TaskScheduled_HASH = HashingUtils::HashString("TaskScheduled"); - static const int TaskStarted_HASH = HashingUtils::HashString("TaskStarted"); - static const int TaskStartFailed_HASH = HashingUtils::HashString("TaskStartFailed"); - static const int TaskStateAborted_HASH = HashingUtils::HashString("TaskStateAborted"); - static const int TaskStateEntered_HASH = HashingUtils::HashString("TaskStateEntered"); - static const int TaskStateExited_HASH = HashingUtils::HashString("TaskStateExited"); - static const int TaskSubmitFailed_HASH = HashingUtils::HashString("TaskSubmitFailed"); - static const int TaskSubmitted_HASH = HashingUtils::HashString("TaskSubmitted"); - static const int TaskSucceeded_HASH = HashingUtils::HashString("TaskSucceeded"); - static const int TaskTimedOut_HASH = HashingUtils::HashString("TaskTimedOut"); - static const int WaitStateAborted_HASH = HashingUtils::HashString("WaitStateAborted"); - static const int WaitStateEntered_HASH = HashingUtils::HashString("WaitStateEntered"); - static const int WaitStateExited_HASH = HashingUtils::HashString("WaitStateExited"); - static const int MapRunAborted_HASH = HashingUtils::HashString("MapRunAborted"); - static const int MapRunFailed_HASH = HashingUtils::HashString("MapRunFailed"); - static const int MapRunStarted_HASH = HashingUtils::HashString("MapRunStarted"); - static const int MapRunSucceeded_HASH = HashingUtils::HashString("MapRunSucceeded"); + static constexpr uint32_t ActivityFailed_HASH = ConstExprHashingUtils::HashString("ActivityFailed"); + static constexpr uint32_t ActivityScheduled_HASH = ConstExprHashingUtils::HashString("ActivityScheduled"); + static constexpr uint32_t ActivityScheduleFailed_HASH = ConstExprHashingUtils::HashString("ActivityScheduleFailed"); + static constexpr uint32_t ActivityStarted_HASH = ConstExprHashingUtils::HashString("ActivityStarted"); + static constexpr uint32_t ActivitySucceeded_HASH = ConstExprHashingUtils::HashString("ActivitySucceeded"); + static constexpr uint32_t ActivityTimedOut_HASH = ConstExprHashingUtils::HashString("ActivityTimedOut"); + static constexpr uint32_t ChoiceStateEntered_HASH = ConstExprHashingUtils::HashString("ChoiceStateEntered"); + static constexpr uint32_t ChoiceStateExited_HASH = ConstExprHashingUtils::HashString("ChoiceStateExited"); + static constexpr uint32_t ExecutionAborted_HASH = ConstExprHashingUtils::HashString("ExecutionAborted"); + static constexpr uint32_t ExecutionFailed_HASH = ConstExprHashingUtils::HashString("ExecutionFailed"); + static constexpr uint32_t ExecutionStarted_HASH = ConstExprHashingUtils::HashString("ExecutionStarted"); + static constexpr uint32_t ExecutionSucceeded_HASH = ConstExprHashingUtils::HashString("ExecutionSucceeded"); + static constexpr uint32_t ExecutionTimedOut_HASH = ConstExprHashingUtils::HashString("ExecutionTimedOut"); + static constexpr uint32_t FailStateEntered_HASH = ConstExprHashingUtils::HashString("FailStateEntered"); + static constexpr uint32_t LambdaFunctionFailed_HASH = ConstExprHashingUtils::HashString("LambdaFunctionFailed"); + static constexpr uint32_t LambdaFunctionScheduled_HASH = ConstExprHashingUtils::HashString("LambdaFunctionScheduled"); + static constexpr uint32_t LambdaFunctionScheduleFailed_HASH = ConstExprHashingUtils::HashString("LambdaFunctionScheduleFailed"); + static constexpr uint32_t LambdaFunctionStarted_HASH = ConstExprHashingUtils::HashString("LambdaFunctionStarted"); + static constexpr uint32_t LambdaFunctionStartFailed_HASH = ConstExprHashingUtils::HashString("LambdaFunctionStartFailed"); + static constexpr uint32_t LambdaFunctionSucceeded_HASH = ConstExprHashingUtils::HashString("LambdaFunctionSucceeded"); + static constexpr uint32_t LambdaFunctionTimedOut_HASH = ConstExprHashingUtils::HashString("LambdaFunctionTimedOut"); + static constexpr uint32_t MapIterationAborted_HASH = ConstExprHashingUtils::HashString("MapIterationAborted"); + static constexpr uint32_t MapIterationFailed_HASH = ConstExprHashingUtils::HashString("MapIterationFailed"); + static constexpr uint32_t MapIterationStarted_HASH = ConstExprHashingUtils::HashString("MapIterationStarted"); + static constexpr uint32_t MapIterationSucceeded_HASH = ConstExprHashingUtils::HashString("MapIterationSucceeded"); + static constexpr uint32_t MapStateAborted_HASH = ConstExprHashingUtils::HashString("MapStateAborted"); + static constexpr uint32_t MapStateEntered_HASH = ConstExprHashingUtils::HashString("MapStateEntered"); + static constexpr uint32_t MapStateExited_HASH = ConstExprHashingUtils::HashString("MapStateExited"); + static constexpr uint32_t MapStateFailed_HASH = ConstExprHashingUtils::HashString("MapStateFailed"); + static constexpr uint32_t MapStateStarted_HASH = ConstExprHashingUtils::HashString("MapStateStarted"); + static constexpr uint32_t MapStateSucceeded_HASH = ConstExprHashingUtils::HashString("MapStateSucceeded"); + static constexpr uint32_t ParallelStateAborted_HASH = ConstExprHashingUtils::HashString("ParallelStateAborted"); + static constexpr uint32_t ParallelStateEntered_HASH = ConstExprHashingUtils::HashString("ParallelStateEntered"); + static constexpr uint32_t ParallelStateExited_HASH = ConstExprHashingUtils::HashString("ParallelStateExited"); + static constexpr uint32_t ParallelStateFailed_HASH = ConstExprHashingUtils::HashString("ParallelStateFailed"); + static constexpr uint32_t ParallelStateStarted_HASH = ConstExprHashingUtils::HashString("ParallelStateStarted"); + static constexpr uint32_t ParallelStateSucceeded_HASH = ConstExprHashingUtils::HashString("ParallelStateSucceeded"); + static constexpr uint32_t PassStateEntered_HASH = ConstExprHashingUtils::HashString("PassStateEntered"); + static constexpr uint32_t PassStateExited_HASH = ConstExprHashingUtils::HashString("PassStateExited"); + static constexpr uint32_t SucceedStateEntered_HASH = ConstExprHashingUtils::HashString("SucceedStateEntered"); + static constexpr uint32_t SucceedStateExited_HASH = ConstExprHashingUtils::HashString("SucceedStateExited"); + static constexpr uint32_t TaskFailed_HASH = ConstExprHashingUtils::HashString("TaskFailed"); + static constexpr uint32_t TaskScheduled_HASH = ConstExprHashingUtils::HashString("TaskScheduled"); + static constexpr uint32_t TaskStarted_HASH = ConstExprHashingUtils::HashString("TaskStarted"); + static constexpr uint32_t TaskStartFailed_HASH = ConstExprHashingUtils::HashString("TaskStartFailed"); + static constexpr uint32_t TaskStateAborted_HASH = ConstExprHashingUtils::HashString("TaskStateAborted"); + static constexpr uint32_t TaskStateEntered_HASH = ConstExprHashingUtils::HashString("TaskStateEntered"); + static constexpr uint32_t TaskStateExited_HASH = ConstExprHashingUtils::HashString("TaskStateExited"); + static constexpr uint32_t TaskSubmitFailed_HASH = ConstExprHashingUtils::HashString("TaskSubmitFailed"); + static constexpr uint32_t TaskSubmitted_HASH = ConstExprHashingUtils::HashString("TaskSubmitted"); + static constexpr uint32_t TaskSucceeded_HASH = ConstExprHashingUtils::HashString("TaskSucceeded"); + static constexpr uint32_t TaskTimedOut_HASH = ConstExprHashingUtils::HashString("TaskTimedOut"); + static constexpr uint32_t WaitStateAborted_HASH = ConstExprHashingUtils::HashString("WaitStateAborted"); + static constexpr uint32_t WaitStateEntered_HASH = ConstExprHashingUtils::HashString("WaitStateEntered"); + static constexpr uint32_t WaitStateExited_HASH = ConstExprHashingUtils::HashString("WaitStateExited"); + static constexpr uint32_t MapRunAborted_HASH = ConstExprHashingUtils::HashString("MapRunAborted"); + static constexpr uint32_t MapRunFailed_HASH = ConstExprHashingUtils::HashString("MapRunFailed"); + static constexpr uint32_t MapRunStarted_HASH = ConstExprHashingUtils::HashString("MapRunStarted"); + static constexpr uint32_t MapRunSucceeded_HASH = ConstExprHashingUtils::HashString("MapRunSucceeded"); HistoryEventType GetHistoryEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ActivityFailed_HASH) { return HistoryEventType::ActivityFailed; diff --git a/generated/src/aws-cpp-sdk-states/source/model/LogLevel.cpp b/generated/src/aws-cpp-sdk-states/source/model/LogLevel.cpp index 7188e527bed..ef95c080b2f 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/LogLevel.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/LogLevel.cpp @@ -20,15 +20,15 @@ namespace Aws namespace LogLevelMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int FATAL_HASH = HashingUtils::HashString("FATAL"); - static const int OFF_HASH = HashingUtils::HashString("OFF"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t FATAL_HASH = ConstExprHashingUtils::HashString("FATAL"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); LogLevel GetLogLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return LogLevel::ALL; diff --git a/generated/src/aws-cpp-sdk-states/source/model/MapRunStatus.cpp b/generated/src/aws-cpp-sdk-states/source/model/MapRunStatus.cpp index 268e64a5299..788623a4054 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/MapRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/MapRunStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MapRunStatusMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int ABORTED_HASH = HashingUtils::HashString("ABORTED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t ABORTED_HASH = ConstExprHashingUtils::HashString("ABORTED"); MapRunStatus GetMapRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return MapRunStatus::RUNNING; diff --git a/generated/src/aws-cpp-sdk-states/source/model/StateMachineStatus.cpp b/generated/src/aws-cpp-sdk-states/source/model/StateMachineStatus.cpp index a10a8740124..af1c8d4eaa5 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/StateMachineStatus.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/StateMachineStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StateMachineStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); StateMachineStatus GetStateMachineStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return StateMachineStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-states/source/model/StateMachineType.cpp b/generated/src/aws-cpp-sdk-states/source/model/StateMachineType.cpp index 96184e5d273..99908650e56 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/StateMachineType.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/StateMachineType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StateMachineTypeMapper { - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int EXPRESS_HASH = HashingUtils::HashString("EXPRESS"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t EXPRESS_HASH = ConstExprHashingUtils::HashString("EXPRESS"); StateMachineType GetStateMachineTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return StateMachineType::STANDARD; diff --git a/generated/src/aws-cpp-sdk-states/source/model/SyncExecutionStatus.cpp b/generated/src/aws-cpp-sdk-states/source/model/SyncExecutionStatus.cpp index 40381eabef4..4d1077e7c15 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/SyncExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/SyncExecutionStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SyncExecutionStatusMapper { - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); SyncExecutionStatus GetSyncExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCEEDED_HASH) { return SyncExecutionStatus::SUCCEEDED; diff --git a/generated/src/aws-cpp-sdk-states/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-states/source/model/ValidationExceptionReason.cpp index a0f74566985..737f68cda75 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int API_DOES_NOT_SUPPORT_LABELED_ARNS_HASH = HashingUtils::HashString("API_DOES_NOT_SUPPORT_LABELED_ARNS"); - static const int MISSING_REQUIRED_PARAMETER_HASH = HashingUtils::HashString("MISSING_REQUIRED_PARAMETER"); - static const int CANNOT_UPDATE_COMPLETED_MAP_RUN_HASH = HashingUtils::HashString("CANNOT_UPDATE_COMPLETED_MAP_RUN"); - static const int INVALID_ROUTING_CONFIGURATION_HASH = HashingUtils::HashString("INVALID_ROUTING_CONFIGURATION"); + static constexpr uint32_t API_DOES_NOT_SUPPORT_LABELED_ARNS_HASH = ConstExprHashingUtils::HashString("API_DOES_NOT_SUPPORT_LABELED_ARNS"); + static constexpr uint32_t MISSING_REQUIRED_PARAMETER_HASH = ConstExprHashingUtils::HashString("MISSING_REQUIRED_PARAMETER"); + static constexpr uint32_t CANNOT_UPDATE_COMPLETED_MAP_RUN_HASH = ConstExprHashingUtils::HashString("CANNOT_UPDATE_COMPLETED_MAP_RUN"); + static constexpr uint32_t INVALID_ROUTING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("INVALID_ROUTING_CONFIGURATION"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == API_DOES_NOT_SUPPORT_LABELED_ARNS_HASH) { return ValidationExceptionReason::API_DOES_NOT_SUPPORT_LABELED_ARNS; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayErrors.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayErrors.cpp index af1c57e68de..422a81a82fb 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayErrors.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayErrors.cpp @@ -40,12 +40,12 @@ template<> AWS_STORAGEGATEWAY_API InvalidGatewayRequestException StorageGatewayE namespace StorageGatewayErrorMapper { -static const int INVALID_GATEWAY_REQUEST_HASH = HashingUtils::HashString("InvalidGatewayRequestException"); +static constexpr uint32_t INVALID_GATEWAY_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidGatewayRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_GATEWAY_REQUEST_HASH) { diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/ActiveDirectoryStatus.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/ActiveDirectoryStatus.cpp index ac16bd35ce0..3c2e5fffb0f 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/ActiveDirectoryStatus.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/ActiveDirectoryStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ActiveDirectoryStatusMapper { - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int DETACHED_HASH = HashingUtils::HashString("DETACHED"); - static const int JOINED_HASH = HashingUtils::HashString("JOINED"); - static const int JOINING_HASH = HashingUtils::HashString("JOINING"); - static const int NETWORK_ERROR_HASH = HashingUtils::HashString("NETWORK_ERROR"); - static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); - static const int UNKNOWN_ERROR_HASH = HashingUtils::HashString("UNKNOWN_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t DETACHED_HASH = ConstExprHashingUtils::HashString("DETACHED"); + static constexpr uint32_t JOINED_HASH = ConstExprHashingUtils::HashString("JOINED"); + static constexpr uint32_t JOINING_HASH = ConstExprHashingUtils::HashString("JOINING"); + static constexpr uint32_t NETWORK_ERROR_HASH = ConstExprHashingUtils::HashString("NETWORK_ERROR"); + static constexpr uint32_t TIMEOUT_HASH = ConstExprHashingUtils::HashString("TIMEOUT"); + static constexpr uint32_t UNKNOWN_ERROR_HASH = ConstExprHashingUtils::HashString("UNKNOWN_ERROR"); ActiveDirectoryStatus GetActiveDirectoryStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCESS_DENIED_HASH) { return ActiveDirectoryStatus::ACCESS_DENIED; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/AvailabilityMonitorTestStatus.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/AvailabilityMonitorTestStatus.cpp index 8d7ceb7e82e..d0c4dcfad82 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/AvailabilityMonitorTestStatus.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/AvailabilityMonitorTestStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace AvailabilityMonitorTestStatusMapper { - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); AvailabilityMonitorTestStatus GetAvailabilityMonitorTestStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETE_HASH) { return AvailabilityMonitorTestStatus::COMPLETE; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/CaseSensitivity.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/CaseSensitivity.cpp index 91c0505be97..cd58eb3213f 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/CaseSensitivity.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/CaseSensitivity.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CaseSensitivityMapper { - static const int ClientSpecified_HASH = HashingUtils::HashString("ClientSpecified"); - static const int CaseSensitive_HASH = HashingUtils::HashString("CaseSensitive"); + static constexpr uint32_t ClientSpecified_HASH = ConstExprHashingUtils::HashString("ClientSpecified"); + static constexpr uint32_t CaseSensitive_HASH = ConstExprHashingUtils::HashString("CaseSensitive"); CaseSensitivity GetCaseSensitivityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ClientSpecified_HASH) { return CaseSensitivity::ClientSpecified; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/ErrorCode.cpp index a2c7414c590..e4dcba3c299 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/ErrorCode.cpp @@ -20,73 +20,73 @@ namespace Aws namespace ErrorCodeMapper { - static const int ActivationKeyExpired_HASH = HashingUtils::HashString("ActivationKeyExpired"); - static const int ActivationKeyInvalid_HASH = HashingUtils::HashString("ActivationKeyInvalid"); - static const int ActivationKeyNotFound_HASH = HashingUtils::HashString("ActivationKeyNotFound"); - static const int GatewayInternalError_HASH = HashingUtils::HashString("GatewayInternalError"); - static const int GatewayNotConnected_HASH = HashingUtils::HashString("GatewayNotConnected"); - static const int GatewayNotFound_HASH = HashingUtils::HashString("GatewayNotFound"); - static const int GatewayProxyNetworkConnectionBusy_HASH = HashingUtils::HashString("GatewayProxyNetworkConnectionBusy"); - static const int AuthenticationFailure_HASH = HashingUtils::HashString("AuthenticationFailure"); - static const int BandwidthThrottleScheduleNotFound_HASH = HashingUtils::HashString("BandwidthThrottleScheduleNotFound"); - static const int Blocked_HASH = HashingUtils::HashString("Blocked"); - static const int CannotExportSnapshot_HASH = HashingUtils::HashString("CannotExportSnapshot"); - static const int ChapCredentialNotFound_HASH = HashingUtils::HashString("ChapCredentialNotFound"); - static const int DiskAlreadyAllocated_HASH = HashingUtils::HashString("DiskAlreadyAllocated"); - static const int DiskDoesNotExist_HASH = HashingUtils::HashString("DiskDoesNotExist"); - static const int DiskSizeGreaterThanVolumeMaxSize_HASH = HashingUtils::HashString("DiskSizeGreaterThanVolumeMaxSize"); - static const int DiskSizeLessThanVolumeSize_HASH = HashingUtils::HashString("DiskSizeLessThanVolumeSize"); - static const int DiskSizeNotGigAligned_HASH = HashingUtils::HashString("DiskSizeNotGigAligned"); - static const int DuplicateCertificateInfo_HASH = HashingUtils::HashString("DuplicateCertificateInfo"); - static const int DuplicateSchedule_HASH = HashingUtils::HashString("DuplicateSchedule"); - static const int EndpointNotFound_HASH = HashingUtils::HashString("EndpointNotFound"); - static const int IAMNotSupported_HASH = HashingUtils::HashString("IAMNotSupported"); - static const int InitiatorInvalid_HASH = HashingUtils::HashString("InitiatorInvalid"); - static const int InitiatorNotFound_HASH = HashingUtils::HashString("InitiatorNotFound"); - static const int InternalError_HASH = HashingUtils::HashString("InternalError"); - static const int InvalidGateway_HASH = HashingUtils::HashString("InvalidGateway"); - static const int InvalidEndpoint_HASH = HashingUtils::HashString("InvalidEndpoint"); - static const int InvalidParameters_HASH = HashingUtils::HashString("InvalidParameters"); - static const int InvalidSchedule_HASH = HashingUtils::HashString("InvalidSchedule"); - static const int LocalStorageLimitExceeded_HASH = HashingUtils::HashString("LocalStorageLimitExceeded"); - static const int LunAlreadyAllocated_HASH = HashingUtils::HashString("LunAlreadyAllocated "); - static const int LunInvalid_HASH = HashingUtils::HashString("LunInvalid"); - static const int JoinDomainInProgress_HASH = HashingUtils::HashString("JoinDomainInProgress"); - static const int MaximumContentLengthExceeded_HASH = HashingUtils::HashString("MaximumContentLengthExceeded"); - static const int MaximumTapeCartridgeCountExceeded_HASH = HashingUtils::HashString("MaximumTapeCartridgeCountExceeded"); - static const int MaximumVolumeCountExceeded_HASH = HashingUtils::HashString("MaximumVolumeCountExceeded"); - static const int NetworkConfigurationChanged_HASH = HashingUtils::HashString("NetworkConfigurationChanged"); - static const int NoDisksAvailable_HASH = HashingUtils::HashString("NoDisksAvailable"); - static const int NotImplemented_HASH = HashingUtils::HashString("NotImplemented"); - static const int NotSupported_HASH = HashingUtils::HashString("NotSupported"); - static const int OperationAborted_HASH = HashingUtils::HashString("OperationAborted"); - static const int OutdatedGateway_HASH = HashingUtils::HashString("OutdatedGateway"); - static const int ParametersNotImplemented_HASH = HashingUtils::HashString("ParametersNotImplemented"); - static const int RegionInvalid_HASH = HashingUtils::HashString("RegionInvalid"); - static const int RequestTimeout_HASH = HashingUtils::HashString("RequestTimeout"); - static const int ServiceUnavailable_HASH = HashingUtils::HashString("ServiceUnavailable"); - static const int SnapshotDeleted_HASH = HashingUtils::HashString("SnapshotDeleted"); - static const int SnapshotIdInvalid_HASH = HashingUtils::HashString("SnapshotIdInvalid"); - static const int SnapshotInProgress_HASH = HashingUtils::HashString("SnapshotInProgress"); - static const int SnapshotNotFound_HASH = HashingUtils::HashString("SnapshotNotFound"); - static const int SnapshotScheduleNotFound_HASH = HashingUtils::HashString("SnapshotScheduleNotFound"); - static const int StagingAreaFull_HASH = HashingUtils::HashString("StagingAreaFull"); - static const int StorageFailure_HASH = HashingUtils::HashString("StorageFailure"); - static const int TapeCartridgeNotFound_HASH = HashingUtils::HashString("TapeCartridgeNotFound"); - static const int TargetAlreadyExists_HASH = HashingUtils::HashString("TargetAlreadyExists"); - static const int TargetInvalid_HASH = HashingUtils::HashString("TargetInvalid"); - static const int TargetNotFound_HASH = HashingUtils::HashString("TargetNotFound"); - static const int UnauthorizedOperation_HASH = HashingUtils::HashString("UnauthorizedOperation"); - static const int VolumeAlreadyExists_HASH = HashingUtils::HashString("VolumeAlreadyExists"); - static const int VolumeIdInvalid_HASH = HashingUtils::HashString("VolumeIdInvalid"); - static const int VolumeInUse_HASH = HashingUtils::HashString("VolumeInUse"); - static const int VolumeNotFound_HASH = HashingUtils::HashString("VolumeNotFound"); - static const int VolumeNotReady_HASH = HashingUtils::HashString("VolumeNotReady"); + static constexpr uint32_t ActivationKeyExpired_HASH = ConstExprHashingUtils::HashString("ActivationKeyExpired"); + static constexpr uint32_t ActivationKeyInvalid_HASH = ConstExprHashingUtils::HashString("ActivationKeyInvalid"); + static constexpr uint32_t ActivationKeyNotFound_HASH = ConstExprHashingUtils::HashString("ActivationKeyNotFound"); + static constexpr uint32_t GatewayInternalError_HASH = ConstExprHashingUtils::HashString("GatewayInternalError"); + static constexpr uint32_t GatewayNotConnected_HASH = ConstExprHashingUtils::HashString("GatewayNotConnected"); + static constexpr uint32_t GatewayNotFound_HASH = ConstExprHashingUtils::HashString("GatewayNotFound"); + static constexpr uint32_t GatewayProxyNetworkConnectionBusy_HASH = ConstExprHashingUtils::HashString("GatewayProxyNetworkConnectionBusy"); + static constexpr uint32_t AuthenticationFailure_HASH = ConstExprHashingUtils::HashString("AuthenticationFailure"); + static constexpr uint32_t BandwidthThrottleScheduleNotFound_HASH = ConstExprHashingUtils::HashString("BandwidthThrottleScheduleNotFound"); + static constexpr uint32_t Blocked_HASH = ConstExprHashingUtils::HashString("Blocked"); + static constexpr uint32_t CannotExportSnapshot_HASH = ConstExprHashingUtils::HashString("CannotExportSnapshot"); + static constexpr uint32_t ChapCredentialNotFound_HASH = ConstExprHashingUtils::HashString("ChapCredentialNotFound"); + static constexpr uint32_t DiskAlreadyAllocated_HASH = ConstExprHashingUtils::HashString("DiskAlreadyAllocated"); + static constexpr uint32_t DiskDoesNotExist_HASH = ConstExprHashingUtils::HashString("DiskDoesNotExist"); + static constexpr uint32_t DiskSizeGreaterThanVolumeMaxSize_HASH = ConstExprHashingUtils::HashString("DiskSizeGreaterThanVolumeMaxSize"); + static constexpr uint32_t DiskSizeLessThanVolumeSize_HASH = ConstExprHashingUtils::HashString("DiskSizeLessThanVolumeSize"); + static constexpr uint32_t DiskSizeNotGigAligned_HASH = ConstExprHashingUtils::HashString("DiskSizeNotGigAligned"); + static constexpr uint32_t DuplicateCertificateInfo_HASH = ConstExprHashingUtils::HashString("DuplicateCertificateInfo"); + static constexpr uint32_t DuplicateSchedule_HASH = ConstExprHashingUtils::HashString("DuplicateSchedule"); + static constexpr uint32_t EndpointNotFound_HASH = ConstExprHashingUtils::HashString("EndpointNotFound"); + static constexpr uint32_t IAMNotSupported_HASH = ConstExprHashingUtils::HashString("IAMNotSupported"); + static constexpr uint32_t InitiatorInvalid_HASH = ConstExprHashingUtils::HashString("InitiatorInvalid"); + static constexpr uint32_t InitiatorNotFound_HASH = ConstExprHashingUtils::HashString("InitiatorNotFound"); + static constexpr uint32_t InternalError_HASH = ConstExprHashingUtils::HashString("InternalError"); + static constexpr uint32_t InvalidGateway_HASH = ConstExprHashingUtils::HashString("InvalidGateway"); + static constexpr uint32_t InvalidEndpoint_HASH = ConstExprHashingUtils::HashString("InvalidEndpoint"); + static constexpr uint32_t InvalidParameters_HASH = ConstExprHashingUtils::HashString("InvalidParameters"); + static constexpr uint32_t InvalidSchedule_HASH = ConstExprHashingUtils::HashString("InvalidSchedule"); + static constexpr uint32_t LocalStorageLimitExceeded_HASH = ConstExprHashingUtils::HashString("LocalStorageLimitExceeded"); + static constexpr uint32_t LunAlreadyAllocated_HASH = ConstExprHashingUtils::HashString("LunAlreadyAllocated "); + static constexpr uint32_t LunInvalid_HASH = ConstExprHashingUtils::HashString("LunInvalid"); + static constexpr uint32_t JoinDomainInProgress_HASH = ConstExprHashingUtils::HashString("JoinDomainInProgress"); + static constexpr uint32_t MaximumContentLengthExceeded_HASH = ConstExprHashingUtils::HashString("MaximumContentLengthExceeded"); + static constexpr uint32_t MaximumTapeCartridgeCountExceeded_HASH = ConstExprHashingUtils::HashString("MaximumTapeCartridgeCountExceeded"); + static constexpr uint32_t MaximumVolumeCountExceeded_HASH = ConstExprHashingUtils::HashString("MaximumVolumeCountExceeded"); + static constexpr uint32_t NetworkConfigurationChanged_HASH = ConstExprHashingUtils::HashString("NetworkConfigurationChanged"); + static constexpr uint32_t NoDisksAvailable_HASH = ConstExprHashingUtils::HashString("NoDisksAvailable"); + static constexpr uint32_t NotImplemented_HASH = ConstExprHashingUtils::HashString("NotImplemented"); + static constexpr uint32_t NotSupported_HASH = ConstExprHashingUtils::HashString("NotSupported"); + static constexpr uint32_t OperationAborted_HASH = ConstExprHashingUtils::HashString("OperationAborted"); + static constexpr uint32_t OutdatedGateway_HASH = ConstExprHashingUtils::HashString("OutdatedGateway"); + static constexpr uint32_t ParametersNotImplemented_HASH = ConstExprHashingUtils::HashString("ParametersNotImplemented"); + static constexpr uint32_t RegionInvalid_HASH = ConstExprHashingUtils::HashString("RegionInvalid"); + static constexpr uint32_t RequestTimeout_HASH = ConstExprHashingUtils::HashString("RequestTimeout"); + static constexpr uint32_t ServiceUnavailable_HASH = ConstExprHashingUtils::HashString("ServiceUnavailable"); + static constexpr uint32_t SnapshotDeleted_HASH = ConstExprHashingUtils::HashString("SnapshotDeleted"); + static constexpr uint32_t SnapshotIdInvalid_HASH = ConstExprHashingUtils::HashString("SnapshotIdInvalid"); + static constexpr uint32_t SnapshotInProgress_HASH = ConstExprHashingUtils::HashString("SnapshotInProgress"); + static constexpr uint32_t SnapshotNotFound_HASH = ConstExprHashingUtils::HashString("SnapshotNotFound"); + static constexpr uint32_t SnapshotScheduleNotFound_HASH = ConstExprHashingUtils::HashString("SnapshotScheduleNotFound"); + static constexpr uint32_t StagingAreaFull_HASH = ConstExprHashingUtils::HashString("StagingAreaFull"); + static constexpr uint32_t StorageFailure_HASH = ConstExprHashingUtils::HashString("StorageFailure"); + static constexpr uint32_t TapeCartridgeNotFound_HASH = ConstExprHashingUtils::HashString("TapeCartridgeNotFound"); + static constexpr uint32_t TargetAlreadyExists_HASH = ConstExprHashingUtils::HashString("TargetAlreadyExists"); + static constexpr uint32_t TargetInvalid_HASH = ConstExprHashingUtils::HashString("TargetInvalid"); + static constexpr uint32_t TargetNotFound_HASH = ConstExprHashingUtils::HashString("TargetNotFound"); + static constexpr uint32_t UnauthorizedOperation_HASH = ConstExprHashingUtils::HashString("UnauthorizedOperation"); + static constexpr uint32_t VolumeAlreadyExists_HASH = ConstExprHashingUtils::HashString("VolumeAlreadyExists"); + static constexpr uint32_t VolumeIdInvalid_HASH = ConstExprHashingUtils::HashString("VolumeIdInvalid"); + static constexpr uint32_t VolumeInUse_HASH = ConstExprHashingUtils::HashString("VolumeInUse"); + static constexpr uint32_t VolumeNotFound_HASH = ConstExprHashingUtils::HashString("VolumeNotFound"); + static constexpr uint32_t VolumeNotReady_HASH = ConstExprHashingUtils::HashString("VolumeNotReady"); ErrorCode GetErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ActivationKeyExpired_HASH) { return ErrorCode::ActivationKeyExpired; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/FileShareType.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/FileShareType.cpp index ba1a383cf22..d5fcb1f4834 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/FileShareType.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/FileShareType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FileShareTypeMapper { - static const int NFS_HASH = HashingUtils::HashString("NFS"); - static const int SMB_HASH = HashingUtils::HashString("SMB"); + static constexpr uint32_t NFS_HASH = ConstExprHashingUtils::HashString("NFS"); + static constexpr uint32_t SMB_HASH = ConstExprHashingUtils::HashString("SMB"); FileShareType GetFileShareTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NFS_HASH) { return FileShareType::NFS; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/GatewayCapacity.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/GatewayCapacity.cpp index 188914abc5d..1f877739b5a 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/GatewayCapacity.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/GatewayCapacity.cpp @@ -20,14 +20,14 @@ namespace Aws namespace GatewayCapacityMapper { - static const int Small_HASH = HashingUtils::HashString("Small"); - static const int Medium_HASH = HashingUtils::HashString("Medium"); - static const int Large_HASH = HashingUtils::HashString("Large"); + static constexpr uint32_t Small_HASH = ConstExprHashingUtils::HashString("Small"); + static constexpr uint32_t Medium_HASH = ConstExprHashingUtils::HashString("Medium"); + static constexpr uint32_t Large_HASH = ConstExprHashingUtils::HashString("Large"); GatewayCapacity GetGatewayCapacityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Small_HASH) { return GatewayCapacity::Small; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/HostEnvironment.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/HostEnvironment.cpp index 7a0b3117592..1725da8422e 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/HostEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/HostEnvironment.cpp @@ -20,17 +20,17 @@ namespace Aws namespace HostEnvironmentMapper { - static const int VMWARE_HASH = HashingUtils::HashString("VMWARE"); - static const int HYPER_V_HASH = HashingUtils::HashString("HYPER-V"); - static const int EC2_HASH = HashingUtils::HashString("EC2"); - static const int KVM_HASH = HashingUtils::HashString("KVM"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int SNOWBALL_HASH = HashingUtils::HashString("SNOWBALL"); + static constexpr uint32_t VMWARE_HASH = ConstExprHashingUtils::HashString("VMWARE"); + static constexpr uint32_t HYPER_V_HASH = ConstExprHashingUtils::HashString("HYPER-V"); + static constexpr uint32_t EC2_HASH = ConstExprHashingUtils::HashString("EC2"); + static constexpr uint32_t KVM_HASH = ConstExprHashingUtils::HashString("KVM"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t SNOWBALL_HASH = ConstExprHashingUtils::HashString("SNOWBALL"); HostEnvironment GetHostEnvironmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VMWARE_HASH) { return HostEnvironment::VMWARE; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/ObjectACL.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/ObjectACL.cpp index 6dcd1c62392..91c17caa6c5 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/ObjectACL.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/ObjectACL.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ObjectACLMapper { - static const int private__HASH = HashingUtils::HashString("private"); - static const int public_read_HASH = HashingUtils::HashString("public-read"); - static const int public_read_write_HASH = HashingUtils::HashString("public-read-write"); - static const int authenticated_read_HASH = HashingUtils::HashString("authenticated-read"); - static const int bucket_owner_read_HASH = HashingUtils::HashString("bucket-owner-read"); - static const int bucket_owner_full_control_HASH = HashingUtils::HashString("bucket-owner-full-control"); - static const int aws_exec_read_HASH = HashingUtils::HashString("aws-exec-read"); + static constexpr uint32_t private__HASH = ConstExprHashingUtils::HashString("private"); + static constexpr uint32_t public_read_HASH = ConstExprHashingUtils::HashString("public-read"); + static constexpr uint32_t public_read_write_HASH = ConstExprHashingUtils::HashString("public-read-write"); + static constexpr uint32_t authenticated_read_HASH = ConstExprHashingUtils::HashString("authenticated-read"); + static constexpr uint32_t bucket_owner_read_HASH = ConstExprHashingUtils::HashString("bucket-owner-read"); + static constexpr uint32_t bucket_owner_full_control_HASH = ConstExprHashingUtils::HashString("bucket-owner-full-control"); + static constexpr uint32_t aws_exec_read_HASH = ConstExprHashingUtils::HashString("aws-exec-read"); ObjectACL GetObjectACLForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == private__HASH) { return ObjectACL::private_; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/PoolStatus.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/PoolStatus.cpp index 2385c213b47..fcd6349bb2e 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/PoolStatus.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/PoolStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PoolStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); PoolStatus GetPoolStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return PoolStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/RetentionLockType.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/RetentionLockType.cpp index 74531cef097..ba5aee35f02 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/RetentionLockType.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/RetentionLockType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RetentionLockTypeMapper { - static const int COMPLIANCE_HASH = HashingUtils::HashString("COMPLIANCE"); - static const int GOVERNANCE_HASH = HashingUtils::HashString("GOVERNANCE"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t COMPLIANCE_HASH = ConstExprHashingUtils::HashString("COMPLIANCE"); + static constexpr uint32_t GOVERNANCE_HASH = ConstExprHashingUtils::HashString("GOVERNANCE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); RetentionLockType GetRetentionLockTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLIANCE_HASH) { return RetentionLockType::COMPLIANCE; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp index fa71ac91cd9..99f3501739c 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SMBSecurityStrategyMapper { - static const int ClientSpecified_HASH = HashingUtils::HashString("ClientSpecified"); - static const int MandatorySigning_HASH = HashingUtils::HashString("MandatorySigning"); - static const int MandatoryEncryption_HASH = HashingUtils::HashString("MandatoryEncryption"); + static constexpr uint32_t ClientSpecified_HASH = ConstExprHashingUtils::HashString("ClientSpecified"); + static constexpr uint32_t MandatorySigning_HASH = ConstExprHashingUtils::HashString("MandatorySigning"); + static constexpr uint32_t MandatoryEncryption_HASH = ConstExprHashingUtils::HashString("MandatoryEncryption"); SMBSecurityStrategy GetSMBSecurityStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ClientSpecified_HASH) { return SMBSecurityStrategy::ClientSpecified; diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/TapeStorageClass.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/TapeStorageClass.cpp index 5689cd9dba3..26e5c47bbbc 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/TapeStorageClass.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/TapeStorageClass.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TapeStorageClassMapper { - static const int DEEP_ARCHIVE_HASH = HashingUtils::HashString("DEEP_ARCHIVE"); - static const int GLACIER_HASH = HashingUtils::HashString("GLACIER"); + static constexpr uint32_t DEEP_ARCHIVE_HASH = ConstExprHashingUtils::HashString("DEEP_ARCHIVE"); + static constexpr uint32_t GLACIER_HASH = ConstExprHashingUtils::HashString("GLACIER"); TapeStorageClass GetTapeStorageClassForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEEP_ARCHIVE_HASH) { return TapeStorageClass::DEEP_ARCHIVE; diff --git a/generated/src/aws-cpp-sdk-sts/source/STSErrors.cpp b/generated/src/aws-cpp-sdk-sts/source/STSErrors.cpp index ae1be430b0b..a9b2a1cb69a 100644 --- a/generated/src/aws-cpp-sdk-sts/source/STSErrors.cpp +++ b/generated/src/aws-cpp-sdk-sts/source/STSErrors.cpp @@ -18,19 +18,19 @@ namespace STS namespace STSErrorMapper { -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocument"); -static const int PACKED_POLICY_TOO_LARGE_HASH = HashingUtils::HashString("PackedPolicyTooLarge"); -static const int I_D_P_COMMUNICATION_ERROR_HASH = HashingUtils::HashString("IDPCommunicationError"); -static const int I_D_P_REJECTED_CLAIM_HASH = HashingUtils::HashString("IDPRejectedClaim"); -static const int EXPIRED_TOKEN_HASH = HashingUtils::HashString("ExpiredTokenException"); -static const int INVALID_IDENTITY_TOKEN_HASH = HashingUtils::HashString("InvalidIdentityToken"); -static const int INVALID_AUTHORIZATION_MESSAGE_HASH = HashingUtils::HashString("InvalidAuthorizationMessageException"); -static const int REGION_DISABLED_HASH = HashingUtils::HashString("RegionDisabledException"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocument"); +static constexpr uint32_t PACKED_POLICY_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("PackedPolicyTooLarge"); +static constexpr uint32_t I_D_P_COMMUNICATION_ERROR_HASH = ConstExprHashingUtils::HashString("IDPCommunicationError"); +static constexpr uint32_t I_D_P_REJECTED_CLAIM_HASH = ConstExprHashingUtils::HashString("IDPRejectedClaim"); +static constexpr uint32_t EXPIRED_TOKEN_HASH = ConstExprHashingUtils::HashString("ExpiredTokenException"); +static constexpr uint32_t INVALID_IDENTITY_TOKEN_HASH = ConstExprHashingUtils::HashString("InvalidIdentityToken"); +static constexpr uint32_t INVALID_AUTHORIZATION_MESSAGE_HASH = ConstExprHashingUtils::HashString("InvalidAuthorizationMessageException"); +static constexpr uint32_t REGION_DISABLED_HASH = ConstExprHashingUtils::HashString("RegionDisabledException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == MALFORMED_POLICY_DOCUMENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-support-app/source/SupportAppErrors.cpp b/generated/src/aws-cpp-sdk-support-app/source/SupportAppErrors.cpp index 55d3bd8ebfe..58b9cd19e6a 100644 --- a/generated/src/aws-cpp-sdk-support-app/source/SupportAppErrors.cpp +++ b/generated/src/aws-cpp-sdk-support-app/source/SupportAppErrors.cpp @@ -18,14 +18,14 @@ namespace SupportApp namespace SupportAppErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-support-app/source/model/AccountType.cpp b/generated/src/aws-cpp-sdk-support-app/source/model/AccountType.cpp index f284c360622..0db3dae997e 100644 --- a/generated/src/aws-cpp-sdk-support-app/source/model/AccountType.cpp +++ b/generated/src/aws-cpp-sdk-support-app/source/model/AccountType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccountTypeMapper { - static const int management_HASH = HashingUtils::HashString("management"); - static const int member_HASH = HashingUtils::HashString("member"); + static constexpr uint32_t management_HASH = ConstExprHashingUtils::HashString("management"); + static constexpr uint32_t member_HASH = ConstExprHashingUtils::HashString("member"); AccountType GetAccountTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == management_HASH) { return AccountType::management; diff --git a/generated/src/aws-cpp-sdk-support-app/source/model/NotificationSeverityLevel.cpp b/generated/src/aws-cpp-sdk-support-app/source/model/NotificationSeverityLevel.cpp index 0318cc6b2a3..7278a73446d 100644 --- a/generated/src/aws-cpp-sdk-support-app/source/model/NotificationSeverityLevel.cpp +++ b/generated/src/aws-cpp-sdk-support-app/source/model/NotificationSeverityLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NotificationSeverityLevelMapper { - static const int none_HASH = HashingUtils::HashString("none"); - static const int all_HASH = HashingUtils::HashString("all"); - static const int high_HASH = HashingUtils::HashString("high"); + static constexpr uint32_t none_HASH = ConstExprHashingUtils::HashString("none"); + static constexpr uint32_t all_HASH = ConstExprHashingUtils::HashString("all"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); NotificationSeverityLevel GetNotificationSeverityLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == none_HASH) { return NotificationSeverityLevel::none; diff --git a/generated/src/aws-cpp-sdk-support/source/SupportErrors.cpp b/generated/src/aws-cpp-sdk-support/source/SupportErrors.cpp index cf911bf5f08..2ffc4fbf5e1 100644 --- a/generated/src/aws-cpp-sdk-support/source/SupportErrors.cpp +++ b/generated/src/aws-cpp-sdk-support/source/SupportErrors.cpp @@ -18,19 +18,19 @@ namespace Support namespace SupportErrorMapper { -static const int CASE_ID_NOT_FOUND_HASH = HashingUtils::HashString("CaseIdNotFound"); -static const int CASE_CREATION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CaseCreationLimitExceeded"); -static const int ATTACHMENT_SET_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AttachmentSetSizeLimitExceeded"); -static const int ATTACHMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AttachmentLimitExceeded"); -static const int ATTACHMENT_ID_NOT_FOUND_HASH = HashingUtils::HashString("AttachmentIdNotFound"); -static const int ATTACHMENT_SET_ID_NOT_FOUND_HASH = HashingUtils::HashString("AttachmentSetIdNotFound"); -static const int ATTACHMENT_SET_EXPIRED_HASH = HashingUtils::HashString("AttachmentSetExpired"); -static const int DESCRIBE_ATTACHMENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DescribeAttachmentLimitExceeded"); +static constexpr uint32_t CASE_ID_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("CaseIdNotFound"); +static constexpr uint32_t CASE_CREATION_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CaseCreationLimitExceeded"); +static constexpr uint32_t ATTACHMENT_SET_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AttachmentSetSizeLimitExceeded"); +static constexpr uint32_t ATTACHMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("AttachmentLimitExceeded"); +static constexpr uint32_t ATTACHMENT_ID_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AttachmentIdNotFound"); +static constexpr uint32_t ATTACHMENT_SET_ID_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("AttachmentSetIdNotFound"); +static constexpr uint32_t ATTACHMENT_SET_EXPIRED_HASH = ConstExprHashingUtils::HashString("AttachmentSetExpired"); +static constexpr uint32_t DESCRIBE_ATTACHMENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("DescribeAttachmentLimitExceeded"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CASE_ID_NOT_FOUND_HASH) { diff --git a/generated/src/aws-cpp-sdk-swf/source/SWFErrors.cpp b/generated/src/aws-cpp-sdk-swf/source/SWFErrors.cpp index 3498d76a42a..9d43dba06ca 100644 --- a/generated/src/aws-cpp-sdk-swf/source/SWFErrors.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/SWFErrors.cpp @@ -18,21 +18,21 @@ namespace SWF namespace SWFErrorMapper { -static const int LIMIT_EXCEEDED_FAULT_HASH = HashingUtils::HashString("LimitExceededFault"); -static const int OPERATION_NOT_PERMITTED_FAULT_HASH = HashingUtils::HashString("OperationNotPermittedFault"); -static const int UNKNOWN_RESOURCE_FAULT_HASH = HashingUtils::HashString("UnknownResourceFault"); -static const int TYPE_DEPRECATED_FAULT_HASH = HashingUtils::HashString("TypeDeprecatedFault"); -static const int DEFAULT_UNDEFINED_FAULT_HASH = HashingUtils::HashString("DefaultUndefinedFault"); -static const int DOMAIN_DEPRECATED_FAULT_HASH = HashingUtils::HashString("DomainDeprecatedFault"); -static const int TYPE_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("TypeAlreadyExistsFault"); -static const int TOO_MANY_TAGS_FAULT_HASH = HashingUtils::HashString("TooManyTagsFault"); -static const int DOMAIN_ALREADY_EXISTS_FAULT_HASH = HashingUtils::HashString("DomainAlreadyExistsFault"); -static const int WORKFLOW_EXECUTION_ALREADY_STARTED_FAULT_HASH = HashingUtils::HashString("WorkflowExecutionAlreadyStartedFault"); +static constexpr uint32_t LIMIT_EXCEEDED_FAULT_HASH = ConstExprHashingUtils::HashString("LimitExceededFault"); +static constexpr uint32_t OPERATION_NOT_PERMITTED_FAULT_HASH = ConstExprHashingUtils::HashString("OperationNotPermittedFault"); +static constexpr uint32_t UNKNOWN_RESOURCE_FAULT_HASH = ConstExprHashingUtils::HashString("UnknownResourceFault"); +static constexpr uint32_t TYPE_DEPRECATED_FAULT_HASH = ConstExprHashingUtils::HashString("TypeDeprecatedFault"); +static constexpr uint32_t DEFAULT_UNDEFINED_FAULT_HASH = ConstExprHashingUtils::HashString("DefaultUndefinedFault"); +static constexpr uint32_t DOMAIN_DEPRECATED_FAULT_HASH = ConstExprHashingUtils::HashString("DomainDeprecatedFault"); +static constexpr uint32_t TYPE_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("TypeAlreadyExistsFault"); +static constexpr uint32_t TOO_MANY_TAGS_FAULT_HASH = ConstExprHashingUtils::HashString("TooManyTagsFault"); +static constexpr uint32_t DOMAIN_ALREADY_EXISTS_FAULT_HASH = ConstExprHashingUtils::HashString("DomainAlreadyExistsFault"); +static constexpr uint32_t WORKFLOW_EXECUTION_ALREADY_STARTED_FAULT_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionAlreadyStartedFault"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_FAULT_HASH) { diff --git a/generated/src/aws-cpp-sdk-swf/source/model/ActivityTaskTimeoutType.cpp b/generated/src/aws-cpp-sdk-swf/source/model/ActivityTaskTimeoutType.cpp index 43aabe8e896..b19000a0074 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/ActivityTaskTimeoutType.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/ActivityTaskTimeoutType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ActivityTaskTimeoutTypeMapper { - static const int START_TO_CLOSE_HASH = HashingUtils::HashString("START_TO_CLOSE"); - static const int SCHEDULE_TO_START_HASH = HashingUtils::HashString("SCHEDULE_TO_START"); - static const int SCHEDULE_TO_CLOSE_HASH = HashingUtils::HashString("SCHEDULE_TO_CLOSE"); - static const int HEARTBEAT_HASH = HashingUtils::HashString("HEARTBEAT"); + static constexpr uint32_t START_TO_CLOSE_HASH = ConstExprHashingUtils::HashString("START_TO_CLOSE"); + static constexpr uint32_t SCHEDULE_TO_START_HASH = ConstExprHashingUtils::HashString("SCHEDULE_TO_START"); + static constexpr uint32_t SCHEDULE_TO_CLOSE_HASH = ConstExprHashingUtils::HashString("SCHEDULE_TO_CLOSE"); + static constexpr uint32_t HEARTBEAT_HASH = ConstExprHashingUtils::HashString("HEARTBEAT"); ActivityTaskTimeoutType GetActivityTaskTimeoutTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_TO_CLOSE_HASH) { return ActivityTaskTimeoutType::START_TO_CLOSE; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/CancelTimerFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/CancelTimerFailedCause.cpp index dc37332046e..58ef49e13c8 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/CancelTimerFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/CancelTimerFailedCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CancelTimerFailedCauseMapper { - static const int TIMER_ID_UNKNOWN_HASH = HashingUtils::HashString("TIMER_ID_UNKNOWN"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t TIMER_ID_UNKNOWN_HASH = ConstExprHashingUtils::HashString("TIMER_ID_UNKNOWN"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); CancelTimerFailedCause GetCancelTimerFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TIMER_ID_UNKNOWN_HASH) { return CancelTimerFailedCause::TIMER_ID_UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/CancelWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/CancelWorkflowExecutionFailedCause.cpp index efc1d21892a..2bf2bfda49e 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/CancelWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/CancelWorkflowExecutionFailedCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CancelWorkflowExecutionFailedCauseMapper { - static const int UNHANDLED_DECISION_HASH = HashingUtils::HashString("UNHANDLED_DECISION"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t UNHANDLED_DECISION_HASH = ConstExprHashingUtils::HashString("UNHANDLED_DECISION"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); CancelWorkflowExecutionFailedCause GetCancelWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNHANDLED_DECISION_HASH) { return CancelWorkflowExecutionFailedCause::UNHANDLED_DECISION; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/ChildPolicy.cpp b/generated/src/aws-cpp-sdk-swf/source/model/ChildPolicy.cpp index efe4d1d426e..84c90f6f5ee 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/ChildPolicy.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/ChildPolicy.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChildPolicyMapper { - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); - static const int REQUEST_CANCEL_HASH = HashingUtils::HashString("REQUEST_CANCEL"); - static const int ABANDON_HASH = HashingUtils::HashString("ABANDON"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); + static constexpr uint32_t REQUEST_CANCEL_HASH = ConstExprHashingUtils::HashString("REQUEST_CANCEL"); + static constexpr uint32_t ABANDON_HASH = ConstExprHashingUtils::HashString("ABANDON"); ChildPolicy GetChildPolicyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TERMINATE_HASH) { return ChildPolicy::TERMINATE; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/CloseStatus.cpp b/generated/src/aws-cpp-sdk-swf/source/model/CloseStatus.cpp index 587949f6ef3..4405867ca12 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/CloseStatus.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/CloseStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace CloseStatusMapper { - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int CONTINUED_AS_NEW_HASH = HashingUtils::HashString("CONTINUED_AS_NEW"); - static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELED_HASH = ConstExprHashingUtils::HashString("CANCELED"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t CONTINUED_AS_NEW_HASH = ConstExprHashingUtils::HashString("CONTINUED_AS_NEW"); + static constexpr uint32_t TIMED_OUT_HASH = ConstExprHashingUtils::HashString("TIMED_OUT"); CloseStatus GetCloseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMPLETED_HASH) { return CloseStatus::COMPLETED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionFailedCause.cpp index 9c3ad271b70..ccd93920937 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionFailedCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CompleteWorkflowExecutionFailedCauseMapper { - static const int UNHANDLED_DECISION_HASH = HashingUtils::HashString("UNHANDLED_DECISION"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t UNHANDLED_DECISION_HASH = ConstExprHashingUtils::HashString("UNHANDLED_DECISION"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); CompleteWorkflowExecutionFailedCause GetCompleteWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNHANDLED_DECISION_HASH) { return CompleteWorkflowExecutionFailedCause::UNHANDLED_DECISION; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/ContinueAsNewWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/ContinueAsNewWorkflowExecutionFailedCause.cpp index 5a17016b2c4..08e3508c86d 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/ContinueAsNewWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/ContinueAsNewWorkflowExecutionFailedCause.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ContinueAsNewWorkflowExecutionFailedCauseMapper { - static const int UNHANDLED_DECISION_HASH = HashingUtils::HashString("UNHANDLED_DECISION"); - static const int WORKFLOW_TYPE_DEPRECATED_HASH = HashingUtils::HashString("WORKFLOW_TYPE_DEPRECATED"); - static const int WORKFLOW_TYPE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("WORKFLOW_TYPE_DOES_NOT_EXIST"); - static const int DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"); - static const int DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"); - static const int DEFAULT_TASK_LIST_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_TASK_LIST_UNDEFINED"); - static const int DEFAULT_CHILD_POLICY_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_CHILD_POLICY_UNDEFINED"); - static const int CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED_HASH = HashingUtils::HashString("CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t UNHANDLED_DECISION_HASH = ConstExprHashingUtils::HashString("UNHANDLED_DECISION"); + static constexpr uint32_t WORKFLOW_TYPE_DEPRECATED_HASH = ConstExprHashingUtils::HashString("WORKFLOW_TYPE_DEPRECATED"); + static constexpr uint32_t WORKFLOW_TYPE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("WORKFLOW_TYPE_DOES_NOT_EXIST"); + static constexpr uint32_t DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_TASK_LIST_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_TASK_LIST_UNDEFINED"); + static constexpr uint32_t DEFAULT_CHILD_POLICY_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_CHILD_POLICY_UNDEFINED"); + static constexpr uint32_t CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); ContinueAsNewWorkflowExecutionFailedCause GetContinueAsNewWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNHANDLED_DECISION_HASH) { return ContinueAsNewWorkflowExecutionFailedCause::UNHANDLED_DECISION; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/DecisionTaskTimeoutType.cpp b/generated/src/aws-cpp-sdk-swf/source/model/DecisionTaskTimeoutType.cpp index dd19affa845..435dac929ab 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/DecisionTaskTimeoutType.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/DecisionTaskTimeoutType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DecisionTaskTimeoutTypeMapper { - static const int START_TO_CLOSE_HASH = HashingUtils::HashString("START_TO_CLOSE"); - static const int SCHEDULE_TO_START_HASH = HashingUtils::HashString("SCHEDULE_TO_START"); + static constexpr uint32_t START_TO_CLOSE_HASH = ConstExprHashingUtils::HashString("START_TO_CLOSE"); + static constexpr uint32_t SCHEDULE_TO_START_HASH = ConstExprHashingUtils::HashString("SCHEDULE_TO_START"); DecisionTaskTimeoutType GetDecisionTaskTimeoutTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_TO_CLOSE_HASH) { return DecisionTaskTimeoutType::START_TO_CLOSE; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/DecisionType.cpp b/generated/src/aws-cpp-sdk-swf/source/model/DecisionType.cpp index d84fc29bf19..999c906ea0f 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/DecisionType.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/DecisionType.cpp @@ -20,24 +20,24 @@ namespace Aws namespace DecisionTypeMapper { - static const int ScheduleActivityTask_HASH = HashingUtils::HashString("ScheduleActivityTask"); - static const int RequestCancelActivityTask_HASH = HashingUtils::HashString("RequestCancelActivityTask"); - static const int CompleteWorkflowExecution_HASH = HashingUtils::HashString("CompleteWorkflowExecution"); - static const int FailWorkflowExecution_HASH = HashingUtils::HashString("FailWorkflowExecution"); - static const int CancelWorkflowExecution_HASH = HashingUtils::HashString("CancelWorkflowExecution"); - static const int ContinueAsNewWorkflowExecution_HASH = HashingUtils::HashString("ContinueAsNewWorkflowExecution"); - static const int RecordMarker_HASH = HashingUtils::HashString("RecordMarker"); - static const int StartTimer_HASH = HashingUtils::HashString("StartTimer"); - static const int CancelTimer_HASH = HashingUtils::HashString("CancelTimer"); - static const int SignalExternalWorkflowExecution_HASH = HashingUtils::HashString("SignalExternalWorkflowExecution"); - static const int RequestCancelExternalWorkflowExecution_HASH = HashingUtils::HashString("RequestCancelExternalWorkflowExecution"); - static const int StartChildWorkflowExecution_HASH = HashingUtils::HashString("StartChildWorkflowExecution"); - static const int ScheduleLambdaFunction_HASH = HashingUtils::HashString("ScheduleLambdaFunction"); + static constexpr uint32_t ScheduleActivityTask_HASH = ConstExprHashingUtils::HashString("ScheduleActivityTask"); + static constexpr uint32_t RequestCancelActivityTask_HASH = ConstExprHashingUtils::HashString("RequestCancelActivityTask"); + static constexpr uint32_t CompleteWorkflowExecution_HASH = ConstExprHashingUtils::HashString("CompleteWorkflowExecution"); + static constexpr uint32_t FailWorkflowExecution_HASH = ConstExprHashingUtils::HashString("FailWorkflowExecution"); + static constexpr uint32_t CancelWorkflowExecution_HASH = ConstExprHashingUtils::HashString("CancelWorkflowExecution"); + static constexpr uint32_t ContinueAsNewWorkflowExecution_HASH = ConstExprHashingUtils::HashString("ContinueAsNewWorkflowExecution"); + static constexpr uint32_t RecordMarker_HASH = ConstExprHashingUtils::HashString("RecordMarker"); + static constexpr uint32_t StartTimer_HASH = ConstExprHashingUtils::HashString("StartTimer"); + static constexpr uint32_t CancelTimer_HASH = ConstExprHashingUtils::HashString("CancelTimer"); + static constexpr uint32_t SignalExternalWorkflowExecution_HASH = ConstExprHashingUtils::HashString("SignalExternalWorkflowExecution"); + static constexpr uint32_t RequestCancelExternalWorkflowExecution_HASH = ConstExprHashingUtils::HashString("RequestCancelExternalWorkflowExecution"); + static constexpr uint32_t StartChildWorkflowExecution_HASH = ConstExprHashingUtils::HashString("StartChildWorkflowExecution"); + static constexpr uint32_t ScheduleLambdaFunction_HASH = ConstExprHashingUtils::HashString("ScheduleLambdaFunction"); DecisionType GetDecisionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ScheduleActivityTask_HASH) { return DecisionType::ScheduleActivityTask; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-swf/source/model/EventType.cpp index 31944f6359a..e702b8eb80b 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/EventType.cpp @@ -20,65 +20,65 @@ namespace Aws namespace EventTypeMapper { - static const int WorkflowExecutionStarted_HASH = HashingUtils::HashString("WorkflowExecutionStarted"); - static const int WorkflowExecutionCancelRequested_HASH = HashingUtils::HashString("WorkflowExecutionCancelRequested"); - static const int WorkflowExecutionCompleted_HASH = HashingUtils::HashString("WorkflowExecutionCompleted"); - static const int CompleteWorkflowExecutionFailed_HASH = HashingUtils::HashString("CompleteWorkflowExecutionFailed"); - static const int WorkflowExecutionFailed_HASH = HashingUtils::HashString("WorkflowExecutionFailed"); - static const int FailWorkflowExecutionFailed_HASH = HashingUtils::HashString("FailWorkflowExecutionFailed"); - static const int WorkflowExecutionTimedOut_HASH = HashingUtils::HashString("WorkflowExecutionTimedOut"); - static const int WorkflowExecutionCanceled_HASH = HashingUtils::HashString("WorkflowExecutionCanceled"); - static const int CancelWorkflowExecutionFailed_HASH = HashingUtils::HashString("CancelWorkflowExecutionFailed"); - static const int WorkflowExecutionContinuedAsNew_HASH = HashingUtils::HashString("WorkflowExecutionContinuedAsNew"); - static const int ContinueAsNewWorkflowExecutionFailed_HASH = HashingUtils::HashString("ContinueAsNewWorkflowExecutionFailed"); - static const int WorkflowExecutionTerminated_HASH = HashingUtils::HashString("WorkflowExecutionTerminated"); - static const int DecisionTaskScheduled_HASH = HashingUtils::HashString("DecisionTaskScheduled"); - static const int DecisionTaskStarted_HASH = HashingUtils::HashString("DecisionTaskStarted"); - static const int DecisionTaskCompleted_HASH = HashingUtils::HashString("DecisionTaskCompleted"); - static const int DecisionTaskTimedOut_HASH = HashingUtils::HashString("DecisionTaskTimedOut"); - static const int ActivityTaskScheduled_HASH = HashingUtils::HashString("ActivityTaskScheduled"); - static const int ScheduleActivityTaskFailed_HASH = HashingUtils::HashString("ScheduleActivityTaskFailed"); - static const int ActivityTaskStarted_HASH = HashingUtils::HashString("ActivityTaskStarted"); - static const int ActivityTaskCompleted_HASH = HashingUtils::HashString("ActivityTaskCompleted"); - static const int ActivityTaskFailed_HASH = HashingUtils::HashString("ActivityTaskFailed"); - static const int ActivityTaskTimedOut_HASH = HashingUtils::HashString("ActivityTaskTimedOut"); - static const int ActivityTaskCanceled_HASH = HashingUtils::HashString("ActivityTaskCanceled"); - static const int ActivityTaskCancelRequested_HASH = HashingUtils::HashString("ActivityTaskCancelRequested"); - static const int RequestCancelActivityTaskFailed_HASH = HashingUtils::HashString("RequestCancelActivityTaskFailed"); - static const int WorkflowExecutionSignaled_HASH = HashingUtils::HashString("WorkflowExecutionSignaled"); - static const int MarkerRecorded_HASH = HashingUtils::HashString("MarkerRecorded"); - static const int RecordMarkerFailed_HASH = HashingUtils::HashString("RecordMarkerFailed"); - static const int TimerStarted_HASH = HashingUtils::HashString("TimerStarted"); - static const int StartTimerFailed_HASH = HashingUtils::HashString("StartTimerFailed"); - static const int TimerFired_HASH = HashingUtils::HashString("TimerFired"); - static const int TimerCanceled_HASH = HashingUtils::HashString("TimerCanceled"); - static const int CancelTimerFailed_HASH = HashingUtils::HashString("CancelTimerFailed"); - static const int StartChildWorkflowExecutionInitiated_HASH = HashingUtils::HashString("StartChildWorkflowExecutionInitiated"); - static const int StartChildWorkflowExecutionFailed_HASH = HashingUtils::HashString("StartChildWorkflowExecutionFailed"); - static const int ChildWorkflowExecutionStarted_HASH = HashingUtils::HashString("ChildWorkflowExecutionStarted"); - static const int ChildWorkflowExecutionCompleted_HASH = HashingUtils::HashString("ChildWorkflowExecutionCompleted"); - static const int ChildWorkflowExecutionFailed_HASH = HashingUtils::HashString("ChildWorkflowExecutionFailed"); - static const int ChildWorkflowExecutionTimedOut_HASH = HashingUtils::HashString("ChildWorkflowExecutionTimedOut"); - static const int ChildWorkflowExecutionCanceled_HASH = HashingUtils::HashString("ChildWorkflowExecutionCanceled"); - static const int ChildWorkflowExecutionTerminated_HASH = HashingUtils::HashString("ChildWorkflowExecutionTerminated"); - static const int SignalExternalWorkflowExecutionInitiated_HASH = HashingUtils::HashString("SignalExternalWorkflowExecutionInitiated"); - static const int SignalExternalWorkflowExecutionFailed_HASH = HashingUtils::HashString("SignalExternalWorkflowExecutionFailed"); - static const int ExternalWorkflowExecutionSignaled_HASH = HashingUtils::HashString("ExternalWorkflowExecutionSignaled"); - static const int RequestCancelExternalWorkflowExecutionInitiated_HASH = HashingUtils::HashString("RequestCancelExternalWorkflowExecutionInitiated"); - static const int RequestCancelExternalWorkflowExecutionFailed_HASH = HashingUtils::HashString("RequestCancelExternalWorkflowExecutionFailed"); - static const int ExternalWorkflowExecutionCancelRequested_HASH = HashingUtils::HashString("ExternalWorkflowExecutionCancelRequested"); - static const int LambdaFunctionScheduled_HASH = HashingUtils::HashString("LambdaFunctionScheduled"); - static const int LambdaFunctionStarted_HASH = HashingUtils::HashString("LambdaFunctionStarted"); - static const int LambdaFunctionCompleted_HASH = HashingUtils::HashString("LambdaFunctionCompleted"); - static const int LambdaFunctionFailed_HASH = HashingUtils::HashString("LambdaFunctionFailed"); - static const int LambdaFunctionTimedOut_HASH = HashingUtils::HashString("LambdaFunctionTimedOut"); - static const int ScheduleLambdaFunctionFailed_HASH = HashingUtils::HashString("ScheduleLambdaFunctionFailed"); - static const int StartLambdaFunctionFailed_HASH = HashingUtils::HashString("StartLambdaFunctionFailed"); + static constexpr uint32_t WorkflowExecutionStarted_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionStarted"); + static constexpr uint32_t WorkflowExecutionCancelRequested_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionCancelRequested"); + static constexpr uint32_t WorkflowExecutionCompleted_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionCompleted"); + static constexpr uint32_t CompleteWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("CompleteWorkflowExecutionFailed"); + static constexpr uint32_t WorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionFailed"); + static constexpr uint32_t FailWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("FailWorkflowExecutionFailed"); + static constexpr uint32_t WorkflowExecutionTimedOut_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionTimedOut"); + static constexpr uint32_t WorkflowExecutionCanceled_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionCanceled"); + static constexpr uint32_t CancelWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("CancelWorkflowExecutionFailed"); + static constexpr uint32_t WorkflowExecutionContinuedAsNew_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionContinuedAsNew"); + static constexpr uint32_t ContinueAsNewWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("ContinueAsNewWorkflowExecutionFailed"); + static constexpr uint32_t WorkflowExecutionTerminated_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionTerminated"); + static constexpr uint32_t DecisionTaskScheduled_HASH = ConstExprHashingUtils::HashString("DecisionTaskScheduled"); + static constexpr uint32_t DecisionTaskStarted_HASH = ConstExprHashingUtils::HashString("DecisionTaskStarted"); + static constexpr uint32_t DecisionTaskCompleted_HASH = ConstExprHashingUtils::HashString("DecisionTaskCompleted"); + static constexpr uint32_t DecisionTaskTimedOut_HASH = ConstExprHashingUtils::HashString("DecisionTaskTimedOut"); + static constexpr uint32_t ActivityTaskScheduled_HASH = ConstExprHashingUtils::HashString("ActivityTaskScheduled"); + static constexpr uint32_t ScheduleActivityTaskFailed_HASH = ConstExprHashingUtils::HashString("ScheduleActivityTaskFailed"); + static constexpr uint32_t ActivityTaskStarted_HASH = ConstExprHashingUtils::HashString("ActivityTaskStarted"); + static constexpr uint32_t ActivityTaskCompleted_HASH = ConstExprHashingUtils::HashString("ActivityTaskCompleted"); + static constexpr uint32_t ActivityTaskFailed_HASH = ConstExprHashingUtils::HashString("ActivityTaskFailed"); + static constexpr uint32_t ActivityTaskTimedOut_HASH = ConstExprHashingUtils::HashString("ActivityTaskTimedOut"); + static constexpr uint32_t ActivityTaskCanceled_HASH = ConstExprHashingUtils::HashString("ActivityTaskCanceled"); + static constexpr uint32_t ActivityTaskCancelRequested_HASH = ConstExprHashingUtils::HashString("ActivityTaskCancelRequested"); + static constexpr uint32_t RequestCancelActivityTaskFailed_HASH = ConstExprHashingUtils::HashString("RequestCancelActivityTaskFailed"); + static constexpr uint32_t WorkflowExecutionSignaled_HASH = ConstExprHashingUtils::HashString("WorkflowExecutionSignaled"); + static constexpr uint32_t MarkerRecorded_HASH = ConstExprHashingUtils::HashString("MarkerRecorded"); + static constexpr uint32_t RecordMarkerFailed_HASH = ConstExprHashingUtils::HashString("RecordMarkerFailed"); + static constexpr uint32_t TimerStarted_HASH = ConstExprHashingUtils::HashString("TimerStarted"); + static constexpr uint32_t StartTimerFailed_HASH = ConstExprHashingUtils::HashString("StartTimerFailed"); + static constexpr uint32_t TimerFired_HASH = ConstExprHashingUtils::HashString("TimerFired"); + static constexpr uint32_t TimerCanceled_HASH = ConstExprHashingUtils::HashString("TimerCanceled"); + static constexpr uint32_t CancelTimerFailed_HASH = ConstExprHashingUtils::HashString("CancelTimerFailed"); + static constexpr uint32_t StartChildWorkflowExecutionInitiated_HASH = ConstExprHashingUtils::HashString("StartChildWorkflowExecutionInitiated"); + static constexpr uint32_t StartChildWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("StartChildWorkflowExecutionFailed"); + static constexpr uint32_t ChildWorkflowExecutionStarted_HASH = ConstExprHashingUtils::HashString("ChildWorkflowExecutionStarted"); + static constexpr uint32_t ChildWorkflowExecutionCompleted_HASH = ConstExprHashingUtils::HashString("ChildWorkflowExecutionCompleted"); + static constexpr uint32_t ChildWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("ChildWorkflowExecutionFailed"); + static constexpr uint32_t ChildWorkflowExecutionTimedOut_HASH = ConstExprHashingUtils::HashString("ChildWorkflowExecutionTimedOut"); + static constexpr uint32_t ChildWorkflowExecutionCanceled_HASH = ConstExprHashingUtils::HashString("ChildWorkflowExecutionCanceled"); + static constexpr uint32_t ChildWorkflowExecutionTerminated_HASH = ConstExprHashingUtils::HashString("ChildWorkflowExecutionTerminated"); + static constexpr uint32_t SignalExternalWorkflowExecutionInitiated_HASH = ConstExprHashingUtils::HashString("SignalExternalWorkflowExecutionInitiated"); + static constexpr uint32_t SignalExternalWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("SignalExternalWorkflowExecutionFailed"); + static constexpr uint32_t ExternalWorkflowExecutionSignaled_HASH = ConstExprHashingUtils::HashString("ExternalWorkflowExecutionSignaled"); + static constexpr uint32_t RequestCancelExternalWorkflowExecutionInitiated_HASH = ConstExprHashingUtils::HashString("RequestCancelExternalWorkflowExecutionInitiated"); + static constexpr uint32_t RequestCancelExternalWorkflowExecutionFailed_HASH = ConstExprHashingUtils::HashString("RequestCancelExternalWorkflowExecutionFailed"); + static constexpr uint32_t ExternalWorkflowExecutionCancelRequested_HASH = ConstExprHashingUtils::HashString("ExternalWorkflowExecutionCancelRequested"); + static constexpr uint32_t LambdaFunctionScheduled_HASH = ConstExprHashingUtils::HashString("LambdaFunctionScheduled"); + static constexpr uint32_t LambdaFunctionStarted_HASH = ConstExprHashingUtils::HashString("LambdaFunctionStarted"); + static constexpr uint32_t LambdaFunctionCompleted_HASH = ConstExprHashingUtils::HashString("LambdaFunctionCompleted"); + static constexpr uint32_t LambdaFunctionFailed_HASH = ConstExprHashingUtils::HashString("LambdaFunctionFailed"); + static constexpr uint32_t LambdaFunctionTimedOut_HASH = ConstExprHashingUtils::HashString("LambdaFunctionTimedOut"); + static constexpr uint32_t ScheduleLambdaFunctionFailed_HASH = ConstExprHashingUtils::HashString("ScheduleLambdaFunctionFailed"); + static constexpr uint32_t StartLambdaFunctionFailed_HASH = ConstExprHashingUtils::HashString("StartLambdaFunctionFailed"); EventType GetEventTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WorkflowExecutionStarted_HASH) { return EventType::WorkflowExecutionStarted; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-swf/source/model/ExecutionStatus.cpp index 3c73bdeb0c7..b5e60709728 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/ExecutionStatus.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/ExecutionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExecutionStatusMapper { - static const int OPEN_HASH = HashingUtils::HashString("OPEN"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t OPEN_HASH = ConstExprHashingUtils::HashString("OPEN"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); ExecutionStatus GetExecutionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPEN_HASH) { return ExecutionStatus::OPEN; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/FailWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/FailWorkflowExecutionFailedCause.cpp index dd8d0dd7a28..bdd74f420d0 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/FailWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/FailWorkflowExecutionFailedCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FailWorkflowExecutionFailedCauseMapper { - static const int UNHANDLED_DECISION_HASH = HashingUtils::HashString("UNHANDLED_DECISION"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t UNHANDLED_DECISION_HASH = ConstExprHashingUtils::HashString("UNHANDLED_DECISION"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); FailWorkflowExecutionFailedCause GetFailWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNHANDLED_DECISION_HASH) { return FailWorkflowExecutionFailedCause::UNHANDLED_DECISION; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/LambdaFunctionTimeoutType.cpp b/generated/src/aws-cpp-sdk-swf/source/model/LambdaFunctionTimeoutType.cpp index c337e1a8488..8ab186c531d 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/LambdaFunctionTimeoutType.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/LambdaFunctionTimeoutType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace LambdaFunctionTimeoutTypeMapper { - static const int START_TO_CLOSE_HASH = HashingUtils::HashString("START_TO_CLOSE"); + static constexpr uint32_t START_TO_CLOSE_HASH = ConstExprHashingUtils::HashString("START_TO_CLOSE"); LambdaFunctionTimeoutType GetLambdaFunctionTimeoutTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_TO_CLOSE_HASH) { return LambdaFunctionTimeoutType::START_TO_CLOSE; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/RecordMarkerFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/RecordMarkerFailedCause.cpp index 991715783e2..2550399ddbf 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/RecordMarkerFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/RecordMarkerFailedCause.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecordMarkerFailedCauseMapper { - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); RecordMarkerFailedCause GetRecordMarkerFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OPERATION_NOT_PERMITTED_HASH) { return RecordMarkerFailedCause::OPERATION_NOT_PERMITTED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/RegistrationStatus.cpp b/generated/src/aws-cpp-sdk-swf/source/model/RegistrationStatus.cpp index 0e7009a11ba..a861aa5f5fd 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/RegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/RegistrationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RegistrationStatusMapper { - static const int REGISTERED_HASH = HashingUtils::HashString("REGISTERED"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t REGISTERED_HASH = ConstExprHashingUtils::HashString("REGISTERED"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); RegistrationStatus GetRegistrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTERED_HASH) { return RegistrationStatus::REGISTERED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelActivityTaskFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelActivityTaskFailedCause.cpp index c67c29eccb1..d76c05e6a4f 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelActivityTaskFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelActivityTaskFailedCause.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RequestCancelActivityTaskFailedCauseMapper { - static const int ACTIVITY_ID_UNKNOWN_HASH = HashingUtils::HashString("ACTIVITY_ID_UNKNOWN"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t ACTIVITY_ID_UNKNOWN_HASH = ConstExprHashingUtils::HashString("ACTIVITY_ID_UNKNOWN"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); RequestCancelActivityTaskFailedCause GetRequestCancelActivityTaskFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVITY_ID_UNKNOWN_HASH) { return RequestCancelActivityTaskFailedCause::ACTIVITY_ID_UNKNOWN; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelExternalWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelExternalWorkflowExecutionFailedCause.cpp index e451a31b381..68e8bd721b6 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelExternalWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/RequestCancelExternalWorkflowExecutionFailedCause.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RequestCancelExternalWorkflowExecutionFailedCauseMapper { - static const int UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION_HASH = HashingUtils::HashString("UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"); - static const int REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED_HASH = HashingUtils::HashString("REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"); + static constexpr uint32_t REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); RequestCancelExternalWorkflowExecutionFailedCause GetRequestCancelExternalWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION_HASH) { return RequestCancelExternalWorkflowExecutionFailedCause::UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/ScheduleActivityTaskFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/ScheduleActivityTaskFailedCause.cpp index aafad3c909f..6649688b560 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/ScheduleActivityTaskFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/ScheduleActivityTaskFailedCause.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ScheduleActivityTaskFailedCauseMapper { - static const int ACTIVITY_TYPE_DEPRECATED_HASH = HashingUtils::HashString("ACTIVITY_TYPE_DEPRECATED"); - static const int ACTIVITY_TYPE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("ACTIVITY_TYPE_DOES_NOT_EXIST"); - static const int ACTIVITY_ID_ALREADY_IN_USE_HASH = HashingUtils::HashString("ACTIVITY_ID_ALREADY_IN_USE"); - static const int OPEN_ACTIVITIES_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OPEN_ACTIVITIES_LIMIT_EXCEEDED"); - static const int ACTIVITY_CREATION_RATE_EXCEEDED_HASH = HashingUtils::HashString("ACTIVITY_CREATION_RATE_EXCEEDED"); - static const int DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED"); - static const int DEFAULT_TASK_LIST_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_TASK_LIST_UNDEFINED"); - static const int DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED"); - static const int DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED"); - static const int DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t ACTIVITY_TYPE_DEPRECATED_HASH = ConstExprHashingUtils::HashString("ACTIVITY_TYPE_DEPRECATED"); + static constexpr uint32_t ACTIVITY_TYPE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("ACTIVITY_TYPE_DOES_NOT_EXIST"); + static constexpr uint32_t ACTIVITY_ID_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("ACTIVITY_ID_ALREADY_IN_USE"); + static constexpr uint32_t OPEN_ACTIVITIES_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OPEN_ACTIVITIES_LIMIT_EXCEEDED"); + static constexpr uint32_t ACTIVITY_CREATION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ACTIVITY_CREATION_RATE_EXCEEDED"); + static constexpr uint32_t DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_TASK_LIST_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_TASK_LIST_UNDEFINED"); + static constexpr uint32_t DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); ScheduleActivityTaskFailedCause GetScheduleActivityTaskFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVITY_TYPE_DEPRECATED_HASH) { return ScheduleActivityTaskFailedCause::ACTIVITY_TYPE_DEPRECATED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/ScheduleLambdaFunctionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/ScheduleLambdaFunctionFailedCause.cpp index 20c27356d7e..a08578b0b2b 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/ScheduleLambdaFunctionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/ScheduleLambdaFunctionFailedCause.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ScheduleLambdaFunctionFailedCauseMapper { - static const int ID_ALREADY_IN_USE_HASH = HashingUtils::HashString("ID_ALREADY_IN_USE"); - static const int OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"); - static const int LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED_HASH = HashingUtils::HashString("LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED"); - static const int LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION_HASH = HashingUtils::HashString("LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"); + static constexpr uint32_t ID_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("ID_ALREADY_IN_USE"); + static constexpr uint32_t OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"); + static constexpr uint32_t LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED"); + static constexpr uint32_t LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION_HASH = ConstExprHashingUtils::HashString("LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"); ScheduleLambdaFunctionFailedCause GetScheduleLambdaFunctionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ID_ALREADY_IN_USE_HASH) { return ScheduleLambdaFunctionFailedCause::ID_ALREADY_IN_USE; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/SignalExternalWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/SignalExternalWorkflowExecutionFailedCause.cpp index 8f4942ff0a3..9c520bc6f19 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/SignalExternalWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/SignalExternalWorkflowExecutionFailedCause.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SignalExternalWorkflowExecutionFailedCauseMapper { - static const int UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION_HASH = HashingUtils::HashString("UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"); - static const int SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED_HASH = HashingUtils::HashString("SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"); + static constexpr uint32_t SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); SignalExternalWorkflowExecutionFailedCause GetSignalExternalWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION_HASH) { return SignalExternalWorkflowExecutionFailedCause::UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/StartChildWorkflowExecutionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/StartChildWorkflowExecutionFailedCause.cpp index f34740c08e0..4deb315421b 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/StartChildWorkflowExecutionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/StartChildWorkflowExecutionFailedCause.cpp @@ -20,22 +20,22 @@ namespace Aws namespace StartChildWorkflowExecutionFailedCauseMapper { - static const int WORKFLOW_TYPE_DOES_NOT_EXIST_HASH = HashingUtils::HashString("WORKFLOW_TYPE_DOES_NOT_EXIST"); - static const int WORKFLOW_TYPE_DEPRECATED_HASH = HashingUtils::HashString("WORKFLOW_TYPE_DEPRECATED"); - static const int OPEN_CHILDREN_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OPEN_CHILDREN_LIMIT_EXCEEDED"); - static const int OPEN_WORKFLOWS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OPEN_WORKFLOWS_LIMIT_EXCEEDED"); - static const int CHILD_CREATION_RATE_EXCEEDED_HASH = HashingUtils::HashString("CHILD_CREATION_RATE_EXCEEDED"); - static const int WORKFLOW_ALREADY_RUNNING_HASH = HashingUtils::HashString("WORKFLOW_ALREADY_RUNNING"); - static const int DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"); - static const int DEFAULT_TASK_LIST_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_TASK_LIST_UNDEFINED"); - static const int DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"); - static const int DEFAULT_CHILD_POLICY_UNDEFINED_HASH = HashingUtils::HashString("DEFAULT_CHILD_POLICY_UNDEFINED"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t WORKFLOW_TYPE_DOES_NOT_EXIST_HASH = ConstExprHashingUtils::HashString("WORKFLOW_TYPE_DOES_NOT_EXIST"); + static constexpr uint32_t WORKFLOW_TYPE_DEPRECATED_HASH = ConstExprHashingUtils::HashString("WORKFLOW_TYPE_DEPRECATED"); + static constexpr uint32_t OPEN_CHILDREN_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OPEN_CHILDREN_LIMIT_EXCEEDED"); + static constexpr uint32_t OPEN_WORKFLOWS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OPEN_WORKFLOWS_LIMIT_EXCEEDED"); + static constexpr uint32_t CHILD_CREATION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CHILD_CREATION_RATE_EXCEEDED"); + static constexpr uint32_t WORKFLOW_ALREADY_RUNNING_HASH = ConstExprHashingUtils::HashString("WORKFLOW_ALREADY_RUNNING"); + static constexpr uint32_t DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_TASK_LIST_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_TASK_LIST_UNDEFINED"); + static constexpr uint32_t DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"); + static constexpr uint32_t DEFAULT_CHILD_POLICY_UNDEFINED_HASH = ConstExprHashingUtils::HashString("DEFAULT_CHILD_POLICY_UNDEFINED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); StartChildWorkflowExecutionFailedCause GetStartChildWorkflowExecutionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORKFLOW_TYPE_DOES_NOT_EXIST_HASH) { return StartChildWorkflowExecutionFailedCause::WORKFLOW_TYPE_DOES_NOT_EXIST; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/StartLambdaFunctionFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/StartLambdaFunctionFailedCause.cpp index d9fb50f6053..ade521a6e7d 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/StartLambdaFunctionFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/StartLambdaFunctionFailedCause.cpp @@ -20,12 +20,12 @@ namespace Aws namespace StartLambdaFunctionFailedCauseMapper { - static const int ASSUME_ROLE_FAILED_HASH = HashingUtils::HashString("ASSUME_ROLE_FAILED"); + static constexpr uint32_t ASSUME_ROLE_FAILED_HASH = ConstExprHashingUtils::HashString("ASSUME_ROLE_FAILED"); StartLambdaFunctionFailedCause GetStartLambdaFunctionFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSUME_ROLE_FAILED_HASH) { return StartLambdaFunctionFailedCause::ASSUME_ROLE_FAILED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/StartTimerFailedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/StartTimerFailedCause.cpp index 567683c51ec..9f29b3d86d2 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/StartTimerFailedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/StartTimerFailedCause.cpp @@ -20,15 +20,15 @@ namespace Aws namespace StartTimerFailedCauseMapper { - static const int TIMER_ID_ALREADY_IN_USE_HASH = HashingUtils::HashString("TIMER_ID_ALREADY_IN_USE"); - static const int OPEN_TIMERS_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("OPEN_TIMERS_LIMIT_EXCEEDED"); - static const int TIMER_CREATION_RATE_EXCEEDED_HASH = HashingUtils::HashString("TIMER_CREATION_RATE_EXCEEDED"); - static const int OPERATION_NOT_PERMITTED_HASH = HashingUtils::HashString("OPERATION_NOT_PERMITTED"); + static constexpr uint32_t TIMER_ID_ALREADY_IN_USE_HASH = ConstExprHashingUtils::HashString("TIMER_ID_ALREADY_IN_USE"); + static constexpr uint32_t OPEN_TIMERS_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("OPEN_TIMERS_LIMIT_EXCEEDED"); + static constexpr uint32_t TIMER_CREATION_RATE_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TIMER_CREATION_RATE_EXCEEDED"); + static constexpr uint32_t OPERATION_NOT_PERMITTED_HASH = ConstExprHashingUtils::HashString("OPERATION_NOT_PERMITTED"); StartTimerFailedCause GetStartTimerFailedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TIMER_ID_ALREADY_IN_USE_HASH) { return StartTimerFailedCause::TIMER_ID_ALREADY_IN_USE; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionCancelRequestedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionCancelRequestedCause.cpp index 638b9bd530a..fb0ede75024 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionCancelRequestedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionCancelRequestedCause.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WorkflowExecutionCancelRequestedCauseMapper { - static const int CHILD_POLICY_APPLIED_HASH = HashingUtils::HashString("CHILD_POLICY_APPLIED"); + static constexpr uint32_t CHILD_POLICY_APPLIED_HASH = ConstExprHashingUtils::HashString("CHILD_POLICY_APPLIED"); WorkflowExecutionCancelRequestedCause GetWorkflowExecutionCancelRequestedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHILD_POLICY_APPLIED_HASH) { return WorkflowExecutionCancelRequestedCause::CHILD_POLICY_APPLIED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTerminatedCause.cpp b/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTerminatedCause.cpp index 2015596f9ee..8624f40daf2 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTerminatedCause.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTerminatedCause.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WorkflowExecutionTerminatedCauseMapper { - static const int CHILD_POLICY_APPLIED_HASH = HashingUtils::HashString("CHILD_POLICY_APPLIED"); - static const int EVENT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EVENT_LIMIT_EXCEEDED"); - static const int OPERATOR_INITIATED_HASH = HashingUtils::HashString("OPERATOR_INITIATED"); + static constexpr uint32_t CHILD_POLICY_APPLIED_HASH = ConstExprHashingUtils::HashString("CHILD_POLICY_APPLIED"); + static constexpr uint32_t EVENT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("EVENT_LIMIT_EXCEEDED"); + static constexpr uint32_t OPERATOR_INITIATED_HASH = ConstExprHashingUtils::HashString("OPERATOR_INITIATED"); WorkflowExecutionTerminatedCause GetWorkflowExecutionTerminatedCauseForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHILD_POLICY_APPLIED_HASH) { return WorkflowExecutionTerminatedCause::CHILD_POLICY_APPLIED; diff --git a/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTimeoutType.cpp b/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTimeoutType.cpp index 13bf535f695..f82cf26f83d 100644 --- a/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTimeoutType.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/model/WorkflowExecutionTimeoutType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WorkflowExecutionTimeoutTypeMapper { - static const int START_TO_CLOSE_HASH = HashingUtils::HashString("START_TO_CLOSE"); + static constexpr uint32_t START_TO_CLOSE_HASH = ConstExprHashingUtils::HashString("START_TO_CLOSE"); WorkflowExecutionTimeoutType GetWorkflowExecutionTimeoutTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == START_TO_CLOSE_HASH) { return WorkflowExecutionTimeoutType::START_TO_CLOSE; diff --git a/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsErrors.cpp b/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsErrors.cpp index 162d3b25f28..e59e35d7759 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsErrors.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsErrors.cpp @@ -18,18 +18,18 @@ namespace Synthetics namespace SyntheticsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); -static const int REQUEST_ENTITY_TOO_LARGE_HASH = HashingUtils::HashString("RequestEntityTooLargeException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); +static constexpr uint32_t REQUEST_ENTITY_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("RequestEntityTooLargeException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunState.cpp b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunState.cpp index c6c2ecdb1d6..453dd0c161b 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunState.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CanaryRunStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int PASSED_HASH = HashingUtils::HashString("PASSED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t PASSED_HASH = ConstExprHashingUtils::HashString("PASSED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); CanaryRunState GetCanaryRunStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return CanaryRunState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunStateReasonCode.cpp b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunStateReasonCode.cpp index a564a0d8332..2b1da8b6db3 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunStateReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryRunStateReasonCode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CanaryRunStateReasonCodeMapper { - static const int CANARY_FAILURE_HASH = HashingUtils::HashString("CANARY_FAILURE"); - static const int EXECUTION_FAILURE_HASH = HashingUtils::HashString("EXECUTION_FAILURE"); + static constexpr uint32_t CANARY_FAILURE_HASH = ConstExprHashingUtils::HashString("CANARY_FAILURE"); + static constexpr uint32_t EXECUTION_FAILURE_HASH = ConstExprHashingUtils::HashString("EXECUTION_FAILURE"); CanaryRunStateReasonCode GetCanaryRunStateReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CANARY_FAILURE_HASH) { return CanaryRunStateReasonCode::CANARY_FAILURE; diff --git a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryState.cpp b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryState.cpp index 4bb46e7fe9e..06624ac6906 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryState.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace CanaryStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); CanaryState GetCanaryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return CanaryState::CREATING; diff --git a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryStateReasonCode.cpp b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryStateReasonCode.cpp index 9f583de0742..d6780237e17 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryStateReasonCode.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/model/CanaryStateReasonCode.cpp @@ -20,23 +20,23 @@ namespace Aws namespace CanaryStateReasonCodeMapper { - static const int INVALID_PERMISSIONS_HASH = HashingUtils::HashString("INVALID_PERMISSIONS"); - static const int CREATE_PENDING_HASH = HashingUtils::HashString("CREATE_PENDING"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int UPDATE_PENDING_HASH = HashingUtils::HashString("UPDATE_PENDING"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int UPDATE_COMPLETE_HASH = HashingUtils::HashString("UPDATE_COMPLETE"); - static const int ROLLBACK_COMPLETE_HASH = HashingUtils::HashString("ROLLBACK_COMPLETE"); - static const int ROLLBACK_FAILED_HASH = HashingUtils::HashString("ROLLBACK_FAILED"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int SYNC_DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("SYNC_DELETE_IN_PROGRESS"); + static constexpr uint32_t INVALID_PERMISSIONS_HASH = ConstExprHashingUtils::HashString("INVALID_PERMISSIONS"); + static constexpr uint32_t CREATE_PENDING_HASH = ConstExprHashingUtils::HashString("CREATE_PENDING"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t UPDATE_PENDING_HASH = ConstExprHashingUtils::HashString("UPDATE_PENDING"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_COMPLETE_HASH = ConstExprHashingUtils::HashString("UPDATE_COMPLETE"); + static constexpr uint32_t ROLLBACK_COMPLETE_HASH = ConstExprHashingUtils::HashString("ROLLBACK_COMPLETE"); + static constexpr uint32_t ROLLBACK_FAILED_HASH = ConstExprHashingUtils::HashString("ROLLBACK_FAILED"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t SYNC_DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("SYNC_DELETE_IN_PROGRESS"); CanaryStateReasonCode GetCanaryStateReasonCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_PERMISSIONS_HASH) { return CanaryStateReasonCode::INVALID_PERMISSIONS; diff --git a/generated/src/aws-cpp-sdk-synthetics/source/model/EncryptionMode.cpp b/generated/src/aws-cpp-sdk-synthetics/source/model/EncryptionMode.cpp index c07a2af1d8a..1525f3c4912 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/model/EncryptionMode.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/model/EncryptionMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionModeMapper { - static const int SSE_S3_HASH = HashingUtils::HashString("SSE_S3"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE_KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE_S3"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE_KMS"); EncryptionMode GetEncryptionModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSE_S3_HASH) { return EncryptionMode::SSE_S3; diff --git a/generated/src/aws-cpp-sdk-textract/source/TextractErrors.cpp b/generated/src/aws-cpp-sdk-textract/source/TextractErrors.cpp index 4effc2847ee..f3bbea64d39 100644 --- a/generated/src/aws-cpp-sdk-textract/source/TextractErrors.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/TextractErrors.cpp @@ -26,24 +26,24 @@ template<> AWS_TEXTRACT_API HumanLoopQuotaExceededException TextractError::GetMo namespace TextractErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int UNSUPPORTED_DOCUMENT_HASH = HashingUtils::HashString("UnsupportedDocumentException"); -static const int BAD_DOCUMENT_HASH = HashingUtils::HashString("BadDocumentException"); -static const int IDEMPOTENT_PARAMETER_MISMATCH_HASH = HashingUtils::HashString("IdempotentParameterMismatchException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int INVALID_JOB_ID_HASH = HashingUtils::HashString("InvalidJobIdException"); -static const int INVALID_K_M_S_KEY_HASH = HashingUtils::HashString("InvalidKMSKeyException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int DOCUMENT_TOO_LARGE_HASH = HashingUtils::HashString("DocumentTooLargeException"); -static const int PROVISIONED_THROUGHPUT_EXCEEDED_HASH = HashingUtils::HashString("ProvisionedThroughputExceededException"); -static const int INVALID_S3_OBJECT_HASH = HashingUtils::HashString("InvalidS3ObjectException"); -static const int HUMAN_LOOP_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("HumanLoopQuotaExceededException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t UNSUPPORTED_DOCUMENT_HASH = ConstExprHashingUtils::HashString("UnsupportedDocumentException"); +static constexpr uint32_t BAD_DOCUMENT_HASH = ConstExprHashingUtils::HashString("BadDocumentException"); +static constexpr uint32_t IDEMPOTENT_PARAMETER_MISMATCH_HASH = ConstExprHashingUtils::HashString("IdempotentParameterMismatchException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t INVALID_JOB_ID_HASH = ConstExprHashingUtils::HashString("InvalidJobIdException"); +static constexpr uint32_t INVALID_K_M_S_KEY_HASH = ConstExprHashingUtils::HashString("InvalidKMSKeyException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t DOCUMENT_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("DocumentTooLargeException"); +static constexpr uint32_t PROVISIONED_THROUGHPUT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ProvisionedThroughputExceededException"); +static constexpr uint32_t INVALID_S3_OBJECT_HASH = ConstExprHashingUtils::HashString("InvalidS3ObjectException"); +static constexpr uint32_t HUMAN_LOOP_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("HumanLoopQuotaExceededException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-textract/source/model/AdapterVersionStatus.cpp b/generated/src/aws-cpp-sdk-textract/source/model/AdapterVersionStatus.cpp index 3d3381a2b19..7ce11dae266 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/AdapterVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/AdapterVersionStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AdapterVersionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int AT_RISK_HASH = HashingUtils::HashString("AT_RISK"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); - static const int CREATION_ERROR_HASH = HashingUtils::HashString("CREATION_ERROR"); - static const int CREATION_IN_PROGRESS_HASH = HashingUtils::HashString("CREATION_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t AT_RISK_HASH = ConstExprHashingUtils::HashString("AT_RISK"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t CREATION_ERROR_HASH = ConstExprHashingUtils::HashString("CREATION_ERROR"); + static constexpr uint32_t CREATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATION_IN_PROGRESS"); AdapterVersionStatus GetAdapterVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return AdapterVersionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/AutoUpdate.cpp b/generated/src/aws-cpp-sdk-textract/source/model/AutoUpdate.cpp index d53dbb5d3b1..5c3d4734e65 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/AutoUpdate.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/AutoUpdate.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AutoUpdateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); AutoUpdate GetAutoUpdateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return AutoUpdate::ENABLED; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/BlockType.cpp b/generated/src/aws-cpp-sdk-textract/source/model/BlockType.cpp index 263217a2b08..64bb069abb3 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/BlockType.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/BlockType.cpp @@ -20,35 +20,35 @@ namespace Aws namespace BlockTypeMapper { - static const int KEY_VALUE_SET_HASH = HashingUtils::HashString("KEY_VALUE_SET"); - static const int PAGE_HASH = HashingUtils::HashString("PAGE"); - static const int LINE_HASH = HashingUtils::HashString("LINE"); - static const int WORD_HASH = HashingUtils::HashString("WORD"); - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); - static const int CELL_HASH = HashingUtils::HashString("CELL"); - static const int SELECTION_ELEMENT_HASH = HashingUtils::HashString("SELECTION_ELEMENT"); - static const int MERGED_CELL_HASH = HashingUtils::HashString("MERGED_CELL"); - static const int TITLE_HASH = HashingUtils::HashString("TITLE"); - static const int QUERY_HASH = HashingUtils::HashString("QUERY"); - static const int QUERY_RESULT_HASH = HashingUtils::HashString("QUERY_RESULT"); - static const int SIGNATURE_HASH = HashingUtils::HashString("SIGNATURE"); - static const int TABLE_TITLE_HASH = HashingUtils::HashString("TABLE_TITLE"); - static const int TABLE_FOOTER_HASH = HashingUtils::HashString("TABLE_FOOTER"); - static const int LAYOUT_TEXT_HASH = HashingUtils::HashString("LAYOUT_TEXT"); - static const int LAYOUT_TITLE_HASH = HashingUtils::HashString("LAYOUT_TITLE"); - static const int LAYOUT_HEADER_HASH = HashingUtils::HashString("LAYOUT_HEADER"); - static const int LAYOUT_FOOTER_HASH = HashingUtils::HashString("LAYOUT_FOOTER"); - static const int LAYOUT_SECTION_HEADER_HASH = HashingUtils::HashString("LAYOUT_SECTION_HEADER"); - static const int LAYOUT_PAGE_NUMBER_HASH = HashingUtils::HashString("LAYOUT_PAGE_NUMBER"); - static const int LAYOUT_LIST_HASH = HashingUtils::HashString("LAYOUT_LIST"); - static const int LAYOUT_FIGURE_HASH = HashingUtils::HashString("LAYOUT_FIGURE"); - static const int LAYOUT_TABLE_HASH = HashingUtils::HashString("LAYOUT_TABLE"); - static const int LAYOUT_KEY_VALUE_HASH = HashingUtils::HashString("LAYOUT_KEY_VALUE"); + static constexpr uint32_t KEY_VALUE_SET_HASH = ConstExprHashingUtils::HashString("KEY_VALUE_SET"); + static constexpr uint32_t PAGE_HASH = ConstExprHashingUtils::HashString("PAGE"); + static constexpr uint32_t LINE_HASH = ConstExprHashingUtils::HashString("LINE"); + static constexpr uint32_t WORD_HASH = ConstExprHashingUtils::HashString("WORD"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); + static constexpr uint32_t CELL_HASH = ConstExprHashingUtils::HashString("CELL"); + static constexpr uint32_t SELECTION_ELEMENT_HASH = ConstExprHashingUtils::HashString("SELECTION_ELEMENT"); + static constexpr uint32_t MERGED_CELL_HASH = ConstExprHashingUtils::HashString("MERGED_CELL"); + static constexpr uint32_t TITLE_HASH = ConstExprHashingUtils::HashString("TITLE"); + static constexpr uint32_t QUERY_HASH = ConstExprHashingUtils::HashString("QUERY"); + static constexpr uint32_t QUERY_RESULT_HASH = ConstExprHashingUtils::HashString("QUERY_RESULT"); + static constexpr uint32_t SIGNATURE_HASH = ConstExprHashingUtils::HashString("SIGNATURE"); + static constexpr uint32_t TABLE_TITLE_HASH = ConstExprHashingUtils::HashString("TABLE_TITLE"); + static constexpr uint32_t TABLE_FOOTER_HASH = ConstExprHashingUtils::HashString("TABLE_FOOTER"); + static constexpr uint32_t LAYOUT_TEXT_HASH = ConstExprHashingUtils::HashString("LAYOUT_TEXT"); + static constexpr uint32_t LAYOUT_TITLE_HASH = ConstExprHashingUtils::HashString("LAYOUT_TITLE"); + static constexpr uint32_t LAYOUT_HEADER_HASH = ConstExprHashingUtils::HashString("LAYOUT_HEADER"); + static constexpr uint32_t LAYOUT_FOOTER_HASH = ConstExprHashingUtils::HashString("LAYOUT_FOOTER"); + static constexpr uint32_t LAYOUT_SECTION_HEADER_HASH = ConstExprHashingUtils::HashString("LAYOUT_SECTION_HEADER"); + static constexpr uint32_t LAYOUT_PAGE_NUMBER_HASH = ConstExprHashingUtils::HashString("LAYOUT_PAGE_NUMBER"); + static constexpr uint32_t LAYOUT_LIST_HASH = ConstExprHashingUtils::HashString("LAYOUT_LIST"); + static constexpr uint32_t LAYOUT_FIGURE_HASH = ConstExprHashingUtils::HashString("LAYOUT_FIGURE"); + static constexpr uint32_t LAYOUT_TABLE_HASH = ConstExprHashingUtils::HashString("LAYOUT_TABLE"); + static constexpr uint32_t LAYOUT_KEY_VALUE_HASH = ConstExprHashingUtils::HashString("LAYOUT_KEY_VALUE"); BlockType GetBlockTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_VALUE_SET_HASH) { return BlockType::KEY_VALUE_SET; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/ContentClassifier.cpp b/generated/src/aws-cpp-sdk-textract/source/model/ContentClassifier.cpp index ec62d39980d..88931a82bbf 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/ContentClassifier.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/ContentClassifier.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentClassifierMapper { - static const int FreeOfPersonallyIdentifiableInformation_HASH = HashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); - static const int FreeOfAdultContent_HASH = HashingUtils::HashString("FreeOfAdultContent"); + static constexpr uint32_t FreeOfPersonallyIdentifiableInformation_HASH = ConstExprHashingUtils::HashString("FreeOfPersonallyIdentifiableInformation"); + static constexpr uint32_t FreeOfAdultContent_HASH = ConstExprHashingUtils::HashString("FreeOfAdultContent"); ContentClassifier GetContentClassifierForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FreeOfPersonallyIdentifiableInformation_HASH) { return ContentClassifier::FreeOfPersonallyIdentifiableInformation; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-textract/source/model/EntityType.cpp index 183cb615398..be98e76e05d 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/EntityType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace EntityTypeMapper { - static const int KEY_HASH = HashingUtils::HashString("KEY"); - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); - static const int COLUMN_HEADER_HASH = HashingUtils::HashString("COLUMN_HEADER"); - static const int TABLE_TITLE_HASH = HashingUtils::HashString("TABLE_TITLE"); - static const int TABLE_FOOTER_HASH = HashingUtils::HashString("TABLE_FOOTER"); - static const int TABLE_SECTION_TITLE_HASH = HashingUtils::HashString("TABLE_SECTION_TITLE"); - static const int TABLE_SUMMARY_HASH = HashingUtils::HashString("TABLE_SUMMARY"); - static const int STRUCTURED_TABLE_HASH = HashingUtils::HashString("STRUCTURED_TABLE"); - static const int SEMI_STRUCTURED_TABLE_HASH = HashingUtils::HashString("SEMI_STRUCTURED_TABLE"); + static constexpr uint32_t KEY_HASH = ConstExprHashingUtils::HashString("KEY"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); + static constexpr uint32_t COLUMN_HEADER_HASH = ConstExprHashingUtils::HashString("COLUMN_HEADER"); + static constexpr uint32_t TABLE_TITLE_HASH = ConstExprHashingUtils::HashString("TABLE_TITLE"); + static constexpr uint32_t TABLE_FOOTER_HASH = ConstExprHashingUtils::HashString("TABLE_FOOTER"); + static constexpr uint32_t TABLE_SECTION_TITLE_HASH = ConstExprHashingUtils::HashString("TABLE_SECTION_TITLE"); + static constexpr uint32_t TABLE_SUMMARY_HASH = ConstExprHashingUtils::HashString("TABLE_SUMMARY"); + static constexpr uint32_t STRUCTURED_TABLE_HASH = ConstExprHashingUtils::HashString("STRUCTURED_TABLE"); + static constexpr uint32_t SEMI_STRUCTURED_TABLE_HASH = ConstExprHashingUtils::HashString("SEMI_STRUCTURED_TABLE"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEY_HASH) { return EntityType::KEY; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/FeatureType.cpp b/generated/src/aws-cpp-sdk-textract/source/model/FeatureType.cpp index 7dc1c298f13..24b9829ae7a 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/FeatureType.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/FeatureType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FeatureTypeMapper { - static const int TABLES_HASH = HashingUtils::HashString("TABLES"); - static const int FORMS_HASH = HashingUtils::HashString("FORMS"); - static const int QUERIES_HASH = HashingUtils::HashString("QUERIES"); - static const int SIGNATURES_HASH = HashingUtils::HashString("SIGNATURES"); - static const int LAYOUT_HASH = HashingUtils::HashString("LAYOUT"); + static constexpr uint32_t TABLES_HASH = ConstExprHashingUtils::HashString("TABLES"); + static constexpr uint32_t FORMS_HASH = ConstExprHashingUtils::HashString("FORMS"); + static constexpr uint32_t QUERIES_HASH = ConstExprHashingUtils::HashString("QUERIES"); + static constexpr uint32_t SIGNATURES_HASH = ConstExprHashingUtils::HashString("SIGNATURES"); + static constexpr uint32_t LAYOUT_HASH = ConstExprHashingUtils::HashString("LAYOUT"); FeatureType GetFeatureTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TABLES_HASH) { return FeatureType::TABLES; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-textract/source/model/JobStatus.cpp index bd2b18e968b..5e862d17f78 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/JobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace JobStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int PARTIAL_SUCCESS_HASH = HashingUtils::HashString("PARTIAL_SUCCESS"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t PARTIAL_SUCCESS_HASH = ConstExprHashingUtils::HashString("PARTIAL_SUCCESS"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return JobStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/RelationshipType.cpp b/generated/src/aws-cpp-sdk-textract/source/model/RelationshipType.cpp index 89c22da56a9..06de271e018 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/RelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/RelationshipType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace RelationshipTypeMapper { - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); - static const int CHILD_HASH = HashingUtils::HashString("CHILD"); - static const int COMPLEX_FEATURES_HASH = HashingUtils::HashString("COMPLEX_FEATURES"); - static const int MERGED_CELL_HASH = HashingUtils::HashString("MERGED_CELL"); - static const int TITLE_HASH = HashingUtils::HashString("TITLE"); - static const int ANSWER_HASH = HashingUtils::HashString("ANSWER"); - static const int TABLE_HASH = HashingUtils::HashString("TABLE"); - static const int TABLE_TITLE_HASH = HashingUtils::HashString("TABLE_TITLE"); - static const int TABLE_FOOTER_HASH = HashingUtils::HashString("TABLE_FOOTER"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); + static constexpr uint32_t CHILD_HASH = ConstExprHashingUtils::HashString("CHILD"); + static constexpr uint32_t COMPLEX_FEATURES_HASH = ConstExprHashingUtils::HashString("COMPLEX_FEATURES"); + static constexpr uint32_t MERGED_CELL_HASH = ConstExprHashingUtils::HashString("MERGED_CELL"); + static constexpr uint32_t TITLE_HASH = ConstExprHashingUtils::HashString("TITLE"); + static constexpr uint32_t ANSWER_HASH = ConstExprHashingUtils::HashString("ANSWER"); + static constexpr uint32_t TABLE_HASH = ConstExprHashingUtils::HashString("TABLE"); + static constexpr uint32_t TABLE_TITLE_HASH = ConstExprHashingUtils::HashString("TABLE_TITLE"); + static constexpr uint32_t TABLE_FOOTER_HASH = ConstExprHashingUtils::HashString("TABLE_FOOTER"); RelationshipType GetRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALUE_HASH) { return RelationshipType::VALUE; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/SelectionStatus.cpp b/generated/src/aws-cpp-sdk-textract/source/model/SelectionStatus.cpp index 23d6f8cedb5..067d28ae9b2 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/SelectionStatus.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/SelectionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SelectionStatusMapper { - static const int SELECTED_HASH = HashingUtils::HashString("SELECTED"); - static const int NOT_SELECTED_HASH = HashingUtils::HashString("NOT_SELECTED"); + static constexpr uint32_t SELECTED_HASH = ConstExprHashingUtils::HashString("SELECTED"); + static constexpr uint32_t NOT_SELECTED_HASH = ConstExprHashingUtils::HashString("NOT_SELECTED"); SelectionStatus GetSelectionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELECTED_HASH) { return SelectionStatus::SELECTED; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/TextType.cpp b/generated/src/aws-cpp-sdk-textract/source/model/TextType.cpp index f82f128e922..1e2046ea802 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/TextType.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/TextType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TextTypeMapper { - static const int HANDWRITING_HASH = HashingUtils::HashString("HANDWRITING"); - static const int PRINTED_HASH = HashingUtils::HashString("PRINTED"); + static constexpr uint32_t HANDWRITING_HASH = ConstExprHashingUtils::HashString("HANDWRITING"); + static constexpr uint32_t PRINTED_HASH = ConstExprHashingUtils::HashString("PRINTED"); TextType GetTextTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HANDWRITING_HASH) { return TextType::HANDWRITING; diff --git a/generated/src/aws-cpp-sdk-textract/source/model/ValueType.cpp b/generated/src/aws-cpp-sdk-textract/source/model/ValueType.cpp index 90b64342b35..c6cbe5c34c0 100644 --- a/generated/src/aws-cpp-sdk-textract/source/model/ValueType.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/model/ValueType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ValueTypeMapper { - static const int DATE_HASH = HashingUtils::HashString("DATE"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); ValueType GetValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATE_HASH) { return ValueType::DATE; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryErrors.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryErrors.cpp index 7e60099dfe7..9c2e18333df 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryErrors.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_TIMESTREAMQUERY_API ResourceNotFoundException TimestreamQueryErro namespace TimestreamQueryErrorMapper { -static const int INVALID_ENDPOINT_HASH = HashingUtils::HashString("InvalidEndpointException"); -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int QUERY_EXECUTION_HASH = HashingUtils::HashString("QueryExecutionException"); +static constexpr uint32_t INVALID_ENDPOINT_HASH = ConstExprHashingUtils::HashString("InvalidEndpointException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t QUERY_EXECUTION_HASH = ConstExprHashingUtils::HashString("QueryExecutionException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == INVALID_ENDPOINT_HASH) { diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/DimensionValueType.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/DimensionValueType.cpp index 2ea5d067ddb..3fbe3549993 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/DimensionValueType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/DimensionValueType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DimensionValueTypeMapper { - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); DimensionValueType GetDimensionValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VARCHAR_HASH) { return DimensionValueType::VARCHAR; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/MeasureValueType.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/MeasureValueType.cpp index b1bdfc0ca93..437823bc03f 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/MeasureValueType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/MeasureValueType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace MeasureValueTypeMapper { - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); - static const int MULTI_HASH = HashingUtils::HashString("MULTI"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); + static constexpr uint32_t MULTI_HASH = ConstExprHashingUtils::HashString("MULTI"); MeasureValueType GetMeasureValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BIGINT_HASH) { return MeasureValueType::BIGINT; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/S3EncryptionOption.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/S3EncryptionOption.cpp index 85fb7e7ea28..50d2ebb2266 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/S3EncryptionOption.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/S3EncryptionOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3EncryptionOptionMapper { - static const int SSE_S3_HASH = HashingUtils::HashString("SSE_S3"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE_KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE_S3"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE_KMS"); S3EncryptionOption GetS3EncryptionOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSE_S3_HASH) { return S3EncryptionOption::SSE_S3; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarMeasureValueType.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarMeasureValueType.cpp index d4ec13b9af6..6367e24d255 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarMeasureValueType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarMeasureValueType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ScalarMeasureValueTypeMapper { - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); ScalarMeasureValueType GetScalarMeasureValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BIGINT_HASH) { return ScalarMeasureValueType::BIGINT; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarType.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarType.cpp index bdebfe1ed7e..07b1b8bfe72 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScalarType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace ScalarTypeMapper { - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int TIME_HASH = HashingUtils::HashString("TIME"); - static const int INTERVAL_DAY_TO_SECOND_HASH = HashingUtils::HashString("INTERVAL_DAY_TO_SECOND"); - static const int INTERVAL_YEAR_TO_MONTH_HASH = HashingUtils::HashString("INTERVAL_YEAR_TO_MONTH"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int INTEGER_HASH = HashingUtils::HashString("INTEGER"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t TIME_HASH = ConstExprHashingUtils::HashString("TIME"); + static constexpr uint32_t INTERVAL_DAY_TO_SECOND_HASH = ConstExprHashingUtils::HashString("INTERVAL_DAY_TO_SECOND"); + static constexpr uint32_t INTERVAL_YEAR_TO_MONTH_HASH = ConstExprHashingUtils::HashString("INTERVAL_YEAR_TO_MONTH"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t INTEGER_HASH = ConstExprHashingUtils::HashString("INTEGER"); ScalarType GetScalarTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VARCHAR_HASH) { return ScalarType::VARCHAR; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryRunStatus.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryRunStatus.cpp index 8de5785dcba..43ae301fa27 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryRunStatus.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryRunStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ScheduledQueryRunStatusMapper { - static const int AUTO_TRIGGER_SUCCESS_HASH = HashingUtils::HashString("AUTO_TRIGGER_SUCCESS"); - static const int AUTO_TRIGGER_FAILURE_HASH = HashingUtils::HashString("AUTO_TRIGGER_FAILURE"); - static const int MANUAL_TRIGGER_SUCCESS_HASH = HashingUtils::HashString("MANUAL_TRIGGER_SUCCESS"); - static const int MANUAL_TRIGGER_FAILURE_HASH = HashingUtils::HashString("MANUAL_TRIGGER_FAILURE"); + static constexpr uint32_t AUTO_TRIGGER_SUCCESS_HASH = ConstExprHashingUtils::HashString("AUTO_TRIGGER_SUCCESS"); + static constexpr uint32_t AUTO_TRIGGER_FAILURE_HASH = ConstExprHashingUtils::HashString("AUTO_TRIGGER_FAILURE"); + static constexpr uint32_t MANUAL_TRIGGER_SUCCESS_HASH = ConstExprHashingUtils::HashString("MANUAL_TRIGGER_SUCCESS"); + static constexpr uint32_t MANUAL_TRIGGER_FAILURE_HASH = ConstExprHashingUtils::HashString("MANUAL_TRIGGER_FAILURE"); ScheduledQueryRunStatus GetScheduledQueryRunStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_TRIGGER_SUCCESS_HASH) { return ScheduledQueryRunStatus::AUTO_TRIGGER_SUCCESS; diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryState.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryState.cpp index 8b5ef309cba..4e94ccfd8ad 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryState.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/model/ScheduledQueryState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScheduledQueryStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ScheduledQueryState GetScheduledQueryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ScheduledQueryState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteErrors.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteErrors.cpp index 74670b9ce67..eae83d426ae 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteErrors.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteErrors.cpp @@ -26,16 +26,16 @@ template<> AWS_TIMESTREAMWRITE_API RejectedRecordsException TimestreamWriteError namespace TimestreamWriteErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int INVALID_ENDPOINT_HASH = HashingUtils::HashString("InvalidEndpointException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int REJECTED_RECORDS_HASH = HashingUtils::HashString("RejectedRecordsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t INVALID_ENDPOINT_HASH = ConstExprHashingUtils::HashString("InvalidEndpointException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t REJECTED_RECORDS_HASH = ConstExprHashingUtils::HashString("RejectedRecordsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadDataFormat.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadDataFormat.cpp index 5c7314acbd1..e87b2543080 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadDataFormat.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BatchLoadDataFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); BatchLoadDataFormat GetBatchLoadDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return BatchLoadDataFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadStatus.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadStatus.cpp index 14bdd21b83e..f70c75e817a 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadStatus.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/BatchLoadStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace BatchLoadStatusMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); - static const int PROGRESS_STOPPED_HASH = HashingUtils::HashString("PROGRESS_STOPPED"); - static const int PENDING_RESUME_HASH = HashingUtils::HashString("PENDING_RESUME"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t SUCCEEDED_HASH = ConstExprHashingUtils::HashString("SUCCEEDED"); + static constexpr uint32_t PROGRESS_STOPPED_HASH = ConstExprHashingUtils::HashString("PROGRESS_STOPPED"); + static constexpr uint32_t PENDING_RESUME_HASH = ConstExprHashingUtils::HashString("PENDING_RESUME"); BatchLoadStatus GetBatchLoadStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return BatchLoadStatus::CREATED; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/DimensionValueType.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/DimensionValueType.cpp index 51cbb0f7cc0..2a83ddff128 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/DimensionValueType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/DimensionValueType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DimensionValueTypeMapper { - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); DimensionValueType GetDimensionValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VARCHAR_HASH) { return DimensionValueType::VARCHAR; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/MeasureValueType.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/MeasureValueType.cpp index b81a7e265b8..cfb992151f0 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/MeasureValueType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/MeasureValueType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace MeasureValueTypeMapper { - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); - static const int MULTI_HASH = HashingUtils::HashString("MULTI"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t MULTI_HASH = ConstExprHashingUtils::HashString("MULTI"); MeasureValueType GetMeasureValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOUBLE_HASH) { return MeasureValueType::DOUBLE; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyEnforcementLevel.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyEnforcementLevel.cpp index 69f4f58f1b0..2dee7c41832 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyEnforcementLevel.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyEnforcementLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PartitionKeyEnforcementLevelMapper { - static const int REQUIRED_HASH = HashingUtils::HashString("REQUIRED"); - static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static constexpr uint32_t REQUIRED_HASH = ConstExprHashingUtils::HashString("REQUIRED"); + static constexpr uint32_t OPTIONAL_HASH = ConstExprHashingUtils::HashString("OPTIONAL"); PartitionKeyEnforcementLevel GetPartitionKeyEnforcementLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REQUIRED_HASH) { return PartitionKeyEnforcementLevel::REQUIRED; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyType.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyType.cpp index 44b6bf18112..044a3a49687 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/PartitionKeyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PartitionKeyTypeMapper { - static const int DIMENSION_HASH = HashingUtils::HashString("DIMENSION"); - static const int MEASURE_HASH = HashingUtils::HashString("MEASURE"); + static constexpr uint32_t DIMENSION_HASH = ConstExprHashingUtils::HashString("DIMENSION"); + static constexpr uint32_t MEASURE_HASH = ConstExprHashingUtils::HashString("MEASURE"); PartitionKeyType GetPartitionKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIMENSION_HASH) { return PartitionKeyType::DIMENSION; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/S3EncryptionOption.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/S3EncryptionOption.cpp index b097167289b..47a2c8c79f0 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/S3EncryptionOption.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/S3EncryptionOption.cpp @@ -20,13 +20,13 @@ namespace Aws namespace S3EncryptionOptionMapper { - static const int SSE_S3_HASH = HashingUtils::HashString("SSE_S3"); - static const int SSE_KMS_HASH = HashingUtils::HashString("SSE_KMS"); + static constexpr uint32_t SSE_S3_HASH = ConstExprHashingUtils::HashString("SSE_S3"); + static constexpr uint32_t SSE_KMS_HASH = ConstExprHashingUtils::HashString("SSE_KMS"); S3EncryptionOption GetS3EncryptionOptionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SSE_S3_HASH) { return S3EncryptionOption::SSE_S3; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/ScalarMeasureValueType.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/ScalarMeasureValueType.cpp index 233fd10281c..d603c7b2a83 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/ScalarMeasureValueType.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/ScalarMeasureValueType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ScalarMeasureValueTypeMapper { - static const int DOUBLE_HASH = HashingUtils::HashString("DOUBLE"); - static const int BIGINT_HASH = HashingUtils::HashString("BIGINT"); - static const int BOOLEAN_HASH = HashingUtils::HashString("BOOLEAN"); - static const int VARCHAR_HASH = HashingUtils::HashString("VARCHAR"); - static const int TIMESTAMP_HASH = HashingUtils::HashString("TIMESTAMP"); + static constexpr uint32_t DOUBLE_HASH = ConstExprHashingUtils::HashString("DOUBLE"); + static constexpr uint32_t BIGINT_HASH = ConstExprHashingUtils::HashString("BIGINT"); + static constexpr uint32_t BOOLEAN_HASH = ConstExprHashingUtils::HashString("BOOLEAN"); + static constexpr uint32_t VARCHAR_HASH = ConstExprHashingUtils::HashString("VARCHAR"); + static constexpr uint32_t TIMESTAMP_HASH = ConstExprHashingUtils::HashString("TIMESTAMP"); ScalarMeasureValueType GetScalarMeasureValueTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOUBLE_HASH) { return ScalarMeasureValueType::DOUBLE; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/TableStatus.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/TableStatus.cpp index 510a268323b..de5a96ba6c4 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/TableStatus.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/TableStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TableStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int RESTORING_HASH = HashingUtils::HashString("RESTORING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t RESTORING_HASH = ConstExprHashingUtils::HashString("RESTORING"); TableStatus GetTableStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return TableStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/model/TimeUnit.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/model/TimeUnit.cpp index 4f5040b9e2a..2841cf0654b 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/model/TimeUnit.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/model/TimeUnit.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TimeUnitMapper { - static const int MILLISECONDS_HASH = HashingUtils::HashString("MILLISECONDS"); - static const int SECONDS_HASH = HashingUtils::HashString("SECONDS"); - static const int MICROSECONDS_HASH = HashingUtils::HashString("MICROSECONDS"); - static const int NANOSECONDS_HASH = HashingUtils::HashString("NANOSECONDS"); + static constexpr uint32_t MILLISECONDS_HASH = ConstExprHashingUtils::HashString("MILLISECONDS"); + static constexpr uint32_t SECONDS_HASH = ConstExprHashingUtils::HashString("SECONDS"); + static constexpr uint32_t MICROSECONDS_HASH = ConstExprHashingUtils::HashString("MICROSECONDS"); + static constexpr uint32_t NANOSECONDS_HASH = ConstExprHashingUtils::HashString("NANOSECONDS"); TimeUnit GetTimeUnitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MILLISECONDS_HASH) { return TimeUnit::MILLISECONDS; diff --git a/generated/src/aws-cpp-sdk-tnb/source/TnbErrors.cpp b/generated/src/aws-cpp-sdk-tnb/source/TnbErrors.cpp index a9751db8ee4..986b1eb45f1 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/TnbErrors.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/TnbErrors.cpp @@ -18,13 +18,13 @@ namespace tnb namespace TnbErrorMapper { -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/DescriptorContentType.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/DescriptorContentType.cpp index 2dcc689b10b..82aa3802216 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/DescriptorContentType.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/DescriptorContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DescriptorContentTypeMapper { - static const int text_plain_HASH = HashingUtils::HashString("text/plain"); + static constexpr uint32_t text_plain_HASH = ConstExprHashingUtils::HashString("text/plain"); DescriptorContentType GetDescriptorContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == text_plain_HASH) { return DescriptorContentType::text_plain; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/LcmOperationType.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/LcmOperationType.cpp index c79ebe6ed78..8be045c943d 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/LcmOperationType.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/LcmOperationType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LcmOperationTypeMapper { - static const int INSTANTIATE_HASH = HashingUtils::HashString("INSTANTIATE"); - static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); - static const int TERMINATE_HASH = HashingUtils::HashString("TERMINATE"); + static constexpr uint32_t INSTANTIATE_HASH = ConstExprHashingUtils::HashString("INSTANTIATE"); + static constexpr uint32_t UPDATE_HASH = ConstExprHashingUtils::HashString("UPDATE"); + static constexpr uint32_t TERMINATE_HASH = ConstExprHashingUtils::HashString("TERMINATE"); LcmOperationType GetLcmOperationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANTIATE_HASH) { return LcmOperationType::INSTANTIATE; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/NsLcmOperationState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/NsLcmOperationState.cpp index 4d37a8efe83..9e5da315e75 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/NsLcmOperationState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/NsLcmOperationState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace NsLcmOperationStateMapper { - static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLING_HASH = HashingUtils::HashString("CANCELLING"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t PROCESSING_HASH = ConstExprHashingUtils::HashString("PROCESSING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLING_HASH = ConstExprHashingUtils::HashString("CANCELLING"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); NsLcmOperationState GetNsLcmOperationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROCESSING_HASH) { return NsLcmOperationState::PROCESSING; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/NsState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/NsState.cpp index 522067b19ac..5c4e9c6c6f9 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/NsState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/NsState.cpp @@ -20,19 +20,19 @@ namespace Aws namespace NsStateMapper { - static const int INSTANTIATED_HASH = HashingUtils::HashString("INSTANTIATED"); - static const int NOT_INSTANTIATED_HASH = HashingUtils::HashString("NOT_INSTANTIATED"); - static const int IMPAIRED_HASH = HashingUtils::HashString("IMPAIRED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int INSTANTIATE_IN_PROGRESS_HASH = HashingUtils::HashString("INSTANTIATE_IN_PROGRESS"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int TERMINATE_IN_PROGRESS_HASH = HashingUtils::HashString("TERMINATE_IN_PROGRESS"); + static constexpr uint32_t INSTANTIATED_HASH = ConstExprHashingUtils::HashString("INSTANTIATED"); + static constexpr uint32_t NOT_INSTANTIATED_HASH = ConstExprHashingUtils::HashString("NOT_INSTANTIATED"); + static constexpr uint32_t IMPAIRED_HASH = ConstExprHashingUtils::HashString("IMPAIRED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t INSTANTIATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("INSTANTIATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t TERMINATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("TERMINATE_IN_PROGRESS"); NsState GetNsStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANTIATED_HASH) { return NsState::INSTANTIATED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/NsdOnboardingState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/NsdOnboardingState.cpp index 790cff13e63..d126f063bf9 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/NsdOnboardingState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/NsdOnboardingState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace NsdOnboardingStateMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int ONBOARDED_HASH = HashingUtils::HashString("ONBOARDED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t ONBOARDED_HASH = ConstExprHashingUtils::HashString("ONBOARDED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); NsdOnboardingState GetNsdOnboardingStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return NsdOnboardingState::CREATED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/NsdOperationalState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/NsdOperationalState.cpp index 046661762ca..7ad564283ef 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/NsdOperationalState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/NsdOperationalState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NsdOperationalStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); NsdOperationalState GetNsdOperationalStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return NsdOperationalState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/NsdUsageState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/NsdUsageState.cpp index 354034d339a..bee8b61c541 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/NsdUsageState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/NsdUsageState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NsdUsageStateMapper { - static const int IN_USE_HASH = HashingUtils::HashString("IN_USE"); - static const int NOT_IN_USE_HASH = HashingUtils::HashString("NOT_IN_USE"); + static constexpr uint32_t IN_USE_HASH = ConstExprHashingUtils::HashString("IN_USE"); + static constexpr uint32_t NOT_IN_USE_HASH = ConstExprHashingUtils::HashString("NOT_IN_USE"); NsdUsageState GetNsdUsageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_USE_HASH) { return NsdUsageState::IN_USE; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/OnboardingState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/OnboardingState.cpp index 505122f14cc..608c4652447 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/OnboardingState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/OnboardingState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OnboardingStateMapper { - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int ONBOARDED_HASH = HashingUtils::HashString("ONBOARDED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t ONBOARDED_HASH = ConstExprHashingUtils::HashString("ONBOARDED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); OnboardingState GetOnboardingStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATED_HASH) { return OnboardingState::CREATED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/OperationalState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/OperationalState.cpp index ee9ea824916..048c8c0d3ce 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/OperationalState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/OperationalState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperationalStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); OperationalState GetOperationalStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return OperationalState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/PackageContentType.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/PackageContentType.cpp index abdf882fdf0..92d5a9b17d1 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/PackageContentType.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/PackageContentType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace PackageContentTypeMapper { - static const int application_zip_HASH = HashingUtils::HashString("application/zip"); + static constexpr uint32_t application_zip_HASH = ConstExprHashingUtils::HashString("application/zip"); PackageContentType GetPackageContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == application_zip_HASH) { return PackageContentType::application_zip; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/TaskStatus.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/TaskStatus.cpp index f78e3e6bafc..6ddc2611d4e 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/TaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/TaskStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace TaskStatusMapper { - static const int SCHEDULED_HASH = HashingUtils::HashString("SCHEDULED"); - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t SCHEDULED_HASH = ConstExprHashingUtils::HashString("SCHEDULED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t SKIPPED_HASH = ConstExprHashingUtils::HashString("SKIPPED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); TaskStatus GetTaskStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SCHEDULED_HASH) { return TaskStatus::SCHEDULED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/UpdateSolNetworkType.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/UpdateSolNetworkType.cpp index 86e5657f9e0..51cc0535d5f 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/UpdateSolNetworkType.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/UpdateSolNetworkType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace UpdateSolNetworkTypeMapper { - static const int MODIFY_VNF_INFORMATION_HASH = HashingUtils::HashString("MODIFY_VNF_INFORMATION"); + static constexpr uint32_t MODIFY_VNF_INFORMATION_HASH = ConstExprHashingUtils::HashString("MODIFY_VNF_INFORMATION"); UpdateSolNetworkType GetUpdateSolNetworkTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MODIFY_VNF_INFORMATION_HASH) { return UpdateSolNetworkType::MODIFY_VNF_INFORMATION; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/UsageState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/UsageState.cpp index 6c860f9b4ce..fcf26912a22 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/UsageState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/UsageState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UsageStateMapper { - static const int IN_USE_HASH = HashingUtils::HashString("IN_USE"); - static const int NOT_IN_USE_HASH = HashingUtils::HashString("NOT_IN_USE"); + static constexpr uint32_t IN_USE_HASH = ConstExprHashingUtils::HashString("IN_USE"); + static constexpr uint32_t NOT_IN_USE_HASH = ConstExprHashingUtils::HashString("NOT_IN_USE"); UsageState GetUsageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_USE_HASH) { return UsageState::IN_USE; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/VnfInstantiationState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/VnfInstantiationState.cpp index aa47324b3b2..95dafa3dfde 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/VnfInstantiationState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/VnfInstantiationState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VnfInstantiationStateMapper { - static const int INSTANTIATED_HASH = HashingUtils::HashString("INSTANTIATED"); - static const int NOT_INSTANTIATED_HASH = HashingUtils::HashString("NOT_INSTANTIATED"); + static constexpr uint32_t INSTANTIATED_HASH = ConstExprHashingUtils::HashString("INSTANTIATED"); + static constexpr uint32_t NOT_INSTANTIATED_HASH = ConstExprHashingUtils::HashString("NOT_INSTANTIATED"); VnfInstantiationState GetVnfInstantiationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSTANTIATED_HASH) { return VnfInstantiationState::INSTANTIATED; diff --git a/generated/src/aws-cpp-sdk-tnb/source/model/VnfOperationalState.cpp b/generated/src/aws-cpp-sdk-tnb/source/model/VnfOperationalState.cpp index 811a12d2ddf..d0a080ddc20 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/model/VnfOperationalState.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/model/VnfOperationalState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace VnfOperationalStateMapper { - static const int STARTED_HASH = HashingUtils::HashString("STARTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t STARTED_HASH = ConstExprHashingUtils::HashString("STARTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); VnfOperationalState GetVnfOperationalStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STARTED_HASH) { return VnfOperationalState::STARTED; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceErrors.cpp b/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceErrors.cpp index dd94a494443..5d3e953a08c 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceErrors.cpp @@ -18,15 +18,15 @@ namespace TranscribeService namespace TranscribeServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t NOT_FOUND_HASH = ConstExprHashingUtils::HashString("NotFoundException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/BaseModelName.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/BaseModelName.cpp index b97b9e56e62..df7a64eda9c 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/BaseModelName.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/BaseModelName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BaseModelNameMapper { - static const int NarrowBand_HASH = HashingUtils::HashString("NarrowBand"); - static const int WideBand_HASH = HashingUtils::HashString("WideBand"); + static constexpr uint32_t NarrowBand_HASH = ConstExprHashingUtils::HashString("NarrowBand"); + static constexpr uint32_t WideBand_HASH = ConstExprHashingUtils::HashString("WideBand"); BaseModelName GetBaseModelNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NarrowBand_HASH) { return BaseModelName::NarrowBand; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/CLMLanguageCode.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/CLMLanguageCode.cpp index 9ed6c859b42..107d44ed090 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/CLMLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/CLMLanguageCode.cpp @@ -20,18 +20,18 @@ namespace Aws namespace CLMLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); CLMLanguageCode GetCLMLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return CLMLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/CallAnalyticsJobStatus.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/CallAnalyticsJobStatus.cpp index 774640e0902..7984db7e3cd 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/CallAnalyticsJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/CallAnalyticsJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CallAnalyticsJobStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); CallAnalyticsJobStatus GetCallAnalyticsJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return CallAnalyticsJobStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/InputType.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/InputType.cpp index d78dabac776..095b23aad81 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/InputType.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/InputType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InputTypeMapper { - static const int REAL_TIME_HASH = HashingUtils::HashString("REAL_TIME"); - static const int POST_CALL_HASH = HashingUtils::HashString("POST_CALL"); + static constexpr uint32_t REAL_TIME_HASH = ConstExprHashingUtils::HashString("REAL_TIME"); + static constexpr uint32_t POST_CALL_HASH = ConstExprHashingUtils::HashString("POST_CALL"); InputType GetInputTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REAL_TIME_HASH) { return InputType::REAL_TIME; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/LanguageCode.cpp index fdc3510f5b8..505bddd3216 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/LanguageCode.cpp @@ -20,50 +20,50 @@ namespace Aws namespace LanguageCodeMapper { - static const int af_ZA_HASH = HashingUtils::HashString("af-ZA"); - static const int ar_AE_HASH = HashingUtils::HashString("ar-AE"); - static const int ar_SA_HASH = HashingUtils::HashString("ar-SA"); - static const int da_DK_HASH = HashingUtils::HashString("da-DK"); - static const int de_CH_HASH = HashingUtils::HashString("de-CH"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int en_AB_HASH = HashingUtils::HashString("en-AB"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int en_IE_HASH = HashingUtils::HashString("en-IE"); - static const int en_IN_HASH = HashingUtils::HashString("en-IN"); - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_WL_HASH = HashingUtils::HashString("en-WL"); - static const int es_ES_HASH = HashingUtils::HashString("es-ES"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fa_IR_HASH = HashingUtils::HashString("fa-IR"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int he_IL_HASH = HashingUtils::HashString("he-IL"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); - static const int id_ID_HASH = HashingUtils::HashString("id-ID"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); - static const int ms_MY_HASH = HashingUtils::HashString("ms-MY"); - static const int nl_NL_HASH = HashingUtils::HashString("nl-NL"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int pt_PT_HASH = HashingUtils::HashString("pt-PT"); - static const int ru_RU_HASH = HashingUtils::HashString("ru-RU"); - static const int ta_IN_HASH = HashingUtils::HashString("ta-IN"); - static const int te_IN_HASH = HashingUtils::HashString("te-IN"); - static const int tr_TR_HASH = HashingUtils::HashString("tr-TR"); - static const int zh_CN_HASH = HashingUtils::HashString("zh-CN"); - static const int zh_TW_HASH = HashingUtils::HashString("zh-TW"); - static const int th_TH_HASH = HashingUtils::HashString("th-TH"); - static const int en_ZA_HASH = HashingUtils::HashString("en-ZA"); - static const int en_NZ_HASH = HashingUtils::HashString("en-NZ"); - static const int vi_VN_HASH = HashingUtils::HashString("vi-VN"); - static const int sv_SE_HASH = HashingUtils::HashString("sv-SE"); + static constexpr uint32_t af_ZA_HASH = ConstExprHashingUtils::HashString("af-ZA"); + static constexpr uint32_t ar_AE_HASH = ConstExprHashingUtils::HashString("ar-AE"); + static constexpr uint32_t ar_SA_HASH = ConstExprHashingUtils::HashString("ar-SA"); + static constexpr uint32_t da_DK_HASH = ConstExprHashingUtils::HashString("da-DK"); + static constexpr uint32_t de_CH_HASH = ConstExprHashingUtils::HashString("de-CH"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t en_AB_HASH = ConstExprHashingUtils::HashString("en-AB"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t en_IE_HASH = ConstExprHashingUtils::HashString("en-IE"); + static constexpr uint32_t en_IN_HASH = ConstExprHashingUtils::HashString("en-IN"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_WL_HASH = ConstExprHashingUtils::HashString("en-WL"); + static constexpr uint32_t es_ES_HASH = ConstExprHashingUtils::HashString("es-ES"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fa_IR_HASH = ConstExprHashingUtils::HashString("fa-IR"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t he_IL_HASH = ConstExprHashingUtils::HashString("he-IL"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); + static constexpr uint32_t id_ID_HASH = ConstExprHashingUtils::HashString("id-ID"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); + static constexpr uint32_t ms_MY_HASH = ConstExprHashingUtils::HashString("ms-MY"); + static constexpr uint32_t nl_NL_HASH = ConstExprHashingUtils::HashString("nl-NL"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t pt_PT_HASH = ConstExprHashingUtils::HashString("pt-PT"); + static constexpr uint32_t ru_RU_HASH = ConstExprHashingUtils::HashString("ru-RU"); + static constexpr uint32_t ta_IN_HASH = ConstExprHashingUtils::HashString("ta-IN"); + static constexpr uint32_t te_IN_HASH = ConstExprHashingUtils::HashString("te-IN"); + static constexpr uint32_t tr_TR_HASH = ConstExprHashingUtils::HashString("tr-TR"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh-CN"); + static constexpr uint32_t zh_TW_HASH = ConstExprHashingUtils::HashString("zh-TW"); + static constexpr uint32_t th_TH_HASH = ConstExprHashingUtils::HashString("th-TH"); + static constexpr uint32_t en_ZA_HASH = ConstExprHashingUtils::HashString("en-ZA"); + static constexpr uint32_t en_NZ_HASH = ConstExprHashingUtils::HashString("en-NZ"); + static constexpr uint32_t vi_VN_HASH = ConstExprHashingUtils::HashString("vi-VN"); + static constexpr uint32_t sv_SE_HASH = ConstExprHashingUtils::HashString("sv-SE"); LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == af_ZA_HASH) { return LanguageCode::af_ZA; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/MediaFormat.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/MediaFormat.cpp index e6ab330c8d7..c2b5bc84aa2 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/MediaFormat.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/MediaFormat.cpp @@ -20,19 +20,19 @@ namespace Aws namespace MediaFormatMapper { - static const int mp3_HASH = HashingUtils::HashString("mp3"); - static const int mp4_HASH = HashingUtils::HashString("mp4"); - static const int wav_HASH = HashingUtils::HashString("wav"); - static const int flac_HASH = HashingUtils::HashString("flac"); - static const int ogg_HASH = HashingUtils::HashString("ogg"); - static const int amr_HASH = HashingUtils::HashString("amr"); - static const int webm_HASH = HashingUtils::HashString("webm"); - static const int m4a_HASH = HashingUtils::HashString("m4a"); + static constexpr uint32_t mp3_HASH = ConstExprHashingUtils::HashString("mp3"); + static constexpr uint32_t mp4_HASH = ConstExprHashingUtils::HashString("mp4"); + static constexpr uint32_t wav_HASH = ConstExprHashingUtils::HashString("wav"); + static constexpr uint32_t flac_HASH = ConstExprHashingUtils::HashString("flac"); + static constexpr uint32_t ogg_HASH = ConstExprHashingUtils::HashString("ogg"); + static constexpr uint32_t amr_HASH = ConstExprHashingUtils::HashString("amr"); + static constexpr uint32_t webm_HASH = ConstExprHashingUtils::HashString("webm"); + static constexpr uint32_t m4a_HASH = ConstExprHashingUtils::HashString("m4a"); MediaFormat GetMediaFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == mp3_HASH) { return MediaFormat::mp3; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/MedicalContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/MedicalContentIdentificationType.cpp index c320ef984fd..47442ad7e1f 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/MedicalContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/MedicalContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MedicalContentIdentificationTypeMapper { - static const int PHI_HASH = HashingUtils::HashString("PHI"); + static constexpr uint32_t PHI_HASH = ConstExprHashingUtils::HashString("PHI"); MedicalContentIdentificationType GetMedicalContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHI_HASH) { return MedicalContentIdentificationType::PHI; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/ModelStatus.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/ModelStatus.cpp index 321054780b6..bc89a82f339 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/ModelStatus.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/ModelStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModelStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); ModelStatus GetModelStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ModelStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp index d46806a6f66..a973993c623 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OutputLocationTypeMapper { - static const int CUSTOMER_BUCKET_HASH = HashingUtils::HashString("CUSTOMER_BUCKET"); - static const int SERVICE_BUCKET_HASH = HashingUtils::HashString("SERVICE_BUCKET"); + static constexpr uint32_t CUSTOMER_BUCKET_HASH = ConstExprHashingUtils::HashString("CUSTOMER_BUCKET"); + static constexpr uint32_t SERVICE_BUCKET_HASH = ConstExprHashingUtils::HashString("SERVICE_BUCKET"); OutputLocationType GetOutputLocationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CUSTOMER_BUCKET_HASH) { return OutputLocationType::CUSTOMER_BUCKET; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/ParticipantRole.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/ParticipantRole.cpp index de28ab4cf9a..faa53da4183 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/ParticipantRole.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/ParticipantRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParticipantRoleMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); ParticipantRole GetParticipantRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return ParticipantRole::AGENT; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/PiiEntityType.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/PiiEntityType.cpp index c7072bc62fb..d07e9996715 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/PiiEntityType.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/PiiEntityType.cpp @@ -20,23 +20,23 @@ namespace Aws namespace PiiEntityTypeMapper { - static const int BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("BANK_ACCOUNT_NUMBER"); - static const int BANK_ROUTING_HASH = HashingUtils::HashString("BANK_ROUTING"); - static const int CREDIT_DEBIT_NUMBER_HASH = HashingUtils::HashString("CREDIT_DEBIT_NUMBER"); - static const int CREDIT_DEBIT_CVV_HASH = HashingUtils::HashString("CREDIT_DEBIT_CVV"); - static const int CREDIT_DEBIT_EXPIRY_HASH = HashingUtils::HashString("CREDIT_DEBIT_EXPIRY"); - static const int PIN_HASH = HashingUtils::HashString("PIN"); - static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); - static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int PHONE_HASH = HashingUtils::HashString("PHONE"); - static const int SSN_HASH = HashingUtils::HashString("SSN"); - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t BANK_ACCOUNT_NUMBER_HASH = ConstExprHashingUtils::HashString("BANK_ACCOUNT_NUMBER"); + static constexpr uint32_t BANK_ROUTING_HASH = ConstExprHashingUtils::HashString("BANK_ROUTING"); + static constexpr uint32_t CREDIT_DEBIT_NUMBER_HASH = ConstExprHashingUtils::HashString("CREDIT_DEBIT_NUMBER"); + static constexpr uint32_t CREDIT_DEBIT_CVV_HASH = ConstExprHashingUtils::HashString("CREDIT_DEBIT_CVV"); + static constexpr uint32_t CREDIT_DEBIT_EXPIRY_HASH = ConstExprHashingUtils::HashString("CREDIT_DEBIT_EXPIRY"); + static constexpr uint32_t PIN_HASH = ConstExprHashingUtils::HashString("PIN"); + static constexpr uint32_t EMAIL_HASH = ConstExprHashingUtils::HashString("EMAIL"); + static constexpr uint32_t ADDRESS_HASH = ConstExprHashingUtils::HashString("ADDRESS"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t PHONE_HASH = ConstExprHashingUtils::HashString("PHONE"); + static constexpr uint32_t SSN_HASH = ConstExprHashingUtils::HashString("SSN"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); PiiEntityType GetPiiEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BANK_ACCOUNT_NUMBER_HASH) { return PiiEntityType::BANK_ACCOUNT_NUMBER; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionOutput.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionOutput.cpp index 92cf7cf54d0..1dafd3db3b8 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionOutput.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionOutput.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RedactionOutputMapper { - static const int redacted_HASH = HashingUtils::HashString("redacted"); - static const int redacted_and_unredacted_HASH = HashingUtils::HashString("redacted_and_unredacted"); + static constexpr uint32_t redacted_HASH = ConstExprHashingUtils::HashString("redacted"); + static constexpr uint32_t redacted_and_unredacted_HASH = ConstExprHashingUtils::HashString("redacted_and_unredacted"); RedactionOutput GetRedactionOutputForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == redacted_HASH) { return RedactionOutput::redacted; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionType.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionType.cpp index 041752ce2c6..16c9c1e50b2 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionType.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/RedactionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RedactionTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); RedactionType GetRedactionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return RedactionType::PII; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/SentimentValue.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/SentimentValue.cpp index b2f87dbfb2e..aedfe8ccff9 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/SentimentValue.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/SentimentValue.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SentimentValueMapper { - static const int POSITIVE_HASH = HashingUtils::HashString("POSITIVE"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); - static const int NEUTRAL_HASH = HashingUtils::HashString("NEUTRAL"); - static const int MIXED_HASH = HashingUtils::HashString("MIXED"); + static constexpr uint32_t POSITIVE_HASH = ConstExprHashingUtils::HashString("POSITIVE"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t NEUTRAL_HASH = ConstExprHashingUtils::HashString("NEUTRAL"); + static constexpr uint32_t MIXED_HASH = ConstExprHashingUtils::HashString("MIXED"); SentimentValue GetSentimentValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POSITIVE_HASH) { return SentimentValue::POSITIVE; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/Specialty.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/Specialty.cpp index fe97717fb3c..a6a5cc93306 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/Specialty.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/Specialty.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SpecialtyMapper { - static const int PRIMARYCARE_HASH = HashingUtils::HashString("PRIMARYCARE"); + static constexpr uint32_t PRIMARYCARE_HASH = ConstExprHashingUtils::HashString("PRIMARYCARE"); Specialty GetSpecialtyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARYCARE_HASH) { return Specialty::PRIMARYCARE; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/SubtitleFormat.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/SubtitleFormat.cpp index 373ccd896f1..0f9a7da6c1b 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/SubtitleFormat.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/SubtitleFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubtitleFormatMapper { - static const int vtt_HASH = HashingUtils::HashString("vtt"); - static const int srt_HASH = HashingUtils::HashString("srt"); + static constexpr uint32_t vtt_HASH = ConstExprHashingUtils::HashString("vtt"); + static constexpr uint32_t srt_HASH = ConstExprHashingUtils::HashString("srt"); SubtitleFormat GetSubtitleFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == vtt_HASH) { return SubtitleFormat::vtt; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/ToxicityCategory.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/ToxicityCategory.cpp index c73cec05cef..f2b16cf896c 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/ToxicityCategory.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/ToxicityCategory.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ToxicityCategoryMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); ToxicityCategory GetToxicityCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return ToxicityCategory::ALL; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptFilterType.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptFilterType.cpp index 7c228313767..716c220863c 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptFilterType.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptFilterType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace TranscriptFilterTypeMapper { - static const int EXACT_HASH = HashingUtils::HashString("EXACT"); + static constexpr uint32_t EXACT_HASH = ConstExprHashingUtils::HashString("EXACT"); TranscriptFilterType GetTranscriptFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACT_HASH) { return TranscriptFilterType::EXACT; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptionJobStatus.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptionJobStatus.cpp index d7dd7491042..7deb91af993 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptionJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/TranscriptionJobStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TranscriptionJobStatusMapper { - static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static constexpr uint32_t QUEUED_HASH = ConstExprHashingUtils::HashString("QUEUED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); TranscriptionJobStatus GetTranscriptionJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUEUED_HASH) { return TranscriptionJobStatus::QUEUED; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/Type.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/Type.cpp index d94ffcb7cfa..97710897b96 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int CONVERSATION_HASH = HashingUtils::HashString("CONVERSATION"); - static const int DICTATION_HASH = HashingUtils::HashString("DICTATION"); + static constexpr uint32_t CONVERSATION_HASH = ConstExprHashingUtils::HashString("CONVERSATION"); + static constexpr uint32_t DICTATION_HASH = ConstExprHashingUtils::HashString("DICTATION"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONVERSATION_HASH) { return Type::CONVERSATION; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyFilterMethod.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyFilterMethod.cpp index cca1dc06cad..729e2c80ee9 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyFilterMethod.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyFilterMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VocabularyFilterMethodMapper { - static const int remove_HASH = HashingUtils::HashString("remove"); - static const int mask_HASH = HashingUtils::HashString("mask"); - static const int tag_HASH = HashingUtils::HashString("tag"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); + static constexpr uint32_t mask_HASH = ConstExprHashingUtils::HashString("mask"); + static constexpr uint32_t tag_HASH = ConstExprHashingUtils::HashString("tag"); VocabularyFilterMethod GetVocabularyFilterMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == remove_HASH) { return VocabularyFilterMethod::remove; diff --git a/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyState.cpp b/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyState.cpp index ceaea5dbc77..fd10067e203 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyState.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/model/VocabularyState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VocabularyStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int READY_HASH = HashingUtils::HashString("READY"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t READY_HASH = ConstExprHashingUtils::HashString("READY"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); VocabularyState GetVocabularyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return VocabularyState::PENDING; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceErrors.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceErrors.cpp index 37d6aab6726..8d14de2ef8e 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceErrors.cpp @@ -18,14 +18,14 @@ namespace TranscribeStreamingService namespace TranscribeStreamingServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("BadRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/CallAnalyticsLanguageCode.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/CallAnalyticsLanguageCode.cpp index e14b1529862..a3d5e669225 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/CallAnalyticsLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/CallAnalyticsLanguageCode.cpp @@ -20,20 +20,20 @@ namespace Aws namespace CallAnalyticsLanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); CallAnalyticsLanguageCode GetCallAnalyticsLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return CallAnalyticsLanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentIdentificationType.cpp index 636f172525a..0d388da52b8 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentIdentificationTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); ContentIdentificationType GetContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return ContentIdentificationType::PII; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionOutput.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionOutput.cpp index e151fa489cf..5e8fcb2d21f 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionOutput.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionOutput.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ContentRedactionOutputMapper { - static const int redacted_HASH = HashingUtils::HashString("redacted"); - static const int redacted_and_unredacted_HASH = HashingUtils::HashString("redacted_and_unredacted"); + static constexpr uint32_t redacted_HASH = ConstExprHashingUtils::HashString("redacted"); + static constexpr uint32_t redacted_and_unredacted_HASH = ConstExprHashingUtils::HashString("redacted_and_unredacted"); ContentRedactionOutput GetContentRedactionOutputForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == redacted_HASH) { return ContentRedactionOutput::redacted; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionType.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionType.cpp index 4fe54583633..35906f5de65 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionType.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ContentRedactionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ContentRedactionTypeMapper { - static const int PII_HASH = HashingUtils::HashString("PII"); + static constexpr uint32_t PII_HASH = ConstExprHashingUtils::HashString("PII"); ContentRedactionType GetContentRedactionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PII_HASH) { return ContentRedactionType::PII; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ItemType.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ItemType.cpp index 93fec635e6a..ce46e21e5db 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ItemType.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ItemType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ItemTypeMapper { - static const int pronunciation_HASH = HashingUtils::HashString("pronunciation"); - static const int punctuation_HASH = HashingUtils::HashString("punctuation"); + static constexpr uint32_t pronunciation_HASH = ConstExprHashingUtils::HashString("pronunciation"); + static constexpr uint32_t punctuation_HASH = ConstExprHashingUtils::HashString("punctuation"); ItemType GetItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pronunciation_HASH) { return ItemType::pronunciation; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/LanguageCode.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/LanguageCode.cpp index b960e573a47..a24735b1091 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/LanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/LanguageCode.cpp @@ -20,25 +20,25 @@ namespace Aws namespace LanguageCodeMapper { - static const int en_US_HASH = HashingUtils::HashString("en-US"); - static const int en_GB_HASH = HashingUtils::HashString("en-GB"); - static const int es_US_HASH = HashingUtils::HashString("es-US"); - static const int fr_CA_HASH = HashingUtils::HashString("fr-CA"); - static const int fr_FR_HASH = HashingUtils::HashString("fr-FR"); - static const int en_AU_HASH = HashingUtils::HashString("en-AU"); - static const int it_IT_HASH = HashingUtils::HashString("it-IT"); - static const int de_DE_HASH = HashingUtils::HashString("de-DE"); - static const int pt_BR_HASH = HashingUtils::HashString("pt-BR"); - static const int ja_JP_HASH = HashingUtils::HashString("ja-JP"); - static const int ko_KR_HASH = HashingUtils::HashString("ko-KR"); - static const int zh_CN_HASH = HashingUtils::HashString("zh-CN"); - static const int hi_IN_HASH = HashingUtils::HashString("hi-IN"); - static const int th_TH_HASH = HashingUtils::HashString("th-TH"); + static constexpr uint32_t en_US_HASH = ConstExprHashingUtils::HashString("en-US"); + static constexpr uint32_t en_GB_HASH = ConstExprHashingUtils::HashString("en-GB"); + static constexpr uint32_t es_US_HASH = ConstExprHashingUtils::HashString("es-US"); + static constexpr uint32_t fr_CA_HASH = ConstExprHashingUtils::HashString("fr-CA"); + static constexpr uint32_t fr_FR_HASH = ConstExprHashingUtils::HashString("fr-FR"); + static constexpr uint32_t en_AU_HASH = ConstExprHashingUtils::HashString("en-AU"); + static constexpr uint32_t it_IT_HASH = ConstExprHashingUtils::HashString("it-IT"); + static constexpr uint32_t de_DE_HASH = ConstExprHashingUtils::HashString("de-DE"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt-BR"); + static constexpr uint32_t ja_JP_HASH = ConstExprHashingUtils::HashString("ja-JP"); + static constexpr uint32_t ko_KR_HASH = ConstExprHashingUtils::HashString("ko-KR"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh-CN"); + static constexpr uint32_t hi_IN_HASH = ConstExprHashingUtils::HashString("hi-IN"); + static constexpr uint32_t th_TH_HASH = ConstExprHashingUtils::HashString("th-TH"); LanguageCode GetLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_US_HASH) { return LanguageCode::en_US; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MediaEncoding.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MediaEncoding.cpp index 43d3a5c9774..8b7e90e1e41 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MediaEncoding.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MediaEncoding.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MediaEncodingMapper { - static const int pcm_HASH = HashingUtils::HashString("pcm"); - static const int ogg_opus_HASH = HashingUtils::HashString("ogg-opus"); - static const int flac_HASH = HashingUtils::HashString("flac"); + static constexpr uint32_t pcm_HASH = ConstExprHashingUtils::HashString("pcm"); + static constexpr uint32_t ogg_opus_HASH = ConstExprHashingUtils::HashString("ogg-opus"); + static constexpr uint32_t flac_HASH = ConstExprHashingUtils::HashString("flac"); MediaEncoding GetMediaEncodingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == pcm_HASH) { return MediaEncoding::pcm; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MedicalContentIdentificationType.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MedicalContentIdentificationType.cpp index 8b888d7e9d2..4c86bc904f0 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MedicalContentIdentificationType.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/MedicalContentIdentificationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MedicalContentIdentificationTypeMapper { - static const int PHI_HASH = HashingUtils::HashString("PHI"); + static constexpr uint32_t PHI_HASH = ConstExprHashingUtils::HashString("PHI"); MedicalContentIdentificationType GetMedicalContentIdentificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PHI_HASH) { return MedicalContentIdentificationType::PHI; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/PartialResultsStability.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/PartialResultsStability.cpp index 4fab50e014f..19aa2b29d73 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/PartialResultsStability.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/PartialResultsStability.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PartialResultsStabilityMapper { - static const int high_HASH = HashingUtils::HashString("high"); - static const int medium_HASH = HashingUtils::HashString("medium"); - static const int low_HASH = HashingUtils::HashString("low"); + static constexpr uint32_t high_HASH = ConstExprHashingUtils::HashString("high"); + static constexpr uint32_t medium_HASH = ConstExprHashingUtils::HashString("medium"); + static constexpr uint32_t low_HASH = ConstExprHashingUtils::HashString("low"); PartialResultsStability GetPartialResultsStabilityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == high_HASH) { return PartialResultsStability::high; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ParticipantRole.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ParticipantRole.cpp index 1e70770a40c..0d79c99d8bb 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ParticipantRole.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/ParticipantRole.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ParticipantRoleMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); - static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); + static constexpr uint32_t CUSTOMER_HASH = ConstExprHashingUtils::HashString("CUSTOMER"); ParticipantRole GetParticipantRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return ParticipantRole::AGENT; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Sentiment.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Sentiment.cpp index 5da97c7d71e..77a7227fc7d 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Sentiment.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Sentiment.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SentimentMapper { - static const int POSITIVE_HASH = HashingUtils::HashString("POSITIVE"); - static const int NEGATIVE_HASH = HashingUtils::HashString("NEGATIVE"); - static const int MIXED_HASH = HashingUtils::HashString("MIXED"); - static const int NEUTRAL_HASH = HashingUtils::HashString("NEUTRAL"); + static constexpr uint32_t POSITIVE_HASH = ConstExprHashingUtils::HashString("POSITIVE"); + static constexpr uint32_t NEGATIVE_HASH = ConstExprHashingUtils::HashString("NEGATIVE"); + static constexpr uint32_t MIXED_HASH = ConstExprHashingUtils::HashString("MIXED"); + static constexpr uint32_t NEUTRAL_HASH = ConstExprHashingUtils::HashString("NEUTRAL"); Sentiment GetSentimentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == POSITIVE_HASH) { return Sentiment::POSITIVE; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Specialty.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Specialty.cpp index 0254d098568..7fe85abee4c 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Specialty.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Specialty.cpp @@ -20,17 +20,17 @@ namespace Aws namespace SpecialtyMapper { - static const int PRIMARYCARE_HASH = HashingUtils::HashString("PRIMARYCARE"); - static const int CARDIOLOGY_HASH = HashingUtils::HashString("CARDIOLOGY"); - static const int NEUROLOGY_HASH = HashingUtils::HashString("NEUROLOGY"); - static const int ONCOLOGY_HASH = HashingUtils::HashString("ONCOLOGY"); - static const int RADIOLOGY_HASH = HashingUtils::HashString("RADIOLOGY"); - static const int UROLOGY_HASH = HashingUtils::HashString("UROLOGY"); + static constexpr uint32_t PRIMARYCARE_HASH = ConstExprHashingUtils::HashString("PRIMARYCARE"); + static constexpr uint32_t CARDIOLOGY_HASH = ConstExprHashingUtils::HashString("CARDIOLOGY"); + static constexpr uint32_t NEUROLOGY_HASH = ConstExprHashingUtils::HashString("NEUROLOGY"); + static constexpr uint32_t ONCOLOGY_HASH = ConstExprHashingUtils::HashString("ONCOLOGY"); + static constexpr uint32_t RADIOLOGY_HASH = ConstExprHashingUtils::HashString("RADIOLOGY"); + static constexpr uint32_t UROLOGY_HASH = ConstExprHashingUtils::HashString("UROLOGY"); Specialty GetSpecialtyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARYCARE_HASH) { return Specialty::PRIMARYCARE; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp index 1b270a34b38..a0277432a31 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartCallAnalyticsStreamTranscriptionHandler.cpp @@ -209,12 +209,12 @@ namespace Model namespace StartCallAnalyticsStreamTranscriptionEventMapper { - static const int UTTERANCEEVENT_HASH = Aws::Utils::HashingUtils::HashString("UtteranceEvent"); - static const int CATEGORYEVENT_HASH = Aws::Utils::HashingUtils::HashString("CategoryEvent"); + static constexpr uint32_t UTTERANCEEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("UtteranceEvent"); + static constexpr uint32_t CATEGORYEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("CategoryEvent"); StartCallAnalyticsStreamTranscriptionEventType GetStartCallAnalyticsStreamTranscriptionEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == UTTERANCEEVENT_HASH) { return StartCallAnalyticsStreamTranscriptionEventType::UTTERANCEEVENT; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp index 07d58965bfd..284e176b8fc 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartMedicalStreamTranscriptionHandler.cpp @@ -192,11 +192,11 @@ namespace Model namespace StartMedicalStreamTranscriptionEventMapper { - static const int TRANSCRIPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("TranscriptEvent"); + static constexpr uint32_t TRANSCRIPTEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("TranscriptEvent"); StartMedicalStreamTranscriptionEventType GetStartMedicalStreamTranscriptionEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == TRANSCRIPTEVENT_HASH) { return StartMedicalStreamTranscriptionEventType::TRANSCRIPTEVENT; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp index a835df48578..c6455ee36d2 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/StartStreamTranscriptionHandler.cpp @@ -192,11 +192,11 @@ namespace Model namespace StartStreamTranscriptionEventMapper { - static const int TRANSCRIPTEVENT_HASH = Aws::Utils::HashingUtils::HashString("TranscriptEvent"); + static constexpr uint32_t TRANSCRIPTEVENT_HASH = Aws::Utils::ConstExprHashingUtils::HashString("TranscriptEvent"); StartStreamTranscriptionEventType GetStartStreamTranscriptionEventTypeForName(const Aws::String& name) { - int hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); + uint32_t hashCode = Aws::Utils::HashingUtils::HashString(name.c_str()); if (hashCode == TRANSCRIPTEVENT_HASH) { return StartStreamTranscriptionEventType::TRANSCRIPTEVENT; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Type.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Type.cpp index 47fafabb738..d67e8a92635 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Type.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/Type.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TypeMapper { - static const int CONVERSATION_HASH = HashingUtils::HashString("CONVERSATION"); - static const int DICTATION_HASH = HashingUtils::HashString("DICTATION"); + static constexpr uint32_t CONVERSATION_HASH = ConstExprHashingUtils::HashString("CONVERSATION"); + static constexpr uint32_t DICTATION_HASH = ConstExprHashingUtils::HashString("DICTATION"); Type GetTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONVERSATION_HASH) { return Type::CONVERSATION; diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/VocabularyFilterMethod.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/VocabularyFilterMethod.cpp index 8dfb9f29a59..ac02e2c5e20 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/model/VocabularyFilterMethod.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/model/VocabularyFilterMethod.cpp @@ -20,14 +20,14 @@ namespace Aws namespace VocabularyFilterMethodMapper { - static const int remove_HASH = HashingUtils::HashString("remove"); - static const int mask_HASH = HashingUtils::HashString("mask"); - static const int tag_HASH = HashingUtils::HashString("tag"); + static constexpr uint32_t remove_HASH = ConstExprHashingUtils::HashString("remove"); + static constexpr uint32_t mask_HASH = ConstExprHashingUtils::HashString("mask"); + static constexpr uint32_t tag_HASH = ConstExprHashingUtils::HashString("tag"); VocabularyFilterMethod GetVocabularyFilterMethodForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == remove_HASH) { return VocabularyFilterMethod::remove; diff --git a/generated/src/aws-cpp-sdk-translate/source/TranslateErrors.cpp b/generated/src/aws-cpp-sdk-translate/source/TranslateErrors.cpp index e85f96f9839..46fafd580ce 100644 --- a/generated/src/aws-cpp-sdk-translate/source/TranslateErrors.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/TranslateErrors.cpp @@ -47,23 +47,23 @@ template<> AWS_TRANSLATE_API TooManyTagsException TranslateError::GetModeledErro namespace TranslateErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int UNSUPPORTED_LANGUAGE_PAIR_HASH = HashingUtils::HashString("UnsupportedLanguagePairException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int DETECTED_LANGUAGE_LOW_CONFIDENCE_HASH = HashingUtils::HashString("DetectedLanguageLowConfidenceException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int UNSUPPORTED_DISPLAY_LANGUAGE_CODE_HASH = HashingUtils::HashString("UnsupportedDisplayLanguageCodeException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int INVALID_FILTER_HASH = HashingUtils::HashString("InvalidFilterException"); -static const int TEXT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TextSizeLimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t UNSUPPORTED_LANGUAGE_PAIR_HASH = ConstExprHashingUtils::HashString("UnsupportedLanguagePairException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t DETECTED_LANGUAGE_LOW_CONFIDENCE_HASH = ConstExprHashingUtils::HashString("DetectedLanguageLowConfidenceException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t UNSUPPORTED_DISPLAY_LANGUAGE_CODE_HASH = ConstExprHashingUtils::HashString("UnsupportedDisplayLanguageCodeException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t TOO_MANY_REQUESTS_HASH = ConstExprHashingUtils::HashString("TooManyRequestsException"); +static constexpr uint32_t INVALID_FILTER_HASH = ConstExprHashingUtils::HashString("InvalidFilterException"); +static constexpr uint32_t TEXT_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("TextSizeLimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-translate/source/model/Directionality.cpp b/generated/src/aws-cpp-sdk-translate/source/model/Directionality.cpp index 1aad36caf8f..b0d49aeb0ce 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/Directionality.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/Directionality.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DirectionalityMapper { - static const int UNI_HASH = HashingUtils::HashString("UNI"); - static const int MULTI_HASH = HashingUtils::HashString("MULTI"); + static constexpr uint32_t UNI_HASH = ConstExprHashingUtils::HashString("UNI"); + static constexpr uint32_t MULTI_HASH = ConstExprHashingUtils::HashString("MULTI"); Directionality GetDirectionalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNI_HASH) { return Directionality::UNI; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/DisplayLanguageCode.cpp b/generated/src/aws-cpp-sdk-translate/source/model/DisplayLanguageCode.cpp index 03c02bcda07..53cbb387d4c 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/DisplayLanguageCode.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/DisplayLanguageCode.cpp @@ -20,21 +20,21 @@ namespace Aws namespace DisplayLanguageCodeMapper { - static const int de_HASH = HashingUtils::HashString("de"); - static const int en_HASH = HashingUtils::HashString("en"); - static const int es_HASH = HashingUtils::HashString("es"); - static const int fr_HASH = HashingUtils::HashString("fr"); - 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 pt_HASH = HashingUtils::HashString("pt"); - static const int zh_HASH = HashingUtils::HashString("zh"); - static const int zh_TW_HASH = HashingUtils::HashString("zh-TW"); + static constexpr uint32_t de_HASH = ConstExprHashingUtils::HashString("de"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); + static constexpr uint32_t es_HASH = ConstExprHashingUtils::HashString("es"); + static constexpr uint32_t fr_HASH = ConstExprHashingUtils::HashString("fr"); + static constexpr uint32_t it_HASH = ConstExprHashingUtils::HashString("it"); + static constexpr uint32_t ja_HASH = ConstExprHashingUtils::HashString("ja"); + static constexpr uint32_t ko_HASH = ConstExprHashingUtils::HashString("ko"); + static constexpr uint32_t pt_HASH = ConstExprHashingUtils::HashString("pt"); + static constexpr uint32_t zh_HASH = ConstExprHashingUtils::HashString("zh"); + static constexpr uint32_t zh_TW_HASH = ConstExprHashingUtils::HashString("zh-TW"); DisplayLanguageCode GetDisplayLanguageCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == de_HASH) { return DisplayLanguageCode::de; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/EncryptionKeyType.cpp b/generated/src/aws-cpp-sdk-translate/source/model/EncryptionKeyType.cpp index fecb440db50..f843207f8c3 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/EncryptionKeyType.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/EncryptionKeyType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace EncryptionKeyTypeMapper { - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionKeyType GetEncryptionKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KMS_HASH) { return EncryptionKeyType::KMS; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/Formality.cpp b/generated/src/aws-cpp-sdk-translate/source/model/Formality.cpp index 8d4de819d8c..d4c88001dcb 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/Formality.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/Formality.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FormalityMapper { - static const int FORMAL_HASH = HashingUtils::HashString("FORMAL"); - static const int INFORMAL_HASH = HashingUtils::HashString("INFORMAL"); + static constexpr uint32_t FORMAL_HASH = ConstExprHashingUtils::HashString("FORMAL"); + static constexpr uint32_t INFORMAL_HASH = ConstExprHashingUtils::HashString("INFORMAL"); Formality GetFormalityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FORMAL_HASH) { return Formality::FORMAL; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/JobStatus.cpp b/generated/src/aws-cpp-sdk-translate/source/model/JobStatus.cpp index 1e3dc39c780..10e534edc2d 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/JobStatus.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/JobStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace JobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_ERROR_HASH = HashingUtils::HashString("COMPLETED_WITH_ERROR"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int STOP_REQUESTED_HASH = HashingUtils::HashString("STOP_REQUESTED"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_ERROR_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ERROR"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t STOP_REQUESTED_HASH = ConstExprHashingUtils::HashString("STOP_REQUESTED"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); JobStatus GetJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return JobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/MergeStrategy.cpp b/generated/src/aws-cpp-sdk-translate/source/model/MergeStrategy.cpp index 1342329603f..d8d13078399 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/MergeStrategy.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/MergeStrategy.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MergeStrategyMapper { - static const int OVERWRITE_HASH = HashingUtils::HashString("OVERWRITE"); + static constexpr uint32_t OVERWRITE_HASH = ConstExprHashingUtils::HashString("OVERWRITE"); MergeStrategy GetMergeStrategyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERWRITE_HASH) { return MergeStrategy::OVERWRITE; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataFormat.cpp b/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataFormat.cpp index 70c0583144d..c96dd85cf58 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ParallelDataFormatMapper { - static const int TSV_HASH = HashingUtils::HashString("TSV"); - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int TMX_HASH = HashingUtils::HashString("TMX"); + static constexpr uint32_t TSV_HASH = ConstExprHashingUtils::HashString("TSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t TMX_HASH = ConstExprHashingUtils::HashString("TMX"); ParallelDataFormat GetParallelDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TSV_HASH) { return ParallelDataFormat::TSV; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataStatus.cpp b/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataStatus.cpp index 175650edb38..14119bf0b83 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataStatus.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/ParallelDataStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ParallelDataStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ParallelDataStatus GetParallelDataStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ParallelDataStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/Profanity.cpp b/generated/src/aws-cpp-sdk-translate/source/model/Profanity.cpp index d0548a6a944..d21373c329e 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/Profanity.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/Profanity.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ProfanityMapper { - static const int MASK_HASH = HashingUtils::HashString("MASK"); + static constexpr uint32_t MASK_HASH = ConstExprHashingUtils::HashString("MASK"); Profanity GetProfanityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MASK_HASH) { return Profanity::MASK; diff --git a/generated/src/aws-cpp-sdk-translate/source/model/TerminologyDataFormat.cpp b/generated/src/aws-cpp-sdk-translate/source/model/TerminologyDataFormat.cpp index 570534b2f8a..dfb8d177bc2 100644 --- a/generated/src/aws-cpp-sdk-translate/source/model/TerminologyDataFormat.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/model/TerminologyDataFormat.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TerminologyDataFormatMapper { - static const int CSV_HASH = HashingUtils::HashString("CSV"); - static const int TMX_HASH = HashingUtils::HashString("TMX"); - static const int TSV_HASH = HashingUtils::HashString("TSV"); + static constexpr uint32_t CSV_HASH = ConstExprHashingUtils::HashString("CSV"); + static constexpr uint32_t TMX_HASH = ConstExprHashingUtils::HashString("TMX"); + static constexpr uint32_t TSV_HASH = ConstExprHashingUtils::HashString("TSV"); TerminologyDataFormat GetTerminologyDataFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CSV_HASH) { return TerminologyDataFormat::CSV; diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsErrors.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsErrors.cpp index c75d4c3a262..d58fb3b9344 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsErrors.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_VERIFIEDPERMISSIONS_API ValidationException VerifiedPermissionsEr namespace VerifiedPermissionsErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/Decision.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/Decision.cpp index 8821339e48b..9044058d529 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/Decision.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/Decision.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DecisionMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); Decision GetDecisionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return Decision::ALLOW; diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/OpenIdIssuer.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/OpenIdIssuer.cpp index e6a644c6eb5..56ecdc2f903 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/OpenIdIssuer.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/OpenIdIssuer.cpp @@ -20,12 +20,12 @@ namespace Aws namespace OpenIdIssuerMapper { - static const int COGNITO_HASH = HashingUtils::HashString("COGNITO"); + static constexpr uint32_t COGNITO_HASH = ConstExprHashingUtils::HashString("COGNITO"); OpenIdIssuer GetOpenIdIssuerForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COGNITO_HASH) { return OpenIdIssuer::COGNITO; diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/PolicyType.cpp index 7ef87248925..31ceb3d38dd 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/PolicyType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PolicyTypeMapper { - static const int STATIC__HASH = HashingUtils::HashString("STATIC"); - static const int TEMPLATE_LINKED_HASH = HashingUtils::HashString("TEMPLATE_LINKED"); + static constexpr uint32_t STATIC__HASH = ConstExprHashingUtils::HashString("STATIC"); + static constexpr uint32_t TEMPLATE_LINKED_HASH = ConstExprHashingUtils::HashString("TEMPLATE_LINKED"); PolicyType GetPolicyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STATIC__HASH) { return PolicyType::STATIC_; diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ResourceType.cpp index c4178ce5eb0..44db1b2b4b5 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ResourceType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ResourceTypeMapper { - static const int IDENTITY_SOURCE_HASH = HashingUtils::HashString("IDENTITY_SOURCE"); - static const int POLICY_STORE_HASH = HashingUtils::HashString("POLICY_STORE"); - static const int POLICY_HASH = HashingUtils::HashString("POLICY"); - static const int POLICY_TEMPLATE_HASH = HashingUtils::HashString("POLICY_TEMPLATE"); - static const int SCHEMA_HASH = HashingUtils::HashString("SCHEMA"); + static constexpr uint32_t IDENTITY_SOURCE_HASH = ConstExprHashingUtils::HashString("IDENTITY_SOURCE"); + static constexpr uint32_t POLICY_STORE_HASH = ConstExprHashingUtils::HashString("POLICY_STORE"); + static constexpr uint32_t POLICY_HASH = ConstExprHashingUtils::HashString("POLICY"); + static constexpr uint32_t POLICY_TEMPLATE_HASH = ConstExprHashingUtils::HashString("POLICY_TEMPLATE"); + static constexpr uint32_t SCHEMA_HASH = ConstExprHashingUtils::HashString("SCHEMA"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IDENTITY_SOURCE_HASH) { return ResourceType::IDENTITY_SOURCE; diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ValidationMode.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ValidationMode.cpp index 6359844326a..a592a244c9f 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ValidationMode.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/model/ValidationMode.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ValidationModeMapper { - static const int OFF_HASH = HashingUtils::HashString("OFF"); - static const int STRICT_HASH = HashingUtils::HashString("STRICT"); + static constexpr uint32_t OFF_HASH = ConstExprHashingUtils::HashString("OFF"); + static constexpr uint32_t STRICT_HASH = ConstExprHashingUtils::HashString("STRICT"); ValidationMode GetValidationModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OFF_HASH) { return ValidationMode::OFF; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDErrors.cpp b/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDErrors.cpp index e50ca037e11..dd0243966bd 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDErrors.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDErrors.cpp @@ -33,14 +33,14 @@ template<> AWS_VOICEID_API ResourceNotFoundException VoiceIDError::GetModeledErr namespace VoiceIDErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/AuthenticationDecision.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/AuthenticationDecision.cpp index 824212f6bc6..685c7d58dde 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/AuthenticationDecision.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/AuthenticationDecision.cpp @@ -20,18 +20,18 @@ namespace Aws namespace AuthenticationDecisionMapper { - static const int ACCEPT_HASH = HashingUtils::HashString("ACCEPT"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); - static const int NOT_ENOUGH_SPEECH_HASH = HashingUtils::HashString("NOT_ENOUGH_SPEECH"); - static const int SPEAKER_NOT_ENROLLED_HASH = HashingUtils::HashString("SPEAKER_NOT_ENROLLED"); - static const int SPEAKER_OPTED_OUT_HASH = HashingUtils::HashString("SPEAKER_OPTED_OUT"); - static const int SPEAKER_ID_NOT_PROVIDED_HASH = HashingUtils::HashString("SPEAKER_ID_NOT_PROVIDED"); - static const int SPEAKER_EXPIRED_HASH = HashingUtils::HashString("SPEAKER_EXPIRED"); + static constexpr uint32_t ACCEPT_HASH = ConstExprHashingUtils::HashString("ACCEPT"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); + static constexpr uint32_t NOT_ENOUGH_SPEECH_HASH = ConstExprHashingUtils::HashString("NOT_ENOUGH_SPEECH"); + static constexpr uint32_t SPEAKER_NOT_ENROLLED_HASH = ConstExprHashingUtils::HashString("SPEAKER_NOT_ENROLLED"); + static constexpr uint32_t SPEAKER_OPTED_OUT_HASH = ConstExprHashingUtils::HashString("SPEAKER_OPTED_OUT"); + static constexpr uint32_t SPEAKER_ID_NOT_PROVIDED_HASH = ConstExprHashingUtils::HashString("SPEAKER_ID_NOT_PROVIDED"); + static constexpr uint32_t SPEAKER_EXPIRED_HASH = ConstExprHashingUtils::HashString("SPEAKER_EXPIRED"); AuthenticationDecision GetAuthenticationDecisionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPT_HASH) { return AuthenticationDecision::ACCEPT; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/ConflictType.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/ConflictType.cpp index 5028638a0e0..838fcb407e3 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/ConflictType.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/ConflictType.cpp @@ -20,21 +20,21 @@ namespace Aws namespace ConflictTypeMapper { - static const int ANOTHER_ACTIVE_STREAM_HASH = HashingUtils::HashString("ANOTHER_ACTIVE_STREAM"); - static const int DOMAIN_NOT_ACTIVE_HASH = HashingUtils::HashString("DOMAIN_NOT_ACTIVE"); - static const int CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT_HASH = HashingUtils::HashString("CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT"); - static const int ENROLLMENT_ALREADY_EXISTS_HASH = HashingUtils::HashString("ENROLLMENT_ALREADY_EXISTS"); - static const int SPEAKER_NOT_SET_HASH = HashingUtils::HashString("SPEAKER_NOT_SET"); - static const int SPEAKER_OPTED_OUT_HASH = HashingUtils::HashString("SPEAKER_OPTED_OUT"); - static const int CONCURRENT_CHANGES_HASH = HashingUtils::HashString("CONCURRENT_CHANGES"); - static const int DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES_HASH = HashingUtils::HashString("DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES"); - static const int CANNOT_DELETE_NON_EMPTY_WATCHLIST_HASH = HashingUtils::HashString("CANNOT_DELETE_NON_EMPTY_WATCHLIST"); - static const int FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST_HASH = HashingUtils::HashString("FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST"); + static constexpr uint32_t ANOTHER_ACTIVE_STREAM_HASH = ConstExprHashingUtils::HashString("ANOTHER_ACTIVE_STREAM"); + static constexpr uint32_t DOMAIN_NOT_ACTIVE_HASH = ConstExprHashingUtils::HashString("DOMAIN_NOT_ACTIVE"); + static constexpr uint32_t CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT_HASH = ConstExprHashingUtils::HashString("CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT"); + static constexpr uint32_t ENROLLMENT_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ENROLLMENT_ALREADY_EXISTS"); + static constexpr uint32_t SPEAKER_NOT_SET_HASH = ConstExprHashingUtils::HashString("SPEAKER_NOT_SET"); + static constexpr uint32_t SPEAKER_OPTED_OUT_HASH = ConstExprHashingUtils::HashString("SPEAKER_OPTED_OUT"); + static constexpr uint32_t CONCURRENT_CHANGES_HASH = ConstExprHashingUtils::HashString("CONCURRENT_CHANGES"); + static constexpr uint32_t DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES_HASH = ConstExprHashingUtils::HashString("DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES"); + static constexpr uint32_t CANNOT_DELETE_NON_EMPTY_WATCHLIST_HASH = ConstExprHashingUtils::HashString("CANNOT_DELETE_NON_EMPTY_WATCHLIST"); + static constexpr uint32_t FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST_HASH = ConstExprHashingUtils::HashString("FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST"); ConflictType GetConflictTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ANOTHER_ACTIVE_STREAM_HASH) { return ConflictType::ANOTHER_ACTIVE_STREAM; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/DomainStatus.cpp index 7ce7d6a738b..022d8f7ae8b 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/DomainStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DomainStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DomainStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/DuplicateRegistrationAction.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/DuplicateRegistrationAction.cpp index 71b9fe4bf37..a3a06b10e22 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/DuplicateRegistrationAction.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/DuplicateRegistrationAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DuplicateRegistrationActionMapper { - static const int SKIP_HASH = HashingUtils::HashString("SKIP"); - static const int REGISTER_AS_NEW_HASH = HashingUtils::HashString("REGISTER_AS_NEW"); + static constexpr uint32_t SKIP_HASH = ConstExprHashingUtils::HashString("SKIP"); + static constexpr uint32_t REGISTER_AS_NEW_HASH = ConstExprHashingUtils::HashString("REGISTER_AS_NEW"); DuplicateRegistrationAction GetDuplicateRegistrationActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SKIP_HASH) { return DuplicateRegistrationAction::SKIP; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/ExistingEnrollmentAction.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/ExistingEnrollmentAction.cpp index bcc1fcd3832..8e8609e4531 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/ExistingEnrollmentAction.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/ExistingEnrollmentAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ExistingEnrollmentActionMapper { - static const int SKIP_HASH = HashingUtils::HashString("SKIP"); - static const int OVERWRITE_HASH = HashingUtils::HashString("OVERWRITE"); + static constexpr uint32_t SKIP_HASH = ConstExprHashingUtils::HashString("SKIP"); + static constexpr uint32_t OVERWRITE_HASH = ConstExprHashingUtils::HashString("OVERWRITE"); ExistingEnrollmentAction GetExistingEnrollmentActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SKIP_HASH) { return ExistingEnrollmentAction::SKIP; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionAction.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionAction.cpp index 8d8c7a91df0..16408f66b7b 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionAction.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FraudDetectionActionMapper { - static const int IGNORE_HASH = HashingUtils::HashString("IGNORE"); - static const int FAIL_HASH = HashingUtils::HashString("FAIL"); + static constexpr uint32_t IGNORE_HASH = ConstExprHashingUtils::HashString("IGNORE"); + static constexpr uint32_t FAIL_HASH = ConstExprHashingUtils::HashString("FAIL"); FraudDetectionAction GetFraudDetectionActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IGNORE_HASH) { return FraudDetectionAction::IGNORE; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionDecision.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionDecision.cpp index cfb684b708a..0b261ce323a 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionDecision.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionDecision.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FraudDetectionDecisionMapper { - static const int HIGH_RISK_HASH = HashingUtils::HashString("HIGH_RISK"); - static const int LOW_RISK_HASH = HashingUtils::HashString("LOW_RISK"); - static const int NOT_ENOUGH_SPEECH_HASH = HashingUtils::HashString("NOT_ENOUGH_SPEECH"); + static constexpr uint32_t HIGH_RISK_HASH = ConstExprHashingUtils::HashString("HIGH_RISK"); + static constexpr uint32_t LOW_RISK_HASH = ConstExprHashingUtils::HashString("LOW_RISK"); + static constexpr uint32_t NOT_ENOUGH_SPEECH_HASH = ConstExprHashingUtils::HashString("NOT_ENOUGH_SPEECH"); FraudDetectionDecision GetFraudDetectionDecisionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_RISK_HASH) { return FraudDetectionDecision::HIGH_RISK; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionReason.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionReason.cpp index d4edbdd923c..d9d7e8e805d 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionReason.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudDetectionReason.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FraudDetectionReasonMapper { - static const int KNOWN_FRAUDSTER_HASH = HashingUtils::HashString("KNOWN_FRAUDSTER"); - static const int VOICE_SPOOFING_HASH = HashingUtils::HashString("VOICE_SPOOFING"); + static constexpr uint32_t KNOWN_FRAUDSTER_HASH = ConstExprHashingUtils::HashString("KNOWN_FRAUDSTER"); + static constexpr uint32_t VOICE_SPOOFING_HASH = ConstExprHashingUtils::HashString("VOICE_SPOOFING"); FraudDetectionReason GetFraudDetectionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KNOWN_FRAUDSTER_HASH) { return FraudDetectionReason::KNOWN_FRAUDSTER; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudsterRegistrationJobStatus.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudsterRegistrationJobStatus.cpp index eacc5520a05..05f3cdc95aa 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/FraudsterRegistrationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/FraudsterRegistrationJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FraudsterRegistrationJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_ERRORS_HASH = HashingUtils::HashString("COMPLETED_WITH_ERRORS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ERRORS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); FraudsterRegistrationJobStatus GetFraudsterRegistrationJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return FraudsterRegistrationJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/ResourceType.cpp index e64cfc16c94..30a02f42305 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/ResourceType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ResourceTypeMapper { - static const int BATCH_JOB_HASH = HashingUtils::HashString("BATCH_JOB"); - static const int COMPLIANCE_CONSENT_HASH = HashingUtils::HashString("COMPLIANCE_CONSENT"); - static const int DOMAIN__HASH = HashingUtils::HashString("DOMAIN"); - static const int FRAUDSTER_HASH = HashingUtils::HashString("FRAUDSTER"); - static const int SESSION_HASH = HashingUtils::HashString("SESSION"); - static const int SPEAKER_HASH = HashingUtils::HashString("SPEAKER"); - static const int WATCHLIST_HASH = HashingUtils::HashString("WATCHLIST"); + static constexpr uint32_t BATCH_JOB_HASH = ConstExprHashingUtils::HashString("BATCH_JOB"); + static constexpr uint32_t COMPLIANCE_CONSENT_HASH = ConstExprHashingUtils::HashString("COMPLIANCE_CONSENT"); + static constexpr uint32_t DOMAIN__HASH = ConstExprHashingUtils::HashString("DOMAIN"); + static constexpr uint32_t FRAUDSTER_HASH = ConstExprHashingUtils::HashString("FRAUDSTER"); + static constexpr uint32_t SESSION_HASH = ConstExprHashingUtils::HashString("SESSION"); + static constexpr uint32_t SPEAKER_HASH = ConstExprHashingUtils::HashString("SPEAKER"); + static constexpr uint32_t WATCHLIST_HASH = ConstExprHashingUtils::HashString("WATCHLIST"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BATCH_JOB_HASH) { return ResourceType::BATCH_JOB; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/ServerSideEncryptionUpdateStatus.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/ServerSideEncryptionUpdateStatus.cpp index 7e7d4863aa6..e3aff6c64f1 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/ServerSideEncryptionUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/ServerSideEncryptionUpdateStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ServerSideEncryptionUpdateStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ServerSideEncryptionUpdateStatus GetServerSideEncryptionUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ServerSideEncryptionUpdateStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerEnrollmentJobStatus.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerEnrollmentJobStatus.cpp index cfd8b033645..55898f2b16d 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerEnrollmentJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerEnrollmentJobStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace SpeakerEnrollmentJobStatusMapper { - static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int COMPLETED_WITH_ERRORS_HASH = HashingUtils::HashString("COMPLETED_WITH_ERRORS"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t SUBMITTED_HASH = ConstExprHashingUtils::HashString("SUBMITTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t COMPLETED_WITH_ERRORS_HASH = ConstExprHashingUtils::HashString("COMPLETED_WITH_ERRORS"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); SpeakerEnrollmentJobStatus GetSpeakerEnrollmentJobStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUBMITTED_HASH) { return SpeakerEnrollmentJobStatus::SUBMITTED; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerStatus.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerStatus.cpp index 1b73d341173..e4b3816f1d0 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerStatus.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/SpeakerStatus.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SpeakerStatusMapper { - static const int ENROLLED_HASH = HashingUtils::HashString("ENROLLED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int OPTED_OUT_HASH = HashingUtils::HashString("OPTED_OUT"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t ENROLLED_HASH = ConstExprHashingUtils::HashString("ENROLLED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t OPTED_OUT_HASH = ConstExprHashingUtils::HashString("OPTED_OUT"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); SpeakerStatus GetSpeakerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENROLLED_HASH) { return SpeakerStatus::ENROLLED; diff --git a/generated/src/aws-cpp-sdk-voice-id/source/model/StreamingStatus.cpp b/generated/src/aws-cpp-sdk-voice-id/source/model/StreamingStatus.cpp index 02e18d6c6d3..bbf9144e5dc 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/model/StreamingStatus.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/model/StreamingStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace StreamingStatusMapper { - static const int PENDING_CONFIGURATION_HASH = HashingUtils::HashString("PENDING_CONFIGURATION"); - static const int ONGOING_HASH = HashingUtils::HashString("ONGOING"); - static const int ENDED_HASH = HashingUtils::HashString("ENDED"); + static constexpr uint32_t PENDING_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("PENDING_CONFIGURATION"); + static constexpr uint32_t ONGOING_HASH = ConstExprHashingUtils::HashString("ONGOING"); + static constexpr uint32_t ENDED_HASH = ConstExprHashingUtils::HashString("ENDED"); StreamingStatus GetStreamingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_CONFIGURATION_HASH) { return StreamingStatus::PENDING_CONFIGURATION; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeErrors.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeErrors.cpp index cd04c74194a..f80c4dbbdec 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeErrors.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeErrors.cpp @@ -61,14 +61,14 @@ template<> AWS_VPCLATTICE_API ValidationException VPCLatticeError::GetModeledErr namespace VPCLatticeErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthPolicyState.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthPolicyState.cpp index 285b95d4fef..8a71080d212 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthPolicyState.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthPolicyState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthPolicyStateMapper { - static const int Active_HASH = HashingUtils::HashString("Active"); - static const int Inactive_HASH = HashingUtils::HashString("Inactive"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); + static constexpr uint32_t Inactive_HASH = ConstExprHashingUtils::HashString("Inactive"); AuthPolicyState GetAuthPolicyStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Active_HASH) { return AuthPolicyState::Active; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthType.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthType.cpp index 17e1d7dd204..f2835f9e6ad 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthType.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/AuthType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int AWS_IAM_HASH = HashingUtils::HashString("AWS_IAM"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t AWS_IAM_HASH = ConstExprHashingUtils::HashString("AWS_IAM"); AuthType GetAuthTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return AuthType::NONE; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/HealthCheckProtocolVersion.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/HealthCheckProtocolVersion.cpp index b96f4925c84..29c0fedbef8 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/HealthCheckProtocolVersion.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/HealthCheckProtocolVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace HealthCheckProtocolVersionMapper { - static const int HTTP1_HASH = HashingUtils::HashString("HTTP1"); - static const int HTTP2_HASH = HashingUtils::HashString("HTTP2"); + static constexpr uint32_t HTTP1_HASH = ConstExprHashingUtils::HashString("HTTP1"); + static constexpr uint32_t HTTP2_HASH = ConstExprHashingUtils::HashString("HTTP2"); HealthCheckProtocolVersion GetHealthCheckProtocolVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP1_HASH) { return HealthCheckProtocolVersion::HTTP1; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/IpAddressType.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/IpAddressType.cpp index 9233b4962c9..4923f13f02f 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/IpAddressType.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/IpAddressType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IpAddressTypeMapper { - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); IpAddressType GetIpAddressTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_HASH) { return IpAddressType::IPV4; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/LambdaEventStructureVersion.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/LambdaEventStructureVersion.cpp index b31e91ec6ae..1dfcca31dfa 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/LambdaEventStructureVersion.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/LambdaEventStructureVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LambdaEventStructureVersionMapper { - static const int V1_HASH = HashingUtils::HashString("V1"); - static const int V2_HASH = HashingUtils::HashString("V2"); + static constexpr uint32_t V1_HASH = ConstExprHashingUtils::HashString("V1"); + static constexpr uint32_t V2_HASH = ConstExprHashingUtils::HashString("V2"); LambdaEventStructureVersion GetLambdaEventStructureVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == V1_HASH) { return LambdaEventStructureVersion::V1; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ListenerProtocol.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ListenerProtocol.cpp index dd2799b1843..74e57ef26fe 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ListenerProtocol.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ListenerProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ListenerProtocolMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); ListenerProtocol GetListenerProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return ListenerProtocol::HTTP; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkServiceAssociationStatus.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkServiceAssociationStatus.cpp index 3bb3def3a57..a8471cb8f6c 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkServiceAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkServiceAssociationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServiceNetworkServiceAssociationStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ServiceNetworkServiceAssociationStatus GetServiceNetworkServiceAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ServiceNetworkServiceAssociationStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkVpcAssociationStatus.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkVpcAssociationStatus.cpp index a78768946a1..dad6a414dd7 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkVpcAssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceNetworkVpcAssociationStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ServiceNetworkVpcAssociationStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ServiceNetworkVpcAssociationStatus GetServiceNetworkVpcAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ServiceNetworkVpcAssociationStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceStatus.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceStatus.cpp index df25a4f688e..74f2f096aab 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceStatus.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ServiceStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ServiceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); ServiceStatus GetServiceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ServiceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocol.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocol.cpp index 47017444de6..ed55c4deadc 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocol.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetGroupProtocolMapper { - static const int HTTP_HASH = HashingUtils::HashString("HTTP"); - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); + static constexpr uint32_t HTTP_HASH = ConstExprHashingUtils::HashString("HTTP"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); TargetGroupProtocol GetTargetGroupProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP_HASH) { return TargetGroupProtocol::HTTP; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocolVersion.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocolVersion.cpp index 789da5bd4fa..38406ed4901 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocolVersion.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupProtocolVersion.cpp @@ -20,14 +20,14 @@ namespace Aws namespace TargetGroupProtocolVersionMapper { - static const int HTTP1_HASH = HashingUtils::HashString("HTTP1"); - static const int HTTP2_HASH = HashingUtils::HashString("HTTP2"); - static const int GRPC_HASH = HashingUtils::HashString("GRPC"); + static constexpr uint32_t HTTP1_HASH = ConstExprHashingUtils::HashString("HTTP1"); + static constexpr uint32_t HTTP2_HASH = ConstExprHashingUtils::HashString("HTTP2"); + static constexpr uint32_t GRPC_HASH = ConstExprHashingUtils::HashString("GRPC"); TargetGroupProtocolVersion GetTargetGroupProtocolVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTP1_HASH) { return TargetGroupProtocolVersion::HTTP1; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupStatus.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupStatus.cpp index 85000864ea7..93b334ee0f0 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupStatus.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace TargetGroupStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); TargetGroupStatus GetTargetGroupStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return TargetGroupStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupType.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupType.cpp index 5694965f92d..c6cadc85de6 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupType.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetGroupType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace TargetGroupTypeMapper { - static const int IP_HASH = HashingUtils::HashString("IP"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); - static const int INSTANCE_HASH = HashingUtils::HashString("INSTANCE"); - static const int ALB_HASH = HashingUtils::HashString("ALB"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); + static constexpr uint32_t INSTANCE_HASH = ConstExprHashingUtils::HashString("INSTANCE"); + static constexpr uint32_t ALB_HASH = ConstExprHashingUtils::HashString("ALB"); TargetGroupType GetTargetGroupTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_HASH) { return TargetGroupType::IP; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetStatus.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetStatus.cpp index 226d269e552..f37af43a750 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetStatus.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/TargetStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TargetStatusMapper { - static const int DRAINING_HASH = HashingUtils::HashString("DRAINING"); - static const int UNAVAILABLE_HASH = HashingUtils::HashString("UNAVAILABLE"); - static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int INITIAL_HASH = HashingUtils::HashString("INITIAL"); - static const int UNUSED_HASH = HashingUtils::HashString("UNUSED"); + static constexpr uint32_t DRAINING_HASH = ConstExprHashingUtils::HashString("DRAINING"); + static constexpr uint32_t UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("UNAVAILABLE"); + static constexpr uint32_t HEALTHY_HASH = ConstExprHashingUtils::HashString("HEALTHY"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t INITIAL_HASH = ConstExprHashingUtils::HashString("INITIAL"); + static constexpr uint32_t UNUSED_HASH = ConstExprHashingUtils::HashString("UNUSED"); TargetStatus GetTargetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAINING_HASH) { return TargetStatus::DRAINING; diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ValidationExceptionReason.cpp index 8810b30639b..d0a42af72f0 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalErrors.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalErrors.cpp index bce6795e140..76158286c7a 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalErrors.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalErrors.cpp @@ -33,31 +33,31 @@ template<> AWS_WAFREGIONAL_API WAFEntityMigrationException WAFRegionalError::Get namespace WAFRegionalErrorMapper { -static const int W_A_F_UNAVAILABLE_ENTITY_HASH = HashingUtils::HashString("WAFUnavailableEntityException"); -static const int W_A_F_LIMITS_EXCEEDED_HASH = HashingUtils::HashString("WAFLimitsExceededException"); -static const int W_A_F_REFERENCED_ITEM_HASH = HashingUtils::HashString("WAFReferencedItemException"); -static const int W_A_F_NON_EMPTY_ENTITY_HASH = HashingUtils::HashString("WAFNonEmptyEntityException"); -static const int W_A_F_BAD_REQUEST_HASH = HashingUtils::HashString("WAFBadRequestException"); -static const int W_A_F_INVALID_PARAMETER_HASH = HashingUtils::HashString("WAFInvalidParameterException"); -static const int W_A_F_INVALID_OPERATION_HASH = HashingUtils::HashString("WAFInvalidOperationException"); -static const int W_A_F_DISALLOWED_NAME_HASH = HashingUtils::HashString("WAFDisallowedNameException"); -static const int W_A_F_NONEXISTENT_CONTAINER_HASH = HashingUtils::HashString("WAFNonexistentContainerException"); -static const int W_A_F_SUBSCRIPTION_NOT_FOUND_HASH = HashingUtils::HashString("WAFSubscriptionNotFoundException"); -static const int W_A_F_ENTITY_MIGRATION_HASH = HashingUtils::HashString("WAFEntityMigrationException"); -static const int W_A_F_INTERNAL_ERROR_HASH = HashingUtils::HashString("WAFInternalErrorException"); -static const int W_A_F_TAG_OPERATION_HASH = HashingUtils::HashString("WAFTagOperationException"); -static const int W_A_F_INVALID_PERMISSION_POLICY_HASH = HashingUtils::HashString("WAFInvalidPermissionPolicyException"); -static const int W_A_F_NONEXISTENT_ITEM_HASH = HashingUtils::HashString("WAFNonexistentItemException"); -static const int W_A_F_INVALID_ACCOUNT_HASH = HashingUtils::HashString("WAFInvalidAccountException"); -static const int W_A_F_STALE_DATA_HASH = HashingUtils::HashString("WAFStaleDataException"); -static const int W_A_F_INVALID_REGEX_PATTERN_HASH = HashingUtils::HashString("WAFInvalidRegexPatternException"); -static const int W_A_F_TAG_OPERATION_INTERNAL_ERROR_HASH = HashingUtils::HashString("WAFTagOperationInternalErrorException"); -static const int W_A_F_SERVICE_LINKED_ROLE_ERROR_HASH = HashingUtils::HashString("WAFServiceLinkedRoleErrorException"); +static constexpr uint32_t W_A_F_UNAVAILABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("WAFUnavailableEntityException"); +static constexpr uint32_t W_A_F_LIMITS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("WAFLimitsExceededException"); +static constexpr uint32_t W_A_F_REFERENCED_ITEM_HASH = ConstExprHashingUtils::HashString("WAFReferencedItemException"); +static constexpr uint32_t W_A_F_NON_EMPTY_ENTITY_HASH = ConstExprHashingUtils::HashString("WAFNonEmptyEntityException"); +static constexpr uint32_t W_A_F_BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("WAFBadRequestException"); +static constexpr uint32_t W_A_F_INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("WAFInvalidParameterException"); +static constexpr uint32_t W_A_F_INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("WAFInvalidOperationException"); +static constexpr uint32_t W_A_F_DISALLOWED_NAME_HASH = ConstExprHashingUtils::HashString("WAFDisallowedNameException"); +static constexpr uint32_t W_A_F_NONEXISTENT_CONTAINER_HASH = ConstExprHashingUtils::HashString("WAFNonexistentContainerException"); +static constexpr uint32_t W_A_F_SUBSCRIPTION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("WAFSubscriptionNotFoundException"); +static constexpr uint32_t W_A_F_ENTITY_MIGRATION_HASH = ConstExprHashingUtils::HashString("WAFEntityMigrationException"); +static constexpr uint32_t W_A_F_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("WAFInternalErrorException"); +static constexpr uint32_t W_A_F_TAG_OPERATION_HASH = ConstExprHashingUtils::HashString("WAFTagOperationException"); +static constexpr uint32_t W_A_F_INVALID_PERMISSION_POLICY_HASH = ConstExprHashingUtils::HashString("WAFInvalidPermissionPolicyException"); +static constexpr uint32_t W_A_F_NONEXISTENT_ITEM_HASH = ConstExprHashingUtils::HashString("WAFNonexistentItemException"); +static constexpr uint32_t W_A_F_INVALID_ACCOUNT_HASH = ConstExprHashingUtils::HashString("WAFInvalidAccountException"); +static constexpr uint32_t W_A_F_STALE_DATA_HASH = ConstExprHashingUtils::HashString("WAFStaleDataException"); +static constexpr uint32_t W_A_F_INVALID_REGEX_PATTERN_HASH = ConstExprHashingUtils::HashString("WAFInvalidRegexPatternException"); +static constexpr uint32_t W_A_F_TAG_OPERATION_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("WAFTagOperationInternalErrorException"); +static constexpr uint32_t W_A_F_SERVICE_LINKED_ROLE_ERROR_HASH = ConstExprHashingUtils::HashString("WAFServiceLinkedRoleErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == W_A_F_UNAVAILABLE_ENTITY_HASH) { diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeAction.cpp index c25aa37e118..c6a056edc55 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeActionMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return ChangeAction::INSERT; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeTokenStatus.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeTokenStatus.cpp index 4fd662ebb3f..f1408211fc6 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeTokenStatus.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/ChangeTokenStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeTokenStatusMapper { - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int INSYNC_HASH = HashingUtils::HashString("INSYNC"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t INSYNC_HASH = ConstExprHashingUtils::HashString("INSYNC"); ChangeTokenStatus GetChangeTokenStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONED_HASH) { return ChangeTokenStatus::PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/ComparisonOperator.cpp index 1d66465c13e..c71351b1b6d 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/ComparisonOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int GT_HASH = HashingUtils::HashString("GT"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return ComparisonOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintType.cpp index 3c32450aac9..2f04032b1ae 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GeoMatchConstraintTypeMapper { - static const int Country_HASH = HashingUtils::HashString("Country"); + static constexpr uint32_t Country_HASH = ConstExprHashingUtils::HashString("Country"); GeoMatchConstraintType GetGeoMatchConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Country_HASH) { return GeoMatchConstraintType::Country; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintValue.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintValue.cpp index cc6a922ff0d..6c83c9c2082 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintValue.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/GeoMatchConstraintValue.cpp @@ -20,262 +20,262 @@ namespace Aws namespace GeoMatchConstraintValueMapper { - static const int AF_HASH = HashingUtils::HashString("AF"); - static const int AX_HASH = HashingUtils::HashString("AX"); - static const int AL_HASH = HashingUtils::HashString("AL"); - static const int DZ_HASH = HashingUtils::HashString("DZ"); - static const int AS_HASH = HashingUtils::HashString("AS"); - static const int AD_HASH = HashingUtils::HashString("AD"); - static const int AO_HASH = HashingUtils::HashString("AO"); - static const int AI_HASH = HashingUtils::HashString("AI"); - static const int AQ_HASH = HashingUtils::HashString("AQ"); - static const int AG_HASH = HashingUtils::HashString("AG"); - static const int AR_HASH = HashingUtils::HashString("AR"); - static const int AM_HASH = HashingUtils::HashString("AM"); - static const int AW_HASH = HashingUtils::HashString("AW"); - static const int AU_HASH = HashingUtils::HashString("AU"); - static const int AT_HASH = HashingUtils::HashString("AT"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int BS_HASH = HashingUtils::HashString("BS"); - static const int BH_HASH = HashingUtils::HashString("BH"); - static const int BD_HASH = HashingUtils::HashString("BD"); - static const int BB_HASH = HashingUtils::HashString("BB"); - static const int BY_HASH = HashingUtils::HashString("BY"); - static const int BE_HASH = HashingUtils::HashString("BE"); - static const int BZ_HASH = HashingUtils::HashString("BZ"); - static const int BJ_HASH = HashingUtils::HashString("BJ"); - static const int BM_HASH = HashingUtils::HashString("BM"); - static const int BT_HASH = HashingUtils::HashString("BT"); - static const int BO_HASH = HashingUtils::HashString("BO"); - static const int BQ_HASH = HashingUtils::HashString("BQ"); - static const int BA_HASH = HashingUtils::HashString("BA"); - static const int BW_HASH = HashingUtils::HashString("BW"); - static const int BV_HASH = HashingUtils::HashString("BV"); - static const int BR_HASH = HashingUtils::HashString("BR"); - static const int IO_HASH = HashingUtils::HashString("IO"); - static const int BN_HASH = HashingUtils::HashString("BN"); - static const int BG_HASH = HashingUtils::HashString("BG"); - static const int BF_HASH = HashingUtils::HashString("BF"); - static const int BI_HASH = HashingUtils::HashString("BI"); - static const int KH_HASH = HashingUtils::HashString("KH"); - static const int CM_HASH = HashingUtils::HashString("CM"); - static const int CA_HASH = HashingUtils::HashString("CA"); - static const int CV_HASH = HashingUtils::HashString("CV"); - static const int KY_HASH = HashingUtils::HashString("KY"); - static const int CF_HASH = HashingUtils::HashString("CF"); - static const int TD_HASH = HashingUtils::HashString("TD"); - static const int CL_HASH = HashingUtils::HashString("CL"); - static const int CN_HASH = HashingUtils::HashString("CN"); - static const int CX_HASH = HashingUtils::HashString("CX"); - static const int CC_HASH = HashingUtils::HashString("CC"); - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int KM_HASH = HashingUtils::HashString("KM"); - static const int CG_HASH = HashingUtils::HashString("CG"); - static const int CD_HASH = HashingUtils::HashString("CD"); - static const int CK_HASH = HashingUtils::HashString("CK"); - static const int CR_HASH = HashingUtils::HashString("CR"); - static const int CI_HASH = HashingUtils::HashString("CI"); - static const int HR_HASH = HashingUtils::HashString("HR"); - static const int CU_HASH = HashingUtils::HashString("CU"); - static const int CW_HASH = HashingUtils::HashString("CW"); - static const int CY_HASH = HashingUtils::HashString("CY"); - static const int CZ_HASH = HashingUtils::HashString("CZ"); - static const int DK_HASH = HashingUtils::HashString("DK"); - static const int DJ_HASH = HashingUtils::HashString("DJ"); - static const int DM_HASH = HashingUtils::HashString("DM"); - static const int DO_HASH = HashingUtils::HashString("DO"); - static const int EC_HASH = HashingUtils::HashString("EC"); - static const int EG_HASH = HashingUtils::HashString("EG"); - static const int SV_HASH = HashingUtils::HashString("SV"); - static const int GQ_HASH = HashingUtils::HashString("GQ"); - static const int ER_HASH = HashingUtils::HashString("ER"); - static const int EE_HASH = HashingUtils::HashString("EE"); - static const int ET_HASH = HashingUtils::HashString("ET"); - static const int FK_HASH = HashingUtils::HashString("FK"); - static const int FO_HASH = HashingUtils::HashString("FO"); - static const int FJ_HASH = HashingUtils::HashString("FJ"); - static const int FI_HASH = HashingUtils::HashString("FI"); - static const int FR_HASH = HashingUtils::HashString("FR"); - static const int GF_HASH = HashingUtils::HashString("GF"); - static const int PF_HASH = HashingUtils::HashString("PF"); - static const int TF_HASH = HashingUtils::HashString("TF"); - static const int GA_HASH = HashingUtils::HashString("GA"); - static const int GM_HASH = HashingUtils::HashString("GM"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int GH_HASH = HashingUtils::HashString("GH"); - static const int GI_HASH = HashingUtils::HashString("GI"); - static const int GR_HASH = HashingUtils::HashString("GR"); - static const int GL_HASH = HashingUtils::HashString("GL"); - static const int GD_HASH = HashingUtils::HashString("GD"); - static const int GP_HASH = HashingUtils::HashString("GP"); - static const int GU_HASH = HashingUtils::HashString("GU"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GG_HASH = HashingUtils::HashString("GG"); - static const int GN_HASH = HashingUtils::HashString("GN"); - static const int GW_HASH = HashingUtils::HashString("GW"); - static const int GY_HASH = HashingUtils::HashString("GY"); - static const int HT_HASH = HashingUtils::HashString("HT"); - static const int HM_HASH = HashingUtils::HashString("HM"); - static const int VA_HASH = HashingUtils::HashString("VA"); - static const int HN_HASH = HashingUtils::HashString("HN"); - static const int HK_HASH = HashingUtils::HashString("HK"); - static const int HU_HASH = HashingUtils::HashString("HU"); - static const int IS_HASH = HashingUtils::HashString("IS"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int IR_HASH = HashingUtils::HashString("IR"); - static const int IQ_HASH = HashingUtils::HashString("IQ"); - static const int IE_HASH = HashingUtils::HashString("IE"); - static const int IM_HASH = HashingUtils::HashString("IM"); - static const int IL_HASH = HashingUtils::HashString("IL"); - static const int IT_HASH = HashingUtils::HashString("IT"); - static const int JM_HASH = HashingUtils::HashString("JM"); - static const int JP_HASH = HashingUtils::HashString("JP"); - static const int JE_HASH = HashingUtils::HashString("JE"); - static const int JO_HASH = HashingUtils::HashString("JO"); - static const int KZ_HASH = HashingUtils::HashString("KZ"); - static const int KE_HASH = HashingUtils::HashString("KE"); - static const int KI_HASH = HashingUtils::HashString("KI"); - static const int KP_HASH = HashingUtils::HashString("KP"); - static const int KR_HASH = HashingUtils::HashString("KR"); - static const int KW_HASH = HashingUtils::HashString("KW"); - static const int KG_HASH = HashingUtils::HashString("KG"); - static const int LA_HASH = HashingUtils::HashString("LA"); - static const int LV_HASH = HashingUtils::HashString("LV"); - static const int LB_HASH = HashingUtils::HashString("LB"); - static const int LS_HASH = HashingUtils::HashString("LS"); - static const int LR_HASH = HashingUtils::HashString("LR"); - static const int LY_HASH = HashingUtils::HashString("LY"); - static const int LI_HASH = HashingUtils::HashString("LI"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LU_HASH = HashingUtils::HashString("LU"); - static const int MO_HASH = HashingUtils::HashString("MO"); - static const int MK_HASH = HashingUtils::HashString("MK"); - static const int MG_HASH = HashingUtils::HashString("MG"); - static const int MW_HASH = HashingUtils::HashString("MW"); - static const int MY_HASH = HashingUtils::HashString("MY"); - static const int MV_HASH = HashingUtils::HashString("MV"); - static const int ML_HASH = HashingUtils::HashString("ML"); - static const int MT_HASH = HashingUtils::HashString("MT"); - static const int MH_HASH = HashingUtils::HashString("MH"); - static const int MQ_HASH = HashingUtils::HashString("MQ"); - static const int MR_HASH = HashingUtils::HashString("MR"); - static const int MU_HASH = HashingUtils::HashString("MU"); - static const int YT_HASH = HashingUtils::HashString("YT"); - static const int MX_HASH = HashingUtils::HashString("MX"); - static const int FM_HASH = HashingUtils::HashString("FM"); - static const int MD_HASH = HashingUtils::HashString("MD"); - static const int MC_HASH = HashingUtils::HashString("MC"); - static const int MN_HASH = HashingUtils::HashString("MN"); - static const int ME_HASH = HashingUtils::HashString("ME"); - static const int MS_HASH = HashingUtils::HashString("MS"); - static const int MA_HASH = HashingUtils::HashString("MA"); - static const int MZ_HASH = HashingUtils::HashString("MZ"); - static const int MM_HASH = HashingUtils::HashString("MM"); - static const int NA_HASH = HashingUtils::HashString("NA"); - static const int NR_HASH = HashingUtils::HashString("NR"); - static const int NP_HASH = HashingUtils::HashString("NP"); - static const int NL_HASH = HashingUtils::HashString("NL"); - static const int NC_HASH = HashingUtils::HashString("NC"); - static const int NZ_HASH = HashingUtils::HashString("NZ"); - static const int NI_HASH = HashingUtils::HashString("NI"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int NG_HASH = HashingUtils::HashString("NG"); - static const int NU_HASH = HashingUtils::HashString("NU"); - static const int NF_HASH = HashingUtils::HashString("NF"); - static const int MP_HASH = HashingUtils::HashString("MP"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int OM_HASH = HashingUtils::HashString("OM"); - static const int PK_HASH = HashingUtils::HashString("PK"); - static const int PW_HASH = HashingUtils::HashString("PW"); - static const int PS_HASH = HashingUtils::HashString("PS"); - static const int PA_HASH = HashingUtils::HashString("PA"); - static const int PG_HASH = HashingUtils::HashString("PG"); - static const int PY_HASH = HashingUtils::HashString("PY"); - static const int PE_HASH = HashingUtils::HashString("PE"); - static const int PH_HASH = HashingUtils::HashString("PH"); - static const int PN_HASH = HashingUtils::HashString("PN"); - static const int PL_HASH = HashingUtils::HashString("PL"); - static const int PT_HASH = HashingUtils::HashString("PT"); - static const int PR_HASH = HashingUtils::HashString("PR"); - static const int QA_HASH = HashingUtils::HashString("QA"); - static const int RE_HASH = HashingUtils::HashString("RE"); - static const int RO_HASH = HashingUtils::HashString("RO"); - static const int RU_HASH = HashingUtils::HashString("RU"); - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int BL_HASH = HashingUtils::HashString("BL"); - static const int SH_HASH = HashingUtils::HashString("SH"); - static const int KN_HASH = HashingUtils::HashString("KN"); - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int MF_HASH = HashingUtils::HashString("MF"); - static const int PM_HASH = HashingUtils::HashString("PM"); - static const int VC_HASH = HashingUtils::HashString("VC"); - static const int WS_HASH = HashingUtils::HashString("WS"); - static const int SM_HASH = HashingUtils::HashString("SM"); - static const int ST_HASH = HashingUtils::HashString("ST"); - static const int SA_HASH = HashingUtils::HashString("SA"); - static const int SN_HASH = HashingUtils::HashString("SN"); - static const int RS_HASH = HashingUtils::HashString("RS"); - static const int SC_HASH = HashingUtils::HashString("SC"); - static const int SL_HASH = HashingUtils::HashString("SL"); - static const int SG_HASH = HashingUtils::HashString("SG"); - static const int SX_HASH = HashingUtils::HashString("SX"); - static const int SK_HASH = HashingUtils::HashString("SK"); - static const int SI_HASH = HashingUtils::HashString("SI"); - static const int SB_HASH = HashingUtils::HashString("SB"); - static const int SO_HASH = HashingUtils::HashString("SO"); - static const int ZA_HASH = HashingUtils::HashString("ZA"); - static const int GS_HASH = HashingUtils::HashString("GS"); - static const int SS_HASH = HashingUtils::HashString("SS"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int LK_HASH = HashingUtils::HashString("LK"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int SR_HASH = HashingUtils::HashString("SR"); - static const int SJ_HASH = HashingUtils::HashString("SJ"); - static const int SZ_HASH = HashingUtils::HashString("SZ"); - static const int SE_HASH = HashingUtils::HashString("SE"); - static const int CH_HASH = HashingUtils::HashString("CH"); - static const int SY_HASH = HashingUtils::HashString("SY"); - static const int TW_HASH = HashingUtils::HashString("TW"); - static const int TJ_HASH = HashingUtils::HashString("TJ"); - static const int TZ_HASH = HashingUtils::HashString("TZ"); - static const int TH_HASH = HashingUtils::HashString("TH"); - static const int TL_HASH = HashingUtils::HashString("TL"); - static const int TG_HASH = HashingUtils::HashString("TG"); - static const int TK_HASH = HashingUtils::HashString("TK"); - static const int TO_HASH = HashingUtils::HashString("TO"); - static const int TT_HASH = HashingUtils::HashString("TT"); - static const int TN_HASH = HashingUtils::HashString("TN"); - static const int TR_HASH = HashingUtils::HashString("TR"); - static const int TM_HASH = HashingUtils::HashString("TM"); - static const int TC_HASH = HashingUtils::HashString("TC"); - static const int TV_HASH = HashingUtils::HashString("TV"); - static const int UG_HASH = HashingUtils::HashString("UG"); - static const int UA_HASH = HashingUtils::HashString("UA"); - static const int AE_HASH = HashingUtils::HashString("AE"); - static const int GB_HASH = HashingUtils::HashString("GB"); - static const int US_HASH = HashingUtils::HashString("US"); - static const int UM_HASH = HashingUtils::HashString("UM"); - static const int UY_HASH = HashingUtils::HashString("UY"); - static const int UZ_HASH = HashingUtils::HashString("UZ"); - static const int VU_HASH = HashingUtils::HashString("VU"); - static const int VE_HASH = HashingUtils::HashString("VE"); - static const int VN_HASH = HashingUtils::HashString("VN"); - static const int VG_HASH = HashingUtils::HashString("VG"); - static const int VI_HASH = HashingUtils::HashString("VI"); - static const int WF_HASH = HashingUtils::HashString("WF"); - static const int EH_HASH = HashingUtils::HashString("EH"); - static const int YE_HASH = HashingUtils::HashString("YE"); - static const int ZM_HASH = HashingUtils::HashString("ZM"); - static const int ZW_HASH = HashingUtils::HashString("ZW"); + static constexpr uint32_t AF_HASH = ConstExprHashingUtils::HashString("AF"); + static constexpr uint32_t AX_HASH = ConstExprHashingUtils::HashString("AX"); + static constexpr uint32_t AL_HASH = ConstExprHashingUtils::HashString("AL"); + static constexpr uint32_t DZ_HASH = ConstExprHashingUtils::HashString("DZ"); + static constexpr uint32_t AS_HASH = ConstExprHashingUtils::HashString("AS"); + static constexpr uint32_t AD_HASH = ConstExprHashingUtils::HashString("AD"); + static constexpr uint32_t AO_HASH = ConstExprHashingUtils::HashString("AO"); + static constexpr uint32_t AI_HASH = ConstExprHashingUtils::HashString("AI"); + static constexpr uint32_t AQ_HASH = ConstExprHashingUtils::HashString("AQ"); + static constexpr uint32_t AG_HASH = ConstExprHashingUtils::HashString("AG"); + static constexpr uint32_t AR_HASH = ConstExprHashingUtils::HashString("AR"); + static constexpr uint32_t AM_HASH = ConstExprHashingUtils::HashString("AM"); + static constexpr uint32_t AW_HASH = ConstExprHashingUtils::HashString("AW"); + static constexpr uint32_t AU_HASH = ConstExprHashingUtils::HashString("AU"); + static constexpr uint32_t AT_HASH = ConstExprHashingUtils::HashString("AT"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t BS_HASH = ConstExprHashingUtils::HashString("BS"); + static constexpr uint32_t BH_HASH = ConstExprHashingUtils::HashString("BH"); + static constexpr uint32_t BD_HASH = ConstExprHashingUtils::HashString("BD"); + static constexpr uint32_t BB_HASH = ConstExprHashingUtils::HashString("BB"); + static constexpr uint32_t BY_HASH = ConstExprHashingUtils::HashString("BY"); + static constexpr uint32_t BE_HASH = ConstExprHashingUtils::HashString("BE"); + static constexpr uint32_t BZ_HASH = ConstExprHashingUtils::HashString("BZ"); + static constexpr uint32_t BJ_HASH = ConstExprHashingUtils::HashString("BJ"); + static constexpr uint32_t BM_HASH = ConstExprHashingUtils::HashString("BM"); + static constexpr uint32_t BT_HASH = ConstExprHashingUtils::HashString("BT"); + static constexpr uint32_t BO_HASH = ConstExprHashingUtils::HashString("BO"); + static constexpr uint32_t BQ_HASH = ConstExprHashingUtils::HashString("BQ"); + static constexpr uint32_t BA_HASH = ConstExprHashingUtils::HashString("BA"); + static constexpr uint32_t BW_HASH = ConstExprHashingUtils::HashString("BW"); + static constexpr uint32_t BV_HASH = ConstExprHashingUtils::HashString("BV"); + static constexpr uint32_t BR_HASH = ConstExprHashingUtils::HashString("BR"); + static constexpr uint32_t IO_HASH = ConstExprHashingUtils::HashString("IO"); + static constexpr uint32_t BN_HASH = ConstExprHashingUtils::HashString("BN"); + static constexpr uint32_t BG_HASH = ConstExprHashingUtils::HashString("BG"); + static constexpr uint32_t BF_HASH = ConstExprHashingUtils::HashString("BF"); + static constexpr uint32_t BI_HASH = ConstExprHashingUtils::HashString("BI"); + static constexpr uint32_t KH_HASH = ConstExprHashingUtils::HashString("KH"); + static constexpr uint32_t CM_HASH = ConstExprHashingUtils::HashString("CM"); + static constexpr uint32_t CA_HASH = ConstExprHashingUtils::HashString("CA"); + static constexpr uint32_t CV_HASH = ConstExprHashingUtils::HashString("CV"); + static constexpr uint32_t KY_HASH = ConstExprHashingUtils::HashString("KY"); + static constexpr uint32_t CF_HASH = ConstExprHashingUtils::HashString("CF"); + static constexpr uint32_t TD_HASH = ConstExprHashingUtils::HashString("TD"); + static constexpr uint32_t CL_HASH = ConstExprHashingUtils::HashString("CL"); + static constexpr uint32_t CN_HASH = ConstExprHashingUtils::HashString("CN"); + static constexpr uint32_t CX_HASH = ConstExprHashingUtils::HashString("CX"); + static constexpr uint32_t CC_HASH = ConstExprHashingUtils::HashString("CC"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t KM_HASH = ConstExprHashingUtils::HashString("KM"); + static constexpr uint32_t CG_HASH = ConstExprHashingUtils::HashString("CG"); + static constexpr uint32_t CD_HASH = ConstExprHashingUtils::HashString("CD"); + static constexpr uint32_t CK_HASH = ConstExprHashingUtils::HashString("CK"); + static constexpr uint32_t CR_HASH = ConstExprHashingUtils::HashString("CR"); + static constexpr uint32_t CI_HASH = ConstExprHashingUtils::HashString("CI"); + static constexpr uint32_t HR_HASH = ConstExprHashingUtils::HashString("HR"); + static constexpr uint32_t CU_HASH = ConstExprHashingUtils::HashString("CU"); + static constexpr uint32_t CW_HASH = ConstExprHashingUtils::HashString("CW"); + static constexpr uint32_t CY_HASH = ConstExprHashingUtils::HashString("CY"); + static constexpr uint32_t CZ_HASH = ConstExprHashingUtils::HashString("CZ"); + static constexpr uint32_t DK_HASH = ConstExprHashingUtils::HashString("DK"); + static constexpr uint32_t DJ_HASH = ConstExprHashingUtils::HashString("DJ"); + static constexpr uint32_t DM_HASH = ConstExprHashingUtils::HashString("DM"); + static constexpr uint32_t DO_HASH = ConstExprHashingUtils::HashString("DO"); + static constexpr uint32_t EC_HASH = ConstExprHashingUtils::HashString("EC"); + static constexpr uint32_t EG_HASH = ConstExprHashingUtils::HashString("EG"); + static constexpr uint32_t SV_HASH = ConstExprHashingUtils::HashString("SV"); + static constexpr uint32_t GQ_HASH = ConstExprHashingUtils::HashString("GQ"); + static constexpr uint32_t ER_HASH = ConstExprHashingUtils::HashString("ER"); + static constexpr uint32_t EE_HASH = ConstExprHashingUtils::HashString("EE"); + static constexpr uint32_t ET_HASH = ConstExprHashingUtils::HashString("ET"); + static constexpr uint32_t FK_HASH = ConstExprHashingUtils::HashString("FK"); + static constexpr uint32_t FO_HASH = ConstExprHashingUtils::HashString("FO"); + static constexpr uint32_t FJ_HASH = ConstExprHashingUtils::HashString("FJ"); + static constexpr uint32_t FI_HASH = ConstExprHashingUtils::HashString("FI"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t GF_HASH = ConstExprHashingUtils::HashString("GF"); + static constexpr uint32_t PF_HASH = ConstExprHashingUtils::HashString("PF"); + static constexpr uint32_t TF_HASH = ConstExprHashingUtils::HashString("TF"); + static constexpr uint32_t GA_HASH = ConstExprHashingUtils::HashString("GA"); + static constexpr uint32_t GM_HASH = ConstExprHashingUtils::HashString("GM"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t GH_HASH = ConstExprHashingUtils::HashString("GH"); + static constexpr uint32_t GI_HASH = ConstExprHashingUtils::HashString("GI"); + static constexpr uint32_t GR_HASH = ConstExprHashingUtils::HashString("GR"); + static constexpr uint32_t GL_HASH = ConstExprHashingUtils::HashString("GL"); + static constexpr uint32_t GD_HASH = ConstExprHashingUtils::HashString("GD"); + static constexpr uint32_t GP_HASH = ConstExprHashingUtils::HashString("GP"); + static constexpr uint32_t GU_HASH = ConstExprHashingUtils::HashString("GU"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GG_HASH = ConstExprHashingUtils::HashString("GG"); + static constexpr uint32_t GN_HASH = ConstExprHashingUtils::HashString("GN"); + static constexpr uint32_t GW_HASH = ConstExprHashingUtils::HashString("GW"); + static constexpr uint32_t GY_HASH = ConstExprHashingUtils::HashString("GY"); + static constexpr uint32_t HT_HASH = ConstExprHashingUtils::HashString("HT"); + static constexpr uint32_t HM_HASH = ConstExprHashingUtils::HashString("HM"); + static constexpr uint32_t VA_HASH = ConstExprHashingUtils::HashString("VA"); + static constexpr uint32_t HN_HASH = ConstExprHashingUtils::HashString("HN"); + static constexpr uint32_t HK_HASH = ConstExprHashingUtils::HashString("HK"); + static constexpr uint32_t HU_HASH = ConstExprHashingUtils::HashString("HU"); + static constexpr uint32_t IS_HASH = ConstExprHashingUtils::HashString("IS"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t IR_HASH = ConstExprHashingUtils::HashString("IR"); + static constexpr uint32_t IQ_HASH = ConstExprHashingUtils::HashString("IQ"); + static constexpr uint32_t IE_HASH = ConstExprHashingUtils::HashString("IE"); + static constexpr uint32_t IM_HASH = ConstExprHashingUtils::HashString("IM"); + static constexpr uint32_t IL_HASH = ConstExprHashingUtils::HashString("IL"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t JM_HASH = ConstExprHashingUtils::HashString("JM"); + static constexpr uint32_t JP_HASH = ConstExprHashingUtils::HashString("JP"); + static constexpr uint32_t JE_HASH = ConstExprHashingUtils::HashString("JE"); + static constexpr uint32_t JO_HASH = ConstExprHashingUtils::HashString("JO"); + static constexpr uint32_t KZ_HASH = ConstExprHashingUtils::HashString("KZ"); + static constexpr uint32_t KE_HASH = ConstExprHashingUtils::HashString("KE"); + static constexpr uint32_t KI_HASH = ConstExprHashingUtils::HashString("KI"); + static constexpr uint32_t KP_HASH = ConstExprHashingUtils::HashString("KP"); + static constexpr uint32_t KR_HASH = ConstExprHashingUtils::HashString("KR"); + static constexpr uint32_t KW_HASH = ConstExprHashingUtils::HashString("KW"); + static constexpr uint32_t KG_HASH = ConstExprHashingUtils::HashString("KG"); + static constexpr uint32_t LA_HASH = ConstExprHashingUtils::HashString("LA"); + static constexpr uint32_t LV_HASH = ConstExprHashingUtils::HashString("LV"); + static constexpr uint32_t LB_HASH = ConstExprHashingUtils::HashString("LB"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); + static constexpr uint32_t LR_HASH = ConstExprHashingUtils::HashString("LR"); + static constexpr uint32_t LY_HASH = ConstExprHashingUtils::HashString("LY"); + static constexpr uint32_t LI_HASH = ConstExprHashingUtils::HashString("LI"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LU_HASH = ConstExprHashingUtils::HashString("LU"); + static constexpr uint32_t MO_HASH = ConstExprHashingUtils::HashString("MO"); + static constexpr uint32_t MK_HASH = ConstExprHashingUtils::HashString("MK"); + static constexpr uint32_t MG_HASH = ConstExprHashingUtils::HashString("MG"); + static constexpr uint32_t MW_HASH = ConstExprHashingUtils::HashString("MW"); + static constexpr uint32_t MY_HASH = ConstExprHashingUtils::HashString("MY"); + static constexpr uint32_t MV_HASH = ConstExprHashingUtils::HashString("MV"); + static constexpr uint32_t ML_HASH = ConstExprHashingUtils::HashString("ML"); + static constexpr uint32_t MT_HASH = ConstExprHashingUtils::HashString("MT"); + static constexpr uint32_t MH_HASH = ConstExprHashingUtils::HashString("MH"); + static constexpr uint32_t MQ_HASH = ConstExprHashingUtils::HashString("MQ"); + static constexpr uint32_t MR_HASH = ConstExprHashingUtils::HashString("MR"); + static constexpr uint32_t MU_HASH = ConstExprHashingUtils::HashString("MU"); + static constexpr uint32_t YT_HASH = ConstExprHashingUtils::HashString("YT"); + static constexpr uint32_t MX_HASH = ConstExprHashingUtils::HashString("MX"); + static constexpr uint32_t FM_HASH = ConstExprHashingUtils::HashString("FM"); + static constexpr uint32_t MD_HASH = ConstExprHashingUtils::HashString("MD"); + static constexpr uint32_t MC_HASH = ConstExprHashingUtils::HashString("MC"); + static constexpr uint32_t MN_HASH = ConstExprHashingUtils::HashString("MN"); + static constexpr uint32_t ME_HASH = ConstExprHashingUtils::HashString("ME"); + static constexpr uint32_t MS_HASH = ConstExprHashingUtils::HashString("MS"); + static constexpr uint32_t MA_HASH = ConstExprHashingUtils::HashString("MA"); + static constexpr uint32_t MZ_HASH = ConstExprHashingUtils::HashString("MZ"); + static constexpr uint32_t MM_HASH = ConstExprHashingUtils::HashString("MM"); + static constexpr uint32_t NA_HASH = ConstExprHashingUtils::HashString("NA"); + static constexpr uint32_t NR_HASH = ConstExprHashingUtils::HashString("NR"); + static constexpr uint32_t NP_HASH = ConstExprHashingUtils::HashString("NP"); + static constexpr uint32_t NL_HASH = ConstExprHashingUtils::HashString("NL"); + static constexpr uint32_t NC_HASH = ConstExprHashingUtils::HashString("NC"); + static constexpr uint32_t NZ_HASH = ConstExprHashingUtils::HashString("NZ"); + static constexpr uint32_t NI_HASH = ConstExprHashingUtils::HashString("NI"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t NG_HASH = ConstExprHashingUtils::HashString("NG"); + static constexpr uint32_t NU_HASH = ConstExprHashingUtils::HashString("NU"); + static constexpr uint32_t NF_HASH = ConstExprHashingUtils::HashString("NF"); + static constexpr uint32_t MP_HASH = ConstExprHashingUtils::HashString("MP"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t OM_HASH = ConstExprHashingUtils::HashString("OM"); + static constexpr uint32_t PK_HASH = ConstExprHashingUtils::HashString("PK"); + static constexpr uint32_t PW_HASH = ConstExprHashingUtils::HashString("PW"); + static constexpr uint32_t PS_HASH = ConstExprHashingUtils::HashString("PS"); + static constexpr uint32_t PA_HASH = ConstExprHashingUtils::HashString("PA"); + static constexpr uint32_t PG_HASH = ConstExprHashingUtils::HashString("PG"); + static constexpr uint32_t PY_HASH = ConstExprHashingUtils::HashString("PY"); + static constexpr uint32_t PE_HASH = ConstExprHashingUtils::HashString("PE"); + static constexpr uint32_t PH_HASH = ConstExprHashingUtils::HashString("PH"); + static constexpr uint32_t PN_HASH = ConstExprHashingUtils::HashString("PN"); + static constexpr uint32_t PL_HASH = ConstExprHashingUtils::HashString("PL"); + static constexpr uint32_t PT_HASH = ConstExprHashingUtils::HashString("PT"); + static constexpr uint32_t PR_HASH = ConstExprHashingUtils::HashString("PR"); + static constexpr uint32_t QA_HASH = ConstExprHashingUtils::HashString("QA"); + static constexpr uint32_t RE_HASH = ConstExprHashingUtils::HashString("RE"); + static constexpr uint32_t RO_HASH = ConstExprHashingUtils::HashString("RO"); + static constexpr uint32_t RU_HASH = ConstExprHashingUtils::HashString("RU"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t BL_HASH = ConstExprHashingUtils::HashString("BL"); + static constexpr uint32_t SH_HASH = ConstExprHashingUtils::HashString("SH"); + static constexpr uint32_t KN_HASH = ConstExprHashingUtils::HashString("KN"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t MF_HASH = ConstExprHashingUtils::HashString("MF"); + static constexpr uint32_t PM_HASH = ConstExprHashingUtils::HashString("PM"); + static constexpr uint32_t VC_HASH = ConstExprHashingUtils::HashString("VC"); + static constexpr uint32_t WS_HASH = ConstExprHashingUtils::HashString("WS"); + static constexpr uint32_t SM_HASH = ConstExprHashingUtils::HashString("SM"); + static constexpr uint32_t ST_HASH = ConstExprHashingUtils::HashString("ST"); + static constexpr uint32_t SA_HASH = ConstExprHashingUtils::HashString("SA"); + static constexpr uint32_t SN_HASH = ConstExprHashingUtils::HashString("SN"); + static constexpr uint32_t RS_HASH = ConstExprHashingUtils::HashString("RS"); + static constexpr uint32_t SC_HASH = ConstExprHashingUtils::HashString("SC"); + static constexpr uint32_t SL_HASH = ConstExprHashingUtils::HashString("SL"); + static constexpr uint32_t SG_HASH = ConstExprHashingUtils::HashString("SG"); + static constexpr uint32_t SX_HASH = ConstExprHashingUtils::HashString("SX"); + static constexpr uint32_t SK_HASH = ConstExprHashingUtils::HashString("SK"); + static constexpr uint32_t SI_HASH = ConstExprHashingUtils::HashString("SI"); + static constexpr uint32_t SB_HASH = ConstExprHashingUtils::HashString("SB"); + static constexpr uint32_t SO_HASH = ConstExprHashingUtils::HashString("SO"); + static constexpr uint32_t ZA_HASH = ConstExprHashingUtils::HashString("ZA"); + static constexpr uint32_t GS_HASH = ConstExprHashingUtils::HashString("GS"); + static constexpr uint32_t SS_HASH = ConstExprHashingUtils::HashString("SS"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t LK_HASH = ConstExprHashingUtils::HashString("LK"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t SR_HASH = ConstExprHashingUtils::HashString("SR"); + static constexpr uint32_t SJ_HASH = ConstExprHashingUtils::HashString("SJ"); + static constexpr uint32_t SZ_HASH = ConstExprHashingUtils::HashString("SZ"); + static constexpr uint32_t SE_HASH = ConstExprHashingUtils::HashString("SE"); + static constexpr uint32_t CH_HASH = ConstExprHashingUtils::HashString("CH"); + static constexpr uint32_t SY_HASH = ConstExprHashingUtils::HashString("SY"); + static constexpr uint32_t TW_HASH = ConstExprHashingUtils::HashString("TW"); + static constexpr uint32_t TJ_HASH = ConstExprHashingUtils::HashString("TJ"); + static constexpr uint32_t TZ_HASH = ConstExprHashingUtils::HashString("TZ"); + static constexpr uint32_t TH_HASH = ConstExprHashingUtils::HashString("TH"); + static constexpr uint32_t TL_HASH = ConstExprHashingUtils::HashString("TL"); + static constexpr uint32_t TG_HASH = ConstExprHashingUtils::HashString("TG"); + static constexpr uint32_t TK_HASH = ConstExprHashingUtils::HashString("TK"); + static constexpr uint32_t TO_HASH = ConstExprHashingUtils::HashString("TO"); + static constexpr uint32_t TT_HASH = ConstExprHashingUtils::HashString("TT"); + static constexpr uint32_t TN_HASH = ConstExprHashingUtils::HashString("TN"); + static constexpr uint32_t TR_HASH = ConstExprHashingUtils::HashString("TR"); + static constexpr uint32_t TM_HASH = ConstExprHashingUtils::HashString("TM"); + static constexpr uint32_t TC_HASH = ConstExprHashingUtils::HashString("TC"); + static constexpr uint32_t TV_HASH = ConstExprHashingUtils::HashString("TV"); + static constexpr uint32_t UG_HASH = ConstExprHashingUtils::HashString("UG"); + static constexpr uint32_t UA_HASH = ConstExprHashingUtils::HashString("UA"); + static constexpr uint32_t AE_HASH = ConstExprHashingUtils::HashString("AE"); + static constexpr uint32_t GB_HASH = ConstExprHashingUtils::HashString("GB"); + static constexpr uint32_t US_HASH = ConstExprHashingUtils::HashString("US"); + static constexpr uint32_t UM_HASH = ConstExprHashingUtils::HashString("UM"); + static constexpr uint32_t UY_HASH = ConstExprHashingUtils::HashString("UY"); + static constexpr uint32_t UZ_HASH = ConstExprHashingUtils::HashString("UZ"); + static constexpr uint32_t VU_HASH = ConstExprHashingUtils::HashString("VU"); + static constexpr uint32_t VE_HASH = ConstExprHashingUtils::HashString("VE"); + static constexpr uint32_t VN_HASH = ConstExprHashingUtils::HashString("VN"); + static constexpr uint32_t VG_HASH = ConstExprHashingUtils::HashString("VG"); + static constexpr uint32_t VI_HASH = ConstExprHashingUtils::HashString("VI"); + static constexpr uint32_t WF_HASH = ConstExprHashingUtils::HashString("WF"); + static constexpr uint32_t EH_HASH = ConstExprHashingUtils::HashString("EH"); + static constexpr uint32_t YE_HASH = ConstExprHashingUtils::HashString("YE"); + static constexpr uint32_t ZM_HASH = ConstExprHashingUtils::HashString("ZM"); + static constexpr uint32_t ZW_HASH = ConstExprHashingUtils::HashString("ZW"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, GeoMatchConstraintValue& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, GeoMatchConstraintValue& enumValue) { if (hashCode == AF_HASH) { @@ -889,7 +889,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, GeoMatchConstraintValue& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, GeoMatchConstraintValue& enumValue) { if (hashCode == LV_HASH) { @@ -1503,7 +1503,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper2(int hashCode, GeoMatchConstraintValue& enumValue) + static bool GetEnumForNameHelper2(uint32_t hashCode, GeoMatchConstraintValue& enumValue) { if (hashCode == WF_HASH) { @@ -2307,7 +2307,7 @@ namespace Aws GeoMatchConstraintValue GetGeoMatchConstraintValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); GeoMatchConstraintValue enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/IPSetDescriptorType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/IPSetDescriptorType.cpp index cc4d89e05ca..c5b63622361 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/IPSetDescriptorType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/IPSetDescriptorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IPSetDescriptorTypeMapper { - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); IPSetDescriptorType GetIPSetDescriptorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_HASH) { return IPSetDescriptorType::IPV4; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/MatchFieldType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/MatchFieldType.cpp index 96fb143ab78..25d217bebce 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/MatchFieldType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/MatchFieldType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MatchFieldTypeMapper { - static const int URI_HASH = HashingUtils::HashString("URI"); - static const int QUERY_STRING_HASH = HashingUtils::HashString("QUERY_STRING"); - static const int HEADER_HASH = HashingUtils::HashString("HEADER"); - static const int METHOD_HASH = HashingUtils::HashString("METHOD"); - static const int BODY_HASH = HashingUtils::HashString("BODY"); - static const int SINGLE_QUERY_ARG_HASH = HashingUtils::HashString("SINGLE_QUERY_ARG"); - static const int ALL_QUERY_ARGS_HASH = HashingUtils::HashString("ALL_QUERY_ARGS"); + static constexpr uint32_t URI_HASH = ConstExprHashingUtils::HashString("URI"); + static constexpr uint32_t QUERY_STRING_HASH = ConstExprHashingUtils::HashString("QUERY_STRING"); + static constexpr uint32_t HEADER_HASH = ConstExprHashingUtils::HashString("HEADER"); + static constexpr uint32_t METHOD_HASH = ConstExprHashingUtils::HashString("METHOD"); + static constexpr uint32_t BODY_HASH = ConstExprHashingUtils::HashString("BODY"); + static constexpr uint32_t SINGLE_QUERY_ARG_HASH = ConstExprHashingUtils::HashString("SINGLE_QUERY_ARG"); + static constexpr uint32_t ALL_QUERY_ARGS_HASH = ConstExprHashingUtils::HashString("ALL_QUERY_ARGS"); MatchFieldType GetMatchFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == URI_HASH) { return MatchFieldType::URI; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/MigrationErrorType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/MigrationErrorType.cpp index 063b471bd19..e2d042744f1 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/MigrationErrorType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/MigrationErrorType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MigrationErrorTypeMapper { - static const int ENTITY_NOT_SUPPORTED_HASH = HashingUtils::HashString("ENTITY_NOT_SUPPORTED"); - static const int ENTITY_NOT_FOUND_HASH = HashingUtils::HashString("ENTITY_NOT_FOUND"); - static const int S3_BUCKET_NO_PERMISSION_HASH = HashingUtils::HashString("S3_BUCKET_NO_PERMISSION"); - static const int S3_BUCKET_NOT_ACCESSIBLE_HASH = HashingUtils::HashString("S3_BUCKET_NOT_ACCESSIBLE"); - static const int S3_BUCKET_NOT_FOUND_HASH = HashingUtils::HashString("S3_BUCKET_NOT_FOUND"); - static const int S3_BUCKET_INVALID_REGION_HASH = HashingUtils::HashString("S3_BUCKET_INVALID_REGION"); - static const int S3_INTERNAL_ERROR_HASH = HashingUtils::HashString("S3_INTERNAL_ERROR"); + static constexpr uint32_t ENTITY_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ENTITY_NOT_SUPPORTED"); + static constexpr uint32_t ENTITY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENTITY_NOT_FOUND"); + static constexpr uint32_t S3_BUCKET_NO_PERMISSION_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NO_PERMISSION"); + static constexpr uint32_t S3_BUCKET_NOT_ACCESSIBLE_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NOT_ACCESSIBLE"); + static constexpr uint32_t S3_BUCKET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NOT_FOUND"); + static constexpr uint32_t S3_BUCKET_INVALID_REGION_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_INVALID_REGION"); + static constexpr uint32_t S3_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("S3_INTERNAL_ERROR"); MigrationErrorType GetMigrationErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENTITY_NOT_SUPPORTED_HASH) { return MigrationErrorType::ENTITY_NOT_SUPPORTED; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionField.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionField.cpp index 45db14de892..6032eb6bd35 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionField.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionField.cpp @@ -20,29 +20,29 @@ namespace Aws namespace ParameterExceptionFieldMapper { - static const int CHANGE_ACTION_HASH = HashingUtils::HashString("CHANGE_ACTION"); - static const int WAF_ACTION_HASH = HashingUtils::HashString("WAF_ACTION"); - static const int WAF_OVERRIDE_ACTION_HASH = HashingUtils::HashString("WAF_OVERRIDE_ACTION"); - static const int PREDICATE_TYPE_HASH = HashingUtils::HashString("PREDICATE_TYPE"); - static const int IPSET_TYPE_HASH = HashingUtils::HashString("IPSET_TYPE"); - static const int BYTE_MATCH_FIELD_TYPE_HASH = HashingUtils::HashString("BYTE_MATCH_FIELD_TYPE"); - static const int SQL_INJECTION_MATCH_FIELD_TYPE_HASH = HashingUtils::HashString("SQL_INJECTION_MATCH_FIELD_TYPE"); - static const int BYTE_MATCH_TEXT_TRANSFORMATION_HASH = HashingUtils::HashString("BYTE_MATCH_TEXT_TRANSFORMATION"); - static const int BYTE_MATCH_POSITIONAL_CONSTRAINT_HASH = HashingUtils::HashString("BYTE_MATCH_POSITIONAL_CONSTRAINT"); - static const int SIZE_CONSTRAINT_COMPARISON_OPERATOR_HASH = HashingUtils::HashString("SIZE_CONSTRAINT_COMPARISON_OPERATOR"); - static const int GEO_MATCH_LOCATION_TYPE_HASH = HashingUtils::HashString("GEO_MATCH_LOCATION_TYPE"); - static const int GEO_MATCH_LOCATION_VALUE_HASH = HashingUtils::HashString("GEO_MATCH_LOCATION_VALUE"); - static const int RATE_KEY_HASH = HashingUtils::HashString("RATE_KEY"); - static const int RULE_TYPE_HASH = HashingUtils::HashString("RULE_TYPE"); - static const int NEXT_MARKER_HASH = HashingUtils::HashString("NEXT_MARKER"); - static const int RESOURCE_ARN_HASH = HashingUtils::HashString("RESOURCE_ARN"); - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); - static const int TAG_KEYS_HASH = HashingUtils::HashString("TAG_KEYS"); + static constexpr uint32_t CHANGE_ACTION_HASH = ConstExprHashingUtils::HashString("CHANGE_ACTION"); + static constexpr uint32_t WAF_ACTION_HASH = ConstExprHashingUtils::HashString("WAF_ACTION"); + static constexpr uint32_t WAF_OVERRIDE_ACTION_HASH = ConstExprHashingUtils::HashString("WAF_OVERRIDE_ACTION"); + static constexpr uint32_t PREDICATE_TYPE_HASH = ConstExprHashingUtils::HashString("PREDICATE_TYPE"); + static constexpr uint32_t IPSET_TYPE_HASH = ConstExprHashingUtils::HashString("IPSET_TYPE"); + static constexpr uint32_t BYTE_MATCH_FIELD_TYPE_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_FIELD_TYPE"); + static constexpr uint32_t SQL_INJECTION_MATCH_FIELD_TYPE_HASH = ConstExprHashingUtils::HashString("SQL_INJECTION_MATCH_FIELD_TYPE"); + static constexpr uint32_t BYTE_MATCH_TEXT_TRANSFORMATION_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_TEXT_TRANSFORMATION"); + static constexpr uint32_t BYTE_MATCH_POSITIONAL_CONSTRAINT_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_POSITIONAL_CONSTRAINT"); + static constexpr uint32_t SIZE_CONSTRAINT_COMPARISON_OPERATOR_HASH = ConstExprHashingUtils::HashString("SIZE_CONSTRAINT_COMPARISON_OPERATOR"); + static constexpr uint32_t GEO_MATCH_LOCATION_TYPE_HASH = ConstExprHashingUtils::HashString("GEO_MATCH_LOCATION_TYPE"); + static constexpr uint32_t GEO_MATCH_LOCATION_VALUE_HASH = ConstExprHashingUtils::HashString("GEO_MATCH_LOCATION_VALUE"); + static constexpr uint32_t RATE_KEY_HASH = ConstExprHashingUtils::HashString("RATE_KEY"); + static constexpr uint32_t RULE_TYPE_HASH = ConstExprHashingUtils::HashString("RULE_TYPE"); + static constexpr uint32_t NEXT_MARKER_HASH = ConstExprHashingUtils::HashString("NEXT_MARKER"); + static constexpr uint32_t RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("RESOURCE_ARN"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); + static constexpr uint32_t TAG_KEYS_HASH = ConstExprHashingUtils::HashString("TAG_KEYS"); ParameterExceptionField GetParameterExceptionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHANGE_ACTION_HASH) { return ParameterExceptionField::CHANGE_ACTION; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionReason.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionReason.cpp index 82882806c03..d31e2113f1b 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/ParameterExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ParameterExceptionReasonMapper { - static const int INVALID_OPTION_HASH = HashingUtils::HashString("INVALID_OPTION"); - static const int ILLEGAL_COMBINATION_HASH = HashingUtils::HashString("ILLEGAL_COMBINATION"); - static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("ILLEGAL_ARGUMENT"); - static const int INVALID_TAG_KEY_HASH = HashingUtils::HashString("INVALID_TAG_KEY"); + static constexpr uint32_t INVALID_OPTION_HASH = ConstExprHashingUtils::HashString("INVALID_OPTION"); + static constexpr uint32_t ILLEGAL_COMBINATION_HASH = ConstExprHashingUtils::HashString("ILLEGAL_COMBINATION"); + static constexpr uint32_t ILLEGAL_ARGUMENT_HASH = ConstExprHashingUtils::HashString("ILLEGAL_ARGUMENT"); + static constexpr uint32_t INVALID_TAG_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_TAG_KEY"); ParameterExceptionReason GetParameterExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_OPTION_HASH) { return ParameterExceptionReason::INVALID_OPTION; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/PositionalConstraint.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/PositionalConstraint.cpp index 797c7e1d242..beb26d94250 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/PositionalConstraint.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/PositionalConstraint.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PositionalConstraintMapper { - static const int EXACTLY_HASH = HashingUtils::HashString("EXACTLY"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); - static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int CONTAINS_WORD_HASH = HashingUtils::HashString("CONTAINS_WORD"); + static constexpr uint32_t EXACTLY_HASH = ConstExprHashingUtils::HashString("EXACTLY"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t ENDS_WITH_HASH = ConstExprHashingUtils::HashString("ENDS_WITH"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t CONTAINS_WORD_HASH = ConstExprHashingUtils::HashString("CONTAINS_WORD"); PositionalConstraint GetPositionalConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACTLY_HASH) { return PositionalConstraint::EXACTLY; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/PredicateType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/PredicateType.cpp index 24f7455ec68..1d51014235a 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/PredicateType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/PredicateType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PredicateTypeMapper { - static const int IPMatch_HASH = HashingUtils::HashString("IPMatch"); - static const int ByteMatch_HASH = HashingUtils::HashString("ByteMatch"); - static const int SqlInjectionMatch_HASH = HashingUtils::HashString("SqlInjectionMatch"); - static const int GeoMatch_HASH = HashingUtils::HashString("GeoMatch"); - static const int SizeConstraint_HASH = HashingUtils::HashString("SizeConstraint"); - static const int XssMatch_HASH = HashingUtils::HashString("XssMatch"); - static const int RegexMatch_HASH = HashingUtils::HashString("RegexMatch"); + static constexpr uint32_t IPMatch_HASH = ConstExprHashingUtils::HashString("IPMatch"); + static constexpr uint32_t ByteMatch_HASH = ConstExprHashingUtils::HashString("ByteMatch"); + static constexpr uint32_t SqlInjectionMatch_HASH = ConstExprHashingUtils::HashString("SqlInjectionMatch"); + static constexpr uint32_t GeoMatch_HASH = ConstExprHashingUtils::HashString("GeoMatch"); + static constexpr uint32_t SizeConstraint_HASH = ConstExprHashingUtils::HashString("SizeConstraint"); + static constexpr uint32_t XssMatch_HASH = ConstExprHashingUtils::HashString("XssMatch"); + static constexpr uint32_t RegexMatch_HASH = ConstExprHashingUtils::HashString("RegexMatch"); PredicateType GetPredicateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPMatch_HASH) { return PredicateType::IPMatch; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/RateKey.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/RateKey.cpp index 8a7eeeb01d8..f1b63c8424e 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/RateKey.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/RateKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RateKeyMapper { - static const int IP_HASH = HashingUtils::HashString("IP"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); RateKey GetRateKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_HASH) { return RateKey::IP; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/ResourceType.cpp index e46a019daee..09165739b2f 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int APPLICATION_LOAD_BALANCER_HASH = HashingUtils::HashString("APPLICATION_LOAD_BALANCER"); - static const int API_GATEWAY_HASH = HashingUtils::HashString("API_GATEWAY"); + static constexpr uint32_t APPLICATION_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("APPLICATION_LOAD_BALANCER"); + static constexpr uint32_t API_GATEWAY_HASH = ConstExprHashingUtils::HashString("API_GATEWAY"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLICATION_LOAD_BALANCER_HASH) { return ResourceType::APPLICATION_LOAD_BALANCER; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/TextTransformation.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/TextTransformation.cpp index 696a613c40e..6c636dbfd89 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/TextTransformation.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/TextTransformation.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TextTransformationMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int COMPRESS_WHITE_SPACE_HASH = HashingUtils::HashString("COMPRESS_WHITE_SPACE"); - static const int HTML_ENTITY_DECODE_HASH = HashingUtils::HashString("HTML_ENTITY_DECODE"); - static const int LOWERCASE_HASH = HashingUtils::HashString("LOWERCASE"); - static const int CMD_LINE_HASH = HashingUtils::HashString("CMD_LINE"); - static const int URL_DECODE_HASH = HashingUtils::HashString("URL_DECODE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t COMPRESS_WHITE_SPACE_HASH = ConstExprHashingUtils::HashString("COMPRESS_WHITE_SPACE"); + static constexpr uint32_t HTML_ENTITY_DECODE_HASH = ConstExprHashingUtils::HashString("HTML_ENTITY_DECODE"); + static constexpr uint32_t LOWERCASE_HASH = ConstExprHashingUtils::HashString("LOWERCASE"); + static constexpr uint32_t CMD_LINE_HASH = ConstExprHashingUtils::HashString("CMD_LINE"); + static constexpr uint32_t URL_DECODE_HASH = ConstExprHashingUtils::HashString("URL_DECODE"); TextTransformation GetTextTransformationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TextTransformation::NONE; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/WafActionType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/WafActionType.cpp index 0299c071399..7932a094f17 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/WafActionType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/WafActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WafActionTypeMapper { - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); WafActionType GetWafActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLOCK_HASH) { return WafActionType::BLOCK; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/WafOverrideActionType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/WafOverrideActionType.cpp index fead05e123c..ab3f047e84b 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/WafOverrideActionType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/WafOverrideActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WafOverrideActionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); WafOverrideActionType GetWafOverrideActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return WafOverrideActionType::NONE; diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/model/WafRuleType.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/model/WafRuleType.cpp index d68658362bd..e43ac45c029 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/model/WafRuleType.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/model/WafRuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WafRuleTypeMapper { - static const int REGULAR_HASH = HashingUtils::HashString("REGULAR"); - static const int RATE_BASED_HASH = HashingUtils::HashString("RATE_BASED"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t REGULAR_HASH = ConstExprHashingUtils::HashString("REGULAR"); + static constexpr uint32_t RATE_BASED_HASH = ConstExprHashingUtils::HashString("RATE_BASED"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); WafRuleType GetWafRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGULAR_HASH) { return WafRuleType::REGULAR; diff --git a/generated/src/aws-cpp-sdk-waf/source/WAFErrors.cpp b/generated/src/aws-cpp-sdk-waf/source/WAFErrors.cpp index 5500441267e..135db2401bc 100644 --- a/generated/src/aws-cpp-sdk-waf/source/WAFErrors.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/WAFErrors.cpp @@ -33,30 +33,30 @@ template<> AWS_WAF_API WAFEntityMigrationException WAFError::GetModeledError() namespace WAFErrorMapper { -static const int W_A_F_LIMITS_EXCEEDED_HASH = HashingUtils::HashString("WAFLimitsExceededException"); -static const int W_A_F_REFERENCED_ITEM_HASH = HashingUtils::HashString("WAFReferencedItemException"); -static const int W_A_F_NON_EMPTY_ENTITY_HASH = HashingUtils::HashString("WAFNonEmptyEntityException"); -static const int W_A_F_BAD_REQUEST_HASH = HashingUtils::HashString("WAFBadRequestException"); -static const int W_A_F_INVALID_PARAMETER_HASH = HashingUtils::HashString("WAFInvalidParameterException"); -static const int W_A_F_INVALID_OPERATION_HASH = HashingUtils::HashString("WAFInvalidOperationException"); -static const int W_A_F_DISALLOWED_NAME_HASH = HashingUtils::HashString("WAFDisallowedNameException"); -static const int W_A_F_NONEXISTENT_CONTAINER_HASH = HashingUtils::HashString("WAFNonexistentContainerException"); -static const int W_A_F_SUBSCRIPTION_NOT_FOUND_HASH = HashingUtils::HashString("WAFSubscriptionNotFoundException"); -static const int W_A_F_ENTITY_MIGRATION_HASH = HashingUtils::HashString("WAFEntityMigrationException"); -static const int W_A_F_INTERNAL_ERROR_HASH = HashingUtils::HashString("WAFInternalErrorException"); -static const int W_A_F_TAG_OPERATION_HASH = HashingUtils::HashString("WAFTagOperationException"); -static const int W_A_F_INVALID_PERMISSION_POLICY_HASH = HashingUtils::HashString("WAFInvalidPermissionPolicyException"); -static const int W_A_F_NONEXISTENT_ITEM_HASH = HashingUtils::HashString("WAFNonexistentItemException"); -static const int W_A_F_INVALID_ACCOUNT_HASH = HashingUtils::HashString("WAFInvalidAccountException"); -static const int W_A_F_STALE_DATA_HASH = HashingUtils::HashString("WAFStaleDataException"); -static const int W_A_F_INVALID_REGEX_PATTERN_HASH = HashingUtils::HashString("WAFInvalidRegexPatternException"); -static const int W_A_F_TAG_OPERATION_INTERNAL_ERROR_HASH = HashingUtils::HashString("WAFTagOperationInternalErrorException"); -static const int W_A_F_SERVICE_LINKED_ROLE_ERROR_HASH = HashingUtils::HashString("WAFServiceLinkedRoleErrorException"); +static constexpr uint32_t W_A_F_LIMITS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("WAFLimitsExceededException"); +static constexpr uint32_t W_A_F_REFERENCED_ITEM_HASH = ConstExprHashingUtils::HashString("WAFReferencedItemException"); +static constexpr uint32_t W_A_F_NON_EMPTY_ENTITY_HASH = ConstExprHashingUtils::HashString("WAFNonEmptyEntityException"); +static constexpr uint32_t W_A_F_BAD_REQUEST_HASH = ConstExprHashingUtils::HashString("WAFBadRequestException"); +static constexpr uint32_t W_A_F_INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("WAFInvalidParameterException"); +static constexpr uint32_t W_A_F_INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("WAFInvalidOperationException"); +static constexpr uint32_t W_A_F_DISALLOWED_NAME_HASH = ConstExprHashingUtils::HashString("WAFDisallowedNameException"); +static constexpr uint32_t W_A_F_NONEXISTENT_CONTAINER_HASH = ConstExprHashingUtils::HashString("WAFNonexistentContainerException"); +static constexpr uint32_t W_A_F_SUBSCRIPTION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("WAFSubscriptionNotFoundException"); +static constexpr uint32_t W_A_F_ENTITY_MIGRATION_HASH = ConstExprHashingUtils::HashString("WAFEntityMigrationException"); +static constexpr uint32_t W_A_F_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("WAFInternalErrorException"); +static constexpr uint32_t W_A_F_TAG_OPERATION_HASH = ConstExprHashingUtils::HashString("WAFTagOperationException"); +static constexpr uint32_t W_A_F_INVALID_PERMISSION_POLICY_HASH = ConstExprHashingUtils::HashString("WAFInvalidPermissionPolicyException"); +static constexpr uint32_t W_A_F_NONEXISTENT_ITEM_HASH = ConstExprHashingUtils::HashString("WAFNonexistentItemException"); +static constexpr uint32_t W_A_F_INVALID_ACCOUNT_HASH = ConstExprHashingUtils::HashString("WAFInvalidAccountException"); +static constexpr uint32_t W_A_F_STALE_DATA_HASH = ConstExprHashingUtils::HashString("WAFStaleDataException"); +static constexpr uint32_t W_A_F_INVALID_REGEX_PATTERN_HASH = ConstExprHashingUtils::HashString("WAFInvalidRegexPatternException"); +static constexpr uint32_t W_A_F_TAG_OPERATION_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("WAFTagOperationInternalErrorException"); +static constexpr uint32_t W_A_F_SERVICE_LINKED_ROLE_ERROR_HASH = ConstExprHashingUtils::HashString("WAFServiceLinkedRoleErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == W_A_F_LIMITS_EXCEEDED_HASH) { diff --git a/generated/src/aws-cpp-sdk-waf/source/model/ChangeAction.cpp b/generated/src/aws-cpp-sdk-waf/source/model/ChangeAction.cpp index 931f679c3fc..6941141f82c 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/ChangeAction.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/ChangeAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ChangeActionMapper { - static const int INSERT_HASH = HashingUtils::HashString("INSERT"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); + static constexpr uint32_t INSERT_HASH = ConstExprHashingUtils::HashString("INSERT"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); ChangeAction GetChangeActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INSERT_HASH) { return ChangeAction::INSERT; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/ChangeTokenStatus.cpp b/generated/src/aws-cpp-sdk-waf/source/model/ChangeTokenStatus.cpp index ac31dbee381..9ab2c26a46a 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/ChangeTokenStatus.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/ChangeTokenStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChangeTokenStatusMapper { - static const int PROVISIONED_HASH = HashingUtils::HashString("PROVISIONED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int INSYNC_HASH = HashingUtils::HashString("INSYNC"); + static constexpr uint32_t PROVISIONED_HASH = ConstExprHashingUtils::HashString("PROVISIONED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t INSYNC_HASH = ConstExprHashingUtils::HashString("INSYNC"); ChangeTokenStatus GetChangeTokenStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROVISIONED_HASH) { return ChangeTokenStatus::PROVISIONED; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-waf/source/model/ComparisonOperator.cpp index 49653afe61f..da9df2aabed 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/ComparisonOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int GT_HASH = HashingUtils::HashString("GT"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return ComparisonOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintType.cpp index 56bd6a6ebb9..ab9cb8dc59a 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace GeoMatchConstraintTypeMapper { - static const int Country_HASH = HashingUtils::HashString("Country"); + static constexpr uint32_t Country_HASH = ConstExprHashingUtils::HashString("Country"); GeoMatchConstraintType GetGeoMatchConstraintTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Country_HASH) { return GeoMatchConstraintType::Country; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintValue.cpp b/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintValue.cpp index 485f379b463..f9a8ded3dc3 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintValue.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/GeoMatchConstraintValue.cpp @@ -20,262 +20,262 @@ namespace Aws namespace GeoMatchConstraintValueMapper { - static const int AF_HASH = HashingUtils::HashString("AF"); - static const int AX_HASH = HashingUtils::HashString("AX"); - static const int AL_HASH = HashingUtils::HashString("AL"); - static const int DZ_HASH = HashingUtils::HashString("DZ"); - static const int AS_HASH = HashingUtils::HashString("AS"); - static const int AD_HASH = HashingUtils::HashString("AD"); - static const int AO_HASH = HashingUtils::HashString("AO"); - static const int AI_HASH = HashingUtils::HashString("AI"); - static const int AQ_HASH = HashingUtils::HashString("AQ"); - static const int AG_HASH = HashingUtils::HashString("AG"); - static const int AR_HASH = HashingUtils::HashString("AR"); - static const int AM_HASH = HashingUtils::HashString("AM"); - static const int AW_HASH = HashingUtils::HashString("AW"); - static const int AU_HASH = HashingUtils::HashString("AU"); - static const int AT_HASH = HashingUtils::HashString("AT"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int BS_HASH = HashingUtils::HashString("BS"); - static const int BH_HASH = HashingUtils::HashString("BH"); - static const int BD_HASH = HashingUtils::HashString("BD"); - static const int BB_HASH = HashingUtils::HashString("BB"); - static const int BY_HASH = HashingUtils::HashString("BY"); - static const int BE_HASH = HashingUtils::HashString("BE"); - static const int BZ_HASH = HashingUtils::HashString("BZ"); - static const int BJ_HASH = HashingUtils::HashString("BJ"); - static const int BM_HASH = HashingUtils::HashString("BM"); - static const int BT_HASH = HashingUtils::HashString("BT"); - static const int BO_HASH = HashingUtils::HashString("BO"); - static const int BQ_HASH = HashingUtils::HashString("BQ"); - static const int BA_HASH = HashingUtils::HashString("BA"); - static const int BW_HASH = HashingUtils::HashString("BW"); - static const int BV_HASH = HashingUtils::HashString("BV"); - static const int BR_HASH = HashingUtils::HashString("BR"); - static const int IO_HASH = HashingUtils::HashString("IO"); - static const int BN_HASH = HashingUtils::HashString("BN"); - static const int BG_HASH = HashingUtils::HashString("BG"); - static const int BF_HASH = HashingUtils::HashString("BF"); - static const int BI_HASH = HashingUtils::HashString("BI"); - static const int KH_HASH = HashingUtils::HashString("KH"); - static const int CM_HASH = HashingUtils::HashString("CM"); - static const int CA_HASH = HashingUtils::HashString("CA"); - static const int CV_HASH = HashingUtils::HashString("CV"); - static const int KY_HASH = HashingUtils::HashString("KY"); - static const int CF_HASH = HashingUtils::HashString("CF"); - static const int TD_HASH = HashingUtils::HashString("TD"); - static const int CL_HASH = HashingUtils::HashString("CL"); - static const int CN_HASH = HashingUtils::HashString("CN"); - static const int CX_HASH = HashingUtils::HashString("CX"); - static const int CC_HASH = HashingUtils::HashString("CC"); - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int KM_HASH = HashingUtils::HashString("KM"); - static const int CG_HASH = HashingUtils::HashString("CG"); - static const int CD_HASH = HashingUtils::HashString("CD"); - static const int CK_HASH = HashingUtils::HashString("CK"); - static const int CR_HASH = HashingUtils::HashString("CR"); - static const int CI_HASH = HashingUtils::HashString("CI"); - static const int HR_HASH = HashingUtils::HashString("HR"); - static const int CU_HASH = HashingUtils::HashString("CU"); - static const int CW_HASH = HashingUtils::HashString("CW"); - static const int CY_HASH = HashingUtils::HashString("CY"); - static const int CZ_HASH = HashingUtils::HashString("CZ"); - static const int DK_HASH = HashingUtils::HashString("DK"); - static const int DJ_HASH = HashingUtils::HashString("DJ"); - static const int DM_HASH = HashingUtils::HashString("DM"); - static const int DO_HASH = HashingUtils::HashString("DO"); - static const int EC_HASH = HashingUtils::HashString("EC"); - static const int EG_HASH = HashingUtils::HashString("EG"); - static const int SV_HASH = HashingUtils::HashString("SV"); - static const int GQ_HASH = HashingUtils::HashString("GQ"); - static const int ER_HASH = HashingUtils::HashString("ER"); - static const int EE_HASH = HashingUtils::HashString("EE"); - static const int ET_HASH = HashingUtils::HashString("ET"); - static const int FK_HASH = HashingUtils::HashString("FK"); - static const int FO_HASH = HashingUtils::HashString("FO"); - static const int FJ_HASH = HashingUtils::HashString("FJ"); - static const int FI_HASH = HashingUtils::HashString("FI"); - static const int FR_HASH = HashingUtils::HashString("FR"); - static const int GF_HASH = HashingUtils::HashString("GF"); - static const int PF_HASH = HashingUtils::HashString("PF"); - static const int TF_HASH = HashingUtils::HashString("TF"); - static const int GA_HASH = HashingUtils::HashString("GA"); - static const int GM_HASH = HashingUtils::HashString("GM"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int GH_HASH = HashingUtils::HashString("GH"); - static const int GI_HASH = HashingUtils::HashString("GI"); - static const int GR_HASH = HashingUtils::HashString("GR"); - static const int GL_HASH = HashingUtils::HashString("GL"); - static const int GD_HASH = HashingUtils::HashString("GD"); - static const int GP_HASH = HashingUtils::HashString("GP"); - static const int GU_HASH = HashingUtils::HashString("GU"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GG_HASH = HashingUtils::HashString("GG"); - static const int GN_HASH = HashingUtils::HashString("GN"); - static const int GW_HASH = HashingUtils::HashString("GW"); - static const int GY_HASH = HashingUtils::HashString("GY"); - static const int HT_HASH = HashingUtils::HashString("HT"); - static const int HM_HASH = HashingUtils::HashString("HM"); - static const int VA_HASH = HashingUtils::HashString("VA"); - static const int HN_HASH = HashingUtils::HashString("HN"); - static const int HK_HASH = HashingUtils::HashString("HK"); - static const int HU_HASH = HashingUtils::HashString("HU"); - static const int IS_HASH = HashingUtils::HashString("IS"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int IR_HASH = HashingUtils::HashString("IR"); - static const int IQ_HASH = HashingUtils::HashString("IQ"); - static const int IE_HASH = HashingUtils::HashString("IE"); - static const int IM_HASH = HashingUtils::HashString("IM"); - static const int IL_HASH = HashingUtils::HashString("IL"); - static const int IT_HASH = HashingUtils::HashString("IT"); - static const int JM_HASH = HashingUtils::HashString("JM"); - static const int JP_HASH = HashingUtils::HashString("JP"); - static const int JE_HASH = HashingUtils::HashString("JE"); - static const int JO_HASH = HashingUtils::HashString("JO"); - static const int KZ_HASH = HashingUtils::HashString("KZ"); - static const int KE_HASH = HashingUtils::HashString("KE"); - static const int KI_HASH = HashingUtils::HashString("KI"); - static const int KP_HASH = HashingUtils::HashString("KP"); - static const int KR_HASH = HashingUtils::HashString("KR"); - static const int KW_HASH = HashingUtils::HashString("KW"); - static const int KG_HASH = HashingUtils::HashString("KG"); - static const int LA_HASH = HashingUtils::HashString("LA"); - static const int LV_HASH = HashingUtils::HashString("LV"); - static const int LB_HASH = HashingUtils::HashString("LB"); - static const int LS_HASH = HashingUtils::HashString("LS"); - static const int LR_HASH = HashingUtils::HashString("LR"); - static const int LY_HASH = HashingUtils::HashString("LY"); - static const int LI_HASH = HashingUtils::HashString("LI"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LU_HASH = HashingUtils::HashString("LU"); - static const int MO_HASH = HashingUtils::HashString("MO"); - static const int MK_HASH = HashingUtils::HashString("MK"); - static const int MG_HASH = HashingUtils::HashString("MG"); - static const int MW_HASH = HashingUtils::HashString("MW"); - static const int MY_HASH = HashingUtils::HashString("MY"); - static const int MV_HASH = HashingUtils::HashString("MV"); - static const int ML_HASH = HashingUtils::HashString("ML"); - static const int MT_HASH = HashingUtils::HashString("MT"); - static const int MH_HASH = HashingUtils::HashString("MH"); - static const int MQ_HASH = HashingUtils::HashString("MQ"); - static const int MR_HASH = HashingUtils::HashString("MR"); - static const int MU_HASH = HashingUtils::HashString("MU"); - static const int YT_HASH = HashingUtils::HashString("YT"); - static const int MX_HASH = HashingUtils::HashString("MX"); - static const int FM_HASH = HashingUtils::HashString("FM"); - static const int MD_HASH = HashingUtils::HashString("MD"); - static const int MC_HASH = HashingUtils::HashString("MC"); - static const int MN_HASH = HashingUtils::HashString("MN"); - static const int ME_HASH = HashingUtils::HashString("ME"); - static const int MS_HASH = HashingUtils::HashString("MS"); - static const int MA_HASH = HashingUtils::HashString("MA"); - static const int MZ_HASH = HashingUtils::HashString("MZ"); - static const int MM_HASH = HashingUtils::HashString("MM"); - static const int NA_HASH = HashingUtils::HashString("NA"); - static const int NR_HASH = HashingUtils::HashString("NR"); - static const int NP_HASH = HashingUtils::HashString("NP"); - static const int NL_HASH = HashingUtils::HashString("NL"); - static const int NC_HASH = HashingUtils::HashString("NC"); - static const int NZ_HASH = HashingUtils::HashString("NZ"); - static const int NI_HASH = HashingUtils::HashString("NI"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int NG_HASH = HashingUtils::HashString("NG"); - static const int NU_HASH = HashingUtils::HashString("NU"); - static const int NF_HASH = HashingUtils::HashString("NF"); - static const int MP_HASH = HashingUtils::HashString("MP"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int OM_HASH = HashingUtils::HashString("OM"); - static const int PK_HASH = HashingUtils::HashString("PK"); - static const int PW_HASH = HashingUtils::HashString("PW"); - static const int PS_HASH = HashingUtils::HashString("PS"); - static const int PA_HASH = HashingUtils::HashString("PA"); - static const int PG_HASH = HashingUtils::HashString("PG"); - static const int PY_HASH = HashingUtils::HashString("PY"); - static const int PE_HASH = HashingUtils::HashString("PE"); - static const int PH_HASH = HashingUtils::HashString("PH"); - static const int PN_HASH = HashingUtils::HashString("PN"); - static const int PL_HASH = HashingUtils::HashString("PL"); - static const int PT_HASH = HashingUtils::HashString("PT"); - static const int PR_HASH = HashingUtils::HashString("PR"); - static const int QA_HASH = HashingUtils::HashString("QA"); - static const int RE_HASH = HashingUtils::HashString("RE"); - static const int RO_HASH = HashingUtils::HashString("RO"); - static const int RU_HASH = HashingUtils::HashString("RU"); - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int BL_HASH = HashingUtils::HashString("BL"); - static const int SH_HASH = HashingUtils::HashString("SH"); - static const int KN_HASH = HashingUtils::HashString("KN"); - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int MF_HASH = HashingUtils::HashString("MF"); - static const int PM_HASH = HashingUtils::HashString("PM"); - static const int VC_HASH = HashingUtils::HashString("VC"); - static const int WS_HASH = HashingUtils::HashString("WS"); - static const int SM_HASH = HashingUtils::HashString("SM"); - static const int ST_HASH = HashingUtils::HashString("ST"); - static const int SA_HASH = HashingUtils::HashString("SA"); - static const int SN_HASH = HashingUtils::HashString("SN"); - static const int RS_HASH = HashingUtils::HashString("RS"); - static const int SC_HASH = HashingUtils::HashString("SC"); - static const int SL_HASH = HashingUtils::HashString("SL"); - static const int SG_HASH = HashingUtils::HashString("SG"); - static const int SX_HASH = HashingUtils::HashString("SX"); - static const int SK_HASH = HashingUtils::HashString("SK"); - static const int SI_HASH = HashingUtils::HashString("SI"); - static const int SB_HASH = HashingUtils::HashString("SB"); - static const int SO_HASH = HashingUtils::HashString("SO"); - static const int ZA_HASH = HashingUtils::HashString("ZA"); - static const int GS_HASH = HashingUtils::HashString("GS"); - static const int SS_HASH = HashingUtils::HashString("SS"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int LK_HASH = HashingUtils::HashString("LK"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int SR_HASH = HashingUtils::HashString("SR"); - static const int SJ_HASH = HashingUtils::HashString("SJ"); - static const int SZ_HASH = HashingUtils::HashString("SZ"); - static const int SE_HASH = HashingUtils::HashString("SE"); - static const int CH_HASH = HashingUtils::HashString("CH"); - static const int SY_HASH = HashingUtils::HashString("SY"); - static const int TW_HASH = HashingUtils::HashString("TW"); - static const int TJ_HASH = HashingUtils::HashString("TJ"); - static const int TZ_HASH = HashingUtils::HashString("TZ"); - static const int TH_HASH = HashingUtils::HashString("TH"); - static const int TL_HASH = HashingUtils::HashString("TL"); - static const int TG_HASH = HashingUtils::HashString("TG"); - static const int TK_HASH = HashingUtils::HashString("TK"); - static const int TO_HASH = HashingUtils::HashString("TO"); - static const int TT_HASH = HashingUtils::HashString("TT"); - static const int TN_HASH = HashingUtils::HashString("TN"); - static const int TR_HASH = HashingUtils::HashString("TR"); - static const int TM_HASH = HashingUtils::HashString("TM"); - static const int TC_HASH = HashingUtils::HashString("TC"); - static const int TV_HASH = HashingUtils::HashString("TV"); - static const int UG_HASH = HashingUtils::HashString("UG"); - static const int UA_HASH = HashingUtils::HashString("UA"); - static const int AE_HASH = HashingUtils::HashString("AE"); - static const int GB_HASH = HashingUtils::HashString("GB"); - static const int US_HASH = HashingUtils::HashString("US"); - static const int UM_HASH = HashingUtils::HashString("UM"); - static const int UY_HASH = HashingUtils::HashString("UY"); - static const int UZ_HASH = HashingUtils::HashString("UZ"); - static const int VU_HASH = HashingUtils::HashString("VU"); - static const int VE_HASH = HashingUtils::HashString("VE"); - static const int VN_HASH = HashingUtils::HashString("VN"); - static const int VG_HASH = HashingUtils::HashString("VG"); - static const int VI_HASH = HashingUtils::HashString("VI"); - static const int WF_HASH = HashingUtils::HashString("WF"); - static const int EH_HASH = HashingUtils::HashString("EH"); - static const int YE_HASH = HashingUtils::HashString("YE"); - static const int ZM_HASH = HashingUtils::HashString("ZM"); - static const int ZW_HASH = HashingUtils::HashString("ZW"); + static constexpr uint32_t AF_HASH = ConstExprHashingUtils::HashString("AF"); + static constexpr uint32_t AX_HASH = ConstExprHashingUtils::HashString("AX"); + static constexpr uint32_t AL_HASH = ConstExprHashingUtils::HashString("AL"); + static constexpr uint32_t DZ_HASH = ConstExprHashingUtils::HashString("DZ"); + static constexpr uint32_t AS_HASH = ConstExprHashingUtils::HashString("AS"); + static constexpr uint32_t AD_HASH = ConstExprHashingUtils::HashString("AD"); + static constexpr uint32_t AO_HASH = ConstExprHashingUtils::HashString("AO"); + static constexpr uint32_t AI_HASH = ConstExprHashingUtils::HashString("AI"); + static constexpr uint32_t AQ_HASH = ConstExprHashingUtils::HashString("AQ"); + static constexpr uint32_t AG_HASH = ConstExprHashingUtils::HashString("AG"); + static constexpr uint32_t AR_HASH = ConstExprHashingUtils::HashString("AR"); + static constexpr uint32_t AM_HASH = ConstExprHashingUtils::HashString("AM"); + static constexpr uint32_t AW_HASH = ConstExprHashingUtils::HashString("AW"); + static constexpr uint32_t AU_HASH = ConstExprHashingUtils::HashString("AU"); + static constexpr uint32_t AT_HASH = ConstExprHashingUtils::HashString("AT"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t BS_HASH = ConstExprHashingUtils::HashString("BS"); + static constexpr uint32_t BH_HASH = ConstExprHashingUtils::HashString("BH"); + static constexpr uint32_t BD_HASH = ConstExprHashingUtils::HashString("BD"); + static constexpr uint32_t BB_HASH = ConstExprHashingUtils::HashString("BB"); + static constexpr uint32_t BY_HASH = ConstExprHashingUtils::HashString("BY"); + static constexpr uint32_t BE_HASH = ConstExprHashingUtils::HashString("BE"); + static constexpr uint32_t BZ_HASH = ConstExprHashingUtils::HashString("BZ"); + static constexpr uint32_t BJ_HASH = ConstExprHashingUtils::HashString("BJ"); + static constexpr uint32_t BM_HASH = ConstExprHashingUtils::HashString("BM"); + static constexpr uint32_t BT_HASH = ConstExprHashingUtils::HashString("BT"); + static constexpr uint32_t BO_HASH = ConstExprHashingUtils::HashString("BO"); + static constexpr uint32_t BQ_HASH = ConstExprHashingUtils::HashString("BQ"); + static constexpr uint32_t BA_HASH = ConstExprHashingUtils::HashString("BA"); + static constexpr uint32_t BW_HASH = ConstExprHashingUtils::HashString("BW"); + static constexpr uint32_t BV_HASH = ConstExprHashingUtils::HashString("BV"); + static constexpr uint32_t BR_HASH = ConstExprHashingUtils::HashString("BR"); + static constexpr uint32_t IO_HASH = ConstExprHashingUtils::HashString("IO"); + static constexpr uint32_t BN_HASH = ConstExprHashingUtils::HashString("BN"); + static constexpr uint32_t BG_HASH = ConstExprHashingUtils::HashString("BG"); + static constexpr uint32_t BF_HASH = ConstExprHashingUtils::HashString("BF"); + static constexpr uint32_t BI_HASH = ConstExprHashingUtils::HashString("BI"); + static constexpr uint32_t KH_HASH = ConstExprHashingUtils::HashString("KH"); + static constexpr uint32_t CM_HASH = ConstExprHashingUtils::HashString("CM"); + static constexpr uint32_t CA_HASH = ConstExprHashingUtils::HashString("CA"); + static constexpr uint32_t CV_HASH = ConstExprHashingUtils::HashString("CV"); + static constexpr uint32_t KY_HASH = ConstExprHashingUtils::HashString("KY"); + static constexpr uint32_t CF_HASH = ConstExprHashingUtils::HashString("CF"); + static constexpr uint32_t TD_HASH = ConstExprHashingUtils::HashString("TD"); + static constexpr uint32_t CL_HASH = ConstExprHashingUtils::HashString("CL"); + static constexpr uint32_t CN_HASH = ConstExprHashingUtils::HashString("CN"); + static constexpr uint32_t CX_HASH = ConstExprHashingUtils::HashString("CX"); + static constexpr uint32_t CC_HASH = ConstExprHashingUtils::HashString("CC"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t KM_HASH = ConstExprHashingUtils::HashString("KM"); + static constexpr uint32_t CG_HASH = ConstExprHashingUtils::HashString("CG"); + static constexpr uint32_t CD_HASH = ConstExprHashingUtils::HashString("CD"); + static constexpr uint32_t CK_HASH = ConstExprHashingUtils::HashString("CK"); + static constexpr uint32_t CR_HASH = ConstExprHashingUtils::HashString("CR"); + static constexpr uint32_t CI_HASH = ConstExprHashingUtils::HashString("CI"); + static constexpr uint32_t HR_HASH = ConstExprHashingUtils::HashString("HR"); + static constexpr uint32_t CU_HASH = ConstExprHashingUtils::HashString("CU"); + static constexpr uint32_t CW_HASH = ConstExprHashingUtils::HashString("CW"); + static constexpr uint32_t CY_HASH = ConstExprHashingUtils::HashString("CY"); + static constexpr uint32_t CZ_HASH = ConstExprHashingUtils::HashString("CZ"); + static constexpr uint32_t DK_HASH = ConstExprHashingUtils::HashString("DK"); + static constexpr uint32_t DJ_HASH = ConstExprHashingUtils::HashString("DJ"); + static constexpr uint32_t DM_HASH = ConstExprHashingUtils::HashString("DM"); + static constexpr uint32_t DO_HASH = ConstExprHashingUtils::HashString("DO"); + static constexpr uint32_t EC_HASH = ConstExprHashingUtils::HashString("EC"); + static constexpr uint32_t EG_HASH = ConstExprHashingUtils::HashString("EG"); + static constexpr uint32_t SV_HASH = ConstExprHashingUtils::HashString("SV"); + static constexpr uint32_t GQ_HASH = ConstExprHashingUtils::HashString("GQ"); + static constexpr uint32_t ER_HASH = ConstExprHashingUtils::HashString("ER"); + static constexpr uint32_t EE_HASH = ConstExprHashingUtils::HashString("EE"); + static constexpr uint32_t ET_HASH = ConstExprHashingUtils::HashString("ET"); + static constexpr uint32_t FK_HASH = ConstExprHashingUtils::HashString("FK"); + static constexpr uint32_t FO_HASH = ConstExprHashingUtils::HashString("FO"); + static constexpr uint32_t FJ_HASH = ConstExprHashingUtils::HashString("FJ"); + static constexpr uint32_t FI_HASH = ConstExprHashingUtils::HashString("FI"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t GF_HASH = ConstExprHashingUtils::HashString("GF"); + static constexpr uint32_t PF_HASH = ConstExprHashingUtils::HashString("PF"); + static constexpr uint32_t TF_HASH = ConstExprHashingUtils::HashString("TF"); + static constexpr uint32_t GA_HASH = ConstExprHashingUtils::HashString("GA"); + static constexpr uint32_t GM_HASH = ConstExprHashingUtils::HashString("GM"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t GH_HASH = ConstExprHashingUtils::HashString("GH"); + static constexpr uint32_t GI_HASH = ConstExprHashingUtils::HashString("GI"); + static constexpr uint32_t GR_HASH = ConstExprHashingUtils::HashString("GR"); + static constexpr uint32_t GL_HASH = ConstExprHashingUtils::HashString("GL"); + static constexpr uint32_t GD_HASH = ConstExprHashingUtils::HashString("GD"); + static constexpr uint32_t GP_HASH = ConstExprHashingUtils::HashString("GP"); + static constexpr uint32_t GU_HASH = ConstExprHashingUtils::HashString("GU"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GG_HASH = ConstExprHashingUtils::HashString("GG"); + static constexpr uint32_t GN_HASH = ConstExprHashingUtils::HashString("GN"); + static constexpr uint32_t GW_HASH = ConstExprHashingUtils::HashString("GW"); + static constexpr uint32_t GY_HASH = ConstExprHashingUtils::HashString("GY"); + static constexpr uint32_t HT_HASH = ConstExprHashingUtils::HashString("HT"); + static constexpr uint32_t HM_HASH = ConstExprHashingUtils::HashString("HM"); + static constexpr uint32_t VA_HASH = ConstExprHashingUtils::HashString("VA"); + static constexpr uint32_t HN_HASH = ConstExprHashingUtils::HashString("HN"); + static constexpr uint32_t HK_HASH = ConstExprHashingUtils::HashString("HK"); + static constexpr uint32_t HU_HASH = ConstExprHashingUtils::HashString("HU"); + static constexpr uint32_t IS_HASH = ConstExprHashingUtils::HashString("IS"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t IR_HASH = ConstExprHashingUtils::HashString("IR"); + static constexpr uint32_t IQ_HASH = ConstExprHashingUtils::HashString("IQ"); + static constexpr uint32_t IE_HASH = ConstExprHashingUtils::HashString("IE"); + static constexpr uint32_t IM_HASH = ConstExprHashingUtils::HashString("IM"); + static constexpr uint32_t IL_HASH = ConstExprHashingUtils::HashString("IL"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t JM_HASH = ConstExprHashingUtils::HashString("JM"); + static constexpr uint32_t JP_HASH = ConstExprHashingUtils::HashString("JP"); + static constexpr uint32_t JE_HASH = ConstExprHashingUtils::HashString("JE"); + static constexpr uint32_t JO_HASH = ConstExprHashingUtils::HashString("JO"); + static constexpr uint32_t KZ_HASH = ConstExprHashingUtils::HashString("KZ"); + static constexpr uint32_t KE_HASH = ConstExprHashingUtils::HashString("KE"); + static constexpr uint32_t KI_HASH = ConstExprHashingUtils::HashString("KI"); + static constexpr uint32_t KP_HASH = ConstExprHashingUtils::HashString("KP"); + static constexpr uint32_t KR_HASH = ConstExprHashingUtils::HashString("KR"); + static constexpr uint32_t KW_HASH = ConstExprHashingUtils::HashString("KW"); + static constexpr uint32_t KG_HASH = ConstExprHashingUtils::HashString("KG"); + static constexpr uint32_t LA_HASH = ConstExprHashingUtils::HashString("LA"); + static constexpr uint32_t LV_HASH = ConstExprHashingUtils::HashString("LV"); + static constexpr uint32_t LB_HASH = ConstExprHashingUtils::HashString("LB"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); + static constexpr uint32_t LR_HASH = ConstExprHashingUtils::HashString("LR"); + static constexpr uint32_t LY_HASH = ConstExprHashingUtils::HashString("LY"); + static constexpr uint32_t LI_HASH = ConstExprHashingUtils::HashString("LI"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LU_HASH = ConstExprHashingUtils::HashString("LU"); + static constexpr uint32_t MO_HASH = ConstExprHashingUtils::HashString("MO"); + static constexpr uint32_t MK_HASH = ConstExprHashingUtils::HashString("MK"); + static constexpr uint32_t MG_HASH = ConstExprHashingUtils::HashString("MG"); + static constexpr uint32_t MW_HASH = ConstExprHashingUtils::HashString("MW"); + static constexpr uint32_t MY_HASH = ConstExprHashingUtils::HashString("MY"); + static constexpr uint32_t MV_HASH = ConstExprHashingUtils::HashString("MV"); + static constexpr uint32_t ML_HASH = ConstExprHashingUtils::HashString("ML"); + static constexpr uint32_t MT_HASH = ConstExprHashingUtils::HashString("MT"); + static constexpr uint32_t MH_HASH = ConstExprHashingUtils::HashString("MH"); + static constexpr uint32_t MQ_HASH = ConstExprHashingUtils::HashString("MQ"); + static constexpr uint32_t MR_HASH = ConstExprHashingUtils::HashString("MR"); + static constexpr uint32_t MU_HASH = ConstExprHashingUtils::HashString("MU"); + static constexpr uint32_t YT_HASH = ConstExprHashingUtils::HashString("YT"); + static constexpr uint32_t MX_HASH = ConstExprHashingUtils::HashString("MX"); + static constexpr uint32_t FM_HASH = ConstExprHashingUtils::HashString("FM"); + static constexpr uint32_t MD_HASH = ConstExprHashingUtils::HashString("MD"); + static constexpr uint32_t MC_HASH = ConstExprHashingUtils::HashString("MC"); + static constexpr uint32_t MN_HASH = ConstExprHashingUtils::HashString("MN"); + static constexpr uint32_t ME_HASH = ConstExprHashingUtils::HashString("ME"); + static constexpr uint32_t MS_HASH = ConstExprHashingUtils::HashString("MS"); + static constexpr uint32_t MA_HASH = ConstExprHashingUtils::HashString("MA"); + static constexpr uint32_t MZ_HASH = ConstExprHashingUtils::HashString("MZ"); + static constexpr uint32_t MM_HASH = ConstExprHashingUtils::HashString("MM"); + static constexpr uint32_t NA_HASH = ConstExprHashingUtils::HashString("NA"); + static constexpr uint32_t NR_HASH = ConstExprHashingUtils::HashString("NR"); + static constexpr uint32_t NP_HASH = ConstExprHashingUtils::HashString("NP"); + static constexpr uint32_t NL_HASH = ConstExprHashingUtils::HashString("NL"); + static constexpr uint32_t NC_HASH = ConstExprHashingUtils::HashString("NC"); + static constexpr uint32_t NZ_HASH = ConstExprHashingUtils::HashString("NZ"); + static constexpr uint32_t NI_HASH = ConstExprHashingUtils::HashString("NI"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t NG_HASH = ConstExprHashingUtils::HashString("NG"); + static constexpr uint32_t NU_HASH = ConstExprHashingUtils::HashString("NU"); + static constexpr uint32_t NF_HASH = ConstExprHashingUtils::HashString("NF"); + static constexpr uint32_t MP_HASH = ConstExprHashingUtils::HashString("MP"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t OM_HASH = ConstExprHashingUtils::HashString("OM"); + static constexpr uint32_t PK_HASH = ConstExprHashingUtils::HashString("PK"); + static constexpr uint32_t PW_HASH = ConstExprHashingUtils::HashString("PW"); + static constexpr uint32_t PS_HASH = ConstExprHashingUtils::HashString("PS"); + static constexpr uint32_t PA_HASH = ConstExprHashingUtils::HashString("PA"); + static constexpr uint32_t PG_HASH = ConstExprHashingUtils::HashString("PG"); + static constexpr uint32_t PY_HASH = ConstExprHashingUtils::HashString("PY"); + static constexpr uint32_t PE_HASH = ConstExprHashingUtils::HashString("PE"); + static constexpr uint32_t PH_HASH = ConstExprHashingUtils::HashString("PH"); + static constexpr uint32_t PN_HASH = ConstExprHashingUtils::HashString("PN"); + static constexpr uint32_t PL_HASH = ConstExprHashingUtils::HashString("PL"); + static constexpr uint32_t PT_HASH = ConstExprHashingUtils::HashString("PT"); + static constexpr uint32_t PR_HASH = ConstExprHashingUtils::HashString("PR"); + static constexpr uint32_t QA_HASH = ConstExprHashingUtils::HashString("QA"); + static constexpr uint32_t RE_HASH = ConstExprHashingUtils::HashString("RE"); + static constexpr uint32_t RO_HASH = ConstExprHashingUtils::HashString("RO"); + static constexpr uint32_t RU_HASH = ConstExprHashingUtils::HashString("RU"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t BL_HASH = ConstExprHashingUtils::HashString("BL"); + static constexpr uint32_t SH_HASH = ConstExprHashingUtils::HashString("SH"); + static constexpr uint32_t KN_HASH = ConstExprHashingUtils::HashString("KN"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t MF_HASH = ConstExprHashingUtils::HashString("MF"); + static constexpr uint32_t PM_HASH = ConstExprHashingUtils::HashString("PM"); + static constexpr uint32_t VC_HASH = ConstExprHashingUtils::HashString("VC"); + static constexpr uint32_t WS_HASH = ConstExprHashingUtils::HashString("WS"); + static constexpr uint32_t SM_HASH = ConstExprHashingUtils::HashString("SM"); + static constexpr uint32_t ST_HASH = ConstExprHashingUtils::HashString("ST"); + static constexpr uint32_t SA_HASH = ConstExprHashingUtils::HashString("SA"); + static constexpr uint32_t SN_HASH = ConstExprHashingUtils::HashString("SN"); + static constexpr uint32_t RS_HASH = ConstExprHashingUtils::HashString("RS"); + static constexpr uint32_t SC_HASH = ConstExprHashingUtils::HashString("SC"); + static constexpr uint32_t SL_HASH = ConstExprHashingUtils::HashString("SL"); + static constexpr uint32_t SG_HASH = ConstExprHashingUtils::HashString("SG"); + static constexpr uint32_t SX_HASH = ConstExprHashingUtils::HashString("SX"); + static constexpr uint32_t SK_HASH = ConstExprHashingUtils::HashString("SK"); + static constexpr uint32_t SI_HASH = ConstExprHashingUtils::HashString("SI"); + static constexpr uint32_t SB_HASH = ConstExprHashingUtils::HashString("SB"); + static constexpr uint32_t SO_HASH = ConstExprHashingUtils::HashString("SO"); + static constexpr uint32_t ZA_HASH = ConstExprHashingUtils::HashString("ZA"); + static constexpr uint32_t GS_HASH = ConstExprHashingUtils::HashString("GS"); + static constexpr uint32_t SS_HASH = ConstExprHashingUtils::HashString("SS"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t LK_HASH = ConstExprHashingUtils::HashString("LK"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t SR_HASH = ConstExprHashingUtils::HashString("SR"); + static constexpr uint32_t SJ_HASH = ConstExprHashingUtils::HashString("SJ"); + static constexpr uint32_t SZ_HASH = ConstExprHashingUtils::HashString("SZ"); + static constexpr uint32_t SE_HASH = ConstExprHashingUtils::HashString("SE"); + static constexpr uint32_t CH_HASH = ConstExprHashingUtils::HashString("CH"); + static constexpr uint32_t SY_HASH = ConstExprHashingUtils::HashString("SY"); + static constexpr uint32_t TW_HASH = ConstExprHashingUtils::HashString("TW"); + static constexpr uint32_t TJ_HASH = ConstExprHashingUtils::HashString("TJ"); + static constexpr uint32_t TZ_HASH = ConstExprHashingUtils::HashString("TZ"); + static constexpr uint32_t TH_HASH = ConstExprHashingUtils::HashString("TH"); + static constexpr uint32_t TL_HASH = ConstExprHashingUtils::HashString("TL"); + static constexpr uint32_t TG_HASH = ConstExprHashingUtils::HashString("TG"); + static constexpr uint32_t TK_HASH = ConstExprHashingUtils::HashString("TK"); + static constexpr uint32_t TO_HASH = ConstExprHashingUtils::HashString("TO"); + static constexpr uint32_t TT_HASH = ConstExprHashingUtils::HashString("TT"); + static constexpr uint32_t TN_HASH = ConstExprHashingUtils::HashString("TN"); + static constexpr uint32_t TR_HASH = ConstExprHashingUtils::HashString("TR"); + static constexpr uint32_t TM_HASH = ConstExprHashingUtils::HashString("TM"); + static constexpr uint32_t TC_HASH = ConstExprHashingUtils::HashString("TC"); + static constexpr uint32_t TV_HASH = ConstExprHashingUtils::HashString("TV"); + static constexpr uint32_t UG_HASH = ConstExprHashingUtils::HashString("UG"); + static constexpr uint32_t UA_HASH = ConstExprHashingUtils::HashString("UA"); + static constexpr uint32_t AE_HASH = ConstExprHashingUtils::HashString("AE"); + static constexpr uint32_t GB_HASH = ConstExprHashingUtils::HashString("GB"); + static constexpr uint32_t US_HASH = ConstExprHashingUtils::HashString("US"); + static constexpr uint32_t UM_HASH = ConstExprHashingUtils::HashString("UM"); + static constexpr uint32_t UY_HASH = ConstExprHashingUtils::HashString("UY"); + static constexpr uint32_t UZ_HASH = ConstExprHashingUtils::HashString("UZ"); + static constexpr uint32_t VU_HASH = ConstExprHashingUtils::HashString("VU"); + static constexpr uint32_t VE_HASH = ConstExprHashingUtils::HashString("VE"); + static constexpr uint32_t VN_HASH = ConstExprHashingUtils::HashString("VN"); + static constexpr uint32_t VG_HASH = ConstExprHashingUtils::HashString("VG"); + static constexpr uint32_t VI_HASH = ConstExprHashingUtils::HashString("VI"); + static constexpr uint32_t WF_HASH = ConstExprHashingUtils::HashString("WF"); + static constexpr uint32_t EH_HASH = ConstExprHashingUtils::HashString("EH"); + static constexpr uint32_t YE_HASH = ConstExprHashingUtils::HashString("YE"); + static constexpr uint32_t ZM_HASH = ConstExprHashingUtils::HashString("ZM"); + static constexpr uint32_t ZW_HASH = ConstExprHashingUtils::HashString("ZW"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, GeoMatchConstraintValue& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, GeoMatchConstraintValue& enumValue) { if (hashCode == AF_HASH) { @@ -889,7 +889,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, GeoMatchConstraintValue& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, GeoMatchConstraintValue& enumValue) { if (hashCode == LV_HASH) { @@ -1503,7 +1503,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper2(int hashCode, GeoMatchConstraintValue& enumValue) + static bool GetEnumForNameHelper2(uint32_t hashCode, GeoMatchConstraintValue& enumValue) { if (hashCode == WF_HASH) { @@ -2307,7 +2307,7 @@ namespace Aws GeoMatchConstraintValue GetGeoMatchConstraintValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); GeoMatchConstraintValue enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-waf/source/model/IPSetDescriptorType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/IPSetDescriptorType.cpp index 2bd063f9502..773ef9fcf2d 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/IPSetDescriptorType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/IPSetDescriptorType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IPSetDescriptorTypeMapper { - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); IPSetDescriptorType GetIPSetDescriptorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_HASH) { return IPSetDescriptorType::IPV4; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/MatchFieldType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/MatchFieldType.cpp index fe36b47fb7a..339ab66d7e5 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/MatchFieldType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/MatchFieldType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MatchFieldTypeMapper { - static const int URI_HASH = HashingUtils::HashString("URI"); - static const int QUERY_STRING_HASH = HashingUtils::HashString("QUERY_STRING"); - static const int HEADER_HASH = HashingUtils::HashString("HEADER"); - static const int METHOD_HASH = HashingUtils::HashString("METHOD"); - static const int BODY_HASH = HashingUtils::HashString("BODY"); - static const int SINGLE_QUERY_ARG_HASH = HashingUtils::HashString("SINGLE_QUERY_ARG"); - static const int ALL_QUERY_ARGS_HASH = HashingUtils::HashString("ALL_QUERY_ARGS"); + static constexpr uint32_t URI_HASH = ConstExprHashingUtils::HashString("URI"); + static constexpr uint32_t QUERY_STRING_HASH = ConstExprHashingUtils::HashString("QUERY_STRING"); + static constexpr uint32_t HEADER_HASH = ConstExprHashingUtils::HashString("HEADER"); + static constexpr uint32_t METHOD_HASH = ConstExprHashingUtils::HashString("METHOD"); + static constexpr uint32_t BODY_HASH = ConstExprHashingUtils::HashString("BODY"); + static constexpr uint32_t SINGLE_QUERY_ARG_HASH = ConstExprHashingUtils::HashString("SINGLE_QUERY_ARG"); + static constexpr uint32_t ALL_QUERY_ARGS_HASH = ConstExprHashingUtils::HashString("ALL_QUERY_ARGS"); MatchFieldType GetMatchFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == URI_HASH) { return MatchFieldType::URI; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/MigrationErrorType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/MigrationErrorType.cpp index 6ae613461c6..1bbcb1434ac 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/MigrationErrorType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/MigrationErrorType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace MigrationErrorTypeMapper { - static const int ENTITY_NOT_SUPPORTED_HASH = HashingUtils::HashString("ENTITY_NOT_SUPPORTED"); - static const int ENTITY_NOT_FOUND_HASH = HashingUtils::HashString("ENTITY_NOT_FOUND"); - static const int S3_BUCKET_NO_PERMISSION_HASH = HashingUtils::HashString("S3_BUCKET_NO_PERMISSION"); - static const int S3_BUCKET_NOT_ACCESSIBLE_HASH = HashingUtils::HashString("S3_BUCKET_NOT_ACCESSIBLE"); - static const int S3_BUCKET_NOT_FOUND_HASH = HashingUtils::HashString("S3_BUCKET_NOT_FOUND"); - static const int S3_BUCKET_INVALID_REGION_HASH = HashingUtils::HashString("S3_BUCKET_INVALID_REGION"); - static const int S3_INTERNAL_ERROR_HASH = HashingUtils::HashString("S3_INTERNAL_ERROR"); + static constexpr uint32_t ENTITY_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ENTITY_NOT_SUPPORTED"); + static constexpr uint32_t ENTITY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("ENTITY_NOT_FOUND"); + static constexpr uint32_t S3_BUCKET_NO_PERMISSION_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NO_PERMISSION"); + static constexpr uint32_t S3_BUCKET_NOT_ACCESSIBLE_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NOT_ACCESSIBLE"); + static constexpr uint32_t S3_BUCKET_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_NOT_FOUND"); + static constexpr uint32_t S3_BUCKET_INVALID_REGION_HASH = ConstExprHashingUtils::HashString("S3_BUCKET_INVALID_REGION"); + static constexpr uint32_t S3_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("S3_INTERNAL_ERROR"); MigrationErrorType GetMigrationErrorTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENTITY_NOT_SUPPORTED_HASH) { return MigrationErrorType::ENTITY_NOT_SUPPORTED; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionField.cpp b/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionField.cpp index 7c8b4e59428..a0d88bec2b2 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionField.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionField.cpp @@ -20,29 +20,29 @@ namespace Aws namespace ParameterExceptionFieldMapper { - static const int CHANGE_ACTION_HASH = HashingUtils::HashString("CHANGE_ACTION"); - static const int WAF_ACTION_HASH = HashingUtils::HashString("WAF_ACTION"); - static const int WAF_OVERRIDE_ACTION_HASH = HashingUtils::HashString("WAF_OVERRIDE_ACTION"); - static const int PREDICATE_TYPE_HASH = HashingUtils::HashString("PREDICATE_TYPE"); - static const int IPSET_TYPE_HASH = HashingUtils::HashString("IPSET_TYPE"); - static const int BYTE_MATCH_FIELD_TYPE_HASH = HashingUtils::HashString("BYTE_MATCH_FIELD_TYPE"); - static const int SQL_INJECTION_MATCH_FIELD_TYPE_HASH = HashingUtils::HashString("SQL_INJECTION_MATCH_FIELD_TYPE"); - static const int BYTE_MATCH_TEXT_TRANSFORMATION_HASH = HashingUtils::HashString("BYTE_MATCH_TEXT_TRANSFORMATION"); - static const int BYTE_MATCH_POSITIONAL_CONSTRAINT_HASH = HashingUtils::HashString("BYTE_MATCH_POSITIONAL_CONSTRAINT"); - static const int SIZE_CONSTRAINT_COMPARISON_OPERATOR_HASH = HashingUtils::HashString("SIZE_CONSTRAINT_COMPARISON_OPERATOR"); - static const int GEO_MATCH_LOCATION_TYPE_HASH = HashingUtils::HashString("GEO_MATCH_LOCATION_TYPE"); - static const int GEO_MATCH_LOCATION_VALUE_HASH = HashingUtils::HashString("GEO_MATCH_LOCATION_VALUE"); - static const int RATE_KEY_HASH = HashingUtils::HashString("RATE_KEY"); - static const int RULE_TYPE_HASH = HashingUtils::HashString("RULE_TYPE"); - static const int NEXT_MARKER_HASH = HashingUtils::HashString("NEXT_MARKER"); - static const int RESOURCE_ARN_HASH = HashingUtils::HashString("RESOURCE_ARN"); - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); - static const int TAG_KEYS_HASH = HashingUtils::HashString("TAG_KEYS"); + static constexpr uint32_t CHANGE_ACTION_HASH = ConstExprHashingUtils::HashString("CHANGE_ACTION"); + static constexpr uint32_t WAF_ACTION_HASH = ConstExprHashingUtils::HashString("WAF_ACTION"); + static constexpr uint32_t WAF_OVERRIDE_ACTION_HASH = ConstExprHashingUtils::HashString("WAF_OVERRIDE_ACTION"); + static constexpr uint32_t PREDICATE_TYPE_HASH = ConstExprHashingUtils::HashString("PREDICATE_TYPE"); + static constexpr uint32_t IPSET_TYPE_HASH = ConstExprHashingUtils::HashString("IPSET_TYPE"); + static constexpr uint32_t BYTE_MATCH_FIELD_TYPE_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_FIELD_TYPE"); + static constexpr uint32_t SQL_INJECTION_MATCH_FIELD_TYPE_HASH = ConstExprHashingUtils::HashString("SQL_INJECTION_MATCH_FIELD_TYPE"); + static constexpr uint32_t BYTE_MATCH_TEXT_TRANSFORMATION_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_TEXT_TRANSFORMATION"); + static constexpr uint32_t BYTE_MATCH_POSITIONAL_CONSTRAINT_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_POSITIONAL_CONSTRAINT"); + static constexpr uint32_t SIZE_CONSTRAINT_COMPARISON_OPERATOR_HASH = ConstExprHashingUtils::HashString("SIZE_CONSTRAINT_COMPARISON_OPERATOR"); + static constexpr uint32_t GEO_MATCH_LOCATION_TYPE_HASH = ConstExprHashingUtils::HashString("GEO_MATCH_LOCATION_TYPE"); + static constexpr uint32_t GEO_MATCH_LOCATION_VALUE_HASH = ConstExprHashingUtils::HashString("GEO_MATCH_LOCATION_VALUE"); + static constexpr uint32_t RATE_KEY_HASH = ConstExprHashingUtils::HashString("RATE_KEY"); + static constexpr uint32_t RULE_TYPE_HASH = ConstExprHashingUtils::HashString("RULE_TYPE"); + static constexpr uint32_t NEXT_MARKER_HASH = ConstExprHashingUtils::HashString("NEXT_MARKER"); + static constexpr uint32_t RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("RESOURCE_ARN"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); + static constexpr uint32_t TAG_KEYS_HASH = ConstExprHashingUtils::HashString("TAG_KEYS"); ParameterExceptionField GetParameterExceptionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CHANGE_ACTION_HASH) { return ParameterExceptionField::CHANGE_ACTION; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionReason.cpp b/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionReason.cpp index 739f8a93e9e..08481ef0e33 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/ParameterExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ParameterExceptionReasonMapper { - static const int INVALID_OPTION_HASH = HashingUtils::HashString("INVALID_OPTION"); - static const int ILLEGAL_COMBINATION_HASH = HashingUtils::HashString("ILLEGAL_COMBINATION"); - static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("ILLEGAL_ARGUMENT"); - static const int INVALID_TAG_KEY_HASH = HashingUtils::HashString("INVALID_TAG_KEY"); + static constexpr uint32_t INVALID_OPTION_HASH = ConstExprHashingUtils::HashString("INVALID_OPTION"); + static constexpr uint32_t ILLEGAL_COMBINATION_HASH = ConstExprHashingUtils::HashString("ILLEGAL_COMBINATION"); + static constexpr uint32_t ILLEGAL_ARGUMENT_HASH = ConstExprHashingUtils::HashString("ILLEGAL_ARGUMENT"); + static constexpr uint32_t INVALID_TAG_KEY_HASH = ConstExprHashingUtils::HashString("INVALID_TAG_KEY"); ParameterExceptionReason GetParameterExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INVALID_OPTION_HASH) { return ParameterExceptionReason::INVALID_OPTION; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/PositionalConstraint.cpp b/generated/src/aws-cpp-sdk-waf/source/model/PositionalConstraint.cpp index 29e60fbf6bb..01e5f2e881d 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/PositionalConstraint.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/PositionalConstraint.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PositionalConstraintMapper { - static const int EXACTLY_HASH = HashingUtils::HashString("EXACTLY"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); - static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int CONTAINS_WORD_HASH = HashingUtils::HashString("CONTAINS_WORD"); + static constexpr uint32_t EXACTLY_HASH = ConstExprHashingUtils::HashString("EXACTLY"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t ENDS_WITH_HASH = ConstExprHashingUtils::HashString("ENDS_WITH"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t CONTAINS_WORD_HASH = ConstExprHashingUtils::HashString("CONTAINS_WORD"); PositionalConstraint GetPositionalConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACTLY_HASH) { return PositionalConstraint::EXACTLY; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/PredicateType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/PredicateType.cpp index cc15de10bf3..c72519688ff 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/PredicateType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/PredicateType.cpp @@ -20,18 +20,18 @@ namespace Aws namespace PredicateTypeMapper { - static const int IPMatch_HASH = HashingUtils::HashString("IPMatch"); - static const int ByteMatch_HASH = HashingUtils::HashString("ByteMatch"); - static const int SqlInjectionMatch_HASH = HashingUtils::HashString("SqlInjectionMatch"); - static const int GeoMatch_HASH = HashingUtils::HashString("GeoMatch"); - static const int SizeConstraint_HASH = HashingUtils::HashString("SizeConstraint"); - static const int XssMatch_HASH = HashingUtils::HashString("XssMatch"); - static const int RegexMatch_HASH = HashingUtils::HashString("RegexMatch"); + static constexpr uint32_t IPMatch_HASH = ConstExprHashingUtils::HashString("IPMatch"); + static constexpr uint32_t ByteMatch_HASH = ConstExprHashingUtils::HashString("ByteMatch"); + static constexpr uint32_t SqlInjectionMatch_HASH = ConstExprHashingUtils::HashString("SqlInjectionMatch"); + static constexpr uint32_t GeoMatch_HASH = ConstExprHashingUtils::HashString("GeoMatch"); + static constexpr uint32_t SizeConstraint_HASH = ConstExprHashingUtils::HashString("SizeConstraint"); + static constexpr uint32_t XssMatch_HASH = ConstExprHashingUtils::HashString("XssMatch"); + static constexpr uint32_t RegexMatch_HASH = ConstExprHashingUtils::HashString("RegexMatch"); PredicateType GetPredicateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPMatch_HASH) { return PredicateType::IPMatch; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/RateKey.cpp b/generated/src/aws-cpp-sdk-waf/source/model/RateKey.cpp index 84c8b908699..1f066f4540e 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/RateKey.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/RateKey.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RateKeyMapper { - static const int IP_HASH = HashingUtils::HashString("IP"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); RateKey GetRateKeyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_HASH) { return RateKey::IP; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/TextTransformation.cpp b/generated/src/aws-cpp-sdk-waf/source/model/TextTransformation.cpp index 8bb7b61c265..61ebd96eff3 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/TextTransformation.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/TextTransformation.cpp @@ -20,17 +20,17 @@ namespace Aws namespace TextTransformationMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int COMPRESS_WHITE_SPACE_HASH = HashingUtils::HashString("COMPRESS_WHITE_SPACE"); - static const int HTML_ENTITY_DECODE_HASH = HashingUtils::HashString("HTML_ENTITY_DECODE"); - static const int LOWERCASE_HASH = HashingUtils::HashString("LOWERCASE"); - static const int CMD_LINE_HASH = HashingUtils::HashString("CMD_LINE"); - static const int URL_DECODE_HASH = HashingUtils::HashString("URL_DECODE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t COMPRESS_WHITE_SPACE_HASH = ConstExprHashingUtils::HashString("COMPRESS_WHITE_SPACE"); + static constexpr uint32_t HTML_ENTITY_DECODE_HASH = ConstExprHashingUtils::HashString("HTML_ENTITY_DECODE"); + static constexpr uint32_t LOWERCASE_HASH = ConstExprHashingUtils::HashString("LOWERCASE"); + static constexpr uint32_t CMD_LINE_HASH = ConstExprHashingUtils::HashString("CMD_LINE"); + static constexpr uint32_t URL_DECODE_HASH = ConstExprHashingUtils::HashString("URL_DECODE"); TextTransformation GetTextTransformationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TextTransformation::NONE; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/WafActionType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/WafActionType.cpp index 0540b321ca5..96c25137183 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/WafActionType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/WafActionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WafActionTypeMapper { - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); WafActionType GetWafActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BLOCK_HASH) { return WafActionType::BLOCK; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/WafOverrideActionType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/WafOverrideActionType.cpp index bb9d0e90b60..1779c6ec918 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/WafOverrideActionType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/WafOverrideActionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WafOverrideActionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); WafOverrideActionType GetWafOverrideActionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return WafOverrideActionType::NONE; diff --git a/generated/src/aws-cpp-sdk-waf/source/model/WafRuleType.cpp b/generated/src/aws-cpp-sdk-waf/source/model/WafRuleType.cpp index 57b20faf221..9be10115948 100644 --- a/generated/src/aws-cpp-sdk-waf/source/model/WafRuleType.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/model/WafRuleType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WafRuleTypeMapper { - static const int REGULAR_HASH = HashingUtils::HashString("REGULAR"); - static const int RATE_BASED_HASH = HashingUtils::HashString("RATE_BASED"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); + static constexpr uint32_t REGULAR_HASH = ConstExprHashingUtils::HashString("REGULAR"); + static constexpr uint32_t RATE_BASED_HASH = ConstExprHashingUtils::HashString("RATE_BASED"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); WafRuleType GetWafRuleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGULAR_HASH) { return WafRuleType::REGULAR; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Errors.cpp b/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Errors.cpp index 7ff7e724251..da06373a4f1 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Errors.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Errors.cpp @@ -26,30 +26,30 @@ template<> AWS_WAFV2_API WAFInvalidParameterException WAFV2Error::GetModeledErro namespace WAFV2ErrorMapper { -static const int W_A_F_UNAVAILABLE_ENTITY_HASH = HashingUtils::HashString("WAFUnavailableEntityException"); -static const int W_A_F_LIMITS_EXCEEDED_HASH = HashingUtils::HashString("WAFLimitsExceededException"); -static const int W_A_F_UNSUPPORTED_AGGREGATE_KEY_TYPE_HASH = HashingUtils::HashString("WAFUnsupportedAggregateKeyTypeException"); -static const int W_A_F_INVALID_PARAMETER_HASH = HashingUtils::HashString("WAFInvalidParameterException"); -static const int W_A_F_INVALID_RESOURCE_HASH = HashingUtils::HashString("WAFInvalidResourceException"); -static const int W_A_F_INVALID_OPERATION_HASH = HashingUtils::HashString("WAFInvalidOperationException"); -static const int W_A_F_EXPIRED_MANAGED_RULE_GROUP_VERSION_HASH = HashingUtils::HashString("WAFExpiredManagedRuleGroupVersionException"); -static const int W_A_F_ASSOCIATED_ITEM_HASH = HashingUtils::HashString("WAFAssociatedItemException"); -static const int W_A_F_CONFIGURATION_WARNING_HASH = HashingUtils::HashString("WAFConfigurationWarningException"); -static const int W_A_F_SUBSCRIPTION_NOT_FOUND_HASH = HashingUtils::HashString("WAFSubscriptionNotFoundException"); -static const int W_A_F_INTERNAL_ERROR_HASH = HashingUtils::HashString("WAFInternalErrorException"); -static const int W_A_F_TAG_OPERATION_HASH = HashingUtils::HashString("WAFTagOperationException"); -static const int W_A_F_INVALID_PERMISSION_POLICY_HASH = HashingUtils::HashString("WAFInvalidPermissionPolicyException"); -static const int W_A_F_NONEXISTENT_ITEM_HASH = HashingUtils::HashString("WAFNonexistentItemException"); -static const int W_A_F_DUPLICATE_ITEM_HASH = HashingUtils::HashString("WAFDuplicateItemException"); -static const int W_A_F_OPTIMISTIC_LOCK_HASH = HashingUtils::HashString("WAFOptimisticLockException"); -static const int W_A_F_TAG_OPERATION_INTERNAL_ERROR_HASH = HashingUtils::HashString("WAFTagOperationInternalErrorException"); -static const int W_A_F_LOG_DESTINATION_PERMISSION_ISSUE_HASH = HashingUtils::HashString("WAFLogDestinationPermissionIssueException"); -static const int W_A_F_SERVICE_LINKED_ROLE_ERROR_HASH = HashingUtils::HashString("WAFServiceLinkedRoleErrorException"); +static constexpr uint32_t W_A_F_UNAVAILABLE_ENTITY_HASH = ConstExprHashingUtils::HashString("WAFUnavailableEntityException"); +static constexpr uint32_t W_A_F_LIMITS_EXCEEDED_HASH = ConstExprHashingUtils::HashString("WAFLimitsExceededException"); +static constexpr uint32_t W_A_F_UNSUPPORTED_AGGREGATE_KEY_TYPE_HASH = ConstExprHashingUtils::HashString("WAFUnsupportedAggregateKeyTypeException"); +static constexpr uint32_t W_A_F_INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("WAFInvalidParameterException"); +static constexpr uint32_t W_A_F_INVALID_RESOURCE_HASH = ConstExprHashingUtils::HashString("WAFInvalidResourceException"); +static constexpr uint32_t W_A_F_INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("WAFInvalidOperationException"); +static constexpr uint32_t W_A_F_EXPIRED_MANAGED_RULE_GROUP_VERSION_HASH = ConstExprHashingUtils::HashString("WAFExpiredManagedRuleGroupVersionException"); +static constexpr uint32_t W_A_F_ASSOCIATED_ITEM_HASH = ConstExprHashingUtils::HashString("WAFAssociatedItemException"); +static constexpr uint32_t W_A_F_CONFIGURATION_WARNING_HASH = ConstExprHashingUtils::HashString("WAFConfigurationWarningException"); +static constexpr uint32_t W_A_F_SUBSCRIPTION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("WAFSubscriptionNotFoundException"); +static constexpr uint32_t W_A_F_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("WAFInternalErrorException"); +static constexpr uint32_t W_A_F_TAG_OPERATION_HASH = ConstExprHashingUtils::HashString("WAFTagOperationException"); +static constexpr uint32_t W_A_F_INVALID_PERMISSION_POLICY_HASH = ConstExprHashingUtils::HashString("WAFInvalidPermissionPolicyException"); +static constexpr uint32_t W_A_F_NONEXISTENT_ITEM_HASH = ConstExprHashingUtils::HashString("WAFNonexistentItemException"); +static constexpr uint32_t W_A_F_DUPLICATE_ITEM_HASH = ConstExprHashingUtils::HashString("WAFDuplicateItemException"); +static constexpr uint32_t W_A_F_OPTIMISTIC_LOCK_HASH = ConstExprHashingUtils::HashString("WAFOptimisticLockException"); +static constexpr uint32_t W_A_F_TAG_OPERATION_INTERNAL_ERROR_HASH = ConstExprHashingUtils::HashString("WAFTagOperationInternalErrorException"); +static constexpr uint32_t W_A_F_LOG_DESTINATION_PERMISSION_ISSUE_HASH = ConstExprHashingUtils::HashString("WAFLogDestinationPermissionIssueException"); +static constexpr uint32_t W_A_F_SERVICE_LINKED_ROLE_ERROR_HASH = ConstExprHashingUtils::HashString("WAFServiceLinkedRoleErrorException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == W_A_F_UNAVAILABLE_ENTITY_HASH) { diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/ActionValue.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/ActionValue.cpp index 20e827ea580..ef0fdae96a3 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/ActionValue.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/ActionValue.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ActionValueMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); - static const int COUNT_HASH = HashingUtils::HashString("COUNT"); - static const int CAPTCHA_HASH = HashingUtils::HashString("CAPTCHA"); - static const int CHALLENGE_HASH = HashingUtils::HashString("CHALLENGE"); - static const int EXCLUDED_AS_COUNT_HASH = HashingUtils::HashString("EXCLUDED_AS_COUNT"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t BLOCK_HASH = ConstExprHashingUtils::HashString("BLOCK"); + static constexpr uint32_t COUNT_HASH = ConstExprHashingUtils::HashString("COUNT"); + static constexpr uint32_t CAPTCHA_HASH = ConstExprHashingUtils::HashString("CAPTCHA"); + static constexpr uint32_t CHALLENGE_HASH = ConstExprHashingUtils::HashString("CHALLENGE"); + static constexpr uint32_t EXCLUDED_AS_COUNT_HASH = ConstExprHashingUtils::HashString("EXCLUDED_AS_COUNT"); ActionValue GetActionValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return ActionValue::ALLOW; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/AssociatedResourceType.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/AssociatedResourceType.cpp index e8221aab1e2..a44325d364d 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/AssociatedResourceType.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/AssociatedResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssociatedResourceTypeMapper { - static const int CLOUDFRONT_HASH = HashingUtils::HashString("CLOUDFRONT"); + static constexpr uint32_t CLOUDFRONT_HASH = ConstExprHashingUtils::HashString("CLOUDFRONT"); AssociatedResourceType GetAssociatedResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFRONT_HASH) { return AssociatedResourceType::CLOUDFRONT; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/BodyParsingFallbackBehavior.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/BodyParsingFallbackBehavior.cpp index cd36d0f318e..279a6ced457 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/BodyParsingFallbackBehavior.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/BodyParsingFallbackBehavior.cpp @@ -20,14 +20,14 @@ namespace Aws namespace BodyParsingFallbackBehaviorMapper { - static const int MATCH_HASH = HashingUtils::HashString("MATCH"); - static const int NO_MATCH_HASH = HashingUtils::HashString("NO_MATCH"); - static const int EVALUATE_AS_STRING_HASH = HashingUtils::HashString("EVALUATE_AS_STRING"); + static constexpr uint32_t MATCH_HASH = ConstExprHashingUtils::HashString("MATCH"); + static constexpr uint32_t NO_MATCH_HASH = ConstExprHashingUtils::HashString("NO_MATCH"); + static constexpr uint32_t EVALUATE_AS_STRING_HASH = ConstExprHashingUtils::HashString("EVALUATE_AS_STRING"); BodyParsingFallbackBehavior GetBodyParsingFallbackBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MATCH_HASH) { return BodyParsingFallbackBehavior::MATCH; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/ComparisonOperator.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/ComparisonOperator.cpp index 8eb57693f2b..bc3cede3e1e 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/ComparisonOperator.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/ComparisonOperator.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ComparisonOperatorMapper { - static const int EQ_HASH = HashingUtils::HashString("EQ"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int LE_HASH = HashingUtils::HashString("LE"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int GT_HASH = HashingUtils::HashString("GT"); + static constexpr uint32_t EQ_HASH = ConstExprHashingUtils::HashString("EQ"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t LE_HASH = ConstExprHashingUtils::HashString("LE"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQ_HASH) { return ComparisonOperator::EQ; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/CountryCode.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/CountryCode.cpp index e61b18514f9..5717a31bb27 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/CountryCode.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/CountryCode.cpp @@ -20,263 +20,263 @@ namespace Aws namespace CountryCodeMapper { - static const int AF_HASH = HashingUtils::HashString("AF"); - static const int AX_HASH = HashingUtils::HashString("AX"); - static const int AL_HASH = HashingUtils::HashString("AL"); - static const int DZ_HASH = HashingUtils::HashString("DZ"); - static const int AS_HASH = HashingUtils::HashString("AS"); - static const int AD_HASH = HashingUtils::HashString("AD"); - static const int AO_HASH = HashingUtils::HashString("AO"); - static const int AI_HASH = HashingUtils::HashString("AI"); - static const int AQ_HASH = HashingUtils::HashString("AQ"); - static const int AG_HASH = HashingUtils::HashString("AG"); - static const int AR_HASH = HashingUtils::HashString("AR"); - static const int AM_HASH = HashingUtils::HashString("AM"); - static const int AW_HASH = HashingUtils::HashString("AW"); - static const int AU_HASH = HashingUtils::HashString("AU"); - static const int AT_HASH = HashingUtils::HashString("AT"); - static const int AZ_HASH = HashingUtils::HashString("AZ"); - static const int BS_HASH = HashingUtils::HashString("BS"); - static const int BH_HASH = HashingUtils::HashString("BH"); - static const int BD_HASH = HashingUtils::HashString("BD"); - static const int BB_HASH = HashingUtils::HashString("BB"); - static const int BY_HASH = HashingUtils::HashString("BY"); - static const int BE_HASH = HashingUtils::HashString("BE"); - static const int BZ_HASH = HashingUtils::HashString("BZ"); - static const int BJ_HASH = HashingUtils::HashString("BJ"); - static const int BM_HASH = HashingUtils::HashString("BM"); - static const int BT_HASH = HashingUtils::HashString("BT"); - static const int BO_HASH = HashingUtils::HashString("BO"); - static const int BQ_HASH = HashingUtils::HashString("BQ"); - static const int BA_HASH = HashingUtils::HashString("BA"); - static const int BW_HASH = HashingUtils::HashString("BW"); - static const int BV_HASH = HashingUtils::HashString("BV"); - static const int BR_HASH = HashingUtils::HashString("BR"); - static const int IO_HASH = HashingUtils::HashString("IO"); - static const int BN_HASH = HashingUtils::HashString("BN"); - static const int BG_HASH = HashingUtils::HashString("BG"); - static const int BF_HASH = HashingUtils::HashString("BF"); - static const int BI_HASH = HashingUtils::HashString("BI"); - static const int KH_HASH = HashingUtils::HashString("KH"); - static const int CM_HASH = HashingUtils::HashString("CM"); - static const int CA_HASH = HashingUtils::HashString("CA"); - static const int CV_HASH = HashingUtils::HashString("CV"); - static const int KY_HASH = HashingUtils::HashString("KY"); - static const int CF_HASH = HashingUtils::HashString("CF"); - static const int TD_HASH = HashingUtils::HashString("TD"); - static const int CL_HASH = HashingUtils::HashString("CL"); - static const int CN_HASH = HashingUtils::HashString("CN"); - static const int CX_HASH = HashingUtils::HashString("CX"); - static const int CC_HASH = HashingUtils::HashString("CC"); - static const int CO_HASH = HashingUtils::HashString("CO"); - static const int KM_HASH = HashingUtils::HashString("KM"); - static const int CG_HASH = HashingUtils::HashString("CG"); - static const int CD_HASH = HashingUtils::HashString("CD"); - static const int CK_HASH = HashingUtils::HashString("CK"); - static const int CR_HASH = HashingUtils::HashString("CR"); - static const int CI_HASH = HashingUtils::HashString("CI"); - static const int HR_HASH = HashingUtils::HashString("HR"); - static const int CU_HASH = HashingUtils::HashString("CU"); - static const int CW_HASH = HashingUtils::HashString("CW"); - static const int CY_HASH = HashingUtils::HashString("CY"); - static const int CZ_HASH = HashingUtils::HashString("CZ"); - static const int DK_HASH = HashingUtils::HashString("DK"); - static const int DJ_HASH = HashingUtils::HashString("DJ"); - static const int DM_HASH = HashingUtils::HashString("DM"); - static const int DO_HASH = HashingUtils::HashString("DO"); - static const int EC_HASH = HashingUtils::HashString("EC"); - static const int EG_HASH = HashingUtils::HashString("EG"); - static const int SV_HASH = HashingUtils::HashString("SV"); - static const int GQ_HASH = HashingUtils::HashString("GQ"); - static const int ER_HASH = HashingUtils::HashString("ER"); - static const int EE_HASH = HashingUtils::HashString("EE"); - static const int ET_HASH = HashingUtils::HashString("ET"); - static const int FK_HASH = HashingUtils::HashString("FK"); - static const int FO_HASH = HashingUtils::HashString("FO"); - static const int FJ_HASH = HashingUtils::HashString("FJ"); - static const int FI_HASH = HashingUtils::HashString("FI"); - static const int FR_HASH = HashingUtils::HashString("FR"); - static const int GF_HASH = HashingUtils::HashString("GF"); - static const int PF_HASH = HashingUtils::HashString("PF"); - static const int TF_HASH = HashingUtils::HashString("TF"); - static const int GA_HASH = HashingUtils::HashString("GA"); - static const int GM_HASH = HashingUtils::HashString("GM"); - static const int GE_HASH = HashingUtils::HashString("GE"); - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int GH_HASH = HashingUtils::HashString("GH"); - static const int GI_HASH = HashingUtils::HashString("GI"); - static const int GR_HASH = HashingUtils::HashString("GR"); - static const int GL_HASH = HashingUtils::HashString("GL"); - static const int GD_HASH = HashingUtils::HashString("GD"); - static const int GP_HASH = HashingUtils::HashString("GP"); - static const int GU_HASH = HashingUtils::HashString("GU"); - static const int GT_HASH = HashingUtils::HashString("GT"); - static const int GG_HASH = HashingUtils::HashString("GG"); - static const int GN_HASH = HashingUtils::HashString("GN"); - static const int GW_HASH = HashingUtils::HashString("GW"); - static const int GY_HASH = HashingUtils::HashString("GY"); - static const int HT_HASH = HashingUtils::HashString("HT"); - static const int HM_HASH = HashingUtils::HashString("HM"); - static const int VA_HASH = HashingUtils::HashString("VA"); - static const int HN_HASH = HashingUtils::HashString("HN"); - static const int HK_HASH = HashingUtils::HashString("HK"); - static const int HU_HASH = HashingUtils::HashString("HU"); - static const int IS_HASH = HashingUtils::HashString("IS"); - static const int IN_HASH = HashingUtils::HashString("IN"); - static const int ID_HASH = HashingUtils::HashString("ID"); - static const int IR_HASH = HashingUtils::HashString("IR"); - static const int IQ_HASH = HashingUtils::HashString("IQ"); - static const int IE_HASH = HashingUtils::HashString("IE"); - static const int IM_HASH = HashingUtils::HashString("IM"); - static const int IL_HASH = HashingUtils::HashString("IL"); - static const int IT_HASH = HashingUtils::HashString("IT"); - static const int JM_HASH = HashingUtils::HashString("JM"); - static const int JP_HASH = HashingUtils::HashString("JP"); - static const int JE_HASH = HashingUtils::HashString("JE"); - static const int JO_HASH = HashingUtils::HashString("JO"); - static const int KZ_HASH = HashingUtils::HashString("KZ"); - static const int KE_HASH = HashingUtils::HashString("KE"); - static const int KI_HASH = HashingUtils::HashString("KI"); - static const int KP_HASH = HashingUtils::HashString("KP"); - static const int KR_HASH = HashingUtils::HashString("KR"); - static const int KW_HASH = HashingUtils::HashString("KW"); - static const int KG_HASH = HashingUtils::HashString("KG"); - static const int LA_HASH = HashingUtils::HashString("LA"); - static const int LV_HASH = HashingUtils::HashString("LV"); - static const int LB_HASH = HashingUtils::HashString("LB"); - static const int LS_HASH = HashingUtils::HashString("LS"); - static const int LR_HASH = HashingUtils::HashString("LR"); - static const int LY_HASH = HashingUtils::HashString("LY"); - static const int LI_HASH = HashingUtils::HashString("LI"); - static const int LT_HASH = HashingUtils::HashString("LT"); - static const int LU_HASH = HashingUtils::HashString("LU"); - static const int MO_HASH = HashingUtils::HashString("MO"); - static const int MK_HASH = HashingUtils::HashString("MK"); - static const int MG_HASH = HashingUtils::HashString("MG"); - static const int MW_HASH = HashingUtils::HashString("MW"); - static const int MY_HASH = HashingUtils::HashString("MY"); - static const int MV_HASH = HashingUtils::HashString("MV"); - static const int ML_HASH = HashingUtils::HashString("ML"); - static const int MT_HASH = HashingUtils::HashString("MT"); - static const int MH_HASH = HashingUtils::HashString("MH"); - static const int MQ_HASH = HashingUtils::HashString("MQ"); - static const int MR_HASH = HashingUtils::HashString("MR"); - static const int MU_HASH = HashingUtils::HashString("MU"); - static const int YT_HASH = HashingUtils::HashString("YT"); - static const int MX_HASH = HashingUtils::HashString("MX"); - static const int FM_HASH = HashingUtils::HashString("FM"); - static const int MD_HASH = HashingUtils::HashString("MD"); - static const int MC_HASH = HashingUtils::HashString("MC"); - static const int MN_HASH = HashingUtils::HashString("MN"); - static const int ME_HASH = HashingUtils::HashString("ME"); - static const int MS_HASH = HashingUtils::HashString("MS"); - static const int MA_HASH = HashingUtils::HashString("MA"); - static const int MZ_HASH = HashingUtils::HashString("MZ"); - static const int MM_HASH = HashingUtils::HashString("MM"); - static const int NA_HASH = HashingUtils::HashString("NA"); - static const int NR_HASH = HashingUtils::HashString("NR"); - static const int NP_HASH = HashingUtils::HashString("NP"); - static const int NL_HASH = HashingUtils::HashString("NL"); - static const int NC_HASH = HashingUtils::HashString("NC"); - static const int NZ_HASH = HashingUtils::HashString("NZ"); - static const int NI_HASH = HashingUtils::HashString("NI"); - static const int NE_HASH = HashingUtils::HashString("NE"); - static const int NG_HASH = HashingUtils::HashString("NG"); - static const int NU_HASH = HashingUtils::HashString("NU"); - static const int NF_HASH = HashingUtils::HashString("NF"); - static const int MP_HASH = HashingUtils::HashString("MP"); - static const int NO_HASH = HashingUtils::HashString("NO"); - static const int OM_HASH = HashingUtils::HashString("OM"); - static const int PK_HASH = HashingUtils::HashString("PK"); - static const int PW_HASH = HashingUtils::HashString("PW"); - static const int PS_HASH = HashingUtils::HashString("PS"); - static const int PA_HASH = HashingUtils::HashString("PA"); - static const int PG_HASH = HashingUtils::HashString("PG"); - static const int PY_HASH = HashingUtils::HashString("PY"); - static const int PE_HASH = HashingUtils::HashString("PE"); - static const int PH_HASH = HashingUtils::HashString("PH"); - static const int PN_HASH = HashingUtils::HashString("PN"); - static const int PL_HASH = HashingUtils::HashString("PL"); - static const int PT_HASH = HashingUtils::HashString("PT"); - static const int PR_HASH = HashingUtils::HashString("PR"); - static const int QA_HASH = HashingUtils::HashString("QA"); - static const int RE_HASH = HashingUtils::HashString("RE"); - static const int RO_HASH = HashingUtils::HashString("RO"); - static const int RU_HASH = HashingUtils::HashString("RU"); - static const int RW_HASH = HashingUtils::HashString("RW"); - static const int BL_HASH = HashingUtils::HashString("BL"); - static const int SH_HASH = HashingUtils::HashString("SH"); - static const int KN_HASH = HashingUtils::HashString("KN"); - static const int LC_HASH = HashingUtils::HashString("LC"); - static const int MF_HASH = HashingUtils::HashString("MF"); - static const int PM_HASH = HashingUtils::HashString("PM"); - static const int VC_HASH = HashingUtils::HashString("VC"); - static const int WS_HASH = HashingUtils::HashString("WS"); - static const int SM_HASH = HashingUtils::HashString("SM"); - static const int ST_HASH = HashingUtils::HashString("ST"); - static const int SA_HASH = HashingUtils::HashString("SA"); - static const int SN_HASH = HashingUtils::HashString("SN"); - static const int RS_HASH = HashingUtils::HashString("RS"); - static const int SC_HASH = HashingUtils::HashString("SC"); - static const int SL_HASH = HashingUtils::HashString("SL"); - static const int SG_HASH = HashingUtils::HashString("SG"); - static const int SX_HASH = HashingUtils::HashString("SX"); - static const int SK_HASH = HashingUtils::HashString("SK"); - static const int SI_HASH = HashingUtils::HashString("SI"); - static const int SB_HASH = HashingUtils::HashString("SB"); - static const int SO_HASH = HashingUtils::HashString("SO"); - static const int ZA_HASH = HashingUtils::HashString("ZA"); - static const int GS_HASH = HashingUtils::HashString("GS"); - static const int SS_HASH = HashingUtils::HashString("SS"); - static const int ES_HASH = HashingUtils::HashString("ES"); - static const int LK_HASH = HashingUtils::HashString("LK"); - static const int SD_HASH = HashingUtils::HashString("SD"); - static const int SR_HASH = HashingUtils::HashString("SR"); - static const int SJ_HASH = HashingUtils::HashString("SJ"); - static const int SZ_HASH = HashingUtils::HashString("SZ"); - static const int SE_HASH = HashingUtils::HashString("SE"); - static const int CH_HASH = HashingUtils::HashString("CH"); - static const int SY_HASH = HashingUtils::HashString("SY"); - static const int TW_HASH = HashingUtils::HashString("TW"); - static const int TJ_HASH = HashingUtils::HashString("TJ"); - static const int TZ_HASH = HashingUtils::HashString("TZ"); - static const int TH_HASH = HashingUtils::HashString("TH"); - static const int TL_HASH = HashingUtils::HashString("TL"); - static const int TG_HASH = HashingUtils::HashString("TG"); - static const int TK_HASH = HashingUtils::HashString("TK"); - static const int TO_HASH = HashingUtils::HashString("TO"); - static const int TT_HASH = HashingUtils::HashString("TT"); - static const int TN_HASH = HashingUtils::HashString("TN"); - static const int TR_HASH = HashingUtils::HashString("TR"); - static const int TM_HASH = HashingUtils::HashString("TM"); - static const int TC_HASH = HashingUtils::HashString("TC"); - static const int TV_HASH = HashingUtils::HashString("TV"); - static const int UG_HASH = HashingUtils::HashString("UG"); - static const int UA_HASH = HashingUtils::HashString("UA"); - static const int AE_HASH = HashingUtils::HashString("AE"); - static const int GB_HASH = HashingUtils::HashString("GB"); - static const int US_HASH = HashingUtils::HashString("US"); - static const int UM_HASH = HashingUtils::HashString("UM"); - static const int UY_HASH = HashingUtils::HashString("UY"); - static const int UZ_HASH = HashingUtils::HashString("UZ"); - static const int VU_HASH = HashingUtils::HashString("VU"); - static const int VE_HASH = HashingUtils::HashString("VE"); - static const int VN_HASH = HashingUtils::HashString("VN"); - static const int VG_HASH = HashingUtils::HashString("VG"); - static const int VI_HASH = HashingUtils::HashString("VI"); - static const int WF_HASH = HashingUtils::HashString("WF"); - static const int EH_HASH = HashingUtils::HashString("EH"); - static const int YE_HASH = HashingUtils::HashString("YE"); - static const int ZM_HASH = HashingUtils::HashString("ZM"); - static const int ZW_HASH = HashingUtils::HashString("ZW"); - static const int XK_HASH = HashingUtils::HashString("XK"); + static constexpr uint32_t AF_HASH = ConstExprHashingUtils::HashString("AF"); + static constexpr uint32_t AX_HASH = ConstExprHashingUtils::HashString("AX"); + static constexpr uint32_t AL_HASH = ConstExprHashingUtils::HashString("AL"); + static constexpr uint32_t DZ_HASH = ConstExprHashingUtils::HashString("DZ"); + static constexpr uint32_t AS_HASH = ConstExprHashingUtils::HashString("AS"); + static constexpr uint32_t AD_HASH = ConstExprHashingUtils::HashString("AD"); + static constexpr uint32_t AO_HASH = ConstExprHashingUtils::HashString("AO"); + static constexpr uint32_t AI_HASH = ConstExprHashingUtils::HashString("AI"); + static constexpr uint32_t AQ_HASH = ConstExprHashingUtils::HashString("AQ"); + static constexpr uint32_t AG_HASH = ConstExprHashingUtils::HashString("AG"); + static constexpr uint32_t AR_HASH = ConstExprHashingUtils::HashString("AR"); + static constexpr uint32_t AM_HASH = ConstExprHashingUtils::HashString("AM"); + static constexpr uint32_t AW_HASH = ConstExprHashingUtils::HashString("AW"); + static constexpr uint32_t AU_HASH = ConstExprHashingUtils::HashString("AU"); + static constexpr uint32_t AT_HASH = ConstExprHashingUtils::HashString("AT"); + static constexpr uint32_t AZ_HASH = ConstExprHashingUtils::HashString("AZ"); + static constexpr uint32_t BS_HASH = ConstExprHashingUtils::HashString("BS"); + static constexpr uint32_t BH_HASH = ConstExprHashingUtils::HashString("BH"); + static constexpr uint32_t BD_HASH = ConstExprHashingUtils::HashString("BD"); + static constexpr uint32_t BB_HASH = ConstExprHashingUtils::HashString("BB"); + static constexpr uint32_t BY_HASH = ConstExprHashingUtils::HashString("BY"); + static constexpr uint32_t BE_HASH = ConstExprHashingUtils::HashString("BE"); + static constexpr uint32_t BZ_HASH = ConstExprHashingUtils::HashString("BZ"); + static constexpr uint32_t BJ_HASH = ConstExprHashingUtils::HashString("BJ"); + static constexpr uint32_t BM_HASH = ConstExprHashingUtils::HashString("BM"); + static constexpr uint32_t BT_HASH = ConstExprHashingUtils::HashString("BT"); + static constexpr uint32_t BO_HASH = ConstExprHashingUtils::HashString("BO"); + static constexpr uint32_t BQ_HASH = ConstExprHashingUtils::HashString("BQ"); + static constexpr uint32_t BA_HASH = ConstExprHashingUtils::HashString("BA"); + static constexpr uint32_t BW_HASH = ConstExprHashingUtils::HashString("BW"); + static constexpr uint32_t BV_HASH = ConstExprHashingUtils::HashString("BV"); + static constexpr uint32_t BR_HASH = ConstExprHashingUtils::HashString("BR"); + static constexpr uint32_t IO_HASH = ConstExprHashingUtils::HashString("IO"); + static constexpr uint32_t BN_HASH = ConstExprHashingUtils::HashString("BN"); + static constexpr uint32_t BG_HASH = ConstExprHashingUtils::HashString("BG"); + static constexpr uint32_t BF_HASH = ConstExprHashingUtils::HashString("BF"); + static constexpr uint32_t BI_HASH = ConstExprHashingUtils::HashString("BI"); + static constexpr uint32_t KH_HASH = ConstExprHashingUtils::HashString("KH"); + static constexpr uint32_t CM_HASH = ConstExprHashingUtils::HashString("CM"); + static constexpr uint32_t CA_HASH = ConstExprHashingUtils::HashString("CA"); + static constexpr uint32_t CV_HASH = ConstExprHashingUtils::HashString("CV"); + static constexpr uint32_t KY_HASH = ConstExprHashingUtils::HashString("KY"); + static constexpr uint32_t CF_HASH = ConstExprHashingUtils::HashString("CF"); + static constexpr uint32_t TD_HASH = ConstExprHashingUtils::HashString("TD"); + static constexpr uint32_t CL_HASH = ConstExprHashingUtils::HashString("CL"); + static constexpr uint32_t CN_HASH = ConstExprHashingUtils::HashString("CN"); + static constexpr uint32_t CX_HASH = ConstExprHashingUtils::HashString("CX"); + static constexpr uint32_t CC_HASH = ConstExprHashingUtils::HashString("CC"); + static constexpr uint32_t CO_HASH = ConstExprHashingUtils::HashString("CO"); + static constexpr uint32_t KM_HASH = ConstExprHashingUtils::HashString("KM"); + static constexpr uint32_t CG_HASH = ConstExprHashingUtils::HashString("CG"); + static constexpr uint32_t CD_HASH = ConstExprHashingUtils::HashString("CD"); + static constexpr uint32_t CK_HASH = ConstExprHashingUtils::HashString("CK"); + static constexpr uint32_t CR_HASH = ConstExprHashingUtils::HashString("CR"); + static constexpr uint32_t CI_HASH = ConstExprHashingUtils::HashString("CI"); + static constexpr uint32_t HR_HASH = ConstExprHashingUtils::HashString("HR"); + static constexpr uint32_t CU_HASH = ConstExprHashingUtils::HashString("CU"); + static constexpr uint32_t CW_HASH = ConstExprHashingUtils::HashString("CW"); + static constexpr uint32_t CY_HASH = ConstExprHashingUtils::HashString("CY"); + static constexpr uint32_t CZ_HASH = ConstExprHashingUtils::HashString("CZ"); + static constexpr uint32_t DK_HASH = ConstExprHashingUtils::HashString("DK"); + static constexpr uint32_t DJ_HASH = ConstExprHashingUtils::HashString("DJ"); + static constexpr uint32_t DM_HASH = ConstExprHashingUtils::HashString("DM"); + static constexpr uint32_t DO_HASH = ConstExprHashingUtils::HashString("DO"); + static constexpr uint32_t EC_HASH = ConstExprHashingUtils::HashString("EC"); + static constexpr uint32_t EG_HASH = ConstExprHashingUtils::HashString("EG"); + static constexpr uint32_t SV_HASH = ConstExprHashingUtils::HashString("SV"); + static constexpr uint32_t GQ_HASH = ConstExprHashingUtils::HashString("GQ"); + static constexpr uint32_t ER_HASH = ConstExprHashingUtils::HashString("ER"); + static constexpr uint32_t EE_HASH = ConstExprHashingUtils::HashString("EE"); + static constexpr uint32_t ET_HASH = ConstExprHashingUtils::HashString("ET"); + static constexpr uint32_t FK_HASH = ConstExprHashingUtils::HashString("FK"); + static constexpr uint32_t FO_HASH = ConstExprHashingUtils::HashString("FO"); + static constexpr uint32_t FJ_HASH = ConstExprHashingUtils::HashString("FJ"); + static constexpr uint32_t FI_HASH = ConstExprHashingUtils::HashString("FI"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t GF_HASH = ConstExprHashingUtils::HashString("GF"); + static constexpr uint32_t PF_HASH = ConstExprHashingUtils::HashString("PF"); + static constexpr uint32_t TF_HASH = ConstExprHashingUtils::HashString("TF"); + static constexpr uint32_t GA_HASH = ConstExprHashingUtils::HashString("GA"); + static constexpr uint32_t GM_HASH = ConstExprHashingUtils::HashString("GM"); + static constexpr uint32_t GE_HASH = ConstExprHashingUtils::HashString("GE"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t GH_HASH = ConstExprHashingUtils::HashString("GH"); + static constexpr uint32_t GI_HASH = ConstExprHashingUtils::HashString("GI"); + static constexpr uint32_t GR_HASH = ConstExprHashingUtils::HashString("GR"); + static constexpr uint32_t GL_HASH = ConstExprHashingUtils::HashString("GL"); + static constexpr uint32_t GD_HASH = ConstExprHashingUtils::HashString("GD"); + static constexpr uint32_t GP_HASH = ConstExprHashingUtils::HashString("GP"); + static constexpr uint32_t GU_HASH = ConstExprHashingUtils::HashString("GU"); + static constexpr uint32_t GT_HASH = ConstExprHashingUtils::HashString("GT"); + static constexpr uint32_t GG_HASH = ConstExprHashingUtils::HashString("GG"); + static constexpr uint32_t GN_HASH = ConstExprHashingUtils::HashString("GN"); + static constexpr uint32_t GW_HASH = ConstExprHashingUtils::HashString("GW"); + static constexpr uint32_t GY_HASH = ConstExprHashingUtils::HashString("GY"); + static constexpr uint32_t HT_HASH = ConstExprHashingUtils::HashString("HT"); + static constexpr uint32_t HM_HASH = ConstExprHashingUtils::HashString("HM"); + static constexpr uint32_t VA_HASH = ConstExprHashingUtils::HashString("VA"); + static constexpr uint32_t HN_HASH = ConstExprHashingUtils::HashString("HN"); + static constexpr uint32_t HK_HASH = ConstExprHashingUtils::HashString("HK"); + static constexpr uint32_t HU_HASH = ConstExprHashingUtils::HashString("HU"); + static constexpr uint32_t IS_HASH = ConstExprHashingUtils::HashString("IS"); + static constexpr uint32_t IN_HASH = ConstExprHashingUtils::HashString("IN"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t IR_HASH = ConstExprHashingUtils::HashString("IR"); + static constexpr uint32_t IQ_HASH = ConstExprHashingUtils::HashString("IQ"); + static constexpr uint32_t IE_HASH = ConstExprHashingUtils::HashString("IE"); + static constexpr uint32_t IM_HASH = ConstExprHashingUtils::HashString("IM"); + static constexpr uint32_t IL_HASH = ConstExprHashingUtils::HashString("IL"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t JM_HASH = ConstExprHashingUtils::HashString("JM"); + static constexpr uint32_t JP_HASH = ConstExprHashingUtils::HashString("JP"); + static constexpr uint32_t JE_HASH = ConstExprHashingUtils::HashString("JE"); + static constexpr uint32_t JO_HASH = ConstExprHashingUtils::HashString("JO"); + static constexpr uint32_t KZ_HASH = ConstExprHashingUtils::HashString("KZ"); + static constexpr uint32_t KE_HASH = ConstExprHashingUtils::HashString("KE"); + static constexpr uint32_t KI_HASH = ConstExprHashingUtils::HashString("KI"); + static constexpr uint32_t KP_HASH = ConstExprHashingUtils::HashString("KP"); + static constexpr uint32_t KR_HASH = ConstExprHashingUtils::HashString("KR"); + static constexpr uint32_t KW_HASH = ConstExprHashingUtils::HashString("KW"); + static constexpr uint32_t KG_HASH = ConstExprHashingUtils::HashString("KG"); + static constexpr uint32_t LA_HASH = ConstExprHashingUtils::HashString("LA"); + static constexpr uint32_t LV_HASH = ConstExprHashingUtils::HashString("LV"); + static constexpr uint32_t LB_HASH = ConstExprHashingUtils::HashString("LB"); + static constexpr uint32_t LS_HASH = ConstExprHashingUtils::HashString("LS"); + static constexpr uint32_t LR_HASH = ConstExprHashingUtils::HashString("LR"); + static constexpr uint32_t LY_HASH = ConstExprHashingUtils::HashString("LY"); + static constexpr uint32_t LI_HASH = ConstExprHashingUtils::HashString("LI"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LU_HASH = ConstExprHashingUtils::HashString("LU"); + static constexpr uint32_t MO_HASH = ConstExprHashingUtils::HashString("MO"); + static constexpr uint32_t MK_HASH = ConstExprHashingUtils::HashString("MK"); + static constexpr uint32_t MG_HASH = ConstExprHashingUtils::HashString("MG"); + static constexpr uint32_t MW_HASH = ConstExprHashingUtils::HashString("MW"); + static constexpr uint32_t MY_HASH = ConstExprHashingUtils::HashString("MY"); + static constexpr uint32_t MV_HASH = ConstExprHashingUtils::HashString("MV"); + static constexpr uint32_t ML_HASH = ConstExprHashingUtils::HashString("ML"); + static constexpr uint32_t MT_HASH = ConstExprHashingUtils::HashString("MT"); + static constexpr uint32_t MH_HASH = ConstExprHashingUtils::HashString("MH"); + static constexpr uint32_t MQ_HASH = ConstExprHashingUtils::HashString("MQ"); + static constexpr uint32_t MR_HASH = ConstExprHashingUtils::HashString("MR"); + static constexpr uint32_t MU_HASH = ConstExprHashingUtils::HashString("MU"); + static constexpr uint32_t YT_HASH = ConstExprHashingUtils::HashString("YT"); + static constexpr uint32_t MX_HASH = ConstExprHashingUtils::HashString("MX"); + static constexpr uint32_t FM_HASH = ConstExprHashingUtils::HashString("FM"); + static constexpr uint32_t MD_HASH = ConstExprHashingUtils::HashString("MD"); + static constexpr uint32_t MC_HASH = ConstExprHashingUtils::HashString("MC"); + static constexpr uint32_t MN_HASH = ConstExprHashingUtils::HashString("MN"); + static constexpr uint32_t ME_HASH = ConstExprHashingUtils::HashString("ME"); + static constexpr uint32_t MS_HASH = ConstExprHashingUtils::HashString("MS"); + static constexpr uint32_t MA_HASH = ConstExprHashingUtils::HashString("MA"); + static constexpr uint32_t MZ_HASH = ConstExprHashingUtils::HashString("MZ"); + static constexpr uint32_t MM_HASH = ConstExprHashingUtils::HashString("MM"); + static constexpr uint32_t NA_HASH = ConstExprHashingUtils::HashString("NA"); + static constexpr uint32_t NR_HASH = ConstExprHashingUtils::HashString("NR"); + static constexpr uint32_t NP_HASH = ConstExprHashingUtils::HashString("NP"); + static constexpr uint32_t NL_HASH = ConstExprHashingUtils::HashString("NL"); + static constexpr uint32_t NC_HASH = ConstExprHashingUtils::HashString("NC"); + static constexpr uint32_t NZ_HASH = ConstExprHashingUtils::HashString("NZ"); + static constexpr uint32_t NI_HASH = ConstExprHashingUtils::HashString("NI"); + static constexpr uint32_t NE_HASH = ConstExprHashingUtils::HashString("NE"); + static constexpr uint32_t NG_HASH = ConstExprHashingUtils::HashString("NG"); + static constexpr uint32_t NU_HASH = ConstExprHashingUtils::HashString("NU"); + static constexpr uint32_t NF_HASH = ConstExprHashingUtils::HashString("NF"); + static constexpr uint32_t MP_HASH = ConstExprHashingUtils::HashString("MP"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t OM_HASH = ConstExprHashingUtils::HashString("OM"); + static constexpr uint32_t PK_HASH = ConstExprHashingUtils::HashString("PK"); + static constexpr uint32_t PW_HASH = ConstExprHashingUtils::HashString("PW"); + static constexpr uint32_t PS_HASH = ConstExprHashingUtils::HashString("PS"); + static constexpr uint32_t PA_HASH = ConstExprHashingUtils::HashString("PA"); + static constexpr uint32_t PG_HASH = ConstExprHashingUtils::HashString("PG"); + static constexpr uint32_t PY_HASH = ConstExprHashingUtils::HashString("PY"); + static constexpr uint32_t PE_HASH = ConstExprHashingUtils::HashString("PE"); + static constexpr uint32_t PH_HASH = ConstExprHashingUtils::HashString("PH"); + static constexpr uint32_t PN_HASH = ConstExprHashingUtils::HashString("PN"); + static constexpr uint32_t PL_HASH = ConstExprHashingUtils::HashString("PL"); + static constexpr uint32_t PT_HASH = ConstExprHashingUtils::HashString("PT"); + static constexpr uint32_t PR_HASH = ConstExprHashingUtils::HashString("PR"); + static constexpr uint32_t QA_HASH = ConstExprHashingUtils::HashString("QA"); + static constexpr uint32_t RE_HASH = ConstExprHashingUtils::HashString("RE"); + static constexpr uint32_t RO_HASH = ConstExprHashingUtils::HashString("RO"); + static constexpr uint32_t RU_HASH = ConstExprHashingUtils::HashString("RU"); + static constexpr uint32_t RW_HASH = ConstExprHashingUtils::HashString("RW"); + static constexpr uint32_t BL_HASH = ConstExprHashingUtils::HashString("BL"); + static constexpr uint32_t SH_HASH = ConstExprHashingUtils::HashString("SH"); + static constexpr uint32_t KN_HASH = ConstExprHashingUtils::HashString("KN"); + static constexpr uint32_t LC_HASH = ConstExprHashingUtils::HashString("LC"); + static constexpr uint32_t MF_HASH = ConstExprHashingUtils::HashString("MF"); + static constexpr uint32_t PM_HASH = ConstExprHashingUtils::HashString("PM"); + static constexpr uint32_t VC_HASH = ConstExprHashingUtils::HashString("VC"); + static constexpr uint32_t WS_HASH = ConstExprHashingUtils::HashString("WS"); + static constexpr uint32_t SM_HASH = ConstExprHashingUtils::HashString("SM"); + static constexpr uint32_t ST_HASH = ConstExprHashingUtils::HashString("ST"); + static constexpr uint32_t SA_HASH = ConstExprHashingUtils::HashString("SA"); + static constexpr uint32_t SN_HASH = ConstExprHashingUtils::HashString("SN"); + static constexpr uint32_t RS_HASH = ConstExprHashingUtils::HashString("RS"); + static constexpr uint32_t SC_HASH = ConstExprHashingUtils::HashString("SC"); + static constexpr uint32_t SL_HASH = ConstExprHashingUtils::HashString("SL"); + static constexpr uint32_t SG_HASH = ConstExprHashingUtils::HashString("SG"); + static constexpr uint32_t SX_HASH = ConstExprHashingUtils::HashString("SX"); + static constexpr uint32_t SK_HASH = ConstExprHashingUtils::HashString("SK"); + static constexpr uint32_t SI_HASH = ConstExprHashingUtils::HashString("SI"); + static constexpr uint32_t SB_HASH = ConstExprHashingUtils::HashString("SB"); + static constexpr uint32_t SO_HASH = ConstExprHashingUtils::HashString("SO"); + static constexpr uint32_t ZA_HASH = ConstExprHashingUtils::HashString("ZA"); + static constexpr uint32_t GS_HASH = ConstExprHashingUtils::HashString("GS"); + static constexpr uint32_t SS_HASH = ConstExprHashingUtils::HashString("SS"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t LK_HASH = ConstExprHashingUtils::HashString("LK"); + static constexpr uint32_t SD_HASH = ConstExprHashingUtils::HashString("SD"); + static constexpr uint32_t SR_HASH = ConstExprHashingUtils::HashString("SR"); + static constexpr uint32_t SJ_HASH = ConstExprHashingUtils::HashString("SJ"); + static constexpr uint32_t SZ_HASH = ConstExprHashingUtils::HashString("SZ"); + static constexpr uint32_t SE_HASH = ConstExprHashingUtils::HashString("SE"); + static constexpr uint32_t CH_HASH = ConstExprHashingUtils::HashString("CH"); + static constexpr uint32_t SY_HASH = ConstExprHashingUtils::HashString("SY"); + static constexpr uint32_t TW_HASH = ConstExprHashingUtils::HashString("TW"); + static constexpr uint32_t TJ_HASH = ConstExprHashingUtils::HashString("TJ"); + static constexpr uint32_t TZ_HASH = ConstExprHashingUtils::HashString("TZ"); + static constexpr uint32_t TH_HASH = ConstExprHashingUtils::HashString("TH"); + static constexpr uint32_t TL_HASH = ConstExprHashingUtils::HashString("TL"); + static constexpr uint32_t TG_HASH = ConstExprHashingUtils::HashString("TG"); + static constexpr uint32_t TK_HASH = ConstExprHashingUtils::HashString("TK"); + static constexpr uint32_t TO_HASH = ConstExprHashingUtils::HashString("TO"); + static constexpr uint32_t TT_HASH = ConstExprHashingUtils::HashString("TT"); + static constexpr uint32_t TN_HASH = ConstExprHashingUtils::HashString("TN"); + static constexpr uint32_t TR_HASH = ConstExprHashingUtils::HashString("TR"); + static constexpr uint32_t TM_HASH = ConstExprHashingUtils::HashString("TM"); + static constexpr uint32_t TC_HASH = ConstExprHashingUtils::HashString("TC"); + static constexpr uint32_t TV_HASH = ConstExprHashingUtils::HashString("TV"); + static constexpr uint32_t UG_HASH = ConstExprHashingUtils::HashString("UG"); + static constexpr uint32_t UA_HASH = ConstExprHashingUtils::HashString("UA"); + static constexpr uint32_t AE_HASH = ConstExprHashingUtils::HashString("AE"); + static constexpr uint32_t GB_HASH = ConstExprHashingUtils::HashString("GB"); + static constexpr uint32_t US_HASH = ConstExprHashingUtils::HashString("US"); + static constexpr uint32_t UM_HASH = ConstExprHashingUtils::HashString("UM"); + static constexpr uint32_t UY_HASH = ConstExprHashingUtils::HashString("UY"); + static constexpr uint32_t UZ_HASH = ConstExprHashingUtils::HashString("UZ"); + static constexpr uint32_t VU_HASH = ConstExprHashingUtils::HashString("VU"); + static constexpr uint32_t VE_HASH = ConstExprHashingUtils::HashString("VE"); + static constexpr uint32_t VN_HASH = ConstExprHashingUtils::HashString("VN"); + static constexpr uint32_t VG_HASH = ConstExprHashingUtils::HashString("VG"); + static constexpr uint32_t VI_HASH = ConstExprHashingUtils::HashString("VI"); + static constexpr uint32_t WF_HASH = ConstExprHashingUtils::HashString("WF"); + static constexpr uint32_t EH_HASH = ConstExprHashingUtils::HashString("EH"); + static constexpr uint32_t YE_HASH = ConstExprHashingUtils::HashString("YE"); + static constexpr uint32_t ZM_HASH = ConstExprHashingUtils::HashString("ZM"); + static constexpr uint32_t ZW_HASH = ConstExprHashingUtils::HashString("ZW"); + static constexpr uint32_t XK_HASH = ConstExprHashingUtils::HashString("XK"); /* The if-else chains in this file are converted into a jump table by the compiler, which allows constant time lookup. The chain has been broken into helper functions because MSVC has a maximum of 122 chained if-else blocks. */ - static bool GetEnumForNameHelper0(int hashCode, CountryCode& enumValue) + static bool GetEnumForNameHelper0(uint32_t hashCode, CountryCode& enumValue) { if (hashCode == AF_HASH) { @@ -890,7 +890,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper1(int hashCode, CountryCode& enumValue) + static bool GetEnumForNameHelper1(uint32_t hashCode, CountryCode& enumValue) { if (hashCode == LV_HASH) { @@ -1504,7 +1504,7 @@ namespace Aws } return false; } - static bool GetEnumForNameHelper2(int hashCode, CountryCode& enumValue) + static bool GetEnumForNameHelper2(uint32_t hashCode, CountryCode& enumValue) { if (hashCode == WF_HASH) { @@ -2316,7 +2316,7 @@ namespace Aws CountryCode GetCountryCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); CountryCode enumValue; if (GetEnumForNameHelper0(hashCode, enumValue)) { diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/FailureReason.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/FailureReason.cpp index b725d2942a8..8ba8095d38a 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/FailureReason.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/FailureReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace FailureReasonMapper { - static const int TOKEN_MISSING_HASH = HashingUtils::HashString("TOKEN_MISSING"); - static const int TOKEN_EXPIRED_HASH = HashingUtils::HashString("TOKEN_EXPIRED"); - static const int TOKEN_INVALID_HASH = HashingUtils::HashString("TOKEN_INVALID"); - static const int TOKEN_DOMAIN_MISMATCH_HASH = HashingUtils::HashString("TOKEN_DOMAIN_MISMATCH"); + static constexpr uint32_t TOKEN_MISSING_HASH = ConstExprHashingUtils::HashString("TOKEN_MISSING"); + static constexpr uint32_t TOKEN_EXPIRED_HASH = ConstExprHashingUtils::HashString("TOKEN_EXPIRED"); + static constexpr uint32_t TOKEN_INVALID_HASH = ConstExprHashingUtils::HashString("TOKEN_INVALID"); + static constexpr uint32_t TOKEN_DOMAIN_MISMATCH_HASH = ConstExprHashingUtils::HashString("TOKEN_DOMAIN_MISMATCH"); FailureReason GetFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TOKEN_MISSING_HASH) { return FailureReason::TOKEN_MISSING; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/FallbackBehavior.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/FallbackBehavior.cpp index 979df869ef2..e5898f652f8 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/FallbackBehavior.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/FallbackBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FallbackBehaviorMapper { - static const int MATCH_HASH = HashingUtils::HashString("MATCH"); - static const int NO_MATCH_HASH = HashingUtils::HashString("NO_MATCH"); + static constexpr uint32_t MATCH_HASH = ConstExprHashingUtils::HashString("MATCH"); + static constexpr uint32_t NO_MATCH_HASH = ConstExprHashingUtils::HashString("NO_MATCH"); FallbackBehavior GetFallbackBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MATCH_HASH) { return FallbackBehavior::MATCH; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/FilterBehavior.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/FilterBehavior.cpp index f81ce27a831..4e82dcf7b71 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/FilterBehavior.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/FilterBehavior.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterBehaviorMapper { - static const int KEEP_HASH = HashingUtils::HashString("KEEP"); - static const int DROP_HASH = HashingUtils::HashString("DROP"); + static constexpr uint32_t KEEP_HASH = ConstExprHashingUtils::HashString("KEEP"); + static constexpr uint32_t DROP_HASH = ConstExprHashingUtils::HashString("DROP"); FilterBehavior GetFilterBehaviorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KEEP_HASH) { return FilterBehavior::KEEP; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/FilterRequirement.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/FilterRequirement.cpp index aced6f9c27a..8e3288af1e8 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/FilterRequirement.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/FilterRequirement.cpp @@ -20,13 +20,13 @@ namespace Aws namespace FilterRequirementMapper { - static const int MEETS_ALL_HASH = HashingUtils::HashString("MEETS_ALL"); - static const int MEETS_ANY_HASH = HashingUtils::HashString("MEETS_ANY"); + static constexpr uint32_t MEETS_ALL_HASH = ConstExprHashingUtils::HashString("MEETS_ALL"); + static constexpr uint32_t MEETS_ANY_HASH = ConstExprHashingUtils::HashString("MEETS_ANY"); FilterRequirement GetFilterRequirementForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEETS_ALL_HASH) { return FilterRequirement::MEETS_ALL; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/ForwardedIPPosition.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/ForwardedIPPosition.cpp index 157b6fdb712..4b315d03f9e 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/ForwardedIPPosition.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/ForwardedIPPosition.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ForwardedIPPositionMapper { - static const int FIRST_HASH = HashingUtils::HashString("FIRST"); - static const int LAST_HASH = HashingUtils::HashString("LAST"); - static const int ANY_HASH = HashingUtils::HashString("ANY"); + static constexpr uint32_t FIRST_HASH = ConstExprHashingUtils::HashString("FIRST"); + static constexpr uint32_t LAST_HASH = ConstExprHashingUtils::HashString("LAST"); + static constexpr uint32_t ANY_HASH = ConstExprHashingUtils::HashString("ANY"); ForwardedIPPosition GetForwardedIPPositionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FIRST_HASH) { return ForwardedIPPosition::FIRST; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/IPAddressVersion.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/IPAddressVersion.cpp index 32d617547a0..b0fa28c76bb 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/IPAddressVersion.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/IPAddressVersion.cpp @@ -20,13 +20,13 @@ namespace Aws namespace IPAddressVersionMapper { - static const int IPV4_HASH = HashingUtils::HashString("IPV4"); - static const int IPV6_HASH = HashingUtils::HashString("IPV6"); + static constexpr uint32_t IPV4_HASH = ConstExprHashingUtils::HashString("IPV4"); + static constexpr uint32_t IPV6_HASH = ConstExprHashingUtils::HashString("IPV6"); IPAddressVersion GetIPAddressVersionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IPV4_HASH) { return IPAddressVersion::IPV4; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/InspectionLevel.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/InspectionLevel.cpp index 3acdb449fe0..0604abbf0f0 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/InspectionLevel.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/InspectionLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InspectionLevelMapper { - static const int COMMON_HASH = HashingUtils::HashString("COMMON"); - static const int TARGETED_HASH = HashingUtils::HashString("TARGETED"); + static constexpr uint32_t COMMON_HASH = ConstExprHashingUtils::HashString("COMMON"); + static constexpr uint32_t TARGETED_HASH = ConstExprHashingUtils::HashString("TARGETED"); InspectionLevel GetInspectionLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMMON_HASH) { return InspectionLevel::COMMON; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/JsonMatchScope.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/JsonMatchScope.cpp index 06cc1f34e31..e9f0f96b2db 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/JsonMatchScope.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/JsonMatchScope.cpp @@ -20,14 +20,14 @@ namespace Aws namespace JsonMatchScopeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int KEY_HASH = HashingUtils::HashString("KEY"); - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t KEY_HASH = ConstExprHashingUtils::HashString("KEY"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); JsonMatchScope GetJsonMatchScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return JsonMatchScope::ALL; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/LabelMatchScope.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/LabelMatchScope.cpp index 1b8a8939ea4..1846a745206 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/LabelMatchScope.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/LabelMatchScope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LabelMatchScopeMapper { - static const int LABEL_HASH = HashingUtils::HashString("LABEL"); - static const int NAMESPACE_HASH = HashingUtils::HashString("NAMESPACE"); + static constexpr uint32_t LABEL_HASH = ConstExprHashingUtils::HashString("LABEL"); + static constexpr uint32_t NAMESPACE_HASH = ConstExprHashingUtils::HashString("NAMESPACE"); LabelMatchScope GetLabelMatchScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LABEL_HASH) { return LabelMatchScope::LABEL; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/MapMatchScope.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/MapMatchScope.cpp index 4371f8622da..90482571dbd 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/MapMatchScope.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/MapMatchScope.cpp @@ -20,14 +20,14 @@ namespace Aws namespace MapMatchScopeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int KEY_HASH = HashingUtils::HashString("KEY"); - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t KEY_HASH = ConstExprHashingUtils::HashString("KEY"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); MapMatchScope GetMapMatchScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return MapMatchScope::ALL; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/OversizeHandling.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/OversizeHandling.cpp index 1984d97eca2..2307de11e6e 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/OversizeHandling.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/OversizeHandling.cpp @@ -20,14 +20,14 @@ namespace Aws namespace OversizeHandlingMapper { - static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); - static const int MATCH_HASH = HashingUtils::HashString("MATCH"); - static const int NO_MATCH_HASH = HashingUtils::HashString("NO_MATCH"); + static constexpr uint32_t CONTINUE_HASH = ConstExprHashingUtils::HashString("CONTINUE"); + static constexpr uint32_t MATCH_HASH = ConstExprHashingUtils::HashString("MATCH"); + static constexpr uint32_t NO_MATCH_HASH = ConstExprHashingUtils::HashString("NO_MATCH"); OversizeHandling GetOversizeHandlingForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONTINUE_HASH) { return OversizeHandling::CONTINUE; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/ParameterExceptionField.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/ParameterExceptionField.cpp index 0409fad8b22..1efcacdbde8 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/ParameterExceptionField.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/ParameterExceptionField.cpp @@ -20,81 +20,81 @@ namespace Aws namespace ParameterExceptionFieldMapper { - static const int WEB_ACL_HASH = HashingUtils::HashString("WEB_ACL"); - static const int RULE_GROUP_HASH = HashingUtils::HashString("RULE_GROUP"); - static const int REGEX_PATTERN_SET_HASH = HashingUtils::HashString("REGEX_PATTERN_SET"); - static const int IP_SET_HASH = HashingUtils::HashString("IP_SET"); - static const int MANAGED_RULE_SET_HASH = HashingUtils::HashString("MANAGED_RULE_SET"); - static const int RULE_HASH = HashingUtils::HashString("RULE"); - static const int EXCLUDED_RULE_HASH = HashingUtils::HashString("EXCLUDED_RULE"); - static const int STATEMENT_HASH = HashingUtils::HashString("STATEMENT"); - static const int BYTE_MATCH_STATEMENT_HASH = HashingUtils::HashString("BYTE_MATCH_STATEMENT"); - static const int SQLI_MATCH_STATEMENT_HASH = HashingUtils::HashString("SQLI_MATCH_STATEMENT"); - static const int XSS_MATCH_STATEMENT_HASH = HashingUtils::HashString("XSS_MATCH_STATEMENT"); - static const int SIZE_CONSTRAINT_STATEMENT_HASH = HashingUtils::HashString("SIZE_CONSTRAINT_STATEMENT"); - static const int GEO_MATCH_STATEMENT_HASH = HashingUtils::HashString("GEO_MATCH_STATEMENT"); - static const int RATE_BASED_STATEMENT_HASH = HashingUtils::HashString("RATE_BASED_STATEMENT"); - static const int RULE_GROUP_REFERENCE_STATEMENT_HASH = HashingUtils::HashString("RULE_GROUP_REFERENCE_STATEMENT"); - static const int REGEX_PATTERN_REFERENCE_STATEMENT_HASH = HashingUtils::HashString("REGEX_PATTERN_REFERENCE_STATEMENT"); - static const int IP_SET_REFERENCE_STATEMENT_HASH = HashingUtils::HashString("IP_SET_REFERENCE_STATEMENT"); - static const int MANAGED_RULE_SET_STATEMENT_HASH = HashingUtils::HashString("MANAGED_RULE_SET_STATEMENT"); - static const int LABEL_MATCH_STATEMENT_HASH = HashingUtils::HashString("LABEL_MATCH_STATEMENT"); - static const int AND_STATEMENT_HASH = HashingUtils::HashString("AND_STATEMENT"); - static const int OR_STATEMENT_HASH = HashingUtils::HashString("OR_STATEMENT"); - static const int NOT_STATEMENT_HASH = HashingUtils::HashString("NOT_STATEMENT"); - static const int IP_ADDRESS_HASH = HashingUtils::HashString("IP_ADDRESS"); - static const int IP_ADDRESS_VERSION_HASH = HashingUtils::HashString("IP_ADDRESS_VERSION"); - static const int FIELD_TO_MATCH_HASH = HashingUtils::HashString("FIELD_TO_MATCH"); - static const int TEXT_TRANSFORMATION_HASH = HashingUtils::HashString("TEXT_TRANSFORMATION"); - static const int SINGLE_QUERY_ARGUMENT_HASH = HashingUtils::HashString("SINGLE_QUERY_ARGUMENT"); - static const int SINGLE_HEADER_HASH = HashingUtils::HashString("SINGLE_HEADER"); - static const int DEFAULT_ACTION_HASH = HashingUtils::HashString("DEFAULT_ACTION"); - static const int RULE_ACTION_HASH = HashingUtils::HashString("RULE_ACTION"); - static const int ENTITY_LIMIT_HASH = HashingUtils::HashString("ENTITY_LIMIT"); - static const int OVERRIDE_ACTION_HASH = HashingUtils::HashString("OVERRIDE_ACTION"); - static const int SCOPE_VALUE_HASH = HashingUtils::HashString("SCOPE_VALUE"); - static const int RESOURCE_ARN_HASH = HashingUtils::HashString("RESOURCE_ARN"); - static const int RESOURCE_TYPE_HASH = HashingUtils::HashString("RESOURCE_TYPE"); - static const int TAGS_HASH = HashingUtils::HashString("TAGS"); - static const int TAG_KEYS_HASH = HashingUtils::HashString("TAG_KEYS"); - static const int METRIC_NAME_HASH = HashingUtils::HashString("METRIC_NAME"); - static const int FIREWALL_MANAGER_STATEMENT_HASH = HashingUtils::HashString("FIREWALL_MANAGER_STATEMENT"); - static const int FALLBACK_BEHAVIOR_HASH = HashingUtils::HashString("FALLBACK_BEHAVIOR"); - static const int POSITION_HASH = HashingUtils::HashString("POSITION"); - static const int FORWARDED_IP_CONFIG_HASH = HashingUtils::HashString("FORWARDED_IP_CONFIG"); - static const int IP_SET_FORWARDED_IP_CONFIG_HASH = HashingUtils::HashString("IP_SET_FORWARDED_IP_CONFIG"); - static const int HEADER_NAME_HASH = HashingUtils::HashString("HEADER_NAME"); - static const int CUSTOM_REQUEST_HANDLING_HASH = HashingUtils::HashString("CUSTOM_REQUEST_HANDLING"); - static const int RESPONSE_CONTENT_TYPE_HASH = HashingUtils::HashString("RESPONSE_CONTENT_TYPE"); - static const int CUSTOM_RESPONSE_HASH = HashingUtils::HashString("CUSTOM_RESPONSE"); - static const int CUSTOM_RESPONSE_BODY_HASH = HashingUtils::HashString("CUSTOM_RESPONSE_BODY"); - static const int JSON_MATCH_PATTERN_HASH = HashingUtils::HashString("JSON_MATCH_PATTERN"); - static const int JSON_MATCH_SCOPE_HASH = HashingUtils::HashString("JSON_MATCH_SCOPE"); - static const int BODY_PARSING_FALLBACK_BEHAVIOR_HASH = HashingUtils::HashString("BODY_PARSING_FALLBACK_BEHAVIOR"); - static const int LOGGING_FILTER_HASH = HashingUtils::HashString("LOGGING_FILTER"); - static const int FILTER_CONDITION_HASH = HashingUtils::HashString("FILTER_CONDITION"); - static const int EXPIRE_TIMESTAMP_HASH = HashingUtils::HashString("EXPIRE_TIMESTAMP"); - static const int CHANGE_PROPAGATION_STATUS_HASH = HashingUtils::HashString("CHANGE_PROPAGATION_STATUS"); - static const int ASSOCIABLE_RESOURCE_HASH = HashingUtils::HashString("ASSOCIABLE_RESOURCE"); - static const int LOG_DESTINATION_HASH = HashingUtils::HashString("LOG_DESTINATION"); - static const int MANAGED_RULE_GROUP_CONFIG_HASH = HashingUtils::HashString("MANAGED_RULE_GROUP_CONFIG"); - static const int PAYLOAD_TYPE_HASH = HashingUtils::HashString("PAYLOAD_TYPE"); - static const int HEADER_MATCH_PATTERN_HASH = HashingUtils::HashString("HEADER_MATCH_PATTERN"); - static const int COOKIE_MATCH_PATTERN_HASH = HashingUtils::HashString("COOKIE_MATCH_PATTERN"); - static const int MAP_MATCH_SCOPE_HASH = HashingUtils::HashString("MAP_MATCH_SCOPE"); - static const int OVERSIZE_HANDLING_HASH = HashingUtils::HashString("OVERSIZE_HANDLING"); - static const int CHALLENGE_CONFIG_HASH = HashingUtils::HashString("CHALLENGE_CONFIG"); - static const int TOKEN_DOMAIN_HASH = HashingUtils::HashString("TOKEN_DOMAIN"); - static const int ATP_RULE_SET_RESPONSE_INSPECTION_HASH = HashingUtils::HashString("ATP_RULE_SET_RESPONSE_INSPECTION"); - static const int ASSOCIATED_RESOURCE_TYPE_HASH = HashingUtils::HashString("ASSOCIATED_RESOURCE_TYPE"); - static const int SCOPE_DOWN_HASH = HashingUtils::HashString("SCOPE_DOWN"); - static const int CUSTOM_KEYS_HASH = HashingUtils::HashString("CUSTOM_KEYS"); - static const int ACP_RULE_SET_RESPONSE_INSPECTION_HASH = HashingUtils::HashString("ACP_RULE_SET_RESPONSE_INSPECTION"); + static constexpr uint32_t WEB_ACL_HASH = ConstExprHashingUtils::HashString("WEB_ACL"); + static constexpr uint32_t RULE_GROUP_HASH = ConstExprHashingUtils::HashString("RULE_GROUP"); + static constexpr uint32_t REGEX_PATTERN_SET_HASH = ConstExprHashingUtils::HashString("REGEX_PATTERN_SET"); + static constexpr uint32_t IP_SET_HASH = ConstExprHashingUtils::HashString("IP_SET"); + static constexpr uint32_t MANAGED_RULE_SET_HASH = ConstExprHashingUtils::HashString("MANAGED_RULE_SET"); + static constexpr uint32_t RULE_HASH = ConstExprHashingUtils::HashString("RULE"); + static constexpr uint32_t EXCLUDED_RULE_HASH = ConstExprHashingUtils::HashString("EXCLUDED_RULE"); + static constexpr uint32_t STATEMENT_HASH = ConstExprHashingUtils::HashString("STATEMENT"); + static constexpr uint32_t BYTE_MATCH_STATEMENT_HASH = ConstExprHashingUtils::HashString("BYTE_MATCH_STATEMENT"); + static constexpr uint32_t SQLI_MATCH_STATEMENT_HASH = ConstExprHashingUtils::HashString("SQLI_MATCH_STATEMENT"); + static constexpr uint32_t XSS_MATCH_STATEMENT_HASH = ConstExprHashingUtils::HashString("XSS_MATCH_STATEMENT"); + static constexpr uint32_t SIZE_CONSTRAINT_STATEMENT_HASH = ConstExprHashingUtils::HashString("SIZE_CONSTRAINT_STATEMENT"); + static constexpr uint32_t GEO_MATCH_STATEMENT_HASH = ConstExprHashingUtils::HashString("GEO_MATCH_STATEMENT"); + static constexpr uint32_t RATE_BASED_STATEMENT_HASH = ConstExprHashingUtils::HashString("RATE_BASED_STATEMENT"); + static constexpr uint32_t RULE_GROUP_REFERENCE_STATEMENT_HASH = ConstExprHashingUtils::HashString("RULE_GROUP_REFERENCE_STATEMENT"); + static constexpr uint32_t REGEX_PATTERN_REFERENCE_STATEMENT_HASH = ConstExprHashingUtils::HashString("REGEX_PATTERN_REFERENCE_STATEMENT"); + static constexpr uint32_t IP_SET_REFERENCE_STATEMENT_HASH = ConstExprHashingUtils::HashString("IP_SET_REFERENCE_STATEMENT"); + static constexpr uint32_t MANAGED_RULE_SET_STATEMENT_HASH = ConstExprHashingUtils::HashString("MANAGED_RULE_SET_STATEMENT"); + static constexpr uint32_t LABEL_MATCH_STATEMENT_HASH = ConstExprHashingUtils::HashString("LABEL_MATCH_STATEMENT"); + static constexpr uint32_t AND_STATEMENT_HASH = ConstExprHashingUtils::HashString("AND_STATEMENT"); + static constexpr uint32_t OR_STATEMENT_HASH = ConstExprHashingUtils::HashString("OR_STATEMENT"); + static constexpr uint32_t NOT_STATEMENT_HASH = ConstExprHashingUtils::HashString("NOT_STATEMENT"); + static constexpr uint32_t IP_ADDRESS_HASH = ConstExprHashingUtils::HashString("IP_ADDRESS"); + static constexpr uint32_t IP_ADDRESS_VERSION_HASH = ConstExprHashingUtils::HashString("IP_ADDRESS_VERSION"); + static constexpr uint32_t FIELD_TO_MATCH_HASH = ConstExprHashingUtils::HashString("FIELD_TO_MATCH"); + static constexpr uint32_t TEXT_TRANSFORMATION_HASH = ConstExprHashingUtils::HashString("TEXT_TRANSFORMATION"); + static constexpr uint32_t SINGLE_QUERY_ARGUMENT_HASH = ConstExprHashingUtils::HashString("SINGLE_QUERY_ARGUMENT"); + static constexpr uint32_t SINGLE_HEADER_HASH = ConstExprHashingUtils::HashString("SINGLE_HEADER"); + static constexpr uint32_t DEFAULT_ACTION_HASH = ConstExprHashingUtils::HashString("DEFAULT_ACTION"); + static constexpr uint32_t RULE_ACTION_HASH = ConstExprHashingUtils::HashString("RULE_ACTION"); + static constexpr uint32_t ENTITY_LIMIT_HASH = ConstExprHashingUtils::HashString("ENTITY_LIMIT"); + static constexpr uint32_t OVERRIDE_ACTION_HASH = ConstExprHashingUtils::HashString("OVERRIDE_ACTION"); + static constexpr uint32_t SCOPE_VALUE_HASH = ConstExprHashingUtils::HashString("SCOPE_VALUE"); + static constexpr uint32_t RESOURCE_ARN_HASH = ConstExprHashingUtils::HashString("RESOURCE_ARN"); + static constexpr uint32_t RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("RESOURCE_TYPE"); + static constexpr uint32_t TAGS_HASH = ConstExprHashingUtils::HashString("TAGS"); + static constexpr uint32_t TAG_KEYS_HASH = ConstExprHashingUtils::HashString("TAG_KEYS"); + static constexpr uint32_t METRIC_NAME_HASH = ConstExprHashingUtils::HashString("METRIC_NAME"); + static constexpr uint32_t FIREWALL_MANAGER_STATEMENT_HASH = ConstExprHashingUtils::HashString("FIREWALL_MANAGER_STATEMENT"); + static constexpr uint32_t FALLBACK_BEHAVIOR_HASH = ConstExprHashingUtils::HashString("FALLBACK_BEHAVIOR"); + static constexpr uint32_t POSITION_HASH = ConstExprHashingUtils::HashString("POSITION"); + static constexpr uint32_t FORWARDED_IP_CONFIG_HASH = ConstExprHashingUtils::HashString("FORWARDED_IP_CONFIG"); + static constexpr uint32_t IP_SET_FORWARDED_IP_CONFIG_HASH = ConstExprHashingUtils::HashString("IP_SET_FORWARDED_IP_CONFIG"); + static constexpr uint32_t HEADER_NAME_HASH = ConstExprHashingUtils::HashString("HEADER_NAME"); + static constexpr uint32_t CUSTOM_REQUEST_HANDLING_HASH = ConstExprHashingUtils::HashString("CUSTOM_REQUEST_HANDLING"); + static constexpr uint32_t RESPONSE_CONTENT_TYPE_HASH = ConstExprHashingUtils::HashString("RESPONSE_CONTENT_TYPE"); + static constexpr uint32_t CUSTOM_RESPONSE_HASH = ConstExprHashingUtils::HashString("CUSTOM_RESPONSE"); + static constexpr uint32_t CUSTOM_RESPONSE_BODY_HASH = ConstExprHashingUtils::HashString("CUSTOM_RESPONSE_BODY"); + static constexpr uint32_t JSON_MATCH_PATTERN_HASH = ConstExprHashingUtils::HashString("JSON_MATCH_PATTERN"); + static constexpr uint32_t JSON_MATCH_SCOPE_HASH = ConstExprHashingUtils::HashString("JSON_MATCH_SCOPE"); + static constexpr uint32_t BODY_PARSING_FALLBACK_BEHAVIOR_HASH = ConstExprHashingUtils::HashString("BODY_PARSING_FALLBACK_BEHAVIOR"); + static constexpr uint32_t LOGGING_FILTER_HASH = ConstExprHashingUtils::HashString("LOGGING_FILTER"); + static constexpr uint32_t FILTER_CONDITION_HASH = ConstExprHashingUtils::HashString("FILTER_CONDITION"); + static constexpr uint32_t EXPIRE_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("EXPIRE_TIMESTAMP"); + static constexpr uint32_t CHANGE_PROPAGATION_STATUS_HASH = ConstExprHashingUtils::HashString("CHANGE_PROPAGATION_STATUS"); + static constexpr uint32_t ASSOCIABLE_RESOURCE_HASH = ConstExprHashingUtils::HashString("ASSOCIABLE_RESOURCE"); + static constexpr uint32_t LOG_DESTINATION_HASH = ConstExprHashingUtils::HashString("LOG_DESTINATION"); + static constexpr uint32_t MANAGED_RULE_GROUP_CONFIG_HASH = ConstExprHashingUtils::HashString("MANAGED_RULE_GROUP_CONFIG"); + static constexpr uint32_t PAYLOAD_TYPE_HASH = ConstExprHashingUtils::HashString("PAYLOAD_TYPE"); + static constexpr uint32_t HEADER_MATCH_PATTERN_HASH = ConstExprHashingUtils::HashString("HEADER_MATCH_PATTERN"); + static constexpr uint32_t COOKIE_MATCH_PATTERN_HASH = ConstExprHashingUtils::HashString("COOKIE_MATCH_PATTERN"); + static constexpr uint32_t MAP_MATCH_SCOPE_HASH = ConstExprHashingUtils::HashString("MAP_MATCH_SCOPE"); + static constexpr uint32_t OVERSIZE_HANDLING_HASH = ConstExprHashingUtils::HashString("OVERSIZE_HANDLING"); + static constexpr uint32_t CHALLENGE_CONFIG_HASH = ConstExprHashingUtils::HashString("CHALLENGE_CONFIG"); + static constexpr uint32_t TOKEN_DOMAIN_HASH = ConstExprHashingUtils::HashString("TOKEN_DOMAIN"); + static constexpr uint32_t ATP_RULE_SET_RESPONSE_INSPECTION_HASH = ConstExprHashingUtils::HashString("ATP_RULE_SET_RESPONSE_INSPECTION"); + static constexpr uint32_t ASSOCIATED_RESOURCE_TYPE_HASH = ConstExprHashingUtils::HashString("ASSOCIATED_RESOURCE_TYPE"); + static constexpr uint32_t SCOPE_DOWN_HASH = ConstExprHashingUtils::HashString("SCOPE_DOWN"); + static constexpr uint32_t CUSTOM_KEYS_HASH = ConstExprHashingUtils::HashString("CUSTOM_KEYS"); + static constexpr uint32_t ACP_RULE_SET_RESPONSE_INSPECTION_HASH = ConstExprHashingUtils::HashString("ACP_RULE_SET_RESPONSE_INSPECTION"); ParameterExceptionField GetParameterExceptionFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEB_ACL_HASH) { return ParameterExceptionField::WEB_ACL; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/PayloadType.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/PayloadType.cpp index 4f6c87ef250..fb56a8355d4 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/PayloadType.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/PayloadType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PayloadTypeMapper { - static const int JSON_HASH = HashingUtils::HashString("JSON"); - static const int FORM_ENCODED_HASH = HashingUtils::HashString("FORM_ENCODED"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); + static constexpr uint32_t FORM_ENCODED_HASH = ConstExprHashingUtils::HashString("FORM_ENCODED"); PayloadType GetPayloadTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == JSON_HASH) { return PayloadType::JSON; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/Platform.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/Platform.cpp index 69734548b99..340a5265bd3 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/Platform.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/Platform.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PlatformMapper { - static const int IOS_HASH = HashingUtils::HashString("IOS"); - static const int ANDROID__HASH = HashingUtils::HashString("ANDROID"); + static constexpr uint32_t IOS_HASH = ConstExprHashingUtils::HashString("IOS"); + static constexpr uint32_t ANDROID__HASH = ConstExprHashingUtils::HashString("ANDROID"); Platform GetPlatformForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IOS_HASH) { return Platform::IOS; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/PositionalConstraint.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/PositionalConstraint.cpp index affbcf40f00..f88a5180369 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/PositionalConstraint.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/PositionalConstraint.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PositionalConstraintMapper { - static const int EXACTLY_HASH = HashingUtils::HashString("EXACTLY"); - static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); - static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); - static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); - static const int CONTAINS_WORD_HASH = HashingUtils::HashString("CONTAINS_WORD"); + static constexpr uint32_t EXACTLY_HASH = ConstExprHashingUtils::HashString("EXACTLY"); + static constexpr uint32_t STARTS_WITH_HASH = ConstExprHashingUtils::HashString("STARTS_WITH"); + static constexpr uint32_t ENDS_WITH_HASH = ConstExprHashingUtils::HashString("ENDS_WITH"); + static constexpr uint32_t CONTAINS_HASH = ConstExprHashingUtils::HashString("CONTAINS"); + static constexpr uint32_t CONTAINS_WORD_HASH = ConstExprHashingUtils::HashString("CONTAINS_WORD"); PositionalConstraint GetPositionalConstraintForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXACTLY_HASH) { return PositionalConstraint::EXACTLY; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/RateBasedStatementAggregateKeyType.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/RateBasedStatementAggregateKeyType.cpp index ef5b2fe2079..8e486e80224 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/RateBasedStatementAggregateKeyType.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/RateBasedStatementAggregateKeyType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RateBasedStatementAggregateKeyTypeMapper { - static const int IP_HASH = HashingUtils::HashString("IP"); - static const int FORWARDED_IP_HASH = HashingUtils::HashString("FORWARDED_IP"); - static const int CUSTOM_KEYS_HASH = HashingUtils::HashString("CUSTOM_KEYS"); - static const int CONSTANT_HASH = HashingUtils::HashString("CONSTANT"); + static constexpr uint32_t IP_HASH = ConstExprHashingUtils::HashString("IP"); + static constexpr uint32_t FORWARDED_IP_HASH = ConstExprHashingUtils::HashString("FORWARDED_IP"); + static constexpr uint32_t CUSTOM_KEYS_HASH = ConstExprHashingUtils::HashString("CUSTOM_KEYS"); + static constexpr uint32_t CONSTANT_HASH = ConstExprHashingUtils::HashString("CONSTANT"); RateBasedStatementAggregateKeyType GetRateBasedStatementAggregateKeyTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IP_HASH) { return RateBasedStatementAggregateKeyType::IP; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/ResourceType.cpp index 5d16e0ccf93..561c02b366d 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/ResourceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ResourceTypeMapper { - static const int APPLICATION_LOAD_BALANCER_HASH = HashingUtils::HashString("APPLICATION_LOAD_BALANCER"); - static const int API_GATEWAY_HASH = HashingUtils::HashString("API_GATEWAY"); - static const int APPSYNC_HASH = HashingUtils::HashString("APPSYNC"); - static const int COGNITO_USER_POOL_HASH = HashingUtils::HashString("COGNITO_USER_POOL"); - static const int APP_RUNNER_SERVICE_HASH = HashingUtils::HashString("APP_RUNNER_SERVICE"); - static const int VERIFIED_ACCESS_INSTANCE_HASH = HashingUtils::HashString("VERIFIED_ACCESS_INSTANCE"); + static constexpr uint32_t APPLICATION_LOAD_BALANCER_HASH = ConstExprHashingUtils::HashString("APPLICATION_LOAD_BALANCER"); + static constexpr uint32_t API_GATEWAY_HASH = ConstExprHashingUtils::HashString("API_GATEWAY"); + static constexpr uint32_t APPSYNC_HASH = ConstExprHashingUtils::HashString("APPSYNC"); + static constexpr uint32_t COGNITO_USER_POOL_HASH = ConstExprHashingUtils::HashString("COGNITO_USER_POOL"); + static constexpr uint32_t APP_RUNNER_SERVICE_HASH = ConstExprHashingUtils::HashString("APP_RUNNER_SERVICE"); + static constexpr uint32_t VERIFIED_ACCESS_INSTANCE_HASH = ConstExprHashingUtils::HashString("VERIFIED_ACCESS_INSTANCE"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLICATION_LOAD_BALANCER_HASH) { return ResourceType::APPLICATION_LOAD_BALANCER; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/ResponseContentType.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/ResponseContentType.cpp index fe6919ef82b..e67f22f2034 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/ResponseContentType.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/ResponseContentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ResponseContentTypeMapper { - static const int TEXT_PLAIN_HASH = HashingUtils::HashString("TEXT_PLAIN"); - static const int TEXT_HTML_HASH = HashingUtils::HashString("TEXT_HTML"); - static const int APPLICATION_JSON_HASH = HashingUtils::HashString("APPLICATION_JSON"); + static constexpr uint32_t TEXT_PLAIN_HASH = ConstExprHashingUtils::HashString("TEXT_PLAIN"); + static constexpr uint32_t TEXT_HTML_HASH = ConstExprHashingUtils::HashString("TEXT_HTML"); + static constexpr uint32_t APPLICATION_JSON_HASH = ConstExprHashingUtils::HashString("APPLICATION_JSON"); ResponseContentType GetResponseContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TEXT_PLAIN_HASH) { return ResponseContentType::TEXT_PLAIN; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/Scope.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/Scope.cpp index c8ab1ee8616..5786d410211 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/Scope.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/Scope.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ScopeMapper { - static const int CLOUDFRONT_HASH = HashingUtils::HashString("CLOUDFRONT"); - static const int REGIONAL_HASH = HashingUtils::HashString("REGIONAL"); + static constexpr uint32_t CLOUDFRONT_HASH = ConstExprHashingUtils::HashString("CLOUDFRONT"); + static constexpr uint32_t REGIONAL_HASH = ConstExprHashingUtils::HashString("REGIONAL"); Scope GetScopeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CLOUDFRONT_HASH) { return Scope::CLOUDFRONT; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/SensitivityLevel.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/SensitivityLevel.cpp index 4bf4461cd58..9bfcd255c59 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/SensitivityLevel.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/SensitivityLevel.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SensitivityLevelMapper { - static const int LOW_HASH = HashingUtils::HashString("LOW"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); SensitivityLevel GetSensitivityLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LOW_HASH) { return SensitivityLevel::LOW; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/SizeInspectionLimit.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/SizeInspectionLimit.cpp index 80c7574947a..0e0126caceb 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/SizeInspectionLimit.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/SizeInspectionLimit.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SizeInspectionLimitMapper { - static const int KB_16_HASH = HashingUtils::HashString("KB_16"); - static const int KB_32_HASH = HashingUtils::HashString("KB_32"); - static const int KB_48_HASH = HashingUtils::HashString("KB_48"); - static const int KB_64_HASH = HashingUtils::HashString("KB_64"); + static constexpr uint32_t KB_16_HASH = ConstExprHashingUtils::HashString("KB_16"); + static constexpr uint32_t KB_32_HASH = ConstExprHashingUtils::HashString("KB_32"); + static constexpr uint32_t KB_48_HASH = ConstExprHashingUtils::HashString("KB_48"); + static constexpr uint32_t KB_64_HASH = ConstExprHashingUtils::HashString("KB_64"); SizeInspectionLimit GetSizeInspectionLimitForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KB_16_HASH) { return SizeInspectionLimit::KB_16; diff --git a/generated/src/aws-cpp-sdk-wafv2/source/model/TextTransformationType.cpp b/generated/src/aws-cpp-sdk-wafv2/source/model/TextTransformationType.cpp index 8ad03e12cac..95606f2ccdc 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/model/TextTransformationType.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/model/TextTransformationType.cpp @@ -20,32 +20,32 @@ namespace Aws namespace TextTransformationTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int COMPRESS_WHITE_SPACE_HASH = HashingUtils::HashString("COMPRESS_WHITE_SPACE"); - static const int HTML_ENTITY_DECODE_HASH = HashingUtils::HashString("HTML_ENTITY_DECODE"); - static const int LOWERCASE_HASH = HashingUtils::HashString("LOWERCASE"); - static const int CMD_LINE_HASH = HashingUtils::HashString("CMD_LINE"); - static const int URL_DECODE_HASH = HashingUtils::HashString("URL_DECODE"); - static const int BASE64_DECODE_HASH = HashingUtils::HashString("BASE64_DECODE"); - static const int HEX_DECODE_HASH = HashingUtils::HashString("HEX_DECODE"); - static const int MD5_HASH = HashingUtils::HashString("MD5"); - static const int REPLACE_COMMENTS_HASH = HashingUtils::HashString("REPLACE_COMMENTS"); - static const int ESCAPE_SEQ_DECODE_HASH = HashingUtils::HashString("ESCAPE_SEQ_DECODE"); - static const int SQL_HEX_DECODE_HASH = HashingUtils::HashString("SQL_HEX_DECODE"); - static const int CSS_DECODE_HASH = HashingUtils::HashString("CSS_DECODE"); - static const int JS_DECODE_HASH = HashingUtils::HashString("JS_DECODE"); - static const int NORMALIZE_PATH_HASH = HashingUtils::HashString("NORMALIZE_PATH"); - static const int NORMALIZE_PATH_WIN_HASH = HashingUtils::HashString("NORMALIZE_PATH_WIN"); - static const int REMOVE_NULLS_HASH = HashingUtils::HashString("REMOVE_NULLS"); - static const int REPLACE_NULLS_HASH = HashingUtils::HashString("REPLACE_NULLS"); - static const int BASE64_DECODE_EXT_HASH = HashingUtils::HashString("BASE64_DECODE_EXT"); - static const int URL_DECODE_UNI_HASH = HashingUtils::HashString("URL_DECODE_UNI"); - static const int UTF8_TO_UNICODE_HASH = HashingUtils::HashString("UTF8_TO_UNICODE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t COMPRESS_WHITE_SPACE_HASH = ConstExprHashingUtils::HashString("COMPRESS_WHITE_SPACE"); + static constexpr uint32_t HTML_ENTITY_DECODE_HASH = ConstExprHashingUtils::HashString("HTML_ENTITY_DECODE"); + static constexpr uint32_t LOWERCASE_HASH = ConstExprHashingUtils::HashString("LOWERCASE"); + static constexpr uint32_t CMD_LINE_HASH = ConstExprHashingUtils::HashString("CMD_LINE"); + static constexpr uint32_t URL_DECODE_HASH = ConstExprHashingUtils::HashString("URL_DECODE"); + static constexpr uint32_t BASE64_DECODE_HASH = ConstExprHashingUtils::HashString("BASE64_DECODE"); + static constexpr uint32_t HEX_DECODE_HASH = ConstExprHashingUtils::HashString("HEX_DECODE"); + static constexpr uint32_t MD5_HASH = ConstExprHashingUtils::HashString("MD5"); + static constexpr uint32_t REPLACE_COMMENTS_HASH = ConstExprHashingUtils::HashString("REPLACE_COMMENTS"); + static constexpr uint32_t ESCAPE_SEQ_DECODE_HASH = ConstExprHashingUtils::HashString("ESCAPE_SEQ_DECODE"); + static constexpr uint32_t SQL_HEX_DECODE_HASH = ConstExprHashingUtils::HashString("SQL_HEX_DECODE"); + static constexpr uint32_t CSS_DECODE_HASH = ConstExprHashingUtils::HashString("CSS_DECODE"); + static constexpr uint32_t JS_DECODE_HASH = ConstExprHashingUtils::HashString("JS_DECODE"); + static constexpr uint32_t NORMALIZE_PATH_HASH = ConstExprHashingUtils::HashString("NORMALIZE_PATH"); + static constexpr uint32_t NORMALIZE_PATH_WIN_HASH = ConstExprHashingUtils::HashString("NORMALIZE_PATH_WIN"); + static constexpr uint32_t REMOVE_NULLS_HASH = ConstExprHashingUtils::HashString("REMOVE_NULLS"); + static constexpr uint32_t REPLACE_NULLS_HASH = ConstExprHashingUtils::HashString("REPLACE_NULLS"); + static constexpr uint32_t BASE64_DECODE_EXT_HASH = ConstExprHashingUtils::HashString("BASE64_DECODE_EXT"); + static constexpr uint32_t URL_DECODE_UNI_HASH = ConstExprHashingUtils::HashString("URL_DECODE_UNI"); + static constexpr uint32_t UTF8_TO_UNICODE_HASH = ConstExprHashingUtils::HashString("UTF8_TO_UNICODE"); TextTransformationType GetTextTransformationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return TextTransformationType::NONE; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedErrors.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedErrors.cpp index 6308eb97637..9c923340bed 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedErrors.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedErrors.cpp @@ -54,14 +54,14 @@ template<> AWS_WELLARCHITECTED_API ValidationException WellArchitectedError::Get namespace WellArchitectedErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/AdditionalResourceType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/AdditionalResourceType.cpp index a398747c3e7..ee1e0be1a3e 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/AdditionalResourceType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/AdditionalResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AdditionalResourceTypeMapper { - static const int HELPFUL_RESOURCE_HASH = HashingUtils::HashString("HELPFUL_RESOURCE"); - static const int IMPROVEMENT_PLAN_HASH = HashingUtils::HashString("IMPROVEMENT_PLAN"); + static constexpr uint32_t HELPFUL_RESOURCE_HASH = ConstExprHashingUtils::HashString("HELPFUL_RESOURCE"); + static constexpr uint32_t IMPROVEMENT_PLAN_HASH = ConstExprHashingUtils::HashString("IMPROVEMENT_PLAN"); AdditionalResourceType GetAdditionalResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HELPFUL_RESOURCE_HASH) { return AdditionalResourceType::HELPFUL_RESOURCE; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/AnswerReason.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/AnswerReason.cpp index b7c68aacb49..8aa958d1ec5 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/AnswerReason.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/AnswerReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AnswerReasonMapper { - static const int OUT_OF_SCOPE_HASH = HashingUtils::HashString("OUT_OF_SCOPE"); - static const int BUSINESS_PRIORITIES_HASH = HashingUtils::HashString("BUSINESS_PRIORITIES"); - static const int ARCHITECTURE_CONSTRAINTS_HASH = HashingUtils::HashString("ARCHITECTURE_CONSTRAINTS"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t OUT_OF_SCOPE_HASH = ConstExprHashingUtils::HashString("OUT_OF_SCOPE"); + static constexpr uint32_t BUSINESS_PRIORITIES_HASH = ConstExprHashingUtils::HashString("BUSINESS_PRIORITIES"); + static constexpr uint32_t ARCHITECTURE_CONSTRAINTS_HASH = ConstExprHashingUtils::HashString("ARCHITECTURE_CONSTRAINTS"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); AnswerReason GetAnswerReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OUT_OF_SCOPE_HASH) { return AnswerReason::OUT_OF_SCOPE; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckFailureReason.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckFailureReason.cpp index 9419918fcb9..a828fe344ca 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckFailureReason.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckFailureReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace CheckFailureReasonMapper { - static const int ASSUME_ROLE_ERROR_HASH = HashingUtils::HashString("ASSUME_ROLE_ERROR"); - static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED"); - static const int UNKNOWN_ERROR_HASH = HashingUtils::HashString("UNKNOWN_ERROR"); - static const int PREMIUM_SUPPORT_REQUIRED_HASH = HashingUtils::HashString("PREMIUM_SUPPORT_REQUIRED"); + static constexpr uint32_t ASSUME_ROLE_ERROR_HASH = ConstExprHashingUtils::HashString("ASSUME_ROLE_ERROR"); + static constexpr uint32_t ACCESS_DENIED_HASH = ConstExprHashingUtils::HashString("ACCESS_DENIED"); + static constexpr uint32_t UNKNOWN_ERROR_HASH = ConstExprHashingUtils::HashString("UNKNOWN_ERROR"); + static constexpr uint32_t PREMIUM_SUPPORT_REQUIRED_HASH = ConstExprHashingUtils::HashString("PREMIUM_SUPPORT_REQUIRED"); CheckFailureReason GetCheckFailureReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASSUME_ROLE_ERROR_HASH) { return CheckFailureReason::ASSUME_ROLE_ERROR; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckProvider.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckProvider.cpp index 282d9c261f8..85b443ce6cc 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckProvider.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckProvider.cpp @@ -20,12 +20,12 @@ namespace Aws namespace CheckProviderMapper { - static const int TRUSTED_ADVISOR_HASH = HashingUtils::HashString("TRUSTED_ADVISOR"); + static constexpr uint32_t TRUSTED_ADVISOR_HASH = ConstExprHashingUtils::HashString("TRUSTED_ADVISOR"); CheckProvider GetCheckProviderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUSTED_ADVISOR_HASH) { return CheckProvider::TRUSTED_ADVISOR; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckStatus.cpp index 934a42a736b..8d9250c0555 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/CheckStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace CheckStatusMapper { - static const int OKAY_HASH = HashingUtils::HashString("OKAY"); - static const int WARNING_HASH = HashingUtils::HashString("WARNING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int NOT_AVAILABLE_HASH = HashingUtils::HashString("NOT_AVAILABLE"); - static const int FETCH_FAILED_HASH = HashingUtils::HashString("FETCH_FAILED"); + static constexpr uint32_t OKAY_HASH = ConstExprHashingUtils::HashString("OKAY"); + static constexpr uint32_t WARNING_HASH = ConstExprHashingUtils::HashString("WARNING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t NOT_AVAILABLE_HASH = ConstExprHashingUtils::HashString("NOT_AVAILABLE"); + static constexpr uint32_t FETCH_FAILED_HASH = ConstExprHashingUtils::HashString("FETCH_FAILED"); CheckStatus GetCheckStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OKAY_HASH) { return CheckStatus::OKAY; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceReason.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceReason.cpp index 0799ef26a90..6cb30692e47 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceReason.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceReason.cpp @@ -20,16 +20,16 @@ namespace Aws namespace ChoiceReasonMapper { - static const int OUT_OF_SCOPE_HASH = HashingUtils::HashString("OUT_OF_SCOPE"); - static const int BUSINESS_PRIORITIES_HASH = HashingUtils::HashString("BUSINESS_PRIORITIES"); - static const int ARCHITECTURE_CONSTRAINTS_HASH = HashingUtils::HashString("ARCHITECTURE_CONSTRAINTS"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t OUT_OF_SCOPE_HASH = ConstExprHashingUtils::HashString("OUT_OF_SCOPE"); + static constexpr uint32_t BUSINESS_PRIORITIES_HASH = ConstExprHashingUtils::HashString("BUSINESS_PRIORITIES"); + static constexpr uint32_t ARCHITECTURE_CONSTRAINTS_HASH = ConstExprHashingUtils::HashString("ARCHITECTURE_CONSTRAINTS"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); ChoiceReason GetChoiceReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OUT_OF_SCOPE_HASH) { return ChoiceReason::OUT_OF_SCOPE; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceStatus.cpp index 04584c76882..e782a8a6aae 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ChoiceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ChoiceStatusMapper { - static const int SELECTED_HASH = HashingUtils::HashString("SELECTED"); - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); - static const int UNSELECTED_HASH = HashingUtils::HashString("UNSELECTED"); + static constexpr uint32_t SELECTED_HASH = ConstExprHashingUtils::HashString("SELECTED"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t UNSELECTED_HASH = ConstExprHashingUtils::HashString("UNSELECTED"); ChoiceStatus GetChoiceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELECTED_HASH) { return ChoiceStatus::SELECTED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/DefinitionType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/DefinitionType.cpp index 6945adb2f03..b5c7f9917d9 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/DefinitionType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/DefinitionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DefinitionTypeMapper { - static const int WORKLOAD_METADATA_HASH = HashingUtils::HashString("WORKLOAD_METADATA"); - static const int APP_REGISTRY_HASH = HashingUtils::HashString("APP_REGISTRY"); + static constexpr uint32_t WORKLOAD_METADATA_HASH = ConstExprHashingUtils::HashString("WORKLOAD_METADATA"); + static constexpr uint32_t APP_REGISTRY_HASH = ConstExprHashingUtils::HashString("APP_REGISTRY"); DefinitionType GetDefinitionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORKLOAD_METADATA_HASH) { return DefinitionType::WORKLOAD_METADATA; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/DifferenceStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/DifferenceStatus.cpp index fa01c63f5b1..ba6b1181a77 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/DifferenceStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/DifferenceStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DifferenceStatusMapper { - static const int UPDATED_HASH = HashingUtils::HashString("UPDATED"); - static const int NEW__HASH = HashingUtils::HashString("NEW"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t UPDATED_HASH = ConstExprHashingUtils::HashString("UPDATED"); + static constexpr uint32_t NEW__HASH = ConstExprHashingUtils::HashString("NEW"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); DifferenceStatus GetDifferenceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATED_HASH) { return DifferenceStatus::UPDATED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/DiscoveryIntegrationStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/DiscoveryIntegrationStatus.cpp index 306bca8c9c4..377df2a24ef 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/DiscoveryIntegrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/DiscoveryIntegrationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DiscoveryIntegrationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DiscoveryIntegrationStatus GetDiscoveryIntegrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DiscoveryIntegrationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ImportLensStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ImportLensStatus.cpp index bb8d76016fa..1c7cf552480 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ImportLensStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ImportLensStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ImportLensStatusMapper { - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); ImportLensStatus GetImportLensStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ImportLensStatus::IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatus.cpp index 2aba0b91909..87d51cfc01c 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace LensStatusMapper { - static const int CURRENT_HASH = HashingUtils::HashString("CURRENT"); - static const int NOT_CURRENT_HASH = HashingUtils::HashString("NOT_CURRENT"); - static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int UNSHARED_HASH = HashingUtils::HashString("UNSHARED"); + static constexpr uint32_t CURRENT_HASH = ConstExprHashingUtils::HashString("CURRENT"); + static constexpr uint32_t NOT_CURRENT_HASH = ConstExprHashingUtils::HashString("NOT_CURRENT"); + static constexpr uint32_t DEPRECATED_HASH = ConstExprHashingUtils::HashString("DEPRECATED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t UNSHARED_HASH = ConstExprHashingUtils::HashString("UNSHARED"); LensStatus GetLensStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_HASH) { return LensStatus::CURRENT; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatusType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatusType.cpp index 9e57755cea2..0ac288e82e5 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatusType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LensStatusTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); LensStatusType GetLensStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return LensStatusType::ALL; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensType.cpp index f9827ec6303..d5c7d6511a9 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/LensType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace LensTypeMapper { - static const int AWS_OFFICIAL_HASH = HashingUtils::HashString("AWS_OFFICIAL"); - static const int CUSTOM_SHARED_HASH = HashingUtils::HashString("CUSTOM_SHARED"); - static const int CUSTOM_SELF_HASH = HashingUtils::HashString("CUSTOM_SELF"); + static constexpr uint32_t AWS_OFFICIAL_HASH = ConstExprHashingUtils::HashString("AWS_OFFICIAL"); + static constexpr uint32_t CUSTOM_SHARED_HASH = ConstExprHashingUtils::HashString("CUSTOM_SHARED"); + static constexpr uint32_t CUSTOM_SELF_HASH = ConstExprHashingUtils::HashString("CUSTOM_SELF"); LensType GetLensTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AWS_OFFICIAL_HASH) { return LensType::AWS_OFFICIAL; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/MetricType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/MetricType.cpp index d9d5f117646..51997518ea0 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/MetricType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/MetricType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace MetricTypeMapper { - static const int WORKLOAD_HASH = HashingUtils::HashString("WORKLOAD"); + static constexpr uint32_t WORKLOAD_HASH = ConstExprHashingUtils::HashString("WORKLOAD"); MetricType GetMetricTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORKLOAD_HASH) { return MetricType::WORKLOAD; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/NotificationType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/NotificationType.cpp index e4c4f2dacc4..90367122887 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/NotificationType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/NotificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace NotificationTypeMapper { - static const int LENS_VERSION_UPGRADED_HASH = HashingUtils::HashString("LENS_VERSION_UPGRADED"); - static const int LENS_VERSION_DEPRECATED_HASH = HashingUtils::HashString("LENS_VERSION_DEPRECATED"); + static constexpr uint32_t LENS_VERSION_UPGRADED_HASH = ConstExprHashingUtils::HashString("LENS_VERSION_UPGRADED"); + static constexpr uint32_t LENS_VERSION_DEPRECATED_HASH = ConstExprHashingUtils::HashString("LENS_VERSION_DEPRECATED"); NotificationType GetNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LENS_VERSION_UPGRADED_HASH) { return NotificationType::LENS_VERSION_UPGRADED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/OrganizationSharingStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/OrganizationSharingStatus.cpp index 2f9e5ecbe51..2505cbbebb5 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/OrganizationSharingStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/OrganizationSharingStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrganizationSharingStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); OrganizationSharingStatus GetOrganizationSharingStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return OrganizationSharingStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/PermissionType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/PermissionType.cpp index cb1879560b0..4ef8fe2cb67 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/PermissionType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/PermissionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace PermissionTypeMapper { - static const int READONLY_HASH = HashingUtils::HashString("READONLY"); - static const int CONTRIBUTOR_HASH = HashingUtils::HashString("CONTRIBUTOR"); + static constexpr uint32_t READONLY_HASH = ConstExprHashingUtils::HashString("READONLY"); + static constexpr uint32_t CONTRIBUTOR_HASH = ConstExprHashingUtils::HashString("CONTRIBUTOR"); PermissionType GetPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == READONLY_HASH) { return PermissionType::READONLY; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileNotificationType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileNotificationType.cpp index bf914baa1d2..cf9d6fefc36 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileNotificationType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileNotificationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProfileNotificationTypeMapper { - static const int PROFILE_ANSWERS_UPDATED_HASH = HashingUtils::HashString("PROFILE_ANSWERS_UPDATED"); - static const int PROFILE_DELETED_HASH = HashingUtils::HashString("PROFILE_DELETED"); + static constexpr uint32_t PROFILE_ANSWERS_UPDATED_HASH = ConstExprHashingUtils::HashString("PROFILE_ANSWERS_UPDATED"); + static constexpr uint32_t PROFILE_DELETED_HASH = ConstExprHashingUtils::HashString("PROFILE_DELETED"); ProfileNotificationType GetProfileNotificationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PROFILE_ANSWERS_UPDATED_HASH) { return ProfileNotificationType::PROFILE_ANSWERS_UPDATED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileOwnerType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileOwnerType.cpp index 2c40c77913a..599e3951709 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileOwnerType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ProfileOwnerType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProfileOwnerTypeMapper { - static const int SELF_HASH = HashingUtils::HashString("SELF"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t SELF_HASH = ConstExprHashingUtils::HashString("SELF"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); ProfileOwnerType GetProfileOwnerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SELF_HASH) { return ProfileOwnerType::SELF; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/Question.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/Question.cpp index 6cb0af62b91..eaf4370e2f1 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/Question.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/Question.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuestionMapper { - static const int UNANSWERED_HASH = HashingUtils::HashString("UNANSWERED"); - static const int ANSWERED_HASH = HashingUtils::HashString("ANSWERED"); + static constexpr uint32_t UNANSWERED_HASH = ConstExprHashingUtils::HashString("UNANSWERED"); + static constexpr uint32_t ANSWERED_HASH = ConstExprHashingUtils::HashString("ANSWERED"); Question GetQuestionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNANSWERED_HASH) { return Question::UNANSWERED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionPriority.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionPriority.cpp index 446f83406a8..8610a6827b8 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionPriority.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionPriority.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuestionPriorityMapper { - static const int PRIORITIZED_HASH = HashingUtils::HashString("PRIORITIZED"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); + static constexpr uint32_t PRIORITIZED_HASH = ConstExprHashingUtils::HashString("PRIORITIZED"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); QuestionPriority GetQuestionPriorityForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIORITIZED_HASH) { return QuestionPriority::PRIORITIZED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionType.cpp index e9104334df9..078f4cef213 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/QuestionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace QuestionTypeMapper { - static const int PRIORITIZED_HASH = HashingUtils::HashString("PRIORITIZED"); - static const int NON_PRIORITIZED_HASH = HashingUtils::HashString("NON_PRIORITIZED"); + static constexpr uint32_t PRIORITIZED_HASH = ConstExprHashingUtils::HashString("PRIORITIZED"); + static constexpr uint32_t NON_PRIORITIZED_HASH = ConstExprHashingUtils::HashString("NON_PRIORITIZED"); QuestionType GetQuestionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIORITIZED_HASH) { return QuestionType::PRIORITIZED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReportFormat.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReportFormat.cpp index e44c33b232a..b1edccf62b2 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReportFormat.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReportFormat.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReportFormatMapper { - static const int PDF_HASH = HashingUtils::HashString("PDF"); - static const int JSON_HASH = HashingUtils::HashString("JSON"); + static constexpr uint32_t PDF_HASH = ConstExprHashingUtils::HashString("PDF"); + static constexpr uint32_t JSON_HASH = ConstExprHashingUtils::HashString("JSON"); ReportFormat GetReportFormatForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PDF_HASH) { return ReportFormat::PDF; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateAnswerStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateAnswerStatus.cpp index 46969d43334..89c6236465e 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateAnswerStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateAnswerStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReviewTemplateAnswerStatusMapper { - static const int UNANSWERED_HASH = HashingUtils::HashString("UNANSWERED"); - static const int ANSWERED_HASH = HashingUtils::HashString("ANSWERED"); + static constexpr uint32_t UNANSWERED_HASH = ConstExprHashingUtils::HashString("UNANSWERED"); + static constexpr uint32_t ANSWERED_HASH = ConstExprHashingUtils::HashString("ANSWERED"); ReviewTemplateAnswerStatus GetReviewTemplateAnswerStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNANSWERED_HASH) { return ReviewTemplateAnswerStatus::UNANSWERED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateUpdateStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateUpdateStatus.cpp index dcabbacc754..596bbee69d3 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateUpdateStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ReviewTemplateUpdateStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReviewTemplateUpdateStatusMapper { - static const int CURRENT_HASH = HashingUtils::HashString("CURRENT"); - static const int LENS_NOT_CURRENT_HASH = HashingUtils::HashString("LENS_NOT_CURRENT"); + static constexpr uint32_t CURRENT_HASH = ConstExprHashingUtils::HashString("CURRENT"); + static constexpr uint32_t LENS_NOT_CURRENT_HASH = ConstExprHashingUtils::HashString("LENS_NOT_CURRENT"); ReviewTemplateUpdateStatus GetReviewTemplateUpdateStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CURRENT_HASH) { return ReviewTemplateUpdateStatus::CURRENT; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/Risk.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/Risk.cpp index 11eee9e891e..87c677b1788 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/Risk.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/Risk.cpp @@ -20,16 +20,16 @@ namespace Aws namespace RiskMapper { - static const int UNANSWERED_HASH = HashingUtils::HashString("UNANSWERED"); - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t UNANSWERED_HASH = ConstExprHashingUtils::HashString("UNANSWERED"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); Risk GetRiskForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNANSWERED_HASH) { return Risk::UNANSWERED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareInvitationAction.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareInvitationAction.cpp index 43da0345142..dbd89037226 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareInvitationAction.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareInvitationAction.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShareInvitationActionMapper { - static const int ACCEPT_HASH = HashingUtils::HashString("ACCEPT"); - static const int REJECT_HASH = HashingUtils::HashString("REJECT"); + static constexpr uint32_t ACCEPT_HASH = ConstExprHashingUtils::HashString("ACCEPT"); + static constexpr uint32_t REJECT_HASH = ConstExprHashingUtils::HashString("REJECT"); ShareInvitationAction GetShareInvitationActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPT_HASH) { return ShareInvitationAction::ACCEPT; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareResourceType.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareResourceType.cpp index 66cbed0c888..2e8a5dd07a9 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareResourceType.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ShareResourceTypeMapper { - static const int WORKLOAD_HASH = HashingUtils::HashString("WORKLOAD"); - static const int LENS_HASH = HashingUtils::HashString("LENS"); - static const int PROFILE_HASH = HashingUtils::HashString("PROFILE"); - static const int TEMPLATE_HASH = HashingUtils::HashString("TEMPLATE"); + static constexpr uint32_t WORKLOAD_HASH = ConstExprHashingUtils::HashString("WORKLOAD"); + static constexpr uint32_t LENS_HASH = ConstExprHashingUtils::HashString("LENS"); + static constexpr uint32_t PROFILE_HASH = ConstExprHashingUtils::HashString("PROFILE"); + static constexpr uint32_t TEMPLATE_HASH = ConstExprHashingUtils::HashString("TEMPLATE"); ShareResourceType GetShareResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORKLOAD_HASH) { return ShareResourceType::WORKLOAD; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareStatus.cpp index 003b0fe8331..d492ba57641 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ShareStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace ShareStatusMapper { - static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); - static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int REVOKED_HASH = HashingUtils::HashString("REVOKED"); - static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); - static const int ASSOCIATING_HASH = HashingUtils::HashString("ASSOCIATING"); - static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t ACCEPTED_HASH = ConstExprHashingUtils::HashString("ACCEPTED"); + static constexpr uint32_t REJECTED_HASH = ConstExprHashingUtils::HashString("REJECTED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t REVOKED_HASH = ConstExprHashingUtils::HashString("REVOKED"); + static constexpr uint32_t EXPIRED_HASH = ConstExprHashingUtils::HashString("EXPIRED"); + static constexpr uint32_t ASSOCIATING_HASH = ConstExprHashingUtils::HashString("ASSOCIATING"); + static constexpr uint32_t ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ASSOCIATED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); ShareStatus GetShareStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACCEPTED_HASH) { return ShareStatus::ACCEPTED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/TrustedAdvisorIntegrationStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/TrustedAdvisorIntegrationStatus.cpp index 9632fb405c2..3e8da0495db 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/TrustedAdvisorIntegrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/TrustedAdvisorIntegrationStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TrustedAdvisorIntegrationStatusMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); TrustedAdvisorIntegrationStatus GetTrustedAdvisorIntegrationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return TrustedAdvisorIntegrationStatus::ENABLED; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ValidationExceptionReason.cpp index ff7d4460c87..2b486d71d27 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); - static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); - static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t UNKNOWN_OPERATION_HASH = ConstExprHashingUtils::HashString("UNKNOWN_OPERATION"); + static constexpr uint32_t CANNOT_PARSE_HASH = ConstExprHashingUtils::HashString("CANNOT_PARSE"); + static constexpr uint32_t FIELD_VALIDATION_FAILED_HASH = ConstExprHashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNKNOWN_OPERATION_HASH) { return ValidationExceptionReason::UNKNOWN_OPERATION; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadEnvironment.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadEnvironment.cpp index 02a65cd7a06..62acd009d4f 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadEnvironment.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadEnvironment.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WorkloadEnvironmentMapper { - static const int PRODUCTION_HASH = HashingUtils::HashString("PRODUCTION"); - static const int PREPRODUCTION_HASH = HashingUtils::HashString("PREPRODUCTION"); + static constexpr uint32_t PRODUCTION_HASH = ConstExprHashingUtils::HashString("PRODUCTION"); + static constexpr uint32_t PREPRODUCTION_HASH = ConstExprHashingUtils::HashString("PREPRODUCTION"); WorkloadEnvironment GetWorkloadEnvironmentForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRODUCTION_HASH) { return WorkloadEnvironment::PRODUCTION; diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadImprovementStatus.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadImprovementStatus.cpp index 3d99a3d43c6..bf501966c4b 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadImprovementStatus.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/model/WorkloadImprovementStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkloadImprovementStatusMapper { - static const int NOT_APPLICABLE_HASH = HashingUtils::HashString("NOT_APPLICABLE"); - static const int NOT_STARTED_HASH = HashingUtils::HashString("NOT_STARTED"); - static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); - static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); - static const int RISK_ACKNOWLEDGED_HASH = HashingUtils::HashString("RISK_ACKNOWLEDGED"); + static constexpr uint32_t NOT_APPLICABLE_HASH = ConstExprHashingUtils::HashString("NOT_APPLICABLE"); + static constexpr uint32_t NOT_STARTED_HASH = ConstExprHashingUtils::HashString("NOT_STARTED"); + static constexpr uint32_t IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("IN_PROGRESS"); + static constexpr uint32_t COMPLETE_HASH = ConstExprHashingUtils::HashString("COMPLETE"); + static constexpr uint32_t RISK_ACKNOWLEDGED_HASH = ConstExprHashingUtils::HashString("RISK_ACKNOWLEDGED"); WorkloadImprovementStatus GetWorkloadImprovementStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_APPLICABLE_HASH) { return WorkloadImprovementStatus::NOT_APPLICABLE; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceErrors.cpp b/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceErrors.cpp index cfe996a3059..7eb304578e4 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceErrors.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceErrors.cpp @@ -33,15 +33,15 @@ template<> AWS_CONNECTWISDOMSERVICE_API TooManyTagsException ConnectWisdomServic namespace ConnectWisdomServiceErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t PRECONDITION_FAILED_HASH = ConstExprHashingUtils::HashString("PreconditionFailedException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantStatus.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantStatus.cpp index 11a88e6ce01..dfec33513d5 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantStatus.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace AssistantStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); AssistantStatus GetAssistantStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return AssistantStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantType.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantType.cpp index 273c414b4da..c484d8e1fac 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantType.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/AssistantType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssistantTypeMapper { - static const int AGENT_HASH = HashingUtils::HashString("AGENT"); + static constexpr uint32_t AGENT_HASH = ConstExprHashingUtils::HashString("AGENT"); AssistantType GetAssistantTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AGENT_HASH) { return AssistantType::AGENT; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/AssociationType.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/AssociationType.cpp index 6fc436b128b..6e2335ea4d0 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/AssociationType.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/AssociationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AssociationTypeMapper { - static const int KNOWLEDGE_BASE_HASH = HashingUtils::HashString("KNOWLEDGE_BASE"); + static constexpr uint32_t KNOWLEDGE_BASE_HASH = ConstExprHashingUtils::HashString("KNOWLEDGE_BASE"); AssociationType GetAssociationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KNOWLEDGE_BASE_HASH) { return AssociationType::KNOWLEDGE_BASE; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/ContentStatus.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/ContentStatus.cpp index a879f0e6cbd..0ab74fba4c7 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/ContentStatus.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/ContentStatus.cpp @@ -20,18 +20,18 @@ namespace Aws namespace ContentStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int UPDATE_FAILED_HASH = HashingUtils::HashString("UPDATE_FAILED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t UPDATE_FAILED_HASH = ConstExprHashingUtils::HashString("UPDATE_FAILED"); ContentStatus GetContentStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return ContentStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/FilterField.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/FilterField.cpp index f831a5a18d7..673c805fee4 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/FilterField.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/FilterField.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FilterFieldMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); FilterField GetFilterFieldForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return FilterField::NAME; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/FilterOperator.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/FilterOperator.cpp index 50cdbdd930d..bb43a394474 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/FilterOperator.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/FilterOperator.cpp @@ -20,12 +20,12 @@ namespace Aws namespace FilterOperatorMapper { - static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static constexpr uint32_t EQUALS_HASH = ConstExprHashingUtils::HashString("EQUALS"); FilterOperator GetFilterOperatorForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return FilterOperator::EQUALS; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseStatus.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseStatus.cpp index c32255c5753..c5a2a9ab43d 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseStatus.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace KnowledgeBaseStatusMapper { - static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); - static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); - static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t CREATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("CREATE_IN_PROGRESS"); + static constexpr uint32_t CREATE_FAILED_HASH = ConstExprHashingUtils::HashString("CREATE_FAILED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("DELETE_IN_PROGRESS"); + static constexpr uint32_t DELETE_FAILED_HASH = ConstExprHashingUtils::HashString("DELETE_FAILED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); KnowledgeBaseStatus GetKnowledgeBaseStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_IN_PROGRESS_HASH) { return KnowledgeBaseStatus::CREATE_IN_PROGRESS; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseType.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseType.cpp index 399d818d834..66a679b88c0 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseType.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/KnowledgeBaseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace KnowledgeBaseTypeMapper { - static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); - static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); + static constexpr uint32_t EXTERNAL_HASH = ConstExprHashingUtils::HashString("EXTERNAL"); + static constexpr uint32_t CUSTOM_HASH = ConstExprHashingUtils::HashString("CUSTOM"); KnowledgeBaseType GetKnowledgeBaseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EXTERNAL_HASH) { return KnowledgeBaseType::EXTERNAL; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationSourceType.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationSourceType.cpp index ab7f43ff063..fbedec3b03e 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationSourceType.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationSourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RecommendationSourceTypeMapper { - static const int ISSUE_DETECTION_HASH = HashingUtils::HashString("ISSUE_DETECTION"); - static const int RULE_EVALUATION_HASH = HashingUtils::HashString("RULE_EVALUATION"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t ISSUE_DETECTION_HASH = ConstExprHashingUtils::HashString("ISSUE_DETECTION"); + static constexpr uint32_t RULE_EVALUATION_HASH = ConstExprHashingUtils::HashString("RULE_EVALUATION"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); RecommendationSourceType GetRecommendationSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ISSUE_DETECTION_HASH) { return RecommendationSourceType::ISSUE_DETECTION; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationTriggerType.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationTriggerType.cpp index bae58279fb7..5085acd0a1d 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationTriggerType.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationTriggerType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecommendationTriggerTypeMapper { - static const int QUERY_HASH = HashingUtils::HashString("QUERY"); + static constexpr uint32_t QUERY_HASH = ConstExprHashingUtils::HashString("QUERY"); RecommendationTriggerType GetRecommendationTriggerTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == QUERY_HASH) { return RecommendationTriggerType::QUERY; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationType.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationType.cpp index 50cc9fbd558..62ef716f50e 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationType.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/RecommendationType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RecommendationTypeMapper { - static const int KNOWLEDGE_CONTENT_HASH = HashingUtils::HashString("KNOWLEDGE_CONTENT"); + static constexpr uint32_t KNOWLEDGE_CONTENT_HASH = ConstExprHashingUtils::HashString("KNOWLEDGE_CONTENT"); RecommendationType GetRecommendationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == KNOWLEDGE_CONTENT_HASH) { return RecommendationType::KNOWLEDGE_CONTENT; diff --git a/generated/src/aws-cpp-sdk-wisdom/source/model/RelevanceLevel.cpp b/generated/src/aws-cpp-sdk-wisdom/source/model/RelevanceLevel.cpp index cd666a623ec..88e87a15491 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/model/RelevanceLevel.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/model/RelevanceLevel.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RelevanceLevelMapper { - static const int HIGH_HASH = HashingUtils::HashString("HIGH"); - static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); - static const int LOW_HASH = HashingUtils::HashString("LOW"); + static constexpr uint32_t HIGH_HASH = ConstExprHashingUtils::HashString("HIGH"); + static constexpr uint32_t MEDIUM_HASH = ConstExprHashingUtils::HashString("MEDIUM"); + static constexpr uint32_t LOW_HASH = ConstExprHashingUtils::HashString("LOW"); RelevanceLevel GetRelevanceLevelForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HIGH_HASH) { return RelevanceLevel::HIGH; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsErrors.cpp b/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsErrors.cpp index dc6d6f11203..3dd88a8f277 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsErrors.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsErrors.cpp @@ -26,35 +26,35 @@ template<> AWS_WORKDOCS_API EntityNotExistsException WorkDocsError::GetModeledEr namespace WorkDocsErrorMapper { -static const int ENTITY_ALREADY_EXISTS_HASH = HashingUtils::HashString("EntityAlreadyExistsException"); -static const int REQUESTED_ENTITY_TOO_LARGE_HASH = HashingUtils::HashString("RequestedEntityTooLargeException"); -static const int TOO_MANY_LABELS_HASH = HashingUtils::HashString("TooManyLabelsException"); -static const int DRAFT_UPLOAD_OUT_OF_SYNC_HASH = HashingUtils::HashString("DraftUploadOutOfSyncException"); -static const int FAILED_DEPENDENCY_HASH = HashingUtils::HashString("FailedDependencyException"); -static const int RESOURCE_ALREADY_CHECKED_OUT_HASH = HashingUtils::HashString("ResourceAlreadyCheckedOutException"); -static const int CUSTOM_METADATA_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("CustomMetadataLimitExceededException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int PROHIBITED_STATE_HASH = HashingUtils::HashString("ProhibitedStateException"); -static const int DOCUMENT_LOCKED_FOR_COMMENTS_HASH = HashingUtils::HashString("DocumentLockedForCommentsException"); -static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException"); -static const int STORAGE_LIMIT_WILL_EXCEED_HASH = HashingUtils::HashString("StorageLimitWillExceedException"); -static const int INVALID_COMMENT_OPERATION_HASH = HashingUtils::HashString("InvalidCommentOperationException"); -static const int STORAGE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("StorageLimitExceededException"); -static const int UNAUTHORIZED_OPERATION_HASH = HashingUtils::HashString("UnauthorizedOperationException"); -static const int TOO_MANY_SUBSCRIPTIONS_HASH = HashingUtils::HashString("TooManySubscriptionsException"); -static const int ILLEGAL_USER_STATE_HASH = HashingUtils::HashString("IllegalUserStateException"); -static const int DEACTIVATING_LAST_SYSTEM_USER_HASH = HashingUtils::HashString("DeactivatingLastSystemUserException"); -static const int UNAUTHORIZED_RESOURCE_ACCESS_HASH = HashingUtils::HashString("UnauthorizedResourceAccessException"); -static const int ENTITY_NOT_EXISTS_HASH = HashingUtils::HashString("EntityNotExistsException"); -static const int INVALID_PASSWORD_HASH = HashingUtils::HashString("InvalidPasswordException"); -static const int INVALID_OPERATION_HASH = HashingUtils::HashString("InvalidOperationException"); -static const int CONFLICTING_OPERATION_HASH = HashingUtils::HashString("ConflictingOperationException"); -static const int INVALID_ARGUMENT_HASH = HashingUtils::HashString("InvalidArgumentException"); +static constexpr uint32_t ENTITY_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("EntityAlreadyExistsException"); +static constexpr uint32_t REQUESTED_ENTITY_TOO_LARGE_HASH = ConstExprHashingUtils::HashString("RequestedEntityTooLargeException"); +static constexpr uint32_t TOO_MANY_LABELS_HASH = ConstExprHashingUtils::HashString("TooManyLabelsException"); +static constexpr uint32_t DRAFT_UPLOAD_OUT_OF_SYNC_HASH = ConstExprHashingUtils::HashString("DraftUploadOutOfSyncException"); +static constexpr uint32_t FAILED_DEPENDENCY_HASH = ConstExprHashingUtils::HashString("FailedDependencyException"); +static constexpr uint32_t RESOURCE_ALREADY_CHECKED_OUT_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyCheckedOutException"); +static constexpr uint32_t CUSTOM_METADATA_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("CustomMetadataLimitExceededException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t PROHIBITED_STATE_HASH = ConstExprHashingUtils::HashString("ProhibitedStateException"); +static constexpr uint32_t DOCUMENT_LOCKED_FOR_COMMENTS_HASH = ConstExprHashingUtils::HashString("DocumentLockedForCommentsException"); +static constexpr uint32_t CONCURRENT_MODIFICATION_HASH = ConstExprHashingUtils::HashString("ConcurrentModificationException"); +static constexpr uint32_t STORAGE_LIMIT_WILL_EXCEED_HASH = ConstExprHashingUtils::HashString("StorageLimitWillExceedException"); +static constexpr uint32_t INVALID_COMMENT_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidCommentOperationException"); +static constexpr uint32_t STORAGE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("StorageLimitExceededException"); +static constexpr uint32_t UNAUTHORIZED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnauthorizedOperationException"); +static constexpr uint32_t TOO_MANY_SUBSCRIPTIONS_HASH = ConstExprHashingUtils::HashString("TooManySubscriptionsException"); +static constexpr uint32_t ILLEGAL_USER_STATE_HASH = ConstExprHashingUtils::HashString("IllegalUserStateException"); +static constexpr uint32_t DEACTIVATING_LAST_SYSTEM_USER_HASH = ConstExprHashingUtils::HashString("DeactivatingLastSystemUserException"); +static constexpr uint32_t UNAUTHORIZED_RESOURCE_ACCESS_HASH = ConstExprHashingUtils::HashString("UnauthorizedResourceAccessException"); +static constexpr uint32_t ENTITY_NOT_EXISTS_HASH = ConstExprHashingUtils::HashString("EntityNotExistsException"); +static constexpr uint32_t INVALID_PASSWORD_HASH = ConstExprHashingUtils::HashString("InvalidPasswordException"); +static constexpr uint32_t INVALID_OPERATION_HASH = ConstExprHashingUtils::HashString("InvalidOperationException"); +static constexpr uint32_t CONFLICTING_OPERATION_HASH = ConstExprHashingUtils::HashString("ConflictingOperationException"); +static constexpr uint32_t INVALID_ARGUMENT_HASH = ConstExprHashingUtils::HashString("InvalidArgumentException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == ENTITY_ALREADY_EXISTS_HASH) { diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ActivityType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ActivityType.cpp index 73793b34514..895ee92e183 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ActivityType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ActivityType.cpp @@ -20,44 +20,44 @@ namespace Aws namespace ActivityTypeMapper { - static const int DOCUMENT_CHECKED_IN_HASH = HashingUtils::HashString("DOCUMENT_CHECKED_IN"); - static const int DOCUMENT_CHECKED_OUT_HASH = HashingUtils::HashString("DOCUMENT_CHECKED_OUT"); - static const int DOCUMENT_RENAMED_HASH = HashingUtils::HashString("DOCUMENT_RENAMED"); - static const int DOCUMENT_VERSION_UPLOADED_HASH = HashingUtils::HashString("DOCUMENT_VERSION_UPLOADED"); - static const int DOCUMENT_VERSION_DELETED_HASH = HashingUtils::HashString("DOCUMENT_VERSION_DELETED"); - static const int DOCUMENT_VERSION_VIEWED_HASH = HashingUtils::HashString("DOCUMENT_VERSION_VIEWED"); - static const int DOCUMENT_VERSION_DOWNLOADED_HASH = HashingUtils::HashString("DOCUMENT_VERSION_DOWNLOADED"); - static const int DOCUMENT_RECYCLED_HASH = HashingUtils::HashString("DOCUMENT_RECYCLED"); - static const int DOCUMENT_RESTORED_HASH = HashingUtils::HashString("DOCUMENT_RESTORED"); - static const int DOCUMENT_REVERTED_HASH = HashingUtils::HashString("DOCUMENT_REVERTED"); - static const int DOCUMENT_SHARED_HASH = HashingUtils::HashString("DOCUMENT_SHARED"); - static const int DOCUMENT_UNSHARED_HASH = HashingUtils::HashString("DOCUMENT_UNSHARED"); - static const int DOCUMENT_SHARE_PERMISSION_CHANGED_HASH = HashingUtils::HashString("DOCUMENT_SHARE_PERMISSION_CHANGED"); - static const int DOCUMENT_SHAREABLE_LINK_CREATED_HASH = HashingUtils::HashString("DOCUMENT_SHAREABLE_LINK_CREATED"); - static const int DOCUMENT_SHAREABLE_LINK_REMOVED_HASH = HashingUtils::HashString("DOCUMENT_SHAREABLE_LINK_REMOVED"); - static const int DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED_HASH = HashingUtils::HashString("DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED"); - static const int DOCUMENT_MOVED_HASH = HashingUtils::HashString("DOCUMENT_MOVED"); - static const int DOCUMENT_COMMENT_ADDED_HASH = HashingUtils::HashString("DOCUMENT_COMMENT_ADDED"); - static const int DOCUMENT_COMMENT_DELETED_HASH = HashingUtils::HashString("DOCUMENT_COMMENT_DELETED"); - static const int DOCUMENT_ANNOTATION_ADDED_HASH = HashingUtils::HashString("DOCUMENT_ANNOTATION_ADDED"); - static const int DOCUMENT_ANNOTATION_DELETED_HASH = HashingUtils::HashString("DOCUMENT_ANNOTATION_DELETED"); - static const int FOLDER_CREATED_HASH = HashingUtils::HashString("FOLDER_CREATED"); - static const int FOLDER_DELETED_HASH = HashingUtils::HashString("FOLDER_DELETED"); - static const int FOLDER_RENAMED_HASH = HashingUtils::HashString("FOLDER_RENAMED"); - static const int FOLDER_RECYCLED_HASH = HashingUtils::HashString("FOLDER_RECYCLED"); - static const int FOLDER_RESTORED_HASH = HashingUtils::HashString("FOLDER_RESTORED"); - static const int FOLDER_SHARED_HASH = HashingUtils::HashString("FOLDER_SHARED"); - static const int FOLDER_UNSHARED_HASH = HashingUtils::HashString("FOLDER_UNSHARED"); - static const int FOLDER_SHARE_PERMISSION_CHANGED_HASH = HashingUtils::HashString("FOLDER_SHARE_PERMISSION_CHANGED"); - static const int FOLDER_SHAREABLE_LINK_CREATED_HASH = HashingUtils::HashString("FOLDER_SHAREABLE_LINK_CREATED"); - static const int FOLDER_SHAREABLE_LINK_REMOVED_HASH = HashingUtils::HashString("FOLDER_SHAREABLE_LINK_REMOVED"); - static const int FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED_HASH = HashingUtils::HashString("FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED"); - static const int FOLDER_MOVED_HASH = HashingUtils::HashString("FOLDER_MOVED"); + static constexpr uint32_t DOCUMENT_CHECKED_IN_HASH = ConstExprHashingUtils::HashString("DOCUMENT_CHECKED_IN"); + static constexpr uint32_t DOCUMENT_CHECKED_OUT_HASH = ConstExprHashingUtils::HashString("DOCUMENT_CHECKED_OUT"); + static constexpr uint32_t DOCUMENT_RENAMED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_RENAMED"); + static constexpr uint32_t DOCUMENT_VERSION_UPLOADED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_VERSION_UPLOADED"); + static constexpr uint32_t DOCUMENT_VERSION_DELETED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_VERSION_DELETED"); + static constexpr uint32_t DOCUMENT_VERSION_VIEWED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_VERSION_VIEWED"); + static constexpr uint32_t DOCUMENT_VERSION_DOWNLOADED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_VERSION_DOWNLOADED"); + static constexpr uint32_t DOCUMENT_RECYCLED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_RECYCLED"); + static constexpr uint32_t DOCUMENT_RESTORED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_RESTORED"); + static constexpr uint32_t DOCUMENT_REVERTED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_REVERTED"); + static constexpr uint32_t DOCUMENT_SHARED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SHARED"); + static constexpr uint32_t DOCUMENT_UNSHARED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_UNSHARED"); + static constexpr uint32_t DOCUMENT_SHARE_PERMISSION_CHANGED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SHARE_PERMISSION_CHANGED"); + static constexpr uint32_t DOCUMENT_SHAREABLE_LINK_CREATED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SHAREABLE_LINK_CREATED"); + static constexpr uint32_t DOCUMENT_SHAREABLE_LINK_REMOVED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SHAREABLE_LINK_REMOVED"); + static constexpr uint32_t DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED"); + static constexpr uint32_t DOCUMENT_MOVED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_MOVED"); + static constexpr uint32_t DOCUMENT_COMMENT_ADDED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_COMMENT_ADDED"); + static constexpr uint32_t DOCUMENT_COMMENT_DELETED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_COMMENT_DELETED"); + static constexpr uint32_t DOCUMENT_ANNOTATION_ADDED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_ANNOTATION_ADDED"); + static constexpr uint32_t DOCUMENT_ANNOTATION_DELETED_HASH = ConstExprHashingUtils::HashString("DOCUMENT_ANNOTATION_DELETED"); + static constexpr uint32_t FOLDER_CREATED_HASH = ConstExprHashingUtils::HashString("FOLDER_CREATED"); + static constexpr uint32_t FOLDER_DELETED_HASH = ConstExprHashingUtils::HashString("FOLDER_DELETED"); + static constexpr uint32_t FOLDER_RENAMED_HASH = ConstExprHashingUtils::HashString("FOLDER_RENAMED"); + static constexpr uint32_t FOLDER_RECYCLED_HASH = ConstExprHashingUtils::HashString("FOLDER_RECYCLED"); + static constexpr uint32_t FOLDER_RESTORED_HASH = ConstExprHashingUtils::HashString("FOLDER_RESTORED"); + static constexpr uint32_t FOLDER_SHARED_HASH = ConstExprHashingUtils::HashString("FOLDER_SHARED"); + static constexpr uint32_t FOLDER_UNSHARED_HASH = ConstExprHashingUtils::HashString("FOLDER_UNSHARED"); + static constexpr uint32_t FOLDER_SHARE_PERMISSION_CHANGED_HASH = ConstExprHashingUtils::HashString("FOLDER_SHARE_PERMISSION_CHANGED"); + static constexpr uint32_t FOLDER_SHAREABLE_LINK_CREATED_HASH = ConstExprHashingUtils::HashString("FOLDER_SHAREABLE_LINK_CREATED"); + static constexpr uint32_t FOLDER_SHAREABLE_LINK_REMOVED_HASH = ConstExprHashingUtils::HashString("FOLDER_SHAREABLE_LINK_REMOVED"); + static constexpr uint32_t FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED_HASH = ConstExprHashingUtils::HashString("FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED"); + static constexpr uint32_t FOLDER_MOVED_HASH = ConstExprHashingUtils::HashString("FOLDER_MOVED"); ActivityType GetActivityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_CHECKED_IN_HASH) { return ActivityType::DOCUMENT_CHECKED_IN; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/AdditionalResponseFieldType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/AdditionalResponseFieldType.cpp index adade48d334..ec6f1055083 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/AdditionalResponseFieldType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/AdditionalResponseFieldType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AdditionalResponseFieldTypeMapper { - static const int WEBURL_HASH = HashingUtils::HashString("WEBURL"); + static constexpr uint32_t WEBURL_HASH = ConstExprHashingUtils::HashString("WEBURL"); AdditionalResponseFieldType GetAdditionalResponseFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WEBURL_HASH) { return AdditionalResponseFieldType::WEBURL; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/BooleanEnumType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/BooleanEnumType.cpp index 18966dccbc8..702b10451b2 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/BooleanEnumType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/BooleanEnumType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BooleanEnumTypeMapper { - static const int TRUE_HASH = HashingUtils::HashString("TRUE"); - static const int FALSE_HASH = HashingUtils::HashString("FALSE"); + static constexpr uint32_t TRUE_HASH = ConstExprHashingUtils::HashString("TRUE"); + static constexpr uint32_t FALSE_HASH = ConstExprHashingUtils::HashString("FALSE"); BooleanEnumType GetBooleanEnumTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TRUE_HASH) { return BooleanEnumType::TRUE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/CommentStatusType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/CommentStatusType.cpp index ce2574466f7..5155aebd23f 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/CommentStatusType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/CommentStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace CommentStatusTypeMapper { - static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); - static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t DRAFT_HASH = ConstExprHashingUtils::HashString("DRAFT"); + static constexpr uint32_t PUBLISHED_HASH = ConstExprHashingUtils::HashString("PUBLISHED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); CommentStatusType GetCommentStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DRAFT_HASH) { return CommentStatusType::DRAFT; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/CommentVisibilityType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/CommentVisibilityType.cpp index 699c825cfdc..aa6b1394b6c 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/CommentVisibilityType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/CommentVisibilityType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CommentVisibilityTypeMapper { - static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); - static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static constexpr uint32_t PUBLIC__HASH = ConstExprHashingUtils::HashString("PUBLIC"); + static constexpr uint32_t PRIVATE__HASH = ConstExprHashingUtils::HashString("PRIVATE"); CommentVisibilityType GetCommentVisibilityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLIC__HASH) { return CommentVisibilityType::PUBLIC_; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ContentCategoryType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ContentCategoryType.cpp index f8252e58996..4a4eb53f7f6 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ContentCategoryType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ContentCategoryType.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ContentCategoryTypeMapper { - static const int IMAGE_HASH = HashingUtils::HashString("IMAGE"); - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int PDF_HASH = HashingUtils::HashString("PDF"); - static const int SPREADSHEET_HASH = HashingUtils::HashString("SPREADSHEET"); - static const int PRESENTATION_HASH = HashingUtils::HashString("PRESENTATION"); - static const int AUDIO_HASH = HashingUtils::HashString("AUDIO"); - static const int VIDEO_HASH = HashingUtils::HashString("VIDEO"); - static const int SOURCE_CODE_HASH = HashingUtils::HashString("SOURCE_CODE"); - static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + static constexpr uint32_t IMAGE_HASH = ConstExprHashingUtils::HashString("IMAGE"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t PDF_HASH = ConstExprHashingUtils::HashString("PDF"); + static constexpr uint32_t SPREADSHEET_HASH = ConstExprHashingUtils::HashString("SPREADSHEET"); + static constexpr uint32_t PRESENTATION_HASH = ConstExprHashingUtils::HashString("PRESENTATION"); + static constexpr uint32_t AUDIO_HASH = ConstExprHashingUtils::HashString("AUDIO"); + static constexpr uint32_t VIDEO_HASH = ConstExprHashingUtils::HashString("VIDEO"); + static constexpr uint32_t SOURCE_CODE_HASH = ConstExprHashingUtils::HashString("SOURCE_CODE"); + static constexpr uint32_t OTHER_HASH = ConstExprHashingUtils::HashString("OTHER"); ContentCategoryType GetContentCategoryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IMAGE_HASH) { return ContentCategoryType::IMAGE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentSourceType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentSourceType.cpp index b0fe35c57d7..835df4361c1 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentSourceType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentSourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentSourceTypeMapper { - static const int ORIGINAL_HASH = HashingUtils::HashString("ORIGINAL"); - static const int WITH_COMMENTS_HASH = HashingUtils::HashString("WITH_COMMENTS"); + static constexpr uint32_t ORIGINAL_HASH = ConstExprHashingUtils::HashString("ORIGINAL"); + static constexpr uint32_t WITH_COMMENTS_HASH = ConstExprHashingUtils::HashString("WITH_COMMENTS"); DocumentSourceType GetDocumentSourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ORIGINAL_HASH) { return DocumentSourceType::ORIGINAL; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentStatusType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentStatusType.cpp index fcc2c19c63b..b2f0ebdc277 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentStatusType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DocumentStatusTypeMapper { - static const int INITIALIZED_HASH = HashingUtils::HashString("INITIALIZED"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INITIALIZED_HASH = ConstExprHashingUtils::HashString("INITIALIZED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); DocumentStatusType GetDocumentStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZED_HASH) { return DocumentStatusType::INITIALIZED; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentThumbnailType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentThumbnailType.cpp index ea4d075daa5..01f40298d54 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentThumbnailType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentThumbnailType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DocumentThumbnailTypeMapper { - static const int SMALL_HASH = HashingUtils::HashString("SMALL"); - static const int SMALL_HQ_HASH = HashingUtils::HashString("SMALL_HQ"); - static const int LARGE_HASH = HashingUtils::HashString("LARGE"); + static constexpr uint32_t SMALL_HASH = ConstExprHashingUtils::HashString("SMALL"); + static constexpr uint32_t SMALL_HQ_HASH = ConstExprHashingUtils::HashString("SMALL_HQ"); + static constexpr uint32_t LARGE_HASH = ConstExprHashingUtils::HashString("LARGE"); DocumentThumbnailType GetDocumentThumbnailTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMALL_HASH) { return DocumentThumbnailType::SMALL; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentVersionStatus.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentVersionStatus.cpp index 223711a8d82..5e530dadc31 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/DocumentVersionStatus.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DocumentVersionStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); DocumentVersionStatus GetDocumentVersionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DocumentVersionStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/FolderContentType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/FolderContentType.cpp index 6089e5fcf0f..f5e28ea2fc2 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/FolderContentType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/FolderContentType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace FolderContentTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int FOLDER_HASH = HashingUtils::HashString("FOLDER"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t FOLDER_HASH = ConstExprHashingUtils::HashString("FOLDER"); FolderContentType GetFolderContentTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return FolderContentType::ALL; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/LanguageCodeType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/LanguageCodeType.cpp index 99bf1132b54..486ee5e7d67 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/LanguageCodeType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/LanguageCodeType.cpp @@ -20,42 +20,42 @@ namespace Aws namespace LanguageCodeTypeMapper { - static const int AR_HASH = HashingUtils::HashString("AR"); - static const int BG_HASH = HashingUtils::HashString("BG"); - static const int BN_HASH = HashingUtils::HashString("BN"); - static const int DA_HASH = HashingUtils::HashString("DA"); - static const int DE_HASH = HashingUtils::HashString("DE"); - static const int CS_HASH = HashingUtils::HashString("CS"); - 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 FA_HASH = HashingUtils::HashString("FA"); - static const int FI_HASH = HashingUtils::HashString("FI"); - static const int FR_HASH = HashingUtils::HashString("FR"); - static const int HI_HASH = HashingUtils::HashString("HI"); - static const int HU_HASH = HashingUtils::HashString("HU"); - 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 LT_HASH = HashingUtils::HashString("LT"); - static const int LV_HASH = HashingUtils::HashString("LV"); - 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 SW_HASH = HashingUtils::HashString("SW"); - static const int TH_HASH = HashingUtils::HashString("TH"); - static const int TR_HASH = HashingUtils::HashString("TR"); - static const int ZH_HASH = HashingUtils::HashString("ZH"); - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); + static constexpr uint32_t AR_HASH = ConstExprHashingUtils::HashString("AR"); + static constexpr uint32_t BG_HASH = ConstExprHashingUtils::HashString("BG"); + static constexpr uint32_t BN_HASH = ConstExprHashingUtils::HashString("BN"); + static constexpr uint32_t DA_HASH = ConstExprHashingUtils::HashString("DA"); + static constexpr uint32_t DE_HASH = ConstExprHashingUtils::HashString("DE"); + static constexpr uint32_t CS_HASH = ConstExprHashingUtils::HashString("CS"); + static constexpr uint32_t EL_HASH = ConstExprHashingUtils::HashString("EL"); + static constexpr uint32_t EN_HASH = ConstExprHashingUtils::HashString("EN"); + static constexpr uint32_t ES_HASH = ConstExprHashingUtils::HashString("ES"); + static constexpr uint32_t FA_HASH = ConstExprHashingUtils::HashString("FA"); + static constexpr uint32_t FI_HASH = ConstExprHashingUtils::HashString("FI"); + static constexpr uint32_t FR_HASH = ConstExprHashingUtils::HashString("FR"); + static constexpr uint32_t HI_HASH = ConstExprHashingUtils::HashString("HI"); + static constexpr uint32_t HU_HASH = ConstExprHashingUtils::HashString("HU"); + static constexpr uint32_t ID_HASH = ConstExprHashingUtils::HashString("ID"); + static constexpr uint32_t IT_HASH = ConstExprHashingUtils::HashString("IT"); + static constexpr uint32_t JA_HASH = ConstExprHashingUtils::HashString("JA"); + static constexpr uint32_t KO_HASH = ConstExprHashingUtils::HashString("KO"); + static constexpr uint32_t LT_HASH = ConstExprHashingUtils::HashString("LT"); + static constexpr uint32_t LV_HASH = ConstExprHashingUtils::HashString("LV"); + static constexpr uint32_t NL_HASH = ConstExprHashingUtils::HashString("NL"); + static constexpr uint32_t NO_HASH = ConstExprHashingUtils::HashString("NO"); + static constexpr uint32_t PT_HASH = ConstExprHashingUtils::HashString("PT"); + static constexpr uint32_t RO_HASH = ConstExprHashingUtils::HashString("RO"); + static constexpr uint32_t RU_HASH = ConstExprHashingUtils::HashString("RU"); + static constexpr uint32_t SV_HASH = ConstExprHashingUtils::HashString("SV"); + static constexpr uint32_t SW_HASH = ConstExprHashingUtils::HashString("SW"); + static constexpr uint32_t TH_HASH = ConstExprHashingUtils::HashString("TH"); + static constexpr uint32_t TR_HASH = ConstExprHashingUtils::HashString("TR"); + static constexpr uint32_t ZH_HASH = ConstExprHashingUtils::HashString("ZH"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); LanguageCodeType GetLanguageCodeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AR_HASH) { return LanguageCodeType::AR; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/LocaleType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/LocaleType.cpp index 07ed2d65dfc..234f1398c04 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/LocaleType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/LocaleType.cpp @@ -20,22 +20,22 @@ namespace Aws namespace LocaleTypeMapper { - static const int en_HASH = HashingUtils::HashString("en"); - static const int fr_HASH = HashingUtils::HashString("fr"); - static const int ko_HASH = HashingUtils::HashString("ko"); - static const int de_HASH = HashingUtils::HashString("de"); - static const int es_HASH = HashingUtils::HashString("es"); - static const int ja_HASH = HashingUtils::HashString("ja"); - static const int ru_HASH = HashingUtils::HashString("ru"); - static const int zh_CN_HASH = HashingUtils::HashString("zh_CN"); - static const int zh_TW_HASH = HashingUtils::HashString("zh_TW"); - static const int pt_BR_HASH = HashingUtils::HashString("pt_BR"); - static const int default__HASH = HashingUtils::HashString("default"); + static constexpr uint32_t en_HASH = ConstExprHashingUtils::HashString("en"); + static constexpr uint32_t fr_HASH = ConstExprHashingUtils::HashString("fr"); + static constexpr uint32_t ko_HASH = ConstExprHashingUtils::HashString("ko"); + static constexpr uint32_t de_HASH = ConstExprHashingUtils::HashString("de"); + static constexpr uint32_t es_HASH = ConstExprHashingUtils::HashString("es"); + static constexpr uint32_t ja_HASH = ConstExprHashingUtils::HashString("ja"); + static constexpr uint32_t ru_HASH = ConstExprHashingUtils::HashString("ru"); + static constexpr uint32_t zh_CN_HASH = ConstExprHashingUtils::HashString("zh_CN"); + static constexpr uint32_t zh_TW_HASH = ConstExprHashingUtils::HashString("zh_TW"); + static constexpr uint32_t pt_BR_HASH = ConstExprHashingUtils::HashString("pt_BR"); + static constexpr uint32_t default__HASH = ConstExprHashingUtils::HashString("default"); LocaleType GetLocaleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == en_HASH) { return LocaleType::en; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/OrderByFieldType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/OrderByFieldType.cpp index 947600b31a8..80fa5099f22 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/OrderByFieldType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/OrderByFieldType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace OrderByFieldTypeMapper { - static const int RELEVANCE_HASH = HashingUtils::HashString("RELEVANCE"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int SIZE_HASH = HashingUtils::HashString("SIZE"); - static const int CREATED_TIMESTAMP_HASH = HashingUtils::HashString("CREATED_TIMESTAMP"); - static const int MODIFIED_TIMESTAMP_HASH = HashingUtils::HashString("MODIFIED_TIMESTAMP"); + static constexpr uint32_t RELEVANCE_HASH = ConstExprHashingUtils::HashString("RELEVANCE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t SIZE_HASH = ConstExprHashingUtils::HashString("SIZE"); + static constexpr uint32_t CREATED_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("CREATED_TIMESTAMP"); + static constexpr uint32_t MODIFIED_TIMESTAMP_HASH = ConstExprHashingUtils::HashString("MODIFIED_TIMESTAMP"); OrderByFieldType GetOrderByFieldTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RELEVANCE_HASH) { return OrderByFieldType::RELEVANCE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/OrderType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/OrderType.cpp index a0efe871355..2e6892dac76 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/OrderType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/OrderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OrderTypeMapper { - static const int ASCENDING_HASH = HashingUtils::HashString("ASCENDING"); - static const int DESCENDING_HASH = HashingUtils::HashString("DESCENDING"); + static constexpr uint32_t ASCENDING_HASH = ConstExprHashingUtils::HashString("ASCENDING"); + static constexpr uint32_t DESCENDING_HASH = ConstExprHashingUtils::HashString("DESCENDING"); OrderType GetOrderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASCENDING_HASH) { return OrderType::ASCENDING; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalRoleType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalRoleType.cpp index 21819cb5625..62665fbabf7 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalRoleType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalRoleType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace PrincipalRoleTypeMapper { - static const int VIEWER_HASH = HashingUtils::HashString("VIEWER"); - static const int CONTRIBUTOR_HASH = HashingUtils::HashString("CONTRIBUTOR"); - static const int OWNER_HASH = HashingUtils::HashString("OWNER"); - static const int COOWNER_HASH = HashingUtils::HashString("COOWNER"); + static constexpr uint32_t VIEWER_HASH = ConstExprHashingUtils::HashString("VIEWER"); + static constexpr uint32_t CONTRIBUTOR_HASH = ConstExprHashingUtils::HashString("CONTRIBUTOR"); + static constexpr uint32_t OWNER_HASH = ConstExprHashingUtils::HashString("OWNER"); + static constexpr uint32_t COOWNER_HASH = ConstExprHashingUtils::HashString("COOWNER"); PrincipalRoleType GetPrincipalRoleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIEWER_HASH) { return PrincipalRoleType::VIEWER; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalType.cpp index 41473ad9e0c..97fd35333fa 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/PrincipalType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace PrincipalTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int INVITE_HASH = HashingUtils::HashString("INVITE"); - static const int ANONYMOUS_HASH = HashingUtils::HashString("ANONYMOUS"); - static const int ORGANIZATION_HASH = HashingUtils::HashString("ORGANIZATION"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t INVITE_HASH = ConstExprHashingUtils::HashString("INVITE"); + static constexpr uint32_t ANONYMOUS_HASH = ConstExprHashingUtils::HashString("ANONYMOUS"); + static constexpr uint32_t ORGANIZATION_HASH = ConstExprHashingUtils::HashString("ORGANIZATION"); PrincipalType GetPrincipalTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return PrincipalType::USER; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceCollectionType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceCollectionType.cpp index 78ae93a9bb8..db59722b995 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceCollectionType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceCollectionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ResourceCollectionTypeMapper { - static const int SHARED_WITH_ME_HASH = HashingUtils::HashString("SHARED_WITH_ME"); + static constexpr uint32_t SHARED_WITH_ME_HASH = ConstExprHashingUtils::HashString("SHARED_WITH_ME"); ResourceCollectionType GetResourceCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SHARED_WITH_ME_HASH) { return ResourceCollectionType::SHARED_WITH_ME; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceSortType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceSortType.cpp index 446e2cf962d..1c21a24cfc3 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceSortType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceSortType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceSortTypeMapper { - static const int DATE_HASH = HashingUtils::HashString("DATE"); - static const int NAME_HASH = HashingUtils::HashString("NAME"); + static constexpr uint32_t DATE_HASH = ConstExprHashingUtils::HashString("DATE"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); ResourceSortType GetResourceSortTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DATE_HASH) { return ResourceSortType::DATE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceStateType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceStateType.cpp index dfced759d6a..aac9e6e4bca 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceStateType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceStateType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResourceStateTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int RESTORING_HASH = HashingUtils::HashString("RESTORING"); - static const int RECYCLING_HASH = HashingUtils::HashString("RECYCLING"); - static const int RECYCLED_HASH = HashingUtils::HashString("RECYCLED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t RESTORING_HASH = ConstExprHashingUtils::HashString("RESTORING"); + static constexpr uint32_t RECYCLING_HASH = ConstExprHashingUtils::HashString("RECYCLING"); + static constexpr uint32_t RECYCLED_HASH = ConstExprHashingUtils::HashString("RECYCLED"); ResourceStateType GetResourceStateTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return ResourceStateType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceType.cpp index b9462360607..36e8fa88031 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int FOLDER_HASH = HashingUtils::HashString("FOLDER"); - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t FOLDER_HASH = ConstExprHashingUtils::HashString("FOLDER"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLDER_HASH) { return ResourceType::FOLDER; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ResponseItemType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ResponseItemType.cpp index 72e8bf1054a..f95d97cbe9c 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ResponseItemType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ResponseItemType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ResponseItemTypeMapper { - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int FOLDER_HASH = HashingUtils::HashString("FOLDER"); - static const int COMMENT_HASH = HashingUtils::HashString("COMMENT"); - static const int DOCUMENT_VERSION_HASH = HashingUtils::HashString("DOCUMENT_VERSION"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t FOLDER_HASH = ConstExprHashingUtils::HashString("FOLDER"); + static constexpr uint32_t COMMENT_HASH = ConstExprHashingUtils::HashString("COMMENT"); + static constexpr uint32_t DOCUMENT_VERSION_HASH = ConstExprHashingUtils::HashString("DOCUMENT_VERSION"); ResponseItemType GetResponseItemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DOCUMENT_HASH) { return ResponseItemType::DOCUMENT; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/RolePermissionType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/RolePermissionType.cpp index afb583c2b4d..fad54380ba8 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/RolePermissionType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/RolePermissionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace RolePermissionTypeMapper { - static const int DIRECT_HASH = HashingUtils::HashString("DIRECT"); - static const int INHERITED_HASH = HashingUtils::HashString("INHERITED"); + static constexpr uint32_t DIRECT_HASH = ConstExprHashingUtils::HashString("DIRECT"); + static constexpr uint32_t INHERITED_HASH = ConstExprHashingUtils::HashString("INHERITED"); RolePermissionType GetRolePermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECT_HASH) { return RolePermissionType::DIRECT; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/RoleType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/RoleType.cpp index 7b8a5f06997..12e00fdb903 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/RoleType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/RoleType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace RoleTypeMapper { - static const int VIEWER_HASH = HashingUtils::HashString("VIEWER"); - static const int CONTRIBUTOR_HASH = HashingUtils::HashString("CONTRIBUTOR"); - static const int OWNER_HASH = HashingUtils::HashString("OWNER"); - static const int COOWNER_HASH = HashingUtils::HashString("COOWNER"); + static constexpr uint32_t VIEWER_HASH = ConstExprHashingUtils::HashString("VIEWER"); + static constexpr uint32_t CONTRIBUTOR_HASH = ConstExprHashingUtils::HashString("CONTRIBUTOR"); + static constexpr uint32_t OWNER_HASH = ConstExprHashingUtils::HashString("OWNER"); + static constexpr uint32_t COOWNER_HASH = ConstExprHashingUtils::HashString("COOWNER"); RoleType GetRoleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VIEWER_HASH) { return RoleType::VIEWER; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/SearchCollectionType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/SearchCollectionType.cpp index 2a1b59e1eae..fc6de5b6292 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/SearchCollectionType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/SearchCollectionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SearchCollectionTypeMapper { - static const int OWNED_HASH = HashingUtils::HashString("OWNED"); - static const int SHARED_WITH_ME_HASH = HashingUtils::HashString("SHARED_WITH_ME"); + static constexpr uint32_t OWNED_HASH = ConstExprHashingUtils::HashString("OWNED"); + static constexpr uint32_t SHARED_WITH_ME_HASH = ConstExprHashingUtils::HashString("SHARED_WITH_ME"); SearchCollectionType GetSearchCollectionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OWNED_HASH) { return SearchCollectionType::OWNED; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/SearchQueryScopeType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/SearchQueryScopeType.cpp index f577792d703..fb8b10f4fcf 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/SearchQueryScopeType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/SearchQueryScopeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SearchQueryScopeTypeMapper { - static const int NAME_HASH = HashingUtils::HashString("NAME"); - static const int CONTENT_HASH = HashingUtils::HashString("CONTENT"); + static constexpr uint32_t NAME_HASH = ConstExprHashingUtils::HashString("NAME"); + static constexpr uint32_t CONTENT_HASH = ConstExprHashingUtils::HashString("CONTENT"); SearchQueryScopeType GetSearchQueryScopeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NAME_HASH) { return SearchQueryScopeType::NAME; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/SearchResourceType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/SearchResourceType.cpp index 48d6f226ff9..8f540f5f0f5 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/SearchResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/SearchResourceType.cpp @@ -20,15 +20,15 @@ namespace Aws namespace SearchResourceTypeMapper { - static const int FOLDER_HASH = HashingUtils::HashString("FOLDER"); - static const int DOCUMENT_HASH = HashingUtils::HashString("DOCUMENT"); - static const int COMMENT_HASH = HashingUtils::HashString("COMMENT"); - static const int DOCUMENT_VERSION_HASH = HashingUtils::HashString("DOCUMENT_VERSION"); + static constexpr uint32_t FOLDER_HASH = ConstExprHashingUtils::HashString("FOLDER"); + static constexpr uint32_t DOCUMENT_HASH = ConstExprHashingUtils::HashString("DOCUMENT"); + static constexpr uint32_t COMMENT_HASH = ConstExprHashingUtils::HashString("COMMENT"); + static constexpr uint32_t DOCUMENT_VERSION_HASH = ConstExprHashingUtils::HashString("DOCUMENT_VERSION"); SearchResourceType GetSearchResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLDER_HASH) { return SearchResourceType::FOLDER; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/ShareStatusType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/ShareStatusType.cpp index 530d4b912c1..665685b0b06 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/ShareStatusType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/ShareStatusType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ShareStatusTypeMapper { - static const int SUCCESS_HASH = HashingUtils::HashString("SUCCESS"); - static const int FAILURE_HASH = HashingUtils::HashString("FAILURE"); + static constexpr uint32_t SUCCESS_HASH = ConstExprHashingUtils::HashString("SUCCESS"); + static constexpr uint32_t FAILURE_HASH = ConstExprHashingUtils::HashString("FAILURE"); ShareStatusType GetShareStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SUCCESS_HASH) { return ShareStatusType::SUCCESS; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/SortOrder.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/SortOrder.cpp index 8f41a03dc18..2404a754fd4 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/SortOrder.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/SortOrder.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SortOrderMapper { - static const int ASC_HASH = HashingUtils::HashString("ASC"); - static const int DESC_HASH = HashingUtils::HashString("DESC"); + static constexpr uint32_t ASC_HASH = ConstExprHashingUtils::HashString("ASC"); + static constexpr uint32_t DESC_HASH = ConstExprHashingUtils::HashString("DESC"); SortOrder GetSortOrderForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ASC_HASH) { return SortOrder::ASC; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/StorageType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/StorageType.cpp index 59abf4fb1f8..6e25b411b46 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/StorageType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/StorageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StorageTypeMapper { - static const int UNLIMITED_HASH = HashingUtils::HashString("UNLIMITED"); - static const int QUOTA_HASH = HashingUtils::HashString("QUOTA"); + static constexpr uint32_t UNLIMITED_HASH = ConstExprHashingUtils::HashString("UNLIMITED"); + static constexpr uint32_t QUOTA_HASH = ConstExprHashingUtils::HashString("QUOTA"); StorageType GetStorageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UNLIMITED_HASH) { return StorageType::UNLIMITED; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionProtocolType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionProtocolType.cpp index 01eb5d5f30e..b72d265fd5a 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionProtocolType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionProtocolType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SubscriptionProtocolTypeMapper { - static const int HTTPS_HASH = HashingUtils::HashString("HTTPS"); - static const int SQS_HASH = HashingUtils::HashString("SQS"); + static constexpr uint32_t HTTPS_HASH = ConstExprHashingUtils::HashString("HTTPS"); + static constexpr uint32_t SQS_HASH = ConstExprHashingUtils::HashString("SQS"); SubscriptionProtocolType GetSubscriptionProtocolTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == HTTPS_HASH) { return SubscriptionProtocolType::HTTPS; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionType.cpp index 2b8304a7c48..30b1ee2a6b0 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/SubscriptionType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace SubscriptionTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); SubscriptionType GetSubscriptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return SubscriptionType::ALL; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/UserFilterType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/UserFilterType.cpp index 95f37593645..ca0c2a8c36b 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/UserFilterType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/UserFilterType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace UserFilterTypeMapper { - static const int ALL_HASH = HashingUtils::HashString("ALL"); - static const int ACTIVE_PENDING_HASH = HashingUtils::HashString("ACTIVE_PENDING"); + static constexpr uint32_t ALL_HASH = ConstExprHashingUtils::HashString("ALL"); + static constexpr uint32_t ACTIVE_PENDING_HASH = ConstExprHashingUtils::HashString("ACTIVE_PENDING"); UserFilterType GetUserFilterTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_HASH) { return UserFilterType::ALL; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/UserSortType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/UserSortType.cpp index 4704e7660ee..43c6e632fdd 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/UserSortType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/UserSortType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UserSortTypeMapper { - static const int USER_NAME_HASH = HashingUtils::HashString("USER_NAME"); - static const int FULL_NAME_HASH = HashingUtils::HashString("FULL_NAME"); - static const int STORAGE_LIMIT_HASH = HashingUtils::HashString("STORAGE_LIMIT"); - static const int USER_STATUS_HASH = HashingUtils::HashString("USER_STATUS"); - static const int STORAGE_USED_HASH = HashingUtils::HashString("STORAGE_USED"); + static constexpr uint32_t USER_NAME_HASH = ConstExprHashingUtils::HashString("USER_NAME"); + static constexpr uint32_t FULL_NAME_HASH = ConstExprHashingUtils::HashString("FULL_NAME"); + static constexpr uint32_t STORAGE_LIMIT_HASH = ConstExprHashingUtils::HashString("STORAGE_LIMIT"); + static constexpr uint32_t USER_STATUS_HASH = ConstExprHashingUtils::HashString("USER_STATUS"); + static constexpr uint32_t STORAGE_USED_HASH = ConstExprHashingUtils::HashString("STORAGE_USED"); UserSortType GetUserSortTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_NAME_HASH) { return UserSortType::USER_NAME; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/UserStatusType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/UserStatusType.cpp index 5845c6929f9..ffa99f6a480 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/UserStatusType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/UserStatusType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace UserStatusTypeMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); UserStatusType GetUserStatusTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return UserStatusType::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-workdocs/source/model/UserType.cpp b/generated/src/aws-cpp-sdk-workdocs/source/model/UserType.cpp index 6608b12c1e2..7364ce62c00 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/model/UserType.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/model/UserType.cpp @@ -20,16 +20,16 @@ namespace Aws namespace UserTypeMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int ADMIN_HASH = HashingUtils::HashString("ADMIN"); - static const int POWERUSER_HASH = HashingUtils::HashString("POWERUSER"); - static const int MINIMALUSER_HASH = HashingUtils::HashString("MINIMALUSER"); - static const int WORKSPACESUSER_HASH = HashingUtils::HashString("WORKSPACESUSER"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t ADMIN_HASH = ConstExprHashingUtils::HashString("ADMIN"); + static constexpr uint32_t POWERUSER_HASH = ConstExprHashingUtils::HashString("POWERUSER"); + static constexpr uint32_t MINIMALUSER_HASH = ConstExprHashingUtils::HashString("MINIMALUSER"); + static constexpr uint32_t WORKSPACESUSER_HASH = ConstExprHashingUtils::HashString("WORKSPACESUSER"); UserType GetUserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return UserType::USER; diff --git a/generated/src/aws-cpp-sdk-worklink/source/model/AuthorizationProviderType.cpp b/generated/src/aws-cpp-sdk-worklink/source/model/AuthorizationProviderType.cpp index 9c26e2a455c..2f5e957dc35 100644 --- a/generated/src/aws-cpp-sdk-worklink/source/model/AuthorizationProviderType.cpp +++ b/generated/src/aws-cpp-sdk-worklink/source/model/AuthorizationProviderType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace AuthorizationProviderTypeMapper { - static const int SAML_HASH = HashingUtils::HashString("SAML"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); AuthorizationProviderType GetAuthorizationProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_HASH) { return AuthorizationProviderType::SAML; diff --git a/generated/src/aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp b/generated/src/aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp index 7f571da624e..779eea73833 100644 --- a/generated/src/aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp +++ b/generated/src/aws-cpp-sdk-worklink/source/model/DeviceStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeviceStatusMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int SIGNED_OUT_HASH = HashingUtils::HashString("SIGNED_OUT"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t SIGNED_OUT_HASH = ConstExprHashingUtils::HashString("SIGNED_OUT"); DeviceStatus GetDeviceStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return DeviceStatus::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-worklink/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-worklink/source/model/DomainStatus.cpp index 8c40487bffa..f7f55551040 100644 --- a/generated/src/aws-cpp-sdk-worklink/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-worklink/source/model/DomainStatus.cpp @@ -20,19 +20,19 @@ namespace Aws namespace DomainStatusMapper { - static const int PENDING_VALIDATION_HASH = HashingUtils::HashString("PENDING_VALIDATION"); - static const int ASSOCIATING_HASH = HashingUtils::HashString("ASSOCIATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); - static const int DISASSOCIATING_HASH = HashingUtils::HashString("DISASSOCIATING"); - static const int DISASSOCIATED_HASH = HashingUtils::HashString("DISASSOCIATED"); - static const int FAILED_TO_ASSOCIATE_HASH = HashingUtils::HashString("FAILED_TO_ASSOCIATE"); - static const int FAILED_TO_DISASSOCIATE_HASH = HashingUtils::HashString("FAILED_TO_DISASSOCIATE"); + static constexpr uint32_t PENDING_VALIDATION_HASH = ConstExprHashingUtils::HashString("PENDING_VALIDATION"); + static constexpr uint32_t ASSOCIATING_HASH = ConstExprHashingUtils::HashString("ASSOCIATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t INACTIVE_HASH = ConstExprHashingUtils::HashString("INACTIVE"); + static constexpr uint32_t DISASSOCIATING_HASH = ConstExprHashingUtils::HashString("DISASSOCIATING"); + static constexpr uint32_t DISASSOCIATED_HASH = ConstExprHashingUtils::HashString("DISASSOCIATED"); + static constexpr uint32_t FAILED_TO_ASSOCIATE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_ASSOCIATE"); + static constexpr uint32_t FAILED_TO_DISASSOCIATE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_DISASSOCIATE"); DomainStatus GetDomainStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_VALIDATION_HASH) { return DomainStatus::PENDING_VALIDATION; diff --git a/generated/src/aws-cpp-sdk-worklink/source/model/FleetStatus.cpp b/generated/src/aws-cpp-sdk-worklink/source/model/FleetStatus.cpp index 6102f0c0690..6e2244401f4 100644 --- a/generated/src/aws-cpp-sdk-worklink/source/model/FleetStatus.cpp +++ b/generated/src/aws-cpp-sdk-worklink/source/model/FleetStatus.cpp @@ -20,17 +20,17 @@ namespace Aws namespace FleetStatusMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); - static const int FAILED_TO_CREATE_HASH = HashingUtils::HashString("FAILED_TO_CREATE"); - static const int FAILED_TO_DELETE_HASH = HashingUtils::HashString("FAILED_TO_DELETE"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); + static constexpr uint32_t FAILED_TO_CREATE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_CREATE"); + static constexpr uint32_t FAILED_TO_DELETE_HASH = ConstExprHashingUtils::HashString("FAILED_TO_DELETE"); FleetStatus GetFleetStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return FleetStatus::CREATING; diff --git a/generated/src/aws-cpp-sdk-worklink/source/model/IdentityProviderType.cpp b/generated/src/aws-cpp-sdk-worklink/source/model/IdentityProviderType.cpp index 5bc0745d569..45143b1c2ba 100644 --- a/generated/src/aws-cpp-sdk-worklink/source/model/IdentityProviderType.cpp +++ b/generated/src/aws-cpp-sdk-worklink/source/model/IdentityProviderType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace IdentityProviderTypeMapper { - static const int SAML_HASH = HashingUtils::HashString("SAML"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); IdentityProviderType GetIdentityProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_HASH) { return IdentityProviderType::SAML; diff --git a/generated/src/aws-cpp-sdk-workmail/source/WorkMailErrors.cpp b/generated/src/aws-cpp-sdk-workmail/source/WorkMailErrors.cpp index a37c11bc087..6fc73ffd063 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/WorkMailErrors.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/WorkMailErrors.cpp @@ -18,32 +18,32 @@ namespace WorkMail namespace WorkMailErrorMapper { -static const int ENTITY_STATE_HASH = HashingUtils::HashString("EntityStateException"); -static const int DIRECTORY_SERVICE_AUTHENTICATION_FAILED_HASH = HashingUtils::HashString("DirectoryServiceAuthenticationFailedException"); -static const int NAME_AVAILABILITY_HASH = HashingUtils::HashString("NameAvailabilityException"); -static const int ORGANIZATION_NOT_FOUND_HASH = HashingUtils::HashString("OrganizationNotFoundException"); -static const int DIRECTORY_UNAVAILABLE_HASH = HashingUtils::HashString("DirectoryUnavailableException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int MAIL_DOMAIN_NOT_FOUND_HASH = HashingUtils::HashString("MailDomainNotFoundException"); -static const int INVALID_CUSTOM_SES_CONFIGURATION_HASH = HashingUtils::HashString("InvalidCustomSesConfigurationException"); -static const int EMAIL_ADDRESS_IN_USE_HASH = HashingUtils::HashString("EmailAddressInUseException"); -static const int RESERVED_NAME_HASH = HashingUtils::HashString("ReservedNameException"); -static const int ORGANIZATION_STATE_HASH = HashingUtils::HashString("OrganizationStateException"); -static const int ENTITY_NOT_FOUND_HASH = HashingUtils::HashString("EntityNotFoundException"); -static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); -static const int INVALID_CONFIGURATION_HASH = HashingUtils::HashString("InvalidConfigurationException"); -static const int MAIL_DOMAIN_IN_USE_HASH = HashingUtils::HashString("MailDomainInUseException"); -static const int ENTITY_ALREADY_REGISTERED_HASH = HashingUtils::HashString("EntityAlreadyRegisteredException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperationException"); -static const int INVALID_PASSWORD_HASH = HashingUtils::HashString("InvalidPasswordException"); -static const int DIRECTORY_IN_USE_HASH = HashingUtils::HashString("DirectoryInUseException"); -static const int MAIL_DOMAIN_STATE_HASH = HashingUtils::HashString("MailDomainStateException"); +static constexpr uint32_t ENTITY_STATE_HASH = ConstExprHashingUtils::HashString("EntityStateException"); +static constexpr uint32_t DIRECTORY_SERVICE_AUTHENTICATION_FAILED_HASH = ConstExprHashingUtils::HashString("DirectoryServiceAuthenticationFailedException"); +static constexpr uint32_t NAME_AVAILABILITY_HASH = ConstExprHashingUtils::HashString("NameAvailabilityException"); +static constexpr uint32_t ORGANIZATION_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("OrganizationNotFoundException"); +static constexpr uint32_t DIRECTORY_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("DirectoryUnavailableException"); +static constexpr uint32_t LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("LimitExceededException"); +static constexpr uint32_t MAIL_DOMAIN_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("MailDomainNotFoundException"); +static constexpr uint32_t INVALID_CUSTOM_SES_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidCustomSesConfigurationException"); +static constexpr uint32_t EMAIL_ADDRESS_IN_USE_HASH = ConstExprHashingUtils::HashString("EmailAddressInUseException"); +static constexpr uint32_t RESERVED_NAME_HASH = ConstExprHashingUtils::HashString("ReservedNameException"); +static constexpr uint32_t ORGANIZATION_STATE_HASH = ConstExprHashingUtils::HashString("OrganizationStateException"); +static constexpr uint32_t ENTITY_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("EntityNotFoundException"); +static constexpr uint32_t INVALID_PARAMETER_HASH = ConstExprHashingUtils::HashString("InvalidParameterException"); +static constexpr uint32_t INVALID_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("InvalidConfigurationException"); +static constexpr uint32_t MAIL_DOMAIN_IN_USE_HASH = ConstExprHashingUtils::HashString("MailDomainInUseException"); +static constexpr uint32_t ENTITY_ALREADY_REGISTERED_HASH = ConstExprHashingUtils::HashString("EntityAlreadyRegisteredException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t UNSUPPORTED_OPERATION_HASH = ConstExprHashingUtils::HashString("UnsupportedOperationException"); +static constexpr uint32_t INVALID_PASSWORD_HASH = ConstExprHashingUtils::HashString("InvalidPasswordException"); +static constexpr uint32_t DIRECTORY_IN_USE_HASH = ConstExprHashingUtils::HashString("DirectoryInUseException"); +static constexpr uint32_t MAIL_DOMAIN_STATE_HASH = ConstExprHashingUtils::HashString("MailDomainStateException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == ENTITY_STATE_HASH) { diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/AccessControlRuleEffect.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/AccessControlRuleEffect.cpp index de8783dde83..0a49a72206c 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/AccessControlRuleEffect.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/AccessControlRuleEffect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessControlRuleEffectMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); AccessControlRuleEffect GetAccessControlRuleEffectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return AccessControlRuleEffect::ALLOW; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/AccessEffect.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/AccessEffect.cpp index 11bd1fe9651..d72108dfa4f 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/AccessEffect.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/AccessEffect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessEffectMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); AccessEffect GetAccessEffectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return AccessEffect::ALLOW; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/AvailabilityProviderType.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/AvailabilityProviderType.cpp index 97c3d76d01c..bb5ffa8c61b 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/AvailabilityProviderType.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/AvailabilityProviderType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AvailabilityProviderTypeMapper { - static const int EWS_HASH = HashingUtils::HashString("EWS"); - static const int LAMBDA_HASH = HashingUtils::HashString("LAMBDA"); + static constexpr uint32_t EWS_HASH = ConstExprHashingUtils::HashString("EWS"); + static constexpr uint32_t LAMBDA_HASH = ConstExprHashingUtils::HashString("LAMBDA"); AvailabilityProviderType GetAvailabilityProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EWS_HASH) { return AvailabilityProviderType::EWS; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/DnsRecordVerificationStatus.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/DnsRecordVerificationStatus.cpp index fd626334892..8fe9a209ae7 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/DnsRecordVerificationStatus.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/DnsRecordVerificationStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DnsRecordVerificationStatusMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int VERIFIED_HASH = HashingUtils::HashString("VERIFIED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t VERIFIED_HASH = ConstExprHashingUtils::HashString("VERIFIED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DnsRecordVerificationStatus GetDnsRecordVerificationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DnsRecordVerificationStatus::PENDING; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/EntityState.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/EntityState.cpp index dd0e6f58229..bff83eb7913 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/EntityState.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/EntityState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EntityStateMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t DELETED_HASH = ConstExprHashingUtils::HashString("DELETED"); EntityState GetEntityStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return EntityState::ENABLED; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/EntityType.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/EntityType.cpp index 1d95854c95d..2598716465b 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/EntityType.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/EntityType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace EntityTypeMapper { - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); EntityType GetEntityTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GROUP_HASH) { return EntityType::GROUP; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/FolderName.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/FolderName.cpp index f6da6d8b4f2..6b2b991cb28 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/FolderName.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/FolderName.cpp @@ -20,16 +20,16 @@ namespace Aws namespace FolderNameMapper { - static const int INBOX_HASH = HashingUtils::HashString("INBOX"); - static const int DELETED_ITEMS_HASH = HashingUtils::HashString("DELETED_ITEMS"); - static const int SENT_ITEMS_HASH = HashingUtils::HashString("SENT_ITEMS"); - static const int DRAFTS_HASH = HashingUtils::HashString("DRAFTS"); - static const int JUNK_EMAIL_HASH = HashingUtils::HashString("JUNK_EMAIL"); + static constexpr uint32_t INBOX_HASH = ConstExprHashingUtils::HashString("INBOX"); + static constexpr uint32_t DELETED_ITEMS_HASH = ConstExprHashingUtils::HashString("DELETED_ITEMS"); + static constexpr uint32_t SENT_ITEMS_HASH = ConstExprHashingUtils::HashString("SENT_ITEMS"); + static constexpr uint32_t DRAFTS_HASH = ConstExprHashingUtils::HashString("DRAFTS"); + static constexpr uint32_t JUNK_EMAIL_HASH = ConstExprHashingUtils::HashString("JUNK_EMAIL"); FolderName GetFolderNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INBOX_HASH) { return FolderName::INBOX; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/ImpersonationRoleType.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/ImpersonationRoleType.cpp index 9df9f390f89..1fb12d40352 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/ImpersonationRoleType.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/ImpersonationRoleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImpersonationRoleTypeMapper { - static const int FULL_ACCESS_HASH = HashingUtils::HashString("FULL_ACCESS"); - static const int READ_ONLY_HASH = HashingUtils::HashString("READ_ONLY"); + static constexpr uint32_t FULL_ACCESS_HASH = ConstExprHashingUtils::HashString("FULL_ACCESS"); + static constexpr uint32_t READ_ONLY_HASH = ConstExprHashingUtils::HashString("READ_ONLY"); ImpersonationRoleType GetImpersonationRoleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_ACCESS_HASH) { return ImpersonationRoleType::FULL_ACCESS; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/MailboxExportJobState.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/MailboxExportJobState.cpp index 302008944de..14edc2083b6 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/MailboxExportJobState.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/MailboxExportJobState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace MailboxExportJobStateMapper { - static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + static constexpr uint32_t RUNNING_HASH = ConstExprHashingUtils::HashString("RUNNING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); + static constexpr uint32_t CANCELLED_HASH = ConstExprHashingUtils::HashString("CANCELLED"); MailboxExportJobState GetMailboxExportJobStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RUNNING_HASH) { return MailboxExportJobState::RUNNING; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/MemberType.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/MemberType.cpp index 3cfb0966633..87ff5be41f3 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/MemberType.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/MemberType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MemberTypeMapper { - static const int GROUP_HASH = HashingUtils::HashString("GROUP"); - static const int USER_HASH = HashingUtils::HashString("USER"); + static constexpr uint32_t GROUP_HASH = ConstExprHashingUtils::HashString("GROUP"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); MemberType GetMemberTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == GROUP_HASH) { return MemberType::GROUP; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/MobileDeviceAccessRuleEffect.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/MobileDeviceAccessRuleEffect.cpp index a55667a7de2..a0bf04cd09d 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/MobileDeviceAccessRuleEffect.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/MobileDeviceAccessRuleEffect.cpp @@ -20,13 +20,13 @@ namespace Aws namespace MobileDeviceAccessRuleEffectMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); MobileDeviceAccessRuleEffect GetMobileDeviceAccessRuleEffectForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return MobileDeviceAccessRuleEffect::ALLOW; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/PermissionType.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/PermissionType.cpp index 46b4bf0e6c5..5a662b29d99 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/PermissionType.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/PermissionType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PermissionTypeMapper { - static const int FULL_ACCESS_HASH = HashingUtils::HashString("FULL_ACCESS"); - static const int SEND_AS_HASH = HashingUtils::HashString("SEND_AS"); - static const int SEND_ON_BEHALF_HASH = HashingUtils::HashString("SEND_ON_BEHALF"); + static constexpr uint32_t FULL_ACCESS_HASH = ConstExprHashingUtils::HashString("FULL_ACCESS"); + static constexpr uint32_t SEND_AS_HASH = ConstExprHashingUtils::HashString("SEND_AS"); + static constexpr uint32_t SEND_ON_BEHALF_HASH = ConstExprHashingUtils::HashString("SEND_ON_BEHALF"); PermissionType GetPermissionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FULL_ACCESS_HASH) { return PermissionType::FULL_ACCESS; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/ResourceType.cpp index 72c9812afd1..523e24ff245 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/ResourceType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ResourceTypeMapper { - static const int ROOM_HASH = HashingUtils::HashString("ROOM"); - static const int EQUIPMENT_HASH = HashingUtils::HashString("EQUIPMENT"); + static constexpr uint32_t ROOM_HASH = ConstExprHashingUtils::HashString("ROOM"); + static constexpr uint32_t EQUIPMENT_HASH = ConstExprHashingUtils::HashString("EQUIPMENT"); ResourceType GetResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROOM_HASH) { return ResourceType::ROOM; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/RetentionAction.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/RetentionAction.cpp index 6dfd3824672..54e48c445c0 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/RetentionAction.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/RetentionAction.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RetentionActionMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int DELETE__HASH = HashingUtils::HashString("DELETE"); - static const int PERMANENTLY_DELETE_HASH = HashingUtils::HashString("PERMANENTLY_DELETE"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t DELETE__HASH = ConstExprHashingUtils::HashString("DELETE"); + static constexpr uint32_t PERMANENTLY_DELETE_HASH = ConstExprHashingUtils::HashString("PERMANENTLY_DELETE"); RetentionAction GetRetentionActionForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return RetentionAction::NONE; diff --git a/generated/src/aws-cpp-sdk-workmail/source/model/UserRole.cpp b/generated/src/aws-cpp-sdk-workmail/source/model/UserRole.cpp index c1ceab8008b..b762d799b74 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/model/UserRole.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/model/UserRole.cpp @@ -20,15 +20,15 @@ namespace Aws namespace UserRoleMapper { - static const int USER_HASH = HashingUtils::HashString("USER"); - static const int RESOURCE_HASH = HashingUtils::HashString("RESOURCE"); - static const int SYSTEM_USER_HASH = HashingUtils::HashString("SYSTEM_USER"); - static const int REMOTE_USER_HASH = HashingUtils::HashString("REMOTE_USER"); + static constexpr uint32_t USER_HASH = ConstExprHashingUtils::HashString("USER"); + static constexpr uint32_t RESOURCE_HASH = ConstExprHashingUtils::HashString("RESOURCE"); + static constexpr uint32_t SYSTEM_USER_HASH = ConstExprHashingUtils::HashString("SYSTEM_USER"); + static constexpr uint32_t REMOTE_USER_HASH = ConstExprHashingUtils::HashString("REMOTE_USER"); UserRole GetUserRoleForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == USER_HASH) { return UserRole::USER; diff --git a/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowErrors.cpp b/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowErrors.cpp index ec724e3568b..a0ef6934328 100644 --- a/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowErrors.cpp +++ b/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowErrors.cpp @@ -18,14 +18,14 @@ namespace WorkMailMessageFlow namespace WorkMailMessageFlowErrorMapper { -static const int MESSAGE_FROZEN_HASH = HashingUtils::HashString("MessageFrozen"); -static const int MESSAGE_REJECTED_HASH = HashingUtils::HashString("MessageRejected"); -static const int INVALID_CONTENT_LOCATION_HASH = HashingUtils::HashString("InvalidContentLocation"); +static constexpr uint32_t MESSAGE_FROZEN_HASH = ConstExprHashingUtils::HashString("MessageFrozen"); +static constexpr uint32_t MESSAGE_REJECTED_HASH = ConstExprHashingUtils::HashString("MessageRejected"); +static constexpr uint32_t INVALID_CONTENT_LOCATION_HASH = ConstExprHashingUtils::HashString("InvalidContentLocation"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == MESSAGE_FROZEN_HASH) { diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebErrors.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebErrors.cpp index 4195cf696be..6664ce0415f 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebErrors.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebErrors.cpp @@ -68,15 +68,15 @@ template<> AWS_WORKSPACESWEB_API TooManyTagsException WorkSpacesWebError::GetMod namespace WorkSpacesWebErrorMapper { -static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); -static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); -static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t CONFLICT_HASH = ConstExprHashingUtils::HashString("ConflictException"); +static constexpr uint32_t SERVICE_QUOTA_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ServiceQuotaExceededException"); +static constexpr uint32_t INTERNAL_SERVER_HASH = ConstExprHashingUtils::HashString("InternalServerException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == CONFLICT_HASH) { diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/AuthenticationType.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/AuthenticationType.cpp index bbfa0c296c3..f5d278a312a 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/AuthenticationType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/AuthenticationType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AuthenticationTypeMapper { - static const int Standard_HASH = HashingUtils::HashString("Standard"); - static const int IAM_Identity_Center_HASH = HashingUtils::HashString("IAM_Identity_Center"); + static constexpr uint32_t Standard_HASH = ConstExprHashingUtils::HashString("Standard"); + static constexpr uint32_t IAM_Identity_Center_HASH = ConstExprHashingUtils::HashString("IAM_Identity_Center"); AuthenticationType GetAuthenticationTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Standard_HASH) { return AuthenticationType::Standard; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/BrowserType.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/BrowserType.cpp index 40237bb5abd..4917f016764 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/BrowserType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/BrowserType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BrowserTypeMapper { - static const int Chrome_HASH = HashingUtils::HashString("Chrome"); + static constexpr uint32_t Chrome_HASH = ConstExprHashingUtils::HashString("Chrome"); BrowserType GetBrowserTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Chrome_HASH) { return BrowserType::Chrome; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/EnabledType.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/EnabledType.cpp index 52d3cc38b98..b7be4b5dece 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/EnabledType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/EnabledType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EnabledTypeMapper { - static const int Disabled_HASH = HashingUtils::HashString("Disabled"); - static const int Enabled_HASH = HashingUtils::HashString("Enabled"); + static constexpr uint32_t Disabled_HASH = ConstExprHashingUtils::HashString("Disabled"); + static constexpr uint32_t Enabled_HASH = ConstExprHashingUtils::HashString("Enabled"); EnabledType GetEnabledTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Disabled_HASH) { return EnabledType::Disabled; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/IdentityProviderType.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/IdentityProviderType.cpp index cf638bcbc2e..d5b7bf20d72 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/IdentityProviderType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/IdentityProviderType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace IdentityProviderTypeMapper { - static const int SAML_HASH = HashingUtils::HashString("SAML"); - static const int Facebook_HASH = HashingUtils::HashString("Facebook"); - static const int Google_HASH = HashingUtils::HashString("Google"); - static const int LoginWithAmazon_HASH = HashingUtils::HashString("LoginWithAmazon"); - static const int SignInWithApple_HASH = HashingUtils::HashString("SignInWithApple"); - static const int OIDC_HASH = HashingUtils::HashString("OIDC"); + static constexpr uint32_t SAML_HASH = ConstExprHashingUtils::HashString("SAML"); + static constexpr uint32_t Facebook_HASH = ConstExprHashingUtils::HashString("Facebook"); + static constexpr uint32_t Google_HASH = ConstExprHashingUtils::HashString("Google"); + static constexpr uint32_t LoginWithAmazon_HASH = ConstExprHashingUtils::HashString("LoginWithAmazon"); + static constexpr uint32_t SignInWithApple_HASH = ConstExprHashingUtils::HashString("SignInWithApple"); + static constexpr uint32_t OIDC_HASH = ConstExprHashingUtils::HashString("OIDC"); IdentityProviderType GetIdentityProviderTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_HASH) { return IdentityProviderType::SAML; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalStatus.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalStatus.cpp index f215a8caeae..d512631ac29 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalStatus.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/PortalStatus.cpp @@ -20,14 +20,14 @@ namespace Aws namespace PortalStatusMapper { - static const int Incomplete_HASH = HashingUtils::HashString("Incomplete"); - static const int Pending_HASH = HashingUtils::HashString("Pending"); - static const int Active_HASH = HashingUtils::HashString("Active"); + static constexpr uint32_t Incomplete_HASH = ConstExprHashingUtils::HashString("Incomplete"); + static constexpr uint32_t Pending_HASH = ConstExprHashingUtils::HashString("Pending"); + static constexpr uint32_t Active_HASH = ConstExprHashingUtils::HashString("Active"); PortalStatus GetPortalStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Incomplete_HASH) { return PortalStatus::Incomplete; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/RendererType.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/RendererType.cpp index 64c0322d6f9..a5abd95d444 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/RendererType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/RendererType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace RendererTypeMapper { - static const int AppStream_HASH = HashingUtils::HashString("AppStream"); + static constexpr uint32_t AppStream_HASH = ConstExprHashingUtils::HashString("AppStream"); RendererType GetRendererTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AppStream_HASH) { return RendererType::AppStream; diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ValidationExceptionReason.cpp index d7850f5866a..4846ec608b1 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/model/ValidationExceptionReason.cpp @@ -20,15 +20,15 @@ namespace Aws namespace ValidationExceptionReasonMapper { - static const int unknownOperation_HASH = HashingUtils::HashString("unknownOperation"); - static const int cannotParse_HASH = HashingUtils::HashString("cannotParse"); - static const int fieldValidationFailed_HASH = HashingUtils::HashString("fieldValidationFailed"); - static const int other_HASH = HashingUtils::HashString("other"); + static constexpr uint32_t unknownOperation_HASH = ConstExprHashingUtils::HashString("unknownOperation"); + static constexpr uint32_t cannotParse_HASH = ConstExprHashingUtils::HashString("cannotParse"); + static constexpr uint32_t fieldValidationFailed_HASH = ConstExprHashingUtils::HashString("fieldValidationFailed"); + static constexpr uint32_t other_HASH = ConstExprHashingUtils::HashString("other"); ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == unknownOperation_HASH) { return ValidationExceptionReason::unknownOperation; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesErrors.cpp b/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesErrors.cpp index cdfd1eff2fd..0e7ab52950e 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesErrors.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesErrors.cpp @@ -47,28 +47,28 @@ template<> AWS_WORKSPACES_API ResourceUnavailableException WorkSpacesError::GetM namespace WorkSpacesErrorMapper { -static const int COMPUTE_NOT_COMPATIBLE_HASH = HashingUtils::HashString("ComputeNotCompatibleException"); -static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); -static const int OPERATION_NOT_SUPPORTED_HASH = HashingUtils::HashString("OperationNotSupportedException"); -static const int UNSUPPORTED_WORKSPACE_CONFIGURATION_HASH = HashingUtils::HashString("UnsupportedWorkspaceConfigurationException"); -static const int OPERATION_IN_PROGRESS_HASH = HashingUtils::HashString("OperationInProgressException"); -static const int INVALID_RESOURCE_STATE_HASH = HashingUtils::HashString("InvalidResourceStateException"); -static const int OPERATING_SYSTEM_NOT_COMPATIBLE_HASH = HashingUtils::HashString("OperatingSystemNotCompatibleException"); -static const int RESOURCE_CREATION_FAILED_HASH = HashingUtils::HashString("ResourceCreationFailedException"); -static const int INVALID_PARAMETER_VALUES_HASH = HashingUtils::HashString("InvalidParameterValuesException"); -static const int UNSUPPORTED_NETWORK_CONFIGURATION_HASH = HashingUtils::HashString("UnsupportedNetworkConfigurationException"); -static const int INCOMPATIBLE_APPLICATIONS_HASH = HashingUtils::HashString("IncompatibleApplicationsException"); -static const int APPLICATION_NOT_SUPPORTED_HASH = HashingUtils::HashString("ApplicationNotSupportedException"); -static const int RESOURCE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ResourceLimitExceededException"); -static const int WORKSPACES_DEFAULT_ROLE_NOT_FOUND_HASH = HashingUtils::HashString("WorkspacesDefaultRoleNotFoundException"); -static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); -static const int RESOURCE_UNAVAILABLE_HASH = HashingUtils::HashString("ResourceUnavailableException"); -static const int RESOURCE_ASSOCIATED_HASH = HashingUtils::HashString("ResourceAssociatedException"); +static constexpr uint32_t COMPUTE_NOT_COMPATIBLE_HASH = ConstExprHashingUtils::HashString("ComputeNotCompatibleException"); +static constexpr uint32_t RESOURCE_ALREADY_EXISTS_HASH = ConstExprHashingUtils::HashString("ResourceAlreadyExistsException"); +static constexpr uint32_t OPERATION_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("OperationNotSupportedException"); +static constexpr uint32_t UNSUPPORTED_WORKSPACE_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("UnsupportedWorkspaceConfigurationException"); +static constexpr uint32_t OPERATION_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("OperationInProgressException"); +static constexpr uint32_t INVALID_RESOURCE_STATE_HASH = ConstExprHashingUtils::HashString("InvalidResourceStateException"); +static constexpr uint32_t OPERATING_SYSTEM_NOT_COMPATIBLE_HASH = ConstExprHashingUtils::HashString("OperatingSystemNotCompatibleException"); +static constexpr uint32_t RESOURCE_CREATION_FAILED_HASH = ConstExprHashingUtils::HashString("ResourceCreationFailedException"); +static constexpr uint32_t INVALID_PARAMETER_VALUES_HASH = ConstExprHashingUtils::HashString("InvalidParameterValuesException"); +static constexpr uint32_t UNSUPPORTED_NETWORK_CONFIGURATION_HASH = ConstExprHashingUtils::HashString("UnsupportedNetworkConfigurationException"); +static constexpr uint32_t INCOMPATIBLE_APPLICATIONS_HASH = ConstExprHashingUtils::HashString("IncompatibleApplicationsException"); +static constexpr uint32_t APPLICATION_NOT_SUPPORTED_HASH = ConstExprHashingUtils::HashString("ApplicationNotSupportedException"); +static constexpr uint32_t RESOURCE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("ResourceLimitExceededException"); +static constexpr uint32_t WORKSPACES_DEFAULT_ROLE_NOT_FOUND_HASH = ConstExprHashingUtils::HashString("WorkspacesDefaultRoleNotFoundException"); +static constexpr uint32_t RESOURCE_IN_USE_HASH = ConstExprHashingUtils::HashString("ResourceInUseException"); +static constexpr uint32_t RESOURCE_UNAVAILABLE_HASH = ConstExprHashingUtils::HashString("ResourceUnavailableException"); +static constexpr uint32_t RESOURCE_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("ResourceAssociatedException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == COMPUTE_NOT_COMPATIBLE_HASH) { diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/AccessPropertyValue.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/AccessPropertyValue.cpp index b371a6ee503..4c4485e9c30 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/AccessPropertyValue.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/AccessPropertyValue.cpp @@ -20,13 +20,13 @@ namespace Aws namespace AccessPropertyValueMapper { - static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); - static const int DENY_HASH = HashingUtils::HashString("DENY"); + static constexpr uint32_t ALLOW_HASH = ConstExprHashingUtils::HashString("ALLOW"); + static constexpr uint32_t DENY_HASH = ConstExprHashingUtils::HashString("DENY"); AccessPropertyValue GetAccessPropertyValueForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALLOW_HASH) { return AccessPropertyValue::ALLOW; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/Application.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/Application.cpp index 0d8c2f96189..e8fa4f867b0 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/Application.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/Application.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ApplicationMapper { - static const int Microsoft_Office_2016_HASH = HashingUtils::HashString("Microsoft_Office_2016"); - static const int Microsoft_Office_2019_HASH = HashingUtils::HashString("Microsoft_Office_2019"); + static constexpr uint32_t Microsoft_Office_2016_HASH = ConstExprHashingUtils::HashString("Microsoft_Office_2016"); + static constexpr uint32_t Microsoft_Office_2019_HASH = ConstExprHashingUtils::HashString("Microsoft_Office_2019"); Application GetApplicationForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Microsoft_Office_2016_HASH) { return Application::Microsoft_Office_2016; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ApplicationAssociatedResourceType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ApplicationAssociatedResourceType.cpp index 50ab86ad820..3f18d12c2ab 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ApplicationAssociatedResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ApplicationAssociatedResourceType.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ApplicationAssociatedResourceTypeMapper { - static const int WORKSPACE_HASH = HashingUtils::HashString("WORKSPACE"); - static const int BUNDLE_HASH = HashingUtils::HashString("BUNDLE"); - static const int IMAGE_HASH = HashingUtils::HashString("IMAGE"); + static constexpr uint32_t WORKSPACE_HASH = ConstExprHashingUtils::HashString("WORKSPACE"); + static constexpr uint32_t BUNDLE_HASH = ConstExprHashingUtils::HashString("BUNDLE"); + static constexpr uint32_t IMAGE_HASH = ConstExprHashingUtils::HashString("IMAGE"); ApplicationAssociatedResourceType GetApplicationAssociatedResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WORKSPACE_HASH) { return ApplicationAssociatedResourceType::WORKSPACE; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationErrorCode.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationErrorCode.cpp index a948f594314..fe9cec24602 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationErrorCode.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssociationErrorCodeMapper { - static const int ValidationError_InsufficientDiskSpace_HASH = HashingUtils::HashString("ValidationError.InsufficientDiskSpace"); - static const int ValidationError_InsufficientMemory_HASH = HashingUtils::HashString("ValidationError.InsufficientMemory"); - static const int ValidationError_UnsupportedOperatingSystem_HASH = HashingUtils::HashString("ValidationError.UnsupportedOperatingSystem"); - static const int DeploymentError_InternalServerError_HASH = HashingUtils::HashString("DeploymentError.InternalServerError"); - static const int DeploymentError_WorkspaceUnreachable_HASH = HashingUtils::HashString("DeploymentError.WorkspaceUnreachable"); + static constexpr uint32_t ValidationError_InsufficientDiskSpace_HASH = ConstExprHashingUtils::HashString("ValidationError.InsufficientDiskSpace"); + static constexpr uint32_t ValidationError_InsufficientMemory_HASH = ConstExprHashingUtils::HashString("ValidationError.InsufficientMemory"); + static constexpr uint32_t ValidationError_UnsupportedOperatingSystem_HASH = ConstExprHashingUtils::HashString("ValidationError.UnsupportedOperatingSystem"); + static constexpr uint32_t DeploymentError_InternalServerError_HASH = ConstExprHashingUtils::HashString("DeploymentError.InternalServerError"); + static constexpr uint32_t DeploymentError_WorkspaceUnreachable_HASH = ConstExprHashingUtils::HashString("DeploymentError.WorkspaceUnreachable"); AssociationErrorCode GetAssociationErrorCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ValidationError_InsufficientDiskSpace_HASH) { return AssociationErrorCode::ValidationError_InsufficientDiskSpace; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationState.cpp index fa9d1b16713..5c580a0ad54 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationState.cpp @@ -20,20 +20,20 @@ namespace Aws namespace AssociationStateMapper { - static const int PENDING_INSTALL_HASH = HashingUtils::HashString("PENDING_INSTALL"); - static const int PENDING_INSTALL_DEPLOYMENT_HASH = HashingUtils::HashString("PENDING_INSTALL_DEPLOYMENT"); - static const int PENDING_UNINSTALL_HASH = HashingUtils::HashString("PENDING_UNINSTALL"); - static const int PENDING_UNINSTALL_DEPLOYMENT_HASH = HashingUtils::HashString("PENDING_UNINSTALL_DEPLOYMENT"); - static const int INSTALLING_HASH = HashingUtils::HashString("INSTALLING"); - static const int UNINSTALLING_HASH = HashingUtils::HashString("UNINSTALLING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int REMOVED_HASH = HashingUtils::HashString("REMOVED"); + static constexpr uint32_t PENDING_INSTALL_HASH = ConstExprHashingUtils::HashString("PENDING_INSTALL"); + static constexpr uint32_t PENDING_INSTALL_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("PENDING_INSTALL_DEPLOYMENT"); + static constexpr uint32_t PENDING_UNINSTALL_HASH = ConstExprHashingUtils::HashString("PENDING_UNINSTALL"); + static constexpr uint32_t PENDING_UNINSTALL_DEPLOYMENT_HASH = ConstExprHashingUtils::HashString("PENDING_UNINSTALL_DEPLOYMENT"); + static constexpr uint32_t INSTALLING_HASH = ConstExprHashingUtils::HashString("INSTALLING"); + static constexpr uint32_t UNINSTALLING_HASH = ConstExprHashingUtils::HashString("UNINSTALLING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t REMOVED_HASH = ConstExprHashingUtils::HashString("REMOVED"); AssociationState GetAssociationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_INSTALL_HASH) { return AssociationState::PENDING_INSTALL; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationStatus.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationStatus.cpp index 993237e8bf6..a77da161f67 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationStatus.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/AssociationStatus.cpp @@ -20,16 +20,16 @@ namespace Aws namespace AssociationStatusMapper { - static const int NOT_ASSOCIATED_HASH = HashingUtils::HashString("NOT_ASSOCIATED"); - static const int ASSOCIATED_WITH_OWNER_ACCOUNT_HASH = HashingUtils::HashString("ASSOCIATED_WITH_OWNER_ACCOUNT"); - static const int ASSOCIATED_WITH_SHARED_ACCOUNT_HASH = HashingUtils::HashString("ASSOCIATED_WITH_SHARED_ACCOUNT"); - static const int PENDING_ASSOCIATION_HASH = HashingUtils::HashString("PENDING_ASSOCIATION"); - static const int PENDING_DISASSOCIATION_HASH = HashingUtils::HashString("PENDING_DISASSOCIATION"); + static constexpr uint32_t NOT_ASSOCIATED_HASH = ConstExprHashingUtils::HashString("NOT_ASSOCIATED"); + static constexpr uint32_t ASSOCIATED_WITH_OWNER_ACCOUNT_HASH = ConstExprHashingUtils::HashString("ASSOCIATED_WITH_OWNER_ACCOUNT"); + static constexpr uint32_t ASSOCIATED_WITH_SHARED_ACCOUNT_HASH = ConstExprHashingUtils::HashString("ASSOCIATED_WITH_SHARED_ACCOUNT"); + static constexpr uint32_t PENDING_ASSOCIATION_HASH = ConstExprHashingUtils::HashString("PENDING_ASSOCIATION"); + static constexpr uint32_t PENDING_DISASSOCIATION_HASH = ConstExprHashingUtils::HashString("PENDING_DISASSOCIATION"); AssociationStatus GetAssociationStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NOT_ASSOCIATED_HASH) { return AssociationStatus::NOT_ASSOCIATED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/BundleAssociatedResourceType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/BundleAssociatedResourceType.cpp index 0b7f5c4601a..af955929a31 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/BundleAssociatedResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/BundleAssociatedResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace BundleAssociatedResourceTypeMapper { - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); BundleAssociatedResourceType GetBundleAssociatedResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLICATION_HASH) { return BundleAssociatedResourceType::APPLICATION; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/BundleType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/BundleType.cpp index 24ab2f65d7f..ae96eb4eea9 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/BundleType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/BundleType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace BundleTypeMapper { - static const int REGULAR_HASH = HashingUtils::HashString("REGULAR"); - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); + static constexpr uint32_t REGULAR_HASH = ConstExprHashingUtils::HashString("REGULAR"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); BundleType GetBundleTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGULAR_HASH) { return BundleType::REGULAR; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/CertificateBasedAuthStatusEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/CertificateBasedAuthStatusEnum.cpp index 95d9060fa36..d02a0b43682 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/CertificateBasedAuthStatusEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/CertificateBasedAuthStatusEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace CertificateBasedAuthStatusEnumMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); CertificateBasedAuthStatusEnum GetCertificateBasedAuthStatusEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return CertificateBasedAuthStatusEnum::DISABLED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ClientDeviceType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ClientDeviceType.cpp index 66930664f7e..877052e62dc 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ClientDeviceType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ClientDeviceType.cpp @@ -20,17 +20,17 @@ namespace Aws namespace ClientDeviceTypeMapper { - static const int DeviceTypeWindows_HASH = HashingUtils::HashString("DeviceTypeWindows"); - static const int DeviceTypeOsx_HASH = HashingUtils::HashString("DeviceTypeOsx"); - static const int DeviceTypeAndroid_HASH = HashingUtils::HashString("DeviceTypeAndroid"); - static const int DeviceTypeIos_HASH = HashingUtils::HashString("DeviceTypeIos"); - static const int DeviceTypeLinux_HASH = HashingUtils::HashString("DeviceTypeLinux"); - static const int DeviceTypeWeb_HASH = HashingUtils::HashString("DeviceTypeWeb"); + static constexpr uint32_t DeviceTypeWindows_HASH = ConstExprHashingUtils::HashString("DeviceTypeWindows"); + static constexpr uint32_t DeviceTypeOsx_HASH = ConstExprHashingUtils::HashString("DeviceTypeOsx"); + static constexpr uint32_t DeviceTypeAndroid_HASH = ConstExprHashingUtils::HashString("DeviceTypeAndroid"); + static constexpr uint32_t DeviceTypeIos_HASH = ConstExprHashingUtils::HashString("DeviceTypeIos"); + static constexpr uint32_t DeviceTypeLinux_HASH = ConstExprHashingUtils::HashString("DeviceTypeLinux"); + static constexpr uint32_t DeviceTypeWeb_HASH = ConstExprHashingUtils::HashString("DeviceTypeWeb"); ClientDeviceType GetClientDeviceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DeviceTypeWindows_HASH) { return ClientDeviceType::DeviceTypeWindows; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/Compute.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/Compute.cpp index 137bf4684b2..486150393cb 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/Compute.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/Compute.cpp @@ -20,20 +20,20 @@ namespace Aws namespace ComputeMapper { - static const int VALUE_HASH = HashingUtils::HashString("VALUE"); - static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); - static const int PERFORMANCE_HASH = HashingUtils::HashString("PERFORMANCE"); - static const int POWER_HASH = HashingUtils::HashString("POWER"); - static const int GRAPHICS_HASH = HashingUtils::HashString("GRAPHICS"); - static const int POWERPRO_HASH = HashingUtils::HashString("POWERPRO"); - static const int GRAPHICSPRO_HASH = HashingUtils::HashString("GRAPHICSPRO"); - static const int GRAPHICS_G4DN_HASH = HashingUtils::HashString("GRAPHICS_G4DN"); - static const int GRAPHICSPRO_G4DN_HASH = HashingUtils::HashString("GRAPHICSPRO_G4DN"); + static constexpr uint32_t VALUE_HASH = ConstExprHashingUtils::HashString("VALUE"); + static constexpr uint32_t STANDARD_HASH = ConstExprHashingUtils::HashString("STANDARD"); + static constexpr uint32_t PERFORMANCE_HASH = ConstExprHashingUtils::HashString("PERFORMANCE"); + static constexpr uint32_t POWER_HASH = ConstExprHashingUtils::HashString("POWER"); + static constexpr uint32_t GRAPHICS_HASH = ConstExprHashingUtils::HashString("GRAPHICS"); + static constexpr uint32_t POWERPRO_HASH = ConstExprHashingUtils::HashString("POWERPRO"); + static constexpr uint32_t GRAPHICSPRO_HASH = ConstExprHashingUtils::HashString("GRAPHICSPRO"); + static constexpr uint32_t GRAPHICS_G4DN_HASH = ConstExprHashingUtils::HashString("GRAPHICS_G4DN"); + static constexpr uint32_t GRAPHICSPRO_G4DN_HASH = ConstExprHashingUtils::HashString("GRAPHICSPRO_G4DN"); Compute GetComputeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == VALUE_HASH) { return Compute::VALUE; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionAliasState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionAliasState.cpp index 643b1e36936..16df84ce452 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionAliasState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionAliasState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionAliasStateMapper { - static const int CREATING_HASH = HashingUtils::HashString("CREATING"); - static const int CREATED_HASH = HashingUtils::HashString("CREATED"); - static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static constexpr uint32_t CREATING_HASH = ConstExprHashingUtils::HashString("CREATING"); + static constexpr uint32_t CREATED_HASH = ConstExprHashingUtils::HashString("CREATED"); + static constexpr uint32_t DELETING_HASH = ConstExprHashingUtils::HashString("DELETING"); ConnectionAliasState GetConnectionAliasStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ConnectionAliasState::CREATING; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionState.cpp index 900ab2dc984..807015c1044 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ConnectionState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ConnectionStateMapper { - static const int CONNECTED_HASH = HashingUtils::HashString("CONNECTED"); - static const int DISCONNECTED_HASH = HashingUtils::HashString("DISCONNECTED"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t CONNECTED_HASH = ConstExprHashingUtils::HashString("CONNECTED"); + static constexpr uint32_t DISCONNECTED_HASH = ConstExprHashingUtils::HashString("DISCONNECTED"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); ConnectionState GetConnectionStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CONNECTED_HASH) { return ConnectionState::CONNECTED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancyModificationStateEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancyModificationStateEnum.cpp index 7ff19b995bc..e97407e70a7 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancyModificationStateEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancyModificationStateEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace DedicatedTenancyModificationStateEnumMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t COMPLETED_HASH = ConstExprHashingUtils::HashString("COMPLETED"); + static constexpr uint32_t FAILED_HASH = ConstExprHashingUtils::HashString("FAILED"); DedicatedTenancyModificationStateEnum GetDedicatedTenancyModificationStateEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return DedicatedTenancyModificationStateEnum::PENDING; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportEnum.cpp index d268b74a4c9..c2037e35949 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportEnum.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DedicatedTenancySupportEnumMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); DedicatedTenancySupportEnum GetDedicatedTenancySupportEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DedicatedTenancySupportEnum::ENABLED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportResultEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportResultEnum.cpp index 3a63e9a12e0..dda75b77609 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportResultEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/DedicatedTenancySupportResultEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DedicatedTenancySupportResultEnumMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); DedicatedTenancySupportResultEnum GetDedicatedTenancySupportResultEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return DedicatedTenancySupportResultEnum::ENABLED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableCertificateBasedAuthProperty.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableCertificateBasedAuthProperty.cpp index ea9dd830aa3..c2dad523a50 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableCertificateBasedAuthProperty.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableCertificateBasedAuthProperty.cpp @@ -20,12 +20,12 @@ namespace Aws namespace DeletableCertificateBasedAuthPropertyMapper { - static const int CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN_HASH = HashingUtils::HashString("CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN"); + static constexpr uint32_t CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN_HASH = ConstExprHashingUtils::HashString("CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN"); DeletableCertificateBasedAuthProperty GetDeletableCertificateBasedAuthPropertyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN_HASH) { return DeletableCertificateBasedAuthProperty::CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableSamlProperty.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableSamlProperty.cpp index 18cd814a918..6c380c5c9ea 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableSamlProperty.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/DeletableSamlProperty.cpp @@ -20,13 +20,13 @@ namespace Aws namespace DeletableSamlPropertyMapper { - static const int SAML_PROPERTIES_USER_ACCESS_URL_HASH = HashingUtils::HashString("SAML_PROPERTIES_USER_ACCESS_URL"); - static const int SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME_HASH = HashingUtils::HashString("SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME"); + static constexpr uint32_t SAML_PROPERTIES_USER_ACCESS_URL_HASH = ConstExprHashingUtils::HashString("SAML_PROPERTIES_USER_ACCESS_URL"); + static constexpr uint32_t SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME_HASH = ConstExprHashingUtils::HashString("SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME"); DeletableSamlProperty GetDeletableSamlPropertyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_PROPERTIES_USER_ACCESS_URL_HASH) { return DeletableSamlProperty::SAML_PROPERTIES_USER_ACCESS_URL; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ImageAssociatedResourceType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ImageAssociatedResourceType.cpp index 7f642e9f12e..a9e09848f71 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ImageAssociatedResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ImageAssociatedResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace ImageAssociatedResourceTypeMapper { - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); ImageAssociatedResourceType GetImageAssociatedResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLICATION_HASH) { return ImageAssociatedResourceType::APPLICATION; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ImageType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ImageType.cpp index 451f369bb96..e730921e602 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ImageType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ImageType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ImageTypeMapper { - static const int OWNED_HASH = HashingUtils::HashString("OWNED"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t OWNED_HASH = ConstExprHashingUtils::HashString("OWNED"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); ImageType GetImageTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OWNED_HASH) { return ImageType::OWNED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/LogUploadEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/LogUploadEnum.cpp index f0b34a7b827..7e908087b2e 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/LogUploadEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/LogUploadEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace LogUploadEnumMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); LogUploadEnum GetLogUploadEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return LogUploadEnum::ENABLED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationResourceEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationResourceEnum.cpp index ff3966eb037..a806ae7a4a4 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationResourceEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationResourceEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace ModificationResourceEnumMapper { - static const int ROOT_VOLUME_HASH = HashingUtils::HashString("ROOT_VOLUME"); - static const int USER_VOLUME_HASH = HashingUtils::HashString("USER_VOLUME"); - static const int COMPUTE_TYPE_HASH = HashingUtils::HashString("COMPUTE_TYPE"); + static constexpr uint32_t ROOT_VOLUME_HASH = ConstExprHashingUtils::HashString("ROOT_VOLUME"); + static constexpr uint32_t USER_VOLUME_HASH = ConstExprHashingUtils::HashString("USER_VOLUME"); + static constexpr uint32_t COMPUTE_TYPE_HASH = ConstExprHashingUtils::HashString("COMPUTE_TYPE"); ModificationResourceEnum GetModificationResourceEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ROOT_VOLUME_HASH) { return ModificationResourceEnum::ROOT_VOLUME; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationStateEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationStateEnum.cpp index e5d8da9a58c..bd457f60832 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationStateEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ModificationStateEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ModificationStateEnumMapper { - static const int UPDATE_INITIATED_HASH = HashingUtils::HashString("UPDATE_INITIATED"); - static const int UPDATE_IN_PROGRESS_HASH = HashingUtils::HashString("UPDATE_IN_PROGRESS"); + static constexpr uint32_t UPDATE_INITIATED_HASH = ConstExprHashingUtils::HashString("UPDATE_INITIATED"); + static constexpr uint32_t UPDATE_IN_PROGRESS_HASH = ConstExprHashingUtils::HashString("UPDATE_IN_PROGRESS"); ModificationStateEnum GetModificationStateEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATE_INITIATED_HASH) { return ModificationStateEnum::UPDATE_INITIATED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp index 8a253e7a847..c10432fcee9 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemName.cpp @@ -20,22 +20,22 @@ namespace Aws namespace OperatingSystemNameMapper { - static const int AMAZON_LINUX_2_HASH = HashingUtils::HashString("AMAZON_LINUX_2"); - static const int UBUNTU_18_04_HASH = HashingUtils::HashString("UBUNTU_18_04"); - static const int UBUNTU_20_04_HASH = HashingUtils::HashString("UBUNTU_20_04"); - static const int UBUNTU_22_04_HASH = HashingUtils::HashString("UBUNTU_22_04"); - static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); - static const int WINDOWS_10_HASH = HashingUtils::HashString("WINDOWS_10"); - static const int WINDOWS_11_HASH = HashingUtils::HashString("WINDOWS_11"); - static const int WINDOWS_7_HASH = HashingUtils::HashString("WINDOWS_7"); - static const int WINDOWS_SERVER_2016_HASH = HashingUtils::HashString("WINDOWS_SERVER_2016"); - static const int WINDOWS_SERVER_2019_HASH = HashingUtils::HashString("WINDOWS_SERVER_2019"); - static const int WINDOWS_SERVER_2022_HASH = HashingUtils::HashString("WINDOWS_SERVER_2022"); + static constexpr uint32_t AMAZON_LINUX_2_HASH = ConstExprHashingUtils::HashString("AMAZON_LINUX_2"); + static constexpr uint32_t UBUNTU_18_04_HASH = ConstExprHashingUtils::HashString("UBUNTU_18_04"); + static constexpr uint32_t UBUNTU_20_04_HASH = ConstExprHashingUtils::HashString("UBUNTU_20_04"); + static constexpr uint32_t UBUNTU_22_04_HASH = ConstExprHashingUtils::HashString("UBUNTU_22_04"); + static constexpr uint32_t UNKNOWN_HASH = ConstExprHashingUtils::HashString("UNKNOWN"); + static constexpr uint32_t WINDOWS_10_HASH = ConstExprHashingUtils::HashString("WINDOWS_10"); + static constexpr uint32_t WINDOWS_11_HASH = ConstExprHashingUtils::HashString("WINDOWS_11"); + static constexpr uint32_t WINDOWS_7_HASH = ConstExprHashingUtils::HashString("WINDOWS_7"); + static constexpr uint32_t WINDOWS_SERVER_2016_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2016"); + static constexpr uint32_t WINDOWS_SERVER_2019_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2019"); + static constexpr uint32_t WINDOWS_SERVER_2022_HASH = ConstExprHashingUtils::HashString("WINDOWS_SERVER_2022"); OperatingSystemName GetOperatingSystemNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AMAZON_LINUX_2_HASH) { return OperatingSystemName::AMAZON_LINUX_2; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemType.cpp index 8ab19f8e52f..8062754a2d9 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/OperatingSystemType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace OperatingSystemTypeMapper { - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); + static constexpr uint32_t WINDOWS_HASH = ConstExprHashingUtils::HashString("WINDOWS"); + static constexpr uint32_t LINUX_HASH = ConstExprHashingUtils::HashString("LINUX"); OperatingSystemType GetOperatingSystemTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == WINDOWS_HASH) { return OperatingSystemType::WINDOWS; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/Protocol.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/Protocol.cpp index e7ef5f00312..1198f989f59 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/Protocol.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/Protocol.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ProtocolMapper { - static const int PCOIP_HASH = HashingUtils::HashString("PCOIP"); - static const int WSP_HASH = HashingUtils::HashString("WSP"); + static constexpr uint32_t PCOIP_HASH = ConstExprHashingUtils::HashString("PCOIP"); + static constexpr uint32_t WSP_HASH = ConstExprHashingUtils::HashString("WSP"); Protocol GetProtocolForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PCOIP_HASH) { return Protocol::PCOIP; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/ReconnectEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/ReconnectEnum.cpp index 9599ca8b196..c807e6501ec 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/ReconnectEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/ReconnectEnum.cpp @@ -20,13 +20,13 @@ namespace Aws namespace ReconnectEnumMapper { - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); ReconnectEnum GetReconnectEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ENABLED_HASH) { return ReconnectEnum::ENABLED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/RunningMode.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/RunningMode.cpp index ecc12422d2a..bc60663f3e3 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/RunningMode.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/RunningMode.cpp @@ -20,14 +20,14 @@ namespace Aws namespace RunningModeMapper { - static const int AUTO_STOP_HASH = HashingUtils::HashString("AUTO_STOP"); - static const int ALWAYS_ON_HASH = HashingUtils::HashString("ALWAYS_ON"); - static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + static constexpr uint32_t AUTO_STOP_HASH = ConstExprHashingUtils::HashString("AUTO_STOP"); + static constexpr uint32_t ALWAYS_ON_HASH = ConstExprHashingUtils::HashString("ALWAYS_ON"); + static constexpr uint32_t MANUAL_HASH = ConstExprHashingUtils::HashString("MANUAL"); RunningMode GetRunningModeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AUTO_STOP_HASH) { return RunningMode::AUTO_STOP; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/SamlStatusEnum.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/SamlStatusEnum.cpp index a20c8a24691..de6a3143859 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/SamlStatusEnum.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/SamlStatusEnum.cpp @@ -20,14 +20,14 @@ namespace Aws namespace SamlStatusEnumMapper { - static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); - static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); - static const int ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK_HASH = HashingUtils::HashString("ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK"); + static constexpr uint32_t DISABLED_HASH = ConstExprHashingUtils::HashString("DISABLED"); + static constexpr uint32_t ENABLED_HASH = ConstExprHashingUtils::HashString("ENABLED"); + static constexpr uint32_t ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK_HASH = ConstExprHashingUtils::HashString("ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK"); SamlStatusEnum GetSamlStatusEnumForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return SamlStatusEnum::DISABLED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/StandbyWorkspaceRelationshipType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/StandbyWorkspaceRelationshipType.cpp index d848a27f6f1..966c93d3fc0 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/StandbyWorkspaceRelationshipType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/StandbyWorkspaceRelationshipType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace StandbyWorkspaceRelationshipTypeMapper { - static const int PRIMARY_HASH = HashingUtils::HashString("PRIMARY"); - static const int STANDBY_HASH = HashingUtils::HashString("STANDBY"); + static constexpr uint32_t PRIMARY_HASH = ConstExprHashingUtils::HashString("PRIMARY"); + static constexpr uint32_t STANDBY_HASH = ConstExprHashingUtils::HashString("STANDBY"); StandbyWorkspaceRelationshipType GetStandbyWorkspaceRelationshipTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PRIMARY_HASH) { return StandbyWorkspaceRelationshipType::PRIMARY; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/TargetWorkspaceState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/TargetWorkspaceState.cpp index 355ae4e2cbe..097da3998ec 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/TargetWorkspaceState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/TargetWorkspaceState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TargetWorkspaceStateMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int ADMIN_MAINTENANCE_HASH = HashingUtils::HashString("ADMIN_MAINTENANCE"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t ADMIN_MAINTENANCE_HASH = ConstExprHashingUtils::HashString("ADMIN_MAINTENANCE"); TargetWorkspaceState GetTargetWorkspaceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return TargetWorkspaceState::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/Tenancy.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/Tenancy.cpp index 54814ccf2df..d734f488a4c 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/Tenancy.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/Tenancy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TenancyMapper { - static const int DEDICATED_HASH = HashingUtils::HashString("DEDICATED"); - static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + static constexpr uint32_t DEDICATED_HASH = ConstExprHashingUtils::HashString("DEDICATED"); + static constexpr uint32_t SHARED_HASH = ConstExprHashingUtils::HashString("SHARED"); Tenancy GetTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEDICATED_HASH) { return Tenancy::DEDICATED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationLicenseType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationLicenseType.cpp index 90df15086e8..3ef1829d13c 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationLicenseType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationLicenseType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WorkSpaceApplicationLicenseTypeMapper { - static const int LICENSED_HASH = HashingUtils::HashString("LICENSED"); - static const int UNLICENSED_HASH = HashingUtils::HashString("UNLICENSED"); + static constexpr uint32_t LICENSED_HASH = ConstExprHashingUtils::HashString("LICENSED"); + static constexpr uint32_t UNLICENSED_HASH = ConstExprHashingUtils::HashString("UNLICENSED"); WorkSpaceApplicationLicenseType GetWorkSpaceApplicationLicenseTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LICENSED_HASH) { return WorkSpaceApplicationLicenseType::LICENSED; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationState.cpp index 52a6e9c1632..326e56d9094 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceApplicationState.cpp @@ -20,15 +20,15 @@ namespace Aws namespace WorkSpaceApplicationStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int UNINSTALL_ONLY_HASH = HashingUtils::HashString("UNINSTALL_ONLY"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t UNINSTALL_ONLY_HASH = ConstExprHashingUtils::HashString("UNINSTALL_ONLY"); WorkSpaceApplicationState GetWorkSpaceApplicationStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return WorkSpaceApplicationState::PENDING; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceAssociatedResourceType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceAssociatedResourceType.cpp index ffa9d87990e..b84ccad1224 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceAssociatedResourceType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkSpaceAssociatedResourceType.cpp @@ -20,12 +20,12 @@ namespace Aws namespace WorkSpaceAssociatedResourceTypeMapper { - static const int APPLICATION_HASH = HashingUtils::HashString("APPLICATION"); + static constexpr uint32_t APPLICATION_HASH = ConstExprHashingUtils::HashString("APPLICATION"); WorkSpaceAssociatedResourceType GetWorkSpaceAssociatedResourceTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == APPLICATION_HASH) { return WorkSpaceAssociatedResourceType::APPLICATION; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceBundleState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceBundleState.cpp index 94cecf91981..546b2ce034d 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceBundleState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceBundleState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WorkspaceBundleStateMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); WorkspaceBundleState GetWorkspaceBundleStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return WorkspaceBundleState::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryState.cpp index 916adbc11c4..a75b322c6b3 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryState.cpp @@ -20,16 +20,16 @@ namespace Aws namespace WorkspaceDirectoryStateMapper { - static const int REGISTERING_HASH = HashingUtils::HashString("REGISTERING"); - static const int REGISTERED_HASH = HashingUtils::HashString("REGISTERED"); - static const int DEREGISTERING_HASH = HashingUtils::HashString("DEREGISTERING"); - static const int DEREGISTERED_HASH = HashingUtils::HashString("DEREGISTERED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t REGISTERING_HASH = ConstExprHashingUtils::HashString("REGISTERING"); + static constexpr uint32_t REGISTERED_HASH = ConstExprHashingUtils::HashString("REGISTERED"); + static constexpr uint32_t DEREGISTERING_HASH = ConstExprHashingUtils::HashString("DEREGISTERING"); + static constexpr uint32_t DEREGISTERED_HASH = ConstExprHashingUtils::HashString("DEREGISTERED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); WorkspaceDirectoryState GetWorkspaceDirectoryStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGISTERING_HASH) { return WorkspaceDirectoryState::REGISTERING; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryType.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryType.cpp index 0c5b113e7ad..30d22ace7b0 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryType.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceDirectoryType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WorkspaceDirectoryTypeMapper { - static const int SIMPLE_AD_HASH = HashingUtils::HashString("SIMPLE_AD"); - static const int AD_CONNECTOR_HASH = HashingUtils::HashString("AD_CONNECTOR"); + static constexpr uint32_t SIMPLE_AD_HASH = ConstExprHashingUtils::HashString("SIMPLE_AD"); + static constexpr uint32_t AD_CONNECTOR_HASH = ConstExprHashingUtils::HashString("AD_CONNECTOR"); WorkspaceDirectoryType GetWorkspaceDirectoryTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SIMPLE_AD_HASH) { return WorkspaceDirectoryType::SIMPLE_AD; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageErrorDetailCode.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageErrorDetailCode.cpp index e1f3d68e08b..2d320420de4 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageErrorDetailCode.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageErrorDetailCode.cpp @@ -20,37 +20,37 @@ namespace Aws namespace WorkspaceImageErrorDetailCodeMapper { - static const int OutdatedPowershellVersion_HASH = HashingUtils::HashString("OutdatedPowershellVersion"); - static const int OfficeInstalled_HASH = HashingUtils::HashString("OfficeInstalled"); - static const int PCoIPAgentInstalled_HASH = HashingUtils::HashString("PCoIPAgentInstalled"); - static const int WindowsUpdatesEnabled_HASH = HashingUtils::HashString("WindowsUpdatesEnabled"); - static const int AutoMountDisabled_HASH = HashingUtils::HashString("AutoMountDisabled"); - static const int WorkspacesBYOLAccountNotFound_HASH = HashingUtils::HashString("WorkspacesBYOLAccountNotFound"); - static const int WorkspacesBYOLAccountDisabled_HASH = HashingUtils::HashString("WorkspacesBYOLAccountDisabled"); - static const int DHCPDisabled_HASH = HashingUtils::HashString("DHCPDisabled"); - static const int DiskFreeSpace_HASH = HashingUtils::HashString("DiskFreeSpace"); - static const int AdditionalDrivesAttached_HASH = HashingUtils::HashString("AdditionalDrivesAttached"); - static const int OSNotSupported_HASH = HashingUtils::HashString("OSNotSupported"); - static const int DomainJoined_HASH = HashingUtils::HashString("DomainJoined"); - static const int AzureDomainJoined_HASH = HashingUtils::HashString("AzureDomainJoined"); - static const int FirewallEnabled_HASH = HashingUtils::HashString("FirewallEnabled"); - static const int VMWareToolsInstalled_HASH = HashingUtils::HashString("VMWareToolsInstalled"); - static const int DiskSizeExceeded_HASH = HashingUtils::HashString("DiskSizeExceeded"); - static const int IncompatiblePartitioning_HASH = HashingUtils::HashString("IncompatiblePartitioning"); - static const int PendingReboot_HASH = HashingUtils::HashString("PendingReboot"); - static const int AutoLogonEnabled_HASH = HashingUtils::HashString("AutoLogonEnabled"); - static const int RealTimeUniversalDisabled_HASH = HashingUtils::HashString("RealTimeUniversalDisabled"); - static const int MultipleBootPartition_HASH = HashingUtils::HashString("MultipleBootPartition"); - static const int Requires64BitOS_HASH = HashingUtils::HashString("Requires64BitOS"); - static const int ZeroRearmCount_HASH = HashingUtils::HashString("ZeroRearmCount"); - static const int InPlaceUpgrade_HASH = HashingUtils::HashString("InPlaceUpgrade"); - static const int AntiVirusInstalled_HASH = HashingUtils::HashString("AntiVirusInstalled"); - static const int UEFINotSupported_HASH = HashingUtils::HashString("UEFINotSupported"); + static constexpr uint32_t OutdatedPowershellVersion_HASH = ConstExprHashingUtils::HashString("OutdatedPowershellVersion"); + static constexpr uint32_t OfficeInstalled_HASH = ConstExprHashingUtils::HashString("OfficeInstalled"); + static constexpr uint32_t PCoIPAgentInstalled_HASH = ConstExprHashingUtils::HashString("PCoIPAgentInstalled"); + static constexpr uint32_t WindowsUpdatesEnabled_HASH = ConstExprHashingUtils::HashString("WindowsUpdatesEnabled"); + static constexpr uint32_t AutoMountDisabled_HASH = ConstExprHashingUtils::HashString("AutoMountDisabled"); + static constexpr uint32_t WorkspacesBYOLAccountNotFound_HASH = ConstExprHashingUtils::HashString("WorkspacesBYOLAccountNotFound"); + static constexpr uint32_t WorkspacesBYOLAccountDisabled_HASH = ConstExprHashingUtils::HashString("WorkspacesBYOLAccountDisabled"); + static constexpr uint32_t DHCPDisabled_HASH = ConstExprHashingUtils::HashString("DHCPDisabled"); + static constexpr uint32_t DiskFreeSpace_HASH = ConstExprHashingUtils::HashString("DiskFreeSpace"); + static constexpr uint32_t AdditionalDrivesAttached_HASH = ConstExprHashingUtils::HashString("AdditionalDrivesAttached"); + static constexpr uint32_t OSNotSupported_HASH = ConstExprHashingUtils::HashString("OSNotSupported"); + static constexpr uint32_t DomainJoined_HASH = ConstExprHashingUtils::HashString("DomainJoined"); + static constexpr uint32_t AzureDomainJoined_HASH = ConstExprHashingUtils::HashString("AzureDomainJoined"); + static constexpr uint32_t FirewallEnabled_HASH = ConstExprHashingUtils::HashString("FirewallEnabled"); + static constexpr uint32_t VMWareToolsInstalled_HASH = ConstExprHashingUtils::HashString("VMWareToolsInstalled"); + static constexpr uint32_t DiskSizeExceeded_HASH = ConstExprHashingUtils::HashString("DiskSizeExceeded"); + static constexpr uint32_t IncompatiblePartitioning_HASH = ConstExprHashingUtils::HashString("IncompatiblePartitioning"); + static constexpr uint32_t PendingReboot_HASH = ConstExprHashingUtils::HashString("PendingReboot"); + static constexpr uint32_t AutoLogonEnabled_HASH = ConstExprHashingUtils::HashString("AutoLogonEnabled"); + static constexpr uint32_t RealTimeUniversalDisabled_HASH = ConstExprHashingUtils::HashString("RealTimeUniversalDisabled"); + static constexpr uint32_t MultipleBootPartition_HASH = ConstExprHashingUtils::HashString("MultipleBootPartition"); + static constexpr uint32_t Requires64BitOS_HASH = ConstExprHashingUtils::HashString("Requires64BitOS"); + static constexpr uint32_t ZeroRearmCount_HASH = ConstExprHashingUtils::HashString("ZeroRearmCount"); + static constexpr uint32_t InPlaceUpgrade_HASH = ConstExprHashingUtils::HashString("InPlaceUpgrade"); + static constexpr uint32_t AntiVirusInstalled_HASH = ConstExprHashingUtils::HashString("AntiVirusInstalled"); + static constexpr uint32_t UEFINotSupported_HASH = ConstExprHashingUtils::HashString("UEFINotSupported"); WorkspaceImageErrorDetailCode GetWorkspaceImageErrorDetailCodeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OutdatedPowershellVersion_HASH) { return WorkspaceImageErrorDetailCode::OutdatedPowershellVersion; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageIngestionProcess.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageIngestionProcess.cpp index 46a5e61dfa0..275169d72a2 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageIngestionProcess.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageIngestionProcess.cpp @@ -20,18 +20,18 @@ namespace Aws namespace WorkspaceImageIngestionProcessMapper { - static const int BYOL_REGULAR_HASH = HashingUtils::HashString("BYOL_REGULAR"); - static const int BYOL_GRAPHICS_HASH = HashingUtils::HashString("BYOL_GRAPHICS"); - static const int BYOL_GRAPHICSPRO_HASH = HashingUtils::HashString("BYOL_GRAPHICSPRO"); - static const int BYOL_GRAPHICS_G4DN_HASH = HashingUtils::HashString("BYOL_GRAPHICS_G4DN"); - static const int BYOL_REGULAR_WSP_HASH = HashingUtils::HashString("BYOL_REGULAR_WSP"); - static const int BYOL_REGULAR_BYOP_HASH = HashingUtils::HashString("BYOL_REGULAR_BYOP"); - static const int BYOL_GRAPHICS_G4DN_BYOP_HASH = HashingUtils::HashString("BYOL_GRAPHICS_G4DN_BYOP"); + static constexpr uint32_t BYOL_REGULAR_HASH = ConstExprHashingUtils::HashString("BYOL_REGULAR"); + static constexpr uint32_t BYOL_GRAPHICS_HASH = ConstExprHashingUtils::HashString("BYOL_GRAPHICS"); + static constexpr uint32_t BYOL_GRAPHICSPRO_HASH = ConstExprHashingUtils::HashString("BYOL_GRAPHICSPRO"); + static constexpr uint32_t BYOL_GRAPHICS_G4DN_HASH = ConstExprHashingUtils::HashString("BYOL_GRAPHICS_G4DN"); + static constexpr uint32_t BYOL_REGULAR_WSP_HASH = ConstExprHashingUtils::HashString("BYOL_REGULAR_WSP"); + static constexpr uint32_t BYOL_REGULAR_BYOP_HASH = ConstExprHashingUtils::HashString("BYOL_REGULAR_BYOP"); + static constexpr uint32_t BYOL_GRAPHICS_G4DN_BYOP_HASH = ConstExprHashingUtils::HashString("BYOL_GRAPHICS_G4DN_BYOP"); WorkspaceImageIngestionProcess GetWorkspaceImageIngestionProcessForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BYOL_REGULAR_HASH) { return WorkspaceImageIngestionProcess::BYOL_REGULAR; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageRequiredTenancy.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageRequiredTenancy.cpp index 6ed833fea17..1f376513052 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageRequiredTenancy.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageRequiredTenancy.cpp @@ -20,13 +20,13 @@ namespace Aws namespace WorkspaceImageRequiredTenancyMapper { - static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT"); - static const int DEDICATED_HASH = HashingUtils::HashString("DEDICATED"); + static constexpr uint32_t DEFAULT_HASH = ConstExprHashingUtils::HashString("DEFAULT"); + static constexpr uint32_t DEDICATED_HASH = ConstExprHashingUtils::HashString("DEDICATED"); WorkspaceImageRequiredTenancy GetWorkspaceImageRequiredTenancyForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DEFAULT_HASH) { return WorkspaceImageRequiredTenancy::DEFAULT; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageState.cpp index a47cb3f69de..a7d9a7af715 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceImageState.cpp @@ -20,14 +20,14 @@ namespace Aws namespace WorkspaceImageStateMapper { - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); WorkspaceImageState GetWorkspaceImageStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == AVAILABLE_HASH) { return WorkspaceImageState::AVAILABLE; diff --git a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceState.cpp b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceState.cpp index 46e88486734..1b1046fd48d 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceState.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/model/WorkspaceState.cpp @@ -20,28 +20,28 @@ namespace Aws namespace WorkspaceStateMapper { - static const int PENDING_HASH = HashingUtils::HashString("PENDING"); - static const int AVAILABLE_HASH = HashingUtils::HashString("AVAILABLE"); - static const int IMPAIRED_HASH = HashingUtils::HashString("IMPAIRED"); - static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); - static const int REBOOTING_HASH = HashingUtils::HashString("REBOOTING"); - static const int STARTING_HASH = HashingUtils::HashString("STARTING"); - static const int REBUILDING_HASH = HashingUtils::HashString("REBUILDING"); - static const int RESTORING_HASH = HashingUtils::HashString("RESTORING"); - static const int MAINTENANCE_HASH = HashingUtils::HashString("MAINTENANCE"); - static const int ADMIN_MAINTENANCE_HASH = HashingUtils::HashString("ADMIN_MAINTENANCE"); - static const int TERMINATING_HASH = HashingUtils::HashString("TERMINATING"); - static const int TERMINATED_HASH = HashingUtils::HashString("TERMINATED"); - static const int SUSPENDED_HASH = HashingUtils::HashString("SUSPENDED"); - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); - static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); - static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static constexpr uint32_t PENDING_HASH = ConstExprHashingUtils::HashString("PENDING"); + static constexpr uint32_t AVAILABLE_HASH = ConstExprHashingUtils::HashString("AVAILABLE"); + static constexpr uint32_t IMPAIRED_HASH = ConstExprHashingUtils::HashString("IMPAIRED"); + static constexpr uint32_t UNHEALTHY_HASH = ConstExprHashingUtils::HashString("UNHEALTHY"); + static constexpr uint32_t REBOOTING_HASH = ConstExprHashingUtils::HashString("REBOOTING"); + static constexpr uint32_t STARTING_HASH = ConstExprHashingUtils::HashString("STARTING"); + static constexpr uint32_t REBUILDING_HASH = ConstExprHashingUtils::HashString("REBUILDING"); + static constexpr uint32_t RESTORING_HASH = ConstExprHashingUtils::HashString("RESTORING"); + static constexpr uint32_t MAINTENANCE_HASH = ConstExprHashingUtils::HashString("MAINTENANCE"); + static constexpr uint32_t ADMIN_MAINTENANCE_HASH = ConstExprHashingUtils::HashString("ADMIN_MAINTENANCE"); + static constexpr uint32_t TERMINATING_HASH = ConstExprHashingUtils::HashString("TERMINATING"); + static constexpr uint32_t TERMINATED_HASH = ConstExprHashingUtils::HashString("TERMINATED"); + static constexpr uint32_t SUSPENDED_HASH = ConstExprHashingUtils::HashString("SUSPENDED"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t STOPPING_HASH = ConstExprHashingUtils::HashString("STOPPING"); + static constexpr uint32_t STOPPED_HASH = ConstExprHashingUtils::HashString("STOPPED"); + static constexpr uint32_t ERROR__HASH = ConstExprHashingUtils::HashString("ERROR"); WorkspaceState GetWorkspaceStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PENDING_HASH) { return WorkspaceState::PENDING; diff --git a/generated/src/aws-cpp-sdk-xray/source/XRayErrors.cpp b/generated/src/aws-cpp-sdk-xray/source/XRayErrors.cpp index 1d7402e83b8..b61efd5315e 100644 --- a/generated/src/aws-cpp-sdk-xray/source/XRayErrors.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/XRayErrors.cpp @@ -33,19 +33,19 @@ template<> AWS_XRAY_API TooManyTagsException XRayError::GetModeledError() namespace XRayErrorMapper { -static const int MALFORMED_POLICY_DOCUMENT_HASH = HashingUtils::HashString("MalformedPolicyDocumentException"); -static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); -static const int LOCKOUT_PREVENTION_HASH = HashingUtils::HashString("LockoutPreventionException"); -static const int POLICY_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PolicySizeLimitExceededException"); -static const int INVALID_POLICY_REVISION_ID_HASH = HashingUtils::HashString("InvalidPolicyRevisionIdException"); -static const int RULE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("RuleLimitExceededException"); -static const int POLICY_COUNT_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("PolicyCountLimitExceededException"); -static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); +static constexpr uint32_t MALFORMED_POLICY_DOCUMENT_HASH = ConstExprHashingUtils::HashString("MalformedPolicyDocumentException"); +static constexpr uint32_t TOO_MANY_TAGS_HASH = ConstExprHashingUtils::HashString("TooManyTagsException"); +static constexpr uint32_t LOCKOUT_PREVENTION_HASH = ConstExprHashingUtils::HashString("LockoutPreventionException"); +static constexpr uint32_t POLICY_SIZE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PolicySizeLimitExceededException"); +static constexpr uint32_t INVALID_POLICY_REVISION_ID_HASH = ConstExprHashingUtils::HashString("InvalidPolicyRevisionIdException"); +static constexpr uint32_t RULE_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("RuleLimitExceededException"); +static constexpr uint32_t POLICY_COUNT_LIMIT_EXCEEDED_HASH = ConstExprHashingUtils::HashString("PolicyCountLimitExceededException"); +static constexpr uint32_t INVALID_REQUEST_HASH = ConstExprHashingUtils::HashString("InvalidRequestException"); AWSError GetErrorForName(const char* errorName) { - int hashCode = HashingUtils::HashString(errorName); + uint32_t hashCode = HashingUtils::HashString(errorName); if (hashCode == MALFORMED_POLICY_DOCUMENT_HASH) { diff --git a/generated/src/aws-cpp-sdk-xray/source/model/EncryptionStatus.cpp b/generated/src/aws-cpp-sdk-xray/source/model/EncryptionStatus.cpp index 46d605b2437..41f0546383c 100644 --- a/generated/src/aws-cpp-sdk-xray/source/model/EncryptionStatus.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/model/EncryptionStatus.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionStatusMapper { - static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static constexpr uint32_t UPDATING_HASH = ConstExprHashingUtils::HashString("UPDATING"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); EncryptionStatus GetEncryptionStatusForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPDATING_HASH) { return EncryptionStatus::UPDATING; diff --git a/generated/src/aws-cpp-sdk-xray/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-xray/source/model/EncryptionType.cpp index 065089c9088..904d0c0fd5a 100644 --- a/generated/src/aws-cpp-sdk-xray/source/model/EncryptionType.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/model/EncryptionType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace EncryptionTypeMapper { - static const int NONE_HASH = HashingUtils::HashString("NONE"); - static const int KMS_HASH = HashingUtils::HashString("KMS"); + static constexpr uint32_t NONE_HASH = ConstExprHashingUtils::HashString("NONE"); + static constexpr uint32_t KMS_HASH = ConstExprHashingUtils::HashString("KMS"); EncryptionType GetEncryptionTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return EncryptionType::NONE; diff --git a/generated/src/aws-cpp-sdk-xray/source/model/InsightCategory.cpp b/generated/src/aws-cpp-sdk-xray/source/model/InsightCategory.cpp index e652dca5ebb..aaa36345566 100644 --- a/generated/src/aws-cpp-sdk-xray/source/model/InsightCategory.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/model/InsightCategory.cpp @@ -20,12 +20,12 @@ namespace Aws namespace InsightCategoryMapper { - static const int FAULT_HASH = HashingUtils::HashString("FAULT"); + static constexpr uint32_t FAULT_HASH = ConstExprHashingUtils::HashString("FAULT"); InsightCategory GetInsightCategoryForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FAULT_HASH) { return InsightCategory::FAULT; diff --git a/generated/src/aws-cpp-sdk-xray/source/model/InsightState.cpp b/generated/src/aws-cpp-sdk-xray/source/model/InsightState.cpp index 739fcacaa15..f419e8c72cc 100644 --- a/generated/src/aws-cpp-sdk-xray/source/model/InsightState.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/model/InsightState.cpp @@ -20,13 +20,13 @@ namespace Aws namespace InsightStateMapper { - static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); - static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static constexpr uint32_t ACTIVE_HASH = ConstExprHashingUtils::HashString("ACTIVE"); + static constexpr uint32_t CLOSED_HASH = ConstExprHashingUtils::HashString("CLOSED"); InsightState GetInsightStateForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ACTIVE_HASH) { return InsightState::ACTIVE; diff --git a/generated/src/aws-cpp-sdk-xray/source/model/SamplingStrategyName.cpp b/generated/src/aws-cpp-sdk-xray/source/model/SamplingStrategyName.cpp index 941ee012f46..0ece2adc572 100644 --- a/generated/src/aws-cpp-sdk-xray/source/model/SamplingStrategyName.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/model/SamplingStrategyName.cpp @@ -20,13 +20,13 @@ namespace Aws namespace SamplingStrategyNameMapper { - static const int PartialScan_HASH = HashingUtils::HashString("PartialScan"); - static const int FixedRate_HASH = HashingUtils::HashString("FixedRate"); + static constexpr uint32_t PartialScan_HASH = ConstExprHashingUtils::HashString("PartialScan"); + static constexpr uint32_t FixedRate_HASH = ConstExprHashingUtils::HashString("FixedRate"); SamplingStrategyName GetSamplingStrategyNameForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PartialScan_HASH) { return SamplingStrategyName::PartialScan; diff --git a/generated/src/aws-cpp-sdk-xray/source/model/TimeRangeType.cpp b/generated/src/aws-cpp-sdk-xray/source/model/TimeRangeType.cpp index 053a8608258..570402bbf8b 100644 --- a/generated/src/aws-cpp-sdk-xray/source/model/TimeRangeType.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/model/TimeRangeType.cpp @@ -20,13 +20,13 @@ namespace Aws namespace TimeRangeTypeMapper { - static const int TraceId_HASH = HashingUtils::HashString("TraceId"); - static const int Event_HASH = HashingUtils::HashString("Event"); + static constexpr uint32_t TraceId_HASH = ConstExprHashingUtils::HashString("TraceId"); + static constexpr uint32_t Event_HASH = ConstExprHashingUtils::HashString("Event"); TimeRangeType GetTimeRangeTypeForName(const Aws::String& name) { - int hashCode = HashingUtils::HashString(name.c_str()); + uint32_t hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == TraceId_HASH) { return TimeRangeType::TraceId;